From c2a41baa82402fd1410f263bab49c20c7db525c1 Mon Sep 17 00:00:00 2001 From: Felix Sun Date: Sun, 18 Aug 2024 11:21:17 +0800 Subject: [PATCH 01/21] Add examples test for more coverage --- cov.sh | 2 + examples/examples_test.go | 111 ++++++++++++++++++++++++++++++++++++++ page.go | 26 ++------- 3 files changed, 116 insertions(+), 23 deletions(-) create mode 100755 cov.sh create mode 100644 examples/examples_test.go diff --git a/cov.sh b/cov.sh new file mode 100755 index 0000000..ca945c5 --- /dev/null +++ b/cov.sh @@ -0,0 +1,2 @@ +go test -v -p=1 -count=1 -coverprofile=/tmp/coverage.txt -coverpkg=github.com/qor5/... ./... +go tool cover -html=/tmp/coverage.txt diff --git a/examples/examples_test.go b/examples/examples_test.go new file mode 100644 index 0000000..405b5d7 --- /dev/null +++ b/examples/examples_test.go @@ -0,0 +1,111 @@ +package examples_test + +import ( + "bytes" + "fmt" + "net/http" + "net/http/httptest" + "strings" + "testing" + + "github.com/qor5/web/v3" + "github.com/qor5/web/v3/examples" + "github.com/qor5/web/v3/multipartestutils" + . "github.com/theplant/htmlgo" +) + +func TestExamples(t *testing.T) { + cases := []multipartestutils.TestCase{ + { + Name: "Page Reload 1", + HandlerMaker: func() http.Handler { + return examples.HelloWorldReloadPB + }, + ReqFunc: func() *http.Request { + return multipartestutils.NewMultipartBuilder(). + PageURL("/"). + EventFunc(web.ReloadEventFuncID). + BuildEventFuncRequest() + }, + EventResponseMatch: func(t *testing.T, er *multipartestutils.TestEventResponse) { + if !strings.Contains(er.Body, "Hello World") { + t.Errorf(er.Body) + } + }, + }, + { + Name: "Page Reload 2", + HandlerMaker: func() http.Handler { + return examples.HelloWorldReloadPB + }, + ReqFunc: func() *http.Request { + return multipartestutils.NewMultipartBuilder(). + PageURL("/"). + EventFunc("reload"). + BuildEventFuncRequest() + }, + EventResponseMatch: func(t *testing.T, er *multipartestutils.TestEventResponse) { + if !strings.Contains(er.Body, "Hello World") { + t.Errorf(er.Body) + } + }, + }, + { + Name: "Page Wrap", + HandlerMaker: func() http.Handler { + return examples.HelloWorldReloadPB.Wrap(func(in web.PageFunc) web.PageFunc { + return func(ctx *web.EventContext) (r web.PageResponse, err error) { + inPr, _ := in(ctx) + r.Body = Article(inPr.Body) + r.PageTitle = fmt.Sprintf("Wrapped: %s", inPr.PageTitle) + return + } + }) + }, + ReqFunc: func() *http.Request { + return httptest.NewRequest("GET", "/", nil) + }, + PageMatch: func(t *testing.T, body *bytes.Buffer) { + if !strings.Contains(body.String(), "
") { + t.Errorf(body.String()) + } + }, + }, + { + Name: "Event Func Wrap", + HandlerMaker: func() http.Handler { + return examples.HelloWorldReloadPB. + WrapEventFunc(func(in web.EventFunc) web.EventFunc { + return func(ctx *web.EventContext) (r web.EventResponse, err error) { + r.Data = "Hello123" + return + } + }). + WrapEventFunc(func(in web.EventFunc) web.EventFunc { + return func(ctx *web.EventContext) (r web.EventResponse, err error) { + inEr, _ := in(ctx) + r.Data = "NICE:" + fmt.Sprint(inEr.Data) + return + } + }) + }, + ReqFunc: func() *http.Request { + return multipartestutils.NewMultipartBuilder(). + PageURL("/"). + EventFunc("reload"). + BuildEventFuncRequest() + }, + EventResponseMatch: func(t *testing.T, er *multipartestutils.TestEventResponse) { + if !strings.Contains(fmt.Sprint(er.Data), "NICE:Hello123") { + t.Error(er.Data) + } + }, + }, + } + + for _, c := range cases { + t.Run(c.Name, func(t *testing.T) { + multipartestutils.RunCase(t, c, nil) + }) + } +} diff --git a/page.go b/page.go index a32f46d..150fe78 100644 --- a/page.go +++ b/page.go @@ -4,7 +4,6 @@ import ( "encoding/json" "fmt" "log" - "mime/multipart" "net/http" h "github.com/theplant/htmlgo" @@ -12,12 +11,14 @@ import ( var Default = New() +const ReloadEventFuncID = "__reload__" + func Page(pf PageFunc, efs ...interface{}) (p *PageBuilder) { p = &PageBuilder{ b: Default, } p.pageRenderFunc = pf - p.RegisterEventFunc("__reload__", reload) + p.RegisterEventFunc(ReloadEventFuncID, reload) p.EventFuncs(efs...) return } @@ -26,7 +27,6 @@ type PageBuilder struct { EventsHub b *Builder pageRenderFunc PageFunc - maxFormSize int64 eventFuncWrapper func(in EventFunc) EventFunc } @@ -51,12 +51,6 @@ func (p *PageBuilder) Wrap(middlewares ...func(in PageFunc) PageFunc) (r *PageBu return } -func (p *PageBuilder) MaxFormSize(v int64) (r *PageBuilder) { - p.maxFormSize = v - r = p - return -} - func (p *PageBuilder) EventFuncs(vs ...interface{}) (r *PageBuilder) { p.addMultipleEventFuncs(vs...) return p @@ -132,20 +126,6 @@ func (p *PageBuilder) index(w http.ResponseWriter, r *http.Request) { } } -func (p *PageBuilder) parseForm(r *http.Request) *multipart.Form { - maxSize := p.maxFormSize - if maxSize == 0 { - maxSize = 128 << 20 // 128MB - } - - err := r.ParseMultipartForm(maxSize) - if err != nil { - panic(err) - } - - return r.MultipartForm -} - const EventFuncIDName = "__execute_event__" func (p *PageBuilder) executeEvent(w http.ResponseWriter, r *http.Request) { From 0aae54faa6d22aade53908438e7326d30655fdbd Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:46:52 +0800 Subject: [PATCH 02/21] lifecycle directives --- corejs/dist/index.js | 26 +++++++-------- corejs/dist/vue.global.dev.js | 45 +++++++++++++++----------- corejs/dist/vue.global.prod.js | 12 +++---- corejs/src/__tests__/assign.spec.ts | 19 ++--------- corejs/src/__tests__/runscript.spec.ts | 16 --------- corejs/src/__tests__/scope.spec.ts | 6 ++-- corejs/src/app.ts | 21 +++++++++--- corejs/src/assign.ts | 10 ++---- corejs/src/go-plaid-listener.vue | 4 ++- corejs/src/go-plaid-run-script.vue | 12 ++++--- corejs/src/lifecycle.ts | 43 ++++++++++++++++++++++++ examples/hello-button.go | 2 +- examples/todomvc.go | 2 +- stateful/action.go | 2 +- vue.go | 2 +- 15 files changed, 127 insertions(+), 95 deletions(-) delete mode 100644 corejs/src/__tests__/runscript.spec.ts create mode 100644 corejs/src/lifecycle.ts diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 7d8ba95..886d37e 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,27 +1,27 @@ -var iu=Object.defineProperty;var ou=(f,$,k)=>$ in f?iu(f,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):f[$]=k;var E=(f,$,k)=>ou(f,typeof $!="symbol"?$+"":$,k);(function(f,$){typeof exports=="object"&&typeof module<"u"?$(require("vue")):typeof define=="function"&&define.amd?define(["vue"],$):(f=typeof globalThis<"u"?globalThis:f||self,$(f.Vue))})(this,function(f){"use strict";/*! +var uc=Object.defineProperty;var fc=(l,$,k)=>$ in l?uc(l,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):l[$]=k;var E=(l,$,k)=>fc(l,typeof $!="symbol"?$+"":$,k);(function(l,$){typeof exports=="object"&&typeof module<"u"?$(require("vue")):typeof define=="function"&&define.amd?define(["vue"],$):(l=typeof globalThis<"u"?globalThis:l||self,$(l.Vue))})(this,function(l){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let $;function k(){return $??($=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const Pt=/^on(\w+?)((?:Once|Capture|Passive)*)$/,Dt=/[OCP]/g;function Lt(e){return e?k()?e.includes("Capture"):e.replace(Dt,",$&").toLowerCase().slice(1).split(",").reduce((r,n)=>(r[n]=!0,r),{}):void 0}const xt=f.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(e,{attrs:t}){let r=Object.create(null);const n=f.ref(!0);return f.onActivated(()=>{n.value=!0}),f.onDeactivated(()=>{n.value=!1}),f.onMounted(()=>{Object.keys(t).filter(i=>i.startsWith("on")).forEach(i=>{const o=t[i],s=Array.isArray(o)?o:[o],c=i.match(Pt);if(!c){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${i}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,h,d]=c;h=h.toLowerCase();const y=s.map(g=>v=>{const I=Array.isArray(e.filter)?e.filter:[e.filter];n.value&&I.every(B=>B(v,g,h))&&(e.stop&&v.stopPropagation(),e.prevent&&v.preventDefault(),g(v))}),_=Lt(d);y.forEach(g=>{window[e.target].addEventListener(h,g,_)}),r[i]=[y,h,_]})}),f.onBeforeUnmount(()=>{for(const i in r){const[o,s,c]=r[i];o.forEach(h=>{window[e.target].removeEventListener(s,h,c)})}r={}}),()=>null}});var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ie=Nt,Mt=typeof J=="object"&&J&&J.Object===Object&&J,Ut=Mt,Ht=Ut,Bt=typeof self=="object"&&self&&self.Object===Object&&self,qt=Ht||Bt||Function("return this")(),ee=qt,Gt=ee,zt=function(){return Gt.Date.now()},kt=zt,Jt=/\s/;function Kt(e){for(var t=e.length;t--&&Jt.test(e.charAt(t)););return t}var Vt=Kt,Qt=Vt,Yt=/^\s+/;function Wt(e){return e&&e.slice(0,Qt(e)+1).replace(Yt,"")}var Zt=Wt,Xt=ee,er=Xt.Symbol,ye=er,Me=ye,Ue=Object.prototype,tr=Ue.hasOwnProperty,rr=Ue.toString,te=Me?Me.toStringTag:void 0;function nr(e){var t=tr.call(e,te),r=e[te];try{e[te]=void 0;var n=!0}catch{}var i=rr.call(e);return n&&(t?e[te]=r:delete e[te]),i}var ir=nr,or=Object.prototype,ar=or.toString;function sr(e){return ar.call(e)}var ur=sr,He=ye,cr=ir,lr=ur,fr="[object Null]",hr="[object Undefined]",Be=He?He.toStringTag:void 0;function pr(e){return e==null?e===void 0?hr:fr:Be&&Be in Object(e)?cr(e):lr(e)}var ve=pr;function dr(e){return e!=null&&typeof e=="object"}var oe=dr,yr=ve,vr=oe,_r="[object Symbol]";function gr(e){return typeof e=="symbol"||vr(e)&&yr(e)==_r}var mr=gr,wr=Zt,qe=ie,br=mr,Ge=NaN,Or=/^[-+]0x[0-9a-f]+$/i,Sr=/^0b[01]+$/i,Ar=/^0o[0-7]+$/i,Er=parseInt;function $r(e){if(typeof e=="number")return e;if(br(e))return Ge;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wr(e);var r=Sr.test(e);return r||Ar.test(e)?Er(e.slice(2),r?2:8):Or.test(e)?Ge:+e}var Tr=$r,Ir=ie,_e=kt,ze=Tr,Fr="Expected a function",Cr=Math.max,Rr=Math.min;function jr(e,t,r){var n,i,o,s,c,h,d=0,y=!1,_=!1,g=!0;if(typeof e!="function")throw new TypeError(Fr);t=ze(t)||0,Ir(r)&&(y=!!r.leading,_="maxWait"in r,o=_?Cr(ze(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g);function v(b){var T=n,j=i;return n=i=void 0,d=b,s=e.apply(j,T),s}function I(b){return d=b,c=setTimeout(Z,t),y?v(b):s}function B(b){var T=b-h,j=b-d,ne=t-T;return _?Rr(ne,o-j):ne}function W(b){var T=b-h,j=b-d;return h===void 0||T>=t||T<0||_&&j>=o}function Z(){var b=_e();if(W(b))return X(b);c=setTimeout(Z,B(b))}function X(b){return c=void 0,g&&n?v(b):(n=i=void 0,s)}function q(){c!==void 0&&clearTimeout(c),d=0,n=h=i=c=void 0}function Le(){return c===void 0?s:X(_e())}function G(){var b=_e(),T=W(b);if(n=arguments,i=this,h=b,T){if(c===void 0)return I(h);if(_)return clearTimeout(c),c=setTimeout(Z,t),v(h)}return c===void 0&&(c=setTimeout(Z,t)),s}return G.cancel=q,G.flush=Le,G}var Pr=jr;const ke=de(Pr),Dr=f.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(e,{emit:t}){const r=e,n=t;let i=r.init;Array.isArray(i)&&(i=Object.assign({},...i));const o=f.reactive({...i});let s=r.formInit;Array.isArray(s)&&(s=Object.assign({},...s));const c=f.reactive({...s}),h=f.inject("vars"),d=f.inject("plaid");return f.onMounted(()=>{setTimeout(()=>{if(r.useDebounce){const y=r.useDebounce,_=ke(g=>{n("change-debounced",g)},y);console.log("watched"),f.watch(o,(g,v)=>{_({locals:g,form:c,oldLocals:v,oldForm:c})}),f.watch(c,(g,v)=>{_({locals:o,form:g,oldLocals:o,oldForm:v})})}},0)}),(y,_)=>f.renderSlot(y.$slots,"default",{locals:o,form:c,plaid:f.unref(d),vars:f.unref(h)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var e;function t(a){var u=0;return function(){return u>>0)+"_",m=0;return u}),o("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),l=0;l"u"||!FormData.prototype.keys)){var T=function(a,u){for(var l=0;l(r[n]=!0,r),{}):void 0}const xt=l.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(e,{attrs:t}){let r=Object.create(null);const n=l.ref(!0);return l.onActivated(()=>{n.value=!0}),l.onDeactivated(()=>{n.value=!1}),l.onMounted(()=>{Object.keys(t).filter(i=>i.startsWith("on")).forEach(i=>{const o=t[i],s=Array.isArray(o)?o:[o],u=i.match(Pt);if(!u){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${i}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,h,p]=u;h=h.toLowerCase();const y=s.map(g=>v=>{const I=Array.isArray(e.filter)?e.filter:[e.filter];n.value&&I.every(B=>B(v,g,h))&&(e.stop&&v.stopPropagation(),e.prevent&&v.preventDefault(),g(v))}),_=Lt(p);y.forEach(g=>{window[e.target].addEventListener(h,g,_)}),r[i]=[y,h,_]})}),l.onBeforeUnmount(()=>{for(const i in r){const[o,s,u]=r[i];o.forEach(h=>{window[e.target].removeEventListener(s,h,u)})}r={}}),()=>null}});var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ie=Nt,Ut=typeof J=="object"&&J&&J.Object===Object&&J,Mt=Ut,Ht=Mt,Bt=typeof self=="object"&&self&&self.Object===Object&&self,qt=Ht||Bt||Function("return this")(),ee=qt,Gt=ee,zt=function(){return Gt.Date.now()},kt=zt,Jt=/\s/;function Kt(e){for(var t=e.length;t--&&Jt.test(e.charAt(t)););return t}var Vt=Kt,Qt=Vt,Yt=/^\s+/;function Wt(e){return e&&e.slice(0,Qt(e)+1).replace(Yt,"")}var Zt=Wt,Xt=ee,er=Xt.Symbol,ye=er,Ue=ye,Me=Object.prototype,tr=Me.hasOwnProperty,rr=Me.toString,te=Ue?Ue.toStringTag:void 0;function nr(e){var t=tr.call(e,te),r=e[te];try{e[te]=void 0;var n=!0}catch{}var i=rr.call(e);return n&&(t?e[te]=r:delete e[te]),i}var ir=nr,or=Object.prototype,ar=or.toString;function sr(e){return ar.call(e)}var cr=sr,He=ye,ur=ir,fr=cr,lr="[object Null]",hr="[object Undefined]",Be=He?He.toStringTag:void 0;function dr(e){return e==null?e===void 0?hr:lr:Be&&Be in Object(e)?ur(e):fr(e)}var ve=dr;function pr(e){return e!=null&&typeof e=="object"}var oe=pr,yr=ve,vr=oe,_r="[object Symbol]";function gr(e){return typeof e=="symbol"||vr(e)&&yr(e)==_r}var mr=gr,wr=Zt,qe=ie,br=mr,Ge=NaN,Or=/^[-+]0x[0-9a-f]+$/i,Ar=/^0b[01]+$/i,Sr=/^0o[0-7]+$/i,Er=parseInt;function $r(e){if(typeof e=="number")return e;if(br(e))return Ge;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wr(e);var r=Ar.test(e);return r||Sr.test(e)?Er(e.slice(2),r?2:8):Or.test(e)?Ge:+e}var Tr=$r,Ir=ie,_e=kt,ze=Tr,Fr="Expected a function",Cr=Math.max,Rr=Math.min;function jr(e,t,r){var n,i,o,s,u,h,p=0,y=!1,_=!1,g=!0;if(typeof e!="function")throw new TypeError(Fr);t=ze(t)||0,Ir(r)&&(y=!!r.leading,_="maxWait"in r,o=_?Cr(ze(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g);function v(b){var T=n,j=i;return n=i=void 0,p=b,s=e.apply(j,T),s}function I(b){return p=b,u=setTimeout(Z,t),y?v(b):s}function B(b){var T=b-h,j=b-p,ne=t-T;return _?Rr(ne,o-j):ne}function W(b){var T=b-h,j=b-p;return h===void 0||T>=t||T<0||_&&j>=o}function Z(){var b=_e();if(W(b))return X(b);u=setTimeout(Z,B(b))}function X(b){return u=void 0,g&&n?v(b):(n=i=void 0,s)}function q(){u!==void 0&&clearTimeout(u),p=0,n=h=i=u=void 0}function Le(){return u===void 0?s:X(_e())}function G(){var b=_e(),T=W(b);if(n=arguments,i=this,h=b,T){if(u===void 0)return I(h);if(_)return clearTimeout(u),u=setTimeout(Z,t),v(h)}return u===void 0&&(u=setTimeout(Z,t)),s}return G.cancel=q,G.flush=Le,G}var Pr=jr;const ke=pe(Pr),Dr=l.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(e,{emit:t}){const r=e,n=t;let i=r.init;Array.isArray(i)&&(i=Object.assign({},...i));const o=l.reactive({...i});let s=r.formInit;Array.isArray(s)&&(s=Object.assign({},...s));const u=l.reactive({...s}),h=l.inject("vars"),p=l.inject("plaid");return l.onMounted(()=>{setTimeout(()=>{if(r.useDebounce){const y=r.useDebounce,_=ke(g=>{n("change-debounced",g)},y);console.log("watched"),l.watch(o,(g,v)=>{_({locals:g,form:u,oldLocals:v,oldForm:u})}),l.watch(u,(g,v)=>{_({locals:o,form:g,oldLocals:o,oldForm:v})})}},0)}),(y,_)=>l.renderSlot(y.$slots,"default",{locals:o,form:u,plaid:l.unref(p),vars:l.unref(h)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var e;function t(a){var c=0;return function(){return c>>0)+"_",m=0;return c}),o("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"||!FormData.prototype.keys)){var T=function(a,c){for(var f=0;fe==null,Hr=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),me=Symbol("encodeFragmentIdentifier");function Br(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[",i,"]"].join("")]:[...r,[O(t,e),"[",O(i,e),"]=",O(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[]"].join("")]:[...r,[O(t,e),"[]=",O(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),":list="].join("")]:[...r,[O(t,e),":list=",O(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[O(r,e),t,O(i,e)].join("")]:[[n,O(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,O(t,e)]:[...r,[O(t,e),"=",O(n,e)].join("")]}}function qr(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"comma":case"separator":return(r,n,i)=>{const o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&D(n,e).includes(e.arrayFormatSeparator);n=s?D(n,e):n;const c=o||s?n.split(e.arrayFormatSeparator).map(h=>D(h,e)):n===null?n:D(n,e);i[r]=c};case"bracket-separator":return(r,n,i)=>{const o=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!o){i[r]=n&&D(n,e);return}const s=n===null?[]:n.split(e.arrayFormatSeparator).map(c=>D(c,e));if(i[r]===void 0){i[r]=s;return}i[r]=[...i[r],...s]};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[...[i[r]].flat(),n]}}}function Ye(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function O(e,t){return t.encode?t.strict?Hr(e):encodeURIComponent(e):e}function D(e,t){return t.decode?Nr(e):e}function We(e){return Array.isArray(e)?e.sort():typeof e=="object"?We(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function Ze(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Gr(e){let t="";const r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Xe(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function we(e){e=Ze(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function be(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},Ye(t.arrayFormatSeparator);const r=qr(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,c]=Qe(o,"=");s===void 0&&(s=o),c=c===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?c:D(c,t),r(D(s,t),c,n)}for(const[i,o]of Object.entries(n))if(typeof o=="object"&&o!==null)for(const[s,c]of Object.entries(o))o[s]=Xe(c,t);else n[i]=Xe(o,t);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{const s=n[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?We(s):s,i},Object.create(null))}function et(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},Ye(t.arrayFormatSeparator);const r=s=>t.skipNull&&Ur(e[s])||t.skipEmptyString&&e[s]==="",n=Br(t),i={};for(const[s,c]of Object.entries(e))r(s)||(i[s]=c);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const c=e[s];return c===void 0?"":c===null?O(s,t):Array.isArray(c)?c.length===0&&t.arrayFormat==="bracket-separator"?O(s,t)+"[]":c.reduce(n(s),[]).join("&"):O(s,t)+"="+O(c,t)}).filter(s=>s.length>0).join("&")}function tt(e,t){var i;t={decode:!0,...t};let[r,n]=Qe(e,"#");return r===void 0&&(r=e),{url:((i=r==null?void 0:r.split("?"))==null?void 0:i[0])??"",query:be(we(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:D(n,t)}:{}}}function rt(e,t){t={encode:!0,strict:!0,[me]:!0,...t};const r=Ze(e.url).split("?")[0]||"",n=we(e.url),i={...be(n,{sort:!1}),...e.query};let o=et(i,t);o&&(o=`?${o}`);let s=Gr(e.url);if(typeof e.fragmentIdentifier=="string"){const c=new URL(r);c.hash=e.fragmentIdentifier,s=t[me]?c.hash:`#${e.fragmentIdentifier}`}return`${r}${o}${s}`}function nt(e,t,r){r={parseFragmentIdentifier:!0,[me]:!1,...r};const{url:n,query:i,fragmentIdentifier:o}=tt(e,r);return rt({url:n,query:Mr(i,t),fragmentIdentifier:o},r)}function zr(e,t,r){const n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return nt(e,n,r)}const L=Object.freeze(Object.defineProperty({__proto__:null,exclude:zr,extract:we,parse:be,parseUrl:tt,pick:nt,stringify:et,stringifyUrl:rt},Symbol.toStringTag,{value:"Module"}));function kr(e,t){for(var r=-1,n=t.length,i=e.length;++r0&&r(c)?t>1?ut(c,t-1,r,n,i):ln(i,c):n||(i[i.length]=c)}return i}var hn=ut;function pn(e){return e}var ct=pn;function dn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var yn=dn,vn=yn,lt=Math.max;function _n(e,t,r){return t=lt(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=lt(n.length-t,0),s=Array(o);++i0){if(++t>=ui)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hi=fi,pi=si,di=hi,yi=di(pi),vi=yi,_i=ct,gi=gn,mi=vi;function wi(e,t){return mi(gi(e,t,_i),e+"")}var dt=wi,bi=ae,Oi=bi(Object,"create"),se=Oi,yt=se;function Si(){this.__data__=yt?yt(null):{},this.size=0}var Ai=Si;function Ei(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $i=Ei,Ti=se,Ii="__lodash_hash_undefined__",Fi=Object.prototype,Ci=Fi.hasOwnProperty;function Ri(e){var t=this.__data__;if(Ti){var r=t[e];return r===Ii?void 0:r}return Ci.call(t,e)?t[e]:void 0}var ji=Ri,Pi=se,Di=Object.prototype,Li=Di.hasOwnProperty;function xi(e){var t=this.__data__;return Pi?t[e]!==void 0:Li.call(t,e)}var Ni=xi,Mi=se,Ui="__lodash_hash_undefined__";function Hi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mi&&t===void 0?Ui:t,this}var Bi=Hi,qi=Ai,Gi=$i,zi=ji,ki=Ni,Ji=Bi;function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var lo=co,fo=ue;function ho(e,t){var r=this.__data__,n=fo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var po=ho,yo=Qi,vo=io,_o=so,go=lo,mo=po;function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var gt=_a;function ga(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Ma){var d=t?null:xa(e);if(d)return Na(d);s=!1,i=La,h=new ja}else h=t?[]:c;e:for(;++n-1&&e%1==0&&e<=Ba}var Ga=qa,za=ft,ka=Ga;function Ja(e){return e!=null&&ka(e.length)&&!za(e)}var Ka=Ja,Va=Ka,Qa=oe;function Ya(e){return Qa(e)&&Va(e)}var Ot=Ya,Wa=hn,Za=dt,Xa=Ha,es=Ot,ts=Za(function(e){return Xa(Wa(e,1,es,!0))}),rs=ts;const ns=de(rs);function is(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r=ds&&(o=ps,s=!1,t=new us(t));e:for(;++i0&&(c=`?${c}`);let y=n.url+c;return n.fragmentIdentifier&&(y=y+"#"+n.fragmentIdentifier),{pushStateArgs:[{query:i,url:y},"",y],eventURL:`${n.url}?${L.stringify(h,d)}`}}function As(e,t,r){if(!r.value)return;let n=r.value;Array.isArray(r.value)||(n=[r.value]);let i=e[t];if(i&&!Array.isArray(i)&&(i=[i]),r.add){e[t]=ns(i,n);return}if(r.remove){const o=Os(i,...n);o.length===0?delete e[t]:e[t]=o}}function fe(e,t,r){if(!t||t.length===0)return!1;if(r instanceof Event)return fe(e,t,r.target);if(r instanceof HTMLInputElement){if(r.files)return fe(e,t,r.files);switch(r.type){case"checkbox":return r.checked?M(e,t,r.value):e.has(t)?(e.delete(t),!0):!1;case"radio":return r.checked?M(e,t,r.value):!1;default:return M(e,t,r.value)}}if(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)return M(e,t,r.value);if(r==null)return M(e,t,"");let n=!1;if(e.has(t)&&(n=!0,e.delete(t)),Array.isArray(r)||r instanceof FileList){for(let i=0;i{this.$el&&this.$el.style&&this.$el.style.height&&(n.value.style.height=this.$el.style.height)})},template:e})}function St(e,t,r=""){if(e==null)return;const n=Array.isArray(e);if(n&&e.length>0&&(e[0]instanceof File||e[0]instanceof Blob||typeof e[0]=="string")){fe(t,r,e);return}return Object.keys(e).forEach(i=>{const o=e[i],s=r?n?`${r}[${i}]`:`${r}.${i}`:i;typeof o=="object"&&!(o instanceof File)&&!(o instanceof Date)?St(o,t,s):fe(t,s,o)}),t}function Es(e,t){if(t.length===0)return"";const r=o=>Object.keys(o).sort().map(s=>{const c=encodeURIComponent(o[s]);if(c.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${c}`);return c}).join("_"),n=o=>o.map(s=>typeof s=="object"&&!Array.isArray(s)?r(s):encodeURIComponent(s)).join(","),i=[];return t.forEach(o=>{const s=e[o.json_name];if(s===void 0)return;if(o.encoder){o.encoder({value:s,queries:i,tag:o});return}const c=encodeURIComponent(o.name);if(!(!s&&o.omitempty))if(s===null)i.push(`${c}=`);else if(Array.isArray(s)){if(o.omitempty&&e[o.json_name].length===0)return;i.push(`${c}=${n(e[o.json_name])}`)}else typeof s=="object"?i.push(`${c}=${r(s)}`):i.push(`${c}=${encodeURIComponent(s)}`)}),i.join("&")}function $s(e,t){for(const r in t){if(e[r]===void 0)return!1;const n=Array.isArray(e[r])?e[r]:[e[r]],i=Array.isArray(t[r])?t[r]:[t[r]],o={};n.forEach(s=>{o[s]=(o[s]||0)+1});for(const s of i){if(!o[s]||o[s]===0)return!1;o[s]--}}return!0}function Ts(e,t,r){r===void 0&&(r={arrayFormat:"comma"});const n=L.parse(e,r),i=L.parse(t,r);return $s(n,i)}const Is=f.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(e){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const t=f.ref(),r=e,n=f.shallowRef(null),i=f.ref(0),o=h=>{n.value=Ae(h,r.form,r.locals,t)},s=f.useSlots(),c=()=>{if(s.default){n.value=Ae('',r.locals,t);return}const h=r.loader;h&&h.loadPortalBody(!0).form(r.form).go().then(d=>{d&&o(d.body)})};return f.onMounted(()=>{const h=r.portalName;h&&(window.__goplaid.portals[h]={updatePortalTemplate:o,reload:c}),c()}),f.onUpdated(()=>{if(r.autoReloadInterval&&i.value==0){const h=parseInt(r.autoReloadInterval+"");if(h==0)return;i.value=setInterval(()=>{c()},h)}i.value&&i.value>0&&r.autoReloadInterval==0&&(clearInterval(i.value),i.value=0)}),f.onBeforeUnmount(()=>{i.value&&i.value>0&&clearInterval(i.value)}),(h,d)=>e.visible?(f.openBlock(),f.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:t},[n.value?(f.openBlock(),f.createBlock(f.resolveDynamicComponent(n.value),{key:0},{default:f.withCtx(()=>[f.renderSlot(h.$slots,"default",{form:e.form,locals:e.locals})]),_:3})):f.createCommentVNode("",!0)],512)):f.createCommentVNode("",!0)}}),Fs=f.defineComponent({__name:"go-plaid-run-script",props:{script:{type:Function,required:!0}},setup(e){const t=e;return f.onMounted(()=>{t.script()}),(r,n)=>f.renderSlot(r.$slots,"default")}}),Cs=f.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(e){const r=f.inject("vars").__emitter,n=f.useAttrs(),i={};return f.onMounted(()=>{Object.keys(n).forEach(o=>{if(o.startsWith("on")){const s=n[o],c=o.slice(2);i[c]=s,r.on(c,s)}})}),f.onUnmounted(()=>{Object.keys(i).forEach(o=>{r.off(o,i[o])})}),(o,s)=>f.renderSlot(o.$slots,"default")}}),Rs=f.defineComponent({__name:"parent-size-observer",setup(e){const t=f.ref({width:0,height:0});function r(i){const o=i.getBoundingClientRect();t.value.width=o.width,t.value.height=o.height}let n=null;return f.onMounted(()=>{var s;const i=f.getCurrentInstance(),o=(s=i==null?void 0:i.proxy)==null?void 0:s.$el.parentElement;o&&(r(o),n=new ResizeObserver(()=>{r(o)}),n.observe(o))}),f.onBeforeUnmount(()=>{n&&n.disconnect()}),(i,o)=>f.renderSlot(i.$slots,"default",{width:t.value.width,height:t.value.height})}});/*! +`),d,`\r +`)}),c.push("--"+a+"--"),new Blob(c,{type:"multipart/form-data; boundary="+a})},P.prototype[Symbol.iterator]=function(){return this.entries()},P.prototype.toString=function(){return"[object FormData]"},N&&!N.matches&&(N.matches=N.matchesSelector||N.mozMatchesSelector||N.msMatchesSelector||N.oMatchesSelector||N.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var c=a.length;0<=--c&&a.item(c)!==this;);return-1e==null,Hr=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),me=Symbol("encodeFragmentIdentifier");function Br(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[",i,"]"].join("")]:[...r,[O(t,e),"[",O(i,e),"]=",O(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[]"].join("")]:[...r,[O(t,e),"[]=",O(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),":list="].join("")]:[...r,[O(t,e),":list=",O(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[O(r,e),t,O(i,e)].join("")]:[[n,O(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,O(t,e)]:[...r,[O(t,e),"=",O(n,e)].join("")]}}function qr(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"comma":case"separator":return(r,n,i)=>{const o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&D(n,e).includes(e.arrayFormatSeparator);n=s?D(n,e):n;const u=o||s?n.split(e.arrayFormatSeparator).map(h=>D(h,e)):n===null?n:D(n,e);i[r]=u};case"bracket-separator":return(r,n,i)=>{const o=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!o){i[r]=n&&D(n,e);return}const s=n===null?[]:n.split(e.arrayFormatSeparator).map(u=>D(u,e));if(i[r]===void 0){i[r]=s;return}i[r]=[...i[r],...s]};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[...[i[r]].flat(),n]}}}function Ye(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function O(e,t){return t.encode?t.strict?Hr(e):encodeURIComponent(e):e}function D(e,t){return t.decode?Nr(e):e}function We(e){return Array.isArray(e)?e.sort():typeof e=="object"?We(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function Ze(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Gr(e){let t="";const r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Xe(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function we(e){e=Ze(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function be(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},Ye(t.arrayFormatSeparator);const r=qr(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,u]=Qe(o,"=");s===void 0&&(s=o),u=u===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?u:D(u,t),r(D(s,t),u,n)}for(const[i,o]of Object.entries(n))if(typeof o=="object"&&o!==null)for(const[s,u]of Object.entries(o))o[s]=Xe(u,t);else n[i]=Xe(o,t);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{const s=n[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?We(s):s,i},Object.create(null))}function et(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},Ye(t.arrayFormatSeparator);const r=s=>t.skipNull&&Mr(e[s])||t.skipEmptyString&&e[s]==="",n=Br(t),i={};for(const[s,u]of Object.entries(e))r(s)||(i[s]=u);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const u=e[s];return u===void 0?"":u===null?O(s,t):Array.isArray(u)?u.length===0&&t.arrayFormat==="bracket-separator"?O(s,t)+"[]":u.reduce(n(s),[]).join("&"):O(s,t)+"="+O(u,t)}).filter(s=>s.length>0).join("&")}function tt(e,t){var i;t={decode:!0,...t};let[r,n]=Qe(e,"#");return r===void 0&&(r=e),{url:((i=r==null?void 0:r.split("?"))==null?void 0:i[0])??"",query:be(we(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:D(n,t)}:{}}}function rt(e,t){t={encode:!0,strict:!0,[me]:!0,...t};const r=Ze(e.url).split("?")[0]||"",n=we(e.url),i={...be(n,{sort:!1}),...e.query};let o=et(i,t);o&&(o=`?${o}`);let s=Gr(e.url);if(typeof e.fragmentIdentifier=="string"){const u=new URL(r);u.hash=e.fragmentIdentifier,s=t[me]?u.hash:`#${e.fragmentIdentifier}`}return`${r}${o}${s}`}function nt(e,t,r){r={parseFragmentIdentifier:!0,[me]:!1,...r};const{url:n,query:i,fragmentIdentifier:o}=tt(e,r);return rt({url:n,query:Ur(i,t),fragmentIdentifier:o},r)}function zr(e,t,r){const n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return nt(e,n,r)}const L=Object.freeze(Object.defineProperty({__proto__:null,exclude:zr,extract:we,parse:be,parseUrl:tt,pick:nt,stringify:et,stringifyUrl:rt},Symbol.toStringTag,{value:"Module"}));function kr(e,t){for(var r=-1,n=t.length,i=e.length;++r0&&r(u)?t>1?ct(u,t-1,r,n,i):fn(i,u):n||(i[i.length]=u)}return i}var hn=ct;function dn(e){return e}var ut=dn;function pn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var yn=pn,vn=yn,ft=Math.max;function _n(e,t,r){return t=ft(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=ft(n.length-t,0),s=Array(o);++i0){if(++t>=ci)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hi=li,di=si,pi=hi,yi=pi(di),vi=yi,_i=ut,gi=gn,mi=vi;function wi(e,t){return mi(gi(e,t,_i),e+"")}var pt=wi,bi=ae,Oi=bi(Object,"create"),se=Oi,yt=se;function Ai(){this.__data__=yt?yt(null):{},this.size=0}var Si=Ai;function Ei(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $i=Ei,Ti=se,Ii="__lodash_hash_undefined__",Fi=Object.prototype,Ci=Fi.hasOwnProperty;function Ri(e){var t=this.__data__;if(Ti){var r=t[e];return r===Ii?void 0:r}return Ci.call(t,e)?t[e]:void 0}var ji=Ri,Pi=se,Di=Object.prototype,Li=Di.hasOwnProperty;function xi(e){var t=this.__data__;return Pi?t[e]!==void 0:Li.call(t,e)}var Ni=xi,Ui=se,Mi="__lodash_hash_undefined__";function Hi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ui&&t===void 0?Mi:t,this}var Bi=Hi,qi=Si,Gi=$i,zi=ji,ki=Ni,Ji=Bi;function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var fo=uo,lo=ce;function ho(e,t){var r=this.__data__,n=lo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var po=ho,yo=Qi,vo=io,_o=so,go=fo,mo=po;function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var gt=_a;function ga(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Ua){var p=t?null:xa(e);if(p)return Na(p);s=!1,i=La,h=new ja}else h=t?[]:u;e:for(;++n-1&&e%1==0&&e<=Ba}var Ga=qa,za=lt,ka=Ga;function Ja(e){return e!=null&&ka(e.length)&&!za(e)}var Ka=Ja,Va=Ka,Qa=oe;function Ya(e){return Qa(e)&&Va(e)}var Ot=Ya,Wa=hn,Za=pt,Xa=Ha,es=Ot,ts=Za(function(e){return Xa(Wa(e,1,es,!0))}),rs=ts;const ns=pe(rs);function is(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r=ps&&(o=ds,s=!1,t=new cs(t));e:for(;++i0&&(u=`?${u}`);let y=n.url+u;return n.fragmentIdentifier&&(y=y+"#"+n.fragmentIdentifier),{pushStateArgs:[{query:i,url:y},"",y],eventURL:`${n.url}?${L.stringify(h,p)}`}}function Ss(e,t,r){if(!r.value)return;let n=r.value;Array.isArray(r.value)||(n=[r.value]);let i=e[t];if(i&&!Array.isArray(i)&&(i=[i]),r.add){e[t]=ns(i,n);return}if(r.remove){const o=Os(i,...n);o.length===0?delete e[t]:e[t]=o}}function le(e,t,r){if(!t||t.length===0)return!1;if(r instanceof Event)return le(e,t,r.target);if(r instanceof HTMLInputElement){if(r.files)return le(e,t,r.files);switch(r.type){case"checkbox":return r.checked?U(e,t,r.value):e.has(t)?(e.delete(t),!0):!1;case"radio":return r.checked?U(e,t,r.value):!1;default:return U(e,t,r.value)}}if(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)return U(e,t,r.value);if(r==null)return U(e,t,"");let n=!1;if(e.has(t)&&(n=!0,e.delete(t)),Array.isArray(r)||r instanceof FileList){for(let i=0;i{this.$el&&this.$el.style&&this.$el.style.height&&(n.value.style.height=this.$el.style.height)})},template:e})}function At(e,t,r=""){if(e==null)return;const n=Array.isArray(e);if(n&&e.length>0&&(e[0]instanceof File||e[0]instanceof Blob||typeof e[0]=="string")){le(t,r,e);return}return Object.keys(e).forEach(i=>{const o=e[i],s=r?n?`${r}[${i}]`:`${r}.${i}`:i;typeof o=="object"&&!(o instanceof File)&&!(o instanceof Date)?At(o,t,s):le(t,s,o)}),t}function Es(e,t){if(t.length===0)return"";const r=o=>Object.keys(o).sort().map(s=>{const u=encodeURIComponent(o[s]);if(u.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${u}`);return u}).join("_"),n=o=>o.map(s=>typeof s=="object"&&!Array.isArray(s)?r(s):encodeURIComponent(s)).join(","),i=[];return t.forEach(o=>{const s=e[o.json_name];if(s===void 0)return;if(o.encoder){o.encoder({value:s,queries:i,tag:o});return}const u=encodeURIComponent(o.name);if(!(!s&&o.omitempty))if(s===null)i.push(`${u}=`);else if(Array.isArray(s)){if(o.omitempty&&e[o.json_name].length===0)return;i.push(`${u}=${n(e[o.json_name])}`)}else typeof s=="object"?i.push(`${u}=${r(s)}`):i.push(`${u}=${encodeURIComponent(s)}`)}),i.join("&")}function $s(e,t){for(const r in t){if(e[r]===void 0)return!1;const n=Array.isArray(e[r])?e[r]:[e[r]],i=Array.isArray(t[r])?t[r]:[t[r]],o={};n.forEach(s=>{o[s]=(o[s]||0)+1});for(const s of i){if(!o[s]||o[s]===0)return!1;o[s]--}}return!0}function Ts(e,t,r){r===void 0&&(r={arrayFormat:"comma"});const n=L.parse(e,r),i=L.parse(t,r);return $s(n,i)}const Is=l.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(e){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const t=l.ref(),r=e,n=l.shallowRef(null),i=l.ref(0),o=h=>{n.value=Se(h,r.form,r.locals,t)},s=l.useSlots(),u=()=>{if(s.default){n.value=Se('',r.locals,t);return}const h=r.loader;h&&h.loadPortalBody(!0).form(r.form).go().then(p=>{p&&o(p.body)})};return l.onMounted(()=>{const h=r.portalName;h&&(window.__goplaid.portals[h]={updatePortalTemplate:o,reload:u}),u()}),l.onUpdated(()=>{if(r.autoReloadInterval&&i.value==0){const h=parseInt(r.autoReloadInterval+"");if(h==0)return;i.value=setInterval(()=>{u()},h)}i.value&&i.value>0&&r.autoReloadInterval==0&&(clearInterval(i.value),i.value=0)}),l.onBeforeUnmount(()=>{i.value&&i.value>0&&clearInterval(i.value)}),(h,p)=>e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:t},[n.value?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{key:0},{default:l.withCtx(()=>[l.renderSlot(h.$slots,"default",{form:e.form,locals:e.locals})]),_:3})):l.createCommentVNode("",!0)],512)):l.createCommentVNode("",!0)}}),Fs=l.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(e){const r=l.inject("vars").__emitter,n=l.useAttrs(),i={};return l.onMounted(()=>{Object.keys(n).forEach(o=>{if(o.startsWith("on")){const s=n[o],u=o.slice(2);i[u]=s,r.on(u,s)}})}),l.onUnmounted(()=>{Object.keys(i).forEach(o=>{r.off(o,i[o])})}),(o,s)=>l.createCommentVNode("",!0)}}),Cs=l.defineComponent({__name:"parent-size-observer",setup(e){const t=l.ref({width:0,height:0});function r(i){const o=i.getBoundingClientRect();t.value.width=o.width,t.value.height=o.height}let n=null;return l.onMounted(()=>{var s;const i=l.getCurrentInstance(),o=(s=i==null?void 0:i.proxy)==null?void 0:s.$el.parentElement;o&&(r(o),n=new ResizeObserver(()=>{r(o)}),n.observe(o))}),l.onBeforeUnmount(()=>{n&&n.disconnect()}),(i,o)=>l.renderSlot(i.$slots,"default",{width:t.value.width,height:t.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var js=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Ps=Object.prototype.hasOwnProperty;function Ee(e,t){return Ps.call(e,t)}function $e(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function U(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function At(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ie(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&h[y-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&g===void 0&&(d[v]===void 0?g=h.slice(0,y).join("/"):y==_-1&&(g=t.path),g!==void 0&&I(t,0,e,g)),y++,Array.isArray(d)){if(v==="-")v=d.length;else{if(r&&!Te(v))throw new w("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Te(v)&&(v=~~v)}if(y>=_){if(r&&t.op==="add"&&v>d.length)throw new w("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var s=Ls[t.op].call(t,d,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}}else if(y>=_){var s=Y[t.op].call(t,d,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}if(d=d[v],r&&y<_&&(!d||typeof d!="object"))throw new w("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,t,e)}}}function Fe(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=F(e));for(var o=new Array(t.length),s=0,c=t.length;s0)throw new w('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new w("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ie(e.value))throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,o=n.split("/").length;if(i!==o+1&&i!==o)throw new w("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new w("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var s={op:"_get",path:e.from,value:void 0},c=Tt([s],r);if(c&&c.name==="OPERATION_PATH_UNRESOLVABLE")throw new w("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new w("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function Tt(e,t,r){try{if(!Array.isArray(e))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Fe(F(t),F(e),r||!0);else{r=r||pe;for(var n=0;n=48&&n<=57){t++;continue}return!1}return!0}function M(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function St(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ie(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&h[y-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&g===void 0&&(p[v]===void 0?g=h.slice(0,y).join("/"):y==_-1&&(g=t.path),g!==void 0&&I(t,0,e,g)),y++,Array.isArray(p)){if(v==="-")v=p.length;else{if(r&&!Te(v))throw new w("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Te(v)&&(v=~~v)}if(y>=_){if(r&&t.op==="add"&&v>p.length)throw new w("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var s=Ds[t.op].call(t,p,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}}else if(y>=_){var s=Y[t.op].call(t,p,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}if(p=p[v],r&&y<_&&(!p||typeof p!="object"))throw new w("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,t,e)}}}function Fe(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=F(e));for(var o=new Array(t.length),s=0,u=t.length;s0)throw new w('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new w("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ie(e.value))throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,o=n.split("/").length;if(i!==o+1&&i!==o)throw new w("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new w("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var s={op:"_get",path:e.from,value:void 0},u=Tt([s],r);if(u&&u.name==="OPERATION_PATH_UNRESOLVABLE")throw new w("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new w("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function Tt(e,t,r){try{if(!Array.isArray(e))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Fe(F(t),F(e),r||!0);else{r=r||de;for(var n=0;n0&&(e.patches=[],e.callback&&e.callback(n)),n}function je(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=$e(t),s=$e(e),c=!1,h=s.length-1;h>=0;h--){var d=s[h],y=e[d];if(Ee(t,d)&&!(t[d]===void 0&&y!==void 0&&Array.isArray(t)===!1)){var _=t[d];typeof y=="object"&&y!=null&&typeof _=="object"&&_!=null&&Array.isArray(y)===Array.isArray(_)?je(y,_,r,n+"/"+U(d),i):y!==_&&(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"replace",path:n+"/"+U(d),value:F(_)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+U(d),value:F(y)}),r.push({op:"remove",path:n+"/"+U(d)}),c=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!c&&o.length==s.length))for(var h=0;h{var r;return t instanceof Error?(r=this.ignoreErrors)==null?void 0:r.includes(t.message):!1})}eventFunc(t){return this._eventFuncID.id=t,this}updateRootTemplate(t){return this._updateRootTemplate=t,this}eventFuncID(t){return this._eventFuncID=t,this}reload(){return this._eventFuncID.id="__reload__",this}url(t){return this._url=t,this}vars(t){return this._vars=t,this}loadPortalBody(t){return this._loadPortalBody=t,this}locals(t){return this._locals=t,this}calcValue(t){return typeof t=="function"?t(this):t}query(t,r){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[t]=this.calcValue(r),this}mergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=t,this}clearMergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=t,this}location(t){return this._location=t,this}stringQuery(t){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(t),this}stringifyOptions(t){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(t),this}pushState(t){return this._pushState=this.calcValue(t),this}queries(t){return this._location||(this._location={}),this._location.query=t,this}pushStateURL(t){return this._location||(this._location={}),this._location.url=this.calcValue(t),this.pushState(!0),this}form(t){return this._form=t,this}fieldValue(t,r){if(!this._form)throw new Error("form not exist");return this._form[t]=this.calcValue(r),this}popstate(t){return this._popstate=t,this}run(t){return typeof t=="function"?t(this):new Function(t).apply(this),this}method(t){return this._method=t,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(t){return!t||!t.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(t.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const t=this.buildPushStateArgs();t&&window.history.pushState(...t)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const t={method:"POST",redirect:"follow"};if(this._method&&(t.method=this._method),t.method==="POST"){const n=new FormData;St(this._form,n),t.body=n}window.dispatchEvent(new Event("fetchStart"));const r=this.buildFetchURL();return fetch(r,t).then(n=>n.redirected?(document.location.replace(n.url),{}):n.json()).then(n=>(n.runScript&&new Function("vars","locals","form","plaid",n.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const i=Pe().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return i.parent=this,i}]),n)).then(n=>{if(n.pageTitle&&(document.title=n.pageTitle),n.redirectURL&&document.location.replace(n.redirectURL),n.reloadPortals&&n.reloadPortals.length>0)for(const i of n.reloadPortals){const o=window.__goplaid.portals[i];o&&o.reload()}if(n.updatePortals&&n.updatePortals.length>0)for(const i of n.updatePortals){const{updatePortalTemplate:o}=window.__goplaid.portals[i.name];o&&o(i.body)}return n.pushState?Pe().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(n.pushState).go():(this._loadPortalBody&&n.body||n.body&&this._updateRootTemplate(n.body),n)}).catch(n=>{console.log(n),this.isIgnoreError(n)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const t=window.location.href;this._buildPushStateResult=Ss({...this._eventFuncID,location:this._location},this._url||t)}emit(t,...r){this._vars&&this._vars.__emitter.emit(t,...r)}applyJsonPatch(t,r){return Js.applyPatch(t,r)}encodeObjectToQuery(t,r){return Es(t,r)}isRawQuerySubset(t,r,n){return Ts(t,r,n)}}function Pe(){return new Ks}const Vs={mounted:(e,t,r)=>{var d,y;let n=e;r.component&&(n=(y=(d=r.component)==null?void 0:d.proxy)==null?void 0:y.$el);const i=t.arg||"scroll",s=L.parse(location.hash)[i];let c="";Array.isArray(s)?c=s[0]||"":c=s||"";const h=c.split("_");h.length>=2&&(n.scrollTop=parseInt(h[0]),n.scrollLeft=parseInt(h[1])),n.addEventListener("scroll",ke(function(){const _=L.parse(location.hash);_[i]=n.scrollTop+"_"+n.scrollLeft,location.hash=L.stringify(_)},200))}},Qs={mounted:(e,t)=>{const[r,n]=t.value;Object.assign(r,n)}},Ys={mounted:(e,t,r)=>{t.value(e,t,r)}};var It={exports:{}};function De(){}De.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n{t.value=Ae(c,r)};f.provide("updateRootTemplate",n);const i=f.reactive({__emitter:new Ws}),o=()=>Pe().updateRootTemplate(n).vars(i);f.provide("plaid",o),f.provide("vars",i);const s=f.ref(!1);return f.provide("isFetching",s),f.onMounted(()=>{n(e.initialTemplate),window.addEventListener("fetchStart",()=>{s.value=!0}),window.addEventListener("fetchEnd",()=>{s.value=!1}),window.addEventListener("popstate",c=>{o().onpopstate(c)})}),{current:t}},template:` + */var Ce=new WeakMap,Ns=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),Us=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function Ms(e){return Ce.get(e)}function Hs(e,t){return e.observers.get(t)}function Bs(e,t){e.observers.delete(t.callback)}function qs(e,t){t.unobserve()}function Gs(e,t){var r=[],n,i=Ms(e);if(!i)i=new Ns(e),Ce.set(e,i);else{var o=Hs(i,t);n=o&&o.observer}if(n)return n;if(n={},i.value=F(e),t){n.callback=t,n.next=null;var s=function(){Re(n)},u=function(){clearTimeout(n.next),n.next=setTimeout(s)};typeof window<"u"&&(window.addEventListener("mouseup",u),window.addEventListener("keyup",u),window.addEventListener("mousedown",u),window.addEventListener("keydown",u),window.addEventListener("change",u))}return n.patches=r,n.object=e,n.unobserve=function(){Re(n),clearTimeout(n.next),Bs(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",u),window.removeEventListener("keyup",u),window.removeEventListener("mousedown",u),window.removeEventListener("keydown",u),window.removeEventListener("change",u))},i.observers.set(t,new Us(t,n)),n}function Re(e,t){t===void 0&&(t=!1);var r=Ce.get(e.object);je(r.value,e.object,e.patches,"",t),e.patches.length&&Fe(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function je(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=$e(t),s=$e(e),u=!1,h=s.length-1;h>=0;h--){var p=s[h],y=e[p];if(Ee(t,p)&&!(t[p]===void 0&&y!==void 0&&Array.isArray(t)===!1)){var _=t[p];typeof y=="object"&&y!=null&&typeof _=="object"&&_!=null&&Array.isArray(y)===Array.isArray(_)?je(y,_,r,n+"/"+M(p),i):y!==_&&(i&&r.push({op:"test",path:n+"/"+M(p),value:F(y)}),r.push({op:"replace",path:n+"/"+M(p),value:F(_)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+M(p),value:F(y)}),r.push({op:"remove",path:n+"/"+M(p)}),u=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!u&&o.length==s.length))for(var h=0;h{var r;return t instanceof Error?(r=this.ignoreErrors)==null?void 0:r.includes(t.message):!1})}eventFunc(t){return this._eventFuncID.id=t,this}updateRootTemplate(t){return this._updateRootTemplate=t,this}eventFuncID(t){return this._eventFuncID=t,this}reload(){return this._eventFuncID.id="__reload__",this}url(t){return this._url=t,this}vars(t){return this._vars=t,this}loadPortalBody(t){return this._loadPortalBody=t,this}locals(t){return this._locals=t,this}calcValue(t){return typeof t=="function"?t(this):t}query(t,r){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[t]=this.calcValue(r),this}mergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=t,this}clearMergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=t,this}location(t){return this._location=t,this}stringQuery(t){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(t),this}stringifyOptions(t){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(t),this}pushState(t){return this._pushState=this.calcValue(t),this}queries(t){return this._location||(this._location={}),this._location.query=t,this}pushStateURL(t){return this._location||(this._location={}),this._location.url=this.calcValue(t),this.pushState(!0),this}form(t){return this._form=t,this}fieldValue(t,r){if(!this._form)throw new Error("form not exist");return this._form[t]=this.calcValue(r),this}popstate(t){return this._popstate=t,this}run(t){return typeof t=="function"?t(this):new Function(t).apply(this),this}method(t){return this._method=t,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(t){return!t||!t.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(t.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const t=this.buildPushStateArgs();t&&window.history.pushState(...t)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const t={method:"POST",redirect:"follow"};if(this._method&&(t.method=this._method),t.method==="POST"){const n=new FormData;At(this._form,n),t.body=n}window.dispatchEvent(new Event("fetchStart"));const r=this.buildFetchURL();return fetch(r,t).then(n=>n.redirected?(document.location.replace(n.url),{}):n.json()).then(n=>(n.runScript&&new Function("vars","locals","form","plaid",n.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const i=Pe().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return i.parent=this,i}]),n)).then(n=>{if(n.pageTitle&&(document.title=n.pageTitle),n.redirectURL&&document.location.replace(n.redirectURL),n.reloadPortals&&n.reloadPortals.length>0)for(const i of n.reloadPortals){const o=window.__goplaid.portals[i];o&&o.reload()}if(n.updatePortals&&n.updatePortals.length>0)for(const i of n.updatePortals){const{updatePortalTemplate:o}=window.__goplaid.portals[i.name];o&&o(i.body)}return n.pushState?Pe().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(n.pushState).go():(this._loadPortalBody&&n.body||n.body&&this._updateRootTemplate(n.body),n)}).catch(n=>{console.log(n),this.isIgnoreError(n)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const t=window.location.href;this._buildPushStateResult=As({...this._eventFuncID,location:this._location},this._url||t)}emit(t,...r){this._vars&&this._vars.__emitter.emit(t,...r)}applyJsonPatch(t,r){return ks.applyPatch(t,r)}encodeObjectToQuery(t,r){return Es(t,r)}isRawQuerySubset(t,r,n){return Ts(t,r,n)}}function Pe(){return new Js}const Ks={mounted:(e,t,r)=>{var p,y;let n=e;r.component&&(n=(y=(p=r.component)==null?void 0:p.proxy)==null?void 0:y.$el);const i=t.arg||"scroll",s=L.parse(location.hash)[i];let u="";Array.isArray(s)?u=s[0]||"":u=s||"";const h=u.split("_");h.length>=2&&(n.scrollTop=parseInt(h[0]),n.scrollLeft=parseInt(h[1])),n.addEventListener("scroll",ke(function(){const _=L.parse(location.hash);_[i]=n.scrollTop+"_"+n.scrollLeft,location.hash=L.stringify(_)},200))}},Vs={mounted:(e,t)=>{const[r,n]=t.value;Object.assign(r,n)}},Qs={created(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Ys={beforeMount(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Ws={mounted(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Zs={beforeUpdate(e,t,r,n){t.value({el:e,binding:t,vnode:r,prevVnode:n,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Xs={updated(e,t,r,n){t.value({el:e,binding:t,vnode:r,prevVnode:n,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},ec={beforeUnmount(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},tc={unmounted(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}};var It={exports:{}};function De(){}De.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n{t.value=Se(u,r)};l.provide("updateRootTemplate",n);const i=l.reactive({__emitter:new rc}),o=()=>Pe().updateRootTemplate(n).vars(i);l.provide("plaid",o),l.provide("vars",i);const s=l.ref(!1);return l.provide("isFetching",s),l.onMounted(()=>{n(e.initialTemplate),window.addEventListener("fetchStart",()=>{s.value=!0}),window.addEventListener("fetchEnd",()=>{s.value=!1}),window.addEventListener("popstate",u=>{o().onpopstate(u)})}),{current:t}},template:`
- `}),Xs={install(e){e.component("GoPlaidScope",Dr),e.component("GoPlaidPortal",Is),e.component("GoPlaidRunScript",Fs),e.component("GoPlaidListener",Cs),e.component("ParentSizeObserver",Rs),e.directive("keep-scroll",Vs),e.directive("assign",Qs),e.directive("run",Ys),e.component("GlobalEvents",xt)}};function eu(e){const t=f.createApp(Zs,{initialTemplate:e});return t.use(Xs),t}const Ft=document.getElementById("app");if(!Ft)throw new Error("#app required");const tu={},Ct=eu(Ft.innerHTML);for(const e of window.__goplaidVueComponentRegisters||[])e(Ct,tu);Ct.mount("#app")}); + `}),ic={install(e){e.component("GoPlaidScope",Dr),e.component("GoPlaidPortal",Is),e.component("GoPlaidListener",Fs),e.component("ParentSizeObserver",Cs),e.directive("keep-scroll",Ks),e.directive("assign",Vs),e.directive("on-created",Qs),e.directive("before-mount",Ys),e.directive("on-mounted",Ws),e.directive("before-update",Zs),e.directive("on-updated",Xs),e.directive("before-unmount",ec),e.directive("on-unmounted",tc),e.component("GlobalEvents",xt)}};function oc(e){const t=l.createApp(nc,{initialTemplate:e});return t.use(ic),t}const Ft=document.getElementById("app");if(!Ft)throw new Error("#app required");const ac={},Ct=oc(Ft.innerHTML);for(const e of window.__goplaidVueComponentRegisters||[])e(Ct,ac);Ct.mount("#app")}); diff --git a/corejs/dist/vue.global.dev.js b/corejs/dist/vue.global.dev.js index c05a8c6..6cef0c1 100644 --- a/corejs/dist/vue.global.dev.js +++ b/corejs/dist/vue.global.dev.js @@ -1,5 +1,5 @@ /** -* vue v3.4.36 +* vue v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ @@ -820,7 +820,7 @@ var Vue = (function (exports) { return isShallow2; } else if (key === "__v_raw") { if (receiver === (isReadonly2 ? isShallow2 ? shallowReadonlyMap : readonlyMap : isShallow2 ? shallowReactiveMap : reactiveMap).get(target) || // receiver is not the reactive proxy, but has the same prototype - // this means the reciever is a user proxy of the reactive proxy + // this means the receiver is a user proxy of the reactive proxy Object.getPrototypeOf(target) === Object.getPrototypeOf(receiver)) { return target; } @@ -2939,7 +2939,7 @@ getter: `, this.getter); } function pruneCacheEntry(key) { const cached = cache.get(key); - if (!current || !isSameVNodeType(cached, current)) { + if (cached && (!current || !isSameVNodeType(cached, current))) { unmount(cached); } else if (current) { resetShapeFlag(current); @@ -3001,6 +3001,10 @@ getter: `, this.getter); return rawVNode; } let vnode = getInnerChild(rawVNode); + if (vnode.type === Comment) { + current = null; + return vnode; + } const comp = vnode.type; const name = getComponentName( isAsyncWrapper(vnode) ? vnode.type.__asyncResolved || {} : comp @@ -4293,7 +4297,7 @@ If you want to remount the same app, move your app creation logic into a factory function inject(key, defaultValue, treatDefaultAsFactory = false) { const instance = currentInstance || currentRenderingInstance; if (instance || currentApp) { - const provides = instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : currentApp._context.provides; + const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0; if (provides && key in provides) { return provides[key]; } else if (arguments.length > 1) { @@ -7193,13 +7197,13 @@ Server rendered element contains fewer child nodes than client vdom.` namespace ); } + container._vnode = vnode; if (!isFlushing) { isFlushing = true; flushPreFlushCbs(); flushPostFlushCbs(); isFlushing = false; } - container._vnode = vnode; }; const internals = { p: patch, @@ -7601,7 +7605,8 @@ Server rendered element contains fewer child nodes than client vdom.` return options.get ? options.get(localValue) : localValue; }, set(value) { - if (!hasChanged(value, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) { + const emittedValue = options.set ? options.set(value) : value; + if (!hasChanged(emittedValue, localValue) && !(prevSetValue !== EMPTY_OBJ && hasChanged(value, prevSetValue))) { return; } const rawProps = i.vnode.props; @@ -7610,7 +7615,6 @@ Server rendered element contains fewer child nodes than client vdom.` localValue = value; trigger(); } - const emittedValue = options.set ? options.set(value) : value; i.emit(`update:${name}`, emittedValue); if (hasChanged(value, emittedValue) && hasChanged(value, prevSetValue) && !hasChanged(emittedValue, prevEmittedValue)) { trigger(); @@ -7648,9 +7652,9 @@ Server rendered element contains fewer child nodes than client vdom.` } = instance; if (emitsOptions) { if (!(event in emitsOptions) && true) { - if (!propsOptions || !(toHandlerKey(event) in propsOptions)) { + if (!propsOptions || !(toHandlerKey(camelize(event)) in propsOptions)) { warn$1( - `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(event)}" prop.` + `Component emitted event "${event}" but it is neither declared in the emits option nor as an "${toHandlerKey(camelize(event))}" prop.` ); } } else { @@ -9676,7 +9680,7 @@ Component that was made reactive: `, return true; } - const version = "3.4.36"; + const version = "3.4.38"; const warn = warn$1 ; const ErrorTypeStrings = ErrorTypeStrings$1 ; const devtools = devtools$1 ; @@ -10099,8 +10103,10 @@ Component that was made reactive: `, setVarsOnVNode(instance.subTree, vars); updateTeleports(vars); }; - onMounted(() => { + onBeforeMount(() => { watchPostEffect(setVars); + }); + onMounted(() => { const ob = new MutationObserver(setVars); ob.observe(instance.subTree.el.parentNode, { childList: true }); onUnmounted(() => ob.disconnect()); @@ -12375,8 +12381,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/; const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/; const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g; - const isMemberExpressionBrowser = (path) => { - path = path.trim().replace(whitespaceRE, (s) => s.trim()); + const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source; + const isMemberExpressionBrowser = (exp) => { + const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim()); let state = 0 /* inMemberExp */; let stateStack = []; let currentOpenBracketCount = 0; @@ -12438,6 +12445,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins return !currentOpenBracketCount && !currentOpenParensCount; }; const isMemberExpression = isMemberExpressionBrowser ; + const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/; + const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp)); + const isFnExpression = isFnExpressionBrowser ; function assert(condition, msg) { if (!condition) { throw new Error(msg || `unexpected compiler condition`); @@ -15269,7 +15279,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins } else { exp = isProp.exp; if (!exp) { - exp = createSimpleExpression(`is`, false, isProp.loc); + exp = createSimpleExpression(`is`, false, isProp.arg.loc); } } if (exp) { @@ -15737,7 +15747,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins }; } - const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/; const transformOn$1 = (dir, node, context, augmentor) => { const { loc, modifiers, arg } = dir; if (!dir.exp && !modifiers.length) { @@ -15781,8 +15790,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins } let shouldCache = context.cacheHandlers && !exp && !context.inVOnce; if (exp) { - const isMemberExp = isMemberExpression(exp.content); - const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content)); + const isMemberExp = isMemberExpression(exp); + const isInlineStatement = !(isMemberExp || isFnExpression(exp)); const hasMultipleStatements = exp.content.includes(`;`); { validateBrowserExpression( @@ -15930,7 +15939,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins return createTransformProps(); } const maybeRef = false; - if (!expString.trim() || !isMemberExpression(expString) && !maybeRef) { + if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) { context.onError( createCompilerError(42, exp.loc) ); diff --git a/corejs/dist/vue.global.prod.js b/corejs/dist/vue.global.prod.js index f9f7c4c..03ceb54 100644 --- a/corejs/dist/vue.global.prod.js +++ b/corejs/dist/vue.global.prod.js @@ -1,9 +1,9 @@ /** -* vue v3.4.36 +* vue v3.4.38 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/var Vue=function(e){"use strict";let t,n,r,i,l,s,o,a,c;/*! #__NO_SIDE_EFFECTS__ */function u(e,t){let n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}let d={},p=[],h=()=>{},f=()=>!1,m=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),g=e=>e.startsWith("onUpdate:"),y=Object.assign,b=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},_=Object.prototype.hasOwnProperty,S=(e,t)=>_.call(e,t),x=Array.isArray,C=e=>"[object Map]"===L(e),k=e=>"[object Set]"===L(e),T=e=>"[object Date]"===L(e),w=e=>"[object RegExp]"===L(e),E=e=>"function"==typeof e,A=e=>"string"==typeof e,N=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,R=e=>(I(e)||E(e))&&E(e.then)&&E(e.catch),O=Object.prototype.toString,L=e=>O.call(e),M=e=>L(e).slice(8,-1),$=e=>"[object Object]"===L(e),P=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=u(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=u("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),V=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},B=/-(\w)/g,U=V(e=>e.replace(B,(e,t)=>t?t.toUpperCase():"")),j=/\B([A-Z])/g,H=V(e=>e.replace(j,"-$1").toLowerCase()),q=V(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=V(e=>e?`on${q(e)}`:""),K=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},J=e=>{let t=parseFloat(e);return isNaN(t)?e:t},X=e=>{let t=A(e)?Number(e):NaN;return isNaN(t)?e:t},Q=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Z=u("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function Y(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(et);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ei(e){let t="";if(A(e))t=e;else if(x(e))for(let n=0;neu(e,t))}let ep=e=>!!(e&&!0===e.__v_isRef),eh=e=>A(e)?e:null==e?"":x(e)||I(e)&&(e.toString===O||!E(e.toString))?ep(e)?eh(e.value):JSON.stringify(e,ef,2):String(e),ef=(e,t)=>ep(t)?ef(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[em(t,r)+" =>"]=n,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>em(e))}:N(t)?em(t):!I(t)||x(t)||$(t)?t:String(t),em=(e,t="")=>{var n;return N(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=n,!e&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){n=this}off(){n=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ew()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ex,t=r;try{return ex=!0,r=this,this._runnings++,eb(this),this.fn()}finally{e_(this),this._runnings--,r=t,ex=e}}stop(){this.active&&(eb(this),e_(this),this.onStop&&this.onStop(),this.active=!1)}}function eb(e){e._trackId++,e._depsLength=0}function e_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{let n=new Map;return n.cleanup=e,n.computed=t,n},eO=new WeakMap,eL=Symbol(""),eM=Symbol("");function e$(e,t,n){if(ex&&r){let t=eO.get(e);t||eO.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=eR(()=>t.delete(n))),eA(r,i)}}function eP(e,t,n,r,i,l){let s=eO.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&x(e)){let e=Number(r);s.forEach((t,n)=>{("length"===n||!N(n)&&n>=e)&&o.push(t)})}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":x(e)?P(n)&&o.push(s.get("length")):(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"delete":!x(e)&&(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"set":C(e)&&o.push(s.get(eL))}for(let e of(eC++,o))e&&eI(e,4);eE()}let eF=u("__proto__,__v_isRef,__isVue"),eD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(N)),eV=function(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){let n=ty(this);for(let e=0,t=this.length;e{e[t]=function(...e){eT(),eC++;let n=ty(this)[t].apply(this,e);return eE(),ew(),n}}),e}();function eB(e){N(e)||(e=String(e));let t=ty(this);return e$(t,"has",e),t.hasOwnProperty(e)}class eU{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?ta:to:i?ts:tl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let l=x(e);if(!r){if(l&&S(eV,t))return Reflect.get(eV,t,n);if("hasOwnProperty"===t)return eB}let s=Reflect.get(e,t,n);return(N(t)?eD.has(t):eF(t))?s:(r||e$(e,"get",t),i)?s:tk(s)?l&&P(t)?s:s.value:I(s)?r?td(s):tc(s):s}}class ej extends eU{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=tf(i);if(tm(n)||tf(n)||(i=ty(i),n=ty(n)),!x(e)&&tk(i)&&!tk(n))return!t&&(i.value=n,!0)}let l=x(e)&&P(t)?Number(t)e,eJ=e=>Reflect.getPrototypeOf(e);function eX(e,t,n=!1,r=!1){let i=ty(e=e.__v_raw),l=ty(t);n||(K(t,l)&&e$(i,"get",t),e$(i,"get",l));let{has:s}=eJ(i),o=r?eG:n?t_:tb;return s.call(i,t)?o(e.get(t)):s.call(i,l)?o(e.get(l)):void(e!==i&&e.get(t))}function eQ(e,t=!1){let n=this.__v_raw,r=ty(n),i=ty(e);return t||(K(e,i)&&e$(r,"has",e),e$(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function eZ(e,t=!1){return e=e.__v_raw,t||e$(ty(e),"iterate",eL),Reflect.get(e,"size",e)}function eY(e,t=!1){t||tm(e)||tf(e)||(e=ty(e));let n=ty(this);return eJ(n).has.call(n,e)||(n.add(e),eP(n,"add",e,e)),this}function e0(e,t,n=!1){n||tm(t)||tf(t)||(t=ty(t));let r=ty(this),{has:i,get:l}=eJ(r),s=i.call(r,e);s||(e=ty(e),s=i.call(r,e));let o=l.call(r,e);return r.set(e,t),s?K(t,o)&&eP(r,"set",e,t):eP(r,"add",e,t),this}function e1(e){let t=ty(this),{has:n,get:r}=eJ(t),i=n.call(t,e);i||(e=ty(e),i=n.call(t,e)),r&&r.call(t,e);let l=t.delete(e);return i&&eP(t,"delete",e,void 0),l}function e2(){let e=ty(this),t=0!==e.size,n=e.clear();return t&&eP(e,"clear",void 0,void 0),n}function e3(e,t){return function(n,r){let i=this,l=i.__v_raw,s=ty(l),o=t?eG:e?t_:tb;return e||e$(s,"iterate",eL),l.forEach((e,t)=>n.call(r,o(e),o(t),i))}}function e6(e,t,n){return function(...r){let i=this.__v_raw,l=ty(i),s=C(l),o="entries"===e||e===Symbol.iterator&&s,a=i[e](...r),c=n?eG:t?t_:tb;return t||e$(l,"iterate","keys"===e&&s?eM:eL),{next(){let{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function e4(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[e8,e5,e9,e7]=function(){let e={get(e){return eX(this,e)},get size(){return eZ(this)},has:eQ,add:eY,set:e0,delete:e1,clear:e2,forEach:e3(!1,!1)},t={get(e){return eX(this,e,!1,!0)},get size(){return eZ(this)},has:eQ,add(e){return eY.call(this,e,!0)},set(e,t){return e0.call(this,e,t,!0)},delete:e1,clear:e2,forEach:e3(!1,!0)},n={get(e){return eX(this,e,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!1)},r={get(e){return eX(this,e,!0,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=e6(i,!1,!1),n[i]=e6(i,!0,!1),t[i]=e6(i,!1,!0),r[i]=e6(i,!0,!0)}),[e,n,t,r]}();function te(e,t){let n=t?e?e7:e9:e?e5:e8;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(S(n,r)&&r in t?n:t,r,i)}let tt={get:te(!1,!1)},tn={get:te(!1,!0)},tr={get:te(!0,!1)},ti={get:te(!0,!0)},tl=new WeakMap,ts=new WeakMap,to=new WeakMap,ta=new WeakMap;function tc(e){return tf(e)?e:tp(e,!1,eq,tt,tl)}function tu(e){return tp(e,!1,eK,tn,ts)}function td(e){return tp(e,!0,eW,tr,to)}function tp(e,t,n,r,i){if(!I(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let l=i.get(e);if(l)return l;let s=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(M(e));if(0===s)return e;let o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function th(e){return tf(e)?th(e.__v_raw):!!(e&&e.__v_isReactive)}function tf(e){return!!(e&&e.__v_isReadonly)}function tm(e){return!!(e&&e.__v_isShallow)}function tg(e){return!!e&&!!e.__v_raw}function ty(e){let t=e&&e.__v_raw;return t?ty(t):e}function tv(e){return Object.isExtensible(e)&&G(e,"__v_skip",!0),e}let tb=e=>I(e)?tc(e):e,t_=e=>I(e)?td(e):e;class tS{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ev(()=>e(this._value),()=>tC(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){let e=ty(this);return(!e._cacheable||e.effect.dirty)&&K(e._value,e._value=e.effect.run())&&tC(e,4),tx(e),e.effect._dirtyLevel>=2&&tC(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tx(e){var t;ex&&r&&(e=ty(e),eA(r,null!=(t=e.dep)?t:e.dep=eR(()=>e.dep=void 0,e instanceof tS?e:void 0)))}function tC(e,t=4,n,r){let i=(e=ty(e)).dep;i&&eI(i,t)}function tk(e){return!!(e&&!0===e.__v_isRef)}function tT(e){return tw(e,!1)}function tw(e,t){return tk(e)?e:new tE(e,t)}class tE{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ty(e),this._value=t?e:tb(e)}get value(){return tx(this),this._value}set value(e){let t=this.__v_isShallow||tm(e)||tf(e);K(e=t?e:ty(e),this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:tb(e),tC(this,4))}}function tA(e){return tk(e)?e.value:e}let tN={get:(e,t,n)=>tA(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return tk(i)&&!tk(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tI(e){return th(e)?e:new Proxy(e,tN)}class tR{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:n}=e(()=>tx(this),()=>tC(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function tO(e){return new tR(e)}class tL{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){let n=eO.get(e);return n&&n.get(t)}(ty(this._object),this._key)}}class tM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function t$(e,t,n){let r=e[t];return tk(r)?r:new tL(e,t,n)}function tP(e,t,n,r){try{return r?e(...r):e()}catch(e){tD(e,t,n)}}function tF(e,t,n,r){if(E(e)){let i=tP(e,t,n,r);return i&&R(i)&&i.catch(e=>{tD(e,t,n)}),i}if(x(e)){let i=[];for(let l=0;l>>1,i=tU[r],l=t0(i);lt0(e)-t0(t));if(tH.length=0,tq){tq.push(...e);return}for(tW=0,tq=e;tWnull==e.id?1/0:e.id,t1=(e,t)=>{let n=t0(e)-t0(t);if(0===n){if(e.pre&&!t.pre)return -1;if(t.pre&&!e.pre)return 1}return n},t2=null,t3=null;function t6(e){let t=t2;return t2=e,t3=e&&e.type.__scopeId||null,t}function t4(e,t=t2,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&ir(-1);let l=t6(t);try{i=e(...n)}finally{t6(l),r._d&&ir(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function t8(e,t,n,r){let i=e.dirs,l=t&&t.dirs;for(let s=0;s{e.isMounted=!0}),nw(()=>{e.isUnmounting=!0}),e}let ne=[Function,Array],nt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ne,onEnter:ne,onAfterEnter:ne,onEnterCancelled:ne,onBeforeLeave:ne,onLeave:ne,onAfterLeave:ne,onLeaveCancelled:ne,onBeforeAppear:ne,onAppear:ne,onAfterAppear:ne,onAppearCancelled:ne},nn=e=>{let t=e.subTree;return t.component?nn(t.component):t},nr={name:"BaseTransition",props:nt,setup(e,{slots:t}){let n=ik(),r=t7();return()=>{let i=t.default&&nc(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(let e of i)if(e.type!==r4){l=e;break}}let s=ty(e),{mode:o}=s;if(r.isLeaving)return ns(l);let a=no(l);if(!a)return ns(l);let c=nl(a,s,r,n,e=>c=e);na(a,c);let u=n.subTree,d=u&&no(u);if(d&&d.type!==r4&&!io(a,d)&&nn(n).type!==r4){let e=nl(d,s,r,n);if(na(d,e),"out-in"===o&&a.type!==r4)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ns(l);"in-out"===o&&a.type!==r4&&(e.delayLeave=(e,t,n)=>{ni(r,d)[String(d.key)]=d,e[t5]=()=>{t(),e[t5]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return l}}};function ni(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nl(e,t,n,r,i){let{appear:l,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,S=String(e.key),C=ni(n,e),k=(e,t)=>{e&&tF(e,r,9,t)},T=(e,t)=>{let n=t[1];k(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:s,persisted:o,beforeEnter(t){let r=a;if(!n.isMounted){if(!l)return;r=g||a}t[t5]&&t[t5](!0);let i=C[S];i&&io(e,i)&&i.el[t5]&&i.el[t5](),k(r,[t])},enter(e){let t=c,r=u,i=d;if(!n.isMounted){if(!l)return;t=y||c,r=b||u,i=_||d}let s=!1,o=e[t9]=t=>{s||(s=!0,t?k(i,[e]):k(r,[e]),w.delayedLeave&&w.delayedLeave(),e[t9]=void 0)};t?T(t,[e,o]):o()},leave(t,r){let i=String(e.key);if(t[t9]&&t[t9](!0),n.isUnmounting)return r();k(p,[t]);let l=!1,s=t[t5]=n=>{l||(l=!0,r(),n?k(m,[t]):k(f,[t]),t[t5]=void 0,C[i]!==e||delete C[i])};C[i]=e,h?T(h,[t,s]):s()},clone(e){let l=nl(e,t,n,r,i);return i&&i(l),l}};return w}function ns(e){if(nh(e))return(e=ih(e)).children=null,e}function no(e){if(!nh(e))return e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&E(n.default))return n.default()}}function na(e,t){6&e.shapeFlag&&e.component?na(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nc(e,t=!1,n){let r=[],i=0;for(let l=0;l1)for(let e=0;e!!e.type.__asyncLoader;function np(e,t){let{ref:n,props:r,children:i,ce:l}=t.vnode,s=id(e,r,i);return s.ref=n,s.ce=l,delete t.vnode.ce,s}let nh=e=>e.type.__isKeepAlive;function nf(e,t){return x(e)?e.some(e=>nf(e,t)):A(e)?e.split(",").includes(t):!!w(e)&&e.test(t)}function nm(e,t){ny(e,"a",t)}function ng(e,t){ny(e,"da",t)}function ny(e,t,n=iC){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(n_(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nh(e.parent.vnode)&&function(e,t,n,r){let i=n_(t,e,r,!0);nE(()=>{b(r[t],i)},n)}(r,t,n,e),e=e.parent}}function nv(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nb(e){return 128&e.shapeFlag?e.ssContent:e}function n_(e,t,n=iC,r=!1){if(n){let i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{eT();let i=iT(n),l=tF(t,n,e,r);return i(),ew(),l});return r?i.unshift(l):i.push(l),l}}let nS=e=>(t,n=iC)=>{iA&&"sp"!==e||n_(e,(...e)=>t(...e),n)},nx=nS("bm"),nC=nS("m"),nk=nS("bu"),nT=nS("u"),nw=nS("bum"),nE=nS("um"),nA=nS("sp"),nN=nS("rtg"),nI=nS("rtc");function nR(e,t=iC){n_("ec",e,t)}let nO="components",nL=Symbol.for("v-ndc");function nM(e,t,n=!0,r=!1){let i=t2||iC;if(i){let n=i.type;if(e===nO){let e=i$(n,!1);if(e&&(e===t||e===U(t)||e===q(U(t))))return n}let l=n$(i[e]||n[e],t)||n$(i.appContext[e],t);return!l&&r?n:l}}function n$(e,t){return e&&(e[t]||e[U(t)]||e[q(U(t))])}let nP=e=>e?iE(e)?iM(e):nP(e.parent):null,nF=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nP(e.parent),$root:e=>nP(e.root),$emit:e=>e.emit,$options:e=>nW(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,tJ(e.update)}),$nextTick:e=>e.n||(e.n=tG.bind(e.proxy)),$watch:e=>rV.bind(e)}),nD=(e,t)=>e!==d&&!e.__isScriptSetup&&S(e,t),nV={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:l,setupState:s,data:o,props:a,accessCache:c,type:u,appContext:p}=e;if("$"!==t[0]){let r=c[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return o[t];case 4:return l[t];case 3:return a[t]}else{if(nD(s,t))return c[t]=1,s[t];if(o!==d&&S(o,t))return c[t]=2,o[t];if((n=e.propsOptions[0])&&S(n,t))return c[t]=3,a[t];if(l!==d&&S(l,t))return c[t]=4,l[t];nH&&(c[t]=0)}}let h=nF[t];return h?("$attrs"===t&&e$(e.attrs,"get",""),h(e)):(r=u.__cssModules)&&(r=r[t])?r:l!==d&&S(l,t)?(c[t]=4,l[t]):S(i=p.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:l}=e;return nD(i,t)?(i[t]=n,!0):r!==d&&S(r,t)?(r[t]=n,!0):!S(e.props,t)&&!("$"===t[0]&&t.slice(1) in e)&&(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},s){let o;return!!n[s]||e!==d&&S(e,s)||nD(t,s)||(o=l[0])&&S(o,s)||S(r,s)||S(nF,s)||S(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},nB=y({},nV,{get(e,t){if(t!==Symbol.unscopables)return nV.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Z(t)});function nU(){let e=ik();return e.setupContext||(e.setupContext=iL(e))}function nj(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let nH=!0;function nq(e,t,n){tF(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function nW(e){let t;let n=e.type,{mixins:r,extends:i}=n,{mixins:l,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(n);return a?t=a:l.length||r||i?(t={},l.length&&l.forEach(e=>nK(t,e,o,!0)),nK(t,n,o)):t=n,I(n)&&s.set(n,t),t}function nK(e,t,n,r=!1){let{mixins:i,extends:l}=t;for(let s in l&&nK(e,l,n,!0),i&&i.forEach(t=>nK(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nz[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nz={data:nG,props:nZ,emits:nZ,methods:nQ,computed:nQ,beforeCreate:nX,created:nX,beforeMount:nX,mounted:nX,beforeUpdate:nX,updated:nX,beforeDestroy:nX,beforeUnmount:nX,destroyed:nX,unmounted:nX,activated:nX,deactivated:nX,errorCaptured:nX,serverPrefetch:nX,components:nQ,directives:nQ,watch:function(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=nX(e[r],t[r]);return n},provide:nG,inject:function(e,t){return nQ(nJ(e),nJ(t))}};function nG(e,t){return t?e?function(){return y(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function nJ(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}let n6={},n4=()=>Object.create(n6),n8=e=>Object.getPrototypeOf(e)===n6;function n5(e,t,n,r){let i;let[l,s]=e.propsOptions,o=!1;if(t)for(let a in t){let c;if(F(a))continue;let u=t[a];l&&S(l,c=U(a))?s&&s.includes(c)?(i||(i={}))[c]=u:n[c]=u:rq(e.emitsOptions,a)||a in r&&u===r[a]||(r[a]=u,o=!0)}if(s){let t=ty(n),r=i||d;for(let i=0;i"_"===e[0]||"$stable"===e,rn=e=>x(e)?e.map(ig):[ig(e)],rr=(e,t,n)=>{if(t._n)return t;let r=t4((...e)=>rn(t(...e)),n);return r._c=!1,r},ri=(e,t,n)=>{let r=e._ctx;for(let n in e){if(rt(n))continue;let i=e[n];if(E(i))t[n]=rr(n,i,r);else if(null!=i){let e=rn(i);t[n]=()=>e}}},rl=(e,t)=>{let n=rn(t);e.slots.default=()=>n},rs=(e,t,n)=>{for(let r in t)(n||"_"!==r)&&(e[r]=t[r])},ro=(e,t,n)=>{let r=e.slots=n4();if(32&e.vnode.shapeFlag){let e=t._;e?(rs(r,t,n),n&&G(r,"_",e,!0)):ri(t,r)}else t&&rl(e,t)},ra=(e,t,n)=>{let{vnode:r,slots:i}=e,l=!0,s=d;if(32&r.shapeFlag){let e=t._;e?n&&1===e?l=!1:rs(i,t,n):(l=!t.$stable,ri(t,i)),s=t}else t&&(rl(e,t),s={default:1});if(l)for(let e in i)rt(e)||null!=s[e]||delete i[e]};function rc(e,t,n,r,i=!1){if(x(e)){e.forEach((e,l)=>rc(e,t&&(x(t)?t[l]:t),n,r,i));return}if(nd(r)&&!i)return;let l=4&r.shapeFlag?iM(r.component):r.el,s=i?null:l,{i:o,r:a}=e,c=t&&t.r,u=o.refs===d?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(A(c)?(u[c]=null,S(p,c)&&(p[c]=null)):tk(c)&&(c.value=null)),E(a))tP(a,o,12,[s,u]);else{let t=A(a),r=tk(a);if(t||r){let o=()=>{if(e.f){let n=t?S(p,a)?p[a]:u[a]:a.value;i?x(n)&&b(n,l):x(n)?n.includes(l)||n.push(l):t?(u[a]=[l],S(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,S(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,rw(o,n)):o()}}}let ru=Symbol("_vte"),rd=e=>e.__isTeleport,rp=e=>e&&(e.disabled||""===e.disabled),rh=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rf=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,rm=(e,t)=>{let n=e&&e.to;return A(n)?t?t(n):null:n};function rg(e,t,n,{o:{insert:r},m:i},l=2){0===l&&r(e.targetAnchor,t,n);let{el:s,anchor:o,shapeFlag:a,children:c,props:u}=e,d=2===l;if(d&&r(s,t,n),(!d||rp(u))&&16&a)for(let e=0;e{rb||(console.error("Hydration completed but contains mismatches."),rb=!0)},rS=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,rx=e=>e.namespaceURI.includes("MathML"),rC=e=>rS(e)?"svg":rx(e)?"mathml":void 0,rk=e=>8===e.nodeType;function rT(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:l,parentNode:s,remove:o,insert:a,createComment:c}}=e,u=(n,r,o,c,m,_=!1)=>{_=_||!!r.dynamicChildren;let S=rk(n)&&"["===n.data,x=()=>f(n,r,o,c,m,S),{type:C,ref:k,shapeFlag:T,patchFlag:w}=r,E=n.nodeType;r.el=n,-2===w&&(_=!1,r.dynamicChildren=null);let A=null;switch(C){case r6:3!==E?""===r.children?(a(r.el=i(""),s(n),n),A=n):A=x():(n.data!==r.children&&(r_(),n.data=r.children),A=l(n));break;case r4:b(n)?(A=l(n),y(r.el=n.content.firstChild,n,o)):A=8!==E||S?x():l(n);break;case r8:if(S&&(E=(n=l(n)).nodeType),1===E||3===E){A=n;let e=!r.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;let{type:a,props:c,patchFlag:u,shapeFlag:d,dirs:h,transition:f}=t,g="input"===a||"option"===a;if(g||-1!==u){let a;h&&t8(t,null,n,"created");let _=!1;if(b(e)){_=rR(i,f)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;_&&f.beforeEnter(r),y(r,e,n),t.el=e=r}if(16&d&&!(c&&(c.innerHTML||c.textContent))){let r=p(e.firstChild,t,e,n,i,l,s);for(;r;){r_();let e=r;r=r.nextSibling,o(e)}}else 8&d&&e.textContent!==t.children&&(r_(),e.textContent=t.children);if(c){if(g||!s||48&u){let t=e.tagName.includes("-");for(let i in c)(g&&(i.endsWith("value")||"indeterminate"===i)||m(i)&&!F(i)||"."===i[0]||t)&&r(e,i,null,c[i],void 0,n)}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&u&&th(c.style))for(let e in c.style)c.style[e]}(a=c&&c.onVnodeBeforeMount)&&i_(a,n,t),h&&t8(t,null,n,"beforeMount"),((a=c&&c.onVnodeMounted)||h||_)&&r1(()=>{a&&i_(a,n,t),_&&f.enter(e),h&&t8(t,null,n,"mounted")},i)}return e.nextSibling},p=(e,t,r,s,o,c,d)=>{d=d||!!t.dynamicChildren;let p=t.children,h=p.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=s(e),h=p(l(e),t,d,n,r,i,o);return h&&rk(h)&&"]"===h.data?l(t.anchor=h):(r_(),a(t.anchor=c("]"),d,h),h)},f=(e,t,r,i,a,c)=>{if(r_(),t.el=null,c){let t=g(e);for(;;){let n=l(e);if(n&&n!==t)o(n);else break}}let u=l(e),d=s(e);return o(e),n(null,t,d,u,r,i,rC(d),a),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=l(e))&&rk(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return l(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),tY(),t._vnode=e;return}u(t.firstChild,e,null,null,null),tY(),t._vnode=e},u]}let rw=r1;function rE(e){return rA(e,rT)}function rA(e,t){var n;let r,i;Q().__VUE__=!0;let{insert:s,remove:o,patchProp:a,createElement:c,createText:u,createComment:f,setText:m,setElementText:g,parentNode:b,nextSibling:_,setScopeId:C=h,insertStaticContent:k}=e,T=(e,t,n,r=null,i=null,l=null,s,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!io(e,t)&&(r=eo(e),en(e,i,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);let{type:c,ref:u,shapeFlag:d}=t;switch(c){case r6:w(e,t,n,r);break;case r4:A(e,t,n,r);break;case r8:null==e&&N(t,n,r,s);break;case r3:q(e,t,n,r,i,l,s,o,a);break;default:1&d?M(e,t,n,r,i,l,s,o,a):6&d?W(e,t,n,r,i,l,s,o,a):64&d?c.process(e,t,n,r,i,l,s,o,a,eu):128&d&&c.process(e,t,n,r,i,l,s,o,a,eu)}null!=u&&i&&rc(u,e&&e.ref,l,t||e,!t)},w=(e,t,n,r)=>{if(null==e)s(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&m(n,t.children)}},A=(e,t,n,r)=>{null==e?s(t.el=f(t.children||""),n,r):t.el=e.el},N=(e,t,n,r)=>{[e.el,e.anchor]=k(e.children,t,n,r,e.el,e.anchor)},O=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=_(e),s(e,n,r),e=i;s(t,n,r)},L=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=_(e),o(e),e=n;o(t)},M=(e,t,n,r,i,l,s,o,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?$(t,n,r,i,l,s,o,a):V(e,t,i,l,s,o,a)},$=(e,t,n,r,i,l,o,u)=>{let d,p;let{props:h,shapeFlag:f,transition:m,dirs:y}=e;if(d=e.el=c(e.type,l,h&&h.is,h),8&f?g(d,e.children):16&f&&D(e.children,d,null,r,i,rN(e,l),o,u),y&&t8(e,null,r,"created"),P(d,e,e.scopeId,o,r),h){for(let e in h)"value"===e||F(e)||a(d,e,null,h[e],l,r);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&i_(p,r,e)}y&&t8(e,null,r,"beforeMount");let b=rR(i,m);b&&m.beforeEnter(d),s(d,t,n),((p=h&&h.onVnodeMounted)||b||y)&&rw(()=>{p&&i_(p,r,e),b&&m.enter(d),y&&t8(e,null,r,"mounted")},i)},P=(e,t,n,r,i)=>{if(n&&C(e,n),r)for(let t=0;t{for(let c=a;c{let o;let c=t.el=e.el,{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;let f=e.props||d,m=t.props||d;if(n&&rI(n,!1),(o=m.onVnodeBeforeUpdate)&&i_(o,n,t,e),h&&t8(t,e,n,"beforeUpdate"),n&&rI(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&g(c,""),p?B(e.dynamicChildren,p,c,n,r,rN(t,i),l):s||Z(e,t,c,null,n,r,rN(t,i),l,!1),u>0){if(16&u)j(c,f,m,n,i);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,i),4&u&&a(c,"style",f.style,m.style,i),8&u){let e=t.dynamicProps;for(let t=0;t{o&&i_(o,n,t,e),h&&t8(t,e,n,"updated")},r)},B=(e,t,n,r,i,l,s)=>{for(let o=0;o{if(t!==n){if(t!==d)for(let l in t)F(l)||l in n||a(e,l,t[l],null,i,r);for(let l in n){if(F(l))continue;let s=n[l],o=t[l];s!==o&&"value"!==l&&a(e,l,o,s,i,r)}"value"in n&&a(e,"value",t.value,n.value,i)}},q=(e,t,n,r,i,l,o,a,c)=>{let d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u(""),{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(s(d,n,r),s(p,n,r),D(t.children||[],n,p,i,l,o,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,n,i,l,o,a),(null!=t.key||i&&t===i.subTree)&&rO(e,t,!0)):Z(e,t,n,p,i,l,o,a,c)},W=(e,t,n,r,i,l,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,a):K(t,n,r,i,l,s,a):G(e,t,a)},K=(e,t,n,r,i,s,o)=>{let a=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||iS,l={uid:ix++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new eg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=r?n7:n.propsCache,l=i.get(t);if(l)return l;let s=t.props,o={},a=[],c=!1;if(!E(t)){let i=t=>{c=!0;let[r,i]=e(t,n,!0);y(o,r),i&&a.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return I(t)&&i.set(t,p),p;if(x(s))for(let e=0;e{let r=e(t,n,!0);r&&(a=!0,y(o,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||a?(x(s)?s.forEach(e=>o[e]=null):y(o,s),I(t)&&i.set(t,o),o):(I(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=rH.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);nh(e)&&(a.ctx.renderer=eu),function(e,t=!1,n=!1){t&&l(t);let{props:r,children:i}=e.vnode,s=iE(e);(function(e,t,n,r=!1){let i={},l=n4();for(let n in e.propsDefaults=Object.create(null),n5(e,t,i,l),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tu(i):e.type.props?e.props=i:e.props=l,e.attrs=l})(e,r,s,t),ro(e,i,n),s&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nV);let{setup:r}=n;if(r){let n=e.setupContext=r.length>1?iL(e):null,i=iT(e);eT();let l=tP(r,e,0,[e.props,n]);if(ew(),i(),R(l)){if(l.then(iw,iw),t)return l.then(n=>{iN(e,n,t)}).catch(t=>{tD(t,e,0)});e.asyncDep=l}else iN(e,l,t)}else iR(e,t)}(e,t),t&&l(!1)}(a,!1,o),a.asyncDep?(i&&i.registerDep(a,J,o),e.el||A(null,a.subTree=id(r4),t,n)):J(a,e,t,n,i,s,o)},G=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(a>=0))return(!!i||!!o)&&(!o||!o.$stable)||r!==s&&(r?!s||rG(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?rG(r,s,c):!!s;if(8&a){let e=t.dynamicProps;for(let t=0;ttj&&tU.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},J=(e,t,n,r,l,s,o)=>{let a=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:u}=e;{let t=function e(t){let n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(t){n&&(n.el=u.el,X(e,n,o)),t.asyncDep.then(()=>{e.isUnmounted||a()});return}}let d=n;rI(e,!1),n?(n.el=u.el,X(e,n,o)):n=u,r&&z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&i_(t,c,n,u),rI(e,!0);let p=rW(e),h=e.subTree;e.subTree=p,T(h,p,b(h.el),eo(h),e,l,s),n.el=p.el,null===d&&rJ(e,p.el),i&&rw(i,l),(t=n.props&&n.props.onVnodeUpdated)&&rw(()=>i_(t,c,n,u),l)}else{let o;let{el:a,props:c}=t,{bm:u,m:d,parent:p}=e,h=nd(t);if(rI(e,!1),u&&z(u),!h&&(o=c&&c.onVnodeBeforeMount)&&i_(o,p,t),rI(e,!0),a&&i){let n=()=>{e.subTree=rW(e),i(a,e.subTree,e,l,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{let i=e.subTree=rW(e);T(null,i,n,r,e,l,s),t.el=i.el}if(d&&rw(d,l),!h&&(o=c&&c.onVnodeMounted)){let e=t;rw(()=>i_(o,p,e),l)}(256&t.shapeFlag||p&&nd(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&rw(e.a,l),e.isMounted=!0,t=n=r=null}},c=e.effect=new ev(a,h,()=>tJ(u),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.i=e,u.id=e.uid,rI(e,!0),u()},X=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:l,vnode:{patchFlag:s}}=e,o=ty(i),[a]=e.propsOptions,c=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r{let c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p){ee(c,d,n,r,i,l,s,o,a);return}if(256&p){Y(c,d,n,r,i,l,s,o,a);return}}8&h?(16&u&&es(c,i,l),d!==c&&g(n,d)):16&u?16&h?ee(c,d,n,r,i,l,s,o,a):es(c,i,l,!0):(8&u&&g(n,""),16&h&&D(d,n,r,i,l,s,o,a))},Y=(e,t,n,r,i,l,s,o,a)=>{let c;e=e||p,t=t||p;let u=e.length,d=t.length,h=Math.min(u,d);for(c=0;cd?es(e,i,l,!0,!1,h):D(t,n,r,i,l,s,o,a,h)},ee=(e,t,n,r,i,l,s,o,a)=>{let c=0,u=t.length,d=e.length-1,h=u-1;for(;c<=d&&c<=h;){let r=e[c],u=t[c]=a?iy(t[c]):ig(t[c]);if(io(r,u))T(r,u,n,null,i,l,s,o,a);else break;c++}for(;c<=d&&c<=h;){let r=e[d],c=t[h]=a?iy(t[h]):ig(t[h]);if(io(r,c))T(r,c,n,null,i,l,s,o,a);else break;d--,h--}if(c>d){if(c<=h){let e=h+1,d=eh)for(;c<=d;)en(e[c],i,l,!0),c++;else{let f;let m=c,g=c,y=new Map;for(c=g;c<=h;c++){let e=t[c]=a?iy(t[c]):ig(t[c]);null!=e.key&&y.set(e.key,c)}let b=0,_=h-g+1,S=!1,x=0,C=Array(_);for(c=0;c<_;c++)C[c]=0;for(c=m;c<=d;c++){let r;let u=e[c];if(b>=_){en(u,i,l,!0);continue}if(null!=u.key)r=y.get(u.key);else for(f=g;f<=h;f++)if(0===C[f-g]&&io(u,t[f])){r=f;break}void 0===r?en(u,i,l,!0):(C[r-g]=c+1,r>=x?x=r:S=!0,T(u,t[r],n,null,i,l,s,o,a),b++)}let k=S?function(e){let t,n,r,i,l;let s=e.slice(),o=[0],a=e.length;for(t=0;t>1]]0&&(s[t]=o[r-1]),o[r]=t)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=s[i];return o}(C):p;for(f=k.length-1,c=_-1;c>=0;c--){let e=g+c,d=t[e],p=e+1{let{el:l,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u){et(e.component.subTree,t,n,r);return}if(128&u){e.suspense.move(t,n,r);return}if(64&u){o.move(e,t,n,eu);return}if(o===r3){s(l,t,n);for(let e=0;ea.enter(l),i);else{let{leave:e,delayLeave:r,afterLeave:i}=a,o=()=>s(l,t,n),c=()=>{e(l,()=>{o(),i&&i()})};r?r(l,o,c):c()}}else s(l,t,n)},en=(e,t,n,r=!1,i=!1)=>{let l;let{type:s,props:o,ref:a,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,cacheIndex:f}=e;if(-2===p&&(i=!1),null!=a&&rc(a,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&d){t.ctx.deactivate(e);return}let m=1&d&&h,g=!nd(e);if(g&&(l=o&&o.onVnodeBeforeUnmount)&&i_(l,t,e),6&d)el(e.component,n,r);else{if(128&d){e.suspense.unmount(n,r);return}m&&t8(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,eu,r):u&&!u.hasOnce&&(s!==r3||p>0&&64&p)?es(u,t,n,!1,!0):(s===r3&&384&p||!i&&16&d)&&es(c,t,n),r&&er(e)}(g&&(l=o&&o.onVnodeUnmounted)||m)&&rw(()=>{l&&i_(l,t,e),m&&t8(e,null,t,"unmounted")},n)},er=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===r3){ei(n,r);return}if(t===r8){L(e);return}let l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,l);r?r(e.el,l,s):s()}else l()},ei=(e,t)=>{let n;for(;e!==t;)n=_(e),o(e),e=n;o(t)},el=(e,t,n)=>{let{bum:r,scope:i,update:l,subTree:s,um:o,m:a,a:c}=e;rL(a),rL(c),r&&z(r),i.stop(),l&&(l.active=!1,en(s,e,t,n)),o&&rw(o,t),rw(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},es=(e,t,n,r=!1,i=!1,l=0)=>{for(let s=l;s{if(6&e.shapeFlag)return eo(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();let t=_(e.anchor||e.el),n=t&&t[ru];return n?_(n):t},ea=!1,ec=(e,t,n)=>{null==e?t._vnode&&en(t._vnode,null,null,!0):T(t._vnode||null,e,t,null,null,null,n),ea||(ea=!0,tZ(),tY(),ea=!1),t._vnode=e},eu={p:T,um:en,m:et,r:er,mt:K,mc:D,pc:Z,pbc:B,n:eo,o:e};return t&&([r,i]=t(eu)),{render:ec,hydrate:r,createApp:(n=r,function(e,t=null){E(e)||(e=y({},e)),null==t||I(t)||(t=null);let r=nY(),i=new WeakSet,l=!1,s=r.app={_uid:n0++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:iV,get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&E(e.install)?(i.add(e),e.install(s,...t)):E(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,o,a){if(!l){let c=id(e,t);return c.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),o&&n?n(c,i):ec(c,i,a),l=!0,s._container=i,i.__vue_app__=s,iM(c.component)}},unmount(){l&&(ec(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){let t=n1;n1=s;try{return e()}finally{n1=t}}};return s})}}function rN({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rI({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rR(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rO(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e{e(...t),w()}}let f=iC,m=e=>!0===i?e:rU(e,!1===i?1:void 0),g=!1,y=!1;if(tk(e)?(c=()=>e.value,g=tm(e)):th(e)?(c=()=>m(e),g=!0):x(e)?(y=!0,g=e.some(e=>th(e)||tm(e)),c=()=>e.map(e=>tk(e)?e.value:th(e)?m(e):E(e)?tP(e,f,2):void 0)):c=E(e)?t?()=>tP(e,f,2):()=>(u&&u(),tF(e,f,3,[_])):h,t&&i){let e=c;c=()=>rU(e())}let _=e=>{u=k.onStop=()=>{tP(e,f,4),u=k.onStop=void 0}},S=y?Array(e.length).fill(rF):rF,C=()=>{if(k.active&&k.dirty){if(t){let e=k.run();(i||g||(y?e.some((e,t)=>K(e,S[t])):K(e,S)))&&(u&&u(),tF(t,f,3,[e,S===rF?void 0:y&&S[0]===rF?[]:S,_]),S=e)}else k.run()}};C.allowRecurse=!!t,"sync"===l?p=C:"post"===l?p=()=>rw(C,f&&f.suspense):(C.pre=!0,f&&(C.id=f.uid),p=()=>tJ(C));let k=new ev(c,h,p),T=n,w=()=>{k.stop(),T&&b(T.effects,k)};return t?r?C():S=k.run():"post"===l?rw(k.run.bind(k),f&&f.suspense):k.run(),w}function rV(e,t,n){let r;let i=this.proxy,l=A(e)?e.includes(".")?rB(i,e):()=>i[e]:e.bind(i,i);E(t)?r=t:(r=t.handler,n=t);let s=iT(this),o=rD(l,r.bind(i),n);return s(),o}function rB(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e{rU(e,t,n)});else if($(e)){for(let r in e)rU(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rU(e[r],t,n)}return e}let rj=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${H(t)}Modifiers`];function rH(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||d,l=n,s=t.startsWith("update:"),o=s&&rj(i,t.slice(7));o&&(o.trim&&(l=n.map(e=>A(e)?e.trim():e)),o.number&&(l=n.map(J)));let a=i[r=W(t)]||i[r=W(U(t))];!a&&s&&(a=i[r=W(H(t))]),a&&tF(a,e,6,l);let c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tF(c,e,6,l)}}function rq(e,t){return!!(e&&m(t))&&(S(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||S(e,H(t))||S(e,t))}function rW(e){let t,n;let{type:r,vnode:i,proxy:l,withProxy:s,propsOptions:[o],slots:a,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:y,inheritAttrs:b}=e,_=t6(e);try{if(4&i.shapeFlag){let e=s||l;t=ig(d.call(e,e,p,h,m,f,y)),n=c}else t=ig(r.length>1?r(h,{attrs:c,slots:a,emit:u}):r(h,null)),n=r.props?c:rK(c)}catch(n){r5.length=0,tD(n,e,1),t=id(r4)}let S=t;if(n&&!1!==b){let e=Object.keys(n),{shapeFlag:t}=S;e.length&&7&t&&(o&&e.some(g)&&(n=rz(n,o)),S=ih(S,n,!1,!0))}return i.dirs&&((S=ih(S,null,!1,!0)).dirs=S.dirs?S.dirs.concat(i.dirs):i.dirs),i.transition&&(S.transition=i.transition),t=S,t6(_),t}let rK=e=>{let t;for(let n in e)("class"===n||"style"===n||m(n))&&((t||(t={}))[n]=e[n]);return t},rz=(e,t)=>{let n={};for(let r in e)g(r)&&r.slice(9) in t||(n[r]=e[r]);return n};function rG(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense,rQ=0;function rZ(e,t){let n=e.props&&e.props[t];E(n)&&n()}function rY(e,t,n,r,i,l,s,o,a,c,u=!1){let d;let{p:p,m:h,um:f,n:m,o:{parentNode:g,remove:y}}=c,b=function(e){let t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(d=t.pendingId,t.deps++);let _=e.props?X(e.props.timeout):void 0,S=l,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:rQ++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:s,pendingId:o,effects:a,parentComponent:c,container:u}=x,p=!1;x.isHydrating?x.isHydrating=!1:e||((p=i&&s.transition&&"out-in"===s.transition.mode)&&(i.transition.afterLeave=()=>{o===x.pendingId&&(h(s,u,l===S?m(i):l,0),tQ(a))}),i&&(g(i.el)!==x.hiddenContainer&&(l=m(i)),f(i,c,x,!0)),p||h(s,u,l,0)),r2(x,s),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,_=!1;for(;y;){if(y.pendingBranch){y.effects.push(...a),_=!0;break}y=y.parent}_||p||tQ(a),x.effects=[],b&&t&&t.pendingBranch&&d===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),rZ(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:l}=x;rZ(t,"onFallback");let s=m(n),c=()=>{x.isInFallback&&(p(null,e,i,s,r,null,l,o,a),r2(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&h(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&m(x.activeBranch),registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{tD(t,e,0)}).then(l=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:o}=e;iN(e,l,!1),i&&(o.el=i);let a=!i&&e.subTree.el;t(e,o,g(i||e.subTree.el),i?null:m(e.subTree),x,s,n),a&&y(a),rJ(e,o.el),r&&0==--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function r0(e){let t;if(E(e)){let n=it&&e._c;n&&(e._d=!1,r7()),e=e(),n&&(e._d=!0,t=r9,ie())}return x(e)&&(e=function(e,t=!0){let n;for(let t=0;tt!==e)),e}function r1(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):tQ(e)}function r2(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,rJ(r,i))}let r3=Symbol.for("v-fgt"),r6=Symbol.for("v-txt"),r4=Symbol.for("v-cmt"),r8=Symbol.for("v-stc"),r5=[],r9=null;function r7(e=!1){r5.push(r9=e?null:[])}function ie(){r5.pop(),r9=r5[r5.length-1]||null}let it=1;function ir(e){it+=e,e<0&&r9&&(r9.hasOnce=!0)}function ii(e){return e.dynamicChildren=it>0?r9||p:null,ie(),it>0&&r9&&r9.push(e),e}function il(e,t,n,r,i){return ii(id(e,t,n,r,i,!0))}function is(e){return!!e&&!0===e.__v_isVNode}function io(e,t){return e.type===t.type&&e.key===t.key}let ia=({key:e})=>null!=e?e:null,ic=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?A(e)||tk(e)||E(e)?{i:t2,r:e,k:t,f:!!n}:e:null);function iu(e,t=null,n=null,r=0,i=null,l=e===r3?0:1,s=!1,o=!1){let a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ia(t),ref:t&&ic(t),scopeId:t3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:t2};return o?(iv(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=A(n)?8:16),it>0&&!s&&r9&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&r9.push(a),a}let id=function(e,t=null,n=null,r=0,i=null,l=!1){var s;if(e&&e!==nL||(e=r4),is(e)){let r=ih(e,t,!0);return n&&iv(r,n),it>0&&!l&&r9&&(6&r.shapeFlag?r9[r9.indexOf(e)]=r:r9.push(r)),r.patchFlag=-2,r}if(E(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=ip(t);e&&!A(e)&&(t.class=ei(e)),I(n)&&(tg(n)&&!x(n)&&(n=y({},n)),t.style=Y(n))}let o=A(e)?1:rX(e)?128:rd(e)?64:I(e)?4:E(e)?2:0;return iu(e,t,n,r,i,o,l,!0)};function ip(e){return e?tg(e)||n8(e)?y({},e):e:null}function ih(e,t,n=!1,r=!1){let{props:i,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?ib(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ia(c),ref:t&&t.ref?n&&l?x(l)?l.concat(ic(t)):[l,ic(t)]:ic(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==r3?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ih(e.ssContent),ssFallback:e.ssFallback&&ih(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&na(u,a.clone(u)),u}function im(e=" ",t=0){return id(r6,null,e,t)}function ig(e){return null==e||"boolean"==typeof e?id(r4):x(e)?id(r3,null,e.slice()):"object"==typeof e?iy(e):id(r6,null,String(e))}function iy(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ih(e)}function iv(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),iv(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;r||n8(t)?3===r&&t2&&(1===t2.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=t2}}else E(t)?(t={default:t,_ctx:t2},n=32):(t=String(t),64&r?(n=16,t=[im(t)]):n=8);e.children=t,e.shapeFlag|=n}function ib(...e){let t={};for(let n=0;niC||t2;i=e=>{iC=e},l=e=>{iA=e};let iT=e=>{let t=iC;return i(e),e.scope.on(),()=>{e.scope.off(),i(t)}},iw=()=>{iC&&iC.scope.off(),i(null)};function iE(e){return 4&e.vnode.shapeFlag}let iA=!1;function iN(e,t,n){E(t)?e.render=t:I(t)&&(e.setupState=tI(t)),iR(e,n)}function iI(e){s=e,o=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,nB))}}function iR(e,t,n){let r=e.type;if(!e.render){if(!t&&s&&!r.render){let t=r.template||nW(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:o}=r,a=y(y({isCustomElement:n,delimiters:l},i),o);r.render=s(t,a)}}e.render=r.render||h,o&&o(e)}{let t=iT(e);eT();try{!function(e){let t=nW(e),n=e.proxy,r=e.ctx;nH=!1,t.beforeCreate&&nq(t.beforeCreate,e,"bc");let{data:i,computed:l,methods:s,watch:o,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:S,unmounted:C,render:k,renderTracked:T,renderTriggered:w,errorCaptured:N,serverPrefetch:R,expose:O,inheritAttrs:L,components:M,directives:$,filters:P}=t;if(c&&function(e,t,n=h){for(let n in x(e)&&(e=nJ(e)),e){let r;let i=e[n];tk(r=I(i)?"default"in i?n3(i.from||n,i.default,!0):n3(i.from||n):n3(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,r,null),s)for(let e in s){let t=s[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);I(t)&&(e.data=tc(t))}if(nH=!0,l)for(let e in l){let t=l[e],i=E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):h,s=iP({get:i,set:!E(t)&&E(t.set)?t.set.bind(n):h});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(let e in o)!function e(t,n,r,i){let l=i.includes(".")?rB(r,i):()=>r[i];if(A(t)){let e=n[t];E(e)&&rD(l,e,void 0)}else if(E(t)){var s;s=t.bind(r),rD(l,s,void 0)}else if(I(t)){if(x(t))t.forEach(t=>e(t,n,r,i));else{let e=E(t.handler)?t.handler.bind(r):n[t.handler];E(e)&&rD(l,e,t)}}}(o[e],r,n,e);if(a){let e=E(a)?a.call(n):a;Reflect.ownKeys(e).forEach(t=>{n2(t,e[t])})}function F(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&nq(u,e,"c"),F(nx,d),F(nC,p),F(nk,f),F(nT,m),F(nm,g),F(ng,y),F(nR,N),F(nI,T),F(nN,w),F(nw,_),F(nE,C),F(nA,R),x(O)){if(O.length){let t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={})}k&&e.render===h&&(e.render=k),null!=L&&(e.inheritAttrs=L),M&&(e.components=M),$&&(e.directives=$)}(e)}finally{ew(),t()}}}let iO={get:(e,t)=>(e$(e,"get",""),e[t])};function iL(e){return{attrs:new Proxy(e.attrs,iO),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function iM(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tI(tv(e.exposed)),{get:(t,n)=>n in t?t[n]:n in nF?nF[n](e):void 0,has:(e,t)=>t in e||t in nF})):e.proxy}function i$(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}let iP=(e,t)=>(function(e,t,n=!1){let r,i;let l=E(e);return l?(r=e,i=h):(r=e.get,i=e.set),new tS(r,i,l||!i,n)})(e,0,iA);function iF(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&is(n)&&(n=[n]),id(e,t,n)):!I(t)||x(t)?id(e,null,t):is(t)?id(e,null,[t]):id(e,t)}function iD(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&r9&&r9.push(e),!0}let iV="3.4.36",iB="undefined"!=typeof document?document:null,iU=iB&&iB.createElement("template"),ij="transition",iH="animation",iq=Symbol("_vtc"),iW=(e,{slots:t})=>iF(nr,iX(e),t);iW.displayName="Transition";let iK={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iz=iW.props=y({},nt,iK),iG=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},iJ=e=>!!e&&(x(e)?e.some(e=>e.length>1):e.length>1);function iX(e){let t={};for(let n in e)n in iK||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=s,appearToClass:u=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[X(e.enter),X(e.leave)];{let t=X(e);return[t,t]}}(i),m=f&&f[0],g=f&&f[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:S,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:w=S}=t,E=(e,t,n)=>{iZ(e,t?u:o),iZ(e,t?c:s),n&&n()},A=(e,t)=>{e._isLeaving=!1,iZ(e,d),iZ(e,h),iZ(e,p),t&&t()},N=e=>(t,n)=>{let i=e?T:_,s=()=>E(t,e,n);iG(i,[t,s]),iY(()=>{iZ(t,e?a:l),iQ(t,e?u:o),iJ(i)||i1(t,r,m,s)})};return y(t,{onBeforeEnter(e){iG(b,[e]),iQ(e,l),iQ(e,s)},onBeforeAppear(e){iG(k,[e]),iQ(e,a),iQ(e,c)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>A(e,t);iQ(e,d),iQ(e,p),i4(),iY(()=>{e._isLeaving&&(iZ(e,d),iQ(e,h),iJ(x)||i1(e,r,g,n))}),iG(x,[e,n])},onEnterCancelled(e){E(e,!1),iG(S,[e])},onAppearCancelled(e){E(e,!0),iG(w,[e])},onLeaveCancelled(e){A(e),iG(C,[e])}})}function iQ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iq]||(e[iq]=new Set)).add(t)}function iZ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iq];n&&(n.delete(t),n.size||(e[iq]=void 0))}function iY(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let i0=0;function i1(e,t,n,r){let i=e._endId=++i0,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);let{type:s,timeout:o,propCount:a}=i2(e,t);if(!s)return r();let c=s+"end",u=0,d=()=>{e.removeEventListener(c,p),l()},p=t=>{t.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[e]||"").split(", "),i=r(`${ij}Delay`),l=r(`${ij}Duration`),s=i3(i,l),o=r(`${iH}Delay`),a=r(`${iH}Duration`),c=i3(o,a),u=null,d=0,p=0;t===ij?s>0&&(u=ij,d=s,p=l.length):t===iH?c>0&&(u=iH,d=c,p=a.length):p=(u=(d=Math.max(s,c))>0?s>c?ij:iH:null)?u===ij?l.length:a.length:0;let h=u===ij&&/\b(transform|all)(,|$)/.test(r(`${ij}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function i3(e,t){for(;e.lengthi6(t)+i6(e[n])))}function i6(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function i4(){return document.body.offsetHeight}let i8=Symbol("_vod"),i5=Symbol("_vsh");function i9(e,t){e.style.display=t?e[i8]:"none",e[i5]=!t}let i7=Symbol("");function le(e,t){if(1===e.nodeType){let n=e.style,r="";for(let e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[i7]=r}}let lt=/(^|;)\s*display\s*:/,ln=/\s*!important$/;function lr(e,t,n){if(x(n))n.forEach(n=>lr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=ll[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return ll[t]=r;r=q(r);for(let n=0;nld||(lp.then(()=>ld=0),ld=Date.now()),lf=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);/*! #__NO_SIDE_EFFECTS__ */function lm(e,t,n){let r=nu(e,t);class i extends ly{constructor(e){super(r,e,n)}}return i.def=r,i}let lg="undefined"!=typeof HTMLElement?HTMLElement:class{};class ly extends lg{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,tG(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),lW(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{let n;let{props:r,styles:i}=e;if(r&&!x(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=X(this._props[e])),(n||(n=Object.create(null)))[U(e)]=!0)}this._numberProps=n,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(t=>e(t,!0)):e(this._def)}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(let e of n.map(U))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0,n=U(e);this._numberProps&&this._numberProps[n]&&(t=X(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(H(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(H(e),t+""):t||this.removeAttribute(H(e))))}_update(){lW(this._createVNode(),this.shadowRoot)}_createVNode(){let e=id(this._def,y({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),H(e)!==e&&t(H(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof ly){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(e=>{let t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}let lv=new WeakMap,lb=new WeakMap,l_=Symbol("_moveCb"),lS=Symbol("_enterCb"),lx={name:"TransitionGroup",props:y({},iz,{tag:String,moveClass:String}),setup(e,{slots:t}){let n,r;let i=ik(),l=t7();return nT(()=>{if(!n.length)return;let t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){let r=e.cloneNode(),i=e[iq];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";let l=1===t.nodeType?t:t.parentNode;l.appendChild(r);let{hasTransform:s}=i2(r);return l.removeChild(r),s}(n[0].el,i.vnode.el,t))return;n.forEach(lC),n.forEach(lk);let r=n.filter(lT);i4(),r.forEach(e=>{let n=e.el,r=n.style;iQ(n,t),r.transform=r.webkitTransform=r.transitionDuration="";let i=n[l_]=e=>{(!e||e.target===n)&&(!e||/transform$/.test(e.propertyName))&&(n.removeEventListener("transitionend",i),n[l_]=null,iZ(n,t))};n.addEventListener("transitionend",i)})}),()=>{let s=ty(e),o=iX(s),a=s.tag||r3;if(n=[],r)for(let e=0;e{let t=e.props["onUpdate:modelValue"]||!1;return x(t)?e=>z(t,e):t};function lE(e){e.target.composing=!0}function lA(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let lN=Symbol("_assign"),lI={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[lN]=lw(i);let l=r||i.props&&"number"===i.props.type;la(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),l&&(r=J(r)),e[lN](r)}),n&&la(e,"change",()=>{e.value=e.value.trim()}),t||(la(e,"compositionstart",lE),la(e,"compositionend",lA),la(e,"change",lA))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:l}},s){if(e[lN]=lw(s),e.composing)return;let o=(l||"number"===e.type)&&!/^0\d/.test(e.value)?J(e.value):e.value,a=null==t?"":t;o===a||document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a)}},lR={deep:!0,created(e,t,n){e[lN]=lw(n),la(e,"change",()=>{let t=e._modelValue,n=lP(e),r=e.checked,i=e[lN];if(x(t)){let e=ed(t,n),l=-1!==e;if(r&&!l)i(t.concat(n));else if(!r&&l){let n=[...t];n.splice(e,1),i(n)}}else if(k(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(lF(e,r))})},mounted:lO,beforeUpdate(e,t,n){e[lN]=lw(n),lO(e,t,n)}};function lO(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=ed(t,r.props.value)>-1:k(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=eu(t,lF(e,!0)))}let lL={created(e,{value:t},n){e.checked=eu(t,n.props.value),e[lN]=lw(n),la(e,"change",()=>{e[lN](lP(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lN]=lw(r),t!==n&&(e.checked=eu(t,r.props.value))}},lM={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=k(t);la(e,"change",()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?J(lP(e)):lP(e));e[lN](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,tG(()=>{e._assigning=!1})}),e[lN]=lw(r)},mounted(e,{value:t}){l$(e,t)},beforeUpdate(e,t,n){e[lN]=lw(n)},updated(e,{value:t}){e._assigning||l$(e,t)}};function l$(e,t,n){let r=e.multiple,i=x(t);if(!r||i||k(t)){for(let n=0,l=e.options.length;nString(e)===String(s)):l.selected=ed(t,s)>-1}else l.selected=t.has(s)}else if(eu(lP(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function lP(e){return"_value"in e?e._value:e.value}function lF(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function lD(e,t,n,r,i){let l=function(e,t){switch(e){case"SELECT":return lM;case"TEXTAREA":return lI;default:switch(t){case"checkbox":return lR;case"radio":return lL;default:return lI}}}(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}let lV=["ctrl","shift","alt","meta"],lB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>lV.some(n=>e[`${n}Key`]&&!t.includes(n))},lU={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},lj=y({patchProp:(e,t,n,r,i,l)=>{let s="svg"===i;"class"===t?function(e,t,n){let r=e[iq];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){let r=e.style,i=A(n),l=!1;if(n&&!i){if(t){if(A(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&lr(r,t,"")}else for(let e in t)null==n[e]&&lr(r,e,"")}for(let e in n)"display"===e&&(l=!0),lr(r,e,n[e])}else if(i){if(t!==n){let e=r[i7];e&&(n+=";"+e),r.cssText=n,l=lt.test(n)}}else t&&e.removeAttribute("style");i8 in e&&(e[i8]=l?r.display:"",e[i5]&&(r.display="none"))}(e,n,r):m(t)?g(t)||function(e,t,n,r,i=null){let l=e[lc]||(e[lc]={}),s=l[t];if(r&&s)s.value=r;else{let[n,o]=function(e){let t;if(lu.test(e)){let n;for(t={};n=e.match(lu);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):H(e.slice(2)),t]}(t);r?la(e,n,l[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tF(function(e,t){if(!x(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=lh(),n}(r,i),o):s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),l[t]=void 0)}}(e,t,0,r,l):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&lf(t)&&E(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(lf(t)&&A(n))&&t in e}(e,t,r,s))?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),lo(e,t,r,s)):(!function(e,t,n,r){if("innerHTML"===t||"textContent"===t){if(null==n)return;e[t]=n;return}let i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){let r="OPTION"===i?e.getAttribute("value")||"":e.value,l=null==n?"":String(n);r===l&&"_value"in e||(e.value=l),null==n&&e.removeAttribute(t),e._value=n;return}let l=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var s;n=!!(s=n)||""===s}else null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||lo(e,t,r,s,l,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?iB.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?iB.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?iB.createElement(e,{is:n}):iB.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>iB.createTextNode(e),createComment:e=>iB.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>iB.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){let s=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==l&&(i=i.nextSibling););else{iU.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e;let i=iU.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}}),lH=!1;function lq(){return a=lH?a:rE(lj),lH=!0,a}let lW=(...e)=>{(a||(a=rA(lj))).render(...e)},lK=(...e)=>{lq().hydrate(...e)};function lz(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function lG(e){return A(e)?document.querySelector(e):e}let lJ=Symbol(""),lX=Symbol(""),lQ=Symbol(""),lZ=Symbol(""),lY=Symbol(""),l0=Symbol(""),l1=Symbol(""),l2=Symbol(""),l3=Symbol(""),l6=Symbol(""),l4=Symbol(""),l8=Symbol(""),l5=Symbol(""),l9=Symbol(""),l7=Symbol(""),se=Symbol(""),st=Symbol(""),sn=Symbol(""),sr=Symbol(""),si=Symbol(""),sl=Symbol(""),ss=Symbol(""),so=Symbol(""),sa=Symbol(""),sc=Symbol(""),su=Symbol(""),sd=Symbol(""),sp=Symbol(""),sh=Symbol(""),sf=Symbol(""),sm=Symbol(""),sg=Symbol(""),sy=Symbol(""),sv=Symbol(""),sb=Symbol(""),s_=Symbol(""),sS=Symbol(""),sx=Symbol(""),sC=Symbol(""),sk={[lJ]:"Fragment",[lX]:"Teleport",[lQ]:"Suspense",[lZ]:"KeepAlive",[lY]:"BaseTransition",[l0]:"openBlock",[l1]:"createBlock",[l2]:"createElementBlock",[l3]:"createVNode",[l6]:"createElementVNode",[l4]:"createCommentVNode",[l8]:"createTextVNode",[l5]:"createStaticVNode",[l9]:"resolveComponent",[l7]:"resolveDynamicComponent",[se]:"resolveDirective",[st]:"resolveFilter",[sn]:"withDirectives",[sr]:"renderList",[si]:"renderSlot",[sl]:"createSlots",[ss]:"toDisplayString",[so]:"mergeProps",[sa]:"normalizeClass",[sc]:"normalizeStyle",[su]:"normalizeProps",[sd]:"guardReactiveProps",[sp]:"toHandlers",[sh]:"camelize",[sf]:"capitalize",[sm]:"toHandlerKey",[sg]:"setBlockTracking",[sy]:"pushScopeId",[sv]:"popScopeId",[sb]:"withCtx",[s_]:"unref",[sS]:"isRef",[sx]:"withMemo",[sC]:"isMemoSame"},sT={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function sw(e,t,n,r,i,l,s,o=!1,a=!1,c=!1,u=sT){return e&&(o?(e.helper(l0),e.helper(e.inSSR||c?l1:l2)):e.helper(e.inSSR||c?l3:l6),s&&e.helper(sn)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:l,directives:s,isBlock:o,disableTracking:a,isComponent:c,loc:u}}function sE(e,t=sT){return{type:17,loc:t,elements:e}}function sA(e,t=sT){return{type:15,loc:t,properties:e}}function sN(e,t){return{type:16,loc:sT,key:A(e)?sI(e,!0):e,value:t}}function sI(e,t=!1,n=sT,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function sR(e,t=sT){return{type:8,loc:t,children:e}}function sO(e,t=[],n=sT){return{type:14,loc:n,callee:e,arguments:t}}function sL(e,t,n=!1,r=!1,i=sT){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function sM(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:sT}}function s$(e,{helper:t,removeHelper:n,inSSR:r}){if(!e.isBlock){var i,l;e.isBlock=!0,n((i=e.isComponent,r||i?l3:l6)),t(l0),t((l=e.isComponent,r||l?l1:l2))}}let sP=new Uint8Array([123,123]),sF=new Uint8Array([125,125]);function sD(e){return e>=97&&e<=122||e>=65&&e<=90}function sV(e){return 32===e||10===e||9===e||12===e||13===e}function sB(e){return 47===e||62===e||sV(e)}function sU(e){let t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function sz(e){switch(e){case"Teleport":case"teleport":return lX;case"Suspense":case"suspense":return lQ;case"KeepAlive":case"keep-alive":return lZ;case"BaseTransition":case"base-transition":return lY}}let sG=/^\d|[^\$\w\xA0-\uFFFF]/,sJ=e=>!sG.test(e),sX=/[A-Za-z_$\xA0-\uFFFF]/,sQ=/[\.\?\w$\xA0-\uFFFF]/,sZ=/\s+[.[]\s*|\s*[.[]\s+/g,sY=e=>{e=e.trim().replace(sZ,e=>e.trim());let t=0,n=[],r=0,i=0,l=null;for(let s=0;s4===e.key.type&&e.key.content===r)}return n}function oe(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}let ot=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,on={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:f,isPreTag:f,isCustomElement:f,onError:sH,onWarn:sq,comments:!1,prefixIdentifiers:!1},or=on,oi=null,ol="",os=null,oo=null,oa="",oc=-1,ou=-1,od=0,op=!1,oh=null,of=[],om=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=sP,this.delimiterClose=sF,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=sP,this.delimiterClose=sF}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){let i=this.newlines[r];if(e>i){t=r+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?sB(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||sV(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===sj.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(of,{onerr:oR,ontext(e,t){o_(ov(e,t),e,t)},ontextentity(e,t,n){o_(e,t,n)},oninterpolation(e,t){if(op)return o_(ov(e,t),e,t);let n=e+om.delimiterOpen.length,r=t-om.delimiterClose.length;for(;sV(ol.charCodeAt(n));)n++;for(;sV(ol.charCodeAt(r-1));)r--;let i=ov(n,r);i.includes("&")&&(i=or.decodeEntities(i,!1)),oE({type:5,content:oI(i,!1,oA(n,r)),loc:oA(e,t)})},onopentagname(e,t){let n=ov(e,t);os={type:1,tag:n,ns:or.getNamespace(n,of[0],or.ns),tagType:0,props:[],children:[],loc:oA(e-1,t),codegenNode:void 0}},onopentagend(e){ob(e)},onclosetag(e,t){let n=ov(e,t);if(!or.isVoidTag(n)){let r=!1;for(let e=0;e0&&of[0].loc.start.offset;for(let n=0;n<=e;n++)oS(of.shift(),t,n(7===e.type?e.rawName:e.name)===t)},onattribend(e,t){os&&oo&&(oN(oo.loc,t),0!==e&&(oa.includes("&")&&(oa=or.decodeEntities(oa,!0)),6===oo.type?("class"===oo.name&&(oa=ow(oa).trim()),oo.value={type:2,content:oa,loc:1===e?oA(oc,ou):oA(oc-1,ou+1)},om.inSFCRoot&&"template"===os.tag&&"lang"===oo.name&&oa&&"html"!==oa&&om.enterRCDATA(sU("{let i=t.start.offset+n,l=i+e.length;return oI(e,!1,oA(i,l),0,r?1:0)},o={source:s(l.trim(),n.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},a=i.trim().replace(oy,"").trim(),c=i.indexOf(a),u=a.match(og);if(u){let e;a=a.replace(og,"").trim();let t=u[1].trim();if(t&&(e=n.indexOf(t,c+a.length),o.key=s(t,e,!0)),u[2]){let r=u[2].trim();r&&(o.index=s(r,n.indexOf(r,o.key?e+t.length:c+a.length),!0))}}return a&&(o.value=s(a,c,!0)),o}(oo.exp)))),(7!==oo.type||"pre"!==oo.name)&&os.props.push(oo)),oa="",oc=ou=-1},oncomment(e,t){or.comments&&oE({type:3,content:ov(e,t),loc:oA(e-4,t+3)})},onend(){let e=ol.length;for(let t=0;t64&&n<91||sz(e)||or.isBuiltInComponent&&or.isBuiltInComponent(e)||or.isNativeTag&&!or.isNativeTag(e))return!0;for(let e=0;e=0;)n--;return n}let oC=new Set(["if","else","else-if","for","slot"]),ok=/\r\n/g;function oT(e,t){let n="preserve"!==or.whitespace,r=!1;for(let t=0;t1)for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){let{props:i}=e;if(3===e.tagType&&i.some(s6))return;let l=[];for(let s=0;s`${sk[e]}: _${sk[e]}`;function oU(e,t,{helper:n,push:r,newline:i,isTS:l}){let s=n("component"===t?l9:se);for(let n=0;n3;t.push("["),n&&t.indent(),oH(e,t,n),n&&t.deindent(),t.push("]")}function oH(e,t,n=!1,r=!0){let{push:i,newline:l}=t;for(let s=0;se||"null")}([s,o,a,n,u]),t),r(")"),p&&r(")"),d&&(r(", "),oq(d,t),r(")"))}(e,t);break;case 14:!function(e,t){let{push:n,helper:r,pure:i}=t,l=A(e.callee)?e.callee:r(e.callee);i&&n(oV),n(l+"(",-2,e),oH(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){let{push:n,indent:r,deindent:i,newline:l}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}let o=s.length>1;n(o?"{":"{ "),o&&r();for(let e=0;e "),(a||o)&&(n("{"),r()),s?(a&&n("return "),x(s)?oj(s,t):oq(s,t)):o&&oq(o,t),(a||o)&&(i(),n("}")),c&&n(")")}(e,t);break;case 19:!function(e,t){let{test:n,consequent:r,alternate:i,newline:l}=e,{push:s,indent:o,deindent:a,newline:c}=t;if(4===n.type){let e=!sJ(n.content);e&&s("("),oW(n,t),e&&s(")")}else s("("),oq(n,t),s(")");l&&o(),t.indentLevel++,l||s(" "),s("? "),oq(r,t),t.indentLevel--,l&&c(),l||s(" "),s(": ");let u=19===i.type;!u&&t.indentLevel++,oq(i,t),!u&&t.indentLevel--,l&&a(!0)}(e,t);break;case 20:!function(e,t){let{push:n,helper:r,indent:i,deindent:l,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(i(),n(`${r(sg)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),oq(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(sg)}(1),`),s(),n(`_cache[${e.index}]`),l()),n(")")}(e,t);break;case 21:oH(e.body,t,!0,!1)}}function oW(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function oK(e,t){for(let n=0;n(function(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(sW(28,t.loc)),t.exp=sI("true",!1,r)}if("if"===t.name){let i=oG(e,t),l={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(l),r)return r(l,i,!0)}else{let i=n.parent.children,l=i.indexOf(e);for(;l-- >=-1;){let s=i[l];if(s&&3===s.type||s&&2===s.type&&!s.content.trim().length){n.removeNode(s);continue}if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(sW(30,e.loc)),n.removeNode();let i=oG(e,t);s.branches.push(i);let l=r&&r(s,i,!1);oF(i,n),l&&l(),n.currentNode=null}else n.onError(sW(30,e.loc));break}}})(e,t,n,(e,t,r)=>{let i=n.parent.children,l=i.indexOf(e),s=0;for(;l-- >=0;){let e=i[l];e&&9===e.type&&(s+=e.branches.length)}return()=>{r?e.codegenNode=oJ(t,s,n):function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode).alternate=oJ(t,s+e.branches.length-1,n)}}));function oG(e,t){let n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!s0(e,"for")?e.children:[e],userKey:s1(e,"key"),isTemplateIf:n}}function oJ(e,t,n){return e.condition?sM(e.condition,oX(e,t,n),sO(n.helper(l4),['""',"true"])):oX(e,t,n)}function oX(e,t,n){let{helper:r}=n,i=sN("key",sI(`${t}`,!1,sT,2)),{children:l}=e,s=l[0];if(1!==l.length||1!==s.type){if(1!==l.length||11!==s.type)return sw(n,r(lJ),sA([i]),l,64,void 0,void 0,!0,!1,!1,e.loc);{let e=s.codegenNode;return s9(e,i,n),e}}{let e=s.codegenNode,t=14===e.type&&e.callee===sx?e.arguments[1].returns:e;return 13===t.type&&s$(t,n),s9(t,i,n),e}}let oQ=(e,t,n)=>{let{modifiers:r,loc:i}=e,l=e.arg,{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==l.type||!l.isStatic)return n.onError(sW(52,l.loc)),{props:[sN(l,sI("",!0,i))]};oZ(e),s=e.exp}return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),r.includes("camel")&&(4===l.type?l.isStatic?l.content=U(l.content):l.content=`${n.helperString(sh)}(${l.content})`:(l.children.unshift(`${n.helperString(sh)}(`),l.children.push(")"))),!n.inSSR&&(r.includes("prop")&&oY(l,"."),r.includes("attr")&&oY(l,"^")),{props:[sN(l,s)]}},oZ=(e,t)=>{let n=e.arg,r=U(n.content);e.exp=sI(r,!1,n.loc)},oY=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},o0=oD("for",(e,t,n)=>{let{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp){n.onError(sW(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(sW(32,t.loc));return}o1(i);let{addIdentifiers:l,removeIdentifiers:s,scopes:o}=n,{source:a,value:c,key:u,index:d}=i,p={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:s4(e)?e.children:[e]};n.replaceNode(p),o.vFor++;let h=r&&r(p);return()=>{o.vFor--,h&&h()}}(e,t,n,t=>{let l=sO(r(sr),[t.source]),s=s4(e),o=s0(e,"memo"),a=s1(e,"key",!1,!0);a&&7===a.type&&!a.exp&&oZ(a);let c=a&&(6===a.type?a.value?sI(a.value.content,!0):void 0:a.exp),u=a&&c?sN("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:a?128:256;return t.codegenNode=sw(n,r(lJ),void 0,l,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let a;let{children:p}=t,h=1!==p.length||1!==p[0].type,f=s8(e)?e:s&&1===e.children.length&&s8(e.children[0])?e.children[0]:null;if(f)a=f.codegenNode,s&&u&&s9(a,u,n);else if(h)a=sw(n,r(lJ),u?sA([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{var m,g,y,b,_,S,x,C;a=p[0].codegenNode,s&&u&&s9(a,u,n),!d!==a.isBlock&&(a.isBlock?(i(l0),i((m=n.inSSR,g=a.isComponent,m||g?l1:l2))):i((y=n.inSSR,b=a.isComponent,y||b?l3:l6))),(a.isBlock=!d,a.isBlock)?(r(l0),r((_=n.inSSR,S=a.isComponent,_||S?l1:l2))):r((x=n.inSSR,C=a.isComponent,x||C?l3:l6))}if(o){let e=sL(o2(t.parseResult,[sI("_cached")]));e.body={type:21,body:[sR(["const _memo = (",o.exp,")"]),sR(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(sC)}(_cached, _memo)) return _cached`]),sR(["const _item = ",a]),sI("_item.memo = _memo"),sI("return _item")],loc:sT},l.arguments.push(e,sI("_cache"),sI(String(n.cached++)))}else l.arguments.push(sL(o2(t.parseResult),a,!0))}})});function o1(e,t){e.finalized||(e.finalized=!0)}function o2({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||sI("_".repeat(t+1),!1))}([e,t,n,...r])}let o3=sI("undefined",!1),o6=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){let n=s0(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},o4=(e,t,n,r)=>sL(e,n,!1,!0,n.length?n[0].loc:r);function o8(e,t,n){let r=[sN("name",e),sN("fn",t)];return null!=n&&r.push(sN("key",sI(String(n),!0))),sA(r)}let o5=new WeakMap,o9=(e,t)=>function(){let n,r,i,l,s;if(!(1===(e=t.currentNode).type&&(0===e.tagType||1===e.tagType)))return;let{tag:o,props:a}=e,c=1===e.tagType,u=c?function(e,t,n=!1){let{tag:r}=e,i=at(r),l=s1(e,"is",!1,!0);if(l){if(i){let e;if(6===l.type?e=l.value&&sI(l.value.content,!0):(e=l.exp)||(e=sI("is",!1,l.loc)),e)return sO(t.helper(l7),[e])}else 6===l.type&&l.value.content.startsWith("vue:")&&(r=l.value.content.slice(4))}let s=sz(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(l9),t.components.add(r),oe(r,"component"))}(e,t):`"${o}"`,d=I(u)&&u.callee===l7,p=0,h=d||u===lX||u===lQ||!c&&("svg"===o||"foreignObject"===o||"math"===o);if(a.length>0){let r=o7(e,t,void 0,c,d);n=r.props,p=r.patchFlag,l=r.dynamicPropNames;let i=r.directives;s=i&&i.length?sE(i.map(e=>(function(e,t){let n=[],r=o5.get(e);r?n.push(t.helperString(r)):(t.helper(se),t.directives.add(e.name),n.push(oe(e.name,"directive")));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));let t=sI("true",!1,i);n.push(sA(e.modifiers.map(e=>sN(e,t)),i))}return sE(n,e.loc)})(e,t))):void 0,r.shouldUseBlock&&(h=!0)}if(e.children.length>0){if(u===lZ&&(h=!0,p|=1024),c&&u!==lX&&u!==lZ){let{slots:n,hasDynamicSlots:i}=function(e,t,n=o4){t.helper(sb);let{children:r,loc:i}=e,l=[],s=[],o=t.scopes.vSlot>0||t.scopes.vFor>0,a=s0(e,"slot",!0);if(a){let{arg:e,exp:t}=a;e&&!sK(e)&&(o=!0),l.push(sN(e||sI("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1,d=[],p=new Set,h=0;for(let e=0;esN("default",n(e,void 0,t,i));c?d.length&&d.some(e=>(function e(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():e(t.content))})(e))&&(u?t.onError(sW(39,d[0].loc)):l.push(e(void 0,d))):l.push(e(void 0,r))}let f=o?2:!function e(t){for(let n=0;n0,f=!1,g=0,y=!1,b=!1,_=!1,S=!1,x=!1,C=!1,k=[],T=e=>{u.length&&(d.push(sA(ae(u),a)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(sN(sI("ref_for",!0),sI("true")))},E=({key:e,value:n})=>{if(sK(e)){let l=e.content,s=m(l);s&&(!r||i)&&"onclick"!==l.toLowerCase()&&"onUpdate:modelValue"!==l&&!F(l)&&(S=!0),s&&F(l)&&(C=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&oL(n,t)>0||("ref"===l?y=!0:"class"===l?b=!0:"style"===l?_=!0:"key"===l||k.includes(l)||k.push(l),r&&("class"===l||"style"===l)&&!k.includes(l)&&k.push(l))}else x=!0};for(let i=0;i1?sO(t.helper(so),d,a):d[0]):u.length&&(s=sA(ae(u),a)),x?g|=16:(b&&!r&&(g|=2),_&&!r&&(g|=4),k.length&&(g|=8),S&&(g|=32)),!f&&(0===g||32===g)&&(y||C||p.length>0)&&(g|=512),!t.inSSR&&s)switch(s.type){case 15:let A=-1,I=-1,R=!1;for(let e=0;e{if(s8(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:l}=function(e,t){let n,r='"default"',i=[];for(let t=0;t0){let{props:r,directives:l}=o7(e,t,i,!1,!1);n=r,l.length&&t.onError(sW(36,l[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"],o=2;l&&(s[2]=l,o=3),n.length&&(s[3]=sL([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=sO(t.helper(si),s,r)}},ar=/^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ai=(e,t,n,r)=>{let i;let{loc:l,modifiers:s,arg:o}=e;if(e.exp||s.length,4===o.type){if(o.isStatic){let e=o.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),i=sI(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?W(U(e)):`on:${e}`,!0,o.loc)}else i=sR([`${n.helperString(sm)}(`,o,")"])}else(i=o).children.unshift(`${n.helperString(sm)}(`),i.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){let e=sY(a.content),t=!(e||ar.test(a.content)),n=a.content.includes(";");(t||c&&e)&&(a=sR([`${t?"$event":"(...args)"} => ${n?"{":"("}`,a,n?"}":")"]))}let u={props:[sN(i,a||sI("() => {}",!1,l))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},al=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{let n;let r=e.children,i=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))))for(let e=0;e{if(1===e.type&&s0(e,"once",!0)&&!as.has(e)&&!t.inVOnce&&!t.inSSR)return as.add(e),t.inVOnce=!0,t.helper(sg),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}},aa=(e,t,n)=>{let r;let{exp:i,arg:l}=e;if(!i)return n.onError(sW(41,e.loc)),ac();let s=i.loc.source,o=4===i.type?i.content:s,a=n.bindingMetadata[s];if("props"===a||"props-aliased"===a)return i.loc,ac();if(!o.trim()||!sY(o))return n.onError(sW(42,i.loc)),ac();let c=l||sI("modelValue",!0),u=l?sK(l)?`onUpdate:${U(l.content)}`:sR(['"onUpdate:" + ',l]):"onUpdate:modelValue",d=n.isTS?"($event: any)":"$event";r=sR([`${d} => ((`,i,") = $event)"]);let p=[sN(c,e.exp),sN(u,r)];if(e.modifiers.length&&1===t.tagType){let t=e.modifiers.map(e=>(sJ(e)?e:JSON.stringify(e))+": true").join(", "),n=l?sK(l)?`${l.content}Modifiers`:sR([l,' + "Modifiers"']):"modelModifiers";p.push(sN(n,sI(`{ ${t} }`,!1,e.loc,2)))}return ac(p)};function ac(e=[]){return{props:e}}let au=new WeakSet,ad=(e,t)=>{if(1===e.type){let n=s0(e,"memo");if(!(!n||au.has(e)))return au.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&s$(r,t),e.codegenNode=sO(t.helper(sx),[n.exp,sL(void 0,r),"_cache",String(t.cached++)]))}}},ap=Symbol(""),ah=Symbol(""),af=Symbol(""),am=Symbol(""),ag=Symbol(""),ay=Symbol(""),av=Symbol(""),ab=Symbol(""),a_=Symbol(""),aS=Symbol("");!function(e){Object.getOwnPropertySymbols(e).forEach(t=>{sk[t]=e[t]})}({[ap]:"vModelRadio",[ah]:"vModelCheckbox",[af]:"vModelText",[am]:"vModelSelect",[ag]:"vModelDynamic",[ay]:"withModifiers",[av]:"withKeys",[ab]:"vShow",[a_]:"Transition",[aS]:"TransitionGroup"});let ax={parseMode:"html",isVoidTag:ea,isNativeTag:e=>el(e)||es(e)||eo(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return(c||(c=document.createElement("div")),t)?(c.innerHTML=`
`,c.children[0].getAttribute("foo")):(c.innerHTML=e,c.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?a_:"TransitionGroup"===e||"transition-group"===e?aS:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r){if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0)}else t&&1===r&&("foreignObject"===t.tag||"desc"===t.tag||"title"===t.tag)&&(r=0);if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},aC=(e,t)=>sI(JSON.stringify(er(e)),!1,t,3),ak=u("passive,once,capture"),aT=u("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),aw=u("left,right"),aE=u("onkeyup,onkeydown,onkeypress",!0),aA=(e,t,n,r)=>{let i=[],l=[],s=[];for(let n=0;nsK(e)&&"onclick"===e.content.toLowerCase()?sI(t,!0):4!==e.type?sR(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,aI=(e,t)=>{1===e.type&&0===e.tagType&&("script"===e.tag||"style"===e.tag)&&t.removeNode()},aR=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:sI("style",!0,t.loc),exp:aC(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],aO={cloak:()=>({props:[]}),html:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(53,i)),t.children.length&&(n.onError(sW(54,i)),t.children.length=0),{props:[sN(sI("innerHTML",!0,i),r||sI("",!0))]}},text:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(55,i)),t.children.length&&(n.onError(sW(56,i)),t.children.length=0),{props:[sN(sI("textContent",!0),r?oL(r,n)>0?r:sO(n.helperString(ss),[r],i):sI("",!0))]}},model:(e,t,n)=>{let r=aa(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(sW(58,e.arg.loc));let{tag:i}=t,l=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||l){let s=af,o=!1;if("input"===i||l){let r=s1(t,"type");if(r){if(7===r.type)s=ag;else if(r.value)switch(r.value.content){case"radio":s=ap;break;case"checkbox":s=ah;break;case"file":o=!0,n.onError(sW(59,e.loc))}}else t.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))&&(s=ag)}else"select"===i&&(s=am);o||(r.needRuntime=n.helper(s))}else n.onError(sW(57,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>ai(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:l}=t.props[0],{keyModifiers:s,nonKeyModifiers:o,eventOptionModifiers:a}=aA(i,r,n,e.loc);if(o.includes("right")&&(i=aN(i,"onContextmenu")),o.includes("middle")&&(i=aN(i,"onMouseup")),o.length&&(l=sO(n.helper(ay),[l,JSON.stringify(o)])),s.length&&(!sK(i)||aE(i.content))&&(l=sO(n.helper(av),[l,JSON.stringify(s)])),a.length){let e=a.map(q).join("");i=sK(i)?sI(`${i.content}${e}`,!0):sR(["(",i,`) + "${e}"`])}return{props:[sN(i,l)]}}),show:(e,t,n)=>{let{exp:r,loc:i}=e;return!r&&n.onError(sW(61,i)),{props:[],needRuntime:n.helper(ab)}}},aL=new WeakMap;function aM(e,t){let n;if(!A(e)){if(!e.nodeType)return h;e=e.innerHTML}let r=e,i=((n=aL.get(null!=t?t:d))||(n=Object.create(null),aL.set(null!=t?t:d,n)),n),l=i[r];if(l)return l;if("#"===e[0]){let t=document.querySelector(e);e=t?t.innerHTML:""}let s=y({hoistStatic:!0,onError:void 0,onWarn:h},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));let{code:o}=function(e,t={}){return function(e,t={}){let n=t.onError||sH,r="module"===t.mode;!0===t.prefixIdentifiers?n(sW(47)):r&&n(sW(48)),t.cacheHandlers&&n(sW(49)),t.scopeId&&!r&&n(sW(50));let i=y({},t,{prefixIdentifiers:!1}),l=A(e)?function(e,t){if(om.reset(),os=null,oo=null,oa="",oc=-1,ou=-1,of.length=0,ol=e,or=y({},on),t){let e;for(e in t)null!=t[e]&&(or[e]=t[e])}om.mode="html"===or.parseMode?1:"sfc"===or.parseMode?2:0,om.inXML=1===or.ns||2===or.ns;let n=t&&t.delimiters;n&&(om.delimiterOpen=sU(n[0]),om.delimiterClose=sU(n[1]));let r=oi=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:sT}}([],e);return om.parse(ol),r.loc=oA(0,e.length),r.children=oT(r.children),oi=null,r}(e,i):e,[s,o]=[[ao,oz,ad,o0,an,o9,o6,al],{on:ai,bind:oQ,model:aa}];return!function(e,t){let n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:a=null,isBuiltInComponent:c=h,isCustomElement:u=h,expressionPlugins:p=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:b="",bindingMetadata:_=d,inline:S=!1,isTS:x=!1,onError:C=sH,onWarn:k=sq,compatConfig:T}){let w=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:w&&q(U(w[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:l,nodeTransforms:s,directiveTransforms:o,transformHoist:a,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:p,scopeId:f,slotted:m,ssr:g,inSSR:y,ssrCssVars:b,bindingMetadata:_,inline:S,isTS:x,onError:C,onWarn:k,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString:e=>`_${sk[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:h,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=sI(e)),E.hoists.push(e);let t=sI(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>(function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:sT}})(E.cached++,e,t)};return E}(e,t);oF(e,n),t.hoistStatic&&function e(t,n,r=!1){let{children:i}=t,l=i.length,s=0;for(let t=0;t0){if(e>=2){l.codegenNode.patchFlag=-1,l.codegenNode=n.hoist(l.codegenNode),s++;continue}}else{let e=l.codegenNode;if(13===e.type){let t=e.patchFlag;if((void 0===t||512===t||1===t)&&o$(l,n)>=2){let t=oP(l);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}if(1===l.type){let t=1===l.tagType;t&&n.scopes.vSlot++,e(l,n),t&&n.scopes.vSlot--}else if(11===l.type)e(l,n,1===l.children.length);else if(9===l.type)for(let t=0;t1&&(e.codegenNode=sw(t,n(lJ),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0}(l,y({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:y({},o,t.directiveTransforms||{})})),function(e,t={}){let n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:l=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){let h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:l,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${sk[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:l,indent:s,deindent:o,newline:a,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!l&&"module"!==r;(function(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:l,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:a}=t,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${o} -`,-1),e.hoists.length)){let e=[l3,l6,l4,l8,l5].filter(e=>c.includes(e)).map(oB).join(", ");i(`const { ${e} } = _Vue -`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r,helper:i,scopeId:l,mode:s}=t;r();for(let i=0;i0)&&a()),e.directives.length&&(oU(e.directives,"directive",n),e.temps>0&&a()),e.temps>0){i("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` -`,0),a()),u||i("return "),e.codegenNode?oq(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(l,i)}(e,y({},ax,t,{nodeTransforms:[aI,...aR,...t.nodeTransforms||[]],directiveTransforms:y({},aO,t.directiveTransforms||{}),transformHoist:null}))}(e,s),a=Function(o)();return a._rc=!0,i[r]=a}return iI(aM),e.BaseTransition=nr,e.BaseTransitionPropsValidators=nt,e.Comment=r4,e.DeprecationTypes=null,e.EffectScope=eg,e.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},e.ErrorTypeStrings=null,e.Fragment=r3,e.KeepAlive={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ik(),r=n.ctx,i=new Map,l=new Set,s=null,o=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=r,p=d("div");function h(e){nv(e),u(e,n,o,!0)}function f(e){i.forEach((t,n)=>{let r=i$(t.type);!r||e&&e(r)||m(n)})}function m(e){let t=i.get(e);s&&io(t,s)?s&&nv(s):h(t),i.delete(e),l.delete(e)}r.activate=(e,t,n,r,i)=>{let l=e.component;c(e,t,n,0,o),a(l.vnode,e,t,n,l,o,r,e.slotScopeIds,i),rw(()=>{l.isDeactivated=!1,l.a&&z(l.a);let t=e.props&&e.props.onVnodeMounted;t&&i_(t,l.parent,e)},o)},r.deactivate=e=>{let t=e.component;rL(t.m),rL(t.a),c(e,p,null,1,o),rw(()=>{t.da&&z(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&i_(n,t.parent,e),t.isDeactivated=!0},o)},rD(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>nf(e,t)),t&&f(e=>!nf(t,e))},{flush:"post",deep:!0});let g=null,y=()=>{null!=g&&(rX(n.subTree.type)?rw(()=>{i.set(g,nb(n.subTree))},n.subTree.suspense):i.set(g,nb(n.subTree)))};return nC(y),nT(y),nw(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=nb(t);if(e.type===i.type&&e.key===i.key){nv(i);let e=i.component.da;e&&rw(e,r);return}h(e)})}),()=>{if(g=null,!t.default)return null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!is(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=nb(r),a=o.type,c=i$(nd(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!c||!nf(u,c))||d&&c&&nf(d,c))return s=o,r;let h=null==o.key?a:o.key,f=i.get(h);return o.el&&(o=ih(o),128&r.shapeFlag&&(r.ssContent=o)),g=h,f?(o.el=f.el,o.component=f.component,o.transition&&na(o,o.transition),o.shapeFlag|=512,l.delete(h),l.add(h)):(l.add(h),p&&l.size>parseInt(p,10)&&m(l.values().next().value)),o.shapeFlag|=256,s=o,rX(r.type)?r:o}}},e.ReactiveEffect=ev,e.Static=r8,e.Suspense={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,l,s,o,a,c){if(null==e)(function(e,t,n,r,i,l,s,o,a){let{p:c,o:{createElement:u}}=a,d=u("div"),p=e.suspense=rY(e,i,r,t,d,n,l,s,o,a);c(null,p.pendingBranch=e.ssContent,d,null,r,p,l,s),p.deps>0?(rZ(e,"onPending"),rZ(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,l,s),r2(p,e.ssFallback)):p.resolve(!1,!0)})(t,n,r,i,l,s,o,a,c);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}(function(e,t,n,r,i,l,s,o,{p:a,um:c,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=d;if(m)d.pendingBranch=p,io(p,m)?(a(m,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():g&&!y&&(a(f,h,n,r,i,null,l,s,o),r2(d,h))):(d.pendingId=rQ++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():(a(f,h,n,r,i,null,l,s,o),r2(d,h))):f&&io(p,f)?(a(f,p,n,r,i,d,l,s,o),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0&&d.resolve()));else if(f&&io(p,f))a(f,p,n,r,i,d,l,s,o),r2(d,p);else if(rZ(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=rQ++,a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}})(e,t,n,r,i,s,o,a,c)}},hydrate:function(e,t,n,r,i,l,s,o,a){let c=t.suspense=rY(t,r,n,e.parentNode,document.createElement("div"),null,i,l,s,o,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,l,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){let{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=r0(r?n.default:n),e.ssFallback=r?r0(n.fallback):id(r4)}},e.Teleport={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,s,o,a,c){let{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,y=rp(t.props),{shapeFlag:b,children:_,dynamicChildren:S}=t;if(null==e){let e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);let d=t.target=rm(t.props,f),p=rv(d,t,m,h);d&&("svg"===s||rh(d)?s="svg":("mathml"===s||rf(d))&&(s="mathml"));let g=(e,t)=>{16&b&&u(_,e,t,i,l,s,o,a)};y?g(n,c):d&&g(d,p)}else{t.el=e.el,t.targetStart=e.targetStart;let r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=rp(e.props),g=m?n:u;if("svg"===s||rh(u)?s="svg":("mathml"===s||rf(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,i,l,s,o),rO(e,t,!0)):a||d(e,t,g,m?r:h,i,l,s,o,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rg(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=rm(t.props,f);e&&rg(t,e,null,c,0)}else m&&rg(t,u,h,c,1)}ry(t)},remove(e,t,n,{um:r,o:{remove:i}},l){let{shapeFlag:s,children:o,anchor:a,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(i(c),i(u)),l&&i(a),16&s){let e=l||!rp(p);for(let i=0;i{let t=(a||(a=rA(lj))).createApp(...e),{mount:n}=t;return t.mount=e=>{let r=lG(e);if(!r)return;let i=t._component;E(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";let l=n(r,!1,lz(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t},e.createBlock=il,e.createCommentVNode=function(e="",t=!1){return t?(r7(),il(r4,null,e)):id(r4,null,e)},e.createElementBlock=function(e,t,n,r,i,l){return ii(iu(e,t,n,r,i,l,!0))},e.createElementVNode=iu,e.createHydrationRenderer=rE,e.createPropsRestProxy=function(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},e.createRenderer=function(e){return rA(e)},e.createSSRApp=(...e)=>{let t=lq().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=lG(e);if(t)return n(t,!0,lz(t))},t},e.createSlots=function(e,t){for(let n=0;n{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},e.createStaticVNode=function(e,t){let n=id(r8,null,e);return n.staticCount=t,n},e.createTextVNode=im,e.createVNode=id,e.customRef=tO,e.defineAsyncComponent=/*! #__NO_SIDE_EFFECTS__ */function(e){let t;E(e)&&(e={loader:e});let{loader:n,loadingComponent:r,errorComponent:i,delay:l=200,timeout:s,suspensible:o=!0,onError:a}=e,c=null,u=0,d=()=>(u++,c=null,p()),p=()=>{let e;return c||(e=c=n().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t(d()),()=>n(e),u+1)});throw e}).then(n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)))};return nu({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return t},setup(){let e=iC;if(t)return()=>np(t,e);let n=t=>{c=null,tD(t,e,13,!i)};if(o&&e.suspense)return p().then(t=>()=>np(t,e)).catch(e=>(n(e),()=>i?id(i,{error:e}):null));let a=tT(!1),u=tT(),d=tT(!!l);return l&&setTimeout(()=>{d.value=!1},l),null!=s&&setTimeout(()=>{if(!a.value&&!u.value){let e=Error(`Async component timed out after ${s}ms.`);n(e),u.value=e}},s),p().then(()=>{a.value=!0,e.parent&&nh(e.parent.vnode)&&(e.parent.effect.dirty=!0,tJ(e.parent.update))}).catch(e=>{n(e),u.value=e}),()=>a.value&&t?np(t,e):u.value&&i?id(i,{error:u.value}):r&&!d.value?id(r):void 0}})},e.defineComponent=nu,e.defineCustomElement=lm,e.defineEmits=function(){return null},e.defineExpose=function(e){},e.defineModel=function(){},e.defineOptions=function(e){},e.defineProps=function(){return null},e.defineSSRCustomElement=(e,t)=>lm(e,t,lK),e.defineSlots=function(){return null},e.devtools=void 0,e.effect=function(e,t){e.effect instanceof ev&&(e=e.effect.fn);let n=new ev(e,h,()=>{n.dirty&&n.run()});t&&(y(n,t),t.scope&&ey(n,t.scope)),t&&t.lazy||n.run();let r=n.run.bind(n);return r.effect=n,r},e.effectScope=function(e){return new eg(e)},e.getCurrentInstance=ik,e.getCurrentScope=function(){return n},e.getTransitionRawChildren=nc,e.guardReactiveProps=ip,e.h=iF,e.handleError=tD,e.hasInjectionContext=function(){return!!(iC||t2||n1)},e.hydrate=lK,e.initCustomFormatter=function(){},e.initDirectivesForSSR=h,e.inject=n3,e.isMemoSame=iD,e.isProxy=tg,e.isReactive=th,e.isReadonly=tf,e.isRef=tk,e.isRuntimeOnly=()=>!s,e.isShallow=tm,e.isVNode=is,e.markRaw=tv,e.mergeDefaults=function(e,t){let n=nj(e);for(let e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n},e.mergeModels=function(e,t){return e&&t?x(e)&&x(t)?e.concat(t):y({},nj(e),nj(t)):e||t},e.mergeProps=ib,e.nextTick=tG,e.normalizeClass=ei,e.normalizeProps=function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!A(t)&&(e.class=ei(t)),n&&(e.style=Y(n)),e},e.normalizeStyle=Y,e.onActivated=nm,e.onBeforeMount=nx,e.onBeforeUnmount=nw,e.onBeforeUpdate=nk,e.onDeactivated=ng,e.onErrorCaptured=nR,e.onMounted=nC,e.onRenderTracked=nI,e.onRenderTriggered=nN,e.onScopeDispose=function(e){n&&n.cleanups.push(e)},e.onServerPrefetch=nA,e.onUnmounted=nE,e.onUpdated=nT,e.openBlock=r7,e.popScopeId=function(){t3=null},e.provide=n2,e.proxyRefs=tI,e.pushScopeId=function(e){t3=e},e.queuePostFlushCb=tQ,e.reactive=tc,e.readonly=td,e.ref=tT,e.registerRuntimeCompiler=iI,e.render=lW,e.renderList=function(e,t,n,r){let i;let l=n&&n[r];if(x(e)||A(e)){i=Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,l&&l[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r!is(t)||!!(t.type!==r4&&(t.type!==r3||e(t.children))))?t:null}(l(n)),o=il(r3,{key:(n.key||s&&s.key||`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o},e.resolveComponent=function(e,t){return nM(nO,e,!0,t)||e},e.resolveDirective=function(e){return nM("directives",e)},e.resolveDynamicComponent=function(e){return A(e)?nM(nO,e,!1)||e:e||nL},e.resolveFilter=null,e.resolveTransitionHooks=nl,e.setBlockTracking=ir,e.setDevtoolsHook=h,e.setTransitionHooks=na,e.shallowReactive=tu,e.shallowReadonly=function(e){return tp(e,!0,ez,ti,ta)},e.shallowRef=function(e){return tw(e,!0)},e.ssrContextKey=rM,e.ssrUtils=null,e.stop=function(e){e.effect.stop()},e.toDisplayString=eh,e.toHandlerKey=W,e.toHandlers=function(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:W(r)]=e[r];return n},e.toRaw=ty,e.toRef=function(e,t,n){return tk(e)?e:E(e)?new tM(e):I(e)&&arguments.length>1?t$(e,t,n):tT(e)},e.toRefs=function(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=t$(e,n);return t},e.toValue=function(e){return E(e)?e():tA(e)},e.transformVNodeArgs=function(e){},e.triggerRef=function(e){tC(e,4)},e.unref=tA,e.useAttrs=function(){return nU().attrs},e.useCssModule=function(e="$style"){return d},e.useCssVars=function(e){let t=ik();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>le(e,n))},r=()=>{let r=e(t.proxy);(function e(t,n){if(128&t.shapeFlag){let r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{e(r.activeBranch,n)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)le(t.el,n);else if(t.type===r3)t.children.forEach(t=>e(t,n));else if(t.type===r8){let{el:e,anchor:r}=t;for(;e&&(le(e,n),e!==r);)e=e.nextSibling}})(t.subTree,r),n(r)};nC(()=>{r$(r);let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),nE(()=>e.disconnect())})},e.useModel=function(e,t,n=d){let r=ik(),i=U(t),l=H(t),s=rj(e,t),o=tO((s,o)=>{let a,c;let u=d;return rP(()=>{let n=e[t];K(a,n)&&(a=n,o())}),{get:()=>(s(),n.get?n.get(a):a),set(e){if(!K(e,a)&&!(u!==d&&K(e,u)))return;let s=r.vnode.props;s&&(t in s||i in s||l in s)&&(`onUpdate:${t}` in s||`onUpdate:${i}` in s||`onUpdate:${l}` in s)||(a=e,o());let p=n.set?n.set(e):e;r.emit(`update:${t}`,p),K(e,p)&&K(e,u)&&!K(p,c)&&o(),u=e,c=p}}});return o[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||d:o,done:!1}:{done:!0}}},o},e.useSSRContext=()=>{},e.useSlots=function(){return nU().slots},e.useTransitionState=t7,e.vModelCheckbox=lR,e.vModelDynamic={created(e,t,n){lD(e,t,n,null,"created")},mounted(e,t,n){lD(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lD(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lD(e,t,n,r,"updated")}},e.vModelRadio=lL,e.vModelSelect=lM,e.vModelText=lI,e.vShow={beforeMount(e,{value:t},{transition:n}){e[i8]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):i9(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),i9(e,!0),r.enter(e)):r.leave(e,()=>{i9(e,!1)}):i9(e,t))},beforeUnmount(e,{value:t}){i9(e,t)}},e.version=iV,e.warn=h,e.watch=function(e,t,n){return rD(e,t,n)},e.watchEffect=function(e,t){return rD(e,null,t)},e.watchPostEffect=r$,e.watchSyncEffect=rP,e.withAsyncContext=function(e){let t=ik(),n=e();return iw(),R(n)&&(n=n.catch(e=>{throw iT(t),e})),[n,()=>iT(t)]},e.withCtx=t4,e.withDefaults=function(e,t){return null},e.withDirectives=function(e,t){if(null===t2)return e;let n=iM(t2),r=e.dirs||(e.dirs=[]);for(let e=0;e{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=H(n.key);if(t.some(e=>e===r||lU[e]===r))return e(n)})},e.withMemo=function(e,t,n,r){let i=n[r];if(i&&iD(i,e))return i;let l=t();return l.memo=e.slice(),l.cacheIndex=r,n[r]=l},e.withModifiers=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;et4,e}({}); +**/var Vue=function(e){"use strict";let t,n,r,i,l,s,o,a,c;/*! #__NO_SIDE_EFFECTS__ */function u(e,t){let n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}let d={},p=[],h=()=>{},f=()=>!1,m=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||97>e.charCodeAt(2)),g=e=>e.startsWith("onUpdate:"),y=Object.assign,b=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},_=Object.prototype.hasOwnProperty,S=(e,t)=>_.call(e,t),x=Array.isArray,C=e=>"[object Map]"===L(e),k=e=>"[object Set]"===L(e),T=e=>"[object Date]"===L(e),w=e=>"[object RegExp]"===L(e),E=e=>"function"==typeof e,A=e=>"string"==typeof e,N=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,R=e=>(I(e)||E(e))&&E(e.then)&&E(e.catch),O=Object.prototype.toString,L=e=>O.call(e),M=e=>L(e).slice(8,-1),$=e=>"[object Object]"===L(e),P=e=>A(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=u(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=u("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),V=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},B=/-(\w)/g,U=V(e=>e.replace(B,(e,t)=>t?t.toUpperCase():"")),j=/\B([A-Z])/g,H=V(e=>e.replace(j,"-$1").toLowerCase()),q=V(e=>e.charAt(0).toUpperCase()+e.slice(1)),W=V(e=>e?`on${q(e)}`:""),K=(e,t)=>!Object.is(e,t),z=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},J=e=>{let t=parseFloat(e);return isNaN(t)?e:t},X=e=>{let t=A(e)?Number(e):NaN;return isNaN(t)?e:t},Q=()=>t||(t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),Z=u("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function Y(e){if(x(e)){let t={};for(let n=0;n{if(e){let n=e.split(et);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function ei(e){let t="";if(A(e))t=e;else if(x(e))for(let n=0;neu(e,t))}let ep=e=>!!(e&&!0===e.__v_isRef),eh=e=>A(e)?e:null==e?"":x(e)||I(e)&&(e.toString===O||!E(e.toString))?ep(e)?eh(e.value):JSON.stringify(e,ef,2):String(e),ef=(e,t)=>ep(t)?ef(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[em(t,r)+" =>"]=n,e),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>em(e))}:N(t)?em(t):!I(t)||x(t)||$(t)?t:String(t),em=(e,t="")=>{var n;return N(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};class eg{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=n,!e&&n&&(this.index=(n.scopes||(n.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){let t=n;try{return n=this,e()}finally{n=t}}}on(){n=this}off(){n=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),ew()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=ex,t=r;try{return ex=!0,r=this,this._runnings++,eb(this),this.fn()}finally{e_(this),this._runnings--,r=t,ex=e}}stop(){this.active&&(eb(this),e_(this),this.onStop&&this.onStop(),this.active=!1)}}function eb(e){e._trackId++,e._depsLength=0}function e_(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{let n=new Map;return n.cleanup=e,n.computed=t,n},eO=new WeakMap,eL=Symbol(""),eM=Symbol("");function e$(e,t,n){if(ex&&r){let t=eO.get(e);t||eO.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=eR(()=>t.delete(n))),eA(r,i)}}function eP(e,t,n,r,i,l){let s=eO.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&x(e)){let e=Number(r);s.forEach((t,n)=>{("length"===n||!N(n)&&n>=e)&&o.push(t)})}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":x(e)?P(n)&&o.push(s.get("length")):(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"delete":!x(e)&&(o.push(s.get(eL)),C(e)&&o.push(s.get(eM)));break;case"set":C(e)&&o.push(s.get(eL))}for(let e of(eC++,o))e&&eI(e,4);eE()}let eF=u("__proto__,__v_isRef,__isVue"),eD=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(N)),eV=function(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){let n=ty(this);for(let e=0,t=this.length;e{e[t]=function(...e){eT(),eC++;let n=ty(this)[t].apply(this,e);return eE(),ew(),n}}),e}();function eB(e){N(e)||(e=String(e));let t=ty(this);return e$(t,"has",e),t.hasOwnProperty(e)}class eU{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){let r=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!r;if("__v_isReadonly"===t)return r;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(r?i?ta:to:i?ts:tl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let l=x(e);if(!r){if(l&&S(eV,t))return Reflect.get(eV,t,n);if("hasOwnProperty"===t)return eB}let s=Reflect.get(e,t,n);return(N(t)?eD.has(t):eF(t))?s:(r||e$(e,"get",t),i)?s:tk(s)?l&&P(t)?s:s.value:I(s)?r?td(s):tc(s):s}}class ej extends eU{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t];if(!this._isShallow){let t=tf(i);if(tm(n)||tf(n)||(i=ty(i),n=ty(n)),!x(e)&&tk(i)&&!tk(n))return!t&&(i.value=n,!0)}let l=x(e)&&P(t)?Number(t)e,eJ=e=>Reflect.getPrototypeOf(e);function eX(e,t,n=!1,r=!1){let i=ty(e=e.__v_raw),l=ty(t);n||(K(t,l)&&e$(i,"get",t),e$(i,"get",l));let{has:s}=eJ(i),o=r?eG:n?t_:tb;return s.call(i,t)?o(e.get(t)):s.call(i,l)?o(e.get(l)):void(e!==i&&e.get(t))}function eQ(e,t=!1){let n=this.__v_raw,r=ty(n),i=ty(e);return t||(K(e,i)&&e$(r,"has",e),e$(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function eZ(e,t=!1){return e=e.__v_raw,t||e$(ty(e),"iterate",eL),Reflect.get(e,"size",e)}function eY(e,t=!1){t||tm(e)||tf(e)||(e=ty(e));let n=ty(this);return eJ(n).has.call(n,e)||(n.add(e),eP(n,"add",e,e)),this}function e0(e,t,n=!1){n||tm(t)||tf(t)||(t=ty(t));let r=ty(this),{has:i,get:l}=eJ(r),s=i.call(r,e);s||(e=ty(e),s=i.call(r,e));let o=l.call(r,e);return r.set(e,t),s?K(t,o)&&eP(r,"set",e,t):eP(r,"add",e,t),this}function e1(e){let t=ty(this),{has:n,get:r}=eJ(t),i=n.call(t,e);i||(e=ty(e),i=n.call(t,e)),r&&r.call(t,e);let l=t.delete(e);return i&&eP(t,"delete",e,void 0),l}function e2(){let e=ty(this),t=0!==e.size,n=e.clear();return t&&eP(e,"clear",void 0,void 0),n}function e3(e,t){return function(n,r){let i=this,l=i.__v_raw,s=ty(l),o=t?eG:e?t_:tb;return e||e$(s,"iterate",eL),l.forEach((e,t)=>n.call(r,o(e),o(t),i))}}function e6(e,t,n){return function(...r){let i=this.__v_raw,l=ty(i),s=C(l),o="entries"===e||e===Symbol.iterator&&s,a=i[e](...r),c=n?eG:t?t_:tb;return t||e$(l,"iterate","keys"===e&&s?eM:eL),{next(){let{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function e4(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}let[e8,e5,e9,e7]=function(){let e={get(e){return eX(this,e)},get size(){return eZ(this)},has:eQ,add:eY,set:e0,delete:e1,clear:e2,forEach:e3(!1,!1)},t={get(e){return eX(this,e,!1,!0)},get size(){return eZ(this)},has:eQ,add(e){return eY.call(this,e,!0)},set(e,t){return e0.call(this,e,t,!0)},delete:e1,clear:e2,forEach:e3(!1,!0)},n={get(e){return eX(this,e,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!1)},r={get(e){return eX(this,e,!0,!0)},get size(){return eZ(this,!0)},has(e){return eQ.call(this,e,!0)},add:e4("add"),set:e4("set"),delete:e4("delete"),clear:e4("clear"),forEach:e3(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=e6(i,!1,!1),n[i]=e6(i,!0,!1),t[i]=e6(i,!1,!0),r[i]=e6(i,!0,!0)}),[e,n,t,r]}();function te(e,t){let n=t?e?e7:e9:e?e5:e8;return(t,r,i)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(S(n,r)&&r in t?n:t,r,i)}let tt={get:te(!1,!1)},tn={get:te(!1,!0)},tr={get:te(!0,!1)},ti={get:te(!0,!0)},tl=new WeakMap,ts=new WeakMap,to=new WeakMap,ta=new WeakMap;function tc(e){return tf(e)?e:tp(e,!1,eq,tt,tl)}function tu(e){return tp(e,!1,eK,tn,ts)}function td(e){return tp(e,!0,eW,tr,to)}function tp(e,t,n,r,i){if(!I(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let l=i.get(e);if(l)return l;let s=e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(M(e));if(0===s)return e;let o=new Proxy(e,2===s?r:n);return i.set(e,o),o}function th(e){return tf(e)?th(e.__v_raw):!!(e&&e.__v_isReactive)}function tf(e){return!!(e&&e.__v_isReadonly)}function tm(e){return!!(e&&e.__v_isShallow)}function tg(e){return!!e&&!!e.__v_raw}function ty(e){let t=e&&e.__v_raw;return t?ty(t):e}function tv(e){return Object.isExtensible(e)&&G(e,"__v_skip",!0),e}let tb=e=>I(e)?tc(e):e,t_=e=>I(e)?td(e):e;class tS{constructor(e,t,n,r){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new ev(()=>e(this._value),()=>tC(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){let e=ty(this);return(!e._cacheable||e.effect.dirty)&&K(e._value,e._value=e.effect.run())&&tC(e,4),tx(e),e.effect._dirtyLevel>=2&&tC(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tx(e){var t;ex&&r&&(e=ty(e),eA(r,null!=(t=e.dep)?t:e.dep=eR(()=>e.dep=void 0,e instanceof tS?e:void 0)))}function tC(e,t=4,n,r){let i=(e=ty(e)).dep;i&&eI(i,t)}function tk(e){return!!(e&&!0===e.__v_isRef)}function tT(e){return tw(e,!1)}function tw(e,t){return tk(e)?e:new tE(e,t)}class tE{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:ty(e),this._value=t?e:tb(e)}get value(){return tx(this),this._value}set value(e){let t=this.__v_isShallow||tm(e)||tf(e);K(e=t?e:ty(e),this._rawValue)&&(this._rawValue,this._rawValue=e,this._value=t?e:tb(e),tC(this,4))}}function tA(e){return tk(e)?e.value:e}let tN={get:(e,t,n)=>tA(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return tk(i)&&!tk(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tI(e){return th(e)?e:new Proxy(e,tN)}class tR{constructor(e){this.dep=void 0,this.__v_isRef=!0;let{get:t,set:n}=e(()=>tx(this),()=>tC(this));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function tO(e){return new tR(e)}class tL{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){let e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return function(e,t){let n=eO.get(e);return n&&n.get(t)}(ty(this._object),this._key)}}class tM{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function t$(e,t,n){let r=e[t];return tk(r)?r:new tL(e,t,n)}function tP(e,t,n,r){try{return r?e(...r):e()}catch(e){tD(e,t,n)}}function tF(e,t,n,r){if(E(e)){let i=tP(e,t,n,r);return i&&R(i)&&i.catch(e=>{tD(e,t,n)}),i}if(x(e)){let i=[];for(let l=0;l>>1,i=tU[r],l=t0(i);lt0(e)-t0(t));if(tH.length=0,tq){tq.push(...e);return}for(tW=0,tq=e;tWnull==e.id?1/0:e.id,t1=(e,t)=>{let n=t0(e)-t0(t);if(0===n){if(e.pre&&!t.pre)return -1;if(t.pre&&!e.pre)return 1}return n},t2=null,t3=null;function t6(e){let t=t2;return t2=e,t3=e&&e.type.__scopeId||null,t}function t4(e,t=t2,n){if(!t||e._n)return e;let r=(...n)=>{let i;r._d&&ir(-1);let l=t6(t);try{i=e(...n)}finally{t6(l),r._d&&ir(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function t8(e,t,n,r){let i=e.dirs,l=t&&t.dirs;for(let s=0;s{e.isMounted=!0}),nw(()=>{e.isUnmounting=!0}),e}let ne=[Function,Array],nt={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ne,onEnter:ne,onAfterEnter:ne,onEnterCancelled:ne,onBeforeLeave:ne,onLeave:ne,onAfterLeave:ne,onLeaveCancelled:ne,onBeforeAppear:ne,onAppear:ne,onAfterAppear:ne,onAppearCancelled:ne},nn=e=>{let t=e.subTree;return t.component?nn(t.component):t},nr={name:"BaseTransition",props:nt,setup(e,{slots:t}){let n=ik(),r=t7();return()=>{let i=t.default&&nc(t.default(),!0);if(!i||!i.length)return;let l=i[0];if(i.length>1){for(let e of i)if(e.type!==r4){l=e;break}}let s=ty(e),{mode:o}=s;if(r.isLeaving)return ns(l);let a=no(l);if(!a)return ns(l);let c=nl(a,s,r,n,e=>c=e);na(a,c);let u=n.subTree,d=u&&no(u);if(d&&d.type!==r4&&!io(a,d)&&nn(n).type!==r4){let e=nl(d,s,r,n);if(na(d,e),"out-in"===o&&a.type!==r4)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},ns(l);"in-out"===o&&a.type!==r4&&(e.delayLeave=(e,t,n)=>{ni(r,d)[String(d.key)]=d,e[t5]=()=>{t(),e[t5]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return l}}};function ni(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function nl(e,t,n,r,i){let{appear:l,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:b,onAppearCancelled:_}=t,S=String(e.key),C=ni(n,e),k=(e,t)=>{e&&tF(e,r,9,t)},T=(e,t)=>{let n=t[1];k(e,t),x(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},w={mode:s,persisted:o,beforeEnter(t){let r=a;if(!n.isMounted){if(!l)return;r=g||a}t[t5]&&t[t5](!0);let i=C[S];i&&io(e,i)&&i.el[t5]&&i.el[t5](),k(r,[t])},enter(e){let t=c,r=u,i=d;if(!n.isMounted){if(!l)return;t=y||c,r=b||u,i=_||d}let s=!1,o=e[t9]=t=>{s||(s=!0,t?k(i,[e]):k(r,[e]),w.delayedLeave&&w.delayedLeave(),e[t9]=void 0)};t?T(t,[e,o]):o()},leave(t,r){let i=String(e.key);if(t[t9]&&t[t9](!0),n.isUnmounting)return r();k(p,[t]);let l=!1,s=t[t5]=n=>{l||(l=!0,r(),n?k(m,[t]):k(f,[t]),t[t5]=void 0,C[i]!==e||delete C[i])};C[i]=e,h?T(h,[t,s]):s()},clone(e){let l=nl(e,t,n,r,i);return i&&i(l),l}};return w}function ns(e){if(nh(e))return(e=ih(e)).children=null,e}function no(e){if(!nh(e))return e;let{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&E(n.default))return n.default()}}function na(e,t){6&e.shapeFlag&&e.component?na(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nc(e,t=!1,n){let r=[],i=0;for(let l=0;l1)for(let e=0;e!!e.type.__asyncLoader;function np(e,t){let{ref:n,props:r,children:i,ce:l}=t.vnode,s=id(e,r,i);return s.ref=n,s.ce=l,delete t.vnode.ce,s}let nh=e=>e.type.__isKeepAlive;function nf(e,t){return x(e)?e.some(e=>nf(e,t)):A(e)?e.split(",").includes(t):!!w(e)&&e.test(t)}function nm(e,t){ny(e,"a",t)}function ng(e,t){ny(e,"da",t)}function ny(e,t,n=iC){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(n_(t,r,n),n){let e=n.parent;for(;e&&e.parent;)nh(e.parent.vnode)&&function(e,t,n,r){let i=n_(t,e,r,!0);nE(()=>{b(r[t],i)},n)}(r,t,n,e),e=e.parent}}function nv(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function nb(e){return 128&e.shapeFlag?e.ssContent:e}function n_(e,t,n=iC,r=!1){if(n){let i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{eT();let i=iT(n),l=tF(t,n,e,r);return i(),ew(),l});return r?i.unshift(l):i.push(l),l}}let nS=e=>(t,n=iC)=>{iA&&"sp"!==e||n_(e,(...e)=>t(...e),n)},nx=nS("bm"),nC=nS("m"),nk=nS("bu"),nT=nS("u"),nw=nS("bum"),nE=nS("um"),nA=nS("sp"),nN=nS("rtg"),nI=nS("rtc");function nR(e,t=iC){n_("ec",e,t)}let nO="components",nL=Symbol.for("v-ndc");function nM(e,t,n=!0,r=!1){let i=t2||iC;if(i){let n=i.type;if(e===nO){let e=i$(n,!1);if(e&&(e===t||e===U(t)||e===q(U(t))))return n}let l=n$(i[e]||n[e],t)||n$(i.appContext[e],t);return!l&&r?n:l}}function n$(e,t){return e&&(e[t]||e[U(t)]||e[q(U(t))])}let nP=e=>e?iE(e)?iM(e):nP(e.parent):null,nF=y(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nP(e.parent),$root:e=>nP(e.root),$emit:e=>e.emit,$options:e=>nW(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,tJ(e.update)}),$nextTick:e=>e.n||(e.n=tG.bind(e.proxy)),$watch:e=>rV.bind(e)}),nD=(e,t)=>e!==d&&!e.__isScriptSetup&&S(e,t),nV={get({_:e},t){let n,r,i;if("__v_skip"===t)return!0;let{ctx:l,setupState:s,data:o,props:a,accessCache:c,type:u,appContext:p}=e;if("$"!==t[0]){let r=c[t];if(void 0!==r)switch(r){case 1:return s[t];case 2:return o[t];case 4:return l[t];case 3:return a[t]}else{if(nD(s,t))return c[t]=1,s[t];if(o!==d&&S(o,t))return c[t]=2,o[t];if((n=e.propsOptions[0])&&S(n,t))return c[t]=3,a[t];if(l!==d&&S(l,t))return c[t]=4,l[t];nH&&(c[t]=0)}}let h=nF[t];return h?("$attrs"===t&&e$(e.attrs,"get",""),h(e)):(r=u.__cssModules)&&(r=r[t])?r:l!==d&&S(l,t)?(c[t]=4,l[t]):S(i=p.config.globalProperties,t)?i[t]:void 0},set({_:e},t,n){let{data:r,setupState:i,ctx:l}=e;return nD(i,t)?(i[t]=n,!0):r!==d&&S(r,t)?(r[t]=n,!0):!S(e.props,t)&&!("$"===t[0]&&t.slice(1) in e)&&(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:l}},s){let o;return!!n[s]||e!==d&&S(e,s)||nD(t,s)||(o=l[0])&&S(o,s)||S(r,s)||S(nF,s)||S(i.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:S(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},nB=y({},nV,{get(e,t){if(t!==Symbol.unscopables)return nV.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!Z(t)});function nU(){let e=ik();return e.setupContext||(e.setupContext=iL(e))}function nj(e){return x(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}let nH=!0;function nq(e,t,n){tF(x(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function nW(e){let t;let n=e.type,{mixins:r,extends:i}=n,{mixins:l,optionsCache:s,config:{optionMergeStrategies:o}}=e.appContext,a=s.get(n);return a?t=a:l.length||r||i?(t={},l.length&&l.forEach(e=>nK(t,e,o,!0)),nK(t,n,o)):t=n,I(n)&&s.set(n,t),t}function nK(e,t,n,r=!1){let{mixins:i,extends:l}=t;for(let s in l&&nK(e,l,n,!0),i&&i.forEach(t=>nK(e,t,n,!0)),t)if(r&&"expose"===s);else{let r=nz[s]||n&&n[s];e[s]=r?r(e[s],t[s]):t[s]}return e}let nz={data:nG,props:nZ,emits:nZ,methods:nQ,computed:nQ,beforeCreate:nX,created:nX,beforeMount:nX,mounted:nX,beforeUpdate:nX,updated:nX,beforeDestroy:nX,beforeUnmount:nX,destroyed:nX,unmounted:nX,activated:nX,deactivated:nX,errorCaptured:nX,serverPrefetch:nX,components:nQ,directives:nQ,watch:function(e,t){if(!e)return t;if(!t)return e;let n=y(Object.create(null),e);for(let r in t)n[r]=nX(e[r],t[r]);return n},provide:nG,inject:function(e,t){return nQ(nJ(e),nJ(t))}};function nG(e,t){return t?e?function(){return y(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function nJ(e){if(x(e)){let t={};for(let n=0;n1)return n&&E(t)?t.call(r&&r.proxy):t}}let n6={},n4=()=>Object.create(n6),n8=e=>Object.getPrototypeOf(e)===n6;function n5(e,t,n,r){let i;let[l,s]=e.propsOptions,o=!1;if(t)for(let a in t){let c;if(F(a))continue;let u=t[a];l&&S(l,c=U(a))?s&&s.includes(c)?(i||(i={}))[c]=u:n[c]=u:rq(e.emitsOptions,a)||a in r&&u===r[a]||(r[a]=u,o=!0)}if(s){let t=ty(n),r=i||d;for(let i=0;i"_"===e[0]||"$stable"===e,rn=e=>x(e)?e.map(ig):[ig(e)],rr=(e,t,n)=>{if(t._n)return t;let r=t4((...e)=>rn(t(...e)),n);return r._c=!1,r},ri=(e,t,n)=>{let r=e._ctx;for(let n in e){if(rt(n))continue;let i=e[n];if(E(i))t[n]=rr(n,i,r);else if(null!=i){let e=rn(i);t[n]=()=>e}}},rl=(e,t)=>{let n=rn(t);e.slots.default=()=>n},rs=(e,t,n)=>{for(let r in t)(n||"_"!==r)&&(e[r]=t[r])},ro=(e,t,n)=>{let r=e.slots=n4();if(32&e.vnode.shapeFlag){let e=t._;e?(rs(r,t,n),n&&G(r,"_",e,!0)):ri(t,r)}else t&&rl(e,t)},ra=(e,t,n)=>{let{vnode:r,slots:i}=e,l=!0,s=d;if(32&r.shapeFlag){let e=t._;e?n&&1===e?l=!1:rs(i,t,n):(l=!t.$stable,ri(t,i)),s=t}else t&&(rl(e,t),s={default:1});if(l)for(let e in i)rt(e)||null!=s[e]||delete i[e]};function rc(e,t,n,r,i=!1){if(x(e)){e.forEach((e,l)=>rc(e,t&&(x(t)?t[l]:t),n,r,i));return}if(nd(r)&&!i)return;let l=4&r.shapeFlag?iM(r.component):r.el,s=i?null:l,{i:o,r:a}=e,c=t&&t.r,u=o.refs===d?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(A(c)?(u[c]=null,S(p,c)&&(p[c]=null)):tk(c)&&(c.value=null)),E(a))tP(a,o,12,[s,u]);else{let t=A(a),r=tk(a);if(t||r){let o=()=>{if(e.f){let n=t?S(p,a)?p[a]:u[a]:a.value;i?x(n)&&b(n,l):x(n)?n.includes(l)||n.push(l):t?(u[a]=[l],S(p,a)&&(p[a]=u[a])):(a.value=[l],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,S(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,rw(o,n)):o()}}}let ru=Symbol("_vte"),rd=e=>e.__isTeleport,rp=e=>e&&(e.disabled||""===e.disabled),rh=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,rf=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,rm=(e,t)=>{let n=e&&e.to;return A(n)?t?t(n):null:n};function rg(e,t,n,{o:{insert:r},m:i},l=2){0===l&&r(e.targetAnchor,t,n);let{el:s,anchor:o,shapeFlag:a,children:c,props:u}=e,d=2===l;if(d&&r(s,t,n),(!d||rp(u))&&16&a)for(let e=0;e{rb||(console.error("Hydration completed but contains mismatches."),rb=!0)},rS=e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName,rx=e=>e.namespaceURI.includes("MathML"),rC=e=>rS(e)?"svg":rx(e)?"mathml":void 0,rk=e=>8===e.nodeType;function rT(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:l,parentNode:s,remove:o,insert:a,createComment:c}}=e,u=(n,r,o,c,m,_=!1)=>{_=_||!!r.dynamicChildren;let S=rk(n)&&"["===n.data,x=()=>f(n,r,o,c,m,S),{type:C,ref:k,shapeFlag:T,patchFlag:w}=r,E=n.nodeType;r.el=n,-2===w&&(_=!1,r.dynamicChildren=null);let A=null;switch(C){case r6:3!==E?""===r.children?(a(r.el=i(""),s(n),n),A=n):A=x():(n.data!==r.children&&(r_(),n.data=r.children),A=l(n));break;case r4:b(n)?(A=l(n),y(r.el=n.content.firstChild,n,o)):A=8!==E||S?x():l(n);break;case r8:if(S&&(E=(n=l(n)).nodeType),1===E||3===E){A=n;let e=!r.children.length;for(let t=0;t{s=s||!!t.dynamicChildren;let{type:a,props:c,patchFlag:u,shapeFlag:d,dirs:h,transition:f}=t,g="input"===a||"option"===a;if(g||-1!==u){let a;h&&t8(t,null,n,"created");let _=!1;if(b(e)){_=rR(i,f)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;_&&f.beforeEnter(r),y(r,e,n),t.el=e=r}if(16&d&&!(c&&(c.innerHTML||c.textContent))){let r=p(e.firstChild,t,e,n,i,l,s);for(;r;){r_();let e=r;r=r.nextSibling,o(e)}}else 8&d&&e.textContent!==t.children&&(r_(),e.textContent=t.children);if(c){if(g||!s||48&u){let t=e.tagName.includes("-");for(let i in c)(g&&(i.endsWith("value")||"indeterminate"===i)||m(i)&&!F(i)||"."===i[0]||t)&&r(e,i,null,c[i],void 0,n)}else if(c.onClick)r(e,"onClick",null,c.onClick,void 0,n);else if(4&u&&th(c.style))for(let e in c.style)c.style[e]}(a=c&&c.onVnodeBeforeMount)&&i_(a,n,t),h&&t8(t,null,n,"beforeMount"),((a=c&&c.onVnodeMounted)||h||_)&&r1(()=>{a&&i_(a,n,t),_&&f.enter(e),h&&t8(t,null,n,"mounted")},i)}return e.nextSibling},p=(e,t,r,s,o,c,d)=>{d=d||!!t.dynamicChildren;let p=t.children,h=p.length;for(let t=0;t{let{slotScopeIds:u}=t;u&&(i=i?i.concat(u):u);let d=s(e),h=p(l(e),t,d,n,r,i,o);return h&&rk(h)&&"]"===h.data?l(t.anchor=h):(r_(),a(t.anchor=c("]"),d,h),h)},f=(e,t,r,i,a,c)=>{if(r_(),t.el=null,c){let t=g(e);for(;;){let n=l(e);if(n&&n!==t)o(n);else break}}let u=l(e),d=s(e);return o(e),n(null,t,d,u,r,i,rC(d),a),u},g=(e,t="[",n="]")=>{let r=0;for(;e;)if((e=l(e))&&rk(e)&&(e.data===t&&r++,e.data===n)){if(0===r)return l(e);r--}return e},y=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},b=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes()){n(null,e,t),tY(),t._vnode=e;return}u(t.firstChild,e,null,null,null),tY(),t._vnode=e},u]}let rw=r1;function rE(e){return rA(e,rT)}function rA(e,t){var n;let r,i;Q().__VUE__=!0;let{insert:s,remove:o,patchProp:a,createElement:c,createText:u,createComment:f,setText:m,setElementText:g,parentNode:b,nextSibling:_,setScopeId:C=h,insertStaticContent:k}=e,T=(e,t,n,r=null,i=null,l=null,s,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!io(e,t)&&(r=eo(e),en(e,i,l,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);let{type:c,ref:u,shapeFlag:d}=t;switch(c){case r6:w(e,t,n,r);break;case r4:A(e,t,n,r);break;case r8:null==e&&N(t,n,r,s);break;case r3:q(e,t,n,r,i,l,s,o,a);break;default:1&d?M(e,t,n,r,i,l,s,o,a):6&d?W(e,t,n,r,i,l,s,o,a):64&d?c.process(e,t,n,r,i,l,s,o,a,eu):128&d&&c.process(e,t,n,r,i,l,s,o,a,eu)}null!=u&&i&&rc(u,e&&e.ref,l,t||e,!t)},w=(e,t,n,r)=>{if(null==e)s(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&m(n,t.children)}},A=(e,t,n,r)=>{null==e?s(t.el=f(t.children||""),n,r):t.el=e.el},N=(e,t,n,r)=>{[e.el,e.anchor]=k(e.children,t,n,r,e.el,e.anchor)},O=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=_(e),s(e,n,r),e=i;s(t,n,r)},L=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=_(e),o(e),e=n;o(t)},M=(e,t,n,r,i,l,s,o,a)=>{"svg"===t.type?s="svg":"math"===t.type&&(s="mathml"),null==e?$(t,n,r,i,l,s,o,a):V(e,t,i,l,s,o,a)},$=(e,t,n,r,i,l,o,u)=>{let d,p;let{props:h,shapeFlag:f,transition:m,dirs:y}=e;if(d=e.el=c(e.type,l,h&&h.is,h),8&f?g(d,e.children):16&f&&D(e.children,d,null,r,i,rN(e,l),o,u),y&&t8(e,null,r,"created"),P(d,e,e.scopeId,o,r),h){for(let e in h)"value"===e||F(e)||a(d,e,null,h[e],l,r);"value"in h&&a(d,"value",null,h.value,l),(p=h.onVnodeBeforeMount)&&i_(p,r,e)}y&&t8(e,null,r,"beforeMount");let b=rR(i,m);b&&m.beforeEnter(d),s(d,t,n),((p=h&&h.onVnodeMounted)||b||y)&&rw(()=>{p&&i_(p,r,e),b&&m.enter(d),y&&t8(e,null,r,"mounted")},i)},P=(e,t,n,r,i)=>{if(n&&C(e,n),r)for(let t=0;t{for(let c=a;c{let o;let c=t.el=e.el,{patchFlag:u,dynamicChildren:p,dirs:h}=t;u|=16&e.patchFlag;let f=e.props||d,m=t.props||d;if(n&&rI(n,!1),(o=m.onVnodeBeforeUpdate)&&i_(o,n,t,e),h&&t8(t,e,n,"beforeUpdate"),n&&rI(n,!0),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&g(c,""),p?B(e.dynamicChildren,p,c,n,r,rN(t,i),l):s||Z(e,t,c,null,n,r,rN(t,i),l,!1),u>0){if(16&u)j(c,f,m,n,i);else if(2&u&&f.class!==m.class&&a(c,"class",null,m.class,i),4&u&&a(c,"style",f.style,m.style,i),8&u){let e=t.dynamicProps;for(let t=0;t{o&&i_(o,n,t,e),h&&t8(t,e,n,"updated")},r)},B=(e,t,n,r,i,l,s)=>{for(let o=0;o{if(t!==n){if(t!==d)for(let l in t)F(l)||l in n||a(e,l,t[l],null,i,r);for(let l in n){if(F(l))continue;let s=n[l],o=t[l];s!==o&&"value"!==l&&a(e,l,o,s,i,r)}"value"in n&&a(e,"value",t.value,n.value,i)}},q=(e,t,n,r,i,l,o,a,c)=>{let d=t.el=e?e.el:u(""),p=t.anchor=e?e.anchor:u(""),{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(a=a?a.concat(m):m),null==e?(s(d,n,r),s(p,n,r),D(t.children||[],n,p,i,l,o,a,c)):h>0&&64&h&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,n,i,l,o,a),(null!=t.key||i&&t===i.subTree)&&rO(e,t,!0)):Z(e,t,n,p,i,l,o,a,c)},W=(e,t,n,r,i,l,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,s,a):K(t,n,r,i,l,s,a):G(e,t,a)},K=(e,t,n,r,i,s,o)=>{let a=e.component=function(e,t,n){let r=e.type,i=(t?t.appContext:e.appContext)||iS,l={uid:ix++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new eg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:function e(t,n,r=!1){let i=r?n7:n.propsCache,l=i.get(t);if(l)return l;let s=t.props,o={},a=[],c=!1;if(!E(t)){let i=t=>{c=!0;let[r,i]=e(t,n,!0);y(o,r),i&&a.push(...i)};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}if(!s&&!c)return I(t)&&i.set(t,p),p;if(x(s))for(let e=0;e{let r=e(t,n,!0);r&&(a=!0,y(o,r))};!r&&n.mixins.length&&n.mixins.forEach(i),t.extends&&i(t.extends),t.mixins&&t.mixins.forEach(i)}return s||a?(x(s)?s.forEach(e=>o[e]=null):y(o,s),I(t)&&i.set(t,o),o):(I(t)&&i.set(t,null),null)}(r,i),emit:null,emitted:null,propsDefaults:d,inheritAttrs:r.inheritAttrs,ctx:d,data:d,props:d,attrs:d,slots:d,refs:d,setupState:d,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=rH.bind(null,l),e.ce&&e.ce(l),l}(e,r,i);nh(e)&&(a.ctx.renderer=eu),function(e,t=!1,n=!1){t&&l(t);let{props:r,children:i}=e.vnode,s=iE(e);(function(e,t,n,r=!1){let i={},l=n4();for(let n in e.propsDefaults=Object.create(null),n5(e,t,i,l),e.propsOptions[0])n in i||(i[n]=void 0);n?e.props=r?i:tu(i):e.type.props?e.props=i:e.props=l,e.attrs=l})(e,r,s,t),ro(e,i,n),s&&function(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,nV);let{setup:r}=n;if(r){let n=e.setupContext=r.length>1?iL(e):null,i=iT(e);eT();let l=tP(r,e,0,[e.props,n]);if(ew(),i(),R(l)){if(l.then(iw,iw),t)return l.then(n=>{iN(e,n,t)}).catch(t=>{tD(t,e,0)});e.asyncDep=l}else iN(e,l,t)}else iR(e,t)}(e,t),t&&l(!1)}(a,!1,o),a.asyncDep?(i&&i.registerDep(a,J,o),e.el||A(null,a.subTree=id(r4),t,n)):J(a,e,t,n,i,s,o)},G=(e,t,n)=>{let r=t.component=e.component;if(function(e,t,n){let{props:r,children:i,component:l}=e,{props:s,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(!n||!(a>=0))return(!!i||!!o)&&(!o||!o.$stable)||r!==s&&(r?!s||rG(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?rG(r,s,c):!!s;if(8&a){let e=t.dynamicProps;for(let t=0;ttj&&tU.splice(t,1)}(r.update),r.effect.dirty=!0,r.update()}else t.el=e.el,r.vnode=t},J=(e,t,n,r,l,s,o)=>{let a=()=>{if(e.isMounted){let t,{next:n,bu:r,u:i,parent:c,vnode:u}=e;{let t=function e(t){let n=t.subTree.component;if(n)return n.asyncDep&&!n.asyncResolved?n:e(n)}(e);if(t){n&&(n.el=u.el,X(e,n,o)),t.asyncDep.then(()=>{e.isUnmounted||a()});return}}let d=n;rI(e,!1),n?(n.el=u.el,X(e,n,o)):n=u,r&&z(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&i_(t,c,n,u),rI(e,!0);let p=rW(e),h=e.subTree;e.subTree=p,T(h,p,b(h.el),eo(h),e,l,s),n.el=p.el,null===d&&rJ(e,p.el),i&&rw(i,l),(t=n.props&&n.props.onVnodeUpdated)&&rw(()=>i_(t,c,n,u),l)}else{let o;let{el:a,props:c}=t,{bm:u,m:d,parent:p}=e,h=nd(t);if(rI(e,!1),u&&z(u),!h&&(o=c&&c.onVnodeBeforeMount)&&i_(o,p,t),rI(e,!0),a&&i){let n=()=>{e.subTree=rW(e),i(a,e.subTree,e,l,null)};h?t.type.__asyncLoader().then(()=>!e.isUnmounted&&n()):n()}else{let i=e.subTree=rW(e);T(null,i,n,r,e,l,s),t.el=i.el}if(d&&rw(d,l),!h&&(o=c&&c.onVnodeMounted)){let e=t;rw(()=>i_(o,p,e),l)}(256&t.shapeFlag||p&&nd(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&rw(e.a,l),e.isMounted=!0,t=n=r=null}},c=e.effect=new ev(a,h,()=>tJ(u),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.i=e,u.id=e.uid,rI(e,!0),u()},X=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){let{props:i,attrs:l,vnode:{patchFlag:s}}=e,o=ty(i),[a]=e.propsOptions,c=!1;if((r||s>0)&&!(16&s)){if(8&s){let n=e.vnode.dynamicProps;for(let r=0;r{let c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p){ee(c,d,n,r,i,l,s,o,a);return}if(256&p){Y(c,d,n,r,i,l,s,o,a);return}}8&h?(16&u&&es(c,i,l),d!==c&&g(n,d)):16&u?16&h?ee(c,d,n,r,i,l,s,o,a):es(c,i,l,!0):(8&u&&g(n,""),16&h&&D(d,n,r,i,l,s,o,a))},Y=(e,t,n,r,i,l,s,o,a)=>{let c;e=e||p,t=t||p;let u=e.length,d=t.length,h=Math.min(u,d);for(c=0;cd?es(e,i,l,!0,!1,h):D(t,n,r,i,l,s,o,a,h)},ee=(e,t,n,r,i,l,s,o,a)=>{let c=0,u=t.length,d=e.length-1,h=u-1;for(;c<=d&&c<=h;){let r=e[c],u=t[c]=a?iy(t[c]):ig(t[c]);if(io(r,u))T(r,u,n,null,i,l,s,o,a);else break;c++}for(;c<=d&&c<=h;){let r=e[d],c=t[h]=a?iy(t[h]):ig(t[h]);if(io(r,c))T(r,c,n,null,i,l,s,o,a);else break;d--,h--}if(c>d){if(c<=h){let e=h+1,d=eh)for(;c<=d;)en(e[c],i,l,!0),c++;else{let f;let m=c,g=c,y=new Map;for(c=g;c<=h;c++){let e=t[c]=a?iy(t[c]):ig(t[c]);null!=e.key&&y.set(e.key,c)}let b=0,_=h-g+1,S=!1,x=0,C=Array(_);for(c=0;c<_;c++)C[c]=0;for(c=m;c<=d;c++){let r;let u=e[c];if(b>=_){en(u,i,l,!0);continue}if(null!=u.key)r=y.get(u.key);else for(f=g;f<=h;f++)if(0===C[f-g]&&io(u,t[f])){r=f;break}void 0===r?en(u,i,l,!0):(C[r-g]=c+1,r>=x?x=r:S=!0,T(u,t[r],n,null,i,l,s,o,a),b++)}let k=S?function(e){let t,n,r,i,l;let s=e.slice(),o=[0],a=e.length;for(t=0;t>1]]0&&(s[t]=o[r-1]),o[r]=t)}}for(r=o.length,i=o[r-1];r-- >0;)o[r]=i,i=s[i];return o}(C):p;for(f=k.length-1,c=_-1;c>=0;c--){let e=g+c,d=t[e],p=e+1{let{el:l,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u){et(e.component.subTree,t,n,r);return}if(128&u){e.suspense.move(t,n,r);return}if(64&u){o.move(e,t,n,eu);return}if(o===r3){s(l,t,n);for(let e=0;ea.enter(l),i);else{let{leave:e,delayLeave:r,afterLeave:i}=a,o=()=>s(l,t,n),c=()=>{e(l,()=>{o(),i&&i()})};r?r(l,o,c):c()}}else s(l,t,n)},en=(e,t,n,r=!1,i=!1)=>{let l;let{type:s,props:o,ref:a,children:c,dynamicChildren:u,shapeFlag:d,patchFlag:p,dirs:h,cacheIndex:f}=e;if(-2===p&&(i=!1),null!=a&&rc(a,null,n,e,!0),null!=f&&(t.renderCache[f]=void 0),256&d){t.ctx.deactivate(e);return}let m=1&d&&h,g=!nd(e);if(g&&(l=o&&o.onVnodeBeforeUnmount)&&i_(l,t,e),6&d)el(e.component,n,r);else{if(128&d){e.suspense.unmount(n,r);return}m&&t8(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,eu,r):u&&!u.hasOnce&&(s!==r3||p>0&&64&p)?es(u,t,n,!1,!0):(s===r3&&384&p||!i&&16&d)&&es(c,t,n),r&&er(e)}(g&&(l=o&&o.onVnodeUnmounted)||m)&&rw(()=>{l&&i_(l,t,e),m&&t8(e,null,t,"unmounted")},n)},er=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===r3){ei(n,r);return}if(t===r8){L(e);return}let l=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,s=()=>t(n,l);r?r(e.el,l,s):s()}else l()},ei=(e,t)=>{let n;for(;e!==t;)n=_(e),o(e),e=n;o(t)},el=(e,t,n)=>{let{bum:r,scope:i,update:l,subTree:s,um:o,m:a,a:c}=e;rL(a),rL(c),r&&z(r),i.stop(),l&&(l.active=!1,en(s,e,t,n)),o&&rw(o,t),rw(()=>{e.isUnmounted=!0},t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},es=(e,t,n,r=!1,i=!1,l=0)=>{for(let s=l;s{if(6&e.shapeFlag)return eo(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();let t=_(e.anchor||e.el),n=t&&t[ru];return n?_(n):t},ea=!1,ec=(e,t,n)=>{null==e?t._vnode&&en(t._vnode,null,null,!0):T(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ea||(ea=!0,tZ(),tY(),ea=!1)},eu={p:T,um:en,m:et,r:er,mt:K,mc:D,pc:Z,pbc:B,n:eo,o:e};return t&&([r,i]=t(eu)),{render:ec,hydrate:r,createApp:(n=r,function(e,t=null){E(e)||(e=y({},e)),null==t||I(t)||(t=null);let r=nY(),i=new WeakSet,l=!1,s=r.app={_uid:n0++,_component:e,_props:t,_container:null,_context:r,_instance:null,version:iV,get config(){return r.config},set config(v){},use:(e,...t)=>(i.has(e)||(e&&E(e.install)?(i.add(e),e.install(s,...t)):E(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,o,a){if(!l){let c=id(e,t);return c.appContext=r,!0===a?a="svg":!1===a&&(a=void 0),o&&n?n(c,i):ec(c,i,a),l=!0,s._container=i,i.__vue_app__=s,iM(c.component)}},unmount(){l&&(ec(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s),runWithContext(e){let t=n1;n1=s;try{return e()}finally{n1=t}}};return s})}}function rN({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function rI({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function rR(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function rO(e,t,n=!1){let r=e.children,i=t.children;if(x(r)&&x(i))for(let e=0;e{e(...t),w()}}let f=iC,m=e=>!0===i?e:rU(e,!1===i?1:void 0),g=!1,y=!1;if(tk(e)?(c=()=>e.value,g=tm(e)):th(e)?(c=()=>m(e),g=!0):x(e)?(y=!0,g=e.some(e=>th(e)||tm(e)),c=()=>e.map(e=>tk(e)?e.value:th(e)?m(e):E(e)?tP(e,f,2):void 0)):c=E(e)?t?()=>tP(e,f,2):()=>(u&&u(),tF(e,f,3,[_])):h,t&&i){let e=c;c=()=>rU(e())}let _=e=>{u=k.onStop=()=>{tP(e,f,4),u=k.onStop=void 0}},S=y?Array(e.length).fill(rF):rF,C=()=>{if(k.active&&k.dirty){if(t){let e=k.run();(i||g||(y?e.some((e,t)=>K(e,S[t])):K(e,S)))&&(u&&u(),tF(t,f,3,[e,S===rF?void 0:y&&S[0]===rF?[]:S,_]),S=e)}else k.run()}};C.allowRecurse=!!t,"sync"===l?p=C:"post"===l?p=()=>rw(C,f&&f.suspense):(C.pre=!0,f&&(C.id=f.uid),p=()=>tJ(C));let k=new ev(c,h,p),T=n,w=()=>{k.stop(),T&&b(T.effects,k)};return t?r?C():S=k.run():"post"===l?rw(k.run.bind(k),f&&f.suspense):k.run(),w}function rV(e,t,n){let r;let i=this.proxy,l=A(e)?e.includes(".")?rB(i,e):()=>i[e]:e.bind(i,i);E(t)?r=t:(r=t.handler,n=t);let s=iT(this),o=rD(l,r.bind(i),n);return s(),o}function rB(e,t){let n=t.split(".");return()=>{let t=e;for(let e=0;e{rU(e,t,n)});else if($(e)){for(let r in e)rU(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rU(e[r],t,n)}return e}let rj=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${U(t)}Modifiers`]||e[`${H(t)}Modifiers`];function rH(e,t,...n){let r;if(e.isUnmounted)return;let i=e.vnode.props||d,l=n,s=t.startsWith("update:"),o=s&&rj(i,t.slice(7));o&&(o.trim&&(l=n.map(e=>A(e)?e.trim():e)),o.number&&(l=n.map(J)));let a=i[r=W(t)]||i[r=W(U(t))];!a&&s&&(a=i[r=W(H(t))]),a&&tF(a,e,6,l);let c=i[r+"Once"];if(c){if(e.emitted){if(e.emitted[r])return}else e.emitted={};e.emitted[r]=!0,tF(c,e,6,l)}}function rq(e,t){return!!(e&&m(t))&&(S(e,(t=t.slice(2).replace(/Once$/,""))[0].toLowerCase()+t.slice(1))||S(e,H(t))||S(e,t))}function rW(e){let t,n;let{type:r,vnode:i,proxy:l,withProxy:s,propsOptions:[o],slots:a,attrs:c,emit:u,render:d,renderCache:p,props:h,data:f,setupState:m,ctx:y,inheritAttrs:b}=e,_=t6(e);try{if(4&i.shapeFlag){let e=s||l;t=ig(d.call(e,e,p,h,m,f,y)),n=c}else t=ig(r.length>1?r(h,{attrs:c,slots:a,emit:u}):r(h,null)),n=r.props?c:rK(c)}catch(n){r5.length=0,tD(n,e,1),t=id(r4)}let S=t;if(n&&!1!==b){let e=Object.keys(n),{shapeFlag:t}=S;e.length&&7&t&&(o&&e.some(g)&&(n=rz(n,o)),S=ih(S,n,!1,!0))}return i.dirs&&((S=ih(S,null,!1,!0)).dirs=S.dirs?S.dirs.concat(i.dirs):i.dirs),i.transition&&(S.transition=i.transition),t=S,t6(_),t}let rK=e=>{let t;for(let n in e)("class"===n||"style"===n||m(n))&&((t||(t={}))[n]=e[n]);return t},rz=(e,t)=>{let n={};for(let r in e)g(r)&&r.slice(9) in t||(n[r]=e[r]);return n};function rG(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense,rQ=0;function rZ(e,t){let n=e.props&&e.props[t];E(n)&&n()}function rY(e,t,n,r,i,l,s,o,a,c,u=!1){let d;let{p:p,m:h,um:f,n:m,o:{parentNode:g,remove:y}}=c,b=function(e){let t=e.props&&e.props.suspensible;return null!=t&&!1!==t}(e);b&&t&&t.pendingBranch&&(d=t.pendingId,t.deps++);let _=e.props?X(e.props.timeout):void 0,S=l,x={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:i,deps:0,pendingId:rQ++,timeout:"number"==typeof _?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:s,pendingId:o,effects:a,parentComponent:c,container:u}=x,p=!1;x.isHydrating?x.isHydrating=!1:e||((p=i&&s.transition&&"out-in"===s.transition.mode)&&(i.transition.afterLeave=()=>{o===x.pendingId&&(h(s,u,l===S?m(i):l,0),tQ(a))}),i&&(g(i.el)!==x.hiddenContainer&&(l=m(i)),f(i,c,x,!0)),p||h(s,u,l,0)),r2(x,s),x.pendingBranch=null,x.isInFallback=!1;let y=x.parent,_=!1;for(;y;){if(y.pendingBranch){y.effects.push(...a),_=!0;break}y=y.parent}_||p||tQ(a),x.effects=[],b&&t&&t.pendingBranch&&d===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),rZ(r,"onResolve")},fallback(e){if(!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:l}=x;rZ(t,"onFallback");let s=m(n),c=()=>{x.isInFallback&&(p(null,e,i,s,r,null,l,o,a),r2(x,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=c),x.isInFallback=!0,f(n,r,null,!0),u||c()},move(e,t,n){x.activeBranch&&h(x.activeBranch,e,t,n),x.container=e},next:()=>x.activeBranch&&m(x.activeBranch),registerDep(e,t,n){let r=!!x.pendingBranch;r&&x.deps++;let i=e.vnode.el;e.asyncDep.catch(t=>{tD(t,e,0)}).then(l=>{if(e.isUnmounted||x.isUnmounted||x.pendingId!==e.suspenseId)return;e.asyncResolved=!0;let{vnode:o}=e;iN(e,l,!1),i&&(o.el=i);let a=!i&&e.subTree.el;t(e,o,g(i||e.subTree.el),i?null:m(e.subTree),x,s,n),a&&y(a),rJ(e,o.el),r&&0==--x.deps&&x.resolve()})},unmount(e,t){x.isUnmounted=!0,x.activeBranch&&f(x.activeBranch,n,e,t),x.pendingBranch&&f(x.pendingBranch,n,e,t)}};return x}function r0(e){let t;if(E(e)){let n=it&&e._c;n&&(e._d=!1,r7()),e=e(),n&&(e._d=!0,t=r9,ie())}return x(e)&&(e=function(e,t=!0){let n;for(let t=0;tt!==e)),e}function r1(e,t){t&&t.pendingBranch?x(e)?t.effects.push(...e):t.effects.push(e):tQ(e)}function r2(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,rJ(r,i))}let r3=Symbol.for("v-fgt"),r6=Symbol.for("v-txt"),r4=Symbol.for("v-cmt"),r8=Symbol.for("v-stc"),r5=[],r9=null;function r7(e=!1){r5.push(r9=e?null:[])}function ie(){r5.pop(),r9=r5[r5.length-1]||null}let it=1;function ir(e){it+=e,e<0&&r9&&(r9.hasOnce=!0)}function ii(e){return e.dynamicChildren=it>0?r9||p:null,ie(),it>0&&r9&&r9.push(e),e}function il(e,t,n,r,i){return ii(id(e,t,n,r,i,!0))}function is(e){return!!e&&!0===e.__v_isVNode}function io(e,t){return e.type===t.type&&e.key===t.key}let ia=({key:e})=>null!=e?e:null,ic=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?A(e)||tk(e)||E(e)?{i:t2,r:e,k:t,f:!!n}:e:null);function iu(e,t=null,n=null,r=0,i=null,l=e===r3?0:1,s=!1,o=!1){let a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ia(t),ref:t&&ic(t),scopeId:t3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:t2};return o?(iv(a,n),128&l&&e.normalize(a)):n&&(a.shapeFlag|=A(n)?8:16),it>0&&!s&&r9&&(a.patchFlag>0||6&l)&&32!==a.patchFlag&&r9.push(a),a}let id=function(e,t=null,n=null,r=0,i=null,l=!1){var s;if(e&&e!==nL||(e=r4),is(e)){let r=ih(e,t,!0);return n&&iv(r,n),it>0&&!l&&r9&&(6&r.shapeFlag?r9[r9.indexOf(e)]=r:r9.push(r)),r.patchFlag=-2,r}if(E(s=e)&&"__vccOpts"in s&&(e=e.__vccOpts),t){let{class:e,style:n}=t=ip(t);e&&!A(e)&&(t.class=ei(e)),I(n)&&(tg(n)&&!x(n)&&(n=y({},n)),t.style=Y(n))}let o=A(e)?1:rX(e)?128:rd(e)?64:I(e)?4:E(e)?2:0;return iu(e,t,n,r,i,o,l,!0)};function ip(e){return e?tg(e)||n8(e)?y({},e):e:null}function ih(e,t,n=!1,r=!1){let{props:i,ref:l,patchFlag:s,children:o,transition:a}=e,c=t?ib(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ia(c),ref:t&&t.ref?n&&l?x(l)?l.concat(ic(t)):[l,ic(t)]:ic(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==r3?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ih(e.ssContent),ssFallback:e.ssFallback&&ih(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&na(u,a.clone(u)),u}function im(e=" ",t=0){return id(r6,null,e,t)}function ig(e){return null==e||"boolean"==typeof e?id(r4):x(e)?id(r3,null,e.slice()):"object"==typeof e?iy(e):id(r6,null,String(e))}function iy(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:ih(e)}function iv(e,t){let n=0,{shapeFlag:r}=e;if(null==t)t=null;else if(x(t))n=16;else if("object"==typeof t){if(65&r){let n=t.default;n&&(n._c&&(n._d=!1),iv(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;r||n8(t)?3===r&&t2&&(1===t2.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=t2}}else E(t)?(t={default:t,_ctx:t2},n=32):(t=String(t),64&r?(n=16,t=[im(t)]):n=8);e.children=t,e.shapeFlag|=n}function ib(...e){let t={};for(let n=0;niC||t2;i=e=>{iC=e},l=e=>{iA=e};let iT=e=>{let t=iC;return i(e),e.scope.on(),()=>{e.scope.off(),i(t)}},iw=()=>{iC&&iC.scope.off(),i(null)};function iE(e){return 4&e.vnode.shapeFlag}let iA=!1;function iN(e,t,n){E(t)?e.render=t:I(t)&&(e.setupState=tI(t)),iR(e,n)}function iI(e){s=e,o=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,nB))}}function iR(e,t,n){let r=e.type;if(!e.render){if(!t&&s&&!r.render){let t=r.template||nW(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:o}=r,a=y(y({isCustomElement:n,delimiters:l},i),o);r.render=s(t,a)}}e.render=r.render||h,o&&o(e)}{let t=iT(e);eT();try{!function(e){let t=nW(e),n=e.proxy,r=e.ctx;nH=!1,t.beforeCreate&&nq(t.beforeCreate,e,"bc");let{data:i,computed:l,methods:s,watch:o,provide:a,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:m,activated:g,deactivated:y,beforeDestroy:b,beforeUnmount:_,destroyed:S,unmounted:C,render:k,renderTracked:T,renderTriggered:w,errorCaptured:N,serverPrefetch:R,expose:O,inheritAttrs:L,components:M,directives:$,filters:P}=t;if(c&&function(e,t,n=h){for(let n in x(e)&&(e=nJ(e)),e){let r;let i=e[n];tk(r=I(i)?"default"in i?n3(i.from||n,i.default,!0):n3(i.from||n):n3(i))?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e}):t[n]=r}}(c,r,null),s)for(let e in s){let t=s[e];E(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);I(t)&&(e.data=tc(t))}if(nH=!0,l)for(let e in l){let t=l[e],i=E(t)?t.bind(n,n):E(t.get)?t.get.bind(n,n):h,s=iP({get:i,set:!E(t)&&E(t.set)?t.set.bind(n):h});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e})}if(o)for(let e in o)!function e(t,n,r,i){let l=i.includes(".")?rB(r,i):()=>r[i];if(A(t)){let e=n[t];E(e)&&rD(l,e,void 0)}else if(E(t)){var s;s=t.bind(r),rD(l,s,void 0)}else if(I(t)){if(x(t))t.forEach(t=>e(t,n,r,i));else{let e=E(t.handler)?t.handler.bind(r):n[t.handler];E(e)&&rD(l,e,t)}}}(o[e],r,n,e);if(a){let e=E(a)?a.call(n):a;Reflect.ownKeys(e).forEach(t=>{n2(t,e[t])})}function F(e,t){x(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(u&&nq(u,e,"c"),F(nx,d),F(nC,p),F(nk,f),F(nT,m),F(nm,g),F(ng,y),F(nR,N),F(nI,T),F(nN,w),F(nw,_),F(nE,C),F(nA,R),x(O)){if(O.length){let t=e.exposed||(e.exposed={});O.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})})}else e.exposed||(e.exposed={})}k&&e.render===h&&(e.render=k),null!=L&&(e.inheritAttrs=L),M&&(e.components=M),$&&(e.directives=$)}(e)}finally{ew(),t()}}}let iO={get:(e,t)=>(e$(e,"get",""),e[t])};function iL(e){return{attrs:new Proxy(e.attrs,iO),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function iM(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(tI(tv(e.exposed)),{get:(t,n)=>n in t?t[n]:n in nF?nF[n](e):void 0,has:(e,t)=>t in e||t in nF})):e.proxy}function i$(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}let iP=(e,t)=>(function(e,t,n=!1){let r,i;let l=E(e);return l?(r=e,i=h):(r=e.get,i=e.set),new tS(r,i,l||!i,n)})(e,0,iA);function iF(e,t,n){let r=arguments.length;return 2!==r?(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&is(n)&&(n=[n]),id(e,t,n)):!I(t)||x(t)?id(e,null,t):is(t)?id(e,null,[t]):id(e,t)}function iD(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&r9&&r9.push(e),!0}let iV="3.4.38",iB="undefined"!=typeof document?document:null,iU=iB&&iB.createElement("template"),ij="transition",iH="animation",iq=Symbol("_vtc"),iW=(e,{slots:t})=>iF(nr,iX(e),t);iW.displayName="Transition";let iK={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},iz=iW.props=y({},nt,iK),iG=(e,t=[])=>{x(e)?e.forEach(e=>e(...t)):e&&e(...t)},iJ=e=>!!e&&(x(e)?e.some(e=>e.length>1):e.length>1);function iX(e){let t={};for(let n in e)n in iK||(t[n]=e[n]);if(!1===e.css)return t;let{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=s,appearToClass:u=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(I(e))return[X(e.enter),X(e.leave)];{let t=X(e);return[t,t]}}(i),m=f&&f[0],g=f&&f[1],{onBeforeEnter:b,onEnter:_,onEnterCancelled:S,onLeave:x,onLeaveCancelled:C,onBeforeAppear:k=b,onAppear:T=_,onAppearCancelled:w=S}=t,E=(e,t,n)=>{iZ(e,t?u:o),iZ(e,t?c:s),n&&n()},A=(e,t)=>{e._isLeaving=!1,iZ(e,d),iZ(e,h),iZ(e,p),t&&t()},N=e=>(t,n)=>{let i=e?T:_,s=()=>E(t,e,n);iG(i,[t,s]),iY(()=>{iZ(t,e?a:l),iQ(t,e?u:o),iJ(i)||i1(t,r,m,s)})};return y(t,{onBeforeEnter(e){iG(b,[e]),iQ(e,l),iQ(e,s)},onBeforeAppear(e){iG(k,[e]),iQ(e,a),iQ(e,c)},onEnter:N(!1),onAppear:N(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>A(e,t);iQ(e,d),iQ(e,p),i4(),iY(()=>{e._isLeaving&&(iZ(e,d),iQ(e,h),iJ(x)||i1(e,r,g,n))}),iG(x,[e,n])},onEnterCancelled(e){E(e,!1),iG(S,[e])},onAppearCancelled(e){E(e,!0),iG(w,[e])},onLeaveCancelled(e){A(e),iG(C,[e])}})}function iQ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[iq]||(e[iq]=new Set)).add(t)}function iZ(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[iq];n&&(n.delete(t),n.size||(e[iq]=void 0))}function iY(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let i0=0;function i1(e,t,n,r){let i=e._endId=++i0,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);let{type:s,timeout:o,propCount:a}=i2(e,t);if(!s)return r();let c=s+"end",u=0,d=()=>{e.removeEventListener(c,p),l()},p=t=>{t.target===e&&++u>=a&&d()};setTimeout(()=>{u(n[e]||"").split(", "),i=r(`${ij}Delay`),l=r(`${ij}Duration`),s=i3(i,l),o=r(`${iH}Delay`),a=r(`${iH}Duration`),c=i3(o,a),u=null,d=0,p=0;t===ij?s>0&&(u=ij,d=s,p=l.length):t===iH?c>0&&(u=iH,d=c,p=a.length):p=(u=(d=Math.max(s,c))>0?s>c?ij:iH:null)?u===ij?l.length:a.length:0;let h=u===ij&&/\b(transform|all)(,|$)/.test(r(`${ij}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:h}}function i3(e,t){for(;e.lengthi6(t)+i6(e[n])))}function i6(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function i4(){return document.body.offsetHeight}let i8=Symbol("_vod"),i5=Symbol("_vsh");function i9(e,t){e.style.display=t?e[i8]:"none",e[i5]=!t}let i7=Symbol("");function le(e,t){if(1===e.nodeType){let n=e.style,r="";for(let e in t)n.setProperty(`--${e}`,t[e]),r+=`--${e}: ${t[e]};`;n[i7]=r}}let lt=/(^|;)\s*display\s*:/,ln=/\s*!important$/;function lr(e,t,n){if(x(n))n.forEach(n=>lr(e,t,n));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{let r=function(e,t){let n=ll[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return ll[t]=r;r=q(r);for(let n=0;nld||(lp.then(()=>ld=0),ld=Date.now()),lf=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&123>e.charCodeAt(2);/*! #__NO_SIDE_EFFECTS__ */function lm(e,t,n){let r=nu(e,t);class i extends ly{constructor(e){super(r,e,n)}}return i.def=r,i}let lg="undefined"!=typeof HTMLElement?HTMLElement:class{};class ly extends lg{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,tG(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),lW(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let e=0;e{for(let t of e)this._setAttr(t.attributeName)}),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{let n;let{props:r,styles:i}=e;if(r&&!x(r))for(let e in r){let t=r[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=X(this._props[e])),(n||(n=Object.create(null)))[U(e)]=!0)}this._numberProps=n,t&&this._resolveProps(e),this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(t=>e(t,!0)):e(this._def)}_resolveProps(e){let{props:t}=e,n=x(t)?t:Object.keys(t||{});for(let e of Object.keys(this))"_"!==e[0]&&n.includes(e)&&this._setProp(e,this[e],!0,!1);for(let e of n.map(U))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0,n=U(e);this._numberProps&&this._numberProps[n]&&(t=X(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(H(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(H(e),t+""):t||this.removeAttribute(H(e))))}_update(){lW(this._createVNode(),this.shadowRoot)}_createVNode(){let e=id(this._def,y({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),H(e)!==e&&t(H(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof ly){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach(e=>{let t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)})}}let lv=new WeakMap,lb=new WeakMap,l_=Symbol("_moveCb"),lS=Symbol("_enterCb"),lx={name:"TransitionGroup",props:y({},iz,{tag:String,moveClass:String}),setup(e,{slots:t}){let n,r;let i=ik(),l=t7();return nT(()=>{if(!n.length)return;let t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){let r=e.cloneNode(),i=e[iq];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display="none";let l=1===t.nodeType?t:t.parentNode;l.appendChild(r);let{hasTransform:s}=i2(r);return l.removeChild(r),s}(n[0].el,i.vnode.el,t))return;n.forEach(lC),n.forEach(lk);let r=n.filter(lT);i4(),r.forEach(e=>{let n=e.el,r=n.style;iQ(n,t),r.transform=r.webkitTransform=r.transitionDuration="";let i=n[l_]=e=>{(!e||e.target===n)&&(!e||/transform$/.test(e.propertyName))&&(n.removeEventListener("transitionend",i),n[l_]=null,iZ(n,t))};n.addEventListener("transitionend",i)})}),()=>{let s=ty(e),o=iX(s),a=s.tag||r3;if(n=[],r)for(let e=0;e{let t=e.props["onUpdate:modelValue"]||!1;return x(t)?e=>z(t,e):t};function lE(e){e.target.composing=!0}function lA(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}let lN=Symbol("_assign"),lI={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[lN]=lw(i);let l=r||i.props&&"number"===i.props.type;la(e,t?"change":"input",t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),l&&(r=J(r)),e[lN](r)}),n&&la(e,"change",()=>{e.value=e.value.trim()}),t||(la(e,"compositionstart",lE),la(e,"compositionend",lA),la(e,"change",lA))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:l}},s){if(e[lN]=lw(s),e.composing)return;let o=(l||"number"===e.type)&&!/^0\d/.test(e.value)?J(e.value):e.value,a=null==t?"":t;o===a||document.activeElement===e&&"range"!==e.type&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a)}},lR={deep:!0,created(e,t,n){e[lN]=lw(n),la(e,"change",()=>{let t=e._modelValue,n=lP(e),r=e.checked,i=e[lN];if(x(t)){let e=ed(t,n),l=-1!==e;if(r&&!l)i(t.concat(n));else if(!r&&l){let n=[...t];n.splice(e,1),i(n)}}else if(k(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(lF(e,r))})},mounted:lO,beforeUpdate(e,t,n){e[lN]=lw(n),lO(e,t,n)}};function lO(e,{value:t,oldValue:n},r){e._modelValue=t,x(t)?e.checked=ed(t,r.props.value)>-1:k(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=eu(t,lF(e,!0)))}let lL={created(e,{value:t},n){e.checked=eu(t,n.props.value),e[lN]=lw(n),la(e,"change",()=>{e[lN](lP(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lN]=lw(r),t!==n&&(e.checked=eu(t,r.props.value))}},lM={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=k(t);la(e,"change",()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?J(lP(e)):lP(e));e[lN](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,tG(()=>{e._assigning=!1})}),e[lN]=lw(r)},mounted(e,{value:t}){l$(e,t)},beforeUpdate(e,t,n){e[lN]=lw(n)},updated(e,{value:t}){e._assigning||l$(e,t)}};function l$(e,t,n){let r=e.multiple,i=x(t);if(!r||i||k(t)){for(let n=0,l=e.options.length;nString(e)===String(s)):l.selected=ed(t,s)>-1}else l.selected=t.has(s)}else if(eu(lP(l),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}r||-1===e.selectedIndex||(e.selectedIndex=-1)}}function lP(e){return"_value"in e?e._value:e.value}function lF(e,t){let n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}function lD(e,t,n,r,i){let l=function(e,t){switch(e){case"SELECT":return lM;case"TEXTAREA":return lI;default:switch(t){case"checkbox":return lR;case"radio":return lL;default:return lI}}}(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}let lV=["ctrl","shift","alt","meta"],lB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>lV.some(n=>e[`${n}Key`]&&!t.includes(n))},lU={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},lj=y({patchProp:(e,t,n,r,i,l)=>{let s="svg"===i;"class"===t?function(e,t,n){let r=e[iq];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,s):"style"===t?function(e,t,n){let r=e.style,i=A(n),l=!1;if(n&&!i){if(t){if(A(t))for(let e of t.split(";")){let t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&lr(r,t,"")}else for(let e in t)null==n[e]&&lr(r,e,"")}for(let e in n)"display"===e&&(l=!0),lr(r,e,n[e])}else if(i){if(t!==n){let e=r[i7];e&&(n+=";"+e),r.cssText=n,l=lt.test(n)}}else t&&e.removeAttribute("style");i8 in e&&(e[i8]=l?r.display:"",e[i5]&&(r.display="none"))}(e,n,r):m(t)?g(t)||function(e,t,n,r,i=null){let l=e[lc]||(e[lc]={}),s=l[t];if(r&&s)s.value=r;else{let[n,o]=function(e){let t;if(lu.test(e)){let n;for(t={};n=e.match(lu);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):H(e.slice(2)),t]}(t);r?la(e,n,l[t]=function(e,t){let n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();tF(function(e,t){if(!x(t))return t;{let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}}(e,n.value),t,5,[e])};return n.value=e,n.attached=lh(),n}(r,i),o):s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),l[t]=void 0)}}(e,t,0,r,l):("."===t[0]?(t=t.slice(1),0):"^"===t[0]?(t=t.slice(1),1):!function(e,t,n,r){if(r)return!!("innerHTML"===t||"textContent"===t||t in e&&lf(t)&&E(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"form"===t||"list"===t&&"INPUT"===e.tagName||"type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){let t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return!(lf(t)&&A(n))&&t in e}(e,t,r,s))?("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),lo(e,t,r,s)):(!function(e,t,n,r){if("innerHTML"===t||"textContent"===t){if(null==n)return;e[t]=n;return}let i=e.tagName;if("value"===t&&"PROGRESS"!==i&&!i.includes("-")){let r="OPTION"===i?e.getAttribute("value")||"":e.value,l=null==n?"":String(n);r===l&&"_value"in e||(e.value=l),null==n&&e.removeAttribute(t),e._value=n;return}let l=!1;if(""===n||null==n){let r=typeof e[t];if("boolean"===r){var s;n=!!(s=n)||""===s}else null==n&&"string"===r?(n="",l=!0):"number"===r&&(n=0,l=!0)}try{e[t]=n}catch(e){}l&&e.removeAttribute(t)}(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||lo(e,t,r,s,l,"value"!==t))}},{insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i="svg"===t?iB.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?iB.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?iB.createElement(e,{is:n}):iB.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>iB.createTextNode(e),createComment:e=>iB.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>iB.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){let s=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==l&&(i=i.nextSibling););else{iU.innerHTML="svg"===r?`${e}`:"mathml"===r?`${e}`:e;let i=iU.content;if("svg"===r||"mathml"===r){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}}),lH=!1;function lq(){return a=lH?a:rE(lj),lH=!0,a}let lW=(...e)=>{(a||(a=rA(lj))).render(...e)},lK=(...e)=>{lq().hydrate(...e)};function lz(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function lG(e){return A(e)?document.querySelector(e):e}let lJ=Symbol(""),lX=Symbol(""),lQ=Symbol(""),lZ=Symbol(""),lY=Symbol(""),l0=Symbol(""),l1=Symbol(""),l2=Symbol(""),l3=Symbol(""),l6=Symbol(""),l4=Symbol(""),l8=Symbol(""),l5=Symbol(""),l9=Symbol(""),l7=Symbol(""),se=Symbol(""),st=Symbol(""),sn=Symbol(""),sr=Symbol(""),si=Symbol(""),sl=Symbol(""),ss=Symbol(""),so=Symbol(""),sa=Symbol(""),sc=Symbol(""),su=Symbol(""),sd=Symbol(""),sp=Symbol(""),sh=Symbol(""),sf=Symbol(""),sm=Symbol(""),sg=Symbol(""),sy=Symbol(""),sv=Symbol(""),sb=Symbol(""),s_=Symbol(""),sS=Symbol(""),sx=Symbol(""),sC=Symbol(""),sk={[lJ]:"Fragment",[lX]:"Teleport",[lQ]:"Suspense",[lZ]:"KeepAlive",[lY]:"BaseTransition",[l0]:"openBlock",[l1]:"createBlock",[l2]:"createElementBlock",[l3]:"createVNode",[l6]:"createElementVNode",[l4]:"createCommentVNode",[l8]:"createTextVNode",[l5]:"createStaticVNode",[l9]:"resolveComponent",[l7]:"resolveDynamicComponent",[se]:"resolveDirective",[st]:"resolveFilter",[sn]:"withDirectives",[sr]:"renderList",[si]:"renderSlot",[sl]:"createSlots",[ss]:"toDisplayString",[so]:"mergeProps",[sa]:"normalizeClass",[sc]:"normalizeStyle",[su]:"normalizeProps",[sd]:"guardReactiveProps",[sp]:"toHandlers",[sh]:"camelize",[sf]:"capitalize",[sm]:"toHandlerKey",[sg]:"setBlockTracking",[sy]:"pushScopeId",[sv]:"popScopeId",[sb]:"withCtx",[s_]:"unref",[sS]:"isRef",[sx]:"withMemo",[sC]:"isMemoSame"},sT={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function sw(e,t,n,r,i,l,s,o=!1,a=!1,c=!1,u=sT){return e&&(o?(e.helper(l0),e.helper(e.inSSR||c?l1:l2)):e.helper(e.inSSR||c?l3:l6),s&&e.helper(sn)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:l,directives:s,isBlock:o,disableTracking:a,isComponent:c,loc:u}}function sE(e,t=sT){return{type:17,loc:t,elements:e}}function sA(e,t=sT){return{type:15,loc:t,properties:e}}function sN(e,t){return{type:16,loc:sT,key:A(e)?sI(e,!0):e,value:t}}function sI(e,t=!1,n=sT,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function sR(e,t=sT){return{type:8,loc:t,children:e}}function sO(e,t=[],n=sT){return{type:14,loc:n,callee:e,arguments:t}}function sL(e,t,n=!1,r=!1,i=sT){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function sM(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:sT}}function s$(e,{helper:t,removeHelper:n,inSSR:r}){if(!e.isBlock){var i,l;e.isBlock=!0,n((i=e.isComponent,r||i?l3:l6)),t(l0),t((l=e.isComponent,r||l?l1:l2))}}let sP=new Uint8Array([123,123]),sF=new Uint8Array([125,125]);function sD(e){return e>=97&&e<=122||e>=65&&e<=90}function sV(e){return 32===e||10===e||9===e||12===e||13===e}function sB(e){return 47===e||62===e||sV(e)}function sU(e){let t=new Uint8Array(e.length);for(let n=0;n4===e.type&&e.isStatic;function sz(e){switch(e){case"Teleport":case"teleport":return lX;case"Suspense":case"suspense":return lQ;case"KeepAlive":case"keep-alive":return lZ;case"BaseTransition":case"base-transition":return lY}}let sG=/^\d|[^\$\w\xA0-\uFFFF]/,sJ=e=>!sG.test(e),sX=/[A-Za-z_$\xA0-\uFFFF]/,sQ=/[\.\?\w$\xA0-\uFFFF]/,sZ=/\s+[.[]\s*|\s*[.[]\s+/g,sY=e=>4===e.type?e.content:e.loc.source,s0=e=>{let t=sY(e).trim().replace(sZ,e=>e.trim()),n=0,r=[],i=0,l=0,s=null;for(let e=0;e|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,s2=e=>s1.test(sY(e));function s3(e,t,n=!1){for(let r=0;r4===e.key.type&&e.key.content===r)}return n}function or(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}let oi=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,ol={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:f,isPreTag:f,isCustomElement:f,onError:sH,onWarn:sq,comments:!1,prefixIdentifiers:!1},os=ol,oo=null,oa="",oc=null,ou=null,od="",op=-1,oh=-1,of=0,om=!1,og=null,oy=[],ov=new class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=sP,this.delimiterClose=sF,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=sP,this.delimiterClose=sF}getPos(e){let t=1,n=e+1;for(let r=this.newlines.length-1;r>=0;r--){let i=this.newlines[r];if(e>i){t=r+2,n=e-i;break}}return{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex]){if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++}else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(t?sB(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t){this.sequenceIndex++;return}}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||sV(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart=e||(28===this.state?this.currentSequence===sj.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}(oy,{onerr:oM,ontext(e,t){oC(oS(e,t),e,t)},ontextentity(e,t,n){oC(e,t,n)},oninterpolation(e,t){if(om)return oC(oS(e,t),e,t);let n=e+ov.delimiterOpen.length,r=t-ov.delimiterClose.length;for(;sV(oa.charCodeAt(n));)n++;for(;sV(oa.charCodeAt(r-1));)r--;let i=oS(n,r);i.includes("&")&&(i=os.decodeEntities(i,!1)),oI({type:5,content:oL(i,!1,oR(n,r)),loc:oR(e,t)})},onopentagname(e,t){let n=oS(e,t);oc={type:1,tag:n,ns:os.getNamespace(n,oy[0],os.ns),tagType:0,props:[],children:[],loc:oR(e-1,t),codegenNode:void 0}},onopentagend(e){ox(e)},onclosetag(e,t){let n=oS(e,t);if(!os.isVoidTag(n)){let r=!1;for(let e=0;e0&&oy[0].loc.start.offset;for(let n=0;n<=e;n++)ok(oy.shift(),t,n(7===e.type?e.rawName:e.name)===t)},onattribend(e,t){oc&&ou&&(oO(ou.loc,t),0!==e&&(od.includes("&")&&(od=os.decodeEntities(od,!0)),6===ou.type?("class"===ou.name&&(od=oN(od).trim()),ou.value={type:2,content:od,loc:1===e?oR(op,oh):oR(op-1,oh+1)},ov.inSFCRoot&&"template"===oc.tag&&"lang"===ou.name&&od&&"html"!==od&&ov.enterRCDATA(sU("{let i=t.start.offset+n,l=i+e.length;return oL(e,!1,oR(i,l),0,r?1:0)},o={source:s(l.trim(),n.indexOf(l,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},a=i.trim().replace(o_,"").trim(),c=i.indexOf(a),u=a.match(ob);if(u){let e;a=a.replace(ob,"").trim();let t=u[1].trim();if(t&&(e=n.indexOf(t,c+a.length),o.key=s(t,e,!0)),u[2]){let r=u[2].trim();r&&(o.index=s(r,n.indexOf(r,o.key?e+t.length:c+a.length),!0))}}return a&&(o.value=s(a,c,!0)),o}(ou.exp)))),(7!==ou.type||"pre"!==ou.name)&&oc.props.push(ou)),od="",op=oh=-1},oncomment(e,t){os.comments&&oI({type:3,content:oS(e,t),loc:oR(e-4,t+3)})},onend(){let e=oa.length;for(let t=0;t64&&n<91||sz(e)||os.isBuiltInComponent&&os.isBuiltInComponent(e)||os.isNativeTag&&!os.isNativeTag(e))return!0;for(let e=0;e=0;)n--;return n}let ow=new Set(["if","else","else-if","for","slot"]),oE=/\r\n/g;function oA(e,t){let n="preserve"!==os.whitespace,r=!1;for(let t=0;t1)for(let i=0;i{n--};for(;nt===e:t=>e.test(t);return(e,r)=>{if(1===e.type){let{props:i}=e;if(3===e.tagType&&i.some(s5))return;let l=[];for(let s=0;s`${sk[e]}: _${sk[e]}`;function oq(e,t,{helper:n,push:r,newline:i,isTS:l}){let s=n("component"===t?l9:se);for(let n=0;n3;t.push("["),n&&t.indent(),oK(e,t,n),n&&t.deindent(),t.push("]")}function oK(e,t,n=!1,r=!0){let{push:i,newline:l}=t;for(let s=0;se||"null")}([s,o,a,n,u]),t),r(")"),p&&r(")"),d&&(r(", "),oz(d,t),r(")"))}(e,t);break;case 14:!function(e,t){let{push:n,helper:r,pure:i}=t,l=A(e.callee)?e.callee:r(e.callee);i&&n(oj),n(l+"(",-2,e),oK(e.arguments,t),n(")")}(e,t);break;case 15:!function(e,t){let{push:n,indent:r,deindent:i,newline:l}=t,{properties:s}=e;if(!s.length){n("{}",-2,e);return}let o=s.length>1;n(o?"{":"{ "),o&&r();for(let e=0;e "),(a||o)&&(n("{"),r()),s?(a&&n("return "),x(s)?oW(s,t):oz(s,t)):o&&oz(o,t),(a||o)&&(i(),n("}")),c&&n(")")}(e,t);break;case 19:!function(e,t){let{test:n,consequent:r,alternate:i,newline:l}=e,{push:s,indent:o,deindent:a,newline:c}=t;if(4===n.type){let e=!sJ(n.content);e&&s("("),oG(n,t),e&&s(")")}else s("("),oz(n,t),s(")");l&&o(),t.indentLevel++,l||s(" "),s("? "),oz(r,t),t.indentLevel--,l&&c(),l||s(" "),s(": ");let u=19===i.type;!u&&t.indentLevel++,oz(i,t),!u&&t.indentLevel--,l&&a(!0)}(e,t);break;case 20:!function(e,t){let{push:n,helper:r,indent:i,deindent:l,newline:s}=t;n(`_cache[${e.index}] || (`),e.isVOnce&&(i(),n(`${r(sg)}(-1),`),s(),n("(")),n(`_cache[${e.index}] = `),oz(e.value,t),e.isVOnce&&(n(`).cacheIndex = ${e.index},`),s(),n(`${r(sg)}(1),`),s(),n(`_cache[${e.index}]`),l()),n(")")}(e,t);break;case 21:oK(e.body,t,!0,!1)}}function oG(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function oJ(e,t){for(let n=0;n(function(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(sW(28,t.loc)),t.exp=sI("true",!1,r)}if("if"===t.name){let i=oQ(e,t),l={type:9,loc:e.loc,branches:[i]};if(n.replaceNode(l),r)return r(l,i,!0)}else{let i=n.parent.children,l=i.indexOf(e);for(;l-- >=-1;){let s=i[l];if(s&&3===s.type||s&&2===s.type&&!s.content.trim().length){n.removeNode(s);continue}if(s&&9===s.type){"else-if"===t.name&&void 0===s.branches[s.branches.length-1].condition&&n.onError(sW(30,e.loc)),n.removeNode();let i=oQ(e,t);s.branches.push(i);let l=r&&r(s,i,!1);oB(i,n),l&&l(),n.currentNode=null}else n.onError(sW(30,e.loc));break}}})(e,t,n,(e,t,r)=>{let i=n.parent.children,l=i.indexOf(e),s=0;for(;l-- >=0;){let e=i[l];e&&9===e.type&&(s+=e.branches.length)}return()=>{r?e.codegenNode=oZ(t,s,n):function(e){for(;;)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}(e.codegenNode).alternate=oZ(t,s+e.branches.length-1,n)}}));function oQ(e,t){let n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!s3(e,"for")?e.children:[e],userKey:s6(e,"key"),isTemplateIf:n}}function oZ(e,t,n){return e.condition?sM(e.condition,oY(e,t,n),sO(n.helper(l4),['""',"true"])):oY(e,t,n)}function oY(e,t,n){let{helper:r}=n,i=sN("key",sI(`${t}`,!1,sT,2)),{children:l}=e,s=l[0];if(1!==l.length||1!==s.type){if(1!==l.length||11!==s.type)return sw(n,r(lJ),sA([i]),l,64,void 0,void 0,!0,!1,!1,e.loc);{let e=s.codegenNode;return ot(e,i,n),e}}{let e=s.codegenNode,t=14===e.type&&e.callee===sx?e.arguments[1].returns:e;return 13===t.type&&s$(t,n),ot(t,i,n),e}}let o0=(e,t,n)=>{let{modifiers:r,loc:i}=e,l=e.arg,{exp:s}=e;if(s&&4===s.type&&!s.content.trim()&&(s=void 0),!s){if(4!==l.type||!l.isStatic)return n.onError(sW(52,l.loc)),{props:[sN(l,sI("",!0,i))]};o1(e),s=e.exp}return 4!==l.type?(l.children.unshift("("),l.children.push(') || ""')):l.isStatic||(l.content=`${l.content} || ""`),r.includes("camel")&&(4===l.type?l.isStatic?l.content=U(l.content):l.content=`${n.helperString(sh)}(${l.content})`:(l.children.unshift(`${n.helperString(sh)}(`),l.children.push(")"))),!n.inSSR&&(r.includes("prop")&&o2(l,"."),r.includes("attr")&&o2(l,"^")),{props:[sN(l,s)]}},o1=(e,t)=>{let n=e.arg,r=U(n.content);e.exp=sI(r,!1,n.loc)},o2=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},o3=oU("for",(e,t,n)=>{let{helper:r,removeHelper:i}=n;return function(e,t,n,r){if(!t.exp){n.onError(sW(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(sW(32,t.loc));return}o6(i);let{addIdentifiers:l,removeIdentifiers:s,scopes:o}=n,{source:a,value:c,key:u,index:d}=i,p={type:11,loc:t.loc,source:a,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:s9(e)?e.children:[e]};n.replaceNode(p),o.vFor++;let h=r&&r(p);return()=>{o.vFor--,h&&h()}}(e,t,n,t=>{let l=sO(r(sr),[t.source]),s=s9(e),o=s3(e,"memo"),a=s6(e,"key",!1,!0);a&&7===a.type&&!a.exp&&o1(a);let c=a&&(6===a.type?a.value?sI(a.value.content,!0):void 0:a.exp),u=a&&c?sN("key",c):null,d=4===t.source.type&&t.source.constType>0,p=d?64:a?128:256;return t.codegenNode=sw(n,r(lJ),void 0,l,p,void 0,void 0,!0,!d,!1,e.loc),()=>{let a;let{children:p}=t,h=1!==p.length||1!==p[0].type,f=s7(e)?e:s&&1===e.children.length&&s7(e.children[0])?e.children[0]:null;if(f)a=f.codegenNode,s&&u&&ot(a,u,n);else if(h)a=sw(n,r(lJ),u?sA([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1);else{var m,g,y,b,_,S,x,C;a=p[0].codegenNode,s&&u&&ot(a,u,n),!d!==a.isBlock&&(a.isBlock?(i(l0),i((m=n.inSSR,g=a.isComponent,m||g?l1:l2))):i((y=n.inSSR,b=a.isComponent,y||b?l3:l6))),(a.isBlock=!d,a.isBlock)?(r(l0),r((_=n.inSSR,S=a.isComponent,_||S?l1:l2))):r((x=n.inSSR,C=a.isComponent,x||C?l3:l6))}if(o){let e=sL(o4(t.parseResult,[sI("_cached")]));e.body={type:21,body:[sR(["const _memo = (",o.exp,")"]),sR(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(sC)}(_cached, _memo)) return _cached`]),sR(["const _item = ",a]),sI("_item.memo = _memo"),sI("return _item")],loc:sT},l.arguments.push(e,sI("_cache"),sI(String(n.cached++)))}else l.arguments.push(sL(o4(t.parseResult),a,!0))}})});function o6(e,t){e.finalized||(e.finalized=!0)}function o4({value:e,key:t,index:n},r=[]){return function(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||sI("_".repeat(t+1),!1))}([e,t,n,...r])}let o8=sI("undefined",!1),o5=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){let n=s3(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},o9=(e,t,n,r)=>sL(e,n,!1,!0,n.length?n[0].loc:r);function o7(e,t,n){let r=[sN("name",e),sN("fn",t)];return null!=n&&r.push(sN("key",sI(String(n),!0))),sA(r)}let ae=new WeakMap,at=(e,t)=>function(){let n,r,i,l,s;if(!(1===(e=t.currentNode).type&&(0===e.tagType||1===e.tagType)))return;let{tag:o,props:a}=e,c=1===e.tagType,u=c?function(e,t,n=!1){let{tag:r}=e,i=ai(r),l=s6(e,"is",!1,!0);if(l){if(i){let e;if(6===l.type?e=l.value&&sI(l.value.content,!0):(e=l.exp)||(e=sI("is",!1,l.arg.loc)),e)return sO(t.helper(l7),[e])}else 6===l.type&&l.value.content.startsWith("vue:")&&(r=l.value.content.slice(4))}let s=sz(r)||t.isBuiltInComponent(r);return s?(n||t.helper(s),s):(t.helper(l9),t.components.add(r),or(r,"component"))}(e,t):`"${o}"`,d=I(u)&&u.callee===l7,p=0,h=d||u===lX||u===lQ||!c&&("svg"===o||"foreignObject"===o||"math"===o);if(a.length>0){let r=an(e,t,void 0,c,d);n=r.props,p=r.patchFlag,l=r.dynamicPropNames;let i=r.directives;s=i&&i.length?sE(i.map(e=>(function(e,t){let n=[],r=ae.get(e);r?n.push(t.helperString(r)):(t.helper(se),t.directives.add(e.name),n.push(or(e.name,"directive")));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));let t=sI("true",!1,i);n.push(sA(e.modifiers.map(e=>sN(e,t)),i))}return sE(n,e.loc)})(e,t))):void 0,r.shouldUseBlock&&(h=!0)}if(e.children.length>0){if(u===lZ&&(h=!0,p|=1024),c&&u!==lX&&u!==lZ){let{slots:n,hasDynamicSlots:i}=function(e,t,n=o9){t.helper(sb);let{children:r,loc:i}=e,l=[],s=[],o=t.scopes.vSlot>0||t.scopes.vFor>0,a=s3(e,"slot",!0);if(a){let{arg:e,exp:t}=a;e&&!sK(e)&&(o=!0),l.push(sN(e||sI("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1,d=[],p=new Set,h=0;for(let e=0;esN("default",n(e,void 0,t,i));c?d.length&&d.some(e=>(function e(t){return 2!==t.type&&12!==t.type||(2===t.type?!!t.content.trim():e(t.content))})(e))&&(u?t.onError(sW(39,d[0].loc)):l.push(e(void 0,d))):l.push(e(void 0,r))}let f=o?2:!function e(t){for(let n=0;n0,f=!1,g=0,y=!1,b=!1,_=!1,S=!1,x=!1,C=!1,k=[],T=e=>{u.length&&(d.push(sA(ar(u),a)),u=[]),e&&d.push(e)},w=()=>{t.scopes.vFor>0&&u.push(sN(sI("ref_for",!0),sI("true")))},E=({key:e,value:n})=>{if(sK(e)){let l=e.content,s=m(l);s&&(!r||i)&&"onclick"!==l.toLowerCase()&&"onUpdate:modelValue"!==l&&!F(l)&&(S=!0),s&&F(l)&&(C=!0),s&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&oP(n,t)>0||("ref"===l?y=!0:"class"===l?b=!0:"style"===l?_=!0:"key"===l||k.includes(l)||k.push(l),r&&("class"===l||"style"===l)&&!k.includes(l)&&k.push(l))}else x=!0};for(let i=0;i1?sO(t.helper(so),d,a):d[0]):u.length&&(s=sA(ar(u),a)),x?g|=16:(b&&!r&&(g|=2),_&&!r&&(g|=4),k.length&&(g|=8),S&&(g|=32)),!f&&(0===g||32===g)&&(y||C||p.length>0)&&(g|=512),!t.inSSR&&s)switch(s.type){case 15:let A=-1,I=-1,R=!1;for(let e=0;e{if(s7(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:l}=function(e,t){let n,r='"default"',i=[];for(let t=0;t0){let{props:r,directives:l}=an(e,t,i,!1,!1);n=r,l.length&&t.onError(sW(36,l[0].loc))}return{slotName:r,slotProps:n}}(e,t),s=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"],o=2;l&&(s[2]=l,o=3),n.length&&(s[3]=sL([],n,!1,!1,r),o=4),t.scopeId&&!t.slotted&&(o=5),s.splice(o),e.codegenNode=sO(t.helper(si),s,r)}},as=(e,t,n,r)=>{let i;let{loc:l,modifiers:s,arg:o}=e;if(e.exp||s.length,4===o.type){if(o.isStatic){let e=o.content;e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`),i=sI(0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?W(U(e)):`on:${e}`,!0,o.loc)}else i=sR([`${n.helperString(sm)}(`,o,")"])}else(i=o).children.unshift(`${n.helperString(sm)}(`),i.children.push(")");let a=e.exp;a&&!a.content.trim()&&(a=void 0);let c=n.cacheHandlers&&!a&&!n.inVOnce;if(a){let e=s0(a),t=!(e||s2(a)),n=a.content.includes(";");(t||c&&e)&&(a=sR([`${t?"$event":"(...args)"} => ${n?"{":"("}`,a,n?"}":")"]))}let u={props:[sN(i,a||sI("() => {}",!1,l))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},ao=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{let n;let r=e.children,i=!1;for(let e=0;e7===e.type&&!t.directiveTransforms[e.name]))))for(let e=0;e{if(1===e.type&&s3(e,"once",!0)&&!aa.has(e)&&!t.inVOnce&&!t.inSSR)return aa.add(e),t.inVOnce=!0,t.helper(sg),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))}},au=(e,t,n)=>{let r;let{exp:i,arg:l}=e;if(!i)return n.onError(sW(41,e.loc)),ad();let s=i.loc.source,o=4===i.type?i.content:s,a=n.bindingMetadata[s];if("props"===a||"props-aliased"===a)return i.loc,ad();if(!o.trim()||!s0(i))return n.onError(sW(42,i.loc)),ad();let c=l||sI("modelValue",!0),u=l?sK(l)?`onUpdate:${U(l.content)}`:sR(['"onUpdate:" + ',l]):"onUpdate:modelValue",d=n.isTS?"($event: any)":"$event";r=sR([`${d} => ((`,i,") = $event)"]);let p=[sN(c,e.exp),sN(u,r)];if(e.modifiers.length&&1===t.tagType){let t=e.modifiers.map(e=>(sJ(e)?e:JSON.stringify(e))+": true").join(", "),n=l?sK(l)?`${l.content}Modifiers`:sR([l,' + "Modifiers"']):"modelModifiers";p.push(sN(n,sI(`{ ${t} }`,!1,e.loc,2)))}return ad(p)};function ad(e=[]){return{props:e}}let ap=new WeakSet,ah=(e,t)=>{if(1===e.type){let n=s3(e,"memo");if(!(!n||ap.has(e)))return ap.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&s$(r,t),e.codegenNode=sO(t.helper(sx),[n.exp,sL(void 0,r),"_cache",String(t.cached++)]))}}},af=Symbol(""),am=Symbol(""),ag=Symbol(""),ay=Symbol(""),av=Symbol(""),ab=Symbol(""),a_=Symbol(""),aS=Symbol(""),ax=Symbol(""),aC=Symbol("");!function(e){Object.getOwnPropertySymbols(e).forEach(t=>{sk[t]=e[t]})}({[af]:"vModelRadio",[am]:"vModelCheckbox",[ag]:"vModelText",[ay]:"vModelSelect",[av]:"vModelDynamic",[ab]:"withModifiers",[a_]:"withKeys",[aS]:"vShow",[ax]:"Transition",[aC]:"TransitionGroup"});let ak={parseMode:"html",isVoidTag:ea,isNativeTag:e=>el(e)||es(e)||eo(e),isPreTag:e=>"pre"===e,decodeEntities:function(e,t=!1){return(c||(c=document.createElement("div")),t)?(c.innerHTML=`
`,c.children[0].getAttribute("foo")):(c.innerHTML=e,c.textContent)},isBuiltInComponent:e=>"Transition"===e||"transition"===e?ax:"TransitionGroup"===e||"transition-group"===e?aC:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r){if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0)}else t&&1===r&&("foreignObject"===t.tag||"desc"===t.tag||"title"===t.tag)&&(r=0);if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},aT=(e,t)=>sI(JSON.stringify(er(e)),!1,t,3),aw=u("passive,once,capture"),aE=u("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),aA=u("left,right"),aN=u("onkeyup,onkeydown,onkeypress",!0),aI=(e,t,n,r)=>{let i=[],l=[],s=[];for(let n=0;nsK(e)&&"onclick"===e.content.toLowerCase()?sI(t,!0):4!==e.type?sR(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,aO=(e,t)=>{1===e.type&&0===e.tagType&&("script"===e.tag||"style"===e.tag)&&t.removeNode()},aL=[e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:sI("style",!0,t.loc),exp:aT(t.value.content,t.loc),modifiers:[],loc:t.loc})})}],aM={cloak:()=>({props:[]}),html:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(53,i)),t.children.length&&(n.onError(sW(54,i)),t.children.length=0),{props:[sN(sI("innerHTML",!0,i),r||sI("",!0))]}},text:(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(sW(55,i)),t.children.length&&(n.onError(sW(56,i)),t.children.length=0),{props:[sN(sI("textContent",!0),r?oP(r,n)>0?r:sO(n.helperString(ss),[r],i):sI("",!0))]}},model:(e,t,n)=>{let r=au(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(sW(58,e.arg.loc));let{tag:i}=t,l=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||l){let s=ag,o=!1;if("input"===i||l){let r=s6(t,"type");if(r){if(7===r.type)s=av;else if(r.value)switch(r.value.content){case"radio":s=af;break;case"checkbox":s=am;break;case"file":o=!0,n.onError(sW(59,e.loc))}}else t.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))&&(s=av)}else"select"===i&&(s=ay);o||(r.needRuntime=n.helper(s))}else n.onError(sW(57,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},on:(e,t,n)=>as(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:l}=t.props[0],{keyModifiers:s,nonKeyModifiers:o,eventOptionModifiers:a}=aI(i,r,n,e.loc);if(o.includes("right")&&(i=aR(i,"onContextmenu")),o.includes("middle")&&(i=aR(i,"onMouseup")),o.length&&(l=sO(n.helper(ab),[l,JSON.stringify(o)])),s.length&&(!sK(i)||aN(i.content))&&(l=sO(n.helper(a_),[l,JSON.stringify(s)])),a.length){let e=a.map(q).join("");i=sK(i)?sI(`${i.content}${e}`,!0):sR(["(",i,`) + "${e}"`])}return{props:[sN(i,l)]}}),show:(e,t,n)=>{let{exp:r,loc:i}=e;return!r&&n.onError(sW(61,i)),{props:[],needRuntime:n.helper(aS)}}},a$=new WeakMap;function aP(e,t){let n;if(!A(e)){if(!e.nodeType)return h;e=e.innerHTML}let r=e,i=((n=a$.get(null!=t?t:d))||(n=Object.create(null),a$.set(null!=t?t:d,n)),n),l=i[r];if(l)return l;if("#"===e[0]){let t=document.querySelector(e);e=t?t.innerHTML:""}let s=y({hoistStatic:!0,onError:void 0,onWarn:h},t);s.isCustomElement||"undefined"==typeof customElements||(s.isCustomElement=e=>!!customElements.get(e));let{code:o}=function(e,t={}){return function(e,t={}){let n=t.onError||sH,r="module"===t.mode;!0===t.prefixIdentifiers?n(sW(47)):r&&n(sW(48)),t.cacheHandlers&&n(sW(49)),t.scopeId&&!r&&n(sW(50));let i=y({},t,{prefixIdentifiers:!1}),l=A(e)?function(e,t){if(ov.reset(),oc=null,ou=null,od="",op=-1,oh=-1,oy.length=0,oa=e,os=y({},ol),t){let e;for(e in t)null!=t[e]&&(os[e]=t[e])}ov.mode="html"===os.parseMode?1:"sfc"===os.parseMode?2:0,ov.inXML=1===os.ns||2===os.ns;let n=t&&t.delimiters;n&&(ov.delimiterOpen=sU(n[0]),ov.delimiterClose=sU(n[1]));let r=oo=function(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:sT}}([],e);return ov.parse(oa),r.loc=oR(0,e.length),r.children=oA(r.children),oo=null,r}(e,i):e,[s,o]=[[ac,oX,ah,o3,al,at,o5,ao],{on:as,bind:o0,model:au}];return!function(e,t){let n=function(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:l=!1,nodeTransforms:s=[],directiveTransforms:o={},transformHoist:a=null,isBuiltInComponent:c=h,isCustomElement:u=h,expressionPlugins:p=[],scopeId:f=null,slotted:m=!0,ssr:g=!1,inSSR:y=!1,ssrCssVars:b="",bindingMetadata:_=d,inline:S=!1,isTS:x=!1,onError:C=sH,onWarn:k=sq,compatConfig:T}){let w=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:w&&q(U(w[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:l,nodeTransforms:s,directiveTransforms:o,transformHoist:a,isBuiltInComponent:c,isCustomElement:u,expressionPlugins:p,scopeId:f,slotted:m,ssr:g,inSSR:y,ssrCssVars:b,bindingMetadata:_,inline:S,isTS:x,onError:C,onWarn:k,compatConfig:T,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],constantCache:new WeakMap,temps:0,cached:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString:e=>`_${sk[E.helper(e)]}`,replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;e&&e!==E.currentNode?E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()):(E.currentNode=null,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:h,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=sI(e)),E.hoists.push(e);let t=sI(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache:(e,t=!1)=>(function(e,t,n=!1){return{type:20,index:e,value:t,isVOnce:n,loc:sT}})(E.cached++,e,t)};return E}(e,t);oB(e,n),t.hoistStatic&&function e(t,n,r=!1){let{children:i}=t,l=i.length,s=0;for(let t=0;t0){if(e>=2){l.codegenNode.patchFlag=-1,l.codegenNode=n.hoist(l.codegenNode),s++;continue}}else{let e=l.codegenNode;if(13===e.type){let t=e.patchFlag;if((void 0===t||512===t||1===t)&&oD(l,n)>=2){let t=oV(l);t&&(e.props=n.hoist(t))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}if(1===l.type){let t=1===l.tagType;t&&n.scopes.vSlot++,e(l,n),t&&n.scopes.vSlot--}else if(11===l.type)e(l,n,1===l.children.length);else if(9===l.type)for(let t=0;t1&&(e.codegenNode=sw(t,n(lJ),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0}(l,y({},i,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:y({},o,t.directiveTransforms||{})})),function(e,t={}){let n=function(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:l=null,optimizeImports:s=!1,runtimeGlobalName:o="Vue",runtimeModuleName:a="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:p=!1}){let h={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:l,optimizeImports:s,runtimeGlobalName:o,runtimeModuleName:a,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:p,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper:e=>`_${sk[e]}`,push(e,t=-2,n){h.code+=e},indent(){f(++h.indentLevel)},deindent(e=!1){e?--h.indentLevel:f(--h.indentLevel)},newline(){f(h.indentLevel)}};function f(e){h.push("\n"+" ".repeat(e),0)}return h}(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:l,indent:s,deindent:o,newline:a,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),p=d.length>0,h=!l&&"module"!==r;(function(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:l,runtimeModuleName:s,runtimeGlobalName:o,ssrRuntimeModuleName:a}=t,c=Array.from(e.helpers);if(c.length>0&&(i(`const _Vue = ${o} +`,-1),e.hoists.length)){let e=[l3,l6,l4,l8,l5].filter(e=>c.includes(e)).map(oH).join(", ");i(`const { ${e} } = _Vue +`,-1)}(function(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r,helper:i,scopeId:l,mode:s}=t;r();for(let i=0;i0)&&a()),e.directives.length&&(oq(e.directives,"directive",n),e.temps>0&&a()),e.temps>0){i("let ");for(let t=0;t0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(` +`,0),a()),u||i("return "),e.codegenNode?oz(e.codegenNode,n):i("null"),h&&(o(),i("}")),o(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}(l,i)}(e,y({},ak,t,{nodeTransforms:[aO,...aL,...t.nodeTransforms||[]],directiveTransforms:y({},aM,t.directiveTransforms||{}),transformHoist:null}))}(e,s),a=Function(o)();return a._rc=!0,i[r]=a}return iI(aP),e.BaseTransition=nr,e.BaseTransitionPropsValidators=nt,e.Comment=r4,e.DeprecationTypes=null,e.EffectScope=eg,e.ErrorCodes={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE"},e.ErrorTypeStrings=null,e.Fragment=r3,e.KeepAlive={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=ik(),r=n.ctx,i=new Map,l=new Set,s=null,o=n.suspense,{renderer:{p:a,m:c,um:u,o:{createElement:d}}}=r,p=d("div");function h(e){nv(e),u(e,n,o,!0)}function f(e){i.forEach((t,n)=>{let r=i$(t.type);!r||e&&e(r)||m(n)})}function m(e){let t=i.get(e);!t||s&&io(t,s)?s&&nv(s):h(t),i.delete(e),l.delete(e)}r.activate=(e,t,n,r,i)=>{let l=e.component;c(e,t,n,0,o),a(l.vnode,e,t,n,l,o,r,e.slotScopeIds,i),rw(()=>{l.isDeactivated=!1,l.a&&z(l.a);let t=e.props&&e.props.onVnodeMounted;t&&i_(t,l.parent,e)},o)},r.deactivate=e=>{let t=e.component;rL(t.m),rL(t.a),c(e,p,null,1,o),rw(()=>{t.da&&z(t.da);let n=e.props&&e.props.onVnodeUnmounted;n&&i_(n,t.parent,e),t.isDeactivated=!0},o)},rD(()=>[e.include,e.exclude],([e,t])=>{e&&f(t=>nf(e,t)),t&&f(e=>!nf(t,e))},{flush:"post",deep:!0});let g=null,y=()=>{null!=g&&(rX(n.subTree.type)?rw(()=>{i.set(g,nb(n.subTree))},n.subTree.suspense):i.set(g,nb(n.subTree)))};return nC(y),nT(y),nw(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=nb(t);if(e.type===i.type&&e.key===i.key){nv(i);let e=i.component.da;e&&rw(e,r);return}h(e)})}),()=>{if(g=null,!t.default)return null;let n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!is(r)||!(4&r.shapeFlag)&&!(128&r.shapeFlag))return s=null,r;let o=nb(r);if(o.type===r4)return s=null,o;let a=o.type,c=i$(nd(o)?o.type.__asyncResolved||{}:a),{include:u,exclude:d,max:p}=e;if(u&&(!c||!nf(u,c))||d&&c&&nf(d,c))return s=o,r;let h=null==o.key?a:o.key,f=i.get(h);return o.el&&(o=ih(o),128&r.shapeFlag&&(r.ssContent=o)),g=h,f?(o.el=f.el,o.component=f.component,o.transition&&na(o,o.transition),o.shapeFlag|=512,l.delete(h),l.add(h)):(l.add(h),p&&l.size>parseInt(p,10)&&m(l.values().next().value)),o.shapeFlag|=256,s=o,rX(r.type)?r:o}}},e.ReactiveEffect=ev,e.Static=r8,e.Suspense={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,l,s,o,a,c){if(null==e)(function(e,t,n,r,i,l,s,o,a){let{p:c,o:{createElement:u}}=a,d=u("div"),p=e.suspense=rY(e,i,r,t,d,n,l,s,o,a);c(null,p.pendingBranch=e.ssContent,d,null,r,p,l,s),p.deps>0?(rZ(e,"onPending"),rZ(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,l,s),r2(p,e.ssFallback)):p.resolve(!1,!0)})(t,n,r,i,l,s,o,a,c);else{if(l&&l.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}(function(e,t,n,r,i,l,s,o,{p:a,um:c,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:y}=d;if(m)d.pendingBranch=p,io(p,m)?(a(m,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():g&&!y&&(a(f,h,n,r,i,null,l,s,o),r2(d,h))):(d.pendingId=rQ++,y?(d.isHydrating=!1,d.activeBranch=m):c(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0?d.resolve():(a(f,h,n,r,i,null,l,s,o),r2(d,h))):f&&io(p,f)?(a(f,p,n,r,i,d,l,s,o),d.resolve(!0)):(a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0&&d.resolve()));else if(f&&io(p,f))a(f,p,n,r,i,d,l,s,o),r2(d,p);else if(rZ(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=rQ++,a(null,p,d.hiddenContainer,null,i,d,l,s,o),d.deps<=0)d.resolve();else{let{timeout:e,pendingId:t}=d;e>0?setTimeout(()=>{d.pendingId===t&&d.fallback(h)},e):0===e&&d.fallback(h)}})(e,t,n,r,i,s,o,a,c)}},hydrate:function(e,t,n,r,i,l,s,o,a){let c=t.suspense=rY(t,r,n,e.parentNode,document.createElement("div"),null,i,l,s,o,!0),u=a(e,c.pendingBranch=t.ssContent,n,c,l,s);return 0===c.deps&&c.resolve(!1,!0),u},normalize:function(e){let{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=r0(r?n.default:n),e.ssFallback=r?r0(n.fallback):id(r4)}},e.Teleport={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,s,o,a,c){let{mc:u,pc:d,pbc:p,o:{insert:h,querySelector:f,createText:m,createComment:g}}=c,y=rp(t.props),{shapeFlag:b,children:_,dynamicChildren:S}=t;if(null==e){let e=t.el=m(""),c=t.anchor=m("");h(e,n,r),h(c,n,r);let d=t.target=rm(t.props,f),p=rv(d,t,m,h);d&&("svg"===s||rh(d)?s="svg":("mathml"===s||rf(d))&&(s="mathml"));let g=(e,t)=>{16&b&&u(_,e,t,i,l,s,o,a)};y?g(n,c):d&&g(d,p)}else{t.el=e.el,t.targetStart=e.targetStart;let r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=rp(e.props),g=m?n:u;if("svg"===s||rh(u)?s="svg":("mathml"===s||rf(u))&&(s="mathml"),S?(p(e.dynamicChildren,S,g,i,l,s,o),rO(e,t,!0)):a||d(e,t,g,m?r:h,i,l,s,o,!1),y)m?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rg(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=t.target=rm(t.props,f);e&&rg(t,e,null,c,0)}else m&&rg(t,u,h,c,1)}ry(t)},remove(e,t,n,{um:r,o:{remove:i}},l){let{shapeFlag:s,children:o,anchor:a,targetStart:c,targetAnchor:u,target:d,props:p}=e;if(d&&(i(c),i(u)),l&&i(a),16&s){let e=l||!rp(p);for(let i=0;i{let t=(a||(a=rA(lj))).createApp(...e),{mount:n}=t;return t.mount=e=>{let r=lG(e);if(!r)return;let i=t._component;E(i)||i.render||i.template||(i.template=r.innerHTML),r.innerHTML="";let l=n(r,!1,lz(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t},e.createBlock=il,e.createCommentVNode=function(e="",t=!1){return t?(r7(),il(r4,null,e)):id(r4,null,e)},e.createElementBlock=function(e,t,n,r,i,l){return ii(iu(e,t,n,r,i,l,!0))},e.createElementVNode=iu,e.createHydrationRenderer=rE,e.createPropsRestProxy=function(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n},e.createRenderer=function(e){return rA(e)},e.createSSRApp=(...e)=>{let t=lq().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=lG(e);if(t)return n(t,!0,lz(t))},t},e.createSlots=function(e,t){for(let n=0;n{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e},e.createStaticVNode=function(e,t){let n=id(r8,null,e);return n.staticCount=t,n},e.createTextVNode=im,e.createVNode=id,e.customRef=tO,e.defineAsyncComponent=/*! #__NO_SIDE_EFFECTS__ */function(e){let t;E(e)&&(e={loader:e});let{loader:n,loadingComponent:r,errorComponent:i,delay:l=200,timeout:s,suspensible:o=!0,onError:a}=e,c=null,u=0,d=()=>(u++,c=null,p()),p=()=>{let e;return c||(e=c=n().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),a)return new Promise((t,n)=>{a(e,()=>t(d()),()=>n(e),u+1)});throw e}).then(n=>e!==c&&c?c:(n&&(n.__esModule||"Module"===n[Symbol.toStringTag])&&(n=n.default),t=n,n)))};return nu({name:"AsyncComponentWrapper",__asyncLoader:p,get __asyncResolved(){return t},setup(){let e=iC;if(t)return()=>np(t,e);let n=t=>{c=null,tD(t,e,13,!i)};if(o&&e.suspense)return p().then(t=>()=>np(t,e)).catch(e=>(n(e),()=>i?id(i,{error:e}):null));let a=tT(!1),u=tT(),d=tT(!!l);return l&&setTimeout(()=>{d.value=!1},l),null!=s&&setTimeout(()=>{if(!a.value&&!u.value){let e=Error(`Async component timed out after ${s}ms.`);n(e),u.value=e}},s),p().then(()=>{a.value=!0,e.parent&&nh(e.parent.vnode)&&(e.parent.effect.dirty=!0,tJ(e.parent.update))}).catch(e=>{n(e),u.value=e}),()=>a.value&&t?np(t,e):u.value&&i?id(i,{error:u.value}):r&&!d.value?id(r):void 0}})},e.defineComponent=nu,e.defineCustomElement=lm,e.defineEmits=function(){return null},e.defineExpose=function(e){},e.defineModel=function(){},e.defineOptions=function(e){},e.defineProps=function(){return null},e.defineSSRCustomElement=(e,t)=>lm(e,t,lK),e.defineSlots=function(){return null},e.devtools=void 0,e.effect=function(e,t){e.effect instanceof ev&&(e=e.effect.fn);let n=new ev(e,h,()=>{n.dirty&&n.run()});t&&(y(n,t),t.scope&&ey(n,t.scope)),t&&t.lazy||n.run();let r=n.run.bind(n);return r.effect=n,r},e.effectScope=function(e){return new eg(e)},e.getCurrentInstance=ik,e.getCurrentScope=function(){return n},e.getTransitionRawChildren=nc,e.guardReactiveProps=ip,e.h=iF,e.handleError=tD,e.hasInjectionContext=function(){return!!(iC||t2||n1)},e.hydrate=lK,e.initCustomFormatter=function(){},e.initDirectivesForSSR=h,e.inject=n3,e.isMemoSame=iD,e.isProxy=tg,e.isReactive=th,e.isReadonly=tf,e.isRef=tk,e.isRuntimeOnly=()=>!s,e.isShallow=tm,e.isVNode=is,e.markRaw=tv,e.mergeDefaults=function(e,t){let n=nj(e);for(let e in t){if(e.startsWith("__skip"))continue;let r=n[e];r?x(r)||E(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n},e.mergeModels=function(e,t){return e&&t?x(e)&&x(t)?e.concat(t):y({},nj(e),nj(t)):e||t},e.mergeProps=ib,e.nextTick=tG,e.normalizeClass=ei,e.normalizeProps=function(e){if(!e)return null;let{class:t,style:n}=e;return t&&!A(t)&&(e.class=ei(t)),n&&(e.style=Y(n)),e},e.normalizeStyle=Y,e.onActivated=nm,e.onBeforeMount=nx,e.onBeforeUnmount=nw,e.onBeforeUpdate=nk,e.onDeactivated=ng,e.onErrorCaptured=nR,e.onMounted=nC,e.onRenderTracked=nI,e.onRenderTriggered=nN,e.onScopeDispose=function(e){n&&n.cleanups.push(e)},e.onServerPrefetch=nA,e.onUnmounted=nE,e.onUpdated=nT,e.openBlock=r7,e.popScopeId=function(){t3=null},e.provide=n2,e.proxyRefs=tI,e.pushScopeId=function(e){t3=e},e.queuePostFlushCb=tQ,e.reactive=tc,e.readonly=td,e.ref=tT,e.registerRuntimeCompiler=iI,e.render=lW,e.renderList=function(e,t,n,r){let i;let l=n&&n[r];if(x(e)||A(e)){i=Array(e.length);for(let n=0,r=e.length;nt(e,n,void 0,l&&l[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,s=n.length;r!is(t)||!!(t.type!==r4&&(t.type!==r3||e(t.children))))?t:null}(l(n)),o=il(r3,{key:(n.key||s&&s.key||`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&1===e._?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o},e.resolveComponent=function(e,t){return nM(nO,e,!0,t)||e},e.resolveDirective=function(e){return nM("directives",e)},e.resolveDynamicComponent=function(e){return A(e)?nM(nO,e,!1)||e:e||nL},e.resolveFilter=null,e.resolveTransitionHooks=nl,e.setBlockTracking=ir,e.setDevtoolsHook=h,e.setTransitionHooks=na,e.shallowReactive=tu,e.shallowReadonly=function(e){return tp(e,!0,ez,ti,ta)},e.shallowRef=function(e){return tw(e,!0)},e.ssrContextKey=rM,e.ssrUtils=null,e.stop=function(e){e.effect.stop()},e.toDisplayString=eh,e.toHandlerKey=W,e.toHandlers=function(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:W(r)]=e[r];return n},e.toRaw=ty,e.toRef=function(e,t,n){return tk(e)?e:E(e)?new tM(e):I(e)&&arguments.length>1?t$(e,t,n):tT(e)},e.toRefs=function(e){let t=x(e)?Array(e.length):{};for(let n in e)t[n]=t$(e,n);return t},e.toValue=function(e){return E(e)?e():tA(e)},e.transformVNodeArgs=function(e){},e.triggerRef=function(e){tC(e,4)},e.unref=tA,e.useAttrs=function(){return nU().attrs},e.useCssModule=function(e="$style"){return d},e.useCssVars=function(e){let t=ik();if(!t)return;let n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>le(e,n))},r=()=>{let r=e(t.proxy);(function e(t,n){if(128&t.shapeFlag){let r=t.suspense;t=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{e(r.activeBranch,n)})}for(;t.component;)t=t.component.subTree;if(1&t.shapeFlag&&t.el)le(t.el,n);else if(t.type===r3)t.children.forEach(t=>e(t,n));else if(t.type===r8){let{el:e,anchor:r}=t;for(;e&&(le(e,n),e!==r);)e=e.nextSibling}})(t.subTree,r),n(r)};nx(()=>{r$(r)}),nC(()=>{let e=new MutationObserver(r);e.observe(t.subTree.el.parentNode,{childList:!0}),nE(()=>e.disconnect())})},e.useModel=function(e,t,n=d){let r=ik(),i=U(t),l=H(t),s=rj(e,t),o=tO((s,o)=>{let a,c;let u=d;return rP(()=>{let n=e[t];K(a,n)&&(a=n,o())}),{get:()=>(s(),n.get?n.get(a):a),set(e){let s=n.set?n.set(e):e;if(!K(s,a)&&!(u!==d&&K(e,u)))return;let p=r.vnode.props;p&&(t in p||i in p||l in p)&&(`onUpdate:${t}` in p||`onUpdate:${i}` in p||`onUpdate:${l}` in p)||(a=e,o()),r.emit(`update:${t}`,s),K(e,s)&&K(e,u)&&!K(s,c)&&o(),u=e,c=s}}});return o[Symbol.iterator]=()=>{let e=0;return{next:()=>e<2?{value:e++?s||d:o,done:!1}:{done:!0}}},o},e.useSSRContext=()=>{},e.useSlots=function(){return nU().slots},e.useTransitionState=t7,e.vModelCheckbox=lR,e.vModelDynamic={created(e,t,n){lD(e,t,n,null,"created")},mounted(e,t,n){lD(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lD(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lD(e,t,n,r,"updated")}},e.vModelRadio=lL,e.vModelSelect=lM,e.vModelText=lI,e.vShow={beforeMount(e,{value:t},{transition:n}){e[i8]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):i9(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),i9(e,!0),r.enter(e)):r.leave(e,()=>{i9(e,!1)}):i9(e,t))},beforeUnmount(e,{value:t}){i9(e,t)}},e.version=iV,e.warn=h,e.watch=function(e,t,n){return rD(e,t,n)},e.watchEffect=function(e,t){return rD(e,null,t)},e.watchPostEffect=r$,e.watchSyncEffect=rP,e.withAsyncContext=function(e){let t=ik(),n=e();return iw(),R(n)&&(n=n.catch(e=>{throw iT(t),e})),[n,()=>iT(t)]},e.withCtx=t4,e.withDefaults=function(e,t){return null},e.withDirectives=function(e,t){if(null===t2)return e;let n=iM(t2),r=e.dirs||(e.dirs=[]);for(let e=0;e{let n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;let r=H(n.key);if(t.some(e=>e===r||lU[e]===r))return e(n)})},e.withMemo=function(e,t,n,r){let i=n[r];if(i&&iD(i,e))return i;let l=t();return l.memo=e.slice(),l.cacheIndex=r,n[r]=l},e.withModifiers=(e,t)=>{let n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;et4,e}({}); diff --git a/corejs/src/__tests__/assign.spec.ts b/corejs/src/__tests__/assign.spec.ts index bcd9ddf..25078ba 100644 --- a/corejs/src/__tests__/assign.spec.ts +++ b/corejs/src/__tests__/assign.spec.ts @@ -1,7 +1,6 @@ import { describe, expect, it } from 'vitest' -import { nextTick, ref } from 'vue' -import { mockFetchWithReturnTemplate, mountTemplate, waitUntil } from './testutils' -import { flushPromises } from '@vue/test-utils' +import { nextTick } from 'vue' +import { mountTemplate } from './testutils' describe('assign', () => { it('v-assign', async () => { @@ -15,19 +14,5 @@ describe('assign', () => { console.log(wrapper.html()) expect(wrapper.find('input').element.value).toEqual('123') expect((wrapper.find('.v-field input').element as any).value).toEqual('234') - // await waitUntil(() => wrapper.find('input').element.value === '123') - }) - - it('v-run', async () => { - const template = ` - - -

{{locals.value}}

-
-` - const wrapper = mountTemplate(template) - await nextTick() - console.log(wrapper.html()) - expect(wrapper.find('h1').text()).toEqual(`123`) }) }) diff --git a/corejs/src/__tests__/runscript.spec.ts b/corejs/src/__tests__/runscript.spec.ts deleted file mode 100644 index 0aa5914..0000000 --- a/corejs/src/__tests__/runscript.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { describe, expect, it } from 'vitest' -import { mountTemplate } from './testutils' -import { nextTick } from 'vue' - -describe('run script', () => { - it('set vars', async () => { - const wrapper = mountTemplate(` -

{{vars.hello}}

- - - `) - await nextTick() - console.log(wrapper.html()) - expect(wrapper.find('h1').text()).toEqual('123') - }) -}) diff --git a/corejs/src/__tests__/scope.spec.ts b/corejs/src/__tests__/scope.spec.ts index 66970c6..349f8b1 100644 --- a/corejs/src/__tests__/scope.spec.ts +++ b/corejs/src/__tests__/scope.spec.ts @@ -172,7 +172,7 @@ describe('scope', () => { expect(txt.text()).toEqual(`345`) }) - it('simulate computed via locals and runscript', async () => { + it('simulate computed via locals and v-on-mounted', async () => { const wrapper = mountTemplate(` - + }">
diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 2ddc5c4..87ed7b1 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -12,13 +12,21 @@ import { import { GlobalEvents } from 'vue-global-events' import GoPlaidScope from '@/go-plaid-scope.vue' import GoPlaidPortal from '@/go-plaid-portal.vue' -import GoPlaidRunScript from '@/go-plaid-run-script.vue' import GoPlaidListener from '@/go-plaid-listener.vue' import ParentSizeObserver from '@/parent-size-observer.vue' import { componentByTemplate } from '@/utils' import { Builder, plaid } from '@/builder' import { keepScroll } from '@/keepScroll' -import { assignOnMounted, runOnMounted } from '@/assign' +import { assignOnMounted } from '@/assign' +import { + runOnCreated, + runBeforeMount, + runOnMounted, + runBeforeUpdate, + runOnUpdated, + runBeforeUnmount, + runOnUnmounted +} from '@/lifecycle' import { TinyEmitter } from 'tiny-emitter' export const Root = defineComponent({ @@ -79,12 +87,17 @@ export const plaidPlugin = { install(app: App) { app.component('GoPlaidScope', GoPlaidScope) app.component('GoPlaidPortal', GoPlaidPortal) - app.component('GoPlaidRunScript', GoPlaidRunScript) app.component('GoPlaidListener', GoPlaidListener) app.component('ParentSizeObserver', ParentSizeObserver) app.directive('keep-scroll', keepScroll) app.directive('assign', assignOnMounted) - app.directive('run', runOnMounted) + app.directive('on-created', runOnCreated) + app.directive('before-mount', runBeforeMount) + app.directive('on-mounted', runOnMounted) + app.directive('before-update', runBeforeUpdate) + app.directive('on-updated', runOnUpdated) + app.directive('before-unmount', runBeforeUnmount) + app.directive('on-unmounted', runOnUnmounted) app.component('GlobalEvents', GlobalEvents) } } diff --git a/corejs/src/assign.ts b/corejs/src/assign.ts index b97a091..24a2775 100644 --- a/corejs/src/assign.ts +++ b/corejs/src/assign.ts @@ -1,14 +1,8 @@ -import type { Directive } from 'vue' +import { type Directive } from 'vue' export const assignOnMounted: Directive = { - mounted: (el, binding) => { + mounted: (_, binding) => { const [form, obj] = binding.value Object.assign(form, obj) } } - -export const runOnMounted: Directive = { - mounted: (el, binding, vnode) => { - binding.value(el, binding, vnode) - } -} diff --git a/corejs/src/go-plaid-listener.vue b/corejs/src/go-plaid-listener.vue index 32a6a35..9980ae4 100644 --- a/corejs/src/go-plaid-listener.vue +++ b/corejs/src/go-plaid-listener.vue @@ -1,5 +1,7 @@ diff --git a/corejs/src/lifecycle.ts b/corejs/src/lifecycle.ts new file mode 100644 index 0000000..6952bdd --- /dev/null +++ b/corejs/src/lifecycle.ts @@ -0,0 +1,43 @@ +import { type Directive, watch, watchEffect, ref, reactive } from 'vue' + +export const runOnCreated: Directive = { + created(el, binding, vnode) { + binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runBeforeMount: Directive = { + beforeMount(el, binding, vnode) { + binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runOnMounted: Directive = { + mounted(el, binding, vnode) { + binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runBeforeUpdate: Directive = { + beforeUpdate(el, binding, vnode, prevVnode) { + binding.value({ el, binding, vnode, prevVnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runOnUpdated: Directive = { + updated(el, binding, vnode, prevVnode) { + binding.value({ el, binding, vnode, prevVnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runBeforeUnmount: Directive = { + beforeUnmount(el, binding, vnode) { + binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + } +} + +export const runOnUnmounted: Directive = { + unmounted(el, binding, vnode) { + binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + } +} diff --git a/examples/hello-button.go b/examples/hello-button.go index f90b4e1..33d3e8f 100644 --- a/examples/hello-button.go +++ b/examples/hello-button.go @@ -19,7 +19,7 @@ func HelloButton(ctx *web.EventContext) (pr web.PageResponse, err error) { Button("Hello").Attr("@click", web.POST().EventFunc("reload").Go()), Tag("input"). Attr("type", "text"). - Attr("v-run", "(el) => el.focus()"). + Attr("v-on-mounted", "({el}) => el.focus()"). Attr("value", s.Message). Attr("@input", web.POST(). EventFunc("reload"). diff --git a/examples/todomvc.go b/examples/todomvc.go index 532ff81..6466bce 100644 --- a/examples/todomvc.go +++ b/examples/todomvc.go @@ -61,7 +61,7 @@ func (c *TodoApp) MarshalHTML(ctx context.Context) ([]byte, error) { Header().Class("header").Children( H1("Todos"), Input(""). - Attr("v-run", "(el) => el.focus()"). + Attr("v-on-mounted", "({el}) => el.focus()"). Class("new-todo"). Attr("id", fmt.Sprintf("%s-creator", c.ID)). Attr("placeholder", "What needs to be done?"). diff --git a/stateful/action.go b/stateful/action.go index a6998e6..04e4e28 100644 --- a/stateful/action.go +++ b/stateful/action.go @@ -65,7 +65,7 @@ func Actionable[T h.HTMLComponent](ctx context.Context, c T, children ...h.HTMLC if ok { children = append([]h.HTMLComponent{ // borrow to get the document - h.Div().Attr("v-run", fmt.Sprintf(`(el) => { + h.Div().Attr("v-on-mounted", fmt.Sprintf(`({el}) => { const cookieTags = locals.%s().filter(tag => tag.cookie) locals.%s = function(v) { if (!v.sync_query || !el.ownerDocument) { diff --git a/vue.go b/vue.go index 7a078fe..f14e8b1 100644 --- a/vue.go +++ b/vue.go @@ -322,7 +322,7 @@ func GlobalEvents() *h.HTMLTagBuilder { } func RunScript(s string) *h.HTMLTagBuilder { - return h.Tag("go-plaid-run-script").Attr(":script", s) + return h.Div().Style("display: none;").Attr("v-on-mounted", s) } func Emit(name string, payloads ...any) string { From 156bb8a1c7db34602707a519327f4245991eb40f Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:47:55 +0800 Subject: [PATCH 03/21] rm go-plaid-run-script --- corejs/src/go-plaid-portal.vue | 1 - corejs/src/go-plaid-run-script.vue | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 corejs/src/go-plaid-run-script.vue diff --git a/corejs/src/go-plaid-portal.vue b/corejs/src/go-plaid-portal.vue index 06e3b28..82dc1e5 100644 --- a/corejs/src/go-plaid-portal.vue +++ b/corejs/src/go-plaid-portal.vue @@ -9,7 +9,6 @@ - - From c8eaf32af2a1d03b6f8ce6ae667d3aa6e88f2dc7 Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Tue, 20 Aug 2024 15:31:52 +0800 Subject: [PATCH 04/21] plaid: add lodash --- corejs/dist/index.js | 52 +++++++++++++++++++++------- corejs/src/__tests__/builder.spec.ts | 27 +++++++++++++++ corejs/src/builder.ts | 2 ++ 3 files changed, 68 insertions(+), 13 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 886d37e..861d365 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,27 +1,53 @@ -var uc=Object.defineProperty;var fc=(l,$,k)=>$ in l?uc(l,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):l[$]=k;var E=(l,$,k)=>fc(l,typeof $!="symbol"?$+"":$,k);(function(l,$){typeof exports=="object"&&typeof module<"u"?$(require("vue")):typeof define=="function"&&define.amd?define(["vue"],$):(l=typeof globalThis<"u"?globalThis:l||self,$(l.Vue))})(this,function(l){"use strict";/*! +var mA=Object.defineProperty;var AA=(T,Ie,Xt)=>Ie in T?mA(T,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):T[Ie]=Xt;var Ee=(T,Ie,Xt)=>AA(T,typeof Ie!="symbol"?Ie+"":Ie,Xt);(function(T,Ie){typeof exports=="object"&&typeof module<"u"?Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(T=typeof globalThis<"u"?globalThis:T||self,Ie(T.Vue))})(this,function(T){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let $;function k(){return $??($=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const Pt=/^on(\w+?)((?:Once|Capture|Passive)*)$/,Dt=/[OCP]/g;function Lt(e){return e?k()?e.includes("Capture"):e.replace(Dt,",$&").toLowerCase().slice(1).split(",").reduce((r,n)=>(r[n]=!0,r),{}):void 0}const xt=l.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(e,{attrs:t}){let r=Object.create(null);const n=l.ref(!0);return l.onActivated(()=>{n.value=!0}),l.onDeactivated(()=>{n.value=!1}),l.onMounted(()=>{Object.keys(t).filter(i=>i.startsWith("on")).forEach(i=>{const o=t[i],s=Array.isArray(o)?o:[o],u=i.match(Pt);if(!u){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${i}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,h,p]=u;h=h.toLowerCase();const y=s.map(g=>v=>{const I=Array.isArray(e.filter)?e.filter:[e.filter];n.value&&I.every(B=>B(v,g,h))&&(e.stop&&v.stopPropagation(),e.prevent&&v.preventDefault(),g(v))}),_=Lt(p);y.forEach(g=>{window[e.target].addEventListener(h,g,_)}),r[i]=[y,h,_]})}),l.onBeforeUnmount(()=>{for(const i in r){const[o,s,u]=r[i];o.forEach(h=>{window[e.target].removeEventListener(s,h,u)})}r={}}),()=>null}});var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ie=Nt,Ut=typeof J=="object"&&J&&J.Object===Object&&J,Mt=Ut,Ht=Mt,Bt=typeof self=="object"&&self&&self.Object===Object&&self,qt=Ht||Bt||Function("return this")(),ee=qt,Gt=ee,zt=function(){return Gt.Date.now()},kt=zt,Jt=/\s/;function Kt(e){for(var t=e.length;t--&&Jt.test(e.charAt(t)););return t}var Vt=Kt,Qt=Vt,Yt=/^\s+/;function Wt(e){return e&&e.slice(0,Qt(e)+1).replace(Yt,"")}var Zt=Wt,Xt=ee,er=Xt.Symbol,ye=er,Ue=ye,Me=Object.prototype,tr=Me.hasOwnProperty,rr=Me.toString,te=Ue?Ue.toStringTag:void 0;function nr(e){var t=tr.call(e,te),r=e[te];try{e[te]=void 0;var n=!0}catch{}var i=rr.call(e);return n&&(t?e[te]=r:delete e[te]),i}var ir=nr,or=Object.prototype,ar=or.toString;function sr(e){return ar.call(e)}var cr=sr,He=ye,ur=ir,fr=cr,lr="[object Null]",hr="[object Undefined]",Be=He?He.toStringTag:void 0;function dr(e){return e==null?e===void 0?hr:lr:Be&&Be in Object(e)?ur(e):fr(e)}var ve=dr;function pr(e){return e!=null&&typeof e=="object"}var oe=pr,yr=ve,vr=oe,_r="[object Symbol]";function gr(e){return typeof e=="symbol"||vr(e)&&yr(e)==_r}var mr=gr,wr=Zt,qe=ie,br=mr,Ge=NaN,Or=/^[-+]0x[0-9a-f]+$/i,Ar=/^0b[01]+$/i,Sr=/^0o[0-7]+$/i,Er=parseInt;function $r(e){if(typeof e=="number")return e;if(br(e))return Ge;if(qe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wr(e);var r=Ar.test(e);return r||Sr.test(e)?Er(e.slice(2),r?2:8):Or.test(e)?Ge:+e}var Tr=$r,Ir=ie,_e=kt,ze=Tr,Fr="Expected a function",Cr=Math.max,Rr=Math.min;function jr(e,t,r){var n,i,o,s,u,h,p=0,y=!1,_=!1,g=!0;if(typeof e!="function")throw new TypeError(Fr);t=ze(t)||0,Ir(r)&&(y=!!r.leading,_="maxWait"in r,o=_?Cr(ze(r.maxWait)||0,t):o,g="trailing"in r?!!r.trailing:g);function v(b){var T=n,j=i;return n=i=void 0,p=b,s=e.apply(j,T),s}function I(b){return p=b,u=setTimeout(Z,t),y?v(b):s}function B(b){var T=b-h,j=b-p,ne=t-T;return _?Rr(ne,o-j):ne}function W(b){var T=b-h,j=b-p;return h===void 0||T>=t||T<0||_&&j>=o}function Z(){var b=_e();if(W(b))return X(b);u=setTimeout(Z,B(b))}function X(b){return u=void 0,g&&n?v(b):(n=i=void 0,s)}function q(){u!==void 0&&clearTimeout(u),p=0,n=h=i=u=void 0}function Le(){return u===void 0?s:X(_e())}function G(){var b=_e(),T=W(b);if(n=arguments,i=this,h=b,T){if(u===void 0)return I(h);if(_)return clearTimeout(u),u=setTimeout(Z,t),v(h)}return u===void 0&&(u=setTimeout(Z,t)),s}return G.cancel=q,G.flush=Le,G}var Pr=jr;const ke=pe(Pr),Dr=l.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(e,{emit:t}){const r=e,n=t;let i=r.init;Array.isArray(i)&&(i=Object.assign({},...i));const o=l.reactive({...i});let s=r.formInit;Array.isArray(s)&&(s=Object.assign({},...s));const u=l.reactive({...s}),h=l.inject("vars"),p=l.inject("plaid");return l.onMounted(()=>{setTimeout(()=>{if(r.useDebounce){const y=r.useDebounce,_=ke(g=>{n("change-debounced",g)},y);console.log("watched"),l.watch(o,(g,v)=>{_({locals:g,form:u,oldLocals:v,oldForm:u})}),l.watch(u,(g,v)=>{_({locals:o,form:g,oldLocals:o,oldForm:v})})}},0)}),(y,_)=>l.renderSlot(y.$slots,"default",{locals:o,form:u,plaid:l.unref(p),vars:l.unref(h)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var e;function t(a){var c=0;return function(){return c>>0)+"_",m=0;return c}),o("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"||!FormData.prototype.keys)){var T=function(a,c){for(var f=0;f(i[a]=!0,i),{}):void 0}const cs=T.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=T.ref(!0);return T.onActivated(()=>{a.value=!0}),T.onDeactivated(()=>{a.value=!1}),T.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const g=u[c],y=Array.isArray(g)?g:[g],A=c.match(as);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,I,P]=A;I=I.toLowerCase();const $=y.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,I))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=ls(P);$.forEach(z=>{window[r.target].addEventListener(I,z,D)}),i[c]=[$,I,D]})}),T.onBeforeUnmount(()=>{for(const c in i){const[g,y,A]=i[c];g.forEach(I=>{window[r.target].removeEventListener(y,I,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function hs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=hs,ps=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ds=ps,gs=ds,_s=typeof self=="object"&&self&&self.Object===Object&&self,vs=gs||_s||Function("return this")(),yn=vs,ys=yn,ws=function(){return ys.Date.now()},ms=ws,As=/\s/;function Os(r){for(var u=r.length;u--&&As.test(r.charAt(u)););return u}var Ss=Os,Es=Ss,bs=/^\s+/;function xs(r){return r&&r.slice(0,Es(r)+1).replace(bs,"")}var Ts=xs,Is=yn,Rs=Is.Symbol,Zr=Rs,Mu=Zr,Nu=Object.prototype,Cs=Nu.hasOwnProperty,Ls=Nu.toString,wn=Mu?Mu.toStringTag:void 0;function Fs(r){var u=Cs.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=Ls.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var $s=Fs,Ps=Object.prototype,Ds=Ps.toString;function Ms(r){return Ds.call(r)}var Ns=Ms,Uu=Zr,Us=$s,Bs=Ns,Ws="[object Null]",Hs="[object Undefined]",Bu=Uu?Uu.toStringTag:void 0;function Gs(r){return r==null?r===void 0?Hs:Ws:Bu&&Bu in Object(r)?Us(r):Bs(r)}var jr=Gs;function qs(r){return r!=null&&typeof r=="object"}var Yn=qs,zs=jr,Ks=Yn,Ys="[object Symbol]";function Js(r){return typeof r=="symbol"||Ks(r)&&zs(r)==Ys}var Zs=Js,js=Ts,Wu=Kn,Xs=Zs,Hu=NaN,Qs=/^[-+]0x[0-9a-f]+$/i,Vs=/^0b[01]+$/i,ks=/^0o[0-7]+$/i,el=parseInt;function tl(r){if(typeof r=="number")return r;if(Xs(r))return Hu;if(Wu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Wu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=js(r);var i=Vs.test(r);return i||ks.test(r)?el(r.slice(2),i?2:8):Qs.test(r)?Hu:+r}var nl=tl,rl=Kn,Xr=ms,Gu=nl,il="Expected a function",ul=Math.max,ol=Math.min;function fl(r,u,i){var a,c,g,y,A,I,P=0,$=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(il);u=Gu(u)||0,rl(i)&&($=!!i.leading,D="maxWait"in i,g=D?ul(Gu(i.maxWait)||0,u):g,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,be=c;return a=c=void 0,P=k,y=r.apply(be,ne),y}function se(k){return P=k,A=setTimeout(Fe,u),$?M(k):y}function Ke(k){var ne=k-I,be=k-P,vt=u-ne;return D?ol(vt,g-be):vt}function de(k){var ne=k-I,be=k-P;return I===void 0||ne>=u||ne<0||D&&be>=g}function Fe(){var k=Xr();if(de(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,y)}function ve(){A!==void 0&&clearTimeout(A),P=0,a=I=c=A=void 0}function st(){return A===void 0?y:_t(Xr())}function ye(){var k=Xr(),ne=de(k);if(a=arguments,c=this,I=k,ne){if(A===void 0)return se(I);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(I)}return A===void 0&&(A=setTimeout(Fe,u)),y}return ye.cancel=ve,ye.flush=st,ye}var al=fl;const qu=zn(al),sl=T.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const g=T.reactive({...c});let y=i.formInit;Array.isArray(y)&&(y=Object.assign({},...y));const A=T.reactive({...y}),I=T.inject("vars"),P=T.inject("plaid");return T.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const $=i.useDebounce,D=qu(z=>{a("change-debounced",z)},$);console.log("watched"),T.watch(g,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),T.watch(A,(z,M)=>{D({locals:g,form:z,oldLocals:g,oldForm:M})})}},0)}),($,D)=>T.renderSlot($.$slots,"default",{locals:g,form:A,plaid:T.unref(P),vars:T.unref(I)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(d){var m=0;return function(){return m>>0)+"_",W=0;return m}),g("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(d,m){for(var b=0;be==null,Hr=e=>encodeURIComponent(e).replaceAll(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),me=Symbol("encodeFragmentIdentifier");function Br(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{const i=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[",i,"]"].join("")]:[...r,[O(t,e),"[",O(i,e),"]=",O(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),"[]"].join("")]:[...r,[O(t,e),"[]=",O(n,e)].join("")];case"colon-list-separator":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[O(t,e),":list="].join("")]:[...r,[O(t,e),":list=",O(n,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t=e.arrayFormat==="bracket-separator"?"[]=":"=";return r=>(n,i)=>i===void 0||e.skipNull&&i===null||e.skipEmptyString&&i===""?n:(i=i===null?"":i,n.length===0?[[O(r,e),t,O(i,e)].join("")]:[[n,O(i,e)].join(e.arrayFormatSeparator)])}default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,O(t,e)]:[...r,[O(t,e),"=",O(n,e)].join("")]}}function qr(e){let t;switch(e.arrayFormat){case"index":return(r,n,i)=>{if(t=/\[(\d*)]$/.exec(r),r=r.replace(/\[\d*]$/,""),!t){i[r]=n;return}i[r]===void 0&&(i[r]={}),i[r][t[1]]=n};case"bracket":return(r,n,i)=>{if(t=/(\[])$/.exec(r),r=r.replace(/\[]$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"colon-list-separator":return(r,n,i)=>{if(t=/(:list)$/.exec(r),r=r.replace(/:list$/,""),!t){i[r]=n;return}if(i[r]===void 0){i[r]=[n];return}i[r]=[...i[r],n]};case"comma":case"separator":return(r,n,i)=>{const o=typeof n=="string"&&n.includes(e.arrayFormatSeparator),s=typeof n=="string"&&!o&&D(n,e).includes(e.arrayFormatSeparator);n=s?D(n,e):n;const u=o||s?n.split(e.arrayFormatSeparator).map(h=>D(h,e)):n===null?n:D(n,e);i[r]=u};case"bracket-separator":return(r,n,i)=>{const o=/(\[])$/.test(r);if(r=r.replace(/\[]$/,""),!o){i[r]=n&&D(n,e);return}const s=n===null?[]:n.split(e.arrayFormatSeparator).map(u=>D(u,e));if(i[r]===void 0){i[r]=s;return}i[r]=[...i[r],...s]};default:return(r,n,i)=>{if(i[r]===void 0){i[r]=n;return}i[r]=[...[i[r]].flat(),n]}}}function Ye(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function O(e,t){return t.encode?t.strict?Hr(e):encodeURIComponent(e):e}function D(e,t){return t.decode?Nr(e):e}function We(e){return Array.isArray(e)?e.sort():typeof e=="object"?We(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function Ze(e){const t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function Gr(e){let t="";const r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function Xe(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function we(e){e=Ze(e);const t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function be(e,t){t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t},Ye(t.arrayFormatSeparator);const r=qr(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(const i of e.split("&")){if(i==="")continue;const o=t.decode?i.replaceAll("+"," "):i;let[s,u]=Qe(o,"=");s===void 0&&(s=o),u=u===void 0?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?u:D(u,t),r(D(s,t),u,n)}for(const[i,o]of Object.entries(n))if(typeof o=="object"&&o!==null)for(const[s,u]of Object.entries(o))o[s]=Xe(u,t);else n[i]=Xe(o,t);return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((i,o)=>{const s=n[o];return i[o]=s&&typeof s=="object"&&!Array.isArray(s)?We(s):s,i},Object.create(null))}function et(e,t){if(!e)return"";t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t},Ye(t.arrayFormatSeparator);const r=s=>t.skipNull&&Mr(e[s])||t.skipEmptyString&&e[s]==="",n=Br(t),i={};for(const[s,u]of Object.entries(e))r(s)||(i[s]=u);const o=Object.keys(i);return t.sort!==!1&&o.sort(t.sort),o.map(s=>{const u=e[s];return u===void 0?"":u===null?O(s,t):Array.isArray(u)?u.length===0&&t.arrayFormat==="bracket-separator"?O(s,t)+"[]":u.reduce(n(s),[]).join("&"):O(s,t)+"="+O(u,t)}).filter(s=>s.length>0).join("&")}function tt(e,t){var i;t={decode:!0,...t};let[r,n]=Qe(e,"#");return r===void 0&&(r=e),{url:((i=r==null?void 0:r.split("?"))==null?void 0:i[0])??"",query:be(we(e),t),...t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:D(n,t)}:{}}}function rt(e,t){t={encode:!0,strict:!0,[me]:!0,...t};const r=Ze(e.url).split("?")[0]||"",n=we(e.url),i={...be(n,{sort:!1}),...e.query};let o=et(i,t);o&&(o=`?${o}`);let s=Gr(e.url);if(typeof e.fragmentIdentifier=="string"){const u=new URL(r);u.hash=e.fragmentIdentifier,s=t[me]?u.hash:`#${e.fragmentIdentifier}`}return`${r}${o}${s}`}function nt(e,t,r){r={parseFragmentIdentifier:!0,[me]:!1,...r};const{url:n,query:i,fragmentIdentifier:o}=tt(e,r);return rt({url:n,query:Ur(i,t),fragmentIdentifier:o},r)}function zr(e,t,r){const n=Array.isArray(t)?i=>!t.includes(i):(i,o)=>!t(i,o);return nt(e,n,r)}const L=Object.freeze(Object.defineProperty({__proto__:null,exclude:zr,extract:we,parse:be,parseUrl:tt,pick:nt,stringify:et,stringifyUrl:rt},Symbol.toStringTag,{value:"Module"}));function kr(e,t){for(var r=-1,n=t.length,i=e.length;++r0&&r(u)?t>1?ct(u,t-1,r,n,i):fn(i,u):n||(i[i.length]=u)}return i}var hn=ct;function dn(e){return e}var ut=dn;function pn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var yn=pn,vn=yn,ft=Math.max;function _n(e,t,r){return t=ft(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=ft(n.length-t,0),s=Array(o);++i0){if(++t>=ci)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hi=li,di=si,pi=hi,yi=pi(di),vi=yi,_i=ut,gi=gn,mi=vi;function wi(e,t){return mi(gi(e,t,_i),e+"")}var pt=wi,bi=ae,Oi=bi(Object,"create"),se=Oi,yt=se;function Ai(){this.__data__=yt?yt(null):{},this.size=0}var Si=Ai;function Ei(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var $i=Ei,Ti=se,Ii="__lodash_hash_undefined__",Fi=Object.prototype,Ci=Fi.hasOwnProperty;function Ri(e){var t=this.__data__;if(Ti){var r=t[e];return r===Ii?void 0:r}return Ci.call(t,e)?t[e]:void 0}var ji=Ri,Pi=se,Di=Object.prototype,Li=Di.hasOwnProperty;function xi(e){var t=this.__data__;return Pi?t[e]!==void 0:Li.call(t,e)}var Ni=xi,Ui=se,Mi="__lodash_hash_undefined__";function Hi(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ui&&t===void 0?Mi:t,this}var Bi=Hi,qi=Si,Gi=$i,zi=ji,ki=Ni,Ji=Bi;function K(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var fo=uo,lo=ce;function ho(e,t){var r=this.__data__,n=lo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var po=ho,yo=Qi,vo=io,_o=so,go=fo,mo=po;function V(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}var gt=_a;function ga(e,t,r){for(var n=-1,i=e==null?0:e.length;++n=Ua){var p=t?null:xa(e);if(p)return Na(p);s=!1,i=La,h=new ja}else h=t?[]:u;e:for(;++n-1&&e%1==0&&e<=Ba}var Ga=qa,za=lt,ka=Ga;function Ja(e){return e!=null&&ka(e.length)&&!za(e)}var Ka=Ja,Va=Ka,Qa=oe;function Ya(e){return Qa(e)&&Va(e)}var Ot=Ya,Wa=hn,Za=pt,Xa=Ha,es=Ot,ts=Za(function(e){return Xa(Wa(e,1,es,!0))}),rs=ts;const ns=pe(rs);function is(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r=ps&&(o=ds,s=!1,t=new cs(t));e:for(;++i0&&(u=`?${u}`);let y=n.url+u;return n.fragmentIdentifier&&(y=y+"#"+n.fragmentIdentifier),{pushStateArgs:[{query:i,url:y},"",y],eventURL:`${n.url}?${L.stringify(h,p)}`}}function Ss(e,t,r){if(!r.value)return;let n=r.value;Array.isArray(r.value)||(n=[r.value]);let i=e[t];if(i&&!Array.isArray(i)&&(i=[i]),r.add){e[t]=ns(i,n);return}if(r.remove){const o=Os(i,...n);o.length===0?delete e[t]:e[t]=o}}function le(e,t,r){if(!t||t.length===0)return!1;if(r instanceof Event)return le(e,t,r.target);if(r instanceof HTMLInputElement){if(r.files)return le(e,t,r.files);switch(r.type){case"checkbox":return r.checked?U(e,t,r.value):e.has(t)?(e.delete(t),!0):!1;case"radio":return r.checked?U(e,t,r.value):!1;default:return U(e,t,r.value)}}if(r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)return U(e,t,r.value);if(r==null)return U(e,t,"");let n=!1;if(e.has(t)&&(n=!0,e.delete(t)),Array.isArray(r)||r instanceof FileList){for(let i=0;i{this.$el&&this.$el.style&&this.$el.style.height&&(n.value.style.height=this.$el.style.height)})},template:e})}function At(e,t,r=""){if(e==null)return;const n=Array.isArray(e);if(n&&e.length>0&&(e[0]instanceof File||e[0]instanceof Blob||typeof e[0]=="string")){le(t,r,e);return}return Object.keys(e).forEach(i=>{const o=e[i],s=r?n?`${r}[${i}]`:`${r}.${i}`:i;typeof o=="object"&&!(o instanceof File)&&!(o instanceof Date)?At(o,t,s):le(t,s,o)}),t}function Es(e,t){if(t.length===0)return"";const r=o=>Object.keys(o).sort().map(s=>{const u=encodeURIComponent(o[s]);if(u.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${u}`);return u}).join("_"),n=o=>o.map(s=>typeof s=="object"&&!Array.isArray(s)?r(s):encodeURIComponent(s)).join(","),i=[];return t.forEach(o=>{const s=e[o.json_name];if(s===void 0)return;if(o.encoder){o.encoder({value:s,queries:i,tag:o});return}const u=encodeURIComponent(o.name);if(!(!s&&o.omitempty))if(s===null)i.push(`${u}=`);else if(Array.isArray(s)){if(o.omitempty&&e[o.json_name].length===0)return;i.push(`${u}=${n(e[o.json_name])}`)}else typeof s=="object"?i.push(`${u}=${r(s)}`):i.push(`${u}=${encodeURIComponent(s)}`)}),i.join("&")}function $s(e,t){for(const r in t){if(e[r]===void 0)return!1;const n=Array.isArray(e[r])?e[r]:[e[r]],i=Array.isArray(t[r])?t[r]:[t[r]],o={};n.forEach(s=>{o[s]=(o[s]||0)+1});for(const s of i){if(!o[s]||o[s]===0)return!1;o[s]--}}return!0}function Ts(e,t,r){r===void 0&&(r={arrayFormat:"comma"});const n=L.parse(e,r),i=L.parse(t,r);return $s(n,i)}const Is=l.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(e){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const t=l.ref(),r=e,n=l.shallowRef(null),i=l.ref(0),o=h=>{n.value=Se(h,r.form,r.locals,t)},s=l.useSlots(),u=()=>{if(s.default){n.value=Se('',r.locals,t);return}const h=r.loader;h&&h.loadPortalBody(!0).form(r.form).go().then(p=>{p&&o(p.body)})};return l.onMounted(()=>{const h=r.portalName;h&&(window.__goplaid.portals[h]={updatePortalTemplate:o,reload:u}),u()}),l.onUpdated(()=>{if(r.autoReloadInterval&&i.value==0){const h=parseInt(r.autoReloadInterval+"");if(h==0)return;i.value=setInterval(()=>{u()},h)}i.value&&i.value>0&&r.autoReloadInterval==0&&(clearInterval(i.value),i.value=0)}),l.onBeforeUnmount(()=>{i.value&&i.value>0&&clearInterval(i.value)}),(h,p)=>e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:t},[n.value?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{key:0},{default:l.withCtx(()=>[l.renderSlot(h.$slots,"default",{form:e.form,locals:e.locals})]),_:3})):l.createCommentVNode("",!0)],512)):l.createCommentVNode("",!0)}}),Fs=l.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(e){const r=l.inject("vars").__emitter,n=l.useAttrs(),i={};return l.onMounted(()=>{Object.keys(n).forEach(o=>{if(o.startsWith("on")){const s=n[o],u=o.slice(2);i[u]=s,r.on(u,s)}})}),l.onUnmounted(()=>{Object.keys(i).forEach(o=>{r.off(o,i[o])})}),(o,s)=>l.createCommentVNode("",!0)}}),Cs=l.defineComponent({__name:"parent-size-observer",setup(e){const t=l.ref({width:0,height:0});function r(i){const o=i.getBoundingClientRect();t.value.width=o.width,t.value.height=o.height}let n=null;return l.onMounted(()=>{var s;const i=l.getCurrentInstance(),o=(s=i==null?void 0:i.proxy)==null?void 0:s.$el.parentElement;o&&(r(o),n=new ResizeObserver(()=>{r(o)}),n.observe(o))}),l.onBeforeUnmount(()=>{n&&n.disconnect()}),(i,o)=>l.renderSlot(i.$slots,"default",{width:t.value.width,height:t.value.height})}});/*! +`),C,`\r +`)}),m.push("--"+d+"--"),new Blob(m,{type:"multipart/form-data; boundary="+d})},Je.prototype[Symbol.iterator]=function(){return this.entries()},Je.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var m=d.length;0<=--m&&d.item(m)!==this;);return-1r==null,gl=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),Vr=Symbol("encodeFragmentIdentifier");function _l(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[",c,"]"].join("")]:[...i,[he(u,r),"[",he(c,r),"]=",he(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[]"].join("")]:[...i,[he(u,r),"[]=",he(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),":list="].join("")]:[...i,[he(u,r),":list=",he(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[he(i,r),u,he(c,r)].join("")]:[[a,he(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,he(u,r)]:[...i,[he(u,r),"=",he(a,r)].join("")]}}function vl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const g=typeof a=="string"&&a.includes(r.arrayFormatSeparator),y=typeof a=="string"&&!g&&dt(a,r).includes(r.arrayFormatSeparator);a=y?dt(a,r):a;const A=g||y?a.split(r.arrayFormatSeparator).map(I=>dt(I,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const g=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!g){c[i]=a&&dt(a,r);return}const y=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=y;return}c[i]=[...c[i],...y]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Zu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function he(r,u){return u.encode?u.strict?gl(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?hl(r):r}function ju(r){return Array.isArray(r)?r.sort():typeof r=="object"?ju(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function Xu(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function yl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function Qu(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function kr(r){r=Xu(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ei(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Zu(u.arrayFormatSeparator);const i=vl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const g=u.decode?c.replaceAll("+"," "):c;let[y,A]=Ju(g,"=");y===void 0&&(y=g),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(y,u),A,a)}for(const[c,g]of Object.entries(a))if(typeof g=="object"&&g!==null)for(const[y,A]of Object.entries(g))g[y]=Qu(A,u);else a[c]=Qu(g,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,g)=>{const y=a[g];return c[g]=y&&typeof y=="object"&&!Array.isArray(y)?ju(y):y,c},Object.create(null))}function Vu(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Zu(u.arrayFormatSeparator);const i=y=>u.skipNull&&dl(r[y])||u.skipEmptyString&&r[y]==="",a=_l(u),c={};for(const[y,A]of Object.entries(r))i(y)||(c[y]=A);const g=Object.keys(c);return u.sort!==!1&&g.sort(u.sort),g.map(y=>{const A=r[y];return A===void 0?"":A===null?he(y,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?he(y,u)+"[]":A.reduce(a(y),[]).join("&"):he(y,u)+"="+he(A,u)}).filter(y=>y.length>0).join("&")}function ku(r,u){var c;u={decode:!0,...u};let[i,a]=Ju(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ei(kr(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function eo(r,u){u={encode:!0,strict:!0,[Vr]:!0,...u};const i=Xu(r.url).split("?")[0]||"",a=kr(r.url),c={...ei(a,{sort:!1}),...r.query};let g=Vu(c,u);g&&(g=`?${g}`);let y=yl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,y=u[Vr]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${g}${y}`}function to(r,u,i){i={parseFragmentIdentifier:!0,[Vr]:!1,...i};const{url:a,query:c,fragmentIdentifier:g}=ku(r,i);return eo({url:a,query:pl(c,u),fragmentIdentifier:g},i)}function wl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,g)=>!u(c,g);return to(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:wl,extract:kr,parse:ei,parseUrl:ku,pick:to,stringify:Vu,stringifyUrl:eo},Symbol.toStringTag,{value:"Module"}));function ml(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?oo(A,u-1,i,a,c):Ul(c,A):a||(c[c.length]=A)}return c}var Wl=oo;function Hl(r){return r}var fo=Hl;function Gl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var ql=Gl,zl=ql,ao=Math.max;function Kl(r,u,i){return u=ao(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,g=ao(a.length-u,0),y=Array(g);++c0){if(++u>=Mc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Wc=Bc,Hc=Dc,Gc=Wc,qc=Gc(Hc),zc=qc,Kc=fo,Yc=Yl,Jc=zc;function Zc(r,u){return Jc(Yc(r,u,Kc),r+"")}var ho=Zc,jc=Jn,Xc=jc(Object,"create"),Zn=Xc,po=Zn;function Qc(){this.__data__=po?po(null):{},this.size=0}var Vc=Qc;function kc(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var eh=kc,th=Zn,nh="__lodash_hash_undefined__",rh=Object.prototype,ih=rh.hasOwnProperty;function uh(r){var u=this.__data__;if(th){var i=u[r];return i===nh?void 0:i}return ih.call(u,r)?u[r]:void 0}var oh=uh,fh=Zn,ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;return fh?u[r]!==void 0:sh.call(u,r)}var ch=lh,hh=Zn,ph="__lodash_hash_undefined__";function dh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=hh&&u===void 0?ph:u,this}var gh=dh,_h=Vc,vh=eh,yh=oh,wh=ch,mh=gh;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Uh=Nh,Bh=jn;function Wh(r,u){var i=this.__data__,a=Bh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Hh=Wh,Gh=Sh,qh=Fh,zh=Dh,Kh=Uh,Yh=Hh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var vo=zp;function Kp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=cd){var P=u?null:sd(r);if(P)return ld(P);y=!1,c=ad,I=new ud}else I=u?[]:A;e:for(;++a-1&&r%1==0&&r<=dd}var _d=gd,vd=so,yd=_d;function wd(r){return r!=null&&yd(r.length)&&!vd(r)}var md=wd,Ad=md,Od=Yn;function Sd(r){return Od(r)&&Ad(r)}var Ao=Sd,Ed=Wl,bd=ho,xd=pd,Td=Ao,Id=bd(function(r){return xd(Ed(r,1,Td,!0))}),Rd=Id;const Cd=zn(Rd);function Ld(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Hd&&(g=Wd,y=!1,u=new Dd(u));e:for(;++c0&&(A=`?${A}`);let $=a.url+A;return a.fragmentIdentifier&&($=$+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:$},"",$],eventURL:`${a.url}?${gt.stringify(I,P)}`}}function Qd(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Cd(c,a);return}if(i.remove){const g=jd(c,...a);g.length===0?delete r[u]:r[u]=g}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Oo(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const g=r[c],y=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof g=="object"&&!(g instanceof File)&&!(g instanceof Date)?Oo(g,u,y):Vn(u,y,g)}),u}function Vd(r,u){if(u.length===0)return"";const i=g=>Object.keys(g).sort().map(y=>{const A=encodeURIComponent(g[y]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=g=>g.map(y=>typeof y=="object"&&!Array.isArray(y)?i(y):encodeURIComponent(y)).join(","),c=[];return u.forEach(g=>{const y=r[g.json_name];if(y===void 0)return;if(g.encoder){g.encoder({value:y,queries:c,tag:g});return}const A=encodeURIComponent(g.name);if(!(!y&&g.omitempty))if(y===null)c.push(`${A}=`);else if(Array.isArray(y)){if(g.omitempty&&r[g.json_name].length===0)return;c.push(`${A}=${a(r[g.json_name])}`)}else typeof y=="object"?c.push(`${A}=${i(y)}`):c.push(`${A}=${encodeURIComponent(y)}`)}),c.join("&")}function kd(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],g={};a.forEach(y=>{g[y]=(g[y]||0)+1});for(const y of c){if(!g[y]||g[y]===0)return!1;g[y]--}}return!0}function eg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return kd(a,c)}const tg=T.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=T.ref(),i=r,a=T.shallowRef(null),c=T.ref(0),g=I=>{a.value=ri(I,i.form,i.locals,u)},y=T.useSlots(),A=()=>{if(y.default){a.value=ri('',i.locals,u);return}const I=i.loader;I&&I.loadPortalBody(!0).form(i.form).go().then(P=>{P&&g(P.body)})};return T.onMounted(()=>{const I=i.portalName;I&&(window.__goplaid.portals[I]={updatePortalTemplate:g,reload:A}),A()}),T.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const I=parseInt(i.autoReloadInterval+"");if(I==0)return;c.value=setInterval(()=>{A()},I)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),T.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(I,P)=>r.visible?(T.openBlock(),T.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(T.openBlock(),T.createBlock(T.resolveDynamicComponent(a.value),{key:0},{default:T.withCtx(()=>[T.renderSlot(I.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):T.createCommentVNode("",!0)],512)):T.createCommentVNode("",!0)}}),ng=T.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=T.inject("vars").__emitter,a=T.useAttrs(),c={};return T.onMounted(()=>{Object.keys(a).forEach(g=>{if(g.startsWith("on")){const y=a[g],A=g.slice(2);c[A]=y,i.on(A,y)}})}),T.onUnmounted(()=>{Object.keys(c).forEach(g=>{i.off(g,c[g])})}),(g,y)=>T.createCommentVNode("",!0)}}),rg=T.defineComponent({__name:"parent-size-observer",setup(r){const u=T.ref({width:0,height:0});function i(c){const g=c.getBoundingClientRect();u.value.width=g.width,u.value.height=g.height}let a=null;return T.onMounted(()=>{var y;const c=T.getCurrentInstance(),g=(y=c==null?void 0:c.proxy)==null?void 0:y.$el.parentElement;g&&(i(g),a=new ResizeObserver(()=>{i(g)}),a.observe(g))}),T.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,g)=>T.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var Rs=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)i.hasOwnProperty(o)&&(n[o]=i[o])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),js=Object.prototype.hasOwnProperty;function Ee(e,t){return js.call(e,t)}function $e(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&n<=57){t++;continue}return!1}return!0}function M(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function St(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Ie(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&h[y-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&g===void 0&&(p[v]===void 0?g=h.slice(0,y).join("/"):y==_-1&&(g=t.path),g!==void 0&&I(t,0,e,g)),y++,Array.isArray(p)){if(v==="-")v=p.length;else{if(r&&!Te(v))throw new w("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",o,t,e);Te(v)&&(v=~~v)}if(y>=_){if(r&&t.op==="add"&&v>p.length)throw new w("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",o,t,e);var s=Ds[t.op].call(t,p,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}}else if(y>=_){var s=Y[t.op].call(t,p,v,e);if(s.test===!1)throw new w("Test operation failed","TEST_OPERATION_FAILED",o,t,e);return s}if(p=p[v],r&&y<_&&(!p||typeof p!="object"))throw new w("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",o,t,e)}}}function Fe(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=F(e));for(var o=new Array(t.length),s=0,u=t.length;s0)throw new w('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new w("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Ie(e.value))throw new w("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,o=n.split("/").length;if(i!==o+1&&i!==o)throw new w("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new w("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var s={op:"_get",path:e.from,value:void 0},u=Tt([s],r);if(u&&u.name==="OPERATION_PATH_UNRESOLVABLE")throw new w("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new w("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function Tt(e,t,r){try{if(!Array.isArray(e))throw new w("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Fe(F(t),F(e),r||!0);else{r=r||de;for(var n=0;n=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function So(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function fi(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&I[$-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[M]===void 0?z=I.slice(0,$).join("/"):$==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),$++,Array.isArray(P)){if(M==="-")M=P.length;else{if(i&&!oi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",g,u,r);oi(M)&&(M=~~M)}if($>=D){if(i&&u.op==="add"&&M>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",g,u,r);var y=fg[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}}else if($>=D){var y=en[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}if(P=P[M],i&&$0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&fi(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,g=a.split("/").length;if(c!==g+1&&c!==g)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var y={op:"_get",path:r.from,value:void 0},A=xo([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function xo(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)ai(Ue(u),Ue(r),i||!0);else{i=i||er;for(var a=0;a0&&(e.patches=[],e.callback&&e.callback(n)),n}function je(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var o=$e(t),s=$e(e),u=!1,h=s.length-1;h>=0;h--){var p=s[h],y=e[p];if(Ee(t,p)&&!(t[p]===void 0&&y!==void 0&&Array.isArray(t)===!1)){var _=t[p];typeof y=="object"&&y!=null&&typeof _=="object"&&_!=null&&Array.isArray(y)===Array.isArray(_)?je(y,_,r,n+"/"+M(p),i):y!==_&&(i&&r.push({op:"test",path:n+"/"+M(p),value:F(y)}),r.push({op:"replace",path:n+"/"+M(p),value:F(_)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+M(p),value:F(y)}),r.push({op:"remove",path:n+"/"+M(p)}),u=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!u&&o.length==s.length))for(var h=0;h{var r;return t instanceof Error?(r=this.ignoreErrors)==null?void 0:r.includes(t.message):!1})}eventFunc(t){return this._eventFuncID.id=t,this}updateRootTemplate(t){return this._updateRootTemplate=t,this}eventFuncID(t){return this._eventFuncID=t,this}reload(){return this._eventFuncID.id="__reload__",this}url(t){return this._url=t,this}vars(t){return this._vars=t,this}loadPortalBody(t){return this._loadPortalBody=t,this}locals(t){return this._locals=t,this}calcValue(t){return typeof t=="function"?t(this):t}query(t,r){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[t]=this.calcValue(r),this}mergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=t,this}clearMergeQuery(t){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=t,this}location(t){return this._location=t,this}stringQuery(t){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(t),this}stringifyOptions(t){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(t),this}pushState(t){return this._pushState=this.calcValue(t),this}queries(t){return this._location||(this._location={}),this._location.query=t,this}pushStateURL(t){return this._location||(this._location={}),this._location.url=this.calcValue(t),this.pushState(!0),this}form(t){return this._form=t,this}fieldValue(t,r){if(!this._form)throw new Error("form not exist");return this._form[t]=this.calcValue(r),this}popstate(t){return this._popstate=t,this}run(t){return typeof t=="function"?t(this):new Function(t).apply(this),this}method(t){return this._method=t,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(t){return!t||!t.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(t.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const t=this.buildPushStateArgs();t&&window.history.pushState(...t)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const t={method:"POST",redirect:"follow"};if(this._method&&(t.method=this._method),t.method==="POST"){const n=new FormData;At(this._form,n),t.body=n}window.dispatchEvent(new Event("fetchStart"));const r=this.buildFetchURL();return fetch(r,t).then(n=>n.redirected?(document.location.replace(n.url),{}):n.json()).then(n=>(n.runScript&&new Function("vars","locals","form","plaid",n.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const i=Pe().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return i.parent=this,i}]),n)).then(n=>{if(n.pageTitle&&(document.title=n.pageTitle),n.redirectURL&&document.location.replace(n.redirectURL),n.reloadPortals&&n.reloadPortals.length>0)for(const i of n.reloadPortals){const o=window.__goplaid.portals[i];o&&o.reload()}if(n.updatePortals&&n.updatePortals.length>0)for(const i of n.updatePortals){const{updatePortalTemplate:o}=window.__goplaid.portals[i.name];o&&o(i.body)}return n.pushState?Pe().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(n.pushState).go():(this._loadPortalBody&&n.body||n.body&&this._updateRootTemplate(n.body),n)}).catch(n=>{console.log(n),this.isIgnoreError(n)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const t=window.location.href;this._buildPushStateResult=As({...this._eventFuncID,location:this._location},this._url||t)}emit(t,...r){this._vars&&this._vars.__emitter.emit(t,...r)}applyJsonPatch(t,r){return ks.applyPatch(t,r)}encodeObjectToQuery(t,r){return Es(t,r)}isRawQuerySubset(t,r,n){return Ts(t,r,n)}}function Pe(){return new Js}const Ks={mounted:(e,t,r)=>{var p,y;let n=e;r.component&&(n=(y=(p=r.component)==null?void 0:p.proxy)==null?void 0:y.$el);const i=t.arg||"scroll",s=L.parse(location.hash)[i];let u="";Array.isArray(s)?u=s[0]||"":u=s||"";const h=u.split("_");h.length>=2&&(n.scrollTop=parseInt(h[0]),n.scrollLeft=parseInt(h[1])),n.addEventListener("scroll",ke(function(){const _=L.parse(location.hash);_[i]=n.scrollTop+"_"+n.scrollLeft,location.hash=L.stringify(_)},200))}},Vs={mounted:(e,t)=>{const[r,n]=t.value;Object.assign(r,n)}},Qs={created(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Ys={beforeMount(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Ws={mounted(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Zs={beforeUpdate(e,t,r,n){t.value({el:e,binding:t,vnode:r,prevVnode:n,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},Xs={updated(e,t,r,n){t.value({el:e,binding:t,vnode:r,prevVnode:n,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},ec={beforeUnmount(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}},tc={unmounted(e,t,r){t.value({el:e,binding:t,vnode:r,window,watch:l.watch,watchEffect:l.watchEffect,ref:l.ref,reactive:l.reactive})}};var It={exports:{}};function De(){}De.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;for(n;n{t.value=Se(u,r)};l.provide("updateRootTemplate",n);const i=l.reactive({__emitter:new rc}),o=()=>Pe().updateRootTemplate(n).vars(i);l.provide("plaid",o),l.provide("vars",i);const s=l.ref(!1);return l.provide("isFetching",s),l.onMounted(()=>{n(e.initialTemplate),window.addEventListener("fetchStart",()=>{s.value=!0}),window.addEventListener("fetchEnd",()=>{s.value=!1}),window.addEventListener("popstate",u=>{o().onpopstate(u)})}),{current:t}},template:` + */var si=new WeakMap,lg=function(){function r(u){this.observers=new Map,this.obj=u}return r}(),cg=function(){function r(u,i){this.callback=u,this.observer=i}return r}();function hg(r){return si.get(r)}function pg(r,u){return r.observers.get(u)}function dg(r,u){r.observers.delete(u.callback)}function gg(r,u){u.unobserve()}function _g(r,u){var i=[],a,c=hg(r);if(!c)c=new lg(r),si.set(r,c);else{var g=pg(c,u);a=g&&g.observer}if(a)return a;if(a={},c.value=Ue(r),u){a.callback=u,a.next=null;var y=function(){li(a)},A=function(){clearTimeout(a.next),a.next=setTimeout(y)};typeof window<"u"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return a.patches=i,a.object=r,a.unobserve=function(){li(a),clearTimeout(a.next),dg(c,a),typeof window<"u"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},c.observers.set(u,new cg(u,a)),a}function li(r,u){u===void 0&&(u=!1);var i=si.get(r.object);ci(i.value,r.object,r.patches,"",u),r.patches.length&&ai(i.value,r.patches);var a=r.patches;return a.length>0&&(r.patches=[],r.callback&&r.callback(a)),a}function ci(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var g=ui(u),y=ui(r),A=!1,I=y.length-1;I>=0;I--){var P=y[I],$=r[P];if(ii(u,P)&&!(u[P]===void 0&&$!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof $=="object"&&$!=null&&typeof D=="object"&&D!=null&&Array.isArray($)===Array.isArray(D)?ci($,D,i,a+"/"+Bt(P),c):$!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&g.length==y.length))for(var I=0;I + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */tr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",P=500,$="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,de=1,Fe=2,_t=4,ve=8,st=16,ye=32,k=64,ne=128,be=256,vt=512,yt=30,pe="...",di=800,An=16,On=1,nr=2,lt=3,me=1/0,Ye=9007199254740991,Je=17976931348623157e292,tn=NaN,d=4294967295,m=d-1,b=d>>>1,C=[["ary",ne],["bind",de],["bindKey",Fe],["curry",ve],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",$e="[object AsyncFunction]",Ae="[object Boolean]",Sn="[object Date]",Mg="[object DOMException]",rr="[object Error]",ir="[object Function]",Co="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",Ng="[object Null]",wt="[object Object]",Lo="[object Promise]",Ug="[object Proxy]",bn="[object RegExp]",it="[object Set]",xn="[object String]",ur="[object Symbol]",Bg="[object Undefined]",Tn="[object WeakMap]",Wg="[object WeakSet]",In="[object ArrayBuffer]",nn="[object DataView]",gi="[object Float32Array]",_i="[object Float64Array]",vi="[object Int8Array]",yi="[object Int16Array]",wi="[object Int32Array]",mi="[object Uint8Array]",Ai="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Si="[object Uint32Array]",Hg=/\b__p \+= '';/g,Gg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fo=/&(?:amp|lt|gt|quot|#39);/g,$o=/[&<>"']/g,zg=RegExp(Fo.source),Kg=RegExp($o.source),Yg=/<%-([\s\S]+?)%>/g,Jg=/<%([\s\S]+?)%>/g,Po=/<%=([\s\S]+?)%>/g,Zg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jg=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ei=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Ei.source),bi=/^\s+/,Vg=/\s/,kg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,e_=/\{\n\/\* \[wrapped with (.+)\] \*/,t_=/,? & /,n_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r_=/[()=,{}\[\]\/\s]/,i_=/\\(\\)?/g,u_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Do=/\w*$/,o_=/^[-+]0x[0-9a-f]+$/i,f_=/^0b[01]+$/i,a_=/^\[object .+?Constructor\]$/,s_=/^0o[0-7]+$/i,l_=/^(?:0|[1-9]\d*)$/,c_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,h_=/['\n\r\u2028\u2029\\]/g,fr="\\ud800-\\udfff",p_="\\u0300-\\u036f",d_="\\ufe20-\\ufe2f",g_="\\u20d0-\\u20ff",Mo=p_+d_+g_,No="\\u2700-\\u27bf",Uo="a-z\\xdf-\\xf6\\xf8-\\xff",__="\\xac\\xb1\\xd7\\xf7",v_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y_="\\u2000-\\u206f",w_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",Ho=__+v_+y_+w_,xi="['’]",m_="["+fr+"]",Go="["+Ho+"]",ar="["+Mo+"]",qo="\\d+",A_="["+No+"]",zo="["+Uo+"]",Ko="[^"+fr+Ho+qo+No+Uo+Bo+"]",Ti="\\ud83c[\\udffb-\\udfff]",O_="(?:"+ar+"|"+Ti+")",Yo="[^"+fr+"]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Ri="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Bo+"]",Jo="\\u200d",Zo="(?:"+zo+"|"+Ko+")",S_="(?:"+rn+"|"+Ko+")",jo="(?:"+xi+"(?:d|ll|m|re|s|t|ve))?",Xo="(?:"+xi+"(?:D|LL|M|RE|S|T|VE))?",Qo=O_+"?",Vo="["+Wo+"]?",E_="(?:"+Jo+"(?:"+[Yo,Ii,Ri].join("|")+")"+Vo+Qo+")*",b_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ko=Vo+Qo+E_,T_="(?:"+[A_,Ii,Ri].join("|")+")"+ko,I_="(?:"+[Yo+ar+"?",ar,Ii,Ri,m_].join("|")+")",R_=RegExp(xi,"g"),C_=RegExp(ar,"g"),Ci=RegExp(Ti+"(?="+Ti+")|"+I_+ko,"g"),L_=RegExp([rn+"?"+zo+"+"+jo+"(?="+[Go,rn,"$"].join("|")+")",S_+"+"+Xo+"(?="+[Go,rn+Zo,"$"].join("|")+")",rn+"?"+Zo+"+"+jo,rn+"+"+Xo,x_,b_,qo,T_].join("|"),"g"),F_=RegExp("["+Jo+fr+Mo+Wo+"]"),$_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D_=-1,ie={};ie[gi]=ie[_i]=ie[vi]=ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Oi]=ie[Si]=!0,ie[W]=ie[re]=ie[In]=ie[Ae]=ie[nn]=ie[Sn]=ie[rr]=ie[ir]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[xn]=ie[Tn]=!1;var te={};te[W]=te[re]=te[In]=te[nn]=te[Ae]=te[Sn]=te[gi]=te[_i]=te[vi]=te[yi]=te[wi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[xn]=te[ur]=te[mi]=te[Ai]=te[Oi]=te[Si]=!0,te[rr]=te[ir]=te[Tn]=!1;var M_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},N_={"&":"&","<":"<",">":">",'"':""","'":"'"},U_={"&":"&","<":"<",">":">",""":'"',"'":"'"},B_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},W_=parseFloat,H_=parseInt,ef=typeof nt=="object"&&nt&&nt.Object===Object&&nt,G_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ef||G_||Function("return this")(),Li=u&&!u.nodeType&&u,Ht=Li&&!0&&r&&!r.nodeType&&r,tf=Ht&&Ht.exports===Li,Fi=tf&&ef.process,Ze=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||Fi&&Fi.binding&&Fi.binding("util")}catch{}}(),nf=Ze&&Ze.isArrayBuffer,rf=Ze&&Ze.isDate,uf=Ze&&Ze.isMap,of=Ze&&Ze.isRegExp,ff=Ze&&Ze.isSet,af=Ze&&Ze.isTypedArray;function Be(_,O,w){switch(w.length){case 0:return _.call(O);case 1:return _.call(O,w[0]);case 2:return _.call(O,w[0],w[1]);case 3:return _.call(O,w[0],w[1],w[2])}return _.apply(O,w)}function q_(_,O,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function $i(_,O,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function _f(_,O){for(var w=_.length;w--&&un(O,_[w],0)>-1;);return w}function V_(_,O){for(var w=_.length,L=0;w--;)_[w]===O&&++L;return L}var k_=Ni(M_),ev=Ni(N_);function tv(_){return"\\"+B_[_]}function nv(_,O){return _==null?i:_[O]}function on(_){return F_.test(_)}function rv(_){return $_.test(_)}function iv(_){for(var O,w=[];!(O=_.next()).done;)w.push(O.value);return w}function Hi(_){var O=-1,w=Array(_.size);return _.forEach(function(L,H){w[++O]=[H,L]}),w}function vf(_,O){return function(w){return _(O(w))}}function Lt(_,O){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Kv(e,t){var n=this.__data__,o=xr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Hv,mt.prototype.delete=Gv,mt.prototype.get=qv,mt.prototype.has=zv,mt.prototype.set=Kv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,v=t&z,S=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var E=G(e);if(E){if(h=j0(e),!p)return Pe(e,h)}else{var x=Te(e),R=x==ir||x==Co;if(Nt(e))return kf(e,p);if(x==wt||x==W||R&&!f){if(h=v||R?{}:ya(e),!p)return v?U0(e,f0(h,e)):N0(e,Rf(h,e))}else{if(!te[x])return f?e:{};h=X0(e,x,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Ja(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ka(e)&&e.forEach(function(B,J){h.set(J,Ve(B,t,n,J,e,l))});var U=S?v?pu:hu:v?Me:we,K=E?i:U(e);return je(K||e,function(B,J){K&&(J=B,B=e[J]),Dn(h,J,Ve(B,t,n,J,e,l))}),h}function a0(e){var t=we(e);return function(n){return Cf(n,e,t)}}function Cf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Lf(e,t,n){if(typeof e!="function")throw new Xe(y);return Gn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=sr,h=!0,p=e.length,v=[],S=t.length;if(!p)return v;n&&(t=ue(t,We(n))),o?(l=$i,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:q(o),o<0&&(o+=f),o=n>o?0:ja(o);n0&&n(p)?t>1?Se(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Zi=ua(),Pf=ua(!0);function ct(e,t){return e&&Zi(e,t,we)}function ji(e,t){return e&&Pf(e,t,we)}function Ir(e,t){return Rt(t,function(n){return xt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function c0(e,t){return e!=null&&V.call(e,t)}function h0(e,t){return e!=null&&t in ee(e)}function p0(e,t,n){return e>=xe(t,n)&&e<_e(t,n)}function Qi(e,t,n){for(var o=n?$i:sr,f=e[0].length,l=e.length,h=l,p=w(l),v=1/0,S=[];h--;){var E=e[h];h&&t&&(E=ue(E,We(t))),v=xe(E.length,v),p[h]=!n&&(t||f>=120&&E.length>=120)?new zt(h&&E):i}E=e[0];var x=-1,R=p[0];e:for(;++x-1;)p!==e&&wr.call(p,v,1),wr.call(e,v,1);return e}function Kf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?wr.call(e,f,1):uu(e,f)}}return e}function nu(e,t){return e+Or(bf()*(t-e+1))}function x0(e,t,n,o){for(var f=-1,l=_e(Ar((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function ru(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=Or(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return mu(Aa(e,t,Ne),e+"")}function T0(e){return If(vn(e))}function I0(e,t){var n=vn(e);return Br(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!Ge(h)&&(n?h<=t:h=c){var S=t?null:G0(e);if(S)return cr(S);h=!1,f=Rn,v=new zt}else v=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var Vf=wv||function(e){return Oe.clearTimeout(e)};function kf(e,t){if(t)return e.slice();var n=e.length,o=mf?mf(n):new e.constructor(n);return e.copy(o),o}function su(e){var t=new e.constructor(e.byteLength);return new vr(t).set(new vr(e)),t}function $0(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function P0(e){var t=new e.constructor(e.source,Do.exec(e));return t.lastIndex=e.lastIndex,t}function D0(e){return Pn?ee(Pn.call(e)):{}}function ea(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=Ge(e),h=t!==i,p=t===null,v=t===t,S=Ge(t);if(!p&&!S&&!l&&e>t||l&&h&&v&&!p&&!S||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!S&&e=p)return v;var S=n[o];return v*(S=="desc"?-1:1)}}return e.index-t.index}function na(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,S=_e(l-h,0),E=w(v+S),x=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function aa(e){return Et(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(y);if(f&&!h&&Nr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),E&&vp))return!1;var S=l.get(e),E=l.get(t);if(S&&E)return S==t&&E==e;var x=-1,R=!0,F=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++x1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(kg,`{ +/* [wrapped with `+t+`] */ +`)}function V0(e){return G(e)||jt(e)||!!(Sf&&e&&e[Sf])}function bt(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&l_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=di)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Br(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,$a(e,n)});function Pa(e){var t=s(e);return t.__chain__=!0,t}function sy(e,t){return t(e),e}function Wr(e,t){return t(e)}var ly=Et(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Ji(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Wr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function cy(){return Pa(this)}function hy(){return new Qe(this.value(),this.__chain__)}function py(){this.__values__===i&&(this.__values__=Za(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function dy(){return this}function gy(e){for(var t,n=this;n instanceof br;){var o=Ta(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function _y(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Wr,args:[Au],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Au)}function vy(){return Xf(this.__wrapped__,this.__actions__)}var yy=Fr(function(e,t,n){V.call(e,n)?++e[n]:Ot(e,n,1)});function wy(e,t,n){var o=G(e)?sf:s0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function my(e,t){var n=G(e)?Rt:$f;return n(e,N(t,3))}var Ay=fa(Ia),Oy=fa(Ra);function Sy(e,t){return Se(Hr(e,t),1)}function Ey(e,t){return Se(Hr(e,t),me)}function by(e,t,n){return n=n===i?1:q(n),Se(Hr(e,t),n)}function Da(e,t){var n=G(e)?je:$t;return n(e,N(t,3))}function Ma(e,t){var n=G(e)?z_:Ff;return n(e,N(t,3))}var xy=Fr(function(e,t,n){V.call(e,n)?e[n].push(t):Ot(e,n,[t])});function Ty(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?q(n):0;var f=e.length;return n<0&&(n=_e(f+n,0)),Yr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var Iy=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return $t(e,function(h){l[++o]=f?Be(t,h,n):Nn(h,t,n)}),l}),Ry=Fr(function(e,t,n){Ot(e,n,t)});function Hr(e,t){var n=G(e)?ue:Bf;return n(e,N(t,3))}function Cy(e,t,n,o){return e==null?[]:(G(t)||(t=t==null?[]:[t]),n=o?i:n,G(n)||(n=n==null?[]:[n]),qf(e,t,n))}var Ly=Fr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Fy(e,t,n){var o=G(e)?Pi:pf,f=arguments.length<3;return o(e,N(t,4),n,f,$t)}function $y(e,t,n){var o=G(e)?K_:pf,f=arguments.length<3;return o(e,N(t,4),n,f,Ff)}function Py(e,t){var n=G(e)?Rt:$f;return n(e,zr(N(t,3)))}function Dy(e){var t=G(e)?If:T0;return t(e)}function My(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=q(t);var o=G(e)?i0:I0;return o(e,t)}function Ny(e){var t=G(e)?u0:C0;return t(e)}function Uy(e){if(e==null)return 0;if(De(e))return Yr(e)?fn(e):e.length;var t=Te(e);return t==rt||t==it?e.size:ki(e).length}function By(e,t,n){var o=G(e)?Di:L0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Wy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),qf(e,Se(t,1),[])}),Gr=mv||function(){return Oe.Date.now()};function Hy(e,t){if(typeof t!="function")throw new Xe(y);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Na(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,St(e,ne,i,i,i,i,t)}function Ua(e,t){var n;if(typeof t!="function")throw new Xe(y);return e=q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Su=Y(function(e,t,n){var o=de;if(n.length){var f=Lt(n,gn(Su));o|=ye}return St(e,o,t,n,f)}),Ba=Y(function(e,t,n){var o=de|Fe;if(n.length){var f=Lt(n,gn(Ba));o|=ye}return St(t,o,e,n,f)});function Wa(e,t,n){t=n?i:t;var o=St(e,ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function Ha(e,t,n){t=n?i:t;var o=St(e,st,i,i,i,i,i,t);return o.placeholder=Ha.placeholder,o}function Ga(e,t,n){var o,f,l,h,p,v,S=0,E=!1,x=!1,R=!0;if(typeof e!="function")throw new Xe(y);t=tt(t)||0,oe(n)&&(E=!!n.leading,x="maxWait"in n,l=x?_e(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(ce){var at=o,It=f;return o=f=i,S=ce,h=e.apply(It,at),h}function U(ce){return S=ce,p=Gn(J,t),E?F(ce):h}function K(ce){var at=ce-v,It=ce-S,fs=t-at;return x?xe(fs,l-It):fs}function B(ce){var at=ce-v,It=ce-S;return v===i||at>=t||at<0||x&&It>=l}function J(){var ce=Gr();if(B(ce))return j(ce);p=Gn(J,K(ce))}function j(ce){return p=i,R&&o?F(ce):(o=f=i,h)}function qe(){p!==i&&Vf(p),S=0,o=v=f=p=i}function Le(){return p===i?h:j(Gr())}function ze(){var ce=Gr(),at=B(ce);if(o=arguments,f=this,v=ce,at){if(p===i)return U(v);if(x)return Vf(p),p=Gn(J,t),F(v)}return p===i&&(p=Gn(J,t)),h}return ze.cancel=qe,ze.flush=Le,ze}var Gy=Y(function(e,t){return Lf(e,1,t)}),qy=Y(function(e,t,n){return Lf(e,tt(t)||0,n)});function zy(e){return St(e,vt)}function qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(y);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(qr.Cache||At),n}qr.Cache=At;function zr(e){if(typeof e!="function")throw new Xe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ky(e){return Ua(2,e)}var Yy=F0(function(e,t){t=t.length==1&&G(t[0])?ue(t[0],We(N())):ue(Se(t,1),We(N()));var n=t.length;return Y(function(o){for(var f=-1,l=xe(o.length,n);++f=t}),jt=Mf(function(){return arguments}())?Mf:function(e){return ae(e)&&V.call(e,"callee")&&!Of.call(e,"callee")},G=w.isArray,fw=nf?We(nf):g0;function De(e){return e!=null&&Kr(e.length)&&!xt(e)}function le(e){return ae(e)&&De(e)}function aw(e){return e===!0||e===!1||ae(e)&&Re(e)==Ae}var Nt=Ov||Du,sw=rf?We(rf):_0;function lw(e){return ae(e)&&e.nodeType===1&&!qn(e)}function cw(e){if(e==null)return!0;if(De(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||_n(e)||jt(e)))return!e.length;var t=Te(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!ki(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function hw(e,t){return Un(e,t)}function pw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Un(e,t,i,n):!!o}function bu(e){if(!ae(e))return!1;var t=Re(e);return t==rr||t==Mg||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function dw(e){return typeof e=="number"&&Ef(e)}function xt(e){if(!oe(e))return!1;var t=Re(e);return t==ir||t==Co||t==$e||t==Ug}function za(e){return typeof e=="number"&&e==q(e)}function Kr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ka=uf?We(uf):y0;function gw(e,t){return e===t||Vi(e,t,gu(t))}function _w(e,t,n){return n=typeof n=="function"?n:i,Vi(e,t,gu(t),n)}function vw(e){return Ya(e)&&e!=+e}function yw(e){if(t1(e))throw new H(g);return Nf(e)}function ww(e){return e===null}function mw(e){return e==null}function Ya(e){return typeof e=="number"||ae(e)&&Re(e)==En}function qn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=yr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&dr.call(n)==_v}var xu=of?We(of):w0;function Aw(e){return za(e)&&e>=-Ye&&e<=Ye}var Ja=ff?We(ff):m0;function Yr(e){return typeof e=="string"||!G(e)&&ae(e)&&Re(e)==xn}function Ge(e){return typeof e=="symbol"||ae(e)&&Re(e)==ur}var _n=af?We(af):A0;function Ow(e){return e===i}function Sw(e){return ae(e)&&Te(e)==Tn}function Ew(e){return ae(e)&&Re(e)==Wg}var bw=Mr(eu),xw=Mr(function(e,t){return e<=t});function Za(e){if(!e)return[];if(De(e))return Yr(e)?ut(e):Pe(e);if(Cn&&e[Cn])return iv(e[Cn]());var t=Te(e),n=t==rt?Hi:t==it?cr:vn;return n(e)}function Tt(e){if(!e)return e===0?e:0;if(e=tt(e),e===me||e===-me){var t=e<0?-1:1;return t*Je}return e===e?e:0}function q(e){var t=Tt(e),n=t%1;return t===t?n?t-n:t:0}function ja(e){return e?Kt(q(e),0,d):0}function tt(e){if(typeof e=="number")return e;if(Ge(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=df(e);var n=f_.test(e);return n||s_.test(e)?H_(e.slice(2),n?2:8):o_.test(e)?tn:+e}function Xa(e){return ht(e,Me(e))}function Tw(e){return e?Kt(q(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var Iw=pn(function(e,t){if(Hn(t)||De(t)){ht(t,we(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),Qa=pn(function(e,t){ht(t,Me(t),e)}),Jr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),Rw=pn(function(e,t,n,o){ht(t,we(t),e,o)}),Cw=Et(Ji);function Lw(e,t){var n=hn(e);return t==null?n:Rf(n,t)}var Fw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,pu(e),n),o&&(n=Ve(n,D|z|M,q0));for(var f=t.length;f--;)uu(n,t[f]);return n});function Xw(e,t){return ka(e,zr(N(t)))}var Qw=Et(function(e,t){return e==null?{}:E0(e,t)});function ka(e,t){if(e==null)return{};var n=ue(pu(e),function(o){return[o]});return t=N(t),zf(e,n,function(o,f){return t(o,f[0])})}function Vw(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=bf();return xe(e+f*(t-e+W_("1e-"+((f+"").length-1))),t)}return nu(e,t)}var sm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?ns(t):t)});function ns(e){return Ru(Q(e).toLowerCase())}function rs(e){return e=Q(e),e&&e.replace(c_,k_).replace(C_,"")}function lm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(q(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function cm(e){return e=Q(e),e&&Kg.test(e)?e.replace($o,ev):e}function hm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Ei,"\\$&"):e}var pm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),dm=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),gm=oa("toLowerCase");function _m(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Dr(Or(f),n)+e+Dr(Ar(f),n)}function vm(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!xu(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Em=dn(function(e,t,n){return e+(n?" ":"")+Ru(t)});function bm(e,t,n){return e=Q(e),n=n==null?0:Kt(q(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function xm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Jr({},t,o,pa);var f=Jr({},t.imports,o.imports,pa),l=we(f),h=Wi(f,l),p,v,S=0,E=t.interpolate||or,x="__p += '",R=Gi((t.escape||or).source+"|"+E.source+"|"+(E===Po?u_:or).source+"|"+(t.evaluate||or).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D_+"]")+` +`;e.replace(R,function(B,J,j,qe,Le,ze){return j||(j=qe),x+=e.slice(S,ze).replace(h_,tv),J&&(p=!0,x+=`' + +__e(`+J+`) + +'`),Le&&(v=!0,x+=`'; +`+Le+`; +__p += '`),j&&(x+=`' + +((__t = (`+j+`)) == null ? '' : __t) + +'`),S=ze+B.length,B}),x+=`'; +`;var U=V.call(t,"variable")&&t.variable;if(!U)x=`with (obj) { +`+x+` +} +`;else if(r_.test(U))throw new H(A);x=(v?x.replace(Hg,""):x).replace(Gg,"$1").replace(qg,"$1;"),x="function("+(U||"obj")+`) { +`+(U?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+x+`return __p +}`;var K=us(function(){return X(l,F+"return "+x).apply(i,h)});if(K.source=x,bu(K))throw K;return K}function Tm(e){return Q(e).toLowerCase()}function Im(e){return Q(e).toUpperCase()}function Rm(e,t,n){if(e=Q(e),e&&(n||t===i))return df(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=gf(o,f),h=_f(o,f)+1;return Mt(o,l,h).join("")}function Cm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,yf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=_f(o,ut(t))+1;return Mt(o,0,f).join("")}function Lm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(bi,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=gf(o,ut(t));return Mt(o,f).join("")}function Fm(e,t){var n=yt,o=pe;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?q(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),xu(f)){if(e.slice(p).search(f)){var S,E=v;for(f.global||(f=Gi(f.source,Q(Do.exec(f))+"g")),f.lastIndex=0;S=f.exec(E);)var x=S.index;v=v.slice(0,x===i?p:x)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function $m(e){return e=Q(e),e&&zg.test(e)?e.replace(Fo,av):e}var Pm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ru=oa("toUpperCase");function is(e,t,n){return e=Q(e),t=n?i:t,t===i?rv(e)?cv(e):Z_(e):e.match(t)||[]}var us=Y(function(e,t){try{return Be(e,i,t)}catch(n){return bu(n)?n:new H(n)}}),Dm=Et(function(e,t){return je(t,function(n){n=pt(n),Ot(e,n,Su(e[n],e))}),e});function Mm(e){var t=e==null?0:e.length,n=N();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(y);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=d,o=xe(e,d);t=N(t),e-=d;for(var f=Bi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(d)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Z,S=p[0],E=v||G(h),x=function(J){var j=f.apply(s,Ct([J],p));return o&&R?j[0]:j};E&&n&&typeof S=="function"&&S.length!=1&&(v=E=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=v&&!F;if(!l&&E){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Wr,args:[x],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(x),U?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=hr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(G(l)?l:[],f)}return this[n](function(h){return t.apply(G(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[$r(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=$v,Z.prototype.reverse=Pv,Z.prototype.value=Dv,s.prototype.at=ly,s.prototype.chain=cy,s.prototype.commit=hy,s.prototype.next=py,s.prototype.plant=gy,s.prototype.reverse=_y,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=vy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=dy),s},an=hv();Ht?((Ht.exports=an)._=an,Li._=an):Oe._=an}).call(nt)}(tr,tr.exports);var wg=tr.exports;const mg=zn(wg);class Ag{constructor(){Ee(this,"_eventFuncID",{id:"__reload__"});Ee(this,"_url");Ee(this,"_method");Ee(this,"_vars");Ee(this,"_locals");Ee(this,"_loadPortalBody",!1);Ee(this,"_form",{});Ee(this,"_popstate");Ee(this,"_pushState");Ee(this,"_location");Ee(this,"_updateRootTemplate");Ee(this,"_buildPushStateResult");Ee(this,"parent");Ee(this,"lodash",mg);Ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);Ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const u=this.buildPushStateArgs();u&&window.history.pushState(...u)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Oo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=hi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const g=window.__goplaid.portals[c];g&&g.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:g}=window.__goplaid.portals[c.name];g&&g(c.body)}return a.pushState?hi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=window.location.href;this._buildPushStateResult=Xd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return yg.applyPatch(u,i)}encodeObjectToQuery(u,i){return Vd(u,i)}isRawQuerySubset(u,i,a){return eg(u,i,a)}}function hi(){return new Ag}const Og={mounted:(r,u,i)=>{var P,$;let a=r;i.component&&(a=($=(P=i.component)==null?void 0:P.proxy)==null?void 0:$.$el);const c=u.arg||"scroll",y=gt.parse(location.hash)[c];let A="";Array.isArray(y)?A=y[0]||"":A=y||"";const I=A.split("_");I.length>=2&&(a.scrollTop=parseInt(I[0]),a.scrollLeft=parseInt(I[1])),a.addEventListener("scroll",qu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Sg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},Eg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},bg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},xg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Tg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Ig={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Rg={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Cg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}};var To={exports:{}};function pi(){}pi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a{u.value=ri(A,i)};T.provide("updateRootTemplate",a);const c=T.reactive({__emitter:new Lg}),g=()=>hi().updateRootTemplate(a).vars(c);T.provide("plaid",g),T.provide("vars",c);const y=T.ref(!1);return T.provide("isFetching",y),T.onMounted(()=>{a(r.initialTemplate),window.addEventListener("fetchStart",()=>{y.value=!0}),window.addEventListener("fetchEnd",()=>{y.value=!1}),window.addEventListener("popstate",A=>{g().onpopstate(A)})}),{current:u}},template:`
- `}),ic={install(e){e.component("GoPlaidScope",Dr),e.component("GoPlaidPortal",Is),e.component("GoPlaidListener",Fs),e.component("ParentSizeObserver",Cs),e.directive("keep-scroll",Ks),e.directive("assign",Vs),e.directive("on-created",Qs),e.directive("before-mount",Ys),e.directive("on-mounted",Ws),e.directive("before-update",Zs),e.directive("on-updated",Xs),e.directive("before-unmount",ec),e.directive("on-unmounted",tc),e.component("GlobalEvents",xt)}};function oc(e){const t=l.createApp(nc,{initialTemplate:e});return t.use(ic),t}const Ft=document.getElementById("app");if(!Ft)throw new Error("#app required");const ac={},Ct=oc(Ft.innerHTML);for(const e of window.__goplaidVueComponentRegisters||[])e(Ct,ac);Ct.mount("#app")}); + `}),$g={install(r){r.component("GoPlaidScope",sl),r.component("GoPlaidPortal",tg),r.component("GoPlaidListener",ng),r.component("ParentSizeObserver",rg),r.directive("keep-scroll",Og),r.directive("assign",Sg),r.directive("on-created",Eg),r.directive("before-mount",bg),r.directive("on-mounted",xg),r.directive("before-update",Tg),r.directive("on-updated",Ig),r.directive("before-unmount",Rg),r.directive("on-unmounted",Cg),r.component("GlobalEvents",cs)}};function Pg(r){const u=T.createApp(Fg,{initialTemplate:r});return u.use($g),u}const Io=document.getElementById("app");if(!Io)throw new Error("#app required");const Dg={},Ro=Pg(Io.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Ro,Dg);Ro.mount("#app")}); diff --git a/corejs/src/__tests__/builder.spec.ts b/corejs/src/__tests__/builder.spec.ts index 1bfcfc8..31ef7a8 100644 --- a/corejs/src/__tests__/builder.spec.ts +++ b/corejs/src/__tests__/builder.spec.ts @@ -254,4 +254,31 @@ describe('builder', () => { const [, , url] = b.buildPushStateArgs() expect(url).toEqual('/page1?order_bys=Name|ASC,Age|DESC') }) + + it('lodash', () => { + const obj1 = { + name: 'Alice', + age: 25, + version: '1.0', + details: { + city: 'New York' + } + } + + const obj2 = { + name: 'Alice', + details: { + city: 'New York' + }, + age: 25, + version: '2.0' + } + expect(plaid().lodash.isEqual(obj1, obj2)).toEqual(false) + expect( + plaid().lodash.isEqual( + plaid().lodash.omit(obj1, 'version'), + plaid().lodash.omit(obj2, 'version') + ) + ).toEqual(true) + }) }) diff --git a/corejs/src/builder.ts b/corejs/src/builder.ts index 77cfb35..c78cb48 100644 --- a/corejs/src/builder.ts +++ b/corejs/src/builder.ts @@ -2,6 +2,7 @@ import type { EventFuncID, EventResponse, Location, Queries, QueryValue } from ' import { buildPushState, objectToFormData, encodeObjectToQuery, isRawQuerySubset } from '@/utils' import querystring from 'query-string' import jsonpatch from 'fast-json-patch' +import lodash from 'lodash' declare let window: any @@ -19,6 +20,7 @@ export class Builder { _updateRootTemplate?: any _buildPushStateResult?: any parent?: Builder + lodash: any = lodash readonly ignoreErrors = [ 'Failed to fetch', // Chrome From 2209bd7df347d1d72eea2a27c7a94f91e5505c94 Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:40:16 +0800 Subject: [PATCH 05/21] add TestHelloButtonPB --- examples/hello-button_test.go | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/hello-button_test.go diff --git a/examples/hello-button_test.go b/examples/hello-button_test.go new file mode 100644 index 0000000..372a229 --- /dev/null +++ b/examples/hello-button_test.go @@ -0,0 +1,30 @@ +package examples_test + +import ( + "net/http" + "net/http/httptest" + "testing" + + "github.com/qor5/web/v3/examples" + "github.com/qor5/web/v3/multipartestutils" +) + +func TestHelloButtonPB(t *testing.T) { + cases := []multipartestutils.TestCase{ + { + Name: "index", + ReqFunc: func() *http.Request { + return httptest.NewRequest("GET", "/", nil) + }, + ExpectPageBodyContainsInOrder: []string{ + ">Hello", + }, + }, + } + + for _, c := range cases { + t.Run(c.Name, func(t *testing.T) { + multipartestutils.RunCase(t, c, examples.HelloButtonPB) + }) + } +} From 4d5944dd2edbe6cf7124cbea3440601c133d322d Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Tue, 20 Aug 2024 18:09:43 +0800 Subject: [PATCH 06/21] add unexpect ignore test file --- .gitignore | 2 +- corejs/src/__tests__/lifecycle.spec.ts | 68 ++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 corejs/src/__tests__/lifecycle.spec.ts diff --git a/.gitignore b/.gitignore index 0654720..69edf05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .idea .vscode -__* +./__* diff --git a/corejs/src/__tests__/lifecycle.spec.ts b/corejs/src/__tests__/lifecycle.spec.ts new file mode 100644 index 0000000..929f450 --- /dev/null +++ b/corejs/src/__tests__/lifecycle.spec.ts @@ -0,0 +1,68 @@ +import { describe, expect, it } from 'vitest' +import { nextTick } from 'vue' +import { mountTemplate } from './testutils' + +describe('lifecycle', () => { + it('v-on-mounted', async () => { + const template = ` + + +

{{locals.value}}

+

{{locals.equalsWindow}}

+

{{vars.hello}}

+
+` + const wrapper = mountTemplate(template) + await nextTick() + console.log(wrapper.html()) + expect(wrapper.find('h1').text()).toEqual(`123`) + expect(wrapper.find('h2').text()).toEqual(`true`) + expect(wrapper.find('h3').text()).toEqual(`123`) + }) + it('watch', async () => { + const wrapper = mountTemplate(` +

{{vars.hello}}

+

{{vars.hello2}}

+

{{vars.hello3}}

+
+ + `) + await nextTick() + console.log(wrapper.html()) + const btn: any = wrapper.find('#btn') + await btn.trigger('click') + expect(wrapper.find('h1').text()).toEqual('123') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h3').text()).toEqual('123') + }) + it('ref', async () => { + const wrapper = mountTemplate(` +
+

{{vars.hello}}

+
+ `) + await nextTick() + console.log(wrapper.html()) + expect(wrapper.find('h1').text()).toEqual('x') + }) +}) From c994f9dd2a4e1c6b94138f2e46f93ad9589b1891 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 21 Aug 2024 13:07:00 +0800 Subject: [PATCH 07/21] feat: To distinguish between page loads and regular AJAX requests, an isReloadPage parameter was added. --- corejs/dist/index.js | 42 +++++----- corejs/package.json | 2 + corejs/pnpm-lock.yaml | 147 +++++++++++++++++++++++++++++---- corejs/src/app.ts | 21 ++++- corejs/src/fetchInterceptor.ts | 67 +++++++++++++++ 5 files changed, 243 insertions(+), 36 deletions(-) create mode 100644 corejs/src/fetchInterceptor.ts diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 861d365..7e7d202 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,9 +1,9 @@ -var mA=Object.defineProperty;var AA=(T,Ie,Xt)=>Ie in T?mA(T,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):T[Ie]=Xt;var Ee=(T,Ie,Xt)=>AA(T,typeof Ie!="symbol"?Ie+"":Ie,Xt);(function(T,Ie){typeof exports=="object"&&typeof module<"u"?Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(T=typeof globalThis<"u"?globalThis:T||self,Ie(T.Vue))})(this,function(T){"use strict";/*! +var EA=Object.defineProperty;var bA=(x,Ie,Xt)=>Ie in x?EA(x,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):x[Ie]=Xt;var Ee=(x,Ie,Xt)=>bA(x,typeof Ie!="symbol"?Ie+"":Ie,Xt);(function(x,Ie){typeof exports=="object"&&typeof module<"u"?Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(x=typeof globalThis<"u"?globalThis:x||self,Ie(x.Vue))})(this,function(x){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Ie;function Xt(){return Ie??(Ie=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const as=/^on(\w+?)((?:Once|Capture|Passive)*)$/,ss=/[OCP]/g;function ls(r){return r?Xt()?r.includes("Capture"):r.replace(ss,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const cs=T.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=T.ref(!0);return T.onActivated(()=>{a.value=!0}),T.onDeactivated(()=>{a.value=!1}),T.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const g=u[c],y=Array.isArray(g)?g:[g],A=c.match(as);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,I,P]=A;I=I.toLowerCase();const $=y.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,I))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=ls(P);$.forEach(z=>{window[r.target].addEventListener(I,z,D)}),i[c]=[$,I,D]})}),T.onBeforeUnmount(()=>{for(const c in i){const[g,y,A]=i[c];g.forEach(I=>{window[r.target].removeEventListener(y,I,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function hs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=hs,ps=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ds=ps,gs=ds,_s=typeof self=="object"&&self&&self.Object===Object&&self,vs=gs||_s||Function("return this")(),yn=vs,ys=yn,ws=function(){return ys.Date.now()},ms=ws,As=/\s/;function Os(r){for(var u=r.length;u--&&As.test(r.charAt(u)););return u}var Ss=Os,Es=Ss,bs=/^\s+/;function xs(r){return r&&r.slice(0,Es(r)+1).replace(bs,"")}var Ts=xs,Is=yn,Rs=Is.Symbol,Zr=Rs,Mu=Zr,Nu=Object.prototype,Cs=Nu.hasOwnProperty,Ls=Nu.toString,wn=Mu?Mu.toStringTag:void 0;function Fs(r){var u=Cs.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=Ls.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var $s=Fs,Ps=Object.prototype,Ds=Ps.toString;function Ms(r){return Ds.call(r)}var Ns=Ms,Uu=Zr,Us=$s,Bs=Ns,Ws="[object Null]",Hs="[object Undefined]",Bu=Uu?Uu.toStringTag:void 0;function Gs(r){return r==null?r===void 0?Hs:Ws:Bu&&Bu in Object(r)?Us(r):Bs(r)}var jr=Gs;function qs(r){return r!=null&&typeof r=="object"}var Yn=qs,zs=jr,Ks=Yn,Ys="[object Symbol]";function Js(r){return typeof r=="symbol"||Ks(r)&&zs(r)==Ys}var Zs=Js,js=Ts,Wu=Kn,Xs=Zs,Hu=NaN,Qs=/^[-+]0x[0-9a-f]+$/i,Vs=/^0b[01]+$/i,ks=/^0o[0-7]+$/i,el=parseInt;function tl(r){if(typeof r=="number")return r;if(Xs(r))return Hu;if(Wu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Wu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=js(r);var i=Vs.test(r);return i||ks.test(r)?el(r.slice(2),i?2:8):Qs.test(r)?Hu:+r}var nl=tl,rl=Kn,Xr=ms,Gu=nl,il="Expected a function",ul=Math.max,ol=Math.min;function fl(r,u,i){var a,c,g,y,A,I,P=0,$=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(il);u=Gu(u)||0,rl(i)&&($=!!i.leading,D="maxWait"in i,g=D?ul(Gu(i.maxWait)||0,u):g,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,be=c;return a=c=void 0,P=k,y=r.apply(be,ne),y}function se(k){return P=k,A=setTimeout(Fe,u),$?M(k):y}function Ke(k){var ne=k-I,be=k-P,vt=u-ne;return D?ol(vt,g-be):vt}function de(k){var ne=k-I,be=k-P;return I===void 0||ne>=u||ne<0||D&&be>=g}function Fe(){var k=Xr();if(de(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,y)}function ve(){A!==void 0&&clearTimeout(A),P=0,a=I=c=A=void 0}function st(){return A===void 0?y:_t(Xr())}function ye(){var k=Xr(),ne=de(k);if(a=arguments,c=this,I=k,ne){if(A===void 0)return se(I);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(I)}return A===void 0&&(A=setTimeout(Fe,u)),y}return ye.cancel=ve,ye.flush=st,ye}var al=fl;const qu=zn(al),sl=T.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const g=T.reactive({...c});let y=i.formInit;Array.isArray(y)&&(y=Object.assign({},...y));const A=T.reactive({...y}),I=T.inject("vars"),P=T.inject("plaid");return T.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const $=i.useDebounce,D=qu(z=>{a("change-debounced",z)},$);console.log("watched"),T.watch(g,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),T.watch(A,(z,M)=>{D({locals:g,form:z,oldLocals:g,oldForm:M})})}},0)}),($,D)=>T.renderSlot($.$slots,"default",{locals:g,form:A,plaid:T.unref(P),vars:T.unref(I)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(d){var m=0;return function(){return m>>0)+"_",W=0;return m}),g("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(d,m){for(var b=0;b(i[a]=!0,i),{}):void 0}const hs=x.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=x.ref(!0);return x.onActivated(()=>{a.value=!0}),x.onDeactivated(()=>{a.value=!1}),x.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ss);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,I,$]=A;I=I.toLowerCase();const F=v.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,I))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=cs($);F.forEach(z=>{window[r.target].addEventListener(I,z,D)}),i[c]=[F,I,D]})}),x.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(I=>{window[r.target].removeEventListener(v,I,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ps(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=ps,ds=typeof nt=="object"&&nt&&nt.Object===Object&&nt,gs=ds,_s=gs,vs=typeof self=="object"&&self&&self.Object===Object&&self,ys=_s||vs||Function("return this")(),yn=ys,ws=yn,ms=function(){return ws.Date.now()},As=ms,Os=/\s/;function Ss(r){for(var u=r.length;u--&&Os.test(r.charAt(u)););return u}var Es=Ss,bs=Es,xs=/^\s+/;function Ts(r){return r&&r.slice(0,bs(r)+1).replace(xs,"")}var Is=Ts,Rs=yn,Cs=Rs.Symbol,jr=Cs,Uu=jr,Nu=Object.prototype,Ls=Nu.hasOwnProperty,Fs=Nu.toString,wn=Uu?Uu.toStringTag:void 0;function $s(r){var u=Ls.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=Fs.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var Ps=$s,Ds=Object.prototype,Ms=Ds.toString;function Us(r){return Ms.call(r)}var Ns=Us,Bu=jr,Bs=Ps,Ws=Ns,Hs="[object Null]",Gs="[object Undefined]",Wu=Bu?Bu.toStringTag:void 0;function qs(r){return r==null?r===void 0?Gs:Hs:Wu&&Wu in Object(r)?Bs(r):Ws(r)}var Xr=qs;function zs(r){return r!=null&&typeof r=="object"}var Yn=zs,Ks=Xr,Ys=Yn,Js="[object Symbol]";function Zs(r){return typeof r=="symbol"||Ys(r)&&Ks(r)==Js}var js=Zs,Xs=Is,Hu=Kn,Qs=js,Gu=NaN,Vs=/^[-+]0x[0-9a-f]+$/i,ks=/^0b[01]+$/i,el=/^0o[0-7]+$/i,tl=parseInt;function nl(r){if(typeof r=="number")return r;if(Qs(r))return Gu;if(Hu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Hu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=Xs(r);var i=ks.test(r);return i||el.test(r)?tl(r.slice(2),i?2:8):Vs.test(r)?Gu:+r}var rl=nl,il=Kn,Qr=As,qu=rl,ul="Expected a function",ol=Math.max,fl=Math.min;function al(r,u,i){var a,c,d,v,A,I,$=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ul);u=qu(u)||0,il(i)&&(F=!!i.leading,D="maxWait"in i,d=D?ol(qu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,be=c;return a=c=void 0,$=k,v=r.apply(be,ne),v}function se(k){return $=k,A=setTimeout(Fe,u),F?M(k):v}function Ke(k){var ne=k-I,be=k-$,vt=u-ne;return D?fl(vt,d-be):vt}function de(k){var ne=k-I,be=k-$;return I===void 0||ne>=u||ne<0||D&&be>=d}function Fe(){var k=Qr();if(de(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,v)}function ve(){A!==void 0&&clearTimeout(A),$=0,a=I=c=A=void 0}function st(){return A===void 0?v:_t(Qr())}function ye(){var k=Qr(),ne=de(k);if(a=arguments,c=this,I=k,ne){if(A===void 0)return se(I);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(I)}return A===void 0&&(A=setTimeout(Fe,u)),v}return ye.cancel=ve,ye.flush=st,ye}var sl=al;const zu=zn(sl),ll=x.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=x.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=x.reactive({...v}),I=x.inject("vars"),$=x.inject("plaid");return x.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=zu(z=>{a("change-debounced",z)},F);console.log("watched"),x.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),x.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(F,D)=>x.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:x.unref($),vars:x.unref(I)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var b=0;br==null,gl=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),Vr=Symbol("encodeFragmentIdentifier");function _l(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[",c,"]"].join("")]:[...i,[he(u,r),"[",he(c,r),"]=",he(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[]"].join("")]:[...i,[he(u,r),"[]=",he(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),":list="].join("")]:[...i,[he(u,r),":list=",he(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[he(i,r),u,he(c,r)].join("")]:[[a,he(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,he(u,r)]:[...i,[he(u,r),"=",he(a,r)].join("")]}}function vl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const g=typeof a=="string"&&a.includes(r.arrayFormatSeparator),y=typeof a=="string"&&!g&&dt(a,r).includes(r.arrayFormatSeparator);a=y?dt(a,r):a;const A=g||y?a.split(r.arrayFormatSeparator).map(I=>dt(I,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const g=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!g){c[i]=a&&dt(a,r);return}const y=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=y;return}c[i]=[...c[i],...y]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Zu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function he(r,u){return u.encode?u.strict?gl(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?hl(r):r}function ju(r){return Array.isArray(r)?r.sort():typeof r=="object"?ju(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function Xu(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function yl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function Qu(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function kr(r){r=Xu(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ei(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Zu(u.arrayFormatSeparator);const i=vl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const g=u.decode?c.replaceAll("+"," "):c;let[y,A]=Ju(g,"=");y===void 0&&(y=g),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(y,u),A,a)}for(const[c,g]of Object.entries(a))if(typeof g=="object"&&g!==null)for(const[y,A]of Object.entries(g))g[y]=Qu(A,u);else a[c]=Qu(g,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,g)=>{const y=a[g];return c[g]=y&&typeof y=="object"&&!Array.isArray(y)?ju(y):y,c},Object.create(null))}function Vu(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Zu(u.arrayFormatSeparator);const i=y=>u.skipNull&&dl(r[y])||u.skipEmptyString&&r[y]==="",a=_l(u),c={};for(const[y,A]of Object.entries(r))i(y)||(c[y]=A);const g=Object.keys(c);return u.sort!==!1&&g.sort(u.sort),g.map(y=>{const A=r[y];return A===void 0?"":A===null?he(y,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?he(y,u)+"[]":A.reduce(a(y),[]).join("&"):he(y,u)+"="+he(A,u)}).filter(y=>y.length>0).join("&")}function ku(r,u){var c;u={decode:!0,...u};let[i,a]=Ju(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ei(kr(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function eo(r,u){u={encode:!0,strict:!0,[Vr]:!0,...u};const i=Xu(r.url).split("?")[0]||"",a=kr(r.url),c={...ei(a,{sort:!1}),...r.query};let g=Vu(c,u);g&&(g=`?${g}`);let y=yl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,y=u[Vr]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${g}${y}`}function to(r,u,i){i={parseFragmentIdentifier:!0,[Vr]:!1,...i};const{url:a,query:c,fragmentIdentifier:g}=ku(r,i);return eo({url:a,query:pl(c,u),fragmentIdentifier:g},i)}function wl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,g)=>!u(c,g);return to(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:wl,extract:kr,parse:ei,parseUrl:ku,pick:to,stringify:Vu,stringifyUrl:eo},Symbol.toStringTag,{value:"Module"}));function ml(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?oo(A,u-1,i,a,c):Ul(c,A):a||(c[c.length]=A)}return c}var Wl=oo;function Hl(r){return r}var fo=Hl;function Gl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var ql=Gl,zl=ql,ao=Math.max;function Kl(r,u,i){return u=ao(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,g=ao(a.length-u,0),y=Array(g);++c0){if(++u>=Mc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Wc=Bc,Hc=Dc,Gc=Wc,qc=Gc(Hc),zc=qc,Kc=fo,Yc=Yl,Jc=zc;function Zc(r,u){return Jc(Yc(r,u,Kc),r+"")}var ho=Zc,jc=Jn,Xc=jc(Object,"create"),Zn=Xc,po=Zn;function Qc(){this.__data__=po?po(null):{},this.size=0}var Vc=Qc;function kc(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var eh=kc,th=Zn,nh="__lodash_hash_undefined__",rh=Object.prototype,ih=rh.hasOwnProperty;function uh(r){var u=this.__data__;if(th){var i=u[r];return i===nh?void 0:i}return ih.call(u,r)?u[r]:void 0}var oh=uh,fh=Zn,ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;return fh?u[r]!==void 0:sh.call(u,r)}var ch=lh,hh=Zn,ph="__lodash_hash_undefined__";function dh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=hh&&u===void 0?ph:u,this}var gh=dh,_h=Vc,vh=eh,yh=oh,wh=ch,mh=gh;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Uh=Nh,Bh=jn;function Wh(r,u){var i=this.__data__,a=Bh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Hh=Wh,Gh=Sh,qh=Fh,zh=Dh,Kh=Uh,Yh=Hh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var vo=zp;function Kp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=cd){var P=u?null:sd(r);if(P)return ld(P);y=!1,c=ad,I=new ud}else I=u?[]:A;e:for(;++a-1&&r%1==0&&r<=dd}var _d=gd,vd=so,yd=_d;function wd(r){return r!=null&&yd(r.length)&&!vd(r)}var md=wd,Ad=md,Od=Yn;function Sd(r){return Od(r)&&Ad(r)}var Ao=Sd,Ed=Wl,bd=ho,xd=pd,Td=Ao,Id=bd(function(r){return xd(Ed(r,1,Td,!0))}),Rd=Id;const Cd=zn(Rd);function Ld(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Hd&&(g=Wd,y=!1,u=new Dd(u));e:for(;++c0&&(A=`?${A}`);let $=a.url+A;return a.fragmentIdentifier&&($=$+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:$},"",$],eventURL:`${a.url}?${gt.stringify(I,P)}`}}function Qd(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Cd(c,a);return}if(i.remove){const g=jd(c,...a);g.length===0?delete r[u]:r[u]=g}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Oo(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const g=r[c],y=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof g=="object"&&!(g instanceof File)&&!(g instanceof Date)?Oo(g,u,y):Vn(u,y,g)}),u}function Vd(r,u){if(u.length===0)return"";const i=g=>Object.keys(g).sort().map(y=>{const A=encodeURIComponent(g[y]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=g=>g.map(y=>typeof y=="object"&&!Array.isArray(y)?i(y):encodeURIComponent(y)).join(","),c=[];return u.forEach(g=>{const y=r[g.json_name];if(y===void 0)return;if(g.encoder){g.encoder({value:y,queries:c,tag:g});return}const A=encodeURIComponent(g.name);if(!(!y&&g.omitempty))if(y===null)c.push(`${A}=`);else if(Array.isArray(y)){if(g.omitempty&&r[g.json_name].length===0)return;c.push(`${A}=${a(r[g.json_name])}`)}else typeof y=="object"?c.push(`${A}=${i(y)}`):c.push(`${A}=${encodeURIComponent(y)}`)}),c.join("&")}function kd(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],g={};a.forEach(y=>{g[y]=(g[y]||0)+1});for(const y of c){if(!g[y]||g[y]===0)return!1;g[y]--}}return!0}function eg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return kd(a,c)}const tg=T.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=T.ref(),i=r,a=T.shallowRef(null),c=T.ref(0),g=I=>{a.value=ri(I,i.form,i.locals,u)},y=T.useSlots(),A=()=>{if(y.default){a.value=ri('',i.locals,u);return}const I=i.loader;I&&I.loadPortalBody(!0).form(i.form).go().then(P=>{P&&g(P.body)})};return T.onMounted(()=>{const I=i.portalName;I&&(window.__goplaid.portals[I]={updatePortalTemplate:g,reload:A}),A()}),T.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const I=parseInt(i.autoReloadInterval+"");if(I==0)return;c.value=setInterval(()=>{A()},I)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),T.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(I,P)=>r.visible?(T.openBlock(),T.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(T.openBlock(),T.createBlock(T.resolveDynamicComponent(a.value),{key:0},{default:T.withCtx(()=>[T.renderSlot(I.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):T.createCommentVNode("",!0)],512)):T.createCommentVNode("",!0)}}),ng=T.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=T.inject("vars").__emitter,a=T.useAttrs(),c={};return T.onMounted(()=>{Object.keys(a).forEach(g=>{if(g.startsWith("on")){const y=a[g],A=g.slice(2);c[A]=y,i.on(A,y)}})}),T.onUnmounted(()=>{Object.keys(c).forEach(g=>{i.off(g,c[g])})}),(g,y)=>T.createCommentVNode("",!0)}}),rg=T.defineComponent({__name:"parent-size-observer",setup(r){const u=T.ref({width:0,height:0});function i(c){const g=c.getBoundingClientRect();u.value.width=g.width,u.value.height=g.height}let a=null;return T.onMounted(()=>{var y;const c=T.getCurrentInstance(),g=(y=c==null?void 0:c.proxy)==null?void 0:y.$el.parentElement;g&&(i(g),a=new ResizeObserver(()=>{i(g)}),a.observe(g))}),T.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,g)=>T.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},Je.prototype[Symbol.iterator]=function(){return this.entries()},Je.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,_l=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),kr=Symbol("encodeFragmentIdentifier");function vl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[",c,"]"].join("")]:[...i,[he(u,r),"[",he(c,r),"]=",he(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[]"].join("")]:[...i,[he(u,r),"[]=",he(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),":list="].join("")]:[...i,[he(u,r),":list=",he(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[he(i,r),u,he(c,r)].join("")]:[[a,he(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,he(u,r)]:[...i,[he(u,r),"=",he(a,r)].join("")]}}function yl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(I=>dt(I,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ju(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function he(r,u){return u.encode?u.strict?_l(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?pl(r):r}function Xu(r){return Array.isArray(r)?r.sort():typeof r=="object"?Xu(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function Qu(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function wl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function Vu(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ei(r){r=Qu(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ti(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ju(u.arrayFormatSeparator);const i=yl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Zu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=Vu(A,u);else a[c]=Vu(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?Xu(v):v,c},Object.create(null))}function ku(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ju(u.arrayFormatSeparator);const i=v=>u.skipNull&&gl(r[v])||u.skipEmptyString&&r[v]==="",a=vl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?he(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?he(v,u)+"[]":A.reduce(a(v),[]).join("&"):he(v,u)+"="+he(A,u)}).filter(v=>v.length>0).join("&")}function eo(r,u){var c;u={decode:!0,...u};let[i,a]=Zu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ti(ei(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function to(r,u){u={encode:!0,strict:!0,[kr]:!0,...u};const i=Qu(r.url).split("?")[0]||"",a=ei(r.url),c={...ti(a,{sort:!1}),...r.query};let d=ku(c,u);d&&(d=`?${d}`);let v=wl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[kr]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function no(r,u,i){i={parseFragmentIdentifier:!0,[kr]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=eo(r,i);return to({url:a,query:dl(c,u),fragmentIdentifier:d},i)}function ml(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return no(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:ml,extract:ei,parse:ti,parseUrl:eo,pick:no,stringify:ku,stringifyUrl:to},Symbol.toStringTag,{value:"Module"}));function Al(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?fo(A,u-1,i,a,c):Bl(c,A):a||(c[c.length]=A)}return c}var Hl=fo;function Gl(r){return r}var ao=Gl;function ql(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var zl=ql,Kl=zl,so=Math.max;function Yl(r,u,i){return u=so(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=so(a.length-u,0),v=Array(d);++c0){if(++u>=Uc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Hc=Wc,Gc=Mc,qc=Hc,zc=qc(Gc),Kc=zc,Yc=ao,Jc=Jl,Zc=Kc;function jc(r,u){return Zc(Jc(r,u,Yc),r+"")}var po=jc,Xc=Jn,Qc=Xc(Object,"create"),Zn=Qc,go=Zn;function Vc(){this.__data__=go?go(null):{},this.size=0}var kc=Vc;function eh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var th=eh,nh=Zn,rh="__lodash_hash_undefined__",ih=Object.prototype,uh=ih.hasOwnProperty;function oh(r){var u=this.__data__;if(nh){var i=u[r];return i===rh?void 0:i}return uh.call(u,r)?u[r]:void 0}var fh=oh,ah=Zn,sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;return ah?u[r]!==void 0:lh.call(u,r)}var hh=ch,ph=Zn,dh="__lodash_hash_undefined__";function gh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=ph&&u===void 0?dh:u,this}var _h=gh,vh=kc,yh=th,wh=fh,mh=hh,Ah=_h;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Bh=Nh,Wh=jn;function Hh(r,u){var i=this.__data__,a=Wh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Gh=Hh,qh=Eh,zh=$h,Kh=Mh,Yh=Bh,Jh=Gh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var yo=Kp;function Yp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=hd){var $=u?null:ld(r);if($)return cd($);v=!1,c=sd,I=new od}else I=u?[]:A;e:for(;++a-1&&r%1==0&&r<=gd}var vd=_d,yd=lo,wd=vd;function md(r){return r!=null&&wd(r.length)&&!yd(r)}var Ad=md,Od=Ad,Sd=Yn;function Ed(r){return Sd(r)&&Od(r)}var Oo=Ed,bd=Hl,xd=po,Td=dd,Id=Oo,Rd=xd(function(r){return Td(bd(r,1,Id,!0))}),Cd=Rd;const Ld=zn(Cd);function Fd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Gd&&(d=Hd,v=!1,u=new Md(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${gt.stringify(I,$)}`}}function Vd(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Ld(c,a);return}if(i.remove){const d=Xd(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Nt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Nt(r,u,i.value):!1;default:return Nt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Nt(r,u,i.value);if(i==null)return Nt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function So(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?So(d,u,v):Vn(u,v,d)}),u}function kd(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function eg(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function tg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return eg(a,c)}const ng=x.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=x.ref(),i=r,a=x.shallowRef(null),c=x.ref(0),d=I=>{a.value=ii(I,i.form,i.locals,u)},v=x.useSlots(),A=()=>{if(v.default){a.value=ii('',i.locals,u);return}const I=i.loader;I&&I.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return x.onMounted(()=>{const I=i.portalName;I&&(window.__goplaid.portals[I]={updatePortalTemplate:d,reload:A}),A()}),x.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const I=parseInt(i.autoReloadInterval+"");if(I==0)return;c.value=setInterval(()=>{A()},I)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),x.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(I,$)=>r.visible?(x.openBlock(),x.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(x.openBlock(),x.createBlock(x.resolveDynamicComponent(a.value),{key:0},{default:x.withCtx(()=>[x.renderSlot(I.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):x.createCommentVNode("",!0)],512)):x.createCommentVNode("",!0)}}),rg=x.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=x.inject("vars").__emitter,a=x.useAttrs(),c={};return x.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),x.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>x.createCommentVNode("",!0)}}),ig=x.defineComponent({__name:"parent-size-observer",setup(r){const u=x.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return x.onMounted(()=>{var v;const c=x.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),x.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>x.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var ig=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),ug=Object.prototype.hasOwnProperty;function ii(r,u){return ug.call(r,u)}function ui(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function So(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function fi(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&I[$-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[M]===void 0?z=I.slice(0,$).join("/"):$==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),$++,Array.isArray(P)){if(M==="-")M=P.length;else{if(i&&!oi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",g,u,r);oi(M)&&(M=~~M)}if($>=D){if(i&&u.op==="add"&&M>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",g,u,r);var y=fg[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}}else if($>=D){var y=en[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}if(P=P[M],i&&$0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&fi(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,g=a.split("/").length;if(c!==g+1&&c!==g)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var y={op:"_get",path:r.from,value:void 0},A=xo([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function xo(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)ai(Ue(u),Ue(r),i||!0);else{i=i||er;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Eo(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ai(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&I[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&($[M]===void 0?z=I.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),F++,Array.isArray($)){if(M==="-")M=$.length;else{if(i&&!fi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);fi(M)&&(M=~~M)}if(F>=D){if(i&&u.op==="add"&&M>$.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=ag[u.op].call(u,$,M,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=en[u.op].call(u,$,M,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if($=$[M],i&&F0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ai(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=To([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function To(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)si(Ne(u),Ne(r),i||!0);else{i=i||er;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function ci(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var g=ui(u),y=ui(r),A=!1,I=y.length-1;I>=0;I--){var P=y[I],$=r[P];if(ii(u,P)&&!(u[P]===void 0&&$!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof $=="object"&&$!=null&&typeof D=="object"&&D!=null&&Array.isArray($)===Array.isArray(D)?ci($,D,i,a+"/"+Bt(P),c):$!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&g.length==y.length))for(var I=0;I0&&(r.patches=[],r.callback&&r.callback(a)),a}function hi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=oi(u),v=oi(r),A=!1,I=v.length-1;I>=0;I--){var $=v[I],F=r[$];if(ui(u,$)&&!(u[$]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?hi(F,D,i,a+"/"+Bt($),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ne(F)}),i.push({op:"replace",path:a+"/"+Bt($),value:Ne(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ne(F)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var I=0;I * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */tr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",P=500,$="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,de=1,Fe=2,_t=4,ve=8,st=16,ye=32,k=64,ne=128,be=256,vt=512,yt=30,pe="...",di=800,An=16,On=1,nr=2,lt=3,me=1/0,Ye=9007199254740991,Je=17976931348623157e292,tn=NaN,d=4294967295,m=d-1,b=d>>>1,C=[["ary",ne],["bind",de],["bindKey",Fe],["curry",ve],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",$e="[object AsyncFunction]",Ae="[object Boolean]",Sn="[object Date]",Mg="[object DOMException]",rr="[object Error]",ir="[object Function]",Co="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",Ng="[object Null]",wt="[object Object]",Lo="[object Promise]",Ug="[object Proxy]",bn="[object RegExp]",it="[object Set]",xn="[object String]",ur="[object Symbol]",Bg="[object Undefined]",Tn="[object WeakMap]",Wg="[object WeakSet]",In="[object ArrayBuffer]",nn="[object DataView]",gi="[object Float32Array]",_i="[object Float64Array]",vi="[object Int8Array]",yi="[object Int16Array]",wi="[object Int32Array]",mi="[object Uint8Array]",Ai="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Si="[object Uint32Array]",Hg=/\b__p \+= '';/g,Gg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fo=/&(?:amp|lt|gt|quot|#39);/g,$o=/[&<>"']/g,zg=RegExp(Fo.source),Kg=RegExp($o.source),Yg=/<%-([\s\S]+?)%>/g,Jg=/<%([\s\S]+?)%>/g,Po=/<%=([\s\S]+?)%>/g,Zg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jg=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ei=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Ei.source),bi=/^\s+/,Vg=/\s/,kg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,e_=/\{\n\/\* \[wrapped with (.+)\] \*/,t_=/,? & /,n_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r_=/[()=,{}\[\]\/\s]/,i_=/\\(\\)?/g,u_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Do=/\w*$/,o_=/^[-+]0x[0-9a-f]+$/i,f_=/^0b[01]+$/i,a_=/^\[object .+?Constructor\]$/,s_=/^0o[0-7]+$/i,l_=/^(?:0|[1-9]\d*)$/,c_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,h_=/['\n\r\u2028\u2029\\]/g,fr="\\ud800-\\udfff",p_="\\u0300-\\u036f",d_="\\ufe20-\\ufe2f",g_="\\u20d0-\\u20ff",Mo=p_+d_+g_,No="\\u2700-\\u27bf",Uo="a-z\\xdf-\\xf6\\xf8-\\xff",__="\\xac\\xb1\\xd7\\xf7",v_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y_="\\u2000-\\u206f",w_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",Ho=__+v_+y_+w_,xi="['’]",m_="["+fr+"]",Go="["+Ho+"]",ar="["+Mo+"]",qo="\\d+",A_="["+No+"]",zo="["+Uo+"]",Ko="[^"+fr+Ho+qo+No+Uo+Bo+"]",Ti="\\ud83c[\\udffb-\\udfff]",O_="(?:"+ar+"|"+Ti+")",Yo="[^"+fr+"]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Ri="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Bo+"]",Jo="\\u200d",Zo="(?:"+zo+"|"+Ko+")",S_="(?:"+rn+"|"+Ko+")",jo="(?:"+xi+"(?:d|ll|m|re|s|t|ve))?",Xo="(?:"+xi+"(?:D|LL|M|RE|S|T|VE))?",Qo=O_+"?",Vo="["+Wo+"]?",E_="(?:"+Jo+"(?:"+[Yo,Ii,Ri].join("|")+")"+Vo+Qo+")*",b_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ko=Vo+Qo+E_,T_="(?:"+[A_,Ii,Ri].join("|")+")"+ko,I_="(?:"+[Yo+ar+"?",ar,Ii,Ri,m_].join("|")+")",R_=RegExp(xi,"g"),C_=RegExp(ar,"g"),Ci=RegExp(Ti+"(?="+Ti+")|"+I_+ko,"g"),L_=RegExp([rn+"?"+zo+"+"+jo+"(?="+[Go,rn,"$"].join("|")+")",S_+"+"+Xo+"(?="+[Go,rn+Zo,"$"].join("|")+")",rn+"?"+Zo+"+"+jo,rn+"+"+Xo,x_,b_,qo,T_].join("|"),"g"),F_=RegExp("["+Jo+fr+Mo+Wo+"]"),$_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D_=-1,ie={};ie[gi]=ie[_i]=ie[vi]=ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Oi]=ie[Si]=!0,ie[W]=ie[re]=ie[In]=ie[Ae]=ie[nn]=ie[Sn]=ie[rr]=ie[ir]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[xn]=ie[Tn]=!1;var te={};te[W]=te[re]=te[In]=te[nn]=te[Ae]=te[Sn]=te[gi]=te[_i]=te[vi]=te[yi]=te[wi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[xn]=te[ur]=te[mi]=te[Ai]=te[Oi]=te[Si]=!0,te[rr]=te[ir]=te[Tn]=!1;var M_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},N_={"&":"&","<":"<",">":">",'"':""","'":"'"},U_={"&":"&","<":"<",">":">",""":'"',"'":"'"},B_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},W_=parseFloat,H_=parseInt,ef=typeof nt=="object"&&nt&&nt.Object===Object&&nt,G_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ef||G_||Function("return this")(),Li=u&&!u.nodeType&&u,Ht=Li&&!0&&r&&!r.nodeType&&r,tf=Ht&&Ht.exports===Li,Fi=tf&&ef.process,Ze=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||Fi&&Fi.binding&&Fi.binding("util")}catch{}}(),nf=Ze&&Ze.isArrayBuffer,rf=Ze&&Ze.isDate,uf=Ze&&Ze.isMap,of=Ze&&Ze.isRegExp,ff=Ze&&Ze.isSet,af=Ze&&Ze.isTypedArray;function Be(_,O,w){switch(w.length){case 0:return _.call(O);case 1:return _.call(O,w[0]);case 2:return _.call(O,w[0],w[1]);case 3:return _.call(O,w[0],w[1],w[2])}return _.apply(O,w)}function q_(_,O,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function $i(_,O,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function _f(_,O){for(var w=_.length;w--&&un(O,_[w],0)>-1;);return w}function V_(_,O){for(var w=_.length,L=0;w--;)_[w]===O&&++L;return L}var k_=Ni(M_),ev=Ni(N_);function tv(_){return"\\"+B_[_]}function nv(_,O){return _==null?i:_[O]}function on(_){return F_.test(_)}function rv(_){return $_.test(_)}function iv(_){for(var O,w=[];!(O=_.next()).done;)w.push(O.value);return w}function Hi(_){var O=-1,w=Array(_.size);return _.forEach(function(L,H){w[++O]=[H,L]}),w}function vf(_,O){return function(w){return _(O(w))}}function Lt(_,O){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Kv(e,t){var n=this.__data__,o=xr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Hv,mt.prototype.delete=Gv,mt.prototype.get=qv,mt.prototype.has=zv,mt.prototype.set=Kv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,v=t&z,S=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var E=G(e);if(E){if(h=j0(e),!p)return Pe(e,h)}else{var x=Te(e),R=x==ir||x==Co;if(Nt(e))return kf(e,p);if(x==wt||x==W||R&&!f){if(h=v||R?{}:ya(e),!p)return v?U0(e,f0(h,e)):N0(e,Rf(h,e))}else{if(!te[x])return f?e:{};h=X0(e,x,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Ja(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ka(e)&&e.forEach(function(B,J){h.set(J,Ve(B,t,n,J,e,l))});var U=S?v?pu:hu:v?Me:we,K=E?i:U(e);return je(K||e,function(B,J){K&&(J=B,B=e[J]),Dn(h,J,Ve(B,t,n,J,e,l))}),h}function a0(e){var t=we(e);return function(n){return Cf(n,e,t)}}function Cf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Lf(e,t,n){if(typeof e!="function")throw new Xe(y);return Gn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=sr,h=!0,p=e.length,v=[],S=t.length;if(!p)return v;n&&(t=ue(t,We(n))),o?(l=$i,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:q(o),o<0&&(o+=f),o=n>o?0:ja(o);n0&&n(p)?t>1?Se(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Zi=ua(),Pf=ua(!0);function ct(e,t){return e&&Zi(e,t,we)}function ji(e,t){return e&&Pf(e,t,we)}function Ir(e,t){return Rt(t,function(n){return xt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function c0(e,t){return e!=null&&V.call(e,t)}function h0(e,t){return e!=null&&t in ee(e)}function p0(e,t,n){return e>=xe(t,n)&&e<_e(t,n)}function Qi(e,t,n){for(var o=n?$i:sr,f=e[0].length,l=e.length,h=l,p=w(l),v=1/0,S=[];h--;){var E=e[h];h&&t&&(E=ue(E,We(t))),v=xe(E.length,v),p[h]=!n&&(t||f>=120&&E.length>=120)?new zt(h&&E):i}E=e[0];var x=-1,R=p[0];e:for(;++x-1;)p!==e&&wr.call(p,v,1),wr.call(e,v,1);return e}function Kf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?wr.call(e,f,1):uu(e,f)}}return e}function nu(e,t){return e+Or(bf()*(t-e+1))}function x0(e,t,n,o){for(var f=-1,l=_e(Ar((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function ru(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=Or(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return mu(Aa(e,t,Ne),e+"")}function T0(e){return If(vn(e))}function I0(e,t){var n=vn(e);return Br(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!Ge(h)&&(n?h<=t:h=c){var S=t?null:G0(e);if(S)return cr(S);h=!1,f=Rn,v=new zt}else v=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var Vf=wv||function(e){return Oe.clearTimeout(e)};function kf(e,t){if(t)return e.slice();var n=e.length,o=mf?mf(n):new e.constructor(n);return e.copy(o),o}function su(e){var t=new e.constructor(e.byteLength);return new vr(t).set(new vr(e)),t}function $0(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function P0(e){var t=new e.constructor(e.source,Do.exec(e));return t.lastIndex=e.lastIndex,t}function D0(e){return Pn?ee(Pn.call(e)):{}}function ea(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=Ge(e),h=t!==i,p=t===null,v=t===t,S=Ge(t);if(!p&&!S&&!l&&e>t||l&&h&&v&&!p&&!S||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!S&&e=p)return v;var S=n[o];return v*(S=="desc"?-1:1)}}return e.index-t.index}function na(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,S=_e(l-h,0),E=w(v+S),x=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function aa(e){return Et(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(y);if(f&&!h&&Nr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),E&&vp))return!1;var S=l.get(e),E=l.get(t);if(S&&E)return S==t&&E==e;var x=-1,R=!0,F=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++x1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(kg,`{ + */tr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",$=500,F="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,de=1,Fe=2,_t=4,ve=8,st=16,ye=32,k=64,ne=128,be=256,vt=512,yt=30,pe="...",gi=800,An=16,On=1,rr=2,lt=3,me=1/0,Ye=9007199254740991,Je=17976931348623157e292,tn=NaN,g=4294967295,m=g-1,b=g>>>1,C=[["ary",ne],["bind",de],["bindKey",Fe],["curry",ve],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",$e="[object AsyncFunction]",Ae="[object Boolean]",Sn="[object Date]",Wg="[object DOMException]",ir="[object Error]",ur="[object Function]",Lo="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",Hg="[object Null]",wt="[object Object]",Fo="[object Promise]",Gg="[object Proxy]",bn="[object RegExp]",it="[object Set]",xn="[object String]",or="[object Symbol]",qg="[object Undefined]",Tn="[object WeakMap]",zg="[object WeakSet]",In="[object ArrayBuffer]",nn="[object DataView]",_i="[object Float32Array]",vi="[object Float64Array]",yi="[object Int8Array]",wi="[object Int16Array]",mi="[object Int32Array]",Ai="[object Uint8Array]",Oi="[object Uint8ClampedArray]",Si="[object Uint16Array]",Ei="[object Uint32Array]",Kg=/\b__p \+= '';/g,Yg=/\b(__p \+=) '' \+/g,Jg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$o=/&(?:amp|lt|gt|quot|#39);/g,Po=/[&<>"']/g,Zg=RegExp($o.source),jg=RegExp(Po.source),Xg=/<%-([\s\S]+?)%>/g,Qg=/<%([\s\S]+?)%>/g,Do=/<%=([\s\S]+?)%>/g,Vg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kg=/^\w*$/,e_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/[\\^$.*+?()[\]{}|]/g,t_=RegExp(bi.source),xi=/^\s+/,n_=/\s/,r_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,i_=/\{\n\/\* \[wrapped with (.+)\] \*/,u_=/,? & /,o_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,f_=/[()=,{}\[\]\/\s]/,a_=/\\(\\)?/g,s_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mo=/\w*$/,l_=/^[-+]0x[0-9a-f]+$/i,c_=/^0b[01]+$/i,h_=/^\[object .+?Constructor\]$/,p_=/^0o[0-7]+$/i,d_=/^(?:0|[1-9]\d*)$/,g_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fr=/($^)/,__=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",v_="\\u0300-\\u036f",y_="\\ufe20-\\ufe2f",w_="\\u20d0-\\u20ff",Uo=v_+y_+w_,No="\\u2700-\\u27bf",Bo="a-z\\xdf-\\xf6\\xf8-\\xff",m_="\\xac\\xb1\\xd7\\xf7",A_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",O_="\\u2000-\\u206f",S_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ho="\\ufe0e\\ufe0f",Go=m_+A_+O_+S_,Ti="['’]",E_="["+ar+"]",qo="["+Go+"]",sr="["+Uo+"]",zo="\\d+",b_="["+No+"]",Ko="["+Bo+"]",Yo="[^"+ar+Go+zo+No+Bo+Wo+"]",Ii="\\ud83c[\\udffb-\\udfff]",x_="(?:"+sr+"|"+Ii+")",Jo="[^"+ar+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",Ci="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Wo+"]",Zo="\\u200d",jo="(?:"+Ko+"|"+Yo+")",T_="(?:"+rn+"|"+Yo+")",Xo="(?:"+Ti+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+Ti+"(?:D|LL|M|RE|S|T|VE))?",Vo=x_+"?",ko="["+Ho+"]?",I_="(?:"+Zo+"(?:"+[Jo,Ri,Ci].join("|")+")"+ko+Vo+")*",R_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",C_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=ko+Vo+I_,L_="(?:"+[b_,Ri,Ci].join("|")+")"+ef,F_="(?:"+[Jo+sr+"?",sr,Ri,Ci,E_].join("|")+")",$_=RegExp(Ti,"g"),P_=RegExp(sr,"g"),Li=RegExp(Ii+"(?="+Ii+")|"+F_+ef,"g"),D_=RegExp([rn+"?"+Ko+"+"+Xo+"(?="+[qo,rn,"$"].join("|")+")",T_+"+"+Qo+"(?="+[qo,rn+jo,"$"].join("|")+")",rn+"?"+jo+"+"+Xo,rn+"+"+Qo,C_,R_,zo,L_].join("|"),"g"),M_=RegExp("["+Zo+ar+Uo+Ho+"]"),U_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,N_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],B_=-1,ie={};ie[_i]=ie[vi]=ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Oi]=ie[Si]=ie[Ei]=!0,ie[W]=ie[re]=ie[In]=ie[Ae]=ie[nn]=ie[Sn]=ie[ir]=ie[ur]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[xn]=ie[Tn]=!1;var te={};te[W]=te[re]=te[In]=te[nn]=te[Ae]=te[Sn]=te[_i]=te[vi]=te[yi]=te[wi]=te[mi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[xn]=te[or]=te[Ai]=te[Oi]=te[Si]=te[Ei]=!0,te[ir]=te[ur]=te[Tn]=!1;var W_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},H_={"&":"&","<":"<",">":">",'"':""","'":"'"},G_={"&":"&","<":"<",">":">",""":'"',"'":"'"},q_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},z_=parseFloat,K_=parseInt,tf=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Y_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=tf||Y_||Function("return this")(),Fi=u&&!u.nodeType&&u,Ht=Fi&&!0&&r&&!r.nodeType&&r,nf=Ht&&Ht.exports===Fi,$i=nf&&tf.process,Ze=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||$i&&$i.binding&&$i.binding("util")}catch{}}(),rf=Ze&&Ze.isArrayBuffer,uf=Ze&&Ze.isDate,of=Ze&&Ze.isMap,ff=Ze&&Ze.isRegExp,af=Ze&&Ze.isSet,sf=Ze&&Ze.isTypedArray;function Be(_,O,w){switch(w.length){case 0:return _.call(O);case 1:return _.call(O,w[0]);case 2:return _.call(O,w[0],w[1]);case 3:return _.call(O,w[0],w[1],w[2])}return _.apply(O,w)}function J_(_,O,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Pi(_,O,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function vf(_,O){for(var w=_.length;w--&&un(O,_[w],0)>-1;);return w}function nv(_,O){for(var w=_.length,L=0;w--;)_[w]===O&&++L;return L}var rv=Ni(W_),iv=Ni(H_);function uv(_){return"\\"+q_[_]}function ov(_,O){return _==null?i:_[O]}function on(_){return M_.test(_)}function fv(_){return U_.test(_)}function av(_){for(var O,w=[];!(O=_.next()).done;)w.push(O.value);return w}function Gi(_){var O=-1,w=Array(_.size);return _.forEach(function(L,H){w[++O]=[H,L]}),w}function yf(_,O){return function(w){return _(O(w))}}function Lt(_,O){for(var w=-1,L=_.length,H=0,X=[];++w-1}function jv(e,t){var n=this.__data__,o=Tr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Kv,mt.prototype.delete=Yv,mt.prototype.get=Jv,mt.prototype.has=Zv,mt.prototype.set=jv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,S=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var E=G(e);if(E){if(h=k0(e),!p)return Pe(e,h)}else{var T=Te(e),R=T==ur||T==Lo;if(Ut(e))return ea(e,p);if(T==wt||T==W||R&&!f){if(h=y||R?{}:wa(e),!p)return y?G0(e,c0(h,e)):H0(e,Cf(h,e))}else{if(!te[T])return f?e:{};h=e1(e,T,p)}}l||(l=new ot);var P=l.get(e);if(P)return P;l.set(e,h),Za(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ya(e)&&e.forEach(function(B,J){h.set(J,Ve(B,t,n,J,e,l))});var N=S?y?du:pu:y?Me:we,K=E?i:N(e);return je(K||e,function(B,J){K&&(J=B,B=e[J]),Dn(h,J,Ve(B,t,n,J,e,l))}),h}function h0(e){var t=we(e);return function(n){return Lf(n,e,t)}}function Lf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Ff(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=lr,h=!0,p=e.length,y=[],S=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Pi,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:q(o),o<0&&(o+=f),o=n>o?0:Xa(o);n0&&n(p)?t>1?Se(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ji=oa(),Df=oa(!0);function ct(e,t){return e&&ji(e,t,we)}function Xi(e,t){return e&&Df(e,t,we)}function Rr(e,t){return Rt(t,function(n){return xt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function g0(e,t){return e!=null&&V.call(e,t)}function _0(e,t){return e!=null&&t in ee(e)}function v0(e,t,n){return e>=xe(t,n)&&e<_e(t,n)}function Vi(e,t,n){for(var o=n?Pi:lr,f=e[0].length,l=e.length,h=l,p=w(l),y=1/0,S=[];h--;){var E=e[h];h&&t&&(E=ue(E,We(t))),y=xe(E.length,y),p[h]=!n&&(t||f>=120&&E.length>=120)?new zt(h&&E):i}E=e[0];var T=-1,R=p[0];e:for(;++T-1;)p!==e&&mr.call(p,y,1),mr.call(e,y,1);return e}function Yf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?mr.call(e,f,1):ou(e,f)}}return e}function ru(e,t){return e+Sr(xf()*(t-e+1))}function C0(e,t,n,o){for(var f=-1,l=_e(Or((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function iu(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=Sr(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return Au(Oa(e,t,Ue),e+"")}function L0(e){return Rf(vn(e))}function F0(e,t){var n=vn(e);return Wr(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!Ge(h)&&(n?h<=t:h=c){var S=t?null:Y0(e);if(S)return hr(S);h=!1,f=Rn,y=new zt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var kf=Sv||function(e){return Oe.clearTimeout(e)};function ea(e,t){if(t)return e.slice();var n=e.length,o=Af?Af(n):new e.constructor(n);return e.copy(o),o}function lu(e){var t=new e.constructor(e.byteLength);return new yr(t).set(new yr(e)),t}function U0(e,t){var n=t?lu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function N0(e){var t=new e.constructor(e.source,Mo.exec(e));return t.lastIndex=e.lastIndex,t}function B0(e){return Pn?ee(Pn.call(e)):{}}function ta(e,t){var n=t?lu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function na(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=Ge(e),h=t!==i,p=t===null,y=t===t,S=Ge(t);if(!p&&!S&&!l&&e>t||l&&h&&y&&!p&&!S||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!S&&e=p)return y;var S=n[o];return y*(S=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,S=_e(l-h,0),E=w(y+S),T=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function sa(e){return Et(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Nr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),E&&yp))return!1;var S=l.get(e),E=l.get(t);if(S&&E)return S==t&&E==e;var T=-1,R=!0,P=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++T1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(r_,`{ /* [wrapped with `+t+`] */ -`)}function V0(e){return G(e)||jt(e)||!!(Sf&&e&&e[Sf])}function bt(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&l_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=di)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Br(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,$a(e,n)});function Pa(e){var t=s(e);return t.__chain__=!0,t}function sy(e,t){return t(e),e}function Wr(e,t){return t(e)}var ly=Et(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Ji(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Wr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function cy(){return Pa(this)}function hy(){return new Qe(this.value(),this.__chain__)}function py(){this.__values__===i&&(this.__values__=Za(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function dy(){return this}function gy(e){for(var t,n=this;n instanceof br;){var o=Ta(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function _y(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Wr,args:[Au],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Au)}function vy(){return Xf(this.__wrapped__,this.__actions__)}var yy=Fr(function(e,t,n){V.call(e,n)?++e[n]:Ot(e,n,1)});function wy(e,t,n){var o=G(e)?sf:s0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function my(e,t){var n=G(e)?Rt:$f;return n(e,N(t,3))}var Ay=fa(Ia),Oy=fa(Ra);function Sy(e,t){return Se(Hr(e,t),1)}function Ey(e,t){return Se(Hr(e,t),me)}function by(e,t,n){return n=n===i?1:q(n),Se(Hr(e,t),n)}function Da(e,t){var n=G(e)?je:$t;return n(e,N(t,3))}function Ma(e,t){var n=G(e)?z_:Ff;return n(e,N(t,3))}var xy=Fr(function(e,t,n){V.call(e,n)?e[n].push(t):Ot(e,n,[t])});function Ty(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?q(n):0;var f=e.length;return n<0&&(n=_e(f+n,0)),Yr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var Iy=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return $t(e,function(h){l[++o]=f?Be(t,h,n):Nn(h,t,n)}),l}),Ry=Fr(function(e,t,n){Ot(e,n,t)});function Hr(e,t){var n=G(e)?ue:Bf;return n(e,N(t,3))}function Cy(e,t,n,o){return e==null?[]:(G(t)||(t=t==null?[]:[t]),n=o?i:n,G(n)||(n=n==null?[]:[n]),qf(e,t,n))}var Ly=Fr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Fy(e,t,n){var o=G(e)?Pi:pf,f=arguments.length<3;return o(e,N(t,4),n,f,$t)}function $y(e,t,n){var o=G(e)?K_:pf,f=arguments.length<3;return o(e,N(t,4),n,f,Ff)}function Py(e,t){var n=G(e)?Rt:$f;return n(e,zr(N(t,3)))}function Dy(e){var t=G(e)?If:T0;return t(e)}function My(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=q(t);var o=G(e)?i0:I0;return o(e,t)}function Ny(e){var t=G(e)?u0:C0;return t(e)}function Uy(e){if(e==null)return 0;if(De(e))return Yr(e)?fn(e):e.length;var t=Te(e);return t==rt||t==it?e.size:ki(e).length}function By(e,t,n){var o=G(e)?Di:L0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Wy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),qf(e,Se(t,1),[])}),Gr=mv||function(){return Oe.Date.now()};function Hy(e,t){if(typeof t!="function")throw new Xe(y);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Na(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,St(e,ne,i,i,i,i,t)}function Ua(e,t){var n;if(typeof t!="function")throw new Xe(y);return e=q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Su=Y(function(e,t,n){var o=de;if(n.length){var f=Lt(n,gn(Su));o|=ye}return St(e,o,t,n,f)}),Ba=Y(function(e,t,n){var o=de|Fe;if(n.length){var f=Lt(n,gn(Ba));o|=ye}return St(t,o,e,n,f)});function Wa(e,t,n){t=n?i:t;var o=St(e,ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function Ha(e,t,n){t=n?i:t;var o=St(e,st,i,i,i,i,i,t);return o.placeholder=Ha.placeholder,o}function Ga(e,t,n){var o,f,l,h,p,v,S=0,E=!1,x=!1,R=!0;if(typeof e!="function")throw new Xe(y);t=tt(t)||0,oe(n)&&(E=!!n.leading,x="maxWait"in n,l=x?_e(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(ce){var at=o,It=f;return o=f=i,S=ce,h=e.apply(It,at),h}function U(ce){return S=ce,p=Gn(J,t),E?F(ce):h}function K(ce){var at=ce-v,It=ce-S,fs=t-at;return x?xe(fs,l-It):fs}function B(ce){var at=ce-v,It=ce-S;return v===i||at>=t||at<0||x&&It>=l}function J(){var ce=Gr();if(B(ce))return j(ce);p=Gn(J,K(ce))}function j(ce){return p=i,R&&o?F(ce):(o=f=i,h)}function qe(){p!==i&&Vf(p),S=0,o=v=f=p=i}function Le(){return p===i?h:j(Gr())}function ze(){var ce=Gr(),at=B(ce);if(o=arguments,f=this,v=ce,at){if(p===i)return U(v);if(x)return Vf(p),p=Gn(J,t),F(v)}return p===i&&(p=Gn(J,t)),h}return ze.cancel=qe,ze.flush=Le,ze}var Gy=Y(function(e,t){return Lf(e,1,t)}),qy=Y(function(e,t,n){return Lf(e,tt(t)||0,n)});function zy(e){return St(e,vt)}function qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(y);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(qr.Cache||At),n}qr.Cache=At;function zr(e){if(typeof e!="function")throw new Xe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ky(e){return Ua(2,e)}var Yy=F0(function(e,t){t=t.length==1&&G(t[0])?ue(t[0],We(N())):ue(Se(t,1),We(N()));var n=t.length;return Y(function(o){for(var f=-1,l=xe(o.length,n);++f=t}),jt=Mf(function(){return arguments}())?Mf:function(e){return ae(e)&&V.call(e,"callee")&&!Of.call(e,"callee")},G=w.isArray,fw=nf?We(nf):g0;function De(e){return e!=null&&Kr(e.length)&&!xt(e)}function le(e){return ae(e)&&De(e)}function aw(e){return e===!0||e===!1||ae(e)&&Re(e)==Ae}var Nt=Ov||Du,sw=rf?We(rf):_0;function lw(e){return ae(e)&&e.nodeType===1&&!qn(e)}function cw(e){if(e==null)return!0;if(De(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||_n(e)||jt(e)))return!e.length;var t=Te(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!ki(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function hw(e,t){return Un(e,t)}function pw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Un(e,t,i,n):!!o}function bu(e){if(!ae(e))return!1;var t=Re(e);return t==rr||t==Mg||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function dw(e){return typeof e=="number"&&Ef(e)}function xt(e){if(!oe(e))return!1;var t=Re(e);return t==ir||t==Co||t==$e||t==Ug}function za(e){return typeof e=="number"&&e==q(e)}function Kr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ka=uf?We(uf):y0;function gw(e,t){return e===t||Vi(e,t,gu(t))}function _w(e,t,n){return n=typeof n=="function"?n:i,Vi(e,t,gu(t),n)}function vw(e){return Ya(e)&&e!=+e}function yw(e){if(t1(e))throw new H(g);return Nf(e)}function ww(e){return e===null}function mw(e){return e==null}function Ya(e){return typeof e=="number"||ae(e)&&Re(e)==En}function qn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=yr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&dr.call(n)==_v}var xu=of?We(of):w0;function Aw(e){return za(e)&&e>=-Ye&&e<=Ye}var Ja=ff?We(ff):m0;function Yr(e){return typeof e=="string"||!G(e)&&ae(e)&&Re(e)==xn}function Ge(e){return typeof e=="symbol"||ae(e)&&Re(e)==ur}var _n=af?We(af):A0;function Ow(e){return e===i}function Sw(e){return ae(e)&&Te(e)==Tn}function Ew(e){return ae(e)&&Re(e)==Wg}var bw=Mr(eu),xw=Mr(function(e,t){return e<=t});function Za(e){if(!e)return[];if(De(e))return Yr(e)?ut(e):Pe(e);if(Cn&&e[Cn])return iv(e[Cn]());var t=Te(e),n=t==rt?Hi:t==it?cr:vn;return n(e)}function Tt(e){if(!e)return e===0?e:0;if(e=tt(e),e===me||e===-me){var t=e<0?-1:1;return t*Je}return e===e?e:0}function q(e){var t=Tt(e),n=t%1;return t===t?n?t-n:t:0}function ja(e){return e?Kt(q(e),0,d):0}function tt(e){if(typeof e=="number")return e;if(Ge(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=df(e);var n=f_.test(e);return n||s_.test(e)?H_(e.slice(2),n?2:8):o_.test(e)?tn:+e}function Xa(e){return ht(e,Me(e))}function Tw(e){return e?Kt(q(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var Iw=pn(function(e,t){if(Hn(t)||De(t)){ht(t,we(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),Qa=pn(function(e,t){ht(t,Me(t),e)}),Jr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),Rw=pn(function(e,t,n,o){ht(t,we(t),e,o)}),Cw=Et(Ji);function Lw(e,t){var n=hn(e);return t==null?n:Rf(n,t)}var Fw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,pu(e),n),o&&(n=Ve(n,D|z|M,q0));for(var f=t.length;f--;)uu(n,t[f]);return n});function Xw(e,t){return ka(e,zr(N(t)))}var Qw=Et(function(e,t){return e==null?{}:E0(e,t)});function ka(e,t){if(e==null)return{};var n=ue(pu(e),function(o){return[o]});return t=N(t),zf(e,n,function(o,f){return t(o,f[0])})}function Vw(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=bf();return xe(e+f*(t-e+W_("1e-"+((f+"").length-1))),t)}return nu(e,t)}var sm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?ns(t):t)});function ns(e){return Ru(Q(e).toLowerCase())}function rs(e){return e=Q(e),e&&e.replace(c_,k_).replace(C_,"")}function lm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(q(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function cm(e){return e=Q(e),e&&Kg.test(e)?e.replace($o,ev):e}function hm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Ei,"\\$&"):e}var pm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),dm=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),gm=oa("toLowerCase");function _m(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Dr(Or(f),n)+e+Dr(Ar(f),n)}function vm(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!xu(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Em=dn(function(e,t,n){return e+(n?" ":"")+Ru(t)});function bm(e,t,n){return e=Q(e),n=n==null?0:Kt(q(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function xm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Jr({},t,o,pa);var f=Jr({},t.imports,o.imports,pa),l=we(f),h=Wi(f,l),p,v,S=0,E=t.interpolate||or,x="__p += '",R=Gi((t.escape||or).source+"|"+E.source+"|"+(E===Po?u_:or).source+"|"+(t.evaluate||or).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D_+"]")+` -`;e.replace(R,function(B,J,j,qe,Le,ze){return j||(j=qe),x+=e.slice(S,ze).replace(h_,tv),J&&(p=!0,x+=`' + +`)}function n1(e){return G(e)||jt(e)||!!(Ef&&e&&e[Ef])}function bt(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&d_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=gi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Wr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Pa(e,n)});function Da(e){var t=s(e);return t.__chain__=!0,t}function py(e,t){return t(e),e}function Hr(e,t){return t(e)}var dy=Et(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Zi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Hr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function gy(){return Da(this)}function _y(){return new Qe(this.value(),this.__chain__)}function vy(){this.__values__===i&&(this.__values__=ja(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function yy(){return this}function wy(e){for(var t,n=this;n instanceof xr;){var o=Ia(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function my(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Hr,args:[Ou],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Ou)}function Ay(){return Qf(this.__wrapped__,this.__actions__)}var Oy=$r(function(e,t,n){V.call(e,n)?++e[n]:Ot(e,n,1)});function Sy(e,t,n){var o=G(e)?lf:p0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Ey(e,t){var n=G(e)?Rt:Pf;return n(e,U(t,3))}var by=aa(Ra),xy=aa(Ca);function Ty(e,t){return Se(Gr(e,t),1)}function Iy(e,t){return Se(Gr(e,t),me)}function Ry(e,t,n){return n=n===i?1:q(n),Se(Gr(e,t),n)}function Ma(e,t){var n=G(e)?je:$t;return n(e,U(t,3))}function Ua(e,t){var n=G(e)?Z_:$f;return n(e,U(t,3))}var Cy=$r(function(e,t,n){V.call(e,n)?e[n].push(t):Ot(e,n,[t])});function Ly(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?q(n):0;var f=e.length;return n<0&&(n=_e(f+n,0)),Jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var Fy=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return $t(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),$y=$r(function(e,t,n){Ot(e,n,t)});function Gr(e,t){var n=G(e)?ue:Wf;return n(e,U(t,3))}function Py(e,t,n,o){return e==null?[]:(G(t)||(t=t==null?[]:[t]),n=o?i:n,G(n)||(n=n==null?[]:[n]),zf(e,t,n))}var Dy=$r(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function My(e,t,n){var o=G(e)?Di:df,f=arguments.length<3;return o(e,U(t,4),n,f,$t)}function Uy(e,t,n){var o=G(e)?j_:df,f=arguments.length<3;return o(e,U(t,4),n,f,$f)}function Ny(e,t){var n=G(e)?Rt:Pf;return n(e,Kr(U(t,3)))}function By(e){var t=G(e)?Rf:L0;return t(e)}function Wy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=q(t);var o=G(e)?a0:F0;return o(e,t)}function Hy(e){var t=G(e)?s0:P0;return t(e)}function Gy(e){if(e==null)return 0;if(De(e))return Jr(e)?fn(e):e.length;var t=Te(e);return t==rt||t==it?e.size:eu(e).length}function qy(e,t,n){var o=G(e)?Mi:D0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var zy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),zf(e,Se(t,1),[])}),qr=Ev||function(){return Oe.Date.now()};function Ky(e,t){if(typeof t!="function")throw new Xe(v);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Na(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,St(e,ne,i,i,i,i,t)}function Ba(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Eu=Y(function(e,t,n){var o=de;if(n.length){var f=Lt(n,gn(Eu));o|=ye}return St(e,o,t,n,f)}),Wa=Y(function(e,t,n){var o=de|Fe;if(n.length){var f=Lt(n,gn(Wa));o|=ye}return St(t,o,e,n,f)});function Ha(e,t,n){t=n?i:t;var o=St(e,ve,i,i,i,i,i,t);return o.placeholder=Ha.placeholder,o}function Ga(e,t,n){t=n?i:t;var o=St(e,st,i,i,i,i,i,t);return o.placeholder=Ga.placeholder,o}function qa(e,t,n){var o,f,l,h,p,y,S=0,E=!1,T=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(E=!!n.leading,T="maxWait"in n,l=T?_e(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function P(ce){var at=o,It=f;return o=f=i,S=ce,h=e.apply(It,at),h}function N(ce){return S=ce,p=Gn(J,t),E?P(ce):h}function K(ce){var at=ce-y,It=ce-S,as=t-at;return T?xe(as,l-It):as}function B(ce){var at=ce-y,It=ce-S;return y===i||at>=t||at<0||T&&It>=l}function J(){var ce=qr();if(B(ce))return j(ce);p=Gn(J,K(ce))}function j(ce){return p=i,R&&o?P(ce):(o=f=i,h)}function qe(){p!==i&&kf(p),S=0,o=y=f=p=i}function Le(){return p===i?h:j(qr())}function ze(){var ce=qr(),at=B(ce);if(o=arguments,f=this,y=ce,at){if(p===i)return N(y);if(T)return kf(p),p=Gn(J,t),P(y)}return p===i&&(p=Gn(J,t)),h}return ze.cancel=qe,ze.flush=Le,ze}var Yy=Y(function(e,t){return Ff(e,1,t)}),Jy=Y(function(e,t,n){return Ff(e,tt(t)||0,n)});function Zy(e){return St(e,vt)}function zr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(zr.Cache||At),n}zr.Cache=At;function Kr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function jy(e){return Ba(2,e)}var Xy=M0(function(e,t){t=t.length==1&&G(t[0])?ue(t[0],We(U())):ue(Se(t,1),We(U()));var n=t.length;return Y(function(o){for(var f=-1,l=xe(o.length,n);++f=t}),jt=Uf(function(){return arguments}())?Uf:function(e){return ae(e)&&V.call(e,"callee")&&!Sf.call(e,"callee")},G=w.isArray,cw=rf?We(rf):w0;function De(e){return e!=null&&Yr(e.length)&&!xt(e)}function le(e){return ae(e)&&De(e)}function hw(e){return e===!0||e===!1||ae(e)&&Re(e)==Ae}var Ut=xv||Mu,pw=uf?We(uf):m0;function dw(e){return ae(e)&&e.nodeType===1&&!qn(e)}function gw(e){if(e==null)return!0;if(De(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||_n(e)||jt(e)))return!e.length;var t=Te(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!eu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function _w(e,t){return Nn(e,t)}function vw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Nn(e,t,i,n):!!o}function xu(e){if(!ae(e))return!1;var t=Re(e);return t==ir||t==Wg||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function yw(e){return typeof e=="number"&&bf(e)}function xt(e){if(!oe(e))return!1;var t=Re(e);return t==ur||t==Lo||t==$e||t==Gg}function Ka(e){return typeof e=="number"&&e==q(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ya=of?We(of):O0;function ww(e,t){return e===t||ki(e,t,_u(t))}function mw(e,t,n){return n=typeof n=="function"?n:i,ki(e,t,_u(t),n)}function Aw(e){return Ja(e)&&e!=+e}function Ow(e){if(u1(e))throw new H(d);return Nf(e)}function Sw(e){return e===null}function Ew(e){return e==null}function Ja(e){return typeof e=="number"||ae(e)&&Re(e)==En}function qn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=wr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gr.call(n)==mv}var Tu=ff?We(ff):S0;function bw(e){return Ka(e)&&e>=-Ye&&e<=Ye}var Za=af?We(af):E0;function Jr(e){return typeof e=="string"||!G(e)&&ae(e)&&Re(e)==xn}function Ge(e){return typeof e=="symbol"||ae(e)&&Re(e)==or}var _n=sf?We(sf):b0;function xw(e){return e===i}function Tw(e){return ae(e)&&Te(e)==Tn}function Iw(e){return ae(e)&&Re(e)==zg}var Rw=Ur(tu),Cw=Ur(function(e,t){return e<=t});function ja(e){if(!e)return[];if(De(e))return Jr(e)?ut(e):Pe(e);if(Cn&&e[Cn])return av(e[Cn]());var t=Te(e),n=t==rt?Gi:t==it?hr:vn;return n(e)}function Tt(e){if(!e)return e===0?e:0;if(e=tt(e),e===me||e===-me){var t=e<0?-1:1;return t*Je}return e===e?e:0}function q(e){var t=Tt(e),n=t%1;return t===t?n?t-n:t:0}function Xa(e){return e?Kt(q(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(Ge(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gf(e);var n=c_.test(e);return n||p_.test(e)?K_(e.slice(2),n?2:8):l_.test(e)?tn:+e}function Qa(e){return ht(e,Me(e))}function Lw(e){return e?Kt(q(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var Fw=pn(function(e,t){if(Hn(t)||De(t)){ht(t,we(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),Va=pn(function(e,t){ht(t,Me(t),e)}),Zr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),$w=pn(function(e,t,n,o){ht(t,we(t),e,o)}),Pw=Et(Zi);function Dw(e,t){var n=hn(e);return t==null?n:Cf(n,t)}var Mw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,du(e),n),o&&(n=Ve(n,D|z|M,J0));for(var f=t.length;f--;)ou(n,t[f]);return n});function em(e,t){return es(e,Kr(U(t)))}var tm=Et(function(e,t){return e==null?{}:I0(e,t)});function es(e,t){if(e==null)return{};var n=ue(du(e),function(o){return[o]});return t=U(t),Kf(e,n,function(o,f){return t(o,f[0])})}function nm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=xf();return xe(e+f*(t-e+z_("1e-"+((f+"").length-1))),t)}return ru(e,t)}var pm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?rs(t):t)});function rs(e){return Cu(Q(e).toLowerCase())}function is(e){return e=Q(e),e&&e.replace(g_,rv).replace(P_,"")}function dm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(q(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function gm(e){return e=Q(e),e&&jg.test(e)?e.replace(Po,iv):e}function _m(e){return e=Q(e),e&&t_.test(e)?e.replace(bi,"\\$&"):e}var vm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),ym=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),wm=fa("toLowerCase");function mm(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(Sr(f),n)+e+Mr(Or(f),n)}function Am(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Tu(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Im=dn(function(e,t,n){return e+(n?" ":"")+Cu(t)});function Rm(e,t,n){return e=Q(e),n=n==null?0:Kt(q(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Cm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Zr({},t,o,da);var f=Zr({},t.imports,o.imports,da),l=we(f),h=Hi(f,l),p,y,S=0,E=t.interpolate||fr,T="__p += '",R=qi((t.escape||fr).source+"|"+E.source+"|"+(E===Do?s_:fr).source+"|"+(t.evaluate||fr).source+"|$","g"),P="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++B_+"]")+` +`;e.replace(R,function(B,J,j,qe,Le,ze){return j||(j=qe),T+=e.slice(S,ze).replace(__,uv),J&&(p=!0,T+=`' + __e(`+J+`) + -'`),Le&&(v=!0,x+=`'; +'`),Le&&(y=!0,T+=`'; `+Le+`; -__p += '`),j&&(x+=`' + +__p += '`),j&&(T+=`' + ((__t = (`+j+`)) == null ? '' : __t) + -'`),S=ze+B.length,B}),x+=`'; -`;var U=V.call(t,"variable")&&t.variable;if(!U)x=`with (obj) { -`+x+` +'`),S=ze+B.length,B}),T+=`'; +`;var N=V.call(t,"variable")&&t.variable;if(!N)T=`with (obj) { +`+T+` } -`;else if(r_.test(U))throw new H(A);x=(v?x.replace(Hg,""):x).replace(Gg,"$1").replace(qg,"$1;"),x="function("+(U||"obj")+`) { -`+(U?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; +`;else if(f_.test(N))throw new H(A);T=(y?T.replace(Kg,""):T).replace(Yg,"$1").replace(Jg,"$1;"),T="function("+(N||"obj")+`) { +`+(N?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+x+`return __p -}`;var K=us(function(){return X(l,F+"return "+x).apply(i,h)});if(K.source=x,bu(K))throw K;return K}function Tm(e){return Q(e).toLowerCase()}function Im(e){return Q(e).toUpperCase()}function Rm(e,t,n){if(e=Q(e),e&&(n||t===i))return df(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=gf(o,f),h=_f(o,f)+1;return Mt(o,l,h).join("")}function Cm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,yf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=_f(o,ut(t))+1;return Mt(o,0,f).join("")}function Lm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(bi,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=gf(o,ut(t));return Mt(o,f).join("")}function Fm(e,t){var n=yt,o=pe;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?q(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),xu(f)){if(e.slice(p).search(f)){var S,E=v;for(f.global||(f=Gi(f.source,Q(Do.exec(f))+"g")),f.lastIndex=0;S=f.exec(E);)var x=S.index;v=v.slice(0,x===i?p:x)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function $m(e){return e=Q(e),e&&zg.test(e)?e.replace(Fo,av):e}var Pm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ru=oa("toUpperCase");function is(e,t,n){return e=Q(e),t=n?i:t,t===i?rv(e)?cv(e):Z_(e):e.match(t)||[]}var us=Y(function(e,t){try{return Be(e,i,t)}catch(n){return bu(n)?n:new H(n)}}),Dm=Et(function(e,t){return je(t,function(n){n=pt(n),Ot(e,n,Su(e[n],e))}),e});function Mm(e){var t=e==null?0:e.length,n=N();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(y);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=d,o=xe(e,d);t=N(t),e-=d;for(var f=Bi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(d)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Z,S=p[0],E=v||G(h),x=function(J){var j=f.apply(s,Ct([J],p));return o&&R?j[0]:j};E&&n&&typeof S=="function"&&S.length!=1&&(v=E=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=v&&!F;if(!l&&E){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Wr,args:[x],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(x),U?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=hr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(G(l)?l:[],f)}return this[n](function(h){return t.apply(G(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[$r(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=$v,Z.prototype.reverse=Pv,Z.prototype.value=Dv,s.prototype.at=ly,s.prototype.chain=cy,s.prototype.commit=hy,s.prototype.next=py,s.prototype.plant=gy,s.prototype.reverse=_y,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=vy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=dy),s},an=hv();Ht?((Ht.exports=an)._=an,Li._=an):Oe._=an}).call(nt)}(tr,tr.exports);var wg=tr.exports;const mg=zn(wg);class Ag{constructor(){Ee(this,"_eventFuncID",{id:"__reload__"});Ee(this,"_url");Ee(this,"_method");Ee(this,"_vars");Ee(this,"_locals");Ee(this,"_loadPortalBody",!1);Ee(this,"_form",{});Ee(this,"_popstate");Ee(this,"_pushState");Ee(this,"_location");Ee(this,"_updateRootTemplate");Ee(this,"_buildPushStateResult");Ee(this,"parent");Ee(this,"lodash",mg);Ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);Ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const u=this.buildPushStateArgs();u&&window.history.pushState(...u)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Oo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=hi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const g=window.__goplaid.portals[c];g&&g.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:g}=window.__goplaid.portals[c.name];g&&g(c.body)}return a.pushState?hi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=window.location.href;this._buildPushStateResult=Xd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return yg.applyPatch(u,i)}encodeObjectToQuery(u,i){return Vd(u,i)}isRawQuerySubset(u,i,a){return eg(u,i,a)}}function hi(){return new Ag}const Og={mounted:(r,u,i)=>{var P,$;let a=r;i.component&&(a=($=(P=i.component)==null?void 0:P.proxy)==null?void 0:$.$el);const c=u.arg||"scroll",y=gt.parse(location.hash)[c];let A="";Array.isArray(y)?A=y[0]||"":A=y||"";const I=A.split("_");I.length>=2&&(a.scrollTop=parseInt(I[0]),a.scrollLeft=parseInt(I[1])),a.addEventListener("scroll",qu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Sg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},Eg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},bg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},xg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Tg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Ig={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Rg={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Cg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}};var To={exports:{}};function pi(){}pi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a{u.value=ri(A,i)};T.provide("updateRootTemplate",a);const c=T.reactive({__emitter:new Lg}),g=()=>hi().updateRootTemplate(a).vars(c);T.provide("plaid",g),T.provide("vars",c);const y=T.ref(!1);return T.provide("isFetching",y),T.onMounted(()=>{a(r.initialTemplate),window.addEventListener("fetchStart",()=>{y.value=!0}),window.addEventListener("fetchEnd",()=>{y.value=!1}),window.addEventListener("popstate",A=>{g().onpopstate(A)})}),{current:u}},template:` +`)+T+`return __p +}`;var K=os(function(){return X(l,P+"return "+T).apply(i,h)});if(K.source=T,xu(K))throw K;return K}function Lm(e){return Q(e).toLowerCase()}function Fm(e){return Q(e).toUpperCase()}function $m(e,t,n){if(e=Q(e),e&&(n||t===i))return gf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=_f(o,f),h=vf(o,f)+1;return Mt(o,l,h).join("")}function Pm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,wf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=vf(o,ut(t))+1;return Mt(o,0,f).join("")}function Dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(xi,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=_f(o,ut(t));return Mt(o,f).join("")}function Mm(e,t){var n=yt,o=pe;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?q(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var y=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Tu(f)){if(e.slice(p).search(f)){var S,E=y;for(f.global||(f=qi(f.source,Q(Mo.exec(f))+"g")),f.lastIndex=0;S=f.exec(E);)var T=S.index;y=y.slice(0,T===i?p:T)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Um(e){return e=Q(e),e&&Zg.test(e)?e.replace($o,hv):e}var Nm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Cu=fa("toUpperCase");function us(e,t,n){return e=Q(e),t=n?i:t,t===i?fv(e)?gv(e):V_(e):e.match(t)||[]}var os=Y(function(e,t){try{return Be(e,i,t)}catch(n){return xu(n)?n:new H(n)}}),Bm=Et(function(e,t){return je(t,function(n){n=pt(n),Ot(e,n,Eu(e[n],e))}),e});function Wm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=g,o=xe(e,g);t=U(t),e-=g;for(var f=Wi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,S=p[0],E=y||G(h),T=function(J){var j=f.apply(s,Ct([J],p));return o&&R?j[0]:j};E&&n&&typeof S=="function"&&S.length!=1&&(y=E=!1);var R=this.__chain__,P=!!this.__actions__.length,N=l&&!R,K=y&&!P;if(!l&&E){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Hr,args:[T],thisArg:i}),new Qe(B,R)}return N&&K?e.apply(this,p):(B=this.thru(T),N?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=pr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(G(l)?l:[],f)}return this[n](function(h){return t.apply(G(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[Pr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Uv,Z.prototype.reverse=Nv,Z.prototype.value=Bv,s.prototype.at=dy,s.prototype.chain=gy,s.prototype.commit=_y,s.prototype.next=vy,s.prototype.plant=wy,s.prototype.reverse=my,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ay,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=yy),s},an=_v();Ht?((Ht.exports=an)._=an,Fi._=an):Oe._=an}).call(nt)}(tr,tr.exports);var mg=tr.exports;const Ag=zn(mg);class Og{constructor(){Ee(this,"_eventFuncID",{id:"__reload__"});Ee(this,"_url");Ee(this,"_method");Ee(this,"_vars");Ee(this,"_locals");Ee(this,"_loadPortalBody",!1);Ee(this,"_form",{});Ee(this,"_popstate");Ee(this,"_pushState");Ee(this,"_location");Ee(this,"_updateRootTemplate");Ee(this,"_buildPushStateResult");Ee(this,"parent");Ee(this,"lodash",Ag);Ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);Ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const u=this.buildPushStateArgs();u&&window.history.pushState(...u)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;So(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=pi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?pi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=window.location.href;this._buildPushStateResult=Qd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return wg.applyPatch(u,i)}encodeObjectToQuery(u,i){return kd(u,i)}isRawQuerySubset(u,i,a){return tg(u,i,a)}}function pi(){return new Og}const Sg={mounted:(r,u,i)=>{var $,F;let a=r;i.component&&(a=(F=($=i.component)==null?void 0:$.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const I=A.split("_");I.length>=2&&(a.scrollTop=parseInt(I[0]),a.scrollLeft=parseInt(I[1])),a.addEventListener("scroll",zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Eg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},nr=new Map,bg=()=>Math.random().toString(36).substr(2,9),xg=window.fetch;function Tg(r){window.fetch=async function(...u){const[i,a]=u,c=bg();nr.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await xg(...u),v=nr.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return nr.delete(c),d}catch(d){throw console.error("Fetch error:",d),nr.delete(c),d}}}const Ig={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},Rg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},Cg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},Lg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},Fg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},$g={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}},Pg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:x.watch,watchEffect:x.watchEffect,ref:x.ref,reactive:x.reactive})}};var Io={exports:{}};function di(){}di.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a{u.value=ii(I,i)};x.provide("updateRootTemplate",a);const c=x.reactive({__emitter:new Dg}),d=()=>pi().updateRootTemplate(a).vars(c);x.provide("plaid",d),x.provide("vars",c);const v=x.ref(!1),A=x.ref(!0);return x.provide("isFetching",v),x.provide("isReloadingPage",A),Tg({onRequest(I,$,F){console.log("onReq",I,$,F),typeof $=="string"&&["?__execute_event__=__reload__"].includes($)&&(A.value=!0)},onResponse(I,$,F,D){console.log("onRes",I,$,F,D),typeof F=="string"&&["?__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),x.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",I=>{d().onpopstate(I)})}),{current:u}},template:`
- `}),$g={install(r){r.component("GoPlaidScope",sl),r.component("GoPlaidPortal",tg),r.component("GoPlaidListener",ng),r.component("ParentSizeObserver",rg),r.directive("keep-scroll",Og),r.directive("assign",Sg),r.directive("on-created",Eg),r.directive("before-mount",bg),r.directive("on-mounted",xg),r.directive("before-update",Tg),r.directive("on-updated",Ig),r.directive("before-unmount",Rg),r.directive("on-unmounted",Cg),r.component("GlobalEvents",cs)}};function Pg(r){const u=T.createApp(Fg,{initialTemplate:r});return u.use($g),u}const Io=document.getElementById("app");if(!Io)throw new Error("#app required");const Dg={},Ro=Pg(Io.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Ro,Dg);Ro.mount("#app")}); + `}),Ug={install(r){r.component("GoPlaidScope",ll),r.component("GoPlaidPortal",ng),r.component("GoPlaidListener",rg),r.component("ParentSizeObserver",ig),r.directive("keep-scroll",Sg),r.directive("assign",Eg),r.directive("on-created",Ig),r.directive("before-mount",Rg),r.directive("on-mounted",Cg),r.directive("before-update",Lg),r.directive("on-updated",Fg),r.directive("before-unmount",$g),r.directive("on-unmounted",Pg),r.component("GlobalEvents",hs)}};function Ng(r){const u=x.createApp(Mg,{initialTemplate:r});return u.use(Ug),u}const Ro=document.getElementById("app");if(!Ro)throw new Error("#app required");const Bg={},Co=Ng(Ro.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Co,Bg);Co.mount("#app")}); diff --git a/corejs/package.json b/corejs/package.json index 21f4663..b62fef7 100644 --- a/corejs/package.json +++ b/corejs/package.json @@ -7,6 +7,7 @@ "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", + "watch-build": "nodemon --watch src --ext ts,scss --exec 'npm run build'", "test": "vitest", "ci-test": "vitest run", "build-only": "vite build", @@ -38,6 +39,7 @@ "eslint": "^8.57.0", "eslint-plugin-vue": "^9.26.0", "jsdom": "^24.1.0", + "nodemon": "^3.1.4", "npm-run-all2": "^6.2.0", "prettier": "^3.3.2", "resize-observer-polyfill": "^1.5.1", diff --git a/corejs/pnpm-lock.yaml b/corejs/pnpm-lock.yaml index 92f99ac..b22b758 100644 --- a/corejs/pnpm-lock.yaml +++ b/corejs/pnpm-lock.yaml @@ -72,6 +72,9 @@ importers: jsdom: specifier: ^24.1.0 version: 24.1.0 + nodemon: + specifier: ^3.1.4 + version: 3.1.4 npm-run-all2: specifier: ^6.2.0 version: 6.2.0 @@ -626,6 +629,10 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + argparse@2.0.1: resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} @@ -642,6 +649,10 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -674,6 +685,10 @@ packages: check-error@1.0.3: resolution: {integrity: sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==} + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} @@ -963,6 +978,10 @@ packages: graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} + has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -991,6 +1010,9 @@ packages: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} + ignore-by-default@1.0.1: + resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} + ignore@5.3.1: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} @@ -1013,6 +1035,10 @@ packages: ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + is-extglob@2.1.1: resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} engines: {node: '>=0.10.0'} @@ -1183,11 +1209,20 @@ packages: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} engines: {node: '>=10.5.0'} + nodemon@3.1.4: + resolution: {integrity: sha512-wjPBbFhtpJwmIeY2yP7QF+UKzPfltVGtfce1g/bB15/8vCGZj8uxD62b/b9M9/WVgme0NZudpownKN+c0plXlQ==} + engines: {node: '>=10'} + hasBin: true + nopt@7.2.1: resolution: {integrity: sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} hasBin: true + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + npm-normalize-package-bin@3.0.1: resolution: {integrity: sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} @@ -1319,6 +1354,9 @@ packages: psl@1.9.0: resolution: {integrity: sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==} + pstree.remy@1.1.8: + resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==} + punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -1340,6 +1378,10 @@ packages: resolution: {integrity: sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + requires-port@1.0.0: resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} @@ -1403,6 +1445,10 @@ packages: resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} engines: {node: '>=14'} + simple-update-notifier@2.0.0: + resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} + engines: {node: '>=10'} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -1448,6 +1494,10 @@ packages: strip-literal@2.1.0: resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} + supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + supports-color@7.2.0: resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} engines: {node: '>=8'} @@ -1484,6 +1534,10 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + touch@3.1.1: + resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==} + hasBin: true + tough-cookie@4.1.4: resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} engines: {node: '>=6'} @@ -1521,6 +1575,9 @@ packages: ufo@1.5.3: resolution: {integrity: sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==} + undefsafe@2.0.5: + resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} + undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} @@ -1826,7 +1883,7 @@ snapshots: '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) espree: 9.6.1 globals: 13.24.0 ignore: 5.3.1 @@ -1842,7 +1899,7 @@ snapshots: '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.3 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -1967,7 +2024,7 @@ snapshots: '@typescript-eslint/type-utils': 6.21.0(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) eslint: 8.57.0 graphemer: 1.4.0 ignore: 5.3.1 @@ -1985,7 +2042,7 @@ snapshots: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) eslint: 8.57.0 optionalDependencies: typescript: 5.3.3 @@ -2001,7 +2058,7 @@ snapshots: dependencies: '@typescript-eslint/typescript-estree': 6.21.0(typescript@5.3.3) '@typescript-eslint/utils': 6.21.0(eslint@8.57.0)(typescript@5.3.3) - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) eslint: 8.57.0 ts-api-utils: 1.3.0(typescript@5.3.3) optionalDependencies: @@ -2015,7 +2072,7 @@ snapshots: dependencies: '@typescript-eslint/types': 6.21.0 '@typescript-eslint/visitor-keys': 6.21.0 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -2202,7 +2259,7 @@ snapshots: agent-base@7.1.1: dependencies: - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -2225,6 +2282,11 @@ snapshots: ansi-styles@6.2.1: {} + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + argparse@2.0.1: {} array-union@2.1.0: {} @@ -2235,6 +2297,8 @@ snapshots: balanced-match@1.0.2: {} + binary-extensions@2.3.0: {} + boolbase@1.0.0: {} brace-expansion@1.1.11: @@ -2273,6 +2337,18 @@ snapshots: dependencies: get-func-name: 2.0.2 + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + color-convert@2.0.1: dependencies: color-name: 1.1.4 @@ -2317,9 +2393,11 @@ snapshots: de-indent@1.0.2: {} - debug@4.3.5: + debug@4.3.5(supports-color@5.5.0): dependencies: ms: 2.1.2 + optionalDependencies: + supports-color: 5.5.0 decimal.js@10.4.3: {} @@ -2433,7 +2511,7 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 @@ -2614,6 +2692,8 @@ snapshots: graphemer@1.4.0: {} + has-flag@3.0.0: {} + has-flag@4.0.0: {} he@1.2.0: {} @@ -2625,14 +2705,14 @@ snapshots: http-proxy-agent@7.0.2: dependencies: agent-base: 7.1.1 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) transitivePeerDependencies: - supports-color https-proxy-agent@7.0.4: dependencies: agent-base: 7.1.1 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) transitivePeerDependencies: - supports-color @@ -2642,6 +2722,8 @@ snapshots: dependencies: safer-buffer: 2.1.2 + ignore-by-default@1.0.1: {} + ignore@5.3.1: {} import-fresh@3.3.0: @@ -2660,6 +2742,10 @@ snapshots: ini@1.3.8: {} + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + is-extglob@2.1.1: {} is-fullwidth-code-point@3.0.0: {} @@ -2822,10 +2908,25 @@ snapshots: node-domexception@1.0.0: {} + nodemon@3.1.4: + dependencies: + chokidar: 3.6.0 + debug: 4.3.5(supports-color@5.5.0) + ignore-by-default: 1.0.1 + minimatch: 3.1.2 + pstree.remy: 1.1.8 + semver: 7.6.2 + simple-update-notifier: 2.0.0 + supports-color: 5.5.0 + touch: 3.1.1 + undefsafe: 2.0.5 + nopt@7.2.1: dependencies: abbrev: 2.0.0 + normalize-path@3.0.0: {} + npm-normalize-package-bin@3.0.1: {} npm-run-all2@6.2.0: @@ -2949,6 +3050,8 @@ snapshots: psl@1.9.0: {} + pstree.remy@1.1.8: {} + punycode@2.3.1: {} query-string@9.0.0: @@ -2968,6 +3071,10 @@ snapshots: json-parse-even-better-errors: 3.0.2 npm-normalize-package-bin: 3.0.1 + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + requires-port@1.0.0: {} resize-observer-polyfill@1.5.1: {} @@ -3030,6 +3137,10 @@ snapshots: signal-exit@4.1.0: {} + simple-update-notifier@2.0.0: + dependencies: + semver: 7.6.2 + slash@3.0.0: {} source-map-js@1.2.0: {} @@ -3068,6 +3179,10 @@ snapshots: dependencies: js-tokens: 9.0.0 + supports-color@5.5.0: + dependencies: + has-flag: 3.0.0 + supports-color@7.2.0: dependencies: has-flag: 4.0.0 @@ -3095,6 +3210,8 @@ snapshots: dependencies: is-number: 7.0.0 + touch@3.1.1: {} + tough-cookie@4.1.4: dependencies: psl: 1.9.0 @@ -3124,6 +3241,8 @@ snapshots: ufo@1.5.3: {} + undefsafe@2.0.5: {} + undici-types@5.26.5: {} universalify@0.2.0: {} @@ -3142,7 +3261,7 @@ snapshots: vite-node@1.6.0(@types/node@18.19.39): dependencies: cac: 6.7.14 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) pathe: 1.1.2 picocolors: 1.0.1 vite: 5.3.1(@types/node@18.19.39) @@ -3174,7 +3293,7 @@ snapshots: '@vitest/utils': 1.6.0 acorn-walk: 8.3.3 chai: 4.4.1 - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) execa: 8.0.1 local-pkg: 0.5.0 magic-string: 0.30.10 @@ -3205,7 +3324,7 @@ snapshots: vue-eslint-parser@9.4.3(eslint@8.57.0): dependencies: - debug: 4.3.5 + debug: 4.3.5(supports-color@5.5.0) eslint: 8.57.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 87ed7b1..0703dd9 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -18,6 +18,7 @@ import { componentByTemplate } from '@/utils' import { Builder, plaid } from '@/builder' import { keepScroll } from '@/keepScroll' import { assignOnMounted } from '@/assign' +import { initFetchInterceptor } from './fetchInterceptor' import { runOnCreated, runBeforeMount, @@ -56,11 +57,29 @@ export const Root = defineComponent({ provide('plaid', _plaid) provide('vars', vars) const isFetching = ref(false) + const isReloadingPage = ref(true) provide('isFetching', isFetching) + provide('isReloadingPage', isReloadingPage) + + initFetchInterceptor({ + onRequest(id, resource, config) { + // console.log('onReq', id, resource, config) + if (typeof resource === 'string' && ['?__execute_event__=__reload__'].includes(resource)) { + isReloadingPage.value = true + } + }, + + onResponse(id, response, resource, config) { + // console.log('onRes', id, response, resource, config) + if (typeof resource === 'string' && ['?__execute_event__=__reload__'].includes(resource)) { + isReloadingPage.value = false + } + } + }) onMounted(() => { updateRootTemplate(props.initialTemplate) - + isReloadingPage.value = false window.addEventListener('fetchStart', () => { isFetching.value = true }) diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts new file mode 100644 index 0000000..35c1277 --- /dev/null +++ b/corejs/src/fetchInterceptor.ts @@ -0,0 +1,67 @@ +export type FetchInterceptor = { + onRequest?: (id: string, resource: RequestInfo | URL, config?: RequestInit) => void + onResponse?: (id: string, response: Response, resource: RequestInfo, config?: RequestInit) => void +} + +// Global Map to store the mapping between request ID and Request info +const requestMap = new Map() + +// Function to generate a unique identifier (you can use a more complex strategy if needed) +const generateUniqueId = (): string => { + return Math.random().toString(36).substr(2, 9) // Simple unique ID generation +} + +const originalFetch: typeof window.fetch = window.fetch + +export function initFetchInterceptor(customInterceptor: FetchInterceptor) { + // eslint-disable-next-line no-debugger + window.fetch = async function ( + ...args: [RequestInfo | URL, init?: RequestInit] + ): Promise { + const [resource, config] = args + + // Generate a unique ID for the request + const requestId = generateUniqueId() + + // Store the request info in the Map + requestMap.set(requestId, { resource, config }) + + // Execute the request phase callback if provided + if (customInterceptor.onRequest) { + customInterceptor.onRequest(requestId, resource, config) + } + + try { + // Call the original fetch method to get the response + const response = await originalFetch(...args) + + // Find the corresponding request info during the response phase + const requestInfo = requestMap.get(requestId) + + // Execute the response phase callback if provided + if (customInterceptor.onResponse && requestInfo) { + // Ensure resource is of type RequestInfo before passing to onResponse + const resource = + requestInfo.resource instanceof URL + ? requestInfo.resource.toString() + : requestInfo.resource + + customInterceptor.onResponse(requestId, response, resource, requestInfo.config) + } + + // After the request is completed, remove the request info from the Map + requestMap.delete(requestId) + + // Return the original response + return response + } catch (error) { + // Handle fetch errors + console.error('Fetch error:', error) + + // In case of request failure, also remove the request info from the Map + requestMap.delete(requestId) + + throw error // Rethrow the error + } + } +} From fb4ba3ba9df250532c19eb6ab301a6bcbc16463c Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:56:10 +0800 Subject: [PATCH 08/21] add history manager && prevent pushState on the same path --- .gitignore | 3 +- build.sh | 2 +- corejs/dist/index.js | 42 +++++----- corejs/src/__tests__/builder.spec.ts | 9 +++ corejs/src/__tests__/utils.spec.ts | 20 ++++- corejs/src/app.ts | 4 +- corejs/src/builder.ts | 19 +++-- corejs/src/history.ts | 111 +++++++++++++++++++++++++++ corejs/src/utils.ts | 8 ++ 9 files changed, 187 insertions(+), 31 deletions(-) create mode 100644 corejs/src/history.ts diff --git a/.gitignore b/.gitignore index 69edf05..aba8079 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea .vscode -./__* +__* +!__tests__ diff --git a/build.sh b/build.sh index 1077eca..49f4420 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ if test "$1" = 'clean'; then rm -rf $CUR/corejs/node_modules/ fi -rm -r $CUR/corejs/dist +rm -r $CUR/corejs/dist/* echo "Building corejs" cd $CUR/corejs && pnpm install && pnpm format && pnpm run build curl -fsSL https://unpkg.com/vue@3.x/dist/vue.global.prod.js > $CUR/corejs/dist/vue.global.prod.js diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 861d365..d8ed5a7 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,9 +1,9 @@ -var mA=Object.defineProperty;var AA=(T,Ie,Xt)=>Ie in T?mA(T,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):T[Ie]=Xt;var Ee=(T,Ie,Xt)=>AA(T,typeof Ie!="symbol"?Ie+"":Ie,Xt);(function(T,Ie){typeof exports=="object"&&typeof module<"u"?Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(T=typeof globalThis<"u"?globalThis:T||self,Ie(T.Vue))})(this,function(T){"use strict";/*! +var SA=Object.defineProperty;var OA=(I,Te,Xt)=>Te in I?SA(I,Te,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):I[Te]=Xt;var he=(I,Te,Xt)=>OA(I,typeof Te!="symbol"?Te+"":Te,Xt);(function(I,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(I=typeof globalThis<"u"?globalThis:I||self,Te(I.Vue))})(this,function(I){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Ie;function Xt(){return Ie??(Ie=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const as=/^on(\w+?)((?:Once|Capture|Passive)*)$/,ss=/[OCP]/g;function ls(r){return r?Xt()?r.includes("Capture"):r.replace(ss,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const cs=T.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=T.ref(!0);return T.onActivated(()=>{a.value=!0}),T.onDeactivated(()=>{a.value=!1}),T.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const g=u[c],y=Array.isArray(g)?g:[g],A=c.match(as);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,I,P]=A;I=I.toLowerCase();const $=y.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,I))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=ls(P);$.forEach(z=>{window[r.target].addEventListener(I,z,D)}),i[c]=[$,I,D]})}),T.onBeforeUnmount(()=>{for(const c in i){const[g,y,A]=i[c];g.forEach(I=>{window[r.target].removeEventListener(y,I,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function hs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=hs,ps=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ds=ps,gs=ds,_s=typeof self=="object"&&self&&self.Object===Object&&self,vs=gs||_s||Function("return this")(),yn=vs,ys=yn,ws=function(){return ys.Date.now()},ms=ws,As=/\s/;function Os(r){for(var u=r.length;u--&&As.test(r.charAt(u)););return u}var Ss=Os,Es=Ss,bs=/^\s+/;function xs(r){return r&&r.slice(0,Es(r)+1).replace(bs,"")}var Ts=xs,Is=yn,Rs=Is.Symbol,Zr=Rs,Mu=Zr,Nu=Object.prototype,Cs=Nu.hasOwnProperty,Ls=Nu.toString,wn=Mu?Mu.toStringTag:void 0;function Fs(r){var u=Cs.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=Ls.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var $s=Fs,Ps=Object.prototype,Ds=Ps.toString;function Ms(r){return Ds.call(r)}var Ns=Ms,Uu=Zr,Us=$s,Bs=Ns,Ws="[object Null]",Hs="[object Undefined]",Bu=Uu?Uu.toStringTag:void 0;function Gs(r){return r==null?r===void 0?Hs:Ws:Bu&&Bu in Object(r)?Us(r):Bs(r)}var jr=Gs;function qs(r){return r!=null&&typeof r=="object"}var Yn=qs,zs=jr,Ks=Yn,Ys="[object Symbol]";function Js(r){return typeof r=="symbol"||Ks(r)&&zs(r)==Ys}var Zs=Js,js=Ts,Wu=Kn,Xs=Zs,Hu=NaN,Qs=/^[-+]0x[0-9a-f]+$/i,Vs=/^0b[01]+$/i,ks=/^0o[0-7]+$/i,el=parseInt;function tl(r){if(typeof r=="number")return r;if(Xs(r))return Hu;if(Wu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Wu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=js(r);var i=Vs.test(r);return i||ks.test(r)?el(r.slice(2),i?2:8):Qs.test(r)?Hu:+r}var nl=tl,rl=Kn,Xr=ms,Gu=nl,il="Expected a function",ul=Math.max,ol=Math.min;function fl(r,u,i){var a,c,g,y,A,I,P=0,$=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(il);u=Gu(u)||0,rl(i)&&($=!!i.leading,D="maxWait"in i,g=D?ul(Gu(i.maxWait)||0,u):g,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,be=c;return a=c=void 0,P=k,y=r.apply(be,ne),y}function se(k){return P=k,A=setTimeout(Fe,u),$?M(k):y}function Ke(k){var ne=k-I,be=k-P,vt=u-ne;return D?ol(vt,g-be):vt}function de(k){var ne=k-I,be=k-P;return I===void 0||ne>=u||ne<0||D&&be>=g}function Fe(){var k=Xr();if(de(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,y)}function ve(){A!==void 0&&clearTimeout(A),P=0,a=I=c=A=void 0}function st(){return A===void 0?y:_t(Xr())}function ye(){var k=Xr(),ne=de(k);if(a=arguments,c=this,I=k,ne){if(A===void 0)return se(I);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(I)}return A===void 0&&(A=setTimeout(Fe,u)),y}return ye.cancel=ve,ye.flush=st,ye}var al=fl;const qu=zn(al),sl=T.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const g=T.reactive({...c});let y=i.formInit;Array.isArray(y)&&(y=Object.assign({},...y));const A=T.reactive({...y}),I=T.inject("vars"),P=T.inject("plaid");return T.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const $=i.useDebounce,D=qu(z=>{a("change-debounced",z)},$);console.log("watched"),T.watch(g,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),T.watch(A,(z,M)=>{D({locals:g,form:z,oldLocals:g,oldForm:M})})}},0)}),($,D)=>T.renderSlot($.$slots,"default",{locals:g,form:A,plaid:T.unref(P),vars:T.unref(I)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(d){var m=0;return function(){return m>>0)+"_",W=0;return m}),g("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(d,m){for(var b=0;b(i[a]=!0,i),{}):void 0}const hs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const g=u[c],y=Array.isArray(g)?g:[g],A=c.match(ss);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const $=y.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=cs(P);$.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[$,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[g,y,A]=i[c];g.forEach(T=>{window[r.target].removeEventListener(y,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ps(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=ps,ds=typeof nt=="object"&&nt&&nt.Object===Object&&nt,gs=ds,_s=gs,vs=typeof self=="object"&&self&&self.Object===Object&&self,ys=_s||vs||Function("return this")(),yn=ys,ws=yn,ms=function(){return ws.Date.now()},As=ms,Ss=/\s/;function Os(r){for(var u=r.length;u--&&Ss.test(r.charAt(u)););return u}var xs=Os,bs=xs,Es=/^\s+/;function Is(r){return r&&r.slice(0,bs(r)+1).replace(Es,"")}var Ts=Is,Rs=yn,Cs=Rs.Symbol,jr=Cs,Uu=jr,Nu=Object.prototype,Ls=Nu.hasOwnProperty,Fs=Nu.toString,wn=Uu?Uu.toStringTag:void 0;function $s(r){var u=Ls.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=Fs.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var Ps=$s,Ds=Object.prototype,Ms=Ds.toString;function Us(r){return Ms.call(r)}var Ns=Us,Bu=jr,Bs=Ps,Ws=Ns,Hs="[object Null]",Gs="[object Undefined]",Wu=Bu?Bu.toStringTag:void 0;function qs(r){return r==null?r===void 0?Gs:Hs:Wu&&Wu in Object(r)?Bs(r):Ws(r)}var Xr=qs;function zs(r){return r!=null&&typeof r=="object"}var Yn=zs,Ks=Xr,Ys=Yn,Zs="[object Symbol]";function Js(r){return typeof r=="symbol"||Ys(r)&&Ks(r)==Zs}var js=Js,Xs=Ts,Hu=Kn,Qs=js,Gu=NaN,Vs=/^[-+]0x[0-9a-f]+$/i,ks=/^0b[01]+$/i,el=/^0o[0-7]+$/i,tl=parseInt;function nl(r){if(typeof r=="number")return r;if(Qs(r))return Gu;if(Hu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Hu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=Xs(r);var i=ks.test(r);return i||el.test(r)?tl(r.slice(2),i?2:8):Vs.test(r)?Gu:+r}var rl=nl,il=Kn,Qr=As,qu=rl,ul="Expected a function",ol=Math.max,fl=Math.min;function al(r,u,i){var a,c,g,y,A,T,P=0,$=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ul);u=qu(u)||0,il(i)&&($=!!i.leading,D="maxWait"in i,g=D?ol(qu(i.maxWait)||0,u):g,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,be=c;return a=c=void 0,P=k,y=r.apply(be,ne),y}function se(k){return P=k,A=setTimeout(Fe,u),$?M(k):y}function Ke(k){var ne=k-T,be=k-P,vt=u-ne;return D?fl(vt,g-be):vt}function ge(k){var ne=k-T,be=k-P;return T===void 0||ne>=u||ne<0||D&&be>=g}function Fe(){var k=Qr();if(ge(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,y)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?y:_t(Qr())}function we(){var k=Qr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return se(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(T)}return A===void 0&&(A=setTimeout(Fe,u)),y}return we.cancel=ye,we.flush=st,we}var sl=al;const zu=zn(sl),ll=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const g=I.reactive({...c});let y=i.formInit;Array.isArray(y)&&(y=Object.assign({},...y));const A=I.reactive({...y}),T=I.inject("vars"),P=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const $=i.useDebounce,D=zu(z=>{a("change-debounced",z)},$);console.log("watched"),I.watch(g,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),I.watch(A,(z,M)=>{D({locals:g,form:z,oldLocals:g,oldForm:M})})}},0)}),($,D)=>I.renderSlot($.$slots,"default",{locals:g,form:A,plaid:I.unref(P),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(d){var m=0;return function(){return m>>0)+"_",W=0;return m}),g("Symbol.iterator",function(d){if(d)return d;d=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(d,m){for(var b=0;br==null,gl=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),Vr=Symbol("encodeFragmentIdentifier");function _l(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[",c,"]"].join("")]:[...i,[he(u,r),"[",he(c,r),"]=",he(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),"[]"].join("")]:[...i,[he(u,r),"[]=",he(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[he(u,r),":list="].join("")]:[...i,[he(u,r),":list=",he(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[he(i,r),u,he(c,r)].join("")]:[[a,he(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,he(u,r)]:[...i,[he(u,r),"=",he(a,r)].join("")]}}function vl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const g=typeof a=="string"&&a.includes(r.arrayFormatSeparator),y=typeof a=="string"&&!g&&dt(a,r).includes(r.arrayFormatSeparator);a=y?dt(a,r):a;const A=g||y?a.split(r.arrayFormatSeparator).map(I=>dt(I,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const g=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!g){c[i]=a&&dt(a,r);return}const y=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=y;return}c[i]=[...c[i],...y]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Zu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function he(r,u){return u.encode?u.strict?gl(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?hl(r):r}function ju(r){return Array.isArray(r)?r.sort():typeof r=="object"?ju(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function Xu(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function yl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function Qu(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function kr(r){r=Xu(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ei(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Zu(u.arrayFormatSeparator);const i=vl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const g=u.decode?c.replaceAll("+"," "):c;let[y,A]=Ju(g,"=");y===void 0&&(y=g),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(y,u),A,a)}for(const[c,g]of Object.entries(a))if(typeof g=="object"&&g!==null)for(const[y,A]of Object.entries(g))g[y]=Qu(A,u);else a[c]=Qu(g,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,g)=>{const y=a[g];return c[g]=y&&typeof y=="object"&&!Array.isArray(y)?ju(y):y,c},Object.create(null))}function Vu(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Zu(u.arrayFormatSeparator);const i=y=>u.skipNull&&dl(r[y])||u.skipEmptyString&&r[y]==="",a=_l(u),c={};for(const[y,A]of Object.entries(r))i(y)||(c[y]=A);const g=Object.keys(c);return u.sort!==!1&&g.sort(u.sort),g.map(y=>{const A=r[y];return A===void 0?"":A===null?he(y,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?he(y,u)+"[]":A.reduce(a(y),[]).join("&"):he(y,u)+"="+he(A,u)}).filter(y=>y.length>0).join("&")}function ku(r,u){var c;u={decode:!0,...u};let[i,a]=Ju(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ei(kr(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function eo(r,u){u={encode:!0,strict:!0,[Vr]:!0,...u};const i=Xu(r.url).split("?")[0]||"",a=kr(r.url),c={...ei(a,{sort:!1}),...r.query};let g=Vu(c,u);g&&(g=`?${g}`);let y=yl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,y=u[Vr]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${g}${y}`}function to(r,u,i){i={parseFragmentIdentifier:!0,[Vr]:!1,...i};const{url:a,query:c,fragmentIdentifier:g}=ku(r,i);return eo({url:a,query:pl(c,u),fragmentIdentifier:g},i)}function wl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,g)=>!u(c,g);return to(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:wl,extract:kr,parse:ei,parseUrl:ku,pick:to,stringify:Vu,stringifyUrl:eo},Symbol.toStringTag,{value:"Module"}));function ml(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?oo(A,u-1,i,a,c):Ul(c,A):a||(c[c.length]=A)}return c}var Wl=oo;function Hl(r){return r}var fo=Hl;function Gl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var ql=Gl,zl=ql,ao=Math.max;function Kl(r,u,i){return u=ao(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,g=ao(a.length-u,0),y=Array(g);++c0){if(++u>=Mc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Wc=Bc,Hc=Dc,Gc=Wc,qc=Gc(Hc),zc=qc,Kc=fo,Yc=Yl,Jc=zc;function Zc(r,u){return Jc(Yc(r,u,Kc),r+"")}var ho=Zc,jc=Jn,Xc=jc(Object,"create"),Zn=Xc,po=Zn;function Qc(){this.__data__=po?po(null):{},this.size=0}var Vc=Qc;function kc(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var eh=kc,th=Zn,nh="__lodash_hash_undefined__",rh=Object.prototype,ih=rh.hasOwnProperty;function uh(r){var u=this.__data__;if(th){var i=u[r];return i===nh?void 0:i}return ih.call(u,r)?u[r]:void 0}var oh=uh,fh=Zn,ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;return fh?u[r]!==void 0:sh.call(u,r)}var ch=lh,hh=Zn,ph="__lodash_hash_undefined__";function dh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=hh&&u===void 0?ph:u,this}var gh=dh,_h=Vc,vh=eh,yh=oh,wh=ch,mh=gh;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Uh=Nh,Bh=jn;function Wh(r,u){var i=this.__data__,a=Bh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Hh=Wh,Gh=Sh,qh=Fh,zh=Dh,Kh=Uh,Yh=Hh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var vo=zp;function Kp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=cd){var P=u?null:sd(r);if(P)return ld(P);y=!1,c=ad,I=new ud}else I=u?[]:A;e:for(;++a-1&&r%1==0&&r<=dd}var _d=gd,vd=so,yd=_d;function wd(r){return r!=null&&yd(r.length)&&!vd(r)}var md=wd,Ad=md,Od=Yn;function Sd(r){return Od(r)&&Ad(r)}var Ao=Sd,Ed=Wl,bd=ho,xd=pd,Td=Ao,Id=bd(function(r){return xd(Ed(r,1,Td,!0))}),Rd=Id;const Cd=zn(Rd);function Ld(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Hd&&(g=Wd,y=!1,u=new Dd(u));e:for(;++c0&&(A=`?${A}`);let $=a.url+A;return a.fragmentIdentifier&&($=$+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:$},"",$],eventURL:`${a.url}?${gt.stringify(I,P)}`}}function Qd(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Cd(c,a);return}if(i.remove){const g=jd(c,...a);g.length===0?delete r[u]:r[u]=g}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Oo(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const g=r[c],y=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof g=="object"&&!(g instanceof File)&&!(g instanceof Date)?Oo(g,u,y):Vn(u,y,g)}),u}function Vd(r,u){if(u.length===0)return"";const i=g=>Object.keys(g).sort().map(y=>{const A=encodeURIComponent(g[y]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=g=>g.map(y=>typeof y=="object"&&!Array.isArray(y)?i(y):encodeURIComponent(y)).join(","),c=[];return u.forEach(g=>{const y=r[g.json_name];if(y===void 0)return;if(g.encoder){g.encoder({value:y,queries:c,tag:g});return}const A=encodeURIComponent(g.name);if(!(!y&&g.omitempty))if(y===null)c.push(`${A}=`);else if(Array.isArray(y)){if(g.omitempty&&r[g.json_name].length===0)return;c.push(`${A}=${a(r[g.json_name])}`)}else typeof y=="object"?c.push(`${A}=${i(y)}`):c.push(`${A}=${encodeURIComponent(y)}`)}),c.join("&")}function kd(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],g={};a.forEach(y=>{g[y]=(g[y]||0)+1});for(const y of c){if(!g[y]||g[y]===0)return!1;g[y]--}}return!0}function eg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return kd(a,c)}const tg=T.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=T.ref(),i=r,a=T.shallowRef(null),c=T.ref(0),g=I=>{a.value=ri(I,i.form,i.locals,u)},y=T.useSlots(),A=()=>{if(y.default){a.value=ri('',i.locals,u);return}const I=i.loader;I&&I.loadPortalBody(!0).form(i.form).go().then(P=>{P&&g(P.body)})};return T.onMounted(()=>{const I=i.portalName;I&&(window.__goplaid.portals[I]={updatePortalTemplate:g,reload:A}),A()}),T.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const I=parseInt(i.autoReloadInterval+"");if(I==0)return;c.value=setInterval(()=>{A()},I)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),T.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(I,P)=>r.visible?(T.openBlock(),T.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(T.openBlock(),T.createBlock(T.resolveDynamicComponent(a.value),{key:0},{default:T.withCtx(()=>[T.renderSlot(I.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):T.createCommentVNode("",!0)],512)):T.createCommentVNode("",!0)}}),ng=T.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=T.inject("vars").__emitter,a=T.useAttrs(),c={};return T.onMounted(()=>{Object.keys(a).forEach(g=>{if(g.startsWith("on")){const y=a[g],A=g.slice(2);c[A]=y,i.on(A,y)}})}),T.onUnmounted(()=>{Object.keys(c).forEach(g=>{i.off(g,c[g])})}),(g,y)=>T.createCommentVNode("",!0)}}),rg=T.defineComponent({__name:"parent-size-observer",setup(r){const u=T.ref({width:0,height:0});function i(c){const g=c.getBoundingClientRect();u.value.width=g.width,u.value.height=g.height}let a=null;return T.onMounted(()=>{var y;const c=T.getCurrentInstance(),g=(y=c==null?void 0:c.proxy)==null?void 0:y.$el.parentElement;g&&(i(g),a=new ResizeObserver(()=>{i(g)}),a.observe(g))}),T.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,g)=>T.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+d+"--"),new Blob(m,{type:"multipart/form-data; boundary="+d})},Ze.prototype[Symbol.iterator]=function(){return this.entries()},Ze.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(d){d=(this.document||this.ownerDocument).querySelectorAll(d);for(var m=d.length;0<=--m&&d.item(m)!==this;);return-1r==null,_l=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),kr=Symbol("encodeFragmentIdentifier");function vl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function yl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const g=typeof a=="string"&&a.includes(r.arrayFormatSeparator),y=typeof a=="string"&&!g&&dt(a,r).includes(r.arrayFormatSeparator);a=y?dt(a,r):a;const A=g||y?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const g=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!g){c[i]=a&&dt(a,r);return}const y=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=y;return}c[i]=[...c[i],...y]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ju(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?_l(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?pl(r):r}function Xu(r){return Array.isArray(r)?r.sort():typeof r=="object"?Xu(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function Qu(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function wl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function Vu(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ei(r){r=Qu(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ti(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ju(u.arrayFormatSeparator);const i=yl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const g=u.decode?c.replaceAll("+"," "):c;let[y,A]=Ju(g,"=");y===void 0&&(y=g),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(y,u),A,a)}for(const[c,g]of Object.entries(a))if(typeof g=="object"&&g!==null)for(const[y,A]of Object.entries(g))g[y]=Vu(A,u);else a[c]=Vu(g,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,g)=>{const y=a[g];return c[g]=y&&typeof y=="object"&&!Array.isArray(y)?Xu(y):y,c},Object.create(null))}function ku(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ju(u.arrayFormatSeparator);const i=y=>u.skipNull&&gl(r[y])||u.skipEmptyString&&r[y]==="",a=vl(u),c={};for(const[y,A]of Object.entries(r))i(y)||(c[y]=A);const g=Object.keys(c);return u.sort!==!1&&g.sort(u.sort),g.map(y=>{const A=r[y];return A===void 0?"":A===null?pe(y,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(y,u)+"[]":A.reduce(a(y),[]).join("&"):pe(y,u)+"="+pe(A,u)}).filter(y=>y.length>0).join("&")}function eo(r,u){var c;u={decode:!0,...u};let[i,a]=Ju(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ti(ei(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function to(r,u){u={encode:!0,strict:!0,[kr]:!0,...u};const i=Qu(r.url).split("?")[0]||"",a=ei(r.url),c={...ti(a,{sort:!1}),...r.query};let g=ku(c,u);g&&(g=`?${g}`);let y=wl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,y=u[kr]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${g}${y}`}function no(r,u,i){i={parseFragmentIdentifier:!0,[kr]:!1,...i};const{url:a,query:c,fragmentIdentifier:g}=eo(r,i);return to({url:a,query:dl(c,u),fragmentIdentifier:g},i)}function ml(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,g)=>!u(c,g);return no(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:ml,extract:ei,parse:ti,parseUrl:eo,pick:no,stringify:ku,stringifyUrl:to},Symbol.toStringTag,{value:"Module"}));function Al(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?fo(A,u-1,i,a,c):Bl(c,A):a||(c[c.length]=A)}return c}var Hl=fo;function Gl(r){return r}var ao=Gl;function ql(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var zl=ql,Kl=zl,so=Math.max;function Yl(r,u,i){return u=so(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,g=so(a.length-u,0),y=Array(g);++c0){if(++u>=Uc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Hc=Wc,Gc=Mc,qc=Hc,zc=qc(Gc),Kc=zc,Yc=ao,Zc=Zl,Jc=Kc;function jc(r,u){return Jc(Zc(r,u,Yc),r+"")}var po=jc,Xc=Zn,Qc=Xc(Object,"create"),Jn=Qc,go=Jn;function Vc(){this.__data__=go?go(null):{},this.size=0}var kc=Vc;function eh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var th=eh,nh=Jn,rh="__lodash_hash_undefined__",ih=Object.prototype,uh=ih.hasOwnProperty;function oh(r){var u=this.__data__;if(nh){var i=u[r];return i===rh?void 0:i}return uh.call(u,r)?u[r]:void 0}var fh=oh,ah=Jn,sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;return ah?u[r]!==void 0:lh.call(u,r)}var hh=ch,ph=Jn,dh="__lodash_hash_undefined__";function gh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=ph&&u===void 0?dh:u,this}var _h=gh,vh=kc,yh=th,wh=fh,mh=hh,Ah=_h;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Bh=Nh,Wh=jn;function Hh(r,u){var i=this.__data__,a=Wh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Gh=Hh,qh=xh,zh=$h,Kh=Mh,Yh=Bh,Zh=Gh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var yo=Kp;function Yp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=hd){var P=u?null:ld(r);if(P)return cd(P);y=!1,c=sd,T=new od}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=gd}var vd=_d,yd=lo,wd=vd;function md(r){return r!=null&&wd(r.length)&&!yd(r)}var Ad=md,Sd=Ad,Od=Yn;function xd(r){return Od(r)&&Sd(r)}var So=xd,bd=Hl,Ed=po,Id=dd,Td=So,Rd=Ed(function(r){return Id(bd(r,1,Td,!0))}),Cd=Rd;const Ld=zn(Cd);function Fd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Gd&&(g=Hd,y=!1,u=new Md(u));e:for(;++c0&&(A=`?${A}`);let $=a.url+A;return a.fragmentIdentifier&&($=$+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:$},"",$],eventURL:`${a.url}?${gt.stringify(T,P)}`}}function Vd(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Ld(c,a);return}if(i.remove){const g=Xd(c,...a);g.length===0?delete r[u]:r[u]=g}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Nt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Nt(r,u,i.value):!1;default:return Nt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Nt(r,u,i.value);if(i==null)return Nt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Oo(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const g=r[c],y=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof g=="object"&&!(g instanceof File)&&!(g instanceof Date)?Oo(g,u,y):Vn(u,y,g)}),u}function kd(r,u){if(u.length===0)return"";const i=g=>Object.keys(g).sort().map(y=>{const A=encodeURIComponent(g[y]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=g=>g.map(y=>typeof y=="object"&&!Array.isArray(y)?i(y):encodeURIComponent(y)).join(","),c=[];return u.forEach(g=>{const y=r[g.json_name];if(y===void 0)return;if(g.encoder){g.encoder({value:y,queries:c,tag:g});return}const A=encodeURIComponent(g.name);if(!(!y&&g.omitempty))if(y===null)c.push(`${A}=`);else if(Array.isArray(y)){if(g.omitempty&&r[g.json_name].length===0)return;c.push(`${A}=${a(r[g.json_name])}`)}else typeof y=="object"?c.push(`${A}=${i(y)}`):c.push(`${A}=${encodeURIComponent(y)}`)}),c.join("&")}function eg(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],g={};a.forEach(y=>{g[y]=(g[y]||0)+1});for(const y of c){if(!g[y]||g[y]===0)return!1;g[y]--}}return!0}function tg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return eg(a,c)}function kn(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}const ng=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),g=T=>{a.value=ii(T,i.form,i.locals,u)},y=I.useSlots(),A=()=>{if(y.default){a.value=ii('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&g(P.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:g,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),rg=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(g=>{if(g.startsWith("on")){const y=a[g],A=g.slice(2);c[A]=y,i.on(A,y)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(g=>{i.off(g,c[g])})}),(g,y)=>I.createCommentVNode("",!0)}}),ig=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const g=c.getBoundingClientRect();u.value.width=g.width,u.value.height=g.height}let a=null;return I.onMounted(()=>{var y;const c=I.getCurrentInstance(),g=(y=c==null?void 0:c.proxy)==null?void 0:y.$el.parentElement;g&&(i(g),a=new ResizeObserver(()=>{i(g)}),a.observe(g))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,g)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var ig=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var g in c)c.hasOwnProperty(g)&&(a[g]=c[g])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),ug=Object.prototype.hasOwnProperty;function ii(r,u){return ug.call(r,u)}function ui(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function So(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function fi(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&I[$-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[M]===void 0?z=I.slice(0,$).join("/"):$==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),$++,Array.isArray(P)){if(M==="-")M=P.length;else{if(i&&!oi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",g,u,r);oi(M)&&(M=~~M)}if($>=D){if(i&&u.op==="add"&&M>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",g,u,r);var y=fg[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}}else if($>=D){var y=en[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}if(P=P[M],i&&$0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&fi(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,g=a.split("/").length;if(c!==g+1&&c!==g)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var y={op:"_get",path:r.from,value:void 0},A=xo([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function xo(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)ai(Ue(u),Ue(r),i||!0);else{i=i||er;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function xo(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ai(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[$-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[M]===void 0?z=T.slice(0,$).join("/"):$==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),$++,Array.isArray(P)){if(M==="-")M=P.length;else{if(i&&!fi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",g,u,r);fi(M)&&(M=~~M)}if($>=D){if(i&&u.op==="add"&&M>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",g,u,r);var y=ag[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}}else if($>=D){var y=en[u.op].call(u,P,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",g,u,r);return y}if(P=P[M],i&&$0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ai(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,g=a.split("/").length;if(c!==g+1&&c!==g)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var y={op:"_get",path:r.from,value:void 0},A=Io([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Io(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)si(Ne(u),Ne(r),i||!0);else{i=i||tr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function ci(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var g=ui(u),y=ui(r),A=!1,I=y.length-1;I>=0;I--){var P=y[I],$=r[P];if(ii(u,P)&&!(u[P]===void 0&&$!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof $=="object"&&$!=null&&typeof D=="object"&&D!=null&&Array.isArray($)===Array.isArray(D)?ci($,D,i,a+"/"+Bt(P),c):$!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ue($)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&g.length==y.length))for(var I=0;I0&&(r.patches=[],r.callback&&r.callback(a)),a}function hi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var g=oi(u),y=oi(r),A=!1,T=y.length-1;T>=0;T--){var P=y[T],$=r[P];if(ui(u,P)&&!(u[P]===void 0&&$!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof $=="object"&&$!=null&&typeof D=="object"&&D!=null&&Array.isArray($)===Array.isArray(D)?hi($,D,i,a+"/"+Bt(P),c):$!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ne($)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Ne(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ne($)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&g.length==y.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */tr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",P=500,$="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,de=1,Fe=2,_t=4,ve=8,st=16,ye=32,k=64,ne=128,be=256,vt=512,yt=30,pe="...",di=800,An=16,On=1,nr=2,lt=3,me=1/0,Ye=9007199254740991,Je=17976931348623157e292,tn=NaN,d=4294967295,m=d-1,b=d>>>1,C=[["ary",ne],["bind",de],["bindKey",Fe],["curry",ve],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",$e="[object AsyncFunction]",Ae="[object Boolean]",Sn="[object Date]",Mg="[object DOMException]",rr="[object Error]",ir="[object Function]",Co="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",Ng="[object Null]",wt="[object Object]",Lo="[object Promise]",Ug="[object Proxy]",bn="[object RegExp]",it="[object Set]",xn="[object String]",ur="[object Symbol]",Bg="[object Undefined]",Tn="[object WeakMap]",Wg="[object WeakSet]",In="[object ArrayBuffer]",nn="[object DataView]",gi="[object Float32Array]",_i="[object Float64Array]",vi="[object Int8Array]",yi="[object Int16Array]",wi="[object Int32Array]",mi="[object Uint8Array]",Ai="[object Uint8ClampedArray]",Oi="[object Uint16Array]",Si="[object Uint32Array]",Hg=/\b__p \+= '';/g,Gg=/\b(__p \+=) '' \+/g,qg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fo=/&(?:amp|lt|gt|quot|#39);/g,$o=/[&<>"']/g,zg=RegExp(Fo.source),Kg=RegExp($o.source),Yg=/<%-([\s\S]+?)%>/g,Jg=/<%([\s\S]+?)%>/g,Po=/<%=([\s\S]+?)%>/g,Zg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jg=/^\w*$/,Xg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ei=/[\\^$.*+?()[\]{}|]/g,Qg=RegExp(Ei.source),bi=/^\s+/,Vg=/\s/,kg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,e_=/\{\n\/\* \[wrapped with (.+)\] \*/,t_=/,? & /,n_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,r_=/[()=,{}\[\]\/\s]/,i_=/\\(\\)?/g,u_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Do=/\w*$/,o_=/^[-+]0x[0-9a-f]+$/i,f_=/^0b[01]+$/i,a_=/^\[object .+?Constructor\]$/,s_=/^0o[0-7]+$/i,l_=/^(?:0|[1-9]\d*)$/,c_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,or=/($^)/,h_=/['\n\r\u2028\u2029\\]/g,fr="\\ud800-\\udfff",p_="\\u0300-\\u036f",d_="\\ufe20-\\ufe2f",g_="\\u20d0-\\u20ff",Mo=p_+d_+g_,No="\\u2700-\\u27bf",Uo="a-z\\xdf-\\xf6\\xf8-\\xff",__="\\xac\\xb1\\xd7\\xf7",v_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",y_="\\u2000-\\u206f",w_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bo="A-Z\\xc0-\\xd6\\xd8-\\xde",Wo="\\ufe0e\\ufe0f",Ho=__+v_+y_+w_,xi="['’]",m_="["+fr+"]",Go="["+Ho+"]",ar="["+Mo+"]",qo="\\d+",A_="["+No+"]",zo="["+Uo+"]",Ko="[^"+fr+Ho+qo+No+Uo+Bo+"]",Ti="\\ud83c[\\udffb-\\udfff]",O_="(?:"+ar+"|"+Ti+")",Yo="[^"+fr+"]",Ii="(?:\\ud83c[\\udde6-\\uddff]){2}",Ri="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Bo+"]",Jo="\\u200d",Zo="(?:"+zo+"|"+Ko+")",S_="(?:"+rn+"|"+Ko+")",jo="(?:"+xi+"(?:d|ll|m|re|s|t|ve))?",Xo="(?:"+xi+"(?:D|LL|M|RE|S|T|VE))?",Qo=O_+"?",Vo="["+Wo+"]?",E_="(?:"+Jo+"(?:"+[Yo,Ii,Ri].join("|")+")"+Vo+Qo+")*",b_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",x_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ko=Vo+Qo+E_,T_="(?:"+[A_,Ii,Ri].join("|")+")"+ko,I_="(?:"+[Yo+ar+"?",ar,Ii,Ri,m_].join("|")+")",R_=RegExp(xi,"g"),C_=RegExp(ar,"g"),Ci=RegExp(Ti+"(?="+Ti+")|"+I_+ko,"g"),L_=RegExp([rn+"?"+zo+"+"+jo+"(?="+[Go,rn,"$"].join("|")+")",S_+"+"+Xo+"(?="+[Go,rn+Zo,"$"].join("|")+")",rn+"?"+Zo+"+"+jo,rn+"+"+Xo,x_,b_,qo,T_].join("|"),"g"),F_=RegExp("["+Jo+fr+Mo+Wo+"]"),$_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,P_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],D_=-1,ie={};ie[gi]=ie[_i]=ie[vi]=ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Oi]=ie[Si]=!0,ie[W]=ie[re]=ie[In]=ie[Ae]=ie[nn]=ie[Sn]=ie[rr]=ie[ir]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[xn]=ie[Tn]=!1;var te={};te[W]=te[re]=te[In]=te[nn]=te[Ae]=te[Sn]=te[gi]=te[_i]=te[vi]=te[yi]=te[wi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[xn]=te[ur]=te[mi]=te[Ai]=te[Oi]=te[Si]=!0,te[rr]=te[ir]=te[Tn]=!1;var M_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},N_={"&":"&","<":"<",">":">",'"':""","'":"'"},U_={"&":"&","<":"<",">":">",""":'"',"'":"'"},B_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},W_=parseFloat,H_=parseInt,ef=typeof nt=="object"&&nt&&nt.Object===Object&&nt,G_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ef||G_||Function("return this")(),Li=u&&!u.nodeType&&u,Ht=Li&&!0&&r&&!r.nodeType&&r,tf=Ht&&Ht.exports===Li,Fi=tf&&ef.process,Ze=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||Fi&&Fi.binding&&Fi.binding("util")}catch{}}(),nf=Ze&&Ze.isArrayBuffer,rf=Ze&&Ze.isDate,uf=Ze&&Ze.isMap,of=Ze&&Ze.isRegExp,ff=Ze&&Ze.isSet,af=Ze&&Ze.isTypedArray;function Be(_,O,w){switch(w.length){case 0:return _.call(O);case 1:return _.call(O,w[0]);case 2:return _.call(O,w[0],w[1]);case 3:return _.call(O,w[0],w[1],w[2])}return _.apply(O,w)}function q_(_,O,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function $i(_,O,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function _f(_,O){for(var w=_.length;w--&&un(O,_[w],0)>-1;);return w}function V_(_,O){for(var w=_.length,L=0;w--;)_[w]===O&&++L;return L}var k_=Ni(M_),ev=Ni(N_);function tv(_){return"\\"+B_[_]}function nv(_,O){return _==null?i:_[O]}function on(_){return F_.test(_)}function rv(_){return $_.test(_)}function iv(_){for(var O,w=[];!(O=_.next()).done;)w.push(O.value);return w}function Hi(_){var O=-1,w=Array(_.size);return _.forEach(function(L,H){w[++O]=[H,L]}),w}function vf(_,O){return function(w){return _(O(w))}}function Lt(_,O){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Kv(e,t){var n=this.__data__,o=xr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Hv,mt.prototype.delete=Gv,mt.prototype.get=qv,mt.prototype.has=zv,mt.prototype.set=Kv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,v=t&z,S=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var E=G(e);if(E){if(h=j0(e),!p)return Pe(e,h)}else{var x=Te(e),R=x==ir||x==Co;if(Nt(e))return kf(e,p);if(x==wt||x==W||R&&!f){if(h=v||R?{}:ya(e),!p)return v?U0(e,f0(h,e)):N0(e,Rf(h,e))}else{if(!te[x])return f?e:{};h=X0(e,x,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Ja(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ka(e)&&e.forEach(function(B,J){h.set(J,Ve(B,t,n,J,e,l))});var U=S?v?pu:hu:v?Me:we,K=E?i:U(e);return je(K||e,function(B,J){K&&(J=B,B=e[J]),Dn(h,J,Ve(B,t,n,J,e,l))}),h}function a0(e){var t=we(e);return function(n){return Cf(n,e,t)}}function Cf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Lf(e,t,n){if(typeof e!="function")throw new Xe(y);return Gn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=sr,h=!0,p=e.length,v=[],S=t.length;if(!p)return v;n&&(t=ue(t,We(n))),o?(l=$i,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:q(o),o<0&&(o+=f),o=n>o?0:ja(o);n0&&n(p)?t>1?Se(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Zi=ua(),Pf=ua(!0);function ct(e,t){return e&&Zi(e,t,we)}function ji(e,t){return e&&Pf(e,t,we)}function Ir(e,t){return Rt(t,function(n){return xt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function c0(e,t){return e!=null&&V.call(e,t)}function h0(e,t){return e!=null&&t in ee(e)}function p0(e,t,n){return e>=xe(t,n)&&e<_e(t,n)}function Qi(e,t,n){for(var o=n?$i:sr,f=e[0].length,l=e.length,h=l,p=w(l),v=1/0,S=[];h--;){var E=e[h];h&&t&&(E=ue(E,We(t))),v=xe(E.length,v),p[h]=!n&&(t||f>=120&&E.length>=120)?new zt(h&&E):i}E=e[0];var x=-1,R=p[0];e:for(;++x-1;)p!==e&&wr.call(p,v,1),wr.call(e,v,1);return e}function Kf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?wr.call(e,f,1):uu(e,f)}}return e}function nu(e,t){return e+Or(bf()*(t-e+1))}function x0(e,t,n,o){for(var f=-1,l=_e(Ar((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function ru(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=Or(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return mu(Aa(e,t,Ne),e+"")}function T0(e){return If(vn(e))}function I0(e,t){var n=vn(e);return Br(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!Ge(h)&&(n?h<=t:h=c){var S=t?null:G0(e);if(S)return cr(S);h=!1,f=Rn,v=new zt}else v=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var Vf=wv||function(e){return Oe.clearTimeout(e)};function kf(e,t){if(t)return e.slice();var n=e.length,o=mf?mf(n):new e.constructor(n);return e.copy(o),o}function su(e){var t=new e.constructor(e.byteLength);return new vr(t).set(new vr(e)),t}function $0(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function P0(e){var t=new e.constructor(e.source,Do.exec(e));return t.lastIndex=e.lastIndex,t}function D0(e){return Pn?ee(Pn.call(e)):{}}function ea(e,t){var n=t?su(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=Ge(e),h=t!==i,p=t===null,v=t===t,S=Ge(t);if(!p&&!S&&!l&&e>t||l&&h&&v&&!p&&!S||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!S&&e=p)return v;var S=n[o];return v*(S=="desc"?-1:1)}}return e.index-t.index}function na(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,S=_e(l-h,0),E=w(v+S),x=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function aa(e){return Et(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(y);if(f&&!h&&Nr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),E&&vp))return!1;var S=l.get(e),E=l.get(t);if(S&&E)return S==t&&E==e;var x=-1,R=!0,F=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++x1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(kg,`{ + */nr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,$="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,ge=1,Fe=2,_t=4,ye=8,st=16,we=32,k=64,ne=128,be=256,vt=512,yt=30,de="...",gi=800,An=16,Sn=1,rr=2,lt=3,Ae=1/0,Ye=9007199254740991,Ze=17976931348623157e292,tn=NaN,d=4294967295,m=d-1,b=d>>>1,C=[["ary",ne],["bind",ge],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",$e="[object AsyncFunction]",Se="[object Boolean]",On="[object Date]",Ng="[object DOMException]",ir="[object Error]",ur="[object Function]",Lo="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Bg="[object Null]",wt="[object Object]",Fo="[object Promise]",Wg="[object Proxy]",bn="[object RegExp]",it="[object Set]",En="[object String]",or="[object Symbol]",Hg="[object Undefined]",In="[object WeakMap]",Gg="[object WeakSet]",Tn="[object ArrayBuffer]",nn="[object DataView]",_i="[object Float32Array]",vi="[object Float64Array]",yi="[object Int8Array]",wi="[object Int16Array]",mi="[object Int32Array]",Ai="[object Uint8Array]",Si="[object Uint8ClampedArray]",Oi="[object Uint16Array]",xi="[object Uint32Array]",qg=/\b__p \+= '';/g,zg=/\b(__p \+=) '' \+/g,Kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$o=/&(?:amp|lt|gt|quot|#39);/g,Po=/[&<>"']/g,Yg=RegExp($o.source),Zg=RegExp(Po.source),Jg=/<%-([\s\S]+?)%>/g,jg=/<%([\s\S]+?)%>/g,Do=/<%=([\s\S]+?)%>/g,Xg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qg=/^\w*$/,Vg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bi=/[\\^$.*+?()[\]{}|]/g,kg=RegExp(bi.source),Ei=/^\s+/,e_=/\s/,t_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,n_=/\{\n\/\* \[wrapped with (.+)\] \*/,r_=/,? & /,i_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,u_=/[()=,{}\[\]\/\s]/,o_=/\\(\\)?/g,f_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Mo=/\w*$/,a_=/^[-+]0x[0-9a-f]+$/i,s_=/^0b[01]+$/i,l_=/^\[object .+?Constructor\]$/,c_=/^0o[0-7]+$/i,h_=/^(?:0|[1-9]\d*)$/,p_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fr=/($^)/,d_=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",g_="\\u0300-\\u036f",__="\\ufe20-\\ufe2f",v_="\\u20d0-\\u20ff",Uo=g_+__+v_,No="\\u2700-\\u27bf",Bo="a-z\\xdf-\\xf6\\xf8-\\xff",y_="\\xac\\xb1\\xd7\\xf7",w_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",m_="\\u2000-\\u206f",A_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Wo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ho="\\ufe0e\\ufe0f",Go=y_+w_+m_+A_,Ii="['’]",S_="["+ar+"]",qo="["+Go+"]",sr="["+Uo+"]",zo="\\d+",O_="["+No+"]",Ko="["+Bo+"]",Yo="[^"+ar+Go+zo+No+Bo+Wo+"]",Ti="\\ud83c[\\udffb-\\udfff]",x_="(?:"+sr+"|"+Ti+")",Zo="[^"+ar+"]",Ri="(?:\\ud83c[\\udde6-\\uddff]){2}",Ci="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Wo+"]",Jo="\\u200d",jo="(?:"+Ko+"|"+Yo+")",b_="(?:"+rn+"|"+Yo+")",Xo="(?:"+Ii+"(?:d|ll|m|re|s|t|ve))?",Qo="(?:"+Ii+"(?:D|LL|M|RE|S|T|VE))?",Vo=x_+"?",ko="["+Ho+"]?",E_="(?:"+Jo+"(?:"+[Zo,Ri,Ci].join("|")+")"+ko+Vo+")*",I_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",T_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ef=ko+Vo+E_,R_="(?:"+[O_,Ri,Ci].join("|")+")"+ef,C_="(?:"+[Zo+sr+"?",sr,Ri,Ci,S_].join("|")+")",L_=RegExp(Ii,"g"),F_=RegExp(sr,"g"),Li=RegExp(Ti+"(?="+Ti+")|"+C_+ef,"g"),$_=RegExp([rn+"?"+Ko+"+"+Xo+"(?="+[qo,rn,"$"].join("|")+")",b_+"+"+Qo+"(?="+[qo,rn+jo,"$"].join("|")+")",rn+"?"+jo+"+"+Xo,rn+"+"+Qo,T_,I_,zo,R_].join("|"),"g"),P_=RegExp("["+Jo+ar+Uo+Ho+"]"),D_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,M_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],U_=-1,ie={};ie[_i]=ie[vi]=ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=!0,ie[W]=ie[re]=ie[Tn]=ie[Se]=ie[nn]=ie[On]=ie[ir]=ie[ur]=ie[rt]=ie[xn]=ie[wt]=ie[bn]=ie[it]=ie[En]=ie[In]=!1;var te={};te[W]=te[re]=te[Tn]=te[nn]=te[Se]=te[On]=te[_i]=te[vi]=te[yi]=te[wi]=te[mi]=te[rt]=te[xn]=te[wt]=te[bn]=te[it]=te[En]=te[or]=te[Ai]=te[Si]=te[Oi]=te[xi]=!0,te[ir]=te[ur]=te[In]=!1;var N_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},B_={"&":"&","<":"<",">":">",'"':""","'":"'"},W_={"&":"&","<":"<",">":">",""":'"',"'":"'"},H_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},G_=parseFloat,q_=parseInt,tf=typeof nt=="object"&&nt&&nt.Object===Object&&nt,z_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=tf||z_||Function("return this")(),Fi=u&&!u.nodeType&&u,Ht=Fi&&!0&&r&&!r.nodeType&&r,nf=Ht&&Ht.exports===Fi,$i=nf&&tf.process,Je=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||$i&&$i.binding&&$i.binding("util")}catch{}}(),rf=Je&&Je.isArrayBuffer,uf=Je&&Je.isDate,of=Je&&Je.isMap,ff=Je&&Je.isRegExp,af=Je&&Je.isSet,sf=Je&&Je.isTypedArray;function Be(_,S,w){switch(w.length){case 0:return _.call(S);case 1:return _.call(S,w[0]);case 2:return _.call(S,w[0],w[1]);case 3:return _.call(S,w[0],w[1],w[2])}return _.apply(S,w)}function K_(_,S,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Pi(_,S,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function vf(_,S){for(var w=_.length;w--&&un(S,_[w],0)>-1;);return w}function ev(_,S){for(var w=_.length,L=0;w--;)_[w]===S&&++L;return L}var tv=Ni(N_),nv=Ni(B_);function rv(_){return"\\"+H_[_]}function iv(_,S){return _==null?i:_[S]}function on(_){return P_.test(_)}function uv(_){return D_.test(_)}function ov(_){for(var S,w=[];!(S=_.next()).done;)w.push(S.value);return w}function Gi(_){var S=-1,w=Array(_.size);return _.forEach(function(L,H){w[++S]=[H,L]}),w}function yf(_,S){return function(w){return _(S(w))}}function Lt(_,S){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Zv(e,t){var n=this.__data__,o=Ir(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=qv,mt.prototype.delete=zv,mt.prototype.get=Kv,mt.prototype.has=Yv,mt.prototype.set=Zv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,v=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=G(e);if(x){if(h=Q0(e),!p)return Pe(e,h)}else{var E=Ie(e),R=E==ur||E==Lo;if(Ut(e))return ea(e,p);if(E==wt||E==W||R&&!f){if(h=v||R?{}:wa(e),!p)return v?W0(e,s0(h,e)):B0(e,Cf(h,e))}else{if(!te[E])return f?e:{};h=V0(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Ja(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ya(e)&&e.forEach(function(B,Z){h.set(Z,Ve(B,t,n,Z,e,l))});var N=O?v?du:pu:v?Me:me,K=x?i:N(e);return je(K||e,function(B,Z){K&&(Z=B,B=e[Z]),Dn(h,Z,Ve(B,t,n,Z,e,l))}),h}function l0(e){var t=me(e);return function(n){return Lf(n,e,t)}}function Lf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Ff(e,t,n){if(typeof e!="function")throw new Xe(y);return Gn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=lr,h=!0,p=e.length,v=[],O=t.length;if(!p)return v;n&&(t=ue(t,We(n))),o?(l=Pi,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:q(o),o<0&&(o+=f),o=n>o?0:Xa(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ji=oa(),Df=oa(!0);function ct(e,t){return e&&ji(e,t,me)}function Xi(e,t){return e&&Df(e,t,me)}function Rr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function p0(e,t){return e!=null&&V.call(e,t)}function d0(e,t){return e!=null&&t in ee(e)}function g0(e,t,n){return e>=Ee(t,n)&&e=120&&x.length>=120)?new zt(h&&x):i}x=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&mr.call(p,v,1),mr.call(e,v,1);return e}function Yf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?mr.call(e,f,1):ou(e,f)}}return e}function ru(e,t){return e+Or(Ef()*(t-e+1))}function T0(e,t,n,o){for(var f=-1,l=ve(Sr((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function iu(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=Or(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return Au(Sa(e,t,Ue),e+"")}function R0(e){return Rf(vn(e))}function C0(e,t){var n=vn(e);return Wr(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!Ge(h)&&(n?h<=t:h=c){var O=t?null:z0(e);if(O)return hr(O);h=!1,f=Rn,v=new zt}else v=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var kf=Av||function(e){return Oe.clearTimeout(e)};function ea(e,t){if(t)return e.slice();var n=e.length,o=Af?Af(n):new e.constructor(n);return e.copy(o),o}function lu(e){var t=new e.constructor(e.byteLength);return new yr(t).set(new yr(e)),t}function D0(e,t){var n=t?lu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function M0(e){var t=new e.constructor(e.source,Mo.exec(e));return t.lastIndex=e.lastIndex,t}function U0(e){return Pn?ee(Pn.call(e)):{}}function ta(e,t){var n=t?lu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function na(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=Ge(e),h=t!==i,p=t===null,v=t===t,O=Ge(t);if(!p&&!O&&!l&&e>t||l&&h&&v&&!p&&!O||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!O&&e=p)return v;var O=n[o];return v*(O=="desc"?-1:1)}}return e.index-t.index}function ra(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,O=ve(l-h,0),x=w(v+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function sa(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(y);if(f&&!h&&Nr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&vp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var E=-1,R=!0,F=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(t_,`{ /* [wrapped with `+t+`] */ -`)}function V0(e){return G(e)||jt(e)||!!(Sf&&e&&e[Sf])}function bt(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&l_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=di)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Br(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,$a(e,n)});function Pa(e){var t=s(e);return t.__chain__=!0,t}function sy(e,t){return t(e),e}function Wr(e,t){return t(e)}var ly=Et(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Ji(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Wr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function cy(){return Pa(this)}function hy(){return new Qe(this.value(),this.__chain__)}function py(){this.__values__===i&&(this.__values__=Za(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function dy(){return this}function gy(e){for(var t,n=this;n instanceof br;){var o=Ta(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function _y(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Wr,args:[Au],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Au)}function vy(){return Xf(this.__wrapped__,this.__actions__)}var yy=Fr(function(e,t,n){V.call(e,n)?++e[n]:Ot(e,n,1)});function wy(e,t,n){var o=G(e)?sf:s0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function my(e,t){var n=G(e)?Rt:$f;return n(e,N(t,3))}var Ay=fa(Ia),Oy=fa(Ra);function Sy(e,t){return Se(Hr(e,t),1)}function Ey(e,t){return Se(Hr(e,t),me)}function by(e,t,n){return n=n===i?1:q(n),Se(Hr(e,t),n)}function Da(e,t){var n=G(e)?je:$t;return n(e,N(t,3))}function Ma(e,t){var n=G(e)?z_:Ff;return n(e,N(t,3))}var xy=Fr(function(e,t,n){V.call(e,n)?e[n].push(t):Ot(e,n,[t])});function Ty(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?q(n):0;var f=e.length;return n<0&&(n=_e(f+n,0)),Yr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var Iy=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return $t(e,function(h){l[++o]=f?Be(t,h,n):Nn(h,t,n)}),l}),Ry=Fr(function(e,t,n){Ot(e,n,t)});function Hr(e,t){var n=G(e)?ue:Bf;return n(e,N(t,3))}function Cy(e,t,n,o){return e==null?[]:(G(t)||(t=t==null?[]:[t]),n=o?i:n,G(n)||(n=n==null?[]:[n]),qf(e,t,n))}var Ly=Fr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Fy(e,t,n){var o=G(e)?Pi:pf,f=arguments.length<3;return o(e,N(t,4),n,f,$t)}function $y(e,t,n){var o=G(e)?K_:pf,f=arguments.length<3;return o(e,N(t,4),n,f,Ff)}function Py(e,t){var n=G(e)?Rt:$f;return n(e,zr(N(t,3)))}function Dy(e){var t=G(e)?If:T0;return t(e)}function My(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=q(t);var o=G(e)?i0:I0;return o(e,t)}function Ny(e){var t=G(e)?u0:C0;return t(e)}function Uy(e){if(e==null)return 0;if(De(e))return Yr(e)?fn(e):e.length;var t=Te(e);return t==rt||t==it?e.size:ki(e).length}function By(e,t,n){var o=G(e)?Di:L0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Wy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),qf(e,Se(t,1),[])}),Gr=mv||function(){return Oe.Date.now()};function Hy(e,t){if(typeof t!="function")throw new Xe(y);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Na(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,St(e,ne,i,i,i,i,t)}function Ua(e,t){var n;if(typeof t!="function")throw new Xe(y);return e=q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Su=Y(function(e,t,n){var o=de;if(n.length){var f=Lt(n,gn(Su));o|=ye}return St(e,o,t,n,f)}),Ba=Y(function(e,t,n){var o=de|Fe;if(n.length){var f=Lt(n,gn(Ba));o|=ye}return St(t,o,e,n,f)});function Wa(e,t,n){t=n?i:t;var o=St(e,ve,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function Ha(e,t,n){t=n?i:t;var o=St(e,st,i,i,i,i,i,t);return o.placeholder=Ha.placeholder,o}function Ga(e,t,n){var o,f,l,h,p,v,S=0,E=!1,x=!1,R=!0;if(typeof e!="function")throw new Xe(y);t=tt(t)||0,oe(n)&&(E=!!n.leading,x="maxWait"in n,l=x?_e(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(ce){var at=o,It=f;return o=f=i,S=ce,h=e.apply(It,at),h}function U(ce){return S=ce,p=Gn(J,t),E?F(ce):h}function K(ce){var at=ce-v,It=ce-S,fs=t-at;return x?xe(fs,l-It):fs}function B(ce){var at=ce-v,It=ce-S;return v===i||at>=t||at<0||x&&It>=l}function J(){var ce=Gr();if(B(ce))return j(ce);p=Gn(J,K(ce))}function j(ce){return p=i,R&&o?F(ce):(o=f=i,h)}function qe(){p!==i&&Vf(p),S=0,o=v=f=p=i}function Le(){return p===i?h:j(Gr())}function ze(){var ce=Gr(),at=B(ce);if(o=arguments,f=this,v=ce,at){if(p===i)return U(v);if(x)return Vf(p),p=Gn(J,t),F(v)}return p===i&&(p=Gn(J,t)),h}return ze.cancel=qe,ze.flush=Le,ze}var Gy=Y(function(e,t){return Lf(e,1,t)}),qy=Y(function(e,t,n){return Lf(e,tt(t)||0,n)});function zy(e){return St(e,vt)}function qr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(y);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(qr.Cache||At),n}qr.Cache=At;function zr(e){if(typeof e!="function")throw new Xe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ky(e){return Ua(2,e)}var Yy=F0(function(e,t){t=t.length==1&&G(t[0])?ue(t[0],We(N())):ue(Se(t,1),We(N()));var n=t.length;return Y(function(o){for(var f=-1,l=xe(o.length,n);++f=t}),jt=Mf(function(){return arguments}())?Mf:function(e){return ae(e)&&V.call(e,"callee")&&!Of.call(e,"callee")},G=w.isArray,fw=nf?We(nf):g0;function De(e){return e!=null&&Kr(e.length)&&!xt(e)}function le(e){return ae(e)&&De(e)}function aw(e){return e===!0||e===!1||ae(e)&&Re(e)==Ae}var Nt=Ov||Du,sw=rf?We(rf):_0;function lw(e){return ae(e)&&e.nodeType===1&&!qn(e)}function cw(e){if(e==null)return!0;if(De(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||_n(e)||jt(e)))return!e.length;var t=Te(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!ki(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function hw(e,t){return Un(e,t)}function pw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Un(e,t,i,n):!!o}function bu(e){if(!ae(e))return!1;var t=Re(e);return t==rr||t==Mg||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function dw(e){return typeof e=="number"&&Ef(e)}function xt(e){if(!oe(e))return!1;var t=Re(e);return t==ir||t==Co||t==$e||t==Ug}function za(e){return typeof e=="number"&&e==q(e)}function Kr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ka=uf?We(uf):y0;function gw(e,t){return e===t||Vi(e,t,gu(t))}function _w(e,t,n){return n=typeof n=="function"?n:i,Vi(e,t,gu(t),n)}function vw(e){return Ya(e)&&e!=+e}function yw(e){if(t1(e))throw new H(g);return Nf(e)}function ww(e){return e===null}function mw(e){return e==null}function Ya(e){return typeof e=="number"||ae(e)&&Re(e)==En}function qn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=yr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&dr.call(n)==_v}var xu=of?We(of):w0;function Aw(e){return za(e)&&e>=-Ye&&e<=Ye}var Ja=ff?We(ff):m0;function Yr(e){return typeof e=="string"||!G(e)&&ae(e)&&Re(e)==xn}function Ge(e){return typeof e=="symbol"||ae(e)&&Re(e)==ur}var _n=af?We(af):A0;function Ow(e){return e===i}function Sw(e){return ae(e)&&Te(e)==Tn}function Ew(e){return ae(e)&&Re(e)==Wg}var bw=Mr(eu),xw=Mr(function(e,t){return e<=t});function Za(e){if(!e)return[];if(De(e))return Yr(e)?ut(e):Pe(e);if(Cn&&e[Cn])return iv(e[Cn]());var t=Te(e),n=t==rt?Hi:t==it?cr:vn;return n(e)}function Tt(e){if(!e)return e===0?e:0;if(e=tt(e),e===me||e===-me){var t=e<0?-1:1;return t*Je}return e===e?e:0}function q(e){var t=Tt(e),n=t%1;return t===t?n?t-n:t:0}function ja(e){return e?Kt(q(e),0,d):0}function tt(e){if(typeof e=="number")return e;if(Ge(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=df(e);var n=f_.test(e);return n||s_.test(e)?H_(e.slice(2),n?2:8):o_.test(e)?tn:+e}function Xa(e){return ht(e,Me(e))}function Tw(e){return e?Kt(q(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var Iw=pn(function(e,t){if(Hn(t)||De(t)){ht(t,we(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),Qa=pn(function(e,t){ht(t,Me(t),e)}),Jr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),Rw=pn(function(e,t,n,o){ht(t,we(t),e,o)}),Cw=Et(Ji);function Lw(e,t){var n=hn(e);return t==null?n:Rf(n,t)}var Fw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,pu(e),n),o&&(n=Ve(n,D|z|M,q0));for(var f=t.length;f--;)uu(n,t[f]);return n});function Xw(e,t){return ka(e,zr(N(t)))}var Qw=Et(function(e,t){return e==null?{}:E0(e,t)});function ka(e,t){if(e==null)return{};var n=ue(pu(e),function(o){return[o]});return t=N(t),zf(e,n,function(o,f){return t(o,f[0])})}function Vw(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=bf();return xe(e+f*(t-e+W_("1e-"+((f+"").length-1))),t)}return nu(e,t)}var sm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?ns(t):t)});function ns(e){return Ru(Q(e).toLowerCase())}function rs(e){return e=Q(e),e&&e.replace(c_,k_).replace(C_,"")}function lm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(q(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function cm(e){return e=Q(e),e&&Kg.test(e)?e.replace($o,ev):e}function hm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Ei,"\\$&"):e}var pm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),dm=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),gm=oa("toLowerCase");function _m(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Dr(Or(f),n)+e+Dr(Ar(f),n)}function vm(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!xu(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Em=dn(function(e,t,n){return e+(n?" ":"")+Ru(t)});function bm(e,t,n){return e=Q(e),n=n==null?0:Kt(q(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function xm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Jr({},t,o,pa);var f=Jr({},t.imports,o.imports,pa),l=we(f),h=Wi(f,l),p,v,S=0,E=t.interpolate||or,x="__p += '",R=Gi((t.escape||or).source+"|"+E.source+"|"+(E===Po?u_:or).source+"|"+(t.evaluate||or).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++D_+"]")+` -`;e.replace(R,function(B,J,j,qe,Le,ze){return j||(j=qe),x+=e.slice(S,ze).replace(h_,tv),J&&(p=!0,x+=`' + -__e(`+J+`) + -'`),Le&&(v=!0,x+=`'; +`)}function e1(e){return G(e)||jt(e)||!!(xf&&e&&e[xf])}function bt(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&h_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=gi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Wr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Pa(e,n)});function Da(e){var t=s(e);return t.__chain__=!0,t}function cy(e,t){return t(e),e}function Hr(e,t){return t(e)}var hy=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Ji(l,e)};return t>1||this.__actions__.length||!(o instanceof J)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Hr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function py(){return Da(this)}function dy(){return new Qe(this.value(),this.__chain__)}function gy(){this.__values__===i&&(this.__values__=ja(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function _y(){return this}function vy(e){for(var t,n=this;n instanceof Er;){var o=Ta(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function yy(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:Hr,args:[Su],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Su)}function wy(){return Qf(this.__wrapped__,this.__actions__)}var my=$r(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Ay(e,t,n){var o=G(e)?lf:c0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Sy(e,t){var n=G(e)?Rt:Pf;return n(e,U(t,3))}var Oy=aa(Ra),xy=aa(Ca);function by(e,t){return xe(Gr(e,t),1)}function Ey(e,t){return xe(Gr(e,t),Ae)}function Iy(e,t,n){return n=n===i?1:q(n),xe(Gr(e,t),n)}function Ma(e,t){var n=G(e)?je:$t;return n(e,U(t,3))}function Ua(e,t){var n=G(e)?Y_:$f;return n(e,U(t,3))}var Ty=$r(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Ry(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?q(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Zr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var Cy=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return $t(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Ly=$r(function(e,t,n){St(e,n,t)});function Gr(e,t){var n=G(e)?ue:Wf;return n(e,U(t,3))}function Fy(e,t,n,o){return e==null?[]:(G(t)||(t=t==null?[]:[t]),n=o?i:n,G(n)||(n=n==null?[]:[n]),zf(e,t,n))}var $y=$r(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Py(e,t,n){var o=G(e)?Di:df,f=arguments.length<3;return o(e,U(t,4),n,f,$t)}function Dy(e,t,n){var o=G(e)?Z_:df,f=arguments.length<3;return o(e,U(t,4),n,f,$f)}function My(e,t){var n=G(e)?Rt:Pf;return n(e,Kr(U(t,3)))}function Uy(e){var t=G(e)?Rf:R0;return t(e)}function Ny(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=q(t);var o=G(e)?o0:C0;return o(e,t)}function By(e){var t=G(e)?f0:F0;return t(e)}function Wy(e){if(e==null)return 0;if(De(e))return Zr(e)?fn(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:eu(e).length}function Hy(e,t,n){var o=G(e)?Mi:$0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Gy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),zf(e,xe(t,1),[])}),qr=Sv||function(){return Oe.Date.now()};function qy(e,t){if(typeof t!="function")throw new Xe(y);return e=q(e),function(){if(--e<1)return t.apply(this,arguments)}}function Na(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ba(e,t){var n;if(typeof t!="function")throw new Xe(y);return e=q(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var xu=Y(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,gn(xu));o|=we}return Ot(e,o,t,n,f)}),Wa=Y(function(e,t,n){var o=ge|Fe;if(n.length){var f=Lt(n,gn(Wa));o|=we}return Ot(t,o,e,n,f)});function Ha(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ha.placeholder,o}function Ga(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ga.placeholder,o}function qa(e,t,n){var o,f,l,h,p,v,O=0,x=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(y);t=tt(t)||0,oe(n)&&(x=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(ce){var at=o,Tt=f;return o=f=i,O=ce,h=e.apply(Tt,at),h}function N(ce){return O=ce,p=Gn(Z,t),x?F(ce):h}function K(ce){var at=ce-v,Tt=ce-O,as=t-at;return E?Ee(as,l-Tt):as}function B(ce){var at=ce-v,Tt=ce-O;return v===i||at>=t||at<0||E&&Tt>=l}function Z(){var ce=qr();if(B(ce))return j(ce);p=Gn(Z,K(ce))}function j(ce){return p=i,R&&o?F(ce):(o=f=i,h)}function qe(){p!==i&&kf(p),O=0,o=v=f=p=i}function Le(){return p===i?h:j(qr())}function ze(){var ce=qr(),at=B(ce);if(o=arguments,f=this,v=ce,at){if(p===i)return N(v);if(E)return kf(p),p=Gn(Z,t),F(v)}return p===i&&(p=Gn(Z,t)),h}return ze.cancel=qe,ze.flush=Le,ze}var zy=Y(function(e,t){return Ff(e,1,t)}),Ky=Y(function(e,t,n){return Ff(e,tt(t)||0,n)});function Yy(e){return Ot(e,vt)}function zr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(y);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(zr.Cache||At),n}zr.Cache=At;function Kr(e){if(typeof e!="function")throw new Xe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Zy(e){return Ba(2,e)}var Jy=P0(function(e,t){t=t.length==1&&G(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return Y(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),jt=Uf(function(){return arguments}())?Uf:function(e){return ae(e)&&V.call(e,"callee")&&!Of.call(e,"callee")},G=w.isArray,sw=rf?We(rf):v0;function De(e){return e!=null&&Yr(e.length)&&!Et(e)}function le(e){return ae(e)&&De(e)}function lw(e){return e===!0||e===!1||ae(e)&&Re(e)==Se}var Ut=xv||Mu,cw=uf?We(uf):y0;function hw(e){return ae(e)&&e.nodeType===1&&!qn(e)}function pw(e){if(e==null)return!0;if(De(e)&&(G(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||_n(e)||jt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!eu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function dw(e,t){return Nn(e,t)}function gw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Nn(e,t,i,n):!!o}function Eu(e){if(!ae(e))return!1;var t=Re(e);return t==ir||t==Ng||typeof e.message=="string"&&typeof e.name=="string"&&!qn(e)}function _w(e){return typeof e=="number"&&bf(e)}function Et(e){if(!oe(e))return!1;var t=Re(e);return t==ur||t==Lo||t==$e||t==Wg}function Ka(e){return typeof e=="number"&&e==q(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ya=of?We(of):m0;function vw(e,t){return e===t||ki(e,t,_u(t))}function yw(e,t,n){return n=typeof n=="function"?n:i,ki(e,t,_u(t),n)}function ww(e){return Za(e)&&e!=+e}function mw(e){if(r1(e))throw new H(g);return Nf(e)}function Aw(e){return e===null}function Sw(e){return e==null}function Za(e){return typeof e=="number"||ae(e)&&Re(e)==xn}function qn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=wr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&gr.call(n)==yv}var Iu=ff?We(ff):A0;function Ow(e){return Ka(e)&&e>=-Ye&&e<=Ye}var Ja=af?We(af):S0;function Zr(e){return typeof e=="string"||!G(e)&&ae(e)&&Re(e)==En}function Ge(e){return typeof e=="symbol"||ae(e)&&Re(e)==or}var _n=sf?We(sf):O0;function xw(e){return e===i}function bw(e){return ae(e)&&Ie(e)==In}function Ew(e){return ae(e)&&Re(e)==Gg}var Iw=Ur(tu),Tw=Ur(function(e,t){return e<=t});function ja(e){if(!e)return[];if(De(e))return Zr(e)?ut(e):Pe(e);if(Cn&&e[Cn])return ov(e[Cn]());var t=Ie(e),n=t==rt?Gi:t==it?hr:vn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ze}return e===e?e:0}function q(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function Xa(e){return e?Kt(q(e),0,d):0}function tt(e){if(typeof e=="number")return e;if(Ge(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gf(e);var n=s_.test(e);return n||c_.test(e)?q_(e.slice(2),n?2:8):a_.test(e)?tn:+e}function Qa(e){return ht(e,Me(e))}function Rw(e){return e?Kt(q(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var Cw=pn(function(e,t){if(Hn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),Va=pn(function(e,t){ht(t,Me(t),e)}),Jr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),Lw=pn(function(e,t,n,o){ht(t,me(t),e,o)}),Fw=xt(Ji);function $w(e,t){var n=hn(e);return t==null?n:Cf(n,t)}var Pw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,du(e),n),o&&(n=Ve(n,D|z|M,K0));for(var f=t.length;f--;)ou(n,t[f]);return n});function Vw(e,t){return es(e,Kr(U(t)))}var kw=xt(function(e,t){return e==null?{}:E0(e,t)});function es(e,t){if(e==null)return{};var n=ue(du(e),function(o){return[o]});return t=U(t),Kf(e,n,function(o,f){return t(o,f[0])})}function em(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Ef();return Ee(e+f*(t-e+G_("1e-"+((f+"").length-1))),t)}return ru(e,t)}var cm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?rs(t):t)});function rs(e){return Cu(Q(e).toLowerCase())}function is(e){return e=Q(e),e&&e.replace(p_,tv).replace(F_,"")}function hm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(q(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function pm(e){return e=Q(e),e&&Zg.test(e)?e.replace(Po,nv):e}function dm(e){return e=Q(e),e&&kg.test(e)?e.replace(bi,"\\$&"):e}var gm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),_m=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),vm=fa("toLowerCase");function ym(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(Or(f),n)+e+Mr(Sr(f),n)}function wm(e,t,n){e=Q(e),t=q(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Iu(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Em=dn(function(e,t,n){return e+(n?" ":"")+Cu(t)});function Im(e,t,n){return e=Q(e),n=n==null?0:Kt(q(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Tm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Jr({},t,o,da);var f=Jr({},t.imports,o.imports,da),l=me(f),h=Hi(f,l),p,v,O=0,x=t.interpolate||fr,E="__p += '",R=qi((t.escape||fr).source+"|"+x.source+"|"+(x===Do?f_:fr).source+"|"+(t.evaluate||fr).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++U_+"]")+` +`;e.replace(R,function(B,Z,j,qe,Le,ze){return j||(j=qe),E+=e.slice(O,ze).replace(d_,rv),Z&&(p=!0,E+=`' + +__e(`+Z+`) + +'`),Le&&(v=!0,E+=`'; `+Le+`; -__p += '`),j&&(x+=`' + +__p += '`),j&&(E+=`' + ((__t = (`+j+`)) == null ? '' : __t) + -'`),S=ze+B.length,B}),x+=`'; -`;var U=V.call(t,"variable")&&t.variable;if(!U)x=`with (obj) { -`+x+` +'`),O=ze+B.length,B}),E+=`'; +`;var N=V.call(t,"variable")&&t.variable;if(!N)E=`with (obj) { +`+E+` } -`;else if(r_.test(U))throw new H(A);x=(v?x.replace(Hg,""):x).replace(Gg,"$1").replace(qg,"$1;"),x="function("+(U||"obj")+`) { -`+(U?"":`obj || (obj = {}); +`;else if(u_.test(N))throw new H(A);E=(v?E.replace(qg,""):E).replace(zg,"$1").replace(Kg,"$1;"),E="function("+(N||"obj")+`) { +`+(N?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+x+`return __p -}`;var K=us(function(){return X(l,F+"return "+x).apply(i,h)});if(K.source=x,bu(K))throw K;return K}function Tm(e){return Q(e).toLowerCase()}function Im(e){return Q(e).toUpperCase()}function Rm(e,t,n){if(e=Q(e),e&&(n||t===i))return df(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=gf(o,f),h=_f(o,f)+1;return Mt(o,l,h).join("")}function Cm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,yf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=_f(o,ut(t))+1;return Mt(o,0,f).join("")}function Lm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(bi,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=gf(o,ut(t));return Mt(o,f).join("")}function Fm(e,t){var n=yt,o=pe;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?q(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),xu(f)){if(e.slice(p).search(f)){var S,E=v;for(f.global||(f=Gi(f.source,Q(Do.exec(f))+"g")),f.lastIndex=0;S=f.exec(E);)var x=S.index;v=v.slice(0,x===i?p:x)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function $m(e){return e=Q(e),e&&zg.test(e)?e.replace(Fo,av):e}var Pm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ru=oa("toUpperCase");function is(e,t,n){return e=Q(e),t=n?i:t,t===i?rv(e)?cv(e):Z_(e):e.match(t)||[]}var us=Y(function(e,t){try{return Be(e,i,t)}catch(n){return bu(n)?n:new H(n)}}),Dm=Et(function(e,t){return je(t,function(n){n=pt(n),Ot(e,n,Su(e[n],e))}),e});function Mm(e){var t=e==null?0:e.length,n=N();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(y);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=d,o=xe(e,d);t=N(t),e-=d;for(var f=Bi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(d)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Z,S=p[0],E=v||G(h),x=function(J){var j=f.apply(s,Ct([J],p));return o&&R?j[0]:j};E&&n&&typeof S=="function"&&S.length!=1&&(v=E=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=v&&!F;if(!l&&E){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Wr,args:[x],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(x),U?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=hr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(G(l)?l:[],f)}return this[n](function(h){return t.apply(G(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[$r(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=$v,Z.prototype.reverse=Pv,Z.prototype.value=Dv,s.prototype.at=ly,s.prototype.chain=cy,s.prototype.commit=hy,s.prototype.next=py,s.prototype.plant=gy,s.prototype.reverse=_y,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=vy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=dy),s},an=hv();Ht?((Ht.exports=an)._=an,Li._=an):Oe._=an}).call(nt)}(tr,tr.exports);var wg=tr.exports;const mg=zn(wg);class Ag{constructor(){Ee(this,"_eventFuncID",{id:"__reload__"});Ee(this,"_url");Ee(this,"_method");Ee(this,"_vars");Ee(this,"_locals");Ee(this,"_loadPortalBody",!1);Ee(this,"_form",{});Ee(this,"_popstate");Ee(this,"_pushState");Ee(this,"_location");Ee(this,"_updateRootTemplate");Ee(this,"_buildPushStateResult");Ee(this,"parent");Ee(this,"lodash",mg);Ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);Ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).location(window.location.href).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){window.history.length<=2&&window.history.pushState({url:window.location.href},"",window.location.href);const u=this.buildPushStateArgs();u&&window.history.pushState(...u)}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Oo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=hi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const g=window.__goplaid.portals[c];g&&g.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:g}=window.__goplaid.portals[c.name];g&&g(c.body)}return a.pushState?hi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=window.location.href;this._buildPushStateResult=Xd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return yg.applyPatch(u,i)}encodeObjectToQuery(u,i){return Vd(u,i)}isRawQuerySubset(u,i,a){return eg(u,i,a)}}function hi(){return new Ag}const Og={mounted:(r,u,i)=>{var P,$;let a=r;i.component&&(a=($=(P=i.component)==null?void 0:P.proxy)==null?void 0:$.$el);const c=u.arg||"scroll",y=gt.parse(location.hash)[c];let A="";Array.isArray(y)?A=y[0]||"":A=y||"";const I=A.split("_");I.length>=2&&(a.scrollTop=parseInt(I[0]),a.scrollLeft=parseInt(I[1])),a.addEventListener("scroll",qu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Sg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},Eg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},bg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},xg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Tg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Ig={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Rg={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}},Cg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:T.watch,watchEffect:T.watchEffect,ref:T.ref,reactive:T.reactive})}};var To={exports:{}};function pi(){}pi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a{u.value=ri(A,i)};T.provide("updateRootTemplate",a);const c=T.reactive({__emitter:new Lg}),g=()=>hi().updateRootTemplate(a).vars(c);T.provide("plaid",g),T.provide("vars",c);const y=T.ref(!1);return T.provide("isFetching",y),T.onMounted(()=>{a(r.initialTemplate),window.addEventListener("fetchStart",()=>{y.value=!0}),window.addEventListener("fetchEnd",()=>{y.value=!1}),window.addEventListener("popstate",A=>{g().onpopstate(A)})}),{current:u}},template:` +`)+E+`return __p +}`;var K=os(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Eu(K))throw K;return K}function Rm(e){return Q(e).toLowerCase()}function Cm(e){return Q(e).toUpperCase()}function Lm(e,t,n){if(e=Q(e),e&&(n||t===i))return gf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=_f(o,f),h=vf(o,f)+1;return Mt(o,l,h).join("")}function Fm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,wf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=vf(o,ut(t))+1;return Mt(o,0,f).join("")}function $m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ei,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=_f(o,ut(t));return Mt(o,f).join("")}function Pm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?q(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),Iu(f)){if(e.slice(p).search(f)){var O,x=v;for(f.global||(f=qi(f.source,Q(Mo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var E=O.index;v=v.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function Dm(e){return e=Q(e),e&&Yg.test(e)?e.replace($o,lv):e}var Mm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Cu=fa("toUpperCase");function us(e,t,n){return e=Q(e),t=n?i:t,t===i?uv(e)?pv(e):X_(e):e.match(t)||[]}var os=Y(function(e,t){try{return Be(e,i,t)}catch(n){return Eu(n)?n:new H(n)}}),Um=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,xu(e[n],e))}),e});function Nm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(y);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=d,o=Ee(e,d);t=U(t),e-=d;for(var f=Wi(o,t);++n0||t<0)?new J(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=q(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(d)},ct(J.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof J,O=p[0],x=v||G(h),E=function(Z){var j=f.apply(s,Ct([Z],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(v=x=!1);var R=this.__chain__,F=!!this.__actions__.length,N=l&&!R,K=v&&!F;if(!l&&x){h=K?h:new J(this);var B=e.apply(h,p);return B.__actions__.push({func:Hr,args:[E],thisArg:i}),new Qe(B,R)}return N&&K?e.apply(this,p):(B=this.thru(E),N?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=pr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(G(l)?l:[],f)}return this[n](function(h){return t.apply(G(h)?h:[],f)})}}),ct(J.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[Pr(i,Fe).name]=[{name:"wrapper",func:i}],J.prototype.clone=Dv,J.prototype.reverse=Mv,J.prototype.value=Uv,s.prototype.at=hy,s.prototype.chain=py,s.prototype.commit=dy,s.prototype.next=gy,s.prototype.plant=vy,s.prototype.reverse=yy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=wy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=_y),s},an=dv();Ht?((Ht.exports=an)._=an,Fi._=an):Oe._=an}).call(nt)}(nr,nr.exports);var mg=nr.exports;const Ag=zn(mg);class Sg{constructor(){he(this,"_eventFuncID",{id:"__reload__"});he(this,"_url");he(this,"_method");he(this,"_vars");he(this,"_locals");he(this,"_loadPortalBody",!1);he(this,"_form",{});he(this,"_popstate");he(this,"_pushState");he(this,"_location");he(this,"_updateRootTemplate");he(this,"_buildPushStateResult");he(this,"parent");he(this,"lodash",Ag);he(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);he(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(kn(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u[2]===kn(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Oo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=pi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const g=window.__goplaid.portals[c];g&&g.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:g}=window.__goplaid.portals[c.name];g&&g(c.body)}return a.pushState?pi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=kn(window.location.href);this._buildPushStateResult=Qd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return wg.applyPatch(u,i)}encodeObjectToQuery(u,i){return kd(u,i)}isRawQuerySubset(u,i,a){return tg(u,i,a)}}function pi(){return new Sg}const Og={mounted:(r,u,i)=>{var P,$;let a=r;i.component&&(a=($=(P=i.component)==null?void 0:P.proxy)==null?void 0:$.$el);const c=u.arg||"scroll",y=gt.parse(location.hash)[c];let A="";Array.isArray(y)?A=y[0]||"":A=y||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},xg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},bg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Eg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ig={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Tg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Rg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Cg={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Lg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var To={exports:{}};function di(){}di.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=Math.random().toString(36).substr(2,9),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index");this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index");this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}}const Pg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=A=>{u.value=ii(A,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Fg,__history:new $g}),g=()=>pi().updateRootTemplate(a).vars(c);I.provide("plaid",g),I.provide("vars",c);const y=I.ref(!1);return I.provide("isFetching",y),I.onMounted(()=>{a(r.initialTemplate),window.addEventListener("fetchStart",()=>{y.value=!0}),window.addEventListener("fetchEnd",()=>{y.value=!1}),window.addEventListener("popstate",A=>{g().onpopstate(A)})}),{current:u}},template:`
- `}),$g={install(r){r.component("GoPlaidScope",sl),r.component("GoPlaidPortal",tg),r.component("GoPlaidListener",ng),r.component("ParentSizeObserver",rg),r.directive("keep-scroll",Og),r.directive("assign",Sg),r.directive("on-created",Eg),r.directive("before-mount",bg),r.directive("on-mounted",xg),r.directive("before-update",Tg),r.directive("on-updated",Ig),r.directive("before-unmount",Rg),r.directive("on-unmounted",Cg),r.component("GlobalEvents",cs)}};function Pg(r){const u=T.createApp(Fg,{initialTemplate:r});return u.use($g),u}const Io=document.getElementById("app");if(!Io)throw new Error("#app required");const Dg={},Ro=Pg(Io.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Ro,Dg);Ro.mount("#app")}); + `}),Dg={install(r){r.component("GoPlaidScope",ll),r.component("GoPlaidPortal",ng),r.component("GoPlaidListener",rg),r.component("ParentSizeObserver",ig),r.directive("keep-scroll",Og),r.directive("assign",xg),r.directive("on-created",bg),r.directive("before-mount",Eg),r.directive("on-mounted",Ig),r.directive("before-update",Tg),r.directive("on-updated",Rg),r.directive("before-unmount",Cg),r.directive("on-unmounted",Lg),r.component("GlobalEvents",hs)}};function Mg(r){const u=I.createApp(Pg,{initialTemplate:r});return u.use(Dg),u}const Ro=document.getElementById("app");if(!Ro)throw new Error("#app required");const Ug={},Co=Mg(Ro.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Co,Ug);Co.mount("#app")}); diff --git a/corejs/src/__tests__/builder.spec.ts b/corejs/src/__tests__/builder.spec.ts index 31ef7a8..a93954f 100644 --- a/corejs/src/__tests__/builder.spec.ts +++ b/corejs/src/__tests__/builder.spec.ts @@ -27,6 +27,15 @@ describe('builder', () => { expect(pushedData).toEqual({ query: { name: 'felix' }, url: '/page1?name=felix' }) }) + it('pushState with pure url', () => { + const b = plaid().eventFunc('hello').url('/page1?hello=1&page=2') + + expect(b.buildFetchURL()).toEqual('/page1?__execute_event__=hello&hello=1&page=2') + const [pushedData, , url] = b.buildPushStateArgs() + expect(url).toEqual('/page1?hello=1&page=2') + expect(pushedData).toEqual({ query: { hello: '1', page: '2' }, url: '/page1?hello=1&page=2' }) + }) + it('pushState with clearMergeQuery will delete provided keys then mergeQuery', () => { const b = plaid() .url( diff --git a/corejs/src/__tests__/utils.spec.ts b/corejs/src/__tests__/utils.spec.ts index 38ade87..002dc07 100644 --- a/corejs/src/__tests__/utils.spec.ts +++ b/corejs/src/__tests__/utils.spec.ts @@ -1,4 +1,10 @@ -import { objectToFormData, setFormValue, encodeObjectToQuery, isRawQuerySubset } from '../utils' +import { + objectToFormData, + setFormValue, + encodeObjectToQuery, + isRawQuerySubset, + parsePathAndQuery +} from '../utils' import { describe, it, expect } from 'vitest' describe('utils', () => { @@ -153,4 +159,16 @@ describe('utils', () => { sub = 'id=1&name=John&age=30&emails=a%2C,b,c&addresses=Shanghai' expect(isRawQuerySubset(sup, sub)).toBe(false) }) + + it('parsePathAndQuery', () => { + expect( + parsePathAndQuery('https://www.example.com/path/to/resource?name=value&key=value') + ).toEqual('/path/to/resource?name=value&key=value') + expect(parsePathAndQuery('/path/to/resource?name=value&key=value')).toEqual( + '/path/to/resource?name=value&key=value' + ) + expect(parsePathAndQuery('/path/to/resource?name=value&key=value#1')).toEqual( + '/path/to/resource?name=value&key=value#1' + ) + }) }) diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 87ed7b1..0da852b 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -28,6 +28,7 @@ import { runOnUnmounted } from '@/lifecycle' import { TinyEmitter } from 'tiny-emitter' +import { HistoryManager } from '@/history' export const Root = defineComponent({ props: { @@ -48,7 +49,8 @@ export const Root = defineComponent({ provide('updateRootTemplate', updateRootTemplate) const vars = reactive({ - __emitter: new TinyEmitter() + __emitter: new TinyEmitter(), + __history: new HistoryManager() }) const _plaid = (): Builder => { return plaid().updateRootTemplate(updateRootTemplate).vars(vars) diff --git a/corejs/src/builder.ts b/corejs/src/builder.ts index c78cb48..54a7c33 100644 --- a/corejs/src/builder.ts +++ b/corejs/src/builder.ts @@ -1,5 +1,11 @@ import type { EventFuncID, EventResponse, Location, Queries, QueryValue } from './types' -import { buildPushState, objectToFormData, encodeObjectToQuery, isRawQuerySubset } from '@/utils' +import { + buildPushState, + objectToFormData, + encodeObjectToQuery, + isRawQuerySubset, + parsePathAndQuery +} from '@/utils' import querystring from 'query-string' import jsonpatch from 'fast-json-patch' import lodash from 'lodash' @@ -203,18 +209,19 @@ export class Builder { public onpopstate(event: any): Promise { if (!event || !event.state) { - return this.popstate(true).location(window.location.href).reload().go() + return this.popstate(true).url(parsePathAndQuery(window.location.href)).reload().go() } return this.popstate(true).location(event.state).reload().go() } public runPushState() { if (this._popstate !== true && this._pushState === true) { - if (window.history.length <= 2) { - window.history.pushState({ url: window.location.href }, '', window.location.href) - } const args = this.buildPushStateArgs() if (args) { + if (args[2] === parsePathAndQuery(window.location.href)) { + window.history.replaceState(...args) + return + } window.history.pushState(...args) } } @@ -336,7 +343,7 @@ export class Builder { return } - const defaultURL = window.location.href + const defaultURL = parsePathAndQuery(window.location.href) this._buildPushStateResult = buildPushState( { diff --git a/corejs/src/history.ts b/corejs/src/history.ts new file mode 100644 index 0000000..db26543 --- /dev/null +++ b/corejs/src/history.ts @@ -0,0 +1,111 @@ +import { parsePathAndQuery } from '@/utils' + +export interface HistoryRecord { + state: any + unused: string + url?: string | URL | null +} + +const debug = false + +export class HistoryManager { + private stack: HistoryRecord[] = [] + private currentIndex = -1 + + private originalPushState: typeof window.history.pushState + private originalReplaceState: typeof window.history.replaceState + + constructor() { + this.originalPushState = window.history.pushState.bind(window.history) + this.originalReplaceState = window.history.replaceState.bind(window.history) + window.history.pushState = this.pushState.bind(this) + window.history.replaceState = this.replaceState.bind(this) + window.addEventListener('popstate', this.onPopState.bind(this)) + + this.stack.push({ + state: null, + unused: '', + url: parsePathAndQuery(window.location.href) + }) + this.currentIndex = 0 + if (debug) { + console.log('init', this.stack, this.currentIndex) + console.log('currentState', this.current()) + console.log('lastState', this.last()) + } + } + + private pushState(state: any, unused: string, url?: string | URL | null): void { + if (!state) { + state = {} + } + state.__uniqueId = Math.random().toString(36).substr(2, 9) + + this.stack = this.stack.slice(0, this.currentIndex + 1) + this.stack.push({ state: state, unused: unused, url: url }) + this.currentIndex++ + + if (debug) { + console.log('pushState', this.stack, this.currentIndex) + console.log('currentState', this.current()) + console.log('lastState', this.last()) + } + + this.originalPushState(state, unused, url) + } + + private replaceState(state: any, unused: string, url?: string | URL | null): void { + if (this.currentIndex >= 0) { + if (!state) { + state = {} + } + state.__uniqueId = Math.random().toString(36).substr(2, 9) + + this.stack[this.currentIndex] = { state: state, unused: unused, url: url } + if (debug) { + console.log('replaceState', this.stack, this.currentIndex) + console.log('currentState', this.current()) + console.log('lastState', this.last()) + } + } else { + throw new Error('Invalid state index') + } + this.originalReplaceState(state, unused, url) + } + + private onPopState(event: PopStateEvent): void { + const index = this.stack.findIndex( + (v) => + (!event.state && !v.state) || + (v.state && event.state && v.state.__uniqueId === event.state.__uniqueId) + ) + let behavior = '' + if (index < this.currentIndex) { + behavior = 'Back' + } else if (index > this.currentIndex) { + behavior = 'Forward' + } + if (index === -1) { + throw new Error('Invalid state index') + } + this.currentIndex = index + + if (debug) { + console.log('popstate', event.state) + console.log('onPopState', behavior, this.stack, this.currentIndex) + console.log('currentState', this.current()) + console.log('lastState', this.last()) + } + } + + public current(): HistoryRecord { + return this.stack[this.currentIndex] + } + + public last(): HistoryRecord | null { + if (this.currentIndex === 0) { + return null + } + return this.stack[this.currentIndex - 1] + } +} diff --git a/corejs/src/utils.ts b/corejs/src/utils.ts index 3ea4e39..c10f42d 100644 --- a/corejs/src/utils.ts +++ b/corejs/src/utils.ts @@ -354,3 +354,11 @@ export function isRawQuerySubset( const subValues = querystring.parse(sub, options) return isQuerySubset(supValues, subValues) } + +export function parsePathAndQuery(href: string) { + if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(href)) { + const url = new URL(href) + return url.pathname + url.search + } + return href +} From dedb759a3073f3e6a6e88465b285d4187dd3b9fd Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Wed, 21 Aug 2024 18:14:13 +0800 Subject: [PATCH 09/21] move generateUniqueId to util --- corejs/src/__tests__/utils.spec.ts | 11 ++++++++++- corejs/src/fetchInterceptor.ts | 7 ++----- corejs/src/history.ts | 6 +++--- corejs/src/utils.ts | 4 ++++ 4 files changed, 19 insertions(+), 9 deletions(-) diff --git a/corejs/src/__tests__/utils.spec.ts b/corejs/src/__tests__/utils.spec.ts index 002dc07..02a7b35 100644 --- a/corejs/src/__tests__/utils.spec.ts +++ b/corejs/src/__tests__/utils.spec.ts @@ -3,7 +3,8 @@ import { setFormValue, encodeObjectToQuery, isRawQuerySubset, - parsePathAndQuery + parsePathAndQuery, + generateUniqueId } from '../utils' import { describe, it, expect } from 'vitest' @@ -171,4 +172,12 @@ describe('utils', () => { '/path/to/resource?name=value&key=value#1' ) }) + + it('generateUniqueId', () => { + const a = generateUniqueId() + const b = generateUniqueId() + expect(a.length).toEqual(7) + expect(b.length).toEqual(7) + expect(a).not.toEqual(b) + }) }) diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts index 35c1277..420f742 100644 --- a/corejs/src/fetchInterceptor.ts +++ b/corejs/src/fetchInterceptor.ts @@ -1,3 +1,5 @@ +import { generateUniqueId } from '@/utils' + export type FetchInterceptor = { onRequest?: (id: string, resource: RequestInfo | URL, config?: RequestInit) => void onResponse?: (id: string, response: Response, resource: RequestInfo, config?: RequestInit) => void @@ -6,11 +8,6 @@ export type FetchInterceptor = { // Global Map to store the mapping between request ID and Request info const requestMap = new Map() -// Function to generate a unique identifier (you can use a more complex strategy if needed) -const generateUniqueId = (): string => { - return Math.random().toString(36).substr(2, 9) // Simple unique ID generation -} - const originalFetch: typeof window.fetch = window.fetch export function initFetchInterceptor(customInterceptor: FetchInterceptor) { diff --git a/corejs/src/history.ts b/corejs/src/history.ts index db26543..084c6bd 100644 --- a/corejs/src/history.ts +++ b/corejs/src/history.ts @@ -1,4 +1,4 @@ -import { parsePathAndQuery } from '@/utils' +import { parsePathAndQuery, generateUniqueId } from '@/utils' export interface HistoryRecord { state: any @@ -39,7 +39,7 @@ export class HistoryManager { if (!state) { state = {} } - state.__uniqueId = Math.random().toString(36).substr(2, 9) + state.__uniqueId = generateUniqueId() this.stack = this.stack.slice(0, this.currentIndex + 1) this.stack.push({ state: state, unused: unused, url: url }) @@ -59,7 +59,7 @@ export class HistoryManager { if (!state) { state = {} } - state.__uniqueId = Math.random().toString(36).substr(2, 9) + state.__uniqueId = generateUniqueId() this.stack[this.currentIndex] = { state: state, unused: unused, url: url } if (debug) { diff --git a/corejs/src/utils.ts b/corejs/src/utils.ts index c10f42d..b314305 100644 --- a/corejs/src/utils.ts +++ b/corejs/src/utils.ts @@ -362,3 +362,7 @@ export function parsePathAndQuery(href: string) { } return href } + +export function generateUniqueId(): string { + return Math.random().toString(36).slice(2, 9) +} From 88ffc97a9739648096e01fdfbf2b1f191cd685d7 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 22 Aug 2024 10:34:40 +0800 Subject: [PATCH 10/21] fix: fetch wrap breaks the test case --- corejs/src/app.ts | 6 +++--- corejs/src/fetchInterceptor.ts | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 0703dd9..6c4f53a 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -64,14 +64,14 @@ export const Root = defineComponent({ initFetchInterceptor({ onRequest(id, resource, config) { // console.log('onReq', id, resource, config) - if (typeof resource === 'string' && ['?__execute_event__=__reload__'].includes(resource)) { + if (typeof resource === 'string' && ['__execute_event__=__reload__'].includes(resource)) { isReloadingPage.value = true } }, onResponse(id, response, resource, config) { - // console.log('onRes', id, response, resource, config) - if (typeof resource === 'string' && ['?__execute_event__=__reload__'].includes(resource)) { + // console.log('onRes', id, response, r esource, config) + if (typeof resource === 'string' && ['__execute_event__=__reload__'].includes(resource)) { isReloadingPage.value = false } } diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts index 35c1277..92ca0c9 100644 --- a/corejs/src/fetchInterceptor.ts +++ b/corejs/src/fetchInterceptor.ts @@ -1,3 +1,5 @@ +declare let window: any + export type FetchInterceptor = { onRequest?: (id: string, resource: RequestInfo | URL, config?: RequestInit) => void onResponse?: (id: string, response: Response, resource: RequestInfo, config?: RequestInit) => void @@ -14,6 +16,9 @@ const generateUniqueId = (): string => { const originalFetch: typeof window.fetch = window.fetch export function initFetchInterceptor(customInterceptor: FetchInterceptor) { + // do not rewrite fetch in test env + if(typeof window.__vitest_environment__ !== 'undefined') return + // eslint-disable-next-line no-debugger window.fetch = async function ( ...args: [RequestInfo | URL, init?: RequestInit] From 623bb049bb91597876057d4b70e3dbb1acf6ed5d Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Thu, 22 Aug 2024 10:44:20 +0800 Subject: [PATCH 11/21] runPushState: add args length judgment --- corejs/dist/index.js | 2 +- corejs/src/builder.ts | 2 +- corejs/src/fetchInterceptor.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 72e396f..92d162b 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -46,7 +46,7 @@ __p += '`),j&&(I+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p -}`;var K=as(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Tu(K))throw K;return K}function Pm(e){return Q(e).toLowerCase()}function $m(e){return Q(e).toUpperCase()}function Dm(e,t,n){if(e=Q(e),e&&(n||t===i))return vf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=yf(o,f),h=wf(o,f)+1;return Mt(o,l,h).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Af(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=wf(o,ut(t))+1;return Mt(o,0,f).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ti,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=yf(o,ut(t));return Mt(o,f).join("")}function Nm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var y=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Ru(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Ki(f.source,Q(No.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Bm(e){return e=Q(e),e&&Xg.test(e)?e.replace(Do,dv):e}var Wm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Fu=sa("toUpperCase");function fs(e,t,n){return e=Q(e),t=n?i:t,t===i?sv(e)?vv(e):ev(e):e.match(t)||[]}var as=Y(function(e,t){try{return Be(e,i,t)}catch(n){return Tu(n)?n:new H(n)}}),Hm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,bu(e[n],e))}),e});function qm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=qi(o,t);++n0||t<0)?new J(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(g)},ct(J.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof J,O=p[0],x=y||q(h),I=function(Z){var j=f.apply(s,Ct([Z],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,N=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new J(this);var B=e.apply(h,p);return B.__actions__.push({func:qr,args:[I],thisArg:i}),new Qe(B,R)}return N&&K?e.apply(this,p):(B=this.thru(I),N?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(J.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[Dr(i,Fe).name]=[{name:"wrapper",func:i}],J.prototype.clone=Bv,J.prototype.reverse=Wv,J.prototype.value=Hv,s.prototype.at=_y,s.prototype.chain=vy,s.prototype.commit=yy,s.prototype.next=wy,s.prototype.plant=Ay,s.prototype.reverse=Sy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Oy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=my),s},an=yv();Ht?((Ht.exports=an)._=an,$i._=an):Oe._=an}).call(nt)}(nr,nr.exports);var Sg=nr.exports;const Og=zn(Sg);class xg{constructor(){he(this,"_eventFuncID",{id:"__reload__"});he(this,"_url");he(this,"_method");he(this,"_vars");he(this,"_locals");he(this,"_loadPortalBody",!1);he(this,"_form",{});he(this,"_popstate");he(this,"_pushState");he(this,"_location");he(this,"_updateRootTemplate");he(this,"_buildPushStateResult");he(this,"parent");he(this,"lodash",Og);he(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);he(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(kn(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u[2]===kn(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Eo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=gi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?gi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=kn(window.location.href);this._buildPushStateResult=kd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Ag.applyPatch(u,i)}encodeObjectToQuery(u,i){return tg(u,i)}isRawQuerySubset(u,i,a){return rg(u,i,a)}}function gi(){return new xg}const Eg={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},bg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},rr=new Map,Ig=window.fetch;function Tg(r){window.fetch=async function(...u){const[i,a]=u,c=oi();rr.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Ig(...u),v=rr.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return rr.delete(c),d}catch(d){throw console.error("Fetch error:",d),rr.delete(c),d}}}const Rg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Cg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Lg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Co={exports:{}};function _i(){}_i.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=oi(),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index");this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index");this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}}const Ng=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=ui(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:new Ug}),d=()=>gi().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Tg({onRequest(T,P,F){typeof P=="string"&&["?__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["?__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:` +}`;var K=as(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Tu(K))throw K;return K}function Pm(e){return Q(e).toLowerCase()}function $m(e){return Q(e).toUpperCase()}function Dm(e,t,n){if(e=Q(e),e&&(n||t===i))return vf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=yf(o,f),h=wf(o,f)+1;return Mt(o,l,h).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Af(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=wf(o,ut(t))+1;return Mt(o,0,f).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ti,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=yf(o,ut(t));return Mt(o,f).join("")}function Nm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var y=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Ru(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Ki(f.source,Q(No.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Bm(e){return e=Q(e),e&&Xg.test(e)?e.replace(Do,dv):e}var Wm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Fu=sa("toUpperCase");function fs(e,t,n){return e=Q(e),t=n?i:t,t===i?sv(e)?vv(e):ev(e):e.match(t)||[]}var as=Y(function(e,t){try{return Be(e,i,t)}catch(n){return Tu(n)?n:new H(n)}}),Hm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,bu(e[n],e))}),e});function qm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=qi(o,t);++n0||t<0)?new J(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(g)},ct(J.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof J,O=p[0],x=y||q(h),I=function(Z){var j=f.apply(s,Ct([Z],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,N=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new J(this);var B=e.apply(h,p);return B.__actions__.push({func:qr,args:[I],thisArg:i}),new Qe(B,R)}return N&&K?e.apply(this,p):(B=this.thru(I),N?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(J.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[Dr(i,Fe).name]=[{name:"wrapper",func:i}],J.prototype.clone=Bv,J.prototype.reverse=Wv,J.prototype.value=Hv,s.prototype.at=_y,s.prototype.chain=vy,s.prototype.commit=yy,s.prototype.next=wy,s.prototype.plant=Ay,s.prototype.reverse=Sy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Oy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=my),s},an=yv();Ht?((Ht.exports=an)._=an,$i._=an):Oe._=an}).call(nt)}(nr,nr.exports);var Sg=nr.exports;const Og=zn(Sg);class xg{constructor(){he(this,"_eventFuncID",{id:"__reload__"});he(this,"_url");he(this,"_method");he(this,"_vars");he(this,"_locals");he(this,"_loadPortalBody",!1);he(this,"_form",{});he(this,"_popstate");he(this,"_pushState");he(this,"_location");he(this,"_updateRootTemplate");he(this,"_buildPushStateResult");he(this,"parent");he(this,"lodash",Og);he(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);he(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(kn(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===kn(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Eo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=gi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?gi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=kn(window.location.href);this._buildPushStateResult=kd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Ag.applyPatch(u,i)}encodeObjectToQuery(u,i){return tg(u,i)}isRawQuerySubset(u,i,a){return rg(u,i,a)}}function gi(){return new xg}const Eg={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},bg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},rr=new Map,Ig=window.fetch;function Tg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=oi();rr.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Ig(...u),v=rr.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return rr.delete(c),d}catch(d){throw console.error("Fetch error:",d),rr.delete(c),d}})}const Rg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Cg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Lg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Co={exports:{}};function _i(){}_i.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=oi(),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index");this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index");this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}}const Ng=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=ui(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:new Ug}),d=()=>gi().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Tg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:`
diff --git a/corejs/src/builder.ts b/corejs/src/builder.ts index 54a7c33..d07949c 100644 --- a/corejs/src/builder.ts +++ b/corejs/src/builder.ts @@ -218,7 +218,7 @@ export class Builder { if (this._popstate !== true && this._pushState === true) { const args = this.buildPushStateArgs() if (args) { - if (args[2] === parsePathAndQuery(window.location.href)) { + if (args.length < 3 || args[2] === parsePathAndQuery(window.location.href)) { window.history.replaceState(...args) return } diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts index 3b46b14..a1d48fb 100644 --- a/corejs/src/fetchInterceptor.ts +++ b/corejs/src/fetchInterceptor.ts @@ -13,7 +13,7 @@ const originalFetch: typeof window.fetch = window.fetch export function initFetchInterceptor(customInterceptor: FetchInterceptor) { // do not rewrite fetch in test env - if(typeof window.__vitest_environment__ !== 'undefined') return + if (typeof window.__vitest_environment__ !== 'undefined') return // eslint-disable-next-line no-debugger window.fetch = async function ( From 0b9a1532a13306294452ce8042a5faa9997beba6 Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Thu, 22 Aug 2024 11:32:52 +0800 Subject: [PATCH 12/21] history manager singleton --- corejs/dist/index.js | 36 +++++++++++++++--------------- corejs/src/__tests__/app.spec.ts | 2 ++ corejs/src/__tests__/utils.spec.ts | 1 + corejs/src/app.ts | 2 +- corejs/src/history.ts | 25 ++++++++++++++++++--- 5 files changed, 44 insertions(+), 22 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 92d162b..26801cf 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,53 +1,53 @@ -var bA=Object.defineProperty;var IA=(b,Te,Xt)=>Te in b?bA(b,Te,{enumerable:!0,configurable:!0,writable:!0,value:Xt}):b[Te]=Xt;var he=(b,Te,Xt)=>IA(b,typeof Te!="symbol"?Te+"":Te,Xt);(function(b,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(b=typeof globalThis<"u"?globalThis:b||self,Te(b.Vue))})(this,function(b){"use strict";/*! +var IA=Object.defineProperty;var TA=(b,Te,Qt)=>Te in b?IA(b,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):b[Te]=Qt;var se=(b,Te,Qt)=>TA(b,typeof Te!="symbol"?Te+"":Te,Qt);(function(b,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(b=typeof globalThis<"u"?globalThis:b||self,Te(b.Vue))})(this,function(b){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Xt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const cs=/^on(\w+?)((?:Once|Capture|Passive)*)$/,hs=/[OCP]/g;function ps(r){return r?Xt()?r.includes("Capture"):r.replace(hs,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const ds=b.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=b.ref(!0);return b.onActivated(()=>{a.value=!0}),b.onDeactivated(()=>{a.value=!1}),b.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(cs);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const F=v.map(z=>M=>{const se=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&se.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=ps(P);F.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[F,T,D]})}),b.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function gs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Kn=gs,_s=typeof nt=="object"&&nt&&nt.Object===Object&&nt,vs=_s,ys=vs,ws=typeof self=="object"&&self&&self.Object===Object&&self,ms=ys||ws||Function("return this")(),yn=ms,As=yn,Ss=function(){return As.Date.now()},Os=Ss,xs=/\s/;function Es(r){for(var u=r.length;u--&&xs.test(r.charAt(u)););return u}var bs=Es,Is=bs,Ts=/^\s+/;function Rs(r){return r&&r.slice(0,Is(r)+1).replace(Ts,"")}var Cs=Rs,Ls=yn,Fs=Ls.Symbol,Xr=Fs,Bu=Xr,Wu=Object.prototype,Ps=Wu.hasOwnProperty,$s=Wu.toString,wn=Bu?Bu.toStringTag:void 0;function Ds(r){var u=Ps.call(r,wn),i=r[wn];try{r[wn]=void 0;var a=!0}catch{}var c=$s.call(r);return a&&(u?r[wn]=i:delete r[wn]),c}var Ms=Ds,Us=Object.prototype,Ns=Us.toString;function Bs(r){return Ns.call(r)}var Ws=Bs,Hu=Xr,Hs=Ms,qs=Ws,Gs="[object Null]",zs="[object Undefined]",qu=Hu?Hu.toStringTag:void 0;function Ks(r){return r==null?r===void 0?zs:Gs:qu&&qu in Object(r)?Hs(r):qs(r)}var Qr=Ks;function Ys(r){return r!=null&&typeof r=="object"}var Yn=Ys,Zs=Qr,Js=Yn,js="[object Symbol]";function Xs(r){return typeof r=="symbol"||Js(r)&&Zs(r)==js}var Qs=Xs,Vs=Cs,Gu=Kn,ks=Qs,zu=NaN,el=/^[-+]0x[0-9a-f]+$/i,tl=/^0b[01]+$/i,nl=/^0o[0-7]+$/i,rl=parseInt;function il(r){if(typeof r=="number")return r;if(ks(r))return zu;if(Gu(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Gu(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=Vs(r);var i=tl.test(r);return i||nl.test(r)?rl(r.slice(2),i?2:8):el.test(r)?zu:+r}var ul=il,ol=Kn,Vr=Os,Ku=ul,fl="Expected a function",al=Math.max,sl=Math.min;function ll(r,u,i){var a,c,d,v,A,T,P=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(fl);u=Ku(u)||0,ol(i)&&(F=!!i.leading,D="maxWait"in i,d=D?al(Ku(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(k){var ne=a,Ee=c;return a=c=void 0,P=k,v=r.apply(Ee,ne),v}function se(k){return P=k,A=setTimeout(Fe,u),F?M(k):v}function Ke(k){var ne=k-T,Ee=k-P,vt=u-ne;return D?sl(vt,d-Ee):vt}function ge(k){var ne=k-T,Ee=k-P;return T===void 0||ne>=u||ne<0||D&&Ee>=d}function Fe(){var k=Vr();if(ge(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?M(k):(a=c=void 0,v)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(Vr())}function we(){var k=Vr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return se(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(T)}return A===void 0&&(A=setTimeout(Fe,u)),v}return we.cancel=ye,we.flush=st,we}var cl=ll;const Yu=zn(cl),hl=b.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=b.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=b.reactive({...v}),T=b.inject("vars"),P=b.inject("plaid");return b.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=Yu(z=>{a("change-debounced",z)},F);console.log("watched"),b.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),b.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(F,D)=>b.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:b.unref(P),vars:b.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),E=0;E"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var E=0;E(i[a]=!0,i),{}):void 0}const _s=b.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=b.ref(!0);return b.onActivated(()=>{a.value=!0}),b.onDeactivated(()=>{a.value=!1}),b.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const F=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=gs(P);F.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[F,T,D]})}),b.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ws=ys,ms=ws,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),wn=Ss,Os=wn,xs=function(){return Os.Date.now()},Es=xs,bs=/\s/;function Is(r){for(var u=r.length;u--&&bs.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Fs=Ls,Ps=wn,$s=Ps.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Ms=Us,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Ms,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var Vr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var Yn=Zs,js=Vr,Xs=Yn,Qs="[object Symbol]";function Vs(r){return typeof r=="symbol"||Xs(r)&&js(r)==Qs}var ks=Vs,el=Fs,Ku=Jn,tl=ks,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,kr=Es,Yu=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,v,A,T,P=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=Yu(u)||0,al(i)&&(F=!!i.leading,D="maxWait"in i,d=D?ll(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,Ee=c;return a=c=void 0,P=k,v=r.apply(Ee,ne),v}function le(k){return P=k,A=setTimeout(Fe,u),F?N(k):v}function Ke(k){var ne=k-T,Ee=k-P,vt=u-ne;return D?cl(vt,d-Ee):vt}function ge(k){var ne=k-T,Ee=k-P;return T===void 0||ne>=u||ne<0||D&&Ee>=d}function Fe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function we(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),N(T)}return A===void 0&&(A=setTimeout(Fe,u)),v}return we.cancel=ye,we.flush=st,we}var pl=hl;const Zu=Kn(pl),dl=b.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=b.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=b.reactive({...v}),T=b.inject("vars"),P=b.inject("plaid");return b.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},F);console.log("watched"),b.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),b.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(F,D)=>b.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:b.unref(P),vars:b.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),E=0;E"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var E=0;Er==null,yl=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ei=Symbol("encodeFragmentIdentifier");function wl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function ml(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Qu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?yl(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?gl(r):r}function Vu(r){return Array.isArray(r)?r.sort():typeof r=="object"?Vu(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function ku(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Al(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function eo(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ti(r){r=ku(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ni(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Qu(u.arrayFormatSeparator);const i=ml(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Xu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=eo(A,u);else a[c]=eo(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?Vu(v):v,c},Object.create(null))}function to(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Qu(u.arrayFormatSeparator);const i=v=>u.skipNull&&vl(r[v])||u.skipEmptyString&&r[v]==="",a=wl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function no(r,u){var c;u={decode:!0,...u};let[i,a]=Xu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ni(ti(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function ro(r,u){u={encode:!0,strict:!0,[ei]:!0,...u};const i=ku(r.url).split("?")[0]||"",a=ti(r.url),c={...ni(a,{sort:!1}),...r.query};let d=to(c,u);d&&(d=`?${d}`);let v=Al(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ei]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function io(r,u,i){i={parseFragmentIdentifier:!0,[ei]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=no(r,i);return ro({url:a,query:_l(c,u),fragmentIdentifier:d},i)}function Sl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return io(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:Sl,extract:ti,parse:ni,parseUrl:no,pick:io,stringify:to,stringifyUrl:ro},Symbol.toStringTag,{value:"Module"}));function Ol(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?so(A,u-1,i,a,c):Hl(c,A):a||(c[c.length]=A)}return c}var Gl=so;function zl(r){return r}var lo=zl;function Kl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Yl=Kl,Zl=Yl,co=Math.max;function Jl(r,u,i){return u=co(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=co(a.length-u,0),v=Array(d);++c0){if(++u>=Bc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Gc=qc,zc=Nc,Kc=Gc,Yc=Kc(zc),Zc=Yc,Jc=lo,jc=jl,Xc=Zc;function Qc(r,u){return Xc(jc(r,u,Jc),r+"")}var _o=Qc,Vc=Zn,kc=Vc(Object,"create"),Jn=kc,vo=Jn;function eh(){this.__data__=vo?vo(null):{},this.size=0}var th=eh;function nh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var rh=nh,ih=Jn,uh="__lodash_hash_undefined__",oh=Object.prototype,fh=oh.hasOwnProperty;function ah(r){var u=this.__data__;if(ih){var i=u[r];return i===uh?void 0:i}return fh.call(u,r)?u[r]:void 0}var sh=ah,lh=Jn,ch=Object.prototype,hh=ch.hasOwnProperty;function ph(r){var u=this.__data__;return lh?u[r]!==void 0:hh.call(u,r)}var dh=ph,gh=Jn,_h="__lodash_hash_undefined__";function vh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=gh&&u===void 0?_h:u,this}var yh=vh,wh=th,mh=rh,Ah=sh,Sh=dh,Oh=yh;function Qt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Hh=Wh,qh=jn;function Gh(r,u){var i=this.__data__,a=qh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var zh=Gh,Kh=bh,Yh=Dh,Zh=Nh,Jh=Hh,jh=zh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var mo=Zp;function Jp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=dd){var P=u?null:hd(r);if(P)return pd(P);v=!1,c=cd,T=new ad}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=vd}var wd=yd,md=ho,Ad=wd;function Sd(r){return r!=null&&Ad(r.length)&&!md(r)}var Od=Sd,xd=Od,Ed=Yn;function bd(r){return Ed(r)&&xd(r)}var xo=bd,Id=Gl,Td=_o,Rd=_d,Cd=xo,Ld=Td(function(r){return Rd(Id(r,1,Cd,!0))}),Fd=Ld;const Pd=zn(Fd);function $d(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=zd&&(d=Gd,v=!1,u=new Nd(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${gt.stringify(T,P)}`}}function eg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Pd(c,a);return}if(i.remove){const d=Vd(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Nt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Nt(r,u,i.value):!1;default:return Nt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Nt(r,u,i.value);if(i==null)return Nt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Eo(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Eo(d,u,v):Vn(u,v,d)}),u}function tg(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ng(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function rg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ng(a,c)}function kn(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function oi(){return Math.random().toString(36).slice(2,9)}const ig=b.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=b.ref(),i=r,a=b.shallowRef(null),c=b.ref(0),d=T=>{a.value=ui(T,i.form,i.locals,u)},v=b.useSlots(),A=()=>{if(v.default){a.value=ui('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&d(P.body)})};return b.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),b.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),b.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(b.openBlock(),b.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(a.value),{key:0},{default:b.withCtx(()=>[b.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):b.createCommentVNode("",!0)],512)):b.createCommentVNode("",!0)}}),ug=b.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=b.inject("vars").__emitter,a=b.useAttrs(),c={};return b.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),b.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>b.createCommentVNode("",!0)}}),og=b.defineComponent({__name:"parent-size-observer",setup(r){const u=b.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return b.onMounted(()=>{var v;const c=b.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),b.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>b.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},Ye.prototype[Symbol.iterator]=function(){return this.entries()},Ye.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&wl(r[v])||u.skipEmptyString&&r[v]==="",a=Al(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,jl=Zl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,Yc=Kc,Zc=Yc(Jc),jc=Zc,Xc=ho,Qc=Ql,Vc=jc;function kc(r,u){return Vc(Qc(r,u,Xc),r+"")}var yo=kc,eh=Zn,th=eh(Object,"create"),jn=th,wo=jn;function nh(){this.__data__=wo?wo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=jn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=jn,ph=Object.prototype,dh=ph.hasOwnProperty;function gh(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var _h=gh,vh=jn,yh="__lodash_hash_undefined__";function wh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?yh:u,this}var mh=wh,Ah=rh,Sh=uh,Oh=ch,xh=_h,Eh=mh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,Yh=Th,Zh=Uh,jh=Wh,Xh=Gh,Qh=Jh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=jp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=_d){var P=u?null:dd(r);if(P)return gd(P);v=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=wd}var Ad=md,Sd=go,Od=Ad;function xd(r){return r!=null&&Od(r.length)&&!Sd(r)}var Ed=xd,bd=Ed,Id=Yn;function Td(r){return Id(r)&&bd(r)}var bo=Td,Rd=Kl,Cd=yo,Ld=yd,Fd=bo,Pd=Cd(function(r){return Ld(Rd(r,1,Fd,!0))}),$d=Pd;const Dd=Kn($d);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,v=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${gt.stringify(T,P)}`}}function ng(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=eg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function rg(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ig(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function ug(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ig(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}const og=b.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=b.ref(),i=r,a=b.shallowRef(null),c=b.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=b.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&d(P.body)})};return b.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),b.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),b.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(b.openBlock(),b.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(a.value),{key:0},{default:b.withCtx(()=>[b.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):b.createCommentVNode("",!0)],512)):b.createCommentVNode("",!0)}}),fg=b.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=b.inject("vars").__emitter,a=b.useAttrs(),c={};return b.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),b.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>b.createCommentVNode("",!0)}}),ag=b.defineComponent({__name:"parent-size-observer",setup(r){const u=b.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return b.onMounted(()=>{var v;const c=b.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),b.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>b.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var fg=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),ag=Object.prototype.hasOwnProperty;function fi(r,u){return ag.call(r,u)}function ai(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function bo(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function li(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[M]===void 0?z=T.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&se(u,0,r,z)),F++,Array.isArray(P)){if(M==="-")M=P.length;else{if(i&&!si(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);si(M)&&(M=~~M)}if(F>=D){if(i&&u.op==="add"&&M>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=lg[u.op].call(u,P,M,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=en[u.op].call(u,P,M,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if(P=P[M],i&&F0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&li(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Ro([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Ro(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)ci(Ne(u),Ne(r),i||!0);else{i=i||tr;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[N]===void 0?z=T.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),F++,Array.isArray(P)){if(N==="-")N=P.length;else{if(i&&!li(N))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(F>=D){if(i&&u.op==="add"&&N>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=hg[u.op].call(u,P,N,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=tn[u.op].call(u,P,N,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if(P=P[N],i&&F0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Lo([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function di(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=ai(u),v=ai(r),A=!1,T=v.length-1;T>=0;T--){var P=v[T],F=r[P];if(fi(u,P)&&!(u[P]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?di(F,D,i,a+"/"+Bt(P),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ne(F)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Ne(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Ne(F)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var P=v[T],F=r[P];if(ai(u,P)&&!(u[P]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?gi(F,D,i,a+"/"+Bt(P),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */nr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,F="__lodash_placeholder__",D=1,z=2,M=4,se=1,Ke=2,ge=1,Fe=2,_t=4,ye=8,st=16,we=32,k=64,ne=128,Ee=256,vt=512,yt=30,de="...",vi=800,An=16,Sn=1,ir=2,lt=3,Ae=1/0,Ye=9007199254740991,Ze=17976931348623157e292,tn=NaN,g=4294967295,m=g-1,E=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",Ee]],W="[object Arguments]",re="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",On="[object Date]",qg="[object DOMException]",ur="[object Error]",or="[object Function]",Po="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Gg="[object Null]",wt="[object Object]",$o="[object Promise]",zg="[object Proxy]",En="[object RegExp]",it="[object Set]",bn="[object String]",fr="[object Symbol]",Kg="[object Undefined]",In="[object WeakMap]",Yg="[object WeakSet]",Tn="[object ArrayBuffer]",nn="[object DataView]",yi="[object Float32Array]",wi="[object Float64Array]",mi="[object Int8Array]",Ai="[object Int16Array]",Si="[object Int32Array]",Oi="[object Uint8Array]",xi="[object Uint8ClampedArray]",Ei="[object Uint16Array]",bi="[object Uint32Array]",Zg=/\b__p \+= '';/g,Jg=/\b(__p \+=) '' \+/g,jg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Do=/&(?:amp|lt|gt|quot|#39);/g,Mo=/[&<>"']/g,Xg=RegExp(Do.source),Qg=RegExp(Mo.source),Vg=/<%-([\s\S]+?)%>/g,kg=/<%([\s\S]+?)%>/g,Uo=/<%=([\s\S]+?)%>/g,e_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,t_=/^\w*$/,n_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ii=/[\\^$.*+?()[\]{}|]/g,r_=RegExp(Ii.source),Ti=/^\s+/,i_=/\s/,u_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,o_=/\{\n\/\* \[wrapped with (.+)\] \*/,f_=/,? & /,a_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s_=/[()=,{}\[\]\/\s]/,l_=/\\(\\)?/g,c_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,No=/\w*$/,h_=/^[-+]0x[0-9a-f]+$/i,p_=/^0b[01]+$/i,d_=/^\[object .+?Constructor\]$/,g_=/^0o[0-7]+$/i,__=/^(?:0|[1-9]\d*)$/,v_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ar=/($^)/,y_=/['\n\r\u2028\u2029\\]/g,sr="\\ud800-\\udfff",w_="\\u0300-\\u036f",m_="\\ufe20-\\ufe2f",A_="\\u20d0-\\u20ff",Bo=w_+m_+A_,Wo="\\u2700-\\u27bf",Ho="a-z\\xdf-\\xf6\\xf8-\\xff",S_="\\xac\\xb1\\xd7\\xf7",O_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",x_="\\u2000-\\u206f",E_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qo="A-Z\\xc0-\\xd6\\xd8-\\xde",Go="\\ufe0e\\ufe0f",zo=S_+O_+x_+E_,Ri="['’]",b_="["+sr+"]",Ko="["+zo+"]",lr="["+Bo+"]",Yo="\\d+",I_="["+Wo+"]",Zo="["+Ho+"]",Jo="[^"+sr+zo+Yo+Wo+Ho+qo+"]",Ci="\\ud83c[\\udffb-\\udfff]",T_="(?:"+lr+"|"+Ci+")",jo="[^"+sr+"]",Li="(?:\\ud83c[\\udde6-\\uddff]){2}",Fi="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+qo+"]",Xo="\\u200d",Qo="(?:"+Zo+"|"+Jo+")",R_="(?:"+rn+"|"+Jo+")",Vo="(?:"+Ri+"(?:d|ll|m|re|s|t|ve))?",ko="(?:"+Ri+"(?:D|LL|M|RE|S|T|VE))?",ef=T_+"?",tf="["+Go+"]?",C_="(?:"+Xo+"(?:"+[jo,Li,Fi].join("|")+")"+tf+ef+")*",L_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",F_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nf=tf+ef+C_,P_="(?:"+[I_,Li,Fi].join("|")+")"+nf,$_="(?:"+[jo+lr+"?",lr,Li,Fi,b_].join("|")+")",D_=RegExp(Ri,"g"),M_=RegExp(lr,"g"),Pi=RegExp(Ci+"(?="+Ci+")|"+$_+nf,"g"),U_=RegExp([rn+"?"+Zo+"+"+Vo+"(?="+[Ko,rn,"$"].join("|")+")",R_+"+"+ko+"(?="+[Ko,rn+Qo,"$"].join("|")+")",rn+"?"+Qo+"+"+Vo,rn+"+"+ko,F_,L_,Yo,P_].join("|"),"g"),N_=RegExp("["+Xo+sr+Bo+Go+"]"),B_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,W_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],H_=-1,ie={};ie[yi]=ie[wi]=ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=ie[Ei]=ie[bi]=!0,ie[W]=ie[re]=ie[Tn]=ie[Se]=ie[nn]=ie[On]=ie[ur]=ie[or]=ie[rt]=ie[xn]=ie[wt]=ie[En]=ie[it]=ie[bn]=ie[In]=!1;var te={};te[W]=te[re]=te[Tn]=te[nn]=te[Se]=te[On]=te[yi]=te[wi]=te[mi]=te[Ai]=te[Si]=te[rt]=te[xn]=te[wt]=te[En]=te[it]=te[bn]=te[fr]=te[Oi]=te[xi]=te[Ei]=te[bi]=!0,te[ur]=te[or]=te[In]=!1;var q_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},G_={"&":"&","<":"<",">":">",'"':""","'":"'"},z_={"&":"&","<":"<",">":">",""":'"',"'":"'"},K_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Y_=parseFloat,Z_=parseInt,rf=typeof nt=="object"&&nt&&nt.Object===Object&&nt,J_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=rf||J_||Function("return this")(),$i=u&&!u.nodeType&&u,Ht=$i&&!0&&r&&!r.nodeType&&r,uf=Ht&&Ht.exports===$i,Di=uf&&rf.process,Je=function(){try{var _=Ht&&Ht.require&&Ht.require("util").types;return _||Di&&Di.binding&&Di.binding("util")}catch{}}(),of=Je&&Je.isArrayBuffer,ff=Je&&Je.isDate,af=Je&&Je.isMap,sf=Je&&Je.isRegExp,lf=Je&&Je.isSet,cf=Je&&Je.isTypedArray;function Be(_,S,w){switch(w.length){case 0:return _.call(S);case 1:return _.call(S,w[0]);case 2:return _.call(S,w[0],w[1]);case 3:return _.call(S,w[0],w[1],w[2])}return _.apply(S,w)}function j_(_,S,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function wf(_,S){for(var w=_.length;w--&&un(S,_[w],0)>-1;);return w}function iv(_,S){for(var w=_.length,L=0;w--;)_[w]===S&&++L;return L}var uv=Wi(q_),ov=Wi(G_);function fv(_){return"\\"+K_[_]}function av(_,S){return _==null?i:_[S]}function on(_){return N_.test(_)}function sv(_){return B_.test(_)}function lv(_){for(var S,w=[];!(S=_.next()).done;)w.push(S.value);return w}function zi(_){var S=-1,w=Array(_.size);return _.forEach(function(L,H){w[++S]=[H,L]}),w}function mf(_,S){return function(w){return _(S(w))}}function Lt(_,S){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Qv(e,t){var n=this.__data__,o=Tr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Zv,mt.prototype.delete=Jv,mt.prototype.get=jv,mt.prototype.has=Xv,mt.prototype.set=Qv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=q(e);if(x){if(h=t1(e),!p)return $e(e,h)}else{var I=Ie(e),R=I==or||I==Po;if(Ut(e))return na(e,p);if(I==wt||I==W||R&&!f){if(h=y||R?{}:Aa(e),!p)return y?z0(e,p0(h,e)):G0(e,Ff(h,e))}else{if(!te[I])return f?e:{};h=n1(e,I,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),Xa(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Ja(e)&&e.forEach(function(B,Z){h.set(Z,Ve(B,t,n,Z,e,l))});var N=O?y?_u:gu:y?Me:me,K=x?i:N(e);return je(K||e,function(B,Z){K&&(Z=B,B=e[Z]),Dn(h,Z,Ve(B,t,n,Z,e,l))}),h}function d0(e){var t=me(e);return function(n){return Pf(n,e,t)}}function Pf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function $f(e,t,n){if(typeof e!="function")throw new Xe(v);return qn(function(){e.apply(i,n)},t)}function Mn(e,t,n,o){var f=-1,l=cr,h=!0,p=e.length,y=[],O=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Rn,h=!1,t=new zt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:Va(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Qi=aa(),Uf=aa(!0);function ct(e,t){return e&&Qi(e,t,me)}function Vi(e,t){return e&&Uf(e,t,me)}function Cr(e,t){return Rt(t,function(n){return bt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function v0(e,t){return e!=null&&V.call(e,t)}function y0(e,t){return e!=null&&t in ee(e)}function w0(e,t,n){return e>=be(t,n)&&e=120&&x.length>=120)?new zt(h&&x):i}x=e[0];var I=-1,R=p[0];e:for(;++I-1;)p!==e&&Ar.call(p,y,1),Ar.call(e,y,1);return e}function Jf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;Et(f)?Ar.call(e,f,1):au(e,f)}}return e}function uu(e,t){return e+xr(Tf()*(t-e+1))}function F0(e,t,n,o){for(var f=-1,l=ve(Or((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function ou(e,t){var n="";if(!e||t<1||t>Ye)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return Ou(xa(e,t,Ue),e+"")}function P0(e){return Lf(vn(e))}function $0(e,t){var n=vn(e);return Hr(n,Kt(t,0,n.length))}function Bn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:J0(e);if(O)return pr(O);h=!1,f=Rn,y=new zt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ta=Ev||function(e){return Oe.clearTimeout(e)};function na(e,t){if(t)return e.slice();var n=e.length,o=Of?Of(n):new e.constructor(n);return e.copy(o),o}function hu(e){var t=new e.constructor(e.byteLength);return new wr(t).set(new wr(e)),t}function B0(e,t){var n=t?hu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function W0(e){var t=new e.constructor(e.source,No.exec(e));return t.lastIndex=e.lastIndex,t}function H0(e){return $n?ee($n.call(e)):{}}function ra(e,t){var n=t?hu(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ia(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,y=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&y&&!p&&!O||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!O&&e=p)return y;var O=n[o];return y*(O=="desc"?-1:1)}}return e.index-t.index}function ua(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,O=ve(l-h,0),x=w(y+O),I=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function ca(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Br(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&yp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var I=-1,R=!0,$=n&Ke?new zt:i;for(l.set(e,t),l.set(t,e);++I1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(u_,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,F="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Fe=2,_t=4,ye=8,st=16,we=32,k=64,ne=128,Ee=256,vt=512,yt=30,de="...",wi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,E=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",Ee]],W="[object Arguments]",re="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",xn="[object Date]",Gg="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",zg="[object Null]",wt="[object Object]",No="[object Promise]",Kg="[object Proxy]",bn="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Jg="[object Undefined]",Tn="[object WeakMap]",Yg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",xi="[object Int32Array]",Ei="[object Uint8Array]",bi="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Zg=/\b__p \+= '';/g,jg=/\b(__p \+=) '' \+/g,Xg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Mo=/[&<>"']/g,Qg=RegExp(Uo.source),Vg=RegExp(Mo.source),kg=/<%-([\s\S]+?)%>/g,e_=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,t_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n_=/^\w*$/,r_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,i_=RegExp(Ri.source),Ci=/^\s+/,u_=/\s/,o_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,f_=/\{\n\/\* \[wrapped with (.+)\] \*/,a_=/,? & /,s_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l_=/[()=,{}\[\]\/\s]/,c_=/\\(\\)?/g,h_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,p_=/^[-+]0x[0-9a-f]+$/i,d_=/^0b[01]+$/i,g_=/^\[object .+?Constructor\]$/,__=/^0o[0-7]+$/i,v_=/^(?:0|[1-9]\d*)$/,y_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,w_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",m_="\\u0300-\\u036f",A_="\\ufe20-\\ufe2f",S_="\\u20d0-\\u20ff",Ho=m_+A_+S_,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",O_="\\xac\\xb1\\xd7\\xf7",x_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",E_="\\u2000-\\u206f",b_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=O_+x_+E_+b_,Li="['’]",I_="["+lr+"]",Yo="["+Jo+"]",cr="["+Ho+"]",Zo="\\d+",T_="["+qo+"]",jo="["+Go+"]",Xo="[^"+lr+Jo+Zo+qo+Go+zo+"]",Fi="\\ud83c[\\udffb-\\udfff]",R_="(?:"+cr+"|"+Fi+")",Qo="[^"+lr+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",Vo="\\u200d",ko="(?:"+jo+"|"+Xo+")",C_="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=R_+"?",rf="["+Ko+"]?",L_="(?:"+Vo+"(?:"+[Qo,Pi,$i].join("|")+")"+rf+nf+")*",F_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",P_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+L_,$_="(?:"+[T_,Pi,$i].join("|")+")"+uf,D_="(?:"+[Qo+cr+"?",cr,Pi,$i,I_].join("|")+")",N_=RegExp(Li,"g"),U_=RegExp(cr,"g"),Di=RegExp(Fi+"(?="+Fi+")|"+D_+uf,"g"),M_=RegExp([un+"?"+jo+"+"+ef+"(?="+[Yo,un,"$"].join("|")+")",C_+"+"+tf+"(?="+[Yo,un+ko,"$"].join("|")+")",un+"?"+ko+"+"+ef,un+"+"+tf,P_,F_,Zo,$_].join("|"),"g"),B_=RegExp("["+Vo+lr+Ho+Ko+"]"),W_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,H_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],q_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=ie[Ei]=ie[bi]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[xn]=ie[or]=ie[fr]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[xn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[xi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[In]=te[ar]=te[Ei]=te[bi]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var G_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},z_={"&":"&","<":"<",">":">",'"':""","'":"'"},K_={"&":"&","<":"<",">":">",""":'"',"'":"'"},J_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Y_=parseFloat,Z_=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,j_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||j_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Ni,Ui=ff&&of.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),af=Ze&&Ze.isArrayBuffer,sf=Ze&&Ze.isDate,lf=Ze&&Ze.isMap,cf=Ze&&Ze.isRegExp,hf=Ze&&Ze.isSet,pf=Ze&&Ze.isTypedArray;function Be(_,S,w){switch(w.length){case 0:return _.call(S);case 1:return _.call(S,w[0]);case 2:return _.call(S,w[0],w[1]);case 3:return _.call(S,w[0],w[1],w[2])}return _.apply(S,w)}function X_(_,S,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function Af(_,S){for(var w=_.length;w--&&on(S,_[w],0)>-1;);return w}function uv(_,S){for(var w=_.length,L=0;w--;)_[w]===S&&++L;return L}var ov=qi(G_),fv=qi(z_);function av(_){return"\\"+J_[_]}function sv(_,S){return _==null?i:_[S]}function fn(_){return B_.test(_)}function lv(_){return W_.test(_)}function cv(_){for(var S,w=[];!(S=_.next()).done;)w.push(S.value);return w}function Ji(_){var S=-1,w=Array(_.size);return _.forEach(function(L,H){w[++S]=[H,L]}),w}function Sf(_,S){return function(w){return _(S(w))}}function Lt(_,S){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Vv(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Zv,mt.prototype.delete=jv,mt.prototype.get=Xv,mt.prototype.has=Qv,mt.prototype.set=Vv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=q(e);if(x){if(h=n1(e),!p)return $e(e,h)}else{var I=Ie(e),R=I==fr||I==Do;if(Ut(e))return ia(e,p);if(I==wt||I==W||R&&!f){if(h=y||R?{}:Oa(e),!p)return y?K0(e,d0(h,e)):z0(e,$f(h,e))}else{if(!te[I])return f?e:{};h=r1(e,I,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),Va(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?y?yu:vu:y?Ne:me,K=x?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function g0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,y=[],O=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=la(),Bf=la(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return bt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function y0(e,t){return e!=null&&V.call(e,t)}function w0(e,t){return e!=null&&t in ee(e)}function m0(e,t,n){return e>=be(t,n)&&e=120&&x.length>=120)?new Kt(h&&x):i}x=e[0];var I=-1,R=p[0];e:for(;++I-1;)p!==e&&Sr.call(p,y,1),Sr.call(e,y,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;Et(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+Er(Cf()*(t-e+1))}function P0(e,t,n,o){for(var f=-1,l=ve(xr((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=Er(t/2),t&&(e+=e);while(t);return n}function J(e,t){return Eu(ba(e,t,Ue),e+"")}function $0(e){return Pf(yn(e))}function D0(e,t){var n=yn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:j0(e);if(O)return dr(O);h=!1,f=Cn,y=new Kt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ra=bv||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function W0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function H0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function q0(e){return Dn?ee(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,y=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&y&&!p&&!O||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!O&&e=p)return y;var O=n[o];return y*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,O=ve(l-h,0),x=w(y+O),I=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&yp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var I=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++I1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(o_,`{ /* [wrapped with `+t+`] */ -`)}function i1(e){return q(e)||jt(e)||!!(bf&&e&&e[bf])}function Et(e,t){var n=typeof e;return t=t??Ye,!!t&&(n=="number"||n!="symbol"&&__.test(e))&&e>-1&&e%1==0&&e0){if(++t>=vi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Hr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ma(e,n)});function Ua(e){var t=s(e);return t.__chain__=!0,t}function gy(e,t){return t(e),e}function qr(e,t){return t(e)}var _y=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Xi(l,e)};return t>1||this.__actions__.length||!(o instanceof J)||!Et(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:qr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function vy(){return Ua(this)}function yy(){return new Qe(this.value(),this.__chain__)}function wy(){this.__values__===i&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function my(){return this}function Ay(e){for(var t,n=this;n instanceof Ir;){var o=Ca(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function Sy(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:qr,args:[xu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(xu)}function Oy(){return kf(this.__wrapped__,this.__actions__)}var xy=$r(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Ey(e,t,n){var o=q(e)?hf:g0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function by(e,t){var n=q(e)?Rt:Mf;return n(e,U(t,3))}var Iy=la(La),Ty=la(Fa);function Ry(e,t){return xe(Gr(e,t),1)}function Cy(e,t){return xe(Gr(e,t),Ae)}function Ly(e,t,n){return n=n===i?1:G(n),xe(Gr(e,t),n)}function Na(e,t){var n=q(e)?je:Pt;return n(e,U(t,3))}function Ba(e,t){var n=q(e)?X_:Df;return n(e,U(t,3))}var Fy=$r(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Py(e,t,n,o){e=De(e)?e:vn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&un(e,t,n)>-1}var $y=Y(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Dy=$r(function(e,t,n){St(e,n,t)});function Gr(e,t){var n=q(e)?ue:qf;return n(e,U(t,3))}function My(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Yf(e,t,n))}var Uy=$r(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Ny(e,t,n){var o=q(e)?Ui:_f,f=arguments.length<3;return o(e,U(t,4),n,f,Pt)}function By(e,t,n){var o=q(e)?Q_:_f,f=arguments.length<3;return o(e,U(t,4),n,f,Df)}function Wy(e,t){var n=q(e)?Rt:Mf;return n(e,Yr(U(t,3)))}function Hy(e){var t=q(e)?Lf:P0;return t(e)}function qy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?l0:$0;return o(e,t)}function Gy(e){var t=q(e)?c0:M0;return t(e)}function zy(e){if(e==null)return 0;if(De(e))return Jr(e)?fn(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:nu(e).length}function Ky(e,t,n){var o=q(e)?Ni:U0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Yy=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Yf(e,xe(t,1),[])}),zr=bv||function(){return Oe.Date.now()};function Zy(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Wa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ha(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var bu=Y(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,gn(bu));o|=we}return Ot(e,o,t,n,f)}),qa=Y(function(e,t,n){var o=ge|Fe;if(n.length){var f=Lt(n,gn(qa));o|=we}return Ot(t,o,e,n,f)});function Ga(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ga.placeholder,o}function za(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Ka(e,t,n){var o,f,l,h,p,y,O=0,x=!1,I=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(x=!!n.leading,I="maxWait"in n,l=I?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(ce){var at=o,Tt=f;return o=f=i,O=ce,h=e.apply(Tt,at),h}function N(ce){return O=ce,p=qn(Z,t),x?$(ce):h}function K(ce){var at=ce-y,Tt=ce-O,ls=t-at;return I?be(ls,l-Tt):ls}function B(ce){var at=ce-y,Tt=ce-O;return y===i||at>=t||at<0||I&&Tt>=l}function Z(){var ce=zr();if(B(ce))return j(ce);p=qn(Z,K(ce))}function j(ce){return p=i,R&&o?$(ce):(o=f=i,h)}function Ge(){p!==i&&ta(p),O=0,o=y=f=p=i}function Le(){return p===i?h:j(zr())}function ze(){var ce=zr(),at=B(ce);if(o=arguments,f=this,y=ce,at){if(p===i)return N(y);if(I)return ta(p),p=qn(Z,t),$(y)}return p===i&&(p=qn(Z,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Jy=Y(function(e,t){return $f(e,1,t)}),jy=Y(function(e,t,n){return $f(e,tt(t)||0,n)});function Xy(e){return Ot(e,vt)}function Kr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Kr.Cache||At),n}Kr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Qy(e){return Ha(2,e)}var Vy=N0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return Y(function(o){for(var f=-1,l=be(o.length,n);++f=t}),jt=Bf(function(){return arguments}())?Bf:function(e){return ae(e)&&V.call(e,"callee")&&!Ef.call(e,"callee")},q=w.isArray,pw=of?We(of):A0;function De(e){return e!=null&&Zr(e.length)&&!bt(e)}function le(e){return ae(e)&&De(e)}function dw(e){return e===!0||e===!1||ae(e)&&Re(e)==Se}var Ut=Tv||Nu,gw=ff?We(ff):S0;function _w(e){return ae(e)&&e.nodeType===1&&!Gn(e)}function vw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||_n(e)||jt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(Hn(e))return!nu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function yw(e,t){return Nn(e,t)}function ww(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Nn(e,t,i,n):!!o}function Tu(e){if(!ae(e))return!1;var t=Re(e);return t==ur||t==qg||typeof e.message=="string"&&typeof e.name=="string"&&!Gn(e)}function mw(e){return typeof e=="number"&&If(e)}function bt(e){if(!oe(e))return!1;var t=Re(e);return t==or||t==Po||t==Pe||t==zg}function Za(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ye}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Ja=af?We(af):x0;function Aw(e,t){return e===t||tu(e,t,yu(t))}function Sw(e,t,n){return n=typeof n=="function"?n:i,tu(e,t,yu(t),n)}function Ow(e){return ja(e)&&e!=+e}function xw(e){if(f1(e))throw new H(d);return Wf(e)}function Ew(e){return e===null}function bw(e){return e==null}function ja(e){return typeof e=="number"||ae(e)&&Re(e)==xn}function Gn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=mr(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_r.call(n)==Sv}var Ru=sf?We(sf):E0;function Iw(e){return Za(e)&&e>=-Ye&&e<=Ye}var Xa=lf?We(lf):b0;function Jr(e){return typeof e=="string"||!q(e)&&ae(e)&&Re(e)==bn}function qe(e){return typeof e=="symbol"||ae(e)&&Re(e)==fr}var _n=cf?We(cf):I0;function Tw(e){return e===i}function Rw(e){return ae(e)&&Ie(e)==In}function Cw(e){return ae(e)&&Re(e)==Yg}var Lw=Nr(ru),Fw=Nr(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(De(e))return Jr(e)?ut(e):$e(e);if(Cn&&e[Cn])return lv(e[Cn]());var t=Ie(e),n=t==rt?zi:t==it?pr:vn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ze}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?Kt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return tn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vf(e);var n=p_.test(e);return n||g_.test(e)?Z_(e.slice(2),n?2:8):h_.test(e)?tn:+e}function ka(e){return ht(e,Me(e))}function Pw(e){return e?Kt(G(e),-Ye,Ye):e===0?e:0}function Q(e){return e==null?"":He(e)}var $w=pn(function(e,t){if(Hn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Dn(e,n,t[n])}),es=pn(function(e,t){ht(t,Me(t),e)}),jr=pn(function(e,t,n,o){ht(t,Me(t),e,o)}),Dw=pn(function(e,t,n,o){ht(t,me(t),e,o)}),Mw=xt(Xi);function Uw(e,t){var n=hn(e);return t==null?n:Ff(n,t)}var Nw=Y(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,_u(e),n),o&&(n=Ve(n,D|z|M,j0));for(var f=t.length;f--;)au(n,t[f]);return n});function nm(e,t){return ns(e,Yr(U(t)))}var rm=xt(function(e,t){return e==null?{}:C0(e,t)});function ns(e,t){if(e==null)return{};var n=ue(_u(e),function(o){return[o]});return t=U(t),Zf(e,n,function(o,f){return t(o,f[0])})}function im(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Tf();return be(e+f*(t-e+Y_("1e-"+((f+"").length-1))),t)}return uu(e,t)}var gm=dn(function(e,t,n){return t=t.toLowerCase(),e+(n?us(t):t)});function us(e){return Fu(Q(e).toLowerCase())}function os(e){return e=Q(e),e&&e.replace(v_,uv).replace(M_,"")}function _m(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Kt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function vm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Mo,ov):e}function ym(e){return e=Q(e),e&&r_.test(e)?e.replace(Ii,"\\$&"):e}var wm=dn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),mm=dn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Am=sa("toLowerCase");function Sm(e,t,n){e=Q(e),t=G(t);var o=t?fn(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Ur(xr(f),n)+e+Ur(Or(f),n)}function Om(e,t,n){e=Q(e),t=G(t);var o=t?fn(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Ru(t))&&(t=He(t),!t&&on(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Cm=dn(function(e,t,n){return e+(n?" ":"")+Fu(t)});function Lm(e,t,n){return e=Q(e),n=n==null?0:Kt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Fm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=jr({},t,o,_a);var f=jr({},t.imports,o.imports,_a),l=me(f),h=Gi(f,l),p,y,O=0,x=t.interpolate||ar,I="__p += '",R=Ki((t.escape||ar).source+"|"+x.source+"|"+(x===Uo?c_:ar).source+"|"+(t.evaluate||ar).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++H_+"]")+` -`;e.replace(R,function(B,Z,j,Ge,Le,ze){return j||(j=Ge),I+=e.slice(O,ze).replace(y_,fv),Z&&(p=!0,I+=`' + -__e(`+Z+`) + +`)}function u1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function Et(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&v_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=wi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ma(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function _y(e,t){return t(e),e}function Gr(e,t){return t(e)}var vy=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!Et(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function yy(){return Ba(this)}function wy(){return new Qe(this.value(),this.__chain__)}function my(){this.__values__===i&&(this.__values__=ka(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ay(){return this}function Sy(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function Oy(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[bu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(bu)}function xy(){return ta(this.__wrapped__,this.__actions__)}var Ey=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function by(e,t,n){var o=q(e)?df:_0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Iy(e,t){var n=q(e)?Rt:Mf;return n(e,U(t,3))}var Ty=ha(Pa),Ry=ha($a);function Cy(e,t){return xe(zr(e,t),1)}function Ly(e,t){return xe(zr(e,t),Ae)}function Fy(e,t,n){return n=n===i?1:G(n),xe(zr(e,t),n)}function Wa(e,t){var n=q(e)?je:Pt;return n(e,U(t,3))}function Ha(e,t){var n=q(e)?Q_:Uf;return n(e,U(t,3))}var Py=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function $y(e,t,n,o){e=De(e)?e:yn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Dy=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Ny=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:zf;return n(e,U(t,3))}function Uy(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var My=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function By(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Pt)}function Wy(e,t,n){var o=q(e)?V_:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Uf)}function Hy(e,t){var n=q(e)?Rt:Mf;return n(e,Yr(U(t,3)))}function qy(e){var t=q(e)?Pf:$0;return t(e)}function Gy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?c0:D0;return o(e,t)}function zy(e){var t=q(e)?h0:U0;return t(e)}function Ky(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Jy(e,t,n){var o=q(e)?Wi:M0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Yy=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,xe(t,1),[])}),Kr=Iv||function(){return Oe.Date.now()};function Zy(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=we}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=ge|Fe;if(n.length){var f=Lt(n,_n(za));o|=we}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,y,O=0,x=!1,I=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(x=!!n.leading,I="maxWait"in n,l=I?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),x?$(he):h}function K(he){var at=he-y,Tt=he-O,hs=t-at;return I?be(hs,l-Tt):hs}function B(he){var at=he-y,Tt=he-O;return y===i||at>=t||at<0||I&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=y=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,y=he,at){if(p===i)return M(y);if(I)return ra(p),p=Gn(Y,t),$(y)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var jy=J(function(e,t){return Nf(e,1,t)}),Xy=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Qy(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vy(e){return Ga(2,e)}var ky=B0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=be(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return ae(e)&&V.call(e,"callee")&&!If.call(e,"callee")},q=w.isArray,dw=af?We(af):S0;function De(e){return e!=null&&Zr(e.length)&&!bt(e)}function ce(e){return ae(e)&&De(e)}function gw(e){return e===!0||e===!1||ae(e)&&Re(e)==Se}var Ut=Rv||Wu,_w=sf?We(sf):O0;function vw(e){return ae(e)&&e.nodeType===1&&!zn(e)}function yw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function ww(e,t){return Bn(e,t)}function mw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!ae(e))return!1;var t=Re(e);return t==or||t==Gg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Aw(e){return typeof e=="number"&&Rf(e)}function bt(e){if(!oe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Pe||t==Kg}function ja(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):E0;function Sw(e,t){return e===t||ru(e,t,mu(t))}function Ow(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function xw(e){return Qa(e)&&e!=+e}function Ew(e){if(a1(e))throw new H(d);return qf(e)}function bw(e){return e===null}function Iw(e){return e==null}function Qa(e){return typeof e=="number"||ae(e)&&Re(e)==En}function zn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==Ov}var Lu=cf?We(cf):b0;function Tw(e){return ja(e)&&e>=-Je&&e<=Je}var Va=hf?We(hf):I0;function jr(e){return typeof e=="string"||!q(e)&&ae(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||ae(e)&&Re(e)==ar}var vn=pf?We(pf):T0;function Rw(e){return e===i}function Cw(e){return ae(e)&&Ie(e)==Tn}function Lw(e){return ae(e)&&Re(e)==Yg}var Fw=Br(uu),Pw=Br(function(e,t){return e<=t});function ka(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return cv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:yn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wf(e);var n=d_.test(e);return n||__.test(e)?Z_(e.slice(2),n?2:8):p_.test(e)?nn:+e}function ts(e){return ht(e,Ne(e))}function $w(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Dw=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),Nw=dn(function(e,t,n,o){ht(t,me(t),e,o)}),Uw=xt(Vi);function Mw(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Bw=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,yu(e),n),o&&(n=Ve(n,D|z|N,X0));for(var f=t.length;f--;)lu(n,t[f]);return n});function rm(e,t){return is(e,Yr(U(t)))}var im=xt(function(e,t){return e==null?{}:L0(e,t)});function is(e,t){if(e==null)return{};var n=ue(yu(e),function(o){return[o]});return t=U(t),jf(e,n,function(o,f){return t(o,f[0])})}function um(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return be(e+f*(t-e+Y_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var _m=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(y_,ov).replace(U_,"")}function vm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function ym(e){return e=Q(e),e&&Vg.test(e)?e.replace(Mo,fv):e}function wm(e){return e=Q(e),e&&i_.test(e)?e.replace(Ri,"\\$&"):e}var mm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Am=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Sm=ca("toLowerCase");function Om(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(Er(f),n)+e+Mr(xr(f),n)}function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Lm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function Fm(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Pm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,y,O=0,x=t.interpolate||sr,I="__p += '",R=Yi((t.escape||sr).source+"|"+x.source+"|"+(x===Bo?h_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++q_+"]")+` +`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),I+=e.slice(O,ze).replace(w_,av),Y&&(p=!0,I+=`' + +__e(`+Y+`) + '`),Le&&(y=!0,I+=`'; `+Le+`; __p += '`),j&&(I+=`' + ((__t = (`+j+`)) == null ? '' : __t) + '`),O=ze+B.length,B}),I+=`'; -`;var N=V.call(t,"variable")&&t.variable;if(!N)I=`with (obj) { +`;var M=V.call(t,"variable")&&t.variable;if(!M)I=`with (obj) { `+I+` } -`;else if(s_.test(N))throw new H(A);I=(y?I.replace(Zg,""):I).replace(Jg,"$1").replace(jg,"$1;"),I="function("+(N||"obj")+`) { -`+(N?"":`obj || (obj = {}); +`;else if(l_.test(M))throw new H(A);I=(y?I.replace(Zg,""):I).replace(jg,"$1").replace(Xg,"$1;"),I="function("+(M||"obj")+`) { +`+(M?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p -}`;var K=as(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Tu(K))throw K;return K}function Pm(e){return Q(e).toLowerCase()}function $m(e){return Q(e).toUpperCase()}function Dm(e,t,n){if(e=Q(e),e&&(n||t===i))return vf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=yf(o,f),h=wf(o,f)+1;return Mt(o,l,h).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Af(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=wf(o,ut(t))+1;return Mt(o,0,f).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ti,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=yf(o,ut(t));return Mt(o,f).join("")}function Nm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(on(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-fn(o);if(p<1)return o;var y=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Ru(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Ki(f.source,Q(No.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Bm(e){return e=Q(e),e&&Xg.test(e)?e.replace(Do,dv):e}var Wm=dn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Fu=sa("toUpperCase");function fs(e,t,n){return e=Q(e),t=n?i:t,t===i?sv(e)?vv(e):ev(e):e.match(t)||[]}var as=Y(function(e,t){try{return Be(e,i,t)}catch(n){return Tu(n)?n:new H(n)}}),Hm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,bu(e[n],e))}),e});function qm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],Y(function(o){for(var f=-1;++fYe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=qi(o,t);++n0||t<0)?new J(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(g)},ct(J.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof J,O=p[0],x=y||q(h),I=function(Z){var j=f.apply(s,Ct([Z],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,N=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new J(this);var B=e.apply(h,p);return B.__actions__.push({func:qr,args:[I],thisArg:i}),new Qe(B,R)}return N&&K?e.apply(this,p):(B=this.thru(I),N?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=dr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(J.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(cn,o)||(cn[o]=[]),cn[o].push({name:t,func:n})}}),cn[Dr(i,Fe).name]=[{name:"wrapper",func:i}],J.prototype.clone=Bv,J.prototype.reverse=Wv,J.prototype.value=Hv,s.prototype.at=_y,s.prototype.chain=vy,s.prototype.commit=yy,s.prototype.next=wy,s.prototype.plant=Ay,s.prototype.reverse=Sy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Oy,s.prototype.first=s.prototype.head,Cn&&(s.prototype[Cn]=my),s},an=yv();Ht?((Ht.exports=an)._=an,$i._=an):Oe._=an}).call(nt)}(nr,nr.exports);var Sg=nr.exports;const Og=zn(Sg);class xg{constructor(){he(this,"_eventFuncID",{id:"__reload__"});he(this,"_url");he(this,"_method");he(this,"_vars");he(this,"_locals");he(this,"_loadPortalBody",!1);he(this,"_form",{});he(this,"_popstate");he(this,"_pushState");he(this,"_location");he(this,"_updateRootTemplate");he(this,"_buildPushStateResult");he(this,"parent");he(this,"lodash",Og);he(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);he(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(kn(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===kn(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Eo(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=gi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?gi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=kn(window.location.href);this._buildPushStateResult=kd({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Ag.applyPatch(u,i)}encodeObjectToQuery(u,i){return tg(u,i)}isRawQuerySubset(u,i,a){return rg(u,i,a)}}function gi(){return new xg}const Eg={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},bg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},rr=new Map,Ig=window.fetch;function Tg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=oi();rr.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Ig(...u),v=rr.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return rr.delete(c),d}catch(d){throw console.error("Fetch error:",d),rr.delete(c),d}})}const Rg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Cg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Lg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Co={exports:{}};function _i(){}_i.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=oi(),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index");this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index");this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}}const Ng=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=ui(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:new Ug}),d=()=>gi().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Tg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:` +}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Uo,gv):e}var Hm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class bg{constructor(){se(this,"_eventFuncID",{id:"__reload__"});se(this,"_url");se(this,"_method");se(this,"_vars");se(this,"_locals");se(this,"_loadPortalBody",!1);se(this,"_form",{});se(this,"_popstate");se(this,"_pushState");se(this,"_location");se(this,"_updateRootTemplate");se(this,"_buildPushStateResult");se(this,"parent");se(this,"lodash",Eg);se(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);se(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new bg}const Ig={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Tg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Rg=window.fetch;function Cg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Rg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Lg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this.stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this.stack));this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}};se(Ht,"instance",null);let yi=Ht;const Bg=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=oi(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:yi.getInstance()}),d=()=>_i().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Cg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:`
- `}),Bg={install(r){r.component("GoPlaidScope",hl),r.component("GoPlaidPortal",ig),r.component("GoPlaidListener",ug),r.component("ParentSizeObserver",og),r.directive("keep-scroll",Eg),r.directive("assign",bg),r.directive("on-created",Rg),r.directive("before-mount",Cg),r.directive("on-mounted",Lg),r.directive("before-update",Fg),r.directive("on-updated",Pg),r.directive("before-unmount",$g),r.directive("on-unmounted",Dg),r.component("GlobalEvents",ds)}};function Wg(r){const u=b.createApp(Ng,{initialTemplate:r});return u.use(Bg),u}const Lo=document.getElementById("app");if(!Lo)throw new Error("#app required");const Hg={},Fo=Wg(Lo.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Fo,Hg);Fo.mount("#app")}); + `}),Wg={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",og),r.component("GoPlaidListener",fg),r.component("ParentSizeObserver",ag),r.directive("keep-scroll",Ig),r.directive("assign",Tg),r.directive("on-created",Lg),r.directive("before-mount",Fg),r.directive("on-mounted",Pg),r.directive("before-update",$g),r.directive("on-updated",Dg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",_s)}};function Hg(r){const u=b.createApp(Bg,{initialTemplate:r});return u.use(Wg),u}const Po=document.getElementById("app");if(!Po)throw new Error("#app required");const qg={},$o=Hg(Po.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,qg);$o.mount("#app")}); diff --git a/corejs/src/__tests__/app.spec.ts b/corejs/src/__tests__/app.spec.ts index ab80119..c68b881 100644 --- a/corejs/src/__tests__/app.spec.ts +++ b/corejs/src/__tests__/app.spec.ts @@ -111,7 +111,9 @@ describe('app', () => { ` ) await nextTick() + console.log(wrapper.html()) await wrapper.find('button').trigger('click') + await flushPromises() console.log(wrapper.html()) }) diff --git a/corejs/src/__tests__/utils.spec.ts b/corejs/src/__tests__/utils.spec.ts index 02a7b35..e91539c 100644 --- a/corejs/src/__tests__/utils.spec.ts +++ b/corejs/src/__tests__/utils.spec.ts @@ -165,6 +165,7 @@ describe('utils', () => { expect( parsePathAndQuery('https://www.example.com/path/to/resource?name=value&key=value') ).toEqual('/path/to/resource?name=value&key=value') + expect(parsePathAndQuery('https://www.example.com')).toEqual('/') expect(parsePathAndQuery('/path/to/resource?name=value&key=value')).toEqual( '/path/to/resource?name=value&key=value' ) diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 61649f1..6e8396e 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -51,7 +51,7 @@ export const Root = defineComponent({ const vars = reactive({ __emitter: new TinyEmitter(), - __history: new HistoryManager() + __history: HistoryManager.getInstance() }) const _plaid = (): Builder => { return plaid().updateRootTemplate(updateRootTemplate).vars(vars) diff --git a/corejs/src/history.ts b/corejs/src/history.ts index 084c6bd..5b5c592 100644 --- a/corejs/src/history.ts +++ b/corejs/src/history.ts @@ -9,13 +9,15 @@ export interface HistoryRecord { const debug = false export class HistoryManager { + private static instance: HistoryManager | null = null + private stack: HistoryRecord[] = [] private currentIndex = -1 private originalPushState: typeof window.history.pushState private originalReplaceState: typeof window.history.replaceState - constructor() { + private constructor() { this.originalPushState = window.history.pushState.bind(window.history) this.originalReplaceState = window.history.replaceState.bind(window.history) window.history.pushState = this.pushState.bind(this) @@ -35,6 +37,13 @@ export class HistoryManager { } } + public static getInstance(): HistoryManager { + if (!HistoryManager.instance) { + HistoryManager.instance = new HistoryManager() + } + return HistoryManager.instance + } + private pushState(state: any, unused: string, url?: string | URL | null): void { if (!state) { state = {} @@ -68,7 +77,12 @@ export class HistoryManager { console.log('lastState', this.last()) } } else { - throw new Error('Invalid state index') + throw new Error( + 'Invalid state index for replaceState ' + + JSON.stringify(state) + + ' stack:' + + JSON.stringify(this.stack) + ) } this.originalReplaceState(state, unused, url) } @@ -86,7 +100,12 @@ export class HistoryManager { behavior = 'Forward' } if (index === -1) { - throw new Error('Invalid state index') + throw new Error( + 'Invalid state index for popstate ' + + JSON.stringify(event.state) + + ' stack:' + + JSON.stringify(this.stack) + ) } this.currentIndex = index From d0a5455f13843fd9371aa49124ece4feb7663215 Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:11:05 +0800 Subject: [PATCH 13/21] add history tests and improve test `plaid pushState dead loop` --- corejs/dist/index.js | 2 +- corejs/src/__tests__/app.spec.ts | 7 ++- corejs/src/__tests__/history.spec.ts | 87 ++++++++++++++++++++++++++++ corejs/src/history.ts | 52 ++++++++++------- 4 files changed, 123 insertions(+), 25 deletions(-) create mode 100644 corejs/src/__tests__/history.spec.ts diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 26801cf..1f87a37 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -46,7 +46,7 @@ __p += '`),j&&(I+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p -}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Uo,gv):e}var Hm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class bg{constructor(){se(this,"_eventFuncID",{id:"__reload__"});se(this,"_url");se(this,"_method");se(this,"_vars");se(this,"_locals");se(this,"_loadPortalBody",!1);se(this,"_form",{});se(this,"_popstate");se(this,"_pushState");se(this,"_location");se(this,"_updateRootTemplate");se(this,"_buildPushStateResult");se(this,"parent");se(this,"lodash",Eg);se(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);se(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new bg}const Ig={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Tg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Rg=window.fetch;function Cg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Rg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Lg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this.stack[this.currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this.stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this.stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis.currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this.stack));this.currentIndex=i}current(){return this.stack[this.currentIndex]}last(){return this.currentIndex===0?null:this.stack[this.currentIndex-1]}};se(Ht,"instance",null);let yi=Ht;const Bg=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=oi(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:yi.getInstance()}),d=()=>_i().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Cg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:` +}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Uo,gv):e}var Hm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class bg{constructor(){se(this,"_eventFuncID",{id:"__reload__"});se(this,"_url");se(this,"_method");se(this,"_vars");se(this,"_locals");se(this,"_loadPortalBody",!1);se(this,"_form",{});se(this,"_popstate");se(this,"_pushState");se(this,"_location");se(this,"_updateRootTemplate");se(this,"_buildPushStateResult");se(this,"parent");se(this,"lodash",Eg);se(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);se(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new bg}const Ig={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Tg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Rg=window.fetch;function Cg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Rg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Lg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};se(Ht,"instance",null);let yi=Ht;const Bg=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=oi(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:yi.getInstance()}),d=()=>_i().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Cg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:`
diff --git a/corejs/src/__tests__/app.spec.ts b/corejs/src/__tests__/app.spec.ts index c68b881..b22de0e 100644 --- a/corejs/src/__tests__/app.spec.ts +++ b/corejs/src/__tests__/app.spec.ts @@ -100,20 +100,23 @@ describe('app', () => { const form = ref(new FormData()) mockFetchWithReturnTemplate(form, (url: any) => { if (url.includes('__reload__')) { - return { body: '
' } + return { body: '
c
' } } else { - return { body: '', pushState: { mergeQuery: true, query: { panel: ['1'] } } } + return { body: '
b
', pushState: { mergeQuery: true, query: { panel: ['1'] } } } } }) const wrapper = mountTemplate( ` +
a
` ) await nextTick() + expect(wrapper.find('h6').html()).toEqual(`
a
`) console.log(wrapper.html()) await wrapper.find('button').trigger('click') await flushPromises() + expect(wrapper.find('h6').html()).toEqual(`
c
`) console.log(wrapper.html()) }) diff --git a/corejs/src/__tests__/history.spec.ts b/corejs/src/__tests__/history.spec.ts new file mode 100644 index 0000000..f9620ba --- /dev/null +++ b/corejs/src/__tests__/history.spec.ts @@ -0,0 +1,87 @@ +import { describe, expect, it } from 'vitest' +import { nextTick, ref } from 'vue' +import { mockFetchWithReturnTemplate, mountTemplate, waitUntil } from './testutils' +import { flushPromises } from '@vue/test-utils' +import { HistoryManager } from '@/history' + +describe('history', () => { + it('push then push then back then forward then back then jump', async () => { + const generateTemplate = (url: string) => { + return ` + + go to /page666 + ` + } + const wrapper = mountTemplate(generateTemplate('/page1')) + await nextTick() + console.log(wrapper.html()) + + const history = HistoryManager.getInstance() + + const form = ref(new FormData()) + mockFetchWithReturnTemplate(form, (url: any) => { + const match = url.match(/\/page(\d+)/) + const pageNum = match ? parseInt(match[1], 10) + 1 : 1 + const newUrl = `/page${pageNum}` + console.log('newUrl', newUrl) + return { body: generateTemplate(newUrl) } + }) + await wrapper.find('button').trigger('click') + await flushPromises() + expect(wrapper.find('button').text()).toEqual('go to /page2') + expect(window.location.pathname).toEqual('/page1') + expect(history.current().url).toEqual('/page1') + expect(history.last()?.url).toEqual('/') + expect(history.stack().length).toEqual(2) + expect(history.currentIndex()).toEqual(1) + + await wrapper.find('button').trigger('click') + await flushPromises() + expect(wrapper.find('button').text()).toEqual('go to /page3') + expect(window.location.pathname).toEqual('/page2') + expect(history.current().url).toEqual('/page2') + expect(history.last()?.url).toEqual('/page1') + expect(history.stack().length).toEqual(3) + expect(history.currentIndex()).toEqual(2) + + window.history.back() + await waitUntil((): boolean => { + return wrapper.find('button').text() === 'go to /page2' + }) + expect(window.location.pathname).toEqual('/page1') + expect(history.current().url).toEqual('/page1') + expect(history.last()?.url).toEqual('/') + expect(history.stack().length).toEqual(3) + expect(history.currentIndex()).toEqual(1) + + window.history.forward() + await waitUntil((): boolean => { + return wrapper.find('button').text() === 'go to /page3' + }) + expect(window.location.pathname).toEqual('/page2') + expect(history.current().url).toEqual('/page2') + expect(history.last()?.url).toEqual('/page1') + expect(history.stack().length).toEqual(3) + expect(history.currentIndex()).toEqual(2) + + window.history.back() + await waitUntil((): boolean => { + return wrapper.find('button').text() === 'go to /page2' + }) + expect(window.location.pathname).toEqual('/page1') + expect(history.current().url).toEqual('/page1') + expect(history.last()?.url).toEqual('/') + expect(history.stack().length).toEqual(3) + expect(history.currentIndex()).toEqual(1) + + // jump to another page from the middle to test that the original subsequent history should be abandoned + await wrapper.find('span').trigger('click') // to page666 + await flushPromises() + expect(wrapper.find('button').text()).toEqual('go to /page667') + expect(window.location.pathname).toEqual('/page666') + expect(history.current().url).toEqual('/page666') + expect(history.last()?.url).toEqual('/page1') + expect(history.stack().length).toEqual(3) + expect(history.currentIndex()).toEqual(2) + }) +}) diff --git a/corejs/src/history.ts b/corejs/src/history.ts index 5b5c592..4b93cd1 100644 --- a/corejs/src/history.ts +++ b/corejs/src/history.ts @@ -11,8 +11,8 @@ const debug = false export class HistoryManager { private static instance: HistoryManager | null = null - private stack: HistoryRecord[] = [] - private currentIndex = -1 + private _stack: HistoryRecord[] = [] + private _currentIndex = -1 private originalPushState: typeof window.history.pushState private originalReplaceState: typeof window.history.replaceState @@ -24,14 +24,14 @@ export class HistoryManager { window.history.replaceState = this.replaceState.bind(this) window.addEventListener('popstate', this.onPopState.bind(this)) - this.stack.push({ + this._stack.push({ state: null, unused: '', url: parsePathAndQuery(window.location.href) }) - this.currentIndex = 0 + this._currentIndex = 0 if (debug) { - console.log('init', this.stack, this.currentIndex) + console.log('init', this._stack, this._currentIndex) console.log('currentState', this.current()) console.log('lastState', this.last()) } @@ -50,12 +50,12 @@ export class HistoryManager { } state.__uniqueId = generateUniqueId() - this.stack = this.stack.slice(0, this.currentIndex + 1) - this.stack.push({ state: state, unused: unused, url: url }) - this.currentIndex++ + this._stack = this._stack.slice(0, this._currentIndex + 1) + this._stack.push({ state: state, unused: unused, url: url }) + this._currentIndex++ if (debug) { - console.log('pushState', this.stack, this.currentIndex) + console.log('pushState', this._stack, this._currentIndex) console.log('currentState', this.current()) console.log('lastState', this.last()) } @@ -64,15 +64,15 @@ export class HistoryManager { } private replaceState(state: any, unused: string, url?: string | URL | null): void { - if (this.currentIndex >= 0) { + if (this._currentIndex >= 0) { if (!state) { state = {} } state.__uniqueId = generateUniqueId() - this.stack[this.currentIndex] = { state: state, unused: unused, url: url } + this._stack[this._currentIndex] = { state: state, unused: unused, url: url } if (debug) { - console.log('replaceState', this.stack, this.currentIndex) + console.log('replaceState', this._stack, this._currentIndex) console.log('currentState', this.current()) console.log('lastState', this.last()) } @@ -81,22 +81,22 @@ export class HistoryManager { 'Invalid state index for replaceState ' + JSON.stringify(state) + ' stack:' + - JSON.stringify(this.stack) + JSON.stringify(this._stack) ) } this.originalReplaceState(state, unused, url) } private onPopState(event: PopStateEvent): void { - const index = this.stack.findIndex( + const index = this._stack.findIndex( (v) => (!event.state && !v.state) || (v.state && event.state && v.state.__uniqueId === event.state.__uniqueId) ) let behavior = '' - if (index < this.currentIndex) { + if (index < this._currentIndex) { behavior = 'Back' - } else if (index > this.currentIndex) { + } else if (index > this._currentIndex) { behavior = 'Forward' } if (index === -1) { @@ -104,27 +104,35 @@ export class HistoryManager { 'Invalid state index for popstate ' + JSON.stringify(event.state) + ' stack:' + - JSON.stringify(this.stack) + JSON.stringify(this._stack) ) } - this.currentIndex = index + this._currentIndex = index if (debug) { console.log('popstate', event.state) - console.log('onPopState', behavior, this.stack, this.currentIndex) + console.log('onPopState', behavior, this._stack, this._currentIndex) console.log('currentState', this.current()) console.log('lastState', this.last()) } } + public stack(): HistoryRecord[] { + return this._stack + } + + public currentIndex(): number { + return this._currentIndex + } + public current(): HistoryRecord { - return this.stack[this.currentIndex] + return this._stack[this._currentIndex] } public last(): HistoryRecord | null { - if (this.currentIndex === 0) { + if (this._currentIndex === 0) { return null } - return this.stack[this.currentIndex - 1] + return this._stack[this._currentIndex - 1] } } From 28351d0c0f91b2e3c17d703761e7aa407056680e Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Fri, 23 Aug 2024 10:06:55 +0800 Subject: [PATCH 14/21] use `beforeFetch` to prevent `form` from being modified --- corejs/dist/index.js | 32 ++++++++++++++-------------- corejs/src/__tests__/builder.spec.ts | 28 ++++++++++++++++++++++++ corejs/src/builder.ts | 13 +++++++++-- stateful/action.go | 5 ++++- vue.go | 10 +++++++++ 5 files changed, 69 insertions(+), 19 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 1f87a37..8408c88 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,36 +1,36 @@ -var IA=Object.defineProperty;var TA=(b,Te,Qt)=>Te in b?IA(b,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):b[Te]=Qt;var se=(b,Te,Qt)=>TA(b,typeof Te!="symbol"?Te+"":Te,Qt);(function(b,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(b=typeof globalThis<"u"?globalThis:b||self,Te(b.Vue))})(this,function(b){"use strict";/*! +var IA=Object.defineProperty;var TA=(E,Te,Qt)=>Te in E?IA(E,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):E[Te]=Qt;var fe=(E,Te,Qt)=>TA(E,typeof Te!="symbol"?Te+"":Te,Qt);(function(E,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(E=typeof globalThis<"u"?globalThis:E||self,Te(E.Vue))})(this,function(E){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ps=/^on(\w+?)((?:Once|Capture|Passive)*)$/,ds=/[OCP]/g;function gs(r){return r?Qt()?r.includes("Capture"):r.replace(ds,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const _s=b.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=b.ref(!0);return b.onActivated(()=>{a.value=!0}),b.onDeactivated(()=>{a.value=!1}),b.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const F=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=gs(P);F.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[F,T,D]})}),b.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ws=ys,ms=ws,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),wn=Ss,Os=wn,xs=function(){return Os.Date.now()},Es=xs,bs=/\s/;function Is(r){for(var u=r.length;u--&&bs.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Fs=Ls,Ps=wn,$s=Ps.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Ms=Us,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Ms,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var Vr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var Yn=Zs,js=Vr,Xs=Yn,Qs="[object Symbol]";function Vs(r){return typeof r=="symbol"||Xs(r)&&js(r)==Qs}var ks=Vs,el=Fs,Ku=Jn,tl=ks,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,kr=Es,Yu=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,v,A,T,P=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=Yu(u)||0,al(i)&&(F=!!i.leading,D="maxWait"in i,d=D?ll(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,Ee=c;return a=c=void 0,P=k,v=r.apply(Ee,ne),v}function le(k){return P=k,A=setTimeout(Fe,u),F?N(k):v}function Ke(k){var ne=k-T,Ee=k-P,vt=u-ne;return D?cl(vt,d-Ee):vt}function ge(k){var ne=k-T,Ee=k-P;return T===void 0||ne>=u||ne<0||D&&Ee>=d}function Fe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Fe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function we(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),N(T)}return A===void 0&&(A=setTimeout(Fe,u)),v}return we.cancel=ye,we.flush=st,we}var pl=hl;const Zu=Kn(pl),dl=b.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=b.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=b.reactive({...v}),T=b.inject("vars"),P=b.inject("plaid");return b.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},F);console.log("watched"),b.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),b.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(F,D)=>b.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:b.unref(P),vars:b.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),E=0;E"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var E=0;E(i[a]=!0,i),{}):void 0}const gs=E.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=E.ref(!0);return E.onActivated(()=>{a.value=!0}),E.onDeactivated(()=>{a.value=!1}),E.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const F=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s(P);F.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[F,T,D]})}),E.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ws=ys,ms=ws,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),wn=Ss,Os=wn,xs=function(){return Os.Date.now()},bs=xs,Es=/\s/;function Is(r){for(var u=r.length;u--&&Es.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Fs=Ls,Ps=wn,$s=Ps.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Ms=Us,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Ms,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var Vr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var Yn=Zs,js=Vr,Xs=Yn,Qs="[object Symbol]";function Vs(r){return typeof r=="symbol"||Xs(r)&&js(r)==Qs}var ks=Vs,el=Fs,Ku=Jn,tl=ks,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,kr=bs,Yu=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,v,A,T,P=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=Yu(u)||0,al(i)&&(F=!!i.leading,D="maxWait"in i,d=D?ll(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,be=c;return a=c=void 0,P=k,v=r.apply(be,ne),v}function le(k){return P=k,A=setTimeout(Fe,u),F?N(k):v}function Ke(k){var ne=k-T,be=k-P,vt=u-ne;return D?cl(vt,d-be):vt}function _e(k){var ne=k-T,be=k-P;return T===void 0||ne>=u||ne<0||D&&be>=d}function Fe(){var k=kr();if(_e(k))return gt(k);A=setTimeout(Fe,Ke(k))}function gt(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?v:gt(kr())}function we(){var k=kr(),ne=_e(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),N(T)}return A===void 0&&(A=setTimeout(Fe,u)),v}return we.cancel=ye,we.flush=st,we}var pl=hl;const Zu=Kn(pl),dl=E.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=E.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=E.reactive({...v}),T=E.inject("vars"),P=E.inject("plaid");return E.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},F);console.log("watched"),E.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),E.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(F,D)=>E.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:E.unref(P),vars:E.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(_){var m=0;return function(){return m<_.length?{done:!1,value:_[m++]}:{done:!0}}}var i=typeof Object.defineProperties=="function"?Object.defineProperty:function(_,m,b){return _==Array.prototype||_==Object.prototype||(_[m]=b.value),_};function a(_){_=[typeof globalThis=="object"&&globalThis,_,typeof window=="object"&&window,typeof self=="object"&&self,typeof nt=="object"&&nt];for(var m=0;m<_.length;++m){var b=_[m];if(b&&b.Math==Math)return b}throw Error("Cannot find global object")}var c=a(this);function d(_,m){if(m)e:{var b=c;_=_.split(".");for(var C=0;C<_.length-1;C++){var W=_[C];if(!(W in b))break e;b=b[W]}_=_[_.length-1],C=b[_],m=m(C),m!=C&&m!=null&&i(b,_,{configurable:!0,writable:!0,value:m})}}d("Symbol",function(_){function m(re){if(this instanceof m)throw new TypeError("Symbol is not a constructor");return new b(C+(re||"")+"_"+W++,re)}function b(re,Pe){this.A=re,i(this,"description",{configurable:!0,writable:!0,value:Pe})}if(_)return _;b.prototype.toString=function(){return this.A};var C="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",W=0;return m}),d("Symbol.iterator",function(_){if(_)return _;_=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(_,m){for(var b=0;b<_.length;b++)m(_[b])},be=function(_){return _.replace(/\r?\n|\r/g,`\r +`)},vt=function(_,m,b){return m instanceof Blob?(b=b!==void 0?b+"":typeof m.name=="string"?m.name:"blob",(m.name!==b||Object.prototype.toString.call(m)==="[object Blob]")&&(m=new File([m],b)),[String(_),m]):[String(_),String(m)]},yt=function(_,m){if(_.lengthr==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&wl(r[v])||u.skipEmptyString&&r[v]==="",a=Al(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,jl=Zl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,Yc=Kc,Zc=Yc(Jc),jc=Zc,Xc=ho,Qc=Ql,Vc=jc;function kc(r,u){return Vc(Qc(r,u,Xc),r+"")}var yo=kc,eh=Zn,th=eh(Object,"create"),jn=th,wo=jn;function nh(){this.__data__=wo?wo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=jn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=jn,ph=Object.prototype,dh=ph.hasOwnProperty;function gh(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var _h=gh,vh=jn,yh="__lodash_hash_undefined__";function wh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?yh:u,this}var mh=wh,Ah=rh,Sh=uh,Oh=ch,xh=_h,Eh=mh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,Yh=Th,Zh=Uh,jh=Wh,Xh=Gh,Qh=Jh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=jp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=_d){var P=u?null:dd(r);if(P)return gd(P);v=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=wd}var Ad=md,Sd=go,Od=Ad;function xd(r){return r!=null&&Od(r.length)&&!Sd(r)}var Ed=xd,bd=Ed,Id=Yn;function Td(r){return Id(r)&&bd(r)}var bo=Td,Rd=Kl,Cd=yo,Ld=yd,Fd=bo,Pd=Cd(function(r){return Ld(Rd(r,1,Fd,!0))}),$d=Pd;const Dd=Kn($d);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,v=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${gt.stringify(T,P)}`}}function ng(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=eg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function rg(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ig(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function ug(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ig(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}const og=b.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=b.ref(),i=r,a=b.shallowRef(null),c=b.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=b.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&d(P.body)})};return b.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),b.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),b.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(b.openBlock(),b.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(b.openBlock(),b.createBlock(b.resolveDynamicComponent(a.value),{key:0},{default:b.withCtx(()=>[b.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):b.createCommentVNode("",!0)],512)):b.createCommentVNode("",!0)}}),fg=b.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=b.inject("vars").__emitter,a=b.useAttrs(),c={};return b.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),b.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>b.createCommentVNode("",!0)}}),ag=b.defineComponent({__name:"parent-size-observer",setup(r){const u=b.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return b.onMounted(()=>{var v;const c=b.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),b.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>b.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+_+"--"),new Blob(m,{type:"multipart/form-data; boundary="+_})},Ye.prototype[Symbol.iterator]=function(){return this.entries()},Ye.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(_){_=(this.document||this.ownerDocument).querySelectorAll(_);for(var m=_.length;0<=--m&&_.item(m)!==this;);return-1r==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&wl(r[v])||u.skipEmptyString&&r[v]==="",a=Al(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const _t=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function bl(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,jl=Zl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,Yc=Kc,Zc=Yc(Jc),jc=Zc,Xc=ho,Qc=Ql,Vc=jc;function kc(r,u){return Vc(Qc(r,u,Xc),r+"")}var yo=kc,eh=Zn,th=eh(Object,"create"),jn=th,wo=jn;function nh(){this.__data__=wo?wo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=jn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=jn,ph=Object.prototype,dh=ph.hasOwnProperty;function _h(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var gh=_h,vh=jn,yh="__lodash_hash_undefined__";function wh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?yh:u,this}var mh=wh,Ah=rh,Sh=uh,Oh=ch,xh=gh,bh=mh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,Yh=Th,Zh=Uh,jh=Wh,Xh=Gh,Qh=Jh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=jp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=gd){var P=u?null:dd(r);if(P)return _d(P);v=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=wd}var Ad=md,Sd=_o,Od=Ad;function xd(r){return r!=null&&Od(r.length)&&!Sd(r)}var bd=xd,Ed=bd,Id=Yn;function Td(r){return Id(r)&&Ed(r)}var Eo=Td,Rd=Kl,Cd=yo,Ld=yd,Fd=Eo,Pd=Cd(function(r){return Ld(Rd(r,1,Fd,!0))}),$d=Pd;const Dd=Kn($d);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,v=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${_t.stringify(T,P)}`}}function n_(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=e_(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function r_(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function i_(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function u_(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=_t.parse(r,i),c=_t.parse(u,i);return i_(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}const o_=E.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=E.ref(),i=r,a=E.shallowRef(null),c=E.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=E.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&d(P.body)})};return E.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),E.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),E.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(E.openBlock(),E.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(E.openBlock(),E.createBlock(E.resolveDynamicComponent(a.value),{key:0},{default:E.withCtx(()=>[E.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):E.createCommentVNode("",!0)],512)):E.createCommentVNode("",!0)}}),f_=E.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=E.inject("vars").__emitter,a=E.useAttrs(),c={};return E.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),E.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>E.createCommentVNode("",!0)}}),a_=E.defineComponent({__name:"parent-size-observer",setup(r){const u=E.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return E.onMounted(()=>{var v;const c=E.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),E.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>E.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var sg=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),lg=Object.prototype.hasOwnProperty;function ai(r,u){return lg.call(r,u)}function si(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[N]===void 0?z=T.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),F++,Array.isArray(P)){if(N==="-")N=P.length;else{if(i&&!li(N))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(F>=D){if(i&&u.op==="add"&&N>P.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=hg[u.op].call(u,P,N,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=tn[u.op].call(u,P,N,r);if(v.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if(P=P[N],i&&F0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Lo([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[N]===void 0?z=T.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),F++,Array.isArray(P)){if(N==="-")N=P.length;else{if(i&&!li(N))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(F>=D){if(i&&u.op==="add"&&N>P.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=h_[u.op].call(u,P,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=tn[u.op].call(u,P,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if(P=P[N],i&&F0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Lo([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var P=v[T],F=r[P];if(ai(u,P)&&!(u[P]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?gi(F,D,i,a+"/"+Bt(P),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function _i(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var P=v[T],F=r[P];if(ai(u,P)&&!(u[P]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?_i(F,D,i,a+"/"+Bt(P),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,F="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Fe=2,_t=4,ye=8,st=16,we=32,k=64,ne=128,Ee=256,vt=512,yt=30,de="...",wi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,E=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",Ee]],W="[object Arguments]",re="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",xn="[object Date]",Gg="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",En="[object Number]",zg="[object Null]",wt="[object Object]",No="[object Promise]",Kg="[object Proxy]",bn="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Jg="[object Undefined]",Tn="[object WeakMap]",Yg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",xi="[object Int32Array]",Ei="[object Uint8Array]",bi="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Zg=/\b__p \+= '';/g,jg=/\b(__p \+=) '' \+/g,Xg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Mo=/[&<>"']/g,Qg=RegExp(Uo.source),Vg=RegExp(Mo.source),kg=/<%-([\s\S]+?)%>/g,e_=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,t_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n_=/^\w*$/,r_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,i_=RegExp(Ri.source),Ci=/^\s+/,u_=/\s/,o_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,f_=/\{\n\/\* \[wrapped with (.+)\] \*/,a_=/,? & /,s_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,l_=/[()=,{}\[\]\/\s]/,c_=/\\(\\)?/g,h_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,p_=/^[-+]0x[0-9a-f]+$/i,d_=/^0b[01]+$/i,g_=/^\[object .+?Constructor\]$/,__=/^0o[0-7]+$/i,v_=/^(?:0|[1-9]\d*)$/,y_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,w_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",m_="\\u0300-\\u036f",A_="\\ufe20-\\ufe2f",S_="\\u20d0-\\u20ff",Ho=m_+A_+S_,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",O_="\\xac\\xb1\\xd7\\xf7",x_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",E_="\\u2000-\\u206f",b_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=O_+x_+E_+b_,Li="['’]",I_="["+lr+"]",Yo="["+Jo+"]",cr="["+Ho+"]",Zo="\\d+",T_="["+qo+"]",jo="["+Go+"]",Xo="[^"+lr+Jo+Zo+qo+Go+zo+"]",Fi="\\ud83c[\\udffb-\\udfff]",R_="(?:"+cr+"|"+Fi+")",Qo="[^"+lr+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",Vo="\\u200d",ko="(?:"+jo+"|"+Xo+")",C_="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=R_+"?",rf="["+Ko+"]?",L_="(?:"+Vo+"(?:"+[Qo,Pi,$i].join("|")+")"+rf+nf+")*",F_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",P_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+L_,$_="(?:"+[T_,Pi,$i].join("|")+")"+uf,D_="(?:"+[Qo+cr+"?",cr,Pi,$i,I_].join("|")+")",N_=RegExp(Li,"g"),U_=RegExp(cr,"g"),Di=RegExp(Fi+"(?="+Fi+")|"+D_+uf,"g"),M_=RegExp([un+"?"+jo+"+"+ef+"(?="+[Yo,un,"$"].join("|")+")",C_+"+"+tf+"(?="+[Yo,un+ko,"$"].join("|")+")",un+"?"+ko+"+"+ef,un+"+"+tf,P_,F_,Zo,$_].join("|"),"g"),B_=RegExp("["+Vo+lr+Ho+Ko+"]"),W_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,H_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],q_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=ie[Ei]=ie[bi]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[xn]=ie[or]=ie[fr]=ie[rt]=ie[En]=ie[wt]=ie[bn]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[xn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[xi]=te[rt]=te[En]=te[wt]=te[bn]=te[it]=te[In]=te[ar]=te[Ei]=te[bi]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var G_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},z_={"&":"&","<":"<",">":">",'"':""","'":"'"},K_={"&":"&","<":"<",">":">",""":'"',"'":"'"},J_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Y_=parseFloat,Z_=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,j_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||j_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Ni,Ui=ff&&of.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),af=Ze&&Ze.isArrayBuffer,sf=Ze&&Ze.isDate,lf=Ze&&Ze.isMap,cf=Ze&&Ze.isRegExp,hf=Ze&&Ze.isSet,pf=Ze&&Ze.isTypedArray;function Be(_,S,w){switch(w.length){case 0:return _.call(S);case 1:return _.call(S,w[0]);case 2:return _.call(S,w[0],w[1]);case 3:return _.call(S,w[0],w[1],w[2])}return _.apply(S,w)}function X_(_,S,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function Af(_,S){for(var w=_.length;w--&&on(S,_[w],0)>-1;);return w}function uv(_,S){for(var w=_.length,L=0;w--;)_[w]===S&&++L;return L}var ov=qi(G_),fv=qi(z_);function av(_){return"\\"+J_[_]}function sv(_,S){return _==null?i:_[S]}function fn(_){return B_.test(_)}function lv(_){return W_.test(_)}function cv(_){for(var S,w=[];!(S=_.next()).done;)w.push(S.value);return w}function Ji(_){var S=-1,w=Array(_.size);return _.forEach(function(L,H){w[++S]=[H,L]}),w}function Sf(_,S){return function(w){return _(S(w))}}function Lt(_,S){for(var w=-1,L=_.length,H=0,X=[];++w-1}function Vv(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Zv,mt.prototype.delete=jv,mt.prototype.get=Xv,mt.prototype.has=Qv,mt.prototype.set=Vv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=q(e);if(x){if(h=n1(e),!p)return $e(e,h)}else{var I=Ie(e),R=I==fr||I==Do;if(Ut(e))return ia(e,p);if(I==wt||I==W||R&&!f){if(h=y||R?{}:Oa(e),!p)return y?K0(e,d0(h,e)):z0(e,$f(h,e))}else{if(!te[I])return f?e:{};h=r1(e,I,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),Va(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?y?yu:vu:y?Ne:me,K=x?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function g0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,y=[],O=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=la(),Bf=la(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return bt(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function y0(e,t){return e!=null&&V.call(e,t)}function w0(e,t){return e!=null&&t in ee(e)}function m0(e,t,n){return e>=be(t,n)&&e=120&&x.length>=120)?new Kt(h&&x):i}x=e[0];var I=-1,R=p[0];e:for(;++I-1;)p!==e&&Sr.call(p,y,1),Sr.call(e,y,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;Et(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+Er(Cf()*(t-e+1))}function P0(e,t,n,o){for(var f=-1,l=ve(xr((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=Er(t/2),t&&(e+=e);while(t);return n}function J(e,t){return Eu(ba(e,t,Ue),e+"")}function $0(e){return Pf(yn(e))}function D0(e,t){var n=yn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:j0(e);if(O)return dr(O);h=!1,f=Cn,y=new Kt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ra=bv||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function W0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function H0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function q0(e){return Dn?ee(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,y=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&y&&!p&&!O||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!O&&e=p)return y;var O=n[o];return y*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,O=ve(l-h,0),x=w(y+O),I=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&yp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var I=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++I1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(o_,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,F="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,_e=1,Fe=2,gt=4,ye=8,st=16,we=32,k=64,ne=128,be=256,vt=512,yt=30,de="...",wi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,_=4294967295,m=_-1,b=_>>>1,C=[["ary",ne],["bind",_e],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",xn="[object Date]",G_="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",bn="[object Number]",z_="[object Null]",wt="[object Object]",No="[object Promise]",K_="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",J_="[object Undefined]",Tn="[object WeakMap]",Y_="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",xi="[object Int32Array]",bi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Z_=/\b__p \+= '';/g,j_=/\b(__p \+=) '' \+/g,X_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Mo=/[&<>"']/g,Q_=RegExp(Uo.source),V_=RegExp(Mo.source),k_=/<%-([\s\S]+?)%>/g,eg=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/,rg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,ig=RegExp(Ri.source),Ci=/^\s+/,ug=/\s/,og=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fg=/\{\n\/\* \[wrapped with (.+)\] \*/,ag=/,? & /,sg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lg=/[()=,{}\[\]\/\s]/,cg=/\\(\\)?/g,hg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,pg=/^[-+]0x[0-9a-f]+$/i,dg=/^0b[01]+$/i,_g=/^\[object .+?Constructor\]$/,gg=/^0o[0-7]+$/i,vg=/^(?:0|[1-9]\d*)$/,yg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,wg=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",mg="\\u0300-\\u036f",Ag="\\ufe20-\\ufe2f",Sg="\\u20d0-\\u20ff",Ho=mg+Ag+Sg,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",Og="\\xac\\xb1\\xd7\\xf7",xg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bg="\\u2000-\\u206f",Eg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=Og+xg+bg+Eg,Li="['’]",Ig="["+lr+"]",Yo="["+Jo+"]",cr="["+Ho+"]",Zo="\\d+",Tg="["+qo+"]",jo="["+Go+"]",Xo="[^"+lr+Jo+Zo+qo+Go+zo+"]",Fi="\\ud83c[\\udffb-\\udfff]",Rg="(?:"+cr+"|"+Fi+")",Qo="[^"+lr+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",Vo="\\u200d",ko="(?:"+jo+"|"+Xo+")",Cg="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=Rg+"?",rf="["+Ko+"]?",Lg="(?:"+Vo+"(?:"+[Qo,Pi,$i].join("|")+")"+rf+nf+")*",Fg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+Lg,$g="(?:"+[Tg,Pi,$i].join("|")+")"+uf,Dg="(?:"+[Qo+cr+"?",cr,Pi,$i,Ig].join("|")+")",Ng=RegExp(Li,"g"),Ug=RegExp(cr,"g"),Di=RegExp(Fi+"(?="+Fi+")|"+Dg+uf,"g"),Mg=RegExp([un+"?"+jo+"+"+ef+"(?="+[Yo,un,"$"].join("|")+")",Cg+"+"+tf+"(?="+[Yo,un+ko,"$"].join("|")+")",un+"?"+ko+"+"+ef,un+"+"+tf,Pg,Fg,Zo,$g].join("|"),"g"),Bg=RegExp("["+Vo+lr+Ho+Ko+"]"),Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qg=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=ie[bi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[xn]=ie[or]=ie[fr]=ie[rt]=ie[bn]=ie[wt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[xn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[xi]=te[rt]=te[bn]=te[wt]=te[En]=te[it]=te[In]=te[ar]=te[bi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var Gg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zg={"&":"&","<":"<",">":">",'"':""","'":"'"},Kg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yg=parseFloat,Zg=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,jg=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||jg||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Ni,Ui=ff&&of.process,Ze=function(){try{var g=qt&&qt.require&&qt.require("util").types;return g||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),af=Ze&&Ze.isArrayBuffer,sf=Ze&&Ze.isDate,lf=Ze&&Ze.isMap,cf=Ze&&Ze.isRegExp,hf=Ze&&Ze.isSet,pf=Ze&&Ze.isTypedArray;function Be(g,S,w){switch(w.length){case 0:return g.call(S);case 1:return g.call(S,w[0]);case 2:return g.call(S,w[0],w[1]);case 3:return g.call(S,w[0],w[1],w[2])}return g.apply(S,w)}function Xg(g,S,w,L){for(var H=-1,X=g==null?0:g.length;++H-1}function Mi(g,S,w){for(var L=-1,H=g==null?0:g.length;++L-1;);return w}function Af(g,S){for(var w=g.length;w--&&on(S,g[w],0)>-1;);return w}function uv(g,S){for(var w=g.length,L=0;w--;)g[w]===S&&++L;return L}var ov=qi(Gg),fv=qi(zg);function av(g){return"\\"+Jg[g]}function sv(g,S){return g==null?i:g[S]}function fn(g){return Bg.test(g)}function lv(g){return Wg.test(g)}function cv(g){for(var S,w=[];!(S=g.next()).done;)w.push(S.value);return w}function Ji(g){var S=-1,w=Array(g.size);return g.forEach(function(L,H){w[++S]=[H,L]}),w}function Sf(g,S){return function(w){return g(S(w))}}function Lt(g,S){for(var w=-1,L=g.length,H=0,X=[];++w-1}function Vv(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Zv,mt.prototype.delete=jv,mt.prototype.get=Xv,mt.prototype.has=Qv,mt.prototype.set=Vv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=q(e);if(x){if(h=n1(e),!p)return $e(e,h)}else{var I=Ie(e),R=I==fr||I==Do;if(Ut(e))return ia(e,p);if(I==wt||I==W||R&&!f){if(h=y||R?{}:Oa(e),!p)return y?K0(e,d0(h,e)):z0(e,$f(h,e))}else{if(!te[I])return f?e:{};h=r1(e,I,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),Va(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?y?yu:vu:y?Ne:me,K=x?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function _0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,y=[],O=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=la(),Bf=la(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function y0(e,t){return e!=null&&V.call(e,t)}function w0(e,t){return e!=null&&t in ee(e)}function m0(e,t,n){return e>=Ee(t,n)&&e=120&&x.length>=120)?new Kt(h&&x):i}x=e[0];var I=-1,R=p[0];e:for(;++I-1;)p!==e&&Sr.call(p,y,1),Sr.call(e,y,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+br(Cf()*(t-e+1))}function P0(e,t,n,o){for(var f=-1,l=ve(xr((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=br(t/2),t&&(e+=e);while(t);return n}function J(e,t){return bu(Ea(e,t,Ue),e+"")}function $0(e){return Pf(yn(e))}function D0(e,t){var n=yn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:j0(e);if(O)return dr(O);h=!1,f=Cn,y=new Kt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ra=Ev||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=bf?bf(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function W0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function H0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function q0(e){return Dn?ee(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,y=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&y&&!p&&!O||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!O&&e=p)return y;var O=n[o];return y*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,O=ve(l-h,0),x=w(y+O),I=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&yp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var I=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++I1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(og,`{ /* [wrapped with `+t+`] */ -`)}function u1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function Et(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&v_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=wi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ma(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function _y(e,t){return t(e),e}function Gr(e,t){return t(e)}var vy=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!Et(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function yy(){return Ba(this)}function wy(){return new Qe(this.value(),this.__chain__)}function my(){this.__values__===i&&(this.__values__=ka(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ay(){return this}function Sy(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function Oy(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[bu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(bu)}function xy(){return ta(this.__wrapped__,this.__actions__)}var Ey=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function by(e,t,n){var o=q(e)?df:_0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Iy(e,t){var n=q(e)?Rt:Mf;return n(e,U(t,3))}var Ty=ha(Pa),Ry=ha($a);function Cy(e,t){return xe(zr(e,t),1)}function Ly(e,t){return xe(zr(e,t),Ae)}function Fy(e,t,n){return n=n===i?1:G(n),xe(zr(e,t),n)}function Wa(e,t){var n=q(e)?je:Pt;return n(e,U(t,3))}function Ha(e,t){var n=q(e)?Q_:Uf;return n(e,U(t,3))}var Py=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function $y(e,t,n,o){e=De(e)?e:yn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Dy=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Ny=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:zf;return n(e,U(t,3))}function Uy(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var My=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function By(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Pt)}function Wy(e,t,n){var o=q(e)?V_:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Uf)}function Hy(e,t){var n=q(e)?Rt:Mf;return n(e,Yr(U(t,3)))}function qy(e){var t=q(e)?Pf:$0;return t(e)}function Gy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?c0:D0;return o(e,t)}function zy(e){var t=q(e)?h0:U0;return t(e)}function Ky(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Jy(e,t,n){var o=q(e)?Wi:M0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Yy=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,xe(t,1),[])}),Kr=Iv||function(){return Oe.Date.now()};function Zy(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=we}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=ge|Fe;if(n.length){var f=Lt(n,_n(za));o|=we}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,y,O=0,x=!1,I=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(x=!!n.leading,I="maxWait"in n,l=I?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),x?$(he):h}function K(he){var at=he-y,Tt=he-O,hs=t-at;return I?be(hs,l-Tt):hs}function B(he){var at=he-y,Tt=he-O;return y===i||at>=t||at<0||I&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=y=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,y=he,at){if(p===i)return M(y);if(I)return ra(p),p=Gn(Y,t),$(y)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var jy=J(function(e,t){return Nf(e,1,t)}),Xy=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Qy(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vy(e){return Ga(2,e)}var ky=B0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=be(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return ae(e)&&V.call(e,"callee")&&!If.call(e,"callee")},q=w.isArray,dw=af?We(af):S0;function De(e){return e!=null&&Zr(e.length)&&!bt(e)}function ce(e){return ae(e)&&De(e)}function gw(e){return e===!0||e===!1||ae(e)&&Re(e)==Se}var Ut=Rv||Wu,_w=sf?We(sf):O0;function vw(e){return ae(e)&&e.nodeType===1&&!zn(e)}function yw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function ww(e,t){return Bn(e,t)}function mw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!ae(e))return!1;var t=Re(e);return t==or||t==Gg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Aw(e){return typeof e=="number"&&Rf(e)}function bt(e){if(!oe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Pe||t==Kg}function ja(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):E0;function Sw(e,t){return e===t||ru(e,t,mu(t))}function Ow(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function xw(e){return Qa(e)&&e!=+e}function Ew(e){if(a1(e))throw new H(d);return qf(e)}function bw(e){return e===null}function Iw(e){return e==null}function Qa(e){return typeof e=="number"||ae(e)&&Re(e)==En}function zn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==Ov}var Lu=cf?We(cf):b0;function Tw(e){return ja(e)&&e>=-Je&&e<=Je}var Va=hf?We(hf):I0;function jr(e){return typeof e=="string"||!q(e)&&ae(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||ae(e)&&Re(e)==ar}var vn=pf?We(pf):T0;function Rw(e){return e===i}function Cw(e){return ae(e)&&Ie(e)==Tn}function Lw(e){return ae(e)&&Re(e)==Yg}var Fw=Br(uu),Pw=Br(function(e,t){return e<=t});function ka(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return cv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:yn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wf(e);var n=d_.test(e);return n||__.test(e)?Z_(e.slice(2),n?2:8):p_.test(e)?nn:+e}function ts(e){return ht(e,Ne(e))}function $w(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Dw=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),Nw=dn(function(e,t,n,o){ht(t,me(t),e,o)}),Uw=xt(Vi);function Mw(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Bw=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,yu(e),n),o&&(n=Ve(n,D|z|N,X0));for(var f=t.length;f--;)lu(n,t[f]);return n});function rm(e,t){return is(e,Yr(U(t)))}var im=xt(function(e,t){return e==null?{}:L0(e,t)});function is(e,t){if(e==null)return{};var n=ue(yu(e),function(o){return[o]});return t=U(t),jf(e,n,function(o,f){return t(o,f[0])})}function um(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return be(e+f*(t-e+Y_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var _m=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(y_,ov).replace(U_,"")}function vm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function ym(e){return e=Q(e),e&&Vg.test(e)?e.replace(Mo,fv):e}function wm(e){return e=Q(e),e&&i_.test(e)?e.replace(Ri,"\\$&"):e}var mm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Am=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Sm=ca("toLowerCase");function Om(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(Er(f),n)+e+Mr(xr(f),n)}function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Lm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function Fm(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Pm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,y,O=0,x=t.interpolate||sr,I="__p += '",R=Yi((t.escape||sr).source+"|"+x.source+"|"+(x===Bo?h_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++q_+"]")+` -`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),I+=e.slice(O,ze).replace(w_,av),Y&&(p=!0,I+=`' + +`)}function u1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function bt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&vg.test(e))&&e>-1&&e%1==0&&e0){if(++t>=wi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ma(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function gy(e,t){return t(e),e}function Gr(e,t){return t(e)}var vy=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function yy(){return Ba(this)}function wy(){return new Qe(this.value(),this.__chain__)}function my(){this.__values__===i&&(this.__values__=ka(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ay(){return this}function Sy(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function Oy(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function xy(){return ta(this.__wrapped__,this.__actions__)}var by=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Ey(e,t,n){var o=q(e)?df:g0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Iy(e,t){var n=q(e)?Rt:Mf;return n(e,U(t,3))}var Ty=ha(Pa),Ry=ha($a);function Cy(e,t){return xe(zr(e,t),1)}function Ly(e,t){return xe(zr(e,t),Ae)}function Fy(e,t,n){return n=n===i?1:G(n),xe(zr(e,t),n)}function Wa(e,t){var n=q(e)?je:Pt;return n(e,U(t,3))}function Ha(e,t){var n=q(e)?Qg:Uf;return n(e,U(t,3))}var Py=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function $y(e,t,n,o){e=De(e)?e:yn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Dy=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Ny=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:zf;return n(e,U(t,3))}function Uy(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var My=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function By(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Pt)}function Wy(e,t,n){var o=q(e)?Vg:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Uf)}function Hy(e,t){var n=q(e)?Rt:Mf;return n(e,Yr(U(t,3)))}function qy(e){var t=q(e)?Pf:$0;return t(e)}function Gy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?c0:D0;return o(e,t)}function zy(e){var t=q(e)?h0:U0;return t(e)}function Ky(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Jy(e,t,n){var o=q(e)?Wi:M0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Yy=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,xe(t,1),[])}),Kr=Iv||function(){return Oe.Date.now()};function Zy(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=_e;if(n.length){var f=Lt(n,gn(Tu));o|=we}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=_e|Fe;if(n.length){var f=Lt(n,gn(za));o|=we}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,y,O=0,x=!1,I=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(x=!!n.leading,I="maxWait"in n,l=I?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),x?$(he):h}function K(he){var at=he-y,Tt=he-O,hs=t-at;return I?Ee(hs,l-Tt):hs}function B(he){var at=he-y,Tt=he-O;return y===i||at>=t||at<0||I&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=y=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,y=he,at){if(p===i)return M(y);if(I)return ra(p),p=Gn(Y,t),$(y)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var jy=J(function(e,t){return Nf(e,1,t)}),Xy=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Qy(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vy(e){return Ga(2,e)}var ky=B0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return se(e)&&V.call(e,"callee")&&!If.call(e,"callee")},q=w.isArray,dw=af?We(af):S0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function _w(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Rv||Wu,gw=sf?We(sf):O0;function vw(e){return se(e)&&e.nodeType===1&&!zn(e)}function yw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function ww(e,t){return Bn(e,t)}function mw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==G_||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Aw(e){return typeof e=="number"&&Rf(e)}function Et(e){if(!oe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Pe||t==K_}function ja(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):b0;function Sw(e,t){return e===t||ru(e,t,mu(t))}function Ow(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function xw(e){return Qa(e)&&e!=+e}function bw(e){if(a1(e))throw new H(d);return qf(e)}function Ew(e){return e===null}function Iw(e){return e==null}function Qa(e){return typeof e=="number"||se(e)&&Re(e)==bn}function zn(e){if(!se(e)||Re(e)!=wt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==Ov}var Lu=cf?We(cf):E0;function Tw(e){return ja(e)&&e>=-Je&&e<=Je}var Va=hf?We(hf):I0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=pf?We(pf):T0;function Rw(e){return e===i}function Cw(e){return se(e)&&Ie(e)==Tn}function Lw(e){return se(e)&&Re(e)==Y_}var Fw=Br(uu),Pw=Br(function(e,t){return e<=t});function ka(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return cv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:yn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,_):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wf(e);var n=dg.test(e);return n||gg.test(e)?Zg(e.slice(2),n?2:8):pg.test(e)?nn:+e}function ts(e){return ht(e,Ne(e))}function $w(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Dw=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),Nw=dn(function(e,t,n,o){ht(t,me(t),e,o)}),Uw=xt(Vi);function Mw(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Bw=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,yu(e),n),o&&(n=Ve(n,D|z|N,X0));for(var f=t.length;f--;)lu(n,t[f]);return n});function rm(e,t){return is(e,Yr(U(t)))}var im=xt(function(e,t){return e==null?{}:L0(e,t)});function is(e,t){if(e==null)return{};var n=ue(yu(e),function(o){return[o]});return t=U(t),jf(e,n,function(o,f){return t(o,f[0])})}function um(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return Ee(e+f*(t-e+Yg("1e-"+((f+"").length-1))),t)}return fu(e,t)}var gm=_n(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(yg,ov).replace(Ug,"")}function vm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function ym(e){return e=Q(e),e&&V_.test(e)?e.replace(Mo,fv):e}function wm(e){return e=Q(e),e&&ig.test(e)?e.replace(Ri,"\\$&"):e}var mm=_n(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Am=_n(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Sm=ca("toLowerCase");function Om(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(br(f),n)+e+Mr(xr(f),n)}function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Lm=_n(function(e,t,n){return e+(n?" ":"")+$u(t)});function Fm(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Pm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,y,O=0,x=t.interpolate||sr,I="__p += '",R=Yi((t.escape||sr).source+"|"+x.source+"|"+(x===Bo?hg:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qg+"]")+` +`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),I+=e.slice(O,ze).replace(wg,av),Y&&(p=!0,I+=`' + __e(`+Y+`) + '`),Le&&(y=!0,I+=`'; `+Le+`; @@ -40,14 +40,14 @@ __p += '`),j&&(I+=`' + `;var M=V.call(t,"variable")&&t.variable;if(!M)I=`with (obj) { `+I+` } -`;else if(l_.test(M))throw new H(A);I=(y?I.replace(Zg,""):I).replace(jg,"$1").replace(Xg,"$1;"),I="function("+(M||"obj")+`) { +`;else if(lg.test(M))throw new H(A);I=(y?I.replace(Z_,""):I).replace(j_,"$1").replace(X_,"$1;"),I="function("+(M||"obj")+`) { `+(M?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+I+`return __p -}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Qg.test(e)?e.replace(Uo,gv):e}var Hm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=be(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class bg{constructor(){se(this,"_eventFuncID",{id:"__reload__"});se(this,"_url");se(this,"_method");se(this,"_vars");se(this,"_locals");se(this,"_loadPortalBody",!1);se(this,"_form",{});se(this,"_popstate");se(this,"_pushState");se(this,"_location");se(this,"_updateRootTemplate");se(this,"_buildPushStateResult");se(this,"parent");se(this,"lodash",Eg);se(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);se(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();const u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));const i=this.buildFetchURL();return fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new bg}const Ig={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Tg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Rg=window.fetch;function Cg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Rg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Lg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Pg={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},$g={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Dg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:b.watch,watchEffect:b.watchEffect,ref:b.ref,reactive:b.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};se(Ht,"instance",null);let yi=Ht;const Bg=b.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=b.shallowRef(null),i=b.reactive({});b.provide("form",i);const a=T=>{u.value=oi(T,i)};b.provide("updateRootTemplate",a);const c=b.reactive({__emitter:new Mg,__history:yi.getInstance()}),d=()=>_i().updateRootTemplate(a).vars(c);b.provide("plaid",d),b.provide("vars",c);const v=b.ref(!1),A=b.ref(!0);return b.provide("isFetching",v),b.provide("isReloadingPage",A),Cg({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),b.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:` +}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Q_.test(e)?e.replace(Uo,_v):e}var Hm=_n(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=_,o=Ee(e,_);t=U(t),e-=_;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(_)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=_r[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var x_=rr.exports;const b_=Kn(x_);class E_{constructor(){fe(this,"_eventFuncID",{id:"__reload__"});fe(this,"_url");fe(this,"_method");fe(this,"_vars");fe(this,"_locals");fe(this,"_loadPortalBody",!1);fe(this,"_form",{});fe(this,"_popstate");fe(this,"_pushState");fe(this,"_location");fe(this,"_updateRootTemplate");fe(this,"_buildPushStateResult");fe(this,"_beforeFetch");fe(this,"parent");fe(this,"lodash",b_);fe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);fe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=gi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?gi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=t_({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return O_.applyPatch(u,i)}encodeObjectToQuery(u,i){return r_(u,i)}isRawQuerySubset(u,i,a){return u_(u,i,a)}}function gi(){return new E_}const I_={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=_t.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=_t.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=_t.stringify(D)},200))}},T_={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,R_=window.fetch;function C_(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await R_(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const L_={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},F_={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},P_={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},$_={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},D_={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},N_={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},U_={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};fe(Ht,"instance",null);let yi=Ht;const B_=E.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=E.shallowRef(null),i=E.reactive({});E.provide("form",i);const a=T=>{u.value=oi(T,i)};E.provide("updateRootTemplate",a);const c=E.reactive({__emitter:new M_,__history:yi.getInstance()}),d=()=>gi().updateRootTemplate(a).vars(c);E.provide("plaid",d),E.provide("vars",c);const v=E.ref(!1),A=E.ref(!0);return E.provide("isFetching",v),E.provide("isReloadingPage",A),C_({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),E.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:`
- `}),Wg={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",og),r.component("GoPlaidListener",fg),r.component("ParentSizeObserver",ag),r.directive("keep-scroll",Ig),r.directive("assign",Tg),r.directive("on-created",Lg),r.directive("before-mount",Fg),r.directive("on-mounted",Pg),r.directive("before-update",$g),r.directive("on-updated",Dg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",_s)}};function Hg(r){const u=b.createApp(Bg,{initialTemplate:r});return u.use(Wg),u}const Po=document.getElementById("app");if(!Po)throw new Error("#app required");const qg={},$o=Hg(Po.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,qg);$o.mount("#app")}); + `}),W_={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",o_),r.component("GoPlaidListener",f_),r.component("ParentSizeObserver",a_),r.directive("keep-scroll",I_),r.directive("assign",T_),r.directive("on-created",L_),r.directive("before-mount",F_),r.directive("on-mounted",P_),r.directive("before-update",$_),r.directive("on-updated",D_),r.directive("before-unmount",N_),r.directive("on-unmounted",U_),r.component("GlobalEvents",gs)}};function H_(r){const u=E.createApp(B_,{initialTemplate:r});return u.use(W_),u}const Po=document.getElementById("app");if(!Po)throw new Error("#app required");const q_={},$o=H_(Po.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,q_);$o.mount("#app")}); diff --git a/corejs/src/__tests__/builder.spec.ts b/corejs/src/__tests__/builder.spec.ts index a93954f..e17da71 100644 --- a/corejs/src/__tests__/builder.spec.ts +++ b/corejs/src/__tests__/builder.spec.ts @@ -1,5 +1,8 @@ import { describe, it, expect } from 'vitest' import { plaid } from '../builder' +import { mockFetchWithReturnTemplate, mountTemplate } from './testutils' +import { flushPromises } from '@vue/test-utils' +import { nextTick, ref } from 'vue' describe('builder', () => { it('pushState with object will merge into url queries', () => { @@ -246,6 +249,31 @@ describe('builder', () => { }) }) + it('beforeFetch', async () => { + const template = ` + + ` + const wrapper = mountTemplate(template) + await nextTick() + console.log(wrapper.html()) + + let lastURL, lastOpts: any + const form = ref(new FormData()) + mockFetchWithReturnTemplate(form, (url: any, opts: any) => { + lastURL = url + lastOpts = opts + return { body: template } + }) + await wrapper.find('button').trigger('click') + await flushPromises() + expect(lastURL).toEqual('/pagexxx') + expect(lastOpts.body.get('name')).toEqual('felix') + }) + it('stringifyOptions with encode true', () => { const b = plaid() .url('/page1?') diff --git a/corejs/src/builder.ts b/corejs/src/builder.ts index d07949c..23cbeb6 100644 --- a/corejs/src/builder.ts +++ b/corejs/src/builder.ts @@ -25,6 +25,7 @@ export class Builder { _location?: Location _updateRootTemplate?: any _buildPushStateResult?: any + _beforeFetch?: Function parent?: Builder lodash: any = lodash @@ -178,6 +179,11 @@ export class Builder { return this } + public beforeFetch(v: Function): Builder { + this._beforeFetch = v + return this + } + public popstate(v: boolean): Builder { this._popstate = v return this @@ -234,7 +240,7 @@ export class Builder { this.runPushState() - const fetchOpts: RequestInit = { + let fetchOpts: RequestInit = { method: 'POST', redirect: 'follow' } @@ -250,7 +256,10 @@ export class Builder { } window.dispatchEvent(new Event('fetchStart')) - const fetchURL = this.buildFetchURL() + let fetchURL = this.buildFetchURL() + if (this._beforeFetch) { + ;[fetchURL, fetchOpts] = this._beforeFetch({ b: this, url: fetchURL, opts: fetchOpts }) + } return fetch(fetchURL, fetchOpts) .then((r) => { if (r.redirected) { diff --git a/stateful/action.go b/stateful/action.go index 04e4e28..7de9ff3 100644 --- a/stateful/action.go +++ b/stateful/action.go @@ -191,7 +191,10 @@ func postAction(ctx context.Context, c any, method any, request any, o *postActi ))) b.StringQuery(web.Var(`(b) => b.__stringQuery__`)) b.PushState(web.Var(`(b) => b.__action__.sync_query`)) - return b.FieldValue(fieldKeyAction, web.Var(`(b) => JSON.stringify(b.__action__, null, "\t")`)) + return b.BeforeFetch(fmt.Sprintf(`({b, url, opts}) => { + opts.body.set(%q, JSON.stringify(b.__action__, null, "\t")); + return [url, opts]; + }`, fieldKeyAction)) } var ( diff --git a/vue.go b/vue.go index f14e8b1..bdda01d 100644 --- a/vue.go +++ b/vue.go @@ -197,6 +197,16 @@ func (b *VueEventTagBuilder) FieldValue(name interface{}, v interface{}) (r *Vue return b } +// BeforeFetch +// example: BeforeFetch(`({b, url, opts}) => { url+="#123"; opts.body.set("name", "felix"); return [url, opts] }`) +func (b *VueEventTagBuilder) BeforeFetch(f string) (r *VueEventTagBuilder) { + b.calls = append(b.calls, jsCall{ + method: "beforeFetch", + args: []interface{}{Var(f)}, + }) + return b +} + func (b *VueEventTagBuilder) Run(v interface{}) (r *VueEventTagBuilder) { b.calls = append(b.calls, jsCall{ method: "run", From 5a2fe95395244aea0db6935de3afbb1ba315b995 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 27 Aug 2024 16:46:23 +0800 Subject: [PATCH 15/21] feat: make progressBar build-in in front-end --- corejs/dist/index.js | 55 +++++++++++++++++++--------------- corejs/package.json | 2 +- corejs/src/app.ts | 38 ++++++++++++++--------- corejs/src/fetchInterceptor.ts | 1 - corejs/src/progressBarCtrl.ts | 43 ++++++++++++++++++++++++++ corejs/src/utils.ts | 8 +++++ 6 files changed, 107 insertions(+), 40 deletions(-) create mode 100644 corejs/src/progressBarCtrl.ts diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 8408c88..de58713 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,53 +1,60 @@ -var IA=Object.defineProperty;var TA=(E,Te,Qt)=>Te in E?IA(E,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):E[Te]=Qt;var fe=(E,Te,Qt)=>TA(E,typeof Te!="symbol"?Te+"":Te,Qt);(function(E,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(E=typeof globalThis<"u"?globalThis:E||self,Te(E.Vue))})(this,function(E){"use strict";/*! +var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):I[Te]=Qt;var oe=(I,Te,Qt)=>CA(I,typeof Te!="symbol"?Te+"":Te,Qt);(function(I,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(I=typeof globalThis<"u"?globalThis:I||self,Te(I.Vue))})(this,function(I){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ps=/^on(\w+?)((?:Once|Capture|Passive)*)$/,ds=/[OCP]/g;function _s(r){return r?Qt()?r.includes("Capture"):r.replace(ds,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const gs=E.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=E.ref(!0);return E.onActivated(()=>{a.value=!0}),E.onDeactivated(()=>{a.value=!1}),E.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,P]=A;T=T.toLowerCase();const F=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s(P);F.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[F,T,D]})}),E.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ws=ys,ms=ws,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),wn=Ss,Os=wn,xs=function(){return Os.Date.now()},bs=xs,Es=/\s/;function Is(r){for(var u=r.length;u--&&Es.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Fs=Ls,Ps=wn,$s=Ps.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Ms=Us,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Ms,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var Vr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var Yn=Zs,js=Vr,Xs=Yn,Qs="[object Symbol]";function Vs(r){return typeof r=="symbol"||Xs(r)&&js(r)==Qs}var ks=Vs,el=Fs,Ku=Jn,tl=ks,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,kr=bs,Yu=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,v,A,T,P=0,F=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=Yu(u)||0,al(i)&&(F=!!i.leading,D="maxWait"in i,d=D?ll(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,be=c;return a=c=void 0,P=k,v=r.apply(be,ne),v}function le(k){return P=k,A=setTimeout(Fe,u),F?N(k):v}function Ke(k){var ne=k-T,be=k-P,vt=u-ne;return D?cl(vt,d-be):vt}function _e(k){var ne=k-T,be=k-P;return T===void 0||ne>=u||ne<0||D&&be>=d}function Fe(){var k=kr();if(_e(k))return gt(k);A=setTimeout(Fe,Ke(k))}function gt(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function ye(){A!==void 0&&clearTimeout(A),P=0,a=T=c=A=void 0}function st(){return A===void 0?v:gt(kr())}function we(){var k=kr(),ne=_e(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Fe,u),N(T)}return A===void 0&&(A=setTimeout(Fe,u)),v}return we.cancel=ye,we.flush=st,we}var pl=hl;const Zu=Kn(pl),dl=E.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=E.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=E.reactive({...v}),T=E.inject("vars"),P=E.inject("plaid");return E.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const F=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},F);console.log("watched"),E.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),E.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(F,D)=>E.renderSlot(F.$slots,"default",{locals:d,form:A,plaid:E.unref(P),vars:E.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(_){var m=0;return function(){return m<_.length?{done:!1,value:_[m++]}:{done:!0}}}var i=typeof Object.defineProperties=="function"?Object.defineProperty:function(_,m,b){return _==Array.prototype||_==Object.prototype||(_[m]=b.value),_};function a(_){_=[typeof globalThis=="object"&&globalThis,_,typeof window=="object"&&window,typeof self=="object"&&self,typeof nt=="object"&&nt];for(var m=0;m<_.length;++m){var b=_[m];if(b&&b.Math==Math)return b}throw Error("Cannot find global object")}var c=a(this);function d(_,m){if(m)e:{var b=c;_=_.split(".");for(var C=0;C<_.length-1;C++){var W=_[C];if(!(W in b))break e;b=b[W]}_=_[_.length-1],C=b[_],m=m(C),m!=C&&m!=null&&i(b,_,{configurable:!0,writable:!0,value:m})}}d("Symbol",function(_){function m(re){if(this instanceof m)throw new TypeError("Symbol is not a constructor");return new b(C+(re||"")+"_"+W++,re)}function b(re,Pe){this.A=re,i(this,"description",{configurable:!0,writable:!0,value:Pe})}if(_)return _;b.prototype.toString=function(){return this.A};var C="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",W=0;return m}),d("Symbol.iterator",function(_){if(_)return _;_=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b"u"||!FormData.prototype.keys)){var ne=function(_,m){for(var b=0;b<_.length;b++)m(_[b])},be=function(_){return _.replace(/\r?\n|\r/g,`\r -`)},vt=function(_,m,b){return m instanceof Blob?(b=b!==void 0?b+"":typeof m.name=="string"?m.name:"blob",(m.name!==b||Object.prototype.toString.call(m)==="[object Blob]")&&(m=new File([m],b)),[String(_),m]):[String(_),String(m)]},yt=function(_,m){if(_.length(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,Os=As||Ss||Function("return this")(),yn=Os,bs=yn,xs=function(){return bs.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ns=qu.hasOwnProperty,Us=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ms(r){var u=Ns.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Us.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Ms,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",Ys="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Zs(r){return r==null?r===void 0?Ys:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var Vr=Zs;function js(r){return r!=null&&typeof r=="object"}var Yn=js,Xs=Vr,Qs=Yn,Vs="[object Symbol]";function ks(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==Vs}var el=ks,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,kr=Es,Yu=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=Yu(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,xe=c;return a=c=void 0,$=k,v=r.apply(xe,ne),v}function le(k){return $=k,A=setTimeout(Pe,u),P?N(k):v}function Ke(k){var ne=k-T,xe=k-$,vt=u-ne;return D?hl(vt,d-xe):vt}function ge(k){var ne=k-T,xe=k-$;return T===void 0||ne>=u||ne<0||D&&xe>=d}function Pe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Pe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function ye(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),N(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Zu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),I.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var x=0;xr==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&wl(r[v])||u.skipEmptyString&&r[v]==="",a=Al(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const _t=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function bl(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,jl=Zl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,Yc=Kc,Zc=Yc(Jc),jc=Zc,Xc=ho,Qc=Ql,Vc=jc;function kc(r,u){return Vc(Qc(r,u,Xc),r+"")}var yo=kc,eh=Zn,th=eh(Object,"create"),jn=th,wo=jn;function nh(){this.__data__=wo?wo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=jn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=jn,ph=Object.prototype,dh=ph.hasOwnProperty;function _h(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var gh=_h,vh=jn,yh="__lodash_hash_undefined__";function wh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?yh:u,this}var mh=wh,Ah=rh,Sh=uh,Oh=ch,xh=gh,bh=mh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,Yh=Th,Zh=Uh,jh=Wh,Xh=Gh,Qh=Jh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=jp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=gd){var P=u?null:dd(r);if(P)return _d(P);v=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=wd}var Ad=md,Sd=_o,Od=Ad;function xd(r){return r!=null&&Od(r.length)&&!Sd(r)}var bd=xd,Ed=bd,Id=Yn;function Td(r){return Id(r)&&Ed(r)}var Eo=Td,Rd=Kl,Cd=yo,Ld=yd,Fd=Eo,Pd=Cd(function(r){return Ld(Rd(r,1,Fd,!0))}),$d=Pd;const Dd=Kn($d);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,v=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let F=a.url+A;return a.fragmentIdentifier&&(F=F+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:F},"",F],eventURL:`${a.url}?${_t.stringify(T,P)}`}}function n_(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=e_(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function r_(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function i_(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function u_(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=_t.parse(r,i),c=_t.parse(u,i);return i_(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}const o_=E.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=E.ref(),i=r,a=E.shallowRef(null),c=E.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=E.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(P=>{P&&d(P.body)})};return E.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),E.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),E.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,P)=>r.visible?(E.openBlock(),E.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(E.openBlock(),E.createBlock(E.resolveDynamicComponent(a.value),{key:0},{default:E.withCtx(()=>[E.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):E.createCommentVNode("",!0)],512)):E.createCommentVNode("",!0)}}),f_=E.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=E.inject("vars").__emitter,a=E.useAttrs(),c={};return E.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),E.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>E.createCommentVNode("",!0)}}),a_=E.defineComponent({__name:"parent-size-observer",setup(r){const u=E.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return E.onMounted(()=>{var v;const c=E.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),E.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>E.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},Ye.prototype[Symbol.iterator]=function(){return this.entries()},Ye.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Ol(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function bl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Ol(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=bl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function Yl(r){return r}var ho=Yl;function Zl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var jl=Zl,Xl=jl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,Yc=Hc,Zc=Jc,jc=Zc(Yc),Xc=jc,Qc=ho,Vc=Vl,kc=Xc;function eh(r,u){return kc(Vc(r,u,Qc),r+"")}var wo=eh,th=Zn,nh=th(Object,"create"),jn=nh,yo=jn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=jn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=jn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=jn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,Oh=oh,bh=hh,xh=vh,Eh=Ah;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Yh=Jh,Zh=Rh,jh=Mh,Xh=Hh,Qh=zh,Vh=Yh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,Od=go,bd=Sd;function xd(r){return r!=null&&bd(r.length)&&!Od(r)}var Ed=xd,Id=Ed,Td=Yn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Nd=Kn(Dd);function Ud(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Yd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Nd(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var s_=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),l_=Object.prototype.hasOwnProperty;function ai(r,u){return l_.call(r,u)}function si(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[F-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(P[N]===void 0?z=T.slice(0,F).join("/"):F==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),F++,Array.isArray(P)){if(N==="-")N=P.length;else{if(i&&!li(N))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(F>=D){if(i&&u.op==="add"&&N>P.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=h_[u.op].call(u,P,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(F>=D){var v=tn[u.op].call(u,P,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if(P=P[N],i&&F0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Lo([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Ro(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&($[N]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray($)){if(N==="-")N=$.length;else{if(i&&!li(N))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(P>=D){if(i&&u.op==="add"&&N>$.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=pg[u.op].call(u,$,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(P>=D){var v=tn[u.op].call(u,$,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if($=$[N],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Po([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Po(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function _i(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var P=v[T],F=r[P];if(ai(u,P)&&!(u[P]===void 0&&F!==void 0&&Array.isArray(u)===!1)){var D=u[P];typeof F=="object"&&F!=null&&typeof D=="object"&&D!=null&&Array.isArray(F)===Array.isArray(D)?_i(F,D,i,a+"/"+Bt(P),c):F!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"replace",path:a+"/"+Bt(P),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(P),value:Me(F)}),i.push({op:"remove",path:a+"/"+Bt(P)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",P=500,F="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,_e=1,Fe=2,gt=4,ye=8,st=16,we=32,k=64,ne=128,be=256,vt=512,yt=30,de="...",wi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,_=4294967295,m=_-1,b=_>>>1,C=[["ary",ne],["bind",_e],["bindKey",Fe],["curry",ye],["curryRight",st],["flip",vt],["partial",we],["partialRight",k],["rearg",be]],W="[object Arguments]",re="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",xn="[object Date]",G_="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",bn="[object Number]",z_="[object Null]",wt="[object Object]",No="[object Promise]",K_="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",J_="[object Undefined]",Tn="[object WeakMap]",Y_="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",xi="[object Int32Array]",bi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Z_=/\b__p \+= '';/g,j_=/\b(__p \+=) '' \+/g,X_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Mo=/[&<>"']/g,Q_=RegExp(Uo.source),V_=RegExp(Mo.source),k_=/<%-([\s\S]+?)%>/g,eg=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,tg=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ng=/^\w*$/,rg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,ig=RegExp(Ri.source),Ci=/^\s+/,ug=/\s/,og=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fg=/\{\n\/\* \[wrapped with (.+)\] \*/,ag=/,? & /,sg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lg=/[()=,{}\[\]\/\s]/,cg=/\\(\\)?/g,hg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,pg=/^[-+]0x[0-9a-f]+$/i,dg=/^0b[01]+$/i,_g=/^\[object .+?Constructor\]$/,gg=/^0o[0-7]+$/i,vg=/^(?:0|[1-9]\d*)$/,yg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,wg=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",mg="\\u0300-\\u036f",Ag="\\ufe20-\\ufe2f",Sg="\\u20d0-\\u20ff",Ho=mg+Ag+Sg,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",Og="\\xac\\xb1\\xd7\\xf7",xg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bg="\\u2000-\\u206f",Eg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=Og+xg+bg+Eg,Li="['’]",Ig="["+lr+"]",Yo="["+Jo+"]",cr="["+Ho+"]",Zo="\\d+",Tg="["+qo+"]",jo="["+Go+"]",Xo="[^"+lr+Jo+Zo+qo+Go+zo+"]",Fi="\\ud83c[\\udffb-\\udfff]",Rg="(?:"+cr+"|"+Fi+")",Qo="[^"+lr+"]",Pi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",Vo="\\u200d",ko="(?:"+jo+"|"+Xo+")",Cg="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=Rg+"?",rf="["+Ko+"]?",Lg="(?:"+Vo+"(?:"+[Qo,Pi,$i].join("|")+")"+rf+nf+")*",Fg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+Lg,$g="(?:"+[Tg,Pi,$i].join("|")+")"+uf,Dg="(?:"+[Qo+cr+"?",cr,Pi,$i,Ig].join("|")+")",Ng=RegExp(Li,"g"),Ug=RegExp(cr,"g"),Di=RegExp(Fi+"(?="+Fi+")|"+Dg+uf,"g"),Mg=RegExp([un+"?"+jo+"+"+ef+"(?="+[Yo,un,"$"].join("|")+")",Cg+"+"+tf+"(?="+[Yo,un+ko,"$"].join("|")+")",un+"?"+ko+"+"+ef,un+"+"+tf,Pg,Fg,Zo,$g].join("|"),"g"),Bg=RegExp("["+Vo+lr+Ho+Ko+"]"),Wg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hg=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],qg=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[xi]=ie[bi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[xn]=ie[or]=ie[fr]=ie[rt]=ie[bn]=ie[wt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[xn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[xi]=te[rt]=te[bn]=te[wt]=te[En]=te[it]=te[In]=te[ar]=te[bi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var Gg={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},zg={"&":"&","<":"<",">":">",'"':""","'":"'"},Kg={"&":"&","<":"<",">":">",""":'"',"'":"'"},Jg={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yg=parseFloat,Zg=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,jg=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||jg||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Ni,Ui=ff&&of.process,Ze=function(){try{var g=qt&&qt.require&&qt.require("util").types;return g||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),af=Ze&&Ze.isArrayBuffer,sf=Ze&&Ze.isDate,lf=Ze&&Ze.isMap,cf=Ze&&Ze.isRegExp,hf=Ze&&Ze.isSet,pf=Ze&&Ze.isTypedArray;function Be(g,S,w){switch(w.length){case 0:return g.call(S);case 1:return g.call(S,w[0]);case 2:return g.call(S,w[0],w[1]);case 3:return g.call(S,w[0],w[1],w[2])}return g.apply(S,w)}function Xg(g,S,w,L){for(var H=-1,X=g==null?0:g.length;++H-1}function Mi(g,S,w){for(var L=-1,H=g==null?0:g.length;++L-1;);return w}function Af(g,S){for(var w=g.length;w--&&on(S,g[w],0)>-1;);return w}function uv(g,S){for(var w=g.length,L=0;w--;)g[w]===S&&++L;return L}var ov=qi(Gg),fv=qi(zg);function av(g){return"\\"+Jg[g]}function sv(g,S){return g==null?i:g[S]}function fn(g){return Bg.test(g)}function lv(g){return Wg.test(g)}function cv(g){for(var S,w=[];!(S=g.next()).done;)w.push(S.value);return w}function Ji(g){var S=-1,w=Array(g.size);return g.forEach(function(L,H){w[++S]=[H,L]}),w}function Sf(g,S){return function(w){return g(S(w))}}function Lt(g,S){for(var w=-1,L=g.length,H=0,X=[];++w-1}function Vv(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Zv,mt.prototype.delete=jv,mt.prototype.get=Xv,mt.prototype.has=Qv,mt.prototype.set=Vv;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,y=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!oe(e))return e;var x=q(e);if(x){if(h=n1(e),!p)return $e(e,h)}else{var I=Ie(e),R=I==fr||I==Do;if(Ut(e))return ia(e,p);if(I==wt||I==W||R&&!f){if(h=y||R?{}:Oa(e),!p)return y?K0(e,d0(h,e)):z0(e,$f(h,e))}else{if(!te[I])return f?e:{};h=r1(e,I,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),Va(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?y?yu:vu:y?Ne:me,K=x?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function _0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,y=[],O=t.length;if(!p)return y;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?xe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=la(),Bf=la(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function y0(e,t){return e!=null&&V.call(e,t)}function w0(e,t){return e!=null&&t in ee(e)}function m0(e,t,n){return e>=Ee(t,n)&&e=120&&x.length>=120)?new Kt(h&&x):i}x=e[0];var I=-1,R=p[0];e:for(;++I-1;)p!==e&&Sr.call(p,y,1),Sr.call(e,y,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;bt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+br(Cf()*(t-e+1))}function P0(e,t,n,o){for(var f=-1,l=ve(xr((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=br(t/2),t&&(e+=e);while(t);return n}function J(e,t){return bu(Ea(e,t,Ue),e+"")}function $0(e){return Pf(yn(e))}function D0(e,t){var n=yn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!oe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=w(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:j0(e);if(O)return dr(O);h=!1,f=Cn,y=new Kt}else y=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ra=Ev||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=bf?bf(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function W0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function H0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function q0(e){return Dn?ee(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,y=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&y&&!p&&!O||o&&h&&y||!n&&y||!f)return 1;if(!o&&!l&&!O&&e=p)return y;var O=n[o];return y*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,y=t.length,O=ve(l-h,0),x=w(y+O),I=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return xt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),x&&yp))return!1;var O=l.get(e),x=l.get(t);if(O&&x)return O==t&&x==e;var I=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++I1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(og,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,k=64,ne=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",xe]],W="[object Arguments]",re="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",No="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Uo="[object Promise]",Yg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Zg="[object Undefined]",Tn="[object WeakMap]",jg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,Vg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,kg=RegExp(Mo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",qo=S_+O_+b_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",Yo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Zo="["+Yo+"]",cr="["+qo+"]",jo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+Yo+jo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Vo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",ko="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+ko+"(?:"+[Vo,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,N_="(?:"+[C_,Fi,$i].join("|")+")"+of,U_="(?:"+[Vo+cr+"?",cr,Fi,$i,R_].join("|")+")",M_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+U_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Zo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Zo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,jo,N_].join("|"),"g"),H_=RegExp("["+ko+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[bi]=ie[xi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[bn]=ie[or]=ie[fr]=ie[rt]=ie[xn]=ie[yt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[bn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[bi]=te[rt]=te[xn]=te[yt]=te[En]=te[it]=te[In]=te[ar]=te[xi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},Y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Z_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},j_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ff||Q_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Ni,Ui=af&&ff.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),sf=Ze&&Ze.isArrayBuffer,lf=Ze&&Ze.isDate,cf=Ze&&Ze.isMap,hf=Ze&&Ze.isRegExp,pf=Ze&&Ze.isSet,df=Ze&&Ze.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function V_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Z_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Of(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=Vv,mt.prototype.has=kv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,w=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==No;if(Ut(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:ba(e),!p)return w?Y0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!te[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),ka(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?w?wu:vu:w?Ne:me,K=b?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function v0(e){var t=me(e);return function(n){return Nf(n,e,t)}}function Nf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Uf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],O=t.length;if(!p)return w;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=ca(),Wf=ca(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&V.call(e,t)}function A0(e,t){return e!=null&&t in ee(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ue),e+"")}function N0(e){return $f(wn(e))}function U0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ia=Tv||function(e){return Oe.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?ee(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&w&&!p&&!O||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!O&&e=p)return w;var O=n[o];return w*(O=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,O=ve(l-h,0),b=y(w+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function da(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),b&&wp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ /* [wrapped with `+t+`] */ -`)}function u1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function bt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&vg.test(e))&&e>-1&&e%1==0&&e0){if(++t>=wi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ma(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function gy(e,t){return t(e),e}function Gr(e,t){return t(e)}var vy=xt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!bt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function yy(){return Ba(this)}function wy(){return new Qe(this.value(),this.__chain__)}function my(){this.__values__===i&&(this.__values__=ka(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ay(){return this}function Sy(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function Oy(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function xy(){return ta(this.__wrapped__,this.__actions__)}var by=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Ey(e,t,n){var o=q(e)?df:g0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Iy(e,t){var n=q(e)?Rt:Mf;return n(e,U(t,3))}var Ty=ha(Pa),Ry=ha($a);function Cy(e,t){return xe(zr(e,t),1)}function Ly(e,t){return xe(zr(e,t),Ae)}function Fy(e,t,n){return n=n===i?1:G(n),xe(zr(e,t),n)}function Wa(e,t){var n=q(e)?je:Pt;return n(e,U(t,3))}function Ha(e,t){var n=q(e)?Qg:Uf;return n(e,U(t,3))}var Py=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function $y(e,t,n,o){e=De(e)?e:yn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Dy=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Ny=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:zf;return n(e,U(t,3))}function Uy(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var My=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function By(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Pt)}function Wy(e,t,n){var o=q(e)?Vg:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Uf)}function Hy(e,t){var n=q(e)?Rt:Mf;return n(e,Yr(U(t,3)))}function qy(e){var t=q(e)?Pf:$0;return t(e)}function Gy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?c0:D0;return o(e,t)}function zy(e){var t=q(e)?h0:U0;return t(e)}function Ky(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Jy(e,t,n){var o=q(e)?Wi:M0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var Yy=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,xe(t,1),[])}),Kr=Iv||function(){return Oe.Date.now()};function Zy(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=_e;if(n.length){var f=Lt(n,gn(Tu));o|=we}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=_e|Fe;if(n.length){var f=Lt(n,gn(za));o|=we}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,y,O=0,x=!1,I=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,oe(n)&&(x=!!n.leading,I="maxWait"in n,l=I?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),x?$(he):h}function K(he){var at=he-y,Tt=he-O,hs=t-at;return I?Ee(hs,l-Tt):hs}function B(he){var at=he-y,Tt=he-O;return y===i||at>=t||at<0||I&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=y=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,y=he,at){if(p===i)return M(y);if(I)return ra(p),p=Gn(Y,t),$(y)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var jy=J(function(e,t){return Nf(e,1,t)}),Xy=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Qy(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Vy(e){return Ga(2,e)}var ky=B0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(xe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return se(e)&&V.call(e,"callee")&&!If.call(e,"callee")},q=w.isArray,dw=af?We(af):S0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function _w(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Rv||Wu,gw=sf?We(sf):O0;function vw(e){return se(e)&&e.nodeType===1&&!zn(e)}function yw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function ww(e,t){return Bn(e,t)}function mw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==G_||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Aw(e){return typeof e=="number"&&Rf(e)}function Et(e){if(!oe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Pe||t==K_}function ja(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function oe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):b0;function Sw(e,t){return e===t||ru(e,t,mu(t))}function Ow(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function xw(e){return Qa(e)&&e!=+e}function bw(e){if(a1(e))throw new H(d);return qf(e)}function Ew(e){return e===null}function Iw(e){return e==null}function Qa(e){return typeof e=="number"||se(e)&&Re(e)==bn}function zn(e){if(!se(e)||Re(e)!=wt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==Ov}var Lu=cf?We(cf):E0;function Tw(e){return ja(e)&&e>=-Je&&e<=Je}var Va=hf?We(hf):I0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=pf?We(pf):T0;function Rw(e){return e===i}function Cw(e){return se(e)&&Ie(e)==Tn}function Lw(e){return se(e)&&Re(e)==Y_}var Fw=Br(uu),Pw=Br(function(e,t){return e<=t});function ka(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return cv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:yn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,_):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(oe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wf(e);var n=dg.test(e);return n||gg.test(e)?Zg(e.slice(2),n?2:8):pg.test(e)?nn:+e}function ts(e){return ht(e,Ne(e))}function $w(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Dw=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),Nw=dn(function(e,t,n,o){ht(t,me(t),e,o)}),Uw=xt(Vi);function Mw(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Bw=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,yu(e),n),o&&(n=Ve(n,D|z|N,X0));for(var f=t.length;f--;)lu(n,t[f]);return n});function rm(e,t){return is(e,Yr(U(t)))}var im=xt(function(e,t){return e==null?{}:L0(e,t)});function is(e,t){if(e==null)return{};var n=ue(yu(e),function(o){return[o]});return t=U(t),jf(e,n,function(o,f){return t(o,f[0])})}function um(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return Ee(e+f*(t-e+Yg("1e-"+((f+"").length-1))),t)}return fu(e,t)}var gm=_n(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(yg,ov).replace(Ug,"")}function vm(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function ym(e){return e=Q(e),e&&V_.test(e)?e.replace(Mo,fv):e}function wm(e){return e=Q(e),e&&ig.test(e)?e.replace(Ri,"\\$&"):e}var mm=_n(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Am=_n(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Sm=ca("toLowerCase");function Om(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(br(f),n)+e+Mr(xr(f),n)}function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Lm=_n(function(e,t,n){return e+(n?" ":"")+$u(t)});function Fm(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Pm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,y,O=0,x=t.interpolate||sr,I="__p += '",R=Yi((t.escape||sr).source+"|"+x.source+"|"+(x===Bo?hg:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qg+"]")+` -`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),I+=e.slice(O,ze).replace(wg,av),Y&&(p=!0,I+=`' + +`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,U(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Ha(e,t){var n=q(e)?je:Ft;return n(e,U(t,3))}function qa(e,t){var n=q(e)?k_:Mf;return n(e,U(t,3))}var Dw=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Nw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Uw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Mw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:Kf;return n(e,U(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),jf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Mf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,Yr(U(t,3)))}function zw(e){var t=q(e)?$f:N0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:U0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function Yw(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Zw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var jw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),jf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return Ot(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ya.placeholder,o}function Za(e,t,n){var o,f,l,h,p,w,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),b?F(he):h}function K(he){var at=he-w,Tt=he-O,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-O;return w===i||at>=t||at<0||E&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),O=0,o=w=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return M(w);if(E)return ia(p),p=Gn(Y,t),F(w)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Uf(e,1,t)}),Vw=J(function(e,t,n){return Uf(e,tt(t)||0,n)});function kw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(be(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&V.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):b0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==No||t==Fe||t==Yg}function Xa(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Va(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Va(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var ka=pf?We(pf):R0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==jg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Ne(e))}function Ny(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Uy=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),My=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(Vi);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=Ve(n,D|z|N,V0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,Yr(U(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=ue(wu(e),function(o){return[o]});return t=U(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+j_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(xr(f),n)+e+Mr(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,O=0,b=t.interpolate||sr,E="__p += '",R=Yi((t.escape||sr).source+"|"+b.source+"|"+(b===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` +`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),E+=e.slice(O,ze).replace(A_,lv),Y&&(p=!0,E+=`' + __e(`+Y+`) + -'`),Le&&(y=!0,I+=`'; +'`),Le&&(w=!0,E+=`'; `+Le+`; -__p += '`),j&&(I+=`' + +__p += '`),j&&(E+=`' + ((__t = (`+j+`)) == null ? '' : __t) + -'`),O=ze+B.length,B}),I+=`'; -`;var M=V.call(t,"variable")&&t.variable;if(!M)I=`with (obj) { -`+I+` +'`),O=ze+B.length,B}),E+=`'; +`;var M=V.call(t,"variable")&&t.variable;if(!M)E=`with (obj) { +`+E+` } -`;else if(lg.test(M))throw new H(A);I=(y?I.replace(Z_,""):I).replace(j_,"$1").replace(X_,"$1;"),I="function("+(M||"obj")+`) { +`;else if(h_.test(M))throw new H(A);E=(w?E.replace(Xg,""):E).replace(Qg,"$1").replace(Vg,"$1;"),E="function("+(M||"obj")+`) { `+(M?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(y?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; -`)+I+`return __p -}`;var K=ls(function(){return X(l,$+"return "+I).apply(i,h)});if(K.source=I,Cu(K))throw K;return K}function $m(e){return Q(e).toLowerCase()}function Dm(e){return Q(e).toUpperCase()}function Nm(e,t,n){if(e=Q(e),e&&(n||t===i))return wf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Nt(o,l,h).join("")}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Nt(o,0,f).join("")}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Nt(o,f).join("")}function Bm(e,t){var n=yt,o=de;if(oe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var y=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return y+o;if(h&&(p+=y.length-p),Lu(f)){if(e.slice(p).search(f)){var O,x=y;for(f.global||(f=Yi(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var I=O.index;y=y.slice(0,I===i?p:I)}}else if(e.indexOf(He(f),p)!=p){var R=y.lastIndexOf(f);R>-1&&(y=y.slice(0,R))}return y+o}function Wm(e){return e=Q(e),e&&Q_.test(e)?e.replace(Uo,_v):e}var Hm=_n(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?lv(e)?yv(e):tv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),qm=xt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Gm(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=_,o=Ee(e,_);t=U(t),e-=_;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(_)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,y=h instanceof Z,O=p[0],x=y||q(h),I=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};x&&n&&typeof O=="function"&&O.length!=1&&(y=x=!1);var R=this.__chain__,$=!!this.__actions__.length,M=l&&!R,K=y&&!$;if(!l&&x){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[I],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(I),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=_r[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Fe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=Wv,Z.prototype.reverse=Hv,Z.prototype.value=qv,s.prototype.at=vy,s.prototype.chain=yy,s.prototype.commit=wy,s.prototype.next=my,s.prototype.plant=Sy,s.prototype.reverse=Oy,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=xy,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ay),s},sn=wv();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var x_=rr.exports;const b_=Kn(x_);class E_{constructor(){fe(this,"_eventFuncID",{id:"__reload__"});fe(this,"_url");fe(this,"_method");fe(this,"_vars");fe(this,"_locals");fe(this,"_loadPortalBody",!1);fe(this,"_form",{});fe(this,"_popstate");fe(this,"_pushState");fe(this,"_location");fe(this,"_updateRootTemplate");fe(this,"_buildPushStateResult");fe(this,"_beforeFetch");fe(this,"parent");fe(this,"lodash",b_);fe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);fe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=gi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?gi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=t_({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return O_.applyPatch(u,i)}encodeObjectToQuery(u,i){return r_(u,i)}isRawQuerySubset(u,i,a){return u_(u,i,a)}}function gi(){return new E_}const I_={mounted:(r,u,i)=>{var P,F;let a=r;i.component&&(a=(F=(P=i.component)==null?void 0:P.proxy)==null?void 0:F.$el);const c=u.arg||"scroll",v=_t.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=_t.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=_t.stringify(D)},200))}},T_={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,R_=window.fetch;function C_(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await R_(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const L_={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},F_={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},P_={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},$_={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},D_={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},N_={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}},U_={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:E.watch,watchEffect:E.watchEffect,ref:E.ref,reactive:E.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};fe(Ht,"instance",null);let yi=Ht;const B_=E.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=E.shallowRef(null),i=E.reactive({});E.provide("form",i);const a=T=>{u.value=oi(T,i)};E.provide("updateRootTemplate",a);const c=E.reactive({__emitter:new M_,__history:yi.getInstance()}),d=()=>gi().updateRootTemplate(a).vars(c);E.provide("plaid",d),E.provide("vars",c);const v=E.ref(!1),A=E.ref(!0);return E.provide("isFetching",v),E.provide("isReloadingPage",A),C_({onRequest(T,P,F){typeof P=="string"&&["__execute_event__=__reload__"].includes(P)&&(A.value=!0)},onResponse(T,P,F,D){typeof F=="string"&&["__execute_event__=__reload__"].includes(F)&&(A.value=!1)}}),E.onMounted(()=>{a(r.initialTemplate),A.value=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:` +`)+E+`return __p +}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Nm(e){return Q(e).toLowerCase()}function Um(e){return Q(e).toUpperCase()}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Nt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Nt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Nt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=Yi(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&kg.test(e)?e.replace(Mo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Z,O=p[0],b=w||q(h),E=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,M=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(E),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Pe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=qv,Z.prototype.reverse=Gv,Z.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){oe(this,"_eventFuncID",{id:"__reload__"});oe(this,"_url");oe(this,"_method");oe(this,"_vars");oe(this,"_locals");oe(this,"_loadPortalBody",!1);oe(this,"_form",{});oe(this,"_popstate");oe(this,"_pushState");oe(this,"_location");oe(this,"_updateRootTemplate");oe(this,"_buildPushStateResult");oe(this,"_beforeFetch");oe(this,"parent");oe(this,"lodash",Eg);oe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);oe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};oe(Ht,"instance",null);let wi=Ht;class Wg{constructor(u){oe(this,"globalProgressBar");this.globalProgressBar=u}start(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.show=!0,this.globalProgressBar.value=20)}async end(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.value=80,await To(100),this.globalProgressBar.value=100,await To(150),this.globalProgressBar.value=0,this.globalProgressBar.show=!1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg(c.globalProgressBar);return Lg({onRequest(T,$,P){A.start($)},onResponse(T,$,P,D){A.end(P)}}),I.onMounted(()=>{a(r.initialTemplate),c.globalProgressBar.show=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:`
- + +
- `}),W_={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",o_),r.component("GoPlaidListener",f_),r.component("ParentSizeObserver",a_),r.directive("keep-scroll",I_),r.directive("assign",T_),r.directive("on-created",L_),r.directive("before-mount",F_),r.directive("on-mounted",P_),r.directive("before-update",$_),r.directive("on-updated",D_),r.directive("before-unmount",N_),r.directive("on-unmounted",U_),r.component("GlobalEvents",gs)}};function H_(r){const u=E.createApp(B_,{initialTemplate:r});return u.use(W_),u}const Po=document.getElementById("app");if(!Po)throw new Error("#app required");const q_={},$o=H_(Po.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,q_);$o.mount("#app")}); + `}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Ng),r.directive("before-unmount",Ug),r.directive("on-unmounted",Mg),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); diff --git a/corejs/package.json b/corejs/package.json index b62fef7..f4ba649 100644 --- a/corejs/package.json +++ b/corejs/package.json @@ -7,7 +7,7 @@ "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", - "watch-build": "nodemon --watch src --ext ts,scss --exec 'npm run build'", + "watch-build": "nodemon --watch src --ext ts,scss --exec '../build.sh'", "test": "vitest", "ci-test": "vitest run", "build-only": "vite build", diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 6e8396e..d8a6c51 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -30,6 +30,7 @@ import { } from '@/lifecycle' import { TinyEmitter } from 'tiny-emitter' import { HistoryManager } from '@/history' +import progressBarController from './progressBarCtrl' export const Root = defineComponent({ props: { @@ -51,7 +52,13 @@ export const Root = defineComponent({ const vars = reactive({ __emitter: new TinyEmitter(), - __history: HistoryManager.getInstance() + __history: HistoryManager.getInstance(), + globalProgressBar: { + show: true, + value: 0, + color: 'amber', + height: 2 + } }) const _plaid = (): Builder => { return plaid().updateRootTemplate(updateRootTemplate).vars(vars) @@ -59,29 +66,23 @@ export const Root = defineComponent({ provide('plaid', _plaid) provide('vars', vars) const isFetching = ref(false) - const isReloadingPage = ref(true) provide('isFetching', isFetching) - provide('isReloadingPage', isReloadingPage) + const progressBarCtl = new progressBarController(vars.globalProgressBar) initFetchInterceptor({ onRequest(id, resource, config) { - // console.log('onReq', id, resource, config) - if (typeof resource === 'string' && ['__execute_event__=__reload__'].includes(resource)) { - isReloadingPage.value = true - } + progressBarCtl.start(resource) }, onResponse(id, response, resource, config) { - // console.log('onRes', id, response, r esource, config) - if (typeof resource === 'string' && ['__execute_event__=__reload__'].includes(resource)) { - isReloadingPage.value = false - } + progressBarCtl.end(resource) } }) onMounted(() => { updateRootTemplate(props.initialTemplate) - isReloadingPage.value = false + vars.globalProgressBar.show = false + window.addEventListener('fetchStart', () => { isFetching.value = true }) @@ -94,12 +95,21 @@ export const Root = defineComponent({ }) return { - current + current, + vars } }, + template: `
- + +
` }) diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts index a1d48fb..f0cba8a 100644 --- a/corejs/src/fetchInterceptor.ts +++ b/corejs/src/fetchInterceptor.ts @@ -26,7 +26,6 @@ export function initFetchInterceptor(customInterceptor: FetchInterceptor) { // Store the request info in the Map requestMap.set(requestId, { resource, config }) - // Execute the request phase callback if provided if (customInterceptor.onRequest) { customInterceptor.onRequest(requestId, resource, config) diff --git a/corejs/src/progressBarCtrl.ts b/corejs/src/progressBarCtrl.ts new file mode 100644 index 0000000..050b454 --- /dev/null +++ b/corejs/src/progressBarCtrl.ts @@ -0,0 +1,43 @@ +import { sleep } from './utils' + +interface Payload { + show: boolean + value: number + color: string + height: number +} + +export default class GlobalProgressBarControl { + globalProgressBar: Payload + + constructor(globalProgressBar: Payload) { + this.globalProgressBar = globalProgressBar + } + + start(resource: RequestInfo | URL) { + if (typeof resource !== 'string') return + + if (resource.indexOf('__execute_event__=__reload__') === -1) return + + this.globalProgressBar.show = true + this.globalProgressBar.value = 20 + } + + async end(resource: RequestInfo | URL) { + if (typeof resource !== 'string') return + + if (resource.indexOf('__execute_event__=__reload__') === -1) return + + this.globalProgressBar.value = 80 + + await sleep(100) + + this.globalProgressBar.value = 100 + await sleep(150) + + // nextTick(() => { + this.globalProgressBar.value = 0 + this.globalProgressBar.show = false + // }) + } +} diff --git a/corejs/src/utils.ts b/corejs/src/utils.ts index b314305..fdf01df 100644 --- a/corejs/src/utils.ts +++ b/corejs/src/utils.ts @@ -366,3 +366,11 @@ export function parsePathAndQuery(href: string) { export function generateUniqueId(): string { return Math.random().toString(36).slice(2, 9) } + +export function sleep(delay = 1000) { + return new Promise((resolve) => { + setTimeout(function () { + resolve(undefined) + }, delay) + }) +} From 7edc4c73811e621984a2dd69cea7682389962e54 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 27 Aug 2024 16:59:04 +0800 Subject: [PATCH 16/21] =?UTF-8?q?chore:=20=F0=9F=A4=96=20make=20progressba?= =?UTF-8?q?r's=20height=20and=20color=20dynamic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- corejs/dist/index.js | 20 ++++++++++---------- corejs/src/app.ts | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index de58713..b999371 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -2,8 +2,8 @@ var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,co * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ds=/^on(\w+?)((?:Once|Capture|Passive)*)$/,gs=/[OCP]/g;function _s(r){return r?Qt()?r.includes("Capture"):r.replace(gs,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,Os=As||Ss||Function("return this")(),yn=Os,bs=yn,xs=function(){return bs.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ns=qu.hasOwnProperty,Us=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ms(r){var u=Ns.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Us.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Ms,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",Ys="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Zs(r){return r==null?r===void 0?Ys:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var Vr=Zs;function js(r){return r!=null&&typeof r=="object"}var Yn=js,Xs=Vr,Qs=Yn,Vs="[object Symbol]";function ks(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==Vs}var el=ks,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,kr=Es,Yu=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=Yu(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,xe=c;return a=c=void 0,$=k,v=r.apply(xe,ne),v}function le(k){return $=k,A=setTimeout(Pe,u),P?N(k):v}function Ke(k){var ne=k-T,xe=k-$,vt=u-ne;return D?hl(vt,d-xe):vt}function ge(k){var ne=k-T,xe=k-$;return T===void 0||ne>=u||ne<0||D&&xe>=d}function Pe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Pe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function ye(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),N(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Zu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),I.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var x=0;x(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,bs=As||Ss||Function("return this")(),yn=bs,Os=yn,xs=function(){return Os.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ns=qu.hasOwnProperty,Us=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ms(r){var u=Ns.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Us.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Ms,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",Ys="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Zs(r){return r==null?r===void 0?Ys:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var Vr=Zs;function js(r){return r!=null&&typeof r=="object"}var Yn=js,Xs=Vr,Qs=Yn,Vs="[object Symbol]";function ks(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==Vs}var el=ks,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,kr=Es,Yu=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=Yu(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,xe=c;return a=c=void 0,$=k,v=r.apply(xe,ne),v}function le(k){return $=k,A=setTimeout(Pe,u),P?N(k):v}function Ke(k){var ne=k-T,xe=k-$,vt=u-ne;return D?hl(vt,d-xe):vt}function ge(k){var ne=k-T,xe=k-$;return T===void 0||ne>=u||ne<0||D&&xe>=d}function Pe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Pe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function ye(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),N(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Zu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),I.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var x=0;xr==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Ol(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function bl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=Ol(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=bl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function Yl(r){return r}var ho=Yl;function Zl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var jl=Zl,Xl=jl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,Yc=Hc,Zc=Jc,jc=Zc(Yc),Xc=jc,Qc=ho,Vc=Vl,kc=Xc;function eh(r,u){return kc(Vc(r,u,Qc),r+"")}var wo=eh,th=Zn,nh=th(Object,"create"),jn=nh,yo=jn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=jn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=jn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=jn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,Oh=oh,bh=hh,xh=vh,Eh=Ah;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Yh=Jh,Zh=Rh,jh=Mh,Xh=Hh,Qh=zh,Vh=Yh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,Od=go,bd=Sd;function xd(r){return r!=null&&bd(r.length)&&!Od(r)}var Ed=xd,Id=Ed,Td=Yn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Nd=Kn(Dd);function Ud(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Yd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Nd(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},Ye.prototype[Symbol.iterator]=function(){return this.entries()},Ye.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function bl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=bl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function Yl(r){return r}var ho=Yl;function Zl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var jl=Zl,Xl=jl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,Yc=Hc,Zc=Jc,jc=Zc(Yc),Xc=jc,Qc=ho,Vc=Vl,kc=Xc;function eh(r,u){return kc(Vc(r,u,Qc),r+"")}var wo=eh,th=Zn,nh=th(Object,"create"),jn=nh,yo=jn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=jn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=jn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=jn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,bh=oh,Oh=hh,xh=vh,Eh=Ah;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Yh=Jh,Zh=Rh,jh=Mh,Xh=Hh,Qh=zh,Vh=Yh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,bd=go,Od=Sd;function xd(r){return r!=null&&Od(r.length)&&!bd(r)}var Ed=xd,Id=Ed,Td=Yn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Nd=Kn(Dd);function Ud(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Yd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Nd(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed @@ -20,23 +20,23 @@ Content-Type: `+(C.type||"application/octet-stream")+`\r * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2021 Joachim Wester * MIT license - */var pi=new WeakMap,_g=function(){function r(u){this.observers=new Map,this.obj=u}return r}(),vg=function(){function r(u,i){this.callback=u,this.observer=i}return r}();function wg(r){return pi.get(r)}function yg(r,u){return r.observers.get(u)}function mg(r,u){r.observers.delete(u.callback)}function Ag(r,u){u.unobserve()}function Sg(r,u){var i=[],a,c=wg(r);if(!c)c=new _g(r),pi.set(r,c);else{var d=yg(c,u);a=d&&d.observer}if(a)return a;if(a={},c.value=Me(r),u){a.callback=u,a.next=null;var v=function(){di(a)},A=function(){clearTimeout(a.next),a.next=setTimeout(v)};typeof window<"u"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return a.patches=i,a.object=r,a.unobserve=function(){di(a),clearTimeout(a.next),mg(c,a),typeof window<"u"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},c.observers.set(u,new vg(u,a)),a}function di(r,u){u===void 0&&(u=!1);var i=pi.get(r.object);gi(i.value,r.object,r.patches,"",u),r.patches.length&&hi(i.value,r.patches);var a=r.patches;return a.length>0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,k=64,ne=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",xe]],W="[object Arguments]",re="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",No="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Uo="[object Promise]",Yg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Zg="[object Undefined]",Tn="[object WeakMap]",jg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,Vg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,kg=RegExp(Mo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",qo=S_+O_+b_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",Yo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Zo="["+Yo+"]",cr="["+qo+"]",jo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+Yo+jo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Vo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",ko="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+ko+"(?:"+[Vo,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,N_="(?:"+[C_,Fi,$i].join("|")+")"+of,U_="(?:"+[Vo+cr+"?",cr,Fi,$i,R_].join("|")+")",M_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+U_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Zo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Zo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,jo,N_].join("|"),"g"),H_=RegExp("["+ko+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[Oi]=ie[bi]=ie[xi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[bn]=ie[or]=ie[fr]=ie[rt]=ie[xn]=ie[yt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[bn]=te[mi]=te[Ai]=te[Si]=te[Oi]=te[bi]=te[rt]=te[xn]=te[yt]=te[En]=te[it]=te[In]=te[ar]=te[xi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},Y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Z_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},j_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ff||Q_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Ni,Ui=af&&ff.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),sf=Ze&&Ze.isArrayBuffer,lf=Ze&&Ze.isDate,cf=Ze&&Ze.isMap,hf=Ze&&Ze.isRegExp,pf=Ze&&Ze.isSet,df=Ze&&Ze.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function V_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Z_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Of(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=Vv,mt.prototype.has=kv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,w=t&z,O=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==No;if(Ut(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:ba(e),!p)return w?Y0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!te[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),ka(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=O?w?wu:vu:w?Ne:me,K=b?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function v0(e){var t=me(e);return function(n){return Nf(n,e,t)}}function Nf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Uf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],O=t.length;if(!p)return w;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=ca(),Wf=ca(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&V.call(e,t)}function A0(e,t){return e!=null&&t in ee(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ue),e+"")}function N0(e){return $f(wn(e))}function U0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ia=Tv||function(e){return Oe.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?ee(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&w&&!p&&!O||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!O&&e=p)return w;var O=n[o];return w*(O=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,O=ve(l-h,0),b=y(w+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function da(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),b&&wp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,k=64,ne=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,bn=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",xe]],W="[object Arguments]",re="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",On="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",No="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Uo="[object Promise]",Yg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Zg="[object Undefined]",Tn="[object WeakMap]",jg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",bi="[object Int16Array]",Oi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,Vg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,kg=RegExp(Mo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",b_="\\ufe20-\\ufe2f",O_="\\u20d0-\\u20ff",qo=S_+b_+O_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",Yo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Zo="["+Yo+"]",cr="["+qo+"]",jo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+Yo+jo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Vo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",ko="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+ko+"(?:"+[Vo,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,N_="(?:"+[C_,Fi,$i].join("|")+")"+of,U_="(?:"+[Vo+cr+"?",cr,Fi,$i,R_].join("|")+")",M_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+U_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Zo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Zo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,jo,N_].join("|"),"g"),H_=RegExp("["+ko+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[bi]=ie[Oi]=ie[xi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[On]=ie[or]=ie[fr]=ie[rt]=ie[xn]=ie[yt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[On]=te[mi]=te[Ai]=te[Si]=te[bi]=te[Oi]=te[rt]=te[xn]=te[yt]=te[En]=te[it]=te[In]=te[ar]=te[xi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},Y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Z_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},j_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,be=ff||Q_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Ni,Ui=af&&ff.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),sf=Ze&&Ze.isArrayBuffer,lf=Ze&&Ze.isDate,cf=Ze&&Ze.isMap,hf=Ze&&Ze.isRegExp,pf=Ze&&Ze.isSet,df=Ze&&Ze.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function V_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Z_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function bf(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=Vv,mt.prototype.has=kv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,w=t&z,b=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var O=q(e);if(O){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==No;if(Ut(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:Oa(e),!p)return w?Y0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!te[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),ka(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=b?w?wu:vu:w?Ne:me,K=O?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function v0(e){var t=me(e);return function(n){return Nf(n,e,t)}}function Nf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Uf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],b=t.length;if(!p)return w;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?Oe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=ca(),Wf=ca(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&V.call(e,t)}function A0(e,t){return e!=null&&t in ee(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&O.length>=120)?new Kt(h&&O):i}O=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(Or((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ue),e+"")}function N0(e){return $f(wn(e))}function U0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var b=t?null:Q0(e);if(b)return dr(b);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ia=Tv||function(e){return be.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?ee(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,b=qe(t);if(!p&&!b&&!l&&e>t||l&&h&&w&&!p&&!b||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!b&&e=p)return w;var b=n[o];return w*(b=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,b=ve(l-h,0),O=y(w+b),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function da(e){return Ot(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),O&&wp))return!1;var b=l.get(e),O=l.get(t);if(b&&O)return b==t&&O==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ /* [wrapped with `+t+`] */ -`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,U(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Ha(e,t){var n=q(e)?je:Ft;return n(e,U(t,3))}function qa(e,t){var n=q(e)?k_:Mf;return n(e,U(t,3))}var Dw=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Nw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Uw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Mw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:Kf;return n(e,U(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),jf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Mf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,Yr(U(t,3)))}function zw(e){var t=q(e)?$f:N0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:U0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function Yw(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Zw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var jw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),jf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,ne,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return Ot(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ya.placeholder,o}function Za(e,t,n){var o,f,l,h,p,w,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function M(he){return O=he,p=Gn(Y,t),b?F(he):h}function K(he){var at=he-w,Tt=he-O,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-O;return w===i||at>=t||at<0||E&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),O=0,o=w=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return M(w);if(E)return ia(p),p=Gn(Y,t),F(w)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Uf(e,1,t)}),Vw=J(function(e,t,n){return Uf(e,tt(t)||0,n)});function kw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(be(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&V.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):b0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==No||t==Fe||t==Yg}function Xa(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Va(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Va(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var ka=pf?We(pf):R0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==jg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Ne(e))}function Ny(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Uy=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),My=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(Vi);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=Ve(n,D|z|N,V0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,Yr(U(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=ue(wu(e),function(o){return[o]});return t=U(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+j_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(xr(f),n)+e+Mr(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,O=0,b=t.interpolate||sr,E="__p += '",R=Yi((t.escape||sr).source+"|"+b.source+"|"+(b===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` -`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),E+=e.slice(O,ze).replace(A_,lv),Y&&(p=!0,E+=`' + +`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=Ot(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function bw(){return this}function Ow(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,U(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return Oe(zr(e,t),1)}function Fw(e,t){return Oe(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),Oe(zr(e,t),n)}function Ha(e,t){var n=q(e)?je:Ft;return n(e,U(t,3))}function qa(e,t){var n=q(e)?k_:Mf;return n(e,U(t,3))}var Dw=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Nw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Uw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Mw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:Kf;return n(e,U(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),jf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Mf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,Yr(U(t,3)))}function zw(e){var t=q(e)?$f:N0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:U0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function Yw(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Zw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var jw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),jf(e,Oe(t,1),[])}),Kr=Rv||function(){return be.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,bt(e,ne,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return bt(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return bt(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=bt(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){t=n?i:t;var o=bt(e,st,i,i,i,i,i,t);return o.placeholder=Ya.placeholder,o}function Za(e,t,n){var o,f,l,h,p,w,b=0,O=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(O=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,b=he,h=e.apply(Tt,at),h}function M(he){return b=he,p=Gn(Y,t),O?F(he):h}function K(he){var at=he-w,Tt=he-b,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-b;return w===i||at>=t||at<0||E&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),b=0,o=w=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return M(w);if(E)return ia(p),p=Gn(Y,t),F(w)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Uf(e,1,t)}),Vw=J(function(e,t,n){return Uf(e,tt(t)||0,n)});function kw(e){return bt(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(Oe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&V.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):O0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function by(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==No||t==Fe||t==Yg}function Xa(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function Oy(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Va(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Va(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var ka=pf?We(pf):R0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==jg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Ne(e))}function Ny(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Uy=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),My=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=Ot(Vi);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=Ve(n,D|z|N,V0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,Yr(U(t)))}var om=Ot(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=ue(wu(e),function(o){return[o]});return t=U(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+j_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bm=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Om=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(xr(f),n)+e+Mr(Or(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,b=0,O=t.interpolate||sr,E="__p += '",R=Yi((t.escape||sr).source+"|"+O.source+"|"+(O===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` +`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),E+=e.slice(b,ze).replace(A_,lv),Y&&(p=!0,E+=`' + __e(`+Y+`) + '`),Le&&(w=!0,E+=`'; `+Le+`; __p += '`),j&&(E+=`' + ((__t = (`+j+`)) == null ? '' : __t) + -'`),O=ze+B.length,B}),E+=`'; +'`),b=ze+B.length,B}),E+=`'; `;var M=V.call(t,"variable")&&t.variable;if(!M)E=`with (obj) { `+E+` } @@ -46,12 +46,12 @@ __p += '`),j&&(E+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Nm(e){return Q(e).toLowerCase()}function Um(e){return Q(e).toUpperCase()}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Nt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Nt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Nt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=Yi(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&kg.test(e)?e.replace(Mo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Z,O=p[0],b=w||q(h),E=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,M=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(E),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Pe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=qv,Z.prototype.reverse=Gv,Z.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Ni._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){oe(this,"_eventFuncID",{id:"__reload__"});oe(this,"_url");oe(this,"_method");oe(this,"_vars");oe(this,"_locals");oe(this,"_loadPortalBody",!1);oe(this,"_form",{});oe(this,"_popstate");oe(this,"_pushState");oe(this,"_location");oe(this,"_updateRootTemplate");oe(this,"_buildPushStateResult");oe(this,"_beforeFetch");oe(this,"parent");oe(this,"lodash",Eg);oe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);oe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};oe(Ht,"instance",null);let wi=Ht;class Wg{constructor(u){oe(this,"globalProgressBar");this.globalProgressBar=u}start(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.show=!0,this.globalProgressBar.value=20)}async end(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.value=80,await To(100),this.globalProgressBar.value=100,await To(150),this.globalProgressBar.value=0,this.globalProgressBar.show=!1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg(c.globalProgressBar);return Lg({onRequest(T,$,P){A.start($)},onResponse(T,$,P,D){A.end(P)}}),I.onMounted(()=>{a(r.initialTemplate),c.globalProgressBar.show=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:` +}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Nm(e){return Q(e).toLowerCase()}function Um(e){return Q(e).toUpperCase()}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Nt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Nt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Nt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var b,O=w;for(f.global||(f=Yi(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;b=f.exec(O);)var E=b.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&kg.test(e)?e.replace(Mo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=Ot(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Z,b=p[0],O=w||q(h),E=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};O&&n&&typeof b=="function"&&b.length!=1&&(w=O=!1);var R=this.__chain__,F=!!this.__actions__.length,M=l&&!R,K=w&&!F;if(!l&&O){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(E),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Pe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=qv,Z.prototype.reverse=Gv,Z.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=Ow,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=bw),s},sn=Av();qt?((qt.exports=sn)._=sn,Ni._=sn):be._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){oe(this,"_eventFuncID",{id:"__reload__"});oe(this,"_url");oe(this,"_method");oe(this,"_vars");oe(this,"_locals");oe(this,"_loadPortalBody",!1);oe(this,"_form",{});oe(this,"_popstate");oe(this,"_pushState");oe(this,"_location");oe(this,"_updateRootTemplate");oe(this,"_buildPushStateResult");oe(this,"_beforeFetch");oe(this,"parent");oe(this,"lodash",Eg);oe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);oe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};oe(Ht,"instance",null);let wi=Ht;class Wg{constructor(u){oe(this,"globalProgressBar");this.globalProgressBar=u}start(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.show=!0,this.globalProgressBar.value=20)}async end(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.value=80,await To(100),this.globalProgressBar.value=100,await To(150),this.globalProgressBar.value=0,this.globalProgressBar.show=!1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg(c.globalProgressBar);return Lg({onRequest(T,$,P){A.start($)},onResponse(T,$,P,D){A.end(P)}}),I.onMounted(()=>{a(r.initialTemplate),c.globalProgressBar.show=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:`
diff --git a/corejs/src/app.ts b/corejs/src/app.ts index d8a6c51..14d0469 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -105,7 +105,7 @@ export const Root = defineComponent({ From a1da2dadbd233ef491896704e0a198aff3d55026 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Aug 2024 13:08:34 +0800 Subject: [PATCH 17/21] feat: improve the Scalability of progressBarCtrl.ts and move progress dom to back-end --- corejs/dist/index.js | 47 ++++++--------- corejs/src/app.ts | 28 ++++----- corejs/src/progressBarCtrl.ts | 109 +++++++++++++++++++++++++++------- 3 files changed, 119 insertions(+), 65 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index b999371..1d8f0ef 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,9 +1,9 @@ -var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):I[Te]=Qt;var oe=(I,Te,Qt)=>CA(I,typeof Te!="symbol"?Te+"":Te,Qt);(function(I,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(I=typeof globalThis<"u"?globalThis:I||self,Te(I.Vue))})(this,function(I){"use strict";/*! +var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):I[Te]=Qt;var ee=(I,Te,Qt)=>CA(I,typeof Te!="symbol"?Te+"":Te,Qt);(function(I,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(I=typeof globalThis<"u"?globalThis:I||self,Te(I.Vue))})(this,function(I){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ds=/^on(\w+?)((?:Once|Capture|Passive)*)$/,gs=/[OCP]/g;function _s(r){return r?Qt()?r.includes("Capture"):r.replace(gs,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>N=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(N,z,T))&&(r.stop&&N.stopPropagation(),r.prevent&&N.preventDefault(),z(N))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,bs=As||Ss||Function("return this")(),yn=bs,Os=yn,xs=function(){return Os.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ns=qu.hasOwnProperty,Us=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ms(r){var u=Ns.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Us.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Ms,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",Ys="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Zs(r){return r==null?r===void 0?Ys:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var Vr=Zs;function js(r){return r!=null&&typeof r=="object"}var Yn=js,Xs=Vr,Qs=Yn,Vs="[object Symbol]";function ks(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==Vs}var el=ks,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,kr=Es,Yu=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=Yu(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(Yu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function N(k){var ne=a,xe=c;return a=c=void 0,$=k,v=r.apply(xe,ne),v}function le(k){return $=k,A=setTimeout(Pe,u),P?N(k):v}function Ke(k){var ne=k-T,xe=k-$,vt=u-ne;return D?hl(vt,d-xe):vt}function ge(k){var ne=k-T,xe=k-$;return T===void 0||ne>=u||ne<0||D&&xe>=d}function Pe(){var k=kr();if(ge(k))return _t(k);A=setTimeout(Pe,Ke(k))}function _t(k){return A=void 0,z&&a?N(k):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(kr())}function ye(){var k=kr(),ne=ge(k);if(a=arguments,c=this,T=k,ne){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),N(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Zu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Zu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,N)=>{D({locals:z,form:A,oldLocals:N,oldForm:A})}),I.watch(A,(z,N)=>{D({locals:d,form:z,oldLocals:d,oldForm:N})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var ne=function(g,m){for(var x=0;x(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>M=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,Os=As||Ss||Function("return this")(),yn=Os,bs=yn,xs=function(){return bs.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ms=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ms.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Us,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?js:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var kr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var jn=Zs,Xs=kr,Qs=jn,ks="[object Symbol]";function Vs(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==ks}var el=Vs,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,Vr=Es,ju=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=ju(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(ju(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(V){var re=a,xe=c;return a=c=void 0,$=V,v=r.apply(xe,re),v}function le(V){return $=V,A=setTimeout(Pe,u),P?M(V):v}function Ke(V){var re=V-T,xe=V-$,vt=u-re;return D?hl(vt,d-xe):vt}function ge(V){var re=V-T,xe=V-$;return T===void 0||re>=u||re<0||D&&xe>=d}function Pe(){var V=Vr();if(ge(V))return _t(V);A=setTimeout(Pe,Ke(V))}function _t(V){return A=void 0,z&&a?M(V):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(Vr())}function ye(){var V=Vr(),re=ge(V);if(a=arguments,c=this,T=V,re){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),M(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Yu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Yu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),I.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var re=function(g,m){for(var x=0;xr==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function bl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function ku(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},ku(u.arrayFormatSeparator);const i=bl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=Vu(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},ku(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=Vu(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function Yl(r){return r}var ho=Yl;function Zl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var jl=Zl,Xl=jl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,Yc=Hc,Zc=Jc,jc=Zc(Yc),Xc=jc,Qc=ho,Vc=Vl,kc=Xc;function eh(r,u){return kc(Vc(r,u,Qc),r+"")}var wo=eh,th=Zn,nh=th(Object,"create"),jn=nh,yo=jn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=jn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=jn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=jn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,bh=oh,Oh=hh,xh=vh,Eh=Ah;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Yh=Jh,Zh=Rh,jh=Mh,Xh=Hh,Qh=zh,Vh=Yh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,bd=go,Od=Sd;function xd(r){return r!=null&&Od(r.length)&&!bd(r)}var Ed=xd,Id=Ed,Td=Yn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Nd=Kn(Dd);function Ud(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Yd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Nd(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function kn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return kn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return kn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Mt(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Mt(r,u,i.value):!1;default:return Mt(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Mt(r,u,i.value);if(i==null)return Mt(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){kn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):kn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},je.prototype[Symbol.iterator]=function(){return this.entries()},je.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Ol(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Vu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function bl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Vu(u.arrayFormatSeparator);const i=Ol(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=ku(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Vu(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=ku(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=bl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function jl(r){return r}var ho=jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,Xl=Zl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,jc=Hc,Yc=Jc,Zc=Yc(jc),Xc=Zc,Qc=ho,kc=kl,Vc=Xc;function eh(r,u){return Vc(kc(r,u,Qc),r+"")}var wo=eh,th=Yn,nh=th(Object,"create"),Zn=nh,yo=Zn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=Zn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=Zn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=Zn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,Oh=oh,bh=hh,xh=vh,Eh=Ah;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var jh=Jh,Yh=Rh,Zh=Uh,Xh=Hh,Qh=zh,kh=jh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,Od=go,bd=Sd;function xd(r){return r!=null&&bd(r.length)&&!Od(r)}var Ed=xd,Id=Ed,Td=jn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Md=Kn(Dd);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=jd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Md(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):Vn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var lg=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),cg=Object.prototype.hasOwnProperty;function ai(r,u){return cg.call(r,u)}function si(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Ro(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&($[N]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray($)){if(N==="-")N=$.length;else{if(i&&!li(N))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(N)&&(N=~~N)}if(P>=D){if(i&&u.op==="add"&&N>$.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=pg[u.op].call(u,$,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(P>=D){var v=tn[u.op].call(u,$,N,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if($=$[N],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Po([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Po(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Me(u),Me(r),i||!0);else{i=i||nr;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Ro(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&($[M]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray($)){if(M==="-")M=$.length;else{if(i&&!li(M))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(M)&&(M=~~M)}if(P>=D){if(i&&u.op==="add"&&M>$.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=pg[u.op].call(u,$,M,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(P>=D){var v=tn[u.op].call(u,$,M,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if($=$[M],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Po([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Po(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Ue(u),Ue(r),i||!0);else{i=i||nr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Me(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Me(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ue(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ue(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,N=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,k=64,ne=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,bn=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,Ye=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",ne],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",k],["rearg",xe]],W="[object Arguments]",re="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",On="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",No="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Uo="[object Promise]",Yg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Zg="[object Undefined]",Tn="[object WeakMap]",jg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",bi="[object Int16Array]",Oi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,Vg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,kg=RegExp(Mo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",b_="\\ufe20-\\ufe2f",O_="\\u20d0-\\u20ff",qo=S_+b_+O_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",Yo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Zo="["+Yo+"]",cr="["+qo+"]",jo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+Yo+jo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Vo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",ko="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+ko+"(?:"+[Vo,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,N_="(?:"+[C_,Fi,$i].join("|")+")"+of,U_="(?:"+[Vo+cr+"?",cr,Fi,$i,R_].join("|")+")",M_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+U_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Zo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Zo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,jo,N_].join("|"),"g"),H_=RegExp("["+ko+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ie={};ie[mi]=ie[Ai]=ie[Si]=ie[bi]=ie[Oi]=ie[xi]=ie[Ei]=ie[Ii]=ie[Ti]=!0,ie[W]=ie[re]=ie[Rn]=ie[Se]=ie[rn]=ie[On]=ie[or]=ie[fr]=ie[rt]=ie[xn]=ie[yt]=ie[En]=ie[it]=ie[In]=ie[Tn]=!1;var te={};te[W]=te[re]=te[Rn]=te[rn]=te[Se]=te[On]=te[mi]=te[Ai]=te[Si]=te[bi]=te[Oi]=te[rt]=te[xn]=te[yt]=te[En]=te[it]=te[In]=te[ar]=te[xi]=te[Ei]=te[Ii]=te[Ti]=!0,te[or]=te[fr]=te[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},Y_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Z_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},j_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,be=ff||Q_||Function("return this")(),Ni=u&&!u.nodeType&&u,qt=Ni&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Ni,Ui=af&&ff.process,Ze=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ui&&Ui.binding&&Ui.binding("util")}catch{}}(),sf=Ze&&Ze.isArrayBuffer,lf=Ze&&Ze.isDate,cf=Ze&&Ze.isMap,hf=Ze&&Ze.isRegExp,pf=Ze&&Ze.isSet,df=Ze&&Ze.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function V_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Mi(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Z_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function bf(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=Vv,mt.prototype.has=kv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function Ve(e,t,n,o,f,l){var h,p=t&D,w=t&z,b=t&N;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var O=q(e);if(O){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==No;if(Ut(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:Oa(e),!p)return w?Y0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!te[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),ka(e)?e.forEach(function(B){h.add(Ve(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,Y){h.set(Y,Ve(B,t,n,Y,e,l))});var M=b?w?wu:vu:w?Ne:me,K=O?i:M(e);return je(K||e,function(B,Y){K&&(Y=B,B=e[Y]),Nn(h,Y,Ve(B,t,n,Y,e,l))}),h}function v0(e){var t=me(e);return function(n){return Nf(n,e,t)}}function Nf(e,t,n){var o=n.length;if(e==null)return!o;for(e=ee(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Uf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Un(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],b=t.length;if(!p)return w;n&&(t=ue(t,We(n))),o?(l=Mi,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?Oe(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var ki=ca(),Wf=ca(!0);function ct(e,t){return e&&ki(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function Yt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&V.call(e,t)}function A0(e,t){return e!=null&&t in ee(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&O.length>=120)?new Kt(h&&O):i}O=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(Or((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ue),e+"")}function N0(e){return $f(wn(e))}function U0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var b=t?null:Q0(e);if(b)return dr(b);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:ke(e,t,n)}var ia=Tv||function(e){return be.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?ee(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,b=qe(t);if(!p&&!b&&!l&&e>t||l&&h&&w&&!p&&!b||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!b&&e=p)return w;var b=n[o];return w*(b=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,b=ve(l-h,0),O=y(w+b),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=ee(t);++o-1?f[l?t[h]:h]:i}}function da(e){return Ot(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&j.reverse(),O&&wp))return!1;var b=l.get(e),O=l.get(t);if(b&&O)return b==t&&O==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,M=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,V=64,re=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,je=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",re],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",V],["rearg",xe]],W="[object Arguments]",ie="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",Mo="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",No="[object Promise]",jg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Yg="[object Undefined]",Tn="[object WeakMap]",Zg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,Vg=RegExp(Uo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",qo=S_+O_+b_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",jo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Yo="["+jo+"]",cr="["+qo+"]",Zo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+jo+Zo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",ko="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",Vo="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+Vo+"(?:"+[ko,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,M_="(?:"+[C_,Fi,$i].join("|")+")"+of,N_="(?:"+[ko+cr+"?",cr,Fi,$i,R_].join("|")+")",U_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+N_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Yo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Yo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,Zo,M_].join("|"),"g"),H_=RegExp("["+Vo+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ue={};ue[mi]=ue[Ai]=ue[Si]=ue[Oi]=ue[bi]=ue[xi]=ue[Ei]=ue[Ii]=ue[Ti]=!0,ue[W]=ue[ie]=ue[Rn]=ue[Se]=ue[rn]=ue[bn]=ue[or]=ue[fr]=ue[rt]=ue[xn]=ue[yt]=ue[En]=ue[it]=ue[In]=ue[Tn]=!1;var ne={};ne[W]=ne[ie]=ne[Rn]=ne[rn]=ne[Se]=ne[bn]=ne[mi]=ne[Ai]=ne[Si]=ne[Oi]=ne[bi]=ne[rt]=ne[xn]=ne[yt]=ne[En]=ne[it]=ne[In]=ne[ar]=ne[xi]=ne[Ei]=ne[Ii]=ne[Ti]=!0,ne[or]=ne[fr]=ne[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},j_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Y_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Z_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ff||Q_||Function("return this")(),Mi=u&&!u.nodeType&&u,qt=Mi&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Mi,Ni=af&&ff.process,Ye=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ni&&Ni.binding&&Ni.binding("util")}catch{}}(),sf=Ye&&Ye.isArrayBuffer,lf=Ye&&Ye.isDate,cf=Ye&&Ye.isMap,hf=Ye&&Ye.isRegExp,pf=Ye&&Ye.isSet,df=Ye&&Ye.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function k_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Ui(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Y_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Of(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=kv,mt.prototype.has=Vv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function ke(e,t,n,o,f,l){var h,p=t&D,w=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==Mo;if(Nt(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:ba(e),!p)return w?j0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!ne[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Va(e)?e.forEach(function(B){h.add(ke(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,j){h.set(j,ke(B,t,n,j,e,l))});var U=O?w?wu:vu:w?Me:me,K=b?i:U(e);return Ze(K||e,function(B,j){K&&(j=B,B=e[j]),Mn(h,j,ke(B,t,n,j,e,l))}),h}function v0(e){var t=me(e);return function(n){return Mf(n,e,t)}}function Mf(e,t,n){var o=n.length;if(e==null)return!o;for(e=te(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Nn(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],O=t.length;if(!p)return w;n&&(t=oe(t,We(n))),o?(l=Ui,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Vi=ca(),Wf=ca(!0);function ct(e,t){return e&&Vi(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function jt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&k.call(e,t)}function A0(e,t){return e!=null&&t in te(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ne),e+"")}function M0(e){return $f(wn(e))}function N0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:Ve(e,t,n)}var ia=Tv||function(e){return Oe.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?te(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&w&&!p&&!O||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!O&&e=p)return w;var O=n[o];return w*(O=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,O=ve(l-h,0),b=y(w+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=te(t);++o-1?f[l?t[h]:h]:i}}function da(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&Z.reverse(),b&&wp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ /* [wrapped with `+t+`] */ -`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=Ot(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return Vi(l,e)};return t>1||this.__actions__.length||!(o instanceof Z)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function bw(){return this}function Ow(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Z){var t=e;return this.__actions__.length&&(t=new Z(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){V.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,U(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return Oe(zr(e,t),1)}function Fw(e,t){return Oe(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),Oe(zr(e,t),n)}function Ha(e,t){var n=q(e)?je:Ft;return n(e,U(t,3))}function qa(e,t){var n=q(e)?k_:Mf;return n(e,U(t,3))}var Dw=Dr(function(e,t,n){V.call(e,n)?e[n].push(t):St(e,n,[t])});function Nw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),jr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Uw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Mn(h,t,n)}),l}),Mw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?ue:Kf;return n(e,U(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),jf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,U(t,4),n,f,Mf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,Yr(U(t,3)))}function zw(e){var t=q(e)?$f:N0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:U0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function Yw(e){if(e==null)return 0;if(De(e))return jr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Zw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,U(t,3))}var jw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),jf(e,Oe(t,1),[])}),Kr=Rv||function(){return be.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,bt(e,ne,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return bt(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return bt(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=bt(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function Ya(e,t,n){t=n?i:t;var o=bt(e,st,i,i,i,i,i,t);return o.placeholder=Ya.placeholder,o}function Za(e,t,n){var o,f,l,h,p,w,b=0,O=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(O=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,b=he,h=e.apply(Tt,at),h}function M(he){return b=he,p=Gn(Y,t),O?F(he):h}function K(he){var at=he-w,Tt=he-b,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-b;return w===i||at>=t||at<0||E&&Tt>=l}function Y(){var he=Kr();if(B(he))return j(he);p=Gn(Y,K(he))}function j(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),b=0,o=w=f=p=i}function Le(){return p===i?h:j(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return M(w);if(E)return ia(p),p=Gn(Y,t),F(w)}return p===i&&(p=Gn(Y,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Uf(e,1,t)}),Vw=J(function(e,t,n){return Uf(e,tt(t)||0,n)});function kw(e){return bt(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function Yr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?ue(t[0],We(U())):ue(Oe(t,1),We(U()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&V.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):O0;function De(e){return e!=null&&Zr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Ut=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Ut(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(V.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function by(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==No||t==Fe||t==Yg}function Xa(e){return typeof e=="number"&&e==G(e)}function Zr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function Oy(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Va(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Va(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=V.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var ka=pf?We(pf):R0;function jr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==jg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return jr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*Ye}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Ne(e))}function Ny(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Uy=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)V.call(t,n)&&Nn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Ne(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Ne(t),e,o)}),My=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=Ot(Vi);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=ee(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=Ve(n,D|z|N,V0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,Yr(U(t)))}var om=Ot(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=ue(wu(e),function(o){return[o]});return t=U(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+j_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),bm=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Om=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Mr(xr(f),n)+e+Mr(Or(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Nt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,b=0,O=t.interpolate||sr,E="__p += '",R=Yi((t.escape||sr).source+"|"+O.source+"|"+(O===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(V.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` -`;e.replace(R,function(B,Y,j,Ge,Le,ze){return j||(j=Ge),E+=e.slice(b,ze).replace(A_,lv),Y&&(p=!0,E+=`' + -__e(`+Y+`) + +`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return ki(l,e)};return t>1||this.__actions__.length||!(o instanceof Y)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){k.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,N(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Ha(e,t){var n=q(e)?Ze:Ft;return n(e,N(t,3))}function qa(e,t){var n=q(e)?V_:Uf;return n(e,N(t,3))}var Dw=Dr(function(e,t,n){k.call(e,n)?e[n].push(t):St(e,n,[t])});function Mw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Zr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Nw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Uw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?oe:Kf;return n(e,N(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,N(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,N(t,4),n,f,Uf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,jr(N(t,3)))}function zw(e){var t=q(e)?$f:M0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:N0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function jw(e){if(e==null)return 0;if(De(e))return Zr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Yw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Zw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,re,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return Ot(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,w,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function U(he){return O=he,p=Gn(j,t),b?F(he):h}function K(he){var at=he-w,Tt=he-O,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-O;return w===i||at>=t||at<0||E&&Tt>=l}function j(){var he=Kr();if(B(he))return Z(he);p=Gn(j,K(he))}function Z(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),O=0,o=w=f=p=i}function Le(){return p===i?h:Z(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return U(w);if(E)return ia(p),p=Gn(j,t),F(w)}return p===i&&(p=Gn(j,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Nf(e,1,t)}),kw=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Vw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function jr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?oe(t[0],We(N())):oe(be(t,1),We(N()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&k.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):b0;function De(e){return e!=null&&Yr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Nt=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==Mo||t==Fe||t==jg}function Xa(e){return typeof e=="number"&&e==G(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return ka(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function ka(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var Va=pf?We(pf):R0;function Zr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==Zg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return Zr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*je}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Me(e))}function My(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Ny=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)k.call(t,n)&&Mn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Me(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Me(t),e,o)}),Uy=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(ki);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=te(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=ke(n,D|z|M,k0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,jr(N(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=oe(wu(e),function(o){return[o]});return t=N(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+Z_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Ur(xr(f),n)+e+Ur(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,O=0,b=t.interpolate||sr,E="__p += '",R=ji((t.escape||sr).source+"|"+b.source+"|"+(b===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(k.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` +`;e.replace(R,function(B,j,Z,Ge,Le,ze){return Z||(Z=Ge),E+=e.slice(O,ze).replace(A_,lv),j&&(p=!0,E+=`' + +__e(`+j+`) + '`),Le&&(w=!0,E+=`'; `+Le+`; -__p += '`),j&&(E+=`' + -((__t = (`+j+`)) == null ? '' : __t) + -'`),b=ze+B.length,B}),E+=`'; -`;var M=V.call(t,"variable")&&t.variable;if(!M)E=`with (obj) { +__p += '`),Z&&(E+=`' + +((__t = (`+Z+`)) == null ? '' : __t) + +'`),O=ze+B.length,B}),E+=`'; +`;var U=k.call(t,"variable")&&t.variable;if(!U)E=`with (obj) { `+E+` } -`;else if(h_.test(M))throw new H(A);E=(w?E.replace(Xg,""):E).replace(Qg,"$1").replace(Vg,"$1;"),E="function("+(M||"obj")+`) { -`+(M?"":`obj || (obj = {}); +`;else if(h_.test(U))throw new H(A);E=(w?E.replace(Xg,""):E).replace(Qg,"$1").replace(kg,"$1;"),E="function("+(U||"obj")+`) { +`+(U?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Nm(e){return Q(e).toLowerCase()}function Um(e){return Q(e).toUpperCase()}function Mm(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Nt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Nt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Nt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Nt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var b,O=w;for(f.global||(f=Yi(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;b=f.exec(O);)var E=b.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&kg.test(e)?e.replace(Mo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=Ot(function(e,t){return je(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=U();return e=t?ue(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=U(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Z(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Z.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Z.prototype.toArray=function(){return this.take(g)},ct(Z.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Z,b=p[0],O=w||q(h),E=function(Y){var j=f.apply(s,Ct([Y],p));return o&&R?j[0]:j};O&&n&&typeof b=="function"&&b.length!=1&&(w=O=!1);var R=this.__chain__,F=!!this.__actions__.length,M=l&&!R,K=w&&!F;if(!l&&O){h=K?h:new Z(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return M&&K?e.apply(this,p):(B=this.thru(E),M?o?B.value()[0]:B.value():B)})}),je(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Z.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";V.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Nr(i,Pe).name]=[{name:"wrapper",func:i}],Z.prototype.clone=qv,Z.prototype.reverse=Gv,Z.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=Ow,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=bw),s},sn=Av();qt?((qt.exports=sn)._=sn,Ni._=sn):be._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){oe(this,"_eventFuncID",{id:"__reload__"});oe(this,"_url");oe(this,"_method");oe(this,"_vars");oe(this,"_locals");oe(this,"_loadPortalBody",!1);oe(this,"_form",{});oe(this,"_popstate");oe(this,"_pushState");oe(this,"_location");oe(this,"_updateRootTemplate");oe(this,"_buildPushStateResult");oe(this,"_beforeFetch");oe(this,"parent");oe(this,"lodash",Eg);oe(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);oe(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Og.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Zu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};oe(Ht,"instance",null);let wi=Ht;class Wg{constructor(u){oe(this,"globalProgressBar");this.globalProgressBar=u}start(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.show=!0,this.globalProgressBar.value=20)}async end(u){typeof u=="string"&&u.indexOf("__execute_event__=__reload__")!==-1&&(this.globalProgressBar.value=80,await To(100),this.globalProgressBar.value=100,await To(150),this.globalProgressBar.value=0,this.globalProgressBar.show=!1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg(c.globalProgressBar);return Lg({onRequest(T,$,P){A.start($)},onResponse(T,$,P,D){A.end(P)}}),I.onMounted(()=>{a(r.initialTemplate),c.globalProgressBar.show=!1,window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:` -
- - -
- `}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Ng),r.directive("before-unmount",Ug),r.directive("on-unmounted",Mg),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); +}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 14d0469..9887e7b 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -67,21 +67,28 @@ export const Root = defineComponent({ provide('vars', vars) const isFetching = ref(false) provide('isFetching', isFetching) - const progressBarCtl = new progressBarController(vars.globalProgressBar) + const progressBarCtl = new progressBarController({ + progressBarObj: vars.globalProgressBar, + fetchParamMatchList: ['__execute_event__=__reload__'] + }) + // for the first load + progressBarCtl.start() initFetchInterceptor({ onRequest(id, resource, config) { - progressBarCtl.start(resource) + // for the ajax load + progressBarCtl.start({ resource }) }, onResponse(id, response, resource, config) { - progressBarCtl.end(resource) + progressBarCtl.end({ resource }) } }) onMounted(() => { updateRootTemplate(props.initialTemplate) - vars.globalProgressBar.show = false + // for the first load + progressBarCtl.end() window.addEventListener('fetchStart', () => { isFetching.value = true @@ -100,18 +107,7 @@ export const Root = defineComponent({ } }, - template: ` -
- - -
- ` + template: `` }) export const plaidPlugin = { diff --git a/corejs/src/progressBarCtrl.ts b/corejs/src/progressBarCtrl.ts index 050b454..235f7ec 100644 --- a/corejs/src/progressBarCtrl.ts +++ b/corejs/src/progressBarCtrl.ts @@ -1,43 +1,112 @@ import { sleep } from './utils' -interface Payload { +interface progressBarPayload { show: boolean value: number color: string height: number } +interface payload { + progressBarObj: progressBarPayload + fetchParamMatchList: string[] +} + +interface ctrlPayload { + resource?: RequestInfo | URL +} + export default class GlobalProgressBarControl { - globalProgressBar: Payload + private progressBarObj: progressBarPayload + private fetchParamMatchList: string[] + private maxStackCount: number + private curStackCount: number + private defaultProgress: number + + constructor({ progressBarObj, fetchParamMatchList }: payload) { + this.progressBarObj = progressBarObj + // this.fetchParamMatchList = ['*'] // match all request + this.fetchParamMatchList = fetchParamMatchList + this.maxStackCount = 0 + this.curStackCount = 0 + this.defaultProgress = 20 + } + + /** + * increment the progress (denominator) with each call + * */ + public start({ resource }: ctrlPayload = {}) { + if (!this.isMatchedKeyword(resource)) return + this.maxStackCount++ + this.curStackCount++ - constructor(globalProgressBar: Payload) { - this.globalProgressBar = globalProgressBar + this.progressBarObj.show = true + this.progressBarObj.value = this.defaultProgress } - start(resource: RequestInfo | URL) { - if (typeof resource !== 'string') return + /** + * reduce the progress (denominator) with each call + * */ + public end({ resource }: ctrlPayload = {}) { + if (!this.isMatchedKeyword(resource)) return - if (resource.indexOf('__execute_event__=__reload__') === -1) return + if (this.curStackCount === 0) return - this.globalProgressBar.show = true - this.globalProgressBar.value = 20 + this.curStackCount-- + + this.increaseProgress() + } + + /** + * set the progress to 100% immediately (include animation effect) + */ + public complete() { + this.curStackCount = 0 + this.increaseProgress() } - async end(resource: RequestInfo | URL) { - if (typeof resource !== 'string') return + /** + * set the progress to 0% immediately (include animation effect) + */ + public reset() { + this.progressBarObj.value = 0 + this.curStackCount = 0 + this.maxStackCount = 0 + } - if (resource.indexOf('__execute_event__=__reload__') === -1) return + /** + * set hide progressBar and set all progress to 0 + */ + public hideAndReset() { + this.progressBarObj.show = false + this.reset() + } + + protected async increaseProgress() { + if (this.curStackCount > 0) { + this.progressBarObj.value = + Number((((this.maxStackCount - this.curStackCount) / this.maxStackCount) * 80).toFixed(2)) + + this.defaultProgress + } + // all loaded + else { + // this.progressBarObj.value = 80 + await sleep(100) + this.progressBarObj.value = 100 + await sleep(150) + this.progressBarObj.value = 0 + this.progressBarObj.show = false + this.maxStackCount = 0 + } + } - this.globalProgressBar.value = 80 + protected isMatchedKeyword(resource?: URL | RequestInfo): boolean { + if (resource === undefined) return true - await sleep(100) + if (typeof resource !== 'string') return false - this.globalProgressBar.value = 100 - await sleep(150) + if (this.fetchParamMatchList[0] === '*') return true - // nextTick(() => { - this.globalProgressBar.value = 0 - this.globalProgressBar.show = false - // }) + return this.fetchParamMatchList.some((keyword) => resource.indexOf(keyword) > -1) } } From a0b650063b445bd3a6533f6917c0d597d423a796 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Aug 2024 13:11:46 +0800 Subject: [PATCH 18/21] feat: code improvement (useless keyword) --- corejs/dist/index.js | 2 +- corejs/src/app.ts | 4 +--- corejs/src/progressBarCtrl.ts | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 1d8f0ef..43c2a19 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -46,4 +46,4 @@ __p += '`),Z&&(E+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0,color:"amber",height:2}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); +}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 9887e7b..2c3adf7 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -55,9 +55,7 @@ export const Root = defineComponent({ __history: HistoryManager.getInstance(), globalProgressBar: { show: true, - value: 0, - color: 'amber', - height: 2 + value: 0 } }) const _plaid = (): Builder => { diff --git a/corejs/src/progressBarCtrl.ts b/corejs/src/progressBarCtrl.ts index 235f7ec..505b90f 100644 --- a/corejs/src/progressBarCtrl.ts +++ b/corejs/src/progressBarCtrl.ts @@ -3,8 +3,6 @@ import { sleep } from './utils' interface progressBarPayload { show: boolean value: number - color: string - height: number } interface payload { From 8571a0a056eaaaa5d3f666c11cc042cc57d793cd Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Aug 2024 13:29:09 +0800 Subject: [PATCH 19/21] chore: remove useless code --- corejs/dist/index.js | 2 +- corejs/src/app.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 43c2a19..4d4c82e 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -46,4 +46,4 @@ __p += '`),Z&&(E+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u,vars:c}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); +}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); diff --git a/corejs/src/app.ts b/corejs/src/app.ts index 2c3adf7..b6e5a8e 100644 --- a/corejs/src/app.ts +++ b/corejs/src/app.ts @@ -100,8 +100,7 @@ export const Root = defineComponent({ }) return { - current, - vars + current } }, From 5751a48dde2fab8604c293f9877c6f25e9f72394 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 28 Aug 2024 14:48:08 +0800 Subject: [PATCH 20/21] perf: sync the progress bar increase with rendering in low speed network --- corejs/dist/index.js | 22 ++++++++++----------- corejs/src/fetchInterceptor.ts | 35 +++++++++++++++++++++------------- corejs/src/progressBarCtrl.ts | 2 -- 3 files changed, 33 insertions(+), 26 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 4d4c82e..9187d15 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -2,7 +2,7 @@ var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,co * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ds=/^on(\w+?)((?:Once|Capture|Passive)*)$/,gs=/[OCP]/g;function _s(r){return r?Qt()?r.includes("Capture"):r.replace(gs,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const vs=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],v=Array.isArray(d)?d:[d],A=c.match(ds);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,$]=A;T=T.toLowerCase();const P=v.map(z=>M=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=_s($);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,v,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(v,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ws(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=ws,ys=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ms=ys,As=ms,Ss=typeof self=="object"&&self&&self.Object===Object&&self,Os=As||Ss||Function("return this")(),yn=Os,bs=yn,xs=function(){return bs.Date.now()},Es=xs,Is=/\s/;function Ts(r){for(var u=r.length;u--&&Is.test(r.charAt(u)););return u}var Rs=Ts,Cs=Rs,Ls=/^\s+/;function Ps(r){return r&&r.slice(0,Cs(r)+1).replace(Ls,"")}var Fs=Ps,$s=yn,Ds=$s.Symbol,Qr=Ds,Hu=Qr,qu=Object.prototype,Ms=qu.hasOwnProperty,Ns=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Us(r){var u=Ms.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ns.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Bs=Us,Ws=Object.prototype,Hs=Ws.toString;function qs(r){return Hs.call(r)}var Gs=qs,Gu=Qr,zs=Bs,Ks=Gs,Js="[object Null]",js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function Ys(r){return r==null?r===void 0?js:Js:zu&&zu in Object(r)?zs(r):Ks(r)}var kr=Ys;function Zs(r){return r!=null&&typeof r=="object"}var jn=Zs,Xs=kr,Qs=jn,ks="[object Symbol]";function Vs(r){return typeof r=="symbol"||Qs(r)&&Xs(r)==ks}var el=Vs,tl=Fs,Ku=Jn,nl=el,Ju=NaN,rl=/^[-+]0x[0-9a-f]+$/i,il=/^0b[01]+$/i,ul=/^0o[0-7]+$/i,ol=parseInt;function fl(r){if(typeof r=="number")return r;if(nl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=tl(r);var i=il.test(r);return i||ul.test(r)?ol(r.slice(2),i?2:8):rl.test(r)?Ju:+r}var al=fl,sl=Jn,Vr=Es,ju=al,ll="Expected a function",cl=Math.max,hl=Math.min;function pl(r,u,i){var a,c,d,v,A,T,$=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(ll);u=ju(u)||0,sl(i)&&(P=!!i.leading,D="maxWait"in i,d=D?cl(ju(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(V){var re=a,xe=c;return a=c=void 0,$=V,v=r.apply(xe,re),v}function le(V){return $=V,A=setTimeout(Pe,u),P?M(V):v}function Ke(V){var re=V-T,xe=V-$,vt=u-re;return D?hl(vt,d-xe):vt}function ge(V){var re=V-T,xe=V-$;return T===void 0||re>=u||re<0||D&&xe>=d}function Pe(){var V=Vr();if(ge(V))return _t(V);A=setTimeout(Pe,Ke(V))}function _t(V){return A=void 0,z&&a?M(V):(a=c=void 0,v)}function we(){A!==void 0&&clearTimeout(A),$=0,a=T=c=A=void 0}function st(){return A===void 0?v:_t(Vr())}function ye(){var V=Vr(),re=ge(V);if(a=arguments,c=this,T=V,re){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),M(T)}return A===void 0&&(A=setTimeout(Pe,u)),v}return ye.cancel=we,ye.flush=st,ye}var dl=pl;const Yu=Kn(dl),gl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let v=i.formInit;Array.isArray(v)&&(v=Object.assign({},...v));const A=I.reactive({...v}),T=I.inject("vars"),$=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Yu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),I.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref($),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var re=function(g,m){for(var x=0;x(i[a]=!0,i),{}):void 0}const _s=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],w=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,F]=A;T=T.toLowerCase();const P=w.map(z=>M=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=gs(F);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,w,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(w,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ws=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ys=ws,ms=ys,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),yn=Ss,Os=yn,bs=function(){return Os.Date.now()},xs=bs,Es=/\s/;function Is(r){for(var u=r.length;u--&&Es.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Ps=Ls,Fs=yn,$s=Fs.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ms=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ns(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ms.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Us=Ns,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Us,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function js(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var kr=js;function Ys(r){return r!=null&&typeof r=="object"}var jn=Ys,Zs=kr,Xs=jn,Qs="[object Symbol]";function ks(r){return typeof r=="symbol"||Xs(r)&&Zs(r)==Qs}var Vs=ks,el=Ps,Ku=Jn,tl=Vs,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,Vr=xs,ju=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,w,A,T,F=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=ju(u)||0,al(i)&&(P=!!i.leading,D="maxWait"in i,d=D?ll(ju(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(V){var re=a,xe=c;return a=c=void 0,F=V,w=r.apply(xe,re),w}function le(V){return F=V,A=setTimeout(Pe,u),P?M(V):w}function Ke(V){var re=V-T,xe=V-F,vt=u-re;return D?cl(vt,d-xe):vt}function ge(V){var re=V-T,xe=V-F;return T===void 0||re>=u||re<0||D&&xe>=d}function Pe(){var V=Vr();if(ge(V))return _t(V);A=setTimeout(Pe,Ke(V))}function _t(V){return A=void 0,z&&a?M(V):(a=c=void 0,w)}function we(){A!==void 0&&clearTimeout(A),F=0,a=T=c=A=void 0}function st(){return A===void 0?w:_t(Vr())}function ye(){var V=Vr(),re=ge(V);if(a=arguments,c=this,T=V,re){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),M(T)}return A===void 0&&(A=setTimeout(Pe,u)),w}return ye.cancel=we,ye.flush=st,ye}var pl=hl;const Yu=Kn(pl),dl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let w=i.formInit;Array.isArray(w)&&(w=Object.assign({},...w));const A=I.reactive({...w}),T=I.inject("vars"),F=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Yu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),I.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref(F),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var re=function(g,m){for(var x=0;xr==null,Al=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Sl(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Ol(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),v=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=v?dt(a,r):a;const A=d||v?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const v=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=v;return}c[i]=[...c[i],...v]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Vu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Al(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function bl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Vu(u.arrayFormatSeparator);const i=Ol(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[v,A]=ku(d,"=");v===void 0&&(v=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(v,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[v,A]of Object.entries(d))d[v]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const v=a[d];return c[d]=v&&typeof v=="object"&&!Array.isArray(v)?eo(v):v,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Vu(u.arrayFormatSeparator);const i=v=>u.skipNull&&ml(r[v])||u.skipEmptyString&&r[v]==="",a=Sl(u),c={};for(const[v,A]of Object.entries(r))i(v)||(c[v]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(v=>{const A=r[v];return A===void 0?"":A===null?pe(v,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(v,u)+"[]":A.reduce(a(v),[]).join("&"):pe(v,u)+"="+pe(A,u)}).filter(v=>v.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=ku(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let v=bl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,v=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${v}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:yl(c,u),fragmentIdentifier:d},i)}function xl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:xl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function El(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):zl(c,A):a||(c[c.length]=A)}return c}var Jl=co;function jl(r){return r}var ho=jl;function Yl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Zl=Yl,Xl=Zl,po=Math.max;function Ql(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),v=Array(d);++c0){if(++u>=qc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Jc=Kc,jc=Hc,Yc=Jc,Zc=Yc(jc),Xc=Zc,Qc=ho,kc=kl,Vc=Xc;function eh(r,u){return Vc(kc(r,u,Qc),r+"")}var wo=eh,th=Yn,nh=th(Object,"create"),Zn=nh,yo=Zn;function rh(){this.__data__=yo?yo(null):{},this.size=0}var ih=rh;function uh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var oh=uh,fh=Zn,ah="__lodash_hash_undefined__",sh=Object.prototype,lh=sh.hasOwnProperty;function ch(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return lh.call(u,r)?u[r]:void 0}var hh=ch,ph=Zn,dh=Object.prototype,gh=dh.hasOwnProperty;function _h(r){var u=this.__data__;return ph?u[r]!==void 0:gh.call(u,r)}var vh=_h,wh=Zn,yh="__lodash_hash_undefined__";function mh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?yh:u,this}var Ah=mh,Sh=ih,Oh=oh,bh=hh,xh=vh,Eh=Ah;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var zh=Gh,Kh=Xn;function Jh(r,u){var i=this.__data__,a=Kh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var jh=Jh,Yh=Rh,Zh=Uh,Xh=Hh,Qh=zh,kh=jh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Xp;function Qp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=vd){var $=u?null:gd(r);if($)return _d($);v=!1,c=dd,T=new cd}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=md}var Sd=Ad,Od=go,bd=Sd;function xd(r){return r!=null&&bd(r.length)&&!Od(r)}var Ed=xd,Id=Ed,Td=jn;function Rd(r){return Td(r)&&Id(r)}var Eo=Rd,Cd=Jl,Ld=wo,Pd=yd,Fd=Eo,$d=Ld(function(r){return Pd(Cd(r,1,Fd,!0))}),Dd=$d;const Md=Kn(Dd);function Nd(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=jd&&(d=Jd,v=!1,u=new Hd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,$)}`}}function rg(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Md(c,a);return}if(i.remove){const d=tg(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],v=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,v):Vn(u,v,d)}),u}function ig(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(v=>{const A=encodeURIComponent(d[v]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(v=>typeof v=="object"&&!Array.isArray(v)?i(v):encodeURIComponent(v)).join(","),c=[];return u.forEach(d=>{const v=r[d.json_name];if(v===void 0)return;if(d.encoder){d.encoder({value:v,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!v&&d.omitempty))if(v===null)c.push(`${A}=`);else if(Array.isArray(v)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof v=="object"?c.push(`${A}=${i(v)}`):c.push(`${A}=${encodeURIComponent(v)}`)}),c.join("&")}function ug(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(v=>{d[v]=(d[v]||0)+1});for(const v of c){if(!d[v]||d[v]===0)return!1;d[v]--}}return!0}function og(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ug(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function To(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},v=I.useSlots(),A=()=>{if(v.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then($=>{$&&d($.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,$)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const v=a[d],A=d.slice(2);c[A]=v,i.on(A,v)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,v)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var v;const c=I.getCurrentInstance(),d=(v=c==null?void 0:c.proxy)==null?void 0:v.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},je.prototype[Symbol.iterator]=function(){return this.entries()},je.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),w=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=w?dt(a,r):a;const A=d||w?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const w=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=w;return}c[i]=[...c[i],...w]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Vu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Vu(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[w,A]=ku(d,"=");w===void 0&&(w=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(w,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[w,A]of Object.entries(d))d[w]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const w=a[d];return c[d]=w&&typeof w=="object"&&!Array.isArray(w)?eo(w):w,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Vu(u.arrayFormatSeparator);const i=w=>u.skipNull&&yl(r[w])||u.skipEmptyString&&r[w]==="",a=Al(u),c={};for(const[w,A]of Object.entries(r))i(w)||(c[w]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(w=>{const A=r[w];return A===void 0?"":A===null?pe(w,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(w,u)+"[]":A.reduce(a(w),[]).join("&"):pe(w,u)+"="+pe(A,u)}).filter(w=>w.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=ku(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let w=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,w=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${w}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:wl(c,u),fragmentIdentifier:d},i)}function bl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:bl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function xl(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function jl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Yl=jl,Zl=Yl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),w=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,jc=Kc,Yc=jc(Jc),Zc=Yc,Xc=ho,Qc=Ql,kc=Zc;function Vc(r,u){return kc(Qc(r,u,Xc),r+"")}var wo=Vc,eh=Yn,th=eh(Object,"create"),Zn=th,yo=Zn;function nh(){this.__data__=yo?yo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=Zn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=Zn,ph=Object.prototype,dh=ph.hasOwnProperty;function gh(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var _h=gh,vh=Zn,wh="__lodash_hash_undefined__";function yh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?wh:u,this}var mh=yh,Ah=rh,Sh=uh,Oh=ch,bh=_h,xh=mh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,jh=Th,Yh=Nh,Zh=Wh,Xh=Gh,Qh=Jh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Zp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=_d){var F=u?null:dd(r);if(F)return gd(F);w=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=yd}var Ad=md,Sd=go,Od=Ad;function bd(r){return r!=null&&Od(r.length)&&!Sd(r)}var xd=bd,Ed=xd,Id=jn;function Td(r){return Id(r)&&Ed(r)}var Eo=Td,Rd=Kl,Cd=wo,Ld=wd,Pd=Eo,Fd=Cd(function(r){return Ld(Rd(r,1,Pd,!0))}),$d=Fd;const Dd=Kn($d);function Md(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,w=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,F)}`}}function ng(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=eg(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],w=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,w):Vn(u,w,d)}),u}function rg(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(w=>{const A=encodeURIComponent(d[w]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(w=>typeof w=="object"&&!Array.isArray(w)?i(w):encodeURIComponent(w)).join(","),c=[];return u.forEach(d=>{const w=r[d.json_name];if(w===void 0)return;if(d.encoder){d.encoder({value:w,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!w&&d.omitempty))if(w===null)c.push(`${A}=`);else if(Array.isArray(w)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof w=="object"?c.push(`${A}=${i(w)}`):c.push(`${A}=${encodeURIComponent(w)}`)}),c.join("&")}function ig(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(w=>{d[w]=(d[w]||0)+1});for(const w of c){if(!d[w]||d[w]===0)return!1;d[w]--}}return!0}function ug(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ig(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function og(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},w=I.useSlots(),A=()=>{if(w.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(F=>{F&&d(F.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,F)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const w=a[d],A=d.slice(2);c[A]=w,i.on(A,w)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,w)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var w;const c=I.getCurrentInstance(),d=(w=c==null?void 0:c.proxy)==null?void 0:w.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var lg=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),cg=Object.prototype.hasOwnProperty;function ai(r,u){return cg.call(r,u)}function si(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Ro(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&($[M]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray($)){if(M==="-")M=$.length;else{if(i&&!li(M))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(M)&&(M=~~M)}if(P>=D){if(i&&u.op==="add"&&M>$.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var v=pg[u.op].call(u,$,M,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}}else if(P>=D){var v=tn[u.op].call(u,$,M,r);if(v.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return v}if($=$[M],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var v={op:"_get",path:r.from,value:void 0},A=Po([v],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Po(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Ue(u),Ue(r),i||!0);else{i=i||nr;for(var a=0;a=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(F[M]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray(F)){if(M==="-")M=F.length;else{if(i&&!li(M))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(M)&&(M=~~M)}if(P>=D){if(i&&u.op==="add"&&M>F.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var w=pg[u.op].call(u,F,M,r);if(w.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return w}}else if(P>=D){var w=tn[u.op].call(u,F,M,r);if(w.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return w}if(F=F[M],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var w={op:"_get",path:r.from,value:void 0},A=Lo([w],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Ue(u),Ue(r),i||!0);else{i=i||nr;for(var a=0;a0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),v=si(r),A=!1,T=v.length-1;T>=0;T--){var $=v[T],P=r[$];if(ai(u,$)&&!(u[$]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[$];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt($),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ue(P)}),i.push({op:"replace",path:a+"/"+Bt($),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt($),value:Ue(P)}),i.push({op:"remove",path:a+"/"+Bt($)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==v.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),w=si(r),A=!1,T=w.length-1;T>=0;T--){var F=w[T],P=r[F];if(ai(u,F)&&!(u[F]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[F];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt(F),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(F),value:Ue(P)}),i.push({op:"replace",path:a+"/"+Bt(F),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(F),value:Ue(P)}),i.push({op:"remove",path:a+"/"+Bt(F)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==w.length))for(var T=0;T * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",$=500,P="__lodash_placeholder__",D=1,z=2,M=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,V=64,re=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,je=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",re],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",V],["rearg",xe]],W="[object Arguments]",ie="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",Mo="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",No="[object Promise]",jg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Yg="[object Undefined]",Tn="[object WeakMap]",Zg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Uo=/&(?:amp|lt|gt|quot|#39);/g,Bo=/[&<>"']/g,Vg=RegExp(Uo.source),e_=RegExp(Bo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Wo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ho=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",qo=S_+O_+b_,Go="\\u2700-\\u27bf",zo="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",Jo="\\ufe0e\\ufe0f",jo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",Yo="["+jo+"]",cr="["+qo+"]",Zo="\\d+",C_="["+Go+"]",Xo="["+zo+"]",Qo="[^"+lr+jo+Zo+Go+zo+Ko+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",ko="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+Ko+"]",Vo="\\u200d",ef="(?:"+Xo+"|"+Qo+")",P_="(?:"+un+"|"+Qo+")",tf="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",nf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",rf=L_+"?",uf="["+Jo+"]?",F_="(?:"+Vo+"(?:"+[ko,Fi,$i].join("|")+")"+uf+rf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",of=uf+rf+F_,M_="(?:"+[C_,Fi,$i].join("|")+")"+of,N_="(?:"+[ko+cr+"?",cr,Fi,$i,R_].join("|")+")",U_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+N_+of,"g"),W_=RegExp([un+"?"+Xo+"+"+tf+"(?="+[Yo,un,"$"].join("|")+")",P_+"+"+nf+"(?="+[Yo,un+ef,"$"].join("|")+")",un+"?"+ef+"+"+tf,un+"+"+nf,D_,$_,Zo,M_].join("|"),"g"),H_=RegExp("["+Vo+lr+qo+Jo+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ue={};ue[mi]=ue[Ai]=ue[Si]=ue[Oi]=ue[bi]=ue[xi]=ue[Ei]=ue[Ii]=ue[Ti]=!0,ue[W]=ue[ie]=ue[Rn]=ue[Se]=ue[rn]=ue[bn]=ue[or]=ue[fr]=ue[rt]=ue[xn]=ue[yt]=ue[En]=ue[it]=ue[In]=ue[Tn]=!1;var ne={};ne[W]=ne[ie]=ne[Rn]=ne[rn]=ne[Se]=ne[bn]=ne[mi]=ne[Ai]=ne[Si]=ne[Oi]=ne[bi]=ne[rt]=ne[xn]=ne[yt]=ne[En]=ne[it]=ne[In]=ne[ar]=ne[xi]=ne[Ei]=ne[Ii]=ne[Ti]=!0,ne[or]=ne[fr]=ne[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},j_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Y_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Z_=parseFloat,X_=parseInt,ff=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ff||Q_||Function("return this")(),Mi=u&&!u.nodeType&&u,qt=Mi&&!0&&r&&!r.nodeType&&r,af=qt&&qt.exports===Mi,Ni=af&&ff.process,Ye=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ni&&Ni.binding&&Ni.binding("util")}catch{}}(),sf=Ye&&Ye.isArrayBuffer,lf=Ye&&Ye.isDate,cf=Ye&&Ye.isMap,hf=Ye&&Ye.isRegExp,pf=Ye&&Ye.isSet,df=Ye&&Ye.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function k_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Ui(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Sf(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Y_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Of(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=kv,mt.prototype.has=Vv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function ke(e,t,n,o,f,l){var h,p=t&D,w=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==Mo;if(Nt(e))return ua(e,p);if(E==yt||E==W||R&&!f){if(h=w||R?{}:ba(e),!p)return w?j0(e,_0(h,e)):J0(e,Df(h,e))}else{if(!ne[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var F=l.get(e);if(F)return F;l.set(e,h),Va(e)?e.forEach(function(B){h.add(ke(B,t,n,B,e,l))}):Qa(e)&&e.forEach(function(B,j){h.set(j,ke(B,t,n,j,e,l))});var U=O?w?wu:vu:w?Me:me,K=b?i:U(e);return Ze(K||e,function(B,j){K&&(j=B,B=e[j]),Mn(h,j,ke(B,t,n,j,e,l))}),h}function v0(e){var t=me(e);return function(n){return Mf(n,e,t)}}function Mf(e,t,n){var o=n.length;if(e==null)return!o;for(e=te(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Nf(e,t,n){if(typeof e!="function")throw new Xe(v);return Gn(function(){e.apply(i,n)},t)}function Nn(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,w=[],O=t.length;if(!p)return w;n&&(t=oe(t,We(n))),o?(l=Ui,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:ts(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Vi=ca(),Wf=ca(!0);function ct(e,t){return e&&Vi(e,t,me)}function eu(e,t){return e&&Wf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function jt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&k.call(e,t)}function A0(e,t){return e!=null&&t in te(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,w,1),Sr.call(e,w,1);return e}function Qf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Lf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ia(e,t,Ne),e+"")}function M0(e){return $f(wn(e))}function N0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,w=new Kt}else w=t?[]:p;e:for(;++o=o?e:Ve(e,t,n)}var ia=Tv||function(e){return Oe.clearTimeout(e)};function ua(e,t){if(t)return e.slice();var n=e.length,o=Ef?Ef(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Ho.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?te(Dn.call(e)):{}}function oa(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function fa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,w=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&w&&!p&&!O||o&&h&&w||!n&&w||!f)return 1;if(!o&&!l&&!O&&e=p)return w;var O=n[o];return w*(O=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,w=t.length,O=ve(l-h,0),b=y(w+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=te(t);++o-1?f[l?t[h]:h]:i}}function da(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(v);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&Z.reverse(),b&&wp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,F=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ + */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",F=500,P="__lodash_placeholder__",D=1,z=2,M=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,V=64,re=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,je=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",re],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",V],["rearg",xe]],W="[object Arguments]",ie="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Mo="[object Promise]",jg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Yg="[object Undefined]",Tn="[object WeakMap]",Zg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,No=/&(?:amp|lt|gt|quot|#39);/g,Uo=/[&<>"']/g,Vg=RegExp(No.source),e_=RegExp(Uo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",Ho=S_+O_+b_,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",jo="["+Jo+"]",cr="["+Ho+"]",Yo="\\d+",C_="["+qo+"]",Zo="["+Go+"]",Xo="[^"+lr+Jo+Yo+qo+Go+zo+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Qo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",ko="\\u200d",Vo="(?:"+Zo+"|"+Xo+")",P_="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=L_+"?",rf="["+Ko+"]?",F_="(?:"+ko+"(?:"+[Qo,Fi,$i].join("|")+")"+rf+nf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+F_,M_="(?:"+[C_,Fi,$i].join("|")+")"+uf,N_="(?:"+[Qo+cr+"?",cr,Fi,$i,R_].join("|")+")",U_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+N_+uf,"g"),W_=RegExp([un+"?"+Zo+"+"+ef+"(?="+[jo,un,"$"].join("|")+")",P_+"+"+tf+"(?="+[jo,un+Vo,"$"].join("|")+")",un+"?"+Vo+"+"+ef,un+"+"+tf,D_,$_,Yo,M_].join("|"),"g"),H_=RegExp("["+ko+lr+Ho+Ko+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ue={};ue[mi]=ue[Ai]=ue[Si]=ue[Oi]=ue[bi]=ue[xi]=ue[Ei]=ue[Ii]=ue[Ti]=!0,ue[W]=ue[ie]=ue[Rn]=ue[Se]=ue[rn]=ue[bn]=ue[or]=ue[fr]=ue[rt]=ue[xn]=ue[yt]=ue[En]=ue[it]=ue[In]=ue[Tn]=!1;var ne={};ne[W]=ne[ie]=ne[Rn]=ne[rn]=ne[Se]=ne[bn]=ne[mi]=ne[Ai]=ne[Si]=ne[Oi]=ne[bi]=ne[rt]=ne[xn]=ne[yt]=ne[En]=ne[it]=ne[In]=ne[ar]=ne[xi]=ne[Ei]=ne[Ii]=ne[Ti]=!0,ne[or]=ne[fr]=ne[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},j_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Y_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Z_=parseFloat,X_=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||Q_||Function("return this")(),Mi=u&&!u.nodeType&&u,qt=Mi&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Mi,Ni=ff&&of.process,Ye=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ni&&Ni.binding&&Ni.binding("util")}catch{}}(),af=Ye&&Ye.isArrayBuffer,sf=Ye&&Ye.isDate,lf=Ye&&Ye.isMap,cf=Ye&&Ye.isRegExp,hf=Ye&&Ye.isSet,pf=Ye&&Ye.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function k_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Ui(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Af(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Y_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Sf(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=kv,mt.prototype.has=Vv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function ke(e,t,n,o,f,l){var h,p=t&D,v=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==Do;if(Nt(e))return ia(e,p);if(E==yt||E==W||R&&!f){if(h=v||R?{}:Oa(e),!p)return v?j0(e,_0(h,e)):J0(e,$f(h,e))}else{if(!ne[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),ka(e)?e.forEach(function(B){h.add(ke(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,j){h.set(j,ke(B,t,n,j,e,l))});var U=O?v?wu:vu:v?Me:me,K=b?i:U(e);return Ze(K||e,function(B,j){K&&(j=B,B=e[j]),Mn(h,j,ke(B,t,n,j,e,l))}),h}function v0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=te(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Mf(e,t,n){if(typeof e!="function")throw new Xe(w);return Gn(function(){e.apply(i,n)},t)}function Nn(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,v=[],O=t.length;if(!p)return v;n&&(t=oe(t,We(n))),o?(l=Ui,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Vi=la(),Bf=la(!0);function ct(e,t){return e&&Vi(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function jt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&k.call(e,t)}function A0(e,t){return e!=null&&t in te(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,v,1),Sr.call(e,v,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Cf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ea(e,t,Ne),e+"")}function M0(e){return Ff(wn(e))}function N0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,v=new Kt}else v=t?[]:p;e:for(;++o=o?e:Ve(e,t,n)}var ra=Tv||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=xf?xf(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?te(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,v=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&v&&!p&&!O||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!O&&e=p)return v;var O=n[o];return v*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,O=ve(l-h,0),b=y(v+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=te(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(w);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&Z.reverse(),b&&vp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ /* [wrapped with `+t+`] */ -`)}function f1(e){return q(e)||Xt(e)||!!(Rf&&e&&e[Rf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ba(e,n)});function Wa(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return ki(l,e)};return t>1||this.__actions__.length||!(o instanceof Y)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Wa(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Fa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return na(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){k.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?gf:w0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function Rw(e,t){var n=q(e)?Rt:Bf;return n(e,N(t,3))}var Cw=pa($a),Lw=pa(Da);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Ha(e,t){var n=q(e)?Ze:Ft;return n(e,N(t,3))}function qa(e,t){var n=q(e)?V_:Uf;return n(e,N(t,3))}var Dw=Dr(function(e,t,n){k.call(e,n)?e[n].push(t):St(e,n,[t])});function Mw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Zr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Nw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Uw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?oe:Kf;return n(e,N(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:yf,f=arguments.length<3;return o(e,N(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:yf,f=arguments.length<3;return o(e,N(t,4),n,f,Uf)}function Gw(e,t){var n=q(e)?Rt:Bf;return n(e,jr(N(t,3)))}function zw(e){var t=q(e)?$f:M0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:N0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function jw(e){if(e==null)return 0;if(De(e))return Zr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Yw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Zw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(v);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ga(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,re,i,i,i,i,t)}function za(e,t){var n;if(typeof t!="function")throw new Xe(v);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),Ka=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(Ka));o|=ye}return Ot(t,o,e,n,f)});function Ja(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=ja.placeholder,o}function Ya(e,t,n){var o,f,l,h,p,w,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(v);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function F(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function U(he){return O=he,p=Gn(j,t),b?F(he):h}function K(he){var at=he-w,Tt=he-O,ps=t-at;return E?Ee(ps,l-Tt):ps}function B(he){var at=he-w,Tt=he-O;return w===i||at>=t||at<0||E&&Tt>=l}function j(){var he=Kr();if(B(he))return Z(he);p=Gn(j,K(he))}function Z(he){return p=i,R&&o?F(he):(o=f=i,h)}function Ge(){p!==i&&ia(p),O=0,o=w=f=p=i}function Le(){return p===i?h:Z(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,w=he,at){if(p===i)return U(w);if(E)return ia(p),p=Gn(j,t),F(w)}return p===i&&(p=Gn(j,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Nf(e,1,t)}),kw=J(function(e,t,n){return Nf(e,tt(t)||0,n)});function Vw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(v);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function jr(e){if(typeof e!="function")throw new Xe(v);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return za(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?oe(t[0],We(N())):oe(be(t,1),We(N()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=qf(function(){return arguments}())?qf:function(e){return se(e)&&k.call(e,"callee")&&!Tf.call(e,"callee")},q=y.isArray,_y=sf?We(sf):b0;function De(e){return e!=null&&Yr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Nt=Lv||Wu,wy=lf?We(lf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Cf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==Mo||t==Fe||t==jg}function Xa(e){return typeof e=="number"&&e==G(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Qa=cf?We(cf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return ka(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return Gf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function ka(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=hf?We(hf):T0;function Cy(e){return Xa(e)&&e>=-Je&&e<=Je}var Va=pf?We(pf):R0;function Zr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=df?We(df):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==Zg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function es(e){if(!e)return[];if(De(e))return Zr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*je}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function ts(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ns(e){return ht(e,Me(e))}function My(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Ny=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)k.call(t,n)&&Mn(e,n,t[n])}),rs=dn(function(e,t){ht(t,Me(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Me(t),e,o)}),Uy=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(ki);function Wy(e,t){var n=pn(e);return t==null?n:Df(n,t)}var Hy=J(function(e,t){e=te(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=ke(n,D|z|M,k0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return us(e,jr(N(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function us(e,t){if(e==null)return{};var n=oe(wu(e),function(o){return[o]});return t=N(t),Xf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Lf();return Ee(e+f*(t-e+Z_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?as(t):t)});function as(e){return $u(Q(e).toLowerCase())}function ss(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Bo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ha("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Ur(xr(f),n)+e+Ur(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,ya);var f=Xr({},t.imports,o.imports,ya),l=me(f),h=Ki(f,l),p,w,O=0,b=t.interpolate||sr,E="__p += '",R=ji((t.escape||sr).source+"|"+b.source+"|"+(b===Wo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),F="//# sourceURL="+(k.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` +`)}function f1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ua(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return ki(l,e)};return t>1||this.__actions__.length||!(o instanceof Y)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Ba(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Pa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return ta(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){k.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?df:w0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function Rw(e,t){var n=q(e)?Rt:Uf;return n(e,N(t,3))}var Cw=ha(Fa),Lw=ha($a);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Wa(e,t){var n=q(e)?Ze:Ft;return n(e,N(t,3))}function Ha(e,t){var n=q(e)?V_:Nf;return n(e,N(t,3))}var Dw=Dr(function(e,t,n){k.call(e,n)?e[n].push(t):St(e,n,[t])});function Mw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Zr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Nw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Uw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?oe:zf;return n(e,N(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Yf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:wf,f=arguments.length<3;return o(e,N(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:wf,f=arguments.length<3;return o(e,N(t,4),n,f,Nf)}function Gw(e,t){var n=q(e)?Rt:Uf;return n(e,jr(N(t,3)))}function zw(e){var t=q(e)?Ff:M0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:N0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function jw(e){if(e==null)return 0;if(De(e))return Zr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Yw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Zw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Yf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(w);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,re,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(w);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(za));o|=ye}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function ja(e,t,n){var o,f,l,h,p,v,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(w);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function U(he){return O=he,p=Gn(j,t),b?$(he):h}function K(he){var at=he-v,Tt=he-O,hs=t-at;return E?Ee(hs,l-Tt):hs}function B(he){var at=he-v,Tt=he-O;return v===i||at>=t||at<0||E&&Tt>=l}function j(){var he=Kr();if(B(he))return Z(he);p=Gn(j,K(he))}function Z(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=v=f=p=i}function Le(){return p===i?h:Z(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,v=he,at){if(p===i)return U(v);if(E)return ra(p),p=Gn(j,t),$(v)}return p===i&&(p=Gn(j,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Mf(e,1,t)}),kw=J(function(e,t,n){return Mf(e,tt(t)||0,n)});function Vw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(w);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function jr(e){if(typeof e!="function")throw new Xe(w);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return Ga(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?oe(t[0],We(N())):oe(be(t,1),We(N()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return se(e)&&k.call(e,"callee")&&!If.call(e,"callee")},q=y.isArray,_y=af?We(af):b0;function De(e){return e!=null&&Yr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Nt=Lv||Wu,wy=sf?We(sf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Rf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Fe||t==jg}function Za(e){return typeof e=="number"&&e==G(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Qa(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return qf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Qa(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=cf?We(cf):T0;function Cy(e){return Za(e)&&e>=-Je&&e<=Je}var ka=hf?We(hf):R0;function Zr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=pf?We(pf):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==Zg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function Va(e){if(!e)return[];if(De(e))return Zr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*je}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ts(e){return ht(e,Me(e))}function My(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Ny=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)k.call(t,n)&&Mn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Me(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Me(t),e,o)}),Uy=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(ki);function Wy(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Hy=J(function(e,t){e=te(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=ke(n,D|z|M,k0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return is(e,jr(N(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function is(e,t){if(e==null)return{};var n=oe(wu(e),function(o){return[o]});return t=N(t),Zf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return Ee(e+f*(t-e+Z_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Uo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ca("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Ur(xr(f),n)+e+Ur(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,wa);var f=Xr({},t.imports,o.imports,wa),l=me(f),h=Ki(f,l),p,v,O=0,b=t.interpolate||sr,E="__p += '",R=ji((t.escape||sr).source+"|"+b.source+"|"+(b===Bo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(k.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` `;e.replace(R,function(B,j,Z,Ge,Le,ze){return Z||(Z=Ge),E+=e.slice(O,ze).replace(A_,lv),j&&(p=!0,E+=`' + __e(`+j+`) + -'`),Le&&(w=!0,E+=`'; +'`),Le&&(v=!0,E+=`'; `+Le+`; __p += '`),Z&&(E+=`' + ((__t = (`+Z+`)) == null ? '' : __t) + @@ -40,10 +40,10 @@ __p += '`),Z&&(E+=`' + `;var U=k.call(t,"variable")&&t.variable;if(!U)E=`with (obj) { `+E+` } -`;else if(h_.test(U))throw new H(A);E=(w?E.replace(Xg,""):E).replace(Qg,"$1").replace(kg,"$1;"),E="function("+(U||"obj")+`) { +`;else if(h_.test(U))throw new H(A);E=(v?E.replace(Xg,""):E).replace(Qg,"$1").replace(kg,"$1;"),E="function("+(U||"obj")+`) { `+(U?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(w?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=cs(function(){return X(l,F+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return mf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=Af(o,f),h=Sf(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bf(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Sf(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var w=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return w+o;if(h&&(p+=w.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=w;for(f.global||(f=ji(f.source,Q(Ho.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;w=w.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=w.lastIndexOf(f);R>-1&&(w=w.slice(0,R))}return w+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(Uo,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ha("toUpperCase");function ls(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var cs=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(v);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,w=h instanceof Y,O=p[0],b=w||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(w=b=!1);var R=this.__chain__,F=!!this.__actions__.length,U=l&&!R,K=w&&!F;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=ng({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ig(u,i)}isRawQuerySubset(u,i,a){return og(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var $,P;let a=r;i.component&&(a=(P=($=i.component)==null?void 0:$.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",v=gt.parse(location.hash)[c];let A="";Array.isArray(v)?A=v[0]||"":A=v||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u),v=ir.get(c);if(r.onResponse&&v){const A=v.resource instanceof URL?v.resource.toString():v.resource;r.onResponse(c,d,A,v.config)}return ir.delete(c),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Fo={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(await To(100),this.progressBarObj.value=100,await To(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const v=I.ref(!1);I.provide("isFetching",v);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,$,P){A.start({resource:$})},onResponse(T,$,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{v.value=!0}),window.addEventListener("fetchEnd",()=>{v.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:''}),qg={install(r){r.component("GoPlaidScope",gl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",vs)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const $o=document.getElementById("app");if(!$o)throw new Error("#app required");const zg={},Do=Gg($o.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Do,zg);Do.mount("#app")}); +}`;var K=ls(function(){return X(l,$+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return yf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=v;for(f.global||(f=ji(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;v=v.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(No,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(w);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Y,O=p[0],b=v||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(v=b=!1);var R=this.__chain__,$=!!this.__actions__.length,U=l&&!R,K=v&&!$;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var F,P;let a=r;i.component&&(a=(P=(F=i.component)==null?void 0:F.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",w=gt.parse(location.hash)[c];let A="";Array.isArray(w)?A=w[0]||"":A=w||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u);return d.clone().json().then(()=>{const T=ir.get(c);if(r.onResponse&&T){const F=T.resource instanceof URL?T.resource.toString():T.resource;r.onResponse(c,d,F,T.config)}ir.delete(c)}),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Po={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(this.progressBarObj.value=100,await og(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const w=I.ref(!1);I.provide("isFetching",w);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,F,P){A.start({resource:F})},onResponse(T,F,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{w.value=!0}),window.addEventListener("fetchEnd",()=>{w.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:''}),qg={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",_s)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const Fo=document.getElementById("app");if(!Fo)throw new Error("#app required");const zg={},$o=Gg(Fo.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,zg);$o.mount("#app")}); diff --git a/corejs/src/fetchInterceptor.ts b/corejs/src/fetchInterceptor.ts index f0cba8a..5cf641b 100644 --- a/corejs/src/fetchInterceptor.ts +++ b/corejs/src/fetchInterceptor.ts @@ -35,22 +35,31 @@ export function initFetchInterceptor(customInterceptor: FetchInterceptor) { // Call the original fetch method to get the response const response = await originalFetch(...args) - // Find the corresponding request info during the response phase - const requestInfo = requestMap.get(requestId) + // Clone the response to preserve the original response for further use + const clonedResponse = response.clone() - // Execute the response phase callback if provided - if (customInterceptor.onResponse && requestInfo) { - // Ensure resource is of type RequestInfo before passing to onResponse - const resource = - requestInfo.resource instanceof URL - ? requestInfo.resource.toString() - : requestInfo.resource + // Start processing the response body without waiting + const processingPromise = clonedResponse.json() - customInterceptor.onResponse(requestId, response, resource, requestInfo.config) - } + processingPromise.then(() => { + const requestInfo = requestMap.get(requestId) - // After the request is completed, remove the request info from the Map - requestMap.delete(requestId) + if (customInterceptor.onResponse && requestInfo) { + const resource = + requestInfo.resource instanceof URL + ? requestInfo.resource.toString() + : requestInfo.resource + + customInterceptor.onResponse( + requestId, + response, // Pass the original response + resource, + requestInfo.config + ) + } + + requestMap.delete(requestId) + }) // Return the original response return response diff --git a/corejs/src/progressBarCtrl.ts b/corejs/src/progressBarCtrl.ts index 505b90f..ba444b9 100644 --- a/corejs/src/progressBarCtrl.ts +++ b/corejs/src/progressBarCtrl.ts @@ -88,8 +88,6 @@ export default class GlobalProgressBarControl { } // all loaded else { - // this.progressBarObj.value = 80 - await sleep(100) this.progressBarObj.value = 100 await sleep(150) this.progressBarObj.value = 0 From cf21cfa3b0d605a77f902604657a9dd6cf84c0bb Mon Sep 17 00:00:00 2001 From: molon <3739161+molon@users.noreply.github.com> Date: Thu, 29 Aug 2024 15:02:06 +0800 Subject: [PATCH 21/21] lifecycle: directives auto stop watch on unmounted --- corejs/dist/index.js | 24 ++--- corejs/src/__tests__/lifecycle.spec.ts | 131 +++++++++++++++++++++++-- corejs/src/lifecycle.ts | 90 +++++++++++++---- 3 files changed, 205 insertions(+), 40 deletions(-) diff --git a/corejs/dist/index.js b/corejs/dist/index.js index 9187d15..2dc351c 100644 --- a/corejs/dist/index.js +++ b/corejs/dist/index.js @@ -1,9 +1,9 @@ -var RA=Object.defineProperty;var CA=(I,Te,Qt)=>Te in I?RA(I,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):I[Te]=Qt;var ee=(I,Te,Qt)=>CA(I,typeof Te!="symbol"?Te+"":Te,Qt);(function(I,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(I=typeof globalThis<"u"?globalThis:I||self,Te(I.Vue))})(this,function(I){"use strict";/*! +var LA=Object.defineProperty;var FA=(T,Te,Qt)=>Te in T?LA(T,Te,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):T[Te]=Qt;var ee=(T,Te,Qt)=>FA(T,typeof Te!="symbol"?Te+"":Te,Qt);(function(T,Te){typeof exports=="object"&&typeof module<"u"?Te(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Te):(T=typeof globalThis<"u"?globalThis:T||self,Te(T.Vue))})(this,function(T){"use strict";/*! * vue-global-events v3.0.1 * (c) 2019-2023 Eduardo San Martin Morote, Damian Dulisz * Released under the MIT License. - */let Te;function Qt(){return Te??(Te=/msie|trident/.test(window.navigator.userAgent.toLowerCase()))}const ps=/^on(\w+?)((?:Once|Capture|Passive)*)$/,ds=/[OCP]/g;function gs(r){return r?Qt()?r.includes("Capture"):r.replace(ds,",$&").toLowerCase().slice(1).split(",").reduce((i,a)=>(i[a]=!0,i),{}):void 0}const _s=I.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const a=I.ref(!0);return I.onActivated(()=>{a.value=!0}),I.onDeactivated(()=>{a.value=!1}),I.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],w=Array.isArray(d)?d:[d],A=c.match(ps);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,T,F]=A;T=T.toLowerCase();const P=w.map(z=>M=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];a.value&&le.every(Ke=>Ke(M,z,T))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=gs(F);P.forEach(z=>{window[r.target].addEventListener(T,z,D)}),i[c]=[P,T,D]})}),I.onBeforeUnmount(()=>{for(const c in i){const[d,w,A]=i[c];d.forEach(T=>{window[r.target].removeEventListener(w,T,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Kn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vs(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Jn=vs,ws=typeof nt=="object"&&nt&&nt.Object===Object&&nt,ys=ws,ms=ys,As=typeof self=="object"&&self&&self.Object===Object&&self,Ss=ms||As||Function("return this")(),yn=Ss,Os=yn,bs=function(){return Os.Date.now()},xs=bs,Es=/\s/;function Is(r){for(var u=r.length;u--&&Es.test(r.charAt(u)););return u}var Ts=Is,Rs=Ts,Cs=/^\s+/;function Ls(r){return r&&r.slice(0,Rs(r)+1).replace(Cs,"")}var Ps=Ls,Fs=yn,$s=Fs.Symbol,Qr=$s,Hu=Qr,qu=Object.prototype,Ds=qu.hasOwnProperty,Ms=qu.toString,mn=Hu?Hu.toStringTag:void 0;function Ns(r){var u=Ds.call(r,mn),i=r[mn];try{r[mn]=void 0;var a=!0}catch{}var c=Ms.call(r);return a&&(u?r[mn]=i:delete r[mn]),c}var Us=Ns,Bs=Object.prototype,Ws=Bs.toString;function Hs(r){return Ws.call(r)}var qs=Hs,Gu=Qr,Gs=Us,zs=qs,Ks="[object Null]",Js="[object Undefined]",zu=Gu?Gu.toStringTag:void 0;function js(r){return r==null?r===void 0?Js:Ks:zu&&zu in Object(r)?Gs(r):zs(r)}var kr=js;function Ys(r){return r!=null&&typeof r=="object"}var jn=Ys,Zs=kr,Xs=jn,Qs="[object Symbol]";function ks(r){return typeof r=="symbol"||Xs(r)&&Zs(r)==Qs}var Vs=ks,el=Ps,Ku=Jn,tl=Vs,Ju=NaN,nl=/^[-+]0x[0-9a-f]+$/i,rl=/^0b[01]+$/i,il=/^0o[0-7]+$/i,ul=parseInt;function ol(r){if(typeof r=="number")return r;if(tl(r))return Ju;if(Ku(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=Ku(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=el(r);var i=rl.test(r);return i||il.test(r)?ul(r.slice(2),i?2:8):nl.test(r)?Ju:+r}var fl=ol,al=Jn,Vr=xs,ju=fl,sl="Expected a function",ll=Math.max,cl=Math.min;function hl(r,u,i){var a,c,d,w,A,T,F=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(sl);u=ju(u)||0,al(i)&&(P=!!i.leading,D="maxWait"in i,d=D?ll(ju(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(V){var re=a,xe=c;return a=c=void 0,F=V,w=r.apply(xe,re),w}function le(V){return F=V,A=setTimeout(Pe,u),P?M(V):w}function Ke(V){var re=V-T,xe=V-F,vt=u-re;return D?cl(vt,d-xe):vt}function ge(V){var re=V-T,xe=V-F;return T===void 0||re>=u||re<0||D&&xe>=d}function Pe(){var V=Vr();if(ge(V))return _t(V);A=setTimeout(Pe,Ke(V))}function _t(V){return A=void 0,z&&a?M(V):(a=c=void 0,w)}function we(){A!==void 0&&clearTimeout(A),F=0,a=T=c=A=void 0}function st(){return A===void 0?w:_t(Vr())}function ye(){var V=Vr(),re=ge(V);if(a=arguments,c=this,T=V,re){if(A===void 0)return le(T);if(D)return clearTimeout(A),A=setTimeout(Pe,u),M(T)}return A===void 0&&(A=setTimeout(Pe,u)),w}return ye.cancel=we,ye.flush=st,ye}var pl=hl;const Yu=Kn(pl),dl=I.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,a=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=I.reactive({...c});let w=i.formInit;Array.isArray(w)&&(w=Object.assign({},...w));const A=I.reactive({...w}),T=I.inject("vars"),F=I.inject("plaid");return I.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Yu(z=>{a("change-debounced",z)},P);console.log("watched"),I.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),I.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(P,D)=>I.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:I.unref(F),vars:I.unref(T)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var re=function(g,m){for(var x=0;x(i[f]=!0,i),{}):void 0}const ya=T.defineComponent({name:"GlobalEvents",props:{target:{type:String,default:"document"},filter:{type:[Function,Array],default:()=>()=>!0},stop:Boolean,prevent:Boolean},setup(r,{attrs:u}){let i=Object.create(null);const f=T.ref(!0);return T.onActivated(()=>{f.value=!0}),T.onDeactivated(()=>{f.value=!1}),T.onMounted(()=>{Object.keys(u).filter(c=>c.startsWith("on")).forEach(c=>{const d=u[c],y=Array.isArray(d)?d:[d],A=c.match(ga);if(!A){__DEV__&&console.warn(`[vue-global-events] Unable to parse "${c}". If this should work, you should probably open a new issue on https://github.com/shentao/vue-global-events.`);return}let[,I,F]=A;I=I.toLowerCase();const P=y.map(z=>M=>{const le=Array.isArray(r.filter)?r.filter:[r.filter];f.value&&le.every(Ke=>Ke(M,z,I))&&(r.stop&&M.stopPropagation(),r.prevent&&M.preventDefault(),z(M))}),D=va(F);P.forEach(z=>{window[r.target].addEventListener(I,z,D)}),i[c]=[P,I,D]})}),T.onBeforeUnmount(()=>{for(const c in i){const[d,y,A]=i[c];d.forEach(I=>{window[r.target].removeEventListener(y,I,A)})}i={}}),()=>null}});var nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function wa(r){var u=typeof r;return r!=null&&(u=="object"||u=="function")}var Yn=wa,ma=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Aa=ma,Sa=Aa,Oa=typeof self=="object"&&self&&self.Object===Object&&self,ba=Sa||Oa||Function("return this")(),An=ba,xa=An,Ea=function(){return xa.Date.now()},Ia=Ea,Ta=/\s/;function Ra(r){for(var u=r.length;u--&&Ta.test(r.charAt(u)););return u}var Ca=Ra,La=Ca,Fa=/^\s+/;function Pa(r){return r&&r.slice(0,La(r)+1).replace(Fa,"")}var $a=Pa,Da=An,Ma=Da.Symbol,Vr=Ma,Gu=Vr,zu=Object.prototype,Na=zu.hasOwnProperty,Ua=zu.toString,Sn=Gu?Gu.toStringTag:void 0;function Ba(r){var u=Na.call(r,Sn),i=r[Sn];try{r[Sn]=void 0;var f=!0}catch{}var c=Ua.call(r);return f&&(u?r[Sn]=i:delete r[Sn]),c}var Wa=Ba,Ha=Object.prototype,qa=Ha.toString;function Ga(r){return qa.call(r)}var za=Ga,Ku=Vr,Ka=Wa,Ja=za,ja="[object Null]",Ya="[object Undefined]",Ju=Ku?Ku.toStringTag:void 0;function Za(r){return r==null?r===void 0?Ya:ja:Ju&&Ju in Object(r)?Ka(r):Ja(r)}var ei=Za;function Xa(r){return r!=null&&typeof r=="object"}var Zn=Xa,Qa=ei,ka=Zn,Va="[object Symbol]";function el(r){return typeof r=="symbol"||ka(r)&&Qa(r)==Va}var tl=el,nl=$a,ju=Yn,rl=tl,Yu=NaN,il=/^[-+]0x[0-9a-f]+$/i,ul=/^0b[01]+$/i,ol=/^0o[0-7]+$/i,sl=parseInt;function fl(r){if(typeof r=="number")return r;if(rl(r))return Yu;if(ju(r)){var u=typeof r.valueOf=="function"?r.valueOf():r;r=ju(u)?u+"":u}if(typeof r!="string")return r===0?r:+r;r=nl(r);var i=ul.test(r);return i||ol.test(r)?sl(r.slice(2),i?2:8):il.test(r)?Yu:+r}var al=fl,ll=Yn,ti=Ia,Zu=al,cl="Expected a function",hl=Math.max,pl=Math.min;function dl(r,u,i){var f,c,d,y,A,I,F=0,P=!1,D=!1,z=!0;if(typeof r!="function")throw new TypeError(cl);u=Zu(u)||0,ll(i)&&(P=!!i.leading,D="maxWait"in i,d=D?hl(Zu(i.maxWait)||0,u):d,z="trailing"in i?!!i.trailing:z);function M(V){var re=f,xe=c;return f=c=void 0,F=V,y=r.apply(xe,re),y}function le(V){return F=V,A=setTimeout(Fe,u),P?M(V):y}function Ke(V){var re=V-I,xe=V-F,vt=u-re;return D?pl(vt,d-xe):vt}function ge(V){var re=V-I,xe=V-F;return I===void 0||re>=u||re<0||D&&xe>=d}function Fe(){var V=ti();if(ge(V))return _t(V);A=setTimeout(Fe,Ke(V))}function _t(V){return A=void 0,z&&f?M(V):(f=c=void 0,y)}function ye(){A!==void 0&&clearTimeout(A),F=0,f=I=c=A=void 0}function at(){return A===void 0?y:_t(ti())}function we(){var V=ti(),re=ge(V);if(f=arguments,c=this,I=V,re){if(A===void 0)return le(I);if(D)return clearTimeout(A),A=setTimeout(Fe,u),M(I)}return A===void 0&&(A=setTimeout(Fe,u)),y}return we.cancel=ye,we.flush=at,we}var gl=dl;const Xu=jn(gl),_l=T.defineComponent({__name:"go-plaid-scope",props:{init:{},formInit:{},useDebounce:{}},emits:["change-debounced"],setup(r,{emit:u}){const i=r,f=u;let c=i.init;Array.isArray(c)&&(c=Object.assign({},...c));const d=T.reactive({...c});let y=i.formInit;Array.isArray(y)&&(y=Object.assign({},...y));const A=T.reactive({...y}),I=T.inject("vars"),F=T.inject("plaid");return T.onMounted(()=>{setTimeout(()=>{if(i.useDebounce){const P=i.useDebounce,D=Xu(z=>{f("change-debounced",z)},P);console.log("watched"),T.watch(d,(z,M)=>{D({locals:z,form:A,oldLocals:M,oldForm:A})}),T.watch(A,(z,M)=>{D({locals:d,form:z,oldLocals:d,oldForm:M})})}},0)}),(P,D)=>T.renderSlot(P.$slots,"default",{locals:d,form:A,plaid:T.unref(F),vars:T.unref(I)})}});/*! formdata-polyfill. MIT License. Jimmy W?rting */(function(){var r;function u(g){var m=0;return function(){return m>>0)+"_",W=0;return m}),d("Symbol.iterator",function(g){if(g)return g;g=Symbol("Symbol.iterator");for(var m="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),x=0;x"u"||!FormData.prototype.keys)){var re=function(g,m){for(var x=0;xr==null,ml=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ti=Symbol("encodeFragmentIdentifier");function Al(r){switch(r.arrayFormat){case"index":return u=>(i,a)=>{const c=i.length;return a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(a,r)].join("")]};case"bracket":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(a,r)].join("")];case"colon-list-separator":return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(a,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(a,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?a:(c=c===null?"":c,a.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[a,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?i:a===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(a,r)].join("")]}}function Sl(r){let u;switch(r.arrayFormat){case"index":return(i,a,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=a;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=a};case"bracket":return(i,a,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"colon-list-separator":return(i,a,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=a;return}if(c[i]===void 0){c[i]=[a];return}c[i]=[...c[i],a]};case"comma":case"separator":return(i,a,c)=>{const d=typeof a=="string"&&a.includes(r.arrayFormatSeparator),w=typeof a=="string"&&!d&&dt(a,r).includes(r.arrayFormatSeparator);a=w?dt(a,r):a;const A=d||w?a.split(r.arrayFormatSeparator).map(T=>dt(T,r)):a===null?a:dt(a,r);c[i]=A};case"bracket-separator":return(i,a,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=a&&dt(a,r);return}const w=a===null?[]:a.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=w;return}c[i]=[...c[i],...w]};default:return(i,a,c)=>{if(c[i]===void 0){c[i]=a;return}c[i]=[...[c[i]].flat(),a]}}}function Vu(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?ml(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?vl(r):r}function eo(r){return Array.isArray(r)?r.sort():typeof r=="object"?eo(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function to(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function Ol(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function no(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ni(r){r=to(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ri(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},Vu(u.arrayFormatSeparator);const i=Sl(u),a=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return a;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[w,A]=ku(d,"=");w===void 0&&(w=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(w,u),A,a)}for(const[c,d]of Object.entries(a))if(typeof d=="object"&&d!==null)for(const[w,A]of Object.entries(d))d[w]=no(A,u);else a[c]=no(d,u);return u.sort===!1?a:(u.sort===!0?Object.keys(a).sort():Object.keys(a).sort(u.sort)).reduce((c,d)=>{const w=a[d];return c[d]=w&&typeof w=="object"&&!Array.isArray(w)?eo(w):w,c},Object.create(null))}function ro(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},Vu(u.arrayFormatSeparator);const i=w=>u.skipNull&&yl(r[w])||u.skipEmptyString&&r[w]==="",a=Al(u),c={};for(const[w,A]of Object.entries(r))i(w)||(c[w]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(w=>{const A=r[w];return A===void 0?"":A===null?pe(w,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(w,u)+"[]":A.reduce(a(w),[]).join("&"):pe(w,u)+"="+pe(A,u)}).filter(w=>w.length>0).join("&")}function io(r,u){var c;u={decode:!0,...u};let[i,a]=ku(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ri(ni(r),u),...u&&u.parseFragmentIdentifier&&a?{fragmentIdentifier:dt(a,u)}:{}}}function uo(r,u){u={encode:!0,strict:!0,[ti]:!0,...u};const i=to(r.url).split("?")[0]||"",a=ni(r.url),c={...ri(a,{sort:!1}),...r.query};let d=ro(c,u);d&&(d=`?${d}`);let w=Ol(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,w=u[ti]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${w}`}function oo(r,u,i){i={parseFragmentIdentifier:!0,[ti]:!1,...i};const{url:a,query:c,fragmentIdentifier:d}=io(r,i);return uo({url:a,query:wl(c,u),fragmentIdentifier:d},i)}function bl(r,u,i){const a=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return oo(r,a,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:bl,extract:ni,parse:ri,parseUrl:io,pick:oo,stringify:ro,stringifyUrl:uo},Symbol.toStringTag,{value:"Module"}));function xl(r,u){for(var i=-1,a=u.length,c=r.length;++i0&&i(A)?u>1?co(A,u-1,i,a,c):Gl(c,A):a||(c[c.length]=A)}return c}var Kl=co;function Jl(r){return r}var ho=Jl;function jl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Yl=jl,Zl=Yl,po=Math.max;function Xl(r,u,i){return u=po(u===void 0?r.length-1:u,0),function(){for(var a=arguments,c=-1,d=po(a.length-u,0),w=Array(d);++c0){if(++u>=Hc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var Kc=zc,Jc=Wc,jc=Kc,Yc=jc(Jc),Zc=Yc,Xc=ho,Qc=Ql,kc=Zc;function Vc(r,u){return kc(Qc(r,u,Xc),r+"")}var wo=Vc,eh=Yn,th=eh(Object,"create"),Zn=th,yo=Zn;function nh(){this.__data__=yo?yo(null):{},this.size=0}var rh=nh;function ih(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var uh=ih,oh=Zn,fh="__lodash_hash_undefined__",ah=Object.prototype,sh=ah.hasOwnProperty;function lh(r){var u=this.__data__;if(oh){var i=u[r];return i===fh?void 0:i}return sh.call(u,r)?u[r]:void 0}var ch=lh,hh=Zn,ph=Object.prototype,dh=ph.hasOwnProperty;function gh(r){var u=this.__data__;return hh?u[r]!==void 0:dh.call(u,r)}var _h=gh,vh=Zn,wh="__lodash_hash_undefined__";function yh(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=vh&&u===void 0?wh:u,this}var mh=yh,Ah=rh,Sh=uh,Oh=ch,bh=_h,xh=mh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Gh=qh,zh=Xn;function Kh(r,u){var i=this.__data__,a=zh(i,r);return a<0?(++this.size,i.push([r,u])):i[a][1]=u,this}var Jh=Kh,jh=Th,Yh=Nh,Zh=Wh,Xh=Gh,Qh=Jh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var So=Zp;function Xp(r,u,i){for(var a=-1,c=r==null?0:r.length;++a=_d){var F=u?null:dd(r);if(F)return gd(F);w=!1,c=pd,T=new ld}else T=u?[]:A;e:for(;++a-1&&r%1==0&&r<=yd}var Ad=md,Sd=go,Od=Ad;function bd(r){return r!=null&&Od(r.length)&&!Sd(r)}var xd=bd,Ed=xd,Id=jn;function Td(r){return Id(r)&&Ed(r)}var Eo=Td,Rd=Kl,Cd=wo,Ld=wd,Pd=Eo,Fd=Cd(function(r){return Ld(Rd(r,1,Pd,!0))}),$d=Fd;const Dd=Kn($d);function Md(r,u){for(var i=-1,a=r==null?0:r.length,c=Array(a);++i=Jd&&(d=Kd,w=!1,u=new Wd(u));e:for(;++c0&&(A=`?${A}`);let P=a.url+A;return a.fragmentIdentifier&&(P=P+"#"+a.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${a.url}?${gt.stringify(T,F)}`}}function ng(r,u,i){if(!i.value)return;let a=i.value;Array.isArray(i.value)||(a=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Dd(c,a);return}if(i.remove){const d=eg(c,...a);d.length===0?delete r[u]:r[u]=d}}function Vn(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return Vn(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return Vn(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let a=!1;if(r.has(u)&&(a=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(a.value.style.height=this.$el.style.height)})},template:r})}function Io(r,u,i=""){if(r==null)return;const a=Array.isArray(r);if(a&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){Vn(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],w=i?a?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Io(d,u,w):Vn(u,w,d)}),u}function rg(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(w=>{const A=encodeURIComponent(d[w]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),a=d=>d.map(w=>typeof w=="object"&&!Array.isArray(w)?i(w):encodeURIComponent(w)).join(","),c=[];return u.forEach(d=>{const w=r[d.json_name];if(w===void 0)return;if(d.encoder){d.encoder({value:w,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!w&&d.omitempty))if(w===null)c.push(`${A}=`);else if(Array.isArray(w)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${a(r[d.json_name])}`)}else typeof w=="object"?c.push(`${A}=${i(w)}`):c.push(`${A}=${encodeURIComponent(w)}`)}),c.join("&")}function ig(r,u){for(const i in u){if(r[i]===void 0)return!1;const a=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};a.forEach(w=>{d[w]=(d[w]||0)+1});for(const w of c){if(!d[w]||d[w]===0)return!1;d[w]--}}return!0}function ug(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const a=gt.parse(r,i),c=gt.parse(u,i);return ig(a,c)}function er(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function fi(){return Math.random().toString(36).slice(2,9)}function og(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const fg=I.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=I.ref(),i=r,a=I.shallowRef(null),c=I.ref(0),d=T=>{a.value=oi(T,i.form,i.locals,u)},w=I.useSlots(),A=()=>{if(w.default){a.value=oi('',i.locals,u);return}const T=i.loader;T&&T.loadPortalBody(!0).form(i.form).go().then(F=>{F&&d(F.body)})};return I.onMounted(()=>{const T=i.portalName;T&&(window.__goplaid.portals[T]={updatePortalTemplate:d,reload:A}),A()}),I.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const T=parseInt(i.autoReloadInterval+"");if(T==0)return;c.value=setInterval(()=>{A()},T)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),I.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(T,F)=>r.visible?(I.openBlock(),I.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[a.value?(I.openBlock(),I.createBlock(I.resolveDynamicComponent(a.value),{key:0},{default:I.withCtx(()=>[I.renderSlot(T.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):I.createCommentVNode("",!0)],512)):I.createCommentVNode("",!0)}}),ag=I.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=I.inject("vars").__emitter,a=I.useAttrs(),c={};return I.onMounted(()=>{Object.keys(a).forEach(d=>{if(d.startsWith("on")){const w=a[d],A=d.slice(2);c[A]=w,i.on(A,w)}})}),I.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,w)=>I.createCommentVNode("",!0)}}),sg=I.defineComponent({__name:"parent-size-observer",setup(r){const u=I.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let a=null;return I.onMounted(()=>{var w;const c=I.getCurrentInstance(),d=(w=c==null?void 0:c.proxy)==null?void 0:w.$el.parentElement;d&&(i(d),a=new ResizeObserver(()=>{i(d)}),a.observe(d))}),I.onBeforeUnmount(()=>{a&&a.disconnect()}),(c,d)=>I.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! +`)}),m.push("--"+g+"--"),new Blob(m,{type:"multipart/form-data; boundary="+g})},je.prototype[Symbol.iterator]=function(){return this.entries()},je.prototype.toString=function(){return"[object FormData]"},lt&&!lt.matches&&(lt.matches=lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector||function(g){g=(this.document||this.ownerDocument).querySelectorAll(g);for(var m=g.length;0<=--m&&g.item(m)!==this;);return-1r==null,Sl=r=>encodeURIComponent(r).replaceAll(/[!'()*]/g,u=>`%${u.charCodeAt(0).toString(16).toUpperCase()}`),ri=Symbol("encodeFragmentIdentifier");function Ol(r){switch(r.arrayFormat){case"index":return u=>(i,f)=>{const c=i.length;return f===void 0||r.skipNull&&f===null||r.skipEmptyString&&f===""?i:f===null?[...i,[pe(u,r),"[",c,"]"].join("")]:[...i,[pe(u,r),"[",pe(c,r),"]=",pe(f,r)].join("")]};case"bracket":return u=>(i,f)=>f===void 0||r.skipNull&&f===null||r.skipEmptyString&&f===""?i:f===null?[...i,[pe(u,r),"[]"].join("")]:[...i,[pe(u,r),"[]=",pe(f,r)].join("")];case"colon-list-separator":return u=>(i,f)=>f===void 0||r.skipNull&&f===null||r.skipEmptyString&&f===""?i:f===null?[...i,[pe(u,r),":list="].join("")]:[...i,[pe(u,r),":list=",pe(f,r)].join("")];case"comma":case"separator":case"bracket-separator":{const u=r.arrayFormat==="bracket-separator"?"[]=":"=";return i=>(f,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?f:(c=c===null?"":c,f.length===0?[[pe(i,r),u,pe(c,r)].join("")]:[[f,pe(c,r)].join(r.arrayFormatSeparator)])}default:return u=>(i,f)=>f===void 0||r.skipNull&&f===null||r.skipEmptyString&&f===""?i:f===null?[...i,pe(u,r)]:[...i,[pe(u,r),"=",pe(f,r)].join("")]}}function bl(r){let u;switch(r.arrayFormat){case"index":return(i,f,c)=>{if(u=/\[(\d*)]$/.exec(i),i=i.replace(/\[\d*]$/,""),!u){c[i]=f;return}c[i]===void 0&&(c[i]={}),c[i][u[1]]=f};case"bracket":return(i,f,c)=>{if(u=/(\[])$/.exec(i),i=i.replace(/\[]$/,""),!u){c[i]=f;return}if(c[i]===void 0){c[i]=[f];return}c[i]=[...c[i],f]};case"colon-list-separator":return(i,f,c)=>{if(u=/(:list)$/.exec(i),i=i.replace(/:list$/,""),!u){c[i]=f;return}if(c[i]===void 0){c[i]=[f];return}c[i]=[...c[i],f]};case"comma":case"separator":return(i,f,c)=>{const d=typeof f=="string"&&f.includes(r.arrayFormatSeparator),y=typeof f=="string"&&!d&&dt(f,r).includes(r.arrayFormatSeparator);f=y?dt(f,r):f;const A=d||y?f.split(r.arrayFormatSeparator).map(I=>dt(I,r)):f===null?f:dt(f,r);c[i]=A};case"bracket-separator":return(i,f,c)=>{const d=/(\[])$/.test(i);if(i=i.replace(/\[]$/,""),!d){c[i]=f&&dt(f,r);return}const y=f===null?[]:f.split(r.arrayFormatSeparator).map(A=>dt(A,r));if(c[i]===void 0){c[i]=y;return}c[i]=[...c[i],...y]};default:return(i,f,c)=>{if(c[i]===void 0){c[i]=f;return}c[i]=[...[c[i]].flat(),f]}}}function to(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function pe(r,u){return u.encode?u.strict?Sl(r):encodeURIComponent(r):r}function dt(r,u){return u.decode?wl(r):r}function no(r){return Array.isArray(r)?r.sort():typeof r=="object"?no(Object.keys(r)).sort((u,i)=>Number(u)-Number(i)).map(u=>r[u]):r}function ro(r){const u=r.indexOf("#");return u!==-1&&(r=r.slice(0,u)),r}function xl(r){let u="";const i=r.indexOf("#");return i!==-1&&(u=r.slice(i)),u}function io(r,u){return u.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):u.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function ii(r){r=ro(r);const u=r.indexOf("?");return u===-1?"":r.slice(u+1)}function ui(r,u){u={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...u},to(u.arrayFormatSeparator);const i=bl(u),f=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return f;for(const c of r.split("&")){if(c==="")continue;const d=u.decode?c.replaceAll("+"," "):c;let[y,A]=eo(d,"=");y===void 0&&(y=d),A=A===void 0?null:["comma","separator","bracket-separator"].includes(u.arrayFormat)?A:dt(A,u),i(dt(y,u),A,f)}for(const[c,d]of Object.entries(f))if(typeof d=="object"&&d!==null)for(const[y,A]of Object.entries(d))d[y]=io(A,u);else f[c]=io(d,u);return u.sort===!1?f:(u.sort===!0?Object.keys(f).sort():Object.keys(f).sort(u.sort)).reduce((c,d)=>{const y=f[d];return c[d]=y&&typeof y=="object"&&!Array.isArray(y)?no(y):y,c},Object.create(null))}function uo(r,u){if(!r)return"";u={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...u},to(u.arrayFormatSeparator);const i=y=>u.skipNull&&Al(r[y])||u.skipEmptyString&&r[y]==="",f=Ol(u),c={};for(const[y,A]of Object.entries(r))i(y)||(c[y]=A);const d=Object.keys(c);return u.sort!==!1&&d.sort(u.sort),d.map(y=>{const A=r[y];return A===void 0?"":A===null?pe(y,u):Array.isArray(A)?A.length===0&&u.arrayFormat==="bracket-separator"?pe(y,u)+"[]":A.reduce(f(y),[]).join("&"):pe(y,u)+"="+pe(A,u)}).filter(y=>y.length>0).join("&")}function oo(r,u){var c;u={decode:!0,...u};let[i,f]=eo(r,"#");return i===void 0&&(i=r),{url:((c=i==null?void 0:i.split("?"))==null?void 0:c[0])??"",query:ui(ii(r),u),...u&&u.parseFragmentIdentifier&&f?{fragmentIdentifier:dt(f,u)}:{}}}function so(r,u){u={encode:!0,strict:!0,[ri]:!0,...u};const i=ro(r.url).split("?")[0]||"",f=ii(r.url),c={...ui(f,{sort:!1}),...r.query};let d=uo(c,u);d&&(d=`?${d}`);let y=xl(r.url);if(typeof r.fragmentIdentifier=="string"){const A=new URL(i);A.hash=r.fragmentIdentifier,y=u[ri]?A.hash:`#${r.fragmentIdentifier}`}return`${i}${d}${y}`}function fo(r,u,i){i={parseFragmentIdentifier:!0,[ri]:!1,...i};const{url:f,query:c,fragmentIdentifier:d}=oo(r,i);return so({url:f,query:ml(c,u),fragmentIdentifier:d},i)}function El(r,u,i){const f=Array.isArray(u)?c=>!u.includes(c):(c,d)=>!u(c,d);return fo(r,f,i)}const gt=Object.freeze(Object.defineProperty({__proto__:null,exclude:El,extract:ii,parse:ui,parseUrl:oo,pick:fo,stringify:uo,stringifyUrl:so},Symbol.toStringTag,{value:"Module"}));function Il(r,u){for(var i=-1,f=u.length,c=r.length;++i0&&i(A)?u>1?po(A,u-1,i,f,c):Kl(c,A):f||(c[c.length]=A)}return c}var jl=po;function Yl(r){return r}var go=Yl;function Zl(r,u,i){switch(i.length){case 0:return r.call(u);case 1:return r.call(u,i[0]);case 2:return r.call(u,i[0],i[1]);case 3:return r.call(u,i[0],i[1],i[2])}return r.apply(u,i)}var Xl=Zl,Ql=Xl,_o=Math.max;function kl(r,u,i){return u=_o(u===void 0?r.length-1:u,0),function(){for(var f=arguments,c=-1,d=_o(f.length-u,0),y=Array(d);++c0){if(++u>=Gc)return arguments[0]}else u=0;return r.apply(void 0,arguments)}}var jc=Jc,Yc=qc,Zc=jc,Xc=Zc(Yc),Qc=Xc,kc=go,Vc=Vl,eh=Qc;function th(r,u){return eh(Vc(r,u,kc),r+"")}var mo=th,nh=Xn,rh=nh(Object,"create"),Qn=rh,Ao=Qn;function ih(){this.__data__=Ao?Ao(null):{},this.size=0}var uh=ih;function oh(r){var u=this.has(r)&&delete this.__data__[r];return this.size-=u?1:0,u}var sh=oh,fh=Qn,ah="__lodash_hash_undefined__",lh=Object.prototype,ch=lh.hasOwnProperty;function hh(r){var u=this.__data__;if(fh){var i=u[r];return i===ah?void 0:i}return ch.call(u,r)?u[r]:void 0}var ph=hh,dh=Qn,gh=Object.prototype,_h=gh.hasOwnProperty;function vh(r){var u=this.__data__;return dh?u[r]!==void 0:_h.call(u,r)}var yh=vh,wh=Qn,mh="__lodash_hash_undefined__";function Ah(r,u){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=wh&&u===void 0?mh:u,this}var Sh=Ah,Oh=uh,bh=sh,xh=ph,Eh=yh,Ih=Sh;function kt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var Kh=zh,Jh=kn;function jh(r,u){var i=this.__data__,f=Jh(i,r);return f<0?(++this.size,i.push([r,u])):i[f][1]=u,this}var Yh=jh,Zh=Ch,Xh=Bh,Qh=qh,kh=Kh,Vh=Yh;function Vt(r){var u=-1,i=r==null?0:r.length;for(this.clear();++u-1}var bo=Qp;function kp(r,u,i){for(var f=-1,c=r==null?0:r.length;++f=yd){var F=u?null:_d(r);if(F)return vd(F);y=!1,c=gd,I=new hd}else I=u?[]:A;e:for(;++f-1&&r%1==0&&r<=Ad}var Od=Sd,bd=vo,xd=Od;function Ed(r){return r!=null&&xd(r.length)&&!bd(r)}var Id=Ed,Td=Id,Rd=Zn;function Cd(r){return Rd(r)&&Td(r)}var To=Cd,Ld=jl,Fd=mo,Pd=md,$d=To,Dd=Fd(function(r){return Pd(Ld(r,1,$d,!0))}),Md=Dd;const Nd=jn(Md);function Ud(r,u){for(var i=-1,f=r==null?0:r.length,c=Array(f);++i=Yd&&(d=jd,y=!1,u=new qd(u));e:for(;++c0&&(A=`?${A}`);let P=f.url+A;return f.fragmentIdentifier&&(P=P+"#"+f.fragmentIdentifier),{pushStateArgs:[{query:c,url:P},"",P],eventURL:`${f.url}?${gt.stringify(I,F)}`}}function ig(r,u,i){if(!i.value)return;let f=i.value;Array.isArray(i.value)||(f=[i.value]);let c=r[u];if(c&&!Array.isArray(c)&&(c=[c]),i.add){r[u]=Nd(c,f);return}if(i.remove){const d=ng(c,...f);d.length===0?delete r[u]:r[u]=d}}function tr(r,u,i){if(!u||u.length===0)return!1;if(i instanceof Event)return tr(r,u,i.target);if(i instanceof HTMLInputElement){if(i.files)return tr(r,u,i.files);switch(i.type){case"checkbox":return i.checked?Ut(r,u,i.value):r.has(u)?(r.delete(u),!0):!1;case"radio":return i.checked?Ut(r,u,i.value):!1;default:return Ut(r,u,i.value)}}if(i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement)return Ut(r,u,i.value);if(i==null)return Ut(r,u,"");let f=!1;if(r.has(u)&&(f=!0,r.delete(u)),Array.isArray(i)||i instanceof FileList){for(let c=0;c{this.$el&&this.$el.style&&this.$el.style.height&&(f.value.style.height=this.$el.style.height)})},template:r})}function Ro(r,u,i=""){if(r==null)return;const f=Array.isArray(r);if(f&&r.length>0&&(r[0]instanceof File||r[0]instanceof Blob||typeof r[0]=="string")){tr(u,i,r);return}return Object.keys(r).forEach(c=>{const d=r[c],y=i?f?`${i}[${c}]`:`${i}.${c}`:c;typeof d=="object"&&!(d instanceof File)&&!(d instanceof Date)?Ro(d,u,y):tr(u,y,d)}),u}function ug(r,u){if(u.length===0)return"";const i=d=>Object.keys(d).sort().map(y=>{const A=encodeURIComponent(d[y]);if(A.includes("_"))throw new Error(`Value contains underscore (_) which is not allowed: ${A}`);return A}).join("_"),f=d=>d.map(y=>typeof y=="object"&&!Array.isArray(y)?i(y):encodeURIComponent(y)).join(","),c=[];return u.forEach(d=>{const y=r[d.json_name];if(y===void 0)return;if(d.encoder){d.encoder({value:y,queries:c,tag:d});return}const A=encodeURIComponent(d.name);if(!(!y&&d.omitempty))if(y===null)c.push(`${A}=`);else if(Array.isArray(y)){if(d.omitempty&&r[d.json_name].length===0)return;c.push(`${A}=${f(r[d.json_name])}`)}else typeof y=="object"?c.push(`${A}=${i(y)}`):c.push(`${A}=${encodeURIComponent(y)}`)}),c.join("&")}function og(r,u){for(const i in u){if(r[i]===void 0)return!1;const f=Array.isArray(r[i])?r[i]:[r[i]],c=Array.isArray(u[i])?u[i]:[u[i]],d={};f.forEach(y=>{d[y]=(d[y]||0)+1});for(const y of c){if(!d[y]||d[y]===0)return!1;d[y]--}}return!0}function sg(r,u,i){i===void 0&&(i={arrayFormat:"comma"});const f=gt.parse(r,i),c=gt.parse(u,i);return og(f,c)}function nr(r){if(/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(r)){const u=new URL(r);return u.pathname+u.search}return r}function ai(){return Math.random().toString(36).slice(2,9)}function fg(r=1e3){return new Promise(u=>{setTimeout(function(){u(void 0)},r)})}const ag=T.defineComponent({__name:"go-plaid-portal",props:{loader:Object,locals:Object,form:Object,visible:Boolean,afterLoaded:Function,portalName:String,autoReloadInterval:[String,Number]},setup(r){window.__goplaid=window.__goplaid??{},window.__goplaid.portals=window.__goplaid.portals??{};const u=T.ref(),i=r,f=T.shallowRef(null),c=T.ref(0),d=I=>{f.value=fi(I,i.form,i.locals,u)},y=T.useSlots(),A=()=>{if(y.default){f.value=fi('',i.locals,u);return}const I=i.loader;I&&I.loadPortalBody(!0).form(i.form).go().then(F=>{F&&d(F.body)})};return T.onMounted(()=>{const I=i.portalName;I&&(window.__goplaid.portals[I]={updatePortalTemplate:d,reload:A}),A()}),T.onUpdated(()=>{if(i.autoReloadInterval&&c.value==0){const I=parseInt(i.autoReloadInterval+"");if(I==0)return;c.value=setInterval(()=>{A()},I)}c.value&&c.value>0&&i.autoReloadInterval==0&&(clearInterval(c.value),c.value=0)}),T.onBeforeUnmount(()=>{c.value&&c.value>0&&clearInterval(c.value)}),(I,F)=>r.visible?(T.openBlock(),T.createElementBlock("div",{key:0,class:"go-plaid-portal",ref_key:"portal",ref:u},[f.value?(T.openBlock(),T.createBlock(T.resolveDynamicComponent(f.value),{key:0},{default:T.withCtx(()=>[T.renderSlot(I.$slots,"default",{form:r.form,locals:r.locals})]),_:3})):T.createCommentVNode("",!0)],512)):T.createCommentVNode("",!0)}}),lg=T.defineComponent({inheritAttrs:!1,__name:"go-plaid-listener",setup(r){const i=T.inject("vars").__emitter,f=T.useAttrs(),c={};return T.onMounted(()=>{Object.keys(f).forEach(d=>{if(d.startsWith("on")){const y=f[d],A=d.slice(2);c[A]=y,i.on(A,y)}})}),T.onUnmounted(()=>{Object.keys(c).forEach(d=>{i.off(d,c[d])})}),(d,y)=>T.createCommentVNode("",!0)}}),cg=T.defineComponent({__name:"parent-size-observer",setup(r){const u=T.ref({width:0,height:0});function i(c){const d=c.getBoundingClientRect();u.value.width=d.width,u.value.height=d.height}let f=null;return T.onMounted(()=>{var y;const c=T.getCurrentInstance(),d=(y=c==null?void 0:c.proxy)==null?void 0:y.$el.parentElement;d&&(i(d),f=new ResizeObserver(()=>{i(d)}),f.observe(d))}),T.onBeforeUnmount(()=>{f&&f.disconnect()}),(c,d)=>T.renderSlot(c.$slots,"default",{width:u.value.width,height:u.value.height})}});/*! * https://github.com/Starcounter-Jack/JSON-Patch * (c) 2017-2022 Joachim Wester * MIT licensed - */var lg=function(){var r=function(u,i){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])},r(u,i)};return function(u,i){r(u,i);function a(){this.constructor=u}u.prototype=i===null?Object.create(i):(a.prototype=i.prototype,new a)}}(),cg=Object.prototype.hasOwnProperty;function ai(r,u){return cg.call(r,u)}function si(r){if(Array.isArray(r)){for(var u=new Array(r.length),i=0;i=48&&a<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function To(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function ci(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&T[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(F[M]===void 0?z=T.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray(F)){if(M==="-")M=F.length;else{if(i&&!li(M))throw new ae("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);li(M)&&(M=~~M)}if(P>=D){if(i&&u.op==="add"&&M>F.length)throw new ae("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var w=pg[u.op].call(u,F,M,r);if(w.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return w}}else if(P>=D){var w=tn[u.op].call(u,F,M,r);if(w.test===!1)throw new ae("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return w}if(F=F[M],i&&P0)throw new ae('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new ae("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&ci(r.value))throw new ae("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=a.split("/").length;if(c!==d+1&&c!==d)throw new ae("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==a)throw new ae("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var w={op:"_get",path:r.from,value:void 0},A=Lo([w],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new ae("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new ae("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Lo(r,u,i){try{if(!Array.isArray(r))throw new ae("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)hi(Ue(u),Ue(r),i||!0);else{i=i||nr;for(var a=0;a=48&&f<=57){u++;continue}return!1}return!0}function Bt(r){return r.indexOf("/")===-1&&r.indexOf("~")===-1?r:r.replace(/~/g,"~0").replace(/\//g,"~1")}function Co(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")}function pi(r){if(r===void 0)return!0;if(r){if(Array.isArray(r)){for(var u=0,i=r.length;u0&&I[P-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(i&&z===void 0&&(F[M]===void 0?z=I.slice(0,P).join("/"):P==D-1&&(z=u.path),z!==void 0&&le(u,0,r,z)),P++,Array.isArray(F)){if(M==="-")M=F.length;else{if(i&&!hi(M))throw new fe("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",d,u,r);hi(M)&&(M=~~M)}if(P>=D){if(i&&u.op==="add"&&M>F.length)throw new fe("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",d,u,r);var y=gg[u.op].call(u,F,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return y}}else if(P>=D){var y=tn[u.op].call(u,F,M,r);if(y.test===!1)throw new fe("Test operation failed","TEST_OPERATION_FAILED",d,u,r);return y}if(F=F[M],i&&P0)throw new fe('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",u,r,i);if((r.op==="move"||r.op==="copy")&&typeof r.from!="string")throw new fe("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&r.value===void 0)throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",u,r,i);if((r.op==="add"||r.op==="replace"||r.op==="test")&&pi(r.value))throw new fe("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",u,r,i);if(i){if(r.op=="add"){var c=r.path.split("/").length,d=f.split("/").length;if(c!==d+1&&c!==d)throw new fe("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",u,r,i)}else if(r.op==="replace"||r.op==="remove"||r.op==="_get"){if(r.path!==f)throw new fe("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",u,r,i)}else if(r.op==="move"||r.op==="copy"){var y={op:"_get",path:r.from,value:void 0},A=Po([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new fe("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",u,r,i)}}}else throw new fe("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",u,r,i)}function Po(r,u,i){try{if(!Array.isArray(r))throw new fe("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(u)di(Ue(u),Ue(r),i||!0);else{i=i||ir;for(var f=0;f0&&(r.patches=[],r.callback&&r.callback(a)),a}function gi(r,u,i,a,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=si(u),w=si(r),A=!1,T=w.length-1;T>=0;T--){var F=w[T],P=r[F];if(ai(u,F)&&!(u[F]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[F];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?gi(P,D,i,a+"/"+Bt(F),c):P!==D&&(c&&i.push({op:"test",path:a+"/"+Bt(F),value:Ue(P)}),i.push({op:"replace",path:a+"/"+Bt(F),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:a+"/"+Bt(F),value:Ue(P)}),i.push({op:"remove",path:a+"/"+Bt(F)}),A=!0):(c&&i.push({op:"test",path:a,value:r}),i.push({op:"replace",path:a,value:u}))}if(!(!A&&d.length==w.length))for(var T=0;T0&&(r.patches=[],r.callback&&r.callback(f)),f}function vi(r,u,i,f,c){if(u!==r){typeof u.toJSON=="function"&&(u=u.toJSON());for(var d=ci(u),y=ci(r),A=!1,I=y.length-1;I>=0;I--){var F=y[I],P=r[F];if(li(u,F)&&!(u[F]===void 0&&P!==void 0&&Array.isArray(u)===!1)){var D=u[F];typeof P=="object"&&P!=null&&typeof D=="object"&&D!=null&&Array.isArray(P)===Array.isArray(D)?vi(P,D,i,f+"/"+Bt(F),c):P!==D&&(c&&i.push({op:"test",path:f+"/"+Bt(F),value:Ue(P)}),i.push({op:"replace",path:f+"/"+Bt(F),value:Ue(D)}))}else Array.isArray(r)===Array.isArray(u)?(c&&i.push({op:"test",path:f+"/"+Bt(F),value:Ue(P)}),i.push({op:"remove",path:f+"/"+Bt(F)}),A=!0):(c&&i.push({op:"test",path:f,value:r}),i.push({op:"replace",path:f,value:u}))}if(!(!A&&d.length==y.length))for(var I=0;I * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */rr.exports,function(r,u){(function(){var i,a="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",A="Invalid `variable` option passed into `_.template`",T="__lodash_hash_undefined__",F=500,P="__lodash_placeholder__",D=1,z=2,M=4,le=1,Ke=2,ge=1,Pe=2,_t=4,we=8,st=16,ye=32,V=64,re=128,xe=256,vt=512,wt=30,de="...",yi=800,Sn=16,On=1,ur=2,lt=3,Ae=1/0,Je=9007199254740991,je=17976931348623157e292,nn=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",re],["bind",ge],["bindKey",Pe],["curry",we],["curryRight",st],["flip",vt],["partial",ye],["partialRight",V],["rearg",xe]],W="[object Arguments]",ie="[object Array]",Fe="[object AsyncFunction]",Se="[object Boolean]",bn="[object Date]",Kg="[object DOMException]",or="[object Error]",fr="[object Function]",Do="[object GeneratorFunction]",rt="[object Map]",xn="[object Number]",Jg="[object Null]",yt="[object Object]",Mo="[object Promise]",jg="[object Proxy]",En="[object RegExp]",it="[object Set]",In="[object String]",ar="[object Symbol]",Yg="[object Undefined]",Tn="[object WeakMap]",Zg="[object WeakSet]",Rn="[object ArrayBuffer]",rn="[object DataView]",mi="[object Float32Array]",Ai="[object Float64Array]",Si="[object Int8Array]",Oi="[object Int16Array]",bi="[object Int32Array]",xi="[object Uint8Array]",Ei="[object Uint8ClampedArray]",Ii="[object Uint16Array]",Ti="[object Uint32Array]",Xg=/\b__p \+= '';/g,Qg=/\b(__p \+=) '' \+/g,kg=/(__e\(.*?\)|\b__t\)) \+\n'';/g,No=/&(?:amp|lt|gt|quot|#39);/g,Uo=/[&<>"']/g,Vg=RegExp(No.source),e_=RegExp(Uo.source),t_=/<%-([\s\S]+?)%>/g,n_=/<%([\s\S]+?)%>/g,Bo=/<%=([\s\S]+?)%>/g,r_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i_=/^\w*$/,u_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ri=/[\\^$.*+?()[\]{}|]/g,o_=RegExp(Ri.source),Ci=/^\s+/,f_=/\s/,a_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,s_=/\{\n\/\* \[wrapped with (.+)\] \*/,l_=/,? & /,c_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,h_=/[()=,{}\[\]\/\s]/,p_=/\\(\\)?/g,d_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wo=/\w*$/,g_=/^[-+]0x[0-9a-f]+$/i,__=/^0b[01]+$/i,v_=/^\[object .+?Constructor\]$/,w_=/^0o[0-7]+$/i,y_=/^(?:0|[1-9]\d*)$/,m_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sr=/($^)/,A_=/['\n\r\u2028\u2029\\]/g,lr="\\ud800-\\udfff",S_="\\u0300-\\u036f",O_="\\ufe20-\\ufe2f",b_="\\u20d0-\\u20ff",Ho=S_+O_+b_,qo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",x_="\\xac\\xb1\\xd7\\xf7",E_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",I_="\\u2000-\\u206f",T_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",zo="A-Z\\xc0-\\xd6\\xd8-\\xde",Ko="\\ufe0e\\ufe0f",Jo=x_+E_+I_+T_,Li="['’]",R_="["+lr+"]",jo="["+Jo+"]",cr="["+Ho+"]",Yo="\\d+",C_="["+qo+"]",Zo="["+Go+"]",Xo="[^"+lr+Jo+Yo+qo+Go+zo+"]",Pi="\\ud83c[\\udffb-\\udfff]",L_="(?:"+cr+"|"+Pi+")",Qo="[^"+lr+"]",Fi="(?:\\ud83c[\\udde6-\\uddff]){2}",$i="[\\ud800-\\udbff][\\udc00-\\udfff]",un="["+zo+"]",ko="\\u200d",Vo="(?:"+Zo+"|"+Xo+")",P_="(?:"+un+"|"+Xo+")",ef="(?:"+Li+"(?:d|ll|m|re|s|t|ve))?",tf="(?:"+Li+"(?:D|LL|M|RE|S|T|VE))?",nf=L_+"?",rf="["+Ko+"]?",F_="(?:"+ko+"(?:"+[Qo,Fi,$i].join("|")+")"+rf+nf+")*",$_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",D_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",uf=rf+nf+F_,M_="(?:"+[C_,Fi,$i].join("|")+")"+uf,N_="(?:"+[Qo+cr+"?",cr,Fi,$i,R_].join("|")+")",U_=RegExp(Li,"g"),B_=RegExp(cr,"g"),Di=RegExp(Pi+"(?="+Pi+")|"+N_+uf,"g"),W_=RegExp([un+"?"+Zo+"+"+ef+"(?="+[jo,un,"$"].join("|")+")",P_+"+"+tf+"(?="+[jo,un+Vo,"$"].join("|")+")",un+"?"+Vo+"+"+ef,un+"+"+tf,D_,$_,Yo,M_].join("|"),"g"),H_=RegExp("["+ko+lr+Ho+Ko+"]"),q_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,G_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],z_=-1,ue={};ue[mi]=ue[Ai]=ue[Si]=ue[Oi]=ue[bi]=ue[xi]=ue[Ei]=ue[Ii]=ue[Ti]=!0,ue[W]=ue[ie]=ue[Rn]=ue[Se]=ue[rn]=ue[bn]=ue[or]=ue[fr]=ue[rt]=ue[xn]=ue[yt]=ue[En]=ue[it]=ue[In]=ue[Tn]=!1;var ne={};ne[W]=ne[ie]=ne[Rn]=ne[rn]=ne[Se]=ne[bn]=ne[mi]=ne[Ai]=ne[Si]=ne[Oi]=ne[bi]=ne[rt]=ne[xn]=ne[yt]=ne[En]=ne[it]=ne[In]=ne[ar]=ne[xi]=ne[Ei]=ne[Ii]=ne[Ti]=!0,ne[or]=ne[fr]=ne[Tn]=!1;var K_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},J_={"&":"&","<":"<",">":">",'"':""","'":"'"},j_={"&":"&","<":"<",">":">",""":'"',"'":"'"},Y_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Z_=parseFloat,X_=parseInt,of=typeof nt=="object"&&nt&&nt.Object===Object&&nt,Q_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=of||Q_||Function("return this")(),Mi=u&&!u.nodeType&&u,qt=Mi&&!0&&r&&!r.nodeType&&r,ff=qt&&qt.exports===Mi,Ni=ff&&of.process,Ye=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Ni&&Ni.binding&&Ni.binding("util")}catch{}}(),af=Ye&&Ye.isArrayBuffer,sf=Ye&&Ye.isDate,lf=Ye&&Ye.isMap,cf=Ye&&Ye.isRegExp,hf=Ye&&Ye.isSet,pf=Ye&&Ye.isTypedArray;function Be(_,S,y){switch(y.length){case 0:return _.call(S);case 1:return _.call(S,y[0]);case 2:return _.call(S,y[0],y[1]);case 3:return _.call(S,y[0],y[1],y[2])}return _.apply(S,y)}function k_(_,S,y,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Ui(_,S,y){for(var L=-1,H=_==null?0:_.length;++L-1;);return y}function Af(_,S){for(var y=_.length;y--&&on(S,_[y],0)>-1;);return y}function fv(_,S){for(var y=_.length,L=0;y--;)_[y]===S&&++L;return L}var av=qi(K_),sv=qi(J_);function lv(_){return"\\"+Y_[_]}function cv(_,S){return _==null?i:_[S]}function fn(_){return H_.test(_)}function hv(_){return q_.test(_)}function pv(_){for(var S,y=[];!(S=_.next()).done;)y.push(S.value);return y}function Ji(_){var S=-1,y=Array(_.size);return _.forEach(function(L,H){y[++S]=[H,L]}),y}function Sf(_,S){return function(y){return _(S(y))}}function Lt(_,S){for(var y=-1,L=_.length,H=0,X=[];++y-1}function e0(e,t){var n=this.__data__,o=Rr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=Xv,mt.prototype.delete=Qv,mt.prototype.get=kv,mt.prototype.has=Vv,mt.prototype.set=e0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function ke(e,t,n,o,f,l){var h,p=t&D,v=t&z,O=t&M;if(n&&(h=f?n(e,o,f,l):n(e)),h!==i)return h;if(!fe(e))return e;var b=q(e);if(b){if(h=i1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==fr||E==Do;if(Nt(e))return ia(e,p);if(E==yt||E==W||R&&!f){if(h=v||R?{}:Oa(e),!p)return v?j0(e,_0(h,e)):J0(e,$f(h,e))}else{if(!ne[E])return f?e:{};h=u1(e,E,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),ka(e)?e.forEach(function(B){h.add(ke(B,t,n,B,e,l))}):Xa(e)&&e.forEach(function(B,j){h.set(j,ke(B,t,n,j,e,l))});var U=O?v?wu:vu:v?Me:me,K=b?i:U(e);return Ze(K||e,function(B,j){K&&(j=B,B=e[j]),Mn(h,j,ke(B,t,n,j,e,l))}),h}function v0(e){var t=me(e);return function(n){return Df(n,e,t)}}function Df(e,t,n){var o=n.length;if(e==null)return!o;for(e=te(e);o--;){var f=n[o],l=t[f],h=e[f];if(h===i&&!(f in e)||!l(h))return!1}return!0}function Mf(e,t,n){if(typeof e!="function")throw new Xe(w);return Gn(function(){e.apply(i,n)},t)}function Nn(e,t,n,o){var f=-1,l=hr,h=!0,p=e.length,v=[],O=t.length;if(!p)return v;n&&(t=oe(t,We(n))),o?(l=Ui,h=!1):t.length>=c&&(l=Cn,h=!1,t=new Kt(t));e:for(;++ff?0:f+n),o=o===i||o>f?f:G(o),o<0&&(o+=f),o=n>o?0:es(o);n0&&n(p)?t>1?be(p,t-1,n,o,f):Ct(f,p):o||(f[f.length]=p)}return f}var Vi=la(),Bf=la(!0);function ct(e,t){return e&&Vi(e,t,me)}function eu(e,t){return e&&Bf(e,t,me)}function Lr(e,t){return Rt(t,function(n){return Et(e[n])})}function jt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function m0(e,t){return e!=null&&k.call(e,t)}function A0(e,t){return e!=null&&t in te(e)}function S0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&Sr.call(p,v,1),Sr.call(e,v,1);return e}function Xf(e,t){for(var n=e?t.length:0,o=n-1;n--;){var f=t[n];if(n==o||f!==l){var l=f;xt(f)?Sr.call(e,f,1):lu(e,f)}}return e}function fu(e,t){return e+xr(Cf()*(t-e+1))}function D0(e,t,n,o){for(var f=-1,l=ve(br((t-e)/(n||1)),0),h=y(l);l--;)h[o?l:++f]=e,e+=n;return h}function au(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=xr(t/2),t&&(e+=e);while(t);return n}function J(e,t){return xu(Ea(e,t,Ne),e+"")}function M0(e){return Ff(wn(e))}function N0(e,t){var n=wn(e);return qr(n,Jt(t,0,n.length))}function Wn(e,t,n,o){if(!fe(e))return e;t=Dt(t,e);for(var f=-1,l=t.length,h=l-1,p=e;p!=null&&++ff?0:f+t),n=n>f?f:n,n<0&&(n+=f),f=t>n?0:n-t>>>0,t>>>=0;for(var l=y(f);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:Q0(e);if(O)return dr(O);h=!1,f=Cn,v=new Kt}else v=t?[]:p;e:for(;++o=o?e:Ve(e,t,n)}var ra=Tv||function(e){return Oe.clearTimeout(e)};function ia(e,t){if(t)return e.slice();var n=e.length,o=xf?xf(n):new e.constructor(n);return e.copy(o),o}function du(e){var t=new e.constructor(e.byteLength);return new mr(t).set(new mr(e)),t}function q0(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function G0(e){var t=new e.constructor(e.source,Wo.exec(e));return t.lastIndex=e.lastIndex,t}function z0(e){return Dn?te(Dn.call(e)):{}}function ua(e,t){var n=t?du(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function oa(e,t){if(e!==t){var n=e!==i,o=e===null,f=e===e,l=qe(e),h=t!==i,p=t===null,v=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&v&&!p&&!O||o&&h&&v||!n&&v||!f)return 1;if(!o&&!l&&!O&&e=p)return v;var O=n[o];return v*(O=="desc"?-1:1)}}return e.index-t.index}function fa(e,t,n,o){for(var f=-1,l=e.length,h=n.length,p=-1,v=t.length,O=ve(l-h,0),b=y(v+O),E=!o;++p1?n[f-1]:i,h=f>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(f--,l):i,h&&Ce(n[0],n[1],h)&&(l=f<3?i:l,f=1),t=te(t);++o-1?f[l?t[h]:h]:i}}function pa(e){return bt(function(t){var n=t.length,o=n,f=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(w);if(f&&!h&&Wr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&Z.reverse(),b&&vp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(a_,`{ + */ur.exports,function(r,u){(function(){var i,f="4.17.21",c=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",A="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",F=500,P="__lodash_placeholder__",D=1,z=2,M=4,le=1,Ke=2,ge=1,Fe=2,_t=4,ye=8,at=16,we=32,V=64,re=128,xe=256,vt=512,yt=30,de="...",Ai=800,bn=16,xn=1,sr=2,lt=3,Ae=1/0,Je=9007199254740991,je=17976931348623157e292,un=NaN,g=4294967295,m=g-1,x=g>>>1,C=[["ary",re],["bind",ge],["bindKey",Fe],["curry",ye],["curryRight",at],["flip",vt],["partial",we],["partialRight",V],["rearg",xe]],W="[object Arguments]",ie="[object Array]",Pe="[object AsyncFunction]",Se="[object Boolean]",En="[object Date]",jg="[object DOMException]",fr="[object Error]",ar="[object Function]",No="[object GeneratorFunction]",rt="[object Map]",In="[object Number]",Yg="[object Null]",wt="[object Object]",Uo="[object Promise]",Zg="[object Proxy]",Tn="[object RegExp]",it="[object Set]",Rn="[object String]",lr="[object Symbol]",Xg="[object Undefined]",Cn="[object WeakMap]",Qg="[object WeakSet]",Ln="[object ArrayBuffer]",on="[object DataView]",Si="[object Float32Array]",Oi="[object Float64Array]",bi="[object Int8Array]",xi="[object Int16Array]",Ei="[object Int32Array]",Ii="[object Uint8Array]",Ti="[object Uint8ClampedArray]",Ri="[object Uint16Array]",Ci="[object Uint32Array]",kg=/\b__p \+= '';/g,Vg=/\b(__p \+=) '' \+/g,e_=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bo=/&(?:amp|lt|gt|quot|#39);/g,Wo=/[&<>"']/g,t_=RegExp(Bo.source),n_=RegExp(Wo.source),r_=/<%-([\s\S]+?)%>/g,i_=/<%([\s\S]+?)%>/g,Ho=/<%=([\s\S]+?)%>/g,u_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o_=/^\w*$/,s_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Li=/[\\^$.*+?()[\]{}|]/g,f_=RegExp(Li.source),Fi=/^\s+/,a_=/\s/,l_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,c_=/\{\n\/\* \[wrapped with (.+)\] \*/,h_=/,? & /,p_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,d_=/[()=,{}\[\]\/\s]/,g_=/\\(\\)?/g,__=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qo=/\w*$/,v_=/^[-+]0x[0-9a-f]+$/i,y_=/^0b[01]+$/i,w_=/^\[object .+?Constructor\]$/,m_=/^0o[0-7]+$/i,A_=/^(?:0|[1-9]\d*)$/,S_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,cr=/($^)/,O_=/['\n\r\u2028\u2029\\]/g,hr="\\ud800-\\udfff",b_="\\u0300-\\u036f",x_="\\ufe20-\\ufe2f",E_="\\u20d0-\\u20ff",Go=b_+x_+E_,zo="\\u2700-\\u27bf",Ko="a-z\\xdf-\\xf6\\xf8-\\xff",I_="\\xac\\xb1\\xd7\\xf7",T_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",R_="\\u2000-\\u206f",C_=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Jo="A-Z\\xc0-\\xd6\\xd8-\\xde",jo="\\ufe0e\\ufe0f",Yo=I_+T_+R_+C_,Pi="['’]",L_="["+hr+"]",Zo="["+Yo+"]",pr="["+Go+"]",Xo="\\d+",F_="["+zo+"]",Qo="["+Ko+"]",ko="[^"+hr+Yo+Xo+zo+Ko+Jo+"]",$i="\\ud83c[\\udffb-\\udfff]",P_="(?:"+pr+"|"+$i+")",Vo="[^"+hr+"]",Di="(?:\\ud83c[\\udde6-\\uddff]){2}",Mi="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+Jo+"]",es="\\u200d",ts="(?:"+Qo+"|"+ko+")",$_="(?:"+sn+"|"+ko+")",ns="(?:"+Pi+"(?:d|ll|m|re|s|t|ve))?",rs="(?:"+Pi+"(?:D|LL|M|RE|S|T|VE))?",is=P_+"?",us="["+jo+"]?",D_="(?:"+es+"(?:"+[Vo,Di,Mi].join("|")+")"+us+is+")*",M_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",N_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",os=us+is+D_,U_="(?:"+[F_,Di,Mi].join("|")+")"+os,B_="(?:"+[Vo+pr+"?",pr,Di,Mi,L_].join("|")+")",W_=RegExp(Pi,"g"),H_=RegExp(pr,"g"),Ni=RegExp($i+"(?="+$i+")|"+B_+os,"g"),q_=RegExp([sn+"?"+Qo+"+"+ns+"(?="+[Zo,sn,"$"].join("|")+")",$_+"+"+rs+"(?="+[Zo,sn+ts,"$"].join("|")+")",sn+"?"+ts+"+"+ns,sn+"+"+rs,N_,M_,Xo,U_].join("|"),"g"),G_=RegExp("["+es+hr+Go+jo+"]"),z_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,K_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],J_=-1,ue={};ue[Si]=ue[Oi]=ue[bi]=ue[xi]=ue[Ei]=ue[Ii]=ue[Ti]=ue[Ri]=ue[Ci]=!0,ue[W]=ue[ie]=ue[Ln]=ue[Se]=ue[on]=ue[En]=ue[fr]=ue[ar]=ue[rt]=ue[In]=ue[wt]=ue[Tn]=ue[it]=ue[Rn]=ue[Cn]=!1;var ne={};ne[W]=ne[ie]=ne[Ln]=ne[on]=ne[Se]=ne[En]=ne[Si]=ne[Oi]=ne[bi]=ne[xi]=ne[Ei]=ne[rt]=ne[In]=ne[wt]=ne[Tn]=ne[it]=ne[Rn]=ne[lr]=ne[Ii]=ne[Ti]=ne[Ri]=ne[Ci]=!0,ne[fr]=ne[ar]=ne[Cn]=!1;var j_={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Y_={"&":"&","<":"<",">":">",'"':""","'":"'"},Z_={"&":"&","<":"<",">":">",""":'"',"'":"'"},X_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Q_=parseFloat,k_=parseInt,ss=typeof nt=="object"&&nt&&nt.Object===Object&&nt,V_=typeof self=="object"&&self&&self.Object===Object&&self,Oe=ss||V_||Function("return this")(),Ui=u&&!u.nodeType&&u,qt=Ui&&!0&&r&&!r.nodeType&&r,fs=qt&&qt.exports===Ui,Bi=fs&&ss.process,Ye=function(){try{var _=qt&&qt.require&&qt.require("util").types;return _||Bi&&Bi.binding&&Bi.binding("util")}catch{}}(),as=Ye&&Ye.isArrayBuffer,ls=Ye&&Ye.isDate,cs=Ye&&Ye.isMap,hs=Ye&&Ye.isRegExp,ps=Ye&&Ye.isSet,ds=Ye&&Ye.isTypedArray;function Be(_,S,w){switch(w.length){case 0:return _.call(S);case 1:return _.call(S,w[0]);case 2:return _.call(S,w[0],w[1]);case 3:return _.call(S,w[0],w[1],w[2])}return _.apply(S,w)}function ev(_,S,w,L){for(var H=-1,X=_==null?0:_.length;++H-1}function Wi(_,S,w){for(var L=-1,H=_==null?0:_.length;++L-1;);return w}function Ss(_,S){for(var w=_.length;w--&&fn(S,_[w],0)>-1;);return w}function av(_,S){for(var w=_.length,L=0;w--;)_[w]===S&&++L;return L}var lv=zi(j_),cv=zi(Y_);function hv(_){return"\\"+X_[_]}function pv(_,S){return _==null?i:_[S]}function an(_){return G_.test(_)}function dv(_){return z_.test(_)}function gv(_){for(var S,w=[];!(S=_.next()).done;)w.push(S.value);return w}function Yi(_){var S=-1,w=Array(_.size);return _.forEach(function(L,H){w[++S]=[H,L]}),w}function Os(_,S){return function(w){return _(S(w))}}function Lt(_,S){for(var w=-1,L=_.length,H=0,X=[];++w-1}function n0(e,t){var n=this.__data__,o=Lr(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}mt.prototype.clear=kv,mt.prototype.delete=Vv,mt.prototype.get=e0,mt.prototype.has=t0,mt.prototype.set=n0;function At(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t=t?e:t)),e}function ke(e,t,n,o,s,l){var h,p=t&D,v=t&z,O=t&M;if(n&&(h=s?n(e,o,s,l):n(e)),h!==i)return h;if(!se(e))return e;var b=q(e);if(b){if(h=o1(e),!p)return $e(e,h)}else{var E=Ie(e),R=E==ar||E==No;if(Nt(e))return of(e,p);if(E==wt||E==W||R&&!s){if(h=v||R?{}:xf(e),!p)return v?Z0(e,y0(h,e)):Y0(e,Ds(h,e))}else{if(!ne[E])return s?e:{};h=s1(e,E,p)}}l||(l=new ot);var $=l.get(e);if($)return $;l.set(e,h),ea(e)?e.forEach(function(B){h.add(ke(B,t,n,B,e,l))}):kf(e)&&e.forEach(function(B,j){h.set(j,ke(B,t,n,j,e,l))});var U=O?v?mu:wu:v?Me:me,K=b?i:U(e);return Ze(K||e,function(B,j){K&&(j=B,B=e[j]),Un(h,j,ke(B,t,n,j,e,l))}),h}function w0(e){var t=me(e);return function(n){return Ms(n,e,t)}}function Ms(e,t,n){var o=n.length;if(e==null)return!o;for(e=te(e);o--;){var s=n[o],l=t[s],h=e[s];if(h===i&&!(s in e)||!l(h))return!1}return!0}function Ns(e,t,n){if(typeof e!="function")throw new Xe(y);return Kn(function(){e.apply(i,n)},t)}function Bn(e,t,n,o){var s=-1,l=dr,h=!0,p=e.length,v=[],O=t.length;if(!p)return v;n&&(t=oe(t,We(n))),o?(l=Wi,h=!1):t.length>=c&&(l=Fn,h=!1,t=new Kt(t));e:for(;++ss?0:s+n),o=o===i||o>s?s:G(o),o<0&&(o+=s),o=n>o?0:na(o);n0&&n(p)?t>1?be(p,t-1,n,o,s):Ct(s,p):o||(s[s.length]=p)}return s}var tu=hf(),Ws=hf(!0);function ct(e,t){return e&&tu(e,t,me)}function nu(e,t){return e&&Ws(e,t,me)}function Pr(e,t){return Rt(t,function(n){return Et(e[n])})}function jt(e,t){t=Dt(t,e);for(var n=0,o=t.length;e!=null&&nt}function S0(e,t){return e!=null&&k.call(e,t)}function O0(e,t){return e!=null&&t in te(e)}function b0(e,t,n){return e>=Ee(t,n)&&e=120&&b.length>=120)?new Kt(h&&b):i}b=e[0];var E=-1,R=p[0];e:for(;++E-1;)p!==e&&br.call(p,v,1),br.call(e,v,1);return e}function Qs(e,t){for(var n=e?t.length:0,o=n-1;n--;){var s=t[n];if(n==o||s!==l){var l=s;xt(s)?br.call(e,s,1):hu(e,s)}}return e}function au(e,t){return e+Ir(Ls()*(t-e+1))}function N0(e,t,n,o){for(var s=-1,l=ve(Er((t-e)/(n||1)),0),h=w(l);l--;)h[o?l:++s]=e,e+=n;return h}function lu(e,t){var n="";if(!e||t<1||t>Je)return n;do t%2&&(n+=e),t=Ir(t/2),t&&(e+=e);while(t);return n}function J(e,t){return Iu(Tf(e,t,Ne),e+"")}function U0(e){return $s(mn(e))}function B0(e,t){var n=mn(e);return zr(n,Jt(t,0,n.length))}function qn(e,t,n,o){if(!se(e))return e;t=Dt(t,e);for(var s=-1,l=t.length,h=l-1,p=e;p!=null&&++ss?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var l=w(s);++o>>1,h=e[l];h!==null&&!qe(h)&&(n?h<=t:h=c){var O=t?null:V0(e);if(O)return _r(O);h=!1,s=Fn,v=new Kt}else v=t?[]:p;e:for(;++o=o?e:Ve(e,t,n)}var uf=Cv||function(e){return Oe.clearTimeout(e)};function of(e,t){if(t)return e.slice();var n=e.length,o=Es?Es(n):new e.constructor(n);return e.copy(o),o}function _u(e){var t=new e.constructor(e.byteLength);return new Sr(t).set(new Sr(e)),t}function z0(e,t){var n=t?_u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function K0(e){var t=new e.constructor(e.source,qo.exec(e));return t.lastIndex=e.lastIndex,t}function J0(e){return Nn?te(Nn.call(e)):{}}function sf(e,t){var n=t?_u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ff(e,t){if(e!==t){var n=e!==i,o=e===null,s=e===e,l=qe(e),h=t!==i,p=t===null,v=t===t,O=qe(t);if(!p&&!O&&!l&&e>t||l&&h&&v&&!p&&!O||o&&h&&v||!n&&v||!s)return 1;if(!o&&!l&&!O&&e=p)return v;var O=n[o];return v*(O=="desc"?-1:1)}}return e.index-t.index}function af(e,t,n,o){for(var s=-1,l=e.length,h=n.length,p=-1,v=t.length,O=ve(l-h,0),b=w(v+O),E=!o;++p1?n[s-1]:i,h=s>2?n[2]:i;for(l=e.length>3&&typeof l=="function"?(s--,l):i,h&&Ce(n[0],n[1],h)&&(l=s<3?i:l,s=1),t=te(t);++o-1?s[l?t[h]:h]:i}}function gf(e){return bt(function(t){var n=t.length,o=n,s=Qe.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if(typeof l!="function")throw new Xe(y);if(s&&!h&&qr(l)=="wrapper")var h=new Qe([],!0)}for(o=h?o:n;++o1&&Z.reverse(),b&&vp))return!1;var O=l.get(e),b=l.get(t);if(O&&b)return O==t&&b==e;var E=-1,R=!0,$=n&Ke?new Kt:i;for(l.set(e,t),l.set(t,e);++E1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(l_,`{ /* [wrapped with `+t+`] */ -`)}function f1(e){return q(e)||Xt(e)||!!(Tf&&e&&e[Tf])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&y_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=yi)return arguments[0]}else t=0;return e.apply(i,arguments)}}function qr(e,t){var n=-1,o=e.length,f=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ua(e,n)});function Ba(e){var t=s(e);return t.__chain__=!0,t}function ww(e,t){return t(e),e}function Gr(e,t){return t(e)}var yw=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,f=function(l){return ki(l,e)};return t>1||this.__actions__.length||!(o instanceof Y)||!xt(n)?this.thru(f):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Gr,args:[f],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function mw(){return Ba(this)}function Aw(){return new Qe(this.value(),this.__chain__)}function Sw(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Ow(){return this}function bw(e){for(var t,n=this;n instanceof Tr;){var o=Pa(n);o.__index__=0,o.__values__=i,t?f.__wrapped__=o:t=o;var f=o;n=n.__wrapped__}return f.__wrapped__=e,t}function xw(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:Gr,args:[Eu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Eu)}function Ew(){return ta(this.__wrapped__,this.__actions__)}var Iw=Dr(function(e,t,n){k.call(e,n)?++e[n]:St(e,n,1)});function Tw(e,t,n){var o=q(e)?df:w0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function Rw(e,t){var n=q(e)?Rt:Uf;return n(e,N(t,3))}var Cw=ha(Fa),Lw=ha($a);function Pw(e,t){return be(zr(e,t),1)}function Fw(e,t){return be(zr(e,t),Ae)}function $w(e,t,n){return n=n===i?1:G(n),be(zr(e,t),n)}function Wa(e,t){var n=q(e)?Ze:Ft;return n(e,N(t,3))}function Ha(e,t){var n=q(e)?V_:Nf;return n(e,N(t,3))}var Dw=Dr(function(e,t,n){k.call(e,n)?e[n].push(t):St(e,n,[t])});function Mw(e,t,n,o){e=De(e)?e:wn(e),n=n&&!o?G(n):0;var f=e.length;return n<0&&(n=ve(f+n,0)),Zr(e)?n<=f&&e.indexOf(t,n)>-1:!!f&&on(e,t,n)>-1}var Nw=J(function(e,t,n){var o=-1,f=typeof t=="function",l=De(e)?y(e.length):[];return Ft(e,function(h){l[++o]=f?Be(t,h,n):Un(h,t,n)}),l}),Uw=Dr(function(e,t,n){St(e,n,t)});function zr(e,t){var n=q(e)?oe:zf;return n(e,N(t,3))}function Bw(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Yf(e,t,n))}var Ww=Dr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Hw(e,t,n){var o=q(e)?Bi:wf,f=arguments.length<3;return o(e,N(t,4),n,f,Ft)}function qw(e,t,n){var o=q(e)?ev:wf,f=arguments.length<3;return o(e,N(t,4),n,f,Nf)}function Gw(e,t){var n=q(e)?Rt:Uf;return n(e,jr(N(t,3)))}function zw(e){var t=q(e)?Ff:M0;return t(e)}function Kw(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?p0:N0;return o(e,t)}function Jw(e){var t=q(e)?d0:B0;return t(e)}function jw(e){if(e==null)return 0;if(De(e))return Zr(e)?an(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:iu(e).length}function Yw(e,t,n){var o=q(e)?Wi:W0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Zw=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Yf(e,be(t,1),[])}),Kr=Rv||function(){return Oe.Date.now()};function Xw(e,t){if(typeof t!="function")throw new Xe(w);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function qa(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,re,i,i,i,i,t)}function Ga(e,t){var n;if(typeof t!="function")throw new Xe(w);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Tu=J(function(e,t,n){var o=ge;if(n.length){var f=Lt(n,_n(Tu));o|=ye}return Ot(e,o,t,n,f)}),za=J(function(e,t,n){var o=ge|Pe;if(n.length){var f=Lt(n,_n(za));o|=ye}return Ot(t,o,e,n,f)});function Ka(e,t,n){t=n?i:t;var o=Ot(e,we,i,i,i,i,i,t);return o.placeholder=Ka.placeholder,o}function Ja(e,t,n){t=n?i:t;var o=Ot(e,st,i,i,i,i,i,t);return o.placeholder=Ja.placeholder,o}function ja(e,t,n){var o,f,l,h,p,v,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(w);t=tt(t)||0,fe(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var at=o,Tt=f;return o=f=i,O=he,h=e.apply(Tt,at),h}function U(he){return O=he,p=Gn(j,t),b?$(he):h}function K(he){var at=he-v,Tt=he-O,hs=t-at;return E?Ee(hs,l-Tt):hs}function B(he){var at=he-v,Tt=he-O;return v===i||at>=t||at<0||E&&Tt>=l}function j(){var he=Kr();if(B(he))return Z(he);p=Gn(j,K(he))}function Z(he){return p=i,R&&o?$(he):(o=f=i,h)}function Ge(){p!==i&&ra(p),O=0,o=v=f=p=i}function Le(){return p===i?h:Z(Kr())}function ze(){var he=Kr(),at=B(he);if(o=arguments,f=this,v=he,at){if(p===i)return U(v);if(E)return ra(p),p=Gn(j,t),$(v)}return p===i&&(p=Gn(j,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Qw=J(function(e,t){return Mf(e,1,t)}),kw=J(function(e,t,n){return Mf(e,tt(t)||0,n)});function Vw(e){return Ot(e,vt)}function Jr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(w);var n=function(){var o=arguments,f=t?t.apply(this,o):o[0],l=n.cache;if(l.has(f))return l.get(f);var h=e.apply(this,o);return n.cache=l.set(f,h)||l,h};return n.cache=new(Jr.Cache||At),n}Jr.Cache=At;function jr(e){if(typeof e!="function")throw new Xe(w);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ey(e){return Ga(2,e)}var ty=H0(function(e,t){t=t.length==1&&q(t[0])?oe(t[0],We(N())):oe(be(t,1),We(N()));var n=t.length;return J(function(o){for(var f=-1,l=Ee(o.length,n);++f=t}),Xt=Hf(function(){return arguments}())?Hf:function(e){return se(e)&&k.call(e,"callee")&&!If.call(e,"callee")},q=y.isArray,_y=af?We(af):b0;function De(e){return e!=null&&Yr(e.length)&&!Et(e)}function ce(e){return se(e)&&De(e)}function vy(e){return e===!0||e===!1||se(e)&&Re(e)==Se}var Nt=Lv||Wu,wy=sf?We(sf):x0;function yy(e){return se(e)&&e.nodeType===1&&!zn(e)}function my(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||vn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(qn(e))return!iu(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}function Ay(e,t){return Bn(e,t)}function Sy(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Bn(e,t,i,n):!!o}function Cu(e){if(!se(e))return!1;var t=Re(e);return t==or||t==Kg||typeof e.message=="string"&&typeof e.name=="string"&&!zn(e)}function Oy(e){return typeof e=="number"&&Rf(e)}function Et(e){if(!fe(e))return!1;var t=Re(e);return t==fr||t==Do||t==Fe||t==jg}function Za(e){return typeof e=="number"&&e==G(e)}function Yr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function se(e){return e!=null&&typeof e=="object"}var Xa=lf?We(lf):I0;function by(e,t){return e===t||ru(e,t,mu(t))}function xy(e,t,n){return n=typeof n=="function"?n:i,ru(e,t,mu(t),n)}function Ey(e){return Qa(e)&&e!=+e}function Iy(e){if(l1(e))throw new H(d);return qf(e)}function Ty(e){return e===null}function Ry(e){return e==null}function Qa(e){return typeof e=="number"||se(e)&&Re(e)==xn}function zn(e){if(!se(e)||Re(e)!=yt)return!1;var t=Ar(e);if(t===null)return!0;var n=k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&vr.call(n)==xv}var Lu=cf?We(cf):T0;function Cy(e){return Za(e)&&e>=-Je&&e<=Je}var ka=hf?We(hf):R0;function Zr(e){return typeof e=="string"||!q(e)&&se(e)&&Re(e)==In}function qe(e){return typeof e=="symbol"||se(e)&&Re(e)==ar}var vn=pf?We(pf):C0;function Ly(e){return e===i}function Py(e){return se(e)&&Ie(e)==Tn}function Fy(e){return se(e)&&Re(e)==Zg}var $y=Br(uu),Dy=Br(function(e,t){return e<=t});function Va(e){if(!e)return[];if(De(e))return Zr(e)?ut(e):$e(e);if(Ln&&e[Ln])return pv(e[Ln]());var t=Ie(e),n=t==rt?Ji:t==it?dr:wn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*je}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function es(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return nn;if(fe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yf(e);var n=__.test(e);return n||w_.test(e)?X_(e.slice(2),n?2:8):g_.test(e)?nn:+e}function ts(e){return ht(e,Me(e))}function My(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Ny=dn(function(e,t){if(qn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)k.call(t,n)&&Mn(e,n,t[n])}),ns=dn(function(e,t){ht(t,Me(t),e)}),Xr=dn(function(e,t,n,o){ht(t,Me(t),e,o)}),Uy=dn(function(e,t,n,o){ht(t,me(t),e,o)}),By=bt(ki);function Wy(e,t){var n=pn(e);return t==null?n:$f(n,t)}var Hy=J(function(e,t){e=te(e);var n=-1,o=t.length,f=o>2?t[2]:i;for(f&&Ce(t[0],t[1],f)&&(o=1);++n1),l}),ht(e,wu(e),n),o&&(n=ke(n,D|z|M,k0));for(var f=t.length;f--;)lu(n,t[f]);return n});function um(e,t){return is(e,jr(N(t)))}var om=bt(function(e,t){return e==null?{}:F0(e,t)});function is(e,t){if(e==null)return{};var n=oe(wu(e),function(o){return[o]});return t=N(t),Zf(e,n,function(o,f){return t(o,f[0])})}function fm(e,t,n){t=Dt(t,e);var o=-1,f=t.length;for(f||(f=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var f=Cf();return Ee(e+f*(t-e+Z_("1e-"+((f+"").length-1))),t)}return fu(e,t)}var wm=gn(function(e,t,n){return t=t.toLowerCase(),e+(n?fs(t):t)});function fs(e){return $u(Q(e).toLowerCase())}function as(e){return e=Q(e),e&&e.replace(m_,av).replace(B_,"")}function ym(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var f=n;return n-=t.length,n>=0&&e.slice(n,f)==t}function mm(e){return e=Q(e),e&&e_.test(e)?e.replace(Uo,sv):e}function Am(e){return e=Q(e),e&&o_.test(e)?e.replace(Ri,"\\$&"):e}var Sm=gn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Om=gn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bm=ca("toLowerCase");function xm(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;if(!t||o>=t)return e;var f=(t-o)/2;return Ur(xr(f),n)+e+Ur(br(f),n)}function Em(e,t,n){e=Q(e),t=G(t);var o=t?an(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Lu(t))&&(t=He(t),!t&&fn(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Fm=gn(function(e,t,n){return e+(n?" ":"")+$u(t)});function $m(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Dm(e,t,n){var o=s.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=Xr({},t,o,wa);var f=Xr({},t.imports,o.imports,wa),l=me(f),h=Ki(f,l),p,v,O=0,b=t.interpolate||sr,E="__p += '",R=ji((t.escape||sr).source+"|"+b.source+"|"+(b===Bo?d_:sr).source+"|"+(t.evaluate||sr).source+"|$","g"),$="//# sourceURL="+(k.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++z_+"]")+` -`;e.replace(R,function(B,j,Z,Ge,Le,ze){return Z||(Z=Ge),E+=e.slice(O,ze).replace(A_,lv),j&&(p=!0,E+=`' + +`)}function a1(e){return q(e)||Xt(e)||!!(Rs&&e&&e[Rs])}function xt(e,t){var n=typeof e;return t=t??Je,!!t&&(n=="number"||n!="symbol"&&A_.test(e))&&e>-1&&e%1==0&&e0){if(++t>=Ai)return arguments[0]}else t=0;return e.apply(i,arguments)}}function zr(e,t){var n=-1,o=e.length,s=o-1;for(t=t===i?o:t;++n1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Wf(e,n)});function Hf(e){var t=a(e);return t.__chain__=!0,t}function my(e,t){return t(e),e}function Kr(e,t){return t(e)}var Ay=bt(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,s=function(l){return eu(l,e)};return t>1||this.__actions__.length||!(o instanceof Y)||!xt(n)?this.thru(s):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Kr,args:[s],thisArg:i}),new Qe(o,this.__chain__).thru(function(l){return t&&!l.length&&l.push(i),l}))});function Sy(){return Hf(this)}function Oy(){return new Qe(this.value(),this.__chain__)}function by(){this.__values__===i&&(this.__values__=ta(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function xy(){return this}function Ey(e){for(var t,n=this;n instanceof Cr;){var o=$f(n);o.__index__=0,o.__values__=i,t?s.__wrapped__=o:t=o;var s=o;n=n.__wrapped__}return s.__wrapped__=e,t}function Iy(){var e=this.__wrapped__;if(e instanceof Y){var t=e;return this.__actions__.length&&(t=new Y(this)),t=t.reverse(),t.__actions__.push({func:Kr,args:[Tu],thisArg:i}),new Qe(t,this.__chain__)}return this.thru(Tu)}function Ty(){return nf(this.__wrapped__,this.__actions__)}var Ry=Nr(function(e,t,n){k.call(e,n)?++e[n]:St(e,n,1)});function Cy(e,t,n){var o=q(e)?gs:m0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}function Ly(e,t){var n=q(e)?Rt:Bs;return n(e,N(t,3))}var Fy=df(Df),Py=df(Mf);function $y(e,t){return be(Jr(e,t),1)}function Dy(e,t){return be(Jr(e,t),Ae)}function My(e,t,n){return n=n===i?1:G(n),be(Jr(e,t),n)}function qf(e,t){var n=q(e)?Ze:Pt;return n(e,N(t,3))}function Gf(e,t){var n=q(e)?tv:Us;return n(e,N(t,3))}var Ny=Nr(function(e,t,n){k.call(e,n)?e[n].push(t):St(e,n,[t])});function Uy(e,t,n,o){e=De(e)?e:mn(e),n=n&&!o?G(n):0;var s=e.length;return n<0&&(n=ve(s+n,0)),Qr(e)?n<=s&&e.indexOf(t,n)>-1:!!s&&fn(e,t,n)>-1}var By=J(function(e,t,n){var o=-1,s=typeof t=="function",l=De(e)?w(e.length):[];return Pt(e,function(h){l[++o]=s?Be(t,h,n):Wn(h,t,n)}),l}),Wy=Nr(function(e,t,n){St(e,n,t)});function Jr(e,t){var n=q(e)?oe:Ks;return n(e,N(t,3))}function Hy(e,t,n,o){return e==null?[]:(q(t)||(t=t==null?[]:[t]),n=o?i:n,q(n)||(n=n==null?[]:[n]),Zs(e,t,n))}var qy=Nr(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function Gy(e,t,n){var o=q(e)?Hi:ws,s=arguments.length<3;return o(e,N(t,4),n,s,Pt)}function zy(e,t,n){var o=q(e)?nv:ws,s=arguments.length<3;return o(e,N(t,4),n,s,Us)}function Ky(e,t){var n=q(e)?Rt:Bs;return n(e,Zr(N(t,3)))}function Jy(e){var t=q(e)?$s:U0;return t(e)}function jy(e,t,n){(n?Ce(e,t,n):t===i)?t=1:t=G(t);var o=q(e)?g0:B0;return o(e,t)}function Yy(e){var t=q(e)?_0:H0;return t(e)}function Zy(e){if(e==null)return 0;if(De(e))return Qr(e)?ln(e):e.length;var t=Ie(e);return t==rt||t==it?e.size:ou(e).length}function Xy(e,t,n){var o=q(e)?qi:q0;return n&&Ce(e,t,n)&&(t=i),o(e,N(t,3))}var Qy=J(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ce(e,t[0],t[1])?t=[]:n>2&&Ce(t[0],t[1],t[2])&&(t=[t[0]]),Zs(e,be(t,1),[])}),jr=Lv||function(){return Oe.Date.now()};function ky(e,t){if(typeof t!="function")throw new Xe(y);return e=G(e),function(){if(--e<1)return t.apply(this,arguments)}}function zf(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Ot(e,re,i,i,i,i,t)}function Kf(e,t){var n;if(typeof t!="function")throw new Xe(y);return e=G(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Cu=J(function(e,t,n){var o=ge;if(n.length){var s=Lt(n,yn(Cu));o|=we}return Ot(e,o,t,n,s)}),Jf=J(function(e,t,n){var o=ge|Fe;if(n.length){var s=Lt(n,yn(Jf));o|=we}return Ot(t,o,e,n,s)});function jf(e,t,n){t=n?i:t;var o=Ot(e,ye,i,i,i,i,i,t);return o.placeholder=jf.placeholder,o}function Yf(e,t,n){t=n?i:t;var o=Ot(e,at,i,i,i,i,i,t);return o.placeholder=Yf.placeholder,o}function Zf(e,t,n){var o,s,l,h,p,v,O=0,b=!1,E=!1,R=!0;if(typeof e!="function")throw new Xe(y);t=tt(t)||0,se(n)&&(b=!!n.leading,E="maxWait"in n,l=E?ve(tt(n.maxWait)||0,t):l,R="trailing"in n?!!n.trailing:R);function $(he){var ft=o,Tt=s;return o=s=i,O=he,h=e.apply(Tt,ft),h}function U(he){return O=he,p=Kn(j,t),b?$(he):h}function K(he){var ft=he-v,Tt=he-O,da=t-ft;return E?Ee(da,l-Tt):da}function B(he){var ft=he-v,Tt=he-O;return v===i||ft>=t||ft<0||E&&Tt>=l}function j(){var he=jr();if(B(he))return Z(he);p=Kn(j,K(he))}function Z(he){return p=i,R&&o?$(he):(o=s=i,h)}function Ge(){p!==i&&uf(p),O=0,o=v=s=p=i}function Le(){return p===i?h:Z(jr())}function ze(){var he=jr(),ft=B(he);if(o=arguments,s=this,v=he,ft){if(p===i)return U(v);if(E)return uf(p),p=Kn(j,t),$(v)}return p===i&&(p=Kn(j,t)),h}return ze.cancel=Ge,ze.flush=Le,ze}var Vy=J(function(e,t){return Ns(e,1,t)}),ew=J(function(e,t,n){return Ns(e,tt(t)||0,n)});function tw(e){return Ot(e,vt)}function Yr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Xe(y);var n=function(){var o=arguments,s=t?t.apply(this,o):o[0],l=n.cache;if(l.has(s))return l.get(s);var h=e.apply(this,o);return n.cache=l.set(s,h)||l,h};return n.cache=new(Yr.Cache||At),n}Yr.Cache=At;function Zr(e){if(typeof e!="function")throw new Xe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function nw(e){return Kf(2,e)}var rw=G0(function(e,t){t=t.length==1&&q(t[0])?oe(t[0],We(N())):oe(be(t,1),We(N()));var n=t.length;return J(function(o){for(var s=-1,l=Ee(o.length,n);++s=t}),Xt=qs(function(){return arguments}())?qs:function(e){return ae(e)&&k.call(e,"callee")&&!Ts.call(e,"callee")},q=w.isArray,yw=as?We(as):E0;function De(e){return e!=null&&Xr(e.length)&&!Et(e)}function ce(e){return ae(e)&&De(e)}function ww(e){return e===!0||e===!1||ae(e)&&Re(e)==Se}var Nt=Pv||qu,mw=ls?We(ls):I0;function Aw(e){return ae(e)&&e.nodeType===1&&!Jn(e)}function Sw(e){if(e==null)return!0;if(De(e)&&(q(e)||typeof e=="string"||typeof e.splice=="function"||Nt(e)||wn(e)||Xt(e)))return!e.length;var t=Ie(e);if(t==rt||t==it)return!e.size;if(zn(e))return!ou(e).length;for(var n in e)if(k.call(e,n))return!1;return!0}function Ow(e,t){return Hn(e,t)}function bw(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?Hn(e,t,i,n):!!o}function Fu(e){if(!ae(e))return!1;var t=Re(e);return t==fr||t==jg||typeof e.message=="string"&&typeof e.name=="string"&&!Jn(e)}function xw(e){return typeof e=="number"&&Cs(e)}function Et(e){if(!se(e))return!1;var t=Re(e);return t==ar||t==No||t==Pe||t==Zg}function Qf(e){return typeof e=="number"&&e==G(e)}function Xr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Je}function se(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function ae(e){return e!=null&&typeof e=="object"}var kf=cs?We(cs):R0;function Ew(e,t){return e===t||uu(e,t,Su(t))}function Iw(e,t,n){return n=typeof n=="function"?n:i,uu(e,t,Su(t),n)}function Tw(e){return Vf(e)&&e!=+e}function Rw(e){if(h1(e))throw new H(d);return Gs(e)}function Cw(e){return e===null}function Lw(e){return e==null}function Vf(e){return typeof e=="number"||ae(e)&&Re(e)==In}function Jn(e){if(!ae(e)||Re(e)!=wt)return!1;var t=Or(e);if(t===null)return!0;var n=k.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&wr.call(n)==Iv}var Pu=hs?We(hs):C0;function Fw(e){return Qf(e)&&e>=-Je&&e<=Je}var ea=ps?We(ps):L0;function Qr(e){return typeof e=="string"||!q(e)&&ae(e)&&Re(e)==Rn}function qe(e){return typeof e=="symbol"||ae(e)&&Re(e)==lr}var wn=ds?We(ds):F0;function Pw(e){return e===i}function $w(e){return ae(e)&&Ie(e)==Cn}function Dw(e){return ae(e)&&Re(e)==Qg}var Mw=Hr(su),Nw=Hr(function(e,t){return e<=t});function ta(e){if(!e)return[];if(De(e))return Qr(e)?ut(e):$e(e);if(Pn&&e[Pn])return gv(e[Pn]());var t=Ie(e),n=t==rt?Yi:t==it?_r:mn;return n(e)}function It(e){if(!e)return e===0?e:0;if(e=tt(e),e===Ae||e===-Ae){var t=e<0?-1:1;return t*je}return e===e?e:0}function G(e){var t=It(e),n=t%1;return t===t?n?t-n:t:0}function na(e){return e?Jt(G(e),0,g):0}function tt(e){if(typeof e=="number")return e;if(qe(e))return un;if(se(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=se(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ms(e);var n=y_.test(e);return n||m_.test(e)?k_(e.slice(2),n?2:8):v_.test(e)?un:+e}function ra(e){return ht(e,Me(e))}function Uw(e){return e?Jt(G(e),-Je,Je):e===0?e:0}function Q(e){return e==null?"":He(e)}var Bw=_n(function(e,t){if(zn(t)||De(t)){ht(t,me(t),e);return}for(var n in t)k.call(t,n)&&Un(e,n,t[n])}),ia=_n(function(e,t){ht(t,Me(t),e)}),kr=_n(function(e,t,n,o){ht(t,Me(t),e,o)}),Ww=_n(function(e,t,n,o){ht(t,me(t),e,o)}),Hw=bt(eu);function qw(e,t){var n=gn(e);return t==null?n:Ds(n,t)}var Gw=J(function(e,t){e=te(e);var n=-1,o=t.length,s=o>2?t[2]:i;for(s&&Ce(t[0],t[1],s)&&(o=1);++n1),l}),ht(e,mu(e),n),o&&(n=ke(n,D|z|M,e1));for(var s=t.length;s--;)hu(n,t[s]);return n});function sm(e,t){return oa(e,Zr(N(t)))}var fm=bt(function(e,t){return e==null?{}:D0(e,t)});function oa(e,t){if(e==null)return{};var n=oe(mu(e),function(o){return[o]});return t=N(t),Xs(e,n,function(o,s){return t(o,s[0])})}function am(e,t,n){t=Dt(t,e);var o=-1,s=t.length;for(s||(s=1,e=i);++ot){var o=e;e=t,t=o}if(n||e%1||t%1){var s=Ls();return Ee(e+s*(t-e+Q_("1e-"+((s+"").length-1))),t)}return au(e,t)}var mm=vn(function(e,t,n){return t=t.toLowerCase(),e+(n?aa(t):t)});function aa(e){return Mu(Q(e).toLowerCase())}function la(e){return e=Q(e),e&&e.replace(S_,lv).replace(H_,"")}function Am(e,t,n){e=Q(e),t=He(t);var o=e.length;n=n===i?o:Jt(G(n),0,o);var s=n;return n-=t.length,n>=0&&e.slice(n,s)==t}function Sm(e){return e=Q(e),e&&n_.test(e)?e.replace(Wo,cv):e}function Om(e){return e=Q(e),e&&f_.test(e)?e.replace(Li,"\\$&"):e}var bm=vn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),xm=vn(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Em=pf("toLowerCase");function Im(e,t,n){e=Q(e),t=G(t);var o=t?ln(e):0;if(!t||o>=t)return e;var s=(t-o)/2;return Wr(Ir(s),n)+e+Wr(Er(s),n)}function Tm(e,t,n){e=Q(e),t=G(t);var o=t?ln(e):0;return t&&o>>0,n?(e=Q(e),e&&(typeof t=="string"||t!=null&&!Pu(t))&&(t=He(t),!t&&an(e))?Mt(ut(e),0,n):e.split(t,n)):[]}var Dm=vn(function(e,t,n){return e+(n?" ":"")+Mu(t)});function Mm(e,t,n){return e=Q(e),n=n==null?0:Jt(G(n),0,e.length),t=He(t),e.slice(n,n+t.length)==t}function Nm(e,t,n){var o=a.templateSettings;n&&Ce(e,t,n)&&(t=i),e=Q(e),t=kr({},t,o,mf);var s=kr({},t.imports,o.imports,mf),l=me(s),h=ji(s,l),p,v,O=0,b=t.interpolate||cr,E="__p += '",R=Zi((t.escape||cr).source+"|"+b.source+"|"+(b===Ho?__:cr).source+"|"+(t.evaluate||cr).source+"|$","g"),$="//# sourceURL="+(k.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++J_+"]")+` +`;e.replace(R,function(B,j,Z,Ge,Le,ze){return Z||(Z=Ge),E+=e.slice(O,ze).replace(O_,hv),j&&(p=!0,E+=`' + __e(`+j+`) + '`),Le&&(v=!0,E+=`'; `+Le+`; @@ -40,10 +40,10 @@ __p += '`),Z&&(E+=`' + `;var U=k.call(t,"variable")&&t.variable;if(!U)E=`with (obj) { `+E+` } -`;else if(h_.test(U))throw new H(A);E=(v?E.replace(Xg,""):E).replace(Qg,"$1").replace(kg,"$1;"),E="function("+(U||"obj")+`) { +`;else if(d_.test(U))throw new H(A);E=(v?E.replace(kg,""):E).replace(Vg,"$1").replace(e_,"$1;"),E="function("+(U||"obj")+`) { `+(U?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(p?", __e = _.escape":"")+(v?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+E+`return __p -}`;var K=ls(function(){return X(l,$+"return "+E).apply(i,h)});if(K.source=E,Cu(K))throw K;return K}function Mm(e){return Q(e).toLowerCase()}function Nm(e){return Q(e).toUpperCase()}function Um(e,t,n){if(e=Q(e),e&&(n||t===i))return yf(e);if(!e||!(t=He(t)))return e;var o=ut(e),f=ut(t),l=mf(o,f),h=Af(o,f)+1;return Mt(o,l,h).join("")}function Bm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Of(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),f=Af(o,ut(t))+1;return Mt(o,0,f).join("")}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Ci,"");if(!e||!(t=He(t)))return e;var o=ut(e),f=mf(o,ut(t));return Mt(o,f).join("")}function Hm(e,t){var n=wt,o=de;if(fe(t)){var f="separator"in t?t.separator:f;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(fn(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-an(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(f===i)return v+o;if(h&&(p+=v.length-p),Lu(f)){if(e.slice(p).search(f)){var O,b=v;for(f.global||(f=ji(f.source,Q(Wo.exec(f))+"g")),f.lastIndex=0;O=f.exec(b);)var E=O.index;v=v.slice(0,E===i?p:E)}}else if(e.indexOf(He(f),p)!=p){var R=v.lastIndexOf(f);R>-1&&(v=v.slice(0,R))}return v+o}function qm(e){return e=Q(e),e&&Vg.test(e)?e.replace(No,vv):e}var Gm=gn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),$u=ca("toUpperCase");function ss(e,t,n){return e=Q(e),t=n?i:t,t===i?hv(e)?mv(e):rv(e):e.match(t)||[]}var ls=J(function(e,t){try{return Be(e,i,t)}catch(n){return Cu(n)?n:new H(n)}}),zm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Tu(e[n],e))}),e});function Km(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(w);return[n(o[0]),o[1]]}):[],J(function(o){for(var f=-1;++fJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var f=zi(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=s[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);f&&(s.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Y,O=p[0],b=v||q(h),E=function(j){var Z=f.apply(s,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(v=b=!1);var R=this.__chain__,$=!!this.__actions__.length,U=l&&!R,K=v&&!$;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Gr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=gr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],f)}return this[n](function(h){return t.apply(q(h)?h:[],f)})}}),ct(Y.prototype,function(e,t){var n=s[t];if(n){var o=n.name+"";k.call(hn,o)||(hn[o]=[]),hn[o].push({name:t,func:n})}}),hn[Mr(i,Pe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=qv,Y.prototype.reverse=Gv,Y.prototype.value=zv,s.prototype.at=yw,s.prototype.chain=mw,s.prototype.commit=Aw,s.prototype.next=Sw,s.prototype.plant=bw,s.prototype.reverse=xw,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Ew,s.prototype.first=s.prototype.head,Ln&&(s.prototype[Ln]=Ow),s},sn=Av();qt?((qt.exports=sn)._=sn,Mi._=sn):Oe._=sn}).call(nt)}(rr,rr.exports);var xg=rr.exports;const Eg=Kn(xg);class Ig{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Eg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(er(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===er(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const a=new FormData;Io(this._form,a),u.body=a}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(a=>a.redirected?(document.location.replace(a.url),{}):a.json()).then(a=>(a.runScript&&new Function("vars","locals","form","plaid",a.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=_i().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),a)).then(a=>{if(a.pageTitle&&(document.title=a.pageTitle),a.redirectURL&&document.location.replace(a.redirectURL),a.reloadPortals&&a.reloadPortals.length>0)for(const c of a.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(a.updatePortals&&a.updatePortals.length>0)for(const c of a.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return a.pushState?_i().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(a.pushState).go():(this._loadPortalBody&&a.body||a.body&&this._updateRootTemplate(a.body),a)}).catch(a=>{console.log(a),this.isIgnoreError(a)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=er(window.location.href);this._buildPushStateResult=tg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return bg.applyPatch(u,i)}encodeObjectToQuery(u,i){return rg(u,i)}isRawQuerySubset(u,i,a){return ug(u,i,a)}}function _i(){return new Ig}const Tg={mounted:(r,u,i)=>{var F,P;let a=r;i.component&&(a=(P=(F=i.component)==null?void 0:F.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",w=gt.parse(location.hash)[c];let A="";Array.isArray(w)?A=w[0]||"":A=w||"";const T=A.split("_");T.length>=2&&(a.scrollTop=parseInt(T[0]),a.scrollLeft=parseInt(T[1])),a.addEventListener("scroll",Yu(function(){const D=gt.parse(location.hash);D[c]=a.scrollTop+"_"+a.scrollLeft,location.hash=gt.stringify(D)},200))}},Rg={mounted:(r,u)=>{const[i,a]=u.value;Object.assign(i,a)}},ir=new Map,Cg=window.fetch;function Lg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,a]=u,c=fi();ir.set(c,{resource:i,config:a}),r.onRequest&&r.onRequest(c,i,a);try{const d=await Cg(...u);return d.clone().json().then(()=>{const T=ir.get(c);if(r.onResponse&&T){const F=T.resource instanceof URL?T.resource.toString():T.resource;r.onResponse(c,d,F,T.config)}ir.delete(c)}),d}catch(d){throw console.error("Fetch error:",d),ir.delete(c),d}})}const Pg={created(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Fg={beforeMount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},$g={mounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Dg={beforeUpdate(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Mg={updated(r,u,i,a){u.value({el:r,binding:u,vnode:i,prevVnode:a,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ng={beforeUnmount(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}},Ug={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,watch:I.watch,watchEffect:I.watchEffect,ref:I.ref,reactive:I.reactive})}};var Po={exports:{}};function vi(){}vi.prototype={on:function(r,u,i){var a=this.e||(this.e={});return(a[r]||(a[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var a=this;function c(){a.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),a=0,c=i.length;for(a;a=0)u||(u={}),u.__uniqueId=fi(),this._stack[this._currentIndex]={state:u,unused:i,url:a};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,a)}onPopState(u){const i=this._stack.findIndex(a=>!u.state&&!a.state||a.state&&u.state&&a.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let wi=Ht;class Wg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(this.progressBarObj.value=100,await og(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Hg=I.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=I.shallowRef(null),i=I.reactive({});I.provide("form",i);const a=T=>{u.value=oi(T,i)};I.provide("updateRootTemplate",a);const c=I.reactive({__emitter:new Bg,__history:wi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>_i().updateRootTemplate(a).vars(c);I.provide("plaid",d),I.provide("vars",c);const w=I.ref(!1);I.provide("isFetching",w);const A=new Wg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Lg({onRequest(T,F,P){A.start({resource:F})},onResponse(T,F,P,D){A.end({resource:P})}}),I.onMounted(()=>{a(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{w.value=!0}),window.addEventListener("fetchEnd",()=>{w.value=!1}),window.addEventListener("popstate",T=>{d().onpopstate(T)})}),{current:u}},template:''}),qg={install(r){r.component("GoPlaidScope",dl),r.component("GoPlaidPortal",fg),r.component("GoPlaidListener",ag),r.component("ParentSizeObserver",sg),r.directive("keep-scroll",Tg),r.directive("assign",Rg),r.directive("on-created",Pg),r.directive("before-mount",Fg),r.directive("on-mounted",$g),r.directive("before-update",Dg),r.directive("on-updated",Mg),r.directive("before-unmount",Ng),r.directive("on-unmounted",Ug),r.component("GlobalEvents",_s)}};function Gg(r){const u=I.createApp(Hg,{initialTemplate:r});return u.use(qg),u}const Fo=document.getElementById("app");if(!Fo)throw new Error("#app required");const zg={},$o=Gg(Fo.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r($o,zg);$o.mount("#app")}); +}`;var K=ha(function(){return X(l,$+"return "+E).apply(i,h)});if(K.source=E,Fu(K))throw K;return K}function Um(e){return Q(e).toLowerCase()}function Bm(e){return Q(e).toUpperCase()}function Wm(e,t,n){if(e=Q(e),e&&(n||t===i))return ms(e);if(!e||!(t=He(t)))return e;var o=ut(e),s=ut(t),l=As(o,s),h=Ss(o,s)+1;return Mt(o,l,h).join("")}function Hm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,bs(e)+1);if(!e||!(t=He(t)))return e;var o=ut(e),s=Ss(o,ut(t))+1;return Mt(o,0,s).join("")}function qm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Fi,"");if(!e||!(t=He(t)))return e;var o=ut(e),s=As(o,ut(t));return Mt(o,s).join("")}function Gm(e,t){var n=yt,o=de;if(se(t)){var s="separator"in t?t.separator:s;n="length"in t?G(t.length):n,o="omission"in t?He(t.omission):o}e=Q(e);var l=e.length;if(an(e)){var h=ut(e);l=h.length}if(n>=l)return e;var p=n-ln(o);if(p<1)return o;var v=h?Mt(h,0,p).join(""):e.slice(0,p);if(s===i)return v+o;if(h&&(p+=v.length-p),Pu(s)){if(e.slice(p).search(s)){var O,b=v;for(s.global||(s=Zi(s.source,Q(qo.exec(s))+"g")),s.lastIndex=0;O=s.exec(b);)var E=O.index;v=v.slice(0,E===i?p:E)}}else if(e.indexOf(He(s),p)!=p){var R=v.lastIndexOf(s);R>-1&&(v=v.slice(0,R))}return v+o}function zm(e){return e=Q(e),e&&t_.test(e)?e.replace(Bo,wv):e}var Km=vn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Mu=pf("toUpperCase");function ca(e,t,n){return e=Q(e),t=n?i:t,t===i?dv(e)?Sv(e):uv(e):e.match(t)||[]}var ha=J(function(e,t){try{return Be(e,i,t)}catch(n){return Fu(n)?n:new H(n)}}),Jm=bt(function(e,t){return Ze(t,function(n){n=pt(n),St(e,n,Cu(e[n],e))}),e});function jm(e){var t=e==null?0:e.length,n=N();return e=t?oe(e,function(o){if(typeof o[1]!="function")throw new Xe(y);return[n(o[0]),o[1]]}):[],J(function(o){for(var s=-1;++sJe)return[];var n=g,o=Ee(e,g);t=N(t),e-=g;for(var s=Ji(o,t);++n0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(g)},ct(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),s=a[o?"take"+(t=="last"?"Right":""):t],l=o||/^find/.test(t);s&&(a.prototype[t]=function(){var h=this.__wrapped__,p=o?[1]:arguments,v=h instanceof Y,O=p[0],b=v||q(h),E=function(j){var Z=s.apply(a,Ct([j],p));return o&&R?Z[0]:Z};b&&n&&typeof O=="function"&&O.length!=1&&(v=b=!1);var R=this.__chain__,$=!!this.__actions__.length,U=l&&!R,K=v&&!$;if(!l&&b){h=K?h:new Y(this);var B=e.apply(h,p);return B.__actions__.push({func:Kr,args:[E],thisArg:i}),new Qe(B,R)}return U&&K?e.apply(this,p):(B=this.thru(E),U?o?B.value()[0]:B.value():B)})}),Ze(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);a.prototype[e]=function(){var s=arguments;if(o&&!this.__chain__){var l=this.value();return t.apply(q(l)?l:[],s)}return this[n](function(h){return t.apply(q(h)?h:[],s)})}}),ct(Y.prototype,function(e,t){var n=a[t];if(n){var o=n.name+"";k.call(dn,o)||(dn[o]=[]),dn[o].push({name:t,func:n})}}),dn[Ur(i,Fe).name]=[{name:"wrapper",func:i}],Y.prototype.clone=zv,Y.prototype.reverse=Kv,Y.prototype.value=Jv,a.prototype.at=Ay,a.prototype.chain=Sy,a.prototype.commit=Oy,a.prototype.next=by,a.prototype.plant=Ey,a.prototype.reverse=Iy,a.prototype.toJSON=a.prototype.valueOf=a.prototype.value=Ty,a.prototype.first=a.prototype.head,Pn&&(a.prototype[Pn]=xy),a},cn=Ov();qt?((qt.exports=cn)._=cn,Ui._=cn):Oe._=cn}).call(nt)}(ur,ur.exports);var Ig=ur.exports;const Tg=jn(Ig);class Rg{constructor(){ee(this,"_eventFuncID",{id:"__reload__"});ee(this,"_url");ee(this,"_method");ee(this,"_vars");ee(this,"_locals");ee(this,"_loadPortalBody",!1);ee(this,"_form",{});ee(this,"_popstate");ee(this,"_pushState");ee(this,"_location");ee(this,"_updateRootTemplate");ee(this,"_buildPushStateResult");ee(this,"_beforeFetch");ee(this,"parent");ee(this,"lodash",Tg);ee(this,"ignoreErrors",["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"]);ee(this,"isIgnoreError",u=>{var i;return u instanceof Error?(i=this.ignoreErrors)==null?void 0:i.includes(u.message):!1})}eventFunc(u){return this._eventFuncID.id=u,this}updateRootTemplate(u){return this._updateRootTemplate=u,this}eventFuncID(u){return this._eventFuncID=u,this}reload(){return this._eventFuncID.id="__reload__",this}url(u){return this._url=u,this}vars(u){return this._vars=u,this}loadPortalBody(u){return this._loadPortalBody=u,this}locals(u){return this._locals=u,this}calcValue(u){return typeof u=="function"?u(this):u}query(u,i){return this._location||(this._location={}),this._location.query||(this._location.query={}),this._location.query[u]=this.calcValue(i),this}mergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=u,this}clearMergeQuery(u){return this._location||(this._location={}),this._location.mergeQuery=!0,this._location.clearMergeQueryKeys=u,this}location(u){return this._location=u,this}stringQuery(u){return this._location||(this._location={}),this._location.stringQuery=this.calcValue(u),this}stringifyOptions(u){return this._location||(this._location={}),this._location.stringifyOptions=this.calcValue(u),this}pushState(u){return this._pushState=this.calcValue(u),this}queries(u){return this._location||(this._location={}),this._location.query=u,this}pushStateURL(u){return this._location||(this._location={}),this._location.url=this.calcValue(u),this.pushState(!0),this}form(u){return this._form=u,this}fieldValue(u,i){if(!this._form)throw new Error("form not exist");return this._form[u]=this.calcValue(i),this}beforeFetch(u){return this._beforeFetch=u,this}popstate(u){return this._popstate=u,this}run(u){return typeof u=="function"?u(this):new Function(u).apply(this),this}method(u){return this._method=u,this}buildFetchURL(){return this.ensurePushStateResult(),this._buildPushStateResult.eventURL}buildPushStateArgs(){return this.ensurePushStateResult(),this._buildPushStateResult.pushStateArgs}onpopstate(u){return!u||!u.state?this.popstate(!0).url(nr(window.location.href)).reload().go():this.popstate(!0).location(u.state).reload().go()}runPushState(){if(this._popstate!==!0&&this._pushState===!0){const u=this.buildPushStateArgs();if(u){if(u.length<3||u[2]===nr(window.location.href)){window.history.replaceState(...u);return}window.history.pushState(...u)}}}go(){this._eventFuncID.id=="__reload__"&&(this._buildPushStateResult=null),this.runPushState();let u={method:"POST",redirect:"follow"};if(this._method&&(u.method=this._method),u.method==="POST"){const f=new FormData;Ro(this._form,f),u.body=f}window.dispatchEvent(new Event("fetchStart"));let i=this.buildFetchURL();return this._beforeFetch&&([i,u]=this._beforeFetch({b:this,url:i,opts:u})),fetch(i,u).then(f=>f.redirected?(document.location.replace(f.url),{}):f.json()).then(f=>(f.runScript&&new Function("vars","locals","form","plaid",f.runScript).apply(this,[this._vars,this._locals,this._form,()=>{const c=yi().vars(this._vars).locals(this._locals).form(this._form).updateRootTemplate(this._updateRootTemplate);return c.parent=this,c}]),f)).then(f=>{if(f.pageTitle&&(document.title=f.pageTitle),f.redirectURL&&document.location.replace(f.redirectURL),f.reloadPortals&&f.reloadPortals.length>0)for(const c of f.reloadPortals){const d=window.__goplaid.portals[c];d&&d.reload()}if(f.updatePortals&&f.updatePortals.length>0)for(const c of f.updatePortals){const{updatePortalTemplate:d}=window.__goplaid.portals[c.name];d&&d(c.body)}return f.pushState?yi().updateRootTemplate(this._updateRootTemplate).reload().pushState(!0).location(f.pushState).go():(this._loadPortalBody&&f.body||f.body&&this._updateRootTemplate(f.body),f)}).catch(f=>{console.log(f),this.isIgnoreError(f)||alert("Unknown Error")}).finally(()=>{window.dispatchEvent(new Event("fetchEnd"))})}ensurePushStateResult(){if(this._buildPushStateResult)return;const u=nr(window.location.href);this._buildPushStateResult=rg({...this._eventFuncID,location:this._location},this._url||u)}emit(u,...i){this._vars&&this._vars.__emitter.emit(u,...i)}applyJsonPatch(u,i){return Eg.applyPatch(u,i)}encodeObjectToQuery(u,i){return ug(u,i)}isRawQuerySubset(u,i,f){return sg(u,i,f)}}function yi(){return new Rg}const Cg={mounted:(r,u,i)=>{var F,P;let f=r;i.component&&(f=(P=(F=i.component)==null?void 0:F.proxy)==null?void 0:P.$el);const c=u.arg||"scroll",y=gt.parse(location.hash)[c];let A="";Array.isArray(y)?A=y[0]||"":A=y||"";const I=A.split("_");I.length>=2&&(f.scrollTop=parseInt(I[0]),f.scrollLeft=parseInt(I[1])),f.addEventListener("scroll",Xu(function(){const D=gt.parse(location.hash);D[c]=f.scrollTop+"_"+f.scrollLeft,location.hash=gt.stringify(D)},200))}},Lg={mounted:(r,u)=>{const[i,f]=u.value;Object.assign(i,f)}},or=new Map,Fg=window.fetch;function Pg(r){typeof window.__vitest_environment__<"u"||(window.fetch=async function(...u){const[i,f]=u,c=ai();or.set(c,{resource:i,config:f}),r.onRequest&&r.onRequest(c,i,f);try{const d=await Fg(...u);return d.clone().json().then(()=>{const I=or.get(c);if(r.onResponse&&I){const F=I.resource instanceof URL?I.resource.toString():I.resource;r.onResponse(c,d,F,I.config)}or.delete(c)}),d}catch(d){throw console.error("Fetch error:",d),or.delete(c),d}})}const nn=(r,u,i,f)=>{const c=[],d=I=>{const F=()=>{I();const P=c.indexOf(F);P>-1&&c.splice(P,1)};return c.unshift(F),F};f({el:r,binding:u,vnode:i,window,watch:(...I)=>d(T.watch(...I)),watchEffect:(...I)=>d(T.watchEffect(...I)),ref:T.ref,reactive:T.reactive}),r.__stopFunctions=c},rn=r=>({...r,unmounted(u){const i=u.__stopFunctions;i&&i.length>0&&[...i].forEach(c=>c())}}),$g=rn({created(r,u,i){nn(r,u,i,u.value)}}),Dg=rn({beforeMount(r,u,i){nn(r,u,i,u.value)}}),Mg=rn({mounted(r,u,i){nn(r,u,i,u.value)}}),Ng=rn({beforeUpdate(r,u,i,f){nn(r,u,i,c=>u.value({...c,prevVnode:f}))}}),Ug=rn({updated(r,u,i,f){nn(r,u,i,c=>u.value({...c,prevVnode:f}))}}),Bg=rn({beforeUnmount(r,u,i){nn(r,u,i,u.value)}}),Wg={unmounted(r,u,i){u.value({el:r,binding:u,vnode:i,window,ref:T.ref,reactive:T.reactive})}};var $o={exports:{}};function wi(){}wi.prototype={on:function(r,u,i){var f=this.e||(this.e={});return(f[r]||(f[r]=[])).push({fn:u,ctx:i}),this},once:function(r,u,i){var f=this;function c(){f.off(r,c),u.apply(i,arguments)}return c._=u,this.on(r,c,i)},emit:function(r){var u=[].slice.call(arguments,1),i=((this.e||(this.e={}))[r]||[]).slice(),f=0,c=i.length;for(f;f=0)u||(u={}),u.__uniqueId=ai(),this._stack[this._currentIndex]={state:u,unused:i,url:f};else throw new Error("Invalid state index for replaceState "+JSON.stringify(u)+" stack:"+JSON.stringify(this._stack));this.originalReplaceState(u,i,f)}onPopState(u){const i=this._stack.findIndex(f=>!u.state&&!f.state||f.state&&u.state&&f.state.__uniqueId===u.state.__uniqueId);if(ithis._currentIndex,i===-1)throw new Error("Invalid state index for popstate "+JSON.stringify(u.state)+" stack:"+JSON.stringify(this._stack));this._currentIndex=i}stack(){return this._stack}currentIndex(){return this._currentIndex}current(){return this._stack[this._currentIndex]}last(){return this._currentIndex===0?null:this._stack[this._currentIndex-1]}};ee(Ht,"instance",null);let mi=Ht;class qg{constructor({progressBarObj:u,fetchParamMatchList:i}){ee(this,"progressBarObj");ee(this,"fetchParamMatchList");ee(this,"maxStackCount");ee(this,"curStackCount");ee(this,"defaultProgress");this.progressBarObj=u,this.fetchParamMatchList=i,this.maxStackCount=0,this.curStackCount=0,this.defaultProgress=20}start({resource:u}={}){this.isMatchedKeyword(u)&&(this.maxStackCount++,this.curStackCount++,this.progressBarObj.show=!0,this.progressBarObj.value=this.defaultProgress)}end({resource:u}={}){this.isMatchedKeyword(u)&&this.curStackCount!==0&&(this.curStackCount--,this.increaseProgress())}complete(){this.curStackCount=0,this.increaseProgress()}reset(){this.progressBarObj.value=0,this.curStackCount=0,this.maxStackCount=0}hideAndReset(){this.progressBarObj.show=!1,this.reset()}async increaseProgress(){this.curStackCount>0?this.progressBarObj.value=Number(((this.maxStackCount-this.curStackCount)/this.maxStackCount*80).toFixed(2))+this.defaultProgress:(this.progressBarObj.value=100,await fg(150),this.progressBarObj.value=0,this.progressBarObj.show=!1,this.maxStackCount=0)}isMatchedKeyword(u){return u===void 0?!0:typeof u!="string"?!1:this.fetchParamMatchList[0]==="*"?!0:this.fetchParamMatchList.some(i=>u.indexOf(i)>-1)}}const Gg=T.defineComponent({props:{initialTemplate:{type:String,required:!0}},setup(r){const u=T.shallowRef(null),i=T.reactive({});T.provide("form",i);const f=I=>{u.value=fi(I,i)};T.provide("updateRootTemplate",f);const c=T.reactive({__emitter:new Hg,__history:mi.getInstance(),globalProgressBar:{show:!0,value:0}}),d=()=>yi().updateRootTemplate(f).vars(c);T.provide("plaid",d),T.provide("vars",c);const y=T.ref(!1);T.provide("isFetching",y);const A=new qg({progressBarObj:c.globalProgressBar,fetchParamMatchList:["__execute_event__=__reload__"]});return A.start(),Pg({onRequest(I,F,P){A.start({resource:F})},onResponse(I,F,P,D){A.end({resource:P})}}),T.onMounted(()=>{f(r.initialTemplate),A.end(),window.addEventListener("fetchStart",()=>{y.value=!0}),window.addEventListener("fetchEnd",()=>{y.value=!1}),window.addEventListener("popstate",I=>{d().onpopstate(I)})}),{current:u}},template:''}),zg={install(r){r.component("GoPlaidScope",_l),r.component("GoPlaidPortal",ag),r.component("GoPlaidListener",lg),r.component("ParentSizeObserver",cg),r.directive("keep-scroll",Cg),r.directive("assign",Lg),r.directive("on-created",$g),r.directive("before-mount",Dg),r.directive("on-mounted",Mg),r.directive("before-update",Ng),r.directive("on-updated",Ug),r.directive("before-unmount",Bg),r.directive("on-unmounted",Wg),r.component("GlobalEvents",ya)}};function Kg(r){const u=T.createApp(Gg,{initialTemplate:r});return u.use(zg),u}const Do=document.getElementById("app");if(!Do)throw new Error("#app required");const Jg={},Mo=Kg(Do.innerHTML);for(const r of window.__goplaidVueComponentRegisters||[])r(Mo,Jg);Mo.mount("#app")}); diff --git a/corejs/src/__tests__/lifecycle.spec.ts b/corejs/src/__tests__/lifecycle.spec.ts index 929f450..0ed48d1 100644 --- a/corejs/src/__tests__/lifecycle.spec.ts +++ b/corejs/src/__tests__/lifecycle.spec.ts @@ -28,28 +28,141 @@ describe('lifecycle', () => {

{{vars.hello}}

{{vars.hello2}}

{{vars.hello3}}

-
- + + + `) + await nextTick() + console.log(wrapper.html()) + + { + const btn1: any = wrapper.find('#btn1') + await btn1.trigger('click') + expect(wrapper.find('h1').text()).toEqual('123') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h3').text()).toEqual('123') + expect(wrapper.find('h4').text()).toEqual('4') + } + { + const span: any = wrapper.find('span') + await span.trigger('click') + console.log('should unmounted') + + const btn2: any = wrapper.find('#btn2') + await btn2.trigger('click') + expect(wrapper.find('h1').text()).toEqual('234') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h3').text()).toEqual('123') + expect(wrapper.find('h4').text()).toEqual('4') + } + + { + const span: any = wrapper.find('span') + await span.trigger('click') + console.log('should mounted') + + const btn2: any = wrapper.find('#btn2') + await btn2.trigger('click') + expect(wrapper.find('h1').text()).toEqual('234') + expect(wrapper.find('h2').text()).toEqual('234') + expect(wrapper.find('h3').text()).toEqual('234') + expect(wrapper.find('h4').text()).toEqual('6') + } + + { + const span: any = wrapper.find('span') + await span.trigger('click') + console.log('should unmounted') + + const btn2: any = wrapper.find('#btn1') + await btn2.trigger('click') + expect(wrapper.find('h1').text()).toEqual('123') + expect(wrapper.find('h2').text()).toEqual('234') + expect(wrapper.find('h3').text()).toEqual('234') + expect(wrapper.find('h4').text()).toEqual('6') + } + }) + it('watch with stop manually', async () => { + const wrapper = mountTemplate(` +

{{vars.hello}}

+

{{vars.hello2}}

+

{{vars.watchTriggerCount}}

+
+ + + + `) await nextTick() console.log(wrapper.html()) - const btn: any = wrapper.find('#btn') - await btn.trigger('click') - expect(wrapper.find('h1').text()).toEqual('123') - expect(wrapper.find('h2').text()).toEqual('123') - expect(wrapper.find('h3').text()).toEqual('123') + + { + const btn1: any = wrapper.find('#btn1') + await btn1.trigger('click') + expect(wrapper.find('h1').text()).toEqual('123') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h4').text()).toEqual('2') + } + { + const btn3: any = wrapper.find('#btn3') // stopWatch + await btn3.trigger('click') + + const btn2: any = wrapper.find('#btn2') + await btn2.trigger('click') + expect(wrapper.find('h1').text()).toEqual('234') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h4').text()).toEqual('2') + } + { + const span: any = wrapper.find('span') + await span.trigger('click') + console.log('should unmounted') + + const btn2: any = wrapper.find('#btn2') + await btn2.trigger('click') + expect(wrapper.find('h1').text()).toEqual('234') + expect(wrapper.find('h2').text()).toEqual('123') + expect(wrapper.find('h4').text()).toEqual('2') + } }) it('ref', async () => { const wrapper = mountTemplate(` diff --git a/corejs/src/lifecycle.ts b/corejs/src/lifecycle.ts index 6952bdd..c26c288 100644 --- a/corejs/src/lifecycle.ts +++ b/corejs/src/lifecycle.ts @@ -1,43 +1,95 @@ import { type Directive, watch, watchEffect, ref, reactive } from 'vue' -export const runOnCreated: Directive = { - created(el, binding, vnode) { - binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) +const handleAutoUnmounting = ( + el: HTMLElement, + binding: any, + vnode: any, + callback: (params: any) => void +) => { + const stopFunctions: Function[] = [] + + const createWrappedStop = (stop: Function) => { + const wrappedStop = () => { + stop() + const index = stopFunctions.indexOf(wrappedStop) + if (index > -1) { + stopFunctions.splice(index, 1) + } + } + stopFunctions.unshift(wrappedStop) + return wrappedStop } + + const wrappedWatch = (...args: Parameters) => { + return createWrappedStop(watch(...args)) + } + + const wrappedWatchEffect = (...args: Parameters) => { + return createWrappedStop(watchEffect(...args)) + } + + callback({ + el, + binding, + vnode, + window, + watch: wrappedWatch, + watchEffect: wrappedWatchEffect, + ref, + reactive + }) + ;(el as any).__stopFunctions = stopFunctions } -export const runBeforeMount: Directive = { +const withAutoUnmounting = (directive: Partial): Directive => ({ + ...directive, + unmounted(el) { + const stopFunctions = (el as any).__stopFunctions as Function[] + if (stopFunctions && stopFunctions.length > 0) { + const stopFunctionsCopy = [...stopFunctions] + stopFunctionsCopy.forEach((stop) => stop()) + } + } +}) + +export const runOnCreated: Directive = withAutoUnmounting({ + created(el, binding, vnode) { + handleAutoUnmounting(el, binding, vnode, binding.value) + } +}) + +export const runBeforeMount: Directive = withAutoUnmounting({ beforeMount(el, binding, vnode) { - binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + handleAutoUnmounting(el, binding, vnode, binding.value) } -} +}) -export const runOnMounted: Directive = { +export const runOnMounted: Directive = withAutoUnmounting({ mounted(el, binding, vnode) { - binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + handleAutoUnmounting(el, binding, vnode, binding.value) } -} +}) -export const runBeforeUpdate: Directive = { +export const runBeforeUpdate: Directive = withAutoUnmounting({ beforeUpdate(el, binding, vnode, prevVnode) { - binding.value({ el, binding, vnode, prevVnode, window, watch, watchEffect, ref, reactive }) + handleAutoUnmounting(el, binding, vnode, (params) => binding.value({ ...params, prevVnode })) } -} +}) -export const runOnUpdated: Directive = { +export const runOnUpdated: Directive = withAutoUnmounting({ updated(el, binding, vnode, prevVnode) { - binding.value({ el, binding, vnode, prevVnode, window, watch, watchEffect, ref, reactive }) + handleAutoUnmounting(el, binding, vnode, (params) => binding.value({ ...params, prevVnode })) } -} +}) -export const runBeforeUnmount: Directive = { +export const runBeforeUnmount: Directive = withAutoUnmounting({ beforeUnmount(el, binding, vnode) { - binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + handleAutoUnmounting(el, binding, vnode, binding.value) } -} +}) export const runOnUnmounted: Directive = { unmounted(el, binding, vnode) { - binding.value({ el, binding, vnode, window, watch, watchEffect, ref, reactive }) + binding.value({ el, binding, vnode, window, ref, reactive }) } }