(function(){var t={34:function(t,e,n){"use strict";var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},81:function(t,e,n){"use strict";var r=n(9565),s=n(9306),i=n(8551),o=n(6823),a=n(851),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(s(n))return i(r(n,t));throw new c(o(t)+" is not iterable")}},116:function(t,e,n){"use strict";var r=n(6518),s=n(9565),i=n(2652),o=n(9306),a=n(8551),c=n(1767),u=n(9539),l=n(4549),f=l("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(t){a(this);try{o(t)}catch(r){u(this,"throw",r)}if(f)return s(f,this,t);var e=c(this),n=0;return i(e,function(e,r){if(t(e,n++))return r(e)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},283:function(t,e,n){"use strict";var r=n(9504),s=n(9039),i=n(4901),o=n(9297),a=n(3724),c=n(350).CONFIGURABLE,u=n(3706),l=n(1181),f=l.enforce,h=l.get,p=String,d=Object.defineProperty,g=r("".slice),m=r("".replace),y=r([].join),v=a&&!s(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&o(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(s){}var r=f(t);return o(r,"source")||(r.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return i(this)&&h(this).source||u(this)},"toString")},350:function(t,e,n){"use strict";var r=n(3724),s=n(9297),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},397:function(t,e,n){"use strict";var r=n(7751);t.exports=r("document","documentElement")},421:function(t){"use strict";t.exports={}},507:function(t,e,n){"use strict";var r=n(9565);t.exports=function(t,e,n){var s,i,o=n?t:t.iterator,a=t.next;while(!(s=r(a,o)).done)if(i=e(s.value),void 0!==i)return i}},616:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:function(t,e,n){"use strict";var r=n(6955),s=String;t.exports=function(t){if("Symbol"===r(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},679:function(t,e,n){"use strict";var r=n(1625),s=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new s("Incorrect invocation")}},684:function(t){"use strict";t.exports=function(t,e){var n="function"==typeof Iterator&&Iterator.prototype[t];if(n)try{n.call({next:null},e).next()}catch(r){return!0}}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},757:function(t,e,n){"use strict";var r=n(7751),s=n(4901),i=n(1625),o=n(7040),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return s(e)&&i(e.prototype,a(t))}},851:function(t,e,n){"use strict";var r=n(6955),s=n(5966),i=n(4117),o=n(6269),a=n(8227),c=a("iterator");t.exports=function(t){if(!i(t))return s(t,c)||s(t,"@@iterator")||o[r(t)]}},1034:function(t,e,n){"use strict";var r=n(9565),s=n(9297),i=n(1625),o=n(5213),a=n(7979),c=RegExp.prototype;t.exports=o.correct?function(t){return t.flags}:function(t){return o.correct||!i(c,t)||s(t,"flags")?t.flags:r(a,t)}},1072:function(t,e,n){"use strict";var r=n(1828),s=n(8727);t.exports=Object.keys||function(t){return r(t,s)}},1108:function(t,e,n){"use strict";var r=n(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},1181:function(t,e,n){"use strict";var r,s,i,o=n(8622),a=n(4576),c=n(34),u=n(6699),l=n(9297),f=n(7629),h=n(6119),p=n(421),d="Object already initialized",g=a.TypeError,m=a.WeakMap,y=function(t){return i(t)?s(t):r(t,{})},v=function(t){return function(e){var n;if(!c(e)||(n=s(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}};if(o||f.state){var b=f.state||(f.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(t,e){if(b.has(t))throw new g(d);return e.facade=t,b.set(t,e),e},s=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var w=h("state");p[w]=!0,r=function(t,e){if(l(t,w))throw new g(d);return e.facade=t,u(t,w,e),e},s=function(t){return l(t,w)?t[w]:{}},i=function(t){return l(t,w)}}t.exports={set:r,get:s,has:i,enforce:y,getterFor:v}},1291:function(t,e,n){"use strict";var r=n(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},1385:function(t,e,n){"use strict";var r=n(9539);t.exports=function(t,e,n){for(var s=t.length-1;s>=0;s--)if(void 0!==t[s])try{n=r(t[s].iterator,e,n)}catch(i){e="throw",n=i}if("throw"===e)throw n;return n}},1548:function(t,e,n){"use strict";var r=n(4576),s=n(9039),i=n(9519),o=n(4215),a=r.structuredClone;t.exports=!!a&&!s(function(){if("DENO"===o&&i>92||"NODE"===o&&i>94||"BROWSER"===o&&i>97)return!1;var t=new ArrayBuffer(8),e=a(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength})},1625:function(t,e,n){"use strict";var r=n(9504);t.exports=r({}.isPrototypeOf)},1678:function(t,e,n){"use strict";var r=n(6395),s=n(6518),i=n(4576),o=n(7751),a=n(9504),c=n(9039),u=n(3392),l=n(4901),f=n(3517),h=n(4117),p=n(34),d=n(757),g=n(2652),m=n(8551),y=n(6955),v=n(9297),b=n(4659),w=n(6699),x=n(6198),S=n(2812),C=n(1034),O=n(2248),k=n(4402),A=n(8469),E=n(4483),F=n(6249),T=n(1548),P=i.Object,R=i.Array,L=i.Date,I=i.Error,D=i.TypeError,M=i.PerformanceMark,_=o("DOMException"),j=O.Map,N=O.has,U=O.get,V=O.set,B=k.Set,G=k.add,W=k.has,z=o("Object","keys"),H=a([].push),q=a((!0).valueOf),Y=a(1.1.valueOf),Z=a("".valueOf),K=a(L.prototype.getTime),X=u("structuredClone"),J="DataCloneError",Q="Transferring",$=function(t){return!c(function(){var e=new i.Set([7]),n=t(e),r=t(P(7));return n===e||!n.has(7)||!p(r)||7!==+r})&&t},tt=function(t,e){return!c(function(){var n=new e,r=t({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof e&&r.a.stack===n.stack)})},et=function(t){return!c(function(){var e=t(new i.AggregateError([1],X,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==X||3!==e.cause})},nt=i.structuredClone,rt=r||!tt(nt,I)||!tt(nt,_)||!et(nt),st=!nt&&$(function(t){return new M(X,{detail:t}).detail}),it=$(nt)||st,ot=function(t){throw new _("Uncloneable type: "+t,J)},at=function(t,e){throw new _((e||"Cloning")+" of "+t+" cannot be properly polyfilled in this engine",J)},ct=function(t,e){return it||at(e),it(t)},ut=function(){var t;try{t=new i.DataTransfer}catch(e){try{t=new i.ClipboardEvent("").clipboardData}catch(n){}}return t&&t.items&&t.files?t:null},lt=function(t,e,n){if(N(e,t))return U(e,t);var r,s,o,a,c,u,f=n||y(t);if("SharedArrayBuffer"===f)r=it?it(t):t;else{var h=i.DataView;h||l(t.slice)||at("ArrayBuffer");try{if(l(t.slice)&&!t.resizable)r=t.slice(0);else{s=t.byteLength,o="maxByteLength"in t?{maxByteLength:t.maxByteLength}:void 0,r=new ArrayBuffer(s,o),a=new h(t),c=new h(r);for(u=0;u1&&!h(arguments[1])?m(arguments[1]):void 0,s=r?r.transfer:void 0;void 0!==s&&(e=new j,n=pt(s,e));var i=ht(t,e);return n&&dt(n),i}})},1698:function(t,e,n){"use strict";var r=n(6518),s=n(4204),i=n(9835),o=n(4916),a=!o("union")||!i("union");r({target:"Set",proto:!0,real:!0,forced:a},{union:s})},1701:function(t,e,n){"use strict";var r=n(6518),s=n(9565),i=n(9306),o=n(8551),a=n(1767),c=n(9462),u=n(6319),l=n(9539),f=n(684),h=n(4549),p=n(6395),d=!p&&!f("map",function(){}),g=!p&&!d&&h("map",TypeError),m=p||d||g,y=c(function(){var t=this.iterator,e=o(s(this.next,t)),n=this.done=!!e.done;if(!n)return u(t,this.mapper,[e.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(t){o(this);try{i(t)}catch(e){l(this,"throw",e)}return g?s(g,this,t):new y(a(this),{mapper:t})}})},1767:function(t){"use strict";t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:function(t,e,n){"use strict";var r=n(9504),s=n(9297),i=n(5397),o=n(9617).indexOf,a=n(421),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);while(e.length>u)s(r,n=e[u++])&&(~o(l,n)||c(l,n));return l}},2106:function(t,e,n){"use strict";var r=n(283),s=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),s.f(t,e,n)}},2140:function(t,e,n){"use strict";var r=n(8227),s=r("toStringTag"),i={};i[s]="z",t.exports="[object z]"===String(i)},2195:function(t,e,n){"use strict";var r=n(9504),s=r({}.toString),i=r("".slice);t.exports=function(t){return i(s(t),8,-1)}},2211:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2248:function(t,e,n){"use strict";var r=n(9504),s=Map.prototype;t.exports={Map:Map,set:r(s.set),get:r(s.get),has:r(s.has),remove:r(s["delete"]),proto:s}},2360:function(t,e,n){"use strict";var r,s=n(8551),i=n(6801),o=n(8727),a=n(421),c=n(397),u=n(4055),l=n(6119),f=">",h="<",p="prototype",d="script",g=l("IE_PROTO"),m=function(){},y=function(t){return h+d+f+t+h+"/"+d+f},v=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},w=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}w="undefined"!=typeof document?document.domain&&r?v(r):b():v(r);var t=o.length;while(t--)delete w[p][o[t]];return w()};a[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(m[p]=s(t),n=new m,m[p]=null,n[g]=t):n=w(),void 0===e?n:i.f(n,e)}},2475:function(t,e,n){"use strict";var r=n(6518),s=n(8527),i=n(4916),o=!i("isSupersetOf",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:o},{isSupersetOf:s})},2489:function(t,e,n){"use strict";var r=n(6518),s=n(9565),i=n(9306),o=n(8551),a=n(1767),c=n(9462),u=n(6319),l=n(6395),f=n(9539),h=n(684),p=n(4549),d=!l&&!h("filter",function(){}),g=!l&&!d&&p("filter",TypeError),m=l||d||g,y=c(function(){var t,e,n,r=this.iterator,i=this.predicate,a=this.next;while(1){if(t=o(s(a,r)),e=this.done=!!t.done,e)return;if(n=t.value,u(r,i,[n,this.counter++],!0))return n}});r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(t){o(this);try{i(t)}catch(e){f(this,"throw",e)}return g?s(g,this,t):new y(a(this),{predicate:t})}})},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},2603:function(t,e,n){"use strict";var r=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},2652:function(t,e,n){"use strict";var r=n(6080),s=n(9565),i=n(8551),o=n(6823),a=n(4209),c=n(6198),u=n(1625),l=n(81),f=n(851),h=n(9539),p=TypeError,d=function(t,e){this.stopped=t,this.result=e},g=d.prototype;t.exports=function(t,e,n){var m,y,v,b,w,x,S,C=n&&n.that,O=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),A=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),F=r(e,C),T=function(t){return m&&h(m,"normal"),new d(!0,t)},P=function(t){return O?(i(t),E?F(t[0],t[1],T):F(t[0],t[1])):E?F(t,T):F(t)};if(k)m=t.iterator;else if(A)m=t;else{if(y=f(t),!y)throw new p(o(t)+" is not iterable");if(a(y)){for(v=0,b=c(t);b>v;v++)if(w=P(t[v]),w&&u(g,w))return w;return new d(!1)}m=l(t,y)}x=k?t.next:m.next;while(!(S=s(x,m)).done){try{w=P(S.value)}catch(R){h(m,"throw",R)}if("object"==typeof w&&w&&u(g,w))return w}return new d(!1)}},2777:function(t,e,n){"use strict";var r=n(9565),s=n(34),i=n(757),o=n(5966),a=n(4270),c=n(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var n,c=o(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},2787:function(t,e,n){"use strict";var r=n(9297),s=n(4901),i=n(8981),o=n(6119),a=n(2211),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return s(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},2796:function(t,e,n){"use strict";var r=n(9039),s=n(4901),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n===l||n!==u&&(s(e)?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function c(t,e){if(e<65534&&(t.subarray&&i||!t.subarray&&s))return String.fromCharCode.apply(null,r.shrinkBuf(t,e));for(var n="",o=0;o>>6,e[o++]=128|63&n):n<65536?(e[o++]=224|n>>>12,e[o++]=128|n>>>6&63,e[o++]=128|63&n):(e[o++]=240|n>>>18,e[o++]=128|n>>>12&63,e[o++]=128|n>>>6&63,e[o++]=128|63&n);return e},n.buf2binstring=function(t){return c(t,t.length)},n.binstring2buf=function(t){for(var e=new r.Buf8(t.length),n=0,s=e.length;n4)u[r++]=65533,n+=i-1;else{s&=2===i?31:3===i?15:7;while(i>1&&n1?u[r++]=65533:s<65536?u[r++]=s:(s-=65536,u[r++]=55296|s>>10&1023,u[r++]=56320|1023&s)}return c(u,r)},n.utf8border=function(t,e){var n;e=e||t.length,e>t.length&&(e=t.length),n=e-1;while(n>=0&&128===(192&t[n]))n--;return n<0||0===n?e:n+o[t[n]]>e?n:e}},{"./common":1}],3:[function(t,e,n){"use strict";function r(t,e,n,r){var s=65535&t,i=t>>>16&65535,o=0;while(0!==n){o=n>2e3?2e3:n,n-=o;do{s=s+e[r++]|0,i=i+s|0}while(--o);s%=65521,i%=65521}return s|i<<16}e.exports=r},{}],4:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(t,e,n){"use strict";function r(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}var s=r();function i(t,e,n,r){var i=s,o=r+n;t^=-1;for(var a=r;a>>8^i[255&(t^e[a])];return-1^t}e.exports=i},{}],6:[function(t,e,n){"use strict";function r(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}e.exports=r},{}],7:[function(t,e,n){"use strict";var r=30,s=12;e.exports=function(t,e){var n,i,o,a,c,u,l,f,h,p,d,g,m,y,v,b,w,x,S,C,O,k,A,E,F;n=t.state,i=t.next_in,E=t.input,o=i+(t.avail_in-5),a=t.next_out,F=t.output,c=a-(e-t.avail_out),u=a+(t.avail_out-257),l=n.dmax,f=n.wsize,h=n.whave,p=n.wnext,d=n.window,g=n.hold,m=n.bits,y=n.lencode,v=n.distcode,b=(1<>>24,g>>>=S,m-=S,S=x>>>16&255,0===S)F[a++]=65535&x;else{if(!(16&S)){if(0===(64&S)){x=y[(65535&x)+(g&(1<>>=S,m-=S),m<15&&(g+=E[i++]<>>24,g>>>=S,m-=S,S=x>>>16&255,!(16&S)){if(0===(64&S)){x=v[(65535&x)+(g&(1<l){t.msg="invalid distance too far back",n.mode=r;break t}if(g>>>=S,m-=S,S=a-c,O>S){if(S=O-S,S>h&&n.sane){t.msg="invalid distance too far back",n.mode=r;break t}if(k=0,A=d,0===p){if(k+=f-S,S2)F[a++]=A[k++],F[a++]=A[k++],F[a++]=A[k++],C-=3;C&&(F[a++]=A[k++],C>1&&(F[a++]=A[k++]))}else{k=a-O;do{F[a++]=F[k++],F[a++]=F[k++],F[a++]=F[k++],C-=3}while(C>2);C&&(F[a++]=F[k++],C>1&&(F[a++]=F[k++]))}break}}break}}while(i>3,i-=C,m-=C<<3,g&=(1<>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function it(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ot(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=S,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new r.Buf32(tt),e.distcode=e.distdyn=new r.Buf32(et),e.sane=1,e.back=-1,d):y}function at(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,ot(t)):y}function ct(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?y:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,at(t))):y}function ut(t,e){var n,r;return t?(r=new it,t.state=r,r.window=null,n=ct(t,e),n!==d&&(t.state=null),n):y}function lt(t){return ut(t,rt)}var ft,ht,pt=!0;function dt(t){if(pt){var e;ft=new r.Buf32(512),ht=new r.Buf32(32),e=0;while(e<144)t.lens[e++]=8;while(e<256)t.lens[e++]=9;while(e<280)t.lens[e++]=7;while(e<288)t.lens[e++]=8;a(u,t.lens,0,288,ft,0,t.work,{bits:9}),e=0;while(e<32)t.lens[e++]=5;a(l,t.lens,0,32,ht,0,t.work,{bits:5}),pt=!1}t.lencode=ft,t.lenbits=9,t.distcode=ht,t.distbits=5}function gt(t,e,n,s){var i,o=t.state;return null===o.window&&(o.wsize=1<=o.wsize?(r.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>s&&(i=s),r.arraySet(o.window,e,n-s,i,o.wnext),s-=i,s?(r.arraySet(o.window,e,n-s,s,0),o.wnext=s,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,n.check=i(n.check,Et,2,0),at=0,ct=0,n.mode=C;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&at)<<8)+(at>>8))%31){t.msg="incorrect header check",n.mode=J;break}if((15&at)!==x){t.msg="unknown compression method",n.mode=J;break}if(at>>>=4,ct-=4,St=8+(15&at),0===n.wbits)n.wbits=St;else if(St>n.wbits){t.msg="invalid window size",n.mode=J;break}n.dmax=1<>8&1),512&n.flags&&(Et[0]=255&at,Et[1]=at>>>8&255,n.check=i(n.check,Et,2,0)),at=0,ct=0,n.mode=O;case O:while(ct<32){if(0===it)break t;it--,at+=tt[nt++]<>>8&255,Et[2]=at>>>16&255,Et[3]=at>>>24&255,n.check=i(n.check,Et,4,0)),at=0,ct=0,n.mode=k;case k:while(ct<16){if(0===it)break t;it--,at+=tt[nt++]<>8),512&n.flags&&(Et[0]=255&at,Et[1]=at>>>8&255,n.check=i(n.check,Et,2,0)),at=0,ct=0,n.mode=A;case A:if(1024&n.flags){while(ct<16){if(0===it)break t;it--,at+=tt[nt++]<>>8&255,n.check=i(n.check,Et,2,0)),at=0,ct=0}else n.head&&(n.head.extra=null);n.mode=E;case E:if(1024&n.flags&&(ft=n.length,ft>it&&(ft=it),ft&&(n.head&&(St=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,tt,nt,ft,St)),512&n.flags&&(n.check=i(n.check,tt,ft,nt)),it-=ft,nt+=ft,n.length-=ft),n.length))break t;n.length=0,n.mode=F;case F:if(2048&n.flags){if(0===it)break t;ft=0;do{St=tt[nt+ft++],n.head&&St&&n.length<65536&&(n.head.name+=String.fromCharCode(St))}while(St&&ft>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=I;break;case R:while(ct<32){if(0===it)break t;it--,at+=tt[nt++]<>>=7&ct,ct-=7&ct,n.mode=Z;break}while(ct<3){if(0===it)break t;it--,at+=tt[nt++]<>>=1,ct-=1,3&at){case 0:n.mode=M;break;case 1:if(dt(n),n.mode=B,e===p){at>>>=2,ct-=2;break t}break;case 2:n.mode=N;break;case 3:t.msg="invalid block type",n.mode=J}at>>>=2,ct-=2;break;case M:at>>>=7&ct,ct-=7&ct;while(ct<32){if(0===it)break t;it--,at+=tt[nt++]<>>16^65535)){t.msg="invalid stored block lengths",n.mode=J;break}if(n.length=65535&at,at=0,ct=0,n.mode=_,e===p)break t;case _:n.mode=j;case j:if(ft=n.length,ft){if(ft>it&&(ft=it),ft>ot&&(ft=ot),0===ft)break t;r.arraySet(et,tt,nt,ft,rt),it-=ft,nt+=ft,ot-=ft,rt+=ft,n.length-=ft;break}n.mode=I;break;case N:while(ct<14){if(0===it)break t;it--,at+=tt[nt++]<>>=5,ct-=5,n.ndist=1+(31&at),at>>>=5,ct-=5,n.ncode=4+(15&at),at>>>=4,ct-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=J;break}n.have=0,n.mode=U;case U:while(n.have>>=3,ct-=3}while(n.have<19)n.lens[Ft[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,Ot={bits:n.lenbits},Ct=a(c,n.lens,0,19,n.lencode,0,n.work,Ot),n.lenbits=Ot.bits,Ct){t.msg="invalid code lengths set",n.mode=J;break}n.have=0,n.mode=V;case V:while(n.have>>24,yt=At>>>16&255,vt=65535&At,mt<=ct)break;if(0===it)break t;it--,at+=tt[nt++]<>>=mt,ct-=mt,n.lens[n.have++]=vt;else{if(16===vt){kt=mt+2;while(ct>>=mt,ct-=mt,0===n.have){t.msg="invalid bit length repeat",n.mode=J;break}St=n.lens[n.have-1],ft=3+(3&at),at>>>=2,ct-=2}else if(17===vt){kt=mt+3;while(ct>>=mt,ct-=mt,St=0,ft=3+(7&at),at>>>=3,ct-=3}else{kt=mt+7;while(ct>>=mt,ct-=mt,St=0,ft=11+(127&at),at>>>=7,ct-=7}if(n.have+ft>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=J;break}while(ft--)n.lens[n.have++]=St}}if(n.mode===J)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=J;break}if(n.lenbits=9,Ot={bits:n.lenbits},Ct=a(u,n.lens,0,n.nlen,n.lencode,0,n.work,Ot),n.lenbits=Ot.bits,Ct){t.msg="invalid literal/lengths set",n.mode=J;break}if(n.distbits=6,n.distcode=n.distdyn,Ot={bits:n.distbits},Ct=a(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,Ot),n.distbits=Ot.bits,Ct){t.msg="invalid distances set",n.mode=J;break}if(n.mode=B,e===p)break t;case B:n.mode=G;case G:if(it>=6&&ot>=258){t.next_out=rt,t.avail_out=ot,t.next_in=nt,t.avail_in=it,n.hold=at,n.bits=ct,o(t,lt),rt=t.next_out,et=t.output,ot=t.avail_out,nt=t.next_in,tt=t.input,it=t.avail_in,at=n.hold,ct=n.bits,n.mode===I&&(n.back=-1);break}for(n.back=0;;){if(At=n.lencode[at&(1<>>24,yt=At>>>16&255,vt=65535&At,mt<=ct)break;if(0===it)break t;it--,at+=tt[nt++]<>bt)],mt=At>>>24,yt=At>>>16&255,vt=65535&At,bt+mt<=ct)break;if(0===it)break t;it--,at+=tt[nt++]<>>=bt,ct-=bt,n.back+=bt}if(at>>>=mt,ct-=mt,n.back+=mt,n.length=vt,0===yt){n.mode=Y;break}if(32&yt){n.back=-1,n.mode=I;break}if(64&yt){t.msg="invalid literal/length code",n.mode=J;break}n.extra=15&yt,n.mode=W;case W:if(n.extra){kt=n.extra;while(ct>>=n.extra,ct-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=z;case z:for(;;){if(At=n.distcode[at&(1<>>24,yt=At>>>16&255,vt=65535&At,mt<=ct)break;if(0===it)break t;it--,at+=tt[nt++]<>bt)],mt=At>>>24,yt=At>>>16&255,vt=65535&At,bt+mt<=ct)break;if(0===it)break t;it--,at+=tt[nt++]<>>=bt,ct-=bt,n.back+=bt}if(at>>>=mt,ct-=mt,n.back+=mt,64&yt){t.msg="invalid distance code",n.mode=J;break}n.offset=vt,n.extra=15&yt,n.mode=H;case H:if(n.extra){kt=n.extra;while(ct>>=n.extra,ct-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=J;break}n.mode=q;case q:if(0===ot)break t;if(ft=lt-ot,n.offset>ft){if(ft=n.offset-ft,ft>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=J;break}ft>n.wnext?(ft-=n.wnext,ht=n.wsize-ft):ht=n.wnext-ft,ft>n.length&&(ft=n.length),pt=n.window}else pt=et,ht=rt-n.offset,ft=n.length;ft>ot&&(ft=ot),ot-=ft,n.length-=ft;do{et[rt++]=pt[ht++]}while(--ft);0===n.length&&(n.mode=G);break;case Y:if(0===ot)break t;et[rt++]=n.length,ot--,n.mode=G;break;case Z:if(n.wrap){while(ct<32){if(0===it)break t;it--,at|=tt[nt++]<=1;L--)if(0!==B[L])break;if(I>L&&(I=L),0===L)return g[m++]=20971520,g[m++]=20971520,v.bits=1,0;for(R=1;R0&&(t===a||1!==L))return-1;for(G[1]=0,T=1;Ti||t===u&&j>o)return 1;for(;;){k=T-M,y[P]O?(A=W[z+y[P]],E=U[V+y[P]]):(A=96,E=0),b=1<>M)+w]=k<<24|A<<16|E}while(0!==w);b=1<>=1;if(0!==b?(N&=b-1,N+=b):N=0,P++,0===--B[T]){if(T===L)break;T=e[n+y[P]]}if(T>I&&(N&S)!==x){0===M&&(M=I),C+=R,D=T-M,_=1<i||t===u&&j>o)return 1;x=N&S,g[x]=I<<24|D<<16|C-m}}return 0!==N&&(g[C+N]=T-M<<24|64<<16),v.bits=I,0}},{"../utils/common":1}],10:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(t,e,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}e.exports=r},{}],"/lib/inflate.js":[function(t,e,n){"use strict";var r=t("./zlib/inflate"),s=t("./utils/common"),i=t("./utils/strings"),o=t("./zlib/constants"),a=t("./zlib/messages"),c=t("./zlib/zstream"),u=t("./zlib/gzheader"),l=Object.prototype.toString;function f(t){if(!(this instanceof f))return new f(t);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0===(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,e.windowBits);if(n!==o.Z_OK)throw new Error(a[n]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"===typeof e.dictionary?e.dictionary=i.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(n=r.inflateSetDictionary(this.strm,e.dictionary),n!==o.Z_OK)))throw new Error(a[n])}function h(t,e){var n=new f(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}function p(t,e){return e=e||{},e.raw=!0,h(t,e)}f.prototype.push=function(t,e){var n,a,c,u,f,h=this.strm,p=this.options.chunkSize,d=this.options.dictionary,g=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?o.Z_FINISH:o.Z_NO_FLUSH,"string"===typeof t?h.input=i.binstring2buf(t):"[object ArrayBuffer]"===l.call(t)?h.input=new Uint8Array(t):h.input=t,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new s.Buf8(p),h.next_out=0,h.avail_out=p),n=r.inflate(h,o.Z_NO_FLUSH),n===o.Z_NEED_DICT&&d&&(n=r.inflateSetDictionary(this.strm,d)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),this.ended=!0,!1;h.next_out&&(0!==h.avail_out&&n!==o.Z_STREAM_END&&(0!==h.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(c=i.utf8border(h.output,h.next_out),u=h.next_out-c,f=i.buf2string(h.output,c),h.next_out=u,h.avail_out=p-u,u&&s.arraySet(h.output,h.output,c,u,0),this.onData(f)):this.onData(s.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((h.avail_in>0||0===h.avail_out)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),h.avail_out=0,!0)},f.prototype.onData=function(t){this.chunks.push(t)},f.prototype.onEnd=function(t){t===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=f,n.inflate=h,n.inflateRaw=p,n.ungzip=h},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")})},3650:function(t,e,n){"use strict";var r=n(7080),s=n(4402),i=n(9286),o=n(3789),a=n(507),c=s.add,u=s.has,l=s.remove;t.exports=function(t){var e=r(this),n=o(t).getIterator(),s=i(e);return a(n,function(t){u(e,t)?l(s,t):c(s,t)}),s}},3706:function(t,e,n){"use strict";var r=n(9504),s=n(4901),i=n(7629),o=r(Function.toString);s(i.inspectSource)||(i.inspectSource=function(t){return o(t)}),t.exports=i.inspectSource},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},3724:function(t,e,n){"use strict";var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3789:function(t,e,n){"use strict";var r=n(9306),s=n(8551),i=n(9565),o=n(1291),a=n(1767),c="Invalid size",u=RangeError,l=TypeError,f=Math.max,h=function(t,e){this.set=t,this.size=f(e,0),this.has=r(t.has),this.keys=r(t.keys)};h.prototype={getIterator:function(){return a(s(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){s(t);var e=+t.size;if(e!==e)throw new l(c);var n=o(e);if(n<0)throw new u(c);return new h(t,n)}},3838:function(t,e,n){"use strict";var r=n(7080),s=n(5170),i=n(8469),o=n(3789);t.exports=function(t){var e=r(this),n=o(t);return!(s(e)>n.size)&&!1!==i(e,function(t){if(!n.includes(t))return!1},!0)}},3853:function(t,e,n){"use strict";var r=n(6518),s=n(4449),i=n(4916),o=!i("isDisjointFrom",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:o},{isDisjointFrom:s})},3925:function(t,e,n){"use strict";var r=n(34);t.exports=function(t){return r(t)||null===t}},4055:function(t,e,n){"use strict";var r=n(4576),s=n(34),i=r.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},4114:function(t,e,n){"use strict";var r=n(6518),s=n(8981),i=n(6198),o=n(4527),a=n(6837),c=n(9039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=u||!l();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=s(this),n=i(e),r=arguments.length;a(n+r);for(var c=0;c0},a.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var t=this.buf_ptr_,e=this.input_.read(this.buf_,t,r);if(e<0)throw new Error("Unexpected end of input");if(e=8)this.val_>>>=8,this.val_|=this.buf_[this.pos_&i]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},a.prototype.readBits=function(t){32-this.bit_pos_>>this.bit_pos_&o[t];return this.bit_pos_+=t,e},e.exports=a},{}],2:[function(t,e,n){n.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),n.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},{}],3:[function(t,e,n){var r=t("./streams").BrotliInput,s=t("./streams").BrotliOutput,i=t("./bit_reader"),o=t("./dictionary"),a=t("./huffman").HuffmanCode,c=t("./huffman").BrotliBuildHuffmanTable,u=t("./context"),l=t("./prefix"),f=t("./transform"),h=8,p=16,d=256,g=704,m=26,y=6,v=2,b=8,w=255,x=1080,S=18,C=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),O=16,k=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),A=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),E=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function F(t){var e;return 0===t.readBits(1)?16:(e=t.readBits(3),e>0?17+e:(e=t.readBits(3),e>0?8+e:17))}function T(t){if(t.readBits(1)){var e=t.readBits(3);return 0===e?1:t.readBits(e)+(1<1&&0===i)throw new Error("Invalid size byte");s.meta_block_length|=i<<8*r}}else for(r=0;r4&&0===o)throw new Error("Invalid size nibble");s.meta_block_length|=o<<4*r}return++s.meta_block_length,s.input_end||s.is_metadata||(s.is_uncompressed=t.readBits(1)),s}function L(t,e,n){var r;return n.fillBitWindow(),e+=n.val_>>>n.bit_pos_&w,r=t[e].bits-b,r>0&&(n.bit_pos_+=b,e+=t[e].value,e+=n.val_>>>n.bit_pos_&(1<0){var g,m=0;if(r.readMoreInput(),r.fillBitWindow(),m+=r.val_>>>r.bit_pos_&31,r.bit_pos_+=f[m].bits,g=255&f[m].value,g>g);else{var y,v,b=g-14,w=0;if(g===p&&(w=i),u!==w&&(o=0,u=w),y=o,o>0&&(o-=2,o<<=b),o+=r.readBits(b)+3,v=o-y,s+v>e)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var x=0;x0;++p){var v,w=C[p],x=0;r.fillBitWindow(),x+=r.val_>>>r.bit_pos_&15,r.bit_pos_+=y[x].bits,v=y[x].value,d[w]=v,0!==v&&(g-=32>>v,++m)}if(1!==m&&0!==g)throw new Error("[ReadHuffmanCode] invalid num_codes or space");I(d,t,o,r)}if(i=c(e,n,b,o,t),0===i)throw new Error("[ReadHuffmanCode] BuildHuffmanTable failed: ");return i}function M(t,e,n){var r,s;return r=L(t,e,n),s=l.kBlockLengthPrefixCode[r].nbits,l.kBlockLengthPrefixCode[r].offset+n.readBits(s)}function _(t,e,n){var r;return t>>5]),this.htrees=new Uint32Array(e)}function V(t,e){var n,r,s,i={num_htrees:null,context_map:null},o=0;e.readMoreInput();var c=i.num_htrees=T(e)+1,u=i.context_map=new Uint8Array(t);if(c<=1)return i;for(n=e.readBits(1),n&&(o=e.readBits(4)+1),r=[],s=0;s=t)throw new Error("[DecodeContextMap] i >= context_map_size");u[s]=0,++s}}else u[s]=l-o,++s}return e.readBits(1)&&N(u,t),i}function B(t,e,n,r,s,i,o){var a,c=2*n,u=n,l=L(e,n*x,o);a=0===l?s[c+(1&i[u])]:1===l?s[c+(i[u]-1&1)]+1:l-2,a>=t&&(a-=t),r[n]=a,s[c+(1&i[u])]=a,++i[u]}function G(t,e,n,r,s,o){var a,c=s+1,u=n&s,l=o.pos_&i.IBUF_MASK;if(e<8||o.bit_pos_+(e<<3)0)o.readMoreInput(),r[u++]=o.readBits(8),u===c&&(t.write(r,c),u=0);else{if(o.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");while(o.bit_pos_<32)r[u]=o.val_>>>o.bit_pos_,o.bit_pos_+=8,++u,--e;if(a=o.bit_end_pos_-o.bit_pos_>>3,l+a>i.IBUF_MASK){for(var f=i.IBUF_MASK+1-l,h=0;h=c){t.write(r,c),u-=c;for(h=0;h=c){if(a=c-u,o.input_.read(r,u,a)e.buffer.length){var wt=new Uint8Array(C+nt);wt.set(e.buffer),e.buffer=wt}if(k=bt.input_end,Y=bt.is_uncompressed,bt.is_metadata)for(W(S);nt>0;--nt)S.readMoreInput(),S.readBits(8);else if(0!==nt)if(Y)S.bit_pos_=S.bit_pos_+7&-8,G(e,nt,C,h,c,S),C+=nt;else{for(n=0;n<3;++n)it[n]=T(S)+1,it[n]>=2&&(D(it[n]+2,b,n*x,S),D(m,w,n*x,S),rt[n]=M(w,n*x,S),at[n]=1);for(S.readMoreInput(),Z=S.readBits(2),K=O+(S.readBits(4)<0){var Ct,Ot,kt,At,Et,Ft,Tt,Pt,Rt,Lt,It,Dt,Mt;for(S.readMoreInput(),0===rt[1]&&(B(it[1],b,1,st,ot,at,S),rt[1]=M(w,x,S),et=z[1].htrees[st[1]]),--rt[1],Ct=L(z[1].codes,et,S),Ot=Ct>>6,Ot>=2?(Ot-=2,Tt=-1):Tt=0,kt=l.kInsertRangeLut[Ot]+(Ct>>3&7),At=l.kCopyRangeLut[Ot]+(7&Ct),Et=l.kInsertLengthPrefixCode[kt].offset+S.readBits(l.kInsertLengthPrefixCode[kt].nbits),Ft=l.kCopyLengthPrefixCode[At].offset+S.readBits(l.kCopyLengthPrefixCode[At].nbits),j=h[C-1&c],N=h[C-2&c],Rt=0;Rt4?3:Ft-2),mt=lt[gt+It],Tt=L(z[2].codes,z[2].htrees[mt],S),Tt>=K)Tt-=K,Mt=Tt&X,Tt>>=Z,Dt=1+(Tt>>1),_t=(2+(1&Tt)<E){if(!(Ft>=o.minDictionaryWordLength&&Ft<=o.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+C+" distance: "+Pt+" len: "+Ft+" bytes left: "+nt);var _t=o.offsetsByLength[Ft],jt=Pt-E-1,Nt=o.sizeBitsByLength[Ft],Ut=(1<>Nt;if(_t+=Vt*Ft,!(Bt=p){e.write(h,s);for(var Wt=0;Wt0&&(P[3&I]=Pt,++I),Ft>nt)throw new Error("Invalid backward reference. pos: "+C+" distance: "+Pt+" len: "+Ft+" bytes left: "+nt);for(Rt=0;Rt>=1;return(t&n-1)+n}function o(t,e,n,s,i){do{s-=n,t[e+s]=new r(i.bits,i.value)}while(s>0)}function a(t,e,n){var r=1<0;--S[f])l=new r(255&f,65535&w[h++]),o(t,e+p,d,v,l),p=i(p,f);for(m=b-1,g=-1,f=n+1,d=2;f<=s;++f,d<<=1)for(;S[f]>0;--S[f])(p&m)!==g&&(e+=v,y=a(S,f,n),v=1<>n),d,v,l),p=i(p,f);return b}},{}],8:[function(t,e,n){"use strict";n.byteLength=l,n.toByteArray=h,n.fromByteArray=g;for(var r=[],s=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function f(t,e,n){return 3*(e+n)/4-n}function h(t){for(var e,n=u(t),r=n[0],o=n[1],a=new i(f(t,r,o)),c=0,l=o>0?r-4:r,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;return 2===o&&(e=s[t.charCodeAt(h)]<<2|s[t.charCodeAt(h+1)]>>4,a[c++]=255&e),1===o&&(e=s[t.charCodeAt(h)]<<10|s[t.charCodeAt(h+1)]<<4|s[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e),a}function p(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function d(t,e,n){for(var r,s=[],i=e;ic?c:a+o));return 1===s?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===s&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")}s["-".charCodeAt(0)]=62,s["_".charCodeAt(0)]=63},{}],9:[function(t,e,n){function r(t,e){this.offset=t,this.nbits=e}n.kBlockLengthPrefixCode=[new r(1,2),new r(5,2),new r(9,2),new r(13,2),new r(17,3),new r(25,3),new r(33,3),new r(41,3),new r(49,4),new r(65,4),new r(81,4),new r(97,4),new r(113,5),new r(145,5),new r(177,5),new r(209,5),new r(241,6),new r(305,6),new r(369,7),new r(497,8),new r(753,9),new r(1265,10),new r(2289,11),new r(4337,12),new r(8433,13),new r(16625,24)],n.kInsertLengthPrefixCode=[new r(0,0),new r(1,0),new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,1),new r(8,1),new r(10,2),new r(14,2),new r(18,3),new r(26,3),new r(34,4),new r(50,4),new r(66,5),new r(98,5),new r(130,6),new r(194,7),new r(322,8),new r(578,9),new r(1090,10),new r(2114,12),new r(6210,14),new r(22594,24)],n.kCopyLengthPrefixCode=[new r(2,0),new r(3,0),new r(4,0),new r(5,0),new r(6,0),new r(7,0),new r(8,0),new r(9,0),new r(10,1),new r(12,1),new r(14,2),new r(18,2),new r(22,3),new r(30,3),new r(38,4),new r(54,4),new r(70,5),new r(102,5),new r(134,6),new r(198,7),new r(326,8),new r(582,9),new r(1094,10),new r(2118,24)],n.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],n.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},{}],10:[function(t,e,n){function r(t){this.buffer=t,this.pos=0}function s(t){this.buffer=t,this.pos=0}r.prototype.read=function(t,e,n){this.pos+n>this.buffer.length&&(n=this.buffer.length-this.pos);for(var r=0;rthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(t.subarray(0,e),this.pos),this.pos+=e,e},n.BrotliOutput=s},{}],11:[function(t,e,n){var r=t("./dictionary"),s=0,i=1,o=2,a=3,c=4,u=5,l=6,f=7,h=8,p=9,d=10,g=11,m=12,y=13,v=14,b=15,w=16,x=17,S=18,C=20;function O(t,e,n){this.prefix=new Uint8Array(t.length),this.transform=e,this.suffix=new Uint8Array(n.length);for(var r=0;r'),new O("",s,"\n"),new O("",a,""),new O("",s,"]"),new O("",s," for "),new O("",v,""),new O("",o,""),new O("",s," a "),new O("",s," that "),new O(" ",d,""),new O("",s,". "),new O(".",s,""),new O(" ",s,", "),new O("",b,""),new O("",s," with "),new O("",s,"'"),new O("",s," from "),new O("",s," by "),new O("",w,""),new O("",x,""),new O(" the ",s,""),new O("",c,""),new O("",s,". The "),new O("",g,""),new O("",s," on "),new O("",s," as "),new O("",s," is "),new O("",f,""),new O("",i,"ing "),new O("",s,"\n\t"),new O("",s,":"),new O(" ",s,". "),new O("",s,"ed "),new O("",C,""),new O("",S,""),new O("",l,""),new O("",s,"("),new O("",d,", "),new O("",h,""),new O("",s," at "),new O("",s,"ly "),new O(" the ",s," of "),new O("",u,""),new O("",p,""),new O(" ",d,", "),new O("",d,'"'),new O(".",s,"("),new O("",g," "),new O("",d,'">'),new O("",s,'="'),new O(" ",s,"."),new O(".com/",s,""),new O(" the ",s," of the "),new O("",d,"'"),new O("",s,". This "),new O("",s,","),new O(".",s," "),new O("",d,"("),new O("",d,"."),new O("",s," not "),new O(" ",s,'="'),new O("",s,"er "),new O(" ",g," "),new O("",s,"al "),new O(" ",g,""),new O("",s,"='"),new O("",g,'"'),new O("",d,". "),new O(" ",s,"("),new O("",s,"ful "),new O(" ",d,". "),new O("",s,"ive "),new O("",s,"less "),new O("",g,"'"),new O("",s,"est "),new O(" ",d,"."),new O("",g,'">'),new O(" ",s,"='"),new O("",d,","),new O("",s,"ize "),new O("",g,"."),new O(" ",s,""),new O(" ",s,","),new O("",d,'="'),new O("",g,'="'),new O("",s,"ous "),new O("",g,", "),new O("",d,"='"),new O(" ",d,","),new O(" ",g,'="'),new O(" ",g,", "),new O("",g,","),new O("",g,"("),new O("",g,". "),new O(" ",g,"."),new O("",g,"='"),new O(" ",g,". "),new O(" ",d,'="'),new O(" ",g,"='"),new O(" ",d,"='")];function A(t,e){return t[e]<192?(t[e]>=97&&t[e]<=122&&(t[e]^=32),1):t[e]<224?(t[e+1]^=32,2):(t[e+2]^=5,3)}n.kTransforms=k,n.kNumTransforms=k.length,n.transformDictionaryWord=function(t,e,n,s,i){var o,a=k[i].prefix,c=k[i].suffix,u=k[i].transform,l=us&&(l=s);var y=0;while(y0){var v=A(t,o);o+=v,s-=v}var b=0;while(b{const n=t.__vccOpts||t;for(const[r,s]of e)n[r]=s;return n}},6269:function(t){"use strict";t.exports={}},6279:function(t,e,n){"use strict";var r=n(6840);t.exports=function(t,e,n){for(var s in e)r(t,s,e[s],n);return t}},6319:function(t,e,n){"use strict";var r=n(8551),s=n(9539);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){s(t,"throw",o)}}},6395:function(t){"use strict";t.exports=!1},6518:function(t,e,n){"use strict";var r=n(4576),s=n(7347).f,i=n(6699),o=n(6840),a=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,l,f,h,p,d,g=t.target,m=t.global,y=t.stat;if(l=m?r:y?r[g]||a(g,{}):r[g]&&r[g].prototype,l)for(f in e){if(p=e[f],t.dontCallGetSet?(d=s(l,f),h=d&&d.value):h=l[f],n=u(m?f:g+(y?".":"#")+f,t.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;c(p,h)}(t.sham||h&&h.sham)&&i(p,"sham",!0),o(l,f,p,t)}}},6699:function(t,e,n){"use strict";var r=n(3724),s=n(4913),i=n(6980);t.exports=r?function(t,e,n){return s.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6706:function(t,e,n){"use strict";var r=n(9504),s=n(9306);t.exports=function(t,e,n){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},6801:function(t,e,n){"use strict";var r=n(3724),s=n(8686),i=n(4913),o=n(8551),a=n(5397),c=n(1072);e.f=r&&!s?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=c(e),u=s.length,l=0;while(u>l)i.f(t,n=s[l++],r[n]);return t}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},6837:function(t){"use strict";var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,n){"use strict";var r=n(4901),s=n(4913),i=n(283),o=n(9433);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(r(n)&&i(n,u,a),a.global)c?t[e]=n:o(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(l){}c?t[e]=n:s.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6955:function(t,e,n){"use strict";var r=n(2140),s=n(4901),i=n(2195),o=n(8227),a=o("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=l(e=c(t),a))?n:u?i(e):"Object"===(r=i(e))&&s(e.callee)?"Arguments":r}},6969:function(t,e,n){"use strict";var r=n(2777),s=n(757);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+""}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,n){"use strict";var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,n){"use strict";var r=n(9504),s=n(9039),i=n(2195),o=Object,a=r("".split);t.exports=s(function(){return!o("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?a(t,""):o(t)}:o},7080:function(t,e,n){"use strict";var r=n(4402).has;t.exports=function(t){return r(t),t}},7347:function(t,e,n){"use strict";var r=n(3724),s=n(9565),i=n(8773),o=n(6980),a=n(5397),c=n(6969),u=n(9297),l=n(5917),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(n){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},7476:function(t,e,n){"use strict";var r=n(2195),s=n(9504);t.exports=function(t){if("Function"===r(t))return s(t)}},7588:function(t,e,n){"use strict";var r=n(6518),s=n(9565),i=n(2652),o=n(9306),a=n(8551),c=n(1767),u=n(9539),l=n(4549),f=l("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(t){a(this);try{o(t)}catch(r){u(this,"throw",r)}if(f)return s(f,this,t);var e=c(this),n=0;i(e,function(e){t(e,n++)},{IS_RECORD:!0})}})},7604:function(t,e,n){var r;!function(){"use strict";var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(t){return a(u(t),arguments)}function o(t,e){return i.apply(null,[t].concat(e||[]))}function a(t,e){var n,r,o,a,c,u,l,f,h,p=1,d=t.length,g="";for(r=0;r=0),a.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a.width?parseInt(a.width):0);break;case"e":n=a.precision?parseFloat(n).toExponential(a.precision):parseFloat(n).toExponential();break;case"f":n=a.precision?parseFloat(n).toFixed(a.precision):parseFloat(n);break;case"g":n=a.precision?String(Number(n.toPrecision(a.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a.precision?n.substring(0,a.precision):n;break;case"t":n=String(!!n),n=a.precision?n.substring(0,a.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a.precision?n.substring(0,a.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a.precision?n.substring(0,a.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase();break}s.json.test(a.type)?g+=n:(!s.number.test(a.type)||f&&!a.sign?h="":(h=f?"+":"-",n=n.toString().replace(s.sign,"")),u=a.pad_char?"0"===a.pad_char?"0":a.pad_char.charAt(1):" ",l=a.width-(h+n).length,c=a.width&&l>0?u.repeat(l):"",g+=a.align?h+n+c:"0"===u?h+c+n:c+h+n)}return g}var c=Object.create(null);function u(t){if(c[t])return c[t];var e,n=t,r=[],i=0;while(n){if(null!==(e=s.text.exec(n)))r.push(e[0]);else if(null!==(e=s.modulo.exec(n)))r.push("%");else{if(null===(e=s.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(e[2]){i|=1;var o=[],a=e[2],u=[];if(null===(u=s.key.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1]);while(""!==(a=a.substring(u[0].length)))if(null!==(u=s.key_access.exec(a)))o.push(u[1]);else{if(null===(u=s.index_access.exec(a)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(u[1])}e[2]=o}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:e[0],param_no:e[1],keys:e[2],sign:e[3],pad_char:e[4],align:e[5],width:e[6],precision:e[7],type:e[8]})}n=n.substring(e[0].length)}return c[t]=r}e.sprintf=i,e.vsprintf=o,"undefined"!==typeof window&&(window["sprintf"]=i,window["vsprintf"]=o,r=function(){return{sprintf:i,vsprintf:o}}.call(e,n,e,t),void 0===r||(t.exports=r))}()},7629:function(t,e,n){"use strict";var r=n(6395),s=n(4576),i=n(9433),o="__core-js_shared__",a=t.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.43.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:function(t,e,n){"use strict";var r=n(6518),s=n(3440),i=n(9039),o=n(4916),a=!o("difference",function(t){return 0===t.size}),c=a||i(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size});r({target:"Set",proto:!0,real:!0,forced:c},{difference:s})},7657:function(t,e,n){"use strict";var r,s,i,o=n(9039),a=n(4901),c=n(34),u=n(2360),l=n(2787),f=n(6840),h=n(8227),p=n(6395),d=h("iterator"),g=!1;[].keys&&(i=[].keys(),"next"in i?(s=l(l(i)),s!==Object.prototype&&(r=s)):g=!0);var m=!c(r)||o(function(){var t={};return r[d].call(t)!==t});m?r={}:p&&(r=u(r)),a(r[d])||f(r,d,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},7740:function(t,e,n){"use strict";var r=n(9297),s=n(5031),i=n(7347),o=n(4913);t.exports=function(t,e,n){for(var a=s(e),c=o.f,u=i.f,l=0;l0?s(e,9007199254740991):0}},8111:function(t,e,n){"use strict";var r=n(6518),s=n(4576),i=n(679),o=n(8551),a=n(4901),c=n(2787),u=n(2106),l=n(4659),f=n(9039),h=n(9297),p=n(8227),d=n(7657).IteratorPrototype,g=n(3724),m=n(6395),y="constructor",v="Iterator",b=p("toStringTag"),w=TypeError,x=s[v],S=m||!a(x)||x.prototype!==d||!f(function(){x({})}),C=function(){if(i(this,d),c(this)===d)throw new w("Abstract class Iterator not directly constructable")},O=function(t,e){g?u(d,t,{configurable:!0,get:function(){return e},set:function(e){if(o(this),this===d)throw new w("You can't redefine this property");h(this,t)?this[t]=e:l(this,t,e)}}):d[t]=e};h(d,b)||O(b,v),!S&&h(d,y)&&d[y]!==Object||O(y,C),C.prototype=d,r({global:!0,constructor:!0,forced:S},{Iterator:C})},8227:function(t,e,n){"use strict";var r=n(4576),s=n(5745),i=n(9297),o=n(3392),a=n(4495),c=n(7040),u=r.Symbol,l=s("wks"),f=c?u["for"]||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},8237:function(t,e,n){"use strict";var r=n(6518),s=n(2652),i=n(9306),o=n(8551),a=n(1767),c=n(9539),u=n(4549),l=n(8745),f=n(9039),h=TypeError,p=f(function(){[].keys().reduce(function(){},void 0)}),d=!p&&u("reduce",h);r({target:"Iterator",proto:!0,real:!0,forced:p||d},{reduce:function(t){o(this);try{i(t)}catch(f){c(this,"throw",f)}var e=arguments.length<2,n=e?void 0:arguments[1];if(d)return l(d,this,e?[t]:[t,n]);var r=a(this),u=0;if(s(r,function(r){e?(e=!1,n=r):n=t(n,r,u),u++},{IS_RECORD:!0}),e)throw new h("Reduce of empty iterator with no initial value");return n}})},8469:function(t,e,n){"use strict";var r=n(9504),s=n(507),i=n(4402),o=i.Set,a=i.proto,c=r(a.forEach),u=r(a.keys),l=u(new o).next;t.exports=function(t,e,n){return n?s({iterator:u(t),next:l},e):c(t,e)}},8480:function(t,e,n){"use strict";var r=n(1828),s=n(8727),i=s.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},8527:function(t,e,n){"use strict";var r=n(7080),s=n(4402).has,i=n(5170),o=n(3789),a=n(507),c=n(9539);t.exports=function(t){var e=r(this),n=o(t);if(i(e)n.size?c(n.getIterator(),function(t){f(e,t)&&l(s,t)}):a(e,function(t){n.includes(t)&&l(s,t)}),s}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);e.f=s?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8981:function(t,e,n){"use strict";var r=n(7750),s=Object;t.exports=function(t){return s(r(t))}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},9286:function(t,e,n){"use strict";var r=n(4402),s=n(8469),i=r.Set,o=r.add;t.exports=function(t){var e=new i;return s(t,function(t){o(e,t)}),e}},9297:function(t,e,n){"use strict";var r=n(9504),s=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},9306:function(t,e,n){"use strict";var r=n(4901),s=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(s(t)+" is not a function")}},9429:function(t,e,n){"use strict";var r=n(4576),s=n(8574);t.exports=function(t){if(s){try{return r.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},9433:function(t,e,n){"use strict";var r=n(4576),s=Object.defineProperty;t.exports=function(t,e){try{s(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9462:function(t,e,n){"use strict";var r=n(9565),s=n(2360),i=n(6699),o=n(6279),a=n(8227),c=n(1181),u=n(5966),l=n(7657).IteratorPrototype,f=n(2529),h=n(9539),p=n(1385),d=a("toStringTag"),g="IteratorHelper",m="WrapForValidIterator",y="normal",v="throw",b=c.set,w=function(t){var e=c.getterFor(t?m:g);return o(s(l),{next:function(){var n=e(this);if(t)return n.nextHandler();if(n.done)return f(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:f(r,n.done)}catch(s){throw n.done=!0,s}},return:function(){var n=e(this),s=n.iterator;if(n.done=!0,t){var i=u(s,"return");return i?r(i,s):f(void 0,!0)}if(n.inner)try{h(n.inner.iterator,y)}catch(o){return h(s,v,o)}if(n.openIters)try{p(n.openIters,y)}catch(o){return h(s,v,o)}return s&&h(s,y),f(void 0,!0)}})},x=w(!0),S=w(!1);i(S,d,"Iterator Helper"),t.exports=function(t,e,n){var r=function(r,s){s?(s.iterator=r.iterator,s.next=r.next):s=r,s.type=e?m:g,s.returnHandlerResult=!!n,s.nextHandler=t,s.counter=0,s.done=!1,b(this,s)};return r.prototype=e?x:S,r}},9504:function(t,e,n){"use strict";var r=n(616),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);t.exports=r?o:function(t){return function(){return i.apply(t,arguments)}}},9519:function(t,e,n){"use strict";var r,s,i=n(4576),o=n(2839),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),s=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(s=+r[1]))),t.exports=s},9539:function(t,e,n){"use strict";var r=n(9565),s=n(8551),i=n(5966);t.exports=function(t,e,n){var o,a;s(t);try{if(o=i(t,"return"),!o){if("throw"===e)throw n;return n}o=r(o,t)}catch(c){a=!0,o=c}if("throw"===e)throw n;if(a)throw o;return s(o),n}},9565:function(t,e,n){"use strict";var r=n(616),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},9577:function(t,e,n){"use strict";var r=n(9928),s=n(4644),i=n(1108),o=n(1291),a=n(5854),c=s.aTypedArray,u=s.getTypedArrayConstructor,l=s.exportTypedArrayMethod,f=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),h=f&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(t){return!0}}();l("with",{with:function(t,e){var n=c(this),s=o(t),l=i(n)?a(e):+e;return r(n,u(n),s,l)}}["with"],!f||h)},9617:function(t,e,n){"use strict";var r=n(5397),s=n(5610),i=n(6198),o=function(t){return function(e,n,o){var a=r(e),c=i(a);if(0===c)return!t&&-1;var u,l=s(o,c);if(t&&n!==n){while(c>l)if(u=a[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in a)&&a[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9835:function(t){"use strict";t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1!==r.size||4!==r.values().next().value}catch(s){return!1}}},9928:function(t,e,n){"use strict";var r=n(6198),s=n(1291),i=RangeError;t.exports=function(t,e,n,o){var a=r(t),c=s(n),u=c<0?a+c:c;if(u>=a||u<0)throw new i("Incorrect index");for(var l=new e(a),f=0;ft in e}const e={},r=[],s=()=>{},i=()=>!1,o=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),a=t=>t.startsWith("onUpdate:"),c=Object.assign,u=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},l=Object.prototype.hasOwnProperty,f=(t,e)=>l.call(t,e),h=Array.isArray,d=t=>"[object Map]"===O(t),g=t=>"[object Set]"===O(t),m=t=>"[object Date]"===O(t),y=t=>"[object RegExp]"===O(t),v=t=>"function"===typeof t,b=t=>"string"===typeof t,w=t=>"symbol"===typeof t,x=t=>null!==t&&"object"===typeof t,S=t=>(x(t)||v(t))&&v(t.then)&&v(t.catch),C=Object.prototype.toString,O=t=>C.call(t),k=t=>O(t).slice(8,-1),A=t=>"[object Object]"===O(t),E=t=>b(t)&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,F=t(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),T=t=>{const e=Object.create(null);return n=>{const r=e[n];return r||(e[n]=t(n))}},P=/-(\w)/g,R=T(t=>t.replace(P,(t,e)=>e?e.toUpperCase():"")),L=/\B([A-Z])/g,I=T(t=>t.replace(L,"-$1").toLowerCase()),D=T(t=>t.charAt(0).toUpperCase()+t.slice(1)),M=T(t=>{const e=t?`on${D(t)}`:"";return e}),_=(t,e)=>!Object.is(t,e),j=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},U=t=>{const e=parseFloat(t);return isNaN(e)?t:e},V=t=>{const e=b(t)?Number(t):NaN;return isNaN(e)?t:e};let B;const G=()=>B||(B="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});function W(t){if(h(t)){const e={};for(let n=0;n{if(t){const n=t.split(H);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Z(t){let e="";if(b(t))e=t;else if(h(t))for(let n=0;n$(t,e))}const et=t=>!(!t||!0!==t["__v_isRef"]),nt=t=>b(t)?t:null==t?"":h(t)||x(t)&&(t.toString===C||!v(t.toString))?et(t)?nt(t.value):JSON.stringify(t,rt,2):String(t),rt=(t,e)=>et(e)?rt(t,e.value):d(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((t,[e,n],r)=>(t[st(e,r)+" =>"]=n,t),{})}:g(e)?{[`Set(${e.size})`]:[...e.values()].map(t=>st(t))}:w(e)?st(e):!x(e)||h(e)||A(e)?e:String(e),st=(t,e="")=>{var n;return w(t)?`Symbol(${null!=(n=t.description)?n:e})`:t};let it,ot;class at{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=it,!t&&it&&(this.index=(it.scopes||(it.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let t,e;if(this._isPaused=!0,this.scopes)for(t=0,e=this.scopes.length;t0&&0===--this._on&&(it=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){let e,n;for(this._active=!1,e=0,n=this.effects.length;e0)return;if(pt){let t=pt;pt=void 0;while(t){const e=t.next;t.next=void 0,t.flags&=-9,t=e}}let t;while(ht){let n=ht;ht=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(e){t||(t=e)}n=r}}if(t)throw t}function vt(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function bt(t){let e,n=t.depsTail,r=n;while(r){const t=r.prevDep;-1===r.version?(r===n&&(n=t),St(r),Ct(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=t}t.deps=e,t.depsTail=n}function wt(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(xt(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function xt(t){if(4&t.flags&&!(16&t.flags))return;if(t.flags&=-17,t.globalVersion===Tt)return;if(t.globalVersion=Tt,!t.isSSR&&128&t.flags&&(!t.deps&&!t._dirty||!wt(t)))return;t.flags|=2;const e=t.dep,n=ot,r=Ot;ot=t,Ot=!0;try{vt(t);const n=t.fn(t._value);(0===e.version||_(n,t._value))&&(t.flags|=128,t._value=n,e.version++)}catch(s){throw e.version++,s}finally{ot=n,Ot=r,bt(t),t.flags&=-3}}function St(t,e=!1){const{dep:n,prevSub:r,nextSub:s}=t;if(r&&(r.nextSub=s,t.prevSub=void 0),s&&(s.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let t=n.computed.deps;t;t=t.nextDep)St(t,!0)}e||--n.sc||!n.map||n.map.delete(n.key)}function Ct(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Ot=!0;const kt=[];function At(){kt.push(Ot),Ot=!1}function Et(){const t=kt.pop();Ot=void 0===t||t}function Ft(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const t=ot;ot=void 0;try{e()}finally{ot=t}}}let Tt=0;class Pt{constructor(t,e){this.sub=t,this.dep=e,this.version=e.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Rt{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ot||!Ot||ot===this.computed)return;let e=this.activeLink;if(void 0===e||e.sub!==ot)e=this.activeLink=new Pt(ot,this),ot.deps?(e.prevDep=ot.depsTail,ot.depsTail.nextDep=e,ot.depsTail=e):ot.deps=ot.depsTail=e,Lt(e);else if(-1===e.version&&(e.version=this.version,e.nextDep)){const t=e.nextDep;t.prevDep=e.prevDep,e.prevDep&&(e.prevDep.nextDep=t),e.prevDep=ot.depsTail,e.nextDep=void 0,ot.depsTail.nextDep=e,ot.depsTail=e,ot.deps===e&&(ot.deps=t)}return e}trigger(t){this.version++,Tt++,this.notify(t)}notify(t){mt();try{0;for(let t=this.subs;t;t=t.prevSub)t.sub.notify()&&t.sub.dep.notify()}finally{yt()}}}function Lt(t){if(t.dep.sc++,4&t.sub.flags){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let t=e.deps;t;t=t.nextDep)Lt(t)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const It=new WeakMap,Dt=Symbol(""),Mt=Symbol(""),_t=Symbol("");function jt(t,e,n){if(Ot&&ot){let e=It.get(t);e||It.set(t,e=new Map);let r=e.get(n);r||(e.set(n,r=new Rt),r.map=e,r.key=n),r.track()}}function Nt(t,e,n,r,s,i){const o=It.get(t);if(!o)return void Tt++;const a=t=>{t&&t.trigger()};if(mt(),"clear"===e)o.forEach(a);else{const s=h(t),i=s&&E(n);if(s&&"length"===n){const t=Number(r);o.forEach((e,n)=>{("length"===n||n===_t||!w(n)&&n>=t)&&a(e)})}else switch((void 0!==n||o.has(void 0))&&a(o.get(n)),i&&a(o.get(_t)),e){case"add":s?i&&a(o.get("length")):(a(o.get(Dt)),d(t)&&a(o.get(Mt)));break;case"delete":s||(a(o.get(Dt)),d(t)&&a(o.get(Mt)));break;case"set":d(t)&&a(o.get(Dt));break}}yt()}function Ut(t){const e=Ae(t);return e===t?e:(jt(e,"iterate",_t),Oe(t)?e:e.map(Fe))}function Vt(t){return jt(t=Ae(t),"iterate",_t),t}const Bt={__proto__:null,[Symbol.iterator](){return Gt(this,Symbol.iterator,Fe)},concat(...t){return Ut(this).concat(...t.map(t=>h(t)?Ut(t):t))},entries(){return Gt(this,"entries",t=>(t[1]=Fe(t[1]),t))},every(t,e){return zt(this,"every",t,e,void 0,arguments)},filter(t,e){return zt(this,"filter",t,e,t=>t.map(Fe),arguments)},find(t,e){return zt(this,"find",t,e,Fe,arguments)},findIndex(t,e){return zt(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return zt(this,"findLast",t,e,Fe,arguments)},findLastIndex(t,e){return zt(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return zt(this,"forEach",t,e,void 0,arguments)},includes(...t){return qt(this,"includes",t)},indexOf(...t){return qt(this,"indexOf",t)},join(t){return Ut(this).join(t)},lastIndexOf(...t){return qt(this,"lastIndexOf",t)},map(t,e){return zt(this,"map",t,e,void 0,arguments)},pop(){return Yt(this,"pop")},push(...t){return Yt(this,"push",t)},reduce(t,...e){return Ht(this,"reduce",t,e)},reduceRight(t,...e){return Ht(this,"reduceRight",t,e)},shift(){return Yt(this,"shift")},some(t,e){return zt(this,"some",t,e,void 0,arguments)},splice(...t){return Yt(this,"splice",t)},toReversed(){return Ut(this).toReversed()},toSorted(t){return Ut(this).toSorted(t)},toSpliced(...t){return Ut(this).toSpliced(...t)},unshift(...t){return Yt(this,"unshift",t)},values(){return Gt(this,"values",Fe)}};function Gt(t,e,n){const r=Vt(t),s=r[e]();return r===t||Oe(t)||(s._next=s.next,s.next=()=>{const t=s._next();return t.value&&(t.value=n(t.value)),t}),s}const Wt=Array.prototype;function zt(t,e,n,r,s,i){const o=Vt(t),a=o!==t&&!Oe(t),c=o[e];if(c!==Wt[e]){const e=c.apply(t,i);return a?Fe(e):e}let u=n;o!==t&&(a?u=function(e,r){return n.call(this,Fe(e),r,t)}:n.length>2&&(u=function(e,r){return n.call(this,e,r,t)}));const l=c.call(o,u,r);return a&&s?s(l):l}function Ht(t,e,n,r){const s=Vt(t);let i=n;return s!==t&&(Oe(t)?n.length>3&&(i=function(e,r,s){return n.call(this,e,r,s,t)}):i=function(e,r,s){return n.call(this,e,Fe(r),s,t)}),s[e](i,...r)}function qt(t,e,n){const r=Ae(t);jt(r,"iterate",_t);const s=r[e](...n);return-1!==s&&!1!==s||!ke(n[0])?s:(n[0]=Ae(n[0]),r[e](...n))}function Yt(t,e,n=[]){At(),mt();const r=Ae(t)[e].apply(t,n);return yt(),Et(),r}const Zt=t("__proto__,__v_isRef,__isVue"),Kt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>"arguments"!==t&&"caller"!==t).map(t=>Symbol[t]).filter(w));function Xt(t){w(t)||(t=String(t));const e=Ae(this);return jt(e,"has",t),e.hasOwnProperty(t)}class Jt{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){if("__v_skip"===e)return t["__v_skip"];const r=this._isReadonly,s=this._isShallow;if("__v_isReactive"===e)return!r;if("__v_isReadonly"===e)return r;if("__v_isShallow"===e)return s;if("__v_raw"===e)return n===(r?s?ge:de:s?pe:he).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const i=h(t);if(!r){let t;if(i&&(t=Bt[e]))return t;if("hasOwnProperty"===e)return Xt}const o=Reflect.get(t,e,Pe(t)?t:n);return(w(e)?Kt.has(e):Zt(e))?o:(r||jt(t,"get",e),s?o:Pe(o)?i&&E(e)?o:o.value:x(o)?r?we(o):ve(o):o)}}class Qt extends Jt{constructor(t=!1){super(!1,t)}set(t,e,n,r){let s=t[e];if(!this._isShallow){const e=Ce(s);if(Oe(n)||Ce(n)||(s=Ae(s),n=Ae(n)),!h(t)&&Pe(s)&&!Pe(n))return!e&&(s.value=n,!0)}const i=h(t)&&E(e)?Number(e)t,se=t=>Reflect.getPrototypeOf(t);function ie(t,e,n){return function(...r){const s=this["__v_raw"],i=Ae(s),o=d(i),a="entries"===t||t===Symbol.iterator&&o,c="keys"===t&&o,u=s[t](...r),l=n?re:e?Te:Fe;return!e&&jt(i,"iterate",c?Mt:Dt),{next(){const{value:t,done:e}=u.next();return e?{value:t,done:e}:{value:a?[l(t[0]),l(t[1])]:l(t),done:e}},[Symbol.iterator](){return this}}}}function oe(t){return function(...e){return"delete"!==t&&("clear"===t?void 0:this)}}function ae(t,e){const n={get(n){const r=this["__v_raw"],s=Ae(r),i=Ae(n);t||(_(n,i)&&jt(s,"get",n),jt(s,"get",i));const{has:o}=se(s),a=e?re:t?Te:Fe;return o.call(s,n)?a(r.get(n)):o.call(s,i)?a(r.get(i)):void(r!==s&&r.get(n))},get size(){const e=this["__v_raw"];return!t&&jt(Ae(e),"iterate",Dt),Reflect.get(e,"size",e)},has(e){const n=this["__v_raw"],r=Ae(n),s=Ae(e);return t||(_(e,s)&&jt(r,"has",e),jt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)},forEach(n,r){const s=this,i=s["__v_raw"],o=Ae(i),a=e?re:t?Te:Fe;return!t&&jt(o,"iterate",Dt),i.forEach((t,e)=>n.call(r,a(t),a(e),s))}};c(n,t?{add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear")}:{add(t){e||Oe(t)||Ce(t)||(t=Ae(t));const n=Ae(this),r=se(n),s=r.has.call(n,t);return s||(n.add(t),Nt(n,"add",t,t)),this},set(t,n){e||Oe(n)||Ce(n)||(n=Ae(n));const r=Ae(this),{has:s,get:i}=se(r);let o=s.call(r,t);o||(t=Ae(t),o=s.call(r,t));const a=i.call(r,t);return r.set(t,n),o?_(n,a)&&Nt(r,"set",t,n,a):Nt(r,"add",t,n),this},delete(t){const e=Ae(this),{has:n,get:r}=se(e);let s=n.call(e,t);s||(t=Ae(t),s=n.call(e,t));const i=r?r.call(e,t):void 0,o=e.delete(t);return s&&Nt(e,"delete",t,void 0,i),o},clear(){const t=Ae(this),e=0!==t.size,n=void 0,r=t.clear();return e&&Nt(t,"clear",void 0,void 0,n),r}});const r=["keys","values","entries",Symbol.iterator];return r.forEach(r=>{n[r]=ie(r,t,e)}),n}function ce(t,e){const n=ae(t,e);return(e,r,s)=>"__v_isReactive"===r?!t:"__v_isReadonly"===r?t:"__v_raw"===r?e:Reflect.get(f(n,r)&&r in e?n:e,r,s)}const ue={get:ce(!1,!1)},le={get:ce(!1,!0)},fe={get:ce(!0,!1)};const he=new WeakMap,pe=new WeakMap,de=new WeakMap,ge=new WeakMap;function me(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ye(t){return t["__v_skip"]||!Object.isExtensible(t)?0:me(k(t))}function ve(t){return Ce(t)?t:xe(t,!1,te,ue,he)}function be(t){return xe(t,!1,ne,le,pe)}function we(t){return xe(t,!0,ee,fe,de)}function xe(t,e,n,r,s){if(!x(t))return t;if(t["__v_raw"]&&(!e||!t["__v_isReactive"]))return t;const i=ye(t);if(0===i)return t;const o=s.get(t);if(o)return o;const a=new Proxy(t,2===i?r:n);return s.set(t,a),a}function Se(t){return Ce(t)?Se(t["__v_raw"]):!(!t||!t["__v_isReactive"])}function Ce(t){return!(!t||!t["__v_isReadonly"])}function Oe(t){return!(!t||!t["__v_isShallow"])}function ke(t){return!!t&&!!t["__v_raw"]}function Ae(t){const e=t&&t["__v_raw"];return e?Ae(e):t}function Ee(t){return!f(t,"__v_skip")&&Object.isExtensible(t)&&N(t,"__v_skip",!0),t}const Fe=t=>x(t)?ve(t):t,Te=t=>x(t)?we(t):t;function Pe(t){return!!t&&!0===t["__v_isRef"]}function Re(t){return Le(t,!1)}function Le(t,e){return Pe(t)?t:new Ie(t,e)}class Ie{constructor(t,e){this.dep=new Rt,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=e?t:Ae(t),this._value=e?t:Fe(t),this["__v_isShallow"]=e}get value(){return this.dep.track(),this._value}set value(t){const e=this._rawValue,n=this["__v_isShallow"]||Oe(t)||Ce(t);t=n?t:Ae(t),_(t,e)&&(this._rawValue=t,this._value=n?t:Fe(t),this.dep.trigger())}}function De(t){return Pe(t)?t.value:t}const Me={get:(t,e,n)=>"__v_raw"===e?t:De(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const s=t[e];return Pe(s)&&!Pe(n)?(s.value=n,!0):Reflect.set(t,e,n,r)}};function _e(t){return Se(t)?t:new Proxy(t,Me)}class je{constructor(t,e,n){this.fn=t,this.setter=e,this._value=void 0,this.dep=new Rt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Tt-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!e,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||ot===this))return gt(this,!0),!0}get value(){const t=this.dep.track();return xt(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ne(t,e,n=!1){let r,s;v(t)?r=t:(r=t.get,s=t.set);const i=new je(r,s,n);return i}const Ue={},Ve=new WeakMap;let Be;function Ge(t,e=!1,n=Be){if(n){let e=Ve.get(n);e||Ve.set(n,e=[]),e.push(t)}else 0}function We(t,n,r=e){const{immediate:i,deep:o,once:a,scheduler:c,augmentJob:l,call:f}=r,p=t=>o?t:Oe(t)||!1===o||0===o?ze(t,1):ze(t);let d,g,m,y,b=!1,w=!1;if(Pe(t)?(g=()=>t.value,b=Oe(t)):Se(t)?(g=()=>p(t),b=!0):h(t)?(w=!0,b=t.some(t=>Se(t)||Oe(t)),g=()=>t.map(t=>Pe(t)?t.value:Se(t)?p(t):v(t)?f?f(t,2):t():void 0)):g=v(t)?n?f?()=>f(t,2):t:()=>{if(m){At();try{m()}finally{Et()}}const e=Be;Be=d;try{return f?f(t,3,[y]):t(y)}finally{Be=e}}:s,n&&o){const t=g,e=!0===o?1/0:o;g=()=>ze(t(),e)}const x=ut(),S=()=>{d.stop(),x&&x.active&&u(x.effects,d)};if(a&&n){const t=n;n=(...e)=>{t(...e),S()}}let C=w?new Array(t.length).fill(Ue):Ue;const O=t=>{if(1&d.flags&&(d.dirty||t))if(n){const t=d.run();if(o||b||(w?t.some((t,e)=>_(t,C[e])):_(t,C))){m&&m();const e=Be;Be=d;try{const e=[t,C===Ue?void 0:w&&C[0]===Ue?[]:C,y];C=t,f?f(n,3,e):n(...e)}finally{Be=e}}}else d.run()};return l&&l(O),d=new ft(g),d.scheduler=c?()=>c(O,!1):O,y=t=>Ge(t,!1,d),m=d.onStop=()=>{const t=Ve.get(d);if(t){if(f)f(t,4);else for(const e of t)e();Ve.delete(d)}},n?i?O(!0):C=d.run():c?c(O.bind(null,!0),!0):d.run(),S.pause=d.pause.bind(d),S.resume=d.resume.bind(d),S.stop=S,S}function ze(t,e=1/0,n){if(e<=0||!x(t)||t["__v_skip"])return t;if(n=n||new Set,n.has(t))return t;if(n.add(t),e--,Pe(t))ze(t.value,e,n);else if(h(t))for(let r=0;r{ze(t,e,n)});else if(A(t)){for(const r in t)ze(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&ze(t[r],e,n)}return t}function He(t,e,n,r){try{return r?t(...r):t()}catch(s){Ye(s,e,n)}}function qe(t,e,n,r){if(v(t)){const s=He(t,e,n,r);return s&&S(s)&&s.catch(t=>{Ye(t,e,n)}),s}if(h(t)){const s=[];for(let i=0;i>>1,s=Ke[r],i=ln(s);i=ln(n)?Ke.push(t):Ke.splice(rn(e),0,t),t.flags|=1,on()}}function on(){en||(en=tn.then(fn))}function an(t){h(t)?Je.push(...t):Qe&&-1===t.id?Qe.splice($e+1,0,t):1&t.flags||(Je.push(t),t.flags|=1),on()}function cn(t,e,n=Xe+1){for(0;nln(t)-ln(e));if(Je.length=0,Qe)return void Qe.push(...t);for(Qe=t,$e=0;$enull==t.id?2&t.flags?-1:1/0:t.id;function fn(t){try{for(Xe=0;Xe{r._d&&Ks(-1);const s=dn(e);let i;try{i=t(...n)}finally{dn(s),r._d&&Ks(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function mn(t,n){if(null===hn)return t;const r=Di(hn),s=t.dirs||(t.dirs=[]);for(let i=0;it.__isTeleport,wn=t=>t&&(t.disabled||""===t.disabled),xn=t=>t&&(t.defer||""===t.defer),Sn=t=>"undefined"!==typeof SVGElement&&t instanceof SVGElement,Cn=t=>"function"===typeof MathMLElement&&t instanceof MathMLElement,On=(t,e)=>{const n=t&&t.to;if(b(n)){if(e){const t=e(n);return t}return null}return n},kn={name:"Teleport",__isTeleport:!0,process(t,e,n,r,s,i,o,a,c,u){const{mc:l,pc:f,pbc:h,o:{insert:p,querySelector:d,createText:g,createComment:m}}=u,y=wn(e.props);let{shapeFlag:v,children:b,dynamicChildren:w}=e;if(null==t){const t=e.el=g(""),u=e.anchor=g("");p(t,n,r),p(u,n,r);const f=(t,e)=>{16&v&&(s&&s.isCE&&(s.ce._teleportTarget=t),l(b,t,e,s,i,o,a,c))},h=()=>{const t=e.target=On(e.props,d),n=Pn(t,e,g,p);t&&("svg"!==o&&Sn(t)?o="svg":"mathml"!==o&&Cn(t)&&(o="mathml"),y||(f(t,n),Tn(e,!1)))};y&&(f(n,u),Tn(e,!0)),xn(e.props)?(e.el.__isMounted=!1,hs(()=>{h(),delete e.el.__isMounted},i)):h()}else{if(xn(e.props)&&!1===t.el.__isMounted)return void hs(()=>{kn.process(t,e,n,r,s,i,o,a,c,u)},i);e.el=t.el,e.targetStart=t.targetStart;const l=e.anchor=t.anchor,p=e.target=t.target,g=e.targetAnchor=t.targetAnchor,m=wn(t.props),v=m?n:p,b=m?l:g;if("svg"===o||Sn(p)?o="svg":("mathml"===o||Cn(p))&&(o="mathml"),w?(h(t.dynamicChildren,w,v,s,i,o,a),vs(t,e,!0)):c||f(t,e,v,b,s,i,o,a,!1),y)m?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):An(e,n,l,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const t=e.target=On(e.props,d);t&&An(e,t,null,u,0)}else m&&An(e,p,g,u,1);Tn(e,y)}},remove(t,e,n,{um:r,o:{remove:s}},i){const{shapeFlag:o,children:a,anchor:c,targetStart:u,targetAnchor:l,target:f,props:h}=t;if(f&&(s(u),s(l)),i&&s(c),16&o){const t=i||!wn(h);for(let s=0;s{t.isMounted=!0}),ur(()=>{t.isUnmounting=!0}),t}const Dn=[Function,Array],Mn={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dn,onEnter:Dn,onAfterEnter:Dn,onEnterCancelled:Dn,onBeforeLeave:Dn,onLeave:Dn,onAfterLeave:Dn,onLeaveCancelled:Dn,onBeforeAppear:Dn,onAppear:Dn,onAfterAppear:Dn,onAppearCancelled:Dn},_n=t=>{const e=t.subTree;return e.component?_n(e.component):e},jn={name:"BaseTransition",props:Mn,setup(t,{slots:e}){const n=bi(),r=In();return()=>{const s=e.default&&Hn(e.default(),!0);if(!s||!s.length)return;const i=Nn(s),o=Ae(t),{mode:a}=o;if(r.isLeaving)return Gn(i);const c=Wn(i);if(!c)return Gn(i);let u=Bn(c,o,r,n,t=>u=t);c.type!==Gs&&zn(c,u);let l=n.subTree&&Wn(n.subTree);if(l&&l.type!==Gs&&!ti(c,l)&&_n(n).type!==Gs){let t=Bn(l,o,r,n);if(zn(l,t),"out-in"===a&&c.type!==Gs)return r.isLeaving=!0,t.afterLeave=()=>{r.isLeaving=!1,8&n.job.flags||n.update(),delete t.afterLeave,l=void 0},Gn(i);"in-out"===a&&c.type!==Gs?t.delayLeave=(t,e,n)=>{const s=Vn(r,l);s[String(l.key)]=l,t[Rn]=()=>{e(),t[Rn]=void 0,delete u.delayedLeave,l=void 0},u.delayedLeave=()=>{n(),delete u.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return i}}};function Nn(t){let e=t[0];if(t.length>1){let n=!1;for(const r of t)if(r.type!==Gs){0,e=r,n=!0;break}}return e}const Un=jn;function Vn(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function Bn(t,e,n,r,s){const{appear:i,mode:o,persisted:a=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:l,onEnterCancelled:f,onBeforeLeave:p,onLeave:d,onAfterLeave:g,onLeaveCancelled:m,onBeforeAppear:y,onAppear:v,onAfterAppear:b,onAppearCancelled:w}=e,x=String(t.key),S=Vn(n,t),C=(t,e)=>{t&&qe(t,r,9,e)},O=(t,e)=>{const n=e[1];C(t,e),h(t)?t.every(t=>t.length<=1)&&n():t.length<=1&&n()},k={mode:o,persisted:a,beforeEnter(e){let r=c;if(!n.isMounted){if(!i)return;r=y||c}e[Rn]&&e[Rn](!0);const s=S[x];s&&ti(t,s)&&s.el[Rn]&&s.el[Rn](),C(r,[e])},enter(t){let e=u,r=l,s=f;if(!n.isMounted){if(!i)return;e=v||u,r=b||l,s=w||f}let o=!1;const a=t[Ln]=e=>{o||(o=!0,C(e?s:r,[t]),k.delayedLeave&&k.delayedLeave(),t[Ln]=void 0)};e?O(e,[t,a]):a()},leave(e,r){const s=String(t.key);if(e[Ln]&&e[Ln](!0),n.isUnmounting)return r();C(p,[e]);let i=!1;const o=e[Rn]=n=>{i||(i=!0,r(),C(n?m:g,[e]),e[Rn]=void 0,S[s]===t&&delete S[s])};S[s]=t,d?O(d,[e,o]):o()},clone(t){const i=Bn(t,e,n,r,s);return s&&s(i),i}};return k}function Gn(t){if(Kn(t))return t=ai(t),t.children=null,t}function Wn(t){if(!Kn(t))return bn(t.type)&&t.children?Nn(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(16&e)return n[0];if(32&e&&v(n.default))return n.default()}}function zn(t,e){6&t.shapeFlag&&t.component?(t.transition=e,zn(t.component.subTree,e)):128&t.shapeFlag?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Hn(t,e=!1,n){let r=[],s=0;for(let i=0;i1)for(let i=0;iYn(t,n&&(h(n)?n[e]:n),r,s,i));if(Zn(s)&&!i)return void(512&s.shapeFlag&&s.type.__asyncResolved&&s.component.subTree.component&&Yn(t,n,r,s.component.subTree));const o=4&s.shapeFlag?Di(s.component):s.el,a=i?null:o,{i:c,r:l}=t;const p=n&&n.r,d=c.refs===e?c.refs={}:c.refs,g=c.setupState,m=Ae(g),y=g===e?()=>!1:t=>f(m,t);if(null!=p&&p!==l&&(b(p)?(d[p]=null,y(p)&&(g[p]=null)):Pe(p)&&(p.value=null)),v(l))He(l,c,12,[a,d]);else{const e=b(l),n=Pe(l);if(e||n){const s=()=>{if(t.f){const n=e?y(l)?g[l]:d[l]:l.value;i?h(n)&&u(n,o):h(n)?n.includes(o)||n.push(o):e?(d[l]=[o],y(l)&&(g[l]=d[l])):(l.value=[o],t.k&&(d[t.k]=l.value))}else e?(d[l]=a,y(l)&&(g[l]=a)):n&&(l.value=a,t.k&&(d[t.k]=a))};a?(s.id=-1,hs(s,r)):s()}else 0}}G().requestIdleCallback,G().cancelIdleCallback;const Zn=t=>!!t.type.__asyncLoader; /*! #__NO_SIDE_EFFECTS__ */const Kn=t=>t.type.__isKeepAlive;RegExp,RegExp;function Xn(t,e){return h(t)?t.some(t=>Xn(t,e)):b(t)?t.split(",").includes(e):!!y(t)&&(t.lastIndex=0,t.test(e))}function Jn(t,e){$n(t,"a",e)}function Qn(t,e){$n(t,"da",e)}function $n(t,e,n=vi){const r=t.__wdc||(t.__wdc=()=>{let e=n;while(e){if(e.isDeactivated)return;e=e.parent}return t()});if(rr(e,r,n),n){let t=n.parent;while(t&&t.parent)Kn(t.parent.vnode)&&tr(r,e,n,t),t=t.parent}}function tr(t,e,n,r){const s=rr(e,t,r,!0);lr(()=>{u(r[e],s)},n)}function er(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function nr(t){return 128&t.shapeFlag?t.ssContent:t}function rr(t,e,n=vi,r=!1){if(n){const s=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...r)=>{At();const s=Si(n),i=qe(e,n,t,r);return s(),Et(),i});return r?s.unshift(i):s.push(i),i}}const sr=t=>(e,n=vi)=>{Ei&&"sp"!==t||rr(t,(...t)=>e(...t),n)},ir=sr("bm"),or=sr("m"),ar=sr("bu"),cr=sr("u"),ur=sr("bum"),lr=sr("um"),fr=sr("sp"),hr=sr("rtg"),pr=sr("rtc");function dr(t,e=vi){rr("ec",t,e)}const gr=Symbol.for("v-ndc");function mr(t,e,n,r){let s;const i=n&&n[r],o=h(t);if(o||b(t)){const n=o&&Se(t);let r=!1,a=!1;n&&(r=!Oe(t),a=Ce(t),t=Vt(t)),s=new Array(t.length);for(let o=0,c=t.length;oe(t,n,void 0,i&&i[n]));else{const n=Object.keys(t);s=new Array(n.length);for(let r=0,o=n.length;r!$s(t)||t.type!==Gs&&!(t.type===Vs&&!vr(t.children)))?t:null}const br=t=>t?Oi(t)?Di(t):br(t.parent):null,wr=c(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>br(t.parent),$root:t=>br(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Rr(t),$forceUpdate:t=>t.f||(t.f=()=>{sn(t.update)}),$nextTick:t=>t.n||(t.n=nn.bind(t.proxy)),$watch:t=>As.bind(t)}),xr=(t,n)=>t!==e&&!t.__isScriptSetup&&f(t,n),Sr={get({_:t},n){if("__v_skip"===n)return!0;const{ctx:r,setupState:s,data:i,props:o,accessCache:a,type:c,appContext:u}=t;let l;if("$"!==n[0]){const c=a[n];if(void 0!==c)switch(c){case 1:return s[n];case 2:return i[n];case 4:return r[n];case 3:return o[n]}else{if(xr(s,n))return a[n]=1,s[n];if(i!==e&&f(i,n))return a[n]=2,i[n];if((l=t.propsOptions[0])&&f(l,n))return a[n]=3,o[n];if(r!==e&&f(r,n))return a[n]=4,r[n];Ar&&(a[n]=0)}}const h=wr[n];let p,d;return h?("$attrs"===n&&jt(t.attrs,"get",""),h(t)):(p=c.__cssModules)&&(p=p[n])?p:r!==e&&f(r,n)?(a[n]=4,r[n]):(d=u.config.globalProperties,f(d,n)?d[n]:void 0)},set({_:t},n,r){const{data:s,setupState:i,ctx:o}=t;return xr(i,n)?(i[n]=r,!0):s!==e&&f(s,n)?(s[n]=r,!0):!f(t.props,n)&&(("$"!==n[0]||!(n.slice(1)in t))&&(o[n]=r,!0))},has({_:{data:t,setupState:n,accessCache:r,ctx:s,appContext:i,propsOptions:o}},a){let c;return!!r[a]||t!==e&&f(t,a)||xr(n,a)||(c=o[0])&&f(c,a)||f(s,a)||f(wr,a)||f(i.config.globalProperties,a)},defineProperty(t,e,n){return null!=n.get?t._.accessCache[e]=0:f(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Cr(){return Or().slots}function Or(){const t=bi();return t.setupContext||(t.setupContext=Ii(t))}function kr(t){return h(t)?t.reduce((t,e)=>(t[e]=null,t),{}):t}let Ar=!0;function Er(t){const e=Rr(t),n=t.proxy,r=t.ctx;Ar=!1,e.beforeCreate&&Tr(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:a,watch:c,provide:u,inject:l,created:f,beforeMount:p,mounted:d,beforeUpdate:g,updated:m,activated:y,deactivated:b,beforeDestroy:w,beforeUnmount:S,destroyed:C,unmounted:O,render:k,renderTracked:A,renderTriggered:E,errorCaptured:F,serverPrefetch:T,expose:P,inheritAttrs:R,components:L,directives:I,filters:D}=e,M=null;if(l&&Fr(l,r,M),a)for(const s in a){const t=a[s];v(t)&&(r[s]=t.bind(n))}if(i){0;const e=i.call(n,n);0,x(e)&&(t.data=ve(e))}if(Ar=!0,o)for(const h in o){const t=o[h],e=v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):s;0;const i=!v(t)&&v(t.set)?t.set.bind(n):s,a=ji({get:e,set:i});Object.defineProperty(r,h,{enumerable:!0,configurable:!0,get:()=>a.value,set:t=>a.value=t})}if(c)for(const s in c)Pr(c[s],r,n,s);if(u){const t=v(u)?u.call(n):u;Reflect.ownKeys(t).forEach(e=>{Hr(e,t[e])})}function _(t,e){h(e)?e.forEach(e=>t(e.bind(n))):e&&t(e.bind(n))}if(f&&Tr(f,t,"c"),_(ir,p),_(or,d),_(ar,g),_(cr,m),_(Jn,y),_(Qn,b),_(dr,F),_(pr,A),_(hr,E),_(ur,S),_(lr,O),_(fr,T),h(P))if(P.length){const e=t.exposed||(t.exposed={});P.forEach(t=>{Object.defineProperty(e,t,{get:()=>n[t],set:e=>n[t]=e})})}else t.exposed||(t.exposed={});k&&t.render===s&&(t.render=k),null!=R&&(t.inheritAttrs=R),L&&(t.components=L),I&&(t.directives=I),T&&qn(t)}function Fr(t,e,n=s){h(t)&&(t=_r(t));for(const r in t){const n=t[r];let s;s=x(n)?"default"in n?qr(n.from||r,n.default,!0):qr(n.from||r):qr(n),Pe(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:t=>s.value=t}):e[r]=s}}function Tr(t,e,n){qe(h(t)?t.map(t=>t.bind(e.proxy)):t.bind(e.proxy),e,n)}function Pr(t,e,n,r){let s=r.includes(".")?Es(n,r):()=>n[r];if(b(t)){const n=e[t];v(n)&&Os(s,n)}else if(v(t))Os(s,t.bind(n));else if(x(t))if(h(t))t.forEach(t=>Pr(t,e,n,r));else{const r=v(t.handler)?t.handler.bind(n):e[t.handler];v(r)&&Os(s,r,t)}else 0}function Rr(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:s,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,a=i.get(e);let c;return a?c=a:s.length||n||r?(c={},s.length&&s.forEach(t=>Lr(c,t,o,!0)),Lr(c,e,o)):c=e,x(e)&&i.set(e,c),c}function Lr(t,e,n,r=!1){const{mixins:s,extends:i}=e;i&&Lr(t,i,n,!0),s&&s.forEach(e=>Lr(t,e,n,!0));for(const o in e)if(r&&"expose"===o);else{const r=Ir[o]||n&&n[o];t[o]=r?r(t[o],e[o]):e[o]}return t}const Ir={data:Dr,props:Ur,emits:Ur,methods:Nr,computed:Nr,beforeCreate:jr,created:jr,beforeMount:jr,mounted:jr,beforeUpdate:jr,updated:jr,beforeDestroy:jr,beforeUnmount:jr,destroyed:jr,unmounted:jr,activated:jr,deactivated:jr,errorCaptured:jr,serverPrefetch:jr,components:Nr,directives:Nr,watch:Vr,provide:Dr,inject:Mr};function Dr(t,e){return e?t?function(){return c(v(t)?t.call(this,this):t,v(e)?e.call(this,this):e)}:e:t}function Mr(t,e){return Nr(_r(t),_r(e))}function _r(t){if(h(t)){const e={};for(let n=0;n1)return n&&v(e)?e.call(r&&r.proxy):e}else 0}const Yr={},Zr=()=>Object.create(Yr),Kr=t=>Object.getPrototypeOf(t)===Yr;function Xr(t,e,n,r=!1){const s={},i=Zr();t.propsDefaults=Object.create(null),Qr(t,e,s,i);for(const o in t.propsOptions[0])o in s||(s[o]=void 0);n?t.props=r?s:be(s):t.type.props?t.props=s:t.props=i,t.attrs=i}function Jr(t,e,n,r){const{props:s,attrs:i,vnode:{patchFlag:o}}=t,a=Ae(s),[c]=t.propsOptions;let u=!1;if(!(r||o>0)||16&o){let r;Qr(t,e,s,i)&&(u=!0);for(const i in a)e&&(f(e,i)||(r=I(i))!==i&&f(e,r))||(c?!n||void 0===n[i]&&void 0===n[r]||(s[i]=$r(c,a,i,void 0,t,!0)):delete s[i]);if(i!==a)for(const t in i)e&&f(e,t)||(delete i[t],u=!0)}else if(8&o){const n=t.vnode.dynamicProps;for(let r=0;r{p=!0;const[e,r]=es(t,n,!0);c(u,e),r&&l.push(...r)};!s&&n.mixins.length&&n.mixins.forEach(e),t.extends&&e(t.extends),t.mixins&&t.mixins.forEach(e)}if(!a&&!p)return x(t)&&i.set(t,r),r;if(h(a))for(let r=0;r"_"===t[0]||"$stable"===t,ss=t=>h(t)?t.map(li):[li(t)],is=(t,e,n)=>{if(e._n)return e;const r=gn((...t)=>ss(e(...t)),n);return r._c=!1,r},os=(t,e,n)=>{const r=t._ctx;for(const s in t){if(rs(s))continue;const n=t[s];if(v(n))e[s]=is(s,n,r);else if(null!=n){0;const t=ss(n);e[s]=()=>t}}},as=(t,e)=>{const n=ss(e);t.slots.default=()=>n},cs=(t,e,n)=>{for(const r in e)!n&&rs(r)||(t[r]=e[r])},us=(t,e,n)=>{const r=t.slots=Zr();if(32&t.vnode.shapeFlag){const t=e.__;t&&N(r,"__",t,!0);const s=e._;s?(cs(r,e,n),n&&N(r,"_",s,!0)):os(e,r)}else e&&as(t,e)},ls=(t,n,r)=>{const{vnode:s,slots:i}=t;let o=!0,a=e;if(32&s.shapeFlag){const t=n._;t?r&&1===t?o=!1:cs(i,n,r):(o=!n.$stable,os(n,i)),a=n}else n&&(as(t,n),a={default:1});if(o)for(const e in i)rs(e)||null!=a[e]||delete i[e]};function fs(){"boolean"!==typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__&&(G().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const hs=Us;function ps(t){return ds(t)}function ds(t,n){fs();const i=G();i.__VUE__=!0;const{insert:o,remove:a,patchProp:c,createElement:u,createText:l,createComment:f,setText:p,setElementText:d,parentNode:g,nextSibling:m,setScopeId:y=s,insertStaticContent:v}=t,b=(t,e,n,r=null,s=null,i=null,o=void 0,a=null,c=!!e.dynamicChildren)=>{if(t===e)return;t&&!ti(t,e)&&(r=X(t),H(t,s,i,!0),t=null),-2===e.patchFlag&&(c=!1,e.dynamicChildren=null);const{type:u,ref:l,shapeFlag:f}=e;switch(u){case Bs:w(t,e,n,r);break;case Gs:x(t,e,n,r);break;case Ws:null==t&&S(e,n,r,o);break;case Vs:I(t,e,n,r,s,i,o,a,c);break;default:1&f?k(t,e,n,r,s,i,o,a,c):6&f?D(t,e,n,r,s,i,o,a,c):(64&f||128&f)&&u.process(t,e,n,r,s,i,o,a,c,$)}null!=l&&s?Yn(l,t&&t.ref,i,e||t,!e):null==l&&t&&null!=t.ref&&Yn(t.ref,null,i,t,!0)},w=(t,e,n,r)=>{if(null==t)o(e.el=l(e.children),n,r);else{const n=e.el=t.el;e.children!==t.children&&p(n,e.children)}},x=(t,e,n,r)=>{null==t?o(e.el=f(e.children||""),n,r):e.el=t.el},S=(t,e,n,r)=>{[t.el,t.anchor]=v(t.children,e,n,r,t.el,t.anchor)},C=({el:t,anchor:e},n,r)=>{let s;while(t&&t!==e)s=m(t),o(t,n,r),t=s;o(e,n,r)},O=({el:t,anchor:e})=>{let n;while(t&&t!==e)n=m(t),a(t),t=n;a(e)},k=(t,e,n,r,s,i,o,a,c)=>{"svg"===e.type?o="svg":"math"===e.type&&(o="mathml"),null==t?A(e,n,r,s,i,o,a,c):P(t,e,s,i,o,a,c)},A=(t,e,n,r,s,i,a,l)=>{let f,h;const{props:p,shapeFlag:g,transition:m,dirs:y}=t;if(f=t.el=u(t.type,i,p&&p.is,p),8&g?d(f,t.children):16&g&&T(t.children,f,null,r,s,gs(t,i),a,l),y&&yn(t,null,r,"created"),E(f,t,t.scopeId,a,r),p){for(const t in p)"value"===t||F(t)||c(f,t,null,p[t],i,r);"value"in p&&c(f,"value",null,p.value,i),(h=p.onVnodeBeforeMount)&&di(h,r,t)}y&&yn(t,null,r,"beforeMount");const v=ys(s,m);v&&m.beforeEnter(f),o(f,e,n),((h=p&&p.onVnodeMounted)||v||y)&&hs(()=>{h&&di(h,r,t),v&&m.enter(f),y&&yn(t,null,r,"mounted")},s)},E=(t,e,n,r,s)=>{if(n&&y(t,n),r)for(let i=0;i{for(let u=c;u{const u=n.el=t.el;let{patchFlag:l,dynamicChildren:f,dirs:h}=n;l|=16&t.patchFlag;const p=t.props||e,g=n.props||e;let m;if(r&&ms(r,!1),(m=g.onVnodeBeforeUpdate)&&di(m,r,n,t),h&&yn(n,t,r,"beforeUpdate"),r&&ms(r,!0),(p.innerHTML&&null==g.innerHTML||p.textContent&&null==g.textContent)&&d(u,""),f?R(t.dynamicChildren,f,u,r,s,gs(n,i),o):a||V(t,n,u,null,r,s,gs(n,i),o,!1),l>0){if(16&l)L(u,p,g,r,i);else if(2&l&&p.class!==g.class&&c(u,"class",null,g.class,i),4&l&&c(u,"style",p.style,g.style,i),8&l){const t=n.dynamicProps;for(let e=0;e{m&&di(m,r,n,t),h&&yn(n,t,r,"updated")},s)},R=(t,e,n,r,s,i,o)=>{for(let a=0;a{if(n!==r){if(n!==e)for(const e in n)F(e)||e in r||c(t,e,n[e],null,i,s);for(const e in r){if(F(e))continue;const o=r[e],a=n[e];o!==a&&"value"!==e&&c(t,e,a,o,i,s)}"value"in r&&c(t,"value",n.value,r.value,i)}},I=(t,e,n,r,s,i,a,c,u)=>{const f=e.el=t?t.el:l(""),h=e.anchor=t?t.anchor:l("");let{patchFlag:p,dynamicChildren:d,slotScopeIds:g}=e;g&&(c=c?c.concat(g):g),null==t?(o(f,n,r),o(h,n,r),T(e.children||[],n,h,s,i,a,c,u)):p>0&&64&p&&d&&t.dynamicChildren?(R(t.dynamicChildren,d,n,s,i,a,c),(null!=e.key||s&&e===s.subTree)&&vs(t,e,!0)):V(t,e,n,h,s,i,a,c,u)},D=(t,e,n,r,s,i,o,a,c)=>{e.slotScopeIds=a,null==t?512&e.shapeFlag?s.ctx.activate(e,n,r,o,c):M(e,n,r,s,i,o,c):_(t,e,c)},M=(t,e,n,r,s,i,o)=>{const a=t.component=yi(t,r,s);if(Kn(t)&&(a.ctx.renderer=$),Fi(a,!1,o),a.asyncDep){if(s&&s.registerDep(a,N,o),!t.el){const t=a.subTree=si(Gs);x(null,t,e,n)}}else N(a,t,e,n,s,i,o)},_=(t,e,n)=>{const r=e.component=t.component;if(Ms(t,e,n)){if(r.asyncDep&&!r.asyncResolved)return void U(r,e,n);r.next=e,r.update()}else e.el=t.el,r.vnode=e},N=(t,e,n,r,s,i,o)=>{const a=()=>{if(t.isMounted){let{next:e,bu:n,u:r,parent:c,vnode:u}=t;{const n=ws(t);if(n)return e&&(e.el=u.el,U(t,e,o)),void n.asyncDep.then(()=>{t.isUnmounted||a()})}let l,f=e;0,ms(t,!1),e?(e.el=u.el,U(t,e,o)):e=u,n&&j(n),(l=e.props&&e.props.onVnodeBeforeUpdate)&&di(l,c,e,u),ms(t,!0);const h=Ls(t);0;const p=t.subTree;t.subTree=h,b(p,h,g(p.el),X(p),t,s,i),e.el=h.el,null===f&&js(t,h.el),r&&hs(r,s),(l=e.props&&e.props.onVnodeUpdated)&&hs(()=>di(l,c,e,u),s)}else{let o;const{el:a,props:c}=e,{bm:u,m:l,parent:f,root:h,type:p}=t,d=Zn(e);if(ms(t,!1),u&&j(u),!d&&(o=c&&c.onVnodeBeforeMount)&&di(o,f,e),ms(t,!0),a&&et){const e=()=>{t.subTree=Ls(t),et(a,t.subTree,t,s,null)};d&&p.__asyncHydrate?p.__asyncHydrate(a,t,e):e()}else{h.ce&&!1!==h.ce._def.shadowRoot&&h.ce._injectChildStyle(p);const o=t.subTree=Ls(t);0,b(null,o,n,r,t,s,i),e.el=o.el}if(l&&hs(l,s),!d&&(o=c&&c.onVnodeMounted)){const t=e;hs(()=>di(o,f,t),s)}(256&e.shapeFlag||f&&Zn(f.vnode)&&256&f.vnode.shapeFlag)&&t.a&&hs(t.a,s),t.isMounted=!0,e=n=r=null}};t.scope.on();const c=t.effect=new ft(a);t.scope.off();const u=t.update=c.run.bind(c),l=t.job=c.runIfDirty.bind(c);l.i=t,l.id=t.uid,c.scheduler=()=>sn(l),ms(t,!0),u()},U=(t,e,n)=>{e.component=t;const r=t.vnode.props;t.vnode=e,t.next=null,Jr(t,e.props,r,n),ls(t,e.children,n),At(),cn(t),Et()},V=(t,e,n,r,s,i,o,a,c=!1)=>{const u=t&&t.children,l=t?t.shapeFlag:0,f=e.children,{patchFlag:h,shapeFlag:p}=e;if(h>0){if(128&h)return void W(u,f,n,r,s,i,o,a,c);if(256&h)return void B(u,f,n,r,s,i,o,a,c)}8&p?(16&l&&K(u,s,i),f!==u&&d(n,f)):16&l?16&p?W(u,f,n,r,s,i,o,a,c):K(u,s,i,!0):(8&l&&d(n,""),16&p&&T(f,n,r,s,i,o,a,c))},B=(t,e,n,s,i,o,a,c,u)=>{t=t||r,e=e||r;const l=t.length,f=e.length,h=Math.min(l,f);let p;for(p=0;pf?K(t,i,o,!0,!1,h):T(e,n,s,i,o,a,c,u,h)},W=(t,e,n,s,i,o,a,c,u)=>{let l=0;const f=e.length;let h=t.length-1,p=f-1;while(l<=h&&l<=p){const r=t[l],s=e[l]=u?fi(e[l]):li(e[l]);if(!ti(r,s))break;b(r,s,n,null,i,o,a,c,u),l++}while(l<=h&&l<=p){const r=t[h],s=e[p]=u?fi(e[p]):li(e[p]);if(!ti(r,s))break;b(r,s,n,null,i,o,a,c,u),h--,p--}if(l>h){if(l<=p){const t=p+1,r=tp)while(l<=h)H(t[l],i,o,!0),l++;else{const d=l,g=l,m=new Map;for(l=g;l<=p;l++){const t=e[l]=u?fi(e[l]):li(e[l]);null!=t.key&&m.set(t.key,l)}let y,v=0;const w=p-g+1;let x=!1,S=0;const C=new Array(w);for(l=0;l=w){H(r,i,o,!0);continue}let s;if(null!=r.key)s=m.get(r.key);else for(y=g;y<=p;y++)if(0===C[y-g]&&ti(r,e[y])){s=y;break}void 0===s?H(r,i,o,!0):(C[s-g]=l+1,s>=S?S=s:x=!0,b(r,e[s],n,null,i,o,a,c,u),v++)}const O=x?bs(C):r;for(y=O.length-1,l=w-1;l>=0;l--){const t=g+l,r=e[t],h=t+1{const{el:i,type:c,transition:u,children:l,shapeFlag:f}=t;if(6&f)return void z(t.component.subTree,e,n,r);if(128&f)return void t.suspense.move(e,n,r);if(64&f)return void c.move(t,e,n,$);if(c===Vs){o(i,e,n);for(let t=0;tu.enter(i),s);else{const{leave:r,delayLeave:s,afterLeave:c}=u,l=()=>{t.ctx.isUnmounted?a(i):o(i,e,n)},f=()=>{r(i,()=>{l(),c&&c()})};s?s(i,l,f):f()}else o(i,e,n)},H=(t,e,n,r=!1,s=!1)=>{const{type:i,props:o,ref:a,children:c,dynamicChildren:u,shapeFlag:l,patchFlag:f,dirs:h,cacheIndex:p}=t;if(-2===f&&(s=!1),null!=a&&(At(),Yn(a,null,n,t,!0),Et()),null!=p&&(e.renderCache[p]=void 0),256&l)return void e.ctx.deactivate(t);const d=1&l&&h,g=!Zn(t);let m;if(g&&(m=o&&o.onVnodeBeforeUnmount)&&di(m,e,t),6&l)Z(t.component,n,r);else{if(128&l)return void t.suspense.unmount(n,r);d&&yn(t,null,e,"beforeUnmount"),64&l?t.type.remove(t,e,n,$,r):u&&!u.hasOnce&&(i!==Vs||f>0&&64&f)?K(u,e,n,!1,!0):(i===Vs&&384&f||!s&&16&l)&&K(c,e,n),r&&q(t)}(g&&(m=o&&o.onVnodeUnmounted)||d)&&hs(()=>{m&&di(m,e,t),d&&yn(t,null,e,"unmounted")},n)},q=t=>{const{type:e,el:n,anchor:r,transition:s}=t;if(e===Vs)return void Y(n,r);if(e===Ws)return void O(t);const i=()=>{a(n),s&&!s.persisted&&s.afterLeave&&s.afterLeave()};if(1&t.shapeFlag&&s&&!s.persisted){const{leave:e,delayLeave:r}=s,o=()=>e(n,i);r?r(t.el,i,o):o()}else i()},Y=(t,e)=>{let n;while(t!==e)n=m(t),a(t),t=n;a(e)},Z=(t,e,n)=>{const{bum:r,scope:s,job:i,subTree:o,um:a,m:c,a:u,parent:l,slots:{__:f}}=t;xs(c),xs(u),r&&j(r),l&&h(f)&&f.forEach(t=>{l.renderCache[t]=void 0}),s.stop(),i&&(i.flags|=8,H(o,t,e,n)),a&&hs(a,e),hs(()=>{t.isUnmounted=!0},e),e&&e.pendingBranch&&!e.isUnmounted&&t.asyncDep&&!t.asyncResolved&&t.suspenseId===e.pendingId&&(e.deps--,0===e.deps&&e.resolve())},K=(t,e,n,r=!1,s=!1,i=0)=>{for(let o=i;o{if(6&t.shapeFlag)return X(t.component.subTree);if(128&t.shapeFlag)return t.suspense.next();const e=m(t.anchor||t.el),n=e&&e[vn];return n?m(n):e};let J=!1;const Q=(t,e,n)=>{null==t?e._vnode&&H(e._vnode,null,null,!0):b(e._vnode||null,t,e,null,null,null,n),e._vnode=t,J||(J=!0,cn(),un(),J=!1)},$={p:b,um:H,m:z,r:q,mt:M,mc:T,pc:V,pbc:R,n:X,o:t};let tt,et;return n&&([tt,et]=n($)),{render:Q,hydrate:tt,createApp:Wr(Q,tt)}}function gs({type:t,props:e},n){return"svg"===n&&"foreignObject"===t||"mathml"===n&&"annotation-xml"===t&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ms({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function ys(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function vs(t,e,n=!1){const r=t.children,s=e.children;if(h(r)&&h(s))for(let i=0;i>1,t[n[a]]0&&(e[r]=n[i-1]),n[i]=r)}}i=n.length,o=n[i-1];while(i-- >0)n[i]=o,o=e[o];return n}function ws(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:ws(e)}function xs(t){if(t)for(let e=0;e{{const t=qr(Ss);return t}};function Os(t,e,n){return ks(t,e,n)}function ks(t,n,r=e){const{immediate:i,deep:o,flush:a,once:u}=r;const l=c({},r);const f=n&&i||!n&&"post"!==a;let h;if(Ei)if("sync"===a){const t=Cs();h=t.__watcherHandles||(t.__watcherHandles=[])}else if(!f){const t=()=>{};return t.stop=s,t.resume=s,t.pause=s,t}const p=vi;l.call=(t,e,n)=>qe(t,p,e,n);let d=!1;"post"===a?l.scheduler=t=>{hs(t,p&&p.suspense)}:"sync"!==a&&(d=!0,l.scheduler=(t,e)=>{e?t():sn(t)}),l.augmentJob=t=>{n&&(t.flags|=4),d&&(t.flags|=2,p&&(t.id=p.uid,t.i=p))};const g=We(t,n,l);return Ei&&(h?h.push(g):f&&g()),g}function As(t,e,n){const r=this.proxy,s=b(t)?t.includes(".")?Es(r,t):()=>r[t]:t.bind(r,r);let i;v(e)?i=e:(i=e.handler,n=e);const o=Si(this),a=ks(s,i.bind(r),n);return o(),a}function Es(t,e){const n=e.split(".");return()=>{let e=t;for(let t=0;t"modelValue"===e||"model-value"===e?t.modelModifiers:t[`${e}Modifiers`]||t[`${R(e)}Modifiers`]||t[`${I(e)}Modifiers`];function Ts(t,n,...r){if(t.isUnmounted)return;const s=t.vnode.props||e;let i=r;const o=n.startsWith("update:"),a=o&&Fs(s,n.slice(7));let c;a&&(a.trim&&(i=r.map(t=>b(t)?t.trim():t)),a.number&&(i=r.map(U)));let u=s[c=M(n)]||s[c=M(R(n))];!u&&o&&(u=s[c=M(I(n))]),u&&qe(u,t,6,i);const l=s[c+"Once"];if(l){if(t.emitted){if(t.emitted[c])return}else t.emitted={};t.emitted[c]=!0,qe(l,t,6,i)}}function Ps(t,e,n=!1){const r=e.emitsCache,s=r.get(t);if(void 0!==s)return s;const i=t.emits;let o={},a=!1;if(!v(t)){const r=t=>{const n=Ps(t,e,!0);n&&(a=!0,c(o,n))};!n&&e.mixins.length&&e.mixins.forEach(r),t.extends&&r(t.extends),t.mixins&&t.mixins.forEach(r)}return i||a?(h(i)?i.forEach(t=>o[t]=null):c(o,i),x(t)&&r.set(t,o),o):(x(t)&&r.set(t,null),null)}function Rs(t,e){return!(!t||!o(e))&&(e=e.slice(2).replace(/Once$/,""),f(t,e[0].toLowerCase()+e.slice(1))||f(t,I(e))||f(t,e))}function Ls(t){const{type:e,vnode:n,proxy:r,withProxy:s,propsOptions:[i],slots:o,attrs:c,emit:u,render:l,renderCache:f,props:h,data:p,setupState:d,ctx:g,inheritAttrs:m}=t,y=dn(t);let v,b;try{if(4&n.shapeFlag){const t=s||r,e=t;v=li(l.call(e,t,f,h,d,p,g)),b=c}else{const t=e;0,v=li(t.length>1?t(h,{attrs:c,slots:o,emit:u}):t(h,null)),b=e.props?c:Is(c)}}catch(x){zs.length=0,Ye(x,t,1),v=si(Gs)}let w=v;if(b&&!1!==m){const t=Object.keys(b),{shapeFlag:e}=w;t.length&&7&e&&(i&&t.some(a)&&(b=Ds(b,i)),w=ai(w,b,!1,!0))}return n.dirs&&(w=ai(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&zn(w,n.transition),v=w,dn(y),v}const Is=t=>{let e;for(const n in t)("class"===n||"style"===n||o(n))&&((e||(e={}))[n]=t[n]);return e},Ds=(t,e)=>{const n={};for(const r in t)a(r)&&r.slice(9)in e||(n[r]=t[r]);return n};function Ms(t,e,n){const{props:r,children:s,component:i}=t,{props:o,children:a,patchFlag:c}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(!(n&&c>=0))return!(!s&&!a||a&&a.$stable)||r!==o&&(r?!o||_s(r,o,u):!!o);if(1024&c)return!0;if(16&c)return r?_s(r,o,u):!!o;if(8&c){const t=e.dynamicProps;for(let e=0;et.__isSuspense;function Us(t,e){e&&e.pendingBranch?h(t)?e.effects.push(...t):e.effects.push(t):an(t)}const Vs=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),Gs=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),zs=[];let Hs=null;function qs(t=!1){zs.push(Hs=t?null:[])}function Ys(){zs.pop(),Hs=zs[zs.length-1]||null}let Zs=1;function Ks(t,e=!1){Zs+=t,t<0&&Hs&&e&&(Hs.hasOnce=!0)}function Xs(t){return t.dynamicChildren=Zs>0?Hs||r:null,Ys(),Zs>0&&Hs&&Hs.push(t),t}function Js(t,e,n,r,s,i){return Xs(ri(t,e,n,r,s,i,!0))}function Qs(t,e,n,r,s){return Xs(si(t,e,n,r,s,!0))}function $s(t){return!!t&&!0===t.__v_isVNode}function ti(t,e){return t.type===e.type&&t.key===e.key}const ei=({key:t})=>null!=t?t:null,ni=({ref:t,ref_key:e,ref_for:n})=>("number"===typeof t&&(t=""+t),null!=t?b(t)||Pe(t)||v(t)?{i:hn,r:t,k:e,f:!!n}:t:null);function ri(t,e=null,n=null,r=0,s=null,i=(t===Vs?0:1),o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ei(e),ref:e&&ni(e),scopeId:pn,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:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:hn};return a?(hi(c,n),128&i&&t.normalize(c)):n&&(c.shapeFlag|=b(n)?8:16),Zs>0&&!o&&Hs&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Hs.push(c),c}const si=ii;function ii(t,e=null,n=null,r=0,s=null,i=!1){if(t&&t!==gr||(t=Gs),$s(t)){const r=ai(t,e,!0);return n&&hi(r,n),Zs>0&&!i&&Hs&&(6&r.shapeFlag?Hs[Hs.indexOf(t)]=r:Hs.push(r)),r.patchFlag=-2,r}if(_i(t)&&(t=t.__vccOpts),e){e=oi(e);let{class:t,style:n}=e;t&&!b(t)&&(e.class=Z(t)),x(n)&&(ke(n)&&!h(n)&&(n=c({},n)),e.style=W(n))}const o=b(t)?1:Ns(t)?128:bn(t)?64:x(t)?4:v(t)?2:0;return ri(t,e,n,r,s,o,i,!0)}function oi(t){return t?ke(t)||Kr(t)?c({},t):t:null}function ai(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:a,transition:c}=t,u=e?pi(s||{},e):s,l={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&ei(u),ref:e&&e.ref?n&&i?h(i)?i.concat(ni(e)):[i,ni(e)]:ni(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Vs?-1===o?16:16|o:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:c,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&ai(t.ssContent),ssFallback:t.ssFallback&&ai(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return c&&r&&zn(l,c.clone(l)),l}function ci(t=" ",e=0){return si(Bs,null,t,e)}function ui(t="",e=!1){return e?(qs(),Qs(Gs,null,t)):si(Gs,null,t)}function li(t){return null==t||"boolean"===typeof t?si(Gs):h(t)?si(Vs,null,t.slice()):$s(t)?fi(t):si(Bs,null,String(t))}function fi(t){return null===t.el&&-1!==t.patchFlag||t.memo?t:ai(t)}function hi(t,e){let n=0;const{shapeFlag:r}=t;if(null==e)e=null;else if(h(e))n=16;else if("object"===typeof e){if(65&r){const n=e.default;return void(n&&(n._c&&(n._d=!1),hi(t,n()),n._c&&(n._d=!0)))}{n=32;const r=e._;r||Kr(e)?3===r&&hn&&(1===hn.slots._?e._=1:(e._=2,t.patchFlag|=1024)):e._ctx=hn}}else v(e)?(e={default:e,_ctx:hn},n=32):(e=String(e),64&r?(n=16,e=[ci(e)]):n=8);t.children=e,t.shapeFlag|=n}function pi(...t){const e={};for(let n=0;nvi||hn;let wi,xi;{const t=G(),e=(e,n)=>{let r;return(r=t[e])||(r=t[e]=[]),r.push(n),t=>{r.length>1?r.forEach(e=>e(t)):r[0](t)}};wi=e("__VUE_INSTANCE_SETTERS__",t=>vi=t),xi=e("__VUE_SSR_SETTERS__",t=>Ei=t)}const Si=t=>{const e=vi;return wi(t),t.scope.on(),()=>{t.scope.off(),wi(e)}},Ci=()=>{vi&&vi.scope.off(),wi(null)};function Oi(t){return 4&t.vnode.shapeFlag}let ki,Ai,Ei=!1;function Fi(t,e=!1,n=!1){e&&xi(e);const{props:r,children:s}=t.vnode,i=Oi(t);Xr(t,r,i,e),us(t,s,n||e);const o=i?Ti(t,e):void 0;return e&&xi(!1),o}function Ti(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Sr);const{setup:r}=n;if(r){At();const n=t.setupContext=r.length>1?Ii(t):null,s=Si(t),i=He(r,t,0,[t.props,n]),o=S(i);if(Et(),s(),!o&&!t.sp||Zn(t)||qn(t),o){if(i.then(Ci,Ci),e)return i.then(n=>{Pi(t,n,e)}).catch(e=>{Ye(e,t,0)});t.asyncDep=i}else Pi(t,i,e)}else Ri(t,e)}function Pi(t,e,n){v(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:x(e)&&(t.setupState=_e(e)),Ri(t,n)}function Ri(t,e,n){const r=t.type;if(!t.render){if(!e&&ki&&!r.render){const e=r.template||Rr(t).template;if(e){0;const{isCustomElement:n,compilerOptions:s}=t.appContext.config,{delimiters:i,compilerOptions:o}=r,a=c(c({isCustomElement:n,delimiters:i},s),o);r.render=ki(e,a)}}t.render=r.render||s,Ai&&Ai(t)}{const e=Si(t);At();try{Er(t)}finally{Et(),e()}}}const Li={get(t,e){return jt(t,"get",""),t[e]}};function Ii(t){const e=e=>{t.exposed=e||{}};return{attrs:new Proxy(t.attrs,Li),slots:t.slots,emit:t.emit,expose:e}}function Di(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(_e(Ee(t.exposed)),{get(e,n){return n in e?e[n]:n in wr?wr[n](t):void 0},has(t,e){return e in t||e in wr}})):t.proxy}function Mi(t,e=!0){return v(t)?t.displayName||t.name:t.name||e&&t.__name}function _i(t){return v(t)&&"__vccOpts"in t}const ji=(t,e)=>{const n=Ne(t,e,Ei);return n};function Ni(t,e,n){const r=arguments.length;return 2===r?x(e)&&!h(e)?$s(e)?si(t,null,[e]):si(t,e):si(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&$s(n)&&(n=[n]),si(t,e,n))}const Ui="3.5.17";function Vi(t,e){var n,r,s=0;function i(){var i,o,a=n,c=arguments.length;t:while(a){if(a.args.length===arguments.length){for(o=0;o=0||Hi[s]":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},qi=["(","?"],Yi={")":["("],":":["?","?:"]},Zi=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var Xi={"!":function(t){return!t},"*":function(t,e){return t*e},"/":function(t,e){return t/e},"%":function(t,e){return t%e},"+":function(t,e){return t+e},"-":function(t,e){return t-e},"<":function(t,e){return t":function(t,e){return t>e},">=":function(t,e){return t>=e},"==":function(t,e){return t===e},"!=":function(t,e){return t!==e},"&&":function(t,e){return t&&e},"||":function(t,e){return t||e},"?:":function(t,e,n){if(t)throw e;return n}};function Ji(t,e){var n,r,s,i,o,a,c=[];for(n=0;n{const r=new no({}),s=new Set,i=()=>{s.forEach(t=>t())},o=t=>(s.add(t),()=>s.delete(t)),a=(t="default")=>r.data[t],c=(t,e="default")=>{r.data[e]={...r.data[e],...t},r.data[e][""]={...ro[""],...r.data[e]?.[""]},delete r.pluralForms[e]},u=(t,e)=>{c(t,e),i()},l=(t,e="default")=>{r.data[e]={...r.data[e],...t,"":{...ro[""],...r.data[e]?.[""],...t?.[""]}},delete r.pluralForms[e],i()},f=(t,e)=>{r.data={},r.pluralForms={},u(t,e)},h=(t="default",e,n,s,i)=>(r.data[t]||c(void 0,t),r.dcnpgettext(t,e,n,s,i)),p=(t="default")=>t,d=(t,e)=>{let r=h(e,void 0,t);return n?(r=n.applyFilters("i18n.gettext",r,t,e),n.applyFilters("i18n.gettext_"+p(e),r,t,e)):r},g=(t,e,r)=>{let s=h(r,e,t);return n?(s=n.applyFilters("i18n.gettext_with_context",s,t,e,r),n.applyFilters("i18n.gettext_with_context_"+p(r),s,t,e,r)):s},m=(t,e,r,s)=>{let i=h(s,void 0,t,e,r);return n?(i=n.applyFilters("i18n.ngettext",i,t,e,r,s),n.applyFilters("i18n.ngettext_"+p(s),i,t,e,r,s)):i},y=(t,e,r,s,i)=>{let o=h(i,s,t,e,r);return n?(o=n.applyFilters("i18n.ngettext_with_context",o,t,e,r,s,i),n.applyFilters("i18n.ngettext_with_context_"+p(i),o,t,e,r,s,i)):o},v=()=>"rtl"===g("ltr","text direction"),b=(t,e,s)=>{const i=e?e+""+t:t;let o=!!r.data?.[null!==s&&void 0!==s?s:"default"]?.[i];return n&&(o=n.applyFilters("i18n.has_translation",o,t,e,s),o=n.applyFilters("i18n.has_translation_"+p(s),o,t,e,s)),o};if(t&&u(t,e),n){const t=t=>{so.test(t)&&i()};n.addAction("hookAdded","core/i18n",t),n.addAction("hookRemoved","core/i18n",t)}return{getLocaleData:a,setLocaleData:u,addLocaleData:l,resetLocaleData:f,subscribe:o,__:d,_x:g,_n:m,_nx:y,isRTL:v,hasTranslation:b}};function oo(t){return"string"!==typeof t||""===t?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(t)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)}var ao=oo;function co(t){return"string"!==typeof t||""===t?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(t)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(t)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)}var uo=co;function lo(t,e){return function(n,r,s,i=10){const o=t[e];if(!uo(n))return;if(!ao(r))return;if("function"!==typeof s)return void console.error("The hook callback must be a function.");if("number"!==typeof i)return void console.error("If specified, the hook priority must be a number.");const a={callback:s,priority:i,namespace:r};if(o[n]){const t=o[n].handlers;let e;for(e=t.length;e>0;e--)if(i>=t[e-1].priority)break;e===t.length?t[e]=a:t.splice(e,0,a),o.__current.forEach(t=>{t.name===n&&t.currentIndex>=e&&t.currentIndex++})}else o[n]={handlers:[a],runs:0};"hookAdded"!==n&&t.doAction("hookAdded",n,r,s,i)}}var fo=lo;function ho(t,e,n=!1){return function(r,s){const i=t[e];if(!uo(r))return;if(!n&&!ao(s))return;if(!i[r])return 0;let o=0;if(n)o=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const t=i[r].handlers;for(let e=t.length-1;e>=0;e--)t[e].namespace===s&&(t.splice(e,1),o++,i.__current.forEach(t=>{t.name===r&&t.currentIndex>=e&&t.currentIndex--}))}return"hookRemoved"!==r&&t.doAction("hookRemoved",r,s),o}}var po=ho;function go(t,e){return function(n,r){const s=t[e];return"undefined"!==typeof r?n in s&&s[n].handlers.some(t=>t.namespace===r):n in s}}var mo=go;function yo(t,e,n=!1){return function(r,...s){const i=t[e];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const o=i[r].handlers;if(!o||!o.length)return n?s[0]:void 0;const a={name:r,currentIndex:0};i.__current.push(a);while(a.currentIndex{t===this.plugin.id&&this.fallbacks.setSettings(e)}),this.proxiedOn=new Proxy({},{get:(t,e)=>this.target?this.target.on[e]:(...t)=>{this.onQueue.push({method:e,args:t})}}),this.proxiedTarget=new Proxy({},{get:(t,e)=>this.target?this.target[e]:"on"===e?this.proxiedOn:Object.keys(this.fallbacks).includes(e)?(...t)=>(this.targetQueue.push({method:e,args:t,resolve:()=>{}}),this.fallbacks[e](...t)):(...t)=>new Promise(n=>{this.targetQueue.push({method:e,args:t,resolve:n})})})}async setRealTarget(t){this.target=t;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function oa(t,e){const n=t,r=Jo(),s=Xo(),i=Qo&&n.enableEarlyProxy;if(!s||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const t=i?new ia(n,s):null,o=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:n,setupFn:e,proxy:t}),t&&e(t.proxiedTarget)}else s.emit($o,t,e)} /*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */ var aa="store";function ca(t){return void 0===t&&(t=null),qr(null!==t?t:aa)}function ua(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function la(t){return null!==t&&"object"===typeof t}function fa(t){return t&&"function"===typeof t.then}function ha(t,e){return function(){return t(e)}}function pa(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function da(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;ma(t,n,[],t._modules.root,!0),ga(t,n,e)}function ga(t,e,n){var r=t._state,s=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={},a={},c=ct(!0);c.run(function(){ua(i,function(e,n){o[n]=ha(e,t),a[n]=ji(function(){return o[n]()}),Object.defineProperty(t.getters,n,{get:function(){return a[n].value},enumerable:!0})})}),t._state=ve({data:e}),t._scope=c,t.strict&&Sa(t),r&&n&&t._withCommit(function(){r.data=null}),s&&s.stop()}function ma(t,e,n,r,s){var i=!n.length,o=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[o],t._modulesNamespaceMap[o]=r),!i&&!s){var a=Ca(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit(function(){a[c]=r.state})}var u=r.context=ya(t,o,n);r.forEachMutation(function(e,n){var r=o+n;ba(t,r,e,u)}),r.forEachAction(function(e,n){var r=e.root?n:o+n,s=e.handler||e;wa(t,r,s,u)}),r.forEachGetter(function(e,n){var r=o+n;xa(t,r,e,u)}),r.forEachChild(function(r,i){ma(t,e,n.concat(i),r,s)})}function ya(t,e,n){var r=""===e,s={dispatch:r?t.dispatch:function(n,r,s){var i=Oa(n,r,s),o=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,o)},commit:r?t.commit:function(n,r,s){var i=Oa(n,r,s),o=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,o,a)}};return Object.defineProperties(s,{getters:{get:r?function(){return t.getters}:function(){return va(t,e)}},state:{get:function(){return Ca(t.state,n)}}}),s}function va(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach(function(s){if(s.slice(0,r)===e){var i=s.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[s]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function ba(t,e,n,r){var s=t._mutations[e]||(t._mutations[e]=[]);s.push(function(e){n.call(t,r.state,e)})}function wa(t,e,n,r){var s=t._actions[e]||(t._actions[e]=[]);s.push(function(e){var s=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return fa(s)||(s=Promise.resolve(s)),t._devtoolHook?s.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):s})}function xa(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function Sa(t){Os(function(){return t._state.data},function(){0},{deep:!0,flush:"sync"})}function Ca(t,e){return e.reduce(function(t,e){return t[e]},t)}function Oa(t,e,n){return la(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}var ka="vuex bindings",Aa="vuex:mutations",Ea="vuex:actions",Fa="vuex",Ta=0;function Pa(t,e){oa({id:"org.vuejs.vuex",app:t,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ka]},function(n){n.addTimelineLayer({id:Aa,label:"Vuex Mutations",color:Ra}),n.addTimelineLayer({id:Ea,label:"Vuex Actions",color:Ra}),n.addInspector({id:Fa,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===t&&n.inspectorId===Fa)if(n.filter){var r=[];ja(r,e._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[_a(e._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===t&&n.inspectorId===Fa){var r=n.nodeId;va(e,r),n.state=Na(Va(e._modules,r),"root"===r?e.getters:e._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(n){if(n.app===t&&n.inspectorId===Fa){var r=n.nodeId,s=n.path;"root"!==r&&(s=r.split("/").filter(Boolean).concat(s)),e._withCommit(function(){n.set(e._state.data,s,n.state.value)})}}),e.subscribe(function(t,e){var r={};t.payload&&(r.payload=t.payload),r.state=e,n.notifyComponentUpdate(),n.sendInspectorTree(Fa),n.sendInspectorState(Fa),n.addTimelineEvent({layerId:Aa,event:{time:Date.now(),title:t.type,data:r}})}),e.subscribeAction({before:function(t,e){var r={};t.payload&&(r.payload=t.payload),t._id=Ta++,t._time=Date.now(),r.state=e,n.addTimelineEvent({layerId:Ea,event:{time:t._time,title:t.type,groupId:t._id,subtitle:"start",data:r}})},after:function(t,e){var r={},s=Date.now()-t._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},t.payload&&(r.payload=t.payload),r.state=e,n.addTimelineEvent({layerId:Ea,event:{time:Date.now(),title:t.type,groupId:t._id,subtitle:"end",data:r}})}})})}var Ra=8702998,La=6710886,Ia=16777215,Da={label:"namespaced",textColor:Ia,backgroundColor:La};function Ma(t){return t&&"root"!==t?t.split("/").slice(-2,-1)[0]:"Root"}function _a(t,e){return{id:e||"root",label:Ma(e),tags:t.namespaced?[Da]:[],children:Object.keys(t._children).map(function(n){return _a(t._children[n],e+n+"/")})}}function ja(t,e,n,r){r.includes(n)&&t.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:e.namespaced?[Da]:[]}),Object.keys(e._children).forEach(function(s){ja(t,e._children[s],n,r+s+"/")})}function Na(t,e,n){e="root"===n?e:e[n];var r=Object.keys(e),s={state:Object.keys(t.state).map(function(e){return{key:e,editable:!0,value:t.state[e]}})};if(r.length){var i=Ua(e);s.getters=Object.keys(i).map(function(t){return{key:t.endsWith("/")?Ma(t):t,editable:!1,value:Ba(function(){return i[t]})}})}return s}function Ua(t){var e={};return Object.keys(t).forEach(function(n){var r=n.split("/");if(r.length>1){var s=e,i=r.pop();r.forEach(function(t){s[t]||(s[t]={_custom:{value:{},display:t,tooltip:"Module",abstract:!0}}),s=s[t]._custom.value}),s[i]=Ba(function(){return t[n]})}else e[n]=Ba(function(){return t[n]})}),e}function Va(t,e){var n=e.split("/").filter(function(t){return t});return n.reduce(function(t,r,s){var i=t[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+e+'".');return s===n.length-1?i:i._children},"root"===e?t:t.root._children)}function Ba(t){try{return t()}catch(e){return e}}var Ga=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},Wa={namespaced:{configurable:!0}};Wa.namespaced.get=function(){return!!this._rawModule.namespaced},Ga.prototype.addChild=function(t,e){this._children[t]=e},Ga.prototype.removeChild=function(t){delete this._children[t]},Ga.prototype.getChild=function(t){return this._children[t]},Ga.prototype.hasChild=function(t){return t in this._children},Ga.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},Ga.prototype.forEachChild=function(t){ua(this._children,t)},Ga.prototype.forEachGetter=function(t){this._rawModule.getters&&ua(this._rawModule.getters,t)},Ga.prototype.forEachAction=function(t){this._rawModule.actions&&ua(this._rawModule.actions,t)},Ga.prototype.forEachMutation=function(t){this._rawModule.mutations&&ua(this._rawModule.mutations,t)},Object.defineProperties(Ga.prototype,Wa);var za=function(t){this.register([],t,!1)};function Ha(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;Ha(t.concat(r),e.getChild(r),n.modules[r])}}za.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},za.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},za.prototype.update=function(t){Ha([],this.root,t)},za.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var s=new Ga(e,n);if(0===t.length)this.root=s;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],s)}e.modules&&ua(e.modules,function(e,s){r.register(t.concat(s),e,n)})},za.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},za.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};function qa(t){return new Ya(t)}var Ya=function(t){var e=this;void 0===t&&(t={});var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1);var s=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new za(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var i=this,o=this,a=o.dispatch,c=o.commit;this.dispatch=function(t,e){return a.call(i,t,e)},this.commit=function(t,e,n){return c.call(i,t,e,n)},this.strict=r;var u=this._modules.root.state;ma(this,u,[],this._modules.root),ga(this,u),n.forEach(function(t){return t(e)})},Za={state:{configurable:!0}};Ya.prototype.install=function(t,e){t.provide(e||aa,this),t.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&Pa(t,this)},Za.state.get=function(){return this._state.data},Za.state.set=function(t){0},Ya.prototype.commit=function(t,e,n){var r=this,s=Oa(t,e,n),i=s.type,o=s.payload,a=(s.options,{type:i,payload:o}),c=this._mutations[i];c&&(this._withCommit(function(){c.forEach(function(t){t(o)})}),this._subscribers.slice().forEach(function(t){return t(a,r.state)}))},Ya.prototype.dispatch=function(t,e){var n=this,r=Oa(t,e),s=r.type,i=r.payload,o={type:s,payload:i},a=this._actions[s];if(a){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(o,n.state)})}catch(u){0}var c=a.length>1?Promise.all(a.map(function(t){return t(i)})):a[0](i);return new Promise(function(t,e){c.then(function(e){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(o,n.state)})}catch(u){0}t(e)},function(t){try{n._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(o,n.state,t)})}catch(u){0}e(t)})})}},Ya.prototype.subscribe=function(t,e){return pa(t,this._subscribers,e)},Ya.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return pa(n,this._actionSubscribers,e)},Ya.prototype.watch=function(t,e,n){var r=this;return Os(function(){return t(r.state,r.getters)},e,Object.assign({},n))},Ya.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._state.data=t})},Ya.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),ma(this,this.state,t,this._modules.get(t),n.preserveState),ga(this,this.state)},Ya.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=Ca(e.state,t.slice(0,-1));delete n[t[t.length-1]]}),da(this)},Ya.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},Ya.prototype.hotUpdate=function(t){this._modules.update(t),da(this,!0)},Ya.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(Ya.prototype,Za);Ja(function(t,e){var n={};return Ka(e).forEach(function(e){var r=e.key,s=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Qa(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof s?s.call(this,e,n):e[s]},n[r].vuex=!0}),n}),Ja(function(t,e){var n={};return Ka(e).forEach(function(e){var r=e.key,s=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=Qa(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof s?s.apply(this,[r].concat(e)):r.apply(this.$store,[s].concat(e))}}),n}),Ja(function(t,e){var n={};return Ka(e).forEach(function(e){var r=e.key,s=e.val;s=t+s,n[r]=function(){if(!t||Qa(this.$store,"mapGetters",t))return this.$store.getters[s]},n[r].vuex=!0}),n}),Ja(function(t,e){var n={};return Ka(e).forEach(function(e){var r=e.key,s=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=Qa(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof s?s.apply(this,[r].concat(e)):r.apply(this.$store,[s].concat(e))}}),n});function Ka(t){return Xa(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function Xa(t){return Array.isArray(t)||la(t)}function Ja(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Qa(t,e,n){var r=t._modulesNamespaceMap[n];return r}const $a={class:"text--secondary"},tc={class:"item-redirect",href:"https://thrivethemes.com/docs/using-the-native-wordpress-font-library-in-thrive-themes",target:"_blank"};var ec={__name:"Header",setup(t){return(t,e)=>(qs(),Js("header",null,[ri("h1",null,nt(De(Zo)("Font Library","thrive-dash")),1),ri("p",$a,[ci(nt(De(Zo)("Easily manage and upload custom fonts.","thrive-dash"))+" ",1),ri("a",tc,nt(De(Zo)("Learn more","thrive-dash")),1)])]))}},nc=n(6262);const rc=(0,nc.A)(ec,[["__scopeId","data-v-6b195b8f"]]);var sc=rc;const ic={class:"tabs"},oc={role:"tablist"},ac=["id","aria-selected","aria-controls","tabindex","onClick"];function cc(t,e,n,r,s,i){return qs(),Js("div",ic,[ri("ul",oc,[(qs(!0),Js(Vs,null,mr(r.tabTitles,(t,e)=>(qs(),Js("li",{key:t},[ri("button",{id:`tab-${e+1}`,role:"tab",type:"button","aria-selected":r.selectedTitle===t,"aria-controls":`tabpanel-${e+1}`,tabindex:r.selectedTitle===t?0:-1,onClick:e=>r.changeTab(t)},nt(t),9,ac)]))),128))]),yr(t.$slots,"default",{},void 0,!0)])}n(8111),n(1701);var uc={__name:"Tabs",emits:["changeTab"],setup(t,{expose:e,emit:n}){e();const r=Re([]),s=Re(""),i=n,o=Cr();r.value=o.default().map(t=>t.props.title),s.value=r.value[0];const a=t=>{s.value=t,i("changeTab",t)};Hr("selectedTitle",s);const c={tabTitles:r,selectedTitle:s,emit:i,slots:o,changeTab:a,ref:Re,provide:Hr,useSlots:Cr};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}};const lc=(0,nc.A)(uc,[["render",cc],["__scopeId","data-v-7812e4fd"]]);var fc=lc; /** * @vue/runtime-dom v3.5.17 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ let hc;const pc="undefined"!==typeof window&&window.trustedTypes;if(pc)try{hc=pc.createPolicy("vue",{createHTML:t=>t})}catch(Gm){}const dc=hc?t=>hc.createHTML(t):t=>t,gc="http://www.w3.org/2000/svg",mc="http://www.w3.org/1998/Math/MathML",yc="undefined"!==typeof document?document:null,vc=yc&&yc.createElement("template"),bc={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const s="svg"===e?yc.createElementNS(gc,t):"mathml"===e?yc.createElementNS(mc,t):n?yc.createElement(t,{is:n}):yc.createElement(t);return"select"===t&&r&&null!=r.multiple&&s.setAttribute("multiple",r.multiple),s},createText:t=>yc.createTextNode(t),createComment:t=>yc.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>yc.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,s,i){const o=n?n.previousSibling:e.lastChild;if(s&&(s===i||s.nextSibling)){while(1)if(e.insertBefore(s.cloneNode(!0),n),s===i||!(s=s.nextSibling))break}else{vc.innerHTML=dc("svg"===r?`${t}`:"mathml"===r?`${t}`:t);const s=vc.content;if("svg"===r||"mathml"===r){const t=s.firstChild;while(t.firstChild)s.appendChild(t.firstChild);s.removeChild(t)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},wc="transition",xc="animation",Sc=Symbol("_vtc"),Cc={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},Oc=c({},Mn,Cc),kc=t=>(t.displayName="Transition",t.props=Oc,t),Ac=kc((t,{slots:e})=>Ni(Un,Tc(t),e)),Ec=(t,e=[])=>{h(t)?t.forEach(t=>t(...e)):t&&t(...e)},Fc=t=>!!t&&(h(t)?t.some(t=>t.length>1):t.length>1);function Tc(t){const e={};for(const c in t)c in Cc||(e[c]=t[c]);if(!1===t.css)return e;const{name:n="v",type:r,duration:s,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:u=i,appearActiveClass:l=o,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:d=`${n}-leave-to`}=t,g=Pc(s),m=g&&g[0],y=g&&g[1],{onBeforeEnter:v,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:O=b,onAppearCancelled:k=w}=e,A=(t,e,n,r)=>{t._enterCancelled=r,Ic(t,e?f:a),Ic(t,e?l:o),n&&n()},E=(t,e)=>{t._isLeaving=!1,Ic(t,h),Ic(t,d),Ic(t,p),e&&e()},F=t=>(e,n)=>{const s=t?O:b,o=()=>A(e,t,n);Ec(s,[e,o]),Dc(()=>{Ic(e,t?u:i),Lc(e,t?f:a),Fc(s)||_c(e,r,m,o)})};return c(e,{onBeforeEnter(t){Ec(v,[t]),Lc(t,i),Lc(t,o)},onBeforeAppear(t){Ec(C,[t]),Lc(t,u),Lc(t,l)},onEnter:F(!1),onAppear:F(!0),onLeave(t,e){t._isLeaving=!0;const n=()=>E(t,e);Lc(t,h),t._enterCancelled?(Lc(t,p),Vc()):(Vc(),Lc(t,p)),Dc(()=>{t._isLeaving&&(Ic(t,h),Lc(t,d),Fc(x)||_c(t,r,y,n))}),Ec(x,[t,n])},onEnterCancelled(t){A(t,!1,void 0,!0),Ec(w,[t])},onAppearCancelled(t){A(t,!0,void 0,!0),Ec(k,[t])},onLeaveCancelled(t){E(t),Ec(S,[t])}})}function Pc(t){if(null==t)return null;if(x(t))return[Rc(t.enter),Rc(t.leave)];{const e=Rc(t);return[e,e]}}function Rc(t){const e=V(t);return e}function Lc(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.add(e)),(t[Sc]||(t[Sc]=new Set)).add(e)}function Ic(t,e){e.split(/\s+/).forEach(e=>e&&t.classList.remove(e));const n=t[Sc];n&&(n.delete(e),n.size||(t[Sc]=void 0))}function Dc(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Mc=0;function _c(t,e,n,r){const s=t._endId=++Mc,i=()=>{s===t._endId&&r()};if(null!=n)return setTimeout(i,n);const{type:o,timeout:a,propCount:c}=jc(t,e);if(!o)return r();const u=o+"end";let l=0;const f=()=>{t.removeEventListener(u,h),i()},h=e=>{e.target===t&&++l>=c&&f()};setTimeout(()=>{l(n[t]||"").split(", "),s=r(`${wc}Delay`),i=r(`${wc}Duration`),o=Nc(s,i),a=r(`${xc}Delay`),c=r(`${xc}Duration`),u=Nc(a,c);let l=null,f=0,h=0;e===wc?o>0&&(l=wc,f=o,h=i.length):e===xc?u>0&&(l=xc,f=u,h=c.length):(f=Math.max(o,u),l=f>0?o>u?wc:xc:null,h=l?l===wc?i.length:c.length:0);const p=l===wc&&/\b(transform|all)(,|$)/.test(r(`${wc}Property`).toString());return{type:l,timeout:f,propCount:h,hasTransform:p}}function Nc(t,e){while(t.lengthUc(e)+Uc(t[n])))}function Uc(t){return"auto"===t?0:1e3*Number(t.slice(0,-1).replace(",","."))}function Vc(){return document.body.offsetHeight}function Bc(t,e,n){const r=t[Sc];r&&(e=(e?[e,...r]:[...r]).join(" ")),null==e?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const Gc=Symbol("_vod"),Wc=Symbol("_vsh"),zc={beforeMount(t,{value:e},{transition:n}){t[Gc]="none"===t.style.display?"":t.style.display,n&&e?n.beforeEnter(t):Hc(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!==!n&&(r?e?(r.beforeEnter(t),Hc(t,!0),r.enter(t)):r.leave(t,()=>{Hc(t,!1)}):Hc(t,e))},beforeUnmount(t,{value:e}){Hc(t,e)}};function Hc(t,e){t.style.display=e?t[Gc]:"none",t[Wc]=!e}const qc=Symbol("");const Yc=/(^|;)\s*display\s*:/;function Zc(t,e,n){const r=t.style,s=b(n);let i=!1;if(n&&!s){if(e)if(b(e))for(const t of e.split(";")){const e=t.slice(0,t.indexOf(":")).trim();null==n[e]&&Xc(r,e,"")}else for(const t in e)null==n[t]&&Xc(r,t,"");for(const t in n)"display"===t&&(i=!0),Xc(r,t,n[t])}else if(s){if(e!==n){const t=r[qc];t&&(n+=";"+t),r.cssText=n,i=Yc.test(n)}}else e&&t.removeAttribute("style");Gc in t&&(t[Gc]=i?r.display:"",t[Wc]&&(r.display="none"))}const Kc=/\s*!important$/;function Xc(t,e,n){if(h(n))n.forEach(n=>Xc(t,e,n));else if(null==n&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=$c(t,e);Kc.test(n)?t.setProperty(I(r),n.replace(Kc,""),"important"):t[r]=n}}const Jc=["Webkit","Moz","ms"],Qc={};function $c(t,e){const n=Qc[e];if(n)return n;let r=R(e);if("filter"!==r&&r in t)return Qc[e]=r;r=D(r);for(let s=0;suu||(lu.then(()=>uu=0),uu=Date.now());function hu(t,e){const n=t=>{if(t._vts){if(t._vts<=n.attached)return}else t._vts=Date.now();qe(pu(t,n.value),e,5,[t])};return n.value=t,n.attached=fu(),n}function pu(t,e){if(h(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(t=>e=>!e._stopped&&t&&t(e))}return e}const du=t=>111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,gu=(t,e,n,r,s,i)=>{const c="svg"===s;"class"===e?Bc(t,r,c):"style"===e?Zc(t,n,r):o(e)?a(e)||ou(t,e,n,r,i):("."===e[0]?(e=e.slice(1),1):"^"===e[0]?(e=e.slice(1),0):mu(t,e,r,c))?(nu(t,e,r),t.tagName.includes("-")||"value"!==e&&"checked"!==e&&"selected"!==e||eu(t,e,r,c,i,"value"!==e)):!t._isVueCE||!/[A-Z]/.test(e)&&b(r)?("true-value"===e?t._trueValue=r:"false-value"===e&&(t._falseValue=r),eu(t,e,r,c)):nu(t,R(e),r,i,e)};function mu(t,e,n,r){if(r)return"innerHTML"===e||"textContent"===e||!!(e in t&&du(e)&&v(n));if("spellcheck"===e||"draggable"===e||"translate"===e||"autocorrect"===e)return!1;if("form"===e)return!1;if("list"===e&&"INPUT"===t.tagName)return!1;if("type"===e&&"TEXTAREA"===t.tagName)return!1;if("width"===e||"height"===e){const e=t.tagName;if("IMG"===e||"VIDEO"===e||"CANVAS"===e||"SOURCE"===e)return!1}return(!du(e)||!b(n))&&e in t} /*! #__NO_SIDE_EFFECTS__ */ "undefined"!==typeof HTMLElement&&HTMLElement;Symbol("_moveCb"),Symbol("_enterCb");const yu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return h(e)?t=>j(e,t):e};const vu=Symbol("_assign");const bu={deep:!0,created(t,{value:e,modifiers:{number:n}},r){const s=g(e);ru(t,"change",()=>{const e=Array.prototype.filter.call(t.options,t=>t.selected).map(t=>n?U(xu(t)):xu(t));t[vu](t.multiple?s?new Set(e):e:e[0]),t._assigning=!0,nn(()=>{t._assigning=!1})}),t[vu]=yu(r)},mounted(t,{value:e}){wu(t,e)},beforeUpdate(t,e,n){t[vu]=yu(n)},updated(t,{value:e}){t._assigning||wu(t,e)}};function wu(t,e){const n=t.multiple,r=h(e);if(!n||r||g(e)){for(let s=0,i=t.options.length;sString(t)===String(o)):tt(e,o)>-1}else i.selected=e.has(o);else if($(xu(i),e))return void(t.selectedIndex!==s&&(t.selectedIndex=s))}n||-1===t.selectedIndex||(t.selectedIndex=-1)}}function xu(t){return"_value"in t?t._value:t.value}const Su=c({patchProp:gu},bc);let Cu;function Ou(){return Cu||(Cu=ps(Su))}const ku=(...t)=>{const e=Ou().createApp(...t);const{mount:n}=e;return e.mount=t=>{const r=Eu(t);if(!r)return;const s=e._component;v(s)||s.render||s.template||(s.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const i=n(r,!1,Au(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e};function Au(t){return t instanceof SVGElement?"svg":"function"===typeof MathMLElement&&t instanceof MathMLElement?"mathml":void 0}function Eu(t){if(b(t)){const e=document.querySelector(t);return e}return t}const Fu={id:"tabpanel-1",role:"tabpanel",tabindex:"0","aria-labelledby":"tab-1"};function Tu(t,e,n,r,s,i){return mn((qs(),Js("div",Fu,[yr(t.$slots,"default")],512)),[[zc,n.title===r.selectedTitle]])}var Pu={props:{title:{type:String,required:!0}},setup(){const t=qr("selectedTitle");return{selectedTitle:t}}};const Ru=(0,nc.A)(Pu,[["render",Tu]]);var Lu=Ru;n(2489),n(7588),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(4114),n(4979),n(1678),n(8237),n(116);const Iu={100:Ko("Thin","font weight","thrive-dash"),200:Ko("Extra-light","font weight","thrive-dash"),300:Ko("Light","font weight","thrive-dash"),400:Ko("Normal","font weight","thrive-dash"),500:Ko("Medium","font weight","thrive-dash"),600:Ko("Semi-bold","font weight","thrive-dash"),700:Ko("Bold","font weight","thrive-dash"),800:Ko("Extra-bold","font weight","thrive-dash"),900:Ko("Black","font weight","thrive-dash")},Du={normal:Ko("Normal","font style","thrive-dash"),italic:Ko("Italic","font style","thrive-dash")},Mu="/wp-json/wp/v2/font-families",_u="/wp-json/wp/v2/font-collections",ju=["otf","ttf","woff","woff2"];function Nu(t){return Nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(t)}function Uu(t,e){if("object"!=Nu(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Nu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Vu(t){var e=Uu(t,"string");return"symbol"==Nu(e)?e:e+""}function Bu(t,e,n){return(e=Vu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n(3579),n(9577);var Gu=n(5339),Wu=n.n(Gu),zu=n(3585),Hu=n.n(zu);globalThis.fetch;class qu{constructor(t,e={},n){this.type=t,this.detail=e,this.msg=n,Object.defineProperty(this,"__mayPropagate",{enumerable:!1,writable:!0}),this.__mayPropagate=!0}preventDefault(){}stopPropagation(){this.__mayPropagate=!1}valueOf(){return this}toString(){return this.msg?`[${this.type} event]: ${this.msg}`:`[${this.type} event]`}}class Yu{constructor(){this.listeners={}}addEventListener(t,e,n){let r=this.listeners[t]||[];n?r.unshift(e):r.push(e),this.listeners[t]=r}removeEventListener(t,e){let n=this.listeners[t]||[],r=n.findIndex(t=>t===e);r>-1&&(n.splice(r,1),this.listeners[t]=n)}dispatch(t){let e=this.listeners[t.type];if(e)for(let n=0,r=e.length;nString.fromCharCode(t)).join("")}class Xu{constructor(t,e,n){this.name=(n||t.tag||"").trim(),this.length=t.length,this.start=t.offset,this.offset=0,this.data=e,["getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getBigInt64","getBigUint64"].forEach(t=>{let e=t.replace(/get(Big)?/,"").toLowerCase(),n=parseInt(t.replace(/[^\d]/g,""))/8;Object.defineProperty(this,e,{get:()=>this.getValue(t,n)})})}get currentPosition(){return this.start+this.offset}set currentPosition(t){this.start=t,this.offset=0}skip(t=0,e=8){this.offset+=t*e/8}getValue(t,e){let n=this.start+this.offset;this.offset+=e;try{return this.data[t](n)}catch(Gm){throw console.error("parser",t,e,this),console.error("parser",this.start,this.offset),Gm}}flags(t){if(8===t||16===t||32===t||64===t)return this[`uint${t}`].toString(2).padStart(t,0).split("").map(t=>"1"===t);console.error("Error parsing flags: flag types can only be 1, 2, 4, or 8 bytes long"),console.trace()}get tag(){const t=this.uint32;return Ku([t>>24&255,t>>16&255,t>>8&255,255&t])}get fixed(){let t=this.int16,e=Math.round(1e3*this.uint16/65356);return t+e/1e3}get legacyFixed(){let t=this.uint16,e=this.uint16.toString(16).padStart(4,0);return parseFloat(`${t}.${e}`)}get uint24(){return(this.uint8<<16)+(this.uint8<<8)+this.uint8}get uint128(){let t=0;for(let e=0;e<5;e++){let e=this.uint8;if(t=128*t+(127&e),e<128)break}return t}get longdatetime(){return new Date(Zu+1e3*parseInt(this.int64.toString()))}get fword(){return this.int16}get ufword(){return this.uint16}get Offset16(){return this.uint16}get Offset32(){return this.uint32}get F2DOT14(){const t=p.uint16,e=[0,1,-2,-1][t>>14],n=16383&t;return e+n/16384}verifyLength(){this.offset!=this.length&&console.error(`unexpected parsed table size (${this.offset}) for "${this.name}" (expected ${this.length})`)}readBytes(t=0,e=0,n=8,r=!1){if(t=t||this.length,0===t)return[];e&&(this.currentPosition=e);const s=`${r?"":"u"}int${n}`,i=[];while(t--)i.push(this[s]);return i}}class Ju{constructor(t){const e={enumerable:!1,get:()=>t};Object.defineProperty(this,"parser",e);const n=t.currentPosition,r={enumerable:!1,get:()=>n};Object.defineProperty(this,"start",r)}load(t){Object.keys(t).forEach(e=>{let n=Object.getOwnPropertyDescriptor(t,e);n.get?this[e]=n.get.bind(this):void 0!==n.value&&(this[e]=n.value)}),this.parser.length&&this.parser.verifyLength()}}class Qu extends Ju{constructor(t,e,n){const{parser:r,start:s}=super(new Xu(t,e,n)),i={enumerable:!1,get:()=>r};Object.defineProperty(this,"p",i);const o={enumerable:!1,get:()=>s};Object.defineProperty(this,"tableStart",o)}}function $u(t,e,n){let r;Object.defineProperty(t,e,{get:()=>r||(r=n(),r),enumerable:!0})}class tl extends Qu{constructor(t,e,n){const{p:r}=super({offset:0,length:12},e,"sfnt");this.version=r.uint32,this.numTables=r.uint16,this.searchRange=r.uint16,this.entrySelector=r.uint16,this.rangeShift=r.uint16,r.verifyLength(),this.directory=[...new Array(this.numTables)].map(t=>new el(r)),this.tables={},this.directory.forEach(t=>{const r=()=>n(this.tables,{tag:t.tag,offset:t.offset,length:t.length},e);$u(this.tables,t.tag.trim(),r)})}}class el{constructor(t){this.tag=t.tag,this.checksum=t.uint32,this.offset=t.uint32,this.length=t.uint32}}const nl=Hu().inflate||void 0;let rl;class sl extends Qu{constructor(t,e,n){const{p:r}=super({offset:0,length:44},e,"woff");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map(t=>new il(r)),ol(this,e,n)}}class il{constructor(t){this.tag=t.tag,this.offset=t.uint32,this.compLength=t.uint32,this.origLength=t.uint32,this.origChecksum=t.uint32}}function ol(t,e,n){t.tables={},t.directory.forEach(r=>{$u(t.tables,r.tag.trim(),()=>{let s=0,i=e;if(r.compLength!==r.origLength){const t=e.buffer.slice(r.offset,r.offset+r.compLength);let n;if(nl)n=nl(new Uint8Array(t));else{if(!rl){const t="no brotli decoder available to decode WOFF2 font";throw font.onerror&&font.onerror(t),new Error(t)}n=rl(new Uint8Array(t))}i=new DataView(n.buffer)}else s=r.offset;return n(t.tables,{tag:r.tag,offset:s,length:r.origLength},i)})})}const al=Wu();let cl;class ul extends Qu{constructor(t,e,n){const{p:r}=super({offset:0,length:48},e,"woff2");this.signature=r.tag,this.flavor=r.uint32,this.length=r.uint32,this.numTables=r.uint16,r.uint16,this.totalSfntSize=r.uint32,this.totalCompressedSize=r.uint32,this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.metaOffset=r.uint32,this.metaLength=r.uint32,this.metaOrigLength=r.uint32,this.privOffset=r.uint32,this.privLength=r.uint32,r.verifyLength(),this.directory=[...new Array(this.numTables)].map(t=>new ll(r));let s,i=r.currentPosition;this.directory[0].offset=0,this.directory.forEach((t,e)=>{let n=this.directory[e+1];n&&(n.offset=t.offset+(void 0!==t.transformLength?t.transformLength:t.origLength))});let o=e.buffer.slice(i);if(al)s=al(new Uint8Array(o));else{if(!cl){const e="no brotli decoder available to decode WOFF2 font";throw t.onerror&&t.onerror(e),new Error(e)}s=new Uint8Array(cl(o))}fl(this,s,n)}}class ll{constructor(t){this.flags=t.uint8;const e=this.tagNumber=63&this.flags;this.tag=63===e?t.tag:hl(e);const n=this.transformVersion=(192&this.flags)>>6;let r=0!==n;"glyf"!==this.tag&&"loca"!==this.tag||(r=3!==this.transformVersion),this.origLength=t.uint128,r&&(this.transformLength=t.uint128)}}function fl(t,e,n){t.tables={},t.directory.forEach(r=>{$u(t.tables,r.tag.trim(),()=>{const s=r.offset,i=s+(r.transformLength?r.transformLength:r.origLength),o=new DataView(e.slice(s,i).buffer);try{return n(t.tables,{tag:r.tag,offset:0,length:r.origLength},o)}catch(Gm){console.error(Gm)}})})}function hl(t){return["cmap","head","hhea","hmtx","maxp","name","OS/2","post","cvt ","fpgm","glyf","loca","prep","CFF ","VORG","EBDT","EBLC","gasp","hdmx","kern","LTSH","PCLT","VDMX","vhea","vmtx","BASE","GDEF","GPOS","GSUB","EBSC","JSTF","MATH","CBDT","CBLC","COLR","CPAL","SVG ","sbix","acnt","avar","bdat","bloc","bsln","cvar","fdsc","feat","fmtx","fvar","gvar","hsty","just","lcar","mort","morx","opbd","prop","trak","Zapf","Silf","Glat","Gloc","Feat","Sill"][63&t]}const pl={};let dl=!1;function gl(t,e,n){let r=e.tag.replace(/[^\w\d]/g,""),s=pl[r];return s?new s(e,n,t):(console.warn(`lib-font has no definition for ${r}. The table was skipped.`),{})}function ml(){let t=0;function e(n,r){if(!dl)return t>10?r(new Error("loading took too long")):(t++,setTimeout(()=>e(n),250));n(gl)}return new Promise((t,n)=>e(t))}function yl(t,e){let n=t.lastIndexOf("."),r=(t.substring(n+1)||"").toLowerCase(),s={ttf:"truetype",otf:"opentype",woff:"woff",woff2:"woff2"}[r];if(s)return s;let i={eot:"The .eot format is not supported: it died in January 12, 2016, when Microsoft retired all versions of IE that didn't already support WOFF.",svg:"The .svg format is not supported: SVG fonts (not to be confused with OpenType with embedded SVG) were so bad we took the entire fonts chapter out of the SVG specification again.",fon:"The .fon format is not supported: this is an ancient Windows bitmap font format.",ttc:"Based on the current CSS specification, font collections are not (yet?) supported."}[r];if(i||(i=`${t} is not a known webfont format.`),e)throw new Error(i);console.warn(`Could not load font: ${i}`)}async function vl(t,e,n={}){if(!globalThis.document)return;let r=yl(e,n.errorOnStyle);if(!r)return;let s=document.createElement("style");s.className="injected-by-Font-js";let i=[];return n.styleRules&&(i=Object.entries(n.styleRules).map(([t,e])=>`${t}: ${e};`)),s.textContent=`\n@font-face {\n font-family: "${t}";\n ${i.join("\n\t")}\n src: url("${e}") format("${r}");\n}`,globalThis.document.head.appendChild(s),s}Promise.all([Promise.resolve().then(function(){return Hl}),Promise.resolve().then(function(){return Yl}),Promise.resolve().then(function(){return Kl}),Promise.resolve().then(function(){return Ql}),Promise.resolve().then(function(){return tf}),Promise.resolve().then(function(){return of}),Promise.resolve().then(function(){return cf}),Promise.resolve().then(function(){return ff}),Promise.resolve().then(function(){return Cf}),Promise.resolve().then(function(){return _f}),Promise.resolve().then(function(){return Dh}),Promise.resolve().then(function(){return _h}),Promise.resolve().then(function(){return Vh}),Promise.resolve().then(function(){return zh}),Promise.resolve().then(function(){return qh}),Promise.resolve().then(function(){return Zh}),Promise.resolve().then(function(){return Jh}),Promise.resolve().then(function(){return $h}),Promise.resolve().then(function(){return ep}),Promise.resolve().then(function(){return rp}),Promise.resolve().then(function(){return ip}),Promise.resolve().then(function(){return ap}),Promise.resolve().then(function(){return lp}),Promise.resolve().then(function(){return gp}),Promise.resolve().then(function(){return yp}),Promise.resolve().then(function(){return bp}),Promise.resolve().then(function(){return xp}),Promise.resolve().then(function(){return Cp}),Promise.resolve().then(function(){return kp}),Promise.resolve().then(function(){return Tp}),Promise.resolve().then(function(){return Mp}),Promise.resolve().then(function(){return Up}),Promise.resolve().then(function(){return Gp}),Promise.resolve().then(function(){return qp}),Promise.resolve().then(function(){return Zp}),Promise.resolve().then(function(){return Xp}),Promise.resolve().then(function(){return $p}),Promise.resolve().then(function(){return ed}),Promise.resolve().then(function(){return od}),Promise.resolve().then(function(){return cd}),Promise.resolve().then(function(){return fd})]).then(t=>{t.forEach(t=>{let e=Object.keys(t)[0];pl[e]=t[e]}),dl=!0});const bl=[0,1,0,0],wl=[79,84,84,79],xl=[119,79,70,70],Sl=[119,79,70,50];function Cl(t,e){if(t.length===e.length){for(let n=0;n{globalThis.document&&!this.options.skipStyleSheet&&await vl(this.name,t,this.options),this.loadFont(t)})()}async loadFont(t,e){fetch(t).then(t=>kl(t)&&t.arrayBuffer()).then(n=>this.fromDataBuffer(n,e||t)).catch(n=>{const r=new qu("error",n,`Failed to load font at ${e||t}`);this.dispatch(r),this.onerror&&this.onerror(r)})}async fromDataBuffer(t,e){this.fontData=new DataView(t);let n=Ol(this.fontData);if(!n)throw new Error(`${e} is either an unsupported font format, or not a font at all.`);await this.parseBasicData(n);const r=new qu("load",{font:this});this.dispatch(r),this.onload&&this.onload(r)}async parseBasicData(t){return ml().then(e=>("SFNT"===t&&(this.opentype=new tl(this,this.fontData,e)),"WOFF"===t&&(this.opentype=new sl(this,this.fontData,e)),"WOFF2"===t&&(this.opentype=new ul(this,this.fontData,e)),this.opentype))}getGlyphId(t){return this.opentype.tables.cmap.getGlyphId(t)}reverse(t){return this.opentype.tables.cmap.reverse(t)}supports(t){return 0!==this.getGlyphId(t)}supportsVariation(t){return!1!==this.opentype.tables.cmap.supportsVariation(t)}measureText(t,e=16){if(this.__unloaded)throw new Error("Cannot measure text: font was unloaded. Please reload before calling measureText()");let n=document.createElement("div");n.textContent=t,n.style.fontFamily=this.name,n.style.fontSize=`${e}px`,n.style.color="transparent",n.style.background="transparent",n.style.top="0",n.style.left="0",n.style.position="absolute",document.body.appendChild(n);let r=n.getBoundingClientRect();document.body.removeChild(n);const s=this.opentype.tables["OS/2"];return r.fontSize=e,r.ascender=s.sTypoAscender,r.descender=s.sTypoDescender,r}unload(){if(this.styleElement.parentNode){this.styleElement.parentNode.removeElement(this.styleElement);const t=new qu("unload",{font:this});this.dispatch(t),this.onunload&&this.onunload(t)}this._unloaded=!0}load(){if(this.__unloaded){delete this.__unloaded,document.head.appendChild(this.styleElement);const t=new qu("load",{font:this});this.dispatch(t),this.onload&&this.onload(t)}}}globalThis.Font=Al;class El extends Ju{constructor(t,e,n){super(t),this.plaformID=e,this.encodingID=n}}class Fl extends El{constructor(t,e,n){super(t,e,n),this.format=0,this.length=t.uint16,this.language=t.uint16,this.glyphIdArray=[...new Array(256)].map(e=>t.uint8)}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 0. only supports(id) is implemented.")),0<=t&&t<=255}reverse(t){return console.warn("reverse not implemented for cmap subtable format 0"),{}}getSupportedCharCodes(){return[{start:1,end:256}]}}class Tl extends El{constructor(t,e,n){super(t,e,n),this.format=2,this.length=t.uint16,this.language=t.uint16,this.subHeaderKeys=[...new Array(256)].map(e=>t.uint16);const r=Math.max(...this.subHeaderKeys),s=t.currentPosition;$u(this,"subHeaders",()=>(t.currentPosition=s,[...new Array(r)].map(e=>new Pl(t))));const i=s+8*r;$u(this,"glyphIndexArray",()=>(t.currentPosition=i,[...new Array(r)].map(e=>t.uint16)))}supports(t){t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 2. only supports(id) is implemented."));const e=t&&255,n=t&&65280,r=this.subHeaders[n],s=this.subHeaders[r],i=s.firstCode,o=i+s.entryCount;return i<=e&&e<=o}reverse(t){return console.warn("reverse not implemented for cmap subtable format 2"),{}}getSupportedCharCodes(t=!1){return t?this.subHeaders.map(t=>({firstCode:t.firstCode,lastCode:t.lastCode})):this.subHeaders.map(t=>({start:t.firstCode,end:t.lastCode}))}}class Pl{constructor(t){this.firstCode=t.uint16,this.entryCount=t.uint16,this.lastCode=this.first+this.entryCount,this.idDelta=t.int16,this.idRangeOffset=t.uint16}}class Rl extends El{constructor(t,e,n){super(t,e,n),this.format=4,this.length=t.uint16,this.language=t.uint16,this.segCountX2=t.uint16,this.segCount=this.segCountX2/2,this.searchRange=t.uint16,this.entrySelector=t.uint16,this.rangeShift=t.uint16;const r=t.currentPosition;$u(this,"endCode",()=>t.readBytes(this.segCount,r,16));const s=r+2+this.segCountX2;$u(this,"startCode",()=>t.readBytes(this.segCount,s,16));const i=s+this.segCountX2;$u(this,"idDelta",()=>t.readBytes(this.segCount,i,16,!0));const o=i+this.segCountX2;$u(this,"idRangeOffset",()=>t.readBytes(this.segCount,o,16));const a=o+this.segCountX2,c=this.length-(a-this.tableStart);$u(this,"glyphIdArray",()=>t.readBytes(c,a,16)),$u(this,"segments",()=>this.buildSegments(o,a,t))}buildSegments(t,e,n){const r=(e,r)=>{let s=this.startCode[r],i=this.endCode[r],o=this.idDelta[r],a=this.idRangeOffset[r],c=t+2*r,u=[];if(0===a)for(let t=s+o,n=i+o;t<=n;t++)u.push(t);else for(let t=0,l=i-s;t<=l;t++)n.currentPosition=c+a+2*t,u.push(n.uint16);return{startCode:s,endCode:i,idDelta:o,idRangeOffset:a,glyphIDs:u}};return[...new Array(this.segCount)].map(r)}reverse(t){let e=this.segments.find(e=>e.glyphIDs.includes(t));if(!e)return{};const n=e.startCode+e.glyphIDs.indexOf(t);return{code:n,unicode:String.fromCodePoint(n)}}getGlyphId(t){if(t.charCodeAt&&(t=t.charCodeAt(0)),55296<=t&&t<=57343)return 0;if(65534===(65534&t)||65535===(65535&t))return 0;let e=this.segments.find(e=>e.startCode<=t&&t<=e.endCode);return e?e.glyphIDs[t-e.startCode]:0}supports(t){return 0!==this.getGlyphId(t)}getSupportedCharCodes(t=!1){return t?this.segments:this.segments.map(t=>({start:t.startCode,end:t.endCode}))}}class Ll extends El{constructor(t,e,n){super(t,e,n),this.format=6,this.length=t.uint16,this.language=t.uint16,this.firstCode=t.uint16,this.entryCount=t.uint16,this.lastCode=this.firstCode+this.entryCount-1;const r=()=>[...new Array(this.entryCount)].map(e=>t.uint16);$u(this,"glyphIdArray",r)}supports(t){if(t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 6. only supports(id) is implemented.")),tthis.firstCode+this.entryCount)return{};const e=t-this.firstCode;return{code:e,unicode:String.fromCodePoint(e)}}reverse(t){let e=this.glyphIdArray.indexOf(t);if(e>-1)return this.firstCode+e}getSupportedCharCodes(t=!1){return t?[{firstCode:this.firstCode,lastCode:this.lastCode}]:[{start:this.firstCode,end:this.lastCode}]}}class Il extends El{constructor(t,e,n){super(t,e,n),this.format=8,t.uint16,this.length=t.uint32,this.language=t.uint32,this.is32=[...new Array(8192)].map(e=>t.uint8),this.numGroups=t.uint32;const r=()=>[...new Array(this.numGroups)].map(e=>new Dl(t));$u(this,"groups",r)}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 8. only supports(id) is implemented.")),-1!==this.groups.findIndex(e=>e.startcharCode<=t&&t<=e.endcharCode)}reverse(t){return console.warn("reverse not implemented for cmap subtable format 8"),{}}getSupportedCharCodes(t=!1){return t?this.groups:this.groups.map(t=>({start:t.startcharCode,end:t.endcharCode}))}}class Dl{constructor(t){this.startcharCode=t.uint32,this.endcharCode=t.uint32,this.startGlyphID=t.uint32}}class Ml extends El{constructor(t,e,n){super(t,e,n),this.format=10,t.uint16,this.length=t.uint32,this.language=t.uint32,this.startCharCode=t.uint32,this.numChars=t.uint32,this.endCharCode=this.startCharCode+this.numChars;const r=()=>[...new Array(this.numChars)].map(e=>t.uint16);$u(this,"glyphs",r)}supports(t){return t.charCodeAt&&(t=-1,console.warn("supports(character) not implemented for cmap subtable format 10. only supports(id) is implemented.")),!(tthis.startCharCode+this.numChars)&&t-this.startCharCode)}reverse(t){return console.warn("reverse not implemented for cmap subtable format 10"),{}}getSupportedCharCodes(t=!1){return t?[{startCharCode:this.startCharCode,endCharCode:this.endCharCode}]:[{start:this.startCharCode,end:this.endCharCode}]}}class _l extends El{constructor(t,e,n){super(t,e,n),this.format=12,t.uint16,this.length=t.uint32,this.language=t.uint32,this.numGroups=t.uint32;const r=()=>[...new Array(this.numGroups)].map(e=>new jl(t));$u(this,"groups",r)}supports(t){return t.charCodeAt&&(t=t.charCodeAt(0)),55296<=t&&t<=57343||65534===(65534&t)||65535===(65535&t)?0:-1!==this.groups.findIndex(e=>e.startCharCode<=t&&t<=e.endCharCode)}reverse(t){for(let e of this.groups){let n=e.startGlyphID;if(n>t)continue;if(n===t)return e.startCharCode;let r=n+(e.endCharCode-e.startCharCode);if(r({start:t.startCharCode,end:t.endCharCode}))}}class jl{constructor(t){this.startCharCode=t.uint32,this.endCharCode=t.uint32,this.startGlyphID=t.uint32}}class Nl extends El{constructor(t,e,n){super(t,e,n),this.format=13,t.uint16,this.length=t.uint32,this.language=t.uint32,this.numGroups=t.uint32;const r=[...new Array(this.numGroups)].map(e=>new Ul(t));$u(this,"groups",r)}supports(t){return t.charCodeAt&&(t=t.charCodeAt(0)),-1!==this.groups.findIndex(e=>e.startCharCode<=t&&t<=e.endCharCode)}reverse(t){return console.warn("reverse not implemented for cmap subtable format 13"),{}}getSupportedCharCodes(t=!1){return t?this.groups:this.groups.map(t=>({start:t.startCharCode,end:t.endCharCode}))}}class Ul{constructor(t){this.startCharCode=t.uint32,this.endCharCode=t.uint32,this.glyphID=t.uint32}}class Vl extends El{constructor(t,e,n){super(t,e,n),this.subTableStart=t.currentPosition,this.format=14,this.length=t.uint32,this.numVarSelectorRecords=t.uint32,$u(this,"varSelectors",()=>[...new Array(this.numVarSelectorRecords)].map(e=>new Bl(t)))}supports(){return console.warn("supports not implemented for cmap subtable format 14"),0}getSupportedCharCodes(){return console.warn("getSupportedCharCodes not implemented for cmap subtable format 14"),[]}reverse(t){return console.warn("reverse not implemented for cmap subtable format 14"),{}}supportsVariation(t){let e=this.varSelector.find(e=>e.varSelector===t);return e||!1}getSupportedVariations(){return this.varSelectors.map(t=>t.varSelector)}}class Bl{constructor(t){this.varSelector=t.uint24,this.defaultUVSOffset=t.Offset32,this.nonDefaultUVSOffset=t.Offset32}}function Gl(t,e,n){const r=t.uint16;return 0===r?new Fl(t,e,n):2===r?new Tl(t,e,n):4===r?new Rl(t,e,n):6===r?new Ll(t,e,n):8===r?new Il(t,e,n):10===r?new Ml(t,e,n):12===r?new _l(t,e,n):13===r?new Nl(t,e,n):14===r?new Vl(t,e,n):{}}class Wl extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numTables=n.uint16,this.encodingRecords=[...new Array(this.numTables)].map(t=>new zl(n,this.tableStart))}getSubTable(t){return this.encodingRecords[t].table}getSupportedEncodings(){return this.encodingRecords.map(t=>({platformID:t.platformID,encodingId:t.encodingID}))}getSupportedCharCodes(t,e){const n=this.encodingRecords.findIndex(n=>n.platformID===t&&n.encodingID===e);if(-1===n)return!1;const r=this.getSubTable(n);return r.getSupportedCharCodes()}reverse(t){for(let e=0;e{let s=this.getSubTable(r);return!!s.getGlyphId&&(e=s.getGlyphId(t),0!==e)}),e}supports(t){return this.encodingRecords.some((e,n)=>{const r=this.getSubTable(n);return r.supports&&!1!==r.supports(t)})}supportsVariation(t){return this.encodingRecords.some((e,n)=>{const r=this.getSubTable(n);return r.supportsVariation&&!1!==r.supportsVariation(t)})}}class zl{constructor(t,e){const n=this.platformID=t.uint16,r=this.encodingID=t.uint16,s=this.offset=t.Offset32;$u(this,"table",()=>(t.currentPosition=e+s,Gl(t,n,r)))}}var Hl=Object.freeze({__proto__:null,cmap:Wl});class ql extends Qu{constructor(t,e){const{p:n}=super(t,e);this.load({majorVersion:n.uint16,minorVersion:n.uint16,fontRevision:n.fixed,checkSumAdjustment:n.uint32,magicNumber:n.uint32,flags:n.flags(16),unitsPerEm:n.uint16,created:n.longdatetime,modified:n.longdatetime,xMin:n.int16,yMin:n.int16,xMax:n.int16,yMax:n.int16,macStyle:n.flags(16),lowestRecPPEM:n.uint16,fontDirectionHint:n.uint16,indexToLocFormat:n.uint16,glyphDataFormat:n.uint16})}}var Yl=Object.freeze({__proto__:null,head:ql});class Zl extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.ascender=n.fword,this.descender=n.fword,this.lineGap=n.fword,this.advanceWidthMax=n.ufword,this.minLeftSideBearing=n.fword,this.minRightSideBearing=n.fword,this.xMaxExtent=n.fword,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,n.int16,n.int16,n.int16,n.int16,this.metricDataFormat=n.int16,this.numberOfHMetrics=n.uint16,n.verifyLength()}}var Kl=Object.freeze({__proto__:null,hhea:Zl});class Xl extends Qu{constructor(t,e,n){const{p:r}=super(t,e),s=n.hhea.numberOfHMetrics,i=n.maxp.numGlyphs,o=r.currentPosition;if($u(this,"hMetrics",()=>(r.currentPosition=o,[...new Array(s)].map(t=>new Jl(r.uint16,r.int16)))),s(r.currentPosition=t,[...new Array(i-s)].map(t=>r.int16)))}}}class Jl{constructor(t,e){this.advanceWidth=t,this.lsb=e}}var Ql=Object.freeze({__proto__:null,hmtx:Xl});class $l extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.legacyFixed,this.numGlyphs=n.uint16,1===this.version&&(this.maxPoints=n.uint16,this.maxContours=n.uint16,this.maxCompositePoints=n.uint16,this.maxCompositeContours=n.uint16,this.maxZones=n.uint16,this.maxTwilightPoints=n.uint16,this.maxStorage=n.uint16,this.maxFunctionDefs=n.uint16,this.maxInstructionDefs=n.uint16,this.maxStackElements=n.uint16,this.maxSizeOfInstructions=n.uint16,this.maxComponentElements=n.uint16,this.maxComponentDepth=n.uint16),n.verifyLength()}}var tf=Object.freeze({__proto__:null,maxp:$l});class ef extends Qu{constructor(t,e){const{p:n}=super(t,e);this.format=n.uint16,this.count=n.uint16,this.stringOffset=n.Offset16,this.nameRecords=[...new Array(this.count)].map(t=>new rf(n,this)),1===this.format&&(this.langTagCount=n.uint16,this.langTagRecords=[...new Array(this.langTagCount)].map(t=>new nf(n.uint16,n.Offset16))),this.stringStart=this.tableStart+this.stringOffset}get(t){let e=this.nameRecords.find(e=>e.nameID===t);if(e)return e.string}}class nf{constructor(t,e){this.length=t,this.offset=e}}class rf{constructor(t,e){this.platformID=t.uint16,this.encodingID=t.uint16,this.languageID=t.uint16,this.nameID=t.uint16,this.length=t.uint16,this.offset=t.Offset16,$u(this,"string",()=>(t.currentPosition=e.stringStart+this.offset,sf(t,this)))}}function sf(t,e){const{platformID:n,length:r}=e;if(0===r)return"";if(0===n||3===n){const e=[];for(let n=0,s=r/2;nn.uint8),this.ulUnicodeRange1=n.flags(32),this.ulUnicodeRange2=n.flags(32),this.ulUnicodeRange3=n.flags(32),this.ulUnicodeRange4=n.flags(32),this.achVendID=n.tag,this.fsSelection=n.uint16,this.usFirstCharIndex=n.uint16,this.usLastCharIndex=n.uint16,this.sTypoAscender=n.int16,this.sTypoDescender=n.int16,this.sTypoLineGap=n.int16,this.usWinAscent=n.uint16,this.usWinDescent=n.uint16,0===this.version?n.verifyLength():(this.ulCodePageRange1=n.flags(32),this.ulCodePageRange2=n.flags(32),1===this.version?n.verifyLength():(this.sxHeight=n.int16,this.sCapHeight=n.int16,this.usDefaultChar=n.uint16,this.usBreakChar=n.uint16,this.usMaxContext=n.uint16,this.version<=4?n.verifyLength():(this.usLowerOpticalPointSize=n.uint16,this.usUpperOpticalPointSize=n.uint16,5===this.version?n.verifyLength():void 0)))}}var cf=Object.freeze({__proto__:null,OS2:af});class uf extends Qu{constructor(t,e){const{p:n}=super(t,e);if(this.version=n.legacyFixed,this.italicAngle=n.fixed,this.underlinePosition=n.fword,this.underlineThickness=n.fword,this.isFixedPitch=n.uint32,this.minMemType42=n.uint32,this.maxMemType42=n.uint32,this.minMemType1=n.uint32,this.maxMemType1=n.uint32,1===this.version||3===this.version)return n.verifyLength();if(this.numGlyphs=n.uint16,2===this.version){this.glyphNameIndex=[...new Array(this.numGlyphs)].map(t=>n.uint16),this.namesOffset=n.currentPosition,this.glyphNameOffsets=[1];for(let t=0;tn.int8))}getGlyphName(t){if(2!==this.version)return console.warn(`post table version ${this.version} does not support glyph name lookups`),"";let e=this.glyphNameIndex[t];if(e<258)return lf[e];let n=this.glyphNameOffsets[t],r=this.glyphNameOffsets[t+1],s=r-n-1;if(0===s)return".notdef.";this.parser.currentPosition=this.namesOffset+n;const i=this.parser.readBytes(s,this.namesOffset+n,8,!0);return i.map(t=>String.fromCharCode(t)).join("")}}const lf=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];var ff=Object.freeze({__proto__:null,post:uf});class hf extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.horizAxisOffset=n.Offset16,this.vertAxisOffset=n.Offset16,$u(this,"horizAxis",()=>new pf({offset:t.offset+this.horizAxisOffset},e)),$u(this,"vertAxis",()=>new pf({offset:t.offset+this.vertAxisOffset},e)),1===this.majorVersion&&1===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,$u(this,"itemVarStore",()=>new pf({offset:t.offset+this.itemVarStoreOffset},e)))}}class pf extends Qu{constructor(t,e){const{p:n}=super(t,e,"AxisTable");this.baseTagListOffset=n.Offset16,this.baseScriptListOffset=n.Offset16,$u(this,"baseTagList",()=>new df({offset:t.offset+this.baseTagListOffset},e)),$u(this,"baseScriptList",()=>new gf({offset:t.offset+this.baseScriptListOffset},e))}}class df extends Qu{constructor(t,e){const{p:n}=super(t,e,"BaseTagListTable");this.baseTagCount=n.uint16,this.baselineTags=[...new Array(this.baseTagCount)].map(t=>n.tag)}}class gf extends Qu{constructor(t,e){const{p:n}=super(t,e,"BaseScriptListTable");this.baseScriptCount=n.uint16;const r=n.currentPosition;$u(this,"baseScriptRecords",()=>(n.currentPosition=r,[...new Array(this.baseScriptCount)].map(t=>new mf(this.start,n))))}}class mf{constructor(t,e){this.baseScriptTag=e.tag,this.baseScriptOffset=e.Offset16,$u(this,"baseScriptTable",()=>(e.currentPosition=t+this.baseScriptOffset,new yf(e)))}}class yf{constructor(t){this.start=t.currentPosition,this.baseValuesOffset=t.Offset16,this.defaultMinMaxOffset=t.Offset16,this.baseLangSysCount=t.uint16,this.baseLangSysRecords=[...new Array(this.baseLangSysCount)].map(e=>new vf(this.start,t)),$u(this,"baseValues",()=>(t.currentPosition=this.start+this.baseValuesOffset,new bf(t))),$u(this,"defaultMinMax",()=>(t.currentPosition=this.start+this.defaultMinMaxOffset,new wf(t)))}}class vf{constructor(t,e){this.baseLangSysTag=e.tag,this.minMaxOffset=e.Offset16,$u(this,"minMax",()=>(e.currentPosition=t+this.minMaxOffset,new wf(e)))}}class bf{constructor(t){this.parser=t,this.start=t.currentPosition,this.defaultBaselineIndex=t.uint16,this.baseCoordCount=t.uint16,this.baseCoords=[...new Array(this.baseCoordCount)].map(e=>t.Offset16)}getTable(t){return this.parser.currentPosition=this.start+this.baseCoords[t],new Sf(this.parser)}}class wf{constructor(t){this.minCoord=t.Offset16,this.maxCoord=t.Offset16,this.featMinMaxCount=t.uint16;const e=t.currentPosition;$u(this,"featMinMaxRecords",()=>(t.currentPosition=e,[...new Array(this.featMinMaxCount)].map(e=>new xf(t))))}}class xf{constructor(t){this.featureTableTag=t.tag,this.minCoord=t.Offset16,this.maxCoord=t.Offset16}}class Sf{constructor(t){this.baseCoordFormat=t.uint16,this.coordinate=t.int16,2===this.baseCoordFormat&&(this.referenceGlyph=t.uint16,this.baseCoordPoint=t.uint16),3===this.baseCoordFormat&&(this.deviceTable=t.Offset16)}}var Cf=Object.freeze({__proto__:null,BASE:hf});class Of{constructor(t){this.classFormat=t.uint16,1===this.classFormat&&(this.startGlyphID=t.uint16,this.glyphCount=t.uint16,this.classValueArray=[...new Array(this.glyphCount)].map(e=>t.uint16)),2===this.classFormat&&(this.classRangeCount=t.uint16,this.classRangeRecords=[...new Array(this.classRangeCount)].map(e=>new kf(t)))}}class kf{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.class=t.uint16}}class Af extends Ju{constructor(t){super(t),this.coverageFormat=t.uint16,1===this.coverageFormat&&(this.glyphCount=t.uint16,this.glyphArray=[...new Array(this.glyphCount)].map(e=>t.uint16)),2===this.coverageFormat&&(this.rangeCount=t.uint16,this.rangeRecords=[...new Array(this.rangeCount)].map(e=>new Ef(t)))}}class Ef{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.startCoverageIndex=t.uint16}}class Ff{constructor(t,e){this.table=t,this.parser=e,this.start=e.currentPosition,this.format=e.uint16,this.variationRegionListOffset=e.Offset32,this.itemVariationDataCount=e.uint16,this.itemVariationDataOffsets=[...new Array(this.itemVariationDataCount)].map(t=>e.Offset32)}}class Tf extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.glyphClassDefOffset=n.Offset16,$u(this,"glyphClassDefs",()=>{if(0!==this.glyphClassDefOffset)return n.currentPosition=this.tableStart+this.glyphClassDefOffset,new Of(n)}),this.attachListOffset=n.Offset16,$u(this,"attachList",()=>{if(0!==this.attachListOffset)return n.currentPosition=this.tableStart+this.attachListOffset,new Pf(n)}),this.ligCaretListOffset=n.Offset16,$u(this,"ligCaretList",()=>{if(0!==this.ligCaretListOffset)return n.currentPosition=this.tableStart+this.ligCaretListOffset,new Lf(n)}),this.markAttachClassDefOffset=n.Offset16,$u(this,"markAttachClassDef",()=>{if(0!==this.markAttachClassDefOffset)return n.currentPosition=this.tableStart+this.markAttachClassDefOffset,new Of(n)}),this.minorVersion>=2&&(this.markGlyphSetsDefOffset=n.Offset16,$u(this,"markGlyphSetsDef",()=>{if(0!==this.markGlyphSetsDefOffset)return n.currentPosition=this.tableStart+this.markGlyphSetsDefOffset,new Mf(n)})),3===this.minorVersion&&(this.itemVarStoreOffset=n.Offset32,$u(this,"itemVarStore",()=>{if(0!==this.itemVarStoreOffset)return n.currentPosition=this.tableStart+this.itemVarStoreOffset,new Ff(n)}))}}class Pf extends Ju{constructor(t){super(t),this.coverageOffset=t.Offset16,this.glyphCount=t.uint16,this.attachPointOffsets=[...new Array(this.glyphCount)].map(e=>t.Offset16)}getPoint(t){return this.parser.currentPosition=this.start+this.attachPointOffsets[t],new Rf(this.parser)}}class Rf{constructor(t){this.pointCount=t.uint16,this.pointIndices=[...new Array(this.pointCount)].map(e=>t.uint16)}}class Lf extends Ju{constructor(t){super(t),this.coverageOffset=t.Offset16,$u(this,"coverage",()=>(t.currentPosition=this.start+this.coverageOffset,new Af(t))),this.ligGlyphCount=t.uint16,this.ligGlyphOffsets=[...new Array(this.ligGlyphCount)].map(e=>t.Offset16)}getLigGlyph(t){return this.parser.currentPosition=this.start+this.ligGlyphOffsets[t],new If(this.parser)}}class If extends Ju{constructor(t){super(t),this.caretCount=t.uint16,this.caretValueOffsets=[...new Array(this.caretCount)].map(e=>t.Offset16)}getCaretValue(t){return this.parser.currentPosition=this.start+this.caretValueOffsets[t],new Df(this.parser)}}class Df{constructor(t){this.caretValueFormat=t.uint16,1===this.caretValueFormat&&(this.coordinate=t.int16),2===this.caretValueFormat&&(this.caretValuePointIndex=t.uint16),3===this.caretValueFormat&&(this.coordinate=t.int16,this.deviceOffset=t.Offset16)}}class Mf extends Ju{constructor(t){super(t),this.markGlyphSetTableFormat=t.uint16,this.markGlyphSetCount=t.uint16,this.coverageOffsets=[...new Array(this.markGlyphSetCount)].map(e=>t.Offset32)}getMarkGlyphSet(t){return this.parser.currentPosition=this.start+this.coverageOffsets[t],new Af(this.parser)}}var _f=Object.freeze({__proto__:null,GDEF:Tf});class jf extends Ju{constructor(t){super(t),this.scriptCount=t.uint16,this.scriptRecords=[...new Array(this.scriptCount)].map(e=>new Nf(t))}}Bu(jf,"EMPTY",{scriptCount:0,scriptRecords:[]});class Nf{constructor(t){this.scriptTag=t.tag,this.scriptOffset=t.Offset16}}class Uf extends Ju{constructor(t){super(t),this.defaultLangSys=t.Offset16,this.langSysCount=t.uint16,this.langSysRecords=[...new Array(this.langSysCount)].map(e=>new Vf(t))}}class Vf{constructor(t){this.langSysTag=t.tag,this.langSysOffset=t.Offset16}}class Bf{constructor(t){this.lookupOrder=t.Offset16,this.requiredFeatureIndex=t.uint16,this.featureIndexCount=t.uint16,this.featureIndices=[...new Array(this.featureIndexCount)].map(e=>t.uint16)}}class Gf extends Ju{constructor(t){super(t),this.featureCount=t.uint16,this.featureRecords=[...new Array(this.featureCount)].map(e=>new Wf(t))}}Bu(Gf,"EMPTY",{featureCount:0,featureRecords:[]});class Wf{constructor(t){this.featureTag=t.tag,this.featureOffset=t.Offset16}}class zf extends Ju{constructor(t){super(t),this.featureParams=t.Offset16,this.lookupIndexCount=t.uint16,this.lookupListIndices=[...new Array(this.lookupIndexCount)].map(e=>t.uint16)}getFeatureParams(){if(this.featureParams>0){const t=this.parser;t.currentPosition=this.start+this.featureParams;const e=this.featureTag;if("size"===e)return new qf(t);if(e.startsWith("cc"))return new Hf(t);if(e.startsWith("ss"))return new Yf(t)}}}class Hf{constructor(t){this.format=t.uint16,this.featUiLabelNameId=t.uint16,this.featUiTooltipTextNameId=t.uint16,this.sampleTextNameId=t.uint16,this.numNamedParameters=t.uint16,this.firstParamUiLabelNameId=t.uint16,this.charCount=t.uint16,this.character=[...new Array(this.charCount)].map(e=>t.uint24)}}class qf{constructor(t){this.designSize=t.uint16,this.subfamilyIdentifier=t.uint16,this.subfamilyNameID=t.uint16,this.smallEnd=t.uint16,this.largeEnd=t.uint16}}class Yf{constructor(t){this.version=t.uint16,this.UINameID=t.uint16}}function Zf(t){t.parser.currentPosition-=2,delete t.coverageOffset,delete t.getCoverageTable}class Kf extends Ju{constructor(t){super(t),this.substFormat=t.uint16,this.coverageOffset=t.Offset16}getCoverageTable(){let t=this.parser;return t.currentPosition=this.start+this.coverageOffset,new Af(t)}}class Xf{constructor(t){this.glyphSequenceIndex=t.uint16,this.lookupListIndex=t.uint16}}class Jf extends Kf{constructor(t){super(t),this.deltaGlyphID=t.int16}}class Qf extends Kf{constructor(t){super(t),this.sequenceCount=t.uint16,this.sequenceOffsets=[...new Array(this.sequenceCount)].map(e=>t.Offset16)}getSequence(t){let e=this.parser;return e.currentPosition=this.start+this.sequenceOffsets[t],new $f(e)}}class $f{constructor(t){this.glyphCount=t.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(e=>t.uint16)}}class th extends Kf{constructor(t){super(t),this.alternateSetCount=t.uint16,this.alternateSetOffsets=[...new Array(this.alternateSetCount)].map(e=>t.Offset16)}getAlternateSet(t){let e=this.parser;return e.currentPosition=this.start+this.alternateSetOffsets[t],new eh(e)}}class eh{constructor(t){this.glyphCount=t.uint16,this.alternateGlyphIDs=[...new Array(this.glyphCount)].map(e=>t.uint16)}}class nh extends Kf{constructor(t){super(t),this.ligatureSetCount=t.uint16,this.ligatureSetOffsets=[...new Array(this.ligatureSetCount)].map(e=>t.Offset16)}getLigatureSet(t){let e=this.parser;return e.currentPosition=this.start+this.ligatureSetOffsets[t],new rh(e)}}class rh extends Ju{constructor(t){super(t),this.ligatureCount=t.uint16,this.ligatureOffsets=[...new Array(this.ligatureCount)].map(e=>t.Offset16)}getLigature(t){let e=this.parser;return e.currentPosition=this.start+this.ligatureOffsets[t],new sh(e)}}class sh{constructor(t){this.ligatureGlyph=t.uint16,this.componentCount=t.uint16,this.componentGlyphIDs=[...new Array(this.componentCount-1)].map(e=>t.uint16)}}class ih extends Kf{constructor(t){super(t),1===this.substFormat&&(this.subRuleSetCount=t.uint16,this.subRuleSetOffsets=[...new Array(this.subRuleSetCount)].map(e=>t.Offset16)),2===this.substFormat&&(this.classDefOffset=t.Offset16,this.subClassSetCount=t.uint16,this.subClassSetOffsets=[...new Array(this.subClassSetCount)].map(e=>t.Offset16)),3===this.substFormat&&(Zf(this),this.glyphCount=t.uint16,this.substitutionCount=t.uint16,this.coverageOffsets=[...new Array(this.glyphCount)].map(e=>t.Offset16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(e=>new Xf(t)))}getSubRuleSet(t){if(1!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subrule sets.`);let e=this.parser;return e.currentPosition=this.start+this.subRuleSetOffsets[t],new oh(e)}getSubClassSet(t){if(2!==this.substFormat)throw new Error(`lookup type 5.${this.substFormat} has no subclass sets.`);let e=this.parser;return e.currentPosition=this.start+this.subClassSetOffsets[t],new ch(e)}getCoverageTable(t){if(3!==this.substFormat&&!t)return super.getCoverageTable();if(!t)throw new Error(`lookup type 5.${this.substFormat} requires an coverage table index.`);let e=this.parser;return e.currentPosition=this.start+this.coverageOffsets[t],new Af(e)}}class oh extends Ju{constructor(t){super(t),this.subRuleCount=t.uint16,this.subRuleOffsets=[...new Array(this.subRuleCount)].map(e=>t.Offset16)}getSubRule(t){let e=this.parser;return e.currentPosition=this.start+this.subRuleOffsets[t],new ah(e)}}class ah{constructor(t){this.glyphCount=t.uint16,this.substitutionCount=t.uint16,this.inputSequence=[...new Array(this.glyphCount-1)].map(e=>t.uint16),this.substLookupRecords=[...new Array(this.substitutionCount)].map(e=>new Xf(t))}}class ch extends Ju{constructor(t){super(t),this.subClassRuleCount=t.uint16,this.subClassRuleOffsets=[...new Array(this.subClassRuleCount)].map(e=>t.Offset16)}getSubClass(t){let e=this.parser;return e.currentPosition=this.start+this.subClassRuleOffsets[t],new uh(e)}}class uh extends ah{constructor(t){super(t)}}class lh extends Kf{constructor(t){super(t),1===this.substFormat&&(this.chainSubRuleSetCount=t.uint16,this.chainSubRuleSetOffsets=[...new Array(this.chainSubRuleSetCount)].map(e=>t.Offset16)),2===this.substFormat&&(this.backtrackClassDefOffset=t.Offset16,this.inputClassDefOffset=t.Offset16,this.lookaheadClassDefOffset=t.Offset16,this.chainSubClassSetCount=t.uint16,this.chainSubClassSetOffsets=[...new Array(this.chainSubClassSetCount)].map(e=>t.Offset16)),3===this.substFormat&&(Zf(this),this.backtrackGlyphCount=t.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(e=>t.Offset16),this.inputGlyphCount=t.uint16,this.inputCoverageOffsets=[...new Array(this.inputGlyphCount)].map(e=>t.Offset16),this.lookaheadGlyphCount=t.uint16,this.lookaheadCoverageOffsets=[...new Array(this.lookaheadGlyphCount)].map(e=>t.Offset16),this.seqLookupCount=t.uint16,this.seqLookupRecords=[...new Array(this.substitutionCount)].map(e=>new gh(t)))}getChainSubRuleSet(t){if(1!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubrule sets.`);let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleSetOffsets[t],new fh(e)}getChainSubClassSet(t){if(2!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} has no chainsubclass sets.`);let e=this.parser;return e.currentPosition=this.start+this.chainSubClassSetOffsets[t],new ph(e)}getCoverageFromOffset(t){if(3!==this.substFormat)throw new Error(`lookup type 6.${this.substFormat} does not use contextual coverage offsets.`);let e=this.parser;return e.currentPosition=this.start+t,new Af(e)}}class fh extends Ju{constructor(t){super(t),this.chainSubRuleCount=t.uint16,this.chainSubRuleOffsets=[...new Array(this.chainSubRuleCount)].map(e=>t.Offset16)}getSubRule(t){let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleOffsets[t],new hh(e)}}class hh{constructor(t){this.backtrackGlyphCount=t.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(e=>t.uint16),this.inputGlyphCount=t.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(e=>t.uint16),this.lookaheadGlyphCount=t.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(e=>t.uint16),this.substitutionCount=t.uint16,this.substLookupRecords=[...new Array(this.SubstCount)].map(e=>new Xf(t))}}class ph extends Ju{constructor(t){super(t),this.chainSubClassRuleCount=t.uint16,this.chainSubClassRuleOffsets=[...new Array(this.chainSubClassRuleCount)].map(e=>t.Offset16)}getSubClass(t){let e=this.parser;return e.currentPosition=this.start+this.chainSubRuleOffsets[t],new dh(e)}}class dh{constructor(t){this.backtrackGlyphCount=t.uint16,this.backtrackSequence=[...new Array(this.backtrackGlyphCount)].map(e=>t.uint16),this.inputGlyphCount=t.uint16,this.inputSequence=[...new Array(this.inputGlyphCount-1)].map(e=>t.uint16),this.lookaheadGlyphCount=t.uint16,this.lookAheadSequence=[...new Array(this.lookAheadGlyphCount)].map(e=>t.uint16),this.substitutionCount=t.uint16,this.substLookupRecords=[...new Array(this.substitutionCount)].map(e=>new gh(t))}}class gh extends Ju{constructor(t){super(t),this.sequenceIndex=t.uint16,this.lookupListIndex=t.uint16}}class mh extends Ju{constructor(t){super(t),this.substFormat=t.uint16,this.extensionLookupType=t.uint16,this.extensionOffset=t.Offset32}}class yh extends Kf{constructor(t){super(t),this.backtrackGlyphCount=t.uint16,this.backtrackCoverageOffsets=[...new Array(this.backtrackGlyphCount)].map(e=>t.Offset16),this.lookaheadGlyphCount=t.uint16,this.lookaheadCoverageOffsets=[new Array(this.lookaheadGlyphCount)].map(e=>t.Offset16),this.glyphCount=t.uint16,this.substituteGlyphIDs=[...new Array(this.glyphCount)].map(e=>t.uint16)}}var vh={buildSubtable:function(t,e){const n=new[void 0,Jf,Qf,th,nh,ih,lh,mh,yh][t](e);return n.type=t,n}};class bh extends Ju{constructor(t){super(t)}}class wh extends bh{constructor(t){super(t),console.log("lookup type 1")}}class xh extends bh{constructor(t){super(t),console.log("lookup type 2")}}class Sh extends bh{constructor(t){super(t),console.log("lookup type 3")}}class Ch extends bh{constructor(t){super(t),console.log("lookup type 4")}}class Oh extends bh{constructor(t){super(t),console.log("lookup type 5")}}class kh extends bh{constructor(t){super(t),console.log("lookup type 6")}}class Ah extends bh{constructor(t){super(t),console.log("lookup type 7")}}class Eh extends bh{constructor(t){super(t),console.log("lookup type 8")}}class Fh extends bh{constructor(t){super(t),console.log("lookup type 9")}}var Th={buildSubtable:function(t,e){const n=new[void 0,wh,xh,Sh,Ch,Oh,kh,Ah,Eh,Fh][t](e);return n.type=t,n}};class Ph extends Ju{constructor(t){super(t),this.lookupCount=t.uint16,this.lookups=[...new Array(this.lookupCount)].map(e=>t.Offset16)}}Bu(Ph,"EMPTY",{lookupCount:0,lookups:[]});class Rh extends Ju{constructor(t,e){super(t),this.ctType=e,this.lookupType=t.uint16,this.lookupFlag=t.uint16,this.subTableCount=t.uint16,this.subtableOffsets=[...new Array(this.subTableCount)].map(e=>t.Offset16),this.markFilteringSet=t.uint16}get rightToLeft(){return!0&this.lookupFlag}get ignoreBaseGlyphs(){return!0&this.lookupFlag}get ignoreLigatures(){return!0&this.lookupFlag}get ignoreMarks(){return!0&this.lookupFlag}get useMarkFilteringSet(){return!0&this.lookupFlag}get markAttachmentType(){return!0&this.lookupFlag}getSubTable(t){const e="GSUB"===this.ctType?vh:Th;return this.parser.currentPosition=this.start+this.subtableOffsets[t],e.buildSubtable(this.lookupType,this.parser)}}class Lh extends Qu{constructor(t,e,n){const{p:r,tableStart:s}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.scriptListOffset=r.Offset16,this.featureListOffset=r.Offset16,this.lookupListOffset=r.Offset16,1===this.majorVersion&&1===this.minorVersion&&(this.featureVariationsOffset=r.Offset32);const i=!(this.scriptListOffset||this.featureListOffset||this.lookupListOffset);$u(this,"scriptList",()=>i?jf.EMPTY:(r.currentPosition=s+this.scriptListOffset,new jf(r))),$u(this,"featureList",()=>i?Gf.EMPTY:(r.currentPosition=s+this.featureListOffset,new Gf(r))),$u(this,"lookupList",()=>i?Ph.EMPTY:(r.currentPosition=s+this.lookupListOffset,new Ph(r))),this.featureVariationsOffset&&$u(this,"featureVariations",()=>i?FeatureVariations.EMPTY:(r.currentPosition=s+this.featureVariationsOffset,new FeatureVariations(r)))}getSupportedScripts(){return this.scriptList.scriptRecords.map(t=>t.scriptTag)}getScriptTable(t){let e=this.scriptList.scriptRecords.find(e=>e.scriptTag===t);this.parser.currentPosition=this.scriptList.start+e.scriptOffset;let n=new Uf(this.parser);return n.scriptTag=t,n}ensureScriptTable(t){return"string"===typeof t?this.getScriptTable(t):t}getSupportedLangSys(t){t=this.ensureScriptTable(t);const e=0!==t.defaultLangSys,n=t.langSysRecords.map(t=>t.langSysTag);return e&&n.unshift("dflt"),n}getDefaultLangSysTable(t){t=this.ensureScriptTable(t);let e=t.defaultLangSys;if(0!==e){this.parser.currentPosition=t.start+e;let n=new Bf(this.parser);return n.langSysTag="",n.defaultForScript=t.scriptTag,n}}getLangSysTable(t,e="dflt"){if("dflt"===e)return this.getDefaultLangSysTable(t);t=this.ensureScriptTable(t);let n=t.langSysRecords.find(t=>t.langSysTag===e);this.parser.currentPosition=t.start+n.langSysOffset;let r=new Bf(this.parser);return r.langSysTag=e,r}getFeatures(t){return t.featureIndices.map(t=>this.getFeature(t))}getFeature(t){let e;if(e=parseInt(t)==t?this.featureList.featureRecords[t]:this.featureList.featureRecords.find(e=>e.featureTag===t),!e)return;this.parser.currentPosition=this.featureList.start+e.featureOffset;let n=new zf(this.parser);return n.featureTag=e.featureTag,n}getLookups(t){return t.lookupListIndices.map(t=>this.getLookup(t))}getLookup(t,e){let n=this.lookupList.lookups[t];return this.parser.currentPosition=this.lookupList.start+n,new Rh(this.parser,e)}}class Ih extends Lh{constructor(t,e){super(t,e,"GSUB")}getLookup(t){return super.getLookup(t,"GSUB")}}var Dh=Object.freeze({__proto__:null,GSUB:Ih});class Mh extends Lh{constructor(t,e){super(t,e,"GPOS")}getLookup(t){return super.getLookup(t,"GPOS")}}var _h=Object.freeze({__proto__:null,GPOS:Mh});class jh extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.offsetToSVGDocumentList=n.Offset32,n.currentPosition=this.tableStart+this.offsetToSVGDocumentList,this.documentList=new Nh(n)}}class Nh extends Ju{constructor(t){super(t),this.numEntries=t.uint16,this.documentRecords=[...new Array(this.numEntries)].map(e=>new Uh(t))}getDocument(t){let e=this.documentRecords[t];if(!e)return"";let n=this.start+e.svgDocOffset;return this.parser.currentPosition=n,this.parser.readBytes(e.svgDocLength)}getDocumentForGlyph(t){let e=this.documentRecords.findIndex(e=>e.startGlyphID<=t&&t<=e.endGlyphID);return-1===e?"":this.getDocument(e)}}class Uh{constructor(t){this.startGlyphID=t.uint16,this.endGlyphID=t.uint16,this.svgDocOffset=t.Offset32,this.svgDocLength=t.uint32}}var Vh=Object.freeze({__proto__:null,SVG:jh});class Bh extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.axesArrayOffset=n.Offset16,n.uint16,this.axisCount=n.uint16,this.axisSize=n.uint16,this.instanceCount=n.uint16,this.instanceSize=n.uint16;const r=this.tableStart+this.axesArrayOffset;$u(this,"axes",()=>(n.currentPosition=r,[...new Array(this.axisCount)].map(t=>new Gh(n))));const s=r+this.axisCount*this.axisSize;$u(this,"instances",()=>{let t=[];for(let e=0;et.tag)}getAxis(t){return this.axes.find(e=>e.tag===t)}}class Gh{constructor(t){this.tag=t.tag,this.minValue=t.fixed,this.defaultValue=t.fixed,this.maxValue=t.fixed,this.flags=t.flags(16),this.axisNameID=t.uint16}}class Wh{constructor(t,e,n){let r=t.currentPosition;this.subfamilyNameID=t.uint16,t.uint16,this.coordinates=[...new Array(e)].map(e=>t.fixed),t.currentPosition-r[...new Array(r)].map(t=>n.fword))}}var qh=Object.freeze({__proto__:null,cvt:Hh});class Yh extends Qu{constructor(t,e){const{p:n}=super(t,e);$u(this,"instructions",()=>[...new Array(t.length)].map(t=>n.uint8))}}var Zh=Object.freeze({__proto__:null,fpgm:Yh});class Kh extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numRanges=n.uint16;const r=()=>[...new Array(this.numRanges)].map(t=>new Xh(n));$u(this,"gaspRanges",r)}}class Xh{constructor(t){this.rangeMaxPPEM=t.uint16,this.rangeGaspBehavior=t.uint16}}var Jh=Object.freeze({__proto__:null,gasp:Kh});class Qh extends Qu{constructor(t,e){super(t,e)}getGlyphData(t,e){return this.parser.currentPosition=this.tableStart+t,this.parser.readBytes(e)}}var $h=Object.freeze({__proto__:null,glyf:Qh});class tp extends Qu{constructor(t,e,n){const{p:r}=super(t,e),s=n.maxp.numGlyphs+1;0===n.head.indexToLocFormat?(this.x2=!0,$u(this,"offsets",()=>[...new Array(s)].map(t=>r.Offset16))):$u(this,"offsets",()=>[...new Array(s)].map(t=>r.Offset32))}getGlyphDataOffsetAndLength(t){let e=this.offsets[t]*this.x2?2:1,n=this.offsets[t+1]*this.x2?2:1;return{offset:e,length:n-e}}}var ep=Object.freeze({__proto__:null,loca:tp});class np extends Qu{constructor(t,e){const{p:n}=super(t,e);$u(this,"instructions",()=>[...new Array(t.length)].map(t=>n.uint8))}}var rp=Object.freeze({__proto__:null,prep:np});class sp extends Qu{constructor(t,e){const{p:n}=super(t,e);$u(this,"data",()=>n.readBytes())}}var ip=Object.freeze({__proto__:null,CFF:sp});class op extends Qu{constructor(t,e){const{p:n}=super(t,e);$u(this,"data",()=>n.readBytes())}}var ap=Object.freeze({__proto__:null,CFF2:op});class cp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.defaultVertOriginY=n.int16,this.numVertOriginYMetrics=n.uint16,$u(this,"vertORiginYMetrics",()=>[...new Array(this.numVertOriginYMetrics)].map(t=>new up(n)))}}class up{constructor(t){this.glyphIndex=t.uint16,this.vertOriginY=t.int16}}var lp=Object.freeze({__proto__:null,VORG:cp});class fp{constructor(t){this.indexSubTableArrayOffset=t.Offset32,this.indexTablesSize=t.uint32,this.numberofIndexSubTables=t.uint32,this.colorRef=t.uint32,this.hori=new pp(t),this.vert=new pp(t),this.startGlyphIndex=t.uint16,this.endGlyphIndex=t.uint16,this.ppemX=t.uint8,this.ppemY=t.uint8,this.bitDepth=t.uint8,this.flags=t.int8}}class hp{constructor(t){this.hori=new pp(t),this.vert=new pp(t),this.ppemX=t.uint8,this.ppemY=t.uint8,this.substitutePpemX=t.uint8,this.substitutePpemY=t.uint8}}class pp{constructor(t){this.ascender=t.int8,this.descender=t.int8,this.widthMax=t.uint8,this.caretSlopeNumerator=t.int8,this.caretSlopeDenominator=t.int8,this.caretOffset=t.int8,this.minOriginSB=t.int8,this.minAdvanceSB=t.int8,this.maxBeforeBL=t.int8,this.minAfterBL=t.int8,this.pad1=t.int8,this.pad2=t.int8}}class dp extends Qu{constructor(t,e,n){const{p:r}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16,this.numSizes=r.uint32,$u(this,"bitMapSizes",()=>[...new Array(this.numSizes)].map(t=>new fp(r)))}}var gp=Object.freeze({__proto__:null,EBLC:dp});class mp extends Qu{constructor(t,e,n){const{p:r}=super(t,e,n);this.majorVersion=r.uint16,this.minorVersion=r.uint16}}var yp=Object.freeze({__proto__:null,EBDT:mp});class vp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.majorVersion=n.uint16,this.minorVersion=n.uint16,this.numSizes=n.uint32,$u(this,"bitmapScales",()=>[...new Array(this.numSizes)].map(t=>new hp(n)))}}var bp=Object.freeze({__proto__:null,EBSC:vp});class wp extends dp{constructor(t,e){super(t,e,"CBLC")}}var xp=Object.freeze({__proto__:null,CBLC:wp});class Sp extends mp{constructor(t,e){super(t,e,"CBDT")}}var Cp=Object.freeze({__proto__:null,CBDT:Sp});class Op extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.flags=n.flags(16),this.numStrikes=n.uint32,$u(this,"strikeOffsets",()=>[...new Array(this.numStrikes)].map(t=>n.Offset32))}}var kp=Object.freeze({__proto__:null,sbix:Op});class Ap extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numBaseGlyphRecords=n.uint16,this.baseGlyphRecordsOffset=n.Offset32,this.layerRecordsOffset=n.Offset32,this.numLayerRecords=n.uint16}getBaseGlyphRecord(t){let e=this.tableStart+this.baseGlyphRecordsOffset;this.parser.currentPosition=e;let n=new Ep(this.parser),r=n.gID,s=this.tableStart+this.layerRecordsOffset-6;this.parser.currentPosition=s;let i=new Ep(this.parser),o=i.gID;if(r===t)return n;if(o===t)return i;while(1){if(e===s)break;let n=e+(s-e)/12;this.parser.currentPosition=n;let r=new Ep(this.parser),i=r.gID;if(i===t)return r;i>t?s=n:inew Fp(p))}}class Ep{constructor(t){this.gID=t.uint16,this.firstLayerIndex=t.uint16,this.numLayers=t.uint16}}class Fp{constructor(t){this.gID=t.uint16,this.paletteIndex=t.uint16}}var Tp=Object.freeze({__proto__:null,COLR:Ap});class Pp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numPaletteEntries=n.uint16;const r=this.numPalettes=n.uint16;this.numColorRecords=n.uint16,this.offsetFirstColorRecord=n.Offset32,this.colorRecordIndices=[...new Array(this.numPalettes)].map(t=>n.uint16),$u(this,"colorRecords",()=>(n.currentPosition=this.tableStart+this.offsetFirstColorRecord,[...new Array(this.numColorRecords)].map(t=>new Rp(n)))),1===this.version&&(this.offsetPaletteTypeArray=n.Offset32,this.offsetPaletteLabelArray=n.Offset32,this.offsetPaletteEntryLabelArray=n.Offset32,$u(this,"paletteTypeArray",()=>(n.currentPosition=this.tableStart+this.offsetPaletteTypeArray,new Lp(n,r))),$u(this,"paletteLabelArray",()=>(n.currentPosition=this.tableStart+this.offsetPaletteLabelArray,new Ip(n,r))),$u(this,"paletteEntryLabelArray",()=>(n.currentPosition=this.tableStart+this.offsetPaletteEntryLabelArray,new Dp(n,r))))}}class Rp{constructor(t){this.blue=t.uint8,this.green=t.uint8,this.red=t.uint8,this.alpha=t.uint8}}class Lp{constructor(t,e){this.paletteTypes=[...new Array(e)].map(e=>t.uint32)}}class Ip{constructor(t,e){this.paletteLabels=[...new Array(e)].map(e=>t.uint16)}}class Dp{constructor(t,e){this.paletteEntryLabels=[...new Array(e)].map(e=>t.uint16)}}var Mp=Object.freeze({__proto__:null,CPAL:Pp});class _p extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint32,this.numSignatures=n.uint16,this.flags=n.uint16,this.signatureRecords=[...new Array(this.numSignatures)].map(t=>new jp(n))}getData(t){const e=this.signatureRecords[t];return this.parser.currentPosition=this.tableStart+e.offset,new Np(this.parser)}}class jp{constructor(t){this.format=t.uint32,this.length=t.uint32,this.offset=t.Offset32}}class Np{constructor(t){t.uint16,t.uint16,this.signatureLength=t.uint32,this.signature=t.readBytes(this.signatureLength)}}var Up=Object.freeze({__proto__:null,DSIG:_p});class Vp extends Qu{constructor(t,e,n){const{p:r}=super(t,e),s=n.hmtx.numGlyphs;this.version=r.uint16,this.numRecords=r.int16,this.sizeDeviceRecord=r.int32,this.records=[...new Array(numRecords)].map(t=>new Bp(r,s))}}class Bp{constructor(t,e){this.pixelSize=t.uint8,this.maxWidth=t.uint8,this.widths=t.readBytes(e)}}var Gp=Object.freeze({__proto__:null,hdmx:Vp});class Wp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.nTables=n.uint16,$u(this,"tables",()=>{let t=this.tableStart+4;const e=[];for(let r=0;r[...new Array(this.nPairs)].map(e=>new Hp(t)))),2===this.format&&console.warn("Kern subtable format 2 is not supported: this parser currently only parses universal table data.")}get horizontal(){return this.coverage[0]}get minimum(){return this.coverage[1]}get crossstream(){return this.coverage[2]}get override(){return this.coverage[3]}}class Hp{constructor(t){this.left=t.uint16,this.right=t.uint16,this.value=t.fword}}var qp=Object.freeze({__proto__:null,kern:Wp});class Yp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numGlyphs=n.uint16,this.yPels=n.readBytes(this.numGlyphs)}}var Zp=Object.freeze({__proto__:null,LTSH:Yp});class Kp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.mergeClassCount=n.uint16,this.mergeDataOffset=n.Offset16,this.classDefCount=n.uint16,this.offsetToClassDefOffsets=n.Offset16,$u(this,"mergeEntryMatrix",()=>[...new Array(this.mergeClassCount)].map(t=>n.readBytes(this.mergeClassCount))),console.warn("Full MERG parsing is currently not supported."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}var Xp=Object.freeze({__proto__:null,MERG:Kp});class Jp extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint32,this.flags=n.uint32,n.uint32,this.dataMapsCount=n.uint32,this.dataMaps=[...new Array(this.dataMapsCount)].map(t=>new Qp(this.tableStart,n))}}class Qp{constructor(t,e){this.tableStart=t,this.parser=e,this.tag=e.tag,this.dataOffset=e.Offset32,this.dataLength=e.uint32}getData(){return this.parser.currentField=this.tableStart+this.dataOffset,this.parser.readBytes(this.dataLength)}}var $p=Object.freeze({__proto__:null,meta:Jp});class td extends Qu{constructor(t,e){super(t,e),console.warn("This font uses a PCLT table, which is currently not supported by this parser."),console.warn("If you need this table parsed, please file an issue, or better yet, a PR.")}}var ed=Object.freeze({__proto__:null,PCLT:td});class nd extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.uint16,this.numRecs=n.uint16,this.numRatios=n.uint16,this.ratRanges=[...new Array(this.numRatios)].map(t=>new rd(n)),this.offsets=[...new Array(this.numRatios)].map(t=>n.Offset16),this.VDMXGroups=[...new Array(this.numRecs)].map(t=>new sd(n))}}class rd{constructor(t){this.bCharSet=t.uint8,this.xRatio=t.uint8,this.yStartRatio=t.uint8,this.yEndRatio=t.uint8}}class sd{constructor(t){this.recs=t.uint16,this.startsz=t.uint8,this.endsz=t.uint8,this.records=[...new Array(this.recs)].map(e=>new id(t))}}class id{constructor(t){this.yPelHeight=t.uint16,this.yMax=t.int16,this.yMin=t.int16}}var od=Object.freeze({__proto__:null,VDMX:nd});class ad extends Qu{constructor(t,e){const{p:n}=super(t,e);this.version=n.fixed,this.ascent=this.vertTypoAscender=n.int16,this.descent=this.vertTypoDescender=n.int16,this.lineGap=this.vertTypoLineGap=n.int16,this.advanceHeightMax=n.int16,this.minTopSideBearing=n.int16,this.minBottomSideBearing=n.int16,this.yMaxExtent=n.int16,this.caretSlopeRise=n.int16,this.caretSlopeRun=n.int16,this.caretOffset=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.reserved=n.int16,this.metricDataFormat=n.int16,this.numOfLongVerMetrics=n.uint16,n.verifyLength()}}var cd=Object.freeze({__proto__:null,vhea:ad});class ud extends Qu{constructor(t,e,n){super(t,e);const r=n.vhea.numOfLongVerMetrics,s=n.maxp.numGlyphs,i=p.currentPosition;if(lazy(this,"vMetrics",()=>(p.currentPosition=i,[...new Array(r)].map(t=>new ld(p.uint16,p.int16)))),r(p.currentPosition=t,[...new Array(s-r)].map(t=>p.int16)))}}}class ld{constructor(t,e){this.advanceHeight=t,this.topSideBearing=e}}var fd=Object.freeze({__proto__:null,vmtx:ud});const hd=async t=>new Promise((e,n)=>{const r=new window.FileReader;r.readAsArrayBuffer(t),r.onload=()=>e(r.result),r.onerror=n}),pd=t=>{const e=[];return t.dataTransfer.items?[...t.dataTransfer.items].forEach(t=>{"file"===t.kind&&e.push(t.getAsFile())}):[...t.dataTransfer.files].forEach(t=>{e.push(t)}),e},dd=(t,e)=>-1!==e.findIndex(e=>+e.fontWeight===+t.fontWeight&&e.fontStyle===t.fontStyle),gd=async t=>{const e=new Al("uploaded-font");try{const n=await hd(t);return await e.fromDataBuffer(n,"font"),!0}catch(n){return!1}},md=(t,e)=>t.fontStyle===e.fontStyle&&t.fontWeight===e.fontWeight&&t.fontFamily===e.fontFamily,yd=t=>"string"===typeof t&&t!==decodeURIComponent(t),vd=t=>{switch(t){case"normal":return 400;case"bold":return 700;case"bolder":return 500;case"lighter":return 300;default:return parseInt(t,10)}},bd=t=>{const e=Iu[t.fontWeight]||t.fontWeight,n="normal"===t.fontStyle?"":Du[t.fontStyle]||t.fontStyle;return`${t.fontFamily} ${e} ${n}`},wd=t=>t.fontStyle||t.fontWeight?t:t.fontFace&&t.fontFace.length?t.fontFace.find(t=>"normal"===t.fontStyle&&"400"===t.fontWeight)||t.fontFace[0]:{fontStyle:"normal",fontWeight:"400",fontFamily:t.fontFamily,fake:!0},xd=t=>{if(!t)return;let e;return e=Array.isArray(t)?t[0]:t,e.startsWith("file:.")?void 0:(yd(e)||(e=encodeURI(e)),e)},Sd=t=>{const e=[];return t.forEach(t=>{const n=String(t.fontWeight).split(" ");if(2===n.length){const t=vd(n[0]),r=vd(n[1]);for(let n=t;n<=r;n+=100)e.push(n)}else 1===n.length&&e.push(vd(n[0]))}),e},Cd=(t,e)=>0===e.length?null:(e.sort((e,n)=>Math.abs(t-e)-Math.abs(t-n)),e[0]),Od=t=>{const e={fontFamily:kd(t.fontFamily)};if(!Array.isArray(t.fontFace))return e.fontWeight="400",e.fontStyle="normal",e;if(t.fontFace){const n=t.fontFace.filter(t=>t?.fontStyle&&"normal"===t.fontStyle.toLowerCase());if(n.length>0){e.fontStyle="normal";const t=Sd(n),r=Cd(400,t);e.fontWeight=String(r)||"400"}else e.fontStyle=t.fontFace.length&&t.fontFace[0].fontStyle||"normal",e.fontWeight=t.fontFace.length&&String(t.fontFace[0].fontWeight)||"400"}return e};function kd(t){const e=/^(?!generic\([ a-zA-Z\-]+\)$)(?!^[a-zA-Z\-]+$).+/,n=t.trim(),r=t=>(t=t.trim(),t.match(e)?(t=t.replace(/^["']|["']$/g,""),`"${t}"`):t);return n.includes(",")?n.split(",").map(r).filter(t=>""!==t).join(", "):r(n)}const Ad=t=>({fontFamily:kd(t.fontFamily),fontStyle:t.fontStyle||"normal",fontWeight:t.fontWeight||"400"}),Ed=async function(t){const e=await hd(t),n=new Al("uploaded-font");n.fromDataBuffer(e,t.name);const r=await new Promise(t=>n.onload=t),s=r.detail.font,{name:i}=s.opentype.tables,o=i.get(16)||i.get(1),a=i.get(2).toLowerCase().includes("italic"),c=s.opentype.tables["OS/2"].usWeightClass||"normal",u=!!s.opentype.tables.fvar,l=u&&s.opentype.tables.fvar.axes.find(({tag:t})=>"wght"===t),f=l?`${l.minValue} ${l.maxValue}`:null;return{file:t,fontFamily:o,fontStyle:a?"italic":"normal",fontWeight:f||c}},Fd=t=>{if(!t)return"";let e=t.trim();return e.includes(",")&&(e=e.split(",").find(t=>""!==t.trim()).trim()),e=e.replace(/^["']|["']$/g,""),window.navigator.userAgent.toLowerCase().includes("firefox")&&(e=`"${e}"`),e},Td=/([\p{Ll}\d])(\p{Lu})/gu,Pd=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Rd=/(\d)\p{Ll}|(\p{L})\d/u,Ld=/[^\p{L}\d]+/giu,Id="$1\0$2",Dd="";function Md(t){let e=t.trim();e=e.replace(Td,Id).replace(Pd,Id),e=e.replace(Ld,"\0");let n=0,r=e.length;while("\0"===e.charAt(n))n++;if(n===r)return[];while("\0"===e.charAt(r-1))r--;return e.slice(n,r).split(/\0/g)}function _d(t){const e=Md(t);for(let n=0;nt.toLowerCase():e=>e.toLocaleLowerCase(t)}function Vd(t,e={}){const n=e.split??(e.separateNumbers?_d:Md),r=e.prefixCharacters??Dd,s=e.suffixCharacters??Dd;let i=0,o=t.length;while(ii){const e=o-1,n=t.charAt(e);if(!s.includes(n))break;o=e}return[t.slice(0,i),n(t.slice(i,o)),t.slice(o)]}const Bd=t=>t.sort((t,e)=>"normal"===t.fontStyle&&"normal"!==e.fontStyle?-1:"normal"===e.fontStyle&&"normal"!==t.fontStyle?1:t.fontStyle===e.fontStyle?vd(t.fontWeight)-vd(e.fontWeight):t.fontStyle.localeCompare(e.fontStyle)),Gd=t=>Bd(t?._embedded?.font_faces?.map(({id:t,parent:e,font_face_settings:n})=>({id:t,parent:e,...n}))??[]),Wd=t=>({id:t.id,...t.font_family_settings,fontFace:Gd(t)}),zd=t=>{const{fontFamily:e,name:n,slug:r,preview:s=""}=t,i=new FormData;return i.append("theme_json_version",2),i.append("font_family_settings",JSON.stringify({fontFamily:e,name:n,slug:r,preview:s})),i},Hd=t=>{const e={...t},n=new FormData;if(e.file){const t=Array.isArray(e.file)?e.file:[e.file],r=[];t.forEach((t,e)=>{const s=Nd(t.name.toLowerCase());n.append(s,t,t.name),r.push(s)}),e.src=1===r.length?r[0]:r,delete e.file}return n.append("font_face_settings",JSON.stringify(e)),n.append("theme_json_version",2),n},qd=t=>{const e=t.reduce((t,e)=>(t[e.fontFamily]||(t[e.fontFamily]={name:e.fontFamily,fontFamily:e.fontFamily,slug:Nd(e.fontFamily.toLowerCase()),fontFace:[]}),t[e.fontFamily].fontFace.push(e),t),{});return Object.values(e)},Yd={errors:{file_format_unsupported:0,font_already_exists:0,font_family_not_created:0,font_face_not_created:0,font_face_asset_download:0,font_loading_failed:0,other:0},incrementErrorCount(t){this.errors[t]?this.errors[t]++:this.errors[t]=1},resetErrorCounts(){Object.keys(this.errors).forEach(t=>this.errors[t]=0)},errorFileFormatUnsupported(){this.incrementErrorCount("file_format_unsupported")},errorFontAlreadyExists(){this.incrementErrorCount("font_already_exists")},errorFontFamilyNotCreated(){this.incrementErrorCount("font_family_not_created")},errorFontFaceNotCreated(){this.incrementErrorCount("font_face_not_created")},errorOther(){this.incrementErrorCount("other")},errorDownloadFontFaceAsset(){this.incrementErrorCount("font_face_asset_download")},errorFontLoadingFailed(){this.incrementErrorCount("font_loading_failed")},hasErrors(){return 000?Zo("Some files were not uploaded because they are not supported font files.","thrive-dash"):e>0?Zo("Some files were not uploaded because they are already installed.","thrive-dash"):s>0?Zo("Install failed as some files were not downloaded.","thrive-dash"):n>0||r>0?Zo("Some fonts were not installed.","thrive-dash"):i>0?Zo("Failed to load some font files because they are invalid.","thrive-dash"):o>0?Zo("An unknown error occurred. Please try again later.","thrive-dash"):""}},Zd=async({path:t,method:e="GET",headers:n={},...r})=>{const s=wpApiSettings.nonce??"",i={method:e,headers:{"x-wp-nonce":s,...n},...r};return await fetch(t,i)},Kd=async t=>{const e=await Zd(t);return!!e.ok&&await e.json()},Xd=async t=>{const e=new URLSearchParams;e.append("_embed","font_faces"),Object.entries(t).forEach(([t,n])=>{e.append(t,n)});const n=await Zd({path:`/wp-json/wp/v2/font-families?${e.toString()}`}),r=await n.json();if(!n.ok||!Array.isArray(r))return{data:[],pageCount:1};const s=n.headers.get("X-WP-TotalPages"),i=n.headers.get("X-WP-Total");return{data:r.map(t=>Wd(t)),count:i,pageCount:s}},Jd=async t=>{const e=await Kd({path:`${Mu}?slug=${t}&_embed=true`});if(!e||0===e.length)return null;const n=e[0];return Wd(n)},Qd=async t=>{const e=[];for(const n of t){const{slug:t}=n;let r=null,s=[];const i=await Jd(t);if(null===i){const t=await Kd({path:`${Mu}`,method:"POST",body:zd(n)});r=t?.id??null}else r=i?.id??null,s=i.fontFace;if(null===r){Yd.errorFontFamilyNotCreated();continue}const o=structuredClone(n);o.fontFace=[],e.push(o);for(const e of n.fontFace){if(dd(e,s)){Yd.errorFontAlreadyExists();continue}const t=await Kd({path:`${Mu}/${r}/font-faces`,method:"POST",body:Hd(e)});!1!==t?t&&t.font_face_settings&&"object"===typeof t.font_face_settings&&o.fontFace.push(t.font_face_settings):Yd.errorFontFaceNotCreated()}}if(e.length>0){const t=await tg();await eg([...t,...e])}},$d=async t=>!!await Kd({path:`/wp-json/wp/v2/font-families/${t}?force=true`,method:"DELETE"}),tg=async()=>{const t=await Kd({path:"/wp-json/theme/v1/fonts"});return t&&Array.isArray(t)?t:[]},eg=async t=>!!await Kd({path:"/wp-json/theme/v1/fonts",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fonts:t})}),ng=async t=>{const e={path:`${_u}/${t}`,method:"GET"};return await Kd(e)},rg=async()=>{const{font_families:t,...e}=await ng("google-fonts");return{...e,font_families:t?.map(t=>({...t.font_family_settings,categories:t.categories}))??[]}};async function sg(t){t=Array.isArray(t)?t:[t];const e=await Promise.all(t.map(async t=>fetch(new Request(t)).then(t=>t.ok?t.blob():(Yd.errorDownloadFontFaceAsset(),null)).then(e=>{if(!e)return null;const n=t.split("/").pop(),r=new File([e],n,{type:e.type});return r}))),n=e.filter(t=>null!==t);return 1===n.length?n[0]:n}class ig{success(t){throw new Error("Method not implemented")}error(t){throw new Error("Method not implemented")}}class og extends ig{success(t){TVE_Dash.success(t)}error(t){TVE_Dash.err(t)}}class ag extends ig{success(t){TVE.page_message(t,!1)}error(t){TVE.page_message(t,!0)}}class cg extends ig{success(t){console.log(t)}error(t){console.error(t)}}const ug=(()=>{let t;return t="object"===typeof TVE_Dash?new og:"object"===typeof TVE?new ag:new cg,{success:e=>t.success(e),error:e=>t.error(e)}})();var lg=ug;const fg=async(t,e)=>{let n;try{if("string"===typeof e)n=`url(${e})`;else{if(!(e instanceof File))return!1;n=await e.arrayBuffer()}const r=new window.FontFace(Fd(t.fontFamily),n,{style:t.fontStyle,weight:t.fontWeight}),s=await r.load();return document.fonts.add(s),!0}catch(r){return!1}};const hg=async t=>{const e=await Promise.all(t.map(async t=>{const e=await Ed(t),n=await fg(e,e.file);return n?e:(Yd.errorFontLoadingFailed(),!1)})),n=e.filter(Boolean),r=qd(n);await Qd(r)},pg=async function(t){const e=new Set,n=[...t];let r=!1;const s=n.map(async t=>{const n=await gd(t);if(!n)return r=!0,null;if(e.has(t.name))return null;const s=t.name.split(".").pop().toLowerCase();return ju.includes(s)?(e.add(t.name),t):null}),i=(await Promise.all(s)).filter(t=>null!==t);i.length>0&&await hg(i),r&&Yd.errorFileFormatUnsupported(),dg()},dg=()=>{Yd.hasErrors()?lg.error(Yd.flushErrors()):lg.success(Zo("Fonts were installed successfully.","thrive-dash"))},gg={class:"spinner-loader"};function mg(t,e){return qs(),Js("span",gg)}const yg={},vg=(0,nc.A)(yg,[["render",mg]]);var bg=vg;function wg(t,e){return qs(),Qs(Ac,{name:"fade"},{default:gn(()=>[yr(t.$slots,"default")]),_:3})}const xg={},Sg=(0,nc.A)(xg,[["render",wg]]);var Cg=Sg;const Og={class:"label--font",for:"input--font"},kg={key:1},Ag=["accept"],Eg={class:"text--secondary"};var Fg={__name:"FontUpload",setup(t){const e=Re(!1),n=Re(null),r=Re(!1),s=Re(0),i=ju.join(", "),o=ca(),a=async t=>{r.value=!0,await pg(t),o.dispatch("loadCustomFonts"),r.value=!1},c=()=>{const t=n.value.querySelector("[type=file]"),e=[...t.files];0!==e.length&&(a(e),n.value.reset())},u=t=>{t.preventDefault();const n=pd(t);a(n),e.value=!1,s.value=0},l=t=>t.preventDefault(),f=t=>{const n=t.dataTransfer.types.includes("Files");n&&(s.value++,e.value=!0)},h=()=>{s.value--,0===s.value&&(e.value=!1)};return(t,s)=>(qs(),Js("div",{class:"font-library-upload",onDrop:u,onDragover:l,onDragenter:f,onDragleave:h},[ri("h2",null,nt(De(Zo)("Upload Fonts","thrive-dash")),1),ri("form",{ref_key:"formRef",ref:n},[ri("label",Og,[r.value?(qs(),Qs(bg,{key:0})):(qs(),Js("span",kg,nt(De(Zo)("Upload Fonts","thrive-dash")),1))]),ri("input",{id:"input--font",type:"file",multiple:"",accept:De(i),onChange:c},null,40,Ag)],512),ri("p",Eg,nt(De(zi)(De(Zo)("Uploaded Fonts appear in the manage area and can be used in your themes. Supported formats are %s","thrive-dash"),De(i))),1),si(Cg,null,{default:gn(()=>[mn(ri("div",{class:"font-library-upload__dropzone"},nt(De(Zo)("Drop files to upload them","thrive-dash")),513),[[zc,e.value]])]),_:1})],32))}};const Tg=Fg;var Pg=Tg;new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"long"});function Rg(t=!0){document.body.classList.toggle("td-overflow-hidden",t)}const Lg={class:"modal"},Ig={class:"modal__content"},Dg={class:"modal__footer"};var Mg={__name:"ConfirmationModal",props:{to:{type:String,default:"body"},textContent:{type:String,default:""},applyText:{type:String,default:"Save"}},emits:["apply","cancel"],setup(t){const e=t,n=t=>{"Escape"===t.key&&$emit("cancel")};return or(()=>{Rg(!0),window.addEventListener("keydown",n),lr(()=>{Rg(!1),window.removeEventListener("keydown",n)})}),(n,r)=>(qs(),Qs(Fn,{to:e.to},[ri("div",Lg,[ri("div",Ig,nt(t.textContent),1),ri("div",Dg,[ri("button",{class:"button--cancel",onClick:r[0]||(r[0]=t=>n.$emit("cancel"))}," Cancel "),ri("button",{class:"button--apply",onClick:r[1]||(r[1]=t=>n.$emit("apply"))},nt(t.applyText),1)])]),ri("div",{class:"overlay",onClick:r[2]||(r[2]=t=>n.$emit("cancel"))})],8,["to"]))}};const _g=(0,nc.A)(Mg,[["__scopeId","data-v-09cbc0cc"]]);var jg=_g;const Ng=["src","alt"];var Ug={__name:"FontDemo",props:{font:{type:Object,required:!0},face:{type:Object,required:!1,default:()=>null}},setup(t){const e=t,n=ji(()=>!e.face),r=ji(()=>n.value?wd(e.font):e.face),s=ji(()=>n.value?e.font?.preview:e.face?.preview),i=ji(()=>!!s.value),o=ji(()=>n.value?e.font?.name:bd(e.face)),a=ji(()=>i.value?{}:{opacity:c?"1":"0",...Od(e.font),...Ad(r.value)}),c=Re(!1),u=Re(null),l=ca(),f=t=>{l.dispatch("loadFont",t)};return or(()=>{const t=new IntersectionObserver(([e])=>{e.isIntersecting&&(c.value||s.value||(f(r.value),c.value=!0),t.disconnect())},{});u.value&&t.observe(u.value),lr(()=>{t.disconnect()})}),(t,e)=>(qs(),Js("div",{ref_key:"elementRef",ref:u,class:"font-demo"},[i.value?(qs(),Js("img",{key:0,src:s.value,alt:De(zi)(De(Ko)("%s Font preview","Font Name","thrive-dash"),o.value)},null,8,Ng)):(qs(),Js("span",{key:1,style:W(a.value)},nt(o.value),5))],512))}};const Vg=Ug;var Bg=Vg;const Gg=["disabled"],Wg=["selected"],zg=["disabled"];function Hg(t,e,n,r,s,i){return qs(),Js("div",null,[ri("button",{class:"button--ghost",disabled:1===r.props.currentPage,onClick:r.onPrev},e[0]||(e[0]=[ri("span",{class:"fa-solid fa-chevron-left"},null,-1)]),8,Gg),ri("span",null,[e[1]||(e[1]=ci(" Page ")),ri("select",{onChange:r.onChange},[(qs(!0),Js(Vs,null,mr(r.props.pageCount,t=>(qs(),Js("option",{key:t,selected:t==r.props.currentPage},nt(t),9,Wg))),128))],32),ci(" of "+nt(r.props.pageCount),1)]),ri("button",{class:"button--ghost",disabled:r.props.currentPage===r.props.pageCount,onClick:r.onNext},e[2]||(e[2]=[ri("span",{class:"fa-solid fa-chevron-right"},null,-1)]),8,zg)])}var qg={__name:"Pagination",props:{pageCount:{type:Number,required:!0},currentPage:{type:Number,required:!0}},emits:["navigate"],setup(t,{expose:e,emit:n}){e();const r=t,s=n,i=()=>{s("navigate",r.currentPage+1)},o=()=>{s("navigate",r.currentPage-1)},a=t=>{s("navigate",parseInt(t.target.value))},c={props:r,emit:s,onNext:i,onPrev:o,onChange:a};return Object.defineProperty(c,"__isScriptSetup",{enumerable:!1,value:!0}),c}};const Yg=(0,nc.A)(qg,[["render",Hg],["__scopeId","data-v-74a5afe8"]]);var Zg=Yg;const Kg={class:"font-library"},Xg={class:"font-library__body"},Jg={key:1},Qg={key:0,class:"text--secondary"},$g={key:1},tm={class:"font-library__list"},em=["onClick"],nm={class:"font-library__list-item__variants text--secondary"},rm={key:2},sm={class:"text--secondary"},im={key:0,class:"font-library__list"},om=["onClick"],am=["id","name","checked","onChange"],cm=["for"],um={class:"font-library__actions"},lm=["disabled"];var fm={__name:"FontLibrary",setup(t){const e=ca(),n=Re(!1),r=t=>{e.state.isDataUpToDate||e.dispatch("persist"),e.dispatch("setFontLibraryCurrentPage",t)},s=ji(()=>e.state.customFonts.find(t=>t.id===e.state.currentFont.id)),i=ji(()=>s.value?.name??""),o=async()=>{n.value=!0},a=async()=>{n.value=!1};window.addEventListener("keydown",t=>{"Escape"===t.key&&a()});const c=async()=>{a(),e.dispatch("deleteCurrentFont"),f()},u=t=>{e.dispatch("toggleActivation",t)},l=t=>{e.dispatch("viewFont",t)},f=()=>{e.dispatch("viewFont",null)},h=()=>{e.dispatch("persist")};return(t,e)=>(qs(),Js("div",Kg,[ri("div",Xg,[t.$store.state.loading?(qs(),Qs(bg,{key:0})):(qs(),Js("div",Jg,[t.$store.state.customFonts.length?t.$store.getters.isAnyFontOpen?(qs(),Js("div",rm,[ri("h2",null,[ri("button",{class:"button--ghost",onClick:f},[e[1]||(e[1]=ri("i",{class:"fa-solid fa-chevron-left"},null,-1)),ri("span",null,nt(i.value),1)])]),ri("p",sm,nt(De(Zo)("Select the font variants you want to enable in your Thrive products. Click 'Update' to apply the changes. Note that using too many variants may slow down your site.","thrive-dash")),1),s.value?(qs(),Js("ul",im,[(qs(!0),Js(Vs,null,mr(s.value.fontFace,t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>u(t)},[ri("input",{id:t.id,name:t.id,type:"checkbox",checked:t.active,onChange:e=>u(t)},null,40,am),ri("label",{for:t.id},[si(Bg,{font:s.value,face:t},null,8,["font","face"])],8,cm)],8,om)]))),128))])):ui("",!0)])):(qs(),Js("div",$g,[ri("h2",null,nt(De(zi)(De(Zo)("Installed fonts (%d/%d)","thrive-dash"),t.$store.state.customFonts.length,t.$store.state.fontLibrarySettings.total)),1),ri("ul",tm,[(qs(!0),Js(Vs,null,mr(t.$store.state.customFonts,t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>l(t)},[ri("span",null,[si(Bg,{font:t},null,8,["font"])]),ri("span",nm,[ci(nt(De(zi)(De(Ko)("%d/%d variants active","Active fonts count/Installed fonts count","thrive-dash"),t.fontFace.filter(t=>t.active).length,t.fontFace.length))+" ",1),e[0]||(e[0]=ri("i",{class:"fa-solid fa-chevron-right"},null,-1))])],8,em)]))),128))]),si(Zg,{"page-count":t.$store.state.fontLibrarySettings.totalPages,"current-page":t.$store.state.fontLibrarySettings.page,onNavigate:r},null,8,["page-count","current-page"])])):(qs(),Js("p",Qg,nt(De(Zo)("No fonts installed yet. Upload fonts to get started.","thrive-dash")),1))]))]),ri("div",um,[t.$store.getters.isAnyFontOpen?(qs(),Js("button",{key:0,class:"font-library__action font-library__action--delete tvd-btn tvd-btn-red",onClick:o},nt(De(Zo)("Delete","thrive-dash")),1)):ui("",!0),ri("button",{class:"font-library__action font-library__action--update tvd-btn tvd-btn-green tve-btn tve-btn-green",disabled:t.$store.state.dataUpToDate,onClick:h},nt(De(Zo)("Update","thrive-dash")),9,lm)]),n.value?(qs(),Qs(jg,{key:0,to:"#wpbody",textContent:De(zi)(De(Ko)('Are you sure you want to delete "%s" font and all its variants and assets?',"Name of the font","thrive-dash"),i.value),applyText:De(Zo)("Confirm","thrive-dash"),onApply:c,onCancel:a},null,8,["textContent","applyText"])):ui("",!0)]))}};const hm=fm;var pm=hm;const dm={class:"google-fonts-library"},gm={key:1,class:"text--secondary"},mm={href:"https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/",target:"_blank"},ym={key:2},vm={key:0},bm={class:"text--secondary"},wm={class:"google-fonts-library__filters"},xm={class:"google-fonts-library__search"},Sm=["placeholder","value"],Cm=["value"],Om={class:"font-library__list"},km=["onClick"],Am={class:"font-library__list-item__variants text--secondary"},Em={key:1},Fm={class:"text--secondary"},Tm={class:"font-library__list"},Pm=["onClick"],Rm=["id","name","checked","onChange"],Lm=["for"],Im=["disabled"];var Dm={__name:"GoogleFonts",setup(t){const e=ca(),n=ji(()=>e.getters?.currentFontName??""),r=Re(!1),s=ve([]),i=ji(()=>r.value||0===s.length),o=t=>{e.dispatch("setGoogleFontsSelectedCategory",t.target.value)},a=t=>{e.dispatch("setGoogleFontsSearchTerm",t.target.value)},c=t=>{e.dispatch("setGoogleFontsCurrentPage",t)},u=t=>{e.dispatch("viewFont",t),l()},l=()=>{s.length=0},f=()=>{l(),e.dispatch("viewFont",null)},h=t=>s.includes(t),p=t=>{s.includes(t)?s.splice(s.indexOf(t),1):s.push(t)},d=async()=>{if(0===s.length)return;const t=e.state.currentFont;r.value=!0,await Promise.all(s.forEach(async t=>{t.src&&(t.file=await sg(t.src))})??[]),Yd.hasErrors()||await Qd([{...t,fontFace:s}]),dg(),e.dispatch("load"),r.value=!1};return(t,e)=>(qs(),Js("div",dm,[t.$store.state.loading?(qs(),Qs(bg,{key:0})):t.$store.state.googleFonts.length?(qs(),Js("div",ym,[t.$store.getters.isAnyFontOpen?(qs(),Js("div",Em,[ri("h2",null,[ri("button",{class:"button--ghost",onClick:f},[e[4]||(e[4]=ri("i",{class:"fa-solid fa-chevron-left"},null,-1)),ri("span",null,nt(n.value),1)])]),ri("p",Fm,nt(De(Zo)("Manage variants for the font. Having more variants can increase website load","thrive-dash")),1),ri("ul",Tm,[(qs(!0),Js(Vs,null,mr(t.$store.state.currentFont.fontFace,e=>(qs(),Js("li",{key:e.id,class:"font-library__list-item"},[ri("button",{onClick:t=>p(e)},[ri("input",{id:e.id,name:e.id,type:"checkbox",checked:h(e),onChange:t=>p(e)},null,40,Rm),ri("label",{for:e.id},[si(Bg,{font:t.$store.state.currentFont,face:e},null,8,["font","face"])],8,Lm)],8,Pm)]))),128))])])):(qs(),Js("div",vm,[ri("p",bm,nt(De(Zo)("Install from Google Fonts. Fonts are served directly to your website.","thrive-dash")),1),ri("div",wm,[ri("span",xm,[ri("input",{type:"search",placeholder:De(Zo)("Search Google Fonts","thrive-dash"),value:t.$store.state.googleFontsSettings.search,onInput:a},null,40,Sm),e[1]||(e[1]=ri("i",{class:"fas fa-search fa-xs"},null,-1))]),mn(ri("select",{"onUpdate:modelValue":e[0]||(e[0]=e=>t.$store.state.googleFontsSettings.category=e),onChange:o},[e[2]||(e[2]=ri("option",{value:""}," Default ",-1)),(qs(!0),Js(Vs,null,mr(t.$store.state.googleFontsSettings.categories,t=>(qs(),Js("option",{key:t.slug,value:t.slug},nt(t.name),9,Cm))),128))],544),[[bu,t.$store.state.googleFontsSettings.category]])]),ri("ul",Om,[(qs(!0),Js(Vs,null,mr(t.$store.getters.fontsByPage,t=>(qs(),Js("li",{key:t.id,class:"font-library__list-item"},[ri("button",{onClick:e=>u(t)},[ri("span",null,[si(Bg,{font:t},null,8,["font"])]),ri("span",Am,[ci(nt(De(zi)(De(Ko)("%d variants","Installed fonts count","thrive-dash"),t.fontFace.length))+" ",1),e[3]||(e[3]=ri("i",{class:"fa-solid fa-chevron-right"},null,-1))])],8,km)]))),128))]),si(Zg,{"page-count":t.$store.getters.googleFontsPageCount,"current-page":t.$store.state.googleFontsSettings.page,onNavigate:c},null,8,["page-count","current-page"])]))])):(qs(),Js("div",gm,[ri("p",null,[ci(nt(De(Zo)("Google fonts cannot be loaded. Kindly ensure your server memory limit is equal to or more than 512MB.","thrive-dash"))+" ",1),ri("a",mm,nt(De(Zo)("Learn more","thrive-dash")),1)])])),t.$store.getters.isAnyFontOpen?(qs(),Js("button",{key:3,class:"font-library__action tvd-btn tvd-btn-green",disabled:i.value,onClick:d},nt(De(Zo)("Install","thrive-dash")),9,Im)):ui("",!0),r.value?(qs(),Qs(bg,{key:4,class:"installation-indicator"})):ui("",!0)]))}};const Mm=Dm;var _m=Mm;const jm={class:"td-font-library"};var Nm={__name:"App",setup(t){const e=ca(),n=()=>{e.dispatch("viewFont",null)};return e.dispatch("load"),(t,e)=>(qs(),Js("div",jm,[si(De(sc)),si(De(fc),{onChangeTab:n},{default:gn(()=>[si(De(Lu),{title:De(Zo)("Library","thrive-dash")},{default:gn(()=>[si(De(pm))]),_:1},8,["title"]),si(De(Lu),{title:De(Zo)("Upload","thrive-dash")},{default:gn(()=>[si(De(Pg))]),_:1},8,["title"]),si(De(Lu),{title:De(Zo)("Google Fonts","thrive-dash")},{default:gn(()=>[si(_m)]),_:1},8,["title"])]),_:1})]))}};const Um=Nm;var Vm=Um,Bm=qa({state:{customFonts:[],fontLibrarySettings:{perPage:100,page:1,total:0,totalPages:0},googleFonts:[],googleFontsSettings:{categories:[],search:"",category:"",perPage:10,page:1},themeFonts:[],currentFont:null,dataUpToDate:!0,loadedFontUrls:new Set,loading:!0},mutations:{setCustomFonts(t,e){t.customFonts=e},setGoogleFonts(t,e){t.googleFonts=e},setCurrentFont(t,e){t.currentFont=e},deleteFont(t,e){t.customFonts=t.customFonts.filter(t=>t.id!==e.id)},toggleFace(t,{fontId:e,faceToToggle:n}){t.customFonts=t.customFonts.map(t=>t.id!==e?t:{...t,fontFace:t.fontFace.map(({active:t,...e})=>({...e,active:md(e,n)?!t:t}))})},markDataUpToDate(t,e){t.dataUpToDate=e},addLoadedFontUrl(t,e){t.loadedFontUrls.add(e)},setLoading(t,e){t.loading=e},updateGoogleFontsSettings(t,e){t.googleFontsSettings=e},updateFontLibrarySettings(t,e){t.fontLibrarySettings=e}},actions:{async load({commit:t,dispatch:e}){await e("loadCustomFonts"),await e("loadGoogleFonts"),t("setLoading",!1),t("markDataUpToDate",!0)},async loadCustomFonts({state:t,commit:e,dispatch:n}){const r=await tg(),s=(t,e)=>{const n=r.find(t=>e.slug===t.slug)?.fontFace??[];return!!n.find(e=>md(e,t))},{page:i,perPage:o}=t.fontLibrarySettings,a={per_page:o,page:i},{data:c,pageCount:u,count:l}=await Xd(a),f=c.map(t=>{const{fontFace:e}=t;return{...t,fontFace:e.map(e=>({...e,active:s(e,t)}))}});f.sort((t,e)=>t.name.localeCompare(e.name)),e("setCustomFonts",f),n("setFontLibraryTotalPages",+u),n("setFontLibraryTotalCount",+l)},viewFont({commit:t},e){t("setCurrentFont",e)},async deleteFont({commit:t,dispatch:e,state:n},r){r.id&&(await $d(r.id),await t("deleteFont",r),await e("persist"),await e("loadCustomFonts"),n.fontLibrarySettings.page>n.fontLibrarySettings.totalPages&&(e("setFontLibraryCurrentPage",n.fontLibrarySettings.totalPages),e("loadCustomFonts")))},deleteCurrentFont({state:t,dispatch:e}){e("deleteFont",t.currentFont)},toggleActivation({commit:t,state:e},n){const r=e.currentFont.id??null;r&&(t("toggleFace",{fontId:r,faceToToggle:n}),t("markDataUpToDate",!1))},async persist({commit:t,state:e,dispatch:n}){t("markDataUpToDate",!0);const r=e.customFonts.map(({slug:t,name:e,fontFamily:n,fontFace:r})=>({slug:t,name:e,fontFamily:n,fontFace:r.filter(t=>t.active).map(({fontFamily:t,fontStyle:e,fontWeight:n,preview:r,src:s})=>({fontFamily:t,fontStyle:e,fontWeight:n,preview:r,src:s}))}));await eg(r)},loadFont({commit:t,state:e},n){if(!n.src)return;const r=xd(n.src);r&&!e.loadedFontUrls.has(r)&&(fg(n,r,"document"),t("addLoadedFontUrl",r))},async setFontLibraryCurrentPage({commit:t,dispatch:e,state:n},r){t("updateFontLibrarySettings",{...n.fontLibrarySettings,page:+r}),t("setLoading",!0),await e("loadCustomFonts"),t("setLoading",!1)},setFontLibraryTotalPages({commit:t,state:e},n){t("updateFontLibrarySettings",{...e.fontLibrarySettings,totalPages:+n})},setFontLibraryTotalCount({commit:t,state:e},n){t("updateFontLibrarySettings",{...e.fontLibrarySettings,total:+n})},async loadGoogleFonts({commit:t,state:e}){try{const{font_families:n,categories:r}=await rg();return t("setGoogleFonts",n),t("updateGoogleFontsSettings",{...e.googleFontsSettings,categories:r}),!0}catch{return!1}},setGoogleFontsCurrentPage({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,page:n})},setGoogleFontsSelectedCategory({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,category:n,page:1})},setGoogleFontsSearchTerm({commit:t,state:e},n){t("updateGoogleFontsSettings",{...e.googleFontsSettings,search:n,page:1})}},getters:{currentFontName(t){return t.currentFont.name??""},isAnyFontOpen(t){return null!==t.currentFont},googleFonts(t){const e=t.googleFontsSettings.search.toLowerCase(),n=t.googleFontsSettings.category,r=n?t.googleFonts.filter(t=>t.categories.includes(n)):t.googleFonts,s=e?r.filter(t=>t.name.toLowerCase().includes(e)):r;return s},googleFontsPageCount(t,e){return Math.ceil(e.googleFonts.length/t.googleFontsSettings.perPage)},fontsByPage(t,e){const n=t.googleFontsSettings.page,r=(n-1)*t.googleFontsSettings.perPage,s=r+t.googleFontsSettings.perPage;return e.googleFonts.slice(r,s)}}});document.querySelector("#font-library-app")&&ku(Vm).use(Bm).mount("#font-library-app")}()})();