1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{A as ff,B as lj,C as uj,D as jx,E as cj,F as og,G as dj,H as Bx,I as fj,J as pj,K as mj,L as hj,P as ST,a as Xz,b as ee,c as Fn,d as H,e as ve,f as Mx,g as Rx,h as rt,i as qe,j as Ps,k as Yz,l as cf,m as df,n as Dx,o as Qz,p as ej,q as tj,r as Nx,s as rj,t as nj,u as aj,v as zx,w as oj,x as _T,y as ij,z as sj}from"/chunks/chunk-2HT7LDPA.js";var vj=ee((Fx,gj)=>{"use strict";(function(e,t){typeof Fx=="object"&&typeof gj<"u"?t(Fx):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.leaflet={}))})(Fx,(function(e){"use strict";var t="1.9.4";function r(c){var p,v,_,P;for(v=1,_=arguments.length;v<_;v++){P=arguments[v];for(p in P)c[p]=P[p]}return c}var n=Object.create||(function(){function c(){}return function(p){return c.prototype=p,new c}})();function a(c,p){var v=Array.prototype.slice;if(c.bind)return c.bind.apply(c,v.call(arguments,1));var _=v.call(arguments,2);return function(){return c.apply(p,_.length?_.concat(v.call(arguments)):arguments)}}var o=0;function i(c){return"_leaflet_id"in c||(c._leaflet_id=++o),c._leaflet_id}function s(c,p,v){var _,P,D,X;return X=function(){_=!1,P&&(D.apply(v,P),P=!1)},D=function(){_?P=arguments:(c.apply(v,arguments),setTimeout(X,p),_=!0)},D}function l(c,p,v){var _=p[1],P=p[0],D=_-P;return c===_&&v?c:((c-P)%D+D)%D+P}function u(){return!1}function d(c,p){if(p===!1)return c;var v=Math.pow(10,p===void 0?6:p);return Math.round(c*v)/v}function f(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function m(c){return f(c).split(/\s+/)}function h(c,p){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?n(c.options):{});for(var v in p)c.options[v]=p[v];return c.options}function g(c,p,v){var _=[];for(var P in c)_.push(encodeURIComponent(v?P.toUpperCase():P)+"="+encodeURIComponent(c[P]));return(!p||p.indexOf("?")===-1?"?":"&")+_.join("&")}var y=/\{ *([\w_ -]+) *\}/g;function b(c,p){return c.replace(y,function(v,_){var P=p[_];if(P===void 0)throw new Error("No value provided for variable "+v);return typeof P=="function"&&(P=P(p)),P})}var w=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function S(c,p){for(var v=0;v<c.length;v++)if(c[v]===p)return v;return-1}var x="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function C(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var I=0;function A(c){var p=+new Date,v=Math.max(0,16-(p-I));return I=p+v,window.setTimeout(c,v)}var O=window.requestAnimationFrame||C("RequestAnimationFrame")||A,F=window.cancelAnimationFrame||C("CancelAnimationFrame")||C("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function q(c,p,v){if(v&&O===A)c.call(p);else return O.call(window,a(c,p))}function G(c){c&&F.call(window,c)}var J={__proto__:null,extend:r,create:n,bind:a,get lastId(){return o},stamp:i,throttle:s,wrapNum:l,falseFn:u,formatNum:d,trim:f,splitWords:m,setOptions:h,getParamString:g,template:b,isArray:w,indexOf:S,emptyImageUrl:x,requestFn:O,cancelFn:F,requestAnimFrame:q,cancelAnimFrame:G};function Y(){}Y.extend=function(c){var p=function(){h(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},v=p.__super__=this.prototype,_=n(v);_.constructor=p,p.prototype=_;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(p[P]=this[P]);return c.statics&&r(p,c.statics),c.includes&&(le(c.includes),r.apply(null,[_].concat(c.includes))),r(_,c),delete _.statics,delete _.includes,_.options&&(_.options=v.options?n(v.options):{},r(_.options,c.options)),_._initHooks=[],_.callInitHooks=function(){if(!this._initHooksCalled){v.callInitHooks&&v.callInitHooks.call(this),this._initHooksCalled=!0;for(var D=0,X=_._initHooks.length;D<X;D++)_._initHooks[D].call(this)}},p},Y.include=function(c){var p=this.prototype.options;return r(this.prototype,c),c.options&&(this.prototype.options=p,this.mergeOptions(c.options)),this},Y.mergeOptions=function(c){return r(this.prototype.options,c),this},Y.addInitHook=function(c){var p=Array.prototype.slice.call(arguments,1
2),v=typeof c=="function"?c:function(){this[c].apply(this,p)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(v),this};function le(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=w(c)?c:[c];for(var p=0;p<c.length;p++)c[p]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var re={on:function(c,p,v){if(typeof c=="object")for(var _ in c)this._on(_,c[_],p);else{c=m(c);for(var P=0,D=c.length;P<D;P++)this._on(c[P],p,v)}return this},off:function(c,p,v){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var _ in c)this._off(_,c[_],p);else{c=m(c);for(var P=arguments.length===1,D=0,X=c.length;D<X;D++)P?this._off(c[D]):this._off(c[D],p,v)}return this},_on:function(c,p,v,_){if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}if(this._listens(c,p,v)===!1){v===this&&(v=void 0);var P={fn:p,ctx:v};_&&(P.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(P)}},_off:function(c,p,v){var _,P,D;if(this._events&&(_=this._events[c],!!_)){if(arguments.length===1){if(this._firingCount)for(P=0,D=_.length;P<D;P++)_[P].fn=u;delete this._events[c];return}if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}var X=this._listens(c,p,v);if(X!==!1){var se=_[X];this._firingCount&&(se.fn=u,this._events[c]=_=_.slice()),_.splice(X,1)}}},fire:function(c,p,v){if(!this.listens(c,v))return this;var _=r({},p,{type:c,target:this,sourceTarget:p&&p.sourceTarget||this});if(this._events){var P=this._events[c];if(P){this._firingCount=this._firingCount+1||1;for(var D=0,X=P.length;D<X;D++){var se=P[D],ce=se.fn;se.once&&this.off(c,ce,se.ctx),ce.call(se.ctx||this,_)}this._firingCount--}}return v&&this._propagateEvent(_),this},listens:function(c,p,v,_){typeof c!="string"&&console.warn('"string" type argument expected');var P=p;typeof p!="function"&&(_=!!p,P=void 0,v=void 0);var D=this._events&&this._events[c];if(D&&D.length&&this._listens(c,P,v)!==!1)return!0;if(_){for(var X in this._eventParents)if(this._eventParents[X].listens(c,p,v,_))return!0}return!1},_listens:function(c,p,v){if(!this._events)return!1;var _=this._events[c]||[];if(!p)return!!_.length;v===this&&(v=void 0);for(var P=0,D=_.length;P<D;P++)if(_[P].fn===p&&_[P].ctx===v)return P;return!1},once:function(c,p,v){if(typeof c=="object")for(var _ in c)this._on(_,c[_],p,!0);else{c=m(c);for(var P=0,D=c.length;P<D;P++)this._on(c[P],p,v,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[i(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[i(c)],this},_propagateEvent:function(c){for(var p in this._eventParents)this._eventParents[p].fire(c.type,r({layer:c.target,propagatedFrom:c.target},c),!0)}};re.addEventListener=re.on,re.removeEventListener=re.clearAllEventListeners=re.off,re.addOneTimeEventListener=re.once,re.fireEvent=re.fire,re.hasEventListeners=re.listens;var oe=Y.extend(re);function $(c,p,v){this.x=v?Math.round(c):c,this.y=v?Math.round(p):p}var z=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};$.prototype={clone:function(){return new $(this.x,this.y)},add:function(c){return this.clone()._add(R(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(R(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new $(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new $(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(c){c=R(c);var p=c.x-this.x,v=c.y-this.y;return Math.sqrt(p*p+v*v)},equals:function(c){return c=R(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=R(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+d(this.x)+", "+d(this.y)+")"}};function R(c,p,v){return c instanceof $?c:w(c)?new $(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new $(c.x,c.y):new $(c,p,v)}function N(c,p){if(c)for(var v=p?[c,p]:c,_=0,P=v.length;_<P;_++)this.extend(v[_])}N.prototype={extend:function(c){var p,v;if(!c)return this;if(c instanceof $||typeof c[0]=="number"||"x"in c)p=v=R(c);else if(c=U(c),p=c.min,v=c.max,!p||!v)return this;return!this.min&&!this.max?(this.min=p.clone(),this.max=v.clone()):(this.min.x=Math.min(p.x,this.min.x),this.max.x=Math.max(v.x,this.max.x),this.min.y=Math.min(p.y,this.min.y),this.max.y=Math.max(v.y,this.max.y)),this},getCenter:function(c){return R((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return R(this.min.x,this.max.y)},getTopRight:function(){return R(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var p,v;return typeof c[0]=="number"||c instanceof $?c=R(c):c=U(c),c instanceof N?(p=c.min,v=c.max):p=v=c,p.x>=this.min.x&&v.x<=this.max.x&&p.y>=this.min.y&&v.y<=this.max.y},intersects:function(c){c=U(c);var p=this.min,v=this.max,_=c.min,P=c.max,D=P.x>=p.x&&_.x<=v.x,X=P.y>=p.y&&_.y<=v.y;return D&&X},overlaps:function(c){c=U(c);var p=this.min,v=this.max,_=c.min,P=c.max,D=P.x>p.x&&_.x<v.x,X=P.y>p.y&&_.y<v.y;return D&&X},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var p=this.min,v=this.max,_=Math.abs(p.x-v.x)*c,P=Math.abs(p.y-v.y)*c;return U(R(p.x-_,p.y-P),R(v.x+_,v.y+P))},equals:function(c){return c?(c=U(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function U(c,p){return!c||c instanceof N?c:new N(c,p)}function B(c,p){if(c)for(var v=p?[c,p]:c,_=0,P=v.length;_<P;_++)this.extend(v[_])}B.prototype={extend:function(c){var p=this._southWest,v=this._northEast,_,P;if(c instanceof Z)_=c,P=c;else if(c instanceof B){if(_=c._southWest,P=c._northEast,!_||!P)return this}else return c?this.extend(Q(c)||V(c)):this;return!p&&!v?(this._southWest=new Z(_.lat,_.lng),this._northEast=new Z(P.lat,P.lng)):(p.lat=Math.min(_.lat,p.lat),p.lng=Math.min(_.lng,p.lng),v.lat=Math.max(P.lat,v.lat),v.lng=Math.max(P.lng,v.lng)),this},pad:function(c){var p=this._southWest,v=this._northEast,_=Math.abs(p.lat-v.lat)*c,P=Math.abs(p.lng-v.lng)*c;return new B(new Z(p.lat-_,p.lng-P),new Z(v.lat+_,v.lng+P))},getCenter:function(){return new Z((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new Z(this.getNorth(),this.getWest())},getSouthEast:function(){return new Z(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
2,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof Z||"lat"in c?c=Q(c):c=V(c);var p=this._southWest,v=this._northEast,_,P;return c instanceof B?(_=c.getSouthWest(),P=c.getNorthEast()):_=P=c,_.lat>=p.lat&&P.lat<=v.lat&&_.lng>=p.lng&&P.lng<=v.lng},intersects:function(c){c=V(c);var p=this._southWest,v=this._northEast,_=c.getSouthWest(),P=c.getNorthEast(),D=P.lat>=p.lat&&_.lat<=v.lat,X=P.lng>=p.lng&&_.lng<=v.lng;return D&&X},overlaps:function(c){c=V(c);var p=this._southWest,v=this._northEast,_=c.getSouthWest(),P=c.getNorthEast(),D=P.lat>p.lat&&_.lat<v.lat,X=P.lng>p.lng&&_.lng<v.lng;return D&&X},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,p){return c?(c=V(c),this._southWest.equals(c.getSouthWest(),p)&&this._northEast.equals(c.getNorthEast(),p)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function V(c,p){return c instanceof B?c:new B(c,p)}function Z(c,p,v){if(isNaN(c)||isNaN(p))throw new Error("Invalid LatLng object: ("+c+", "+p+")");this.lat=+c,this.lng=+p,v!==void 0&&(this.alt=+v)}Z.prototype={equals:function(c,p){if(!c)return!1;c=Q(c);var v=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return v<=(p===void 0?1e-9:p)},toString:function(c){return"LatLng("+d(this.lat,c)+", "+d(this.lng,c)+")"},distanceTo:function(c){return ge.distance(this,Q(c))},wrap:function(){return ge.wrapLatLng(this)},toBounds:function(c){var p=180*c/40075017,v=p/Math.cos(Math.PI/180*this.lat);return V([this.lat-p,this.lng-v],[this.lat+p,this.lng+v])},clone:function(){return new Z(this.lat,this.lng,this.alt)}};function Q(c,p,v){return c instanceof Z?c:w(c)&&typeof c[0]!="object"?c.length===3?new Z(c[0],c[1],c[2]):c.length===2?new Z(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new Z(c.lat,"lng"in c?c.lng:c.lon,c.alt):p===void 0?null:new Z(c,p,v)}var ue={latLngToPoint:function(c,p){var v=this.projection.project(c),_=this.scale(p);return this.transformation._transform(v,_)},pointToLatLng:function(c,p){var v=this.scale(p),_=this.transformation.untransform(c,v);return this.projection.unproject(_)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var p=this.projection.bounds,v=this.scale(c),_=this.transformation.transform(p.min,v),P=this.transformation.transform(p.max,v);return new N(_,P)},infinite:!1,wrapLatLng:function(c){var p=this.wrapLng?l(c.lng,this.wrapLng,!0):c.lng,v=this.wrapLat?l(c.lat,this.wrapLat,!0):c.lat,_=c.alt;return new Z(v,p,_)},wrapLatLngBounds:function(c){var p=c.getCenter(),v=this.wrapLatLng(p),_=p.lat-v.lat,P=p.lng-v.lng;if(_===0&&P===0)return c;
2var D=c.getSouthWest(),X=c.getNorthEast(),se=new Z(D.lat-_,D.lng-P),ce=new Z(X.lat-_,X.lng-P);return new B(se,ce)}},ge=r({},ue,{wrapLng:[-180,180],R:6371e3,distance:function(c,p){var v=Math.PI/180,_=c.lat*v,P=p.lat*v,D=Math.sin((p.lat-c.lat)*v/2),X=Math.sin((p.lng-c.lng)*v/2),se=D*D+Math.cos(_)*Math.cos(P)*X*X,ce=2*Math.atan2(Math.sqrt(se),Math.sqrt(1-se));return this.R*ce}}),Te=6378137,De={R:Te,MAX_LATITUDE:85.0511287798,project:function(c){var p=Math.PI/180,v=this.MAX_LATITUDE,_=Math.max(Math.min(v,c.lat),-v),P=Math.sin(_*p);return new $(this.R*c.lng*p,this.R*Math.log((1+P)/(1-P))/2)},unproject:function(c){var p=180/Math.PI;return new Z((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*p,c.x*p/this.R)},bounds:(function(){var c=Te*Math.PI;return new N([-c,-c],[c,c])})()};function me(c,p,v,_){if(w(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=p,this._c=v,this._d=_}me.prototype={transform:function(c,p){return this._transform(c.clone(),p)},_transform:function(c,p){return p=p||1,c.x=p*(this._a*c.x+this._b),c.y=p*(this._c*c.y+this._d),c},untransform:function(c,p){return p=p||1,new $((c.x/p-this._b)/this._a,(c.y/p-this._d)/this._c)}};function Ze(c,p,v,_){return new me(c,p,v,_)}var Oe=r({},ge,{code:"EPSG:3857",projection:De,transformation:(function(){var c=.5/(Math.PI*De.R);return Ze(c,.5,-c,.5)})()}),fe=r({},Oe,{code:"EPSG:900913"});function Mt(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function at(c,p){var v="",_,P,D,X,se,ce;for(_=0,D=c.length;_<D;_++){for(se=c[_],P=0,X=se.length;P<X;P++)ce=se[P],v+=(P?"L":"M")+ce.x+" "+ce.y;v+=p?Ke.svg?"z":"x":""}return v||"M0 0"}var Ut=document.documentElement.style,zt="ActiveXObject"in window,Qt=zt&&!document.addEventListener,Vr="msLaunchUri"in navigator&&!("documentMode"in document),Dt=Nr("webkit"),dn=Nr("android"),fn=Nr("android 2")||Nr("android 3"),sr=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),_r=dn&&Nr("Google")&&sr<537&&!("AudioNode"in window),Kt=!!window.opera,Ko=!Vr&&Nr("chrome"),ho=Nr("gecko")&&!Dt&&!Kt&&!zt,Nl=!Ko&&Nr("safari"),Ai=Nr("phantom"),Jo="OTransition"in Ut,zl=navigator.platform.indexOf("Win")===0,Zh=zt&&"transition"in Ut,Ei="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!fn,dx="MozPerspective"in Ut,H6=!window.L_DISABLE_3D&&(Zh||Ei||dx)&&!Jo&&!Ai,jl=typeof orientation<"u"||Nr("mobile"),fx=jl&&Dt,G6=jl&&Ei,Xd=!window.PointerEvent&&window.MSPointerEvent,Xo=!!(window.PointerEvent||Xd),px="ontouchstart"in window||!!window.TouchEvent,W6=!window.L_NO_TOUCH&&(px||Xo),mx=jl&&Kt,hx=jl&&ho,bt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Yr=(function(){var c=!1;try{var p=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",u,p),window.removeEventListener("testPassiveEventSupport",u,p)}catch{}return c})(),In=(function(){return!!document.createElement("canvas").getContext})(),Ln=!!(document.createElementNS&&Mt("svg").createSVGRect),Yd=!!Ln&&(function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),pn=!Ln&&(function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var p=c.firstChild;return p.style.behavior="url(#default#VML)",p&&typeof p.adj=="object"}catch{return!1}})(),ka=navigator.platform.indexOf("Mac")===0,Qd=navigator.platform.indexOf("Linux")===0;function Nr(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var Ke={ie:zt,ielt9:Qt,edge:Vr,webkit:Dt,android:dn,android23:fn,androidStock:_r,opera:Kt,chrome:Ko,gecko:ho,safari:Nl,phantom:Ai,opera12:Jo,win:zl,ie3d:Zh,webkit3d:Ei,gecko3d:dx,any3d:H6,mobile:jl,mobileWebkit:fx,mobileWebkit3d:G6,msPointer:Xd,pointer:Xo,touch:W6,touchNative:px,mobileOpera:mx,mobileGecko:hx,retina:bt,passiveEvents:Yr,canvas:In,svg:Ln,vml:pn,inlineSvg:Yd,mac:ka,linux:Qd},Hh=Ke.msPointer?"MSPointerDown":"pointerdown",Li=Ke.msPointer?"MSPointerMove":"pointermove",K6=Ke.msPointer?"MSPointerUp":"pointerup",oz=Ke.msPointer?"MSPointerCancel":"pointercancel",J6={touchstart:Hh,touchmove:Li,touchend:K6,touchcancel:oz},iz={touchstart:jve,touchmove:gx,touchend:gx,touchcancel:gx},ef={},sz=!1;function Mve(c,p,v){return p==="touchstart"&&zve(),iz[p]?(v=iz[p].bind(this,v),c.addEventListener(J6[p],v,!1),v):(console.warn("wrong event specified:",p),u)}function Rve(c,p,v){if(!J6[p]){console.warn("wrong event specified:",p);return}c.removeEventListener(J6[p],v,!1)}function Dve(c){ef[c.pointerId]=c}function Nve(c){ef[c.pointerId]&&(ef[c.pointerId]=c)}function lz(c){delete ef[c.pointerId]}function zve(){sz||(document.addEventListener(Hh,Dve,!0),document.addEventListener(Li,Nve,!0),document.addEventListener(K6,lz,!0),document.addEventListener(oz,lz,!0),sz=!0)}function gx(c,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){p.touches=[];for(var v in ef)p.touches.push(ef[v]);p.changedTouches=[p],c(p)}}function jve(c,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&$n(p),gx(c,p)}function Bve(c){var p={},v,_;for(_ in c)v=c[_],p[_]=v&&v.bind?v.bind(c):v;return c=p,p.type="dblclick",p.detail=2,p.isTrusted=!1,p._simulated=!0,p}var Fve=200;function Uve(c,p){c.addEventListener("dblclick",p);var v=0,_;function P(D){if(D.detail!==1){_=D.detail;return}if(!(D.pointerType==="mouse"||D.sourceCapabilities&&!D.sourceCapabilities.firesTouchEvents)){var X=pz(D);if(!(X.some(function(ce){return ce instanceof HTMLLabelElement&&ce.attributes.for})&&!X.some(function(ce){return ce instanceof HTMLInputElement||ce instanceof HTMLSelectElement}))){var se=Date.now();se-v<=Fve?(_++,_===2&&p(Bve(D))):_=1,v=se}}}return c.addEventListener("click",P),{dblclick:p,simDblclick:P}}function qve(c,p){c.removeEventListener("dblclick",p.dblclick),c.removeEventListener("click",p.simDblclick)}var X6=bx(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Gh=bx(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),uz=Gh==="webkitTransition"||Gh==="OTransition"?Gh+"End":"transitionend";function cz(c){return typeof c=="string"?document.getElementById(c):c}function Wh(c,p){var v=c.style[p]||c.currentStyle&&c.currentStyle[p];if((!v||v==="auto")&&document.defaultView){var _=document.defaultView.getComputedStyle(c,null);v=_?_[p]:null}return v==="auto"?null:v}function Bt(c,p,v){var _=document.createElement(c);return _.className=p||"",v&&v.appendChild(_),_}function Ar(c){var p=c.parentNode;p&&p.removeChild(c)}function vx(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function tf(c){var p=c.parentNode;p&&p.lastChild!==c&&p.appendChild(c)}function rf(c){var p=c.parentNode;p&&p.firstChild!==c&&p.insertBefore(c,p.firstChild)}function Y6(c,p){if(c.classList!==void 0)return c.classList.contains(p);var v=yx(c);return v.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(v)}function Pt(c,p){if(c.classList!==void 0)for(var v=m(p),_=0,P=v.length;_<P;_++)c.classList.add(v[_]);else if(!Y6(c,p)){var D=yx(c);Q6(c,(D?D+" ":"")+p)}}function Zr(c,p){c.classList!==void 0?c.classList.remove(p):Q6(c,f((" "+yx(c)+" ").replace(" "+p+" "," ")))}function Q6(c,p){c.className.baseVal===void 0?c.className=p:c.className.baseVal=p}function yx(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function go(c,p){"opacity"in c.style?c.style.opacity=p:"filter"in c.style&&Vve(c,p)}function Vve(c,p){var v=!1,_="DXImageTransform.Microsoft.Alpha";try{v=c.filters.item(_)}catch{if(p===1)return}p=Math.round(p*100),v?(v.Enabled=p!==100,v.Opacity=p):c.style.filter+=" progid:"+_+"(opacity="+p+")"}function bx(c){for(var p=document.documentElement.style,v=0;v<c.length;v++)if(c[v]in p)return c[v];return!1}function hc(c,p,v){var _=p||new $(0,0);c.style[X6]=(Ke.ie3d?"translate("+_.x+"px,"+_.y+"px)":"translate3d("+_.x+"px,"+_.y+"px,0)")+(v?" scale("+v+")":"")}function Qr(c,p){c._leaflet_pos=p,Ke.any3d?hc(c,p):(c.style.left=p.x+"px",c.style.top=p.y+"px")}function gc(c){return c._leaflet_pos||new $(0,0)}var Kh,Jh,eT;if("onselectstart"in document)Kh=function(){wt(window,"selectstart",$n)},Jh=function(){hr(window,"selectstart",$n)};else{var Xh=bx(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Kh=function(){if(Xh){var c=document.documentElement.style;eT=c[Xh],c[Xh]="none"}},Jh=function(){Xh&&(document.documentElement.style[Xh]=eT,eT=void 0)}}function tT(){wt(window,"dragstart",$n)}function rT(){hr(window,"dragstart",$n)}var xx,nT;function aT(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(wx(),xx=c,nT=c.style.outlineStyle,c.style.outlineStyle="none",wt(window,"keydown",wx))}function wx(){xx&&(xx.style.outlineStyle=nT,xx=void 0,nT=void 0,hr(window,"keydown",wx))}function dz(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function oT(c){var p=c.getBoundingClientRect();return{x:p.width/c.offsetWidth||1,y:p.height/c.offsetHeight||1,boundingClientRect:p}}var Zve={__proto__:null,TRANSFORM:X6,TRANSITION:Gh,TRANSITION_END:uz,get:cz,getStyle:Wh,create:Bt,remove:Ar,empty:vx,toFront:tf,toBack:rf,hasClass:Y6,addClass:Pt,removeClass:Zr,setClass:Q6,getClass:yx,setOpacity:go,testProp:bx,setTransform:hc,setPosition:Qr,getPosition:gc,get disableTextSelection(){return Kh},get enableTextSelection(){return Jh},disableImageDrag:tT,enableImageDrag:rT,preventOutline:aT,restoreOutline:wx,getSizedParentNode:dz,getScale:oT};function wt(c,p,v,_){if(p&&typeof p=="object")for(var P in p)sT(c,P,p[P],v);else{p=m(p);for(var D=0,X=p.length;D<X;D++)sT(c,p[D],v,_)}return this}var $i="_leaflet_events";function hr(c,p,v,_){if(arguments.length===1)fz(c),delete c[$i];else if(p&&typeof p=="object")for(var P in p)lT(c,P,p[P],v);else if(p=m(p),arguments.length===2)fz(c,function(se){return S(p,se)!==-1});else for(var D=0,X=p.length;D<X;D++)lT(c,p[D],v,_);return this}function fz(c,p){for(var v in c[$i]){var _=v.split(/\d/)[0];(!p||p(_))&&lT(c,_,null,null,v)}}
2var iT={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function sT(c,p,v,_){var P=p+i(v)+(_?"_"+i(_):"");if(c[$i]&&c[$i][P])return this;var D=function(se){return v.call(_||c,se||window.event)},X=D;!Ke.touchNative&&Ke.pointer&&p.indexOf("touch")===0?D=Mve(c,p,D):Ke.touch&&p==="dblclick"?D=Uve(c,D):"addEventListener"in c?p==="touchstart"||p==="touchmove"||p==="wheel"||p==="mousewheel"?c.addEventListener(iT[p]||p,D,Ke.passiveEvents?{passive:!1}:!1):p==="mouseenter"||p==="mouseleave"?(D=function(se){se=se||window.event,cT(c,se)&&X(se)},c.addEventListener(iT[p],D,!1)):c.addEventListener(p,X,!1):c.attachEvent("on"+p,D),c[$i]=c[$i]||{},c[$i][P]=D}function lT(c,p,v,_,P){P=P||p+i(v)+(_?"_"+i(_):"");var D=c[$i]&&c[$i][P];if(!D)return this;!Ke.touchNative&&Ke.pointer&&p.indexOf("touch")===0?Rve(c,p,D):Ke.touch&&p==="dblclick"?qve(c,D):"removeEventListener"in c?c.removeEventListener(iT[p]||p,D,!1):c.detachEvent("on"+p,D),c[$i][P]=null}function vc(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function uT(c){return sT(c,"wheel",vc),this}function Yh(c){return wt(c,"mousedown touchstart dblclick contextmenu",vc),c._leaflet_disable_click=!0,this}function $n(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function yc(c){return $n(c),vc(c),this}function pz(c){if(c.composedPath)return c.composedPath();for(var p=[],v=c.target;v;)p.push(v),v=v.parentNode;return p}function mz(c,p){if(!p)return new $(c.clientX,c.clientY);var v=oT(p),_=v.boundingClientRect;return new $((c.clientX-_.left)/v.x-p.clientLeft,(c.clientY-_.top)/v.y-p.clientTop)}var Hve=Ke.linux&&Ke.chrome?window.devicePixelRatio:Ke.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function hz(c){return Ke.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/Hve:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function cT(c,p){var v=p.relatedTarget;if(!v)return!0;try{for(;v&&v!==c;)v=v.parentNode}catch{return!1}return v!==c}var Gve={__proto__:null,on:wt,off:hr,stopPropagation:vc,disableScrollPropagation:uT,disableClickPropagation:Yh,preventDefault:$n,stop:yc,getPropagationPath:pz,getMousePosition:mz,getWheelDelta:hz,isExternalTarget:cT,addListener:wt,removeListener:hr},gz=oe.extend({run:function(c,p,v,_){this.stop(),this._el=c,this._inProgress=!0,this._duration=v||.25,this._easeOutPower=1/Math.max(_||.5,.2),this._startPos=gc(c),this._offset=p.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=q(this._animate,this),this._step()},_step:function(c){var p=+new Date-this._startTime,v=this._duration*1e3;p<v?this._runFrame(this._easeOut(p/v),c):(this._runFrame(1),this._complete())},_runFrame:function(c,p){var v=this._startPos.add(this._offset.multiplyBy(c));p&&v._round(),Qr(this._el,v),this.fire("step")},_complete:function(){G(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),jt=oe.extend({options:{crs:Oe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,p){p=h(this,p),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),p.maxBounds&&this.setMaxBounds(p.maxBounds),p.zoom!==void 0&&(this._zoom=this._limitZoom(p.zoom)),p.center&&p.zoom!==void 0&&this.setView(Q(p.center),p.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Gh&&Ke.any3d&&!Ke.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),wt(this._proxy,uz,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(c,p,v){if(p=p===void 0?this._zoom:this._limitZoom(p),c=this._limitCenter(Q(c),p,this.options.maxBounds),v=v||{},this._stop(),this._loaded&&!v.reset&&v!==!0){v.animate!==void 0&&(v.zoom=r({animate:v.animate},v.zoom),v.pan=r({animate:v.animate,duration:v.duration},v.pan));var _=this._zoom!==p?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,p,v.zoom):this._tryAnimatedPan(c,v.pan);if(_)return clearTimeout(this._sizeTimer),this}return this._resetView(c,p,v.pan&&v.pan.noMoveStart),this},setZoom:function(c,p){return this._loaded?this.setView(this.getCenter(),c,{zoom:p}):(this._zoom=c,this)},zoomIn:function(c,p){return c=c||(Ke.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,p)},zoomOut:function(c,p){return c=c||(Ke.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,p)},setZoomAround:function(c,p,v){var _=this.getZoomScale(p),P=this.getSize().divideBy(2),D=c instanceof $?c:this.latLngToContainerPoint(c),X=D.subtract(P).multiplyBy(1-1/_),se=this.containerPointToLatLng(P.add(X));return this.setView(se,p,{zoom:v})},_getBoundsCenterZoom:function(c,p){p=p||{},c=c.getBounds?c.getBounds():V(c);var v=R(p.paddingTopLeft||p.padding||[0,0]),_=R(p.paddingBottomRight||p.padding||[0,0]),P=this.getBoundsZoom(c,!1,v.add(_));if(P=typeof p.maxZoom=="number"?Math.min(p.maxZoom,P):P,P===1/0)return{center:c.getCenter(),zoom:P};
2var D=_.subtract(v).divideBy(2),X=this.project(c.getSouthWest(),P),se=this.project(c.getNorthEast(),P),ce=this.unproject(X.add(se).divideBy(2).add(D),P);return{center:ce,zoom:P}},fitBounds:function(c,p){if(c=V(c),!c.isValid())throw new Error("Bounds are not valid.");var v=this._getBoundsCenterZoom(c,p);return this.setView(v.center,v.zoom,p)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,p){return this.setView(c,this._zoom,{pan:p})},panBy:function(c,p){if(c=R(c).round(),p=p||{},!c.x&&!c.y)return this.fire("moveend");if(p.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new gz,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),p.noMoveStart||this.fire("movestart"),p.animate!==!1){Pt(this._mapPane,"leaflet-pan-anim");var v=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,v,p.duration||.25,p.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,p,v){if(v=v||{},v.animate===!1||!Ke.any3d)return this.setView(c,p,v);this._stop();var _=this.project(this.getCenter()),P=this.project(c),D=this.getSize(),X=this._zoom;c=Q(c),p=p===void 0?X:p;var se=Math.max(D.x,D.y),ce=se*this.getZoomScale(X,p),ye=P.distanceTo(_)||1,He=1.42,ct=He*He;function $t(en){var Ox=en?-1:1,Rye=en?ce:se,Dye=ce*ce-se*se+Ox*ct*ct*ye*ye,Nye=2*Rye*ct*ye,wT=Dye/Nye,Jz=Math.sqrt(wT*wT+1)-wT,zye=Jz<1e-9?-18:Math.log(Jz);return zye}function ta(en){return(Math.exp(en)-Math.exp(-en))/2}function Tn(en){return(Math.exp(en)+Math.exp(-en))/2}function yo(en){return ta(en)/Tn(en)}var Ia=$t(0);function uf(en){return se*(Tn(Ia)/Tn(Ia+He*en))}function Lye(en){return se*(Tn(Ia)*yo(Ia+He*en)-ta(Ia))/ct}function $ye(en){return 1-Math.pow(1-en,1.5)}var Oye=Date.now(),Wz=($t(1)-Ia)/He,Mye=v.duration?1e3*v.duration:1e3*Wz*.8;function Kz(){var en=(Date.now()-Oye)/Mye,Ox=$ye(en)*Wz;en<=1?(this._flyToFrame=q(Kz,this),this._move(this.unproject(_.add(P.subtract(_).multiplyBy(Lye(Ox)/ye)),X),this.getScaleZoom(se/uf(Ox),X),{flyTo:!0})):this._move(c,p)._moveEnd(!0)}return this._moveStart(!0,v.noMoveStart),Kz.call(this),this},flyToBounds:function(c,p){var v=this._getBoundsCenterZoom(c,p);return this.flyTo(v.center,v.zoom,p)},setMaxBounds:function(c){return c=V(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var p=this.options.minZoom;return this.options.minZoom=c,this._loaded&&p!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var p=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&p!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,p){this._enforcingBounds=!0;var v=this.getCenter(),_=this._limitCenter(v,this._zoom,V(c));return v.equals(_)||this.panTo(_,p),this._enforcingBounds=!1,this},panInside:function(c,p){p=p||{};var v=R(p.paddingTopLeft||p.padding||[0,0]),_=R(p.paddingBottomRight||p.padding||[0,0]),P=this.project(this.getCenter()),D=this.project(c),X=this.getPixelBounds(),se=U([X.min.add(v),X.max.subtract(_)]),ce=se.getSize();if(!se.contains(D)){this._enforcingBounds=!0;var ye=D.subtract(se.getCenter()),He=se.extend(D).getSize().subtract(ce);P.x+=ye.x<0?-He.x:He.x,P.y+=ye.y<0?-He.y:He.y,this.panTo(this.unproject(P),p),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=r({animate:!1,pan:!0},c===!0?{animate:!0}:c);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var v=this.getSize(),_=p.divideBy(2).round(),P=v.divideBy(2).round(),D=_.subtract(P);return!D.x&&!D.y?this:(c.animate&&c.pan?this.panBy(D):(c.pan&&this._rawPanBy(D),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:v}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=r({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=a(this._handleGeolocationResponse,this),v=a(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,v,c):navigator.geolocation.getCurrentPosition(p,v,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var p=c.code,v=c.message||(p===1?"permission denied":p===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+v+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var p=c.coords.latitude,v=c.coords.longitude,_=new Z(p,v),P=_.toBounds(c.coords.accuracy*2),D=this._locateOptions;
2if(D.setView){var X=this.getBoundsZoom(P);this.setView(_,D.maxZoom?Math.min(X,D.maxZoom):X)}var se={latlng:_,bounds:P,timestamp:c.timestamp};for(var ce in c.coords)typeof c.coords[ce]=="number"&&(se[ce]=c.coords[ce]);this.fire("locationfound",se)}},addHandler:function(c,p){if(!p)return this;var v=this[c]=new p(this);return this._handlers.push(v),this.options[c]&&v.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ar(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(G(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Ar(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,p){var v="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),_=Bt("div",v,p||this._mapPane);return c&&(this._panes[c]=_),_},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),p=this.unproject(c.getBottomLeft()),v=this.unproject(c.getTopRight());return new B(p,v)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,p,v){c=V(c),v=R(v||[0,0]);var _=this.getZoom()||0,P=this.getMinZoom(),D=this.getMaxZoom(),X=c.getNorthWest(),se=c.getSouthEast(),ce=this.getSize().subtract(v),ye=U(this.project(se,_),this.project(X,_)).getSize(),He=Ke.any3d?this.options.zoomSnap:1,ct=ce.x/ye.x,$t=ce.y/ye.y,ta=p?Math.max(ct,$t):Math.min(ct,$t);return _=this.getScaleZoom(ta,_),He&&(_=Math.round(_/(He/100))*(He/100),_=p?Math.ceil(_/He)*He:Math.floor(_/He)*He),Math.max(P,Math.min(D,_))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,p){var v=this._getTopLeftPoint(c,p);return new N(v,v.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,p){var v=this.options.crs;return p=p===void 0?this._zoom:p,v.scale(c)/v.scale(p)},getScaleZoom:function(c,p){var v=this.options.crs;p=p===void 0?this._zoom:p;var _=v.zoom(c*v.scale(p));return isNaN(_)?1/0:_},project:function(c,p){return p=p===void 0?this._zoom:p,this.options.crs.latLngToPoint(Q(c),p)},unproject:function(c,p){return p=p===void 0?this._zoom:p,this.options.crs.pointToLatLng(R(c),p)},layerPointToLatLng:function(c){var p=R(c).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(c){var p=this.project(Q(c))._round();return p._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(Q(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(V(c))},distance:function(c,p){return this.options.crs.distance(Q(c),Q(p))},containerPointToLayerPoint:function(c){return R(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return R(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var p=this.containerPointToLayerPoint(R(c));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Q(c)))},mouseEventToContainerPoint:function(c){return mz(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var p=this._container=cz(c);if(p){if(p._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");wt(p,"scroll",this._onScroll,this),this._containerId=i(p)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ke.any3d,Pt(c,"leaflet-container"+(Ke.touch?" leaflet-touch":"")+(Ke.retina?" leaflet-retina":"")+(Ke.ielt9?" leaflet-oldie":"")+(Ke.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=Wh(c,"position");p!=="absolute"&&p!=="relative"&&p!=="fixed"&&p!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Qr(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Pt(c.markerPane,"leaflet-zoom-hide"),Pt(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,p,v){Qr(this._mapPane,new $(0,0));var _=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var P=this._zoom!==p;this._moveStart(P,v)._move(c,p)._moveEnd(P),this.fire("viewreset"),_&&this.fire("load")},_moveStart:function(c,p){return c&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(c,p,v,_){p===void 0&&(p=this._zoom);var P=this._zoom!==p;return this._zoom=p,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),_?v&&v.pinch&&this.fire("zoom",v):((P||v&&v.pinch)&&this.fire("zoom",v),this.fire("move",v)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return G(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){Qr(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[i(this._container)]=this;var p=c?hr:wt;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),Ke.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){G(this._resizeRequest),this._resizeRequest=q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,p){for(var v=[],_,P=p==="mouseout"||p==="mouseover",D=c.target||c.srcElement,X=!1;D;){if(_=this._targets[i(D)],_&&(p==="click"||p==="preclick")&&this._draggableMoved(_)){X=!0;break}if(_&&_.listens(p,!0)&&(P&&!cT(D,c)||(v.push(_),P))||D===this._container)break;D=D.parentNode}return!v.length&&!X&&!P&&this.listens(p,!0)&&(v=[this]),v},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var p=c.target||c.srcElement;if(!(!this._loaded||p._leaflet_disable_events||c.type==="click"&&this._isCl
2ickDisabled(p))){var v=c.type;v==="mousedown"&&aT(p),this._fireDOMEvent(c,v)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,p,v){if(c.type==="click"){var _=r({},c);_.type="preclick",this._fireDOMEvent(_,_.type,v)}var P=this._findEventTargets(c,p);if(v){for(var D=[],X=0;X<v.length;X++)v[X].listens(p,!0)&&D.push(v[X]);P=D.concat(P)}if(P.length){p==="contextmenu"&&$n(c);var se=P[0],ce={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var ye=se.getLatLng&&(!se._radius||se._radius<=10);ce.containerPoint=ye?this.latLngToContainerPoint(se.getLatLng()):this.mouseEventToContainerPoint(c),ce.layerPoint=this.containerPointToLayerPoint(ce.containerPoint),ce.latlng=ye?se.getLatLng():this.layerPointToLatLng(ce.layerPoint)}for(X=0;X<P.length;X++)if(P[X].fire(p,ce,!0),ce.originalEvent._stopped||P[X].options.bubblingMouseEvents===!1&&S(this._mouseEvents,p)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,p=this._handlers.length;c<p;c++)this._handlers[c].disable()},whenReady:function(c,p){return this._loaded?c.call(p||this,{target:this}):this.on("load",c,p),this},_getMapPanePos:function(){return gc(this._mapPane)||new $(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,p){var v=c&&p!==void 0?this._getNewPixelOrigin(c,p):this.getPixelOrigin();return v.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,p){var v=this.getSize()._divideBy(2);return this.project(c,p)._subtract(v)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,p,v){var _=this._getNewPixelOrigin(v,p);return this.project(c,p)._subtract(_)},_latLngBoundsToNewLayerBounds:function(c,p,v){var _=this._getNewPixelOrigin(v,p);
2return U([this.project(c.getSouthWest(),p)._subtract(_),this.project(c.getNorthWest(),p)._subtract(_),this.project(c.getSouthEast(),p)._subtract(_),this.project(c.getNorthEast(),p)._subtract(_)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,p,v){if(!v)return c;var _=this.project(c,p),P=this.getSize().divideBy(2),D=new N(_.subtract(P),_.add(P)),X=this._getBoundsOffset(D,v,p);return Math.abs(X.x)<=1&&Math.abs(X.y)<=1?c:this.unproject(_.add(X),p)},_limitOffset:function(c,p){if(!p)return c;var v=this.getPixelBounds(),_=new N(v.min.add(c),v.max.add(c));return c.add(this._getBoundsOffset(_,p))},_getBoundsOffset:function(c,p,v){var _=U(this.project(p.getNorthEast(),v),this.project(p.getSouthWest(),v)),P=_.min.subtract(c.min),D=_.max.subtract(c.max),X=this._rebound(P.x,-D.x),se=this._rebound(P.y,-D.y);return new $(X,se)},_rebound:function(c,p){return c+p>0?Math.round(c-p)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(p))},_limitZoom:function(c){var p=this.getMinZoom(),v=this.getMaxZoom(),_=Ke.any3d?this.options.zoomSnap:1;return _&&(c=Math.round(c/_)*_),Math.max(p,Math.min(v,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Zr(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,p){var v=this._getCenterOffset(c)._trunc();return(p&&p.animate)!==!0&&!this.getSize().contains(v)?!1:(this.panBy(v,p),!0)},_createAnimProxy:function(){var c=this._proxy=Bt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(p){var v=X6,_=this._proxy.style[v];hc(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),_===this._proxy.style[v]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ar(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),p=this.getZoom();hc(this._proxy,this.project(c,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,p,v){if(this._animatingZoom)return!0;if(v=v||{},!this._zoomAnimated||v.animate===!1||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var _=this.getZoomScale(p),P=this._getCenterOffset(c)._divideBy(1-1/_);return v.animate!==!0&&!this.getSize().contains(P)?!1:(q(function(){this._moveStart(!0,v.noMoveStart||!1)._animateZoom(c,p,!0)},this),!0)},_animateZoom:function(c,p,v,_){this._mapPane&&(v&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=p,Pt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:p,noUpdate:_}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Zr(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Wve(c,p){return new jt(c,p)}var Yo=Y.extend({options:{position:"topright"},initialize:function(c){h(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var p=this._map;return p&&p.removeControl(this),this.options.position=c,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var p=this._container=this.onAdd(c),v=this.getPosition(),_=c._controlCorners[v];return Pt(p,"leaflet-control"),v.indexOf("bottom")!==-1?_.insertBefore(p,_.firstChild):_.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ar(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),Qh=function(c){return new Yo(c)};jt.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this}
vendor: 5,055 bytes, line 2
2,_initControlPos:function(){var c=this._controlCorners={},p="leaflet-",v=this._controlContainer=Bt("div",p+"control-container",this._container);function _(P,D){var X=p+P+" "+p+D;c[P+D]=Bt("div",X,v)}_("top","left"),_("top","right"),_("bottom","left"),_("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Ar(this._controlCorners[c]);Ar(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var vz=Yo.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,p,v,_){return v<_?-1:_<v?1:0}},initialize:function(c,p,v){h(this,v),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var _ in c)this._addLayer(c[_],_);for(_ in p)this._addLayer(p[_],_,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Yo.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,p){return this._addLayer(c,p),this._map?this._update():this},addOverlay:function(c,p){return this._addLayer(c,p,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var p=this._getLayer(i(c));return p&&this._layers.splice(this._layers.indexOf(p),1),this._map?this._update():this},expand:function(){Pt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(Pt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):Zr(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Zr(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",p=this._container=Bt("div",c),v=this.options.collapsed;p.setAttribute("aria-haspopup",!0),Yh(p),uT(p);var _=this._section=Bt("section",c+"-list");v&&(this._map.on("click",this.collapse,this),wt(p,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var P=this._layersLink=Bt("a",c+"-toggle",p);P.href="#",P.title="Layers",P.setAttribute("role","button"),wt(P,{keydown:function(D){D.keyCode===13&&this._expandSafely()},click:function(D){$n(D),this._expandSafely()}},this),v||this.expand(),this._baseLayersList=Bt("div",c+"-base",_),this._separator=Bt("div",c+"-separator",_),this._overlaysList=Bt("div",c+"-overlays",_),p.appendChild(_)},_getLayer:function(c){for(var p=0;p<this._layers.length;p++)if(this._layers[p]&&i(this._layers[p].layer)===c)return this._layers[p]},_addLayer:function(c,p,v){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:p,overlay:v}),this.options.sortLayers&&this._layers.sort(a(function(_,P){return this.options.sortFunction(_.layer,P.layer,_.name,P.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;vx(this._baseLayersList),vx(this._overlaysList),this._layerControlInputs=[];var c,p,v,_,P=0;for(v=0;v<this._layers.length;v++)_=this._layers[v],this._addItem(_),p=p||_.overlay,c=c||!_.overlay,P+=_.overlay?0:1;return this.options.hideSingleBase&&(c=c&&P>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=p&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var p=this._getLayer(i(c.target)),v=p.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;v&&this._map.fire(v,p)},_createRadioElement:function(c,p){var v='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(p?' checked="checked"':"")+"/>",_=document.createElement("div");return _.innerHTML=v,_.firstChild},_addItem:function(c){var p=document.createElement("label"),v=this._map.hasLayer(c.layer),_;c.overlay?(_=document.createElement("input"),_.type="checkbox",_.className="leaflet-control-layers-selector",_.defaultChecked=v):_=this._createRadioElement("leaflet-base-layers_"+i(this),v),this._layerControlInputs.push(_),_.layerId=i(c.layer),wt(_,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+c.name;var D=document.createElement("span");p.appendChild(D),D.appendChild(_),D.appendChild(P);var X=c.overlay?this._overlaysList:this._baseLayersList;return X.appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,p,v,_=[],P=[];this._handlingClick=!0;for(var D=c.length-1;D>=0;D--)p=c[D],v=this._getLayer(p.layerId).layer,p.checked?_.push(v):p.checked||P.pu
2sh(v);for(D=0;D<P.length;D++)this._map.hasLayer(P[D])&&this._map.removeLayer(P[D]);for(D=0;D<_.length;D++)this._map.hasLayer(_[D])||this._map.addLayer(_[D]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,p,v,_=this._map.getZoom(),P=c.length-1;P>=0;P--)p=c[P],v=this._getLayer(p.layerId).layer,p.disabled=v.options.minZoom!==void 0&&_<v.options.minZoom||v.options.maxZoom!==void 0&&_>v.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,wt(c,"click",$n),this.expand();var p=this;setTimeout(function(){hr(c,"click",$n),p._preventClick=!1})}}),Kve=function(c,p,v){return new vz(c,p,v)},dT=Yo.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var p="leaflet-control-zoom",v=Bt("div",p+" leaflet-bar"),_=this.options;return this._zoomInButton=this._createButton(_.zoomInText,_.zoomInTitle,p+"-in",v,this._zoomIn),this._zoomOutButton=this._createButton(_.zoomOutText,_.zoomOutTitle,p+"-out",v,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),v},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,p,v,_,P){var D=Bt("a",v,_);return D.innerHTML=c,D.href="#",D.title=p,D.setAttribute("role","button"),D.setAttribute("aria-label",p),Yh(D),wt(D,"click",yc),wt(D,"click",P,this),wt(D,"click",this._refocusOnMap,this),D},_updateDisabled:function(){var c=this._map,p="leaflet-disabled";Zr(this._zoomInButton,p),Zr(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(Pt(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(Pt(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});jt.mergeOptions({zoomControl:!0}),jt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dT,this.addControl(this.zoomControl))});var Jve=function(c){return new dT(c)},yz=Yo.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var p="leaflet-control-scale",v=Bt("div",p),_=this.options;return this._addScales(_,p+"-line",v),c.on(_.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),v},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,p,v){c.metric&&(this._mScale=Bt("div",p,v)),c.imperial&&(this._iScale=Bt("div",p,v))},_update:function(){var c=this._map,p=c.getSize().y/2,v=c.distance(c.containerPointToLatLng([0,p]),c.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(v)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var p=this._getRoundNum(c),v=p<1e3?p+" m":p/1e3+" km";this._updateScale(this._mScale,v,p/c)},_updateImperial:function(c){var p=c*3.2808399,v,_,P;p>5280?(v=p/5280,_=this._getRoundNum(v),this._updateScale(this._iScale,_+" mi",_/v)):(P=this._getRoundNum(p),this._updateScale(this._iScale,P+" ft",P/p))},_updateScale:function(c,p,v){c.style.width=Math.round(this.options.maxWidth*v)+"px",c.innerHTML=p},_getRoundNum:function(c){var p=Math.pow(10,(Math.floor(c)+"").length-1),v=c/p;return v=v>=10?10:v>=5?5:v>=3?3:v>=2?2:1,p*v}}
2),Xve=function(c){return new yz(c)},Yve='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',fT=Yo.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ke.inlineSvg?Yve+" ":"")+"Leaflet</a>"},initialize:function(c){h(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=Bt("div","leaflet-control-attribution"),Yh(this._container);for(var p in c._layers)c._layers[p].getAttribution&&this.addAttribution(c._layers[p].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var p in this._attributions)this._attributions[p]&&c.push(p);var v=[];this.options.prefix&&v.push(this.options.prefix),c.length&&v.push(c.join(", ")),this._container.innerHTML=v.join(' <span aria-hidden="true">|</span> ')}}});jt.mergeOptions({attributionControl:!0}),jt.addInitHook(function(){this.options.attributionControl&&new fT().addTo(this)});var Qve=function(c){return new fT(c)};Yo.Layers=vz,Yo.Zoom=dT,Yo.Scale=yz,Yo.Attribution=fT,Qh.layers=Kve,Qh.zoom=Jve,Qh.scale=Xve,Qh.attribution=Qve;var Oi=Y.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Oi.addTo=function(c,p){return c.addHandler(p,this),this};var eye={Events:re},bz=Ke.touch?"touchstart mousedown":"mousedown",Bl=oe.extend({options:{clickTolerance:3},initialize:function(c,p,v,_){h(this,_),this._element=c,this._dragStartTarget=p||c,this._preventOutline=v},enable:function(){this._enabled||(wt(this._dragStartTarget,bz,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Bl._dragging===this&&this.finishDrag(!0),hr(this._dragStartTarget,bz,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!Y6(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){Bl._dragging===this&&this.finishDrag();return}if(!(Bl._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&(Bl._dragging=this,this._preventOutline&&aT(this._element),tT(),Kh(),!this._moving)){this.fire("down");var p=c.touches?c.touches[0]:c,v=dz(this._element);this._startPoint=new $(p.clientX,p.clientY),this._startPos=gc(this._element),this._parentScale=oT(v);var _=c.type==="mousedown";wt(document,_?"mousemove":"touchmove",this._onMove,this),wt(document,_?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var p=c.touches&&c.touches.length===1?c.touches[0]:c,v=new $(p.clientX,p.clientY)._subtract(this._startPoint);!v.x&&!v.y||Math.abs(v.x)+Math.abs(v.y)<this.options.clickTolerance||(v.x/=this._parentScale.x,v.y/=this._parentScale.y,$n(c),this._moved||(this.fire("dragstart"),this._moved=!0,Pt(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Pt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(v),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),Qr(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){Zr(document.body,"leaflet-dragging"),this._lastTarget&&(Zr(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),hr(document,"mousemove touchmove",this._onMove,this),hr(document,"mouseup touchend touchcancel",this._onUp,this),rT(),Jh();var p=this._moved&&this._moving;this._moving=!1,Bl._dragging=!1,p&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function xz(c,p,v){var _,P=[1,4,2,8],D,X,se,ce,ye,He,ct,$t;for(D=0,He=c.length;D<He;D++)c[D]._code=bc(c[D],p);for(se=0;se<4;se++){for(ct=P[se],_=[],D=0,He=c.length,X=He-1;D<He;X=D++)ce=c[D],ye=c[X],ce._code&ct?ye._code&ct||($t=_x(ye,ce,ct,p,v),$t._co
2de=bc($t,p),_.push($t)):(ye._code&ct&&($t=_x(ye,ce,ct,p,v),$t._code=bc($t,p),_.push($t)),_.push(ce));c=_}return c}function wz(c,p){var v,_,P,D,X,se,ce,ye,He;if(!c||c.length===0)throw new Error("latlngs not passed");vo(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var ct=Q([0,0]),$t=V(c),ta=$t.getNorthWest().distanceTo($t.getSouthWest())*$t.getNorthEast().distanceTo($t.getNorthWest());ta<1700&&(ct=pT(c));var Tn=c.length,yo=[];for(v=0;v<Tn;v++){var Ia=Q(c[v]);yo.push(p.project(Q([Ia.lat-ct.lat,Ia.lng-ct.lng])))}for(se=ce=ye=0,v=0,_=Tn-1;v<Tn;_=v++)P=yo[v],D=yo[_],X=P.y*D.x-D.y*P.x,ce+=(P.x+D.x)*X,ye+=(P.y+D.y)*X,se+=X*3;se===0?He=yo[0]:He=[ce/se,ye/se];var uf=p.unproject(R(He));return Q([uf.lat+ct.lat,uf.lng+ct.lng])}function pT(c){for(var p=0,v=0,_=0,P=0;P<c.length;P++){var D=Q(c[P]);p+=D.lat,v+=D.lng,_++}return Q([p/_,v/_])}var tye={__proto__:null,clipPolygon:xz,polygonCenter:wz,centroid:pT};function _z(c,p){if(!p||!c.length)return c.slice();var v=p*p;return c=aye(c,v),c=nye(c,v),c}function Sz(c,p,v){return Math.sqrt(eg(c,p,v,!0))}function rye(c,p,v){return eg(c,p,v)}function nye(c,p){var v=c.length,_=typeof Uint8Array<"u"?Uint8Array:Array,P=new _(v);P[0]=P[v-1]=1,mT(c,P,p,0,v-1);var D,X=[];for(D=0;D<v;D++)P[D]&&X.push(c[D]);return X}function mT(c,p,v,_,P){var D=0,X,se,ce;for(se=_+1;se<=P-1;se++)ce=eg(c[se],c[_],c[P],!0),ce>D&&(X=se,D=ce);D>v&&(p[X]=1,mT(c,p,v,_,X),mT(c,p,v,X,P))}function aye(c,p){for(var v=[c[0]],_=1,P=0,D=c.length;_<D;_++)oye(c[_],c[P])>p&&(v.push(c[_]),P=_);return P<D-1&&v.push(c[D-1]),v}var kz;function Iz(c,p,v,_,P){var D=_?kz:bc(c,v),X=bc(p,v),se,ce,ye;for(kz=X;;){if(!(D|X))return[c,p];if(D&X)return!1;se=D||X,ce=_x(c,p,se,v,P),ye=bc(ce,v),se===D?(c=ce,D=ye):(p=ce,X=ye)}}function _x(c,p,v,_,P){var D=p.x-c.x,X=p.y-c.y,se=_.min,ce=_.max,ye,He;return v&8?(ye=c.x+D*(ce.y-c.y)/X,He=ce.y):v&4?(ye=c.x+D*(se.y-c.y)/X,He=se.y):v&2?(ye=ce.x,He=c.y+X*(ce.x-c.x)/D):v&1&&(ye=se.x,He=c.y+X*(se.x-c.x)/D),new $(ye,He,P)}function bc(c,p){var v=0;return c.x<p.min.x?v|=1:c.x>p.max.x&&(v|=2),c.y<p.min.y?v|=4:c.y>p.max.y&&(v|=8),v}function oye(c,p){var v=p.x-c.x,_=p.y-c.y;return v*v+_*_}function eg(c,p,v,_){var P=p.x,D=p.y,X=v.x-P,se=v.y-D,ce=X*X+se*se,ye;return ce>0&&(ye=((c.x-P)*X+(c.y-D)*se)/ce,ye>1?(P=v.x,D=v.y):ye>0&&(P+=X*ye,D+=se*ye)),X=c.x-P,se=c.y-D,_?X*X+se*se:new $(P,D)}function vo(c){return!w(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function Tz(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),vo(c)}function Cz(c,p){var v,_,P,D,X,se,ce,ye;if(!c||c.length===0)throw new Error("latlngs not passed");vo(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var He=Q([0,0]),ct=V(c),$t=ct.getNorthWest().distanceTo(ct.getSouthWest
2())*ct.getNorthEast().distanceTo(ct.getNorthWest());$t<1700&&(He=pT(c));var ta=c.length,Tn=[];for(v=0;v<ta;v++){var yo=Q(c[v]);Tn.push(p.project(Q([yo.lat-He.lat,yo.lng-He.lng])))}for(v=0,_=0;v<ta-1;v++)_+=Tn[v].distanceTo(Tn[v+1])/2;if(_===0)ye=Tn[0];else for(v=0,D=0;v<ta-1;v++)if(X=Tn[v],se=Tn[v+1],P=X.distanceTo(se),D+=P,D>_){ce=(D-_)/P,ye=[se.x-ce*(se.x-X.x),se.y-ce*(se.y-X.y)];break}var Ia=p.unproject(R(ye));return Q([Ia.lat+He.lat,Ia.lng+He.lng])}var iye={__proto__:null,simplify:_z,pointToSegmentDistance:Sz,closestPointOnSegment:rye,clipSegment:Iz,_getEdgeIntersection:_x,_getBitCode:bc,_sqClosestPointOnSegment:eg,isFlat:vo,_flat:Tz,polylineCenter:Cz},hT={project:function(c){return new $(c.lng,c.lat)},unproject:function(c){return new Z(c.y,c.x)},bounds:new N([-180,-90],[180,90])},gT={R:6378137,R_MINOR:6356752314245179e-9,bounds:new N([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var p=Math.PI/180,v=this.R,_=c.lat*p,P=this.R_MINOR/v,D=Math.sqrt(1-P*P),X=D*Math.sin(_),se=Math.tan(Math.PI/4-_/2)/Math.pow((1-X)/(1+X),D/2);return _=-v*Math.log(Math.max(se,1e-10)),new $(c.lng*p*v,_)},unproject:function(c){for(var p=180/Math.PI,v=this.R,_=this.R_MINOR/v,P=Math.sqrt(1-_*_),D=Math.exp(-c.y/v),X=Math.PI/2-2*Math.atan(D),se=0,ce=.1,ye;se<15&&Math.abs(ce)>1e-7;se++)ye=P*Math.sin(X),ye=Math.pow((1-ye)/(1+ye),P/2),ce=Math.PI/2-2*Math.atan(D*ye)-X,X+=ce;return new Z(X*p,c.x*p/v)}},sye={__proto__:null,LonLat:hT,Mercator:gT,SphericalMercator:De},lye=r({},ge,{code:"EPSG:3395",projection:gT,transformation:(function(){var c=.5/(Math.PI*gT.R);return Ze(c,.5,-c,.5)})()}),Pz=r({},ge,{code:"EPSG:4326",projection:hT,transformation:Ze(1/180,1,-1/180,.5)}),uye=r({},ue,{projection:hT,transformation:Ze(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,p){var v=p.lng-c.lng,_=p.lat-c.lat;return Math.sqrt(v*v+_*_)},infinite:!0});ue.Earth=ge,ue.EPSG3395=lye,ue.EPSG3857=Oe,ue.EPSG900913=fe,ue.EPSG4326=Pz,ue.Simple=uye;var Qo=oe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[i(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[i(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var p=c.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var v=this.getEvents();p.on(v,this),this.once("remove",function(){p.off(v,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});jt.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var p=i(c);return this._layers[p]?this:(this._layers[p]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var p=i(c);return this._layers[p]?(this._loaded&&c.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return i(c)in this._layers},eachLayer:function(c,p){for(var v in this._layers)c.call(p,this._layers[v]);return this},_addLayers:function(c){c=c?w(c)?c:[c]:[];for(var p=0,v=c.length;p<v;p++)this.addLayer(c[p])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[i(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var p=i(c);this._zoomBoundLayers[p]&&(delete this._zoomBoundLayers[p],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,p=-1/0,v=this._getZoomSpan();for(var _ in this._zoomBoundLayers){var P=this._zoomBoundLayers[_].options;c=P.minZoom===void 0?c:Math.min(c,P.minZoom),p=P.maxZoom===void 0?p:Math.max(p,P.maxZoom)}this._layersMaxZoom=p===-1/0?void 0:p,this._layersMinZoom=c===1/0?void 0:c,v!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
2om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var nf=Qo.extend({initialize:function(c,p){h(this,p),this._layers={};var v,_;if(c)for(v=0,_=c.length;v<_;v++)this.addLayer(c[v])},addLayer:function(c){var p=this.getLayerId(c);return this._layers[p]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var p=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[p]&&this._map.removeLayer(this._layers[p]),delete this._layers[p],this},hasLayer:function(c){var p=typeof c=="number"?c:this.getLayerId(c);return p in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var p=Array.prototype.slice.call(arguments,1),v,_;for(v in this._layers)_=this._layers[v],_[c]&&_[c].apply(_,p);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,p){for(var v in this._layers)c.call(p,this._layers[v]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return i(c)}}),cye=function(c,p){return new nf(c,p)},ks=nf.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),nf.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),nf.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new B;for(var p in this._layers){var v=this._layers[p];c.extend(v.getBounds?v.getBounds():v.getLatLng())}return c}}),dye=function(c,p){return new ks(c,p)},af=Y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){h(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,p){var v=this._getIconUrl(c);if(!v){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var _=this._createImg(v,p&&p.tagName==="IMG"?p:null);return this._setIconStyles(_,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(_.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),_},_setIconStyles:function(c,p){var v=this.options,_=v[p+"Size"];typeof _=="number"&&(_=[_,_]);var P=R(_),D=R(p==="shadow"&&v.shadowAnchor||v.iconAnchor||P&&P.divideBy(2,!0));c.className="leaflet-marker-"+p+" "+(v.className||""),D&&(c.style.marginLeft=-D.x+"px",c.style.marginTop=-D.y+"px"),P&&(c.style.width=P.x+"px",c.style.height=P.y+"px")},_createImg:function(c,p){return p=p||document.createElement("img"),p.src=c,p},_getIconUrl:function(c){return Ke.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function fye(c){return new af(c)}var tg=af.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof tg.imagePath!="string"&&(tg.imagePath=this._detectIconPath()),(this.options.imagePath||tg.imagePath)+af.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var p=function(v,_,P){var D=_.exec(v);return D&&D[P]};return c=p(c,/^url\((['"])?(.+)\1\)$/,2),c&&p(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=Bt("div","leaflet-default-icon-path",document.body),p=Wh(c,"background-image")||Wh(c,"backgroundImage");if(document.body.removeChild(c),p=this._stripUrl(p),p)return p;var v=document.querySelector('link[href$="leaflet.css"]');return v?v.href.substring(0,v.href.length-11-1):""}}),Az=Oi.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new Bl(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Pt(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Zr(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var p=this._marker,v=p._map,_=this._marker.options.autoPanSpeed,P=this._marker.options.autoPanPadding,D=gc(p._icon),X=v.getPixelBounds(),se=v.getPixelOrigin(),ce=U(X.min._subtract(se).add(P),X.max._subtract(se).subtract(P));if(!ce.contains(D)){var ye=R((Math.max(ce.max.x,D.x)-ce.max.x)/(X.max.x-ce.max.x)-(Math.min(ce.min.x,D.x)-ce.min.x)/(X.min.x-ce.min.x),(Math.max(ce.max.y,D.y)-ce.max.y)/(X.max.y-ce.max.y)-(Math.min(ce.min.y,D.y)-ce.min.y)/(X.min.y-ce.min.y)).multiplyBy(_);v.panBy(ye,{animate:!1}),this._draggable._newPos._add(ye),this._draggable._startPos._add(ye),Qr(p._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=q(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(G(this._panRequest),this._panRequest=q(this._adjustPan.bind(this,c)))},_onDrag:function(c){var p=this._marker,v=p._shadow,_=gc(p._icon),P=p._map.layerPointToLatLng(_);v&&Qr(v,_),p._latlng=P,c.latlng=P,c.oldLatLng=this._oldLatLng,p.fire("move",c).fire("drag",c)},_onDragEnd:function(c){G(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Sx=Qo.extend({options:{icon:new tg,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,p){h(this,p),this._latlng=Q(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var p=this._latlng;return this._latlng=Q(c),this.update(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,p="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),v=c.icon.createIcon(this._icon),_=!1;v!==this._icon&&(this._icon&&this._removeIcon(),_=!0,c.title&&(v.title=c.title),v.tagName==="IMG"&&(v.alt=c.alt||"")),Pt(v,p),c.keyboard&&(v.tabIndex="0",v.setAttribute("role","button")),this._icon=v,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&wt(v,"focus",this._panOnFocus,this);var P=c.icon.createShadow(this._shadow),D=!1;P!==this._shadow&&(this._removeShadow(),D=!0),P&&(Pt(P,p),P.alt=""),this._shadow=P,c.opacity<1&&this._updateOpacity(),_&&this.getPane().appendChild(this._icon),this._initInteraction(),P&&D&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}
vendor: 5,659 bytes, line 2
2),this.options.autoPanOnFocus&&hr(this._icon,"focus",this._panOnFocus,this),Ar(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ar(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&Qr(this._icon,c),this._shadow&&Qr(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(p)},_initInteraction:function(){if(this.options.interactive&&(Pt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Az)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Az(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&go(this._icon,c),this._shadow&&go(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var p=this.options.icon.options,v=p.iconSize?R(p.iconSize):R(0,0),_=p.iconAnchor?R(p.iconAnchor):R(0,0);c.panInside(this._latlng,{paddingTopLeft:_,paddingBottomRight:v.subtract(_)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function pye(c,p){return new Sx(c,p)}var Fl=Qo.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return h(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),kx=Fl.extend({options:{fill:!0,radius:10},initialize:function(c,p){h(this,p),this._latlng=Q(c),this._radius=this.options.radius},setLatLng:function(c){var p=this._latlng;return this._latlng=Q(c),this.redraw(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var p=c&&c.radius||this._radius;return Fl.prototype.setStyle.call(this,c),this.setRadius(p),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,p=this._radiusY||c,v=this._clickTolerance(),_=[c+v,p+v];this._pxBounds=new N(this._point.subtract(_),this._point.add(_))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function mye(c,p){return new kx(c,p)}var vT=kx.extend({initialize:function(c,p,v){if(typeof p=="number"&&(p=r({},v,{radius:p})),h(this,p),this._latlng=Q(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new B(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:Fl.prototype.setStyle,_project:function(){var c=this._latlng.lng,p=this._latlng.lat,v=this._map,_=v.options.crs;if(_.distance===ge.distance){var P=Math.PI/180,D=this._mRadius/ge.R/P,X=v.project([p+D,c]),se=v.project([p-D,c]),ce=X.add(se).divideBy(2),ye=v.unproject(ce).lat,He=Math.acos((Math.cos(D*P)-Math.sin(p*P)*Math.sin(ye*P))/(Math.cos(p*P)*Math.cos(ye*P)))/P;(isNaN(He)||He===0)&&(He=D/Math.cos(Math.PI/180*p)),this._point=ce.subtract(v.getPixelOrigin()),this._radius=isNaN(He)?0:ce.x-v.project([ye,c-He]).x,this._radiusY=ce.y-X.y}else{var ct=_.unproject(_.project(this._latlng).subtract([this._mRadius,0]));this._point=v.latLngToLayerPoint(this._latlng),this._radius=this._point.x-v.latLngToLayerPoint(ct).x}this._updateBounds()}});function hye(c,p,v){return new vT(c,p,v)}var Is=Fl.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,p){h(this,p),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var p=1/0,v=null,_=eg,P,D,X=0,se=this._parts.length;X<se;X++)for(var ce=this._parts[X],ye=1,He=ce.length;ye<He;ye++){P=ce[ye-1],D=ce[ye];var ct=_(c,P,D,!0);ct<p&&(p=ct,v=_(c,P,D))}return v&&(v.distance=Math.sqrt(p)),v}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Cz(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,p){return p=p||this._defaultShape(),c=Q(c),p.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new B,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return vo(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var p=[],v=vo(c),_=0,P=c.length;_<P;_++)v?(p[_]=Q(c[_]),this._bounds.extend(p[_])):p[_]=this._convertLatLngs(c[_]);return p},_project:function(){var c=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),p=new $(c,c);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(p),this._rawPxBounds.max.add(p)]))},_projectLatlngs:function(c,p,v){var _=c[0]instanceof Z,P=c.length,D,X;if(_){for(X=[],D=0;D<P;D++)X[D]=this._map.latLngToLayerPoint(c[D]),v.extend(X[D]);p.push(X)}else for(D=0;D<P;D++)this._projectLatlngs(c[D],p,v)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var p=this._parts,v,_,P,D,X,se,ce;for(v=0,P=0,D=this._rings.length;v<D;v++)for(ce=this._rings[v],_=0,X=ce.length;_<X-1;_++)se=Iz(ce[_],ce[_+1],c,_,!0),se&&(p[P]=p[P]||[],p[P].push(se[0]),(se[1]!==ce[_+1]||_===X-2)&&(p[P].push(se[1]),P++))}},_simplifyPoints:function(){for(var c=this._parts,p=this.options.smoothFactor,v=0,_=c.length;v<_;v++)c[v]=_z(c[v],p)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,p){var v,_,P,D,X,se,ce=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(v=0,D=this._parts.length;v<D;v++)for(se=this._parts[v],_=0,X=se.length,P=X-1;_<X;P=_++)if(!(!p&&_===0)&&Sz(c,se[P],se[_])<=ce)return!0;return!1}});function gye(c,p){return new Is(c,p)}Is._flat=Tz;var of=Is.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return wz(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var p=Is.prototype._convertLatLngs.call(this,c),v=p.length;return v>=2&&p[0]instanceof Z&&p[0].equals(p[v-1])&&p.pop(),p},_setLatLngs:function(c){Is.prototype._setLatLngs.call(this,c),vo(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return vo(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,p=this.options.weight,v=new $(p,p);if(c=new N(c.min.subtract(v),c.max.add(v)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var _=0,P=this._rings.length,D;_<P;_++)D=xz(this._rings[_],c,!0),D.length&&this._parts.push(D)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var p=!1,v,_,P,D,X,se,ce,ye;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(D=0,ce=this._parts.length;D<ce;D++)for(v=this._parts[D],X=0,ye=v.length,se=ye-1;X<ye;se=X++)_=v[X],P=v[se],_.y>c.y!=P.y>c.y&&c.x<(P.x-_.x)*(c.y-_.y)/(P.y-_.y)+_.x&&(p=!p);return p||Is.prototype._containsPoint.call(this,c,!0)}});function vye(c,p){return new of(c,p)}var Ts=ks.extend({initialize:function(c,p){h(this,p),this._layers={},c&&this.addData(c)},addData:function(c){var p=w(c)?c:c.features,v,_,P;if(p){for(v=0,_=p.length;v<_;v++)P=p[v],(P.geometries||P.geometry||P.features||P.coordinates)&&this.addData(P);return this}var D=this.options;if(D.filter&&!D.filter(c))return this;var X=Ix(c,D);return X?(X.feature=Px(c),X.defaultOptions=X.options,this.resetStyle(X),D.onEachFeature&&D.onEachFeature(c,X),this.addLayer(X)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=r({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(p){this._setLayerStyle(p,c)},this)},_setLayerStyle:function(c,p){c.setStyle&&(typeof p=="function"&&(p=p(c.feature)),c.setStyle(p))}});function Ix(c,p){var v=c.type==="Feature"?c.geometry:c,_=v?v.coordinates:null,P=[],D=p&&p.pointToLayer,X=p&&p.coordsToLatLng||yT,se,ce,ye,He;if(!_&&!v)return null;switch(v.type){case"Point":return se=X(_),Ez(D,c,se,p);case"MultiPoint":for(ye=0,He=_.length;ye<He;ye++)se=X(_[ye]),P.push(Ez(D,c,se,p));return new ks(P);case"LineString":case"MultiLineString":return ce=Tx(_,v.type==="LineString"?0:1,X),new Is(ce,p);case"Polygon":case"MultiPolygon":return ce=Tx(_,v.type==="Polygon"?1:2,X),new of(ce,p);case"GeometryCollection":for(ye=0,He=v.geometries.length;ye<He;ye++){var ct=Ix({geometry:v.geometries[ye],type:"Feature",properties:c.properties},p);ct&&P.push(ct)}return new ks(P);case"FeatureCollection":for(ye=0,He=v.features.length;ye<He;ye++){var $t=Ix(v.features[ye],p);$t&&P.push($t)}return new ks(P);default:throw new Error("Invalid GeoJSON object.")}}function Ez(c,p,v,_){return c?c(p,v):new Sx(v,_&&_.markersInheritOptions&&_)}function yT(c){return new Z(c[1],c[0],c[2])}function Tx(c,p,v){for(var _=[],P=0,D=c.length,X;P<D;P++)X=p?Tx(c[P],p-1,v):(v||yT)(c[P]),_.push(X);return _}function bT(c,p){return c=Q(c),c.alt!==void 0?[d(c.lng,p),d(c.lat,p),d(c.alt,p)]:[d(c.lng,p),d(c.lat,p)]}function Cx(c,p,v,_){for(var P=[],D=0,X=c.length;D<X;D++)P.push(p?Cx(c[D],vo(c[D])?0:p-1,v,_):bT(c[D],_));return!p&&v&&P.length>0&&P.push(P[0].slice()),P}function sf(c,p){return c.feature?r({},c.feature,{geometry:p}):Px(p)}function Px(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var xT={toGeoJSON:function(c){return sf(this,{type:"Point",coordinates:bT(this.getLatLng(),c)})}};Sx.include(xT),vT.include(xT),kx.include(xT),Is.include({toGeoJSON:function(c){var p=!vo(this._latlngs),v=Cx(this._latlngs,p?1:0,!1,c);return sf(this,{type:(p?"Multi":"")+"LineString",coordinates:v})}}),of.include({toGeoJSON:function(c){var p=!vo(this._latlngs),v=p&&!vo(this._latlngs[0]),_=Cx(this._latlngs,v?2:p?1:0,!0,c);return p||(_=[_]),sf(this,{type:(v?"Multi":"")+"Polygon",coordinates:_})}}),nf.include({toMultiPoint:function(c){var p=[];return this.eachLayer(function(v){p.push(v.toGeoJSON(c).geometry.coordinates)}),sf(this,{type:"MultiPoint",coordinates:p})},toGeoJSON:function(c){var p=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(p==="MultiPoint")return this.toMultiPoint(c);var v=p==="GeometryCollection",_=[];return this.eachLayer(function(P){if(P.toGeoJSON){var D=P.toGeoJSON(c);if(v)_.push(D.geometry);else{var X=Px(D);X.type==="FeatureCollection"?_.push.apply(_,X.features):_.push(X)}}}),v?sf(this,{geometries:_,type:"GeometryCollection"}):{type:"FeatureCollection",features:_}}});function Lz(c,p){return new Ts(c,p)}var yye=Lz,Ax=Qo.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,p,v){this._url=c,this._bounds=V(p),h(this,v)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Pt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ar(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&tf(this._image),this},bringToBack:function(){return this._map&&rf(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=V(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",p=this._image=c?this._url:Bt("img");if(Pt(p,"leaflet-image-layer"),this._zoomAnimated&&Pt(p,"leaflet-zoom-animated"),this.options.className&&Pt(p,this.options.className),p.onselectstart=u,p.onmousemove=u,p.onload=a(this.fire,this,"load"),p.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=p.src;return}p.src=this._url,p.alt=this.options.alt},_animateZoom:function(c){var p=this._map.getZoomScale(c.zoom),v=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;hc(this._image,v,p)},_reset:function(){var c=this._image,p=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),v=p.getSize();Qr(c,p.min),c.style.width=v.x+"px",c.style.height=v.y+"px"},_updateOpacity:function(){go(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),bye=function(c,p,v){return new Ax(c,p,v)},$z=Ax.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
2ine:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",p=this._image=c?this._url:Bt("video");if(Pt(p,"leaflet-image-layer"),this._zoomAnimated&&Pt(p,"leaflet-zoom-animated"),this.options.className&&Pt(p,this.options.className),p.onselectstart=u,p.onmousemove=u,p.onloadeddata=a(this.fire,this,"load"),c){for(var v=p.getElementsByTagName("source"),_=[],P=0;P<v.length;P++)_.push(v[P].src);this._url=v.length>0?_:[p.src];return}w(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var D=0;D<this._url.length;D++){var X=Bt("source");X.src=this._url[D],p.appendChild(X)}}});function xye(c,p,v){return new $z(c,p,v)}var Oz=Ax.extend({_initImage:function(){var c=this._image=this._url;Pt(c,"leaflet-image-layer"),this._zoomAnimated&&Pt(c,"leaflet-zoom-animated"),this.options.className&&Pt(c,this.options.className),c.onselectstart=u,c.onmousemove=u}});function wye(c,p,v){return new Oz(c,p,v)}var Mi=Qo.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,p){c&&(c instanceof Z||w(c))?(this._latlng=Q(c),h(this,p)):(h(this,c),this._source=p),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&go(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&go(this._container,1),this.bringToFront(),this.options.interactive&&(Pt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(go(this._container,0),this._removeTimeout=setTimeout(a(Ar,void 0,this._container),200)):Ar(this._container),this.options.interactive&&(Zr(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=Q(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&tf(this._container),this},bringToBack:function(){return this._map&&rf(this._container),this},_prepareOpen:function(c){var p=this._source;if(!p._map)return!1;if(p instanceof ks){p=null;var v=this._source._layers;for(var _ in v)if(v[_]._map){p=v[_];break}if(!p)return!1;this._source=p}if(!c)if(p.getCenter)c=p.getCenter();else if(p.getLatLng)c=p.getLatLng();else if(p.getBounds)c=p.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,p=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof p=="string")c.innerHTML=p;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(p)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),p=R(this.options.offset),v=this._getAnchor();this._zoomAnimated?Qr(this._container,c.add(v)):p=p.add(c).add(v);var _=this._containerBottom=-p.y,P=this._containerLeft=-Math.round(this._containerWidth/2)+p.x;this._container.style.bottom=_+"px",this._container.style.left=P+"px"}},_getAnchor:function(){return[0,0]}});jt.include({_initOverlay:function(c,p,v,_){var P=p;return P instanceof c||(P=new c(_).setContent(p)),v&&P.setLatLng(v),P}}),Qo.include({_initOverlay:function(c,p,v,_){var P=v;return P instanceof c?(h(P,_),P._source=this):(P=p&&!_?p:new c(_,this),P.setContent(v)),P}});var Ex=Mi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,Mi.prototype.openOn.call(this,c)},onAdd:function(c){Mi.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Fl||this._source.on("preclick",vc))},onRemove:function(c){Mi.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Fl||this._source.off("preclick",vc))},getEvents:function(){var c=Mi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&
2(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",p=this._container=Bt("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),v=this._wrapper=Bt("div",c+"-content-wrapper",p);if(this._contentNode=Bt("div",c+"-content",v),Yh(p),uT(this._contentNode),wt(p,"contextmenu",vc),this._tipContainer=Bt("div",c+"-tip-container",p),this._tip=Bt("div",c+"-tip",this._tipContainer),this.options.closeButton){var _=this._closeButton=Bt("a",c+"-close-button",p);_.setAttribute("role","button"),_.setAttribute("aria-label","Close popup"),_.href="#close",_.innerHTML='<span aria-hidden="true">×</span>',wt(_,"click",function(P){$n(P),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,p=c.style;p.width="",p.whiteSpace="nowrap";var v=c.offsetWidth;v=Math.min(v,this.options.maxWidth),v=Math.max(v,this.options.minWidth),p.width=v+1+"px",p.whiteSpace="",p.height="";var _=c.offsetHeight,P=this.options.maxHeight,D="leaflet-popup-scrolled";P&&_>P?(p.height=P+"px",Pt(c,D)):Zr(c,D),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),v=this._getAnchor();Qr(this._container,p.add(v))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,p=parseInt(Wh(this._container,"marginBottom"),10)||0,v=this._container.offsetHeight+p,_=this._containerWidth,P=new $(this._containerLeft,-v-this._containerBottom);P._add(gc(this._container));var D=c.layerPointToContainerPoint(P),X=R(this.options.autoPanPadding),se=R(this.options.autoPanPaddingTopLeft||X),ce=R(this.options.autoPanPaddingBottomRight||X),ye=c.getSize(),He=0,ct=0;D.x+_+ce.x>ye.x&&(He=D.x+_-ye.x+ce.x),D.x-He-se.x<0&&(He=D.x-se.x),D.y+v+ce.y>ye.y&&(ct=D.y+v-ye.y+ce.y),D.y-ct-se.y<0&&(ct=D.y-se.y),(He||ct)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([He,ct]))}},_getAnchor:function(){return R(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),_ye=function(c,p){return new Ex(c,p)};jt.mergeOptions({closePopupOnClick:!0}),jt.include({openPopup:function(c,p,v){return this._initOverlay(Ex,c,p,v).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),Qo.include({bindPopup:function(c,p){return this._popup=this._initOverlay(Ex,this._popup,c,p),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof ks||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){yc(c);var p=c.layer||c.target;if(this._popup._source===p&&!(p instanceof Fl)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=p,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Lx=Mi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){Mi.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){Mi.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=Mi.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",p=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Bt("div",p),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+i(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var p,v,_=this._map,P=this._container,D=_.latLngToContainerPoint(_.getCenter()),X=_.layerPointToContainerPoint(c),se=this.options.direction,ce=P.offsetWidth,ye=P.offsetHeight,He=R(this.options.offset),ct=this._getAnchor();se==="top"?(p=ce/2,v=ye):se==="bottom"?(p=ce/2,v=0):se==="center"?(p=ce/2,v=ye/2):se==="right"?(p=0,v=ye/2):se==="left"?
2(p=ce,v=ye/2):X.x<D.x?(se="right",p=0,v=ye/2):(se="left",p=ce+(He.x+ct.x)*2,v=ye/2),c=c.subtract(R(p,v,!0)).add(He).add(ct),Zr(P,"leaflet-tooltip-right"),Zr(P,"leaflet-tooltip-left"),Zr(P,"leaflet-tooltip-top"),Zr(P,"leaflet-tooltip-bottom"),Pt(P,"leaflet-tooltip-"+se),Qr(P,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&go(this._container,c)},_animateZoom:function(c){var p=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(p)},_getAnchor:function(){return R(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Sye=function(c,p){return new Lx(c,p)};jt.include({openTooltip:function(c,p,v){return this._initOverlay(Lx,c,p,v).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),Qo.include({bindTooltip:function(c,p){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Lx,this._tooltip,c,p),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var p=c?"off":"on",v={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?v.add=this._openTooltip:(v.mouseover=this._openTooltip,v.mouseout=this.closeTooltip,v.click=this._openTooltip,this._map?this._addFocusListeners():v.add=this._addFocusListeners),this._tooltip.options.sticky&&(v.mousemove=this._moveTooltip),this[p](v),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof ks||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var p=typeof c.getElement=="function"&&c.getElement();p&&(wt(p,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),wt(p,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var p=typeof c.getElement=="function"&&c.getElement();p&&p.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var p=this;this._map.once("moveend",function(){p._openOnceFlag=!1,p._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var p=c.latlng,v,_;this._tooltip.options.sticky&&c.originalEvent&&(v=this._map.mouseEventToContainerPoint(c.originalEvent),_=this._map.containerPointToLayerPoint(v),p=this._map.layerPointToLatLng(_)),this._tooltip.setLatLng(p)}});var Mz=af.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var p=c&&c.tagName==="DIV"?c:document.createElement("div"),v=this.options;if(v.html instanceof Element?(vx(p),p.appendChild(v.html)):p.innerHTML=v.html!==!1?v.html:"",v.bgPos){var _=R(v.bgPos);p.style.backgroundPosition=-_.x+"px "+-_.y+"px"}return this._setIconStyles(p,"icon"),p},createShadow:function(){return null}});function kye(c){return new Mz(c)}af.Default=tg;var rg=Qo.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ke.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){h(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}
2,beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Ar(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(tf(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(rf(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof $?c:new $(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var p=this.getPane().children,v=-c(-1/0,1/0),_=0,P=p.length,D;_<P;_++)D=p[_].style.zIndex,p[_]!==this._container&&D&&(v=c(v,+D));isFinite(v)&&(this.options.zIndex=v+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ke.ielt9){go(this._container,this.options.opacity);var c=+new Date,p=!1,v=!1;for(var _ in this._tiles){var P=this._tiles[_];if(!(!P.current||!P.loaded)){var D=Math.min(1,(c-P.loaded)/200);go(P.el,D),D<1?p=!0:(P.active?v=!0:this._onOpaqueTile(P),P.active=!0)}}v&&!this._noPrune&&this._pruneTiles(),p&&(G(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=Bt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,p=this.options.maxZoom;if(c!==void 0){for(var v in this._levels)v=Number(v),this._levels[v].el.children.length||v===c?(this._levels[v].el.style.zIndex=p-Math.abs(c-v),this._onUpdateLevel(v)):(Ar(this._levels[v].el),this._removeTilesAtZoom(v),this._onRemoveLevel(v),delete this._levels[v]);var _=this._levels[c],P=this._map;return _||(_=this._levels[c]={},_.el=Bt("div","leaflet-tile-container leaflet-zoom-animated",this._container),_.el.style.zIndex=p,_.origin=P.project(P.unproject(P.getPixelOrigin()),c).round(),_.zoom=c,this._setZoomTransform(_,P.getCenter(),P.getZoom()),u(_.el.offsetWidth),this._onCreateLevel(_)),this._level=_,_}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var c,p,v=this._map.getZoom();if(v>this.options.maxZoom||v<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)p=this._tiles[c],p.retain=p.current;for(c in this._tiles)if(p=this._tiles[c],p.current&&!p.active){var _=p.coords;this._retainParent(_.x,_.y,_.z,_.z-5)||this._retainChildren(_.x,_.y,_.z,_.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var p in this._tiles)this._tiles[p].coords.z===c&&this._removeTile(p)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Ar(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,p,v,_){var P=Math.floor(c/2),D=Math.floor(p/2),X=v-1,se=new $(+P,+D);se.z=+X;var ce=this._tileCoordsToKey(se),ye=this._tiles[ce];return ye&&ye.active?(ye.retain=!0,!0):(ye&&ye.loaded&&(ye.retain=!0),X>_?this._retainParent(P,D,X,_):!1)},_retainChildren:function(c,p,v,_){for(var P=2*c;P<2*c+2;P++)for(var D=2*p;D<2*p+2;D++){var X=new $(P,D);X.z=v+1;var se=this._tileCoordsToKey(X),ce=this._tiles[se];if(ce&&ce.active){ce.retain=!0;continue}else ce&&ce.loaded&&(ce.retain=!0);v+1<_&&this._retainChildren(P,D,v+1,_)}},_resetView:function(c){var p=c&&(c.pinch||c.flyTo);
2this._setView(this._map.getCenter(),this._map.getZoom(),p,p)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var p=this.options;return p.minNativeZoom!==void 0&&c<p.minNativeZoom?p.minNativeZoom:p.maxNativeZoom!==void 0&&p.maxNativeZoom<c?p.maxNativeZoom:c},_setView:function(c,p,v,_){var P=Math.round(p);this.options.maxZoom!==void 0&&P>this.options.maxZoom||this.options.minZoom!==void 0&&P<this.options.minZoom?P=void 0:P=this._clampZoom(P);var D=this.options.updateWhenZooming&&P!==this._tileZoom;(!_||D)&&(this._tileZoom=P,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),P!==void 0&&this._update(c),v||this._pruneTiles(),this._noPrune=!!v),this._setZoomTransforms(c,p)},_setZoomTransforms:function(c,p){for(var v in this._levels)this._setZoomTransform(this._levels[v],c,p)},_setZoomTransform:function(c,p,v){var _=this._map.getZoomScale(v,c.zoom),P=c.origin.multiplyBy(_).subtract(this._map._getNewPixelOrigin(p,v)).round();Ke.any3d?hc(c.el,P,_):Qr(c.el,P)},_resetGrid:function(){var c=this._map,p=c.options.crs,v=this._tileSize=this.getTileSize(),_=this._tileZoom,P=this._map.getPixelWorldBounds(this._tileZoom);P&&(this._globalTileRange=this._pxBoundsToTileRange(P)),this._wrapX=p.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,p.wrapLng[0]],_).x/v.x),Math.ceil(c.project([0,p.wrapLng[1]],_).x/v.y)],this._wrapY=p.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([p.wrapLat[0],0],_).y/v.x),Math.ceil(c.project([p.wrapLat[1],0],_).y/v.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var p=this._map,v=p._animatingZoom?Math.max(p._animateToZoom,p.getZoom()):p.getZoom(),_=p.getZoomScale(v,this._tileZoom),P=p.project(c,this._tileZoom).floor(),D=p.getSize().divideBy(_*2);return new N(P.subtract(D),P.add(D))},_update:function(c){var p=this._map;if(p){var v=this._clampZoom(p.getZoom());if(c===void 0&&(c=p.getCenter()),this._tileZoom!==void 0){var _=this._getTiledPixelBounds(c),P=this._pxBoundsToTileRange(_),D=P.getCenter(),X=[],se=this.options.keepBuffer,ce=new N(P.getBottomLeft().subtract([se,-se]),P.getTopRight().add([se,-se]));if(!(isFinite(P.min.x)&&isFinite(P.min.y)&&isFinite(P.max.x)&&isFinite(P.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ye in this._tiles){var He=this._tiles[ye].coords;(He.z!==this._tileZoom||!ce.contains(new $(He.x,He.y)))&&(this._tiles[ye].current=!1)}if(Math.abs(v-this._tileZoom)>1){this._setView(c,v);return}for(var ct=P.min.y;ct<=P.max.y;ct++)for(var $t=P.min.x;$t<=P.max.x;$t++){var ta=new $($t,ct);if(ta.z=this._tileZoom,!!this._isValidTile(ta)){var Tn=this._tiles[this._tileCoordsToKey(ta)];Tn?Tn.current=!0:X.push(ta)}}if(X.sort(function(Ia,uf){return Ia.distanceTo(D)-uf.distanceTo(D)}),X.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var yo=document.createDocumentFragment();for($t=0;$t<X.length;$t++)this._addTile(X[$t],yo);this._level.el.appendChild(yo)}}}},_isValidTile:function(c){var p=this._map.options.crs;if(!p.infinite){var v=this._globalTileRange;if(!p.wrapLng&&(c.x<v.min.x||c.x>v.max.x)||!p.wrapLat&&(c.y<v.min.y||c.y>v.max.y))return!1}if(!this.options.bounds)return!0;var _=this._tileCoordsToBounds(c);return V(this.options.bounds).overlaps(_)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var p=this._map,v=this.getTileSize(),_=c.scaleBy(v),P=_.add(v),D=p.unproject(_,c.z),X=p.unproject(P,c.z);return[D,X]},_tileCoordsToBounds:function(c){var p=this._tileCoordsToNwSe(c),v=new B(p[0],p[1]);return this.options.noWrap||(v=this._map.wrapLatLngBounds(v)),v},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var p=c.split(":"),v=new $(+p[0],+p[1]);return v.z=+p[2],v},_removeTile:function(c){var p=this._tiles[c];p&&(Ar(p.el),delete this._tiles[c],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){Pt(c,"leaflet-tile");var p=this.getTileSize();c.style.width=p.x+"px",c.style.height=p.y+"px",c.onselectstart=u,c.onmousemove=u,Ke.ielt9&&this.options.opacity<1&&go(c,this.options.opacity)},_addTile:function(c,p){var v=this._getTilePos(c),_=this._tileCoordsToKey(c),P=this.createTile(this._wrapCoords(c),a(this._tileReady,this,c));this._initTile(P),this.createTile.length<2&&q(a(this._tileReady,this,c,null,P)),Qr(P,v),this._tiles[_]={el:P,coords:c,current:!0},p.appendChild(P),this.fire("tileloadstart",{tile:P,coords:c})},_tileReady:function(c,p,v){p&&this.fire("tileerror",{error:p,tile:v,coords:c});var _=this._tileCoordsToKey(c);v=this._tiles[_],v&&(v.loaded=+new Date,this._map._fadeAnimated?(go(v.el,0),G(this._fadeFrame),this._fadeFrame=q(this._updateOpacity,this)):(v.active=!0,this._pruneTiles()),p||(Pt(v.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:v.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ke.ielt9||!this._map._fadeAnimated?q(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var p=new $(this._wrapX?l(c.x,this._wrapX):c.x,this._wrapY?l(c.y,this._wrapY):c.y);return p.z=c.z,p},_pxBoundsToTileRange:function(c){var p=this.getTileSize();return new N(c.min.unscaleBy(p).floor(),c.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function Iye(c){return new rg(c)}var lf=rg.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,p){this._url=c,p=h(this,p),p.detectRetina&&Ke.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),typeof p.subdomains=="string"&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,p){return this._url===c&&p===void 0&&(p=!0),this._url=c,p||this.redraw(),this},createTile:function(c,p){var v=document.createElement("img");return wt(v,"load",a(this._tileOnLoad,this,p,v)),wt(v,"error",a(this._tileOnError,this,p,v)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(v.referrerPolicy=this.options.referrerPolicy),v.alt="",v.src=this.getTileUrl(c),v},getTileUrl:function(c){var p={r:Ke.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var v=this._globalTileRange.max.y-c.y;this.options.tms&&(p.y=v),p["-y"]=v}return b(this._url,r(p,this.options))},_tileOnLoad:function(c,p){Ke.ielt9?setTimeout(a(c,this,null,p),0):c(null,p)},_tileOnError:function(c,p,v){var _=this.options.errorTileUrl;_&&p.getAttribute("src")!==_&&(p.src=_),c(v,p)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,p=this.options.maxZoom,v=this.options.zoomReverse,_=this.options.zoomOffset;return v&&(c=p-c),c+_},_getSubdomain:function(c){var p=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var c,p;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(p=this._tiles[c].el,p.onload=u,p.onerror=u,!p.complete)){p.src=x;var v=this._tiles[c].coords;Ar(p),delete this._tiles[c],this.fire("tileabort",{tile:p,coords:v})}},_removeTile:function(c){var p=this._tiles[c];if(p)return p.el.setAttribute("src",x),rg.prototype._removeTile.call(this,c)},_tileReady:function(c,p,v){if(!(!this._map||v&&v.getAttribute("src")===x))return rg.prototype._tileReady.call(this,c,p,v)}});function Rz(c,p){return new lf(c,p)}var Dz=lf.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,p){this._url=c;var v=r({},this.defaultWmsParams);for(var _ in p)_ in this.options||(v[_]=p[_]);p=h(this,p);var P=p.detectRetina&&Ke.retina?2:1,D=this.getTileSize();v.width=D.x*P,v.height=D.y*P,this.wmsParams=v},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var p=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[p]=this._crs.code,lf.prototype.onAdd.call(this,c)},getTileUrl:function(c){var p=this._tileCoordsToNwSe(c),v=this._crs,_=U(v.project(p[0]),v.project(p[1])),P=_.min,D=_.max,X=(this._wmsVersion>=1.3&&this._crs===Pz?[P.y,P.x,D.y,D.x]:[P.x,P.y,D.x,D.y]).join(","),se=lf.prototype.getTileUrl.call(this,c);return se+g(this.wmsParams,se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+X},setParams:function(c,p){return r(this.wmsParams,c),p||this.redraw(),this}});function Tye(c,p){return new Dz(c,p)}
2lf.WMS=Dz,Rz.wms=Tye;var Cs=Qo.extend({options:{padding:.1},initialize:function(c){h(this,c),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Pt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,p){var v=this._map.getZoomScale(p,this._zoom),_=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,p),D=_.multiplyBy(-v).add(P).subtract(this._map._getNewPixelOrigin(c,p));Ke.any3d?hc(this._container,D,v):Qr(this._container,D)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,p=this._map.getSize(),v=this._map.containerPointToLayerPoint(p.multiplyBy(-c)).round();this._bounds=new N(v,v.add(p.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Nz=Cs.extend({options:{tolerance:0},getEvents:function(){var c=Cs.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Cs.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");wt(c,"mousemove",this._onMouseMove,this),wt(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),wt(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){G(this._redrawRequest),delete this._ctx,Ar(this._container),hr(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var p in this._layers)c=this._layers[p],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Cs.prototype._update.call(this);var c=this._bounds,p=this._container,v=c.getSize(),_=Ke.retina?2:1;Qr(p,c.min),p.width=_*v.x,p.height=_*v.y,p.style.width=v.x+"px",p.style.height=v.y+"px",Ke.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){Cs.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[i(c)]=c;var p=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var p=c._order,v=p.next,_=p.prev;v?v.prev=_:this._drawLast=_,_?_.next=v:this._drawFirst=v,delete c._order,delete this._layers[i(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var p=c.options.dashArray.split(/[, ]+/),v=[],_,P;for(P=0;P<p.length;P++){if(_=Number(p[P]),isNaN(_))return;v.push(_)}c.options._dashArray=v}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||q(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var p=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(c._pxBounds.min.subtract([p,p])),this._redrawBounds.extend(c._pxBounds.max.add([p,p]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var p=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,p.x,p.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore(
2)},_draw:function(){var c,p=this._redrawBounds;if(this._ctx.save(),p){var v=p.getSize();this._ctx.beginPath(),this._ctx.rect(p.min.x,p.min.y,v.x,v.y),this._ctx.clip()}this._drawing=!0;for(var _=this._drawFirst;_;_=_.next)c=_.layer,(!p||c._pxBounds&&c._pxBounds.intersects(p))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,p){if(this._drawing){var v,_,P,D,X=c._parts,se=X.length,ce=this._ctx;if(se){for(ce.beginPath(),v=0;v<se;v++){for(_=0,P=X[v].length;_<P;_++)D=X[v][_],ce[_?"lineTo":"moveTo"](D.x,D.y);p&&ce.closePath()}this._fillStroke(ce,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var p=c._point,v=this._ctx,_=Math.max(Math.round(c._radius),1),P=(Math.max(Math.round(c._radiusY),1)||_)/_;P!==1&&(v.save(),v.scale(1,P)),v.beginPath(),v.arc(p.x,p.y/P,_,0,Math.PI*2,!1),P!==1&&v.restore(),this._fillStroke(v,c)}},_fillStroke:function(c,p){var v=p.options;v.fill&&(c.globalAlpha=v.fillOpacity,c.fillStyle=v.fillColor||v.color,c.fill(v.fillRule||"evenodd")),v.stroke&&v.weight!==0&&(c.setLineDash&&c.setLineDash(p.options&&p.options._dashArray||[]),c.globalAlpha=v.opacity,c.lineWidth=v.weight,c.strokeStyle=v.color,c.lineCap=v.lineCap,c.lineJoin=v.lineJoin,c.stroke())},_onClick:function(c){for(var p=this._map.mouseEventToLayerPoint(c),v,_,P=this._drawFirst;P;P=P.next)v=P.layer,v.options.interactive&&v._containsPoint(p)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(v))&&(_=v);this._fireEvent(_?[_]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var p=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,p)}},_handleMouseOut:function(c){var p=this._hoveredLayer;p&&(Zr(this._container,"leaflet-interactive"),this._fireEvent([p],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,p){if(!this._mouseHoverThrottled){for(var v,_,P=this._drawFirst;P;P=P.next)v=P.layer,v.options.interactive&&v._containsPoint(p)&&(_=v);_!==this._hoveredLayer&&(this._handleMouseOut(c),_&&(Pt(this._container,"leaflet-interactive"),this._fireEvent([_],c,"mouseover"),this._hoveredLayer=_)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,p,v){this._map._fireDOMEvent(p,v||p.type,c)},_bringToFront:function(c){var p=c._order;if(p){var v=p.next,_=p.prev;if(v)v.prev=_;else return;_?_.next=v:v&&(this._drawFirst=v),p.prev=this._drawLast,this._drawLast.next=p,p.next=null,this._drawLast=p,this._requestRedraw(c)}},_bringToBack:function(c){var p=c._order;if(p){var v=p.next,_=p.prev;if(_)_.next=v;else return;v?v.prev=_:_&&(this._drawLast=_),p.prev=null,p.next=this._drawFirst,this._drawFirst.prev=p,this._drawFirst=p,this._requestRedraw(c)}}});function zz(c){return Ke.canvas?new Nz(c):null}var ng=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Cye={_initContainer:function(){this._container=Bt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Cs.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var p=c._container=ng("shape");Pt(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",c._path=ng("path"),p.appendChild(c._path),this._updateStyle(c),this._layers[i(c)]=c},_addPath:function(c){var p=c._container;this._container.appendChild(p),c.options.interactive&&c.addInteractiveTarget(p)},_removePath:function(c){var p=c._container;Ar(p),c.removeInteractiveTarget(p),delete this._layers[i(c)]},_updateStyle:function(c){var p=c._stroke,v=c._fill,_=c.options,P=c._container;P.stroked=!!_.stroke,P.filled=!!_.fill,_.stroke?(p||(p=c._stroke=ng("stroke")),P.appendChild(p),p.weight=_.weight+"px",p.color=_.color,p.opacity=_.opacity,_.dashArray?p.dashStyle=w(_.dashArray)?_.dashArray.join(" "):_.dashArray.replace(/( *, *)/g," "):p.dashStyle="",p.endcap=_.lineCap.replace("butt","flat"),p.joinstyle=_.lineJoin):p&&(P.removeChild(p),c._stroke=null),_.fill?(v||(v=c._fill=ng("fill")),P.appendChild(v),v.color=_.fillColor||_.color,v.opacity=_.fillOpacity):v&&(P.removeChild(v),c._fill=null)},_updateCircle:function(c){var p=c._point.round(),v=Math.round(c._radius),_=Math.round(c._radiusY||v);this._setPath(c,c._empty()?"M0 0":"AL "+p.x+","+p.y+" "+v+","+_+" 0,"+65535*360)},_setPath:function(c,p){c._path.v=p},_bringToFront:function(c){tf(c._container)},_bringToBack:function(c){rf(c._container)}},$x=Ke.vml?ng:Mt,ag=Cs.extend({_initContainer:function(){this._container=$x("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$x("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ar(this._container),hr(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Cs.prototype._update.call(this);var c=this._bounds,p=c.getSize(),v=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,v.setAttribute("width",p.x),v.setAttribute("height",p.y)),Qr
2(v,c.min),v.setAttribute("viewBox",[c.min.x,c.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(c){var p=c._path=$x("path");c.options.className&&Pt(p,c.options.className),c.options.interactive&&Pt(p,"leaflet-interactive"),this._updateStyle(c),this._layers[i(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Ar(c._path),c.removeInteractiveTarget(c._path),delete this._layers[i(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var p=c._path,v=c.options;p&&(v.stroke?(p.setAttribute("stroke",v.color),p.setAttribute("stroke-opacity",v.opacity),p.setAttribute("stroke-width",v.weight),p.setAttribute("stroke-linecap",v.lineCap),p.setAttribute("stroke-linejoin",v.lineJoin),v.dashArray?p.setAttribute("stroke-dasharray",v.dashArray):p.removeAttribute("stroke-dasharray"),v.dashOffset?p.setAttribute("stroke-dashoffset",v.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),v.fill?(p.setAttribute("fill",v.fillColor||v.color),p.setAttribute("fill-opacity",v.fillOpacity),p.setAttribute("fill-rule",v.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(c,p){this._setPath(c,at(c._parts,p))},_updateCircle:function(c){var p=c._point,v=Math.max(Math.round(c._radius),1),_=Math.max(Math.round(c._radiusY),1)||v,P="a"+v+","+_+" 0 1,0 ",D=c._empty()?"M0 0":"M"+(p.x-v)+","+p.y+P+v*2+",0 "+P+-v*2+",0 ";this._setPath(c,D)},_setPath:function(c,p){c._path.setAttribute("d",p)},_bringToFront:function(c){tf(c._path)},_bringToBack:function(c){rf(c._path)}});Ke.vml&&ag.include(Cye);function jz(c){return Ke.svg||Ke.vml?new ag(c):null}jt.include({getRenderer:function(c){var p=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var p=this._paneRenderers[c];return p===void 0&&(p=this._createRenderer({pane:c}),this._paneRenderers[c]=p),p},_createRenderer:function(c){return this.options.preferCanvas&&zz(c)||jz(c)}});var Bz=of.extend({initialize:function(c,p){of.prototype.initialize.call(this,this._boundsToLatLngs(c),p)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))}
vendor: 5,529 bytes, line 2
2,_boundsToLatLngs:function(c){return c=V(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function Pye(c,p){return new Bz(c,p)}ag.create=$x,ag.pointsToPath=at,Ts.geometryToLayer=Ix,Ts.coordsToLatLng=yT,Ts.coordsToLatLngs=Tx,Ts.latLngToCoords=bT,Ts.latLngsToCoords=Cx,Ts.getFeature=sf,Ts.asFeature=Px,jt.mergeOptions({boxZoom:!0});var Fz=Oi.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){wt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){hr(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ar(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Kh(),tT(),this._startPoint=this._map.mouseEventToContainerPoint(c),wt(document,{contextmenu:yc,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=Bt("div","leaflet-zoom-box",this._container),Pt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var p=new N(this._point,this._startPoint),v=p.getSize();Qr(this._box,p.min),this._box.style.width=v.x+"px",this._box.style.height=v.y+"px"},_finish:function(){this._moved&&(Ar(this._box),Zr(this._container,"leaflet-crosshair")),Jh(),rT(),hr(document,{contextmenu:yc,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var p=new B(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});jt.addInitHook("addHandler","boxZoom",Fz),jt.mergeOptions({doubleClickZoom:!0});var Uz=Oi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var p=this._map,v=p.getZoom(),_=p.options.zoomDelta,P=c.originalEvent.shiftKey?v-_:v+_;p.options.doubleClickZoom==="center"?p.setZoom(P):p.setZoomAround(c.containerPoint,P)}});jt.addInitHook("addHandler","doubleClickZoom",Uz),jt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var qz=Oi.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new Bl(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}Pt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Zr(this._map._container,"leaflet-grab"),Zr(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=V(this._map.options.maxBounds);this._offsetLimit=U(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var p=this._lastTime=+new Date,v=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(v),this._times.push(p),this._prunePositions(p)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,p){return c-(c-p)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;c.x<p.min.x&&(c.x=this._viscousLimit(c.x,p.min.x)),c.y<p.min.y&&(c.y=this._viscousLimit(c.y,p.min.y)),c.x>p.max.x&&(c.x=this._viscousLimit(c.x,p.max.x)),c.y>p.max.y&&(c.y=this._viscousLimit(c.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,p=Math.round(c/2),v=this._initialWorldOffset,_=this._draggable._newPos.x,P=(_-p+v)%c+p-v,D=(_+p+v)%c-
2p-v,X=Math.abs(P+v)<Math.abs(D+v)?P:D;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=X},_onDragEnd:function(c){var p=this._map,v=p.options,_=!v.inertia||c.noInertia||this._times.length<2;if(p.fire("dragend",c),_)p.fire("moveend");else{this._prunePositions(+new Date);var P=this._lastPos.subtract(this._positions[0]),D=(this._lastTime-this._times[0])/1e3,X=v.easeLinearity,se=P.multiplyBy(X/D),ce=se.distanceTo([0,0]),ye=Math.min(v.inertiaMaxSpeed,ce),He=se.multiplyBy(ye/ce),ct=ye/(v.inertiaDeceleration*X),$t=He.multiplyBy(-ct/2).round();!$t.x&&!$t.y?p.fire("moveend"):($t=p._limitOffset($t,p.options.maxBounds),q(function(){p.panBy($t,{duration:ct,easeLinearity:X,noMoveStart:!0,animate:!0})}))}}});jt.addInitHook("addHandler","dragging",qz),jt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Vz=Oi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),wt(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),hr(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,p=document.documentElement,v=c.scrollTop||p.scrollTop,_=c.scrollLeft||p.scrollLeft;this._map._container.focus(),window.scrollTo(_,v)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var p=this._panKeys={},v=this.keyCodes,_,P;for(_=0,P=v.left.length;_<P;_++)p[v.left[_]]=[-1*c,0];for(_=0,P=v.right.length;_<P;_++)p[v.right[_]]=[c,0];for(_=0,P=v.down.length;_<P;_++)p[v.down[_]]=[0,c];for(_=0,P=v.up.length;_<P;_++)p[v.up[_]]=[0,-1*c]},_setZoomDelta:function(c){var p=this._zoomKeys={},v=this.keyCodes,_,P;for(_=0,P=v.zoomIn.length;_<P;_++)p[v.zoomIn[_]]=c;for(_=0,P=v.zoomOut.length;_<P;_++)p[v.zoomOut[_]]=-c},_addHooks:function(){wt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){hr(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var p=c.keyCode,v=this._map,_;if(p in this._panKeys){if(!v._panAnim||!v._panAnim._inProgress)if(_=this._panKeys[p],c.shiftKey&&(_=R(_).multiplyBy(3)),v.options.maxBounds&&(_=v._limitOffset(R(_),v.options.maxBounds)),v.options.worldCopyJump){var P=v.wrapLatLng(v.unproject(v.project(v.getCenter()).add(_)));v.panTo(P)}else v.panBy(_)}else if(p in this._zoomKeys)v.setZoom(v.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[p]);else if(p===27&&v._popup&&v._popup.options.closeOnEscapeKey)v.closePopup();else return;yc(c)}}});jt.addInitHook("addHandler","keyboard",Vz),jt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Zz=Oi.extend({addHooks:function(){wt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){hr(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var p=hz(c),v=this._map.options.wheelDebounceTime;this._delta+=p,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var _=Math.max(v-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),_),yc(c)},_performZoom:function(){var c=this._map,p=c.getZoom(),v=this._map.options.zoomSnap||0;c._stop();var _=this._delta/(this._map.options.wheelPxPerZoomLevel*4),P=4*Math.log(2/(1+Math.exp(-Math.abs(_))))/Math.LN2,D=v?Math.ceil(P/v)*v:P,X=c._limitZoom(p+(this._delta>0?D:-D))-p;this._delta=0,this._startTime=null,X&&(c.options.scrollWheelZoom==="center"?c.setZoom(p+X):c.setZoomAround(this._lastMousePos,p+X))}});jt.addInitHook("addHandler","scrollWheelZoom",Zz);var Aye=600;jt.mergeOptions({tapHold:Ke.touchNative&&Ke.safari&&Ke.mobile,tapTolerance:15});var Hz=Oi.extend({addHooks:function(){wt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){hr(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var p=c.touches[0];this._startPos=this._newPos=new $(p.clientX,p.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(wt(document,"touchend",$n),wt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),Aye),wt(document,"touchend touchcancel contextmenu",this._cancel,this),wt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){hr(document,"touchend",$n),hr(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),hr(document,"touchend touchcancel contextmenu",this._cancel,this),hr(document,"touchmove",this._onMove,this)},_onMove:function(c){var p=c.touches[0];this._newPos=new $(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,p){var v=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});v._simulated=!0,p.target.dispatchEvent(v)}});jt.addInitHook("addHandler","tapHold",Hz),jt.mergeOptions({touchZoom:Ke.touch,bounceAtZoomLimits:!0});var Gz=Oi.extend({addHooks:function(){Pt(this._map._container,"leaflet-touch-zoom"),wt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Zr(this._map._container,"leaflet-touch-zoom"),hr(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var p=this._map;if(!(!c.touches||c.touches.length!==2||p._animatingZoom||this._zooming)){var v=p.mouseEventToContainerPoint(c.touches[0]),_=p.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),p.options.touchZoom!=="center"&&(this._pinchStartLatLng=p.containerPointToLatLng(v.add(_)._divideBy(2))),this._startDist=v.distanceTo(_),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),wt(document,"touchmove",this._onTouchMove,this),wt(document,"touchend touchcancel",this._onTouchEnd,this),$n(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var p=this._map,v=p.mouseEventToContainerPoint(c.touches[0]),_=p.mouseEventToContainerPoint(c.touches[1]),P=v.distanceTo(_)/this._startDist;if(this._zoom=p.getScaleZoom(P,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoom<p.getMinZoom()&&P<1||this._zoom>p.getMaxZoom()&&P>1)&&(this._zoom=p._limitZoom(this._zoom)),p.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var D=v._add(_)._divideBy(2)._subtract(this._centerPoint);if(P===1&&D.x===0&&D.y===0)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(D),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),G(this._animRequest);var X=a(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=q(X,this,!0),$n(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,G(this._animRequest),hr(document,"touchmove",this._onTouchMove,this),hr(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});jt.addInitHook("addHandler","touchZoom",Gz),jt.BoxZoom=Fz,jt.DoubleClickZoom=Uz,jt.Drag=qz,jt.Keyboard=Vz,jt.ScrollWheelZoom=Zz,jt.TapHold=Hz,jt.TouchZoom=Gz,e.Bounds=N,e.Browser=Ke,e.CRS=ue,e.Canvas=Nz,e.Circle=vT,e.CircleMarker=kx,e.Class=Y,e.Control=Yo,e.DivIcon=Mz,e.DivOverlay=Mi,e.DomEvent=Gve,e.DomUtil=Zve,e.Draggable=Bl,e.Evented=oe,e.FeatureGroup=ks,e.GeoJSON=Ts,e.GridLayer=rg,e.Handler=Oi,e.Icon=af,e.ImageOverlay=Ax,e.LatLng=Z,e.LatLngBounds=B,e.Layer=Qo,e.LayerGroup=nf,e.LineUtil=iye,e.Map=jt,e.Marker=Sx,e.Mixin=eye,e.Path=Fl,e.Point=$,e.PolyUtil=tye,e.Polygon=of,e.Polyline=Is,e.Popup=Ex,e.PosAnimation=gz,e.Projection=sye,e.Rectangle=Bz,e.Renderer=Cs,e.SVG=ag,e.SVGOverlay=Oz,e.TileLayer=lf,e.Tooltip=Lx,e.Transformation=me,e.Util=J,e.VideoOverlay=$z,e.bind=a,e.bounds=U,e.canvas=zz,e.circle=hye,e.circleMarker=mye,e.control=Qh,e.divIcon=kye,e.extend=r,e.featureGroup=dye,e.geoJSON=Lz,e.geoJson=yye,e.gridLayer=Iye,e.icon=fye,e.imageOverlay=bye,e.latLng=Q,e.latLngBounds=V,e.layerGroup=cye,e.map=Wve,e.marker=pye,e.point=R,e.polygon=vye,e.polyline=gye,e.popup=_ye,e.rectangle=Pye,e.setOptions=h,e.stamp=i,e.svg=jz,e.svgOverlay=wye,e.tileLayer=Rz,e.tooltip=Sye,e.transformation=Ze,e.version=t,e.videoOverlay=xye;var Eye=window.L;e.noConflict=function(){return window.L=Eye,this},window.L=e}))});var _j=ee(IT=>{"use strict";var wj=Mx();IT.createRoot=wj.createRoot,IT.hydrateRoot=wj.hydrateRoot;var xnt});var oa=ee((Qut,iF)=>{"use strict";var h_e=Array.isArray;iF.exports=h_e});var wC=ee((ect,sF)=>{"use strict";var g_e=typeof global=="object"&&global&&global.Object===Object&&global;sF.exports=g_e});var ai=ee((tct,lF)=>{"use strict";var v_e=wC(),y_e=typeof self=="object"&&self&&self.Object===Object&&self,b_e=v_e||y_e||Function("return this")();lF.exports=b_e});var Lf=ee((rct,uF)=>{"use strict";var x_e=ai(),w_e=x_e.Symbol;uF.exports=w_e});var pF=ee((nct,fF)=>{"use strict";var cF=Lf(),dF=Object.prototype,__e=dF.hasOwnProperty,S_e=dF.toString,Ng=cF?cF.toStringTag:void 0;function k_e(e){var t=__e.call(e,Ng),r=e[Ng];try{e[Ng]=void 0;var n=!0}catch{}var a=S_e.call(e);return n&&(t?e[Ng]=r:delete e[Ng]),a}fF.exports=k_e});var hF=ee((act,mF)=>{"use strict";var I_e=Object.prototype,T_e=I_e.toString;function C_e(e){return T_e.call(e)}mF.exports=C_e});var Bi=ee((oct,yF)=>{"use strict";var gF=Lf(),P_e=pF(),A_e=hF(),E_e="[object Null]",L_e="[object Undef
2ined]",vF=gF?gF.toStringTag:void 0;function $_e(e){return e==null?e===void 0?L_e:E_e:vF&&vF in Object(e)?P_e(e):A_e(e)}yF.exports=$_e});var Fi=ee((ict,bF)=>{"use strict";function O_e(e){return e!=null&&typeof e=="object"}bF.exports=O_e});var kc=ee((sct,xF)=>{"use strict";var M_e=Bi(),R_e=Fi(),D_e="[object Symbol]";function N_e(e){return typeof e=="symbol"||R_e(e)&&M_e(e)==D_e}xF.exports=N_e});var h1=ee((lct,wF)=>{"use strict";var z_e=oa(),j_e=kc(),B_e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F_e=/^\w*$/;function U_e(e,t){if(z_e(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||j_e(e)?!0:F_e.test(e)||!B_e.test(e)||t!=null&&e in Object(t)}wF.exports=U_e});var wo=ee((uct,_F)=>{"use strict";function q_e(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}_F.exports=q_e});var an=ee((cct,SF)=>{"use strict";var V_e=Bi(),Z_e=wo(),H_e="[object AsyncFunction]",G_e="[object Function]",W_e="[object GeneratorFunction]",K_e="[object Proxy]";function J_e(e){if(!Z_e(e))return!1;var t=V_e(e);return t==G_e||t==W_e||t==H_e||t==K_e}SF.exports=J_e});var IF=ee((dct,kF)=>{"use strict";var X_e=ai(),Y_e=X_e["__core-js_shared__"];kF.exports=Y_e});var PF=ee((fct,CF)=>{"use strict";var _C=IF(),TF=(function(){var e=/[^.]+$/.exec(_C&&_C.keys&&_C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Q_e(e){return!!TF&&TF in e}CF.exports=Q_e});var SC=ee((pct,AF)=>{"use strict";var eSe=Function.prototype,tSe=eSe.toString;function rSe(e){if(e!=null){try{return tSe.call(e)}catch{}try{return e+""}catch{}}return""}AF.exports=rSe});var LF=ee((mct,EF)=>{"use strict";var nSe=an(),aSe=PF(),oSe=wo(),iSe=SC(),sSe=/[\\^$.*+?()[\]{}|]/g,lSe=/^\[object .+?Constructor\]$/,uSe=Function.prototype,cSe=Object.prototype,dSe=uSe.toString,fSe=cSe.hasOwnProperty,pSe=RegExp("^"+dSe.call(fSe).replace(sSe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mSe(e){if(!oSe(e)||aSe(e))return!1;var t=nSe(e)?pSe:lSe;return t.test(iSe(e))}EF.exports=mSe});var OF=ee((hct,$F)=>{"use strict";function hSe(e,t){return e?.[t]}$F.exports=hSe});var tu=ee((gct,MF)=>{"use strict";var gSe=LF(),vSe=OF();function ySe(e,t){var r=vSe(e,t);return gSe(r)?r:void 0}MF.exports=ySe});var zg=ee((vct,RF)=>{"use strict";var bSe=tu(),xSe=bSe(Object,"create");RF.exports=xSe});var zF=ee((yct,NF)=>{"use strict";var DF=zg();function wSe(){this.__data__=DF?DF(null):{},this.size=0}NF.exports=wSe});var BF=ee((bct,jF)=>{"use strict";function _Se(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}jF.exports=_Se});var UF=ee((xct,FF)=>{"use strict";var SSe=zg(),kSe="__lodash_hash_undefined__",ISe=Object.prototype,TSe=ISe.hasOwnProperty;function CSe(e){var t=this.__data__;if(SSe){var r=t[e];return r===kSe?void 0:r}return TSe.call(t,e)?t[e]:void 0}FF.exports=CSe});var VF=ee((wct,qF)=>{"use strict";var PSe=zg(),ASe=Object.prototype,ESe=ASe.hasOwnProperty;function LSe(e){var t=this.__data__;return PSe?t[e]!==void 0:ESe.call(t,e)}qF.exports=LSe});var HF=ee((_ct,ZF)=>{"use strict";var $Se=zg(),OSe="__lodash_hash_undefined__";function MSe(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$Se&&t===void 0?OSe:t,this}ZF.exports=MSe});var WF=ee((Sct,GF)=>{"use strict";var RSe=zF(),DSe=BF(),NSe=UF(),zSe=VF(),jSe=HF();function $f(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}$f.prototype.clear=RSe;$f.prototype.delete=DSe;$f.prototype.get=NSe;$f.prototype.has=zSe;$f.prototype.set=jSe;GF.exports=$f});var JF=ee((kct,KF)=>{"use strict";function BSe(){this.__data__=[],this.size=0}KF.exports=BSe});var g1=ee((Ict,XF)=>{"use strict";function FSe(e,t){return e===t||e!==e&&t!==t}XF.exports=FSe});var jg=ee((Tct,YF)=>{"use strict";var USe=g1();function qSe(e,t){for(var r=e.length;r--;)if(USe(e[r][0],t))return r;return-1}YF.exports=qSe});var eU=ee((Cct,QF)=>{"use strict";var VSe=jg(),ZSe=Array.prototype,HSe=ZSe.splice;function GSe(e){var t=this.__data__,r=VSe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():HSe.call(t,r,1),--this.size,!0}QF.exports=GSe});var rU=ee((Pct,tU)=>{"use strict";var WSe=jg();function KSe(e){var t=this.__data__,r=WSe(t,e);return r<0?void 0:t[r][1]}tU.exports=KSe});var aU=ee((Act,nU)=>{"use strict";var JSe=jg();function XSe(e){return JSe(this.__data__,e)>-1}nU.exports=XSe});var iU=ee((Ect,oU)=>{"use strict";var YSe=jg();function QSe(e,t){var r=this.__data__,n=YSe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}oU.exports=QSe});var Bg=ee((Lct,sU)=>{"use strict";var e2e=JF(),t2e=eU(),r2e=rU(),n2e=aU(),a2e=iU();function Of(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Of.prototype.clear=e2e;Of.prototype.delete=t2e;Of.prototype.get=r2e;Of.prototype.has=n2e;Of.prototype.set=a2e;sU.exports=Of});var v1=ee(($ct,lU)=>{"use strict";var o2e=tu(),i2e=ai(),s2e=o2e(i2e,"Map");lU.exports=s2e});var dU=ee((Oct,cU)=>{"use strict";var uU=WF(),l2e=Bg(),u2e=v1();function c2e(){this.size=0,this.__data__={hash:new uU,map:new(u2e||l2e),string:new uU}}cU.exports=c2e});var pU=ee((Mct,fU)=>{"use strict";function d2e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}fU.exports=d2e});var Fg=ee((Rct,mU)=>{"use strict";var f2e=pU();function p2e(e,t){var r=e.__data__;return f2e(t)?r[typeof t=="string"?"string":"hash"]:r.map}mU.exports=p2e});var gU=ee((Dct,hU)=>{"use strict";var m2e=Fg();function h2e(e){var t=m2e(this,e).delete(e);return this.size-=t?1:0,t}hU.exports=h2e});var yU=ee((Nct,vU)=>{"use strict";var g2e=Fg();function v2e(e){return g2e(this,e).get(e)}vU.exports=v2e});var xU=ee((zct,bU)=>{"use strict";var y2e=Fg();function b2e(e){return y2e(this,e).has(e)}bU.exports=b2e});var _U=ee((jct,wU)=>{"use strict";var x2e=Fg();function w2e(e,t){var r=x2e(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}wU.exports=w2e});var y1=ee((Bct,SU)=>{"use strict";
vendor: 1,052 bytes, line 2
2var _2e=dU(),S2e=gU(),k2e=yU(),I2e=xU(),T2e=_U();function Mf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mf.prototype.clear=_2e;Mf.prototype.delete=S2e;Mf.prototype.get=k2e;Mf.prototype.has=I2e;Mf.prototype.set=T2e;SU.exports=Mf});var IC=ee((Fct,IU)=>{"use strict";var kU=y1(),C2e="Expected a function";function kC(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(C2e);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i};return r.cache=new(kC.Cache||kU),r}kC.Cache=kU;IU.exports=kC});var CU=ee((Uct,TU)=>{"use strict";var P2e=IC(),A2e=500;function E2e(e){var t=P2e(e,function(n){return r.size===A2e&&r.clear(),n}),r=t.cache;return t}TU.exports=E2e});var AU=ee((qct,PU)=>{"use strict";var L2e=CU(),$2e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O2e=/\\(\\)?/g,M2e=L2e(function(e){var t=[];return e.charCodeAt(0)===46&&t.pu
2sh(""),e.replace($2e,function(r,n,a,o){t.push(a?o.replace(O2e,"$1"):n||r)}),t});PU.exports=M2e});var b1=ee((Vct,EU)=>{"use strict";function R2e(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}EU.exports=R2e});var DU=ee((Zct,RU)=>{"use strict";var LU=Lf(),D2e=b1(),N2e=oa(),z2e=kc(),j2e=1/0,$U=LU?LU.prototype:void 0,OU=$U?$U.toString:void 0;function MU(e){if(typeof e=="string")return e;if(N2e(e))return D2e(e,MU)+"";if(z2e(e))return OU?OU.call(e):"";var t=e+"";return t=="0"&&1/e==-j2e?"-0":t}RU.exports=MU});var TC=ee((Hct,NU)=>{"use strict";var B2e=DU();function F2e(e){return e==null?"":B2e(e)}NU.exports=F2e});var CC=ee((Gct,zU)=>{"use strict";var U2e=oa(),q2e=h1(),V2e=AU(),Z2e=TC();function H2e(e,t){return U2e(e)?e:q2e(e,t)?[e]:V2e(Z2e(e))}zU.exports=H2e});var Ug=ee((Wct,jU)=>{"use strict";var G2e=kc(),W2e=1/0;function K2e(e){if(typeof e=="string"||G2e(e))return e;var t=e+"";return t=="0"&&1/e==-W2e?"-0":t}jU.exports=K2e});var x1=ee((Kct,BU)=>{"use strict";var J2e=CC(),X2e=Ug();function Y2e(e,t){t=J2e(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[X2e(t[r++])];return r&&r==n?e:void 0}BU.exports=Y2e});var Ic=ee((Jct,FU)=>{"use strict";var Q2e=x1();function e4e(e,t,r){var n=e==null?void 0:Q2e(e,t);return n===void 0?r:n}FU.exports=e4e});var oi=ee((Xct,UU)=>{"use strict";function t4e(e){return e==null}UU.exports=t4e});var w1=ee((Yct,qU)=>{"use strict";var r4e=Bi(),n4e=oa(),a4e=Fi(),o4e="[object String]";function i4e(e){return typeof e=="string"||!n4e(e)&&a4e(e)&&r4e(e)==o4e}qU.exports=i4e});var ZU=ee(er=>{"use strict";var PC=Symbol.for("react.element"),AC=Symbol.for("react.portal"),_1=Symbol.for("react.fragment"),S1=Symbol.for("react.strict_mode"),k1=Symbol.for("react.profiler"),I1=Symbol.for("react.provider"),T1=Symbol.for("react.context"),s4e=Symbol.for("react.server_context"),C1=Symbol.for("react.forward_ref"),P1=Symbol.for("react.suspense"),A1=Symbol.for("react.suspense_list"),E1=Symbol.for("react.memo"),L1=Symbol.for("react.lazy"),l4e=Symbol.for("react.offscreen"),VU;VU=Symbol.for("react.module.reference");function _o(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case PC:switch(e=e.type,e){case _1:case k1:case S1:case P1:case A1:return e;default:switch(e=e&&e.$$typeof,e){case s4e:case T1:case C1:case L1:case E1:case I1:return e;default:return t}}case AC:return t}}}er.ContextConsumer=T1;er.ContextProvider=I1;er.Element=PC;er.ForwardRef=C1;er.Fragment=_1;er.Lazy=L1;er.Memo=E1;er.Portal=AC;er.Profiler=k1;er.StrictMode=S1;er.Suspense=P1;er.SuspenseList=A1;er.isAsyncMode=function(){return!1};er.isConcurrentMode=function(){return!1};er.isContextConsumer=function(e){return _o(e)===T1};er.isContextProvider=function(e){return _o(e)===I1};er.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===PC};er.isForwardRef=function(e){return _o(e)===C1};er.isFragment=function(e){return _o(e)===_1};er.isLazy=function(e){return _o(e)===L1};er.isMemo=function(e){return _o(e)===E1};er.isPortal=function(e){return _o(e)===AC};er.isProfiler=function(e){return _o(e)===k1};er.isStrictMode=function(e){return _o(e)===S1};er.isSuspense=function(e){return _o(e)===P1};er.isSuspenseList=function(e){return _o(e)===A1};er.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_1||e===k1||e===S1||e===P1||e===A1||e===l4e||typeof e=="object"&&e!==null&&(e.$$typeof===L1||e.$$typeof===E1||e.$$typeof===I1||e.$$typeof===T1||e.$$typeof===C1||e.$$typeof===VU||e.getModuleId!==void 0)};er.typeOf=_o});var GU=ee((edt,HU)=>{"use strict";HU.exports=ZU()});var EC=ee((tdt,WU)=>{"use strict";var u4e=Bi(),c4e=Fi(),d4e="[object Number]";function f4e(e){return typeof e=="number"||c4e(e)&&u4e(e)==d4e}WU.exports=f4e});var LC=ee((rdt,KU)=>{"use strict";var p4e=EC();function m4e(e){return p4e(e)&&e!=+e}KU.exports=m4e});var gq=ee((vdt,hq)=>{"use strict";function L4e(e,t,r){var n=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var o=Array(a);++n<a;)o[n]=e[n+t];return o}hq.exports=L4e});var yq=ee((ydt,vq)=>{"use strict";var $4e=gq();function O4e(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:$4e(e,t,r)}vq.exports=O4e});var qC=ee((bdt,bq)=>{"use strict";var M4e="\\ud800-\\udfff",R4e="\\u0300-\\u036f",D4e="\\ufe20-\\ufe2f",N4e="\\u20d0-\\u20ff",z4e=R4e+D4e+N4e,j4e="\\ufe0e\\ufe0f",B4e="\\u200d",F4e=RegExp("["+B4e+M4e+z4e+j4e+"]");function U4e(e){return F4e.test(e)}bq.exports=U4e});var wq=ee((xdt,xq)=>{"use strict";function q4e(e){return e.split("")}xq.exports=q4e});var Aq=ee((wdt,Pq)=>{"use strict";var _q="\\ud800-\\udfff",V4e="\\u0300-\\u036f",Z4e="\\ufe20-\\ufe2f",H4e="\\u20d0-\\u20ff",G4e=V4e+Z4e+H4e,W4e="\\ufe0e\\ufe0f",K4e="["+_q+"]",VC="["+G4e+"]",ZC="\\ud83c[\\udffb-\\udfff]",J4e="(?:"+VC+"|"+ZC+")",Sq="[^"+_q+"]",kq="(?:\\ud83c[\\udde6-\\uddff]){2}",Iq="[\\ud800-\\udbff][\\udc00-\\udfff]",X4e="\\u200d",Tq=J4e+"?",Cq="["+W4e+"]?",Y4e="(?:"+X4e+"(?:"+[Sq,kq,Iq].join("|")+")"+Cq+Tq+")*",Q4e=Cq+Tq+Y4e,eke="(?:"+[Sq+VC+"?",VC,kq,Iq,K4e].join("|")+")",tke=RegExp(ZC+"(?="+ZC+")|"+eke+Q4e,"g");function rke(e){return e.match(tke)||[]}Pq.exports=rke});var Lq=ee((_dt,Eq)=>{"use strict";var nke=wq(),ake=qC(),oke=Aq();function ike(e){return ake(e)?oke(e):nke(e)}Eq.exports=ike});var Oq=ee((Sdt,$q)=>{"use strict";var ske=yq(),lke=qC(),uke=Lq(),cke=TC();function dke(e){return function(t){t=cke(t);var r=lke(t)?uke(t):void 0,n=r?r[0]:t.charAt(0),a=r?ske(r,1).join(""):t.slice(1);return n[e]()+a}}$q.exports=dke});var D1=ee((kdt,Mq)=>{"use strict";var fke=Oq(),pke=fke("toUpperCase");Mq.exports=pke});var iV=ee((Tpt,oV)=>{"use strict";var Uke=Bg();function qke(){this.__data__=new Uke,this.size=0}oV.exports=qke});var lV=ee((Cpt,sV)=>{"use strict";function Vke(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}sV.exports=Vke});var cV=ee((Ppt,uV)=>{"use strict";function Zke(e){return this.__data__.get(e)}uV.exports=Zke});var fV=ee((Apt,dV)=>{"use strict";function Hke(e){return this.__data__.has(e)}dV.exports=Hke});var mV=ee((Ept,pV)=>{"use strict";var Gke=Bg(),Wke=v1(),Kke=y1(),Jke=200;function Xke(e,t){var r=this.__data__;if(r instanceof Gke){var n=r.__data__;if(!Wke||n.length<Jke-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kke(n)}return r.set(e,t),this.size=r.size,this}pV.exports=Xke});var IP=ee((Lpt,hV)=>{"use strict";var Yke=Bg(),Qke=iV(),eIe=lV(),tIe=cV(),rIe=fV(),nIe=mV();function Gf(e){var t=this.__data__=new Yke(e);this.size=t.size}Gf.prototype.clear=Qke;Gf.prototype.delete=eIe;Gf.prototype.get=tIe;Gf.prototype.has=rIe;Gf.prototype.set=nIe;hV.exports=Gf});var vV=ee(($pt,gV)=>{"use strict";var aIe="__lodash_hash_undefined__";function oIe(e){return this.__data__.set(e,aIe),this}gV.exports=oIe});var bV=ee((Opt,yV)=>{"use strict";function iIe(e){return this.__data__.has(e)}yV.exports=iIe});var TP=ee((Mpt,xV)=>{"use strict";
vendor: 19,012 bytes, line 2
2var sIe=y1(),lIe=vV(),uIe=bV();function Z1(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new sIe;++t<r;)this.add(e[t])}Z1.prototype.add=Z1.prototype.push=lIe;Z1.prototype.has=uIe;xV.exports=Z1});var CP=ee((Rpt,wV)=>{"use strict";function cIe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}wV.exports=cIe});var PP=ee((Dpt,_V)=>{"use strict";function dIe(e,t){return e.has(t)}_V.exports=dIe});var AP=ee((Npt,SV)=>{"use strict";var fIe=TP(),pIe=CP(),mIe=PP(),hIe=1,gIe=2;function vIe(e,t,r,n,a,o){var i=r&hIe,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,m=!0,h=r&gIe?new fIe:void 0;for(o.set(e,t),o.set(t,e);++f<s;){var g=e[f],y=t[f];if(n)var b=i?n(y,g,f,t,e,o):n(g,y,f,e,t,o);if(b!==void 0){if(b)continue;m=!1;break}if(h){if(!pIe(t,function(w,S){if(!mIe(h,S)&&(g===w||a(g,w,r,n,o)))return h.push(S)})){m=!1;break}}else if(!(g===y||a(g,y,r,n,o))){m=!1;break}}return o.delete(e),o.delete(t),m}SV.exports=vIe});var IV=ee((zpt,kV)=>{"use strict";var yIe=ai(),bIe=yIe.Uint8Array;kV.exports=bIe});var CV=ee((jpt,TV)=>{"use strict";function xIe(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}TV.exports=xIe});var H1=ee((Bpt,PV)=>{"use strict";function wIe(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}PV.exports=wIe});var OV=ee((Fpt,$V)=>{"use strict";var AV=Lf(),EV=IV(),_Ie=g1(),SIe=AP(),kIe=CV(),IIe=H1(),TIe=1,CIe=2,PIe="[object Boolean]",AIe="[object Date]",EIe="[object Error]",LIe="[object Map]",$Ie="[object Number]",OIe="[object RegExp]",MIe="[object Set]",RIe="[object String]",DIe="[object Symbol]",NIe="[object ArrayBuffer]",zIe="[object DataView]",LV=AV?AV.prototype:void 0,EP=LV?LV.valueOf:void 0;function jIe(e,t,r,n,a,o,i){switch(r){case zIe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case NIe:return!(e.byteLength!=t.byteLength||!o(new EV(e),new EV(t)));case PIe:case AIe:case $Ie:return _Ie(+e,+t);case EIe:return e.name==t.name&&e.message==t.message;case OIe:case RIe:return e==t+"";case LIe:var s=kIe;case MIe:var l=n&TIe;if(s||(s=IIe),e.size!=t.size&&!l)return!1;var u=i.get(e);if(u)return u==t;n|=CIe,i.set(e,t);var d=SIe(s(e),s(t),n,a,o,i);return i.delete(e),d;case DIe:if(EP)return EP.call(e)==EP.call(t)}return!1}$V.exports=jIe});var LP=ee((Upt,MV)=>{"use strict";function BIe(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}MV.exports=BIe});var DV=ee((qpt,RV)=>{"use strict";var FIe=LP(),UIe=oa();function qIe(e,t,r){var n=t(e);return UIe(e)?n:FIe(n,r(e))}RV.exports=qIe});var zV=ee((Vpt,NV)=>{"use strict";function VIe(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}NV.exports=VIe});var BV=ee((Zpt,jV)=>{"use strict";function ZIe(){return[]}jV.exports=ZIe});var qV=ee((Hpt,UV)=>{"use strict";var HIe=zV(),GIe=BV(),WIe=Object.prototype,KIe=WIe.propertyIsEnumerable,FV=Object.getOwnPropertySymbols,JIe=FV?function(e){return e==null?[]:(e=Object(e),HIe(FV(e),function(t){return KIe.call(e,t)}))}:GIe;UV.exports=JIe});var ZV=ee((Gpt,VV)=>{"use strict";function XIe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}VV.exports=XIe});var GV=ee((Wpt,HV)=>{"use strict";var YIe=Bi(),QIe=Fi(),e6e="[object Arguments]";function t6e(e){return QIe(e)&&YIe(e)==e6e}HV.exports=t6e});var G1=ee((Kpt,JV)=>{"use strict";var WV=GV(),r6e=Fi(),KV=Object.prototype,n6e=KV.hasOwnProperty,a6e=KV.propertyIsEnumerable,o6e=WV((function(){return arguments})())?WV:function(e){return r6e(e)&&n6e.call(e,"callee")&&!a6e.call(e,"callee")};JV.exports=o6e});var YV=ee((Jpt,XV)=>{"use strict";function i6e(){return!1}XV.exports=i6e});var $P=ee((Jg,Wf)=>{"use strict";var s6e=ai(),l6e=YV(),tZ=typeof Jg=="object"&&Jg&&!Jg.nodeType&&Jg,QV=tZ&&typeof Wf=="object"&&Wf&&!Wf.nodeType&&Wf,u6e=QV&&QV.exports===tZ,eZ=u6e?s6e.Buffer:void 0,c6e=eZ?eZ.isBuffer:void 0,d6e=c6e||l6e;Wf.exports=d6e});var W1=ee((Xpt,rZ)=>{"use strict";var f6e=9007199254740991,p6e=/^(?:0|[1-9]\d*)$/;function m6e(e,t){var r=typeof e;return t=t??f6e,!!t&&(r=="number"||r!="symbol"&&p6e.test(e))&&e>-1&&e%1==0&&e<t}rZ.exports=m6e});var K1=ee((Ypt,nZ)=>{"use strict";var h6e=9007199254740991;function g6e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=h6e}nZ.exports=g6e});var oZ=ee((Qpt,aZ)=>{"use strict";var v6e=Bi(),y6e=K1(),b6e=Fi(),x6e="[object Arguments]",w6e="[object Array]",_6e="[object Boolean]",S6e="[object Date]",k6e="[object Error]",I6e="[object Function]",T6e="[object Map]",C6e="[object Number]",P6e="[object Object]",A6e="[object RegExp]",E6e="[object Set]",L6e="[object String]",$6e="[object WeakMap]",O6e="[object ArrayBuffer]",M6e="[object DataView]",R6e="[object Float32Array]",D6e="[object Float64Array]",N6e="[object Int8Array]",z6e="[object Int16Array]",j6e="[object Int32Array]",B6e="[object Uint8Array]",F6e="[object Uint8ClampedArray]",U6e="[object Uint16Array]",q6e="[object Uint32Array]",xr={};xr[R6e]=xr[D6e]=xr[N6e]=xr[z6e]=xr[j6e]=xr[B6e]=xr[F6e]=xr[U6e]=xr[q6e]=!0;xr[x6e]=xr[w6e]=xr[O6e]=xr[_6e]=xr[M6e]=xr[S6e]=xr[k6e]=xr[I6e]=xr[T6e]=xr[C6e]=xr[P6e]=xr[A6e]=xr[E6e]=xr[L6e]=xr[$6e]=!1;function V6e(e){return b6e(e)&&y6e(e.length)&&!!xr[v6e(e)]}aZ.exports=V6e});var OP=ee((emt,iZ)=>{"use strict";function Z6e(e){return function(t){return e(t)}}iZ.exports=Z6e});var lZ=ee((Xg,Kf)=>{"use strict";var H6e=wC(),sZ=typeof Xg=="object"&&Xg&&!Xg.nodeType&&Xg,Yg=sZ&&typeof Kf=="object"&&Kf&&!Kf.nodeType&&Kf,G6e=Yg&&Yg.exports===sZ,MP=G6e&&H6e.process,W6e=(function(){try{var e=Yg&&Yg.require&&Yg.require("util").types;return e||MP&&MP.binding&&MP.binding("util")}catch{}})();Kf.exports=W6e});var RP=ee((tmt,dZ)=>{"use strict";var K6e=oZ(),J6e=OP(),uZ=lZ(),cZ=uZ&&uZ.isTypedArray,X6e=cZ?J6e(cZ):K6e;dZ.exports=X6e});var pZ=ee((rmt,fZ)=>{"use strict";var Y6e=ZV(),Q6e=G1(),eTe=oa(),tTe=$P(),rTe=W1(),nTe=RP(),aTe=Object.prototype,oTe=aTe.hasOwnProperty;function iTe(e,t){var r=eTe(e),n=!r&&Q6e(e),a=!r&&!n&&tTe(e),o=!r&&!n&&!a&&nTe(e),i=r||n||a||o,s=i?Y6e(e.length,String):[],l=s.length;for(var u in e)(t||oTe.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||rTe(u,l)))&&s.push(u);return s}fZ.exports=iTe});var hZ=ee((nmt,mZ)=>{"use strict";var sTe=Object.prototype;function lTe(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||sTe;return e===r}mZ.exports=lTe});var DP=ee((amt,gZ)=>{"use strict";function uTe(e,t){return function(r){return e(t(r))}}gZ.exports=uTe});var yZ=ee((omt,vZ)=>{"use strict";var cTe=DP(),dTe=cTe(Object.keys,Object);vZ.exports=dTe});var xZ=ee((imt,bZ)=>{"use strict";var fTe=hZ(),pTe=yZ(),mTe=Object.prototype,hTe=mTe.hasOwnProperty;function gTe(e){if(!fTe(e))return pTe(e);var t=[];for(var r in Object(e))hTe.call(e,r)&&r!="constructor"&&t.push(r);return t}bZ.exports=gTe});var Jf=ee((smt,wZ)=>{"use strict";var vTe=an(),yTe=K1();function bTe(e){return e!=null&&yTe(e.length)&&!vTe(e)}wZ.exports=bTe});var Qg=ee((lmt,_Z)=>{"use strict";var xTe=pZ(),wTe=xZ(),_Te=Jf();function STe(e){return _Te(e)?xTe(e):wTe(e)}_Z.exports=STe});var kZ=ee((umt,SZ)=>{"use strict";var kTe=DV(),ITe=qV(),TTe=Qg();function CTe(e){return kTe(e,TTe,ITe)}SZ.exports=CTe});var CZ=ee((cmt,TZ)=>{"use strict";var IZ=kZ(),PTe=1,ATe=Object.prototype,ETe=ATe.hasOwnProperty;function LTe(e,t,r,n,a,o){var i=r&PTe,s=IZ(e),l=s.length,u=IZ(t),d=u.length;if(l!=d&&!i)return!1;for(var f=l;f--;){var m=s[f];if(!(i?m in t:ETe.call(t,m)))return!1}var h=o.get(e),g=o.get(t);if(h&&g)return h==t&&g==e;var y=!0;o.set(e,t),o.set(t,e);for(var b=i;++f<l;){m=s[f];var w=e[m],S=t[m];if(n)var x=i?n(S,w,m,t,e,o):n(w,S,m,e,t,o);if(!(x===void 0?w===S||a(w,S,r,n,o):x)){y=!1;break}b||(b=m=="constructor")}if(y&&!b){var C=e.constructor,I=t.constructor;C!=I&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof I=="function"&&I instanceof I)&&(y=!1)}return o.delete(e),o.delete(t),y}TZ.exports=LTe});var AZ=ee((dmt,PZ)=>{"use strict";var $Te=tu(),OTe=ai(),MTe=$Te(OTe,"DataView");PZ.exports=MTe});var LZ=ee((fmt,EZ)=>{"use strict";var RTe=tu(),DTe=ai(),NTe=RTe(DTe,"Promise");EZ.exports=NTe});var NP=ee((pmt,$Z)=>{"use strict";var zTe=tu(),jTe=ai(),BTe=zTe(jTe,"Set");$Z.exports=BTe});var MZ=ee((mmt,OZ)=>{"use strict";var FTe=tu(),UTe=ai(),qTe=FTe(UTe,"WeakMap");OZ.exports=qTe});var UZ=ee((hmt,FZ)=>{"use strict";var zP=AZ(),jP=v1(),BP=LZ(),FP=NP(),UP=MZ(),BZ=Bi(),Xf=SC(),RZ="[object Map]",VTe="[object Object]",DZ="[object Promise]",NZ="[object Set]",zZ="[object WeakMap]",jZ="[object DataView]",ZTe=Xf(zP),HTe=Xf(jP),GTe=Xf(BP),WTe=Xf(FP),KTe=Xf(UP),$c=BZ;(zP&&$c(new zP(new ArrayBuffer(1)))!=jZ||jP&&$c(new jP)!=RZ||BP&&$c(BP.resolve())!=DZ||FP&&$c(new FP)!=NZ||UP&&$c(new UP)!=zZ)&&($c=function(e){var t=BZ(e),r=t==VTe?e.constructor:void 0,n=r?Xf(r):"";if(n)switch(n){case ZTe:return jZ;case HTe:return RZ;case GTe:return DZ;case WTe:return NZ;case KTe:return zZ}return t});FZ.exports=$c});var JZ=ee((gmt,KZ)=>{"use strict";var qP=IP(),JTe=AP(),XTe=OV(),YTe=CZ(),qZ=UZ(),VZ=oa(),ZZ=$P(),QTe=RP(),eCe=1,HZ="[object Arguments]",GZ="[object Array]",J1="[object Object]",tCe=Object.prototype,WZ=tCe.hasOwnProperty;function rCe(e,t,r,n,a,o){var i=VZ(e),s=VZ(t),l=i?GZ:qZ(e),u=s?GZ:qZ(t);l=l==HZ?J1:l,u=u==HZ?J1:u;var d=l==J1,f=u==J1,m=l==u;if(m&&ZZ(e)){if(!ZZ(t))return!1;i=!0,d=!1}if(m&&!d)return o||(o=new qP),i||QTe(e)?JTe(e,t,r,n,a,o):XTe(e,t,l,r,n,a,o);if(!(r&eCe)){var h=d&&WZ.call(e,"__wrapped__"),g=f&&WZ.call(t,"__wrapped__");if(h||g){var y=h?e.value():e,b=g?t.value():t;return o||(o=new qP),a(y,b,r,n,o)}}return m?(o||(o=new qP),YTe(e,t,r,n,a,o)):!1}KZ.exports=rCe});var X1=ee((vmt,QZ)=>{"use strict";var nCe=JZ(),XZ=Fi();function YZ(e,t,r,n,a){return e===t?!0:e==null||t==null||!XZ(e)&&!XZ(t)?e!==e&&t!==t:nCe(e,t,r,n,YZ,a)}QZ.exports=YZ});var tH=ee((ymt,eH)=>{"use strict";var aCe=IP(),oCe=X1(),iCe=1,sCe=2;function lCe(e,t,r,n){var a=r.length,o=a,i=!n;if(e==null)return!o;for(e=Object(e);a--;){var s=r[a];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<o;){s=r[a];var l=s[0],u=e[l],d=s[1];if(i&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new aCe;if(n)var m=n(u,d,l,e,t,f);if(!(m===void 0?oCe(d,u,iCe|sCe,n,f):m))return!1}}return!0}eH.exports=lCe});var VP=ee((bmt,rH)=>{"use strict";var uCe=wo();function cCe(e){return e===e&&!uCe(e)}rH.exports=cCe});var aH=ee((xmt,nH)=>{"use strict";var dCe=VP(),fCe=Qg();function pCe(e){for(var t=fCe(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,dCe(a)]}return t}nH.exports=pCe});var ZP=ee((wmt,oH)=>{"use strict";function mCe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}oH.exports=mCe});var sH=ee((_mt,iH)=>{"use strict";var hCe=tH(),gCe=aH(),vCe=ZP();function yCe(e){var t=gCe(e);return t.length==1&&t[0][2]?vCe(t[0][0],t[0][1]):function(r){return r===e||hCe(r,e,t)}}iH.exports=yCe});var uH=ee((Smt,lH)=>{"use strict";function bCe(e,t){return e!=null&&t in Object(e)}lH.exports=bCe});var dH=ee((kmt,cH)=>{"use strict";var xCe=CC(),wCe=G1(),_Ce=oa(),SCe=W1(),kCe=K1(),ICe=Ug();function TCe(e,t,r){t=xCe(t,e);for(var n=-1,a=t.length,o=!1;++n<a;){var i=ICe(t[n]);if(!(o=e!=null&&r(e,i)))break;e=e[i]}return o||++n!=a?o:(a=e==null?0:e.length,!!a&&kCe(a)&&SCe(i,a)&&(_Ce(e)||wCe(e)))}cH.exports=TCe});var pH=ee((Imt,fH)=>{"use strict";var CCe=uH(),PCe=dH();function ACe(e,t){return e!=null&&PCe(e,t,CCe)}fH.exports=ACe});var hH=ee((Tmt,mH)=>{"use strict";var ECe=X1(),LCe=Ic(),$Ce=pH(),OCe=h1(),MCe=VP(),RCe=ZP(),DCe=Ug(),NCe=1,zCe=2;function jCe(e,t){return OCe(e)&&MCe(t)?RCe(DCe(e),t):function(r){var n=LCe(r,e);return n===void 0&&n===t?$Ce(r,e):ECe(t,n,NCe|zCe)}}mH.exports=jCe});var Oc=ee((Cmt,gH)=>{"use strict";function BCe(e){return e}gH.exports=BCe});var yH=ee((Pmt,vH)=>{"use strict";function FCe(e){return function(t){return t?.[e]}}vH.exports=FCe});var xH=ee((Amt,bH)=>{"use strict";var UCe=x1();function qCe(e){return function(t){return UCe(t,e)}}bH.exports=qCe});var _H=ee((Emt,wH)=>{"use strict";var VCe=yH(),ZCe=xH(),HCe=h1(),GCe=Ug();function WCe(e){return HCe(e)?VCe(GCe(e)):ZCe(e)}wH.exports=WCe});var Bs=ee((Lmt,SH)=>{"use strict";var KCe=sH(),JCe=hH(),XCe=Oc(),YCe=oa(),QCe=_H();function ePe(e){return typeof e=="function"?e:e==null?XCe:typeof e=="object"?YCe(e)?JCe(e[0],e[1]):KCe(e):QCe(e)}SH.exports=ePe});var HP=ee(($mt,kH)=>{"use strict";function tPe(e,t,r,n){for(var a=e.length,o=r+(n?1:-1);n?o--:++o<a;)if(t(e[o],o,e))return o;return-1}kH.exports=tPe});var TH=ee((Omt,IH)=>{"use strict";function rPe(e){return e!==e}IH.exports=rPe});var PH=ee((Mmt,CH)=>{"use strict";function nPe(e,t,r){for(var n=r-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}CH.exports=nPe});var EH=ee((Rmt,AH)=>{"use strict";var aPe=HP(),oPe=TH(),iPe=PH();function sPe(e,t,r){return t===t?iPe(e,t,r):aPe(e,oPe,r)}AH.exports=sPe});var $H=ee((Dmt,LH)=>{"use strict";var lPe=EH();function uPe(e,t){var r=e==null?0:e.length;return!!r&&lPe(e,t,0)>-1}LH.exports=uPe});var MH=ee((Nmt,OH)=>{"use strict";function cPe(e,t,r){for(var n=-1,a=e==null?0:e.length;++n<a;)if(r(t,e[n]))return!0;return!1}OH.exports=cPe});var DH=ee((zmt,RH)=>{"use strict";function dPe(){}RH.exports=dPe});var zH=ee((jmt,NH)=>{"use strict";var GP=NP(),fPe=DH(),pPe=H1(),mPe=1/0,hPe=GP&&1/pPe(new GP([,-0]))[1]==mPe?function(e){return new GP(e)}:fPe;NH.exports=hPe});var BH=ee((Bmt,jH)=>{"use strict";var gPe=TP(),vPe=$H(),yPe=MH(),bPe=PP(),xPe=zH(),wPe=H1(),_Pe=200;function SPe(e,t,r){var n=-1,a=vPe,o=e.length,i=!0,s=[],l=s;if(r)i=!1,a=yPe;else if(o>=_Pe){var u=t?null:xPe(e);if(u)return wPe(u);i=!1,a=bPe,l=new gPe}else l=t?[]:s;e:for(;++n<o;){var d=e[n],f=t?t(d):d;if(d=r||d!==0?d:0,i&&f===f){for(var m=l.length;m--;)if(l[m]===f)continue e;t&&l.push(f),s.push(d)}else a(l,f,r)||(l!==s&&l.push(f),s.push(d))}return s}jH.exports=SPe});var UH=ee((Fmt,FH)=>{"use strict";var kPe=Bs(),IPe=BH();function TPe(e,t){return e&&e.length?IPe(e,kPe(t,2)):[]}FH.exports=TPe});var YH=ee((Gmt,XH)=>{"use strict";var KH=Lf(),jPe=G1(),BPe=oa(),JH=KH?KH.isConcatSpreadable:void 0;function FPe(e){return BPe(e)||jPe(e)||!!(JH&&e&&e[JH])}XH.exports=FPe});var JP=ee((Wmt,eG)=>{"use strict";var UPe=LP(),qPe=YH();function QH(e,t,r,n,a){var o=-1,i=e.length;for(r||(r=qPe),a||(a=[]);++o<i;){var s=e[o];t>0&&r(s)?t>1?QH(s,t-1,r,n,a):UPe(a,s):n||(a[a.length]=s)}return a}eG.exports=QH});var rG=ee((Kmt,tG)=>{"use strict";function VPe(e){return function(t,r,n){for(var a=-1,o=Object(t),i=n(t),s=i.length;s--;){var l=i[e?s:++a];if(r(o[l],l,o)===!1)break}return t}}tG.exports=VPe});var aG=ee((Jmt,nG)=>{"use strict";var ZPe=rG(),HPe=ZPe();nG.exports=HPe});var XP=ee((Xmt,oG)=>{"use strict";var GPe=aG(),WPe=Qg();function KPe(e,t){return e&&GPe(e,t,WPe)}oG.exports=KPe});var sG=ee((Ymt,iG)=>{"use strict";var JPe=Jf();function XPe(e,t){return function(r,n){if(r==null)return r;if(!JPe(r))return e(r,n);for(var a=r.length,o=t?a:-1,i=Object(r);(t?o--:++o<a)&&n(i[o],o,i)!==!1;);return r}}iG.exports=XPe});var tw=ee((Qmt,lG)=>{"use strict";var YPe=XP(),QPe=sG(),e5e=QPe(YPe);lG.exports=e5e});var YP=ee((eht,uG)=>{"use strict";var t5e=tw(),r5e=Jf();function n5e(e,t){var r=-1,n=r5e(e)?Array(e.length):[];return t5e(e,function(a,o,i){n[++r]=t(a,o,i)}),n}uG.exports=n5e});var dG=ee((tht,cG)=>{"use strict";function a5e(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}cG.exports=a5e});var mG=ee((rht,pG)=>{"use strict";var fG=kc();function o5e(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,o=fG(e),i=t!==void 0,s=t===null,l=t===t,u=fG(t);if(!s&&!u&&!o&&e>t||o&&i&&l&&!s&&!u||n&&i&&l||!r&&l||!a)return 1;if(!n&&!o&&!u&&e<t||u&&r&&a&&!n&&!o||s&&r&&a||!i&&a||!l)return-1}return 0}pG.exports=o5e});var gG=ee((nht,hG)=>{"use strict";var i5e=mG();function s5e(e,t,r){for(var n=-1,a=e.criteria,o=t.criteria,i=a.length,s=r.length;++n<i;){var l=i5e(a[n],o[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}hG.exports=s5e});var yG=ee((aht,vG)=>{"use strict";var QP=b1(),l5e=x1(),u5e=Bs(),c5e=YP(),d5e=dG(),f5e=OP(),p5e=gG(),m5e=Oc(),h5e=oa();function g5e(e,t,r){t.length?t=QP(t,function(o){return h5e(o)?function(i){return l5e(i,o.length===1?o[0]:o)}:o}):t=[m5e];var n=-1;t=QP(t,f5e(u5e));var a=c5e(e,function(o,i,s){var l=QP(t,function(u){return u(o)});return{criteria:l,index:++n,value:o}});return d5e(a,function(o,i){return p5e(o,i,r)})}vG.exports=g5e});var xG=ee((oht,bG)=>{"use strict";function v5e(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}bG.exports=v5e});var SG=ee((iht,_G)=>{"use strict";var y5e=xG(),wG=Math.max;function b5e(e,t,r){return t=wG(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,o=wG(n.length-t,0),i=Array(o);++a<o;)i[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(i),y5e(e,this,s)}}_G.exports=b5e});var IG=ee((sht,kG)=>{"use strict";function x5e(e){return function(){return e}}kG.exports=x5e});var e5=ee((lht,TG)=>{"use strict";var w5e=tu(),_5e=(function(){try{var e=w5e(Object,"defineProperty");return e({},"",{}),e}catch{}})();TG.exports=_5e});var AG=ee((uht,PG)=>{"use strict";var S5e=IG(),CG=e5(),k5e=Oc(),I5e=CG?function(e,t){return CG(e,"toString",{configurable:!0,enumerable:!1,value:S5e(t),writable:!0})}:k5e;PG.exports=I5e});var LG=ee((cht,EG)=>{"use strict";var T5e=800,C5e=16,P5e=Date.now;function A5e(e){var t=0,r=0;return function(){var n=P5e(),a=C5e-(n-r);if(r=n,a>0){if(++t>=T5e)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}EG.exports=A5e});var OG=ee((dht,$G)=>{"use strict";var E5e=AG(),L5e=LG(),$5e=L5e(E5e);$G.exports=$5e});var RG=ee((fht,MG)=>{"use strict";var O5e=Oc(),M5e=SG(),R5e=OG();function D5e(e,t){return R5e(M5e(e,t,O5e),e+"")}MG.exports=D5e});var e0=ee((pht,DG)=>{"use strict";var N5e=g1(),z5e=Jf(),j5e=W1(),B5e=wo();function F5e(e,t,r){if(!B5e(r))return!1;var n=typeof t;return(n=="number"?z5e(r)&&j5e(t,r.length):n=="string"&&t in r)?N5e(r[t],e):!1}DG.exports=F5e});var rw=ee((mht,zG)=>{"use strict";var U5e=JP(),q5e=yG(),V5e=RG(),NG=e0(),Z5e=V5e(function(e,t){if(e==null)return[];var r=t.length;return r>1&&NG(e,t[0],t[1])?t=[]:r>2&&NG(t[0],t[1],t[2])&&(t=[t[0]]),q5e(e,U5e(t,1),[])});zG.exports=Z5e});var oW=ee((Aht,aW)=>{"use strict";var S3e=ai(),k3e=function(){return S3e.Date.now()};aW.exports=k3e});var sW=ee((Eht,iW)=>{"use strict";var I3e=/\s/;function T3e(e){for(var t=e.length;t--&&I3e.test(e.charAt(t)););return t}iW.exports=T3e});var uW=ee((Lht,lW)=>{"use strict";var C3e=sW(),P3e=/^\s+/;function A3e(e){return e&&e.slice(0,C3e(e)+1).replace(P3e,"")}lW.exports=A3e});var s5=ee(($ht,fW)=>{"use strict";var E3e=uW(),cW=wo(),L3e=kc(),dW=NaN,$3e=/^[-+]0x[0-9a-f]+$/i,O3e=/^0b[01]+$/i,M3e=/^0o[0-7]+$/i,R3e=parseInt;function D3e(e){if(typeof e=="number")return e;if(L3e(e))return dW;if(cW(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cW(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=E3e(e);var r=O3e.test(e);return r||M3e.test(e)?R3e(e.slice(2),r?2:8):$3e.test(e)?dW:+e}fW.exports=D3e});var hW=ee((Oht,mW)=>{"use strict";
2var N3e=wo(),l5=oW(),pW=s5(),z3e="Expected a function",j3e=Math.max,B3e=Math.min;function F3e(e,t,r){var n,a,o,i,s,l,u=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(z3e);t=pW(t)||0,N3e(r)&&(d=!!r.leading,f="maxWait"in r,o=f?j3e(pW(r.maxWait)||0,t):o,m="trailing"in r?!!r.trailing:m);function h(A){var O=n,F=a;return n=a=void 0,u=A,i=e.apply(F,O),i}function g(A){return u=A,s=setTimeout(w,t),d?h(A):i}function y(A){var O=A-l,F=A-u,q=t-O;return f?B3e(q,o-F):q}function b(A){var O=A-l,F=A-u;return l===void 0||O>=t||O<0||f&&F>=o}function w(){var A=l5();if(b(A))return S(A);s=setTimeout(w,y(A))}function S(A){return s=void 0,m&&n?h(A):(n=a=void 0,i)}function x(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function C(){return s===void 0?i:S(l5())}function I(){var A=l5(),O=b(A);if(n=arguments,a=this,l=A,O){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(w,t),h(l)}return s===void 0&&(s=setTimeout(w,t)),i}return I.cancel=x,I.flush=C,I}mW.exports=F3e});var u5=ee((Mht,gW)=>{"use strict";var U3e=hW(),q3e=wo(),V3e="Expected a function";function Z3e(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(V3e);return q3e(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),U3e(e,t,{leading:n,maxWait:t,trailing:a})}gW.exports=Z3e});var J5=ee((Kbt,aJ)=>{"use strict";var NLe=kc();function zLe(e,t,r){for(var n=-1,a=e.length;++n<a;){var o=e[n],i=t(o);if(i!=null&&(s===void 0?i===i&&!NLe(i):r(i,s)))var s=i,l=o}return l}aJ.exports=zLe});var iJ=ee((Jbt,oJ)=>{"use strict";function jLe(e,t){return e>t}oJ.exports=jLe});var lJ=ee((Xbt,sJ)=>{"use strict";var BLe=J5(),FLe=iJ(),ULe=Oc();function qLe(e){return e&&e.length?BLe(e,ULe,FLe):void 0}sJ.exports=qLe});var cJ=ee((Ybt,uJ)=>{"use strict";function VLe(e,t){return e<t}uJ.exports=VLe});var fJ=ee((Qbt,dJ)=>{"use strict";var ZLe=J5(),HLe=cJ(),GLe=Oc();function WLe(e){return e&&e.length?ZLe(e,GLe,HLe):void 0}dJ.exports=WLe});var mJ=ee((ext,pJ)=>{"use strict";var KLe=b1(),JLe=Bs(),XLe=YP(),YLe=oa();function QLe(e,t){var r=YLe(e)?KLe:XLe;return r(e,JLe(t,3))}pJ.exports=QLe});var gJ=ee((txt,hJ)=>{"use strict";var e7e=JP(),t7e=mJ();function r7e(e,t){return e7e(t7e(e,t),1)}hJ.exports=r7e});var Gw=ee((rxt,vJ)=>{"use strict";var n7e=X1();function a7e(e,t){return n7e(e,t)}vJ.exports=a7e});var X5=ee((yJ,Ww)=>{"use strict";(function(e){"use strict";var t=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},n=!0,a="[DecimalError] ",o=a+"Invalid argument: ",i=a+"Exponent out of range: ",s=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,m=7,h=9007199254740991,g=s(h/m),y={};y.absoluteValue=y.abs=function(){var $=new this.constructor(this);return $.s&&($.s=1),$},y.comparedTo=y.cmp=function($){var z,R,N,U,B=this;if($=new B.constructor($),B.s!==$.s)return B.s||-$.s;if(B.e!==$.e)return B.e>$.e^B.s<0?1:-1;for(N=B.d.length,U=$.d.length,z=0,R=N<U?N:U;z<R;++z)if(B.d[z]!==$.d[z])return B.d[z]>$.d[z]^B.s<0?1:-1;return N===U?0:N>U^B.s<0?1:-1},y.decimalPlaces=y.dp=function(){var $=this,z=$.d.length-1,R=(z-$.e)*m;if(z=$.d[z],z)for(;z%10==0;z/=10)R--;return R<0?0:R},y.dividedBy=y.div=function($){return x(this,new this.constructor($))},y.dividedToIntegerBy=y.idiv=function($){var z=this,R=z.constructor;return G(x(z,new R($),0,1),R.precision)},y.equals=y.eq=function($){return!this.cmp($)},y.exponent=function(){return I(this)},y.greaterThan=y.gt=function($){return this.cmp($)>0},y.greaterThanOrEqualTo=y.gte=function($){return this.cmp($)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return this.s===0},y.lessThan=y.lt=function($){return this.cmp($)<0},y.lessThanOrEqualTo=y.lte=function($){return this.cmp($)<1},y.logarithm=y.log=function($){var z,R=this,N=R.constructor,U=N.precision,B=U+5;if($===void 0)$=new N(10);else if($=new N($),$.s<1||$.eq(d))throw Error(a+"NaN");if(R.s<1)throw Error(a+(R.s?"NaN":"-Infinity"));
vendor: 12,296 bytes, line 2
2return R.eq(d)?new N(0):(n=!1,z=x(F(R,B),F($,B),B),n=!0,G(z,U))},y.minus=y.sub=function($){var z=this;return $=new z.constructor($),z.s==$.s?J(z,$):b(z,($.s=-$.s,$))},y.modulo=y.mod=function($){var z,R=this,N=R.constructor,U=N.precision;if($=new N($),!$.s)throw Error(a+"NaN");return R.s?(n=!1,z=x(R,$,0,1).times($),n=!0,R.minus(z)):G(new N(R),U)},y.naturalExponential=y.exp=function(){return C(this)},y.naturalLogarithm=y.ln=function(){return F(this)},y.negated=y.neg=function(){var $=new this.constructor(this);return $.s=-$.s||0,$},y.plus=y.add=function($){var z=this;return $=new z.constructor($),z.s==$.s?b(z,$):J(z,($.s=-$.s,$))},y.precision=y.sd=function($){var z,R,N,U=this;if($!==void 0&&$!==!!$&&$!==1&&$!==0)throw Error(o+$);if(z=I(U)+1,N=U.d.length-1,R=N*m+1,N=U.d[N],N){for(;N%10==0;N/=10)R--;for(N=U.d[0];N>=10;N/=10)R++}return $&&z>R?z:R},y.squareRoot=y.sqrt=function(){var $,z,R,N,U,B,V,Z=this,Q=Z.constructor;if(Z.s<1){if(!Z.s)return new Q(0);throw Error(a+"NaN")}for($=I(Z),n=!1,U=Math.sqrt(+Z),U==0||U==1/0?(z=S(Z.d),(z.length+$)%2==0&&(z+="0"),U=Math.sqrt(z),$=s(($+1)/2)-($<0||$%2),U==1/0?z="5e"+$:(z=U.toExponential(),z=z.slice(0,z.indexOf("e")+1)+$),N=new Q(z)):N=new Q(U.toString()),R=Q.precision,U=V=R+3;;)if(B=N,N=B.plus(x(Z,B,V+2)).times(.5),S(B.d).slice(0,V)===(z=S(N.d)).slice(0,V)){if(z=z.slice(V-3,V+1),U==V&&z=="4999"){if(G(B,R+1,0),B.times(B).eq(Z)){N=B;break}}else if(z!="9999")break;V+=4}return n=!0,G(N,R)},y.times=y.mul=function($){var z,R,N,U,B,V,Z,Q,ue,ge=this,Te=ge.constructor,De=ge.d,me=($=new Te($)).d;if(!ge.s||!$.s)return new Te(0);for($.s*=ge.s,R=ge.e+$.e,Q=De.length,ue=me.length,Q<ue&&(B=De,De=me,me=B,V=Q,Q=ue,ue=V),B=[],V=Q+ue,N=V;N--;)B.push(0);for(N=ue;--N>=0;){for(z=0,U=Q+N;U>N;)Z=B[U]+me[N]*De[U-N-1]+z,B[U--]=Z%f|0,z=Z/f|0;B[U]=(B[U]+z)%f|0}for(;!B[--V];)B.pop();return z?++R:B.shift(),$.d=B,$.e=R,n?G($,Te.precision):$},y.toDecimalPlaces=y.todp=function($,z){var R=this,N=R.constructor;return R=new N(R),$===void 0?R:(w($,0,t),z===void 0?z=N.rounding:w(z,0,8),G(R,$+I(R)+1,z))},y.toExponential=function($,z){var R,N=this,U=N.constructor;return $===void 0?R=Y(N,!0):(w($,0,t),z===void 0?z=U.rounding:w(z,0,8),N=G(new U(N),$+1,z),R=Y(N,!0,$+1)),R},y.toFixed=function($,z){var R,N,U=this,B=U.constructor;return $===void 0?Y(U):(w($,0,t),z===void 0?z=B.rounding:w(z,0,8),N=G(new B(U),$+I(U)+1,z),R=Y(N.abs(),!1,$+I(N)+1),U.isneg()&&!U.isZero()?"-"+R:R)},y.toInteger=y.toint=function(){var $=this,z=$.constructor;return G(new z($),I($)+1,z.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function($){var z,R,N,U,B,V,Z=this,Q=Z.constructor,ue=12,ge=+($=new Q($));if(!$.s)return new Q(d);if(Z=new Q(Z),!Z.s){if($.s<1)throw Error(a+"Infinity");return Z}if(Z.eq(d))return Z;if(N=Q.precision,$.eq(d))return G(Z,N);if(z=$.e,R=$.d.length-1,V=z>=R,B=Z.s,V){if((R=ge<0?-ge:ge)<=h){for(U=new Q(d),z=Math.ceil(N/m+4),n=!1;R%2&&(U=U.times(Z),le(U.d,z)),R=s(R/2),R!==0;)Z=Z.times(Z),le(Z.d,z);return n=!0,$.s<0?new Q(d).div(U):G(U,N)}}else if(B<0)throw Error(a+"NaN");return B=B<0&&$.d[Math.max(z,R)]&1?-1:1,Z.s=1,n=!1,U=$.times(F(Z,N+ue)),n=!0,U=C(U),U.s=B,U},y.toPrecision=function($,z){var R,N,U=this,B=U.constructor;return $===void 0?(R=I(U),N=Y(U,R<=B.toExpNeg||R>=B.toExpPos)):(w($,1,t),z===void 0?z=B.rounding:w(z,0,8),U=G(new B(U),$,z),R=I(U),N=Y(U,$<=R||R<=B.toExpNeg,$)),N},y.toSignificantDigits=y.tosd=function($,z){var R=this,N=R.constructor;return $===void 0?($=N.precision,z=N.rounding):(w($,1,t),z===void 0?z=N.rounding:w(z,0,8)),G(new N(R),$,z)},y.toString=y.valueOf=y.val=y.toJSON=function(){var $=this,z=I($),R=$.constructor;return Y($,z<=R.toExpNeg||z>=R.toExpPos)};function b($,z){var R,N,U,B,V,Z,Q,ue,ge=$.constructor,Te=ge.precision;if(!$.s||!z.s)return z.s||(z=new ge($)),n?G(z,Te):z;if(Q=$.d,ue=z.d,V=$.e,U=z.e,Q=Q.slice(),B=V-U,B){for(B<0?(N=Q,B=-B,Z=ue.length):(N=ue,U=V,Z=Q.length),V=Math.ceil(Te/m),Z=V>Z?V+1:Z+1,B>Z&&(B=Z,N.length=1),N.reverse();B--;)N.push(0);N.reverse()}for(Z=Q.length,B=ue.length,Z-B<0&&(B=Z,N=ue,ue=Q,Q=N),R=0;B;)R=(Q[--B]=Q[B]+ue[B]+R)/f|0,Q[B]%=f;for(R&&(Q.unshift(R),++U),Z=Q.length;Q[--Z]==0;)Q.pop();return z.d=Q,z.e=U,n?G(z,Te):z}function w($,z,R){if($!==~~$||$<z||$>R)throw Error(o+$)}function S($){var z,R,N,U=$.length-1,B="",V=$[0];if(U>0){for(B+=V,z=1;z<U;z++)N=$[z]+"",R=m-N.length,R&&(B+=O(R)),B+=N;V=$[z],N=V+"",R=m-N.length,R&&(B+=O(R))}else if(V===0)return"0";for(;V%10===0;)V/=10;return B+V}var x=(function(){function $(N,U){var B,V=0,Z=N.length;for(N=N.slice();Z--;)B=N[Z]*U+V,N[Z]=B%f|0,V=B/f|0;return V&&N.unshift(V),N}function z(N,U,B,V){var Z,Q;if(B!=V)Q=B>V?1:-1;else for(Z=Q=0;Z<B;Z++)if(N[Z]!=U[Z]){Q=N[Z]>U[Z]?1:-1;break}return Q}function R(N,U,B){for(var V=0;B--;)N[B]-=V,V=N[B]<U[B]?1:0,N[B]=V*f+N[B]-U[B];for(;!N[0]&&N.length>1;)N.shift()}return function(N,U,B,V){var Z,Q,ue,ge,Te,De,me,Ze,Oe,fe,Mt,at,Ut,zt,Qt,Vr,Dt,dn,fn=N.constructor,sr=N.s==U.s?1:-1,_r=N.d,Kt=U.d;if(!N.s)return new fn(N);if(!U.s)throw Error(a+"Division by zero");for(Q=N.e-U.e,Dt=Kt.length,Qt=_r.length,me=new fn(sr),Ze=me.d=[],ue=0;Kt[ue]==(_r[ue]||0);)++ue;if(Kt[ue]>(_r[ue]||0)&&--Q,B==null?at=B=fn.precision:V?at=B+(I(N)-I(U))+1:at=B,at<0)return new fn(0);if(at=at/m+2|0,ue=0,Dt==1)for(ge=0,Kt=Kt[0],at++;(ue<Qt||ge)&&at--;ue++)Ut=ge*f+(_r[ue]||0),Ze[ue]=Ut/Kt|0,ge=Ut%Kt|0;else{for(ge=f/(Kt[0]+1)|0,ge>1&&(Kt=$(Kt,ge),_r=$(_r,ge),Dt=Kt.length,Qt=_r.length),zt=Dt,Oe=_r.slice(0,Dt),fe=Oe.length;fe<Dt;)Oe[fe++]=0;dn=Kt.slice(),dn.unshift(0),Vr=Kt[0],Kt[1]>=f/2&&++Vr;do ge=0,Z=z(Kt,Oe,Dt,fe),Z<0?(Mt=Oe[0],Dt!=fe&&(Mt=Mt*f+(Oe[1]||0)),ge=Mt/Vr|0,ge>1?(ge>=f&&(ge=f-1),Te=$(Kt,ge),De=Te.length,fe=Oe.length,Z=z(Te,Oe,De,fe),Z==1&&(ge--,R(Te,Dt<De?dn:Kt,De))):(ge==0&&(Z=ge=1),Te=Kt.slice()),De=Te.length,De<fe&&Te.unshift(0),R(Oe,Te,fe),Z==-1&&(fe=Oe.length,Z=z(Kt,Oe,Dt,fe),Z<1&&(ge++,R(Oe,Dt<fe?dn:Kt,fe))),fe=Oe.length):Z===0&&(ge++,Oe=[0]),Ze[ue++]=ge,Z&&Oe[0]?Oe[fe++]=_r[zt]||0:(Oe=[_r[zt]],fe=1);while((zt++<Qt||Oe[0]!==void 0)&&at--)}return Ze[0]||Ze.shift(),me.e=Q,G(me,V?B+I(me)+1:B)}})();function C($,z){var R,N,U,B,V,Z,Q=0,ue=0,ge=$.constructor,Te=ge.precision;if(I($)>16)throw Error(i+I($));if(!$.s)return new ge(d);for(z==null?(n=!1,Z=Te):Z=z,V=new ge(.03125);$.abs().gte(.1);)$=$.times(V),ue+=5;for(N=Math.log(l(2,ue))/Math.LN10*2+5|0,Z+=N,R=U=B=new ge(d),ge.precision=Z;;){if(U=G(U.times($),Z),R=R.times(++Q),V=B.plus(x(U,R,Z)),S(V.d).slice(0,Z)===S(B.d).slice(0,Z)){for(;ue--;)B=G(B.times(B),Z);return ge.precision=Te,z==null?(n=!0,G(B,Te)):B}B=V}}function I($){for(var z=$.e*m,R=$.d[0];R>=10;R/=10)z++;return z}function A($,z,R){if(z>$.LN10.sd())throw n=!0,R&&($.precision=R),Error(a+"LN10 precision limit exceeded");return G(new $($.LN10),z)}function O($){for(var z="";$--;)z+="0";return z}function F($,z){var R,N,U,B,V,Z,Q,ue,ge,Te=1,De=10,me=$,Ze=me.d,Oe=me.constructor,fe=Oe.precision;if(me.s<1)throw Error(a+(me.s?"NaN":"-Infinity"));if(me.eq(d))return new Oe(0);if(z==null?(n=!1,ue=fe):ue=z,me.eq(10))return z==null&&(n=!0),A(Oe,ue);if(ue+=De,Oe.precision=ue,R=S(Ze),N=R.charAt(0),B=I(me),Math.abs(B)<15e14){for(;N<7&&N!=1||N==1&&R.charAt(1)>3;)me=me.times($),R=S(me.d),N=R.charAt(0),Te++;B=I(me),N>1?(me=new Oe("0."+R),B++):me=new Oe(N+"."+R.slice(1))}else return Q=A(Oe,ue+2,fe).times(B+""),me=F(new Oe(N+"."+R.slice(1)),ue-De).plus(Q),Oe.precision=fe,z==null?(n=!0,G(me,fe)):me;for(Z=V=me=x(me.minus(d),me.plus(d),ue),ge=G(me.times(me),ue),U=3;;){if(V=G(V.times(ge),ue),Q=Z.plus(x(V,new Oe(U),ue)),S(Q.d).slice(0,ue)===S(Z.d).slice(0,ue))return Z=Z.times(2),B!==0&&(Z=Z.plus(A(Oe,ue+2,fe).times(B+""))),Z=x(Z,new Oe(Te),ue),Oe.precision=fe,z==null?(n=!0,G(Z,fe)):Z;Z=Q,U+=2}}function q($,z){var R,N,U;for((R=z.indexOf("."))>-1&&(z=z.replace(".","")),(N=z.search(/e/i))>0?(R<0&&(R=N),R+=+z.slice(N+1),z=z.substring(0,N)):R<0&&(R=z.length),N=0;z.charCodeAt(N)===48;)++N;for(U=z.length;z.charCodeAt(U-1)===48;)--U;if(z=z.slice(N,U),z){if(U-=N,R=R-N-1,$.e=s(R/m),$.d=[],N=(R+1)%m,R<0&&(N+=m),N<U){for(N&&$.d.push(+z.slice(0,N)),U-=m;N<U;)$.d.push(+z.slice(N,N+=m));z=z.slice(N),N=m-z.length}else N-=U;for(;N--;)z+="0";if($.d.push(+z),n&&($.e>g||$.e<-g))throw Error(i+R)}else $.s=0,$.e=0,$.d=[0];return $}function G($,z,R){var N,U,B,V,Z,Q,ue,ge,Te=$.d;for(V=1,B=Te[0];B>=10;B/=10)V++;if(N=z-V,N<0)N+=m,U=z,ue=Te[ge=0];else{if(ge=Math.ceil((N+1)/m),B=Te.length,ge>=B)return $;for(ue=B=Te[ge],V=1;B>=10;B/=10)V++;N%=m,U=N-m+V}if(R!==void 0&&(B=l(10,V-U-1),Z=ue/B%10|0,Q=z<0||Te[ge+1]!==void 0||ue%B,Q=R<4?(Z||Q)&&(R==0||R==($.s<0?3:2)):Z>5||Z==5&&(R==4||Q||R==6&&(N>0?U>0?ue/l(10,V-U):0:Te[ge-1])%10&1||R==($.s<0?8:7))),z<1||!Te[0])return Q?(B=I($),Te.length=1,z=z-B-1,Te[0]=l(10,(m-z%m)%m),$.e=s(-z/m)||0):(Te.length=1,Te[0]=$.e=$.s=0),$;if(N==0?(Te.length=ge,B=1,ge--):(Te.length=ge+1,B=l(10,m-N),Te[ge]=U>0?(ue/l(10,V-U)%l(10,U)|0)*B:0),Q)for(;;)if(ge==0){(Te[0]+=B)==f&&(Te[0]=1,++$.e);break}else{if(Te[ge]+=B,Te[ge]!=f)break;Te[ge--]=0,B=1}for(N=Te.length;Te[--N]===0;)Te.pop();if(n&&($.e>g||$.e<-g))throw Error(i+I($));return $}function J($,z){var R,N,U,B,V,Z,Q,ue,ge,Te,De=$.constructor,me=De.precision;if(!$.s||!z.s)return z.s?z.s=-z.s:z=new De($),n?G(z,me):z;if(Q=$.d,Te=z.d,N=z.e,ue=$.e,Q=Q.slice(),V=ue-N,V){for(ge=V<0,ge?(R=Q,V=-V,Z=Te.length):(R=Te,N=ue,Z=Q.length),U=Math.max(Math.ceil(me/m),Z)+2,V>U&&(V=U,R.length=1),R.reverse(),U=V;U--;)R.push(0);R.reverse()}else{for(U=Q.length,Z=Te.length,ge=U<Z,ge&&(Z=U),U=0;U<Z;U++)if(Q[U]!=Te[U]){ge=Q[U]<Te[U];break}V=0}for(ge&&(R=Q,Q=Te,Te=R,z.s=-z.s),Z=Q.length,U=Te.length-Z;U>0;--U)Q[Z++]=0;for(U=Te.length;U>V;){if(Q[--U]<Te[U]){for(B=U;B&&Q[--B]===0;)Q[B]=f-1;--Q[B],Q[U]+=f}Q[U]-=Te[U]}for(;Q[--Z]===0;)Q.pop();for(;Q[0]===0;Q.shift())--N;return Q[0]?(z.d=Q,z.e=N,n?G(z,me):z):new De(0)}function Y($,z,R){var N,U=I($),B=S($.d),V=B.length;return z?(R&&(N=R-V)>0?B=B.charAt(0)+"."+B.slice(1)+O(N):V>1&&(B=B.charAt(0)+"."+B.slice(1)),B=B+(U<0?"e":"e+")+U):U<0?(B="0."+O(-U-1)+B,R&&(N=R-V)>0&&(B+=O(N))):U>=V?(B+=O(U+1-V),R&&(N=R-U-1)>0&&(B=B+"."+O(N))):((N=U+1)<V&&(B=B.slice(0,N)+"."+B.slice(N)),R&&(N=R-V)>0&&(U+1===V&&(B+="."),B+=O(N))),$.s<0?"-"+B:B}function le($,z){if($.length>z)return $.length=z,!0}function re($){var z,R,N;function U(B){var V=this;if(!(V instanceof U))return new U(B);if(V.constructor=U,B instanceof U){V.s=B.s,V.e=B.e,V.d=(B=B.d)?B.slice():B;return}if(typeof B=="number"){if(B*0!==0)throw Error(o+B);if(B>0)V.s=1;else if(B<0)B=-B,V.s=-1;else{V.s=0,V.e=0,V.d=[0];return}if(B===~~B&&B<1e7){V.e=0,V.d=[B];return}return q(V,B.toString())}else if(typeof B!="string")throw Error(o+B);if(B.charCodeAt(0)===45?(B=B.slice(1),V.s=-1):V.s=1,u.test(B))q(V,B);else throw Error(o+B)}if(U.prototype=y,U.ROUND_UP=0,U.ROUND_DOWN=1,U.ROUND_CEIL=2,U.ROUND_FLOOR=3,U.ROUND_HALF_UP=4,U.ROUND_HALF_DOWN=5,U.ROUND_HALF_EVEN=6,U.ROUND_HALF_CEIL=7,U.ROUND_HALF_FLOOR=8,U.clone=re,U.config=U.set=oe,$===void 0&&($={}),$)for(N=["precision","rounding","toExpNeg","toExpPos","LN10"],z=0;z<N.length;)$.hasOwnProperty(R=N[z++])||($[R]=this[R]);return U.config($),U}function oe($){if(!$||typeof $!="object")throw Error(a+"Object expected");var z,R,N,U=["precision",1,t,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(z=0;z<U.length;z+=3)if((N=$[R=U[z]])!==void 0)if(s(N)===N&&N>=U[z+1]&&N<=U[z+2])this[R]=N;else throw Error(o+R+": "+N);if((N=$[R="LN10"])!==void 0)if(N==Math.LN10)this[R]=new this(N);else throw Error(o+R+": "+N);return this}r=re(r),r.default=r.Decimal=r,d=new r(1),typeof define=="function"&&define.amd?define(function(){return r}):typeof Ww<"u"&&Ww.exports?Ww.exports=r:(e||(e=typeof self<"u"&&self&&self.self==self?self:Function("return this")()),e.Decimal=r)})(yJ)});var iX=ee((Mxt,oX)=>{"use strict";function M$e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}oX.exports=M$e});var kX=ee((Xxt,SX)=>{"use strict";var iOe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";SX.exports=iOe});var PX=ee((Yxt,CX)=>{"use strict";var sOe=kX();function IX(){}function TX(){}TX.resetWarningCache=IX;CX.exports=function(){function e(n,a,o,i,s,l){if(l!==sOe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:TX,resetWarningCache:IX};return r.PropTypes=r,r}});var EX=ee((t1t,AX)=>{"use strict";AX.exports=PX()();var Qxt,e1t});var vY=ee((z1t,gY)=>{"use strict";var W8e=DP(),K8e=W8e(Object.getPrototypeOf,Object);gY.exports=K8e});var xY=ee((j1t,bY)=>{"use strict";var J8e=Bi(),X8e=vY(),Y8e=Fi(),Q8e="[object Object]",eMe=Function.prototype,tMe=Object.prototype,yY=eMe.toString,rMe=tMe.hasOwnProperty,nMe=yY.call(Object);function aMe(e){if(!Y8e(e)||J8e(e)!=Q8e)return!1;var t=X8e(e);if(t===null)return!0;var r=rMe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&yY.call(r)==nMe}bY.exports=aMe});var _Y=ee((B1t,wY)=>{"use strict";var oMe=Bi(),iMe=Fi(),sMe="[object Boolean]";function lMe(e){return e===!0||e===!1||iMe(e)&&oMe(e)==sMe}wY.exports=lMe});var NY=ee((X1t,DY)=>{"use strict";var OMe=Math.ceil,MMe=Math.max;function RMe(e,t,r,n){for(var a=-1,o=MMe(OMe((t-e)/(r||1)),0),i=Array(o);o--;)i[n?o:++a]=e,e+=r;return i}DY.exports=RMe});var B3=ee((Y1t,jY)=>{"use strict";var DMe=s5(),zY=1/0,NMe=17976931348623157e292;function zMe(e){if(!e)return e===0?e:0;if(e=DMe(e),e===zY||e===-zY){var t=e<0?-1:1;return t*NMe}return e===e?e:0}jY.exports=zMe});var FY=ee((Q1t,BY)=>{"use strict";var jMe=NY(),BMe=e0(),F3=B3();function FMe(e){return function(t,r,n){return n&&typeof n!="number"&&BMe(t,r,n)&&(r=n=void 0),t=F3(t),r===void 0?(r=t,t=0):r=F3(r),n=n===void 0?t<r?1:-1:F3(n),jMe(t,r,n,e)}}BY.exports=FMe});var U3=ee((ewt,UY)=>{"use strict";var UMe=FY(),qMe=UMe();UY.exports=qMe});var eQ=ee((dwt,QY)=>{"use strict";var tRe=tw();function rRe(e,t){var r;return tRe(e,function(n,a,o){return r=t(n,a,o),!r}),!!r}QY.exports=rRe});var rQ=ee((fwt,tQ)=>{"use strict";var nRe=CP(),aRe=Bs(),oRe=eQ(),iRe=oa(),sRe=e0();function lRe(e,t,r){var n=iRe(e)?nRe:oRe;return r&&sRe(e,t,r)&&(t=void 0),n(e,aRe(t,3))}tQ.exports=lRe});var oQ=ee((mwt,aQ)=>{"use strict";var nQ=e5();function uRe(e,t,r){t=="__proto__"&&nQ?nQ(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}aQ.exports=uRe});var sQ=ee((hwt,iQ)=>{"use strict";var cRe=oQ(),dRe=XP(),fRe=Bs();function pRe(e,t){var r={};return t=fRe(t,3),dRe(e,function(n,a,o){cRe(r,a,t(n,a,o))}),r}iQ.exports=pRe});var uQ=ee((gwt,lQ)=>{"use strict";function mRe(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}lQ.exports=mRe});var dQ=ee((vwt,cQ)=>{"use strict";var hRe=tw();function gRe(e,t){var r=!0;return hRe(e,function(n,a,o){return r=!!t(n,a,o),r}),r}cQ.exports=gRe});var H3=ee((ywt,fQ)=>{"use strict";var vRe=uQ(),yRe=dQ(),bRe=Bs(),xRe=oa(),wRe=e0();function _Re(e,t,r){var n=xRe(e)?vRe:yRe;return r&&wRe(e,t,r)&&(t=void 0),n(e,bRe(t,3))}fQ.exports=_Re});var OQ=ee((Fwt,$Q)=>{"use strict";var VRe=Bs(),ZRe=Jf(),HRe=Qg();function GRe(e){return function(t,r,n){var a=Object(t);if(!ZRe(t)){var o=VRe(r,3);t=HRe(t),r=function(s){return o(a[s],s,a)}}var i=e(t,r,n);return i>-1?a[o?t[i]:i]:void 0}}$Q.exports=GRe});var RQ=ee((Uwt,MQ)=>{"use strict";var WRe=B3();function KRe(e){var t=WRe(e),r=t%1;return t===t?r?t-r:t:0}MQ.exports=KRe});var NQ=ee((qwt,DQ)=>{"use strict";var JRe=HP(),XRe=Bs(),YRe=RQ(),QRe=Math.max;function e9e(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:YRe(r);return a<0&&(a=QRe(n+a,0)),JRe(e,XRe(t,3),a)}DQ.exports=e9e});var jQ=ee((Vwt,zQ)=>{"use strict";var t9e=OQ(),r9e=NQ(),n9e=t9e(r9e);zQ.exports=n9e});var qee=ee((xSt,gA)=>{"use strict";var EDe=Object.prototype.hasOwnProperty,ca="~";function hv(){}Object.create&&(hv.prototype=Object.create(null),new hv().__proto__||(ca=!1));function LDe(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function Uee(e,t,r,n,a){if(typeof r!="function")throw new TypeError("The listener must be a function");var o=new LDe(r,n||e,a),i=ca?ca+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],o]:e._events[i].push(o):(e._events[i]=o,e._eventsCount++),e}function z_(e,t){--e._eventsCount===0?e._events=new hv:delete e._events[t]}function Hn(){this._events=new hv,this._eventsCount=0}Hn.prototype.eventNames=function(){var t=[],r,n;if(this._eventsCount===0)return t;
2for(n in r=this._events)EDe.call(r,n)&&t.push(ca?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(r)):t};Hn.prototype.listeners=function(t){var r=ca?ca+t:t,n=this._events[r];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,o=n.length,i=new Array(o);a<o;a++)i[a]=n[a].fn;return i};Hn.prototype.listenerCount=function(t){var r=ca?ca+t:t,n=this._events[r];return n?n.fn?1:n.length:0};Hn.prototype.emit=function(t,r,n,a,o,i){var s=ca?ca+t:t;if(!this._events[s])return!1;var l=this._events[s],u=arguments.length,d,f;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,r),!0;case 3:return l.fn.call(l.context,r,n),!0;case 4:return l.fn.call(l.context,r,n,a),!0;case 5:return l.fn.call(l.context,r,n,a,o),!0;case 6:return l.fn.call(l.context,r,n,a,o,i),!0}for(f=1,d=new Array(u-1);f<u;f++)d[f-1]=arguments[f];l.fn.apply(l.context,d)}else{var m=l.length,h;for(f=0;f<m;f++)switch(l[f].once&&this.removeListener(t,l[f].fn,void 0,!0),u){case 1:l[f].fn.call(l[f].context);break;case 2:l[f].fn.call(l[f].context,r);break;case 3:l[f].fn.call(l[f].context,r,n);break;case 4:l[f].fn.call(l[f].context,r,n,a);break;default:if(!d)for(h=1,d=new Array(u-1);h<u;h++)d[h-1]=arguments[h];l[f].fn.apply(l[f].context,d)}}return!0};Hn.prototype.on=function(t,r,n){return Uee(this,t,r,n,!1)};Hn.prototype.once=function(t,r,n){return Uee(this,t,r,n,!0)};Hn.prototype.removeListener=function(t,r,n,a){var o=ca?ca+t:t;if(!this._events[o])return this;if(!r)return z_(this,o),this;var i=this._events[o];if(i.fn)i.fn===r&&(!a||i.once)&&(!n||i.context===n)&&z_(this,o);else{for(var s=0,l=[],u=i.length;s<u;s++)(i[s].fn!==r||a&&!i[s].once||n&&i[s].context!==n)&&l.push(i[s]);l.length?this._events[o]=l.length===1?l[0]:l:z_(this,o)}return this};Hn.prototype.removeAllListeners=function(t){var r;return t?(r=ca?ca+t:t,this._events[r]&&z_(this,r)):(this._events=new hv,this._eventsCount=0),this};Hn.prototype.off=Hn.prototype.removeListener;Hn.prototype.addListener=Hn.prototype.on;Hn.prefixed=ca;Hn.EventEmitter=Hn;typeof gA<"u"&&(gA.exports=Hn)});var Hue=ee((iAt,Zue)=>{"use strict";function fHe(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,n=0;return function(...o){clearTimeout(r);let i=Date.now(),s=i-n,l=t-s;l<=0?(n=i,e.apply(this,o)):r=setTimeout(()=>{n=Date.now(),e.apply(this,o)},l)}}Zue.exports=fHe});var kT=H(vj());var yj="/assets/marker-icon-2V3QKKVC.png";var bj="/assets/marker-icon-2x-SP63CLEO.png";var xj="/assets/marker-shadow-MEXDWUU7.png";delete kT.Icon.Default.prototype._getIconUrl;kT.Icon.Default.mergeOptions({iconRetinaUrl:bj,iconUrl:yj,shadowUrl:xj});var $ve=H(ve()),Ove=H(_j());var oXt=H(ve());var qt=H(ve()),Lbe=H(Mx());var Je=H(ve());function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}var ei;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ei||(ei={}));var Sj="popstate";function Pj(e){e===void 0&&(e={});function t(n,a){let{pathname:o,search:i,hash:s}=n.location;return CT("",{pathname:o,search:i,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function r(n,a){return typeof a=="string"?a:xc(a)}return qye(t,r,null,e)}function Sr(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function PT(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Uye(){return Math.random().toString(36).substr(2,8)}function kj(e,t){return{usr:e.state,key:e.key,idx:t}}function CT(e,t,r,n){return r===void 0&&(r=null),ig({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?As(t):t,{state:r,key:t&&t.key||n||Uye()})}function xc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function As(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function qye(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,s=ei.Pop,l=null,u=d();u==null&&(u=0,i.replaceState(ig({},i.state,{idx:u}),""));function d(){return(i.state||{idx:null}).idx}function f(){s=ei.Pop;let b=d(),w=b==null?null:b-u;u=b,l&&l({action:s,location:y.location,delta:w})}function m(b,w){s=ei.Push;let S=CT(y.location,b,w);r&&r(S,b),u=d()+1;let x=kj(S,u),C=y.createHref(S);try{i.pushState(x,"",C)}
vendor: 7,494 bytes, line 2
2catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;a.location.assign(C)}o&&l&&l({action:s,location:y.location,delta:1})}function h(b,w){s=ei.Replace;let S=CT(y.location,b,w);r&&r(S,b),u=d();let x=kj(S,u),C=y.createHref(S);i.replaceState(x,"",C),o&&l&&l({action:s,location:y.location,delta:0})}function g(b){let w=a.location.origin!=="null"?a.location.origin:a.location.href,S=typeof b=="string"?b:xc(b);return S=S.replace(/ $/,"%20"),Sr(w,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,w)}let y={get action(){return s},get location(){return e(a,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Sj,f),l=b,()=>{a.removeEventListener(Sj,f),l=null}},createHref(b){return t(a,b)},createURL:g,encodeLocation(b){let w=g(b);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:m,replace:h,go(b){return i.go(b)}};return y}var Ij;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Ij||(Ij={}));function Ux(e,t,r){return r===void 0&&(r="/"),Vye(e,t,r,!1)}function Vye(e,t,r,n){let a=typeof t=="string"?As(t):t,o=ql(a.pathname||"/",r);if(o==null)return null;let i=Aj(e);Zye(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=Lj(o);s=ebe(i[l],u,n)}return s}function Aj(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(Sr(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Ri([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(Sr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Aj(o.children,t,d,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Yye(u,o.index),routesMeta:d})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of Ej(o.path))a(o,i,l)}),t}function Ej(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Ej(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Zye(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qye(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Hye=/^:[\w-]+$/,Gye=3,Wye=2,Kye=1,Jye=10,Xye=-2,Tj=e=>e==="*";function Yye(e,t){let r=e.split("/"),n=r.length;return r.some(Tj)&&(n+=Xye),t&&(n+=Wye),r.filter(a=>!Tj(a)).reduce((a,o)=>a+(Hye.test(o)?Gye:o===""?Kye:Jye),n)}function Qye(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function ebe(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",f=Ul({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),m=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=Ul({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),i.push({params:a,pathname:Ri([o,f.pathname]),pathnameBase:obe(Ri([o,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(o=Ri([o,f.pathnameBase]))}return i}function Ul(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=tbe(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,d,f)=>{let{paramName:m,isOptional:h}=d;if(m==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}let g=s[f];return h&&!g?u[m]=void 0:u[m]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function tbe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),PT(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Lj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return PT(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ql(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var rbe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,nbe=e=>rbe.test(e);function AT(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?As(e):e,o;if(r)if(nbe(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),PT(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=Cj(r.substring(1),"/"):o=Cj(r,t)}else o=t;return{pathname:o,search:ibe(n),hash:sbe(a)}}function Cj(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function TT(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function abe(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function ET(e,t){let r=abe(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function LT(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=As(e):(a=ig({},e),Sr(!a.pathname||!a.pathname.includes("?"),TT("?","pathname","search",a)),Sr(!a.pathname||!a.pathname.includes("#"),TT("#","pathname","hash",a)),Sr(!a.search||!a.search.includes("#"),TT("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let f=t.length-1;if(!n&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=AT(a,s),u=i&&i!=="/"&&i.endsWith("/"),d=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var Ri=e=>e.join("/").replace(/\/\/+/g,"/"),obe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ibe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sbe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function qx(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var $j=["post","put","patch","delete"],_nt=new Set($j),lbe=["get",...$j],Snt=new Set(lbe);function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sg.apply(this,arguments)}var mf=Je.createContext(null),Zx=Je.createContext(null);var Di=Je.createContext(null),ug=Je.createContext(null),Es=Je.createContext({outlet:null,matches:[],isDataRoute:!1}),Rj=Je.createContext(null);function OT(e,t){let{relative:r}=t===void 0?{}:t;hf()||Sr(!1);let{basename:n,navigator:a}=Je.useContext(Di),{hash:o,pathname:i,search:s}=gf(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:Ri([n,i])),a.createHref({pathname:l,search:s,hash:o})}function hf(){return Je.useContext(ug)!=null}function Ls(){return hf()||Sr(!1),Je.useContext(ug).location}function Dj(e){Je.useContext(Di).static||Je.useLayoutEffect(e)}function cg(){let{isDataRoute:e}=Je.useContext(Es);return e?kbe():gbe()}function gbe(){hf()||Sr(!1);let e=Je.useContext(mf),{basename:t,future:r,navigator:n}=Je.useContext(Di),{matches:a}=Je.useContext(Es),{pathname:o}=Ls(),i=JSON.stringify(ET(a,r.v7_relativeSplatPath)),s=Je.useRef(!1);return Dj(()=>{s.current=!0}),Je.useCallback(function(u,d){if(d===void 0&&(d={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let f=LT(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Ri([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,o,e])}function gf(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=Je.useContext(Di),{matches:a}=Je.useContext(Es),{pathname:o}=Ls(),i=JSON.stringify(ET(a,n.v7_relativeSplatPath));return Je.useMemo(()=>LT(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function Nj(e,t){return zj(e,t)}function zj(e,t,r,n){hf()||Sr(!1);let{navigator:a}=Je.useContext(Di),{matches:o}=Je.useContext(Es),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route,f=Ls(),m;if(t){var h;let S=typeof t=="string"?As(t):t;u==="/"||(h=S.pathname)!=null&&h.startsWith(u)||Sr(!1),m=S}else m=f;let g=m.pathname||"/",y=g;if(u!=="/"){let S=u.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(S.length).join("/")}let b=Ux(e,{pathname:y}),w=xbe(b&&b.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:Ri([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Ri([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),o,r,n);return t&&w?Je.createElement(ug.Provider,{value:{location:sg({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:ei.Pop}},w):w}function vbe(){let e=Fj(),t=qx(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n};return Je.createElement(Je.Fragment,null,Je.createElement("h2",null,"Unexpected Application Error!"),Je.createElement("h3",{style:{fontStyle:"italic"}},t),r?Je.createElement("pre",{style:a},r):null,null)}var ybe=Je.createElement(vbe,null),$T=class extends Je.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?Je.createElement(Es.Provider,{value:this.props.routeContext},Je.createElement(Rj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function bbe(e){let{routeContext:t,match:r,children:n}=e,a=Je.useContext(mf);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),Je.createElement(Es.Provider,{value:t},n)}function xbe(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let d=i.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);d>=0||Sr(!1),i=i.slice(0,Math.min(i.length,d+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:h}=r,g=f.route.loader&&m[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((d,f,m)=>{let h,g=!1,y=null,b=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||ybe,l&&(u<0&&m===0?(
2Ibe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):u===m&&(g=!0,b=f.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,m+1)),S=()=>{let x;return h?x=y:g?x=b:f.route.Component?x=Je.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,Je.createElement(bbe,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?Je.createElement($T,{location:r.location,revalidation:r.revalidation,component:y,error:h,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}var jj=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(jj||{}),Vx=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Vx||{});function wbe(e){let t=Je.useContext(mf);return t||Sr(!1),t}function _be(e){let t=Je.useContext(Zx);return t||Sr(!1),t}function Sbe(e){let t=Je.useContext(Es);return t||Sr(!1),t}function Bj(e){let t=Sbe(e),r=t.matches[t.matches.length-1];return r.route.id||Sr(!1),r.route.id}function Fj(){var e;let t=Je.useContext(Rj),r=_be(Vx.UseRouteError),n=Bj(Vx.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function kbe(){let{router:e}=wbe(jj.UseNavigateStable),t=Bj(Vx.UseNavigateStable),r=Je.useRef(!1);return Dj(()=>{r.current=!0}),Je.useCallback(function(a,o){o===void 0&&(o={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,sg({fromRouteId:t},o)))},[e,t])}var Oj={};function Ibe(e,t,r){!t&&!Oj[e]&&(Oj[e]=!0)}var pf=(e,t,r)=>(""+t+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."),void 0);function Uj(e,t){e?.v7_startTransition===void 0&&pf("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&pf("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&pf("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&pf("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&pf("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&pf("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}var Tbe="startTransition",Ent=Je[Tbe];function Vl(e){Sr(!1)}function MT(e){let{basename:t="/",children:r=null,location:n,navigationType:a=ei.Pop,navigator:o,static:i=!1,future:s}=e;hf()&&Sr(!1);let l=t.replace(/^\/*/,"/"),u=Je.useMemo(()=>({basename:l,navigator:o,static:i,future:sg({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=As(n));let{pathname:d="/",search:f="",hash:m="",state:h=null,key:g="default"}=n,y=Je.useMemo(()=>{let b=ql(d,l);return b==null?null:{location:{pathname:b,search:f,hash:m,state:h,key:g},navigationType:a}},[l,d,f,m,h,g,a]);return y==null?null:Je.createElement(Di.Provider,{value:u},Je.createElement(ug.Provider,{children:r,value:y}))}function RT(e){let{children:t,location:r}=e;return Nj(lg(t),r)}var Lnt=new Promise(()=>{});function lg(e,t){t===void 0&&(t=[]);let r=[];
2return Je.Children.forEach(e,(n,a)=>{if(!Je.isValidElement(n))return;let o=[...t,a];if(n.type===Je.Fragment){r.push.apply(r,lg(n.props.children,o));return}n.type!==Vl&&Sr(!1),!n.props.index||!n.props.children||Sr(!1);let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=lg(n.props.children,o)),r.push(i)}),r}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hx.apply(this,arguments)}function Zj(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function $be(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Obe(e,t){return e.button===0&&(!t||t==="_self")&&!$be(e)}var Mbe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Rbe=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"];var Dbe="6";try{window.__reactRouterVersion=Dbe}catch{}var Nbe=qt.createContext({isTransitioning:!1});var zbe="startTransition",qj=qt[zbe],jbe="flushSync",aat=Lbe[jbe],Bbe="useId",oat=qt[Bbe];function Hj(e){let{basename:t,children:r,future:n,window:a}=e,o=qt.useRef();o.current==null&&(o.current=Pj({window:a,v5Compat:!0}));let i=o.current,[s,l]=qt.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},d=qt.useCallback(f=>{u&&qj?qj(()=>l(f)):l(f)},[l,u]);return qt.useLayoutEffect(()=>i.listen(d),[i,d]),qt.useEffect(()=>Uj(n),[n]),qt.createElement(MT,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:i,future:n})}var Fbe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ube=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qbe=qt.forwardRef(function(t,r){let{onClick:n,relative:a,reloadDocument:o,replace:i,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f}=t,m=Zj(t,Mbe),{basename:h}=qt.useContext(Di),g,y=!1;if(typeof u=="string"&&Ube.test(u)&&(g=u,Fbe))try{let x=new URL(window.location.href),C=u.startsWith("//")?new URL(x.protocol+u):new URL(u),I=ql(C.pathname,h);C.origin===x.origin&&I!=null?u=I+C.search+C.hash:y=!0}catch{}let b=OT(u,{relative:a}),w=Zbe(u,{replace:i,state:s,target:l,preventScrollReset:d,relative:a,viewTransition:f});function S(x){n&&n(x),x.defaultPrevented||w(x)}return qt.createElement("a",Hx({},m,{href:g||b,onClick:y||o?n:S,ref:r,target:l}))}),Gj=qt.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:s,to:l,viewTransition:u,children:d}=t,f=Zj(t,Rbe),m=gf(l,{relative:f.relative}),h=Ls(),g=qt.useContext(Zx),{navigator:y,basename:b}=qt.useContext(Di),w=g!=null&&Hbe(m)&&u===!0,S=y.encodeLocation?y.encodeLocation(m).pathname:m.pathname,x=h.pathname,C=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;a||(x=x.toLowerCase(),C=C?C.toLowerCase():null,S=S.toLowerCase()),C&&b&&(C=ql(C,b)||C);let I=S!=="/"&&S.endsWith("/")?S.length-1:S.length,A=x===S||!i&&x.startsWith(S)&&x.charAt(I)==="/",O=C!=null&&(C===S||!i&&C.startsWith(S)&&C.charAt(S.length)==="/"),F={isActive:A,isPending:O,isTransitioning:w},q=A?n:void 0,G;typeof o=="function"?G=o(F):G=[o,A?"active":null,O?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let J=typeof s=="function"?s(F):s;return qt.createElement(qbe,Hx({},f,{"aria-current":q,className:G,ref:r,style:J,to:l,viewTransition:u}),typeof d=="function"?d(F):d)});var DT;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DT||(DT={}));var Vj;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vj||(Vj={}));function Vbe(e){let t=qt.useContext(mf);return t||Sr(!1),t}function Zbe(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,l=cg(),u=Ls(),d=gf(e,{relative:i});return qt.useCallback(f=>{if(Obe(f,r)){f.preventDefault();let m=n!==void 0?n:xc(u)===xc(d);l(e,{replace:m,state:a,preventScrollReset:o,relative:i,viewTransition:s})}},[u,l,d,n,a,r,e,o,i,s])}function Hbe(e,t){t===void 0&&(t={});let r=qt.useContext(Nbe);r==null&&Sr(!1);let{basename:n}=Vbe(DT.useViewTransitionState),a=gf(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=ql(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=ql(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Ul(a.pathname,i)!=null||Ul(a.pathname,o)!=null}var lr=H(ve(),1),Gbe=(e,t,r,n,a,o,i,s)=>
2{let l=document.documentElement,u=["light","dark"];function d(h){(Array.isArray(e)?e:[e]).forEach(g=>{let y=g==="class",b=y&&o?a.map(w=>o[w]||w):a;y?(l.classList.remove(...b),l.classList.add(o&&o[h]?o[h]:h)):l.setAttribute(g,h)}),f(h)}function f(h){s&&u.includes(h)&&(l.style.colorScheme=h)}function m(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(n)d(n);else try{let h=localStorage.getItem(t)||r,g=i&&h==="system"?m():h;d(g)}catch{}},Wj=["light","dark"],Kj="(prefers-color-scheme: dark)",Wbe=typeof window>"u",Jj=lr.createContext(void 0);var Xj=e=>lr.useContext(Jj)?lr.createElement(lr.Fragment,null,e.children):lr.createElement(Jbe,{...e}),Kbe=["light","dark"],Jbe=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:n=!0,storageKey:a="theme",themes:o=Kbe,defaultTheme:i=r?"system":"light",attribute:s="data-theme",value:l,children:u,nonce:d,scriptProps:f})=>{let[m,h]=lr.useState(()=>Ybe(a,i)),[g,y]=lr.useState(()=>m==="system"?NT():m),b=l?Object.values(l):o,w=lr.useCallback(I=>{let A=I;if(!A)return;I==="system"&&r&&(A=NT());let O=l?l[A]:A,F=t?Qbe(d):null,q=document.documentElement,G=J=>{J==="class"?(q.classList.remove(...b),O&&q.classList.add(O)):J.startsWith("data-")&&(O?q.setAttribute(J,O):q.removeAttribute(J))};if(Array.isArray(s)?s.forEach(G):G(s),n){let J=Wj.includes(i)?i:null,Y=Wj.includes(A)?A:J;q.style.colorScheme=Y}F?.()},[d]),S=lr.useCallback(I=>{let A=typeof I=="function"?I(m):I;h(A);try{localStorage.setItem(a,A)}catch{}},[m]),x=lr.useCallback(I=>{let A=NT(I);y(A),m==="system"&&r&&!e&&w("system")},[m,e]);lr.useEffect(()=>{let I=window.matchMedia(Kj);return I.addListener(x),x(I),()=>I.removeListener(x)},[x]),lr.useEffect(()=>{let I=A=>{A.key===a&&(A.newValue?h(A.newValue):S(i))};return window.addEventListener("storage",I),()=>window.removeEventListener("storage",I)},[S]),lr.useEffect(()=>{w(e??m)},[e,m]);let C=lr.useMemo(()=>({theme:m,setTheme:S,forcedTheme:e,resolvedTheme:m==="system"?g:m,themes:r?[...o,"system"]:o,systemTheme:r?g:void 0}),[m,S,e,g,r,o]);return lr.createElement(Jj.Provider,{value:C},lr.createElement(Xbe,{forcedTheme:e,storageKey:a,attribute:s,enableSystem:r,enableColorScheme:n,defaultTheme:i,value:l,themes:o,nonce:d,scriptProps:f}),u)},Xbe=lr.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:a,defaultTheme:o,value:i,themes:s,nonce:l,scriptProps:u})=>{let d=JSON.stringify([r,t,o,e,s,i,n,a]).slice(1,-1);return lr.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${Gbe.toString()})(${d})`}})}),Ybe=(e,t)=>{if(Wbe)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},Qbe=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},NT=e=>(e||(e=window.matchMedia(Kj)),e.matches?"dark":"light");var Re=H(ve(),1),eB=H(Mx(),1);function exe(e){if(!e||typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}var txe=e=>{switch(e){case"success":return axe;case"info":return ixe;case"warning":return oxe;case"error":return sxe;default:return null}},rxe=Array(12).fill(0),nxe=({visible:e,className:t})=>Re.default.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},Re.default.createElement("div",{className:"sonner-spinner"},rxe.map((r,n)=>Re.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),axe=Re.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),oxe=Re.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
2currentColor",height:"20",width:"20"},Re.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ixe=Re.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),sxe=Re.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Re.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),lxe=Re.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Re.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Re.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uxe=()=>{let[e,t]=Re.default.useState(document.hidden);return Re.default.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},zT=1,jT=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;let{message:n,...a}=t,o=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:zT++,i=this.toasts.find(l=>l.id===o),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...t,id:o,title:n}
2),{...l,...t,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...a,dismissible:s,id:o}),o},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(n=>n({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let n;r.loading!==void 0&&(n=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));let a=Promise.resolve(t instanceof Function?t():t),o=n!==void 0,i,s=a.then(async u=>{if(i=["resolve",u],Re.default.isValidElement(u))o=!1,this.create({id:n,type:"default",message:u});else if(dxe(u)&&!u.ok){o=!1;let f=typeof r.error=="function"?await r.error(`HTTP error! status: ${u.status}`):r.error,m=typeof r.description=="function"?await r.description(`HTTP error! status: ${u.status}`):r.description,g=typeof f=="object"&&!Re.default.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:m,...g})}else if(u instanceof Error){o=!1;let f=typeof r.error=="function"?await r.error(u):r.error,m=typeof r.description=="function"?await r.description(u):r.description,g=typeof f=="object"&&!Re.default.isValidElement(f)?f:{message:f};this.create({id:n,type:"error",description:m,...g})}else if(r.success!==void 0){o=!1;let f=typeof r.success=="function"?await r.success(u):r.success,m=typeof r.description=="function"?await r.description(u):r.description,g=typeof f=="object"&&!Re.default.isValidElement(f)?f:{message:f};this.create({id:n,type:"success",description:m,...g})}}).catch(async u=>{if(i=["reject",u],r.error!==void 0){o=!1;let d=typeof r.error=="function"?await r.error(u):r.error,f=typeof r.description=="function"?await r.description(u):r.description,h=typeof d=="object"&&!Re.default.isValidElement(d)?d:{message:d};this.create({id:n,type:"error",description:f,...h})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),r.finally==null||r.finally.call(r)}),l=()=>new Promise((u,d)=>s.then(()=>i[0]==="reject"?d(i[1]):u(i[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(t,r)=>{let n=r?.id||zT++;return this.create({jsx:t(n),id:n,...r}),n},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Ta=new jT,cxe=(e,t)=>{let r=t?.id||zT++;return Ta.addToast({title:e,...t,id:r}),r},dxe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",fxe=cxe,pxe=()=>Ta.toasts,mxe=()=>Ta.getActiveToasts(),tn=Object.assign(fxe,{success:Ta.success,info:Ta.info,warning:Ta.warning,error:Ta.error,custom:Ta.custom,message:Ta.message,promise:Ta.promise,dismiss:Ta.dismiss,loading:Ta.loading},{getHistory:pxe,getToasts:mxe});ex
vendor: 14,874 bytes, line 2
2e("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
2Gx(e){return e.label!==void 0}var hxe=3,gxe="24px",vxe="16px",Yj=4e3,yxe=356,bxe=14,xxe=45,wxe=200;function Ni(...e){return e.filter(Boolean).join(" ")}function _xe(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}var Sxe=e=>{var t,r,n,a,o,i,s,l,u;let{invert:d,toast:f,unstyled:m,interacting:h,setHeights:g,visibleToasts:y,heights:b,index:w,toasts:S,exp
2anded:x,removeToast:C,defaultRichColors:I,closeButton:A,style:O,cancelButtonStyle:F,actionButtonStyle:q,className:G="",descriptionClassName:J="",duration:Y,position:le,gap:re,expandByDefault:oe,classNames:$,icons:z,closeButtonAriaLabel:R="Close toast"}=e,[N,U]=Re.default.useState(null),[B,V]=Re.default.useState(null),[Z,Q]=Re.default.useState(!1),[ue,ge]=Re.default.useState(!1),[Te,De]=Re.default.useState(!1),[me,Ze]=Re.default.useState(!1),[Oe,fe]=Re.default.useState(!1),[Mt,at]=Re.default.useState(0),[Ut,zt]=Re.default.useState(0),Qt=Re.default.useRef(f.duration||Y||Yj),Vr=Re.default.useRef(null),Dt=Re.default.useRef(null),dn=w===0,fn=w+1<=y,sr=f.type,_r=f.dismissible!==!1,Kt=f.className||"",Ko=f.descriptionClassName||"",ho=Re.default.useMemo(()=>b.findIndex(bt=>bt.toastId===f.id)||0,[b,f.id]),Nl=Re.default.useMemo(()=>{var bt;return(bt=f.closeButton)!=null?bt:A},[f.closeButton,A]),Ai=Re.default.useMemo(()=>f.duration||Y||Yj,[f.duration,Y]),Jo=Re.default.useRef(0),zl=Re.default.useRef(0),Zh=Re.default.useRef(0),Ei=Re.default.useRef(null),[dx,H6]=le.split("-"),jl=Re.default.useMemo(()=>b.reduce((bt,Yr,In)=>In>=ho?bt:bt+Yr.height,0),[b,ho]),fx=uxe(),G6=f.invert||d,Xd=sr==="loading";zl.current=Re.default.useMemo(()=>ho*re+jl,[ho,jl]),Re.default.useEffect(()=>{Qt.current=Ai},[Ai]),Re.default.useEffect(()=>{Q(!0)},[]),Re.default.useEffect(()=>{let bt=Dt.current;if(bt){let Yr=bt.getBoundingClientRect().height;return zt(Yr),g(In=>[{toastId:f.id,height:Yr,position:f.position},...In]),()=>g(In=>In.filter(Ln=>Ln.toastId!==f.id))}},[g,f.id]),Re.default.useLayoutEffect(()=>{if(!Z)return;let bt=Dt.current,Yr=bt.style.height;bt.style.height="auto";let In=bt.getBoundingClientRect().height;bt.style.height=Yr,zt(In),g(Ln=>Ln.find(pn=>pn.toastId===f.id)?Ln.map(pn=>pn.toastId===f.id?{...pn,height:In}:pn):[{toastId:f.id,height:In,position:f.position},...Ln])},[Z,f.title,f.description,g,f.id,f.jsx,f.action,f.cancel]);let Xo=Re.default.useCallback(()=>{ge(!0),at(zl.current),g(bt=>bt.filter(Yr=>Yr.toastId!==f.id)),setTimeout(()=>{C(f)},wxe)},[f,C,g,zl]);Re.default.useEffect(()=>{if(f.promise&&sr==="loading"||f.duration===1/0||f.type==="loading")return;let bt;return x||h||fx?(()=>{if(Zh.current<Jo.current){let Ln=new Date().getTime()-Jo.current;Qt.current=Qt.current-Ln}Zh.current=new Date().getTime()})():Qt.current!==1/0&&(Jo.current=new Date().getTime(),bt=setTimeout(()=>{f.onAutoClose==null||f.onAutoClose.call(f,f),Xo()},Qt.current)),()=>clearTimeout(bt)},[x,h,f,sr,fx,Xo]),Re.default.useEffect(()=>{f.delete&&(Xo(),f.onDismiss==null||f.onDismiss.call(f,f))},[Xo,f.delete]);function px(){var bt;if(z?.loading){var Yr;return Re.default.createElement("div",{className:Ni($?.loader,f==null||(Yr=f.classNames)==null?void 0:Yr.loader,"sonner-loader"),"data-visible":sr==="loading"},z.loading)}return Re.default.createElement(nxe,{className:Ni($?.loader,f==null||(bt=f.classNames)==null?void 0:bt.loader),visible:sr==="loading"})}let W6=f.icon||z?.[sr]||txe(sr);var mx,hx;return Re.default.createElement("li",{tabIndex:0,ref:Dt,className:Ni(G,Kt,$?.toast,f==null||(t=f.classNames)==null?void 0:t.toast,$?.default,$?.[sr],f==null||(r=f.classNames)==null?void 0:r[sr]),"data-sonner-toast":"","data-rich-colors":(mx=f.richColors)!=null?mx:I,"data-styled":!(f.jsx||f.unstyled||m),"data-mounted":Z,"data-promise":!!f.promise,"data-swiped":Oe,"data-removed":ue,"data-visible":fn,"data-y-position":dx,"data-x-position":H6,"data-index":w,"data-front":dn,"data-swiping":Te,"data-dismissible":_r,"data-type":sr,"data-invert":G6,"data-swipe-out":me,"data-swipe-direction":B,"data-expanded":!!(x||oe&&Z),"data-testid":f.testId,style:{"--index":w,"--toasts-before":w,"--z-index":S.length-w,"--offset":`${ue?Mt:zl.current}px`,"--initial-height":oe?"auto":`${Ut}px`,...O,...f.style},onDragEnd:()=>{De(!1),U(null),Ei.current=null},onPointerDown:bt=>{bt.button!==2&&(Xd||!_r||(Vr.current=new Date,at(zl.current),bt.target.setPointerCapture(bt.pointerId),bt.target.tagName!=="BUTTON"&&(De(!0),Ei.current={x:bt.clientX,y:bt.clientY})))},onPointerUp:()=>{var bt,Yr,In;if(me||!_r)return;Ei.current=null;let Ln=Number(((bt=Dt.current)==null?void 0:bt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Yd=Number(((Yr=Dt.current)==null?void 0:Yr.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pn=new Date().getTime()-((In=Vr.current)==null?void 0:In.getTime()),ka=N==="x"?Ln:Yd,Qd=Math.abs(ka)/pn;if(Math.abs(ka)>=xxe||Qd>.11){at(zl.current),f.onDismiss==null||f.onDismiss.call(f,f),V(N==="x"?Ln>0?"right":"left":Yd>0?"down":"up"),Xo(),Ze(!0);return}else{var Nr,Ke;(Nr=Dt.current)==null||Nr.style.setProperty("--swipe-amount-x","0px"),(Ke=Dt.current)==null||Ke.style.setProperty("--swipe-amount-y","0px")}fe(!1),De(!1),U(null)},onPointerMove:bt=>{var Yr,In,Ln;if(!Ei.current||!_r||((Yr=window.getSelection())==null?void 0:Yr.toString().length)>0)return;let pn=bt.clientY-Ei.current.y,ka=bt.clientX-Ei.current.x;var Qd;let Nr=(Qd=e.swipeDirections)!=null?Qd:_xe(le);!N&&(Math.abs(ka)>1||Math.abs(pn)>1)&&U(Math.abs(ka)>Math.abs(pn)?"x":"y");let Ke={x:0,y:0},Hh=Li=>1/(1.5+Math.abs(Li)/20);if(N==="y"){if(Nr.includes("top")||Nr.includes("bottom"))if(Nr.includes("top")&&pn<0||Nr.includes("bottom")&&pn>0)Ke.y=pn;else{let Li=pn*Hh(pn);Ke.y=Math.abs(Li)<Math.abs(pn)?Li:pn}}else if(N==="x"&&(Nr.includes("left")||Nr.includes("right")))if(Nr.includes("left")&&ka<0||Nr.
2includes("right")&&ka>0)Ke.x=ka;else{let Li=ka*Hh(ka);Ke.x=Math.abs(Li)<Math.abs(ka)?Li:ka}(Math.abs(Ke.x)>0||Math.abs(Ke.y)>0)&&fe(!0),(In=Dt.current)==null||In.style.setProperty("--swipe-amount-x",`${Ke.x}px`),(Ln=Dt.current)==null||Ln.style.setProperty("--swipe-amount-y",`${Ke.y}px`)}},Nl&&!f.jsx&&sr!=="loading"?Re.default.createElement("button",{"aria-label":R,"data-disabled":Xd,"data-close-button":!0,onClick:Xd||!_r?()=>{}:()=>{Xo(),f.onDismiss==null||f.onDismiss.call(f,f)},className:Ni($?.closeButton,f==null||(n=f.classNames)==null?void 0:n.closeButton)},(hx=z?.close)!=null?hx:lxe):null,(sr||f.icon||f.promise)&&f.icon!==null&&(z?.[sr]!==null||f.icon)?Re.default.createElement("div",{"data-icon":"",className:Ni($?.icon,f==null||(a=f.classNames)==null?void 0:a.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||px():null,f.type!=="loading"?W6:null):null,Re.default.createElement("div",{"data-content":"",className:Ni($?.content,f==null||(o=f.classNames)==null?void 0:o.content)},Re.default.createElement("div",{"data-title":"",className:Ni($?.title,f==null||(i=f.classNames)==null?void 0:i.title)},f.jsx?f.jsx:typeof f.title=="function"?f.title():f.title),f.description?Re.default.createElement("div",{"data-description":"",className:Ni(J,Ko,$?.description,f==null||(s=f.classNames)==null?void 0:s.description)},typeof f.description=="function"?f.description():f.description):null),Re.default.isValidElement(f.cancel)?f.cancel:f.cancel&&Gx(f.cancel)?Re.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||F,onClick:bt=>{Gx(f.cancel)&&_r&&(f.cancel.onClick==null||f.cancel.onClick.call(f.cancel,bt),Xo())},className:Ni($?.cancelButton,f==null||(l=f.classNames)==null?void 0:l.cancelButton)},f.cancel.label):null,Re.default.isValidElement(f.action)?f.action:f.action&&Gx(f.action)?Re.default.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||q,onClick:bt=>{Gx(f.action)&&(f.action.onClick==null||f.action.onClick.call(f.action,bt),!bt.defaultPrevented&&Xo())},className:Ni($?.actionButton,f==null||(u=f.classNames)==null?void 0:u.actionButton)},f.action.label):null)};function Qj(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function kxe(e,t){let r={};return[e,t].forEach((n,a)=>{let o=a===1,i=o?"--mobile-offset":"--offset",s=o?vxe:gxe;function l(u){["top","right","bottom","left"].forEach(d=>{r[`${i}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(u=>{n[u]===void 0?r[`${i}-${u}`]=s:r[`${i}-${u}`]=typeof n[u]=="number"?`${n[u]}px`:n[u]}):l(s)}),r}var tB=Re.default.forwardRef(function(t,r){let{id:n,invert:a,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:d,mobileOffset:f,theme:m="light",richColors:h,duration:g,style:y,visibleToasts:b=hxe,toastOptions:w,dir:S=Qj(),gap:x=bxe,icons:C,containerAriaLabel:I="Notifications"}=t,[A,O]=Re.default.useState([]),F=Re.default.useMemo(()=>n?A.filter(Z=>Z.toasterId===n):A.filter(Z=>!Z.toasterId),[A,n]),q=Re.default.useMemo(()=>Array.from(new Set([o].concat(F.filter(Z=>Z.position).map(Z=>Z.position)))),[F,o]),[G,J]=Re.default.useState([]),[Y,le]=Re.default.useState(!1),[re,oe]=Re.default.useState(!1),[$,z]=Re.default.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),R=Re.default.useRef(null),N=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),U=Re.default.useRef(null),B=Re.default.useRef(!1),V=Re.default.useCallback(Z=>{O(Q=>{var ue;return(ue=Q.find(ge=>ge.id===Z.id))!=null&&ue.delete||Ta.dismiss(Z.id),Q.filter(({id:ge})=>ge!==Z.id)})},[]);return Re.default.useEffect(()=>Ta.subscribe(Z=>{if(Z.dismiss){requestAnimationFrame(()=>{O(Q=>Q.map(ue=>ue.id===Z.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{eB.default.flushSync(()=>{O(Q=>{let ue=Q.findIndex(ge=>ge.id===Z.id);return ue!==-1?[...Q.slice(0,ue),{...Q[ue],...Z},...Q.slice(ue+1)]:[Z,...Q]})})})}),[A]),Re.default.useEffect(()=>{if(m!=="system"){z(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?z("dark"):z("light")),typeof window>"u")return;let Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:Q})=>{z(Q?"dark":"light")})}catch{Z.addListener(({matches:ue})=>{try{z(ue?"dark":"light")}catch(ge){console.error(ge)}})}},[m]),Re.default.useEffect(()=>{A.length<=1&&le(!1)},[A]),Re.default.useEffect(()=>{let Z=Q=>{var ue;if(i.every(De=>
2Q[De]||Q.code===De)){var Te;le(!0),(Te=R.current)==null||Te.focus()}Q.code==="Escape"&&(document.activeElement===R.current||(ue=R.current)!=null&&ue.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[i]),Re.default.useEffect(()=>{if(R.current)return()=>{U.current&&(U.current.focus({preventScroll:!0}),U.current=null,B.current=!1)}},[R.current]),Re.default.createElement("section",{ref:r,"aria-label":`${I} ${N}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((Z,Q)=>{var ue;let[ge,Te]=Z.split("-");return F.length?Re.default.createElement("ol",{key:Z,dir:S==="auto"?Qj():S,tabIndex:-1,ref:R,className:u,"data-sonner-toaster":!0,"data-sonner-theme":$,"data-y-position":ge,"data-x-position":Te,style:{"--front-toast-height":`${((ue=G[0])==null?void 0:ue.height)||0}px`,"--width":`${yxe}px`,"--gap":`${x}px`,...y,...kxe(d,f)},onBlur:De=>{B.current&&!De.currentTarget.contains(De.relatedTarget)&&(B.current=!1,U.current&&(U.current.focus({preventScroll:!0}),U.current=null))},onFocus:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||B.current||(B.current=!0,U.current=De.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{re||le(!1)},onDragEnd:()=>le(!1),onPointerDown:De=>{De.target instanceof HTMLElement&&De.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},F.filter(De=>!De.position&&Q===0||De.position===Z).map((De,me)=>{var Ze,Oe;return Re.default.createElement(Sxe,{key:De.id,icons:C,index:me,toast:De,defaultRichColors:h,duration:(Ze=w?.duration)!=null?Ze:g,className:w?.className,descriptionClassName:w?.descriptionClassName,invert:a,visibleToasts:b,closeButton:(Oe=w?.closeButton)!=null?Oe:l,interacting:re,position:Z,style:w?.style,unstyled:w?.unstyled,classNames:w?.classNames,cancelButtonStyle:w?.cancelButtonStyle,actionButtonStyle:w?.actionButtonStyle,closeButtonAriaLabel:w?.closeButtonAriaLabel,removeToast:V,toasts:F.filter(fe=>fe.position==De.position),heights:G.filter(fe=>fe.position==De.position),setHeights:J,expandByDefault:s,gap:x,expanded:Y,swipeDirections:t.swipeDirections})})):null}))});var eF=H(ve());var Hl=H(ve());function dg(e,t){return function(){return e.apply(t,arguments)}}var{toString:Ixe}=Object.prototype,{getPrototypeOf:FT}=Object,{iterator:Kx,toStringTag:oB}=Symbol,Jx=(e=>t=>{let r=Ixe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ti=e=>(e=e.toLowerCase(),t=>Jx(t)===e),Xx=e=>t=>typeof t===e,{isArray:yf}=Array,vf=Xx("undefined");function fg(e){return e!==null&&!vf(e)&&e.constructor!==null&&!vf(e.constructor)&&Ca(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var iB=ti("ArrayBuffer");function Txe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&iB(e.buffer),t}var Cxe=Xx("string"),Ca=Xx("function"),sB=Xx("number"),pg=e=>e!==null&&typeof e=="object",Pxe=e=>e===!0||e===!1,Wx=e=>{if(Jx(e)!=="object")return!1;let t=FT(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(oB in e)&&!(Kx in e)},Axe=e=>{if(!pg(e)||fg(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Exe=ti("Date"),Lxe=ti("File"),$xe=e=>!!(e&&typeof e.uri<"u"),Oxe=e=>e&&typeof e.getParts<"u",Mxe=ti("Blob"),Rxe=ti("FileList"),Dxe=e=>pg(e)&&Ca(e.pipe);function Nxe(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var rB=Nxe(),nB=typeof rB.FormData<"u"?rB.FormData:void 0,zxe=e=>{let t;return e&&(nB&&e instanceof nB||Ca(e.append)&&((t=Jx(e))==="formdata"||t==="object"&&Ca(e.toString)&&e.toString()==="[object FormData]"))},jxe=ti("URLSearchParams"),[Bxe,Fxe,Uxe,qxe]=["ReadableStream","Request","Response","Headers"].map(ti),Vxe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mg(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),yf(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(fg(e))return;let o=r?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length,s;for(n=0;n<i;n++)s=o[n],t.call(null,e[s],s,e)}}function lB(e,t){if(fg(e))return null;t=t.toLowerCase();let r=Object.keys(e),n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}var wc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,uB=e=>!vf(e)&&e!==wc;function BT(){let{caseless:e,skipUndefined:t}=uB(this)&&this||{},r={},n=(a,o)=>
vendor: 2,385 bytes, line 2
2{if(o==="__proto__"||o==="constructor"||o==="prototype")return;let i=e&&lB(r,o)||o;Wx(r[i])&&Wx(a)?r[i]=BT(r[i],a):Wx(a)?r[i]=BT({},a):yf(a)?r[i]=a.slice():(!t||!vf(a))&&(r[i]=a)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&mg(arguments[a],n);return r}var Zxe=(e,t,r,{allOwnKeys:n}={})=>(mg(t,(a,o)=>{r&&Ca(a)?Object.defineProperty(e,o,{value:dg(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Hxe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Gxe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Wxe=(e,t,r,n)=>{let a,o,i,s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)i=a[o],(!n||n(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=r!==!1&&FT(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Kxe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return n!==-1&&n===r},Jxe=e=>{if(!e)return null;if(yf(e))return e;let t=e.length;if(!sB(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Xxe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&FT(Uint8Array)),Yxe=(e,t)=>{let n=(e&&e[Kx]).call(e),a;for(;(a=n.next())&&!a.done;){let o=a.value;t.call(e,o[0],o[1])}},Qxe=(e,t)=>{let r,n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},e1e=ti("HTMLFormElement"),t1e=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),aB=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),r1e=ti("RegExp"),cB=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};mg(r,(a,o)=>{let i;(i=t(a,o,e))!==!1&&(n[o]=i||a)}),Object.defineProperties(e,n)},n1e=e=>{cB(e,(t,r)=>{if(Ca(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=e[r];if(Ca(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},a1e=(e,t)=>{let r={},n=a=>{a.forEach(o=>{r[o]=!0})};return yf(e)?n(e):n(String(e).split(t)),r},o1e=()=>{},i1e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function s1e(e){return!!(e&&Ca(e.append)&&e[oB]==="FormData"&&e[Kx])}var l1e=e=>{let t=new Array(10),r=(n,a)=>
vendor: 4,682 bytes, line 2
2{if(pg(n)){if(t.indexOf(n)>=0)return;if(fg(n))return n;if(!("toJSON"in n)){t[a]=n;let o=yf(n)?[]:{};return mg(n,(i,s)=>{let l=r(i,a+1);!vf(l)&&(o[s]=l)}),t[a]=void 0,o}}return n};return r(e,0)},u1e=ti("AsyncFunction"),c1e=e=>e&&(pg(e)||Ca(e))&&Ca(e.then)&&Ca(e.catch),dB=((e,t)=>e?setImmediate:t?((r,n)=>(wc.addEventListener("message",({source:a,data:o})=>{a===wc&&o===r&&n.length&&n.shift()()},!1),a=>{n.push(a),wc.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ca(wc.postMessage)),d1e=typeof queueMicrotask<"u"?queueMicrotask.bind(wc):typeof process<"u"&&process.nextTick||dB,f1e=e=>e!=null&&Ca(e[Kx]),ie={isArray:yf,isArrayBuffer:iB,isBuffer:fg,isFormData:zxe,isArrayBufferView:Txe,isString:Cxe,isNumber:sB,isBoolean:Pxe,isObject:pg,isPlainObject:Wx,isEmptyObject:Axe,isReadableStream:Bxe,isRequest:Fxe,isResponse:Uxe,isHeaders:qxe,isUndefined:vf,isDate:Exe,isFile:Lxe,isReactNativeBlob:$xe,isReactNative:Oxe,isBlob:Mxe,isRegExp:r1e,isFunction:Ca,isStream:Dxe,isURLSearchParams:jxe,isTypedArray:Xxe,isFileList:Rxe,forEach:mg,merge:BT,extend:Zxe,trim:Vxe,stripBOM:Hxe,inherits:Gxe,toFlatObject:Wxe,kindOf:Jx,kindOfTest:ti,endsWith:Kxe,toArray:Jxe,forEachEntry:Yxe,matchAll:Qxe,isHTMLForm:e1e,hasOwnProperty:aB,hasOwnProp:aB,reduceDescriptors:cB,freezeMethods:n1e,toObjectSet:a1e,toCamelCase:t1e,noop:o1e,toFiniteNumber:i1e,findKey:lB,global:wc,isContextDefined:uB,isSpecCompliantForm:s1e,toJSONObject:l1e,isAsyncFn:u1e,isThenable:c1e,setImmediate:dB,asap:d1e,isIterable:f1e};var ra=class e extends Error{static from(t,r,n,a,o,i){let s=new e(t.message,r||t.code,n,a,o);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,r,n,a,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),a&&(this.request=a),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ie.toJSONObject(this.config),code:this.code,status:this.status}}};ra.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ra.ERR_BAD_OPTION="ERR_BAD_OPTION";ra.ECONNABORTED="ECONNABORTED";ra.ETIMEDOUT="ETIMEDOUT";ra.ERR_NETWORK="ERR_NETWORK";ra.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ra.ERR_DEPRECATED="ERR_DEPRECATED";ra.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ra.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ra.ERR_CANCELED="ERR_CANCELED";ra.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ra.ERR_INVALID_URL="ERR_INVALID_URL";var mt=ra;var Yx=null;function qT(e){return ie.isPlainObject(e)||ie.isArray(e)}function fB(e){return ie.endsWith(e,"[]")?e.slice(0,-2):e}function UT(e,t,r){return e?e.concat(t).map(function(a,o){return a=fB(a),!r&&o?"["+a+"]":a}).join(r?".":""):t}function p1e(e){return ie.isArray(e)&&!e.some(qT)}var m1e=ie.toFlatObject(ie,{},null,function(t){return/^is[A-Z]/.test(t)});function h1e(e,t,r){if(!ie.isObject(e))throw new TypeError("target must be an object");t=t||new(Yx||FormData),r=ie.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,b){return!ie.isUndefined(b[y])});let n=r.metaTokens,a=r.visitor||d,o=r.dots,i=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&ie.isSpecCompliantForm(t);if(!ie.isFunction(a))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(ie.isDate(g))return g.toISOString();if(ie.isBoolean(g))return g.toString();if(!l&&ie.isBlob(g))throw new mt("Blob is not supported. Use a Buffer instead.");return ie.isArrayBuffer(g)||ie.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function d(g,y,b){let w=g;if(ie.isReactNative(t)&&ie.isReactNativeBlob(g))return t.append(UT(b,y,o),u(g)),!1;if(g&&!b&&typeof g=="object"){if(ie.endsWith(y,"{}"))y=n?y:y.slice(0,-2),g=JSON.stringify(g);else if(ie.isArray(g)&&p1e(g)||(ie.isFileList(g)||ie.endsWith(y,"[]"))&&(w=ie.toArray(g)))return y=fB(y),w.forEach(function(x,C){!(ie.isUndefined(x)||x===null)&&t.append(i===!0?UT([y],C,o):i===null?y:y+"[]",u(x))}),!1}return qT(g)?!0:(t.append(UT(b,y,o),u(g)),!1)}let f=[],m=Object.assign(m1e,{defaultVisitor:d,convertValue:u,isVisitable:qT});function h(g,y){if(!ie.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),ie.forEach(g,function(w,S){(!(ie.isUndefined(w)||w===null)&&a.call(t,w,ie.isString(S)?S.trim():S,y,m))===!0&&h(w,y?y.concat(S):[S])}),f.pop()}}if(!ie.isObject(e))throw new TypeError("data must be an object");return h(e),t}var Zl=h1e;
vendor: 5,435 bytes, lines 2-3
2function pB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function mB(e,t){this._pairs=[],e&&Zl(e,this,t)}var hB=mB.prototype;hB.append=function(t,r){this._pairs.push([t,r])};hB.toString=function(t){let r=t?function(n){return t.call(this,n,pB)}:pB;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};var Qx=mB;function g1e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hg(e,t,r){if(!t)return e;let n=r&&r.encode||g1e,a=ie.isFunction(r)?{serialize:r}:r,o=a&&a.serialize,i;if(o?i=o(t,a):i=ie.isURLSearchParams(t)?t.toString():new Qx(t,a).toString(n),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var VT=class{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ie.forEach(this.handlers,function(n){n!==null&&t(n)})}},ZT=VT;var bf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var gB=typeof URLSearchParams<"u"?URLSearchParams:Qx;var vB=typeof FormData<"u"?FormData:null;var yB=typeof Blob<"u"?Blob:null;var bB={isBrowser:!0,classes:{URLSearchParams:gB,FormData:vB,Blob:yB},protocols:["http","https","file","blob","url","data"]};var WT={};Fn(WT,{hasBrowserEnv:()=>GT,hasStandardBrowserEnv:()=>v1e,hasStandardBrowserWebWorkerEnv:()=>y1e,navigator:()=>HT,origin:()=>b1e});var GT=typeof window<"u"&&typeof document<"u",HT=typeof navigator=="object"&&navigator||void 0,v1e=GT&&(!HT||["ReactNative","NativeScript","NS"].indexOf(HT.product)<0),y1e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",b1e=GT&&window.location.href||"http://localhost";var Er={...WT,...bB};function KT(e,t){return Zl(e,new Er.classes.URLSearchParams,{visitor:function(r,n,a,o){return Er.isNode&&ie.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function x1e(e){return ie.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function w1e(e){let t={},r=Object.keys(e),n,a=r.length,o;for(n=0;n<a;n++)o=r[n],t[o]=e[o];return t}function _1e(e){function t(r,n,a,o){let i=r[o++];if(i==="__proto__")return!0;let s=Number.isFinite(+i),l=o>=r.length;return i=!i&&ie.isArray(a)?a.length:i,l?(ie.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s):((!a[i]||!ie.isObject(a[i]))&&(a[i]=[]),t(r,n,a[i],o)&&ie.isArray(a[i])&&(a[i]=w1e(a[i])),!s)}if(ie.isFormData(e)&&ie.isFunction(e.entries)){let r={};return ie.forEachEntry(e,(n,a)=>{t(x1e(n),a,r,0)}),r}return null}var e1=_1e;function S1e(e,t,r){if(ie.isString(e))try{return(t||JSON.parse)(e),ie.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var JT={transitional:bf,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let n=r.getContentType()||"",a=n.indexOf("application/json")>-1,o=ie.isObject(t);if(o&&ie.isHTMLForm(t)&&(t=new FormData(t)),ie.isFormData(t))return a?JSON.stringify(e1(t)):t;if(ie.isArrayBuffer(t)||ie.isBuffer(t)||ie.isStream(t)||ie.isFile(t)||ie.isBlob(t)||ie.isReadableStream(t))return t;if(ie.isArrayBufferView(t))return t.buffer;if(ie.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return KT(t,this.formSerializer).toString();if((s=ie.isFileList(t))||n.indexOf("multipart/form-data")>-1){let l=this.env&&this.env.FormData;return Zl(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||a?(r.setContentType("application/json",!1),S1e(t)):t}],transformResponse:[function(t){let r=this.transitional||JT.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(ie.isResponse(t)||ie.isReadableStream(t))return t;if(t&&ie.isString(t)&&(n&&!this.responseType||a)){let i=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?mt.from(s,mt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Er.classes.FormData,Blob:Er.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ie.forEach(["delete","get","head","post","put","patch"],e=>{JT.headers[e]={}});var xf=JT;var k1e=ie.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xB=e=>{let t={},r,n,a;return e&&e.split(` 3`).forEach(function(i){a=i.indexOf(":"),r=i.substring(0,a).trim().toLowerCase(),n=i.substring(a+1).trim(),!(!r||t[r]&&k1e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t};var wB=Symbol("internals");function gg(e){return e&&String(e).trim().toLowerCase()}function t1(e){return e===!1||e==null?e:ie.isArray(e)?e.map(t1):String(e).replace(/[\r\n]+$/,"")}function I1e(e){let t=Object.create(null),r=/([^\s,;
3=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}var T1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function XT(e,t,r,n,a){if(ie.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!ie.isString(t)){if(ie.isString(n))return t.indexOf(n)!==-1;if(ie.isRegExp(n))return n.test(t)}}function C1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function P1e(e,t){let r=ie.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,o,i){return this[n].call(this,t,a,o,i)},configurable:!0})})}var wf=class{constructor(t){t&&this.set(t)}set(t,r,n){let a=this;function o(s,l,u){let d=gg(l);if(!d)throw new Error("header name must be a non-empty string");let f=ie.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=t1(s))}let i=(s,l)=>ie.forEach(s,(u,d)=>o(u,d,l));if(ie.isPlainObject(t)||t instanceof this.constructor)i(t,r);else if(ie.isString(t)&&(t=t.trim())&&!T1e(t))i(xB(t),r);else if(ie.isObject(t)&&ie.isIterable(t)){let s={},l,u;for(let d of t){if(!ie.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(l=s[u])?ie.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}i(s,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=gg(t),t){let n=ie.findKey(this,t);if(n){let a=this[n];if(!r)return a;
vendor: 4,449 bytes, lines 3-4
3if(r===!0)return I1e(a);if(ie.isFunction(r))return r.call(this,a,n);if(ie.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=gg(t),t){let n=ie.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||XT(this,this[n],n,r)))}return!1}delete(t,r){let n=this,a=!1;function o(i){if(i=gg(i),i){let s=ie.findKey(n,i);s&&(!r||XT(n,n[s],s,r))&&(delete n[s],a=!0)}}return ie.isArray(t)?t.forEach(o):o(t),a}clear(t){let r=Object.keys(this),n=r.length,a=!1;for(;n--;){let o=r[n];(!t||XT(this,this[o],o,t,!0))&&(delete this[o],a=!0)}return a}normalize(t){let r=this,n={};return ie.forEach(this,(a,o)=>{let i=ie.findKey(n,o);if(i){r[i]=t1(a),delete r[o];return}let s=t?C1e(o):String(o).trim();s!==o&&delete r[o],r[s]=t1(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return ie.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&ie.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 4`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){let n=(this[wB]=this[wB]={accessors:{}}).accessors,a=this.prototype;function o(i){let s=gg(i);n[s]||(P1e(a,i),n[s]=!0)}return ie.isArray(t)?t.forEach(o):o(t),this}};wf.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ie.reduceDescriptors(wf.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});ie.freezeMethods(wf);var mn=wf;function vg(e,t){let r=this||xf,n=t||r,a=mn.from(n.headers),o=n.data;return ie.forEach(e,function(s){o=s.call(r,o,a.normalize(),t?t.status:void 0)}),a.normalize(),o}function yg(e){return!!(e&&e.__CANCEL__)}var YT=class extends mt{constructor(t,r,n){super(t??"canceled",mt.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}},zi=YT;function bg(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new mt("Request failed with status code "+r.status,[mt.ERR_BAD_REQUEST,mt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function QT(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function A1e(e,t){e=e||10;let r=new Array(e),n=new Array(e),a=0,o=0,i;return t=t!==void 0?t:1e3,function(l){let u=Date.now(),d=n[o];i||(i=u),r[a]=l,n[a]=u;let f=o,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),u-i<t)return;let h=d&&u-d;return h?Math.round(m*1e3/h):void 0}}var _B=A1e;function E1e(e,t){let r=0,n=1e3/t,a,o,i=(u,d=Date.now())=>{r=d,a=null,o&&(clearTimeout(o),o=null),e(...u)};return[(...u)=>{let d=Date.now(),f=d-r;f>=n?i(u,d):(a=u,o||(o=setTimeout(()=>{o=null,i(a)},n-f)))},()=>a&&i(a)]}var SB=E1e;var _f=(e,t,r=3)=>{let n=0,a=_B(50,250);return SB(o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,u=a(l),d=i<=s;n=i;let f={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-i)/u:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},eC=(e,t)=>{let r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tC=e=>(...t)=>ie.asap(()=>e(...t));var kB=Er.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Er.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Er.origin),Er.navigator&&/(msie|trident)/i.test(Er.navigator.userAgent)):()=>!0;var IB=Er.hasStandardBrowserEnv?{write(e,t,r,n,a,o,i){if(typeof document>"u")return;let s=[`${e}=${encodeURIComponent(t)}`];ie.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),ie.isString(n)&&s.push(`path=${n}`),ie.isString(a)&&s.push(`domain=${a}`),o===!0&&s.push("secure"),ie.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;let t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function rC(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function nC(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function xg(e,t,r){let n=!rC(t);return e&&(n||r==!1)?nC(e,t):t}var TB=e=>e instanceof mn?{...e}:e;
vendor: 13,933 bytes, lines 4-7
4function ri(e,t){t=t||{};let r={};function n(u,d,f,m){return ie.isPlainObject(u)&&ie.isPlainObject(d)?ie.merge.call({caseless:m},u,d):ie.isPlainObject(d)?ie.merge({},d):ie.isArray(d)?d.slice():d}function a(u,d,f,m){if(ie.isUndefined(d)){if(!ie.isUndefined(u))return n(void 0,u,f,m)}else return n(u,d,f,m)}function o(u,d){if(!ie.isUndefined(d))return n(void 0,d)}function i(u,d){if(ie.isUndefined(d)){if(!ie.isUndefined(u))return n(void 0,u)}else return n(void 0,d)}function s(u,d,f){if(f in t)return n(u,d);if(f in e)return n(void 0,u)}let l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,d,f)=>a(TB(u),TB(d),f,!0)};return ie.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;let f=ie.hasOwnProp(l,d)?l[d]:a,m=f(e[d],t[d],d);ie.isUndefined(m)&&f!==s||(r[d]=m)}),r}var r1=e=>{let t=ri({},e),{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=mn.from(i),t.url=hg(xg(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ie.isFormData(r)){if(Er.hasStandardBrowserEnv||Er.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ie.isFunction(r.getHeaders)){let l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([d,f])=>{u.includes(d.toLowerCase())&&i.set(d,f)})}}if(Er.hasStandardBrowserEnv&&(n&&ie.isFunction(n)&&(n=n(t)),n||n!==!1&&kB(t.url))){let l=a&&o&&IB.read(o);l&&i.set(a,l)}return t};var L1e=typeof XMLHttpRequest<"u",CB=L1e&&function(e){return new Promise(function(r,n){let a=r1(e),o=a.data,i=mn.from(a.headers).normalize(),{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,d,f,m,h,g;function y(){h&&h(),g&&g(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function w(){if(!b)return;let x=mn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),I={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};bg(function(O){r(O),y()},function(O){n(O),y()},I),b=null}"onloadend"in b?b.onloadend=w:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(w)},b.onabort=function(){b&&(n(new mt("Request aborted",mt.ECONNABORTED,e,b)),b=null)},b.onerror=function(C){let I=C&&C.message?C.message:"Network Error",A=new mt(I,mt.ERR_NETWORK,e,b);A.event=C||null,n(A),b=null},b.ontimeout=function(){let C=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",I=a.transitional||bf;a.timeoutErrorMessage&&(C=a.timeoutErrorMessage),n(new mt(C,I.clarifyTimeoutError?mt.ETIMEDOUT:mt.ECONNABORTED,e,b)),b=null},o===void 0&&i.setContentType(null),"setRequestHeader"in b&&ie.forEach(i.toJSON(),function(C,I){b.setRequestHeader(I,C)}),ie.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),s&&s!=="json"&&(b.responseType=a.responseType),u&&([m,g]=_f(u,!0),b.addEventListener("progress",m)),l&&b.upload&&([f,h]=_f(l),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(d=x=>{b&&(n(!x||x.type?new zi(null,e,b):x),b.abort(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));let S=QT(a.url);if(S&&Er.protocols.indexOf(S)===-1){n(new mt("Unsupported protocol "+S+":",mt.ERR_BAD_REQUEST,e));return}b.send(o||null)})};var $1e=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a,o=function(u){if(!a){a=!0,s();let d=u instanceof Error?u:this.reason;n.abort(d instanceof mt?d:new zi(d instanceof Error?d.message:d))}},i=t&&setTimeout(()=>{i=null,o(new mt(`timeout of ${t}ms exceeded`,mt.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(o):u.removeEventListener("abort",o)}),e=null)};e.forEach(u=>u.addEventListener("abort",o));let{signal:l}=n;return l.unsubscribe=()=>ie.asap(s),l}},PB=$1e;var O1e=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},M1e=async function*(e,t){for await(let r of R1e(e))yield*O1e(r,t)},R1e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},aC=(e,t,r,n)=>{let a=M1e(e,t),o=0,i,s=l=>{i||(i=!0,n&&n(l))};return new ReadableStream({async pull(l){try{let{done:u,value:d}=await a.next();if(u){s(),l.close();return}let f=d.byteLength;if(r){let m=o+=f;r(m)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})};var AB=64*1024,{isFunction:n1}=ie,D1e=(({Request:e,Response:t})=>({Request:e,Response:t}))(ie.global),{ReadableStream:EB,TextEncoder:LB}=ie.global,$B=(e,...t)=>{try{return!!e(...t)}catch{return!1}},N1e=e=>{e=ie.merge.call({skipUndefined:!0},D1e,e);let{fetch:t,Request:r,Response:n}=e,a=t?n1(t):typeof fetch=="function",o=n1(r),i=n1(n);if(!a)return!1;let s=a&&n1(EB),l=a&&(typeof LB=="function"?(g=>y=>g.encode(y))(new LB):async g=>new Uint8Array(await new r(g).arrayBuffer())),u=o&&s&&$B(()=>{let g=!1,y=new EB,b=new r(Er.origin,{body:y,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return y.cancel(),g&&!b}),d=i&&s&&$B(()=>ie.isReadableStream(new n("").body)),f={stream:d&&(g=>g.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(y,b)=>{let w=y&&y[g];if(w)return w.call(y);throw new mt(`Response type '${g}' is not supported`,mt.ERR_NOT_SUPPORT,b)})});let m=async g=>{if(g==null)return 0;if(ie.isBlob(g))return g.size;if(ie.isSpecCompliantForm(g))return(await new r(Er.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(ie.isArrayBufferView(g)||ie.isArrayBuffer(g))return g.byteLength;if(ie.isURLSearchParams(g)&&(g=g+""),ie.isString(g))return(await l(g)).byteLength},h=async(g,y)=>{let b=ie.toFiniteNumber(g.getContentLength());return b??m(y)};return async g=>{let{url:y,method:b,data:w,signal:S,cancelToken:x,timeout:C,onDownloadProgress:I,onUploadProgress:A,responseType:O,headers:F,withCredentials:q="same-origin",fetchOptions:G}=r1(g),J=t||fetch;O=O?(O+"").toLowerCase():"text";let Y=PB([S,x&&x.toAbortSignal()],C),le=null,re=Y&&Y.unsubscribe&&(()=>{Y.unsubscribe()}),oe;try{if(A&&u&&b!=="get"&&b!=="head"&&(oe=await h(F,w))!==0){let B=new r(y,{method:"POST",body:w,duplex:"half"}),V;if(ie.isFormData(w)&&(V=B.headers.get("content-type"))&&F.setContentType(V),B.body){let[Z,Q]=eC(oe,_f(tC(A)));w=aC(B.body,AB,Z,Q)}}ie.isString(q)||(q=q?"include":"omit");let $=o&&"credentials"in r.prototype,z={...G,signal:Y,method:b.toUpperCase(),headers:F.normalize().toJSON(),body:w,duplex:"half",credentials:$?q:void 0};le=o&&new r(y,z);let R=await(o?J(le,G):J(y,z)),N=d&&(O==="stream"||O==="response");if(d&&(I||N&&re)){let B={};["status","statusText","headers"].forEach(ue=>{B[ue]=R[ue]});let V=ie.toFiniteNumber(R.headers.get("content-length")),[Z,Q]=I&&eC(V,_f(tC(I),!0))||[];R=new n(aC(R.body,AB,Z,()=>{Q&&Q(),re&&re()}),B)}O=O||"text";let U=await f[ie.findKey(f,O)||"text"](R,g);return!N&&re&&re(),await new Promise((B,V)=>{bg(B,V,{data:U,headers:mn.from(R.headers),status:R.status,statusText:R.statusText,config:g,request:le})})}catch($){throw re&&re(),$&&$.name==="TypeError"&&/Load failed|fetch/i.test($.message)?Object.assign(new mt("Network Error",mt.ERR_NETWORK,g,le,$&&$.response),{cause:$.cause||$}):mt.from($,$&&$.code,g,le,$&&$.response)}}},z1e=new Map,oC=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:a}=t,o=[n,a,r],i=o.length,s=i,l,u,d=z1e;for(;s--;)l=o[s],u=d.get(l),u===void 0&&d.set(l,u=s?new Map:N1e(t)),d=u;return u},fit=oC();var iC={http:Yx,xhr:CB,fetch:{get:oC}};ie.forEach(iC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var OB=e=>`- ${e}`,B1e=e=>ie.isFunction(e)||e===null||e===!1;function F1e(e,t){e=ie.isArray(e)?e:[e];let{length:r}=e,n,a,o={};for(let i=0;i<r;i++){n=e[i];let s;if(a=n,!B1e(n)&&(a=iC[(s=String(n)).toLowerCase()],a===void 0))throw new mt(`Unknown adapter '${s}'`);if(a&&(ie.isFunction(a)||(a=a.get(t))))break;o[s||"#"+i]=a}if(!a){let i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build")),s=r?i.length>1?`since : 5`+i.map(OB).join(` 6`):" "+OB(i[0]):"as no adapter specified";throw new mt("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}var a1={getAdapter:F1e,adapters:iC};function sC(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new zi(null,e)}function o1(e){return sC(e),e.headers=mn.from(e.headers),e.data=vg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),a1.getAdapter(e.adapter||xf.adapter,e)(e).then(function(n){return sC(e),n.data=vg.call(e,e.transformResponse,n),n.headers=mn.from(n.headers),n},function(n){return yg(n)||(sC(e),n&&n.response&&(n.response.data=vg.call(e,e.transformResponse,n.response),n.response.headers=mn.from(n.response.headers))),Promise.reject(n)})}var i1="1.14.0";var s1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{s1[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var MB={};s1.transitional=function(t,r,n){function a(o,i){return"[Axios v"+i1+"] Transitional option '"+o+"'"+i+(n?". "+n:"")}return(o,i,s)=>{if(t===!1)throw new mt(a(i," has been removed"+(r?" in "+r:"")),mt.ERR_DEPRECATED);return r&&!MB[i]&&(MB[i]=!0,console.warn(a(i," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(o,i,s):!0}};s1.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function U1e(e,t,r){if(typeof e!="object")throw new mt("options must be an object",mt.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),a=n.length;for(;a-- >0;){let o=n[a],i=t[o];if(i){let s=e[o],l=s===void 0||i(s,o,e);if(l!==!0)throw new mt("option "+o+" must be "+l,mt.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new mt("Unknown option "+o,mt.ERR_BAD_OPTION)}}var wg={assertOptions:U1e,validators:s1};var bo=wg.validators,Sf=class{constructor(t){this.defaults=t||{},this.interceptors={request:new ZT,response:new ZT}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;let o=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=` 7`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ri(this.defaults,r);let{transitional:n,paramsSerializer:a,headers:o}=r;n!==void 0&&wg.assertOptions(n,{silentJSONParsing:bo.transitional(bo.boolean),forcedJSONParsing:bo.transitional(bo.boolean),clarifyTimeoutError:bo.transitional(bo.boolean),legacyInterceptorReqResOrdering:bo.transitional(bo.boolean)},!1),a!=null&&(ie.isFunction(a)?r.paramsSerializer={serialize:a}:wg.assertOptions(a,{encode:bo.function,serialize:bo.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),wg.assertOptions(r,{baseUrl:bo.spelling("baseURL"),withXsrfToken:bo.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let i=o&&ie.merge(o.common,o[r.method]);o&&ie.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),r.headers=mn.concat(i,o);let s=[],l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;l=l&&y.synchronous;let b=r.transitional||bf;b&&b.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,f=0,m;if(!l){let g=[o1.bind(this),void 0];for(g.unshift(...s),g.push(...u),m=g.length,d=Promise.resolve(r);f<m;)d=d.then(g[f++],g[f++]);return d}m=s.length;let h=r;for(;f<m;){let g=s[f++],y=s[f++];try{h=g(h)}catch(b){y.call(this,b);break}}try{d=o1.call(this,h)}catch(g){return Promise.reject(g)}for(f=0,m=u.length;f<m;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=ri(this.defaults,t);let r=xg(t.baseURL,t.url,t.allowAbsoluteUrls);return hg(r,t.params,t.paramsSerializer)}};ie.forEach(["delete","get","head","options"],function(t){Sf.prototype[t]=function(r,n){return this.request(ri(n||{},{method:t,url:r,data:(n||{}).data}))}});ie.forEach(["post","put","patch"],function(t){function r(n){return function(o,i,s){return this.request(ri(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Sf.prototype[t]=r(),Sf.prototype[t+"Form"]=r(!0)});var _g=Sf;var lC=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});let n=this;this.promise.then(a=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](a);n._listeners=null}),this.promise.then=a=>{let o,i=new Promise(s=>{n.subscribe(s),o=s}).then(a);return i.cancel=function(){n.unsubscribe(o)},i},t(function(o,i,s){n.reason||(n.reason=new zi(o,i,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
7subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(a){t=a}),cancel:t}}},RB=lC;function uC(e){return function(r){return e.apply(null,r)}}function cC(e){return ie.isObject(e)&&e.isAxiosError===!0}var dC={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(dC).forEach(([e,t])=>{dC[t]=e});var DB=dC;function NB(e){let t=new _g(e),r=dg(_g.prototype.request,t);return ie.extend(r,_g.prototype,t,{allOwnKeys:!0}),ie.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return NB(ri(e,a))},r}var rn=NB(xf);rn.Axios=_g;rn.CanceledError=zi;rn.CancelToken=RB;rn.isCancel=yg;rn.VERSION=i1;rn.toFormData=Zl;rn.AxiosError=mt;rn.Cancel=rn.CanceledError;rn.all=function(t){return Promise.all(t)};rn.spread=uC;rn.isAxiosError=cC;rn.mergeConfig=ri;rn.AxiosHeaders=mn;rn.formToJSON=e=>e1(ie.isHTMLForm(e)?new FormData(e):e);rn.getAdapter=a1.getAdapter;rn.HttpStatusCode=DB;rn.default=rn;var $s=rn;var{Axios:cst,AxiosError:dst,CanceledError:fst,isCancel:pst,CancelToken:mst,VERSION:hst,all:gst,Cancel:vst,isAxiosError:yst,spread:bst,toFormData:xst,AxiosHeaders:wst,HttpStatusCode:_st,formToJSON:Sst,getAdapter:kst,mergeConfig:Ist}=$s;var kf="/api/taskade";function l1(e){let[t,r]=(0,Hl.useState)([]),[n,a]=(0,Hl.useState)(!0),[o,i]=(0,Hl.useState)(null),s=(0,Hl.useCallback)(async()=>{a(!0),i(null);try{let u=(await $s.get(`${kf}/projects/${e}/nodes`)).data?.payload?.nodes??[];r(u)}catch(l){i(l.message)}finally{a(!1)}},[e]);return(0,Hl.useEffect)(()=>{s()},[s]),{nodes:t,loading:n,error:o,refetch:s}}function If(){return l1("ZXfJWJcW12QmhJrM")}function u1(){return l1("ANfz4aWTvwuyQT3H")}function c1(){return l1("CgbujbdSBbUkm63V")}function zB(){return l1("3dBojaoecS5xfQEs")}async function jB(e){return $s.post(`${kf}/projects/ZXfJWJcW12QmhJrM/nodes`,e)}async function BB(e){return $s.post(`${kf}/projects/ANfz4aWTvwuyQT3H/nodes`,e)}async function FB(e){return $s.post(`${kf}/projects/CgbujbdSBbUkm63V/nodes`,e)}async function d1(e){return $s.post(`${kf}/projects/3dBojaoecS5xfQEs/nodes`,e)}async function Sg(e,t){return $s.delete(`${kf}/projects/${e}/nodes/${t}`)}var p1=H(ve());var UB=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q1e=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fC=e=>{let t=q1e(e);return t.charAt(0).toUpperCase()+t.slice(1)},f1=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),qB=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var kg=H(ve());var VB={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var ZB=(0,kg.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:i,...s},l)=>(0,kg.createElement)("svg",{ref:l,...VB,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:f
vendor: 4,135 bytes, line 7
71("lucide",a),...!o&&!qB(s)&&{"aria-hidden":"true"},...s},[...i.map(([u,d])=>(0,kg.createElement)(u,d)),...Array.isArray(o)?o:[o]]));var Ye=(e,t)=>{let r=(0,p1.forwardRef)(({className:n,...a},o)=>(0,p1.createElement)(ZB,{ref:o,iconNode:t,className:f1(`lucide-${UB(fC(e))}`,`lucide-${e}`,n),...a}));return r.displayName=fC(e),r};var V1e=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ig=Ye("book-open",V1e);var Z1e=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],Gl=Ye("bot",Z1e);var H1e=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],Tf=Ye("calendar",H1e);var G1e=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Cf=Ye("check",G1e);var W1e=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],hn=Ye("chevron-down",W1e);var K1e=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],_c=Ye("chevron-right",K1e);var J1e=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Os=Ye("circle-check-big",J1e);var X1e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Ms=Ye("circle-x",X1e);var Y1e=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Tg=Ye("circle",Y1e);var Q1e=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Cg=Ye("clipboard-list",Q1e);var ewe=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ji=Ye("clock",ewe);var twe=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Pg=Ye("corner-down-left",twe);var rwe=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 15 21.84",key:"14ibmq"}],["path",{d:"M21 5V8",key:"1marbg"}],["path",{d:"M21 12L18 17H22L19 22",key:"zafso"}],["path",{d:"M3 12A9 3 0 0 0 14.59 14.87",key:"1y4wr8"}]],Sc=Ye("database-zap",rwe);var nwe=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Pf=Ye("download",nwe);var awe=[["path",{d:"M17.596 12.768a2 2 0 1 0 2.829-2.829l-1.768-1.767a2 2 0 0 0 2.828-2.829l-2.828-2.828a2 2 0 0 0-2.829 2.828l-1.767-1.768a2 2 0 1 0-2.829 2.829z",key:"9m4mmf"}],["path",{d:"m2.5 21.5 1.4-1.4",key:"17g3f0"}],["path",{d:"m20.1 3.9 1.4-1.4",key:"1qn309"}],["path",{d:"M5.343 21.485a2 2 0 1 0 2.829-2.828l1.767 1.768a2 2 0 1 0 2.829-2.829l-6.364-6.364a2 2 0 1 0-2.829 2.829l1.768 1.767a2 2 0 0 0-2.828 2.829z",key:"1t2c92"}],["path",{d:"m9.6 14.4 4.8-4.8",key:"6umqxw"}]],na=Ye("dumbbell",awe);var owe=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ag=Ye("external-link",owe);var iwe=[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]],Eg=Ye("flame",iwe);var swe=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],Wl=Ye("funnel",swe);var lwe=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}
vendor: 9,647 bytes, line 7
7]],Lg=Ye("layout-dashboard",lwe);var uwe=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],xo=Ye("loader-circle",uwe);var cwe=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ni=Ye("plus",cwe);var dwe=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Kl=Ye("search",dwe);var fwe=[["path",{d:"M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z",key:"117uat"}],["path",{d:"M6 12h16",key:"s4cdu5"}]],Jl=Ye("send-horizontal",fwe);var pwe=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],$g=Ye("square",pwe);var mwe=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],Rs=Ye("target",mwe);var hwe=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Xl=Ye("trash-2",hwe);var gwe=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],Ds=Ye("trending-up",gwe);var vwe=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Yl=Ye("trophy",vwe);var ywe=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Og=Ye("wrench",ywe);var bwe=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],aa=Ye("x",bwe);var xwe=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Mg=Ye("zap",xwe);var wwe=e=>{let t=Swe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let s=i.split("-");return s[0]===""&&s.length!==1&&s.shift(),WB(s,t)||_we(i)},getConflictingClassGroupIds:(i,s)=>{let l=r[i]||[];return s&&n[i]?[...l,...n[i]]:l}}},WB=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),a=n?WB(e.slice(1),n):void 0;if(a)return a;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},HB=/^\[(.+)\]$/,_we=e=>{if(HB.test(e)){let t=HB.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Swe=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Iwe(Object.entries(e.classGroups),r).forEach(([o,i])=>{mC(i,n,o,t)}),n},mC=(e,t,r,n)=>{e.forEach(a=>{if(typeof a=="string"){let o=a===""?t:GB(t,a);o.classGroupId=r;return}if(typeof a=="function"){if(kwe(a)){mC(a(n),t,r,n);return}t.validators.push({validator:a,classGroupId:r});return}Object.entries(a).forEach(([o,i])=>{mC(i,GB(t,o),r,n)})})},GB=(e,t)=>{let r=e;return t.split("-").forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},kwe=e=>e.isThemeGetter,Iwe=(e,t)=>t?e.map(([r,n])=>{let a=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,a]}):e,Twe=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map,a=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return a(o,i),i},set(o,i){r.has(o)?r.set(o,i):a(o,i)}}};var Cwe=e=>{let{separator:t,experimentalParseClassName:r}=e,n=t.length===1,a=t[0],o=t.length,i=s=>{let l=[],u=0,d=0,f;for(let b=0;b<s.length;b++){let w=s[b];if(u===0){if(w===a&&(n||s.slice(b,b+o)===t)){l.push(s.slice(d,b)),d=b+o;continue}if(w==="/"){f=b;continue}}w==="["?u++:w==="]"&&u--}let m=l.length===0?s:s.substring(d),h=m.startsWith("!"),g=h?m.substring(1):m,y=f&&f>d?f-d:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:y}};return r?s=>r({className:s,parseClassName:i}):i},Pwe=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},Awe=e=>({cache:Twe(e.cacheSize),parseClassName:Cwe(e),...wwe(e)}),Ewe=/\s+/,Lwe=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:a}=t,o=[],i=e.trim().split(Ewe),s="";for(let l=i.length-1;l>=0;l-=1){let u=i[l],{modifiers:d,hasImportantModifier:f,baseClassName:m,maybePostfixModifierPosition:h}=r(u),g=!!h,y=n(g?m.substring(0,h):m);if(!y){if(!g){s=u+(s.length>0?" "+s:s);continue}if(y=n(m),!y){s=u+(s.length>0?" "+s:s);continue}g=!1}let b=Pwe(d).join(":"),w=f?b+"!":b,S=w+y;if(o.includes(S))continue;o.push(S);let x=a(y,g);for(let C=0;C<x.length;++C){let I=x[C];o.push(w+I)}s=u+(s.length>0?" "+s:s)}return s};function $we(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=KB(t))&&(n&&(n+=" "),n+=r);return n}var KB=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=KB(e[n]))&&(r&&(r+=" "),r+=t);return r};function Owe(e,...t){let r,n,a,o=i;function i(l){let u=t.reduce((d,f)=>f(d),e());return r=Awe(u),n=r.cache.get,a=r.cache.set,o=s,s(l)}function s(l){let u=n(l);if(u)return u;let d=Lwe(l,r);return a(l,d),d}return function(){return o($we.apply(null,arguments))}}var br=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},JB=/^\[(?:([a-z-]+):)?(.+)\]$/i,Mwe=/^\d+\/\d+$/,Rwe=new Set(["px","full","screen"]),Dwe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nwe=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zwe=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jwe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bwe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ns=e=>Af(e)||Rwe.has(e)||Mwe.test(e),Ql=e=>Ef(e,"length",Wwe),Af=e=>!!e&&!Number.isNaN(Number(e)),pC=e=>Ef(e,"number",Af),Rg=e=>!!e&&Number.isInteger(Number(e)),Fwe=e=>e.endsWith("%")&&Af(e.slice(0,-1)),It=e=>JB.test(e),eu=e=>Dwe.test(e),Uwe=new Set(["length","size","percentage"]),qwe=e=>Ef(e,Uwe,XB),Vwe=e=>Ef(e,"position",XB),Zwe=new Set(["image","url"]),Hwe=e=>Ef(e,Zwe,Jwe),Gwe=e=>Ef(e,"",Kwe),Dg=()=>!0,Ef=(e,t,r)=>{let n=JB.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},Wwe=e=>Nwe.test(e)&&!zwe.test(e),XB=()=>!1,Kwe=e=>jwe.test(e),Jwe=e=>Bwe.test(e);var Xwe=()=>{let e=br("colors"),t=br("spacing"),r=br("blur"),n=br("brightness"),a=br("borderColor"),o=br("borderRadius"),i=br("borderSpacing"),s=br("borderWidth"),l=br("contrast"),u=br("grayscale"),d=br("hueRotate"),f=br("invert"),m=br("gap"),h=br("gradientColorStops"),g=br("gradientColorStopPositions"),y=br("inset"),b=br("margin"),w=br("opacity"),S=br("padding"),x=br("saturate"),C=br("scale"),I=br("sepia"),A=br("skew"),O=br("space"),F=br("translate"),q=()=>["auto","contain","none"],G=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto",It,t],Y=()=>[It,t],le=()=>["",Ns,Ql],re=()=>["auto",Af,It],oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",It],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>[Af,It];return{cacheSize:500,separator:":",theme:{colors:[Dg],spacing:[Ns,Ql],blur:["none","",eu,It],brightness:B(),borderColor:[e],borderRadius:["none","","full",eu,It],borderSpacing:Y(),borderWidth:le(),contrast:B(),grayscale:N(),hueRotate:B(),invert:N(),gap:Y(),gradientColorStops:[e],gradientColorStopPositions:[Fwe,Ql],inset:J(),margin:J(),opacity:B(),padding:Y(),saturate:B(),scale:B(),sepia:N(),skew:B(),space:Y(),translate:Y()},classGroups:{aspect:[{aspect:["auto","square","video",It]}],container:["container"],columns:[{columns:[eu]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...oe(),It]}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}
vendor: 9,957 bytes, line 7
7],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Rg,It]}],basis:[{basis:J()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",It]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Rg,It]}],"grid-cols":[{"grid-cols":[Dg]}],"col-start-end":[{col:["auto",{span:["full",Rg,It]},It]}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":[Dg]}],"row-start-end":[{row:["auto",{span:[Rg,It]},It]}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",It]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",It]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[S]}],px:[{px:[S]}],py:[{py:[S]}],ps:[{ps:[S]}],pe:[{pe:[S]}],pt:[{pt:[S]}],pr:[{pr:[S]}],pb:[{pb:[S]}],pl:[{pl:[S]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[O]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[O]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",It,t]}],"min-w":[{"min-w":[It,t,"min","max","fit"]}],"max-w":[{"max-w":[It,t,"none","full","min","max","fit","prose",{screen:[eu]},eu]}],h:[{h:[It,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[It,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[It,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[It,t,"auto","min","max","fit"]}],"font-size":[{text:["base",eu,Ql]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",pC]}],"font-family":[{font:[Dg]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",It]}],"line-clamp":[{"line-clamp":["none",Af,pC]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Ns,It]}],"list-image":[{"list-image":["none",It]}],"list-style-type":[{list:["none","disc","decimal",It]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[w]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[w]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Ns,Ql]}],"underline-offset":[{"underline-offset":["auto",Ns,It]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",It]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",It]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[w]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...oe(),Vwe]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qwe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Hwe]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[w]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[w]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Ns,It]}],"outline-w":[{outline:[Ns,Ql]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[w]}],"ring-offset-w":[{"ring-offset":[Ns,Ql]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",eu,Gwe]}],"shadow-color":[{shadow:[Dg]}],opacity:[{opacity:[w]}],"mix-blend":[{"mix-blend":[...z(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",eu,It]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[f]}],saturate:[{saturate:[x]}],sepia:[{sepia:[I]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[w]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",It]}],duration:[{duration:B()}],ease:[{ease:["linear","in","out","in-out",It]}],delay:[{delay:B()}],animate:[{animate:["none","spin","ping","pulse","bounce",It]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Rg,It]}],"translate-x":[{"translate-x":[F]}],"translate-y":[{"translate-y":[F]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",It]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",It]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
7],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",It]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Ns,Ql,pC]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var YB=Owe(Xwe);function et(...e){return YB(Rx(e))}var Ne=H(qe()),QB={strength:"bg-red-500/20 text-red-400",cardio:"bg-blue-500/20 text-blue-400",hiit:"bg-amber-500/20 text-amber-400",flexibility:"bg-green-500/20 text-green-400",sport:"bg-purple-500/20 text-purple-400",rest:"bg-gray-500/20 text-gray-400"},Ywe={r5:"\u{1F4AA}",r4:"\u{1F44D}",r3:"\u{1F610}",r2:"\u{1F613}",r1:"\u{1F480}"};function m1({icon:e,label:t,value:r,sub:n,color:a}){return(0,Ne.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-5 flex items-center gap-4",children:[(0,Ne.jsx)("div",{className:et("w-12 h-12 rounded-xl flex items-center justify-center shrink-0",a),children:(0,Ne.jsx)(e,{className:"w-6 h-6"})}),(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("div",{className:"text-2xl font-bold text-foreground",children:r}),(0,Ne.jsx)("div",{className:"text-sm text-muted-foreground",children:t}),n&&(0,Ne.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:n})]})]})}function Qwe(){return(0,Ne.jsx)("div",{className:"bg-card border border-border rounded-2xl p-5 animate-pulse",children:(0,Ne.jsxs)("div",{className:"flex items-center gap-4",children:[(0,Ne.jsx)("div",{className:"w-12 h-12 rounded-xl bg-muted"}),(0,Ne.jsxs)("div",{className:"space-y-2",children:[(0,Ne.jsx)("div",{className:"h-6 w-16 bg-muted rounded"}),(0,Ne.jsx)("div",{className:"h-4 w-24 bg-muted rounded"})]})]})})}function hC(){let{nodes:e,loading:t}=If(),{nodes:r,loading:n}=u1(),{nodes:a}=c1(),o=cg(),i=eF.useMemo(()=>{let f=e.map(g=>
7g.fieldValues["/attributes/@wkdat"]).filter(Boolean).map(g=>new Date(g).toDateString()).filter((g,y,b)=>b.indexOf(g)===y).sort((g,y)=>new Date(y).getTime()-new Date(g).getTime());if(!f.length)return 0;let m=0,h=new Date;h.setHours(0,0,0,0);for(let g of f){let y=new Date(g);if(Math.round((h.getTime()-y.getTime())/864e5)<=1)m++,h=y;else break}return m},[e]),s=e.reduce((f,m)=>f+(m.fieldValues["/attributes/@wkdur"]??0),0),l=r.filter(f=>f.fieldValues["/attributes/@glsta"]!=="done").length,u=[...e].sort((f,m)=>{let h=new Date(f.fieldValues["/attributes/@wkdat"]||0).getTime();return new Date(m.fieldValues["/attributes/@wkdat"]||0).getTime()-h}).slice(0,5),d=r.filter(f=>f.fieldValues["/attributes/@glsta"]==="done").length;return(0,Ne.jsxs)("div",{className:"p-6 max-w-4xl mx-auto space-y-8",children:[(0,Ne.jsxs)("div",{className:"flex items-center justify-between pt-2",children:[(0,Ne.jsxs)("div",{children:[(0,Ne.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Good day! \u{1F44B}"}),(0,Ne.jsx)("p",{className:"text-muted-foreground text-sm mt-1",children:"Here's your fitness snapshot."})]}),(0,Ne.jsxs)("button",{onClick:()=>o("/log"),className:"flex items-center gap-2 bg-primary text-primary-foreground px-4 py-2 rounded-xl font-medium text-sm hover:opacity-90 transition-opacity shadow-lg shadow-primary/30",children:[(0,Ne.jsx)(ni,{className:"w-4 h-4"}),"Log Workout"]})]}),(0,Ne.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:t?Array.from({length:4}).map((f,m)=>(0,Ne.jsx)(Qwe,{},m)):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(m1,{icon:Eg,label:"Day Streak",value:i,sub:"days in a row",color:"bg-orange-500/20 text-orange-400"}),(0,Ne.jsx)(m1,{icon:na,label:"Workouts",value:e.length,sub:"total logged",color:"bg-primary/20 text-primary"}),(0,Ne.jsx)(m1,{icon:ji,label:"Hours Trained",value:Math.round(s/60),sub:`${s} total mins`,color:"bg-blue-500/20 text-blue-400"}),(0,Ne.jsx)(m1,{icon:Yl,label:"Goals Done",value:d,sub:`${l} active`,color:"bg-amber-500/20 text-amber-400"})]})}),(0,Ne.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,Ne.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-5",children:[(0,Ne.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ne.jsx)("h2",{className:"font-semibold text-foreground",children:"Recent Workouts"}),(0,Ne.jsxs)("button",{onClick:()=>o("/log"),className:"text-xs text-muted-foreground hover:text-primary flex items-center gap-1 transition-colors",children:["View all ",(0,Ne.jsx)(_c,{className:"w-3 h-3"})]})]}),t?(0,Ne.jsx)("div",{className:"space-y-3",children:Array.from({length:3}).map((f,m)=>(0,Ne.jsx)("div",{className:"h-14 bg-muted rounded-xl animate-pulse"},m))}):u.length===0?(0,Ne.jsxs)("div",{className:"text-center py-8",children:[(0,Ne.jsx)(na,{className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-3"}),(0,Ne.jsx)("p",{className:"text-sm text-muted-foreground",children:"No workouts yet."}),(0,Ne.jsx)("button",{onClick:()=>o("/log"),className:"mt-3 text-xs text-primary hover:underline",children:"Log your first one \u2192"})]}):(0,Ne.jsx)("div",{className:"space-y-2",children:u.map(f=>{let m=f.fieldValues["/attributes/@wktyp"]??"strength",h=f.fieldValues["/attributes/@wkdat"],g=f.fieldValues["/attributes/@wkrat"];return(0,Ne.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-xl hover:bg-accent transition-colors",children:[(0,Ne.jsx)("div",{className:et("w-8 h-8 rounded-lg flex items-center justify-center text-xs font-bold shrink-0",QB[m]??QB.strength),children:m.slice(0,2).toUpperCase()}),(0,Ne.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ne.jsx)("div",{className:"font-medium text-sm text-foreground truncate",children:f.fieldValues["/text"]||"Workout"}),(0,Ne.jsxs)("div",{className:"text-xs text-muted-foreground",children:[h?new Date(h).toLocaleDateString("en-US",{month:"short",day:"numeric"}):"\u2014",f.fieldValues["/attributes/@wkdur"]?` \xB7 ${f.fieldValues["/attributes/@wkdur"]}m`:""]})]}),g&&(0,Ne.jsx)("span",{className:"text-base",children:Ywe[g]})]},f.id)})})]}),(0,Ne.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-5",children:[(0,Ne.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ne.jsx)("h2",{className:"font-semibold text-foreground",children:"Active Goals"}),(0,Ne.jsxs)("button",{onClick:()=>o("/progress"),className:"text-xs text-muted-foreground hover:text-primary flex items-center gap-1 transition-colors",children:["Manage ",(0,Ne.jsx)(_c,{className:"w-3 h-3"})]})]}),n?(0,Ne.jsx)("div",{className:"space-y-3",children:Array.from({length:3}).map((f,m)=>(0,Ne.jsx)("div",{className:"h-14 bg-muted rounded-xl animate-pulse"},m))}):r.filter(f=>f.fieldValues["/attributes/@glsta"]!=="done").length===0?(0,Ne.jsxs)("div",{className:"text-center py-8",children:[(0,Ne.jsx)(Rs,{className:"w-10 h-10 text-muted-foreground
7/30 mx-auto mb-3"}),(0,Ne.jsx)("p",{className:"text-sm text-muted-foreground",children:"No active goals."}),(0,Ne.jsx)("button",{onClick:()=>o("/progress"),className:"mt-3 text-xs text-primary hover:underline",children:"Set a goal \u2192"})]}):(0,Ne.jsx)("div",{className:"space-y-2",children:r.filter(f=>f.fieldValues["/attributes/@glsta"]!=="done").slice(0,5).map(f=>{let m=f.fieldValues["/attributes/@glsta"]??"todo",h={todo:"bg-muted text-muted-foreground",active:"bg-blue-500/20 text-blue-400",close:"bg-amber-500/20 text-amber-400",done:"bg-green-500/20 text-green-400"},g={todo:"Not Started",active:"In Progress",close:"Almost There",done:"Done!"};return(0,Ne.jsxs)("div",{className:"flex items-center gap-3 p-3 rounded-xl hover:bg-accent transition-colors",children:[(0,Ne.jsx)(Rs,{className:"w-4 h-4 text-muted-foreground shrink-0"}),(0,Ne.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ne.jsx)("div",{className:"font-medium text-sm text-foreground truncate",children:f.fieldValues["/text"]||"Goal"}),f.fieldValues["/attributes/@gltar"]&&(0,Ne.jsxs)("div",{className:"text-xs text-muted-foreground",children:["Target: ",f.fieldValues["/attributes/@gltar"]]})]}),(0,Ne.jsx)("span",{className:et("text-xs px-2 py-1 rounded-full font-medium shrink-0",h[m]),children:g[m]})]},f.id)})})]})]}),a.length>0&&(0,Ne.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-5",children:[(0,Ne.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Ne.jsxs)("h2",{className:"font-semibold text-foreground flex items-center gap-2",children:[(0,Ne.jsx)(Ds,{className:"w-4 h-4 text-primary"})," Personal Records"]}),(0,Ne.jsxs)("button",{onClick:()=>o("/progress"),className:"text-xs text-muted-foreground hover:text-primary flex items-center gap-1 transition-colors",children:["All PRs ",(0,Ne.jsx)(_c,{className:"w-3 h-3"})]})]}),(0,Ne.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:a.slice(0,6).map(f=>(0,Ne.jsxs)("div",{className:"bg-muted/50 rounded-xl p-3",children:[(0,Ne.jsx)("div",{className:"text-xs text-muted-foreground mb-1",children:f.fieldValues["/attributes/@prexr"]||f.fieldValues["/text"]}),(0,Ne.jsx)("div",{className:"font-bold text-foreground",children:f.fieldValues["/attributes/@prwgt"]?`${f.fieldValues["/attributes/@prwgt"]} lbs`:"\u2014"}),f.fieldValues["/attributes/@prrep"]&&(0,Ne.jsxs)("div",{className:"text-xs text-muted-foreground",children:["\xD7 ",f.fieldValues["/attributes/@prrep"]," reps"]})]},f.id))})]})]})}var Pa=H(ve());var nn=H(ve());var ze=H(qe()),e_e="https://raw.githubusercontent.com/yuhonas/free-exercise-db/main/dist/exercises.json",tF="https://raw.githubusercontent.com/yuhonas/free-exercise-db/main/exercises",t_e={abdominals:"core",abductors:"legs",adductors:"legs",biceps:"biceps",calves:"legs",chest:"chest",forearms:"biceps",glutes:"legs",hamstrings:"legs","hip flexors":"core","it band":"legs",lats:"back","lower back":"back","middle back":"back",neck:"shoulders",quadriceps:"legs",shoulders:"shoulders",traps:"back",triceps:"triceps","upper back":"back"},r_e={"body only":"none",other:"none","medicine ball":"none",dumbbell:"dumbbells",barbell:"barbell",cable:"cable",machine:"machine",kettlebells:"kettlebell",bands:"bands","e-z curl bar":"barbell","exercise ball":"none","foam roll":"none"},n_e={beginner:"beginner",intermediate:"intermediate",expert:"advanced"},a_e=[{value:"",label:"All Muscles"},{value:"chest",label:"Chest"},{value:"back",label:"Back"},{value:"shoulders",label:"Shoulders"},{value:"biceps",label:"Biceps"},{value:"triceps",label:"Triceps"},{value:"abdominals",label:"Core / Abs"},{value:"quadriceps",label:"Quads"},{value:"hamstrings",label:"Hamstrings"},{value:"glutes",label:"Glutes"},{value:"calves",label:"Calves"}],o_e=[{value:"",label:"All Equipment"},{value:"body only",label:"No Equipment"},{value:"dumbbell",label:"Dumbbells"},{value:"barbell",label:"Barbell"},{value:"cable",label:"Cable"},{value:"machine",label:"Machine"},{value:"kettlebells",label:"Kettlebell"},{value:"bands",label:"Bands"}],i_e=[{value:"",label:"All Levels"},{value:"beginner",label:"Beginner"},{value:"intermediate",label:"Intermediate"},{value:"expert",label:"Advanced"}];function s_e({ex:e,imported:t,importing:r,onImport:n}){let[a,o]=nn.useState(!1),i=e.images[0]?`${tF}/${e.id}/0.jpg`:null,s=e.primaryMuscles[0]??"",l=t,u=r;return(0,ze.jsxs)("div",{className:et("group bg-card border rounded-2xl overflow-hidden transition-all duration-200",l?"border-primary/50 bg-primary/5":"border-border hover:border-primary/30 hover:shadow-md"),children:[(0,ze.jsxs)("div",{className:"aspect-video bg-muted relative overflow-hidden",children:[i&&!a?(0,ze.jsx)("img",{src:i,alt:e.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",onError:()=>o(!0)}):(0,ze.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,ze.jsx)(na,{className:"w-8 h-8 text-muted-foreground
7/20"})}),(0,ze.jsx)("div",{className:et("absolute top-2 left-2 text-xs font-medium px-2 py-0.5 rounded-full",e.level==="beginner"&&"bg-green-500/80 text-white",e.level==="intermediate"&&"bg-amber-500/80 text-white",e.level==="expert"&&"bg-red-500/80 text-white"),children:e.level}),l&&(0,ze.jsx)("div",{className:"absolute top-2 right-2 w-6 h-6 rounded-full bg-primary flex items-center justify-center",children:(0,ze.jsx)(Cf,{className:"w-3.5 h-3.5 text-primary-foreground"})})]}),(0,ze.jsxs)("div",{className:"p-3",children:[(0,ze.jsx)("div",{className:"font-medium text-sm text-foreground leading-tight mb-1 truncate",children:e.name}),(0,ze.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,ze.jsxs)("div",{className:"text-xs text-muted-foreground truncate",children:[s&&(0,ze.jsx)("span",{className:"capitalize",children:s}),e.equipment&&e.equipment!=="other"&&(0,ze.jsxs)("span",{children:[" \xB7 ",e.equipment]})]}),(0,ze.jsx)("button",{onClick:n,disabled:l||u,className:et("shrink-0 flex items-center gap-1 text-xs font-medium px-2.5 py-1.5 rounded-lg transition-all",l?"bg-primary/10 text-primary cursor-default":u?"bg-muted text-muted-foreground cursor-wait":"bg-primary text-primary-foreground hover:opacity-90"),children:u?(0,ze.jsx)(xo,{className:"w-3 h-3 animate-spin"}):l?(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Cf,{className:"w-3 h-3"}),(0,ze.jsx)("span",{children:"Saved"})]}):(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)(Pf,{className:"w-3 h-3"}),(0,ze.jsx)("span",{children:"Import"})]})})]})]})]})}function gC({onClose:e,onImported:t,alreadyImported:r}){let[n,a]=nn.useState([]),[o,i]=nn.useState(!0),[s,l]=nn.useState(null),[u,d]=nn.useState(""),[f,m]=nn.useState(""),[h,g]=nn.useState(""),[y,b]=nn.useState(""),[w,S]=nn.useState(new Set),[x,C]=nn.useState(new Set(r)),[I,A]=nn.useState(!1),O=24,[F,q]=nn.useState(1);nn.useEffect(()=>{fetch(e_e).then(R=>R.json()).then(R=>{a(R),i(!1)}).catch(()=>{l("Failed to load exercise database. Check your connection."),i(!1)})},[]),nn.useEffect(()=>{q(1)},[u,f,h,y]);let G=nn.useMemo(()=>n.filter(R=>{let N=!u||R.name.toLowerCase().includes(u.toLowerCase()),U=!f||R.primaryMuscles.includes(f),B=!h||R.equipment===h,V=!y||R.level===y;return N&&U&&B&&V}),[n,u,f,h,y]),J=G.slice(0,F*O),Y=J.length<G.length,le=R=>{let N=t_e[R.primaryMuscles[0]]??"fullbody",U=r_e[R.equipment]??"none",B=n_e[R.level]??"beginner",V=R.images[0]?`${tF}/${R.id}/0.jpg`:null,Z=R.instructions.slice(0,5).join(" ").slice(0,500),Q={"/text":R.name,"/attributes/@muscl":N,"/attributes/@equip":U,"/attributes/@diff0":B};return V&&(Q["/attributes/@gifur"]=V),Z&&(Q["/attributes/@howto"]=Z),Q},re=async R=>{let N=3e3;for(let U=0;U<=4;U++)try{await d1(R);return}catch(B){if(B?.response?.status===429&&U<4)await new Promise(V=>setTimeout(V,N)),N*=2;else throw B}},oe=nn.useCallback(async R=>{let N=R.name.toLowerCase();if(!(x.has(N)||w.has(N))){S(U=>{let B=new Set(U);return B.add(N),B});try{await re(le(R)),C(U=>{let B=new Set(U);return B.add(N),B}),t()}catch(U){let B=U?.response?.status;console.error("Import error:",B,U?.response?.data??U?.message??U),B===429?tn.error("Too many requests \u2014 wait 2 minutes and try again."):tn.error(`Failed to import "${R.name}" (${B??"network error"})`)}finally{S(U=>{let B=new Set(U);return B.delete(N),B})}}},[x,w,t]),$=async()=>{let R=G.filter(U=>!x.has(U.name.toLowerCase())).slice(0,20);if(!R.length)return;A(!0),tn.info(`Importing ${R.length} exercises \u2014 this takes ~30s to avoid rate limits\u2026`);let N=0;for(let U of R){let B=U.name.toLowerCase();if(!x.has(B)){S(V=>{let Z=new Set(V);return Z.add(B),Z});try{await re(le(U)),C(V=>{let Z=new Set(V);return Z.add(B),Z}),t(),N++}catch{}finally{S(V=>{let Z=new Set(V);return Z.delete(B),Z})}await new Promise(V=>setTimeout(V,2e3))}}tn.success(`Done! ${N} of ${R.length} exercises imported.`),A(!1)},z=G.filter(R=>!x.has(R.name.toLowerCase())).length;return(0,ze.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,ze.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm",onClick:e}),(0,ze.jsxs)("div",{className:"relative bg-background border border-border rounded-2xl w-full max-w-5xl max-h-[92vh] flex flex-col shadow-2xl",children:[(0,ze.jsxs)("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[(0,ze.jsx)("div",{className:"w-9 h-9 rounded-xl bg-primary/10 flex items-center justify-center",children:(0,ze.jsx)(Sc,{className:"w-5 h-5 text-primary"})}),(0,ze.jsxs)("div",{children:[(0,ze.jsx)("h2",{className:"font-bold text-foreground",children:"Import Exercises"}),(0,ze.jsx)("p",{className:"text-xs text-muted-foreground",children:o?"Loading...":`${n.length} exercises \xB7 free-exercise-db`})]}),(0,ze.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[z>0&&!o&&(0,ze.jsxs)("button",{onClick:$,disabled:I,className:"flex items-center gap-1.5 text-sm font-medium bg-primary/10 text-primary border border-primary/20 px-3 py-1.5 rounded-xl hover:bg-primary/20 transition-colors disabled:opacity-50",children:[I?(0,ze.jsx)(xo,{className:"w-3.5 h-3.5 animate-spin"}):(0,ze.jsx)(Pf,{className:"w-3.5 h-3.5"}),(0,ze.jsxs)("span",{children:["Import ",Math.min(z,20),z>20?" (batch)":""]})]}),(0,ze.jsx)("button",{onClick:e,className:"p-2 rounded-xl hover:bg-accent transition-colors",children:(0,ze.jsx)(aa,{className:"w-4 h-4 text-muted-foreground"})})]})]}),(0,ze.jsxs)("div",{className:"flex flex-wrap gap-2 px-6 py-3 border-b border-border shrink-0 bg-muted/30",children:[(0,ze.jsxs)("div",{className:"relative flex-1 min-w-44",children:[(0,ze.jsx)(Kl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),(0,ze.jsx)("input",{value:u,onChange:R=>d(R.target.value),placeholder:"Search 800+ exercises...",className:"w-full bg-card border border-border rounded-xl pl-9 pr-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,ze.jsxs)("div",{className:"relative",children:[(0,ze.jsx)("select",{value:f,onChange:R=>m(R.target.value),className:"bg-card border border-border rounded-xl px-3 py-2 text-sm text-foreground appearance-none pr-8 focus:outline-none focus:border-primary",children:a_e.map(R=>(0,ze.jsx)("option",{value:R.value,children:R.label},R.value))}),(0,ze.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]}),(0,ze.jsxs)("div",{className:"relative",children:[(0,ze.jsx)("select",{value:h,onChange:R=>g(R.target.value),className:"bg-card border border-border rounded-xl px-3 py-2 text-sm text-foreground appearance-none pr-8 focus:outline-none focus:border-primary",children:o_e.map(R=>(0,ze.jsx)("option",{value:R.value,children:R.label},R.value))}),(0,ze.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]}),(0,ze.jsxs)("div",{className:"relative",children:[(0,ze.jsx)("select",{value:y,onChange:R=>b(R.target.value),className:"bg-card border border-border rounded-xl px-3 py-2 text-sm text-foreground appearance-none pr-8 focus:outline-none focus:border-primary",children:i_e.map(R=>(0,ze.jsx)("option",{value:R.value,children:R.label},R.value))}),(0,ze.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]}),(u||f||h||y)&&(0,ze.jsxs)("button",{onClick:()=>{d(""),m(""),g(""),b("")},className:"flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground border border-border rounded-xl px-3 py-2 transition-colors",children:[(0,ze.jsx)(aa,{className:"w-3.5 h-3.5"}),(0,ze.jsx)("span",{children:"Clear"})]}),(0,ze.jsxs)("span",{className:"self-center text-xs text-muted-foreground ml-auto",children:[G.length," results \xB7 ",x.size," imported"]})]}),(0,ze.jsxs)("div",{className:"flex-1 overflow-y-auto p-6",children:[o&&(0,ze.jsxs)("div",{className:"flex flex-col items-center justify-center py-20 gap-4",children:[(0,ze.jsx)(xo,{className:"w-8 h-8 text-primary animate-spin"}),(0,ze.jsx)("p",{className:"text-sm text-muted-foreground",children:"Fetching exercise database..."})]}),s&&(0,ze.jsx)("div",{className:"text-center py-20",children:(0,ze.jsx)("p",{className:"text-sm text-destructive",children:s})}),!o&&!s&&G.length===0&&(0,ze.jsxs)("div",{className:"text-center py-20",children:[(0,ze.jsx)(Kl,{className:"w-10 h-10 text-muted-foreground
7/20 mx-auto mb-3"}),(0,ze.jsx)("p",{className:"text-sm text-muted-foreground",children:"No exercises match your filters."})]}),!o&&!s&&G.length>0&&(0,ze.jsxs)(ze.Fragment,{children:[(0,ze.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:J.map(R=>(0,ze.jsx)(s_e,{ex:R,imported:x.has(R.name.toLowerCase()),importing:w.has(R.name.toLowerCase()),onImport:()=>oe(R)},R.id))}),Y&&(0,ze.jsx)("div",{className:"flex justify-center mt-6",children:(0,ze.jsxs)("button",{onClick:()=>q(R=>R+1),className:"text-sm text-primary border border-primary/20 bg-primary/5 hover:bg-primary/10 px-6 py-2.5 rounded-xl font-medium transition-colors",children:["Load more (",G.length-J.length," remaining)"]})})]})]})]})]})}var xe=H(qe()),rF=[{value:"",label:"All Muscles"},{value:"chest",label:"Chest"},{value:"back",label:"Back"},{value:"shoulders",label:"Shoulders"},{value:"biceps",label:"Biceps"},{value:"triceps",label:"Triceps"},{value:"legs",label:"Legs"},{value:"core",label:"Core"},{value:"cardio",label:"Cardio"},{value:"fullbody",label:"Full Body"}],nF=[{value:"",label:"All Equipment"},{value:"none",label:"No Equipment"},{value:"dumbbells",label:"Dumbbells"},{value:"barbell",label:"Barbell"},{value:"cable",label:"Cable"},{value:"machine",label:"Machine"},{value:"kettlebell",label:"Kettlebell"},{value:"bands",label:"Bands"},{value:"bench",label:"Bench"}],vC={beginner:"bg-green-500/20 text-green-400 border-green-500/30",intermediate:"bg-amber-500/20 text-amber-400 border-amber-500/30",advanced:"bg-red-500/20 text-red-400 border-red-500/30"},l_e={chest:"#ef4444",back:"#3b82f6",shoulders:"#8b5cf6",biceps:"#06b6d4",triceps:"#f59e0b",legs:"#22c55e",core:"#f97316",cardio:"#ec4899",fullbody:"#6366f1"};function u_e({ex:e,onClick:t}){let[r,n]=Pa.useState(!1),a=e.fieldValues["/attributes/@gifur"],o=e.fieldValues["/attributes/@muscl"],i=e.fieldValues["/attributes/@diff0"],s=e.fieldValues["/attributes/@equip"];return(0,xe.jsxs)("button",{onClick:t,className:"group bg-card border border-border rounded-2xl overflow-hidden text-left hover:border-primary/50 hover:shadow-lg hover:shadow-primary/10 transition-all duration-200",children:[(0,xe.jsxs)("div",{className:"aspect-video bg-muted relative overflow-hidden",children:[a&&!r?(0,xe.jsx)("img",{src:a,alt:e.fieldValues["/text"]??"Exercise",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",onError:()=>n(!0)}):(0,xe.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,xe.jsx)(na,{className:"w-10 h-10 text-muted-foreground/30"})}),o&&(0,xe.jsx)("div",{className:"absolute top-2 left-2 text-xs font-medium px-2 py-0.5 rounded-full text-white",style:{backgroundColor:(l_e[o]??"#6366f1")+"cc"},children:o.charAt(0).toUpperCase()+o.slice(1)})]}),(0,xe.jsxs)("div",{className:"p-4",children:[(0,xe.jsx)("div",{className:"font-semibold text-foreground text-sm leading-tight mb-2",children:e.fieldValues["/text"]??"Exercise"}),(0,xe.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[i&&(0,xe.jsx)("span",{className:et("text-xs px-2 py-0.5 rounded-full border font-medium",vC[i]??vC.beginner),children:i.charAt(0).toUpperCase()+i.slice(1)}),s&&(0,xe.jsx)("span",{className:"text-xs text-muted-foreground",children:s.replace(/-/g," ")})]})]})]})}function c_e({ex:e,onClose:t}){let[r,n]=Pa.useState(!1),a=e.fieldValues["/attributes/@gifur"],o=e.fieldValues["/attributes/@srcur"],i=e.fieldValues["/attributes/@howto"],s=e.fieldValues["/attributes/note"];return(0,xe.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,xe.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:t}),(0,xe.jsxs)("div",{className:"relative bg-card border border-border rounded-2xl max-w-lg w-full max-h-[90vh] overflow-y-auto shadow-2xl",children:[(0,xe.jsxs)("div",{className:"aspect-video bg-muted relative rounded-t-2xl overflow-hidden",children:[a&&!r?(0,xe.jsx)("img",{src:a,alt:e.fieldValues["/text"]??"",className:"w-full h-full object-cover",onError:()=>n(!0)}):(0,xe.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,xe.jsx)(na,{className:"w-16 h-16 text-muted-foreground
7/20"})}),(0,xe.jsx)("button",{onClick:t,className:"absolute top-3 right-3 bg-black/50 rounded-full p-1.5 hover:bg-black/70 transition-colors",children:(0,xe.jsx)(aa,{className:"w-4 h-4 text-white"})})]}),(0,xe.jsxs)("div",{className:"p-6 space-y-4",children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h2",{className:"text-xl font-bold text-foreground",children:e.fieldValues["/text"]}),(0,xe.jsxs)("div",{className:"flex gap-2 mt-2 flex-wrap",children:[e.fieldValues["/attributes/@muscl"]&&(0,xe.jsx)("span",{className:"text-xs bg-primary/20 text-primary px-2 py-1 rounded-full",children:e.fieldValues["/attributes/@muscl"]}),e.fieldValues["/attributes/@equip"]&&(0,xe.jsx)("span",{className:"text-xs bg-muted text-muted-foreground px-2 py-1 rounded-full",children:e.fieldValues["/attributes/@equip"]}),e.fieldValues["/attributes/@diff0"]&&(0,xe.jsx)("span",{className:et("text-xs px-2 py-1 rounded-full border",vC[e.fieldValues["/attributes/@diff0"]]??""),children:e.fieldValues["/attributes/@diff0"]})]})]}),i&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h3",{className:"font-semibold text-sm text-foreground mb-2",children:"How To"}),(0,xe.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed whitespace-pre-line",children:i})]}),s&&(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h3",{className:"font-semibold text-sm text-foreground mb-2",children:"Notes"}),(0,xe.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:s})]}),o&&(0,xe.jsxs)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-sm text-primary hover:underline",children:[(0,xe.jsx)(Ag,{className:"w-4 h-4"})," View on fitnessprogramer.com"]})]})]})]})}function d_e({onClose:e,onAdded:t}){let[r,n]=Pa.useState(!1),[a,o]=Pa.useState({name:"",muscle:"chest",equipment:"dumbbells",difficulty:"beginner",gifUrl:"",sourceUrl:"",howTo:"",notes:""});return(0,xe.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,xe.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:e}),(0,xe.jsxs)("div",{className:"relative bg-card border border-border rounded-2xl max-w-md w-full max-h-[90vh] overflow-y-auto shadow-2xl p-6",children:[(0,xe.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,xe.jsx)("h2",{className:"text-lg font-bold text-foreground",children:"Add Exercise"}),(0,xe.jsx)("button",{onClick:e,children:(0,xe.jsx)(aa,{className:"w-5 h-5 text-muted-foreground hover:text-foreground"})})]}),(0,xe.jsxs)("form",{onSubmit:async s=>{if(s.preventDefault(),!!a.name.trim()){n(!0);try{await d1({"/text":a.name,"/attributes/@muscl":a.muscle,"/attributes/@equip":a.equipment,"/attributes/@diff0":a.difficulty,"/attributes/@gifur":a.gifUrl||void 0,"/attributes/@srcur":a.sourceUrl||void 0,"/attributes/@howto":a.howTo||void 0,"/attributes/note":a.notes||void 0}),tn.success("Exercise added to library!"),t(),e()}catch{tn.error("Failed to add exercise")}finally{n(!1)}}},className:"space-y-4",children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Exercise Name *"}),(0,xe.jsx)("input",{value:a.name,onChange:s=>o(l=>({...l,name:s.target.value})),placeholder:"e.g. Barbell Back Squat",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary",required:!0})]}),(0,xe.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Muscle",key:"muscle",options:rF.slice(1)},{label:"Equipment",key:"equipment",options:nF.slice(1)},{label:"Difficulty",key:"difficulty",options:[{value:"beginner",label:"Beginner"},{value:"intermediate",label:"Intermediate"},{value:"advanced",label:"Advanced"}]}].map(({label:s,key:l,options:u})=>(0,xe.jsxs)("div",{children:[(0,xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:s}),(0,xe.jsxs)("div",{className:"relative",children:[(0,xe.jsx)("select",{value:a[l],onChange:d=>o(f=>({...f,[l]:d.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none focus:outline-none focus:border-primary",children:u.map(d=>(0,xe.jsx)("option",{value:d.value,children:d.label},d.value))}),(0,xe.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]})]},l))}),[{label:"GIF URL",key:"gifUrl",placeholder:"https://fitnessprogramer.com/..."},{label:"Source URL",key:"sourceUrl",placeholder:"https://fitnessprogramer.com/exercise/..."}].map(({label:s,key:l,placeholder:u})=>(0,xe.jsxs)("div",{children:[(0,xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:s}),(0,xe.jsx)("input",{value:a[l],onChange:d=>o(f=>({...f,[l]:d.target.value})),placeholder:u,className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]},l)),(0,xe.jsxs)("div",{children:[(0,xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"How To"}),(0,xe.jsx)("textarea",{value:a.howTo,onChange:s=>o(l=>({...l,howTo:s.target.value})),placeholder:"Step-by-step instructions...",rows:3,className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary resize-none"})]}),(0,xe.jsx)("button",{type:"submit",disabled:r,className:"w-full bg-primary text-primary-foreground py-2.5 rounded-xl font-medium text-sm hover:opacity-90 transition-opacity disabled:opacity-50",children:r?"Adding...":"Add Exercise"})]})]})]})}function yC(){let{nodes:e,loading:t,refetch:r}=zB(),[n,a]=Pa.useState(""),[o,i]=Pa.useState(""),[s,l]=Pa.useState(""),[u,d]=Pa.useState(null),[f,m]=Pa.useState(!1),[h,g]=Pa.useState(!1),y=Pa.useMemo(()=>new Set(e.map(w=>(w.fieldValues["/text"]??"").toLowerCase())),[e]),b=Pa.useMemo(()=>e.filter(w=>{let S=(w.fieldValues["/text"]??"").toLowerCase(),x=w.fieldValues["/attributes/@muscl"]??"",C=w.fieldValues["/attributes/@equip"]??"";
7return(!n||S.includes(n.toLowerCase()))&&(!o||x===o)&&(!s||C===s)}),[e,n,o,s]);return(0,xe.jsxs)("div",{className:"p-6 max-w-6xl mx-auto",children:[(0,xe.jsxs)("div",{className:"flex items-center justify-between mb-6 pt-2",children:[(0,xe.jsxs)("div",{children:[(0,xe.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Exercise Library"}),(0,xe.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:[e.length," exercises"]})]}),(0,xe.jsxs)("div",{className:"flex items-center gap-2",children:[(0,xe.jsxs)("button",{onClick:()=>g(!0),className:"flex items-center gap-2 bg-primary/10 text-primary border border-primary/20 px-4 py-2 rounded-xl font-medium text-sm hover:bg-primary/20 transition-colors",children:[(0,xe.jsx)(Sc,{className:"w-4 h-4"})," Import from DB"]}),(0,xe.jsxs)("button",{onClick:()=>m(!0),className:"flex items-center gap-2 bg-primary text-primary-foreground px-4 py-2 rounded-xl font-medium text-sm hover:opacity-90 transition-opacity shadow-lg shadow-primary/30",children:[(0,xe.jsx)(ni,{className:"w-4 h-4"})," Add Exercise"]})]})]}),(0,xe.jsxs)("div",{className:"flex flex-wrap gap-3 mb-6",children:[(0,xe.jsxs)("div",{className:"relative flex-1 min-w-48",children:[(0,xe.jsx)(Kl,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),(0,xe.jsx)("input",{value:n,onChange:w=>a(w.target.value),placeholder:"Search exercises...",className:"w-full bg-card border border-border rounded-xl pl-10 pr-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,xe.jsxs)("div",{className:"relative",children:[(0,xe.jsx)("select",{value:o,onChange:w=>i(w.target.value),className:"bg-card border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none pr-8 focus:outline-none focus:border-primary",children:rF.map(w=>(0,xe.jsx)("option",{value:w.value,children:w.label},w.value))}),(0,xe.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]}),(0,xe.jsxs)("div",{className:"relative",children:[(0,xe.jsx)("select",{value:s,onChange:w=>l(w.target.value),className:"bg-card border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none pr-8 focus:outline-none focus:border-primary",children:nF.map(w=>(0,xe.jsx)("option",{value:w.value,children:w.label},w.value))}),(0,xe.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]}),(n||o||s)&&(0,xe.jsxs)("button",{onClick:()=>{a(""),i(""),l("")},className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground border border-border rounded-xl px-3 py-2.5 transition-colors",children:[(0,xe.jsx)(aa,{className:"w-3.5 h-3.5"})," Clear"]})]}),t?(0,xe.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:Array.from({length:8}).map((w,S)=>(0,xe.jsxs)("div",{className:"bg-card border border-border rounded-2xl overflow-hidden animate-pulse",children:[(0,xe.jsx)("div",{className:"aspect-video bg-muted"}),(0,xe.jsxs)("div",{className:"p-4 space-y-2",children:[(0,xe.jsx)("div",{className:"h-4 bg-muted rounded w-3/4"}),(0,xe.jsx)("div",{className:"h-3 bg-muted rounded w-1/2"})]})]},S))}):b.length===0?(0,xe.jsxs)("div",{className:"text-center py-20",children:[(0,xe.jsx)(Wl,{className:"w-12 h-12 text-muted-foreground/20 mx-auto mb-4"}),(0,xe.jsx)("p",{className:"text-muted-foreground",children:"No exercises match your filters."}),e.length===0&&(0,xe.jsx)("button",{onClick:()=>m(!0),className:"mt-4 text-sm text-primary hover:underline",children:"Add your first exercise \u2192"})]}):(0,xe.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-4",children:b.map(w=>(0,xe.jsx)(u_e,{ex:w,onClick:()=>d(w)},w.id))}),u&&(0,xe.jsx)(c_e,{ex:u,onClose:()=>d(null)}),f&&(0,xe.jsx)(d_e,{onClose:()=>m(!1),onAdded:r}),h&&(0,xe.jsx)(gC,{onClose:()=>g(!1),onImported:r,alreadyImported:y})]})}var bC=H(ve());var Xe=H(qe()),f_e=[{value:"strength",label:"\u{1F3CB}\uFE0F Strength"},{value:"cardio",label:"\u{1F3C3} Cardio"},{value:"hiit",label:"\u26A1 HIIT"},{value:"flexibility",label:"\u{1F9D8} Flexibility"},{value:"sport",label:"\u26BD Sport"},{value:"rest",label:"\u{1F634} Rest Day"}],p_e=[{value:"r5",label:"\u{1F4AA} Crushed it"},{value:"r4",label:"\u{1F44D} Good"},{value:"r3",label:"\u{1F610} Average"},{value:"r2",label:"\u{1F613} Tough"},{value:"r1",label:"\u{1F480} Rough"}],aF={strength:"bg-red-500/20 text-red-400",cardio:"bg-blue-500/20 text-blue-400",hiit:"bg-amber-500/20 text-amber-400",flexibility:"bg-green-500/20 text-green-400",sport:"bg-purple-500/20 text-purple-400",rest:"bg-gray-500/20 text-gray-400"},m_e={r5:"\u{1F4AA}",r4:"\u{1F44D}",r3:"\u{1F610}",r2:"\u{1F613}",r1:"\u{1F480}"};
7function oF({value:e,onChange:t,options:r,placeholder:n}){return(0,Xe.jsxs)("div",{className:"relative",children:[(0,Xe.jsxs)("select",{value:e,onChange:a=>t(a.target.value),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none focus:outline-none focus:border-primary",children:[n&&(0,Xe.jsx)("option",{value:"",children:n}),r.map(a=>(0,Xe.jsx)("option",{value:a.value,children:a.label},a.value))]}),(0,Xe.jsx)(hn,{className:"absolute right-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground pointer-events-none"})]})}function xC(){let{nodes:e,loading:t,refetch:r}=If(),[n,a]=bC.useState(!1),[o,i]=bC.useState({title:"",type:"strength",date:new Date().toISOString().split("T")[0],duration:"",exercises:"",sets:"",notes:"",rating:"r4"}),s=async d=>{if(d.preventDefault(),!!o.title.trim()){a(!0);try{await jB({"/text":o.title,"/attributes/@wktyp":o.type,"/attributes/@wkdat":new Date(o.date).toISOString(),"/attributes/@wkdur":o.duration?Number(o.duration):void 0,"/attributes/@wkexr":o.exercises||void 0,"/attributes/@wkset":o.sets||void 0,"/attributes/@wknte":o.notes||void 0,"/attributes/@wkrat":o.rating}),tn.success("Workout logged! \u{1F4AA}"),i({title:"",type:"strength",date:new Date().toISOString().split("T")[0],duration:"",exercises:"",sets:"",notes:"",rating:"r4"}),r()}catch{tn.error("Failed to log workout")}finally{a(!1)}}},l=async d=>{try{await Sg("ZXfJWJcW12QmhJrM",d),tn.success("Workout removed"),r()}catch{tn.error("Failed to delete")}},u=[...e].sort((d,f)=>{let m=new Date(d.fieldValues["/attributes/@wkdat"]||0).getTime();return new Date(f.fieldValues["/attributes/@wkdat"]||0).getTime()-m});return(0,Xe.jsxs)("div",{className:"p-6 max-w-4xl mx-auto space-y-8",children:[(0,Xe.jsxs)("div",{className:"pt-2",children:[(0,Xe.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Log Workout"}),(0,Xe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Record today's session"})]}),(0,Xe.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 items-start",children:[(0,Xe.jsxs)("form",{onSubmit:s,className:"bg-card border border-border rounded-2xl p-6 space-y-4",children:[(0,Xe.jsx)("h2",{className:"font-semibold text-foreground",children:"New Entry"}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Workout Name *"}),(0,Xe.jsx)("input",{value:o.title,onChange:d=>i(f=>({...f,title:d.target.value})),placeholder:"e.g. Push Day, Morning Run, Leg Day",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary",required:!0})]}),(0,Xe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Type"}),(0,Xe.jsx)(oF,{value:o.type,onChange:d=>i(f=>({...f,type:d}
7)),options:f_e})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Date"}),(0,Xe.jsx)("input",{type:"date",value:o.date,onChange:d=>i(f=>({...f,date:d.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground focus:outline-none focus:border-primary"})]})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Duration (minutes)"}),(0,Xe.jsx)("input",{type:"number",value:o.duration,onChange:d=>i(f=>({...f,duration:d.target.value})),placeholder:"45",min:"1",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Exercises Performed"}),(0,Xe.jsx)("textarea",{value:o.exercises,onChange:d=>i(f=>({...f,exercises:d.target.value})),placeholder:"Bench Press, Incline DB Press, Cable Flyes...",rows:2,className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary resize-none"})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Sets / Reps / Weight"}),(0,Xe.jsx)("textarea",{value:o.sets,onChange:d=>i(f=>({...f,sets:d.target.value})),placeholder:"Bench: 4\xD78 @ 185lbs, Squats: 3\xD710 @ 225lbs...",rows:2,className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary resize-none"})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"How did it go?"}),(0,Xe.jsx)(oF,{value:o.rating,onChange:d=>i(f=>({...f,rating:d})),options:p_e})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Notes"}),(0,Xe.jsx)("textarea",{value:o.notes,onChange:d=>i(f=>({...f,notes:d.target.value})),placeholder:"How you felt, PRs hit, anything notable...",rows:2,className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary resize-none"})]}),(0,Xe.jsx)("button",{type:"submit",disabled:n,className:"w-full bg-primary text-primary-foreground py-3 rounded-xl font-semibold text-sm hover:opacity-90 transition-opacity disabled:opacity-50 shadow-lg shadow-primary/30",children:n?"Logging...":"\u{1F4AA} Log Workout"})]}),(0,Xe.jsxs)("div",{children:[(0,Xe.jsx)("h2",{className:"font-semibold text-foreground mb-4",children:"Workout History"}),t?(0,Xe.jsx)("div",{className:"space-y-3",children:Array.from({length:4}).map((d,f)=>(0,Xe.jsx)("div",{className:"h-20 bg-card border border-border rounded-2xl animate-pulse"},f))}):u.length===0?(0,Xe.jsxs)("div",{className:"text-center py-12 bg-card border border-border rounded-2xl",children:[(0,Xe.jsx)(Tf,{className:"w-12 h-12 text-muted-foreground/20 mx-auto mb-3"}),(0,Xe.jsx)("p",{className:"text-sm text-muted-foreground",children:"No workouts logged yet."})]}):(0,Xe.jsx)("div",{className:"space-y-3 max-h-[600px] overflow-y-auto pr-1",children:u.map(d=>{let f=d.fieldValues["/attributes/@wktyp"]??"strength",m=d.fieldValues["/attributes/@wkdat"],h=d.fieldValues["/attributes/@wkdur"],g=d.fieldValues["/attributes/@wkrat"];return(0,Xe.jsx)("div",{className:"group bg-card border border-border rounded-2xl p-4 hover:border-primary/30 transition-colors",children:(0,Xe.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Xe.jsx)("div",{className:et("w-10 h-10 rounded-xl flex items-center justify-center shrink-0 text-xs font-bold",aF[f]??aF.strength),children:f.slice(0,2).toUpperCase()}),(0,Xe.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Xe.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Xe.jsxs)("div",{className:"font-medium text-sm text-foreground truncate",children:[d.fieldValues["/text"]??"Workout",g&&(0,Xe.jsx)("span",{className:"ml-2",children:m_e[g]})]}),(0,Xe.jsx)("button",{onClick:()=>l(d.id),className:"opacity-0 group-hover:opacity-100 p-1 rounded-lg hover:bg-destructive/20 text-muted-foreground hover:text-destructive transition-all shrink-0",children:(0,Xe.jsx)(Xl,{className:"w-3.5 h-3.5"})})]}),(0,Xe.jsxs)("div",{className:"flex items-center gap-3 mt-1 text-xs text-muted-foreground",children:[m&&(0,Xe.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Xe.jsx)(Tf,{className:"w-3 h-3"}),new Date(m).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})]}),h&&(0,Xe.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Xe.jsx)(ji,{className:"w-3 h-3"})," ",h,"m"]})]}),d.fieldValues["/attributes/@wkexr"]&&(0,Xe.jsx)("p",{className:"text-xs text-muted-foreground mt-1 truncate",children:d.fieldValues["/attributes/@wkexr"]})]})]})},d.id)})})]})]})]})}var Ws=H(ve());
7var R1=H(ve());var DC=H(Ic()),Df=H(oi()),uq=H(w1()),cq=H(an()),dq=H(wo()),Nf=H(ve()),fq=H(GU());var Rf=H(w1()),$C=H(LC()),JU=H(Ic()),XU=H(EC()),YU=H(oi()),Un=function(t){return t===0?0:t>0?1:-1},zs=function(t){return(0,Rf.default)(t)&&t.indexOf("%")===t.length-1},_e=function(t){return(0,XU.default)(t)&&!(0,$C.default)(t)},QU=function(t){return(0,YU.default)(t)},gr=function(t){return _e(t)||(0,Rf.default)(t)},h4e=0,ru=function(t){var r=++h4e;return"".concat(t||"").concat(r)},ii=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!_e(t)&&!(0,Rf.default)(t))return n;var o;if(zs(t)){var i=t.indexOf("%");o=r*parseFloat(t.slice(0,i))/100}else o=+t;return(0,$C.default)(o)&&(o=n),a&&o>r&&(o=r),o},Ui=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},eq=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a<r;a++)if(!n[t[a]])n[t[a]]=!0;else return!0;return!1},Tc=function(t,r){return _e(t)&&_e(r)?function(n){return t+n*(r-t)}:function(){return r}};function qg(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):(0,JU.default)(n,t))===r})}var tq=function(t,r){return _e(t)&&_e(r)?t-r:(0,Rf.default)(t)&&(0,Rf.default)(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function js(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}var nq=H(ve()),MC=H(wo());function OC(e){"@babel/helpers - typeof";return OC=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OC(e)}var g4e=["viewBox","children"],aq=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],rq=["points","pathLength"],$1={svg:g4e,polygon:rq,polyline:rq},O1=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onF
7ocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Cc=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if((0,nq.isValidElement)(t)&&(n=t.props),!(0,MC.default)(n))return null;var a={};return Object.keys(n).forEach(function(o){O1.includes(o)&&(a[o]=r||function(i){return n[o](n,i)})}),a},v4e=function(t,r,n){return function(a){return t(r,n,a),null}},Pc=function(t,r,n){if(!(0,MC.default)(t)||OC(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(o){var i=t[o];O1.includes(o)&&typeof i=="function"&&(a||(a={}),a[o]=v4e(i,r,n))}),a};var y4e=["children"],b4e=["children"];function oq(e,t){if(e==null)return{};var r=x4e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x4e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var iq={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"};var So=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},sq=null,RC=null,NC=function e(t){if(t===sq&&Array.isArray(RC))return RC;var r=[];return Nf.Children.forEach(t,function(n){(0,Df.default)(n)||((0,fq.isFragment)(n)?r=r.concat(e(n.props.children)):r.push(n))}),RC=r,sq=t,r};function On(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return So(a)}):n=[So(t)],NC(e).forEach(function(a){var o=(0,DC.default)(a,"type.displayName")||(0,DC.default)(a,"type.n
7ame");n.indexOf(o)!==-1&&r.push(a)}),r}function qn(e,t){var r=On(e,t);return r&&r[0]}var zC=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!_e(n)||n<=0||!_e(a)||a<=0)},w4e=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],_4e=function(t){return t&&t.type&&(0,uq.default)(t.type)&&w4e.indexOf(t.type)>=0};var S4e=function(t,r,n,a){var o,i=(o=$1===null||$1===void 0?void 0:$1[a])!==null&&o!==void 0?o:[];return r.startsWith("data-")||!(0,cq.default)(t)&&(a&&i.includes(r)||aq.includes(r))||n&&O1.includes(r)};var ot=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if((0,Nf.isValidElement)(t)&&(a=t.props),!(0,dq.default)(a))return null;var o={};return Object.keys(a).forEach(function(i){var s;S4e((s=a)===null||s===void 0?void 0:s[i],i,r,n)&&(o[i]=a[i])}),o},M1=function e(t,r){if(t===r)return!0;var n=Nf.Children.count(t);if(n!==Nf.Children.count(r))return!1;if(n===0)return!0;if(n===1)return lq(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var o=t[a],i=r[a];if(Array.isArray(o)||Array.isArray(i)){if(!e(o,i))return!1}else if(!lq(o,i))return!1}return!0},lq=function(t,r){if((0,Df.default)(t)&&(0,Df.default)(r))return!0;if(!(0,Df.default)(t)&&!(0,Df.default)(r)){var n=t.props||{},a=n.children,o=oq(n,y4e),i=r.props||{},s=i.children,l=oq(i,b4e);return a&&s?js(o,l)&&M1(a,s):!a&&!s?js(o,l):!1}return!1},jC=function(t,r){var n=[],a={};return NC(t).forEach(function(o,i){if(_4e(o))n.push(o);else if(o){var s=So(o.type),l=r[s]||{},u=l.handler,d=l.once;if(u&&(!d||!a[s])){var f=u(o,s,i);n.push(f),a[s]=!0}}}),n},pq=function(t){var r=t&&t.type;return r&&iq[r]?iq[r]:null},mq=function(t,r){return NC(r).indexOf(t)};var k4e=["children","width","height","viewBox","className","style","title","desc"];function BC(){return BC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BC.apply(this,arguments)}function I4e(e,t){if(e==null)return{};var r=T4e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function T4e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vg(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,o=e.className,i=e.style,s=e.title,l=e.desc,u=I4e(e,k4e),d=a||{width:r,height:n,x:0,y:0},f=rt("recharts-surface",o);return R1.default.createElement("svg",BC({},ot(u,!0,"svg"),{className:f,width:r,height:n,style:i,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),R1.default.createElement("title",null,s),R1.default.createElement("desc",null,l),t)}var UC=H(ve());var C4e=["children","className"];function FC(){return FC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FC.apply(this,arguments)}function P4e(e,t){if(e==null)return{};var r=A4e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function A4e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nr=UC.default.forwardRef(function(e,t){var r=e.children,n=e.className,a=P4e(e,C4e),o=rt("recharts-layer",n);return UC.default.createElement("g",FC({className:o},ot(a,!0),{ref:t}),r)});var au=H(ve());var Fa=H(ve()),kP=H(an());var E4e=!1,ia=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];if(E4e&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(r.replace(/%s/g,function(){return a[i++]}))}};var Qq=H(ve()),wP=H(D1());function Jt(e){return function(){return e}}var HC=Math.cos;var Zg=Math.sin,Cn=Math.sqrt;var Ac=Math.PI,Tdt=Ac/2,zf=2*Ac;var GC=Math.PI,WC=2*GC,Ec=1e-6,mke=WC-Ec;function Rq(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function hke(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Rq;let r=10**t;return function(n){this._+=n[0];for(let a=1,o=n.length;a<o;++a)this._+=Math.round(arguments[a]*r)/r+n[a]}}var Lc=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Rq:hke(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,a){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+a}`}bezierCurveTo(t,r,n,a,o,i){this._append`C${+t},${+r},${+n}
7,${+a},${this._x1=+o},${this._y1=+i}`}arcTo(t,r,n,a,o){if(t=+t,r=+r,n=+n,a=+a,o=+o,o<0)throw new Error(`negative radius: ${o}`);let i=this._x1,s=this._y1,l=n-t,u=a-r,d=i-t,f=s-r,m=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Ec)if(!(Math.abs(f*l-u*d)>Ec)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-i,g=a-s,y=l*l+u*u,b=h*h+g*g,w=Math.sqrt(y),S=Math.sqrt(m),x=o*Math.tan((GC-Math.acos((y+m-b)/(2*w*S)))/2),C=x/S,I=x/w;Math.abs(C-1)>Ec&&this._append`L${t+C*d},${r+C*f}`,this._append`A${o},${o},0,0,${+(f*h>d*g)},${this._x1=t+I*l},${this._y1=r+I*u}`}}arc(t,r,n,a,o,i){if(t=+t,r=+r,n=+n,i=!!i,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),u=t+s,d=r+l,f=1^i,m=i?a-o:o-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ec||Math.abs(this._y1-d)>Ec)&&this._append`L${u},${d}`,n&&(m<0&&(m=m%WC+WC),m>mke?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=d}`:m>Ec&&this._append`A${n},${n},0,${+(m>=GC)},${f},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}};function Dq(){return new Lc}Dq.prototype=Lc.prototype;function jf(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Lc(t)}var Mdt=Array.prototype.slice;function Bf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Nq(e){this._context=e}Nq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function nu(e){return new Nq(e)}function N1(e){return e[0]}function z1(e){return e[1]}function Hg(e,t){var r=Jt(!0),n=null,a=nu,o=null,i=jf(s);e=typeof e=="function"?e:e===void 0?N1:Jt(e),t=typeof t=="function"?t:t===void 0?z1:Jt(t);function s(l){var u,d=(l=Bf(l)).length,f,m=!1,h;for(n==null&&(o=a(h=i())),u=0;u<=d;++u)!(u<d&&r(f=l[u],u,l))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(f,u,l),+t(f,u,l));if(h)return o=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Jt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Jt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Jt(!!l),s):r},s.curve=function(l){return arguments.length?(a=l,n!=null&&(o=a(n)),s):a},s.context=function(l){return arguments.length?(l==null?n=o=null:o=a(n=l),s):n},s}function Ff(e,t,r){var n=null,a=Jt(!0),o=null,i=nu,s=null,l=jf(u);e=typeof e=="function"?e:e===void 0?N1:Jt(+e),t=typeof t=="function"?t:t===void 0?Jt(0):Jt(+t),r=typeof r=="function"?r:r===void 0?z1:Jt(+r);function u(f){var m,h,g,y=(f=Bf(f)).length,b,w=!1,S,x=new Array(y),C=new Array(y);for(o==null&&(s=i(S=l())),m=0;m<=y;++m){if(!(m<y&&a(b=f[m],m,f))===w)if(w=!w)h=m,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=m-1;g>=h;--g)s.point(x[g],C[g]);s.lineEnd(),s.areaEnd()}w&&(x[m]=+e(b,m,f),C[m]=+t(b,m,f),s.point(n?+n(b,m,f):x[m],r?+r(b,m,f):C[m]))}if(S)return s=null,S+""||null}function d(){return Hg().defined(a).curve(i).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Jt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Jt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Jt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Jt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Jt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Jt(+f),u):r},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(r)},u.lineX1=function(){return d().x(n).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Jt(!!f),u):a},u.curve=function(f){return arguments.length?(i=f,o!=null&&(s=i(o)),u):i},u.context=function(f){return arguments.length?(f==null?o=s=null:s=i(o=f),u):o},u}var j1=class{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};function KC(e){return new j1(e,!0)}function JC(e){return new j1(e,!1)}var Uf={draw(e,t){let r=Cn(t/Ac);e.moveTo(r,0),e.arc(0,0,r,0,zf)}};
7var XC={draw(e,t){let r=Cn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};var zq=Cn(1/3),gke=zq*2,YC={draw(e,t){let r=Cn(t/gke),n=r*zq;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}};var QC={draw(e,t){let r=Cn(t),n=-r/2;e.rect(n,n,r,r)}};var vke=.8908130915292852,jq=Zg(Ac/10)/Zg(7*Ac/10),yke=Zg(zf/10)*jq,bke=-HC(zf/10)*jq,eP={draw(e,t){let r=Cn(t*vke),n=yke*r,a=bke*r;e.moveTo(0,-r),e.lineTo(n,a);for(let o=1;o<5;++o){let i=zf*o/5,s=HC(i),l=Zg(i);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}};var tP=Cn(3),rP={draw(e,t){let r=-Cn(t/(tP*3));e.moveTo(0,r*2),e.lineTo(-tP*r,-r),e.lineTo(tP*r,-r),e.closePath()}};var ko=-.5,Io=Cn(3)/2,nP=1/Cn(12),xke=(nP/2+1)*3,aP={draw(e,t){let r=Cn(t/xke),n=r/2,a=r*nP,o=n,i=r*nP+r,s=-o,l=i;e.moveTo(n,a),e.lineTo(o,i),e.lineTo(s,l),e.lineTo(ko*n-Io*a,Io*n+ko*a),e.lineTo(ko*o-Io*i,Io*o+ko*i),e.lineTo(ko*s-Io*l,Io*s+ko*l),e.lineTo(ko*n+Io*a,ko*a-Io*n),e.lineTo(ko*o+Io*i,ko*i-Io*o),e.lineTo(ko*s+Io*l,ko*l-Io*s),e.closePath()}};function B1(e,t){let r=null,n=jf(a);e=typeof e=="function"?e:Jt(e||Uf),t=typeof t=="function"?t:Jt(t===void 0?64:+t);function a(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return a.type=function(o){return arguments.length?(e=typeof o=="function"?o:Jt(o),a):e},a.size=function(o){return arguments.length?(t=typeof o=="function"?o:Jt(+o),a):t},a.context=function(o){return arguments.length?(r=o??null,a):r},a}function qf(){}function Vf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Bq(e){this._context=e}Bq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Vf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oP(e){return new Bq(e)}function Fq(e){this._context=e}Fq.prototype={areaStart:qf,areaEnd:qf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iP(e){return new Fq(e)}function Uq(e){this._context=e}Uq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sP(e){return new Uq(e)}function qq(e){this._context=e}qq.prototype={areaStart:qf,areaEnd:qf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function lP(e){return new qq(e)}function Vq(e){return e<0?-1:1}function Zq(e,t,r){var n=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(n||a<0&&-0),i=(r-e._y1)/(a||n<0&&-0),s=(o*a+i*n)/(n+a);return(Vq(o)+Vq(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(s))||0}function Hq(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function uP(e,t,r){var n=e._x0,a=e._y0,o=e._x1,i=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,a+s*t,o-s,i-s*r,o,i)}function F1(e){this._context=e}F1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uP(this,this._t0,Hq(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uP(this,Hq(this,r=Zq(this,e,t)),r);break;default:uP(this,this._t0,r=Zq(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Gq(e){this._context=new Wq(e)}(Gq.prototype=Object.create(F1.prototype)).point=function(e,t){F1.prototype.point.call(this,t,e)};function Wq(e){this._context=e}Wq.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,o){this._context.bezierCurveTo(t,e,n,r,o,a)}};function cP(e){return new F1(e)}function dP(e){return new Gq(e)}function Jq(e){this._context=e}Jq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Kq(e),a=Kq(t),o=0,i=1;i<r;++o,++i)this._context.bezierCurveTo(n[0][o],a[0][o],n[1][o],a[1][o],e[i],t[i]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Kq(e){var t,r=e.length-1,n,a=new Array(r),o=new Array(r),i=new Array(r);for(a[0]=0,o[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,o[t]=4,i[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,o[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/o[t-1],o[t]-=n,i[t]-=n*i[t-1];for(a[r-1]=i[r-1]/o[r-1],t=r-2;t>=0;--t)a[t]=(i[t]-a[t+1])/o[t];for(o[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function fP(e){return new Jq(e)}function U1(e,t){this._context=e,this._t=t}U1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
7default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function pP(e){return new U1(e,.5)}function mP(e){return new U1(e,0)}function hP(e){return new U1(e,1)}function To(e,t){if((i=e.length)>1)for(var r=1,n,a,o=e[t[0]],i,s=o.length;r<i;++r)for(a=o,o=e[t[r]],n=0;n<s;++n)o[n][1]+=o[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function Zf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function wke(e,t){return e[t]}function _ke(e){let t=[];return t.key=e,t}function gP(){var e=Jt([]),t=Zf,r=To,n=wke;function a(o){var i=Array.from(e.apply(this,arguments),_ke),s,l=i.length,u=-1,d;for(let f of o)for(s=0,++u;s<l;++s)(i[s][u]=[0,+n(f,i[s].key,u,o)]).data=f;for(s=0,d=Bf(t(i));s<l;++s)i[d[s]].index=s;return r(i,d),i}return a.keys=function(o){return arguments.length?(e=typeof o=="function"?o:Jt(Array.from(o)),a):e},a.value=function(o){return arguments.length?(n=typeof o=="function"?o:Jt(+o),a):n},a.order=function(o){return arguments.length?(t=o==null?Zf:typeof o=="function"?o:Jt(Array.from(o)),a):t},a.offset=function(o){return arguments.length?(r=o??To,a):r},a}function vP(e,t){if((n=e.length)>0){for(var r,n,a=0,o=e[0].length,i;a<o;++a){for(i=r=0;r<n;++r)i+=e[r][a][1]||0;if(i)for(r=0;r<n;++r)e[r][a][1]/=i}To(e,t)}}function yP(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,o=n.length;r<o;++r){for(var i=0,s=0;i<a;++i)s+=e[i][r][1]||0;n[r][1]+=n[r][0]=-s/2}To(e,t)}}function bP(e,t){if(!(!((i=e.length)>0)||!((o=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,o,i;n<o;++n){for(var s=0,l=0,u=0;s<i;++s){for(var d=e[t[s]],f=d[n][1]||0,m=d[n-1][1]||0,h=(f-m)/2,g=0;g<s;++g){var y=e[t[g]],b=y[n][1]||0,w=y[n-1][1]||0;h+=b-w}l+=f,u+=h*f}a[n-1][1]+=a[n-1][0]=r,l&&(r-=u/l)}a[n-1][1]+=a[n-1][0]=r,To(e,t)}}function Gg(e){"@babel/helpers - typeof";return Gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gg(e)}var kke=["type","size","sizeType"];function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(this,arguments)}function Xq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xq(Object(r),!0).forEach(function(n){Ike(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xq(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ike(e,t,r){return t=Tke(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tke(e){var t=Cke(e,"string");return Gg(t)=="symbol"?t:t+""}function Cke(e,t){if(Gg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Gg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pke(e,t){if(e==null)return{};var r=Ake(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ake(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var eV={symbolCircle:Uf,symbolCross:XC,symbolDiamond:YC,symbolSquare:QC,symbolStar:eP,symbolTriangle:rP,symbolWye:aP},Eke=Math.PI/180,Lke=function(t){var r="symbol".concat((0,wP.default)(t));return eV[r]||Uf},$ke=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*Eke;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Oke=function(t,r){eV["symbol".concat((0,wP.default)(t))]=r},Wg=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,o=a===void 0?64:a,i=t.sizeType,s=i===void 0?"area":i,l=Pke(t,kke),u=Yq(Yq({},l),{},{type:n,size:o,sizeType:s}),d=function(){var b=Lke(n),w=B1().type(b).size($ke(o,s,n));return w()},f=u.className,m=u.cx,h=u.cy,g=ot(u,!0);return m===+m&&h===+h&&o===+o?Qq.default.createElement("path",xP({}
7,g,{className:rt("recharts-symbols",f),transform:"translate(".concat(m,", ").concat(h,")"),d:d()})):null};Wg.registerSymbol=Oke;function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function _P(){return _P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_P.apply(this,arguments)}function tV(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tV(Object(r),!0).forEach(function(n){Kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tV(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aV(n.key),n)}}function Dke(e,t,r){return t&&rV(e.prototype,t),r&&rV(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nke(e,t,r){return t=q1(t),zke(e,nV()?Reflect.construct(t,r||[],q1(e).constructor):t.apply(e,r))}function zke(e,t){if(t&&(Hf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jke(e)}function jke(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nV=function(){return!!e})()}function q1(e){return q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},q1(e)}function Bke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&SP(e,t)}function SP(e,t){return SP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},SP(e,t)}function Kg(e,t,r){return t=aV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aV(e){var t=Fke(e,"string");return Hf(t)=="symbol"?t:t+""}function Fke(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Co=32,V1=(function(e){function t(){return Rke(this,t),Nke(this,t,arguments)}return Bke(t,e),Dke(t,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,o=Co/2,i=Co/6,s=Co/3,l=n.inactive?a:n.color;if(n.type==="plainline")return Fa.default.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:o,x2:Co,y2:o,className:"recharts-legend-icon"});if(n.type==="line")return Fa.default.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(o,"h").concat(s,` 8 A`).concat(i,",").concat(i,",0,1,1,").concat(2*s,",").concat(o,` 9 H`).concat(Co,"M").concat(2*s,",").concat(o,` 10 A`).concat(i,",").concat(i,",0,1,1,").concat(s,",").concat(o),className:"recharts-legend-icon"});if(n.type==="rect")return Fa.default.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Co/8,"h").concat(Co,"v").concat(Co*3/4,"h").concat(-Co,"z"),className:"recharts-legend-icon"});if(Fa.default.isValidElement(n.legendIcon)){var u=Mke({},n);return delete u.legendIcon,Fa.default.cloneElement(n.legendIcon,u)}return Fa.default.createElement(Wg,{fill:l,cx:o,cy:o,size:Co,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,o=a.payload,i=a.iconSize,s=a.layout,l=a.formatter,u=a.inactiveColor,d={x:0,y:0,width:Co,height:Co},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(h,g){var y=h.formatter||l,b=rt(Kg(Kg({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var w=(0,kP.default)(h.value)?null:h.value;ia(!(0,kP.default)(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var S=h.inactive?u:h.color;return Fa.default.createElement("li",_P({className:b,style:f,key:"legend-item-".concat(g)},Pc(n.props,h,g)),Fa.default.createElement(Vg,{width:i,height:i,viewBox:d,style:m},n.renderIcon(h)),Fa.default.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},y?y(w,h,g):w))})}},{key:"render",value:function(){var n=this.props,a=n.payload,o=n.layout,i=n.align;if(!a||!a.length)return null;var s={padding:0,margin:0,textAlign:o==="horizontal"?i:"left"};return Fa.default.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(Fa.PureComponent);Kg(V1,"displayName","Legend");Kg(V1,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var WP=H(UH()),qH=H(an());function Y1(e,t,r){return t===!0?(0,WP.default)(e,r):(0,qH.default)(t)?(0,WP.default)(e,t):e}function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}var CPe=["ref"];function VH(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
10t%2?VH(Object(r),!0).forEach(function(n){ew(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VH(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WH(n.key),n)}}function APe(e,t,r){return t&&ZH(e.prototype,t),r&&ZH(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EPe(e,t,r){return t=Q1(t),LPe(e,GH()?Reflect.construct(t,r||[],Q1(e).constructor):t.apply(e,r))}function LPe(e,t){if(t&&(Yf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $Pe(e)}function $Pe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GH=function(){return!!e})()}function Q1(e){return Q1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Q1(e)}function OPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KP(e,t)}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},KP(e,t)}function ew(e,t,r){return t=WH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WH(e){var t=MPe(e,"string");return Yf(t)=="symbol"?t:t+""}function MPe(e,t){if(Yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RPe(e,t){if(e==null)return{};var r=DPe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DPe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function NPe(e){return e.value}function zPe(e,t){if(au.default.isValidElement(e))return au.default.cloneElement(e,t);if(typeof e=="function")return au.default.createElement(e,t);var r=t.ref,n=RPe(t,CPe);return au.default.createElement(V1,n)}var HH=1,ou=(function(e){function t(){var r;PPe(this,t);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=EPe(this,t,[].concat(a)),ew(r,"lastBoundingBox",{width:-1,height:-1}),r}return OPe(t,e),APe(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>HH||Math.abs(a.height-this.lastBoundingBox.height)>HH)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Fs({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,o=a.layout,i=a.align,s=a.verticalAlign,l=a.margin,u=a.chartWidth,d=a.chartHe
vendor: 12,746 bytes, lines 10-11
10ight,f,m;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(i==="center"&&o==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=i==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();m={top:((d||0)-g.height)/2}}else m=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Fs(Fs({},f),m)}},{key:"render",value:function(){var n=this,a=this.props,o=a.content,i=a.width,s=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,d=a.payload,f=Fs(Fs({position:"absolute",width:i||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return au.default.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},zPe(o,Fs(Fs({},this.props),{},{payload:Y1(d,u,NPe)})))}}],[{key:"getWithHeight",value:function(n,a){var o=Fs(Fs({},this.defaultProps),n.props),i=o.layout;return i==="vertical"&&_e(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||a}:null}}])})(au.PureComponent);ew(ou,"displayName","Legend");ew(ou,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var iu=H(ve());var qi=H(ve()),FG=H(rw()),UG=H(oi());function t0(e){"@babel/helpers - typeof";return t0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t0(e)}function r5(){return r5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r5.apply(this,arguments)}function H5e(e,t){return J5e(e)||K5e(e,t)||W5e(e,t)||G5e()}function G5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W5e(e,t){if(e){if(typeof e=="string")return jG(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jG(e,t)}}function jG(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K5e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function J5e(e){if(Array.isArray(e))return e}function BG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function t5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BG(Object(r),!0).forEach(function(n){X5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BG(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X5e(e,t,r){return t=Y5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y5e(e){var t=Q5e(e,"string");return t0(t)=="symbol"?t:t+""}function Q5e(e,t){if(t0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(t0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e3e(e){return Array.isArray(e)&&gr(e[0])&&gr(e[1])?e.join(" ~ "):e}var qG=function(t){var r=t.separator,n=r===void 0?" : ":r,a=t.contentStyle,o=a===void 0?{}:a,i=t.itemStyle,s=i===void 0?{}:i,l=t.labelStyle,u=l===void 0?{}:l,d=t.payload,f=t.formatter,m=t.itemSorter,h=t.wrapperClassName,g=t.labelClassName,y=t.label,b=t.labelFormatter,w=t.accessibilityLayer,S=w===void 0?!1:w,x=function(){if(d&&d.length){var Y={padding:0,margin:0},le=(m?(0,FG.default)(d,m):d).map(function(re,oe){if(re.type==="none")return null;var $=t5({display:"block",paddingTop:4,paddingBottom:4,color:re.color||"#000"},s),z=re.formatter||f||e3e,R=re.value,N=re.name,U=R,B=N;if(z&&U!=null&&B!=null){var V=z(R,N,re,oe,d);if(Array.isArray(V)){var Z=H5e(V,2);U=Z[0],B=Z[1]}else U=V}return qi.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(oe),style:$},gr(B)?qi.default.createElement("span",{className:"recharts-tooltip-item-name"},B):null,gr(B)?qi.default.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,qi.default.createElement("span",{className:"recharts-tooltip-item-value"},U),qi.default.createElement("span",{className:"recharts-tooltip-item-unit"},re.unit||""))});return qi.default.createElement("ul",{className:"recharts-tooltip-item-list",style:Y},le)}return null},C=t5({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),I=t5({margin:0},u),A=!(0,UG.default)(y),O=A?y:"",F=rt("recharts-default-tooltip",h),q=rt("recharts-tooltip-label",g);A&&b&&d!==void 0&&d!==null&&(O=b(y,d));var G=S?{role:"status","aria-live":"assertive"}:{};return qi.default.createElement("div",r5({className:F,style:C},G),qi.default.createElement("p",{className:q,style:I},qi.default.isValidElement(O)?O:"".concat(O)),x())};var ow=H(ve());function n0(e){"@babel/helpers - typeof";return n0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n0(e)}function nw(e,t,r){return t=t3e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t3e(e){var t=r3e(e,"string");return n0(t)=="symbol"?t:t+""}function r3e(e,t){if(n0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(n0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r0="recharts-tooltip-wrapper",n3e={visibility:"hidden"};function a3e(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return rt(r0,nw(nw(nw(nw({},"".concat(r0,"-right"),_e(r)&&t&&_e(t.x)&&r>=t.x),"".concat(r0,"-left"),_e(r)&&t&&_e(t.x)&&r<t.x),"".concat(r0,"-bottom"),_e(n)&&t&&_e(t.y)&&n>=t.y),"".concat(r0,"-top"),_e(n)&&t&&_e(t.y)&&n<t.y))}function VG(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,a=e.offsetTopLeft,o=e.position,i=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(o&&_e(o[n]))return o[n];var d=r[n]-s-a,f=r[n]+a;if(t[n])return i[n]?d:f;if(i[n]){var m=d,h=l[n];return m<h?Math.max(f,l[n]):Math.max(d,l[n])}var g=f+s,y=l[n]+u;return g>y?Math.max(d,l[n]):Math.max(f,l[n])}function o3e(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function ZG(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,o=e.reverseDirection,i=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,d,f;return i.height>0&&i.width>0&&r?(d=VG({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:o,tooltipDimension:i.width,viewBox:l,viewBoxDimension:l.width}),f=VG({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:o,tooltipDimension:i.height,viewBox:l,viewBoxDimension:l.height}),u=o3e({translateX:d,translateY:f,useTranslate3d:s})):u=n3e,{cssProperties:u,cssClasses:a3e({translateX:d,translateY:f,coordinate:r})}}function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function HG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function GG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HG(Object(r),!0).forEach(function(n){a5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HG(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XG(n.key),n)}}function s3e(e,t,r){return t&&WG(e.prototype,t),r&&WG(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function l3e(e,t,r){return t=aw(t),u3e(e,JG()?Reflect.construct(t,r||[],aw(e).constructor):t.apply(e,r))}function u3e(e,t){if(t&&(Qf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c3e(e)}function c3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JG(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JG=function(){return!!e})()}function aw(e){return aw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aw(e)}function d3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n5(e,t)}function n5(e,t){return n5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},n5(e,t)}function a5(e,t,r){return t=XG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XG(e){var t=f3e(e,"string");return Qf(t)=="symbol"?t:t+""}function f3e(e,t){if(Qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KG=1,YG=(function(e){function t(){var r;i3e(this,t);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=l3e(this,t,[].concat(a)),a5(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),a5(r,"handleKeyDown",function(i){if(i.key==="Escape"){var s,l,u,d;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(d=r.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),r}return d3e(t,e),s3e(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>KG||Math.abs(n.height-this.state.lastBoundingBox.height)>KG)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,a=this.props,o=a.active,i=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.children,d=a.coordinate,f=a.hasPayload,m=a.isAnimationActive,h=a.offset,g=a.position,y=a.reverseDirection,b=a.useTranslate3d,w=a.viewBox,S=a.wrapperStyle,x=ZG({allowEscapeViewBox:i,coordinate:d,offsetTopLeft:h,position:g,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:w}
11),C=x.cssClasses,I=x.cssProperties,A=GG(GG({transition:m&&o?"transform ".concat(s,"ms ").concat(l):void 0},I),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},S);return ow.default.createElement("div",{tabIndex:-1,className:C,style:A,ref:function(F){n.wrapperNode=F}},u)}}])})(ow.PureComponent);var p3e=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ua={isSsr:p3e(),get:function(t){return Ua[t]},set:function(t,r){if(typeof t=="string")Ua[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){Ua[a]=t[a]})}}};function ep(e){"@babel/helpers - typeof";return ep=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(e)}function QG(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function eW(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QG(Object(r),!0).forEach(function(n){i5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QG(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m3e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nW(n.key),n)}}function h3e(e,t,r){return t&&tW(e.prototype,t),r&&tW(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g3e(e,t,r){return t=iw(t),v3e(e,rW()?Reflect.construct(t,r||[],iw(e).constructor):t.apply(e,r))}function v3e(e,t){if(t&&(ep(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y3e(e)}function y3e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rW=function(){return!!e})()}function iw(e){return iw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},iw(e)}function b3e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o5(e,t)}function o5(e,t){return o5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},o5(e,t)}function i5(e,t,r){return t=nW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nW(e){var t=x3e(e,"string");return ep(t)=="symbol"?t:t+""}function x3e(e,t){if(ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3e(e){return e.dataKey}function _3e(e,t){return iu.default.isValidElement(e)?iu.default.cloneElement(e,t):typeof e=="function"?iu.default.createElement(e,t):iu.default.createElement(qG,t)}var qa=(function(e){function t(){return m3e(this,t),g3e(this,t,arguments)}return b3e(t,e),h3e(t,[{key:"render",value:function(){var n=this,a=this.props,o=a.active,i=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,u=a.content,d=a.coordinate,f=a.filterNull,m=a.isAnimationActive,h=a.offset,g=a.payload,y=a.payloadUniqBy,b=a.position,w=a.reverseDirection,S=a.useTranslate3d,x=a.viewBox,C=a.wrapperStyle,I=g??[];f&&I.length&&(I=Y1(g.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),y,w3e));var A=I.length>0;return iu.default.createElement(YG,{allowEscapeViewBox:i,animationDuration:s,animationEasing:l,isAnimationActive:m,active:o,coordinate:d,hasPayload:A,offset:h,position:b,reverseDirection:w,useTranslate3d:S,viewBox:x,wrapperStyle:C},_3e(u,eW(eW({},this.props),{},{payload:I})))}}])})(iu.PureComponent);
11i5(qa,"displayName","Tooltip");i5(qa,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ua.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Hr=H(ve()),bW=H(u5());function a0(e){"@babel/helpers - typeof";return a0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a0(e)}function vW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function sw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vW(Object(r),!0).forEach(function(n){H3e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vW(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H3e(e,t,r){return t=G3e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G3e(e){var t=W3e(e,"string");return a0(t)=="symbol"?t:t+""}function W3e(e,t){if(a0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(a0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K3e(e,t){return Q3e(e)||Y3e(e,t)||X3e(e,t)||J3e()}function J3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X3e(e,t){if(e){if(typeof e=="string")return yW(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yW(e,t)}}function yW(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y3e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function Q3e(e){if(Array.isArray(e))return e}var c5=(0,Hr.forwardRef)(function(e,t){var r=e.aspect,n=e.initialDimension,a=n===void 0?{width:-1,height:-1}:n,o=e.width,i=o===void 0?"100%":o,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,d=u===void 0?0:u,f=e.minHeight,m=e.maxHeight,h=e.children,g=e.debounce,y=g===void 0?0:g,b=e.id,w=e.className,S=e.onResize,x=e.style,C=x===void 0?{}:x,I=(0,Hr.useRef)(null),A=(0,Hr.useRef)();A.current=S,(0,Hr.useImperativeHandle)(t,function(){return Object.defineProperty(I.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),I.current},configurable:!0})});var O=(0,Hr.useState)({containerWidth:a.width,containerHeight:a.height}),F=K3e(O,2),q=F[0],G=F[1],J=(0,Hr.useCallback)(function(le,re){G(function(oe){var $=Math.round(le),z=Math.round(re);return oe.containerWidth===$&&oe.containerHeight===z?oe:{containerWidth:$,containerHeight:z}})},[]);(0,Hr.useEffect)(function(){var le=function(N){var U,B=N[0].contentRect,V=B.width,Z=B.height;J(V,Z),(U=A.current)===null||U===void 0||U.call(A,V,Z)};y>0&&(le=(0,bW.default)(le,y,{trailing:!0,leading:!1}));var re=new ResizeObserver(le),oe=I.current.getBoundingClientRect(),$=oe.width,z=oe.height;return J($,z),re.observe(I.current),function(){re.disconnect()}},[J,y]);var Y=(0,Hr.useMemo)(function(){var le=q.containerWidth,re=q.containerHeight;if(le<0||re<0)return null;ia(zs(i)||zs(l),`The width(%s) and height(%s) are both fixed numbers, 13 maybe you don't need to use a ResponsiveContainer.`,i,l),ia(!r||r>0,"The aspect(%s) must be greater than zero.",r);var oe=zs(i)?le:i,$=zs(l)?re:l;r&&r>
130&&(oe?$=oe/r:$&&(oe=$*r),m&&$>m&&($=m)),ia(oe>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0, 14 please check the style of container, or the props width(%s) and height(%s), 15 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 16 height and width.`,oe,$,i,l,d,f,r);var z=!Array.isArray(h)&&So(h.type).endsWith("Chart");return Hr.default.Children.map(h,function(R){return Hr.default.isValidElement(R)?(0,Hr.cloneElement)(R,sw({width:oe,height:$},z?{style:sw({height:"100%",width:"100%",maxHeight:$,maxWidth:oe},R.props.style)}:{})):R})},[r,h,l,m,f,d,q,i]);return Hr.default.createElement("div",{id:b?"".concat(b):void 0,className:rt("recharts-responsive-container",w),style:sw(sw({},C),{},{width:i,height:l,minWidth:d,minHeight:f,maxHeight:m}),ref:I},Y)});var d5=function(t){return null};d5.displayName="Cell";var s0=H(ve()),m5=H(oi());function o0(e){"@babel/helpers - typeof";return o0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o0(e)}function xW(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function f5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xW(Object(r),!0).forEach(function(n){eAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xW(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eAe(e,t,r){return t=tAe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tAe(e){var t=rAe(e,"string");return o0(t)=="symbol"?t:t+""}function rAe(e,t){if(o0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(o0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tp={widthCache:{},cacheCount:0},nAe=2e3,aAe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"};var wW="recharts_measurement_span";function oAe(e){var t=f5({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Mc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ua.isSsr)return{width:0,height:0};var n=oAe(r),a=JSON.stringify({text:t,copyStyle:n});if(tp.widthCache[a])return tp.widthCache[a];try{var o=document.getElementById(wW);o||(o=document.createElement("span"),o.setAttribute("id",wW),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=f5(f5({},aAe),n);Object.assign(o.style,i),o.textContent="".concat(t);var s=o.getBoundingClientRect(),l={width:s.width,height:s.height};return tp.widthCache[a]=l,++tp.cacheCount>nAe&&(tp.cacheCount=0,tp.widthCache={}),l}catch{return{width:0,height:0}}},_W=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function i0(e){"@babel/helpers - typeof";return i0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i0(e)}function uw(e,t){return uAe(e)||lAe(e,t)||sAe(e,t)||iAe()}function iAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sAe(e,t){if(e){if(typeof e=="string")return SW(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SW(e,t)}}function SW(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}
vendor: 4,802 bytes, lines 17-18
17finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function uAe(e){if(Array.isArray(e))return e}function cAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fAe(n.key),n)}}function dAe(e,t,r){return t&&kW(e.prototype,t),r&&kW(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fAe(e){var t=pAe(e,"string");return i0(t)=="symbol"?t:t+""}function pAe(e,t){if(i0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(i0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IW=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TW=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,mAe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hAe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,PW={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},gAe=Object.keys(PW),rp="NaN";function vAe(e,t){return e*PW[t]}var lw=(function(){function e(t,r){cAe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!mAe.test(r)&&(this.num=NaN,this.unit=""),gAe.includes(r)&&(this.num=vAe(t,r),this.unit="px")}return dAe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,a=(n=hAe.exec(r))!==null&&n!==void 0?n:[],o=uw(a,3),i=o[1],s=o[2];return new e(parseFloat(i),s??"")}}])})();function AW(e){if(e.includes(rp))return rp;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=IW.exec(t))!==null&&r!==void 0?r:[],a=uw(n,4),o=a[1],i=a[2],s=a[3],l=lw.parse(o??""),u=lw.parse(s??""),d=i==="*"?l.multiply(u):l.divide(u);if(d.isNaN())return rp;t=t.replace(IW,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,m=(f=TW.exec(t))!==null&&f!==void 0?f:[],h=uw(m,4),g=h[1],y=h[2],b=h[3],w=lw.parse(g??""),S=lw.parse(b??""),x=y==="+"?w.add(S):w.subtract(S);if(x.isNaN())return rp;t=t.replace(TW,x.toString())}return t}var CW=/\(([^()]*)\)/;function yAe(e){for(var t=e;t.includes("(");){var r=CW.exec(t),n=uw(r,2),a=n[1];t=t.replace(CW,AW(a))}return t}function bAe(e){var t=e.replace(/\s+/g,"");return t=yAe(t),t=AW(t),t}function xAe(e){try{return bAe(e)}catch{return rp}}function cw(e){var t=xAe(e.slice(5,-1));return t===rp?"":t}var wAe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],_Ae=["dx","dy","angle","className","breakAll"];function p5(){return p5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p5.apply(this,arguments)}function EW(e,t){if(e==null)return{};var r=SAe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function SAe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function LW(e,t){return CAe(e)||TAe(e,t)||IAe(e,t)||kAe()}function kAe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IAe(e,t){if(e){if(typeof e=="string")return $W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $W(e,t)}}function $W(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function TAe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}
18finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function CAe(e){if(Array.isArray(e))return e}var RW=/[ \f\n\r\t\v\u2028\u2029]+/,DW=function(t){var r=t.children,n=t.breakAll,a=t.style;try{var o=[];(0,m5.default)(r)||(n?o=r.toString().split(""):o=r.toString().split(RW));var i=o.map(function(l){return{word:l,width:Mc(l,a).width}}),s=n?0:Mc("\xA0",a).width;return{wordsWithComputedWidth:i,spaceWidth:s}}catch{return null}},PAe=function(t,r,n,a,o){var i=t.maxLines,s=t.children,l=t.style,u=t.breakAll,d=_e(i),f=s,m=function(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return oe.reduce(function($,z){var R=z.word,N=z.width,U=$[$.length-1];if(U&&(a==null||o||U.width+N+n<Number(a)))U.words.push(R),U.width+=N+n;else{var B={words:[R],width:N};$.push(B)}return $},[])},h=m(r),g=function(oe){return oe.reduce(function($,z){return $.width>z.width?$:z})};if(!d)return h;for(var y="\u2026",b=function(oe){var $=f.slice(0,oe),z=DW({breakAll:u,style:l,children:$+y}).wordsWithComputedWidth,R=m(z),N=R.length>i||g(R).width>Number(a);return[N,R]},w=0,S=f.length-1,x=0,C;w<=S&&x<=f.length-1;){var I=Math.floor((w+S)/2),A=I-1,O=b(A),F=LW(O,2),q=F[0],G=F[1],J=b(I),Y=LW(J,1),le=Y[0];if(!q&&!le&&(w=I+1),q&&le&&(S=I-1),!q&&le){C=G;break}x++}return C||h},OW=function(t){var r=(0,m5.default)(t)?[]:t.toString().split(RW);return[{words:r}]},AAe=function(t){var r=t.width,n=t.scaleToFit,a=t.children,o=t.style,i=t.breakAll,s=t.maxLines;if((r||n)&&!Ua.isSsr){var l,u,d=DW({breakAll:i,children:a,style:o});if(d){var f=d.wordsWithComputedWidth,m=d.spaceWidth;l=f,u=m}else return OW(a);return PAe({breakAll:i,children:a,maxLines:s,style:o},l,u,r,n)}return OW(a)},MW="#808080",Rc=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,o=a===void 0?0:a,i=t.lineHeight,s=i===void 0?"1em":i,l=t.capHeight,u=l===void 0?"0.71em":l,d=t.scaleToFit,f=d===void 0?!1:d,m=t.textAnchor,h=m===void 0?"start":m,g=t.verticalAnchor,y=g===void 0?"end":g,b=t.fill,w=b===void 0?MW:b,S=EW(t,wAe),x=(0,s0.useMemo)(function(){return AAe({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:f,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,f,S.style,S.width]),C=S.dx,I=S.dy,A=S.angle,O=S.className,F=S.breakAll,q=EW(S,_Ae);if(!gr(n)||!gr(o))return null;var G=n+(_e(C)?C:0),J=o+(_e(I)?I:0),Y;switch(y){case"start":Y=cw("calc(".concat(u,")"));break;case"middle":Y=cw("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:Y=cw("calc(".concat(x.length-1," * -").concat(s,")"));break}var le=[];if(f){var re=x[0].width,oe=S.width;le.push("scale(".concat((_e(oe)?oe/re:1)/re,")"))}return A&&le.push("rotate(".concat(A,", ").concat(G,", ").concat(J,")")),le.length&&(q.transform=le.join(" ")),s0.default.createElement("text",p5({},ot(q,!0),{x:G,y:J,className:rt("recharts-text",O),textAnchor:h,fill:w.includes("url")?MW:w}),x.map(function($,z){var R=$.words.join(F?"":" ");return s0.default.createElement("tspan",{x:G,dy:z===0?Y:s,key:"".concat(R,"-").concat(z)},R)}))};var Br=H(ve()),F0=H(oi()),U0=H(an()),w3=H(wo());var s$e=H(oi()),l$e=H(ve()),u$e=H(an());var Hw={};Fn(Hw,{scaleBand:()=>su,scaleDiverging:()=>Vw,scaleDivergingLog:()=>W5,scaleDivergingPow:()=>Zw,scaleDivergingSqrt:()=>nJ,scaleDivergingSymlog:()=>K5,scaleIdentity:()=>Pw,scaleImplicit:()=>vw,scaleLinear:()=>Vc,scaleLog:()=>Aw,scaleOrdinal:()=>op,scalePoint:()=>lu,scalePow:()=>x0,scaleQuantile:()=>$w,scaleQuantize:()=>Ow,scaleRadial:()=>Lw,scaleSequential:()=>Bw,scaleSequentialLog:()=>H5,scaleSequentialPow:()=>Fw,scaleSequentialQuantile:()=>Uw,scaleSequentialSqrt:()=>rJ,scaleSequentialSymlog:()=>G5,scaleSqrt:()=>kK,scaleSymlog:()=>Ew,scaleThreshold:()=>Mw,scaleTime:()=>V5,scaleUtc:()=>Z5,tickFormat:()=>h0});function sa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function h5(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Dc(e){let t,r,n;e.length!==2?(t=sa,r=(s,l)=>sa(e(s),l),n=(s,l)=>e(s)-l):(t=e===sa||e===h5?e:EAe,r=e,n=e);function a(s,l,u=0,d=s.length){if(u<d){if(t(l,l)!==0)return d;do{let f=u+d>>>1;r(s[f],l)<0?u=f+1:d=f}while(u<d)}return u}function o(s,l,u=0,d=s.length){if(u<d){if(t(l,l)!==0)return d;do{let f=u+d>>>1;r(s[f],l)<=0?u=f+1:d=f}while(u<d)}return u}function i(s,l,u=0,d=s.length){let f=a(s,l,u,d-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:i,right:o}}function EAe(){return 0}function l0(e){return e===null?NaN:+e}function*NW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}var zW=Dc(sa),jW=zW.right,LAe=zW.left,$Ae=Dc(l0).center,si=jW;var np=class extends Map{constructor(t,r=RAe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,a]of t)this.set(n,a)}get(t){return super.get(BW(this,t))}has(t){return super.has(BW(this,t))}set(t,r){return super.set(OAe(this,t),r)}delete(t){return super.delete(MAe(this,t))}};function BW({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function OAe({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function MAe({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function RAe(e){return e!==null&&typeof e=="object"?e.valueOf():e}
18function FW(e=sa){if(e===sa)return g5;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function g5(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var DAe=Math.sqrt(50),NAe=Math.sqrt(10),zAe=Math.sqrt(2);function dw(e,t,r){let n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),o=n/Math.pow(10,a),i=o>=DAe?10:o>=NAe?5:o>=zAe?2:1,s,l,u;return a<0?(u=Math.pow(10,-a)/i,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,a)*i,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?dw(e,t,r*2):[s,l,u]}function Nc(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];let n=t<e,[a,o,i]=n?dw(t,e,r):dw(e,t,r);if(!(o>=a))return[];let s=o-a+1,l=new Array(s);if(n)if(i<0)for(let u=0;u<s;++u)l[u]=(o-u)/-i;else for(let u=0;u<s;++u)l[u]=(o-u)*i;else if(i<0)for(let u=0;u<s;++u)l[u]=(a+u)/-i;else for(let u=0;u<s;++u)l[u]=(a+u)*i;return l}function u0(e,t,r){return t=+t,e=+e,r=+r,dw(e,t,r)[2]}function ap(e,t,r){t=+t,e=+e,r=+r;let n=t<e,a=n?u0(t,e,r):u0(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function fw(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}return r}function pw(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function mw(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?g5:FW(a);n>r;){if(n-r>600){let l=n-r+1,u=t-r+1,d=Math.log(l),f=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+m)),g=Math.min(n,Math.floor(t+(l-u)*f/l+m));mw(e,t,h,g,a)}let o=e[t],i=r,s=n;for(c0(e,r,t),a(e[n],o)>0&&c0(e,r,n);i<s;){for(c0(e,i,s),++i,--s;a(e[i],o)<0;)++i;for(;a(e[s],o)>0;)--s}a(e[r],o)===0?c0(e,r,s):(++s,c0(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function c0(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function hw(e,t,r){if(e=Float64Array.from(NW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return pw(e);if(t>=1)return fw(e);var n,a=(n-1)*t,o=Math.floor(a),i=fw(mw(e,o).subarray(0,o+1)),s=pw(e.subarray(o+1));return i+(s-i)*(a-o)}}function v5(e,t,r=l0){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,o=Math.floor(a),i=+r(e[o],o,e),s=+r(e[o+1],o+1,e);return i+(s-i)*(a-o)}}function gw(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,o=new Array(a);++n<a;)o[n]=e+n*r;return o}function kr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Po(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}var vw=Symbol("implicit");function op(){var e=new np,t=[],r=[],n=vw;function a(o){let i=e.get(o);if(i===void 0){if(n!==vw)return n;e.set(o,i=t.push(o)-1)}return r[i%r.length]}return a.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new np;for(let i of o)e.has(i)||e.set(i,t.push(i)-1);return a},a.range=function(o){return arguments.length?(r=Array.from(o),a):r.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return op(t,r).unknown(n)},kr.apply(a,arguments),a}function su(){var e=op().unknown(void 0),t=e.domain,r=e.range,n=0,a=1,o,i,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var m=t().length,h=a<n,g=h?a:n,y=h?n:a;o=(y-g)/Math.max(1,m-l+u*2),s&&(o=Math.floor(o)),g+=(y-g-o*(m-l))*d,i=o*(1-l),s&&(g=Math.round(g),i=Math.round(i));var b=gw(m).map(function(w){return g+o*w});return r(h?b.reverse():b)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([n,a]=m,n=+n,a=+a,f()):[n,a]},e.rangeRound=function(m){return[n,a]=m,n=+n,a=+a,s=!0,f()},e.bandwidth=function(){return i},e.step=function(){return o},e.round=function(m){return arguments.length?(s=!!m,f()):s},e.padding=function(m){return arguments.length?(l=Math.min(1,u=+m),f()):l},e.paddingInner=function(m){return arguments.length?(l=Math.min(1,m),f()):l},e.paddingOuter=function(m){return arguments.length?(u=+m,f()):u},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),f()):d},e.copy=function(){return su(t(),[n,a]).round(s).paddingInner(l).paddingOuter(u).align(d)},kr.apply(f(),arguments)}function UW(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return UW(t())},e}function lu(){return UW(su.apply(null,arguments).paddingInner(1))}function yw(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function y5(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function p0(){}var d0=.7,ww=1/d0,ip="\\s*([+-]?\\d+)\\s*",f0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",jAe=/^#([0-9a-f]{3,8})$/,BAe=new RegExp(`^rgb\\(${ip},${ip},${ip}\\)$`),FAe=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),UAe=new RegExp(`^rgba\\(${ip},${ip},${ip},${f0}\\)$`),qAe=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${f0}\\)$`),VAe=new RegExp(`^hsl\\(${f0},${Vi},${Vi}
18\\)$`),ZAe=new RegExp(`^hsla\\(${f0},${Vi},${Vi},${f0}\\)$`),qW={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};yw(p0,uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VW,formatHex:VW,formatHex8:HAe,formatHsl:GAe,formatRgb:ZW,toString:ZW});function VW(){return this.rgb().formatHex()}function HAe(){return this.rgb().formatHex8()}function GAe(){return XW(this).formatHsl()}function ZW(){return this.rgb().formatRgb()}function uu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=jAe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?HW(t):r===3?new Aa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?bw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?bw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=BAe.exec(e))?new Aa(t[1],t[2],t[3],1):(t=FAe.exec(e))?new Aa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UAe.exec(e))?bw(t[1],t[2],t[3],t[4]):(t=qAe.exec(e))?bw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VAe.exec(e))?KW(t[1],t[2]/100,t[3]/100,1):(t=ZAe.exec(e))?KW(t[1],t[2]/100,t[3]/100,t[4]):qW.hasOwnProperty(e)?HW(qW[e]):e==="transparent"?new Aa(NaN,NaN,NaN,0):null}function HW(e){return new Aa(e>>16&255,e>>8&255,e&255,1)}function bw(e,t,r,n){return n<=0&&(e=t=r=NaN),new Aa(e,t,r,n)}function WAe(e){return e instanceof p0||(e=uu(e)),e?(e=e.rgb(),new Aa(e.r,e.g,e.b,e.opacity)):new Aa}function sp(e,t,r,n){return arguments.length===1?WAe(e):new Aa(e,t,r,n??1)}function Aa(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}yw(Aa,sp,y5(p0,{brighter(e){return e=e==null?ww:Math.pow(ww,e),new Aa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?d0:Math.pow(d0,e),new Aa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Aa(jc(this.r),jc(this.g),jc(this.b),_w(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:GW,formatHex:GW,formatHex8:KAe,formatRgb:WW,toString:WW}));function GW(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}`}function KAe(){return`#${zc(this.r)}${zc(this.g)}${zc(this.b)}${zc((isNaN(this.opacity)?1:this.opacity)*255)}`}function WW(){let e=_w(this.opacity);return`${e===1?"rgb(":"rgba("}${jc(this.r)}, ${jc(this.g)}, ${jc(this.b)}${e===1?")":`, ${e})`}`}function _w(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function jc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zc(e){return e=jc(e),(e<16?"0":"")+e.toString(16)}function KW(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new li(e,t,r,n)}function XW(e){if(e instanceof li)return new li(e.h,e.s,e.l,e.opacity);if(e instanceof p0||(e=uu(e)),!e)return new li;if(e instanceof li)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),o=Math.max(t,r,n),i=NaN,s=o-a,l=(o+a)/2;return s?(t===o?i=(r-n)/s+(r<n)*6:r===o?i=(n-t)/s+2:i=(t-r)/s+4,s/=l<.5?o+a:2-o-a,i*=60):s=l>0&&l<1?0:i,new li(i,s,l,e.opacity)}function YW(e,t,r,n){return arguments.length===1?XW(e):new li(e,t,r,n??1)}function li(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}
vendor: 5,759 bytes, line 18
18yw(li,YW,y5(p0,{brighter(e){return e=e==null?ww:Math.pow(ww,e),new li(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?d0:Math.pow(d0,e),new li(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Aa(b5(e>=240?e-240:e+120,a,n),b5(e,a,n),b5(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new li(JW(this.h),xw(this.s),xw(this.l),_w(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=_w(this.opacity);return`${e===1?"hsl(":"hsla("}${JW(this.h)}, ${xw(this.s)*100}%, ${xw(this.l)*100}%${e===1?")":`, ${e})`}`}}));function JW(e){return e=(e||0)%360,e<0?e+360:e}function xw(e){return Math.max(0,Math.min(1,e||0))}function b5(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function x5(e,t,r,n,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*r+(1+3*e+3*o-3*i)*n+i*a)/6}function QW(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),a=e[n],o=e[n+1],i=n>0?e[n-1]:2*a-o,s=n<t-1?e[n+2]:2*o-a;return x5((r-n/t)*t,i,a,o,s)}}function eK(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),a=e[(n+t-1)%t],o=e[n%t],i=e[(n+1)%t],s=e[(n+2)%t];return x5((r-n/t)*t,a,o,i,s)}}var m0=e=>()=>e;function JAe(e,t){return function(r){return e+r*t}}function XAe(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function tK(e){return(e=+e)==1?Sw:function(t,r){return r-t?XAe(t,r,e):m0(isNaN(t)?r:t)}}function Sw(e,t){var r=t-e;return r?JAe(e,r):m0(isNaN(e)?t:e)}var w5=(function e(t){var r=tK(t);function n(a,o){var i=r((a=sp(a)).r,(o=sp(o)).r),s=r(a.g,o.g),l=r(a.b,o.b),u=Sw(a.opacity,o.opacity);return function(d){return a.r=i(d),a.g=s(d),a.b=l(d),a.opacity=u(d),a+""}}return n.gamma=e,n})(1);function rK(e){return function(t){var r=t.length,n=new Array(r),a=new Array(r),o=new Array(r),i,s;for(i=0;i<r;++i)s=sp(t[i]),n[i]=s.r||0,a[i]=s.g||0,o[i]=s.b||0;return n=e(n),a=e(a),o=e(o),s.opacity=1,function(l){return s.r=n(l),s.g=a(l),s.b=o(l),s+""}}}var e0t=rK(QW),t0t=rK(eK);function nK(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(o){for(a=0;a<r;++a)n[a]=e[a]*(1-o)+t[a]*o;return n}}function aK(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oK(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),o=new Array(r),i;for(i=0;i<n;++i)a[i]=Va(e[i],t[i]);for(;i<r;++i)o[i]=t[i];return function(s){for(i=0;i<n;++i)o[i]=a[i](s);return o}}function iK(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function cu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function sK(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=Va(e[a],t[a]):n[a]=t[a];return function(o){for(a in r)n[a]=r[a](o);return n}}var S5=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_5=new RegExp(S5.source,"g");function YAe(e){return function(){return e}}function QAe(e){return function(t){return e(t)+""}}function lK(e,t){var r=S5.lastIndex=_5.lastIndex=0,n,a,o,i=-1,s=[],l=[];for(e=e+"",t=t+"";(n=S5.exec(e))&&(a=_5.exec(t));)(o=a.index)>r&&(o=t.slice(r,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(a=a[0])?s[i]?s[i]+=a:s[++i]=a:(s[++i]=null,l.push({i,x:cu(n,a)})),r=_5.lastIndex;return r<t.length&&(o=t.slice(r),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?QAe(l[0].x):YAe(t):(t=l.length,function(u){for(var d=0,f;d<t;++d)s[(f=l[d]).i]=f.x(u);return s.join("")})}function Va(e,t){var r=typeof t,n;return t==null||r==="boolean"?m0(t):(r==="number"?cu:r==="string"?(n=uu(t))?(t=n,w5):lK:t instanceof uu?w5:t instanceof Date?iK:aK(t)?nK:Array.isArray(t)?oK:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?sK:cu)(e,t)}function Bc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function kw(e,t){t===void 0&&(t=e,e=Va);for(var r=0,n=t.length-1,a=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(a,a=t[++r]);return function(i){var s=Math.max(0,Math.min(n-1,Math.floor(i*=n)));return o[s](i-s)}}function k5(e){return function(){return e}}function du(e){return+e}var uK=[0,1];function gn(e){return e}function I5(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:k5(isNaN(t)?NaN:.5)}function eEe(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function tEe(e,t,r){var n=e[0],a=e[1],o=t[0],i=t[1];return a<n?(n=I5(a,n),o=r(i,o)):(n=I5(n,a),o=r(o,i)),function(s){return o(n(s))}}function rEe(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),o=new Array(n),i=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<n;)a[i]=I5(e[i],e[i+1]),o[i]=r(t[i],t[i+1]);return function(s){var l=si(e,s,1,n)-1;return o[l](a[l](s))}}function Zi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fc(){var e=uK,t=uK,r=Va,n,a,o,i=gn,s,l,u;function d(){var m=Math.min(e.length,t.length);return i!==gn&&(i=eEe(e[0],e[m-1])),s=m>2?rEe:tEe,l=u=null,f}function f(m){return m==null||isNaN(m=+m)?o:(l||(l=s(e.map(n),t,r)))(n(i(m)))}return f.invert=function(m){return i(a((u||(u=s(t,e.map(n),cu)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,du),d()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=Bc,d()},f.clamp=function(m){return arguments.length?(i=m?!0:gn,d()):i!==gn},f.interpolate=function(m){return arguments.length?(r=m,d()):r},f.unknown=function(m){return arguments.length?(o=m,f):o},function(m,h){return n=m,a=h,d()}}function Uc(){return Fc()(gn,gn)}
vendor: 3,326 bytes, line 18
18function cK(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qc(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Hi(e){return e=qc(Math.abs(e)),e?e[1]:NaN}function dK(e,t){return function(r,n){for(var a=r.length,o=[],i=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),o.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[i=(i+1)%e.length];return o.reverse().join(t)}}function fK(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var nEe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gi(e){if(!(t=nEe.exec(e)))throw new Error("invalid format: "+e);var t;return new Iw({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Gi.prototype=Iw.prototype;function Iw(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Iw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function pK(e){e:for(var t=e.length,r=1,n=-1,a;r<t;++r)switch(e[r]){case".":n=a=r;break;case"0":n===0&&(n=r),a=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var T5;function mK(e,t){var r=qc(e,t);if(!r)return e+"";var n=r[0],a=r[1],o=a-(T5=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,i=n.length;return o===i?n:o>i?n+new Array(o-i+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+qc(e,Math.max(0,t+o-1))[0]}function C5(e,t){var r=qc(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}var P5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:cK,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>C5(e*100,t),r:C5,s:mK,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function A5(e){return e}var hK=Array.prototype.map,gK=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function vK(e){var t=e.grouping===void 0||e.thousands===void 0?A5:dK(hK.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?A5:fK(hK.call(e.numerals,String)),i=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Gi(f);var m=f.fill,h=f.align,g=f.sign,y=f.symbol,b=f.zero,w=f.width,S=f.comma,x=f.precision,C=f.trim,I=f.type;I==="n"?(S=!0,I="g"):P5[I]||(x===void 0&&(x=12),C=!0,I="g"),(b||m==="0"&&h==="=")&&(b=!0,m="0",h="=");
18var A=y==="$"?r:y==="#"&&/[boxX]/.test(I)?"0"+I.toLowerCase():"",O=y==="$"?n:/[%p]/.test(I)?i:"",F=P5[I],q=/[defgprs%]/.test(I);x=x===void 0?6:/[gprs]/.test(I)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function G(J){var Y=A,le=O,re,oe,$;if(I==="c")le=F(J)+le,J="";else{J=+J;var z=J<0||1/J<0;if(J=isNaN(J)?l:F(Math.abs(J),x),C&&(J=pK(J)),z&&+J==0&&g!=="+"&&(z=!1),Y=(z?g==="("?g:s:g==="-"||g==="("?"":g)+Y,le=(I==="s"?gK[8+T5/3]:"")+le+(z&&g==="("?")":""),q){for(re=-1,oe=J.length;++re<oe;)if($=J.charCodeAt(re),48>$||$>57){le=($===46?a+J.slice(re+1):J.slice(re))+le,J=J.slice(0,re);break}}}S&&!b&&(J=t(J,1/0));var R=Y.length+J.length+le.length,N=R<w?new Array(w-R+1).join(m):"";switch(S&&b&&(J=t(N+J,N.length?w-le.length:1/0),N=""),h){case"<":J=Y+J+le+N;break;case"=":J=Y+N+J+le;break;case"^":J=N.slice(0,R=N.length>>1)+Y+J+le+N.slice(R);break;default:J=N+Y+J+le;break}return o(J)}return G.toString=function(){return f+""},G}function d(f,m){var h=u((f=Gi(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Hi(m)/3)))*3,y=Math.pow(10,-g),b=gK[8+g/3];return function(w){return h(y*w)+b}}return{format:u,formatPrefix:d}}var Tw,lp,Cw;E5({thousands:",",grouping:[3],currency:["$",""]});function E5(e){return Tw=vK(e),lp=Tw.format,Cw=Tw.formatPrefix,Tw}function L5(e){return Math.max(0,-Hi(Math.abs(e)))}function $5(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Hi(t)/3)))*3-Hi(Math.abs(e)))}function O5(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Hi(t)-Hi(e))+1}function h0(e,t,r,n){var a=ap(e,t,r),o;switch(n=Gi(n??",f"),n.type){case"s":{var i=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(o=$5(a,i))&&(n.precision=o),Cw(n,i)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(o=O5(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=o-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(o=L5(a))&&(n.precision=o-(n.type==="%")*2);break}}return lp(n)}function la(e){var t=e.domain;return e.ticks=function(r){var n=t();return Nc(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return h0(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,o=n.length-1,i=n[a],s=n[o],l,u,d=10;for(s<i&&(u=i,i=s,s=u,u=a,a=o,o=u);d-- >0;){if(u=u0(i,s,r),u===l)return n[a]=i,n[o]=s,t(n);if(u>0)i=Math.floor(i/u)*u,s=Math.ceil(s/u)*u;else if(u<0)i=Math.ceil(i*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Vc(){var e=Uc();return e.copy=function(){return Zi(e,Vc())},kr.apply(e,arguments),la(e)}function Pw(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,du),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Pw(e).unknown(t)},e=arguments.length?Array.from(e,du):[0,1],la(r)}function g0(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],o=e[n],i;return o<a&&(i=r,r=n,n=i,i=a,a=o,o=i),e[r]=t.floor(a),e[n]=t.ceil(o),e}function yK(e){return Math.log(e)}function bK(e){return Math.exp(e)}function aEe(e){return-Math.log(-e)}function oEe(e){return-Math.exp(-e)}function iEe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function sEe(e){return e===10?iEe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function lEe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function xK(e){return(t,r)=>-e(-t,r)}function v0(e){let t=e(yK,bK),r=t.domain,n=10,a,o;function i(){return a=lEe(n),o=sEe(n),r()[0]<0?(a=xK(a),o=xK(o),e(aEe,oEe)):e(yK,bK),t}return t.base=function(s){return arguments.length?(n=+s,i()):n},t.domain=function(s){return arguments.length?(r(s),i()):r()},t.ticks=s=>{let l=r(),u=l[0],d=l[l.length-1],f=d<u;f&&([u,d]=[d,u]);let m=a(u),h=a(d),g,y,b=s==null?10:+s,w=[];if(!(n%1)&&h-m<b){if(m=Math.floor(m),h=Math.ceil(h),u>0){for(;m<=h;++m)for(g=1;g<n;++g)if(y=m<0?g/o(-m):g*o(m),!(y<u)){if(y>d)break;w.push(y)}}else for(;m<=h;++m)for(g=n-1;g>=1;--g)if(y=m>0?g/o(-m):g*o(m),!(y<u)){if(y>d)break;w.push(y)}w.length*2<b&&(w=Nc(u,d,b))}else w=Nc(m,h,Math.min(h-m,b)).map(o);return f?w.reverse():w},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Gi(l)).precision==null&&(l.trim=!0),l=lp(l)),s===1/0)return l;let u=Math.max(1,n*s/t.ticks().length);return d=>{let f=d/o(Math.round(a(d)));return f*n<n-.5&&(f*=n),f<=u?l(d):""}},t.nice=()=>r(g0(r(),{floor:s=>o(Math.floor(a(s))),ceil:s=>o(Math.ceil(a(s)))})),t}function Aw(){let e=v0(Fc()).domain([1,10]);return e.copy=()=>Zi(e,Aw()).base(e.base()),kr.apply(e,arguments),e}
vendor: 3,032 bytes, line 18
18function wK(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _K(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function y0(e){var t=1,r=e(wK(t),_K(t));return r.constant=function(n){return arguments.length?e(wK(t=+n),_K(t)):t},la(r)}function Ew(){var e=y0(Fc());return e.copy=function(){return Zi(e,Ew()).constant(e.constant())},kr.apply(e,arguments)}function SK(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uEe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cEe(e){return e<0?-e*e:e*e}function b0(e){var t=e(gn,gn),r=1;function n(){return r===1?e(gn,gn):r===.5?e(uEe,cEe):e(SK(r),SK(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},la(t)}function x0(){var e=b0(Fc());return e.copy=function(){return Zi(e,x0()).exponent(e.exponent())},kr.apply(e,arguments),e}function kK(){return x0.apply(null,arguments).exponent(.5)}function IK(e){return Math.sign(e)*e*e}function dEe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Lw(){var e=Uc(),t=[0,1],r=!1,n;function a(o){var i=dEe(e(o));return isNaN(i)?n:r?Math.round(i):i}return a.invert=function(o){return e.invert(IK(o))},a.domain=function(o){return arguments.length?(e.domain(o),a):e.domain()},a.range=function(o){return arguments.length?(e.range((t=Array.from(o,du)).map(IK)),a):t.slice()},a.rangeRound=function(o){return a.range(o).round(!0)},a.round=function(o){return arguments.length?(r=!!o,a):r},a.clamp=function(o){return arguments.length?(e.clamp(o),a):e.clamp()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.copy=function(){return Lw(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},kr.apply(a,arguments),la(a)}function $w(){var e=[],t=[],r=[],n;function a(){var i=0,s=Math.max(1,t.length);for(r=new Array(s-1);++i<s;)r[i-1]=v5(e,i/s);return o}function o(i){return i==null||isNaN(i=+i)?n:t[si(r,i)]}return o.invertExtent=function(i){var s=t.indexOf(i);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},o.domain=function(i){if(!arguments.length)return e.slice();e=[];for(let s of i)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(sa),a()},o.range=function(i){return arguments.length?(t=Array.from(i),a()):t.slice()},o.unknown=function(i){return arguments.length?(n=i,o):n},o.quantiles=function(){return r.slice()},o.copy=function(){return $w().domain(e).range(t).unknown(n)},kr.apply(o,arguments)}function Ow(){var e=0,t=1,r=1,n=[.5],a=[0,1],o;function i(l){return l!=null&&l<=l?a[si(n,l,0,r)]:o}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return i}return i.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},i.range=function(l){return arguments.length?(r=(a=Array.from(l)).length-1,s()):a.slice()},i.invertExtent=function(l){var u=a.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},i.unknown=function(l){return arguments.length&&(o=l),i},i.thresholds=function(){return n.slice()},i.copy=function(){return Ow().domain([e,t]).range(a).unknown(o)}
18,kr.apply(la(i),arguments)}function Mw(){var e=[.5],t=[0,1],r,n=1;function a(o){return o!=null&&o<=o?t[si(e,o,0,n)]:r}return a.domain=function(o){return arguments.length?(e=Array.from(o),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(o){return arguments.length?(t=Array.from(o),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(o){var i=t.indexOf(o);return[e[i-1],e[i]]},a.unknown=function(o){return arguments.length?(r=o,a):r},a.copy=function(){return Mw().domain(e).range(t).unknown(r)},kr.apply(a,arguments)}var M5=new Date,R5=new Date;function ur(e,t,r,n){function a(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return a.floor=o=>(e(o=new Date(+o)),o),a.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),a.round=o=>{let i=a(o),s=a.ceil(o);return o-i<s-o?i:s},a.offset=(o,i)=>(t(o=new Date(+o),i==null?1:Math.floor(i)),o),a.range=(o,i,s)=>{let l=[];if(o=a.ceil(o),s=s==null?1:Math.floor(s),!(o<i)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<i);return l},a.filter=o=>ur(i=>{if(i>=i)for(;e(i),!o(i);)i.setTime(i-1)},(i,s)=>{if(i>=i)if(s<0)for(;++s<=0;)for(;t(i,-1),!o(i););else for(;--s>=0;)for(;t(i,1),!o(i););}),r&&(a.count=(o,i)=>(M5.setTime(+o),R5.setTime(+i),e(M5),e(R5),Math.floor(r(M5,R5))),a.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?a.filter(n?i=>n(i)%o===0:i=>a.count(0,i)%o===0):a)),a}var w0=ur(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);w0.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ur(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):w0);var dyt=w0.range;var Ao=ur(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),TK=Ao.range;var up=ur(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),fEe=up.range,cp=ur(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),pEe=cp.range;var dp=ur(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),mEe=dp.range,fp=ur(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),hEe=fp.range;var Us=ur(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),gEe=Us.range,Gc=ur(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),vEe=Gc.range,Rw=ur(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),yEe=Rw.range;function Wc(e){return ur(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}var qs=Wc(0),pp=Wc(1),PK=Wc(2),AK=Wc(3),fu=Wc(4),EK=Wc(5),LK=Wc(6),$K=qs.range,bEe=pp.range,xEe=PK.range,wEe=AK.range,_Ee=fu.range,SEe=EK.range,kEe=LK.range;function Kc(e){return ur(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var Vs=Kc(0),mp=Kc(1),OK=Kc(2),MK=Kc(3),pu=Kc(4),RK=Kc(5),DK=Kc(6),NK=Vs.range,IEe=mp.range,TEe=OK.range,CEe=MK.range,PEe=pu.range,AEe=RK.range,EEe=DK.range;var hp=ur(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),LEe=hp.range,gp=ur(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),$Ee=gp.range;var Za=ur(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Za.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ur(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});var OEe=Za.range,Ha=ur(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Ha.every=e=>
vendor: 9,980 bytes, line 18
18!isFinite(e=Math.floor(e))||!(e>0)?null:ur(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});var MEe=Ha.range;function jK(e,t,r,n,a,o){let i=[[Ao,1,1e3],[Ao,5,5*1e3],[Ao,15,15*1e3],[Ao,30,30*1e3],[o,1,6e4],[o,5,5*6e4],[o,15,15*6e4],[o,30,30*6e4],[a,1,36e5],[a,3,3*36e5],[a,6,6*36e5],[a,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function s(u,d,f){let m=d<u;m&&([u,d]=[d,u]);let h=f&&typeof f.range=="function"?f:l(u,d,f),g=h?h.range(u,+d+1):[];return m?g.reverse():g}function l(u,d,f){let m=Math.abs(d-u)/f,h=Dc(([,,b])=>b).right(i,m);if(h===i.length)return e.every(ap(u/31536e6,d/31536e6,f));if(h===0)return w0.every(Math.max(ap(u,d,f),1));let[g,y]=i[m/i[h-1][2]<i[h][2]/m?h-1:h];return g.every(y)}return[s,l]}var[D5,N5]=jK(Ha,gp,Vs,Rw,fp,cp),[z5,j5]=jK(Za,hp,qs,Us,dp,up);function B5(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function F5(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function S0(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function U5(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,o=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,u=k0(a),d=I0(a),f=k0(o),m=I0(o),h=k0(i),g=I0(i),y=k0(s),b=I0(s),w=k0(l),S=I0(l),x={a:z,A:R,b:N,B:U,c:null,d:ZK,e:ZK,f:aLe,g:mLe,G:gLe,H:tLe,I:rLe,j:nLe,L:JK,m:oLe,M:iLe,p:B,q:V,Q:WK,s:KK,S:sLe,u:lLe,U:uLe,V:cLe,w:dLe,W:fLe,x:null,X:null,y:pLe,Y:hLe,Z:vLe,"%":GK},C={a:Z,A:Q,b:ue,B:ge,c:null,d:HK,e:HK,f:wLe,g:LLe,G:OLe,H:yLe,I:bLe,j:xLe,L:YK,m:_Le,M:SLe,p:Te,q:De,Q:WK,s:KK,S:kLe,u:ILe,U:TLe,V:CLe,w:PLe,W:ALe,x:null,X:null,y:ELe,Y:$Le,Z:MLe,"%":GK},I={a:G,A:J,b:Y,B:le,c:re,d:qK,e:qK,f:XEe,g:UK,G:FK,H:VK,I:VK,j:GEe,L:JEe,m:HEe,M:WEe,p:q,q:ZEe,Q:QEe,s:eLe,S:KEe,u:BEe,U:FEe,V:UEe,w:jEe,W:qEe,x:oe,X:$,y:UK,Y:FK,Z:VEe,"%":YEe};x.x=A(r,x),x.X=A(n,x),x.c=A(t,x),C.x=A(r,C),C.X=A(n,C),C.c=A(t,C);function A(me,Ze){return function(Oe){var fe=[],Mt=-1,at=0,Ut=me.length,zt,Qt,Vr;for(Oe instanceof Date||(Oe=new Date(+Oe));++Mt<Ut;)me.charCodeAt(Mt)===37&&(fe.push(me.slice(at,Mt)),(Qt=BK[zt=me.charAt(++Mt)])!=null?zt=me.charAt(++Mt):Qt=zt==="e"?" ":"0",(Vr=Ze[zt])&&(zt=Vr(Oe,Qt)),fe.push(zt),at=Mt+1);return fe.push(me.slice(at,Mt)),fe.join("")}}function O(me,Ze){return function(Oe){var fe=S0(1900,void 0,1),Mt=F(fe,me,Oe+="",0),at,Ut;if(Mt!=Oe.length)return null;if("Q"in fe)return new Date(fe.Q);if("s"in fe)return new Date(fe.s*1e3+("L"in fe?fe.L:0));if(Ze&&!("Z"in fe)&&(fe.Z=0),"p"in fe&&(fe.H=fe.H%12+fe.p*12),fe.m===void 0&&(fe.m="q"in fe?fe.q:0),"V"in fe){if(fe.V<1||fe.V>53)return null;"w"in fe||(fe.w=1),"Z"in fe?(at=F5(S0(fe.y,0,1)),Ut=at.getUTCDay(),at=Ut>4||Ut===0?mp.ceil(at):mp(at),at=Gc.offset(at,(fe.V-1)*7),fe.y=at.getUTCFullYear(),fe.m=at.getUTCMonth(),fe.d=at.getUTCDate()+(fe.w+6)%7):(at=B5(S0(fe.y,0,1)),Ut=at.getDay(),at=Ut>4||Ut===0?pp.ceil(at):pp(at),at=Us.offset(at,(fe.V-1)*7),fe.y=at.getFullYear(),fe.m=at.getMonth(),fe.d=at.getDate()+(fe.w+6)%7)}else("W"in fe||"U"in fe)&&("w"in fe||(fe.w="u"in fe?fe.u%7:"W"in fe?1:0),Ut="Z"in fe?F5(S0(fe.y,0,1)).getUTCDay():B5(S0(fe.y,0,1)).getDay(),fe.m=0,fe.d="W"in fe?(fe.w+6)%7+fe.W*7-(Ut+5)%7:fe.w+fe.U*7-(Ut+6)%7);return"Z"in fe?(fe.H+=fe.Z/100|0,fe.M+=fe.Z%100,F5(fe)):B5(fe)}}function F(me,Ze,Oe,fe){for(var Mt=0,at=Ze.length,Ut=Oe.length,zt,Qt;Mt<at;){if(fe>=Ut)return-1;if(zt=Ze.charCodeAt(Mt++),zt===37){if(zt=Ze.charAt(Mt++),Qt=I[zt in BK?Ze.charAt(Mt++):zt],!Qt||(fe=Qt(me,Oe,fe))<0)return-1}else if(zt!=Oe.charCodeAt(fe++))return-1}return fe}function q(me,Ze,Oe){var fe=u.exec(Ze.slice(Oe));return fe?(me.p=d.get(fe[0].toLowerCase()),Oe+fe[0].length):-1}function G(me,Ze,Oe){var fe=h.exec(Ze.slice(Oe));return fe?(me.w=g.get(fe[0].toLowerCase()),Oe+fe[0].length):-1}function J(me,Ze,Oe){var fe=f.exec(Ze.slice(Oe));return fe?(me.w=m.get(fe[0].toLowerCase()),Oe+fe[0].length):-1}function Y(me,Ze,Oe){var fe=w.exec(Ze.slice(Oe));return fe?(me.m=S.get(fe[0].toLowerCase()),Oe+fe[0].length):-1}function le(me,Ze,Oe){var fe=y.exec(Ze.slice(Oe));return fe?(me.m=b.get(fe[0].toLowerCase()),Oe+fe[0].length):-1}function re(me,Ze,Oe){return F(me,t,Ze,Oe)}function oe(me,Ze,Oe){return F(me,r,Ze,Oe)}function $(me,Ze,Oe){return F(me,n,Ze,Oe)}function z(me){return i[me.getDay()]}function R(me){return o[me.getDay()]}function N(me){return l[me.getMonth()]}function U(me){return s[me.getMonth()]}function B(me){return a[+(me.getHours()>=12)]}function V(me){return 1+~~(me.getMonth()/3)}function Z(me){return i[me.getUTCDay()]}function Q(me){return o[me.getUTCDay()]}function ue(me){return l[me.getUTCMonth()]}function ge(me){return s[me.getUTCMonth()]}function Te(me){return a[+(me.getUTCHours()>=12)]}function De(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var Ze=A(me+="",x);return Ze.toString=function(){return me},Ze},parse:function(me){var Ze=O(me+="",!1);return Ze.toString=function(){return me},Ze},utcFormat:function(me){var Ze=A(me+="",C);return Ze.toString=function(){return me},Ze},utcParse:function(me){var Ze=O(me+="",!0);return Ze.toString=function(){return me},Ze}}}var BK={"-":"",_:" ",0:"0"},Pn=/^\s*\d+/,DEe=/^%/,NEe=/[\\^$*+?|[\]().{}]/g;function Ft(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",o=a.length;return n+(o<r?new Array(r-o+1).join(t)+a:a)}function zEe(e){return e.replace(NEe,"\\$&")}function k0(e){return new RegExp("^(?:"+e.map(zEe).join("|")+")","i")}function I0(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function jEe(e,t,r){var n=Pn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function BEe(e,t,r){var n=Pn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function FEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function UEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function qEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function FK(e,t,r){var n=Pn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function UK(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function VEe(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ZEe(e,t,r){var n=Pn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function HEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function qK(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function GEe(e,t,r){var n=Pn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function VK(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function WEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function KEe(e,t,r){var n=Pn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function JEe(e,t,r){var n=Pn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function XEe(e,t,r){var n=Pn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function YEe(e,t,r){var n=DEe.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function QEe(e,t,r){var n=Pn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function eLe(e,t,r){var n=Pn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ZK(e,t){return Ft(e.getDate(),t,2)}function tLe(e,t){return Ft(e.getHours(),t,2)}function rLe(e,t){return Ft(e.getHours()%12||12,t,2)}function nLe(e,t){return Ft(1+Us.count(Za(e),e),t,3)}function JK(e,t){return Ft(e.getMilliseconds(),t,3)}function aLe(e,t){return JK(e,t)+"000"}function oLe(e,t){return Ft(e.getMonth()+1,t,2)}function iLe(e,t){return Ft(e.getMinutes(),t,2)}function sLe(e,t){return Ft(e.getSeconds(),t,2)}function lLe(e){var t=e.getDay();return t===0?7:t}function uLe(e,t){return Ft(qs.count(Za(e)-1,e),t,2)}function XK(e){var t=e.getDay();return t>=4||t===0?fu(e):fu.ceil(e)}function cLe(e,t){return e=XK(e),Ft(fu.count(Za(e),e)+(Za(e).getDay()===4),t,2)}function dLe(e){return e.getDay()}function fLe(e,t){return Ft(pp.count(Za(e)-1,e),t,2)}function pLe(e,t){return Ft(e.getFullYear()%100,t,2)}function mLe(e,t){return e=XK(e),Ft(e.getFullYear()%100,t,2)}function hLe(e,t){return Ft(e.getFullYear()%1e4,t,4)}function gLe(e,t){var r=e.getDay();return e=r>=4||r===0?fu(e):fu.ceil(e),Ft(e.getFullYear()%1e4,t,4)}function vLe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ft(t/60|0,"0",2)+Ft(t%60,"0",2)}function HK(e,t){return Ft(e.getUTCDate(),t,2)}function yLe(e,t){return Ft(e.getUTCHours(),t,2)}function bLe(e,t){return Ft(e.getUTCHours()%12||12,t,2)}function xLe(e,t){return Ft(1+Gc.count(Ha(e),e),t,3)}function YK(e,t){return Ft(e.getUTCMilliseconds(),t,3)}function wLe(e,t){return YK(e,t)+"000"}function _Le(e,t){return Ft(e.getUTCMonth()+1,t,2)}function SLe(e,t){return Ft(e.getUTCMinutes(),t,2)}function kLe(e,t){return Ft(e.getUTCSeconds(),t,2)}function ILe(e){var t=e.getUTCDay();return t===0?7:t}function TLe(e,t){return Ft(Vs.count(Ha(e)-1,e),t,2)}function QK(e){var t=e.getUTCDay();return t>=4||t===0?pu(e):pu.ceil(e)}function CLe(e,t){return e=QK(e),Ft(pu.count(Ha(e),e)+(Ha(e).getUTCDay()===4),t,2)}function PLe(e){return e.getUTCDay()}function ALe(e,t){return Ft(mp.count(Ha(e)-1,e),t,2)}function ELe(e,t){return Ft(e.getUTCFullYear()%100,t,2)}function LLe(e,t){return e=QK(e),Ft(e.getUTCFullYear()%100,t,2)}function $Le(e,t){return Ft(e.getUTCFullYear()%1e4,t,4)}function OLe(e,t){var r=e.getUTCDay();return e=r>=4||r===0?pu(e):pu.ceil(e),Ft(e.getUTCFullYear()%1e4,t,4)}function MLe(){return"+0000"}function GK(){return"%"}function WK(e){return+e}function KK(e){return Math.floor(+e/1e3)}var vp,Dw,eJ,Nw,tJ;q5({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
18ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function q5(e){return vp=U5(e),Dw=vp.format,eJ=vp.parse,Nw=vp.utcFormat,tJ=vp.utcParse,vp}function RLe(e){return new Date(e)}function DLe(e){return e instanceof Date?+e:+new Date(+e)}function zw(e,t,r,n,a,o,i,s,l,u){var d=Uc(),f=d.invert,m=d.domain,h=u(".%L"),g=u(":%S"),y=u("%I:%M"),b=u("%I %p"),w=u("%a %d"),S=u("%b %d"),x=u("%B"),C=u("%Y");function I(A){return(l(A)<A?h:s(A)<A?g:i(A)<A?y:o(A)<A?b:n(A)<A?a(A)<A?w:S:r(A)<A?x:C)(A)}return d.invert=function(A){return new Date(f(A))},d.domain=function(A){return arguments.length?m(Array.from(A,DLe)):m().map(RLe)},d.ticks=function(A){var O=m();return e(O[0],O[O.length-1],A??10)},d.tickFormat=function(A,O){return O==null?I:u(O)},d.nice=function(A){var O=m();return(!A||typeof A.range!="function")&&(A=t(O[0],O[O.length-1],A??10)),A?m(g0(O,A)):d},d.copy=function(){return Zi(d,zw(e,t,r,n,a,o,i,s,l,u))},d}function V5(){return kr.apply(zw(z5,j5,Za,hp,qs,Us,dp,up,Ao,Dw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Z5(){return kr.apply(zw(D5,N5,Ha,gp,Vs,Gc,fp,cp,Ao,Nw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function jw(){var e=0,t=1,r,n,a,o,i=gn,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:i(a===0?.5:(f=(o(f)-r)*a,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=o(e=+e),n=o(t=+t),a=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(i=f,u):i};function d(f){return function(m){var h,g;return arguments.length?([h,g]=m,i=f(h,g),u):[i(0),i(1)]}}return u.range=d(Va),u.rangeRound=d(Bc),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return o=f,r=f(e),n=f(t),a=r===n?0:1/(n-r),u}}function Zs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Bw(){var e=la(jw()(gn));return e.copy=function(){return Zs(e,Bw())},Po.apply(e,arguments)}function H5(){var e=v0(jw()).domain([1,10]);return e.copy=function(){return Zs(e,H5()).base(e.base())},Po.apply(e,arguments)}function G5(){var e=y0(jw());return e.copy=function(){return Zs(e,G5()).constant(e.constant())},Po.apply(e,arguments)}function Fw(){var e=b0(jw());return e.copy=function(){return Zs(e,Fw()).exponent(e.exponent())},Po.apply(e,arguments)}function rJ(){return Fw.apply(null,arguments).exponent(.5)}function Uw(){var e=[],t=gn;function r(n){if(n!=null&&!isNaN(n=+n))return t((si(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(sa),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,o)=>hw(e,o/n))},r.copy=function(){return Uw(t).domain(e)},Po.apply(r,arguments)}function qw(){var e=0,t=.5,r=1,n=1,a,o,i,s,l,u=gn,d,f=!1,m;function h(y){return isNaN(y=+y)?m:(y=.5+((y=+d(y))-o)*(n*y<n*o?s:l),u(f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([e,t,r]=y,a=d(e=+e),o=d(t=+t),i=d(r=+r),s=a===o?0:.5/(o-a),l=o===i?0:.5/(i-o),n=o<a?-1:1,h):[e,t,r]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(u=y,h):u};function g(y){return function(b){var w,S,x;return arguments.length?([w,S,x]=b,u=kw(y,[w,S,x]),h):[u(0),u(.5),u(1)]}}return h.range=g(Va),h.rangeRound=g(Bc),h.unknown=function(y){return arguments.length?(m=y,h):m},function(y){return d=y,a=y(e),o=y(t),i=y(r),s=a===o?0:.5/(o-a),l=o===i?0:.5/(i-o),n=o<a?-1:1,h}}function Vw(){var e=la(qw()(gn));return e.copy=function(){return Zs(e,Vw())},Po.apply(e,arguments)}function W5(){var e=v0(qw()).domain([.1,1,10]);return e.copy=function(){return Zs(e,W5()).base(e.base())},Po.apply(e,arguments)}function K5(){var e=y0(qw());return e.copy=function(){return Zs(e,K5()).constant(e.constant())},Po.apply(e,arguments)}
18function Zw(){var e=b0(qw());return e.copy=function(){return Zs(e,Zw()).exponent(e.exponent())},Po.apply(e,arguments)}function nJ(){return Zw.apply(null,arguments).exponent(.5)}var M0=H(lJ()),R0=H(fJ()),Ki=H(oi()),wp=H(an()),DJ=H(w1()),f3=H(Ic()),NJ=H(gJ()),Qw=H(LC()),zJ=H(D1()),jJ=H(Gw()),BJ=H(rw());var Xt=H(X5());function o7e(e){return u7e(e)||l7e(e)||s7e(e)||i7e()}function i7e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s7e(e,t){if(e){if(typeof e=="string")return Y5(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Y5(e,t)}}function l7e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function u7e(e){if(Array.isArray(e))return Y5(e)}function Y5(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var c7e=function(t){return t},xJ={"@@functional/placeholder":!0},wJ=function(t){return t===xJ},bJ=function(t){return function r(){return arguments.length===0||arguments.length===1&&wJ(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},d7e=function e(t,r){return t===1?r:bJ(function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];var i=a.filter(function(s){return s!==xJ}).length;return i>=t?r.apply(void 0,a):e(t-i,bJ(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var d=a.map(function(f){return wJ(f)?l.shift():f});return r.apply(void 0,o7e(d).concat(l))}))})},T0=function(t){return d7e(t.length,t)},C0=function(t,r){for(var n=[],a=t;a<r;++a)n[a-t]=a;return n},Q5=T0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),e3=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return c7e;var a=r.reverse(),o=a[0],i=a.slice(1);return function(){return i.reduce(function(s,l){return l(s)},o.apply(void 0,arguments))}},P0=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Kw=function(t){var r=null,n=null;return function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return r&&o.every(function(s,l){return s===r[l]})||(r=o,n=t.apply(void 0,o)),n}};var t3=H(X5());function f7e(e){var t;return e===0?t=1:t=Math.floor(new t3.default(e).abs().log(10).toNumber())+1,t}function p7e(e,t,r){for(var n=new t3.default(e),a=0,o=[];n.lt(t)&&a<1e5;)o.push(n.toNumber()),n=n.add(r),a++;return o}var m7e=T0(function(e,t,r){var n=+e,a=+t;return n+r*(a-n)}),h7e=T0(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),g7e=T0(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))}),A0={rangeStep:p7e,getDigitCount:f7e,interpolateNumber:m7e,uninterpolateNumber:h7e,uninterpolateTruncation:g7e};function r3(e){return b7e(e)||y7e(e)||_J(e)||v7e()}function v7e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 20In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y7e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function b7e(e){if(Array.isArray(e))return n3(e)}function Jc(e,t){return _7e(e)||w7e(e,t)||_J(e,t)||x7e()}function x7e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 21In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _J(e,t){if(e){if(typeof e=="string")return n3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n3(e,t)}}function n3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w7e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var i=e[Symbol.iterator](),s;!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,o=l}finally{try{!n&&i.return!=null&&i.return()}finally{if(a)throw o}}return r}}function _7e(e){if(Array.isArray(e))return e}function a3(e){var t=Jc(e,2),r=t[0],n=t[1],a=r,o=n;return r>n&&(a=n,o=r),[a,o]}function o3(e,t,r){if(e.lte(0))return new Xt.default(0);var n=A0.getDigitCount(e.toNumber()),a=new Xt.default(10).pow(n),o=e.div(a),i=n!==1?.05:.1,s=new Xt.default(Math.ceil(o.div(i).toNumber())).add(r).mul(i),l=s.mul(a);return t?l:new Xt.default(Math.ceil(l))}function SJ(e,t,r){var n=1,a=new Xt.default(e);if(!a.isint()&&r){var o=Math.abs(e);o<1?(n=new Xt.default(10).pow(A0.getDigitCount(e)-1),a=new Xt.default(Math.floor(a.div(n).toNumber())).mul(n)):o>1&&(a=new Xt.default(Math.floor(e)))}else e===0?a=new Xt.default(Math.floor((t-1)/2)):r||(a=new Xt.default(Math.floor(e)));var i=Math.floor((t-1)/2),s=e3(Q5(function(l){return a.add(new Xt.default(l-i).mul(n)).toNumber()}),C0);return s(0,t)}function kJ(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xt.default(0),tickMin:new Xt.default(0),tickMax:new Xt.default(0)};var o=o3(new Xt.default(t).sub(e).div(r-1),n,a),i;e<=0&&t>=0?i=new Xt.default(0):(i=new Xt.default(e).add(t).div(2),i=i.sub(new Xt.default(i).mod(o)
21));var s=Math.ceil(i.sub(e).div(o).toNumber()),l=Math.ceil(new Xt.default(t).sub(i).div(o).toNumber()),u=s+l+1;return u>r?kJ(e,t,r,n,a+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:o,tickMin:i.sub(new Xt.default(s).mul(o)),tickMax:i.add(new Xt.default(l).mul(o))})}function S7e(e){var t=Jc(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(a,2),s=a3([r,n]),l=Jc(s,2),u=l[0],d=l[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(r3(C0(0,a-1).map(function(){return 1/0}))):[].concat(r3(C0(0,a-1).map(function(){return-1/0})),[d]);return r>n?P0(f):f}if(u===d)return SJ(u,a,o);var m=kJ(u,d,i,o),h=m.step,g=m.tickMin,y=m.tickMax,b=A0.rangeStep(g,y.add(new Xt.default(.1).mul(h)),h);return r>n?P0(b):b}function k7e(e){var t=Jc(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=Math.max(a,2),s=a3([r,n]),l=Jc(s,2),u=l[0],d=l[1];if(u===-1/0||d===1/0)return[r,n];if(u===d)return SJ(u,a,o);var f=o3(new Xt.default(d).sub(u).div(i-1),o,0),m=e3(Q5(function(g){return new Xt.default(u).add(new Xt.default(g).mul(f)).toNumber()}),C0),h=m(0,i).filter(function(g){return g>=u&&g<=d});return r>n?P0(h):h}function I7e(e,t){var r=Jc(e,2),n=r[0],a=r[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=a3([n,a]),s=Jc(i,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,a];if(l===u)return[l];var d=Math.max(t,2),f=o3(new Xt.default(u).sub(l).div(d-1),o,0),m=[].concat(r3(A0.rangeStep(new Xt.default(l),new Xt.default(u).sub(new Xt.default(.99).mul(f)),f)),[u]);return n>a?P0(m):m}var i3=Kw(S7e),T7e=Kw(k7e),s3=Kw(I7e);var E0=H(ve());var C7e=!0,l3="Invariant failed";function ui(e,t){if(!e){if(C7e)throw new Error(l3);var r=typeof t=="function"?t():t,n=r?"".concat(l3,": ").concat(r):l3;throw new Error(n)}}var P7e=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function yp(e){"@babel/helpers - typeof";return yp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yp(e)}function Jw(){return Jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jw.apply(this,arguments)}function A7e(e,t){return O7e(e)||$7e(e,t)||L7e(e,t)||E7e()}function E7e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L7e(e,t){if(e){if(typeof e=="string")return IJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IJ(e,t)}}function IJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $7e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function O7e(e){if(Array.isArray(e))return e}function M7e(e,t){if(e==null)return{};var r=R7e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function R7e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function D7e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AJ(n.key),n)}}function N7e(e,t,r){return t&&TJ(e.prototype,t),r&&TJ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function z7e(e,t,r){return t=Xw(t),j7e(e,CJ()?Reflect.construct(t,r||[],Xw(e).constructor):t.apply(e,r))}function j7e(e,t){if(t&&(yp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B7e(e)}function B7e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CJ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CJ=function(){return!!e})()}
22function Xw(e){return Xw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xw(e)}function F7e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u3(e,t)}function u3(e,t){return u3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},u3(e,t)}function PJ(e,t,r){return t=AJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AJ(e){var t=U7e(e,"string");return yp(t)=="symbol"?t:t+""}function U7e(e,t){if(yp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bp=(function(e){function t(){return D7e(this,t),z7e(this,t,arguments)}return F7e(t,e),N7e(t,[{key:"render",value:function(){var n=this.props,a=n.offset,o=n.layout,i=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,d=n.xAxis,f=n.yAxis,m=M7e(n,P7e),h=ot(m,!1);this.props.direction==="x"&&d.type!=="number"&&ui(!1);var g=l.map(function(y){var b=u(y,s),w=b.x,S=b.y,x=b.value,C=b.errorVal;if(!C)return null;var I=[],A,O;if(Array.isArray(C)){var F=A7e(C,2);A=F[0],O=F[1]}else A=O=C;if(o==="vertical"){var q=d.scale,G=S+a,J=G+i,Y=G-i,le=q(x-A),re=q(x+O);I.push({x1:re,y1:J,x2:re,y2:Y}),I.push({x1:le,y1:G,x2:re,y2:G}),I.push({x1:le,y1:J,x2:le,y2:Y})}else if(o==="horizontal"){var oe=f.scale,$=w+a,z=$-i,R=$+i,N=oe(x-A),U=oe(x+O);I.push({x1:z,y1:U,x2:R,y2:U}),I.push({x1:$,y1:N,x2:$,y2:U}),I.push({x1:z,y1:N,x2:R,y2:N})}return E0.default.createElement(nr,Jw({className:"recharts-errorBar",key:"bar-".concat(I.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},h),I.map(function(B){return E0.default.createElement("line",Jw({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return E0.default.createElement(nr,{className:"recharts-errorBars"},g)}}])})(E0.default.Component);PJ(bp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});PJ(bp,"displayName","ErrorBar");function L0(e){"@babel/helpers - typeof";return L0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L0(e)}function EJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EJ(Object(r),!0).forEach(function(n){q7e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EJ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q7e(e,t,r){return t=V7e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V7e(e){var t=Z7e(e,"string");return L0(t)=="symbol"?t:t+""}function Z7e(e,t){if(L0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(L0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yw=function(t){var r=t.children,n=t.formattedGraphicalItems,a=t.legendWidth,o=t.legendContent,i=qn(r,ou);if(!i)return null;var s=ou.defaultProps,l=s!==void 0?Xc(Xc({},s),i.props):{},u;return i.props&&i.props.payload?u=i.props&&i.props.payload:o==="children"?u=(n||[]).reduce(function(d,f){var m=f.item,h=f.props,g=h.sectors||h.data||[];return d.concat(g.map(function(y){return{type:i.props.iconType||m.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):u=(n||[]).map(function(d){var f=d.item,m=f.type.defaultProps,h=m!==void 0?Xc(Xc({},m),f.props):{}
22,g=h.dataKey,y=h.name,b=h.legendType,w=h.hide;return{inactive:w,dataKey:g,type:l.iconType||b||"square",color:$0(f),value:y||g,payload:h}}),Xc(Xc(Xc({},l),ou.getWithHeight(i,a)),{},{payload:u,item:i})};function O0(e){"@babel/helpers - typeof";return O0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O0(e)}function LJ(e){return K7e(e)||W7e(e)||G7e(e)||H7e()}function H7e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 23In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G7e(e,t){if(e){if(typeof e=="string")return d3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d3(e,t)}}function W7e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K7e(e){if(Array.isArray(e))return d3(e)}function d3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $J(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$J(Object(r),!0).forEach(function(n){xp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$J(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xp(e,t,r){return t=J7e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J7e(e){var t=X7e(e,"string");return O0(t)=="symbol"?t:t+""}function X7e(e,t){if(O0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(O0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ga(e,t,r){return(0,Ki.default)(e)||(0,Ki.default)(t)?r:gr(t)?(0,f3.default)(e,t,r):(0,wp.default)(t)?t(e):r}function _p(e,t,r,n){var a=(0,NJ.default)(e,function(s){return Ga(s,t)});if(r==="number"){var o=a.filter(function(s){return _e(s)||parseFloat(s)});return o.length?[(0,R0.default)(o),(0,M0.default)(o)]:[1/0,-1/0]}var i=n?a.filter(function(s){return!(0,Ki.default)(s)}):a;return i.map(function(s){return gr(s)||s instanceof Date?s:""})}var FJ=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,s=(r=n?.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u<s;u++){var d=u>0?a[u-1].coordinate:a[s-1].coordinate,f=a[u].coordinate,m=u>=s-1?a[0].coordinate:a[u+1].coordinate,h=void 0;if(Un(f-d)!==Un(m-f)){var g=[];if(Un(m-f)===Un(l[1]-l[0])){h=m;var y=f+l[1]-l[0];g[0]=Math.min(y,(y+d)/2),g[1]=Math.max(y,(y+d)/2)}else{h=d;var b=m+l[1]-l[0];g[0]=Math.min(f,(b+f)/2),g[1]=Math.max(f,(b+f)/2)}var w=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>w[0]&&t<=w[1]||t>=g[0]&&t<=g[1]){i=a[u].index;break}}else{var S=Math.min(d,m),x=Math.max(d,m);if(t>(S+f)/2&&t<=(x+f)/2){i=a[u].index;break}}}else for(var C=0;C<s;C++)if(C===0&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C>0&&C<s-1&&t>(n[C].coordinate+n[C-1].coordinate)/2&&t<=(n[C].coordinate+n[C+1].coordinate)/2||C===s-1&&t>(n[C].coordinate+n[C-1].coordinate)/2){i=n[C].index;break}return i},$0=function(t){var r,n=t,a=n.type.displayName,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,i=o.stroke,s=o.fill,l;switch(a){case"Line":l=i;break;case"Area":case"Radar":l=i&&i!=="none"?i:s;break;default:l=s;break}return l},UJ=function(t){var r=t.barSize,n=t.totalSize,a=t.stackGroups,o=a===void 0?{}:a;if(!o)return{};for(var i={},s=Object.keys(o),l=0,u=s.length;l<u;l++)for(var d=o[s[l]].stackGroups,f=Object.keys(d),m=0,h=f.length;m<h;m++){var g=d[f[m]],y=g.items,b=g.cateAxisId,w=y.filter(function(O){return So(O.type).indexOf("Bar")>=0});if(w&&w.length){var S=w[0].type.defaultProps,x=S!==void 0?zr(zr({},S),w[0].props):w[0].props,C=x.barSize,I=x[b];i[I]||(i[I]=[]);var A=(0,Ki.default)(C)?r:C;i[I].push({item:w[0],stackList:w.slice(1),barSize:(0,Ki.default)(A)?void 0:ii(A,n,0)})}}return i},qJ=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,o=t.sizeList,i=o===void 0?[]:o,s=t.maxBarSize,l=i.length;if(l<1)return null;var u=ii(r,a,0,!0),d,f=[];if(i[0].barSize===+i[0].barSize){var m=!1,h=a/l,g=i.reduce(function(C,I){return C+I.barSize||0}
vendor: 13,462 bytes, lines 23-24
23,0);g+=(l-1)*u,g>=a&&(g-=(l-1)*u,u=0),g>=a&&h>0&&(m=!0,h*=.9,g=l*h);var y=(a-g)/2>>0,b={offset:y-u,size:0};d=i.reduce(function(C,I){var A={item:I.item,position:{offset:b.offset+b.size+u,size:m?h:I.barSize}},O=[].concat(LJ(C),[A]);return b=O[O.length-1].position,I.stackList&&I.stackList.length&&I.stackList.forEach(function(F){O.push({item:F,position:b})}),O},f)}else{var w=ii(n,a,0,!0);a-2*w-(l-1)*u<=0&&(u=0);var S=(a-2*w-(l-1)*u)/l;S>1&&(S>>=0);var x=s===+s?Math.min(S,s):S;d=i.reduce(function(C,I,A){var O=[].concat(LJ(C),[{item:I.item,position:{offset:w+(S+u)*A+(S-x)/2,size:x}}]);return I.stackList&&I.stackList.length&&I.stackList.forEach(function(F){O.push({item:F,position:O[O.length-1].position})}),O},f)}return d},VJ=function(t,r,n,a){var o=n.children,i=n.width,s=n.margin,l=i-(s.left||0)-(s.right||0),u=Yw({children:o,legendWidth:l});if(u){var d=a||{},f=d.width,m=d.height,h=u.align,g=u.verticalAlign,y=u.layout;if((y==="vertical"||y==="horizontal"&&g==="middle")&&h!=="center"&&_e(t[h]))return zr(zr({},t),{},xp({},h,t[h]+(f||0)));if((y==="horizontal"||y==="vertical"&&h==="center")&&g!=="middle"&&_e(t[g]))return zr(zr({},t),{},xp({},g,t[g]+(m||0)))}return t},Y7e=function(t,r,n){return(0,Ki.default)(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},ZJ=function(t,r,n,a,o){var i=r.props.children,s=On(i,bp).filter(function(u){return Y7e(a,o,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=Ga(d,n);if((0,Ki.default)(f))return u;var m=Array.isArray(f)?[(0,R0.default)(f),(0,M0.default)(f)]:[f,f],h=l.reduce(function(g,y){var b=Ga(d,y,0),w=m[0]-Math.abs(Array.isArray(b)?b[0]:b),S=m[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(w,g[0]),Math.max(S,g[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},HJ=function(t,r,n,a,o){var i=r.map(function(s){return ZJ(t,s,n,o,a)}).filter(function(s){return!(0,Ki.default)(s)});return i&&i.length?i.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},p3=function(t,r,n,a,o){var i=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&ZJ(t,l,u,a)||_p(t,u,n,o)});if(n==="number")return i.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return i.reduce(function(l,u){for(var d=0,f=u.length;d<f;d++)s[u[d]]||(s[u[d]]=!0,l.push(u[d]));return l},[])},m3=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},h3=function(t,r,n,a){if(a)return t.map(function(l){return l.coordinate});var o,i,s=t.map(function(l){return l.coordinate===r&&(o=!0),l.coordinate===n&&(i=!0),l.coordinate});return o||s.push(r),i||s.push(n),s},Wa=function(t,r,n){if(!t)return null;var a=t.scale,o=t.duplicateDomain,i=t.type,s=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(r||n)&&i==="category"&&a.bandwidth?a.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&s?.length>=2?Un(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var m=o?o.indexOf(f):f;return{coordinate:a(m)+u,value:f,offset:u}});return d.filter(function(f){return!(0,Qw.default)(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,m){return{coordinate:a(f)+u,value:f,index:m,offset:u}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,m){return{coordinate:a(f)+u,value:o?o[f]:f,index:m,offset:u}})},c3=new WeakMap,D0=function(t,r){if(typeof r!="function")return t;c3.has(t)||c3.set(t,new WeakMap);var n=c3.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},GJ=function(t,r,n){var a=t.scale,o=t.type,i=t.layout,s=t.axisType;if(a==="auto")return i==="radial"&&s==="radiusAxis"?{scale:su(),realScaleType:"band"}:i==="radial"&&s==="angleAxis"?{scale:Vc(),realScaleType:"linear"}:o==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:lu(),realScaleType:"point"}:o==="category"?{scale:su(),realScaleType:"band"}:{scale:Vc(),realScaleType:"linear"};if((0,DJ.default)(a)){var l="scale".concat((0,zJ.default)(a));return{scale:(Hw[l]||lu)(),realScaleType:Hw[l]?l:"point"}}return(0,wp.default)(a)?{scale:a}:{scale:lu(),realScaleType:"point"}},OJ=1e-4,WJ=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),o=Math.min(a[0],a[1])-OJ,i=Math.max(a[0],a[1])+OJ,s=t(r[0]),l=t(r[n-1]);(s<o||s>i||l<o||l>i)&&t.domain([r[0],r[n-1]])}},KJ=function(t,r){if(!t)return null;for(var n=0,a=t.length;n<a;n++)if(t[n].item===r)return t[n].position;return null},JJ=function(t,r){if(!r||r.length!==2||!_e(r[0])||!_e(r[1]))return t;var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]),o=[t[0],t[1]];return(!_e(t[0])||t[0]<n)&&(o[0]=n),(!_e(t[1])||t[1]>a)&&(o[1]=a),o[0]>a&&(o[0]=a),o[1]<n&&(o[1]=n),o},Q7e=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var o=0,i=0,s=0;s<r;++s){var l=(0,Qw.default)(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1]):(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1])}},e$e=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n<a;++n)for(var o=0,i=0;i<r;++i){var s=(0,Qw.default)(t[i][n][1])?t[i][n][0]:t[i][n][1];s>=0?(t[i][n][0]=o,t[i][n][1]=o+s,o=t[i][n][1]):(t[i][n][0]=0,t[i][n][1]=0)}},t$e={sign:Q7e,expand:vP,none:To,silhouette:yP,wiggle:bP,positive:e$e},r$e=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),o=t$e[n],i=gP().keys(a).value(function(s,l){return+Ga(s,l,0)}).order(Zf).offset(o);return i(t)},XJ=function(t,r,n,a,o,i){if(!t)return null;var s=i?r.reverse():r,l={},u=s.reduce(function(f,m){var h,g=(h=m.type)!==null&&h!==void 0&&h.defaultProps?zr(zr({},m.type.defaultProps),m.props):m.props,y=g.stackId,b=g.hide;if(b)return f;var w=g[n],S=f[w]||{hasStack:!1,stackGroups:{}};if(gr(y)){var x=S.stackGroups[y]||{numericAxisId:n,cateAxisId:a,items:[]};x.items.push(m),S.hasStack=!0,S.stackGroups[y]=x}else S.stackGroups[ru("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[m]};return zr(zr({},f),{},xp({},w,S))},l),d={};return Object.keys(u).reduce(function(f,m){var h=u[m];if(h.hasStack){var g={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(y,b){var w=h.stackGroups[b];return zr(zr({},y),{},xp({},b,{numericAxisId:n,cateAxisId:a,items:w.items,stackedData:r$e(t,w.items,o)}))},g)}return zr(zr({},f),{},xp({},m,h))},d)},YJ=function(t,r){var n=r.realScaleType,a=r.type,o=r.tickCount,i=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(o&&a==="number"&&i&&(i[0]==="auto"||i[1]==="auto")){var u=t.domain();if(!u.length)return null;var d=i3(u,o,s);return t.domain([(0,R0.default)(d),(0,M0.default)(d)]),{niceTicks:d}}if(o&&a==="number"){var f=t.domain(),m=s3(f,o,s);return{niceTicks:m}}return null};var g3=function(t){var r=t.axis,n=t.ticks,a=t.offset,o=t.bandSize,i=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Ga(i,r.dataKey,r.domain[s]);return(0,Ki.default)(l)?null:r.scale(l)-o/2+a},QJ=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return a<=0&&o>=0?0:o<0?o:a}return n[0]},eX=function(t,r){var n,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,o=a.stackId;if(gr(o)){var i=r[o];if(i){var s=i.items.indexOf(t);return s>=0?i.stackedData[s]:null}}return null},n$e=function(t){return t.reduce(function(r,n){return[(0,R0.default)(n.concat([r[0]]).filter(_e)),(0,M0.default)(n.concat([r[1]]).filter(_e))]},[1/0,-1/0])},v3=function(t,r,n){return Object.keys(t).reduce(function(a,o){var i=t[o],s=i.stackedData,l=s.reduce(function(u,d){var f=n$e(d.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},MJ=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,RJ=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,e_=function(t,r,n){if((0,wp.default)(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(_e(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(MJ.test(t[0])){var o=+MJ.exec(t[0])[1];a[0]=r[0]-o}else(0,wp.default)(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(_e(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(RJ.test(t[1])){var i=+RJ.exec(t[1])[1];a[1]=r[1]+i}else(0,wp.default)(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},Sp=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var o=(0,BJ.default)(r,function(f){return f.coordinate}),i=1/0,s=1,l=o.length;s<l;s++){var u=o[s],d=o[s-1];i=Math.min((u.coordinate||0)-(d.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},y3=function(t,r,n){return!t||!t.length||(0,jJ.default)(t,(0,f3.default)(n,"type.defaultProps.domain"))?r:t},t_=function(t,r){var n=t.type.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,a=n.dataKey,o=n.name,i=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,d=n.hide;return zr(zr({},ot(t,!1)),{},{dataKey:a,unit:i,formatter:s,name:o||a,color:$0(t),value:Ga(r,a),type:l,payload:r,chartType:u,hide:d})};function N0(e){"@babel/helpers - typeof";return N0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N0(e)}function tX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tX(Object(r),!0).forEach(function(n){a$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a$e(e,t,r){return t=o$e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$e(e){var t=i$e(e,"string");return N0(t)=="symbol"?t:t+""}function i$e(e,t){if(N0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(N0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z0=Math.PI/180;var c$e=function(t){return t*180/Math.PI},jr=function(t,r,n,a){return{x:t+Math.cos(-z0*a)*n,y:r+Math.sin(-z0*a)*n}};var d$e=function(t,r){var n=t.x,a=t.y,o=r.x,i=r.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(a-i,2))},f$e=function(t,r){var n=t.x,a=t.y,o=r.cx,i=r.cy,s=d$e({x:n,y:a},{x:o,y:i});if(s<=0)return{radius:s};var l=(n-o)/s,u=Math.acos(l);return a>i&&(u=2*Math.PI-u),{radius:s,angle:c$e(u),angleInRadian:u}},p$e=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),o=Math.floor(n/360),i=Math.min(a,o);return{startAngle:r-i*360,endAngle:n-i*360}},m$e=function(t,r){var n=r.startAngle,a=r.endAngle,o=Math.floor(n/360),i=Math.floor(a/360),s=Math.min(o,i);return t+s*360},b3=function(t,r){var n=t.x,a=t.y,o=f$e({x:n,y:a},r),i=o.radius,s=o.angle,l=r.innerRadius,u=r.outerRadius;if(i<l||i>u)return!1;if(i===0)return!0;var d=p$e(r),f=d.startAngle,m=d.endAngle,h=s,g;if(f<=m){for(;h>m;)h-=360;for(;h<f;)h+=360;g=h>=f&&h<=m}else{for(;h>f;)h-=360;for(;h<m;)h+=360;g=h>=m&&h<=f}return g?rX(rX({},r),{},{radius:i,angle:m$e(h,r)}):null};function j0(e){"@babel/helpers - typeof";return j0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j0(e)}var h$e=["offset"];function g$e(e){return x$e(e)||b$e(e)||y$e(e)||v$e()}function v$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 24In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y$e(e,t){if(e){if(typeof e=="string")return x3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x3(e,t)}}function b$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x$e(e){if(Array.isArray(e))return x3(e)}function x3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w$e(e,t){if(e==null)return{};var r=_$e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function _$e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
24t%2?nX(Object(r),!0).forEach(function(n){S$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S$e(e,t,r){return t=k$e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k$e(e){var t=I$e(e,"string");return j0(t)=="symbol"?t:t+""}function I$e(e,t){if(j0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(j0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B0.apply(this,arguments)}var T$e=function(t){var r=t.value,n=t.formatter,a=(0,F0.default)(t.children)?r:t.children;return(0,U0.default)(n)?n(a):a},C$e=function(t,r){var n=Un(r-t),a=Math.min(Math.abs(r-t),360);return n*a},P$e=function(t,r,n){var a=t.position,o=t.viewBox,i=t.offset,s=t.className,l=o,u=l.cx,d=l.cy,f=l.innerRadius,m=l.outerRadius,h=l.startAngle,g=l.endAngle,y=l.clockWise,b=(f+m)/2,w=C$e(h,g),S=w>=0?1:-1,x,C;a==="insideStart"?(x=h+S*i,C=y):a==="insideEnd"?(x=g-S*i,C=!y):a==="end"&&(x=g+S*i,C=y),C=w<=0?C:!C;var I=jr(u,d,b,x),A=jr(u,d,b,x+(C?1:-1)*359),O="M".concat(I.x,",").concat(I.y,` 25 A`).concat(b,",").concat(b,",0,1,").concat(C?0:1,`, 26 `).concat(A.x,",").concat(A.y),F=(0,F0.default)(t.id)?ru("recharts-radial-line-"):t.id;return Br.default.createElement("text",B0({},n,{dominantBaseline:"central",className:rt("recharts-radial-bar-label",s)}),Br.default.createElement("defs",null,Br.default.createElement("path",{id:F,d:O})),Br.default.createElement("textPath",{xlinkHref:"#".concat(F)},r))},A$e=function(t){var r=t.viewBox,n=t.offset,a=t.position,o=r,i=o.cx,s=o.cy,l=o.innerRadius,u=o.outerRadius,d=o.startAngle,f=o.endAngle,m=(d+f)/2;if(a==="outside"){var h=jr(i,s,u+n,m),g=h.x,y=h.y;return{x:g,y,textAnchor:g>=i?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:i,y:s,textAnchor:"middle",verticalAnchor:"end"};var b=(l+u)/2,w=jr(i,s,b,m),S=w.x,x=w.y;return{x:S,y:x,textAnchor:"middle",verticalAnchor:"middle"}},E$e=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,o=t.position,i=r,s=i.x,l=i.y,u=i.width,d=i.height,f=d>=0?1:-1,m=f*a,h=f>0?"end":"start",g=f>0?"start":"end",y=u>=0?1:-1,b=y*a,w=y>0?"end":"start",S=y>0?"start":"end";if(o==="top"){var x={x:s+u/2,y:l-f*a,textAnchor:"middle",verticalAnchor:h};return vn(vn({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(o==="bottom"){var C={x:s+u/2,y:l+d+m,textAnchor:"middle",verticalAnchor:g};return vn(vn({},C),n?{height:Math.max(n.y+n.height-(l+d),0),width:u}:{})}if(o==="left"){var I={x:s-b,y:l+d/2,textAnchor:w,verticalAnchor:"middle"};return vn(vn({},I),n?{width:Math.max(I.x-n.x,0),height:d}:{})}if(o==="right"){var A={x:s+u+b,y:l+d/2,textAnchor:S,verticalAnchor:"middle"};return vn(vn({},A),n?{width:Math.max(n.x+n.width-A.x,0),height:d}:{})}var O=n?{width:u,height:d}:{};return o==="insideLeft"?vn({x:s+b,y:l+d/2,textAnchor:S,verticalAnchor:"middle"},O):o==="insideRight"?vn({x:s+u-b,y:l+d/2,textAnchor:w,verticalAnchor:"middle"},O):o==="insideTop"?vn({x:s+u/2,y:l+m,textAnchor:"middle",verticalAnchor:g},O):o==="insideBottom"?vn({x:s+u/2,y:l+d-m,textAnchor:"middle",verticalAnchor:h},O):o==="insideTopLeft"?vn({x:s+b,y:l+m,textAnchor:S,verticalAnchor:g},O):o==="insideTopRight"?vn({x:s+u-b,y:l+m,textAnchor:w,verticalAnchor:g},O):o==="insideBottomLeft"?vn({x:s+b,y:l+d-m,textAnchor:S,verticalAnchor:h},O):o==="insideBottomRight"?vn({x:s+u-b,y:l+d-m,textAnchor:w,verticalAnchor:h},O):(0,w3.default)(o)&&(_e(o.x)||zs(o.x))&&(_e(o.y)||zs(o.y))?vn({x:s+ii(o.x,u),y:l+ii(o.y,d),textAnchor:"end",verticalAnchor:"end"},O):vn({x:s+u/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},O)},L$e=function(t){return"cx"in t&&_e(t.cx)};function Gr(e){var t=e.offset,r=t===void 0?5:t,n=w$e(e,h$e),a=vn({offset:r},n),o=a.viewBox,i=a.position,s=a.value,l=a.children,u=a.content,d=a.className,f=d===void 0?"":d,m=a.textBreakAll;if(!o||(0,F0.default)(s)&&(0,F0.default)(l)&&!(0,Br.isValidElement)(u)&&!(0,U0.default)(u))return null;if((0,Br.isValidElement)(u))return(0,Br.cloneElement)(u,a);var h;if((0,U0.default)(u)){if(h=(0,Br.createElement)(u,a),(0,Br.isValidElement)(h))return h}else h=T$e(a);
26var g=L$e(o),y=ot(a,!0);if(g&&(i==="insideStart"||i==="insideEnd"||i==="end"))return P$e(a,h,y);var b=g?A$e(a):E$e(a);return Br.default.createElement(Rc,B0({className:rt("recharts-label",f)},y,b,{breakAll:m}),h)}Gr.displayName="Label";var aX=function(t){var r=t.cx,n=t.cy,a=t.angle,o=t.startAngle,i=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,d=t.outerRadius,f=t.x,m=t.y,h=t.top,g=t.left,y=t.width,b=t.height,w=t.clockWise,S=t.labelViewBox;if(S)return S;if(_e(y)&&_e(b)){if(_e(f)&&_e(m))return{x:f,y:m,width:y,height:b};if(_e(h)&&_e(g))return{x:h,y:g,width:y,height:b}}return _e(f)&&_e(m)?{x:f,y:m,width:0,height:0}:_e(r)&&_e(n)?{cx:r,cy:n,startAngle:o||a||0,endAngle:i||a||0,innerRadius:u||0,outerRadius:d||l||s||0,clockWise:w}:t.viewBox?t.viewBox:{}},$$e=function(t,r){return t?t===!0?Br.default.createElement(Gr,{key:"label-implicit",viewBox:r}):gr(t)?Br.default.createElement(Gr,{key:"label-implicit",viewBox:r,value:t}):(0,Br.isValidElement)(t)?t.type===Gr?(0,Br.cloneElement)(t,{key:"label-implicit",viewBox:r}):Br.default.createElement(Gr,{key:"label-implicit",content:t,viewBox:r}):(0,U0.default)(t)?Br.default.createElement(Gr,{key:"label-implicit",content:t,viewBox:r}):(0,w3.default)(t)?Br.default.createElement(Gr,B0({viewBox:r},t,{key:"label-implicit"})):null:null},O$e=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,o=aX(t),i=On(a,Gr).map(function(l,u){return(0,Br.cloneElement)(l,{viewBox:r||o,key:"label-".concat(u)})});if(!n)return i;var s=$$e(t.label,r||o);return[s].concat(g$e(i))};Gr.parseViewBox=aX;Gr.renderCallByParent=O$e;var Hs=H(ve()),r_=H(oi()),cX=H(wo()),dX=H(an()),fX=H(iX());function q0(e){"@babel/helpers - typeof";return q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},q0(e)}var R$e=["valueAccessor"],D$e=["data","dataKey","clockWise","id","textBreakAll"];function N$e(e){return F$e(e)||B$e(e)||j$e(e)||z$e()}function z$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 27In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j$e(e,t){if(e){if(typeof e=="string")return _3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _3(e,t)}}function B$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function F$e(e){if(Array.isArray(e))return _3(e)}function _3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n_.apply(this,arguments)}function sX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function lX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sX(Object(r),!0).forEach(function(n){U$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U$e(e,t,r){return t=q$e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q$e(e){var t=V$e(e,"string");return q0(t)=="symbol"?t:t+""}function V$e(e,t){if(q0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(q0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uX(e,t){if(e==null)return{};var r=Z$e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z$e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var H$e=function(t){return Array.isArray(t.value)?(0,fX.default)(t.value):t.value};function mu(e){var t=e.valueAccessor,r=t===void 0?H$e:t,n=uX(e,R$e),a=n.data,o=n.dataKey,i=n.clockWise,s=n.id,l=n.textBreakAll,u=uX(n,D$e);return!a||!a.length?null:Hs.default.createElement(nr,{className:"recharts-label-list"},a.map(function(d,f){var m=(0,r_.default)(o)?r(d,f):Ga(d&&d.payload,o),h=(0,r_.default)(s)?{}:{id:"".concat(s,"-").concat(f)};return Hs.default.createElement(Gr,n_({},ot(d,!0),u,h,{parentViewBox:d.parentViewBox,value:m,textBreakAll:l,viewBox:Gr.parseViewBox((0,r_.default)(i)?d:lX(lX({},d),{},{clockWise:i})),key:"label-".concat(f),index:f}))}))}mu.displayName="LabelList";function G$e(e,t){return e?e===!0?Hs.default.createElement(mu,{key:"labelList-implicit",data:t}):Hs.default.isValidElement(e)||(0,dX.default)(e)?Hs.default.createElement(mu,{key:"labelList-implicit",data:t,content:e}):(0,cX.default)(e)?Hs.default.createElement(mu,n_({data:t},e,{key:"labelList-implicit"})):null:null}function W$e(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=On(n,mu).map(function(i,s){return(0,Hs.cloneElement)(i,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var o=G$e(e.label,t);return[o].concat(N$e(a))}mu.renderCallByParent=W$e;var hX=H(ve());function V0(e){"@babel/helpers - typeof";return V0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V0(e)}function S3(){return S3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,448 bytes, lines 27-44
27for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S3.apply(this,arguments)}function pX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pX(Object(r),!0).forEach(function(n){K$e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K$e(e,t,r){return t=J$e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J$e(e){var t=X$e(e,"string");return V0(t)=="symbol"?t:t+""}function X$e(e,t){if(V0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(V0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y$e=function(t,r){var n=Un(r-t),a=Math.min(Math.abs(r-t),359.999);return n*a},a_=function(t){var r=t.cx,n=t.cy,a=t.radius,o=t.angle,i=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,d=l*(s?1:-1)+a,f=Math.asin(l/d)/z0,m=u?o:o+i*f,h=jr(r,n,d,m),g=jr(r,n,a,m),y=u?o-i*f:o,b=jr(r,n,d*Math.cos(f*z0),y);return{center:h,circleTangency:g,lineTangency:b,theta:f}},gX=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,o=t.outerRadius,i=t.startAngle,s=t.endAngle,l=Y$e(i,s),u=i+l,d=jr(r,n,o,i),f=jr(r,n,o,u),m="M ".concat(d.x,",").concat(d.y,` 28 A `).concat(o,",").concat(o,`,0, 29 `).concat(+(Math.abs(l)>180),",").concat(+(i>u),`, 30 `).concat(f.x,",").concat(f.y,` 31 `);if(a>0){var h=jr(r,n,a,i),g=jr(r,n,a,u);m+="L ".concat(g.x,",").concat(g.y,` 32 A `).concat(a,",").concat(a,`,0, 33 `).concat(+(Math.abs(l)>180),",").concat(+(i<=u),`, 34 `).concat(h.x,",").concat(h.y," Z")}else m+="L ".concat(r,",").concat(n," Z");return m},Q$e=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,d=t.endAngle,f=Un(d-u),m=a_({cx:r,cy:n,radius:o,angle:u,sign:f,cornerRadius:i,cornerIsExternal:l}),h=m.circleTangency,g=m.lineTangency,y=m.theta,b=a_({cx:r,cy:n,radius:o,angle:d,sign:-f,cornerRadius:i,cornerIsExternal:l}),w=b.circleTangency,S=b.lineTangency,x=b.theta,C=l?Math.abs(u-d):Math.abs(u-d)-y-x;if(C<0)return s?"M ".concat(g.x,",").concat(g.y,` 35 a`).concat(i,",").concat(i,",0,0,1,").concat(i*2,`,0 36 a`).concat(i,",").concat(i,",0,0,1,").concat(-i*2,`,0 37 `):gX({cx:r,cy:n,innerRadius:a,outerRadius:o,startAngle:u,endAngle:d});var I="M ".concat(g.x,",").concat(g.y,` 38 A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` 39 A`).concat(o,",").concat(o,",0,").concat(+(C>180),",").concat(+(f<0),",").concat(w.x,",").concat(w.y,` 40 A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,` 41 `);if(a>0){var A=a_({cx:r,cy:n,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),O=A.circleTangency,F=A.lineTangency,q=A.theta,G=a_({cx:r,cy:n,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),J=G.circleTangency,Y=G.lineTangency,le=G.theta,re=l?Math.abs(u-d):Math.abs(u-d)-q-le;if(re<0&&i===0)return"".concat(I,"L").concat(r,",").concat(n,"Z");I+="L".concat(Y.x,",").concat(Y.y,` 42 A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(J.x,",").concat(J.y,` 43 A`).concat(a,",").concat(a,",0,").concat(+(re>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,` 44 A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(F.x,",").concat(F.y,"Z")}else I+="L".concat(r,",").concat(n,"Z");return I},eOe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},o_=function(t){var r=mX(mX({},eOe),t),n=r.cx,a=r.cy,o=r.innerRadius,i=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,d=r.startAngle,f=r.endAngle,m=r.className;if(i<o||d===f)return null;var h=rt("recharts-sector",m),g=i-o,y=ii(s,g,0,!0),b;return y>0&&Math.abs(d-f)<360?b=Q$e({cx:n,cy:a,innerRadius:o,outerRadius:i,cornerRadius:Math.min(y,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:d,endAngle:f}
44):b=gX({cx:n,cy:a,innerRadius:o,outerRadius:i,startAngle:d,endAngle:f}),hX.default.createElement("path",S3({},ot(r,!0),{className:h,d:b,role:"img"}))};var xX=H(ve());var wX=H(D1()),_X=H(an());function G0(e){"@babel/helpers - typeof";return G0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G0(e)}function k3(){return k3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},k3.apply(this,arguments)}function vX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vX(Object(r),!0).forEach(function(n){tOe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tOe(e,t,r){return t=rOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rOe(e){var t=nOe(e,"string");return G0(t)=="symbol"?t:t+""}function nOe(e,t){if(G0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(G0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bX={curveBasisClosed:iP,curveBasisOpen:sP,curveBasis:oP,curveBumpX:KC,curveBumpY:JC,curveLinearClosed:lP,curveLinear:nu,curveMonotoneX:cP,curveMonotoneY:dP,curveNatural:fP,curveStep:pP,curveStepAfter:hP,curveStepBefore:mP},i_=function(t){return t.x===+t.x&&t.y===+t.y},Z0=function(t){return t.x},H0=function(t){return t.y},aOe=function(t,r){if((0,_X.default)(t))return t;var n="curve".concat((0,wX.default)(t));return(n==="curveMonotone"||n==="curveBump")&&r?bX["".concat(n).concat(r==="vertical"?"Y":"X")]:bX[n]||nu},oOe=function(t){var r=t.type,n=r===void 0?"linear":r,a=t.points,o=a===void 0?[]:a,i=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,d=aOe(n,s),f=u?o.filter(function(y){return i_(y)}):o,m;if(Array.isArray(i)){var h=u?i.filter(function(y){return i_(y)}):i,g=f.map(function(y,b){return yX(yX({},y),{},{base:h[b]})});return s==="vertical"?m=Ff().y(H0).x1(Z0).x0(function(y){return y.base.x}):m=Ff().x(Z0).y1(H0).y0(function(y){return y.base.y}),m.defined(i_).curve(d),m(g)}return s==="vertical"&&_e(i)?m=Ff().y(H0).x1(Z0).x0(i):_e(i)?m=Ff().x(Z0).y1(H0).y0(i):m=Hg().x(Z0).y(H0),m.defined(i_).curve(d),m(f)},I3=function(t){var r=t.className,n=t.points,a=t.path,o=t.pathRef;if((!n||!n.length)&&!a)return null;var i=n&&n.length?oOe(t):a;return xX.createElement("path",k3({},ot(t,!1),Cc(t),{className:rt("recharts-curve",r),d:i,ref:o}))};var di=H(ve());var Ji=H(ve()),Vt=H(EX());var lOe=Object.getOwnPropertyNames,uOe=Object.getOwnPropertySymbols,cOe=Object.prototype.hasOwnProperty;function LX(e,t){return function(n,a,o){return e(n,a,o)&&t(n,a,o)}}function s_(e){return function(r,n,a){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,a);var o=a.cache,i=o.get(r),s=o.get(n);if(i&&s)return i===n&&s===r;o.set(r,n),o.set(n,r);var l=e(r,n,a);return o.delete(r),o.delete(n),l}}function $X(e){return lOe(e).concat(uOe(e))}var dOe=Object.hasOwn||(function(e,t){return cOe.call(e,t)});function Yc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var fOe="__v",pOe="__o",mOe="_owner",OX=Object.getOwnPropertyDescriptor,MX=Object.keys;function hOe(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function gOe(e,t){return Yc(e.getTime(),t.getTime())}function vOe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function yOe(e,t){return e===t}function RX(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),o=e.entries(),i,s,l=0;(i=o.next())&&!i.done;){for(var u=t.entries(),d=!1,f=0;(s=u.next())&&!s.done;){if(a[f]){f++;continue}var m=i.value,h=s.value;if(r.equals(m[0],h[0],l,f,e,t,r)&&r.equals(m[1],h[1],m[0],h[0],e,t,r)){d=a[f]=!0;break}f++}if(!d)return!1;l++}return!0}var bOe=Yc;function xOe(e,t,r){var n=MX(e),a=n.length;if(MX(t).length!==a)return!1;for(;a-- >0;)if(!jX(e,t,r,n[a]))return!1;return!0}function W0(e,t,r){var n=$X(e),a=n.length;if($X(t).length!==a)return!1;for(var o,i,s;a-- >0;)if(o=n[a],!jX(e,t,r,o)||(i=OX(e,o),s=OX(t,o),(i||s)&&(!i||!s||i.configurable!==s.configurable||i.enumerable!==s.enumerable||i.writable!==s.writable)))return!1;return!0}function wOe(e,t){return Yc(e.valueOf(),t.valueOf())}function _Oe(e,t){return e.source===t.source&&e.flags===t.flags}function DX(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var a=new Array(n),o=e.values(),i,s;(i=o.next())&&!i.done;){for(var l=t.values(),u=!1,d=0;(s=l.next())&&!s.done;){if(!a[d]&&r.equals(i.value,s.value,i.value,s.value,e,t,r)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function SOe(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function kOe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function jX(e,t,r,n){return(n===mOe||n===pOe||n===fOe)&&(e.$$typeof||t.$$typeof)?!0:dOe(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var IOe="[object Arguments]",TOe="[object Boolean]",COe="[object Date]",POe="[object Error]",AOe="[object Map]",EOe="[object Number]",LOe="[object Object]",$Oe="[object RegExp]",OOe="[object Set]",MOe="[object String]",ROe="[object URL]",DOe=Array.isArray,NX=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,zX=Object.assign,NOe=Object.prototype.toString.call.bind(Object.prototype.toString);function zOe(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,a=e.areFunctionsEqual,o=e.areMapsEqual,i=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,d=e.areSetsEqual,f=e.areTypedArraysEqual,m=e.areUrlsEqual;return function(g,y,b){if(g===y)return!0;
44if(g==null||y==null)return!1;var w=typeof g;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?i(g,y,b):w==="function"?a(g,y,b):!1;var S=g.constructor;if(S!==y.constructor)return!1;if(S===Object)return s(g,y,b);if(DOe(g))return t(g,y,b);if(NX!=null&&NX(g))return f(g,y,b);if(S===Date)return r(g,y,b);if(S===RegExp)return u(g,y,b);if(S===Map)return o(g,y,b);if(S===Set)return d(g,y,b);var x=NOe(g);return x===COe?r(g,y,b):x===$Oe?u(g,y,b):x===AOe?o(g,y,b):x===OOe?d(g,y,b):x===LOe?typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,b):x===ROe?m(g,y,b):x===POe?n(g,y,b):x===IOe?s(g,y,b):x===TOe||x===EOe||x===MOe?l(g,y,b):!1}}function jOe(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?W0:hOe,areDatesEqual:gOe,areErrorsEqual:vOe,areFunctionsEqual:yOe,areMapsEqual:n?LX(RX,W0):RX,areNumbersEqual:bOe,areObjectsEqual:n?W0:xOe,arePrimitiveWrappersEqual:wOe,areRegExpsEqual:_Oe,areSetsEqual:n?LX(DX,W0):DX,areTypedArraysEqual:n?W0:SOe,areUrlsEqual:kOe};if(r&&(a=zX({},a,r(a))),t){var o=s_(a.areArraysEqual),i=s_(a.areMapsEqual),s=s_(a.areObjectsEqual),l=s_(a.areSetsEqual);a=zX({},a,{areArraysEqual:o,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:l})}return a}function BOe(e){return function(t,r,n,a,o,i,s){return e(t,r,s)}}function FOe(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,o=e.strict;if(n)return function(l,u){var d=n(),f=d.cache,m=f===void 0?t?new WeakMap:void 0:f,h=d.meta;return r(l,u,{cache:m,equals:a,meta:h,strict:o})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:a,meta:void 0,strict:o})};var i={cache:void 0,equals:a,meta:void 0,strict:o};return function(l,u){return r(l,u,i)}}var BX=hu(),r1t=hu({strict:!0}),n1t=hu({circular:!0}),a1t=hu({circular:!0,strict:!0}),o1t=hu({createInternalComparator:function(){return Yc}}),i1t=hu({strict:!0,createInternalComparator:function(){return Yc}}),s1t=hu({circular:!0,createInternalComparator:function(){return Yc}}),l1t=hu({circular:!0,createInternalComparator:function(){return Yc},strict:!0});function hu(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,o=e.strict,i=o===void 0?!1:o,s=jOe(e),l=zOe(s),u=n?n(l):BOe(l);return FOe({circular:r,comparator:l,createState:a,equals:u,strict:i})}function UOe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function l_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(o){r<0&&(r=o),o-r>t?(e(o),r=-1):UOe(a)};requestAnimationFrame(n)}function T3(e){"@babel/helpers - typeof";return T3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T3(e)}function qOe(e){return GOe(e)||HOe(e)||ZOe(e)||VOe()}function VOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZOe(e,t){if(e){if(typeof e=="string")return FX(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return FX(e,t)}}function FX(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HOe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GOe(e){if(Array.isArray(e))return e}function C3(){var e={},t=function(){return null},r=!1,n=function a(o){if(!r){if(Array.isArray(o)){if(!o.length)return;var i=o,s=qOe(i),l=s[0],u=s.slice(1);if(typeof l=="number"){l_(a.bind(null,u),l);return}a(l),l_(a.bind(null,u));return}T3(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){r=!0},start:function(o){r=!1,n(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function K0(e){"@babel/helpers - typeof";return K0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},K0(e)}function UX(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
45t%2?UX(Object(r),!0).forEach(function(n){VX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UX(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VX(e,t,r){return t=WOe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WOe(e){var t=KOe(e,"string");return K0(t)==="symbol"?t:String(t)}function KOe(e,t){if(K0(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(K0(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZX=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,a){return n.filter(function(o){return a.includes(o)})})},HX=function(t){return t},JOe=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})};var kp=function(t,r){return Object.keys(r).reduce(function(n,a){return qX(qX({},n),{},VX({},a,t(a,r[a])))},{})},P3=function(t,r,n){return t.map(function(a){return"".concat(JOe(a)," ").concat(r,"ms ").concat(n)}).join(",")},XOe=!1,J0=function(t,r,n,a,o,i,s,l){if(XOe&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,a,o,i,s,l],d=0;console.warn(r.replace(/%s/g,function(){return u[d++]}))}};function YOe(e,t){return t8e(e)||e8e(e,t)||KX(e,t)||QOe()}function QOe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e8e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function t8e(e){if(Array.isArray(e))return e}function r8e(e){return o8e(e)||a8e(e)||KX(e)||n8e()}function n8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KX(e,t){if(e){if(typeof e=="string")return A3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A3(e,t)}}function a8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o8e(e){if(Array.isArray(e))return A3(e)}function A3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u_=1e-4,JX=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},XX=function(t,r){return t.map(function(n,a){return n*Math.pow(r,a)}).reduce(function(n,a){return n+a})},GX=function(t,r){return function(n){var a=JX(t,r);return XX(a,n)}},i8e=function(t,r){return function(n){var a=JX(t,r),o=[].concat(r8e(a.map(function(i,s){return i*s}).slice(1)),[0]);return XX(o,n)}},WX=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0],o=r[1],i=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":a=0,o=0,i=1,s=1;break;case"ease":a=.25,o=.1,i=.25,s=1;break;case"ease-in":a=.42,o=0,i=1,s=1;break;case"ease-out":a=.42,o=0,i=.58,s=1;break;case"ease-in-out":a=0,o=0,i=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),d=YOe(u,4);a=d[0],o=d[1],i=d[2],s=d[3]}else J0(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}J0([a,i,o,s].every(function(b){return typeof b=="number"&&b>=0&&b<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=GX(a,i),m=GX(o,s),h=i8e(a,i),g=function(w){return w>1?1:w<0?0:w},y=function(w){for(var S=w>1?1:w,x=S,C=0;C<8;++C){var I=f(x)-S,A=h(x);if(Math.abs(I-S)<u_||A<u_)return m(x);x=g(x-I/A)}return m(x)};return y.isStepper=!1,y},s8e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,o=a===void 0?8:a,i=t.dt,s=i===void 0?17:i,l=function(d,f,m){var h=-(d-f)*n,g=m*o,y=m+(h-g)*s/1e3,b=m*s/1e3+d;return Math.abs(b-f)<u_&&Math.abs(y)<u_?[f,0]:[b,y]};return l.isStepper=!0,l.dt=s,l},YX=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r[0];
47if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return WX(a);case"spring":return s8e();default:if(a.split("(")[0]==="cubic-bezier")return WX(a);J0(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof a=="function"?a:(J0(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function X0(e){"@babel/helpers - typeof";return X0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},X0(e)}function QX(e){return c8e(e)||u8e(e)||tY(e)||l8e()}function l8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c8e(e){if(Array.isArray(e))return L3(e)}function eY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eY(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return t=d8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d8e(e){var t=f8e(e,"string");return X0(t)==="symbol"?t:String(t)}function f8e(e,t){if(X0(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(X0(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function p8e(e,t){return g8e(e)||h8e(e,t)||tY(e,t)||m8e()}function m8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 49In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tY(e,t){if(e){if(typeof e=="string")return L3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L3(e,t)}}function L3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}
vendor: 6,495 bytes, lines 49-50
49function h8e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function g8e(e){if(Array.isArray(e))return e}var c_=function(t,r,n){return t+(r-t)*n},$3=function(t){var r=t.from,n=t.to;return r!==n},v8e=function e(t,r,n){var a=kp(function(o,i){if($3(i)){var s=t(i.from,i.to,i.velocity),l=p8e(s,2),u=l[0],d=l[1];return Mn(Mn({},i),{},{from:u,velocity:d})}return i},r);return n<1?kp(function(o,i){return $3(i)?Mn(Mn({},i),{},{velocity:c_(i.velocity,a[o].velocity,n),from:c_(i.from,a[o].from,n)}):i},r):e(t,a,n-1)},rY=(function(e,t,r,n,a){var o=ZX(e,t),i=o.reduce(function(b,w){return Mn(Mn({},b),{},E3({},w,[e[w],t[w]]))},{}),s=o.reduce(function(b,w){return Mn(Mn({},b),{},E3({},w,{from:e[w],velocity:0,to:t[w]}))},{}),l=-1,u,d,f=function(){return null},m=function(){return kp(function(w,S){return S.from},s)},h=function(){return!Object.values(s).filter($3).length},g=function(w){u||(u=w);var S=w-u,x=S/r.dt;s=v8e(r,s,x),a(Mn(Mn(Mn({},e),t),m(s))),u=w,h()||(l=requestAnimationFrame(f))},y=function(w){d||(d=w);var S=(w-d)/n,x=kp(function(I,A){return c_.apply(void 0,QX(A).concat([r(S)]))},i);if(a(Mn(Mn(Mn({},e),t),x)),S<1)l=requestAnimationFrame(f);else{var C=kp(function(I,A){return c_.apply(void 0,QX(A).concat([r(1)]))},i);a(Mn(Mn(Mn({},e),t),C))}};return f=r.isStepper?g:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function Ip(e){"@babel/helpers - typeof";return Ip=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ip(e)}var y8e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function b8e(e,t){if(e==null)return{};var r=x8e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x8e(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function O3(e){return k8e(e)||S8e(e)||_8e(e)||w8e()}function w8e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _8e(e,t){if(e){if(typeof e=="string")return M3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M3(e,t)}}function S8e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function k8e(e){if(Array.isArray(e))return M3(e)}function M3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ci(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nY(Object(r),!0).forEach(function(n){Y0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y0(e,t,r){return t=oY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I8e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oY(n.key),n)}}function T8e(e,t,r){return t&&aY(e.prototype,t),r&&aY(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oY(e){var t=C8e(e,"string");return Ip(t)==="symbol"?t:String(t)}function C8e(e,t){if(Ip(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ip(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P8e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R3(e,t)}function R3(e,t){return R3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},R3(e,t)}function A8e(e){var t=E8e();return function(){var n=d_(e),a;if(t){var o=d_(this).constructor;a=Reflect.construct(n,arguments,o)}else a=n.apply(this,arguments);return D3(this,a)}}function D3(e,t){if(t&&(Ip(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return N3(e)}function N3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E8e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function d_(e){return d_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},d_(e)}var f_=(function(e){P8e(r,e);var t=A8e(r);function r(n,a){var o;I8e(this,r),o=t.call(this,n,a);var i=o.props,s=i.isActive,l=i.attributeName,u=i.from,d=i.to,f=i.steps,m=i.children,h=i.duration;if(o.handleStyleChange=o.handleStyleChange.bind(N3(o)),o.changeStyle=o.changeStyle.bind(N3(o)),!s||h<=0)return o.state={style:{}},typeof m=="function"&&(o.state={style:d}),D3(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof m=="function")return o.state={style:u},D3(o);o.state={style:l?Y0({},l,u):u}}else o.state={style:{}};return o}
50return T8e(r,[{key:"componentDidMount",value:function(){var a=this.props,o=a.isActive,i=a.canBegin;this.mounted=!0,!(!o||!i)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var o=this.props,i=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,d=o.to,f=o.from,m=this.state.style;if(s){if(!i){var h={style:l?Y0({},l,d):d};this.state&&m&&(l&&m[l]!==d||!l&&m!==d)&&this.setState(h);return}if(!(BX(a.to,d)&&a.canBegin&&a.isActive)){var g=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=g||u?f:a.to;if(this.state&&m){var b={style:l?Y0({},l,y):y};(l&&m[l]!==y||!l&&m!==y)&&this.setState(b)}this.runAnimation(ci(ci({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var o=this,i=a.from,s=a.to,l=a.duration,u=a.easing,d=a.begin,f=a.onAnimationEnd,m=a.onAnimationStart,h=rY(i,s,YX(u),l,this.changeStyle),g=function(){o.stopJSAnimation=h()};this.manager.start([m,d,g,l,f])}},{key:"runStepAnimation",value:function(a){var o=this,i=a.steps,s=a.begin,l=a.onAnimationStart,u=i[0],d=u.style,f=u.duration,m=f===void 0?0:f,h=function(y,b,w){if(w===0)return y;var S=b.duration,x=b.easing,C=x===void 0?"ease":x,I=b.style,A=b.properties,O=b.onAnimationEnd,F=w>0?i[w-1]:b,q=A||Object.keys(I);if(typeof C=="function"||C==="spring")return[].concat(O3(y),[o.runJSAnimation.bind(o,{from:F.style,to:I,duration:S,easing:C}),S]);var G=P3(q,S,C),J=ci(ci(ci({},F.style),I),{},{transition:G});return[].concat(O3(y),[J,S,O]).filter(HX)};return this.manager.start([l].concat(O3(i.reduce(h,[d,Math.max(m,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=C3());var o=a.begin,i=a.duration,s=a.attributeName,l=a.to,u=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,m=a.steps,h=a.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(a);return}if(m.length>1){this.runStepAnimation(a);return}var y=s?Y0({},s,l):l,b=P3(Object.keys(y),i,u);g.start([d,o,ci(ci({},y),{},{transition:b}),i,f])}},{key:"render",value:function(){var a=this.props,o=a.children,i=a.begin,s=a.duration,l=a.attributeName,u=a.easing,d=a.isActive,f=a.steps,m=a.from,h=a.to,g=a.canBegin,y=a.onAnimationEnd,b=a.shouldReAnimate,w=a.onAnimationReStart,S=b8e(a,y8e),x=Ji.Children.count(o),C=this.state.style;if(typeof o=="function")return o(C);if(!d||x===0||s<=0)return o;var I=function(O){var F=O.props,q=F.style,G=q===void 0?{}:q,J=F.className,Y=(0,Ji.cloneElement)(O,ci(ci({},S),{},{style:ci(ci({},G),C),className:J}));return Y};return x===1?I(Ji.Children.only(o)):Ji.default.createElement("div",null,Ji.Children.map(o,function(A){return I(A)}))}}]),r})(Ji.PureComponent);f_.displayName="Animate";f_.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};f_.propTypes={from:Vt.default.oneOfType([Vt.default.object,Vt.default.string]),to:Vt.default.oneOfType([Vt.default.object,Vt.default.string]),attributeName:Vt.default.string,duration:Vt.default.number,begin:Vt.default.number,easing:Vt.default.oneOfType([Vt.default.string,Vt.default.func]),steps:Vt.default.arrayOf(Vt.default.shape({duration:Vt.default.number.isRequired,style:Vt.default.object.isRequired,easing:Vt.default.oneOfType([Vt.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Vt.default.func]),properties:Vt.default.arrayOf("string"),onAnimationEnd:Vt.default.func})),children:Vt.default.oneOfType([Vt.default.node,Vt.default.func]),isActive:Vt.default.bool,canBegin:Vt.default.bool,onAnimationEnd:Vt.default.func,shouldReAnimate:Vt.default.bool,onAnimationStart:Vt.default.func,onAnimationReStart:Vt.default.func};var iY=f_;var gu=iY;function Q0(e){"@babel/helpers - typeof";return Q0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Q0(e)}function p_(){return p_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 5,303 bytes, lines 50-61
50for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},p_.apply(this,arguments)}function L8e(e,t){return R8e(e)||M8e(e,t)||O8e(e,t)||$8e()}function $8e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 51In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O8e(e,t){if(e){if(typeof e=="string")return sY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sY(e,t)}}function sY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M8e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function R8e(e){if(Array.isArray(e))return e}function lY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function uY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lY(Object(r),!0).forEach(function(n){D8e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D8e(e,t,r){return t=N8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N8e(e){var t=z8e(e,"string");return Q0(t)=="symbol"?t:t+""}function z8e(e,t){if(Q0(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Q0(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cY=function(t,r,n,a,o){var i=Math.min(Math.abs(n)/2,Math.abs(a)/2),s=a>=0?1:-1,l=n>=0?1:-1,u=a>=0&&n>=0||a<0&&n<0?1:0,d;if(i>0&&o instanceof Array){for(var f=[0,0,0,0],m=0,h=4;m<h;m++)f[m]=o[m]>i?i:o[m];d="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),d+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 52 `).concat(t+n,",").concat(r+s*f[1])),d+="L ".concat(t+n,",").concat(r+a-s*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 53 `).concat(t+n-l*f[2],",").concat(r+a)),d+="L ".concat(t+l*f[3],",").concat(r+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 54 `).concat(t,",").concat(r+a-s*f[3])),d+="Z"}else if(i>0&&o===+o&&o>0){var g=Math.min(i,o);d="M ".concat(t,",").concat(r+s*g,` 55 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,` 56 L `).concat(t+n-l*g,",").concat(r,` 57 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,` 58 L `).concat(t+n,",").concat(r+a-s*g,` 59 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+a,` 60 L `).concat(t+l*g,",").concat(r+a,` 61 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+a-s*g," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},dY=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,o=r.x,i=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(o,o+s),d=Math.max(o,o+s),f=Math.min(i,i+l),m=Math.max(i,i+l);return n>=u&&n<=d&&a>=f&&a<=m}return!1},j8e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Tp=function(t){var r=uY(uY({},j8e),t),n=(0,di.useRef)(),a=(0,di.useState)(-1),o=L8e(a,2),i=o[0],s=o[1];(0,di.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&s(C)}catch{}},[]);var l=r.x,u=r.y,d=r.width,f=r.height,m=r.radius,h=r.className,g=r.animationEasing,y=r.animationDuration,b=r.animationBegin,w=r.isAnimationActive,S=r.isUpdateAnimationActive;if(l!==+l||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var x=rt("recharts-rectangle",h);return S?di.default.createElement(gu,{canBegin:i>0,from:{width:d,height:f,x:l,y:u},to:{width:d,height:f,x:l,y:u},duration:y,animationEasing:g,isActive:S},function(C){var I=C.width,A=C.height,O=C.x,F=C.y;return di.default.createElement(gu,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,isActive:w,easing:g},di.default.createElement("path",p_({},ot(r,!0),{className:x,d:cY(O,F,I,A,m),ref:n})))}):di.default.createElement("path",p_({},ot(r,!0),{className:x,d:cY(l,u,d,f,m)}))};var fY=H(ve());function z3(){return z3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
61for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z3.apply(this,arguments)}var m_=function(t){var r=t.cx,n=t.cy,a=t.r,o=t.className,i=rt("recharts-dot",o);return r===+r&&n===+n&&a===+a?fY.createElement("circle",z3({},ot(t,!1),Cc(t),{className:i,cx:r,cy:n,r:a})):null};var mY=H(ve());function ev(e){"@babel/helpers - typeof";return ev=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ev(e)}var B8e=["x","y","top","left","width","height","className"];function j3(){return j3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j3.apply(this,arguments)}function pY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function F8e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pY(Object(r),!0).forEach(function(n){U8e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U8e(e,t,r){return t=q8e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q8e(e){var t=V8e(e,"string");return ev(t)=="symbol"?t:t+""}function V8e(e,t){if(ev(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ev(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z8e(e,t){if(e==null)return{};var r=H8e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H8e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var G8e=function(t,r,n,a,o,i){return"M".concat(t,",").concat(o,"v").concat(a,"M").concat(i,",").concat(r,"h").concat(n)},hY=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,o=a===void 0?0:a,i=t.top,s=i===void 0?0:i,l=t.left,u=l===void 0?0:l,d=t.width,f=d===void 0?0:d,m=t.height,h=m===void 0?0:m,g=t.className,y=Z8e(t,B8e),b=F8e({x:n,y:o,top:s,left:u,width:f,height:h},y);return!_e(n)||!_e(o)||!_e(f)||!_e(h)||!_e(s)||!_e(u)?null:mY.default.createElement("path",j3({},ot(b,!0),{className:rt("recharts-cross",g),d:G8e(n,o,f,h,s,u)}))};var Ka=H(ve()),EY=H(an()),LY=H(xY()),$Y=H(_Y()),OY=H(Gw());var Eo=H(ve());function tv(e){"@babel/helpers - typeof";return tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tv(e)}function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h_.apply(this,arguments)}function uMe(e,t){return pMe(e)||fMe(e,t)||dMe(e,t)||cMe()}function cMe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dMe(e,t){if(e){if(typeof e=="string")return SY(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SY(e,t)}}function SY(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fMe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}
62finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function pMe(e){if(Array.isArray(e))return e}function kY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function IY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kY(Object(r),!0).forEach(function(n){mMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mMe(e,t,r){return t=hMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hMe(e){var t=gMe(e,"string");return tv(t)=="symbol"?t:t+""}function gMe(e,t){if(tv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TY=function(t,r,n,a,o){var i=n-a,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-i/2,",").concat(r+o),s+="L ".concat(t+n-i/2-a,",").concat(r+o),s+="L ".concat(t,",").concat(r," Z"),s},vMe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CY=function(t){var r=IY(IY({},vMe),t),n=(0,Eo.useRef)(),a=(0,Eo.useState)(-1),o=uMe(a,2),i=o[0],s=o[1];(0,Eo.useEffect)(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,d=r.upperWidth,f=r.lowerWidth,m=r.height,h=r.className,g=r.animationEasing,y=r.animationDuration,b=r.animationBegin,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||d!==+d||f!==+f||m!==+m||d===0&&f===0||m===0)return null;var S=rt("recharts-trapezoid",h);return w?Eo.default.createElement(gu,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:m,x:l,y:u},to:{upperWidth:d,lowerWidth:f,height:m,x:l,y:u},duration:y,animationEasing:g,isActive:w},function(x){var C=x.upperWidth,I=x.lowerWidth,A=x.height,O=x.x,F=x.y;return Eo.default.createElement(gu,{canBegin:i>0,from:"0px ".concat(i===-1?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,easing:g},Eo.default.createElement("path",h_({},ot(r,!0),{className:S,d:TY(O,F,C,I,A),ref:n})))}):Eo.default.createElement("g",null,Eo.default.createElement("path",h_({},ot(r,!0),{className:S,d:TY(l,u,d,f,m)})))};var yMe=["option","shapeType","propTransformer","activeClassName","isActive"];function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function bMe(e,t){if(e==null)return{};var r=xMe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xMe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function g_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PY(Object(r),!0).forEach(function(n){wMe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wMe(e,t,r){return t=_Me(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _Me(e){var t=SMe(e,"string");return rv(t)=="symbol"?t:t+""}function SMe(e,t){if(rv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kMe(e,t){return g_(g_({},t),e)}function IMe(e,t){return e==="symbols"}function AY(e){var t=e.shapeType,r=e.elementProps;
62switch(t){case"rectangle":return Ka.default.createElement(Tp,r);case"trapezoid":return Ka.default.createElement(CY,r);case"sector":return Ka.default.createElement(o_,r);case"symbols":if(IMe(t,r))return Ka.default.createElement(Wg,r);break;default:return null}}function TMe(e){return(0,Ka.isValidElement)(e)?e.props:e}function MY(e){var t=e.option,r=e.shapeType,n=e.propTransformer,a=n===void 0?kMe:n,o=e.activeClassName,i=o===void 0?"recharts-active-shape":o,s=e.isActive,l=bMe(e,yMe),u;if((0,Ka.isValidElement)(t))u=(0,Ka.cloneElement)(t,g_(g_({},l),TMe(t)));else if((0,EY.default)(t))u=t(l);else if((0,LY.default)(t)&&!(0,$Y.default)(t)){var d=a(t,l);u=Ka.default.createElement(AY,{shapeType:r,elementProps:d})}else{var f=l;u=Ka.default.createElement(AY,{shapeType:r,elementProps:f})}return s?Ka.default.createElement(nr,{className:i},u):u}function nv(e,t){return t!=null&&"trapezoids"in e.props}function av(e,t){return t!=null&&"sectors"in e.props}function Cp(e,t){return t!=null&&"points"in e.props}function CMe(e,t){var r,n,a=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,o=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return a&&o}function PMe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function AMe(e,t){var r=e.x===t.x,n=e.y===t.y,a=e.z===t.z;return r&&n&&a}function EMe(e,t){var r;return nv(e,t)?r=CMe:av(e,t)?r=PMe:Cp(e,t)&&(r=AMe),r}function LMe(e,t){var r;return nv(e,t)?r="trapezoids":av(e,t)?r="sectors":Cp(e,t)&&(r="points"),r}function $Me(e,t){if(nv(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(av(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Cp(e,t)?t.payload:{}}function RY(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,a=LMe(r,t),o=$Me(r,t),i=n.filter(function(l,u){var d=(0,OY.default)(o,l),f=r.props[a].filter(function(g){var y=EMe(r,t);return y(g,t)}),m=r.props[a].indexOf(f[f.length-1]),h=u===m;return d&&h}),s=n.indexOf(i[i.length-1]);return s}var Wr=H(ve());var Z3=H(an()),YY=H(U3());function ov(e){"@babel/helpers - typeof";return ov=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ov(e)}function qY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function VY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qY(Object(r),!0).forEach(function(n){ZY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZY(e,t,r){return t=VMe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VMe(e){var t=ZMe(e,"string");return ov(t)=="symbol"?t:t+""}function ZMe(e,t){if(ov(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ov(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HMe=["Webkit","Moz","O","ms"],HY=function(t,r){if(!t)return null;var n=t.replace(/(\w)/,function(o){return o.toUpperCase()}),a=HMe.reduce(function(o,i){return VY(VY({},o),{},ZY({},i+n,r))},{});return a[t]=r,a};function Pp(e){"@babel/helpers - typeof";return Pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pp(e)}function v_(){return v_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,270 bytes, line 62
62for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v_.apply(this,arguments)}function GY(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function q3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GY(Object(r),!0).forEach(function(n){Ja(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GY(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XY(n.key),n)}}function WMe(e,t,r){return t&&WY(e.prototype,t),r&&WY(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function KMe(e,t,r){return t=y_(t),JMe(e,JY()?Reflect.construct(t,r||[],y_(e).constructor):t.apply(e,r))}function JMe(e,t){if(t&&(Pp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XMe(e)}function XMe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JY=function(){return!!e})()}function y_(e){return y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},y_(e)}function YMe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V3(e,t)}function V3(e,t){return V3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},V3(e,t)}function Ja(e,t,r){return t=XY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XY(e){var t=QMe(e,"string");return Pp(t)=="symbol"?t:t+""}function QMe(e,t){if(Pp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eRe=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,o=t.x,i=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=lu().domain((0,YY.default)(0,l)).range([o,o+i-s]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(a),scale:u,scaleValues:d}},KY=function(t){return t.changedTouches&&!!t.changedTouches.length},Qc=(function(e){function t(r){var n;return GMe(this,t),n=KMe(this,t,[r]),Ja(n,"handleDrag",function(a){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(a):n.state.isSlideMoving&&n.handleSlideDrag(a)}),Ja(n,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&n.handleDrag(a.changedTouches[0])}),Ja(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=n.props,o=a.endIndex,i=a.onDragEnd,s=a.startIndex;i?.({endIndex:o,startIndex:s})}),n.detachDragEndListener()}),Ja(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ja(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ja(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ja(n,"handleSlideDragStart",function(a){var o=KY(a)?a.changedTouches[0]:a;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}
62return YMe(t,e),WMe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var a=n.startX,o=n.endX,i=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,d=u.length-1,f=Math.min(a,o),m=Math.max(a,o),h=t.getIndexInRange(i,f),g=t.getIndexInRange(i,m);return{startIndex:h-h%l,endIndex:g===d?d:g-g%l}}},{key:"getTextOfTick",value:function(n){var a=this.props,o=a.data,i=a.tickFormatter,s=a.dataKey,l=Ga(o[n],s,n);return(0,Z3.default)(i)?i(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var a=this.state,o=a.slideMoveStartX,i=a.startX,s=a.endX,l=this.props,u=l.x,d=l.width,f=l.travellerWidth,m=l.startIndex,h=l.endIndex,g=l.onChange,y=n.pageX-o;y>0?y=Math.min(y,u+d-f-s,u+d-f-i):y<0&&(y=Math.max(y,u-i,u-s));var b=this.getIndex({startX:i+y,endX:s+y});(b.startIndex!==m||b.endIndex!==h)&&g&&g(b),this.setState({startX:i+y,endX:s+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,a){var o=KY(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var a=this.state,o=a.brushMoveStartX,i=a.movingTravellerId,s=a.endX,l=a.startX,u=this.state[i],d=this.props,f=d.x,m=d.width,h=d.travellerWidth,g=d.onChange,y=d.gap,b=d.data,w={startX:this.state.startX,endX:this.state.endX},S=n.pageX-o;S>0?S=Math.min(S,f+m-h-u):S<0&&(S=Math.max(S,f-u)),w[i]=u+S;var x=this.getIndex(w),C=x.startIndex,I=x.endIndex,A=function(){var F=b.length-1;return i==="startX"&&(s>l?C%y===0:I%y===0)||s<l&&I===F||i==="endX"&&(s>l?I%y===0:C%y===0)||s>l&&I===F};this.setState(Ja(Ja({},i,u+S),"brushMoveStartX",n.pageX),function(){g&&A()&&g(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,a){var o=this,i=this.state,s=i.scaleValues,l=i.startX,u=i.endX,d=this.state[a],f=s.indexOf(d);if(f!==-1){var m=f+n;if(!(m===-1||m>=s.length)){var h=s[m];a==="startX"&&h>=u||a==="endX"&&h<=l||this.setState(Ja({},a,h),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,a=n.x,o=n.y,i=n.width,s=n.height,l=n.fill,u=n.stroke;return Wr.default.createElement("rect",{stroke:u,fill:l,x:a,y:o,width:i,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,a=n.x,o=n.y,i=n.width,s=n.height,l=n.data,u=n.children,d=n.padding,f=Wr.Children.only(u);return f?Wr.default.cloneElement(f,{x:a,y:o,width:i,height:s,margin:d,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,a){var o,i,s=this,l=this.props,u=l.y,d=l.travellerWidth,f=l.height,m=l.traveller,h=l.ariaLabel,g=l.data,y=l.startIndex,b=l.endIndex,w=Math.max(n,this.props.x),S=q3(q3({},ot(this.props,!1)),{},{x:w,y:u,width:d,height:f}),x=h||"Min value: ".concat((o=g[y])===null||o===void 0?void 0:o.name,", Max value: ").concat((i=g[b])===null||i===void 0?void 0:i.name);return Wr.default.createElement(nr,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(I){["ArrowLeft","ArrowRight"].includes(I.key)&&(I.preventDefault(),I.stopPropagation(),s.handleTravellerMoveKeyboard(I.key==="ArrowRight"?1:-1,a))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(m,S))}},{key:"renderSlide",value:function(n,a){var o=this.props,i=o.y,s=o.height,l=o.stroke,u=o.travellerWidth,d=Math.min(n,a)+u,f=Math.max(Math.abs(a-n)-u,0);return Wr.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:d,y:i,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,a=n.startIndex,o=n.endIndex,i=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,d=this.state,f=d.startX,m=d.endX,h=5,g={pointerEvents:"none",fill:u};return Wr.default.createElement(nr,{className:"recharts-brush-texts"},Wr.default.createElement(Rc,v_({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,m)-h,y:i+s/2},g),this.getTextOfTick(a)),Wr.default.createElement(Rc,v_({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,m)+l+h,y:i+s/2},g),this.getTextOfTick(o)))}},{key:"render",value:function(){var n=this.props,a=n.data,o=n.className,i=n.children,s=n.x,l=n.y,u=n.width,d=n.height,f=n.alwaysShowText,m=this.state,h=m.startX,g=m.endX,y=m.isTextActive,b=m.isSlideMoving,w=m.isTravellerMoving,S=m.isTravellerFocused;if(!a||!a.length||!_e(s)||!_e(l)||!_e(u)||!_e(d)||u<=0||d<=0)return null;var x=rt("recharts-brush",o),C=Wr.default.Children.count(i)===1,I=HY("userSelect","none");return Wr.default.createElement(nr,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:I}
62,this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(h,g),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(g,"endX"),(y||b||w||S||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var a=n.x,o=n.y,i=n.width,s=n.height,l=n.stroke,u=Math.floor(o+s/2)-1;return Wr.default.createElement(Wr.default.Fragment,null,Wr.default.createElement("rect",{x:a,y:o,width:i,height:s,fill:l,stroke:"none"}),Wr.default.createElement("line",{x1:a+1,y1:u,x2:a+i-1,y2:u,fill:"none",stroke:"#fff"}),Wr.default.createElement("line",{x1:a+1,y1:u+2,x2:a+i-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,a){var o;return Wr.default.isValidElement(n)?o=Wr.default.cloneElement(n,a):(0,Z3.default)(n)?o=n(a):o=t.renderDefaultTraveller(a),o}},{key:"getDerivedStateFromProps",value:function(n,a){var o=n.data,i=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,d=n.startIndex,f=n.endIndex;if(o!==a.prevData||u!==a.prevUpdateId)return q3({prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:i},o&&o.length?eRe({data:o,width:i,x:s,travellerWidth:l,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(i!==a.prevWidth||s!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([s,s+i-l]);var m=a.scale.domain().map(function(h){return a.scale(h)});return{prevData:o,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:i,startX:a.scale(n.startIndex),endX:a.scale(n.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(n,a){for(var o=n.length,i=0,s=o-1;s-i>1;){var l=Math.floor((i+s)/2);n[l]>a?s=l:i=l}return a>=n[s]?s:i}}])})(Wr.PureComponent);Ja(Qc,"displayName","Brush");Ja(Qc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var ed=H(ve()),iee=H(an()),see=H(rQ());var Ea=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r};var TQ=H(sQ()),CQ=H(H3());var ua=H(ve());var wQ=H(Gw()),_Q=H(oi());var mQ=H(ve());var SRe=["x","y"];function sv(e){"@babel/helpers - typeof";return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sv(e)}function G3(){return G3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},G3.apply(this,arguments)}function pQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function iv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pQ(Object(r),!0).forEach(function(n){kRe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pQ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kRe(e,t,r){return t=IRe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IRe(e){var t=TRe(e,"string");return sv(t)=="symbol"?t:t+""}function TRe(e,t){if(sv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CRe(e,t){if(e==null)return{};var r=PRe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PRe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ARe(e,t){var r=e.x,n=e.y,a=CRe(e,SRe),o="".concat(r),i=parseInt(o,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),m=parseInt(f,10);return iv(iv(iv(iv(iv({},t),a),i?{x:i}:{}),l?{y:l}:{}),{},{height:d,width:m,name:t.name,radius:t.radius})}function W3(e){return mQ.default.createElement(MY,G3({shapeType:"rectangle",propTransformer:ARe,activeClassName:"recharts-active-bar"},e))}var hQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,a){if(typeof t=="number")return t;var o=_e(n)||QU(n);return o?t(n,a):(o||ui(!1),r)}};var ERe=["value","background"],yQ;function Ap(e){"@babel/helpers - typeof";return Ap=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ap(e)}function LRe(e,t){if(e==null)return{};var r=$Re(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $Re(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function b_(){return b_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
62for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b_.apply(this,arguments)}function gQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gQ(Object(r),!0).forEach(function(n){vu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gQ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ORe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xQ(n.key),n)}}function MRe(e,t,r){return t&&vQ(e.prototype,t),r&&vQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RRe(e,t,r){return t=x_(t),DRe(e,bQ()?Reflect.construct(t,r||[],x_(e).constructor):t.apply(e,r))}function DRe(e,t){if(t&&(Ap(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NRe(e)}function NRe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bQ(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bQ=function(){return!!e})()}function x_(e){return x_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},x_(e)}function zRe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K3(e,t)}function K3(e,t){return K3=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},K3(e,t)}function vu(e,t,r){return t=xQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xQ(e){var t=jRe(e,"string");return Ap(t)=="symbol"?t:t+""}function jRe(e,t){if(Ap(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ap(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fi=(function(e){function t(){var r;ORe(this,t);for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return r=RRe(this,t,[].concat(a)),vu(r,"state",{isAnimationFinished:!1}),vu(r,"id",ru("recharts-bar-")),vu(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),i&&i()}),vu(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),i&&i()}),r}return zRe(t,e),MRe(t,[{key:"renderRectanglesStatically",value:function(n){var a=this,o=this.props,i=o.shape,s=o.dataKey,l=o.activeIndex,u=o.activeBar,d=ot(this.props,!1);return n&&n.map(function(f,m){var h=m===l,g=h?u:i,y=on(on(on({},d),f),{},{isActive:h,option:g,index:m,dataKey:s,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return ua.default.createElement(nr,b_({className:"recharts-bar-rectangle"},Pc(a.props,f,m),{key:"rectangle-".concat(f?.x,"-").concat(f?.y,"-").concat(f?.value,"-").concat(m)}),ua.default.createElement(W3,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,a=this.props,o=a.data,i=a.layout,s=a.isAnimationActive,l=a.animationBegin,u=a.animationDuration,d=a.animationEasing,f=a.animationId,m=this.state.prevData;return ua.default.createElement(gu,{begin:l,duration:u,isActive:s,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var g=h.t,y=o.map(function(b,w){var S=m&&m[w];if(S){var x=Tc(S.x,b.x),C=Tc(S.y,b.y),I=Tc(S.width,b.width),A=Tc(S.height,b.height);return on(on({},b),{},{x:x(g),y:C(g),width:I(g),height:A(g)})}if(i==="horizontal"){var O=Tc(0,b.height),F=O(g);return on(on({},b),{},{y:b.y+b.height-F,height:F})}var q=Tc(0,b.width),G=q(g);return on(on({},b),{},{width:G})});return ua.default.createElement(nr,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,a=n.data,o=n.isAnimationActive,i=this.state.prevData;return o&&a&&a.length&&(!i||!(0,wQ.default)(i,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}}
vendor: 9,127 bytes, line 62
62,{key:"renderBackground",value:function(){var n=this,a=this.props,o=a.data,i=a.dataKey,s=a.activeIndex,l=ot(this.props.background,!1);return o.map(function(u,d){var f=u.value,m=u.background,h=LRe(u,ERe);if(!m)return null;var g=on(on(on(on(on({},h),{},{fill:"#eee"},m),l),Pc(n.props,u,d)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:i,index:d,className:"recharts-bar-background-rectangle"});return ua.default.createElement(W3,b_({key:"background-bar-".concat(d),option:n.props.background,isActive:d===s},g))})}},{key:"renderErrorBar",value:function(n,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.data,s=o.xAxis,l=o.yAxis,u=o.layout,d=o.children,f=On(d,bp);if(!f)return null;var m=u==="vertical"?i[0].height/2:i[0].width/2,h=function(b,w){var S=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:S,errorVal:Ga(b,w)}},g={clipPath:n?"url(#clipPath-".concat(a,")"):null};return ua.default.createElement(nr,g,f.map(function(y){return ua.default.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.props.dataKey),data:i,xAxis:s,yAxis:l,layout:u,offset:m,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,a=n.hide,o=n.data,i=n.className,s=n.xAxis,l=n.yAxis,u=n.left,d=n.top,f=n.width,m=n.height,h=n.isAnimationActive,g=n.background,y=n.id;if(a||!o||!o.length)return null;var b=this.state.isAnimationFinished,w=rt("recharts-bar",i),S=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,C=S||x,I=(0,_Q.default)(y)?this.id:y;return ua.default.createElement(nr,{className:w},S||x?ua.default.createElement("defs",null,ua.default.createElement("clipPath",{id:"clipPath-".concat(I)},ua.default.createElement("rect",{x:S?u:u-f/2,y:x?d:d-m/2,width:S?f:f*2,height:x?m:m*2}))):null,ua.default.createElement(nr,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(I,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,I),(!h||b)&&mu.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.animationId!==a.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:a.curData}:n.data!==a.curData?{curData:n.data}:null}}])})(ua.PureComponent);yQ=fi;vu(fi,"displayName","Bar");vu(fi,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ua.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});vu(fi,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,a=e.bandSize,o=e.xAxis,i=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,m=e.offset,h=KJ(n,r);if(!h)return null;var g=t.layout,y=r.type.defaultProps,b=y!==void 0?on(on({},y),r.props):r.props,w=b.dataKey,S=b.children,x=b.minPointSize,C=g==="horizontal"?i:o,I=u?C.scale.domain():null,A=QJ({numericAxis:C}),O=On(S,d5),F=f.map(function(q,G){var J,Y,le,re,oe,$;u?J=JJ(u[d+G],I):(J=Ga(q,w),Array.isArray(J)||(J=[A,J]));var z=hQ(x,yQ.defaultProps.minPointSize)(J[1],G);if(g==="horizontal"){var R,N=[i.scale(J[0]),i.scale(J[1])],U=N[0],B=N[1];Y=g3({axis:o,ticks:s,bandSize:a,offset:h.offset,entry:q,index:G}),le=(R=B??U)!==null&&R!==void 0?R:void 0,re=h.size;var V=U-B;if(oe=Number.isNaN(V)?0:V,$={x:Y,y:i.y,width:re,height:i.height},Math.abs(z)>0&&Math.abs(oe)<Math.abs(z)){var Z=Un(oe||z)*(Math.abs(z)-Math.abs(oe));le-=Z,oe+=Z}}else{var Q=[o.scale(J[0]),o.scale(J[1])],ue=Q[0],ge=Q[1];if(Y=ue,le=g3({axis:i,ticks:l,bandSize:a,offset:h.offset,entry:q,index:G}),re=ge-ue,oe=h.size,$={x:o.x,y:le,width:o.width,height:oe},Math.abs(z)>0&&Math.abs(re)<Math.abs(z)){var Te=Un(re||z)*(Math.abs(z)-Math.abs(re));re+=Te}}return on(on(on({},q),{},{x:Y,y:le,width:re,height:oe,value:u?J:J[1],payload:q,background:$},O&&O[G]&&O[G].props),{},{tooltipPayload:[t_(r,q)],tooltipPosition:{x:Y+re/2,y:le+oe/2}})});return on({data:F,layout:g},m)});function lv(e){"@babel/helpers - typeof";return lv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lv(e)}function BRe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SQ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IQ(n.key),n)}}function FRe(e,t,r){return t&&SQ(e.prototype,t),r&&SQ(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kQ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kQ(Object(r),!0).forEach(function(n){w_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kQ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w_(e,t,r){return t=IQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IQ(e){var t=URe(e,"string");return lv(t)=="symbol"?t:t+""}function URe(e,t){if(lv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(lv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PQ=function(t,r,n,a,o){var i=t.width,s=t.height,l=t.layout,u=t.children,d=Object.keys(r),f={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},m=!!qn(u,fi);return d.reduce(function(h,g){var y=r[g],b=y.orientation,w=y.domain,S=y.padding,x=S===void 0?{}:S,C=y.mirror,I=y.reversed,A="".concat(b).concat(C?"Mirror":""),O,F,q,G,J;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var Y=w[1]-w[0],le=1/0,re=y.categoricalDomain.sort(tq);if(re.forEach(function(Q,ue){ue>0&&(le=Math.min((Q||0)-(re[ue-1]||0),le))}),Number.isFinite(le)){var oe=le/Y,$=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(O=oe*$/2),y.padding==="no-gap"){var z=ii(t.barCategoryGap,oe*$),R=oe*$/2;O=R-z-(R-z)/$*z}}}a==="xAxis"?F=[n.left+(x.left||0)+(O||0),n.left+n.width-(x.right||0)-(O||0)]:a==="yAxis"?F=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(O||0),n.top+n.height-(x.bottom||0)-(O||0)]:F=y.range,I&&(F=[F[1],F[0]]);var N=GJ(y,o,m),U=N.scale,B=N.realScaleType;U.domain(w).range(F),WJ(U);var V=YJ(U,pi(pi({},y),{},{realScaleType:B}));a==="xAxis"?(J=b==="top"&&!C||b==="bottom"&&C,q=n.left,G=f[A]-J*y.height):a==="yAxis"&&(J=b==="left"&&!C||b==="right"&&C,q=f[A]-J*y.width,G=n.top);var Z=pi(pi(pi({},y),V),{},{realScaleType:B,x:q,y:G,scale:U,width:a==="xAxis"?n.width:y.width,height:a==="yAxis"?n.height:y.height});return Z.bandSize=Sp(Z,V),!y.hide&&a==="xAxis"?f[A]+=(J?-1:1)*Z.height:y.hide||(f[A]+=(J?-1:1)*Z.width),pi(pi({},h),{},w_({},g,Z))},{})},J3=function(t,r){var n=t.x,a=t.y,o=r.x,i=r.y;return{x:Math.min(n,o),y:Math.min(a,i),width:Math.abs(o-n),height:Math.abs(i-a)}},AQ=function(t){var r=t.x1,n=t.y1,a=t.x2,o=t.y2;return J3({x:r,y:n},{x:a,y:o})},EQ=(function(){function e(t){BRe(this,e),this.scale=t}return FRe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,o=n.position;if(r!==void 0){if(o)switch(o){case"start":return this.scale(r);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+i}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],o=n[n.length-1];return a<=o?r>=a&&r<=o:r>=o&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}])})();w_(EQ,"EPS",1e-4);var Ep=function(t){var r=Object.keys(t).reduce(function(n,a){return pi(pi({},n),{},w_({},a,EQ.create(t[a])))},{});return pi(pi({},r),{},{apply:function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=o.bandAware,s=o.position;return(0,TQ.default)(a,function(l,u){return r[u].apply(l,{bandAware:i,position:s})})},isInRange:function(a){return(0,CQ.default)(a,function(o,i){return r[i].isInRange(o)})}})};function qRe(e){return(e%180+180)%180}var LQ=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=qRe(a),i=o*Math.PI/180,s=Math.atan(n/r),l=i>s&&i<Math.PI-s?n/Math.sin(i):r/Math.cos(i);return Math.abs(l)};var vr=H(ve());var UQ=H(jQ()),qQ=H(H3());
62var BQ=H(IC()),FQ=(0,BQ.default)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});var X3=(0,vr.createContext)(void 0),Y3=(0,vr.createContext)(void 0),VQ=(0,vr.createContext)(void 0),ZQ=(0,vr.createContext)({}),HQ=(0,vr.createContext)(void 0),GQ=(0,vr.createContext)(0),WQ=(0,vr.createContext)(0),Q3=function(t){var r=t.state,n=r.xAxisMap,a=r.yAxisMap,o=r.offset,i=t.clipPathId,s=t.children,l=t.width,u=t.height,d=FQ(o);return vr.default.createElement(X3.Provider,{value:n},vr.default.createElement(Y3.Provider,{value:a},vr.default.createElement(ZQ.Provider,{value:o},vr.default.createElement(VQ.Provider,{value:d},vr.default.createElement(HQ.Provider,{value:i},vr.default.createElement(GQ.Provider,{value:u},vr.default.createElement(WQ.Provider,{value:l},s)))))))},KQ=function(){return(0,vr.useContext)(HQ)};var __=function(t){var r=(0,vr.useContext)(X3);r==null&&ui(!1);var n=r[t];return n==null&&ui(!1),n},JQ=function(){var t=(0,vr.useContext)(X3);return Ui(t)};var XQ=function(){var t=(0,vr.useContext)(Y3),r=(0,UQ.default)(t,function(n){return(0,qQ.default)(n.domain,Number.isFinite)});return r||Ui(t)},S_=function(t){var r=(0,vr.useContext)(Y3);r==null&&ui(!1);var n=r[t];return n==null&&ui(!1),n},YQ=function(){var t=(0,vr.useContext)(VQ);return t},QQ=function(){return(0,vr.useContext)(ZQ)},Lp=function(){return(0,vr.useContext)(WQ)},$p=function(){return(0,vr.useContext)(GQ)};function Op(e){"@babel/helpers - typeof";return Op=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Op(e)}function a9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oee(n.key),n)}}function o9e(e,t,r){return t&&eee(e.prototype,t),r&&eee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i9e(e,t,r){return t=k_(t),s9e(e,aee()?Reflect.construct(t,r||[],k_(e).constructor):t.apply(e,r))}function s9e(e,t){if(t&&(Op(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l9e(e)}function l9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aee=function(){return!!e})()}function k_(e){return k_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},k_(e)}function u9e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eA(e,t)}function eA(e,t){return eA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},eA(e,t)}function tee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ree(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tee(Object(r),!0).forEach(function(n){rA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rA(e,t,r){return t=oee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oee(e){var t=c9e(e,"string");return Op(t)=="symbol"?t:t+""}function c9e(e,t){if(Op(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Op(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d9e(e,t){return h9e(e)||m9e(e,t)||p9e(e,t)||f9e()}
62function f9e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 63In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p9e(e,t){if(e){if(typeof e=="string")return nee(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nee(e,t)}}function nee(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function m9e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function h9e(e){if(Array.isArray(e))return e}function tA(){return tA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tA.apply(this,arguments)}var g9e=function(t,r){var n;return ed.default.isValidElement(t)?n=ed.default.cloneElement(t,r):(0,iee.default)(t)?n=t(r):n=ed.default.createElement("line",tA({},r,{className:"recharts-reference-line-line"})),n},v9e=function(t,r,n,a,o,i,s,l,u){var d=o.x,f=o.y,m=o.width,h=o.height;if(n){var g=u.y,y=t.y.apply(g,{position:i});if(Ea(u,"discard")&&!t.y.isInRange(y))return null;var b=[{x:d+m,y},{x:d,y}];return l==="left"?b.reverse():b}if(r){var w=u.x,S=t.x.apply(w,{position:i});if(Ea(u,"discard")&&!t.x.isInRange(S))return null;var x=[{x:S,y:f+h},{x:S,y:f}];return s==="top"?x.reverse():x}if(a){var C=u.segment,I=C.map(function(A){return t.apply(A,{position:i})});return Ea(u,"discard")&&(0,see.default)(I,function(A){return!t.isInRange(A)})?null:I}return null};function y9e(e){var t=e.x,r=e.y,n=e.segment,a=e.xAxisId,o=e.yAxisId,i=e.shape,s=e.className,l=e.alwaysShow,u=KQ(),d=__(a),f=S_(o),m=YQ();if(!u||!m)return null;ia(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Ep({x:d.scale,y:f.scale}),g=gr(t),y=gr(r),b=n&&n.length===2,w=v9e(h,g,y,b,m,e.position,d.orientation,f.orientation,e);if(!w)return null;var S=d9e(w,2),x=S[0],C=x.x,I=x.y,A=S[1],O=A.x,F=A.y,q=Ea(e,"hidden")?"url(#".concat(u,")"):void 0,G=ree(ree({clipPath:q},ot(e,!0)),{},{x1:C,y1:I,x2:O,y2:F});return ed.default.createElement(nr,{className:rt("recharts-reference-line",s)},g9e(i,G),Gr.renderCallByParent(e,AQ({x1:C,y1:I,x2:O,y2:F})))}var I_=(function(e){function t(){return a9e(this,t),i9e(this,t,arguments)}return u9e(t,e),o9e(t,[{key:"render",value:function(){return ed.default.createElement(y9e,this.props)}}])})(ed.default.Component);rA(I_,"displayName","ReferenceLine");rA(I_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Mp=H(ve()),pee=H(an());function nA(){return nA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nA.apply(this,arguments)}function Rp(e){"@babel/helpers - typeof";return Rp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function lee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function uee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lee(Object(r),!0).forEach(function(n){C_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lee(Object(r)).forEac
63h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fee(n.key),n)}}function x9e(e,t,r){return t&&cee(e.prototype,t),r&&cee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w9e(e,t,r){return t=T_(t),_9e(e,dee()?Reflect.construct(t,r||[],T_(e).constructor):t.apply(e,r))}function _9e(e,t){if(t&&(Rp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S9e(e)}function S9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dee=function(){return!!e})()}function T_(e){return T_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},T_(e)}function k9e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aA(e,t)}function aA(e,t){return aA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},aA(e,t)}function C_(e,t,r){return t=fee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fee(e){var t=I9e(e,"string");return Rp(t)=="symbol"?t:t+""}function I9e(e,t){if(Rp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T9e=function(t){var r=t.x,n=t.y,a=t.xAxis,o=t.yAxis,i=Ep({x:a.scale,y:o.scale}),s=i.apply({x:r,y:n},{bandAware:!0});return Ea(t,"discard")&&!i.isInRange(s)?null:s},uv=(function(e){function t(){return b9e(this,t),w9e(this,t,arguments)}return k9e(t,e),x9e(t,[{key:"render",value:function(){var n=this.props,a=n.x,o=n.y,i=n.r,s=n.alwaysShow,l=n.clipPathId,u=gr(a),d=gr(o);if(ia(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=T9e(this.props);if(!f)return null;var m=f.x,h=f.y,g=this.props,y=g.shape,b=g.className,w=Ea(this.props,"hidden")?"url(#".concat(l,")"):void 0,S=uee(uee({clipPath:w},ot(this.props,!0)),{},{cx:m,cy:h});return Mp.default.createElement(nr,{className:rt("recharts-reference-dot",b)},t.renderDot(y,S),Gr.renderCallByParent(this.props,{x:m-i,y:h-i,width:2*i,height:2*i}))}}])})(Mp.default.Component);C_(uv,"displayName","ReferenceDot");C_(uv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});C_(uv,"renderDot",function(e,t){var r;return Mp.default.isValidElement(e)?r=Mp.default.cloneElement(e,t):(0,pee.default)(e)?r=e(t):r=Mp.default.createElement(m_,nA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});var Dp=H(ve()),bee=H(an());function oA(){return oA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oA.apply(this,arguments)}function Np(e){"@babel/helpers - typeof";return Np=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Np(e)}function mee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function hee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
63t%2?mee(Object(r),!0).forEach(function(n){A_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function C9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yee(n.key),n)}}function P9e(e,t,r){return t&&gee(e.prototype,t),r&&gee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function A9e(e,t,r){return t=P_(t),E9e(e,vee()?Reflect.construct(t,r||[],P_(e).constructor):t.apply(e,r))}function E9e(e,t){if(t&&(Np(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L9e(e)}function L9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vee=function(){return!!e})()}function P_(e){return P_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},P_(e)}function $9e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iA(e,t)}function iA(e,t){return iA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},iA(e,t)}function A_(e,t,r){return t=yee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yee(e){var t=O9e(e,"string");return Np(t)=="symbol"?t:t+""}function O9e(e,t){if(Np(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Np(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M9e=function(t,r,n,a,o){var i=o.x1,s=o.x2,l=o.y1,u=o.y2,d=o.xAxis,f=o.yAxis;if(!d||!f)return null;var m=Ep({x:d.scale,y:f.scale}),h={x:t?m.x.apply(i,{position:"start"}):m.x.rangeMin,y:n?m.y.apply(l,{position:"start"}):m.y.rangeMin},g={x:r?m.x.apply(s,{position:"end"}):m.x.rangeMax,y:a?m.y.apply(u,{position:"end"}):m.y.rangeMax};return Ea(o,"discard")&&(!m.isInRange(h)||!m.isInRange(g))?null:J3(h,g)},cv=(function(e){function t(){return C9e(this,t),A9e(this,t,arguments)}return $9e(t,e),P9e(t,[{key:"render",value:function(){var n=this.props,a=n.x1,o=n.x2,i=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,d=n.clipPathId;ia(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=gr(a),m=gr(o),h=gr(i),g=gr(s),y=this.props.shape;if(!f&&!m&&!h&&!g&&!y)return null;var b=M9e(f,m,h,g,this.props);if(!b&&!y)return null;var w=Ea(this.props,"hidden")?"url(#".concat(d,")"):void 0;return Dp.default.createElement(nr,{className:rt("recharts-reference-area",l)},t.renderRect(y,hee(hee({clipPath:w},ot(this.props,!0)),b)),Gr.renderCallByParent(this.props,b))}}])})(Dp.default.Component);A_(cv,"displayName","ReferenceArea");A_(cv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});A_(cv,"renderRect",function(e,t){var r;return Dp.default.isValidElement(e)?r=Dp.default.cloneElement(e,t):(0,bee.default)(e)?r=e(t):r=Dp.default.createElement(Tp,oA({},t,{className:"recharts-reference-area-rect"})),r});var mi=H(ve()),L_=H(an()),uA=H(Ic());var Iee=H(an());function E_(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],a=0;a<e.length;a+=t)if(r===void 0||r(e[a])===!0)n.push(e[a]);else return;return n}function xee(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return LQ(n,r)}function wee(e,t,r){var n=r==="width",a=e.x,o=e.y,i=e.width,s=e.height;return t===1?{start:n?a:o,end:n?a+i:o+s}:{start:n?a+i:o+s,end:n?a:o}}function zp(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-a)<=0}function _ee(e,t){return E_(e,t+1)}function See(e,t,r,n,a){for(var o=(n||[]).slice(),i=t.start,s=t.end,l=0,u=1,d=i,f=function(){var g=n?.[l];if(g===void 0)return{v:E_(n,u)};var y=l,b,w=function(){return b===void 0&&(b=r(g,y)),b},S=g.coordinate,x=l===0||zp(e,S,w,d,s);x||(l=0,d=i,u+=1),x&&(d=S+e*(w()/2+a),l+=u)},m;u<=o.length;)if(m=f(),m)return m.v;return[]}function dv(e){"@babel/helpers - typeof";return dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dv(e)}function kee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 6,660 bytes, line 63
63t%2?kee(Object(r),!0).forEach(function(n){R9e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function R9e(e,t,r){return t=D9e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D9e(e){var t=N9e(e,"string");return dv(t)=="symbol"?t:t+""}function N9e(e,t){if(dv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z9e(e,t,r,n,a){for(var o=(n||[]).slice(),i=o.length,s=t.start,l=t.end,u=function(m){var h=o[m],g,y=function(){return g===void 0&&(g=r(h,m)),g};if(m===i-1){var b=e*(h.coordinate+e*y()/2-l);o[m]=h=Vn(Vn({},h),{},{tickCoord:b>0?h.coordinate-b*e:h.coordinate})}else o[m]=h=Vn(Vn({},h),{},{tickCoord:h.coordinate});var w=zp(e,h.tickCoord,y,s,l);w&&(l=h.tickCoord-e*(y()/2+a),o[m]=Vn(Vn({},h),{},{isShow:!0}))},d=i-1;d>=0;d--)u(d);return o}function j9e(e,t,r,n,a,o){var i=(n||[]).slice(),s=i.length,l=t.start,u=t.end;if(o){var d=n[s-1],f=r(d,s-1),m=e*(d.coordinate+e*f/2-u);i[s-1]=d=Vn(Vn({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate});var h=zp(e,d.tickCoord,function(){return f},l,u);h&&(u=d.tickCoord-e*(f/2+a),i[s-1]=Vn(Vn({},d),{},{isShow:!0}))}for(var g=o?s-1:s,y=function(S){var x=i[S],C,I=function(){return C===void 0&&(C=r(x,S)),C};if(S===0){var A=e*(x.coordinate-e*I()/2-l);i[S]=x=Vn(Vn({},x),{},{tickCoord:A<0?x.coordinate-A*e:x.coordinate})}else i[S]=x=Vn(Vn({},x),{},{tickCoord:x.coordinate});var O=zp(e,x.tickCoord,I,l,u);O&&(l=x.tickCoord+e*(I()/2+a),i[S]=Vn(Vn({},x),{},{isShow:!0}))},b=0;b<g;b++)y(b);return i}function fv(e,t,r){var n=e.tick,a=e.ticks,o=e.viewBox,i=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,d=e.unit,f=e.angle;if(!a||!a.length||!n)return[];if(_e(l)||Ua.isSsr)return _ee(a,typeof l=="number"&&_e(l)?l:0);var m=[],h=s==="top"||s==="bottom"?"width":"height",g=d&&h==="width"?Mc(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(x,C){var I=(0,Iee.default)(u)?u(x.value,C):x.value;return h==="width"?xee(Mc(I,{fontSize:t,letterSpacing:r}),g,f):Mc(I,{fontSize:t,letterSpacing:r})[h]},b=a.length>=2?Un(a[1].coordinate-a[0].coordinate):1,w=wee(o,b,h);return l==="equidistantPreserveStart"?See(b,w,y,a,i):(l==="preserveStart"||l==="preserveStartEnd"?m=j9e(b,w,y,a,i,l==="preserveStartEnd"):m=z9e(b,w,y,a,i),m.filter(function(S){return S.isShow}))}var B9e=["viewBox"],F9e=["viewBox"],U9e=["ticks"];function Bp(e){"@babel/helpers - typeof";return Bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(e)}function jp(){return jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jp.apply(this,arguments)}function Tee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tee(Object(r),!0).forEach(function(n){cA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sA(e,t){if(e==null)return{};var r=q9e(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q9e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function V9e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Aee(n.key),n)}}function Z9e(e,t,r){return t&&Cee(e.prototype,t),r&&Cee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function H9e(e,t,r){return t=$_(t),G9e(e,Pee()?Reflect.construct(t,r||[],$_(e).constructor):t.apply(e,r))}function G9e(e,t){if(t&&(Bp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W9e(e)}function W9e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pee=function(){return!!e})()}function $_(e){return $_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$_(e)}function K9e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lA(e,t)}function lA(e,t){return lA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},lA(e,t)}function cA(e,t,r){return t=Aee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aee(e){var t=J9e(e,"string");return Bp(t)=="symbol"?t:t+""}function J9e(e,t){if(Bp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gs=(function(e){function t(r){var n;return V9e(this,t),n=H9e(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return K9e(t,e),Z9e(t,[{key:"shouldComponentUpdate",value:function(n,a){var o=n.viewBox,i=sA(n,B9e),s=this.props,l=s.viewBox,u=sA(s,F9e);return!js(o,l)||!js(i,u)||!js(a,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var a=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}}
63,{key:"getTickLineCoord",value:function(n){var a=this.props,o=a.x,i=a.y,s=a.width,l=a.height,u=a.orientation,d=a.tickSize,f=a.mirror,m=a.tickMargin,h,g,y,b,w,S,x=f?-1:1,C=n.tickSize||d,I=_e(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=g=n.coordinate,b=i+ +!f*l,y=b-x*C,S=y-x*m,w=I;break;case"left":y=b=n.coordinate,g=o+ +!f*s,h=g-x*C,w=h-x*m,S=I;break;case"right":y=b=n.coordinate,g=o+ +f*s,h=g+x*C,w=h+x*m,S=I;break;default:h=g=n.coordinate,b=i+ +f*l,y=b+x*C,S=y+x*m,w=I;break}return{line:{x1:h,y1:y,x2:g,y2:b},tick:{x:w,y:S}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,a=n.orientation,o=n.mirror,i;switch(a){case"left":i=o?"start":"end";break;case"right":i=o?"end":"start";break;default:i="middle";break}return i}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,a=n.orientation,o=n.mirror,i="end";switch(a){case"left":case"right":i="middle";break;case"top":i=o?"start":"end";break;default:i=o?"end":"start";break}return i}},{key:"renderAxisLine",value:function(){var n=this.props,a=n.x,o=n.y,i=n.width,s=n.height,l=n.orientation,u=n.mirror,d=n.axisLine,f=yn(yn(yn({},ot(this.props,!1)),ot(d,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var m=+(l==="top"&&!u||l==="bottom"&&u);f=yn(yn({},f),{},{x1:a,y1:o+m*s,x2:a+i,y2:o+m*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);f=yn(yn({},f),{},{x1:a+h*i,y1:o,x2:a+h*i,y2:o+s})}return mi.default.createElement("line",jp({},f,{className:rt("recharts-cartesian-axis-line",(0,uA.default)(d,"className"))}))}},{key:"renderTicks",value:function(n,a,o){var i=this,s=this.props,l=s.tickLine,u=s.stroke,d=s.tick,f=s.tickFormatter,m=s.unit,h=fv(yn(yn({},this.props),{},{ticks:n}),a,o),g=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),b=ot(this.props,!1),w=ot(d,!1),S=yn(yn({},b),{},{fill:"none"},ot(l,!1)),x=h.map(function(C,I){var A=i.getTickLineCoord(C),O=A.line,F=A.tick,q=yn(yn(yn(yn({textAnchor:g,verticalAnchor:y},b),{},{stroke:"none",fill:u},w),F),{},{index:I,payload:C,visibleTicksCount:h.length,tickFormatter:f});return mi.default.createElement(nr,jp({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Pc(i.props,C,I)),l&&mi.default.createElement("line",jp({},S,O,{className:rt("recharts-cartesian-axis-tick-line",(0,uA.default)(l,"className"))})),d&&t.renderTickItem(d,q,"".concat((0,L_.default)(f)?f(C.value,I):C.value).concat(m||"")))});return mi.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,a=this.props,o=a.axisLine,i=a.width,s=a.height,l=a.ticksGenerator,u=a.className,d=a.hide;if(d)return null;var f=this.props,m=f.ticks,h=sA(f,U9e),g=m;return(0,L_.default)(l)&&(g=m&&m.length>0?l(this.props):l(h)),i<=0||s<=0||!g||!g.length?null:mi.default.createElement(nr,{className:rt("recharts-cartesian-axis",u),ref:function(b){n.layerReference=b}},o&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Gr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,a,o){var i,s=rt(a.className,"recharts-cartesian-axis-tick-value");return mi.default.isValidElement(n)?i=mi.default.cloneElement(n,yn(yn({},a),{},{className:s})):(0,L_.default)(n)?i=n(yn(yn({},a),{},{className:s})):i=mi.default.createElement(Rc,jp({},a,{className:"recharts-cartesian-axis-tick-value"}),o),i}}])})(mi.Component);cA(Gs,"displayName","CartesianAxis");cA(Gs,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Rn=H(ve()),O_=H(an());var X9e=["x1","y1","x2","y2","key"],Y9e=["offset"];function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function Eee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
63t%2?Eee(Object(r),!0).forEach(function(n){Q9e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q9e(e,t,r){return t=eDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eDe(e){var t=tDe(e,"string");return rd(t)=="symbol"?t:t+""}function tDe(e,t){if(rd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}function Lee(e,t){if(e==null)return{};var r=rDe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rDe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nDe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,a=t.x,o=t.y,i=t.width,s=t.height,l=t.ry;return Rn.default.createElement("rect",{x:a,y:o,ry:l,width:i,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function $ee(e,t){var r;if(Rn.default.isValidElement(e))r=Rn.default.cloneElement(e,t);else if((0,O_.default)(e))r=e(t);else{var n=t.x1,a=t.y1,o=t.x2,i=t.y2,s=t.key,l=Lee(t,X9e),u=ot(l,!1),d=u.offset,f=Lee(u,Y9e);r=Rn.default.createElement("line",td({},f,{x1:n,y1:a,x2:o,y2:i,fill:"none",key:s}))}return r}function aDe(e){var t=e.x,r=e.width,n=e.horizontal,a=n===void 0?!0:n,o=e.horizontalPoints;if(!a||!o||!o.length)return null;var i=o.map(function(s,l){var u=Zn(Zn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return $ee(a,u)});return Rn.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},i)}function oDe(e){var t=e.y,r=e.height,n=e.vertical,a=n===void 0?!0:n,o=e.verticalPoints;if(!a||!o||!o.length)return null;var i=o.map(function(s,l){var u=Zn(Zn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return $ee(a,u)});return Rn.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},i)}function iDe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,a=e.y,o=e.width,i=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var d=s.map(function(m){return Math.round(m+a-a)}).sort(function(m,h){return m-h});a!==d[0]&&d.unshift(0);var f=d.map(function(m,h){var g=!d[h+1],y=g?a+i-m:d[h+1]-m;if(y<=0)return null;var b=h%t.length;return Rn.default.createElement("rect",{key:"react-".concat(h),y:m,x:n,height:y,width:o,stroke:"none",fill:t[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return Rn.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function sDe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,a=e.fillOpacity,o=e.x,i=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var d=u.map(function(m){return Math.round(m+o-o)}).sort(function(m,h){return m-h});o!==d[0]&&d.unshift(0);var f=d.map(function(m,h){var g=!d[h+1],y=g?o+s-m:d[h+1]-m;if(y<=0)return null;var b=h%n.length;return Rn.default.createElement("rect",{key:"react-".concat(h),x:m,y:i,width:y,height:l,stroke:"none",fill:n[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return Rn.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var lDe=function(t,r){var n=t.xAxis,a=t.width,o=t.height,i=t.offset;return h3(fv(Zn(Zn(Zn({},Gs.defaultProps),n),{},{ticks:Wa(n,!0),viewBox:{x:0,y:0,width:a,height:o}})),i.left,i.left+i.width,r)},uDe=function(t,r){var n=t.yAxis,a=t.width,o=t.height,i=t.offset;return h3(fv(Zn(Zn(Zn({},Gs.defaultProps),n),{}
63,{ticks:Wa(n,!0),viewBox:{x:0,y:0,width:a,height:o}})),i.top,i.top+i.height,r)},Fp={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function M_(e){var t,r,n,a,o,i,s=Lp(),l=$p(),u=QQ(),d=Zn(Zn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Fp.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Fp.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Fp.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Fp.horizontalFill,vertical:(o=e.vertical)!==null&&o!==void 0?o:Fp.vertical,verticalFill:(i=e.verticalFill)!==null&&i!==void 0?i:Fp.verticalFill,x:_e(e.x)?e.x:u.left,y:_e(e.y)?e.y:u.top,width:_e(e.width)?e.width:u.width,height:_e(e.height)?e.height:u.height}),f=d.x,m=d.y,h=d.width,g=d.height,y=d.syncWithTicks,b=d.horizontalValues,w=d.verticalValues,S=JQ(),x=XQ();if(!_e(h)||h<=0||!_e(g)||g<=0||!_e(f)||f!==+f||!_e(m)||m!==+m)return null;var C=d.verticalCoordinatesGenerator||lDe,I=d.horizontalCoordinatesGenerator||uDe,A=d.horizontalPoints,O=d.verticalPoints;if((!A||!A.length)&&(0,O_.default)(I)){var F=b&&b.length,q=I({yAxis:x?Zn(Zn({},x),{},{ticks:F?b:x.ticks}):void 0,width:s,height:l,offset:u},F?!0:y);ia(Array.isArray(q),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(rd(q),"]")),Array.isArray(q)&&(A=q)}if((!O||!O.length)&&(0,O_.default)(C)){var G=w&&w.length,J=C({xAxis:S?Zn(Zn({},S),{},{ticks:G?w:S.ticks}):void 0,width:s,height:l,offset:u},G?!0:y);ia(Array.isArray(J),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(rd(J),"]")),Array.isArray(J)&&(O=J)}return Rn.default.createElement("g",{className:"recharts-cartesian-grid"},Rn.default.createElement(nDe,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),Rn.default.createElement(aDe,td({},d,{offset:u,horizontalPoints:A,xAxis:S,yAxis:x})),Rn.default.createElement(oDe,td({},d,{offset:u,verticalPoints:O,xAxis:S,yAxis:x})),Rn.default.createElement(iDe,td({},d,{horizontalPoints:A})),Rn.default.createElement(sDe,td({},d,{verticalPoints:O})))}M_.displayName="CartesianGrid";var pv=H(ve());function Up(e){"@babel/helpers - typeof";return Up=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Up(e)}function cDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dee(n.key),n)}}function dDe(e,t,r){return t&&Oee(e.prototype,t),r&&Oee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fDe(e,t,r){return t=R_(t),pDe(e,Mee()?Reflect.construct(t,r||[],R_(e).constructor):t.apply(e,r))}function pDe(e,t){if(t&&(Up(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mDe(e)}function mDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mee=function(){return!!e})()}function R_(e){return R_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},R_(e)}function hDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dA(e,t)}function dA(e,t){return dA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},dA(e,t)}function Ree(e,t,r){return t=Dee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dee(e){var t=gDe(e,"string");return Up(t)=="symbol"?t:t+""}function gDe(e,t){if(Up(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Up(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fA(){return fA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 30,587 bytes, lines 63-66
63for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fA.apply(this,arguments)}function vDe(e){var t=e.xAxisId,r=Lp(),n=$p(),a=__(t);return a==null?null:pv.createElement(Gs,fA({},a,{className:rt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(i){return Wa(i,!0)}}))}var nd=(function(e){function t(){return cDe(this,t),fDe(this,t,arguments)}return hDe(t,e),dDe(t,[{key:"render",value:function(){return pv.createElement(vDe,this.props)}}])})(pv.Component);Ree(nd,"displayName","XAxis");Ree(nd,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var mv=H(ve());function qp(e){"@babel/helpers - typeof";return qp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qp(e)}function yDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bee(n.key),n)}}function bDe(e,t,r){return t&&Nee(e.prototype,t),r&&Nee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xDe(e,t,r){return t=D_(t),wDe(e,zee()?Reflect.construct(t,r||[],D_(e).constructor):t.apply(e,r))}function wDe(e,t){if(t&&(qp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _De(e)}function _De(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zee=function(){return!!e})()}function D_(e){return D_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},D_(e)}function SDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pA(e,t)}function pA(e,t){return pA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},pA(e,t)}function jee(e,t,r){return t=Bee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bee(e){var t=kDe(e,"string");return qp(t)=="symbol"?t:t+""}function kDe(e,t){if(qp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mA(){return mA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mA.apply(this,arguments)}var IDe=function(t){var r=t.yAxisId,n=Lp(),a=$p(),o=S_(r);return o==null?null:mv.createElement(Gs,mA({},o,{className:rt("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:a},ticksGenerator:function(s){return Wa(s,!0)}}))},ad=(function(e){function t(){return yDe(this,t),xDe(this,t,arguments)}return SDe(t,e),bDe(t,[{key:"render",value:function(){return mv.createElement(IDe,this.props)}}])})(mv.Component);jee(ad,"displayName","YAxis");jee(ad,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var Zt=H(ve()),Hp=H(oi()),hi=H(an()),Z_=H(U3()),Gp=H(Ic()),ute=H(rw()),cte=H(u5());function Fee(e){return ADe(e)||PDe(e)||CDe(e)||TDe()}function TDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 64In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CDe(e,t){if(e){if(typeof e=="string")return hA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hA(e,t)}}function PDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ADe(e){if(Array.isArray(e))return hA(e)}function hA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var N_=function(t,r,n,a,o){var i=On(t,I_),s=On(t,uv),l=[].concat(Fee(i),Fee(s)),u=On(t,cv),d="".concat(a,"Id"),f=a[0],m=r;if(l.length&&(m=l.reduce(function(y,b){if(b.props[d]===n&&Ea(b.props,"extendDomain")&&_e(b.props[f])){var w=b.props[f];return[Math.min(y[0],w),Math.max(y[1],w)]}return y},m)),u.length){var h="".concat(f,"1"),g="".concat(f,"2");m=u.reduce(function(y,b){if(b.props[d]===n&&Ea(b.props,"extendDomain")&&_e(b.props[h])&&_e(b.props[g])){var w=b.props[h],S=b.props[g];return[Math.min(y[0],w,S),Math.max(y[1],w,S)]}return y},m)}return o&&o.length&&(m=o.reduce(function(y,b){return _e(b)?[Math.min(y[0],b),Math.max(y[1],b)]:y},m)),m};var Vee=H(qee()),j_=new Vee.default;var B_="recharts.syncMouseEvents";function gv(e){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gv(e)}function $De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hee(n.key),n)}}function ODe(e,t,r){return t&&Zee(e.prototype,t),r&&Zee(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vA(e,t,r){return t=Hee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hee(e){var t=MDe(e,"string");return gv(t)=="symbol"?t:t+""}function MDe(e,t){if(gv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gee=(function(){function e(){$De(this,e),vA(this,"activeIndex",0),vA(this,"coordinateList",[]),vA(this,"layout","horizontal")}return ODe(e,[{key:"setDetails",value:function(r){var n,a=r.coordinateList,o=a===void 0?null:a,i=r.container,s=i===void 0?null:i,l=r.layout,u=l===void 0?null:l,d=r.offset,f=d===void 0?null:d,m=r.mouseHandlerCallback,h=m===void 0?null:m;this.coordinateList=(n=o??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}default:break}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),o=a.x,i=a.y,s=a.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,d=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=o+l+u,m=i+this.offset.top+s/2+d;this.mouseHandlerCallback({pageX:f,pageY:m})}}}])})();function Wee(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],a=e?.[1];if(n&&a&&_e(n)&&_e(a))return!0}return!1}var Vp=H(ve());function Kee(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function F_(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,o=e.endAngle,i=jr(t,r,n,a),s=jr(t,r,n,o);return{points:[i,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:o}}function Jee(e,t,r){var n,a,o,i;if(e==="horizontal")n=t.x,o=n,a=r.top,i=r.top+r.height;else if(e==="vertical")a=t.y,i=a,n=r.left,o=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,d=t.outerRadius,f=t.angle,m=jr(s,l,u,f),h=jr(s,l,d,f);n=m.x,a=m.y,o=h.x,i=h.y}else return F_(t);return[{x:n,y:a},{x:o,y:i}]}function vv(e){"@babel/helpers - typeof";return vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vv(e)}function Xee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xee(Object(r),!0).forEach(function(n){RDe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xee(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RDe(e,t,r){return t=DDe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DDe(e){var t=NDe(e,"string");return vv(t)=="symbol"?t:t+""}function NDe(e,t){if(vv(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vv(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yee(e){var t,r,n=e.element,a=e.tooltipEventType,o=e.isActive,i=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,m=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!o||!i||m!=="ScatterChart"&&a!=="axis")return null;var g,y=I3;if(m==="ScatterChart")g=i,y=hY;else if(m==="BarChart")g=Kee(f,i,l,d),y=Tp;else if(f==="radial"){var b=F_(i),w=b.cx,S=b.cy,x=b.radius,C=b.startAngle,I=b.endAngle;g={cx:w,cy:S,startAngle:C,endAngle:I,innerRadius:x,outerRadius:x},y=o_}else g={points:Jee(f,i,l)},y=I3;var A=U_(U_(U_(U_({stroke:"#ccc",pointerEvents:"none"},l),g),ot(h,!1)),{},{payload:s,payloadIndex:u,className:rt("recharts-tooltip-cursor",h.className)});return(0,Vp.isValidElement)(h)?(0,Vp.cloneElement)(h,A):(0,Vp.createElement)(y,A)}var zDe=["item"],jDe=["children","className","width","height","style","compact","title","desc"];function Wp(e){"@babel/helpers - typeof";return Wp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wp(e)}function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zp.apply(this,arguments)}function Qee(e,t){return UDe(e)||FDe(e,t)||ste(e,t)||BDe()}function BDe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 65In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FDe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,o,i,s=[],l=!0,u=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw a}}return s}}function UDe(e){if(Array.isArray(e))return e}function ete(e,t){if(e==null)return{};var r=qDe(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qDe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VDe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lte(n.key),n)}}function ZDe(e,t,r){return t&&tte(e.prototype,t),r&&tte(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function HDe(e,t,r){return t=V_(t),GDe(e,ite()?Reflect.construct(t,r||[],V_(e).constructor):t.apply(e,r))}function GDe(e,t){if(t&&(Wp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WDe(e)}function WDe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ite(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ite=function(){return!!e})()}function V_(e){return V_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},V_(e)}function KDe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yA(e,t)}function yA(e,t){return yA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},yA(e,t)}function Kp(e){return YDe(e)||XDe(e)||ste(e)||JDe()}function JDe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 66In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ste(e,t){if(e){if(typeof e=="string")return bA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bA(e,t)}}function XDe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YDe(e){if(Array.isArray(e))return bA(e)}function bA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rte(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rte(Object(r),!0).forEach(function(n){st(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rte(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function st(e,t,r){return t=lte(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lte(e){var t=QDe(e,"string");return Wp(t)=="symbol"?t:t+""}function QDe(e,t){if(Wp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eNe={xAxis:["bottom","top"],yAxis:["left","right"]},tNe={width:"100%",height:"100%"},dte={x:0,y:0};function q_(e){return e}var rNe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},nNe=function(t,r,n,a){var o=r.find(function(d){return d&&d.index===n});if(o){if(t==="horizontal")return{x:o.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:o.coordinate};if(t==="centric"){var i=o.coordinate,s=a.radius;return he(he(he({},a),jr(a.cx,a.cy,s,i)),{},{angle:i,radius:s})}var l=o.coordinate,u=a.angle;return he(he(he({},a),jr(a.cx,a.cy,l,u)),{},{angle:u,radius:l})}return dte},H_=function(t,r){var n=r.graphicalItems,a=r.dataStartIndex,o=r.dataEndIndex,i=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Kp(s),Kp(u)):s},[]);return i.length>0?i:t&&t.length&&_e(a)&&_e(o)?t.slice(a,o+1):[]};function fte(e){return e==="number"?[0,"auto"]:void 0}var xA=function(t,r,n,a){var o=t.graphicalItems,i=t.tooltipAxis,s=H_(r,t);return n<0||!o||!o.length||n>=s.length?null:o.reduce(function(l,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(i.dataKey&&!i.allowDuplicatedCategory){var h=f===void 0?s:f;m=qg(h,i.dataKey,a)}else m=f&&f[n]||s[n];return m?[].concat(Kp(l),[t_(u,m)]):l},[])},nte=function(t,r,n,a){var o=a||{x:t.chartX,y:t.chartY},i=rNe(o,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,d=FJ(i,s,u,l);if(d>=0&&u){var f=u[d]&&u[d].value,m=xA(t,r,d,f),h=nNe(n,s,d,o);return{activeTooltipIndex:d,activeLabel:f,activePayload:m,activeCoordinate:h}}return null},aNe=function(t,r){var n=r.axes,a=r.graphicalItems,o=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,m=t.stackOffset,h=m3(d,o);return n.reduce(function(g,y){var b,w=y.type.defaultProps!==void 0?he(he({},y.type.defaultProps),y.props):y.props,S=w.type,x=w.dataKey,C=w.allowDataOverflow,I=w.allowDuplicatedCategory,A=w.scale,O=w.ticks,F=w.includeHidden,q=w[i];if(g[q])return g;var G=H_(t.data,{graphicalItems:a.filter(function(V){var Z,Q=i in V.props?V.props[i]:(Z=V.type.defaultProps)===null||Z===void 0?void 0:Z[i];return Q===q}),dataStartIndex:l,dataEndIndex:u}),J=G.length,Y,le,re;Wee(w.domain,C,S)&&(Y=e_(w.domain,null,C),h&&(S==="number"||A!=="auto")&&(re=_p(G,x,"category")));var oe=fte(S);if(!Y||Y.length===0){var $,z=($=w.domain)!==null&&$!==void 0?$:oe;if(x){if(Y=_p(G,x,S),S==="category"&&h){var R=eq(Y);I&&R?(le=Y,Y=(0,Z_.default)(0,J)):I||(Y=y3(z,Y,y).reduce(function(V,Z){return V.indexOf(Z)>=0?V:[].concat(Kp(V),[Z])},[]))}else if(S==="category")I?Y=Y.filter(function(V){return V!==""&&!(0,Hp.default)(V)}):Y=y3(z,Y,y).reduce(function(V,Z){return V.indexOf(Z)>=0||Z===""||(0,Hp.default)(Z)?V:[].concat(Kp(V),[Z])},[]);else if(S==="number"){var N=HJ(G,a.filter(function(V){var Z,Q,ue=i in V.props?V.props[i]:(Z=V.type.defaultProps)===null||Z===void 0?void 0:Z[i],ge="hide"in V.props?V.props.hide:(Q=V.type.defaultProps)===null||Q===void 0?void 0:Q.hide;return ue===q&&(F||!ge)}),x,o,d);N&&(Y=N)}h&&(S==="number"||A!=="auto")&&(re=_p(G,x,"category"))}else h?Y=(0,Z_.default)(0,J):s&&s[q]&&s[q].hasStack&&S==="number"?Y=m==="expand"?[0,1]:v3(s[q].stackGroups,l,u):Y=p3(G,a.filter(function(V){var Z=i in V.props?V.props[i]:V.type.defaultProps[i],Q="hide"in V.props?V.props.hide:V.type.defaultProps.hide;return Z===q&&(F||!Q)}),S,d,!0);if(S==="number")Y=N_(f,Y,q,o,O),z&&(Y=e_(z,Y,C));else if(S==="category"&&z){var U=z,B=Y.every(function(V){return U.indexOf(V)>=0});B&&(Y=U)}}return he(he({},g),{},st({},q,he(he({},w),{},{axisType:o,domain:Y,categoricalDomain:re,duplicateDomain:le,originalDomain:(b=w.domain)!==null&&b!==void 0?b:oe,isCategorical:h,layout:d})))},{})},oNe=function(t,r){var n=r.graphicalItems,a=r.Axis,o=r.axisType,i=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,d=t.layout,f=t.children,m=H_(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=m.length,g=m3(d,o),y=-1;return n.reduce(function(b,w){var S=w.type.defaultProps!==void 0?he(he({},w.type.defaultProps),w.props):w.props,x=S[i],C=fte("number");if(!b[x]){y++;var I;return g?I=(0,Z_.default)(0,h):s&&s[x]&&s[x].hasStack?(I=v3(s[x].stackGroups,l,u),I=N_(f,I,x,o)):(I=e_(C,p3(m,n.filter(function(A){var O,F,q=i in A.props?A.props[i]:(O=A.type.defaultProps)===null||O===void 0?void 0:O[i],G="hide"in A.props?A.props.hide:(F=A.type.defaultProps)===null||F===void 0?void 0:F.hide;return q===x&&!G}),"number",d),a.defaultProps.allowDataOverflow),I=N_(f,I,x,o)),he(he({},b),{},st({},x,he(he({axisType:o},a.defaultProps),{},{hide:!0,orientation:(0,Gp.default)(eNe,"".concat(o,".").concat(y%2),null),domain:I,originalDomain:C,isCategorical:g,layout:d})))}return b},{})},iNe=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,o=r.AxisComp,i=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,d=t.children,f="".concat(a,"Id"),m=On(d,o),h={};return m&&m.length?h=aNe(t,{axes:m,graphicalItems:i,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(h=oNe(t,{Axis:o,graphicalItems:i,axisType:a,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},sNe=function(t){var r=Ui(t),n=Wa(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:(0,ute.default)(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Sp(r,n)}},ate=function(t){var r=t.children,n=t.defaultShowTooltip,a=qn(r,Qc),o=0,i=0;return t.data&&t.data.length!==0&&(i=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(o=a.props.startIndex),a.props.endIndex>=0&&(i=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!n}},lNe=function(t){return!t||!t.length?!1:t.some(function(r){var n=So(r&&r.type);return n&&n.indexOf("Bar")>=0})},ote=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},uNe=function(t,r){var n=t.props,a=t.graphicalItems,o=t.xAxisMap,i=o===void 0?{}:o,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,d=n.height,f=n.children,m=n.margin||{},h=qn(f,Qc),g=qn(f,ou),y=Object.keys(l).reduce(function(I,A){var O=l[A],F=O.orientation;return!O.mirror&&!O.hide?he(he({},I),{},st({},F,I[F]+O.width)):I},{left:m.left||0,right:m.right||0}),b=Object.keys(i).reduce(function(I,A){var O=i[A],F=O.orientation;return!O.mirror&&!O.hide?he(he({},I),{},st({},F,(0,Gp.default)(I,"".concat(F))+O.height)):I},{top:m.top||0,bottom:m.bottom||0}),w=he(he({},b),y),S=w.bottom;h&&(w.bottom+=h.props.height||Qc.defaultProps.height),g&&r&&(w=VJ(w,a,n,r));var x=u-w.left-w.right,C=d-w.top-w.bottom;return he(he({brushBottom:S},w),{},{width:Math.max(x,0),height:Math.max(C,0)})},cNe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},pte=function(t){var r=t.chartName,n=t.GraphicalChild,a=t.defaultTooltipEventType,o=a===void 0?"axis":a,i=t.validateTooltipEventTypes,s=i===void 0?["axis"]:i,l=t.axisComponents,u=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,m=function(w,S){var x=S.graphicalItems,C=S.stackGroups,I=S.offset,A=S.updateId,O=S.dataStartIndex,F=S.dataEndIndex,q=w.barSize,G=w.layout,J=w.barGap,Y=w.barCategoryGap,le=w.maxBarSize,re=ote(G),oe=re.numericAxisName,$=re.cateAxisName,z=lNe(x),R=[];return x.forEach(function(N,U){var B=H_(w.data,{graphicalItems:[N],dataStartIndex:O,dataEndIndex:F}),V=N.type.defaultProps!==void 0?he(he({},N.type.defaultProps),N.props):N.props,Z=V.dataKey,Q=V.maxBarSize,ue=V["".concat(oe,"Id")],ge=V["".concat($,"Id")],Te={},De=l.reduce(function(fn,sr){var _r,Kt,Ko=S["".concat(sr.axisType,"Map")],ho=V["".concat(sr.axisType,"Id")];Ko&&Ko[ho]||sr.axisType==="zAxis"||ui(!1);var Nl=Ko[ho];return he(he({},fn),{},st(st({},sr.axisType,Nl),"".concat(sr.axisType,"Ticks"),Wa(Nl)))},Te),me=De[$],Ze=De["".concat($,"Ticks")],Oe=C&&C[ue]&&C[ue].hasStack&&eX(N,C[ue].stackGroups),fe=So(N.type).indexOf("Bar")>=0,Mt=Sp(me,Ze),at=[],Ut=z&&UJ({barSize:q,stackGroups:C,totalSize:cNe(De,$)});if(fe){var zt,Qt,Vr=(0,Hp.default)(Q)?le:Q,Dt=(zt=(Qt=Sp(me,Ze,!0))!==null&&Qt!==void 0?Qt:Vr)!==null&&zt!==void 0?zt:0;at=qJ({barGap:J,barCategoryGap:Y,bandSize:Dt!==Mt?Dt:Mt,sizeList:Ut[ge],maxBarSize:Vr}),Dt!==Mt&&(at=at.map(function(fn){return he(he({},fn),{},{position:he(he({},fn.position),{},{offset:fn.position.offset-Dt/2})})}))}var dn=N&&N.type&&N.type.getComposedData;dn&&R.push({props:he(he({},dn(he(he({},De),{},{displayedData:B,props:w,dataKey:Z,item:N,bandSize:Mt,barPosition:at,offset:I,stackedData:Oe,layout:G,dataStartIndex:O,dataEndIndex:F}))),{},st(st(st({key:N.key||"item-".concat(U)},oe,De[oe]),$,De[$]),"animationId",A)),childIndex:mq(N,w.children),item:N})}),R},h=function(w,S){var x=w.props,C=w.dataStartIndex,I=w.dataEndIndex,A=w.updateId;if(!zC({props:x}))return null;var O=x.children,F=x.layout,q=x.stackOffset,G=x.data,J=x.reverseStackOrder,Y=ote(F),le=Y.numericAxisName,re=Y.cateAxisName,oe=On(O,n),$=XJ(G,oe,"".concat(le,"Id"),"".concat(re,"Id"),q,J),z=l.reduce(function(V,Z){var Q="".concat(Z.axisType,"Map");return he(he({},V),{},st({},Q,iNe(x,he(he({},Z),{},{graphicalItems:oe,stackGroups:Z.axisType===le&&$,dataStartIndex:C,dataEndIndex:I}))))},{}),R=uNe(he(he({},z),{},{props:x,graphicalItems:oe}),S?.legendBBox);Object.keys(z).forEach(function(V){z[V]=d(x,z[V],R,V.replace("Map",""),r)});var N=z["".concat(re,"Map")],U=sNe(N),B=m(x,he(he({},z),{},{dataStartIndex:C,dataEndIndex:I,updateId:A,graphicalItems:oe,stackGroups:$,offset:R}));return he(he({formattedGraphicalItems:B,graphicalItems:oe,offset:R,stackGroups:$},U),z)},g=(function(b){function w(S){var x,C,I;return VDe(this,w),I=HDe(this,w,[S]),st(I,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),st(I,"accessibilityManager",new Gee),st(I,"handleLegendBBoxUpdate",function(A){if(A){var O=I.state,F=O.dataStartIndex,q=O.dataEndIndex,G=O.updateId;I.setState(he({legendBBox:A},h({props:I.props,dataStartIndex:F,dataEndIndex:q,updateId:G},he(he({},I.state),{},{legendBBox:A}))))}}),st(I,"handleReceiveSyncEvent",function(A,O,F){if(I.props.syncId===A){if(F===I.eventEmitterSymbol&&typeof I.props.syncMethod!="function")return;I.applySyncEvent(O)}}),st(I,"handleBrushChange",function(A){var O=A.startIndex,F=A.endIndex;if(O!==I.state.dataStartIndex||F!==I.state.dataEndIndex){var q=I.state.updateId;I.setState(function(){return he({dataStartIndex:O,dataEndIndex:F},h({props:I.props,dataStartIndex:O,dataEndIndex:F,updateId:q},I.state))}),I.triggerSyncEvent({dataStartIndex:O,dataEndIndex:F})}}),st(I,"handleMouseEnter",function(A){var O=I.getMouseInfo(A);if(O){var F=he(he({},O),{},{isTooltipActive:!0});I.setState(F),I.triggerSyncEvent(F);var q=I.props.onMouseEnter;(0,hi.default)(q)&&q(F,A)}}),st(I,"triggeredAfterMouseMove",function(A){var O=I.getMouseInfo(A),F=O?he(he({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};I.setState(F),I.triggerSyncEvent(F);var q=I.props.onMouseMove;(0,hi.default)(q)&&q(F,A)}),st(I,"handleItemMouseEnter",function(A){I.setState(function(){return{isTooltipActive:!0,activeItem:A,activePayload:A.tooltipPayload,activeCoordinate:A.tooltipPosition||{x:A.cx,y:A.cy}}})}),st(I,"handleItemMouseLeave",function(){I.setState(function(){return{isTooltipActive:!1}})}),st(I,"handleMouseMove",function(A){A.persist(),I.throttleTriggeredAfterMouseMove(A)}),st(I,"handleMouseLeave",function(A){I.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};I.setState(O),I.triggerSyncEvent(O);var F=I.props.onMouseLeave;(0,hi.default)(F)&&F(O,A)}),st(I,"handleOuterEvent",function(A){var O=pq(A),F=(0,Gp.default)(I.props,"".concat(O));if(O&&(0,hi.default)(F)){var q,G;/.*touch.*/i.test(O)?G=I.getMouseInfo(A.changedTouches[0]):G=I.getMouseInfo(A),F((q=G)!==null&&q!==void 0?q:{},A)}}),st(I,"handleClick",function(A){var O=I.getMouseInfo(A);if(O){var F=he(he({},O),{},{isTooltipActive:!0});I.setState(F),I.triggerSyncEvent(F);var q=I.props.onClick;(0,hi.default)(q)&&q(F,A)}}),st(I,"handleMouseDown",function(A){var O=I.props.onMouseDown;if((0,hi.default)(O)){var F=I.getMouseInfo(A);O(F,A)}}),st(I,"handleMouseUp",function(A){var O=I.props.onMouseUp;if((0,hi.default)(O)){var F=I.getMouseInfo(A);O(F,A)}}),st(I,"handleTouchMove",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&I.throttleTriggeredAfterMouseMove(A.changedTouches[0])}),st(I,"handleTouchStart",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&I.handleMouseDown(A.changedTouches[0])}),st(I,"handleTouchEnd",function(A){A.changedTouches!=null&&A.changedTouches.length>0&&I.handleMouseUp(A.changedTouches[0])}),st(I,"handleDoubleClick",function(A){var O=I.props.onDoubleClick;if((0,hi.default)(O)){var F=I.getMouseInfo(A);O(F,A)}}),st(I,"handleContextMenu",function(A){var O=I.props.onContextMenu;if((0,hi.default)(O)){var F=I.getMouseInfo(A);O(F,A)}}),st(I,"triggerSyncEvent",function(A){I.props.syncId!==void 0&&j_.emit(B_,I.props.syncId,A,I.eventEmitterSymbol)}),st(I,"applySyncEvent",function(A){var O=I.props,F=O.layout,q=O.syncMethod,G=I.state.updateId,J=A.dataStartIndex,Y=A.dataEndIndex;if(A.dataStartIndex!==void 0||A.dataEndIndex!==void 0)I.setState(he({dataStartIndex:J,dataEndIndex:Y},h({props:I.props,dataStartIndex:J,dataEndIndex:Y,updateId:G},I.state)));else if(A.activeTooltipIndex!==void 0){var le=A.chartX,re=A.chartY,oe=A.activeTooltipIndex,$=I.state,z=$.offset,R=$.tooltipTicks;if(!z)return;if(typeof q=="function")oe=q(R,A);else if(q==="value"){oe=-1;for(var N=0;N<R.length;N++)if(R[N].value===A.activeLabel){oe=N;break}}var U=he(he({},z),{},{x:z.left,y:z.top}),B=Math.min(le,U.x+U.width),V=Math.min(re,U.y+U.height),Z=R[oe]&&R[oe].value,Q=xA(I.state,I.props.data,oe),ue=R[oe]?{x:F==="horizontal"?R[oe].coordinate:B,y:F==="horizontal"?V:R[oe].coordinate}:dte;I.setState(he(he({},A),{},{activeLabel:Z,activeCoordinate:ue,activePayload:Q,activeTooltipIndex:oe}))}else I.setState(A)}),st(I,"renderCursor",function(A){var O,F=I.state,q=F.isTooltipActive,G=F.activeCoordinate,J=F.activePayload,Y=F.offset,le=F.activeTooltipIndex,re=F.tooltipAxisBandSize,oe=I.getTooltipEventType(),$=(O=A.props.active)!==null&&O!==void 0?O:q,z=I.props.layout,R=A.key||"_recharts-cursor";return Zt.default.createElement(Yee,{key:R,activeCoordinate:G,activePayload:J,activeTooltipIndex:le,chart
66Name:r,element:A,isActive:$,layout:z,offset:Y,tooltipAxisBandSize:re,tooltipEventType:oe})}),st(I,"renderPolarAxis",function(A,O,F){var q=(0,Gp.default)(A,"type.axisType"),G=(0,Gp.default)(I.state,"".concat(q,"Map")),J=A.type.defaultProps,Y=J!==void 0?he(he({},J),A.props):A.props,le=G&&G[Y["".concat(q,"Id")]];return(0,Zt.cloneElement)(A,he(he({},le),{},{className:rt(q,le.className),key:A.key||"".concat(O,"-").concat(F),ticks:Wa(le,!0)}))}),st(I,"renderPolarGrid",function(A){var O=A.props,F=O.radialLines,q=O.polarAngles,G=O.polarRadius,J=I.state,Y=J.radiusAxisMap,le=J.angleAxisMap,re=Ui(Y),oe=Ui(le),$=oe.cx,z=oe.cy,R=oe.innerRadius,N=oe.outerRadius;return(0,Zt.cloneElement)(A,{polarAngles:Array.isArray(q)?q:Wa(oe,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(G)?G:Wa(re,!0).map(function(U){return U.coordinate}),cx:$,cy:z,innerRadius:R,outerRadius:N,key:A.key||"polar-grid",radialLines:F})}),st(I,"renderLegend",function(){var A=I.state.formattedGraphicalItems,O=I.props,F=O.children,q=O.width,G=O.height,J=I.props.margin||{},Y=q-(J.left||0)-(J.right||0),le=Yw({children:F,formattedGraphicalItems:A,legendWidth:Y,legendContent:u});if(!le)return null;var re=le.item,oe=ete(le,zDe);return(0,Zt.cloneElement)(re,he(he({},oe),{},{chartWidth:q,chartHeight:G,margin:J,onBBoxUpdate:I.handleLegendBBoxUpdate}))}),st(I,"renderTooltip",function(){var A,O=I.props,F=O.children,q=O.accessibilityLayer,G=qn(F,qa);if(!G)return null;var J=I.state,Y=J.isTooltipActive,le=J.activeCoordinate,re=J.activePayload,oe=J.activeLabel,$=J.offset,z=(A=G.props.active)!==null&&A!==void 0?A:Y;return(0,Zt.cloneElement)(G,{viewBox:he(he({},$),{},{x:$.left,y:$.top}),active:z,label:oe,payload:z?re:[],coordinate:le,accessibilityLayer:q})}),st(I,"renderBrush",function(A){var O=I.props,F=O.margin,q=O.data,G=I.state,J=G.offset,Y=G.dataStartIndex,le=G.dataEndIndex,re=G.updateId;return(0,Zt.cloneElement)(A,{key:A.key||"_recharts-brush",onChange:D0(I.handleBrushChange,A.props.onChange),data:q,x:_e(A.props.x)?A.props.x:J.left,y:_e(A.props.y)?A.props.y:J.top+J.height+J.brushBottom-(F.bottom||0),width:_e(A.props.width)?A.props.width:J.width,startIndex:Y,endIndex:le,updateId:"brush-".concat(re)})}),st(I,"renderReferenceElement",function(A,O,F){if(!A)return null;var q=I,G=q.clipPathId,J=I.state,Y=J.xAxisMap,le=J.yAxisMap,re=J.offset,oe=A.type.defaultProps||{},$=A.props,z=$.xAxisId,R=z===void 0?oe.xAxisId:z,N=$.yAxisId,U=N===void 0?oe.yAxisId:N;return(0,Zt.cloneElement)(A,{key:A.key||"".concat(O,"-").concat(F),xAxis:Y[R],yAxis:le[U],viewB
vendor: 6,503 bytes, line 66
66ox:{x:re.left,y:re.top,width:re.width,height:re.height},clipPathId:G})}),st(I,"renderActivePoints",function(A){var O=A.item,F=A.activePoint,q=A.basePoint,G=A.childIndex,J=A.isRange,Y=[],le=O.props.key,re=O.item.type.defaultProps!==void 0?he(he({},O.item.type.defaultProps),O.item.props):O.item.props,oe=re.activeDot,$=re.dataKey,z=he(he({index:G,dataKey:$,cx:F.x,cy:F.y,r:4,fill:$0(O.item),strokeWidth:2,stroke:"#fff",payload:F.payload,value:F.value},ot(oe,!1)),Cc(oe));return Y.push(w.renderActiveDot(oe,z,"".concat(le,"-activePoint-").concat(G))),q?Y.push(w.renderActiveDot(oe,he(he({},z),{},{cx:q.x,cy:q.y}),"".concat(le,"-basePoint-").concat(G))):J&&Y.push(null),Y}),st(I,"renderGraphicChild",function(A,O,F){var q=I.filterFormatItem(A,O,F);if(!q)return null;var G=I.getTooltipEventType(),J=I.state,Y=J.isTooltipActive,le=J.tooltipAxis,re=J.activeTooltipIndex,oe=J.activeLabel,$=I.props.children,z=qn($,qa),R=q.props,N=R.points,U=R.isRange,B=R.baseLine,V=q.item.type.defaultProps!==void 0?he(he({},q.item.type.defaultProps),q.item.props):q.item.props,Z=V.activeDot,Q=V.hide,ue=V.activeBar,ge=V.activeShape,Te=!!(!Q&&Y&&z&&(Z||ue||ge)),De={};G!=="axis"&&z&&z.props.trigger==="click"?De={onClick:D0(I.handleItemMouseEnter,A.props.onClick)}:G!=="axis"&&(De={onMouseLeave:D0(I.handleItemMouseLeave,A.props.onMouseLeave),onMouseEnter:D0(I.handleItemMouseEnter,A.props.onMouseEnter)});var me=(0,Zt.cloneElement)(A,he(he({},q.props),De));function Ze(sr){return typeof le.dataKey=="function"?le.dataKey(sr.payload):null}if(Te)if(re>=0){var Oe,fe;if(le.dataKey&&!le.allowDuplicatedCategory){var Mt=typeof le.dataKey=="function"?Ze:"payload.".concat(le.dataKey.toString());Oe=qg(N,Mt,oe),fe=U&&B&&qg(B,Mt,oe)}else Oe=N?.[re],fe=U&&B&&B[re];if(ge||ue){var at=A.props.activeIndex!==void 0?A.props.activeIndex:re;return[(0,Zt.cloneElement)(A,he(he(he({},q.props),De),{},{activeIndex:at})),null,null]}if(!(0,Hp.default)(Oe))return[me].concat(Kp(I.renderActivePoints({item:q,activePoint:Oe,basePoint:fe,childIndex:re,isRange:U})))}else{var Ut,zt=(Ut=I.getItemByXY(I.state.activeCoordinate))!==null&&Ut!==void 0?Ut:{graphicalItem:me},Qt=zt.graphicalItem,Vr=Qt.item,Dt=Vr===void 0?A:Vr,dn=Qt.childIndex,fn=he(he(he({},q.props),De),{},{activeIndex:dn});return[(0,Zt.cloneElement)(Dt,fn),null,null]}return U?[me,null,null]:[me,null]}),st(I,"renderCustomized",function(A,O,F){return(0,Zt.cloneElement)(A,he(he({key:"recharts-customized-".concat(F)},I.props),I.state))}),st(I,"renderMap",{CartesianGrid:{handler:q_,once:!0},ReferenceArea:{handler:I.renderReferenceElement},ReferenceLine:{handler:q_},ReferenceDot:{handler:I.renderReferenceElement},XAxis:{handler:q_},YAxis:{handler:q_},Brush:{handler:I.renderBrush,once:!0},Bar:{handler:I.renderGraphicChild},Line:{handler:I.renderGraphicChild},Area:{handler:I.renderGraphicChild},Radar:{handler:I.renderGraphicChild},RadialBar:{handler:I.renderGraphicChild},Scatter:{handler:I.renderGraphicChild},Pie:{handler:I.renderGraphicChild},Funnel:{handler:I.renderGraphicChild},Tooltip:{handler:I.renderCursor,once:!0},PolarGrid:{handler:I.renderPolarGrid,once:!0},PolarAngleAxis:{handler:I.renderPolarAxis},PolarRadiusAxis:{handler:I.renderPolarAxis},Customized:{handler:I.renderCustomized}}),I.clipPathId="".concat((x=S.id)!==null&&x!==void 0?x:ru("recharts"),"-clip"),I.throttleTriggeredAfterMouseMove=(0,cte.default)(I.triggeredAfterMouseMove,(C=S.throttleDelay)!==null&&C!==void 0?C:1e3/60),I.state={},I}return KDe(w,b),ZDe(w,[{key:"componentDidMount",value:function(){var x,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,C=x.children,I=x.data,A=x.height,O=x.layout,F=qn(C,qa);if(F){var q=F.props.defaultIndex;if(!(typeof q!="number"||q<0||q>this.state.tooltipTicks.length-1)){var G=this.state.tooltipTicks[q]&&this.state.tooltipTicks[q].value,J=xA(this.state,I,q,G),Y=this.state.tooltipTicks[q].coordinate,le=(this.state.offset.top+A)/2,re=O==="horizontal",oe=re?{x:Y,y:le}:{y:Y,x:le},$=this.state.formattedGraphicalItems.find(function(R){var N=R.item;return N.type.name==="Scatter"});$&&(oe=he(he({},oe),$.props.points[q].tooltipPosition),J=$.props.points[q].tooltipPayload);var z={activeTooltipIndex:q,isTooltipActive:!0,activeLabel:G,activePayload:J,activeCoordinate:oe};this.setState(z),this.renderCursor(F),this.accessibilityManager.setIndex(q)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var I,A;this.accessibilityManager.setDetails({offset:{left:(I=this.props.margin.left)!==null&&I!==void 0?I:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0}})}return null}},{key:"componentDidUpdate",value:function(x){M1([qn(x.children,qa)],[qn(this.props.children,qa)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=qn(this.props.children,qa);if(x&&typeof x.props.shared=="boolean"){var C=x.props.shared?"axis":"item";return s.indexOf(C)>=0?C:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var C=this.container,I=C.getBoundingClientRect(),A=_W(I),O={chartX:Math.round(x.pageX-A.left),chartY:Math.round(x.pageY-A.top)},F=I.width/C.offsetWidth||1,q=this.inRange(O.chartX,O.chartY,F);if(!q)return null;var G=this.state,J=G.xAxisMap,Y=G.yAxisMap,le=this.getTooltipEventType(),re=nte(this.state,this.props.data,this.props.layout,q);if(le!=="axis"&&J&&Y){var oe=Ui(J).scale,$=Ui(Y).scale,z=oe&&oe.invert?oe.invert(O.chartX):null,R=$&&$.invert?$.invert(O.chartY):null;return he(he({},O),{},{xValue:z,yValue:R},re)}return re?he(he({},O),re):null}},{key:"inRange",value:function(x,C){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,A=this.props.layout,O=x/I,F=C/I;if(A==="horizontal"||A==="vertical"){var q=this.state.offset,G=O>=q.left&&O<=q.left+q.width&&F>=q.top&&F<=q.top+q.height;return G?{x:O,y:F}:null}
66var J=this.state,Y=J.angleAxisMap,le=J.radiusAxisMap;if(Y&&le){var re=Ui(Y);return b3({x:O,y:F},re)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,C=this.getTooltipEventType(),I=qn(x,qa),A={};I&&C==="axis"&&(I.props.trigger==="click"?A={onClick:this.handleClick}:A={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Cc(this.props,this.handleOuterEvent);return he(he({},O),A)}},{key:"addListener",value:function(){j_.on(B_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){j_.removeListener(B_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,C,I){for(var A=this.state.formattedGraphicalItems,O=0,F=A.length;O<F;O++){var q=A[O];if(q.item===x||q.props.key===x.key||C===So(q.item.type)&&I===q.childIndex)return q}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,C=this.state.offset,I=C.left,A=C.top,O=C.height,F=C.width;return Zt.default.createElement("defs",null,Zt.default.createElement("clipPath",{id:x},Zt.default.createElement("rect",{x:I,y:A,height:O,width:F})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(C,I){var A=Qee(I,2),O=A[0],F=A[1];return he(he({},C),{},st({},O,F.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(C,I){var A=Qee(I,2),O=A[0],F=A[1];return he(he({},C),{},st({},O,F.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[x])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(x){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[x])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(x){var C=this.state,I=C.formattedGraphicalItems,A=C.activeItem;if(I&&I.length)for(var O=0,F=I.length;O<F;O++){var q=I[O],G=q.props,J=q.item,Y=J.type.defaultProps!==void 0?he(he({},J.type.defaultProps),J.props):J.props,le=So(J.type);if(le==="Bar"){var re=(G.data||[]).find(function(R){return dY(x,R)});if(re)return{graphicalItem:q,payload:re}}else if(le==="RadialBar"){var oe=(G.data||[]).find(function(R){return b3(x,R)});if(oe)return{graphicalItem:q,payload:oe}}else if(nv(q,A)||av(q,A)||Cp(q,A)){var $=RY({graphicalItem:q,activeTooltipItem:A,itemData:Y.data}),z=Y.activeIndex===void 0?$:Y.activeIndex;return{graphicalItem:he(he({},q),{},{childIndex:z}),payload:Cp(q,A)?Y.data[$]:q.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!zC(this))return null;var C=this.props,I=C.children,A=C.className,O=C.width,F=C.height,q=C.style,G=C.compact,J=C.title,Y=C.desc,le=ete(C,jDe),re=ot(le,!1);if(G)return Zt.default.createElement(Q3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Zt.default.createElement(Vg,Zp({},re,{width:O,height:F,title:J,desc:Y}),this.renderClipPath(),jC(I,this.renderMap)));if(this.props.accessibilityLayer){var oe,$;re.tabIndex=(oe=this.props.tabIndex)!==null&&oe!==void 0?oe:0,re.role=($=this.props.role)!==null&&$!==void 0?$:"application",re.onKeyDown=function(R){x.accessibilityManager.keyboardEvent(R)},re.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return Zt.default.createElement(Q3,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},Zt.default.createElement("div",Zp({className:rt("recharts-wrapper",A),style:he({position:"relative",cursor:"default",width:O,height:F},q)},z,{ref:function(N){x.container=N}}),Zt.default.createElement(Vg,Zp({},re,{width:O,height:F,title:J,desc:Y,style:tNe}),this.renderClipPath(),jC(I,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(Zt.Component);st(g,"displayName",r),st(g,"defaultProps",he({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),st(g,"getDerivedStateFromProps",function(b,w){var S=b.dataKey,x=b.data,C=b.children,I=b.width,A=b.height,O=b.layout,F=b.stackOffset,q=b.margin,G=w.dataStartIndex,J=w.dataEndIndex;if(w.updateId===void 0){var Y=ate(b);return he(he(he({},Y),{},{updateId:0},h(he(he({props:b},Y),{},{updateId:0}),w)),{},{prevDataKey:S,prevData:x,prevWidth:I,prevHeight:A,prevLayout:O,prevStackOffset:F,prevMargin:q,prevChildren:C})}if(S!==w.prevDataKey||x!==w.prevData||I!==w.prevWidth||A!==w.prevHeight||O!==w.prevLayout||F!==w.prevStackOffset||!js(q,w.prevMargin)){var le=ate(b),re={chartX:w.chartX,chartY:w.chartY,isTooltipActive:w.isTooltipActive},oe=he(he({},nte(w,x,O)),{},{updateId:w.updateId+1}),$=he(he(he({},le),re),oe);return he(he(he({},$),h(he({props:b},$),w)),{},{prevDataKey:S,prevData:x,prevWidth:I,prevHeight:A,prevLayout:O,prevStackOffset:F,prevMargin:q,prevChildren:C})}if(!M1(C,w.prevChildren)){var z,R,N,U,B=qn(C,Qc),V=B&&(z=(R=B.props)===null||R===void 0?void 0:R.startIndex)!==null&&z!==void 0?z:G,Z=B&&(N=(U=B.props)===null||U===void 0?void 0:U.endIndex)!==null&&N!==void 0?N:J,Q=V!==G||Z!==J,ue=!(0,Hp.default)(x),ge=ue&&!Q?w.updateId:w.updateId+1;return he(he({updateId:ge},h(he(he({props:b},w),{},{updateId:ge,dataStartIndex:V,dataEndIndex:Z}),w)),{},{prevChildren:C,dataStartIndex:V,dataEndIndex:Z})}return null}),st(g,"renderActiveDot",function(b,w,S){var x;return(0,Zt.isValidElement)(b)?x=(0,Zt.cloneElement)(b,w):(0,hi.default)(b)?x=b(w):x=Zt.default.createElement(m_,w),Zt.default.createElement(nr,{className:"recharts-active-dot",ke
66y:S},x)});var y=(0,Zt.forwardRef)(function(w,S){return Zt.default.createElement(g,Zp({},w,{ref:S}))});return y.displayName=g.displayName,y};var wA=pte({chartName:"BarChart",GraphicalChild:fi,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:nd},{axisType:"yAxis",AxisComp:ad}],formatAxisMap:PQ});var pe=H(qe()),dNe={todo:"bg-gray-500/20 text-gray-400 border-gray-500/30",active:"bg-blue-500/20 text-blue-400 border-blue-500/30",close:"bg-amber-500/20 text-amber-400 border-amber-500/30",done:"bg-green-500/20 text-green-400 border-green-500/30"},fNe={todo:"Not Started",active:"In Progress",close:"Almost There",done:"Achieved! \u{1F389}"},pNe={chest:"#ef4444",back:"#3b82f6",shoulders:"#8b5cf6",arms:"#06b6d4",legs:"#22c55e",core:"#f97316",cardio:"#ec4899"};function mNe({onClose:e,onAdded:t}){let[r,n]=Ws.useState(!1),[a,o]=Ws.useState({title:"",category:"strength",status:"active",target:"",current:"",date:""});return(0,pe.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,pe.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:e}),(0,pe.jsxs)("div",{className:"relative bg-card border border-border rounded-2xl max-w-md w-full shadow-2xl p-6",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,pe.jsx)("h2",{className:"text-lg font-bold text-foreground",children:"Set New Goal"}),(0,pe.jsx)("button",{onClick:e,children:(0,pe.jsx)(aa,{className:"w-5 h-5 text-muted-foreground hover:text-foreground"})})]}),(0,pe.jsxs)("form",{onSubmit:async s=>{if(s.preventDefault(),!!a.title.trim()){n(!0);try{await BB({"/text":a.title,"/attributes/@glcat":a.category,"/attributes/@glsta":a.status,"/attributes/@gltar":a.target||void 0,"/attributes/@glcur":a.current||void 0,"/attributes/@gldea":a.date?new Date(a.date).toISOString():void 0}),tn.success("Goal set! You got this \u{1F3AF}"),t(),e()}catch{tn.error("Failed to create goal")}finally{n(!1)}}},className:"space-y-4",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Goal *"}),(0,pe.jsx)("input",{value:a.title,onChange:s=>o(l=>({...l,title:s.target.value})),placeholder:"e.g. Bench 225 lbs, Run 5K in 25 min",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary",required:!0})]}),(0,pe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Category"}),(0,pe.jsxs)("div",{className:"relative",children:[(0,pe.jsx)("select",{value:a.category,onChange:s=>o(l=>({...l,category:s.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none focus:outline-none focus:border-primary",children:[["strength","Strength"],["endurance","Endurance"],["weight","Weight"],["flexibility","Flexibility"],["habit","Habit"],["nutrition","Nutrition"]].map(([s,l])=>(0,pe.jsx)("option",{value:s,children:l},s))}),(0,pe.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Status"}),(0,pe.jsxs)("div",{className:"relative",children:[(0,pe.jsx)("select",{value:a.status,onChange:s=>o(l=>({...l,status:s.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none focus:outline-none focus:border-primary",children:[["todo","Not Started"],["active","In Progress"],["close","Almost There"],["done","Achieved!"]].map(([s,l])=>(0,pe.jsx)("option",{value:s,children:l},s))}),(0,pe.jsx)(hn,{className:"absolute right-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground pointer-events-none"})]})]})]}),(0,pe.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Target"}
66),(0,pe.jsx)("input",{value:a.target,onChange:s=>o(l=>({...l,target:s.target.value})),placeholder:"225 lbs",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Current"}),(0,pe.jsx)("input",{value:a.current,onChange:s=>o(l=>({...l,current:s.target.value})),placeholder:"185 lbs",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Target Date"}),(0,pe.jsx)("input",{type:"date",value:a.date,onChange:s=>o(l=>({...l,date:s.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsx)("button",{type:"submit",disabled:r,className:"w-full bg-primary text-primary-foreground py-2.5 rounded-xl font-medium text-sm hover:opacity-90 transition-opacity disabled:opacity-50",children:r?"Saving...":"Set Goal \u{1F3AF}"})]})]})]})}function hNe({onClose:e,onAdded:t}){let[r,n]=Ws.useState(!1),[a,o]=Ws.useState({exercise:"",weight:"",reps:"",category:"chest",date:new Date().toISOString().split("T")[0],notes:""});return(0,pe.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:[(0,pe.jsx)("div",{className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:e}),(0,pe.jsxs)("div",{className:"relative bg-card border border-border rounded-2xl max-w-md w-full shadow-2xl p-6",children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,pe.jsx)("h2",{className:"text-lg font-bold text-foreground",children:"Record PR \u{1F3C6}"}),(0,pe.jsx)("button",{onClick:e,children:(0,pe.jsx)(aa,{className:"w-5 h-5 text-muted-foreground hover:text-foreground"})})]}),(0,pe.jsxs)("form",{onSubmit:async s=>{if(s.preventDefault(),!!a.exercise.trim()){n(!0);try{await FB({"/text":`${a.exercise} PR`,"/attributes/@prexr":a.exercise,"/attributes/@prwgt":a.weight?Number(a.weight):void 0,"/attributes/@prrep":a.reps?Number(a.reps):void 0,"/attributes/@prcat":a.category,"/attributes/@prdat":a.date?new Date(a.date).toISOString():void 0,"/attributes/@prnte":a.notes||void 0}),tn.success("New PR recorded! \u{1F3C6}"),t(),e()}catch{tn.error("Failed to save PR")}finally{n(!1)}}},className:"space-y-4",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Exercise *"}),(0,pe.jsx)("input",{value:a.exercise,onChange:s=>o(l=>({...l,exercise:s.target.value})),placeholder:"e.g. Bench Press, Back Squat, Deadlift",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary",required:!0})]}),(0,pe.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Weight (lbs)"}),(0,pe.jsx)("input",{type:"number",value:a.weight,onChange:s=>o(l=>({...l,weight:s.target.value})),placeholder:"225",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Reps"}),(0,pe.jsx)("input",{type:"number",value:a.reps,onChange:s=>o(l=>({...l,reps:s.target.value})),placeholder:"1",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Category"}),(0,pe.jsxs)("div",{className:"relative",children:[(0,pe.jsx)("select",{value:a.category,onChange:s=>o(l=>({...l,category:s.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground appearance-none focus:outline-none focus:border-primary",children:[["chest","Chest"],["back","Back"],["shoulders","Shoulders"],["arms","Arms"],["legs","Legs"],["core","Core"],["cardio","Cardio"]].map(([s,l])=>(0,pe.jsx)("option",{value:s,children:l},s))}),(0,pe.jsx)(hn,{className:"absolute right-1 top-1/2 -translate-y-1/2 w-3 h-3 text-muted-foreground pointer-events-none"})]})]})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Date"}),(0,pe.jsx)("input",{type:"date",value:a.date,onChange:s=>o(l=>({...l,date:s.target.value})),className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsx)("label",{className:"text-sm font-medium text-foreground block mb-1.5",children:"Notes"}),(0,pe.jsx)("input",{value:a.notes,onChange:s=>o(l=>({...l,notes:s.target.value})),placeholder:"Context, how it felt...",className:"w-full bg-muted border border-border rounded-xl px-3 py-2.5 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:border-primary"})]}),(0,pe.jsx)("button",{type:"submit",disabled:r,className:"w-full bg-primary text-primary-foreground py-2.5 rounded-xl font-medium text-sm hover:opacity-90 transition-opacity disabled:opacity-50",children:r?"Saving...":"Record PR \u{1F3C6}"})]})]})]})}function _A(){let{nodes:e,loading:t,refetch:r}=u1(),{nodes:n,loading:a,refetch:o}=c1(),{nodes:i}=If(),[s,l]=Ws.useState(!1),[u,d]=Ws.useState(!1),f=Ws.useMemo(()=>{let g={},y=new Date;for(let b=7;b>=0;b--){let w=new Date(y);w.setDate(w.getDate()-b*7);let S=`W${w.getMonth()+1}/${w.getDate()}`;g[S]=0}
66return i.forEach(b=>{let w=new Date(b.fieldValues["/attributes/@wkdat"]||"");if(isNaN(w.getTime()))return;let S=Math.floor((y.getTime()-w.getTime())/(7*864e5));if(S>=0&&S<8){let x=Object.keys(g)[7-S];x&&(g[x]=(g[x]??0)+1)}}),Object.entries(g).map(([b,w])=>({week:b,count:w}))},[i]),m=async g=>{await Sg("ANfz4aWTvwuyQT3H",g),tn.success("Goal removed"),r()},h=async g=>{await Sg("CgbujbdSBbUkm63V",g),tn.success("PR removed"),o()};return(0,pe.jsxs)("div",{className:"p-6 max-w-4xl mx-auto space-y-8",children:[(0,pe.jsxs)("div",{className:"pt-2",children:[(0,pe.jsx)("h1",{className:"text-2xl font-bold text-foreground",children:"Progress"}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Goals, records, and trends"})]}),(0,pe.jsxs)("div",{className:"bg-card border border-border rounded-2xl p-5",children:[(0,pe.jsxs)("h2",{className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[(0,pe.jsx)(Ds,{className:"w-4 h-4 text-primary"})," Weekly Workout Frequency"]}),(0,pe.jsx)(c5,{width:"100%",height:180,children:(0,pe.jsxs)(wA,{data:f,margin:{top:4,right:4,bottom:0,left:-20},children:[(0,pe.jsx)(M_,{strokeDasharray:"3 3",stroke:"hsl(var(--border))",vertical:!1}),(0,pe.jsx)(nd,{dataKey:"week",tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1}),(0,pe.jsx)(ad,{tick:{fontSize:11,fill:"hsl(var(--muted-foreground))"},axisLine:!1,tickLine:!1,allowDecimals:!1}),(0,pe.jsx)(qa,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:"12px",fontSize:12},labelStyle:{color:"hsl(var(--foreground))"},itemStyle:{color:"hsl(var(--primary))"}}),(0,pe.jsx)(fi,{dataKey:"count",fill:"hsl(var(--primary))",radius:[6,6,0,0],name:"Workouts"})]})})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,pe.jsxs)("h2",{className:"font-semibold text-foreground flex items-center gap-2",children:[(0,pe.jsx)(Rs,{className:"w-4 h-4 text-primary"})," Fitness Goals"]}),(0,pe.jsxs)("button",{onClick:()=>l(!0),className:"flex items-center gap-1.5 bg-primary/10 text-primary border border-primary/20 px-3 py-1.5 rounded-xl text-sm font-medium hover:bg-primary/20 transition-colors",children:[(0,pe.jsx)(ni,{className:"w-4 h-4"})," Add Goal"]})]}),t?(0,pe.jsx)("div",{className:"grid sm:grid-cols-2 gap-3",children:Array.from({length:4}).map((g,y)=>(0,pe.jsx)("div",{className:"h-20 bg-card border border-border rounded-2xl animate-pulse"},y))}):e.length===0?(0,pe.jsxs)("div",{className:"text-center py-10 bg-card border border-border rounded-2xl",children:[(0,pe.jsx)(Rs,{className:"w-10 h-10 text-muted-foreground/20 mx-auto mb-3"}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:"No goals yet. Set your first one!"}),(0,pe.jsx)("button",{onClick:()=>l(!0),className:"mt-3 text-xs text-primary hover:underline",children:"Add goal \u2192"})]}):(0,pe.jsx)("div",{className:"grid sm:grid-cols-2 gap-3",children:e.map(g=>{let y=g.fieldValues["/attributes/@glsta"]??"todo",b=g.fieldValues["/attributes/@gldea"];return(0,pe.jsxs)("div",{className:"group bg-card border border-border rounded-2xl p-4 hover:border-primary/30 transition-colors",children:[(0,pe.jsxs)("div",{className:"flex items-start justify-between gap-2 mb-2",children:[(0,pe.jsx)("div",{className:"font-medium text-sm text-foreground",children:g.fieldValues["/text"]}),(0,pe.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,pe.jsx)("span",{className:et("text-xs px-2 py-0.5 rounded-full border font-medium",dNe[y]),children:fNe[y]}),(0,pe.jsx)("button",{onClick:()=>m(g.id),className:"opacity-0 group-hover:opacity-100 p-1 hover:text-destructive text-muted-foreground transition-all",children:(0,pe.jsx)(Xl,{className:"w-3.5 h-3.5"})})]})]}),(0,pe.jsxs)("div",{className:"flex flex-wrap gap-3 text-xs text-muted-foreground",children:[g.fieldValues["/attributes/@glcur"]&&(0,pe.jsxs)("span",{children:["Current: ",(0,pe.jsx)("span",{className:"text-foreground font-medium",children:g.fieldValues["/attributes/@glcur"]})]}),g.fieldValues["/attributes/@gltar"]&&(0,pe.jsxs)("span",{children:["Target: ",(0,pe.jsx)("span",{className:"text-foreground font-medium",children:g.fieldValues["/attributes/@gltar"]})]}),b&&(0,pe.jsxs)("span",{children:["By: ",new Date(b).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]})]},g.id)})})]}),(0,pe.jsxs)("div",{children:[(0,pe.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,pe.jsxs)("h2",{className:"font-semibold text-foreground flex items-center gap-2",children:[(0,pe.jsx)(Yl,{className:"w-4 h-4 text-amber-400"})," Personal Records"]}),(0,pe.jsxs)("button",{onClick:()=>d(!0),className:"flex items-center gap-1.5 bg-amber-500/10 text-amber-400 border border-amber-500/20 px-3 py-1.5 rounded-xl text-sm font-medium hover:bg-amber-500/20 transition-colors",children:[(0,pe.jsx)(ni,{className:"w-4 h-4"})," Add PR"]})]}),a?(0,pe.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3",children:Array.from({length:6}).map((g,y)=>(0,pe.jsx)("div",{className:"h-20 bg-card border border-border rounded-2xl animate-pulse"},y))}):n.length===0?(0,pe.jsxs)("div",{className:"text-center py-10 bg-card border border-border rounded-2xl",children:[(0,pe.jsx)(Yl,{className:"w-10 h-10 text-muted-foreground
66/20 mx-auto mb-3"}),(0,pe.jsx)("p",{className:"text-sm text-muted-foreground",children:"No PRs recorded yet. Crush one!"}),(0,pe.jsx)("button",{onClick:()=>d(!0),className:"mt-3 text-xs text-primary hover:underline",children:"Add PR \u2192"})]}):(0,pe.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3",children:n.map(g=>{let y=g.fieldValues["/attributes/@prcat"]??"chest",b=pNe[y]??"#6366f1";return(0,pe.jsxs)("div",{className:"group bg-card border border-border rounded-2xl p-4 hover:border-primary/30 transition-colors relative overflow-hidden",children:[(0,pe.jsx)("div",{className:"absolute top-0 left-0 w-1 h-full rounded-l-2xl",style:{backgroundColor:b}}),(0,pe.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,pe.jsxs)("div",{children:[(0,pe.jsx)("div",{className:"text-xs text-muted-foreground capitalize",children:g.fieldValues["/attributes/@prexr"]||g.fieldValues["/text"]}),(0,pe.jsx)("div",{className:"text-xl font-bold text-foreground mt-0.5",children:g.fieldValues["/attributes/@prwgt"]?`${g.fieldValues["/attributes/@prwgt"]} lbs`:"\u2014"}),g.fieldValues["/attributes/@prrep"]&&(0,pe.jsxs)("div",{className:"text-sm text-muted-foreground",children:["\xD7 ",g.fieldValues["/attributes/@prrep"]," reps"]}),g.fieldValues["/attributes/@prdat"]&&(0,pe.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:new Date(g.fieldValues["/attributes/@prdat"]).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]}),(0,pe.jsx)("button",{onClick:()=>
66h(g.id),className:"opacity-0 group-hover:opacity-100 p-1 hover:text-destructive text-muted-foreground transition-all shrink-0",children:(0,pe.jsx)(Xl,{className:"w-3.5 h-3.5"})})]})]},g.id)})})]}),s&&(0,pe.jsx)(mNe,{onClose:()=>l(!1),onAdded:r}),u&&(0,pe.jsx)(hNe,{onClose:()=>d(!1),onAdded:o})]})}var Dl=H(ve());var No=H(ve(),1);var Ute="vercel.ai.error",gNe=Symbol.for(Ute),mte,hte,Nt=class qte extends(hte=Error,mte=gNe,hte){constructor({name:t,message:r,cause:n}){super(r),this[mte]=!0,this.name=t,this.cause=n}static isInstance(t){return qte.hasMarker(t,Ute)}static hasMarker(t,r){let n=Symbol.for(r);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},Vte="AI_APICallError",Zte=`vercel.ai.error.${Vte}`,vNe=Symbol.for(Zte),gte,vte,$2t=class extends(vte=Nt,gte=vNe,vte){constructor({message:e,url:t,requestBodyValues:r,statusCode:n,responseHeaders:a,responseBody:o,cause:i,isRetryable:s=n!=null&&(n===408||n===409||n===429||n>=500),data:l}){super({name:Vte,message:e,cause:i}),this[gte]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=n,this.responseHeaders=a,this.responseBody=o,this.isRetryable=s,this.data=l}static isInstance(e){return Nt.hasMarker(e,Zte)}},Hte="AI_EmptyResponseBodyError",Gte=`vercel.ai.error.${Hte}`,yNe=Symbol.for(Gte),yte,bte,O2t=class extends(bte=Nt,yte=yNe,bte){constructor({message:e="Empty response body"}={}){super({name:Hte,message:e}),this[yte]=!0}static isInstance(e){return Nt.hasMarker(e,Gte)}};function Wte(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Kte="AI_InvalidArgumentError",Jte=`vercel.ai.error.${Kte}`,bNe=Symbol.for(Jte),xte,wte,Xte=class extends(wte=Nt,xte=bNe,wte){constructor({message:e,cause:t,argument:r}){super({name:Kte,message:e,cause:t}),this[xte]=!0,this.argument=r}static isInstance(e){return Nt.hasMarker(e,Jte)}},Yte="AI_InvalidPromptError",Qte=`vercel.ai.error.${Yte}`,xNe=Symbol.for(Qte),_te,Ste,M2t=class extends(Ste=Nt,_te=xNe,Ste){constructor({prompt:e,message:t,cause:r}){super({name:Yte,message:`Invalid prompt: ${t}`,cause:r}),this[_te]=!0,this.prompt=e}static isInstance(e){return Nt.hasMarker(e,Qte)}},ere="AI_InvalidResponseDataError",tre=`vercel.ai.error.${ere}`,wNe=Symbol.for(tre),kte,Ite,R2t=class extends(Ite=Nt,kte=wNe,Ite){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:ere,message:t}),this[kte]=!0,this.data=e}static isInstance(e){return Nt.hasMarker(e,tre)}},rre="AI_JSONParseError",nre=`vercel.ai.error.${rre}`,_Ne=Symbol.for(nre),Tte,Cte,kA=class extends(Cte=Nt,Tte=_Ne,Cte){constructor({text:e,cause:t}){super({name:rre,message:`JSON parsing failed: Text: ${e}. 67Error message: ${Wte(t)}`,cause:t}),this[Tte]=!0,this.text=e}static isInstance(e){return Nt.hasMarker(e,nre)}},are="AI_LoadAPIKeyError",ore=`vercel.ai.error.${are}`,SNe=Symbol.for(ore),Pte,Ate,D2t=class extends(Ate=Nt,Pte=SNe,Ate){constructor({message:e}){super({name:are,message:e}),this[Pte]=!0}static isInstance(e){return Nt.hasMarker(e,ore)}},ire="AI_LoadSettingError",sre=`vercel.ai.error.${ire}`,kNe=Symbol.for(sre),Ete,Lte,N2t=class extends(Lte=Nt,Ete=kNe,Lte){constructor({message:e}){super({name:ire,message:e}),this[Ete]=!0}static isInstance(e){return Nt.hasMarker(e,sre)}},lre="AI_NoContentGeneratedError",ure=`vercel.ai.error.${lre}`,INe=Symbol.for(ure),$te,Ote,z2t=class extends(Ote=Nt,$te=INe,Ote){constructor({message:e="No content generated."}={}){super({name:lre,message:e}),this[$te]=!0}static isInstance(e){return Nt.hasMarker(e,ure)}},cre="AI_NoSuchModelError",dre=`vercel.ai.error.${cre}`,TNe=Symbol.for(dre),Mte,Rte,j2t=class extends(Rte=Nt,Mte=TNe,Rte){constructor({errorName:e=cre,modelId:t,modelType:r,message:n=`No such ${r}: ${t}`}){super({name:e,message:n}),this[Mte]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return Nt.hasMarker(e,dre)}},fre="AI_TooManyEmbeddingValuesForCallError",pre=`vercel.ai.error.${fre}`,CNe=Symbol.for(pre),Dte,Nte,B2t=class extends(Nte=Nt,Dte=CNe,Nte){constructor(e){super({name:fre,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[Dte]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Nt.hasMarker(e,pre)}},mre="AI_TypeValidationError",hre=`vercel.ai.error.${mre}`,PNe=Symbol.for(hre),zte,jte,Xi=class SA extends(jte=Nt,zte=PNe,jte){constructor({value:t,cause:r,context:n}){let a="Type validation failed";if(n?.field&&(a+=` for ${n.field}`),n?.entityName||n?.entityId){a+=" (";let o=[];n.entityName&&o.push(n.entityName),n.entityId&&o.push(`id: "${n.entityId}"`),a+=o.join(", "),a+=")"}super({name:mre,message:`${a}: Value: ${JSON.stringify(t)}. 68Error message: ${Wte(r)}`,cause:r}),this[zte]=!0,this.value=t,this.context=n}static isInstance(t){return Nt.hasMarker(t,hre)}static wrap({value:t,cause:r,context:n}){var a,o,i;return SA.isInstance(r)&&r.value===t&&((a=r.context)==null?void 0:a.field)===n?.field&&((o=r.context)==null?void 0:o.entityName)===n?.entityName&&((i=r.context)==null?void 0:i.entity
68Id)===n?.entityId?r:new SA({value:t,cause:r,context:n})}},gre="AI_UnsupportedFunctionalityError",vre=`vercel.ai.error.${gre}`,ANe=Symbol.for(vre),Bte,Fte,F2t=class extends(Fte=Nt,Bte=ANe,Fte){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:gre,message:t}),this[Bte]=!0,this.functionality=e}static isInstance(e){return Nt.hasMarker(e,vre)}};var ENe=Object.freeze({status:"aborted"});function ae(e,t,r){function n(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=i.prototype,d=Object.keys(u);for(let f=0;f<d.length;f++){let m=d[f];m in s||(s[m]=u[m].bind(s))}}let a=r?.Parent??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function i(s){var l;let u=r?.Parent?new o:this;n(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Yi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},od=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},G_={};function An(e){return e&&Object.assign(G_,e),G_}var Ae={};Fn(Ae,{BIGINT_FORMAT_RANGES:()=>OA,Class:()=>TA,NUMBER_FORMAT_RANGES:()=>$A,aborted:()=>wu,allowsEval:()=>AA,assert:()=>RNe,assertEqual:()=>LNe,assertIs:()=>ONe,assertNever:()=>MNe,assertNotEqual:()=>$Ne,assignProp:()=>bu,base64ToUint8Array:()=>xre,base64urlToUint8Array:()=>YNe,cached:()=>Xp,captureStackTrace:()=>K_,cleanEnum:()=>XNe,cleanRegex:()=>xv,clone:()=>Xa,cloneDef:()=>NNe,createTransparentProxy:()=>qNe,defineLazy:()=>At,esc:()=>W_,escapeRegex:()=>Lo,extend:()=>HNe,finalizeIssue:()=>La,floatSafeRemainder:()=>CA,getElementAtPath:()=>zNe,getEnumValues:()=>bv,getLengthableOrigin:()=>Sv,getParsedType:()=>UNe,getSizableOrigin:()=>_v,hexToUint8Array:()=>eze,isObject:()=>id,isPlainObject:()=>xu,issue:()=>Yp,joinValues:()=>lt,jsonStringifyReplacer:()=>Jp,merge:()=>WNe,mergeDefs:()=>Ks,normalizeParams:()=>Fe,nullish:()=>yu,numKeys:()=>FNe,objectClone:()=>DNe,omit:()=>ZNe,optionalKeys:()=>LA,parsedType:()=>dt,partial:()=>KNe,pick:()=>VNe,prefixIssues:()=>Ya,primitiveTypes:()=>EA,promiseAllObject:()=>jNe,propertyKeyTypes:()=>wv,randomString:()=>BNe,required:()=>JNe,safeExtend:()=>GNe,shallowClone:()=>bre,slugify:()=>PA,stringifyPrimitive:()=>ut,uint8ArrayToBase64:()=>wre,uint8ArrayToBase64url:()=>QNe,uint8ArrayToHex:()=>tze,unwrapMessage:()=>yv});function LNe(e){return e}function $Ne(e){return e}function ONe(e){}function MNe(e){throw new Error("Unexpected value in exhaustive check")}function RNe(e){}function bv(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function lt(e,t="|"){return e.map(r=>ut(r)).join(t)}function Jp(e,t){return typeof t=="bigint"?t.toString():t}function Xp(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function yu(e){return e==null}function xv(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function CA(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),a=(n.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(n)){let l=n.match(/\d?e-(\d?)/);l?.[1]&&(a=Number.parseInt(l[1]))}let o=r>a?r:a,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var yre=Symbol("evaluating");function At(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==yre)return n===void 0&&(n=yre,n=r()),n},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function DNe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function bu(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ks(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function NNe(e){return Ks(e._zod.def)}function zNe(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function jNe(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let a={};for(let o=0;o<t.length;o++)a[t[o]]=n[o];return a})}function BNe(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function W_(e){return JSON.stringify(e)}function PA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var K_="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function id(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var AA=Xp(()=>
vendor: 102,030 bytes, lines 68-106
68{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function xu(e){if(id(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(id(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function bre(e){return xu(e)?{...e}:Array.isArray(e)?[...e]:e}function FNe(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var UNe=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},wv=new Set(["string","number","symbol"]),EA=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Lo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xa(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function Fe(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function qNe(e){let t;return new Proxy({},{get(r,n,a){return t??(t=e()),Reflect.get(t,n,a)},set(r,n,a,o){return t??(t=e()),Reflect.set(t,n,a,o)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,a){return t??(t=e()),Reflect.defineProperty(t,n,a)}})}function ut(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function LA(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var $A={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},OA={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function VNe(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Ks(e._zod.def,{get shape(){let i={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return bu(this,"shape",i),i},checks:[]});return Xa(e,o)}function ZNe(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Ks(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return bu(this,"shape",i),i},checks:[]});return Xa(e,o)}function HNe(e,t){if(!xu(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=Ks(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return bu(this,"shape",o),o}});return Xa(e,a)}function GNe(e,t){if(!xu(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ks(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return bu(this,"shape",n),n}});return Xa(e,r)}function WNe(e,t){let r=Ks(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return bu(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Xa(e,r)}function KNe(e,t,r){let a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=Ks(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return bu(this,"shape",l),l},checks:[]});return Xa(t,i)}function JNe(e,t,r){let n=Ks(t._zod.def,{get shape(){let a=t._zod.def.shape,o={...a};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(let i in a)o[i]=new e({type:"nonoptional",innerType:a[i]});return bu(this,"shape",o),o}});return Xa(t,n)}function wu(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Ya(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function yv(e){return typeof e=="string"?e:e?.message}function La(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let a=yv(e.inst?._zod.def?.error?.(e))??yv(t?.error?.(e))??yv(r.customError?.(e))??yv(r.localeError?.(e))??"Invalid input";n.message=a}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function _v(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Sv(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function dt(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Yp(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function XNe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function xre(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function wre(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function YNe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return xre(t+r)}function QNe(e){return wre(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function eze(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function tze(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var TA=class{constructor(...t){}};var _re=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Jp,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},J_=ae("$ZodError",_re),kv=ae("$ZodError",_re,{Parent:Error});function MA(e,t=r=>r.message){let r={},n=[];for(let a of e.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}function RA(e,t=r=>r.message){let r={_errors:[]},n=a=>{for(let o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,s=0;for(;s<o.path.length;){let l=o.path[s];s===o.path.length-1?(i[l]=i[l]||{_errors:[]},i[l]._errors.push(t(o))):i[l]=i[l]||{_errors:[]},i=i[l],s++}}};return n(e),r}var Iv=e=>(t,r,n,a)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Yi;if(i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>La(l,o,An())));throw K_(s,a?.callee),s}return i.value},DA=Iv(kv),Tv=e=>async(t,r,n,a)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>La(l,o,An())));throw K_(s,a?.callee),s}return i.value},NA=Tv(kv),Cv=e=>(t,r,n)=>{let a=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new Yi;return o.issues.length?{success:!1,error:new(e??J_)(o.issues.map(i=>La(i,a,An())))}:{success:!0,data:o.value}},Sre=Cv(kv),Pv=e=>async(t,r,n)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>La(i,a,An())))}:{success:!0,data:o.value}},kre=Pv(kv),Ire=e=>(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Iv(e)(t,r,a)};var Tre=e=>(t,r,n)=>Iv(e)(t,r,n);var Cre=e=>async(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Tv(e)(t,r,a)};var Pre=e=>async(t,r,n)=>Tv(e)(t,r,n);var Are=e=>(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Cv(e)(t,r,a)};var Ere=e=>(t,r,n)=>Cv(e)(t,r,n);var Lre=e=>async(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pv(e)(t,r,a)};var $re=e=>async(t,r,n)=>Pv(e)(t,r,n);var Qi={};Fn(Qi,{base64:()=>QA,base64url:()=>X_,bigint:()=>oE,boolean:()=>sE,browserEmail:()=>cze,cidrv4:()=>XA,cidrv6:()=>YA,cuid:()=>zA,cuid2:()=>jA,date:()=>tE,datetime:()=>nE,domain:()=>pze,duration:()=>VA,e164:()=>eE,email:()=>HA,emoji:()=>GA,extendedDuration:()=>nze,guid:()=>ZA,hex:()=>mze,hostname:()=>fze,html5Email:()=>sze,idnEmail:()=>uze,integer:()=>iE,ipv4:()=>WA,ipv6:()=>KA,ksuid:()=>UA,lowercase:()=>cE,mac:()=>JA,md5_base64:()=>gze,md5_base64url:()=>vze,md5_hex:()=>hze,nanoid:()=>qA,null:()=>lE,number:()=>Y_,rfc5322Email:()=>lze,sha1_base64:()=>bze,sha1_base64url:()=>xze,sha1_hex:()=>yze,sha256_base64:()=>_ze,sha256_base64url:()=>Sze,sha256_hex:()=>wze,sha384_base64:()=>Ize,sha384_base64url:()=>Tze,sha384_hex:()=>kze,sha512_base64:()=>Pze,sha512_base64url:()=>Aze,sha512_hex:()=>Cze,string:()=>aE,time:()=>rE,ulid:()=>BA,undefined:()=>uE,unicodeEmail:()=>Ore,uppercase:()=>dE,uuid:()=>sd,uuid4:()=>aze,uuid6:()=>oze,uuid7:()=>ize,xid:()=>FA});var zA=/^[cC][^\s-]{8,}$/,jA=/^[0-9a-z]+$/,BA=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FA=/^[0-9a-vA-V]{20}$/,UA=/^[A-Za-z0-9]{27}$/,qA=/^[a-zA-Z0-9_-]{21}$/,VA=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,nze=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ZA=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,sd=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,aze=sd(4),oze=sd(6),ize=sd(7),HA=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,sze=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,lze=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ore=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,uze=Ore,cze=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,dze="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function GA(){return new RegExp(dze,"u")}var WA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,KA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,JA=e=>{let t=Lo(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},XA=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,YA=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,QA=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,X_=/^[A-Za-z0-9_-]*$/,fze=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,pze=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,eE=/^\+[1-9]\d{6,14}$/,Mre="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tE=new RegExp(`^${Mre}$`);function Rre(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function rE(e){return new RegExp(`^${Rre(e)}$`)}function nE(e){let t=Rre({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Mre}T(?:${n})$`)}var aE=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},oE=/^-?\d+n?$/,iE=/^-?\d+$/,Y_=/^-?\d+(?:\.\d+)?$/,sE=/^(?:true|false)$/i,lE=/^null$/i;var uE=/^undefined$/i;var cE=/^[^A-Z]*$/,dE=/^[^a-z]*$/,mze=/^[0-9a-fA-F]*$/;function Av(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ev(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var hze=/^[0-9a-fA-F]{32}$/,gze=Av(22,"=="),vze=Ev(22),yze=/^[0-9a-fA-F]{40}$/,bze=Av(27,"="),xze=Ev(27),wze=/^[0-9a-fA-F]{64}$/,_ze=Av(43,"="),Sze=Ev(43),kze=/^[0-9a-fA-F]{96}$/,Ize=Av(64,""),Tze=Ev(64),Cze=/^[0-9a-fA-F]{128}$/,Pze=Av(86,"=="),Aze=Ev(86);var yr=ae("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Nre={number:"number",bigint:"bigint",object:"date"},fE=ae("$ZodCheckLessThan",(e,t)=>{yr.init(e,t);let r=Nre[typeof t.value];e._zod.onattach.push(n=>{let a=n._zod.bag,o=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),pE=ae("$ZodCheckGreaterThan",(e,t)=>{yr.init(e,t);let r=Nre[typeof t.value];e._zod.onattach.push(n=>{let a=n._zod.bag,o=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zre=ae("$ZodCheckMultipleOf",(e,t)=>{yr.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):CA(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),jre=ae("$ZodCheckNumberFormat",(e,t)=>{yr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[a,o]=$A[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=a,s.maximum=o,r&&(s.pattern=iE)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}s<a&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>o&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Bre=ae("$ZodCheckBigIntFormat",(e,t)=>{yr.init(e,t);let[r,n]=OA[t.format];e._zod.onattach.push(a=>{let o=a._zod.bag;o.format=t.format,o.minimum=r,o.maximum=n}),e._zod.check=a=>{let o=a.value;o<r&&a.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>n&&a.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),Fre=ae("$ZodCheckMaxSize",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let a=n.value;a.size<=t.maximum||n.issues.push({origin:_v(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Ure=ae("$ZodCheckMinSize",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let a=n.value;a.size>=t.minimum||n.issues.push({origin:_v(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),qre=ae("$ZodCheckSizeEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=n=>{let a=n.value,o=a.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:_v(a),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Vre=ae("$ZodCheckMaxLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let a=n.value;if(a.length<=t.maximum)return;let i=Sv(a);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Zre=ae("$ZodCheckMinLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let a=n.value;if(a.length>=t.minimum)return;let i=Sv(a);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Hre=ae("$ZodCheckLengthEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!yu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=n=>{let a=n.value,o=a.length;if(o===t.length)return;let i=Sv(a),s=o>t.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Lv=ae("$ZodCheckStringFormat",(e,t)=>{var r,n;yr.init(e,t),e._zod.onattach.push(a=>{let o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Gre=ae("$ZodCheckRegex",(e,t)=>{Lv.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Wre=ae("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=cE),Lv.init(e,t)}),Kre=ae("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=dE),Lv.init(e,t)}),Jre=ae("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);let r=Lo(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(a=>{let o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),Xre=ae("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);let r=new RegExp(`^${Lo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Yre=ae("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);let r=new RegExp(`.*${Lo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Dre(e,t,r){e.issues.length&&t.issues.push(...Ya(r,e.issues))}var Qre=ae("$ZodCheckProperty",(e,t)=>{yr.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(a=>Dre(a,r,t.property));Dre(n,r,t.property)}}),ene=ae("$ZodCheckMimeType",(e,t)=>{yr.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),tne=ae("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Q_=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(` 69`).filter(i=>i),a=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,a=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,a.join(` 70`))}};var nne={major:4,minor:3,patch:6};var vt=ae("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=nne;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let a of n)for(let o of a._zod.onattach)o(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let a=(i,s,l)=>{let u=wu(i),d;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(i))continue}else if(u)continue;let m=i.issues.length,h=f._zod.check(i);if(h instanceof Promise&&l?.async===!1)throw new Yi;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,i.issues.length!==m&&(u||(u=wu(i,m)))});else{if(i.issues.length===m)continue;u||(u=wu(i,m))}}return d?d.then(()=>i):i},o=(i,s,l)=>{if(wu(i))return i.aborted=!0,i;let u=a(s,n,l);if(u instanceof Promise){if(l.async===!1)throw new Yi;return u.then(d=>e._zod.parse(d,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,i,s)):o(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new Yi;return l.then(u=>a(u,n,s))}return a(l,n,s)}}At(e,"~standard",()=>({validate:a=>{try{let o=Sre(e,a);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return kre(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Qp=ae("$ZodString",(e,t)=>{vt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??aE(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),cr=ae("$ZodStringFormat",(e,t)=>{Lv.init(e,t),Qp.init(e,t)}),hne=ae("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=ZA),cr.init(e,t)}),gne=ae("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=sd(n))}else t.pattern??(t.pattern=sd());cr.init(e,t)}),vne=ae("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=HA),cr.init(e,t)}),yne=ae("$ZodURL",(e,t)=>{cr.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),bne=ae("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=GA()),cr.init(e,t)}),xne=ae("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=qA),cr.init(e,t)}),wne=ae("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=zA),cr.init(e,t)}),_ne=ae("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=jA),cr.init(e,t)}),Sne=ae("$ZodULID",(e,t)=>{t.pattern??(t.pattern=BA),cr.init(e,t)}),kne=ae("$ZodXID",(e,t)=>{t.pattern??(t.pattern=FA),cr.init(e,t)}),Ine=ae("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=UA),cr.init(e,t)}),Tne=ae("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=nE(t)),cr.init(e,t)}),Cne=ae("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tE),cr.init(e,t)}),Pne=ae("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=rE(t)),cr.init(e,t)}),Ane=ae("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=VA),cr.init(e,t)}),Ene=ae("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=WA),cr.init(e,t),e._zod.bag.format="ipv4"}),Lne=ae("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=KA),cr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),$ne=ae("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=JA(t.delimiter)),cr.init(e,t),e._zod.bag.format="mac"}),One=ae("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=XA),cr.init(e,t)}),Mne=ae("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=YA),cr.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[a,o]=n;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Rne(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Dne=ae("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=QA),cr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Rne(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Eze(e){if(!X_.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Rne(r)}var Nne=ae("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=X_),cr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Eze(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),zne=ae("$ZodE164",(e,t)=>{t.pattern??(t.pattern=eE),cr.init(e,t)});function Lze(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}var jne=ae("$ZodJWT",(e,t)=>{cr.init(e,t),e._zod.check=r=>{Lze(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Bne=ae("$ZodCustomStringFormat",(e,t)=>{cr.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),hE=ae("$ZodNumber",(e,t)=>{vt.init(e,t),e._zod.pattern=e._zod.bag.pattern??Y_,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;let o=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...o?{received:o}:{}}),r}}),Fne=ae("$ZodNumberFormat",(e,t)=>{jre.init(e,t),hE.init(e,t)}),oS=ae("$ZodBoolean",(e,t)=>{vt.init(e,t),e._zod.pattern=sE,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let a=r.value;return typeof a=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),r}}),gE=ae("$ZodBigInt",(e,t)=>{vt.init(e,t),e._zod.pattern=oE,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Une=ae("$ZodBigIntFormat",(e,t)=>{Bre.init(e,t),gE.init(e,t)}),qne=ae("$ZodSymbol",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return typeof a=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:a,inst:e}),r}}),Vne=ae("$ZodUndefined",(e,t)=>{vt.init(e,t),e._zod.pattern=uE,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:a,inst:e}),r}}),Zne=ae("$ZodNull",(e,t)=>{vt.init(e,t),e._zod.pattern=lE,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let a=r.value;return a===null||r.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),r}}),Hne=ae("$ZodAny",(e,t)=>{vt.init(e,t),e._zod.parse=r=>r}),Gne=ae("$ZodUnknown",(e,t)=>{vt.init(e,t),e._zod.parse=r=>r}),Wne=ae("$ZodNever",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Kne=ae("$ZodVoid",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"void",code:"invalid_type",input:a,inst:e}),r}}),Jne=ae("$ZodDate",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let a=r.value,o=a instanceof Date;return o&&!Number.isNaN(a.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:a,...o?{received:"Invalid Date"}:{},inst:e}),r}});function ane(e,t,r){e.issues.length&&t.issues.push(...Ya(r,e.issues)),t.value[r]=e.value}var Xne=ae("$ZodArray",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);let o=[];for(let i=0;i<a.length;i++){let s=a[i],l=t.element._zod.run({value:s,issues:[]},n);l instanceof Promise?o.push(l.then(u=>ane(u,r,i))):ane(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function aS(e,t,r,n,a){if(e.issues.length){if(a&&!(r in n))return;t.issues.push(...Ya(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function Yne(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=LA(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Qne(e,t,r,n,a,o){let i=[],s=a.keySet,l=a.catchall._zod,u=l.def.type,d=l.optout==="optional";for(let f in t){if(s.has(f))continue;if(u==="never"){i.push(f);continue}let m=l.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(h=>aS(h,r,f,t,d))):aS(m,r,f,t,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var $ze=ae("$ZodObject",(e,t)=>{if(vt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let n=Xp(()=>Yne(t));At(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(let f of d.values)l[u].add(f)}}return l});let a=id,o=t.catchall,i;e._zod.parse=(s,l)=>{i??(i=n.value);let u=s.value;if(!a(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let d=[],f=i.shape;for(let m of i.keys){let h=f[m],g=h._zod.optout==="optional",y=h._zod.run({value:u[m],issues:[]},l);y instanceof Promise?d.push(y.then(b=>aS(b,s,m,u,g))):aS(y,s,m,u,g)}return o?Qne(d,u,s,l,n.value,e):d.length?Promise.all(d).then(()=>s):s}}),eae=ae("$ZodObjectJIT",(e,t)=>{$ze.init(e,t);let r=e._zod.parse,n=Xp(()=>Yne(t)),a=m=>{let h=new Q_(["shape","payload","ctx"]),g=n.value,y=x=>{let C=W_(x);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),w=0;for(let x of g.keys)b[x]=`key_${w++}`;h.write("const newResult = {};");for(let x of g.keys){let C=b[x],I=W_(x),O=m[x]?._zod?.optout==="optional";h.write(`const ${C} = ${y(x)};`),O?h.write(` 71 if (${C}.issues.length) { 72 if (${I} in input) { 73 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 74 ...iss, 75 path: iss.path ? [${I}, ...iss.path] : [${I}] 76 }))); 77 } 78 } 79 80 if (${C}.value === undefined) { 81 if (${I} in input) { 82 newResult[${I}] = undefined; 83 } 84 } else { 85 newResult[${I}] = ${C}.value; 86 } 87 88 `):h.write(` 89 if (${C}.issues.length) { 90 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 91 ...iss, 92 path: iss.path ? [${I}, ...iss.path] : [${I}] 93 }))); 94 } 95 96 if (${C}.value === undefined) { 97 if (${I} in input) { 98 newResult[${I}] = undefined; 99 } 100 } else { 101 newResult[${I}] = ${C}.value; 102 } 103 104 `)}h.write("payload.value = newResult;"),h.write("return payload;");let S=h.compile();return(x,C)=>S(m,x,C)},o,i=id,s=!G_.jitless,u=s&&AA.value,d=t.catchall,f;e._zod.parse=(m,h)=>{f??(f=n.value);let g=m.value;return i(g)?s&&u&&h?.async===!1&&h.jitless!==!0?(o||(o=a(t.shape)),m=o(m,h),d?Qne([],g,m,h,f,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function one(e,t,r,n){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let a=e.filter(o=>!wu(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>La(i,n,An())))}),t)}var iS=ae("$ZodUnion",(e,t)=>{vt.init(e,t),At(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),At(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),At(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),At(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>xv(o.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(r)return n(a,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:a.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(l=>one(l,a,e,o)):one(s,a,e,o)}});function ine(e,t,r,n){let a=e.filter(o=>o.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>La(i,n,An())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var tae=ae("$ZodXor",(e,t)=>{iS.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(r)return n(a,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:a.value,issues:[]},o);u instanceof Promise?(s.push(u),i=!0):s.push(u)}return i?Promise.all(s).then(l=>ine(l,a,e,o)):ine(s,a,e,o)}}),rae=ae("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,iS.init(e,t);let r=e._zod.parse;At(e._zod,"propValues",()=>{let a={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,l]of Object.entries(i)){a[s]||(a[s]=new Set);for(let u of l)a[s].add(u)}}return a});let n=Xp(()=>{let a=t.options,o=new Map;for(let i of a){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,i)}}return o});e._zod.parse=(a,o)=>{let i=a.value;if(!id(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let s=n.value.get(i?.[t.discriminator]);return s?s._zod.run(a,o):t.unionFallback?r(a,o):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),a)}}),nae=ae("$ZodIntersection",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value,o=t.left._zod.run({value:a,issues:[]},n),i=t.right._zod.run({value:a,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>sne(r,l,u)):sne(r,o,i)}});function mE(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xu(e)&&xu(t)){let r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),a={...e,...t};for(let o of n){let i=mE(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};a[o]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let a=e[n],o=t[n],i=mE(a,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function sne(e,t,r){let n=new Map,a;for(let s of t.issues)if(s.code==="unrecognized_keys"){a??(a=s);for(let l of s.keys)n.has(l)||n.set(l,{}),n.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)n.has(l)||n.set(l,{}),n.get(l).r=!0;else e.issues.push(s);let o=[...n].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&a&&e.issues.push({...a,keys:o}),wu(e))return e;let i=mE(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var vE=ae("$ZodTuple",(e,t)=>{vt.init(e,t);let r=t.items;e._zod.parse=(n,a)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let d=o.length>r.length,f=o.length<l-1;if(d||f)return n.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let d of r){if(u++,u>=o.length&&u>=l)continue;let f=d._zod.run({value:o[u],issues:[]},a);f instanceof Promise?i.push(f.then(m=>eS(m,n,u))):eS(f,n,u)}if(t.rest){let d=o.slice(r.length);for(let f of d){u++;let m=t.rest._zod.run({value:f,issues:[]},a);m instanceof Promise?i.push(m.then(h=>eS(h,n,u))):eS(m,n,u)}}return i.length?Promise.all(i).then(()=>n):n}});function eS(e,t,r){e.issues.length&&t.issues.push(...Ya(r,e.issues)),t.value[r]=e.value}var aae=ae("$ZodRecord",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!xu(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let d=t.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...Ya(u,f.issues)),r.value[u]=f.value})):(d.issues.length&&r.issues.push(...Ya(u,d.issues)),r.value[u]=d.value)}let l;for(let u in a)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(a)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Y_.test(s)&&l.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?r.value[s]=a[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>La(f,n,An())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:a[s],issues:[]},n);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...Ya(s,f.issues)),r.value[l.value]=f.value})):(d.issues.length&&r.issues.push(...Ya(s,d.issues)),r.value[l.value]=d.value)}}return o.length?Promise.all(o).then(()=>r):r}}),oae=ae("$ZodMap",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of a){let l=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([d,f])=>{lne(d,f,r,i,a,e,n)})):lne(l,u,r,i,a,e,n)}return o.length?Promise.all(o).then(()=>r):r}});function lne(e,t,r,n,a,o,i){e.issues.length&&(wv.has(typeof n)?r.issues.push(...Ya(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:a,inst:o,issues:e.issues.map(s=>La(s,i,An()))})),t.issues.length&&(wv.has(typeof n)?r.issues.push(...Ya(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:a,inst:o,key:n,issues:t.issues.map(s=>La(s,i,An()))})),r.value.set(e.value,t.value)}var iae=ae("$ZodSet",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of a){let s=t.valueType._zod.run({value:i,issues:[]},n);s instanceof Promise?o.push(s.then(l=>une(l,r))):une(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function une(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var sae=ae("$ZodEnum",(e,t)=>{vt.init(e,t);let r=bv(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(a=>wv.has(typeof a)).map(a=>typeof a=="string"?Lo(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{let i=a.value;return n.has(i)||a.issues.push({code:"invalid_value",values:r,input:i,inst:e}),a}}),lae=ae("$ZodLiteral",(e,t)=>{if(vt.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Lo(n):n?Lo(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,a)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),uae=ae("$ZodFile",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return a instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),r}}),cae=ae("$ZodTransform",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new od(e.constructor.name);let a=t.transform(r.value,r);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(r.value=i,r));if(a instanceof Promise)throw new Yi;return r.value=a,r}});function cne(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var yE=ae("$ZodOptional",(e,t)=>{vt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",At(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),At(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${xv(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>cne(o,r.value)):cne(a,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),dae=ae("$ZodExactOptional",(e,t)=>{yE.init(e,t),At(e._zod,"values",()=>t.innerType._zod.values),At(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),fae=ae("$ZodNullable",(e,t)=>{vt.init(e,t),At(e._zod,"optin",()=>t.innerType._zod.optin),At(e._zod,"optout",()=>t.innerType._zod.optout),At(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${xv(r.source)}|null)$`):void 0}),At(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),pae=ae("$ZodDefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",At(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>dne(o,t)):dne(a,t)}});function dne(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var mae=ae("$ZodPrefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",At(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),hae=ae("$ZodNonOptional",(e,t)=>{vt.init(e,t),At(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>fne(o,e)):fne(a,e)}});function fne(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var gae=ae("$ZodSuccess",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new od("ZodSuccess");let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>(r.value=o.issues.length===0,r)):(r.value=a.issues.length===0,r)}}),vae=ae("$ZodCatch",(e,t)=>{vt.init(e,t),At(e._zod,"optin",()=>t.innerType._zod.optin),At(e._zod,"optout",()=>t.innerType._zod.optout),At(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>La(i,n,An()))},input:r.value}),r.issues=[]),r)):(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>La(o,n,An()))},input:r.value}),r.issues=[]),r)}}),yae=ae("$ZodNaN",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),bae=ae("$ZodPipe",(e,t)=>{vt.init(e,t),At(e._zod,"values",()=>t.in._zod.values),At(e._zod,"optin",()=>t.in._zod.optin),At(e._zod,"optout",()=>t.out._zod.optout),At(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>tS(i,t.in,n)):tS(o,t.in,n)}let a=t.in._zod.run(r,n);return a instanceof Promise?a.then(o=>tS(o,t.out,n)):tS(a,t.out,n)}});function tS(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var sS=ae("$ZodCodec",(e,t)=>{vt.init(e,t),At(e._zod,"values",()=>t.in._zod.values),At(e._zod,"optin",()=>t.in._zod.optin),At(e._zod,"optout",()=>t.out._zod.optout),At(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>rS(i,t,n)):rS(o,t,n)}else{let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>rS(i,t,n)):rS(o,t,n)}}});function rS(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(o=>nS(e,o,t.out,r)):nS(e,a,t.out,r)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(o=>nS(e,o,t.in,r)):nS(e,a,t.in,r)}}function nS(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var xae=ae("$ZodReadonly",(e,t)=>{vt.init(e,t),At(e._zod,"propValues",()=>t.innerType._zod.propValues),At(e._zod,"values",()=>t.innerType._zod.values),At(e._zod,"optin",()=>t.innerType?._zod?.optin),At(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(pne):pne(a)}});function pne(e){return e.value=Object.freeze(e.value),e}var wae=ae("$ZodTemplateLiteral",(e,t)=>{vt.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let a=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;r.push(a.slice(o,i))}else if(n===null||EA.has(typeof n))r.push(Lo(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,a)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),_ae=ae("$ZodFunction",(e,t)=>(vt.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let a=e._def.input?DA(e._def.input,n):n,o=Reflect.apply(r,this,a);return e._def.output?DA(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let a=e._def.input?await NA(e._def.input,n):n,o=await Reflect.apply(r,this,a);return e._def.output?await NA(e._def.output,o):o}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new vE({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),Sae=ae("$ZodPromise",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(a=>t.innerType._zod.run({value:a,issues:[]},n))}),kae=ae("$ZodLazy",(e,t)=>{vt.init(e,t),At(e._zod,"innerType",()=>t.getter()),At(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),At(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),At(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),At(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),Iae=ae("$ZodCustom",(e,t)=>{yr.init(e,t),vt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,a=t.fn(n);if(a instanceof Promise)return a.then(o=>mne(o,r,n,e));mne(a,r,n,e)}});function mne(e,t,r,n){if(!e){let a={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),t.issues.push(Yp(a))}}var Mze=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(a){return e[a]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=dt(a.input),s=n[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${ut(a.values[0])}`:`Invalid option: expected one of ${lt(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Too big: expected ${a.origin??"value"} to have ${o}${a.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Too small: expected ${a.origin} to have ${o}${a.minimum.toString()} ${i.unit}`:`Too small: expected ${a.origin} to be ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${lt(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function bE(){return{localeError:Mze()}}var Cae;var xE=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let a={...n,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Pae(){return new xE}(Cae=globalThis).__zod_globalRegistry??(Cae.__zod_globalRegistry=Pae());var $a=globalThis.__zod_globalRegistry;function Aae(e,t){return new e({type:"string",...Fe(t)})}function wE(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Fe(t)})}function lS(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Fe(t)})}function _E(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Fe(t)})}function SE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Fe(t)})}function kE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Fe(t)})}function IE(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Fe(t)})}function uS(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Fe(t)})}function TE(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Fe(t)})}function CE(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Fe(t)})}function PE(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Fe(t)})}function AE(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Fe(t)})}function EE(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Fe(t)})}function LE(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Fe(t)})}function $E(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Fe(t)})}function OE(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Fe(t)})}function ME(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Fe(t)})}function Eae(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...Fe(t)})}function RE(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Fe(t)})}function DE(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Fe(t)})}function NE(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Fe(t)})}function zE(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Fe(t)})}function jE(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Fe(t)})}function BE(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Fe(t)})}function Lae(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Fe(t)})}function $ae(e,t){return new e({type:"string",format:"date",check:"string_format",...Fe(t)})}function Oae(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Fe(t)})}function Mae(e,t){return new e({type:"string",format:"duration",check:"string_format",...Fe(t)})}function Rae(e,t){return new e({type:"number",checks:[],...Fe(t)})}function Dae(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...Fe(t)})}function Nae(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...Fe(t)})}function zae(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...Fe(t)})}function jae(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...Fe(t)})}function Bae(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...Fe(t)})}function Fae(e,t){return new e({type:"boolean",...Fe(t)})}function Uae(e,t){return new e({type:"bigint",...Fe(t)})}function qae(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...Fe(t)})}function Vae(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...Fe(t)})}function Zae(e,t){return new e({type:"symbol",...Fe(t)})}function Hae(e,t){return new e({type:"undefined",...Fe(t)})}function Gae(e,t){return new e({type:"null",...Fe(t)})}function Wae(e){return new e({type:"any"})}function Kae(e){return new e({type:"unknown"})}function Jae(e,t){return new e({type:"never",...Fe(t)})}function Xae(e,t){return new e({type:"void",...Fe(t)})}function Yae(e,t){return new e({type:"date",...Fe(t)})}function Qae(e,t){return new e({type:"nan",...Fe(t)})}function _u(e,t){return new fE({check:"less_than",...Fe(t),value:e,inclusive:!1})}function gi(e,t){return new fE({check:"less_than",...Fe(t),value:e,inclusive:!0})}function Su(e,t){return new pE({check:"greater_than",...Fe(t),value:e,inclusive:!1})}function Qa(e,t){return new pE({check:"greater_than",...Fe(t),value:e,inclusive:!0})}function eoe(e){return Su(0,e)}function toe(e){return _u(0,e)}function roe(e){return gi(0,e)}function noe(e){return Qa(0,e)}function em(e,t){return new zre({check:"multiple_of",...Fe(t),value:e})}function tm(e,t){return new Fre({check:"max_size",...Fe(t),maximum:e})}function ku(e,t){return new Ure({check:"min_size",...Fe(t),minimum:e})}function $v(e,t){return new qre({check:"size_equals",...Fe(t),size:e})}function Ov(e,t){return new Vre({check:"max_length",...Fe(t),maximum:e})}function ld(e,t){return new Zre({check:"min_length",...Fe(t),minimum:e})}function Mv(e,t){return new Hre({check:"length_equals",...Fe(t),length:e})}function cS(e,t){return new Gre({check:"string_format",format:"regex",...Fe(t),pattern:e})}function dS(e){return new Wre({check:"string_format",format:"lowercase",...Fe(e)})}function fS(e){return new Kre({check:"string_format",format:"uppercase",...Fe(e)})}function pS(e,t){return new Jre({check:"string_format",format:"includes",...Fe(t),includes:e})}function mS(e,t){return new Xre({check:"string_format",format:"starts_with",...Fe(t),prefix:e})}function hS(e,t){return new Yre({check:"string_format",format:"ends_with",...Fe(t),suffix:e})}function aoe(e,t,r){return new Qre({check:"property",property:e,schema:t,...Fe(r)})}function gS(e,t){return new ene({check:"mime_type",mime:e,...Fe(t)})}function Js(e){return new tne({check:"overwrite",tx:e})}function vS(e){return Js(t=>t.normalize(e))}function yS(){return Js(e=>e.trim())}function bS(){return Js(e=>e.toLowerCase())}function xS(){return Js(e=>e.toUpperCase())}function wS(){return Js(e=>PA(e))}function ooe(e,t,r){return new e({type:"array",element:t,...Fe(r)})}function ioe(e,t){return new e({type:"file",...Fe(t)})}function soe(e,t,r){let n=Fe(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function loe(e,t,r){return new e({type:"custom",check:"custom",fn:t,...Fe(r)})}function uoe(e){let t=zze(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(Yp(n,r.value,t._zod.def));else{let a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),r.issues.push(Yp(a))}},e(r.value,r)));return t}function zze(e,t){let r=new yr({check:"custom",...Fe(t)});return r._zod.check=e,r}function coe(e){let t=new yr({check:"describe"});return t._zod.onattach=[r=>{let n=$a.get(r)??{};$a.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function doe(e){let t=new yr({check:"meta"});return t._zod.onattach=[r=>{let n=$a.get(r)??{};$a.add(r,{...n,...e})}],t._zod.check=()=>{},t}function foe(e,t){let r=Fe(t),n=r.truthy??["true","1","yes","on","y","enabled"],a=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(h=>typeof h=="string"?h.toLowerCase():h),a=a.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(n),i=new Set(a),s=e.Codec??sS,l=e.Boolean??oS,u=e.String??Qp,d=new u({type:"string",error:r.error}),f=new l({type:"boolean",error:r.error}),m=new s({type:"pipe",in:d,out:f,transform:((h,g)=>{let y=h;return r.case!=="sensitive"&&(y=y.toLowerCase()),o.has(y)?!0:i.has(y)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((h,g)=>h===!0?n[0]||"true":a[0]||"false"),error:r.error});return m}function Rv(e,t,r,n={}){let a=Fe(n),o={...Fe(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...a};return r instanceof RegExp&&(o.pattern=r),new e(o)}function rm(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??$a,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ar(e,t,r={path:[],schemaPath:[]}){var n;let a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{let m=i.schema,h=t.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(e,t,m,d)}let f=e._zod.parent;f&&(i.ref||(i.ref=f),ar(f,t,d),t.seen.get(f).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),t.io==="input"&&da(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function nm(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=n.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,i[0])}}let a=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,m=e.external.uri??(g=>g);if(f)return{ref:m(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${m("__shared")}#/${s}/${h}`}}if(i[1]===r)return{ref:"#"};let u=`#/${s}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=a(i);s.def={...s.schema},u&&(s.defId=u);let d=s.schema;for(let f in d)delete d[f];d.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 105 106Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let s=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(s.cycle){o(i);continue}if(s.count>1&&e.reused==="ref"){o(i);continue}}}function am(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let s=e.seen.get(i);if(s.ref===null)return;let l=s.def??s.schema,u={...l},d=s.ref;if(s.ref=null,d){n(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,u),i._zod.parent===d)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&m.def)for(let y in l)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(l[y])===JSON.stringify(m.def[y])&&delete l[y]}let f=i._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}e.override({zodSchema:i,jsonSchema:l,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())n(i[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,r.def??r.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Dv(t,"input",e.processors),output:Dv(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function da(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return da(n.element,r);if(n.type==="set")return da(n.valueType,r);if(n.type==="lazy")return da(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return da(n.innerType,r);if(n.type==="intersection")return da(n.left,r)||da(n.right,r);if(n.type==="record"||n.type==="map")return da(n.keyType,r)||da(n.valueType,r);if(n.type==="pipe")return da(n.in,r)||da(n.out,r);if(n.type==="object"){for(let a in n.shape)if(da(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(da(a,r))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(da(a,r))return!0;return!!(n.rest&&da(n.rest,r))}return!1}var poe=(e,t={})=>r=>{let n=rm({...r,processors:t});return ar(e,n),nm(n,e),am(n,e)},Dv=(e,t,r={})=>n=>{let{libraryOptions:a,target:o}=n??{},i=rm({...a??{},target:o,io:t,processors:r});return ar(e,i),nm(i,e),am(i,e)};var jze={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},UE=(e,t,r,n)=>{let a=r;a.type="string";let{minimum:o,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof i=="number"&&(a.maxLength=i),s&&(a.format=jze[s]??s,a.format===""&&delete a.format,s==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let d=[...l];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},qE=(e,t,r,n)=>{let a=r,{minimum:o,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?a.type="integer":a.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d),typeof o=="number"&&(a.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete a.minimum:delete a.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u),typeof i=="number"&&(a.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete a.maximum:delete a.exclusiveMaximum)),typeof l=="number"&&(a.multipleOf=l)},VE=(e,t,r,n)=>{r.type="boolean"},ZE=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},HE=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},GE=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},WE=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},KE=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},JE=(e,t,r,n)=>{r.not={}},XE=(e,t,r,n)=>{},YE=(e,t,r,n)=>{},QE=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},eL=(e,t,r,n)=>{let a=e._zod.def,o=bv(a.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},tL=(e,t,r,n)=>{let a=e._zod.def,o=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];r.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[i]:r.const=i}else o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),o.every(i=>typeof i=="boolean")&&(r.type="boolean"),o.every(i=>i===null)&&(r.type="null"),r.enum=o},rL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},nL=(e,t,r,n)=>{let a=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=o.source},aL=(e,t,r,n)=>{let a=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),l?l.length===1?(o.contentMediaType=l[0],Object.assign(a,o)):(Object.assign(a,o),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,o)},oL=(e,t,r,n)=>{r.type="boolean"},iL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},sL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},lL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},uL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},cL=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},dL=(e,t,r,n)=>{let a=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof s=="number"&&(a.maxItems=s),a.type="array",a.items=ar(o.element,t,{...n,path:[...n.path,"items"]})},fL=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="object",a.properties={};let i=o.shape;for(let u in i)a.properties[u]=ar(i[u],t,{...n,path:[...n.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(a.required=Array.from(l)),o.catchall?._zod.def.type==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=ar(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},_S=(e,t,r,n)=>{let a=e._zod.def,o=a.inclusive===!1,i=a.options.map((s,l)=>ar(s,t,{...n,path:[...n.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=i:r.anyOf=i},pL=(e,t,r,n)=>{let a=e._zod.def,o=ar(a.left,t,{...n,path:[...n.path,"allOf",0]}),i=ar(a.right,t,{...n,path:[...n.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=l},mL=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((m,h)=>ar(m,t,{...n,path:[...n.path,i,h]})),u=o.rest?ar(o.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):t.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof f=="number"&&(a.maxItems=f)},hL=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="object";let i=o.keyType,l=i._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){let d=ar(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let f of l)a.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=ar(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=ar(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let d=[...u].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(a.required=d)}},gL=(e,t,r,n)=>{let a=e._zod.def,o=ar(a.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},vL=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},yL=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,r.default=JSON.parse(JSON.stringify(a.defaultValue))},bL=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},xL=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},wL=(e,t,r,n)=>{let a=e._zod.def,o=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;ar(o,t,n);let i=t.seen.get(e);i.ref=o},_L=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,r.readOnly=!0},SL=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},SS=(e,t,r,n)=>{let a=e._zod.def;ar(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},kL=(e,t,r,n)=>{let a=e._zod.innerType;ar(a,t,n);let o=t.seen.get(e);o.ref=a},FE={string:UE,number:qE,boolean:VE,bigint:ZE,symbol:HE,null:GE,undefined:WE,void:KE,never:JE,any:XE,unknown:YE,date:QE,enum:eL,literal:tL,nan:rL,template_literal:nL,file:aL,success:oL,custom:iL,function:sL,transform:lL,map:uL,set:cL,array:dL,object:fL,union:_S,intersection:pL,tuple:mL,record:hL,nullable:gL,nonoptional:vL,default:yL,prefault:bL,catch:xL,pipe:wL,readonly:_L,promise:SL,optional:SS,lazy:kL};function kS(e,t){if("_idmap"in e){let n=e,a=rm({...t,processors:FE}),o={};for(let l of n._idmap.entries()){let[u,d]=l;ar(d,a)}let i={},s={registry:n,uri:t?.uri,defs:o};a.external=s;for(let l of n._idmap.entries()){let[u,d]=l;nm(a,d),i[u]=am(a,d)}if(Object.keys(o).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:o}}return{schemas:i}}let r=rm({...t,processors:FE});return ar(e,r),nm(r,e),am(r,e)}var zv={};Fn(zv,{ZodAny:()=>Ooe,ZodArray:()=>Noe,ZodBase64:()=>WL,ZodBase64URL:()=>KL,ZodBigInt:()=>RS,ZodBigIntFormat:()=>YL,ZodBoolean:()=>MS,ZodCIDRv4:()=>HL,ZodCIDRv6:()=>GL,ZodCUID:()=>jL,ZodCUID2:()=>BL,ZodCatch:()=>oie,ZodCodec:()=>s7,ZodCustom:()=>BS,ZodCustomStringFormat:()=>Bv,ZodDate:()=>e7,ZodDefault:()=>Qoe,ZodDiscriminatedUnion:()=>joe,ZodE164:()=>JL,ZodEmail:()=>DL,ZodEmoji:()=>NL,ZodEnum:()=>jv,ZodExactOptional:()=>Joe,ZodFile:()=>Woe,ZodFunction:()=>mie,ZodGUID:()=>CS,ZodIPv4:()=>VL,ZodIPv6:()=>ZL,ZodIntersection:()=>Boe,ZodJWT:()=>XL,ZodKSUID:()=>qL,ZodLazy:()=>die,ZodLiteral:()=>Goe,ZodMAC:()=>Toe,ZodMap:()=>Zoe,ZodNaN:()=>sie,ZodNanoID:()=>zL,ZodNever:()=>Roe,ZodNonOptional:()=>o7,ZodNull:()=>Loe,ZodNullable:()=>Yoe,ZodNumber:()=>OS,ZodNumberFormat:()=>im,ZodObject:()=>NS,ZodOptional:()=>a7,ZodPipe:()=>i7,ZodPrefault:()=>tie,ZodPromise:()=>pie,ZodReadonly:()=>lie,ZodRecord:()=>jS,ZodSet:()=>Hoe,ZodString:()=>LS,ZodStringFormat:()=>dr,ZodSuccess:()=>aie,ZodSymbol:()=>Aoe,ZodTemplateLiteral:()=>cie,ZodTransform:()=>Koe,ZodTuple:()=>Uoe,ZodType:()=>Tt,ZodULID:()=>FL,ZodURL:()=>$S,ZodUUID:()=>Xs,ZodUndefined:()=>Eoe,ZodUnion:()=>zS,ZodUnknown:()=>Moe,ZodVoid:()=>Doe,ZodXID:()=>UL,ZodXor:()=>zoe,_ZodString:()=>RL,_default:()=>eie,_function:()=>Gje,any:()=>Ije,array:()=>DS,base64:()=>lje,base64url:()=>uje,bigint:()=>xje,boolean:()=>Poe,catch:()=>iie,check:()=>Wje,cidrv4:()=>ije,cidrv6:()=>sje,codec:()=>Vje,cuid:()=>Yze,cuid2:()=>Qze,custom:()=>Kje,date:()=>Cje,describe:()=>Jje,discriminatedUnion:()=>Oje,e164:()=>cje,email:()=>Uze,emoji:()=>Jze,enum:()=>r7,exactOptional:()=>Xoe,file:()=>Bje,float32:()=>gje,float64:()=>vje,function:()=>Gje,guid:()=>qze,hash:()=>hje,hex:()=>mje,hostname:()=>pje,httpUrl:()=>Kze,instanceof:()=>Yje,int:()=>ML,int32:()=>yje,int64:()=>wje,intersection:()=>Foe,ipv4:()=>nje,ipv6:()=>oje,json:()=>eBe,jwt:()=>dje,keyof:()=>Pje,ksuid:()=>rje,lazy:()=>fie,literal:()=>jje,looseObject:()=>Lje,looseRecord:()=>Rje,mac:()=>aje,map:()=>Dje,meta:()=>Xje,nan:()=>qje,nanoid:()=>Xze,nativeEnum:()=>zje,never:()=>QL,nonoptional:()=>nie,null:()=>$oe,nullable:()=>AS,nullish:()=>Fje,number:()=>Coe,object:()=>Aje,optional:()=>PS,partialRecord:()=>Mje,pipe:()=>ES,prefault:()=>rie,preprocess:()=>tBe,promise:()=>Hje,readonly:()=>uie,record:()=>Voe,refine:()=>hie,set:()=>Nje,strictObject:()=>Eje,string:()=>OL,stringFormat:()=>fje,stringbool:()=>Qje,success:()=>Uje,superRefine:()=>gie,symbol:()=>Sje,templateLiteral:()=>Zje,transform:()=>n7,tuple:()=>qoe,uint32:()=>bje,uint64:()=>_je,ulid:()=>eje,undefined:()=>kje,union:()=>t7,unknown:()=>om,url:()=>Wze,uuid:()=>Vze,uuidv4:()=>Zze,uuidv6:()=>Hze,uuidv7:()=>Gze,void:()=>Tje,xid:()=>tje,xor:()=>$je});var IS={};Fn(IS,{endsWith:()=>hS,gt:()=>Su,gte:()=>Qa,includes:()=>pS,length:()=>Mv,lowercase:()=>dS,lt:()=>_u,lte:()=>gi,maxLength:()=>Ov,maxSize:()=>tm,mime:()=>gS,minLength:()=>ld,minSize:()=>ku,multipleOf:()=>em,negative:()=>toe,nonnegative:()=>noe,nonpositive:()=>roe,normalize:()=>vS,overwrite:()=>Js,positive:()=>eoe,property:()=>aoe,regex:()=>cS,size:()=>$v,slugify:()=>wS,startsWith:()=>mS,toLowerCase:()=>bS,toUpperCase:()=>xS,trim:()=>yS,uppercase:()=>fS});var Nv={};Fn(Nv,{ZodISODate:()=>CL,ZodISODateTime:()=>IL,ZodISODuration:()=>LL,ZodISOTime:()=>AL,date:()=>PL,datetime:()=>TL,duration:()=>$L,time:()=>EL});var IL=ae("ZodISODateTime",(e,t)=>{Tne.init(e,t),dr.init(e,t)});function TL(e){return Lae(IL,e)}var CL=ae("ZodISODate",(e,t)=>{Cne.init(e,t),dr.init(e,t)});function PL(e){return $ae(CL,e)}var AL=ae("ZodISOTime",(e,t)=>{Pne.init(e,t),dr.init(e,t)});function EL(e){return Oae(AL,e)}var LL=ae("ZodISODuration",(e,t)=>{Ane.init(e,t),dr.init(e,t)});function $L(e){return Mae(LL,e)}var moe=(e,t)=>{J_.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>RA(e,r)},flatten:{value:r=>MA(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Jp,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Jp,2)}},isEmpty:{get(){return e.issues.length===0}}})},v6t=ae("ZodError",moe),eo=ae("ZodError",moe,{Parent:Error});var hoe=Iv(eo),goe=Tv(eo),voe=Cv(eo),TS=Pv(eo),yoe=Ire(eo),boe=Tre(eo),xoe=Cre(eo),woe=Pre(eo),_oe=Are(eo),Soe=Ere(eo),koe=Lre(eo),Ioe=$re(eo);var Tt=ae("ZodType",(e,t)=>(vt.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Dv(e,"input"),output:Dv(e,"output")}}),e.toJSONSchema=poe(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ae.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>Xa(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>hoe(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>voe(e,r,n),e.parseAsync=async(r,n)=>goe(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>TS(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>yoe(e,r,n),e.decode=(r,n)=>boe(e,r,n),e.encodeAsync=async(r,n)=>xoe(e,r,n),e.decodeAsync=async(r,n)=>woe(e,r,n),e.safeEncode=(r,n)=>_oe(e,r,n),e.safeDecode=(r,n)=>Soe(e,r,n),e.safeEncodeAsync=async(r,n)=>koe(e,r,n),e.safeDecodeAsync=async(r,n)=>Ioe(e,r,n),e.refine=(r,n)=>e.check(hie(r,n)),e.superRefine=r=>e.check(gie(r)),e.overwrite=r=>e.check(Js(r)),e.optional=()=>PS(e),e.exactOptional=()=>Xoe(e),e.nullable=()=>AS(e),e.nullish=()=>PS(AS(e)),e.nonoptional=r=>nie(e,r),e.array=()=>DS(e),e.or=r=>t7([e,r]),e.and=r=>Foe(e,r),e.transform=r=>ES(e,n7(r)),e.default=r=>eie(e,r),e.prefault=r=>rie(e,r),e.catch=r=>iie(e,r),e.pipe=r=>ES(e,r),e.readonly=()=>uie(e),e.describe=r=>{let n=e.clone();return $a.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return $a.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return $a.get(e);let n=e.clone();return $a.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),RL=ae("_ZodString",(e,t)=>{Qp.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(n,a,o)=>UE(e,n,a,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(cS(...n)),e.includes=(...n)=>e.check(pS(...n)),e.startsWith=(...n)=>e.check(mS(...n)),e.endsWith=(...n)=>e.check(hS(...n)),e.min=(...n)=>e.check(ld(...n)),e.max=(...n)=>e.check(Ov(...n)),e.length=(...n)=>e.check(Mv(...n)),e.nonempty=(...n)=>e.check(ld(1,...n)),e.lowercase=n=>e.check(dS(n)),e.uppercase=n=>e.check(fS(n)),e.trim=()=>e.check(yS()),e.normalize=(...n)=>e.check(vS(...n)),e.toLowerCase=()=>e.check(bS()),e.toUpperCase=()=>e.check(xS()),e.slugify=()=>e.check(wS())}),LS=ae("ZodString",(e,t)=>{Qp.init(e,t),RL.init(e,t),e.email=r=>e.check(wE(DL,r)),e.url=r=>e.check(uS($S,r)),e.jwt=r=>e.check(BE(XL,r)),e.emoji=r=>e.check(TE(NL,r)),e.guid=r=>e.check(lS(CS,r)),e.uuid=r=>e.check(_E(Xs,r)),e.uuidv4=r=>e.check(SE(Xs,r)),e.uuidv6=r=>e.check(kE(Xs,r)),e.uuidv7=r=>e.check(IE(Xs,r)),e.nanoid=r=>e.check(CE(zL,r)),e.guid=r=>e.check(lS(CS,r)),e.cuid=r=>e.check(PE(jL,r)),e.cuid2=r=>e.check(AE(BL,r)),e.ulid=r=>e.check(EE(FL,r)),e.base64=r=>e.check(NE(WL,r)),e.base64url=r=>e.check(zE(KL,r)),e.xid=r=>e.check(LE(UL,r)),e.ksuid=r=>e.check($E(qL,r)),e.ipv4=r=>e.check(OE(VL,r)),e.ipv6=r=>e.check(ME(ZL,r)),e.cidrv4=r=>e.check(RE(HL,r)),e.cidrv6=r=>e.check(DE(GL,r)),e.e164=r=>e.check(jE(JL,r)),e.datetime=r=>e.check(TL(r)),e.date=r=>e.check(PL(r)),e.time=r=>e.check(EL(r)),e.duration=r=>e.check($L(r))});function OL(e){return Aae(LS,e)}var dr=ae("ZodStringFormat",(e,t)=>{cr.init(e,t),RL.init(e,t)}),DL=ae("ZodEmail",(e,t)=>{vne.init(e,t),dr.init(e,t)});function Uze(e){return wE(DL,e)}var CS=ae("ZodGUID",(e,t)=>{hne.init(e,t),dr.init(e,t)});function qze(e){return lS(CS,e)}var Xs=ae("ZodUUID",(e,t)=>{gne.init(e,t),dr.init(e,t)});function Vze(e){return _E(Xs,e)}function Zze(e){return SE(Xs,e)}function Hze(e){return kE(Xs,e)}function Gze(e){return IE(Xs,e)}var $S=ae("ZodURL",(e,t)=>{yne.init(e,t),dr.init(e,t)});function Wze(e){return uS($S,e)}function Kze(e){return uS($S,{protocol:/^https?$/,hostname:Qi.domain,...Ae.normalizeParams(e)})}var NL=ae("ZodEmoji",(e,t)=>{bne.init(e,t),dr.init(e,t)});function Jze(e){return TE(NL,e)}var zL=ae("ZodNanoID",(e,t)=>{xne.init(e,t),dr.init(e,t)});function Xze(e){return CE(zL,e)}var jL=ae("ZodCUID",(e,t)=>{wne.init(e,t),dr.init(e,t)});function Yze(e){return PE(jL,e)}var BL=ae("ZodCUID2",(e,t)=>{_ne.init(e,t),dr.init(e,t)});function Qze(e){return AE(BL,e)}var FL=ae("ZodULID",(e,t)=>{Sne.init(e,t),dr.init(e,t)});function eje(e){return EE(FL,e)}var UL=ae("ZodXID",(e,t)=>{kne.init(e,t),dr.init(e,t)});function tje(e){return LE(UL,e)}var qL=ae("ZodKSUID",(e,t)=>{Ine.init(e,t),dr.init(e,t)});function rje(e){return $E(qL,e)}var VL=ae("ZodIPv4",(e,t)=>{Ene.init(e,t),dr.init(e,t)});function nje(e){return OE(VL,e)}var Toe=ae("ZodMAC",(e,t)=>{$ne.init(e,t),dr.init(e,t)});function aje(e){return Eae(Toe,e)}var ZL=ae("ZodIPv6",(e,t)=>{Lne.init(e,t),dr.init(e,t)});function oje(e){return ME(ZL,e)}var HL=ae("ZodCIDRv4",(e,t)=>{One.init(e,t),dr.init(e,t)});function ije(e){return RE(HL,e)}var GL=ae("ZodCIDRv6",(e,t)=>{Mne.init(e,t),dr.init(e,t)});function sje(e){return DE(GL,e)}var WL=ae("ZodBase64",(e,t)=>{Dne.init(e,t),dr.init(e,t)});function lje(e){return NE(WL,e)}var KL=ae("ZodBase64URL",(e,t)=>{Nne.init(e,t),dr.init(e,t)});function uje(e){return zE(KL,e)}var JL=ae("ZodE164",(e,t)=>{zne.init(e,t),dr.init(e,t)});function cje(e){return jE(JL,e)}var XL=ae("ZodJWT",(e,t)=>{jne.init(e,t),dr.init(e,t)});function dje(e){return BE(XL,e)}var Bv=ae("ZodCustomStringFormat",(e,t)=>{Bne.init(e,t),dr.init(e,t)});function fje(e,t,r={}){return Rv(Bv,e,t,r)}function pje(e){return Rv(Bv,"hostname",Qi.hostname,e)}function mje(e){return Rv(Bv,"hex",Qi.hex,e)}function hje(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,a=Qi[n];if(!a)throw new Error(`Unrecognized hash format: ${n}`);return Rv(Bv,n,a,t)}var OS=ae("ZodNumber",(e,t)=>{hE.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(n,a,o)=>qE(e,n,a,o),e.gt=(n,a)=>e.check(Su(n,a)),e.gte=(n,a)=>e.check(Qa(n,a)),e.min=(n,a)=>e.check(Qa(n,a)),e.lt=(n,a)=>e.check(_u(n,a)),e.lte=(n,a)=>e.check(gi(n,a)),e.max=(n,a)=>e.check(gi(n,a)),e.int=n=>e.check(ML(n)),e.safe=n=>e.check(ML(n)),e.positive=n=>e.check(Su(0,n)),e.nonnegative=n=>e.check(Qa(0,n)),e.negative=n=>e.check(_u(0,n)),e.nonpositive=n=>e.check(gi(0,n)),e.multipleOf=(n,a)=>e.check(em(n,a)),e.step=(n,a)=>e.check(em(n,a)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Coe(e){return Rae(OS,e)}var im=ae("ZodNumberFormat",(e,t)=>{Fne.init(e,t),OS.init(e,t)});function ML(e){return Dae(im,e)}function gje(e){return Nae(im,e)}function vje(e){return zae(im,e)}function yje(e){return jae(im,e)}function bje(e){return Bae(im,e)}var MS=ae("ZodBoolean",(e,t)=>{oS.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>VE(e,r,n,a)});function Poe(e){return Fae(MS,e)}var RS=ae("ZodBigInt",(e,t)=>{gE.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(n,a,o)=>ZE(e,n,a,o),e.gte=(n,a)=>e.check(Qa(n,a)),e.min=(n,a)=>e.check(Qa(n,a)),e.gt=(n,a)=>e.check(Su(n,a)),e.gte=(n,a)=>e.check(Qa(n,a)),e.min=(n,a)=>e.check(Qa(n,a)),e.lt=(n,a)=>e.check(_u(n,a)),e.lte=(n,a)=>e.check(gi(n,a)),e.max=(n,a)=>e.check(gi(n,a)),e.positive=n=>e.check(Su(BigInt(0),n)),e.negative=n=>e.check(_u(BigInt(0),n)),e.nonpositive=n=>e.check(gi(BigInt(0),n)),e.nonnegative=n=>e.check(Qa(BigInt(0),n)),e.multipleOf=(n,a)=>e.check(em(n,a));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function xje(e){return Uae(RS,e)}var YL=ae("ZodBigIntFormat",(e,t)=>{Une.init(e,t),RS.init(e,t)});function wje(e){return qae(YL,e)}function _je(e){return Vae(YL,e)}var Aoe=ae("ZodSymbol",(e,t)=>{qne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>HE(e,r,n,a)});function Sje(e){return Zae(Aoe,e)}var Eoe=ae("ZodUndefined",(e,t)=>{Vne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>WE(e,r,n,a)});function kje(e){return Hae(Eoe,e)}var Loe=ae("ZodNull",(e,t)=>{Zne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>GE(e,r,n,a)});function $oe(e){return Gae(Loe,e)}var Ooe=ae("ZodAny",(e,t)=>{Hne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>XE(e,r,n,a)});function Ije(){return Wae(Ooe)}var Moe=ae("ZodUnknown",(e,t)=>{Gne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>YE(e,r,n,a)});function om(){return Kae(Moe)}var Roe=ae("ZodNever",(e,t)=>{Wne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>JE(e,r,n,a)});function QL(e){return Jae(Roe,e)}var Doe=ae("ZodVoid",(e,t)=>{Kne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>KE(e,r,n,a)});function Tje(e){return Xae(Doe,e)}var e7=ae("ZodDate",(e,t)=>{Jne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(n,a,o)=>QE(e,n,a,o),e.min=(n,a)=>e.check(Qa(n,a)),e.max=(n,a)=>e.check(gi(n,a));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Cje(e){return Yae(e7,e)}var Noe=ae("ZodArray",(e,t)=>{Xne.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>dL(e,r,n,a),e.element=t.element,e.min=(r,n)=>e.check(ld(r,n)),e.nonempty=r=>e.check(ld(1,r)),e.max=(r,n)=>e.check(Ov(r,n)),e.length=(r,n)=>e.check(Mv(r,n)),e.unwrap=()=>e.element});function DS(e,t){return ooe(Noe,e,t)}function Pje(e){let t=e._zod.def.shape;return r7(Object.keys(t))}var NS=ae("ZodObject",(e,t)=>{eae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>fL(e,r,n,a),Ae.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>r7(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:om()}),e.loose=()=>e.clone({...e._zod.def,catchall:om()}),e.strict=()=>e.clone({...e._zod.def,catchall:QL()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Ae.extend(e,r),e.safeExtend=r=>Ae.safeExtend(e,r),e.merge=r=>Ae.merge(e,r),e.pick=r=>Ae.pick(e,r),e.omit=r=>Ae.omit(e,r),e.partial=(...r)=>Ae.partial(a7,e,r[0]),e.required=(...r)=>Ae.required(o7,e,r[0])});function Aje(e,t){let r={type:"object",shape:e??{},...Ae.normalizeParams(t)};return new NS(r)}function Eje(e,t){return new NS({type:"object",shape:e,catchall:QL(),...Ae.normalizeParams(t)})}function Lje(e,t){return new NS({type:"object",shape:e,catchall:om(),...Ae.normalizeParams(t)})}var zS=ae("ZodUnion",(e,t)=>{iS.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>_S(e,r,n,a),e.options=t.options});function t7(e,t){return new zS({type:"union",options:e,...Ae.normalizeParams(t)})}var zoe=ae("ZodXor",(e,t)=>{zS.init(e,t),tae.init(e,t),e._zod.processJSONSchema=(r,n,a)=>_S(e,r,n,a),e.options=t.options});function $je(e,t){return new zoe({type:"union",options:e,inclusive:!1,...Ae.normalizeParams(t)})}var joe=ae("ZodDiscriminatedUnion",(e,t)=>{zS.init(e,t),rae.init(e,t)});function Oje(e,t,r){return new joe({type:"union",options:t,discriminator:e,...Ae.normalizeParams(r)})}var Boe=ae("ZodIntersection",(e,t)=>{nae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>pL(e,r,n,a)});function Foe(e,t){return new Boe({type:"intersection",left:e,right:t})}var Uoe=ae("ZodTuple",(e,t)=>{vE.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>mL(e,r,n,a),e.rest=r=>e.clone({...e._zod.def,rest:r})});function qoe(e,t,r){let n=t instanceof vt,a=n?r:t,o=n?t:null;return new Uoe({type:"tuple",items:e,rest:o,...Ae.normalizeParams(a)})}var jS=ae("ZodRecord",(e,t)=>{aae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>hL(e,r,n,a),e.keyType=t.keyType,e.valueType=t.valueType});function Voe(e,t,r){return new jS({type:"record",keyType:e,valueType:t,...Ae.normalizeParams(r)})}function Mje(e,t,r){let n=Xa(e);return n._zod.values=void 0,new jS({type:"record",keyType:n,valueType:t,...Ae.normalizeParams(r)})}function Rje(e,t,r){return new jS({type:"record",keyType:e,valueType:t,mode:"loose",...Ae.normalizeParams(r)})}var Zoe=ae("ZodMap",(e,t)=>{oae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>uL(e,r,n,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ku(...r)),e.nonempty=r=>e.check(ku(1,r)),e.max=(...r)=>e.check(tm(...r)),e.size=(...r)=>e.check($v(...r))});function Dje(e,t,r){return new Zoe({type:"map",keyType:e,valueType:t,...Ae.normalizeParams(r)})}var Hoe=ae("ZodSet",(e,t)=>{iae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>cL(e,r,n,a),e.min=(...r)=>e.check(ku(...r)),e.nonempty=r=>e.check(ku(1,r)),e.max=(...r)=>e.check(tm(...r)),e.size=(...r)=>e.check($v(...r))});function Nje(e,t){return new Hoe({type:"set",valueType:e,...Ae.normalizeParams(t)})}var jv=ae("ZodEnum",(e,t)=>{sae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(n,a,o)=>eL(e,n,a,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,a)=>{let o={};for(let i of n)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new jv({...t,checks:[],...Ae.normalizeParams(a),entries:o})},e.exclude=(n,a)=>{let o={...t.entries};for(let i of n)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new jv({...t,checks:[],...Ae.normalizeParams(a),entries:o})}});function r7(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new jv({type:"enum",entries:r,...Ae.normalizeParams(t)})}function zje(e,t){return new jv({type:"enum",entries:e,...Ae.normalizeParams(t)})}var Goe=ae("ZodLiteral",(e,t)=>{lae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>tL(e,r,n,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function jje(e,t){return new Goe({type:"literal",values:Array.isArray(e)?e:[e],...Ae.normalizeParams(t)})}var Woe=ae("ZodFile",(e,t)=>{uae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>aL(e,r,n,a),e.min=(r,n)=>e.check(ku(r,n)),e.max=(r,n)=>e.check(tm(r,n)),e.mime=(r,n)=>e.check(gS(Array.isArray(r)?r:[r],n))});function Bje(e){return ioe(Woe,e)}var Koe=ae("ZodTransform",(e,t)=>{cae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>lL(e,r,n,a),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new od(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Ae.issue(o,r.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(Ae.issue(i))}};let a=t.transform(r.value,r);return a instanceof Promise?a.then(o=>(r.value=o,r)):(r.value=a,r)}});function n7(e){return new Koe({type:"transform",transform:e})}var a7=ae("ZodOptional",(e,t)=>{yE.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>SS(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function PS(e){return new a7({type:"optional",innerType:e})}var Joe=ae("ZodExactOptional",(e,t)=>{dae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>SS(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Xoe(e){return new Joe({type:"optional",innerType:e})}var Yoe=ae("ZodNullable",(e,t)=>{fae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>gL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function AS(e){return new Yoe({type:"nullable",innerType:e})}function Fje(e){return PS(AS(e))}var Qoe=ae("ZodDefault",(e,t)=>{pae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>yL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function eie(e,t){return new Qoe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ae.shallowClone(t)}})}var tie=ae("ZodPrefault",(e,t)=>{mae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>bL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function rie(e,t){return new tie({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ae.shallowClone(t)}})}var o7=ae("ZodNonOptional",(e,t)=>{hae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>vL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function nie(e,t){return new o7({type:"nonoptional",innerType:e,...Ae.normalizeParams(t)})}var aie=ae("ZodSuccess",(e,t)=>{gae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>oL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Uje(e){return new aie({type:"success",innerType:e})}var oie=ae("ZodCatch",(e,t)=>{vae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>xL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function iie(e,t){return new oie({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var sie=ae("ZodNaN",(e,t)=>{yae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>rL(e,r,n,a)});function qje(e){return Qae(sie,e)}var i7=ae("ZodPipe",(e,t)=>{bae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>wL(e,r,n,a),e.in=t.in,e.out=t.out});function ES(e,t){return new i7({type:"pipe",in:e,out:t})}var s7=ae("ZodCodec",(e,t)=>{i7.init(e,t),sS.init(e,t)});function Vje(e,t,r){return new s7({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var lie=ae("ZodReadonly",(e,t)=>{xae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>_L(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function uie(e){return new lie({type:"readonly",innerType:e})}var cie=ae("ZodTemplateLiteral",(e,t)=>{wae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>nL(e,r,n,a)});function Zje(e,t){return new cie({type:"template_literal",parts:e,...Ae.normalizeParams(t)})}var die=ae("ZodLazy",(e,t)=>{kae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>kL(e,r,n,a),e.unwrap=()=>e._zod.def.getter()});function fie(e){return new die({type:"lazy",getter:e})}var pie=ae("ZodPromise",(e,t)=>{Sae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>SL(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Hje(e){return new pie({type:"promise",innerType:e})}var mie=ae("ZodFunction",(e,t)=>{_ae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>sL(e,r,n,a)});function Gje(e){return new mie({type:"function",input:Array.isArray(e?.input)?qoe(e?.input):e?.input??DS(om()),output:e?.output??om()})}var BS=ae("ZodCustom",(e,t)=>{Iae.init(e,t),Tt.init(e,t),e._zod.processJSONSchema=(r,n,a)=>iL(e,r,n,a)});function Wje(e){let t=new yr({check:"custom"});return t._zod.check=e,t}function Kje(e,t){return soe(BS,e??(()=>!0),t)}function hie(e,t={}){return loe(BS,e,t)}function gie(e){return uoe(e)}var Jje=coe,Xje=doe;function Yje(e,t={}){let r=new BS({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Ae.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>
106{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var Qje=(...e)=>foe({Codec:s7,Boolean:MS,String:LS},...e);function eBe(e){let t=fie(()=>t7([OL(e),Coe(),Poe(),$oe(),DS(t),Voe(OL(),t)]));return t}function tBe(e,t){return ES(n7(e),t)}var vie;vie||(vie={});var I6t={...zv,...IS,iso:Nv};An(bE());var Rt;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function r(a){throw new Error}e.assertNever=r,e.arrayToEnum=a=>{let o={};for(let i of a)o[i]=i;return o},e.getValidEnumValues=a=>{let o=e.objectKeys(a).filter(s=>typeof a[a[s]]!="number"),i={};for(let s of o)i[s]=a[s];return e.objectValues(i)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let o=[];for(let i in a)Object.prototype.hasOwnProperty.call(a,i)&&o.push(i);return o},e.find=(a,o)=>{for(let i of a)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function n(a,o=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(Rt||(Rt={}));var yie;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(yie||(yie={}));var Ge=Rt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ys=e=>{switch(typeof e){case"undefined":return Ge.undefined;case"string":return Ge.string;case"number":return Number.isNaN(e)?Ge.nan:Ge.number;case"boolean":return Ge.boolean;case"function":return Ge.function;case"bigint":return Ge.bigint;case"symbol":return Ge.symbol;case"object":return Array.isArray(e)?Ge.array:e===null?Ge.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ge.promise:typeof Map<"u"&&e instanceof Map?Ge.map:typeof Set<"u"&&e instanceof Set?Ge.set:typeof Date<"u"&&e instanceof Date?Ge.date:Ge.object;default:return Ge.unknown}};
vendor: 6,023 bytes, line 106
106var ke=Rt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var to=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=t}format(t){let r=t||function(o){return o.message},n={_errors:[]},a=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)n._errors.push(r(i));else{let s=n,l=0;for(;l<i.path.length;){let u=i.path[l];l===i.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(i))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return a(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Rt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),n=[];for(let a of this.issues)if(a.path.length>0){let o=a.path[0];r[o]=r[o]||[],r[o].push(t(a))}else n.push(t(a));return{formErrors:n,fieldErrors:r}}get formErrors(){return this.flatten()}};to.create=e=>new to(e);var iBe=(e,t)=>{let r;switch(e.code){case ke.invalid_type:e.received===Ge.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case ke.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,Rt.jsonStringifyReplacer)}`;break;case ke.unrecognized_keys:r=`Unrecognized key(s) in object: ${Rt.joinValues(e.keys,", ")}`;break;case ke.invalid_union:r="Invalid input";break;case ke.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${Rt.joinValues(e.options)}`;break;case ke.invalid_enum_value:r=`Invalid enum value. Expected ${Rt.joinValues(e.options)}, received '${e.received}'`;break;case ke.invalid_arguments:r="Invalid function arguments";break;case ke.invalid_return_type:r="Invalid function return type";break;case ke.invalid_date:r="Invalid date";break;case ke.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:Rt.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case ke.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case ke.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case ke.custom:r="Invalid input";break;case ke.invalid_intersection_types:r="Intersection results could not be merged";break;case ke.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case ke.not_finite:r="Number must be finite";break;default:r=t.defaultError,Rt.assertNever(e)}return{message:r}},Iu=iBe;var sBe=Iu;function Fv(){return sBe}var FS=e=>{let{data:t,path:r,errorMaps:n,issueData:a}=e,o=[...r,...a.path||[]],i={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let s="",l=n.filter(u=>!!u).slice().reverse();for(let u of l)s=u(i,{data:t,defaultError:s}).message;return{...a,path:o,message:s}};function je(e,t){let r=Fv(),n=FS({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Iu?void 0:Iu].filter(a=>!!a)});e.common.issues.push(n)}var Gn=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,r){let n=[];for(let a of r){if(a.status==="aborted")return ft;a.status==="dirty"&&t.dirty(),n.push(a.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,r){let n=[];for(let a of r){let o=await a.key,i=await a.value;n.push({key:o,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,r){let n={};for(let a of r){let{key:o,value:i}=a;if(o.status==="aborted"||i.status==="aborted")return ft;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(n[o.value]=i.value)}return{status:t.value,value:n}}},ft=Object.freeze({status:"aborted"}),sm=e=>({status:"dirty",value:e}),fa=e=>
vendor: 36,853 bytes, line 106
106({status:"valid",value:e}),l7=e=>e.status==="aborted",u7=e=>e.status==="dirty",cd=e=>e.status==="valid",Uv=e=>typeof Promise<"u"&&e instanceof Promise;var Qe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Qe||(Qe={}));var $o=class{constructor(t,r,n,a){this._cachedPath=[],this.parent=t,this.data=r,this._path=n,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},bie=(e,t)=>{if(cd(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let r=new to(e.common.issues);return this._error=r,this._error}}};function _t(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:a}=e;if(t&&(r||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(i,s)=>{let{message:l}=e;return i.code==="invalid_enum_value"?{message:l??s.defaultError}:typeof s.data>"u"?{message:l??n??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:l??r??s.defaultError}},description:a}}var Lt=class{get description(){return this._def.description}_getType(t){return Ys(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:Ys(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Gn,ctx:{common:t.parent.common,data:t.data,parsedType:Ys(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(Uv(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(t){let r=this._parse(t);return Promise.resolve(r)}parse(t,r){let n=this.safeParse(t,r);if(n.success)return n.data;throw n.error}safeParse(t,r){let n={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ys(t)},a=this._parseSync({data:t,path:n.path,parent:n});return bie(n,a)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ys(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:r});return cd(n)?{value:n.value}:{issues:r.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(n=>cd(n)?{value:n.value}:{issues:r.common.issues})}async parseAsync(t,r){let n=await this.safeParseAsync(t,r);if(n.success)return n.data;throw n.error}async safeParseAsync(t,r){let n={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ys(t)},a=this._parse({data:t,path:n.path,parent:n}),o=await(Uv(a)?a:Promise.resolve(a));return bie(n,o)}refine(t,r){let n=a=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(a):r;return this._refinement((a,o)=>{let i=t(a),s=()=>o.addIssue({code:ke.custom,...n(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,r){return this._refinement((n,a)=>t(n)?!0:(a.addIssue(typeof r=="function"?r(n,a):r),!1))}_refinement(t){return new yi({schema:this,typeName:Ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:r=>this["~validate"](r)}}optional(){return vi.create(this,this._def)}nullable(){return tl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Cu.create(this)}promise(){return dd.create(this,this._def)}or(t){return fm.create([this,t],this._def)}and(t){return pm.create(this,t,this._def)}transform(t){return new yi({..._t(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new ym({..._t(this._def),innerType:this,defaultValue:r,typeName:Ee.ZodDefault})}brand(){return new US({typeName:Ee.ZodBranded,type:this,..._t(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new bm({..._t(this._def),innerType:this,catchValue:r,typeName:Ee.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return qS.create(this,t)}readonly(){return xm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},lBe=/^c[^\s-]{8,}$/i,uBe=/^[0-9a-z]+$/,cBe=/^[0-9A-HJKMNP-TV-Z]{26}$/i,dBe=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,fBe=/^[a-z0-9_-]{21}$/i,pBe=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,mBe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,hBe=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,gBe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",c7,vBe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,yBe=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,bBe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,xBe=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,wBe=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,_Be=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xie="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",SBe=new RegExp(`^${xie}$`);function wie(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}function kBe(e){return new RegExp(`^${wie(e)}$`)}function IBe(e){let t=`${xie}T${wie(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,new RegExp(`^${t}$`)}function TBe(e,t){return!!((t==="v4"||!t)&&vBe.test(e)||(t==="v6"||!t)&&bBe.test(e))}function CBe(e,t){if(!pBe.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),a=JSON.parse(atob(n));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function PBe(e,t){return!!((t==="v4"||!t)&&yBe.test(e)||(t==="v6"||!t)&&xBe.test(e))}var um=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ge.string){let o=this._getOrReturnCtx(t);return je(o,{code:ke.invalid_type,expected:Ge.string,received:o.parsedType}),ft}let n=new Gn,a;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),je(a,{code:ke.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(a=this._getOrReturnCtx(t,a),je(a,{code:ke.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,s=t.data.length<o.value;(i||s)&&(a=this._getOrReturnCtx(t,a),i?je(a,{code:ke.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&je(a,{code:ke.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")hBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"email",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")c7||(c7=new RegExp(gBe,"u")),c7.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"emoji",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")dBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"uuid",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")fBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"nanoid",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")lBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"cuid",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")uBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"cuid2",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")cBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"ulid",code:ke.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),je(a,{validation:"url",code:ke.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"regex",code:ke.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?IBe(o).test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?SBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?kBe(o).test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{code:ke.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?mBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"duration",code:ke.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?TBe(t.data,o.version)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"ip",code:ke.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?CBe(t.data,o.alg)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"jwt",code:ke.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?PBe(t.data,o.version)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"cidr",code:ke.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?wBe.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"base64",code:ke.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?_Be.test(t.data)||(a=this._getOrReturnCtx(t,a),je(a,{validation:"base64url",code:ke.invalid_string,message:o.message}),n.dirty()):Rt.assertNever(o);return{status:n.value,value:t.data}}_regex(t,r,n){return this.refinement(a=>t.test(a),{validation:r,code:ke.invalid_string,...Qe.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Qe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Qe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Qe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Qe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Qe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Qe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Qe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Qe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Qe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Qe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Qe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Qe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Qe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Qe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Qe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Qe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Qe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Qe.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Qe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Qe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Qe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Qe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Qe.errToObj(r)})}nonempty(t){return this.min(1,Qe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxLength(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};um.create=e=>new um({checks:[],typeName:Ee.ZodString,coerce:e?.coerce??!1,..._t(e)});function ABe(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,a=r>n?r:n,o=Number.parseInt(e.toFixed(a).replace(".","")),i=Number.parseInt(t.toFixed(a).replace(".",""));return o%i/10**a}var qv=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Ge.number){let o=this._getOrReturnCtx(t);return je(o,{code:ke.invalid_type,expected:Ge.number,received:o.parsedType}),ft}let n,a=new Gn;for(let o of this._def.checks)o.kind==="int"?Rt.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),je(n,{code:ke.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?ABe(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),je(n,{code:ke.not_finite,message:o.message}),a.dirty()):Rt.assertNever(o);return{status:a.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Qe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Qe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Qe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Qe.toString(r))}setLimit(t,r,n,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Qe.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Qe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Qe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Qe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Qe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Qe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Qe.toString(t)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Rt.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(r===null||n.value>r)&&(r=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(r)&&Number.isFinite(t)}};qv.create=e=>new qv({checks:[],typeName:Ee.ZodNumber,coerce:e?.coerce||!1,..._t(e)});var Vv=class e extends Lt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Ge.bigint)return this._getInvalidInput(t);let n,a=new Gn;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),je(n,{code:ke.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):Rt.assertNever(o);return{status:a.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return je(r,{code:ke.invalid_type,expected:Ge.bigint,received:r.parsedType}),ft}gte(t,r){return this.setLimit("min",t,!0,Qe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Qe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Qe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Qe.toString(r))}setLimit(t,r,n,a){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:n,message:Qe.toString(a)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Qe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Qe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Qe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Qe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Qe.toString(r)})}get minValue(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t}get maxValue(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t}};Vv.create=e=>new Vv({checks:[],typeName:Ee.ZodBigInt,coerce:e?.coerce??!1,..._t(e)});var Zv=class extends Lt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ge.boolean){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.boolean,received:n.parsedType}),ft}return fa(t.data)}};Zv.create=e=>new Zv({typeName:Ee.ZodBoolean,coerce:e?.coerce||!1,..._t(e)});var Hv=class e extends Lt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ge.date){let o=this._getOrReturnCtx(t);return je(o,{code:ke.invalid_type,expected:Ge.date,received:o.parsedType}),ft}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return je(o,{code:ke.invalid_date}),ft}let n=new Gn,a;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),je(a,{code:ke.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),je(a,{code:ke.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):Rt.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,r){return this._addCheck({kind:"min",value:t.getTime(),message:Qe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Qe.toString(r)})}get minDate(){let t=null;for(let r of this._def.checks)r.kind==="min"&&(t===null||r.value>t)&&(t=r.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let r of this._def.checks)r.kind==="max"&&(t===null||r.value<t)&&(t=r.value);return t!=null?new Date(t):null}};Hv.create=e=>new Hv({checks:[],coerce:e?.coerce||!1,typeName:Ee.ZodDate,..._t(e)});var Gv=class extends Lt{_parse(t){if(this._getType(t)!==Ge.symbol){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.symbol,received:n.parsedType}),ft}return fa(t.data)}};Gv.create=e=>new Gv({typeName:Ee.ZodSymbol,..._t(e)});var cm=class extends Lt{_parse(t){if(this._getType(t)!==Ge.undefined){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.undefined,received:n.parsedType}),ft}return fa(t.data)}};cm.create=e=>new cm({typeName:Ee.ZodUndefined,..._t(e)});var dm=class extends Lt{_parse(t){if(this._getType(t)!==Ge.null){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.null,received:n.parsedType}),ft}return fa(t.data)}};dm.create=e=>new dm({typeName:Ee.ZodNull,..._t(e)});var Wv=class extends Lt{constructor(){super(...arguments),this._any=!0}_parse(t){return fa(t.data)}};Wv.create=e=>new Wv({typeName:Ee.ZodAny,..._t(e)});var Tu=class extends Lt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fa(t.data)}};Tu.create=e=>new Tu({typeName:Ee.ZodUnknown,..._t(e)});var es=class extends Lt{_parse(t){let r=this._getOrReturnCtx(t);return je(r,{code:ke.invalid_type,expected:Ge.never,received:r.parsedType}),ft}};es.create=e=>new es({typeName:Ee.ZodNever,..._t(e)});var Kv=class extends Lt{_parse(t){if(this._getType(t)!==Ge.undefined){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.void,received:n.parsedType}),ft}return fa(t.data)}};Kv.create=e=>new Kv({typeName:Ee.ZodVoid,..._t(e)});var Cu=class e extends Lt{_parse(t){let{ctx:r,status:n}=this._processInputParams(t),a=this._def;if(r.parsedType!==Ge.array)return je(r,{code:ke.invalid_type,expected:Ge.array,received:r.parsedType}),ft;if(a.exactLength!==null){let i=r.data.length>a.exactLength.value,s=r.data.length<a.exactLength.value;(i||s)&&(je(r,{code:i?ke.too_big:ke.too_small,minimum:s?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),n.dirty())}if(a.minLength!==null&&r.data.length<a.minLength.value&&(je(r,{code:ke.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),n.dirty()),a.maxLength!==null&&r.data.length>a.maxLength.value&&(je(r,{code:ke.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>a.type._parseAsync(new $o(r,i,r.path,s)))).then(i=>Gn.mergeArray(n,i));let o=[...r.data].map((i,s)=>a.type._parseSync(new $o(r,i,r.path,s)));return Gn.mergeArray(n,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Qe.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Qe.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Qe.toString(r)}})}nonempty(t){return this.min(1,t)}};Cu.create=(e,t)=>new Cu({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ee.ZodArray,..._t(t)});function lm(e){if(e instanceof ro){let t={};for(let r in e.shape){let n=e.shape[r];t[r]=vi.create(lm(n))}return new ro({...e._def,shape:()=>t})}else return e instanceof Cu?new Cu({...e._def,type:lm(e.element)}):e instanceof vi?vi.create(lm(e.unwrap())):e instanceof tl?tl.create(lm(e.unwrap())):e instanceof el?el.create(e.items.map(t=>lm(t))):e}var ro=class e extends Lt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),r=Rt.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Ge.object){let u=this._getOrReturnCtx(t);return je(u,{code:ke.invalid_type,expected:Ge.object,received:u.parsedType}),ft}let{status:n,ctx:a}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof es&&this._def.unknownKeys==="strip"))for(let u in a.data)i.includes(u)||s.push(u);let l=[];for(let u of i){let d=o[u],f=a.data[u];l.push({key:{status:"valid",value:u},value:d._parse(new $o(a,f,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof es){let u=this._def.unknownKeys;if(u==="passthrough")for(let d of s)l.push({key:{status:"valid",value:d},value:{status:"valid",value:a.data[d]}});else if(u==="strict")s.length>0&&(je(a,{code:ke.unrecognized_keys,keys:s}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let d of s){let f=a.data[d];l.push({key:{status:"valid",value:d},value:u._parse(new $o(a,f,a.path,d)),alwaysSet:d in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let d of l){let f=await d.key,m=await d.value;u.push({key:f,value:m,alwaysSet:d.alwaysSet})}return u}).then(u=>Gn.mergeObjectSync(n,u)):Gn.mergeObjectSync(n,l)}get shape(){return this._def.shape()}strict(t){return Qe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,n)=>{let a=this._def.errorMap?.(r,n).message??n.defaultError;return r.code==="unrecognized_keys"?{message:Qe.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ee.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let n of Rt.objectKeys(t))t[n]&&this.shape[n]&&(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let n of Rt.objectKeys(this.shape))t[n]||(r[n]=this.shape[n]);return new e({...this._def,shape:()=>r})}deepPartial(){return lm(this)}partial(t){let r={};for(let n of Rt.objectKeys(this.shape)){let a=this.shape[n];t&&!t[n]?r[n]=a:r[n]=a.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let n of Rt.objectKeys(this.shape))if(t&&!t[n])r[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof vi;)o=o._def.innerType;r[n]=o}return new e({...this._def,shape:()=>r})}keyof(){return _ie(Rt.objectKeys(this.shape))}};ro.create=(e,t)=>new ro({shape:()=>e,unknownKeys:"strip",catchall:es.create(),typeName:Ee.ZodObject,..._t(t)});ro.strictCreate=(e,t)=>new ro({shape:()=>e,unknownKeys:"strict",catchall:es.create(),typeName:Ee.ZodObject,..._t(t)});ro.lazycreate=(e,t)=>new ro({shape:e,unknownKeys:"strip",catchall:es.create(),typeName:Ee.ZodObject,..._t(t)});var fm=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=this._def.options;function a(o){for(let s of o)if(s.result.status==="valid")return s.result;for(let s of o)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let i=o.map(s=>new to(s.ctx.common.issues));return je(r,{code:ke.invalid_union,unionErrors:i}),ft}if(r.common.async)return Promise.all(n.map(async o=>{let i={...r,common:{...r.common,issues:[]},parent:null};return{result:await o._parseAsync({data:r.data,path:r.path,parent:i}),ctx:i}})).then(a);{let o,i=[];for(let l of n){let u={...r,common:{...r.common,issues:[]},parent:null},d=l._parseSync({data:r.data,path:r.path,parent:u});if(d.status==="valid")return d;d.status==="dirty"&&!o&&(o={result:d,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(l=>new to(l));return je(r,{code:ke.invalid_union,unionErrors:s}),ft}}get options(){return this._def.options}};fm.create=(e,t)=>new fm({options:e,typeName:Ee.ZodUnion,..._t(t)});var Qs=e=>e instanceof mm?Qs(e.schema):e instanceof yi?Qs(e.innerType()):e instanceof hm?[e.value]:e instanceof gm?e.options:e instanceof vm?Rt.objectValues(e.enum):e instanceof ym?Qs(e._def.innerType):e instanceof cm?[void 0]:e instanceof dm?[null]:e instanceof vi?[void 0,...Qs(e.unwrap())]:e instanceof tl?[null,...Qs(e.unwrap())]:e instanceof US||e instanceof xm?Qs(e.unwrap()):e instanceof bm?Qs(e._def.innerType):[],d7=class e extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ge.object)return je(r,{code:ke.invalid_type,expected:Ge.object,received:r.parsedType}),ft;let n=this.discriminator,a=r.data[n],o=this.optionsMap.get(a);return o?r.common.async?o._parseAsync({data:r.data,path:r.path,parent:r}):o._parseSync({data:r.data,path:r.path,parent:r}):(je(r,{code:ke.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ft)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,n){let a=new Map;for(let o of r){let i=Qs(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of i){if(a.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);a.set(s,o)}}return new e({typeName:Ee.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:a,..._t(n)})}};function f7(e,t){let r=Ys(e),n=Ys(t);if(e===t)return{valid:!0,data:e};if(r===Ge.object&&n===Ge.object){let a=Rt.objectKeys(t),o=Rt.objectKeys(e).filter(s=>a.indexOf(s)!==-1),i={...e,...t};for(let s of o){let l=f7(e[s],t[s]);if(!l.valid)return{valid:!1};i[s]=l.data}return{valid:!0,data:i}}else if(r===Ge.array&&n===Ge.array){if(e.length!==t.length)return{valid:!1};let a=[];for(let o=0;o<e.length;o++){let i=e[o],s=t[o],l=f7(i,s);if(!l.valid)return{valid:!1};a.push(l.data)}return{valid:!0,data:a}}else return r===Ge.date&&n===Ge.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var pm=class extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t),a=(o,i)=>{if(l7(o)||l7(i))return ft;let s=f7(o.value,i.value);return s.valid?((u7(o)||u7(i))&&r.dirty(),{status:r.value,value:s.data}):(je(n,{code:ke.invalid_intersection_types}),ft)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>a(o,i)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};pm.create=(e,t,r)=>new pm({left:e,right:t,typeName:Ee.ZodIntersection,..._t(r)});var el=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ge.array)return je(n,{code:ke.invalid_type,expected:Ge.array,received:n.parsedType}),ft;if(n.data.length<this._def.items.length)return je(n,{code:ke.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ft;!this._def.rest&&n.data.length>this._def.items.length&&(je(n,{code:ke.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...n.data].map((i,s)=>{let l=this._def.items[s]||this._def.rest;return l?l._parse(new $o(n,i,n.path,s)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>Gn.mergeArray(r,i)):Gn.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};el.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new el({items:e,typeName:Ee.ZodTuple,rest:null,..._t(t)})};var p7=class e extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ge.object)return je(n,{code:ke.invalid_type,expected:Ge.object,received:n.parsedType}),ft;let a=[],o=this._def.keyType,i=this._def.valueType;for(let s in n.data)a.push({key:o._parse(new $o(n,s,n.path,s)),value:i._parse(new $o(n,n.data[s],n.path,s)),alwaysSet:s in n.data});return n.common.async?Gn.mergeObjectAsync(r,a):Gn.mergeObjectSync(r,a)}
vendor: 4,241 bytes, line 106
106get element(){return this._def.valueType}static create(t,r,n){return r instanceof Lt?new e({keyType:t,valueType:r,typeName:Ee.ZodRecord,..._t(n)}):new e({keyType:um.create(),valueType:t,typeName:Ee.ZodRecord,..._t(r)})}},Jv=class extends Lt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ge.map)return je(n,{code:ke.invalid_type,expected:Ge.map,received:n.parsedType}),ft;let a=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([s,l],u)=>({key:a._parse(new $o(n,s,n.path,[u,"key"])),value:o._parse(new $o(n,l,n.path,[u,"value"]))}));if(n.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let l of i){let u=await l.key,d=await l.value;if(u.status==="aborted"||d.status==="aborted")return ft;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(u.value,d.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let l of i){let u=l.key,d=l.value;if(u.status==="aborted"||d.status==="aborted")return ft;(u.status==="dirty"||d.status==="dirty")&&r.dirty(),s.set(u.value,d.value)}return{status:r.value,value:s}}}};Jv.create=(e,t,r)=>new Jv({valueType:t,keyType:e,typeName:Ee.ZodMap,..._t(r)});var Xv=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.parsedType!==Ge.set)return je(n,{code:ke.invalid_type,expected:Ge.set,received:n.parsedType}),ft;let a=this._def;a.minSize!==null&&n.data.size<a.minSize.value&&(je(n,{code:ke.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),r.dirty()),a.maxSize!==null&&n.data.size>a.maxSize.value&&(je(n,{code:ke.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),r.dirty());let o=this._def.valueType;function i(l){let u=new Set;for(let d of l){if(d.status==="aborted")return ft;d.status==="dirty"&&r.dirty(),u.add(d.value)}return{status:r.value,value:u}}let s=[...n.data.values()].map((l,u)=>o._parse(new $o(n,l,n.path,u)));return n.common.async?Promise.all(s).then(l=>i(l)):i(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Qe.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Qe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Xv.create=(e,t)=>new Xv({valueType:e,minSize:null,maxSize:null,typeName:Ee.ZodSet,..._t(t)});var m7=class e extends Lt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ge.function)return je(r,{code:ke.invalid_type,expected:Ge.function,received:r.parsedType}),ft;function n(s,l){return FS({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Fv(),Iu].filter(u=>!!u),issueData:{code:ke.invalid_arguments,argumentsError:l}})}function a(s,l){return FS({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,Fv(),Iu].filter(u=>!!u),issueData:{code:ke.invalid_return_type,returnTypeError:l}})}let o={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof dd){let s=this;return fa(async function(...l){let u=new to([]),d=await s._def.args.parseAsync(l,o).catch(h=>{throw u.addIssue(n(l,h)),u}),f=await Reflect.apply(i,this,d);return await s._def.returns._def.type.parseAsync(f,o).catch(h=>{throw u.addIssue(a(f,h)),u})})}else{let s=this;return fa(function(...l){let u=s._def.args.safeParse(l,o);if(!u.success)throw new to([n(l,u.error)]);let d=Reflect.apply(i,this,u.data),f=s._def.returns.safeParse(d,o);if(!f.success)throw new to([a(d,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:el.create(t).rest(Tu.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,r,n){return new e({args:t||el.create([]).rest(Tu.create()),returns:r||Tu.create(),typeName:Ee.ZodFunction,..._t(n)})}},mm=class extends Lt{get schema(){return this._def.getter()}_parse(t){let{ctx:r}=this._processInputParams(t);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}};mm.create=(e,t)=>
vendor: 4,756 bytes, line 106
106new mm({getter:e,typeName:Ee.ZodLazy,..._t(t)});var hm=class extends Lt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return je(r,{received:r.data,code:ke.invalid_literal,expected:this._def.value}),ft}return{status:"valid",value:t.data}}get value(){return this._def.value}};hm.create=(e,t)=>new hm({value:e,typeName:Ee.ZodLiteral,..._t(t)});function _ie(e,t){return new gm({values:e,typeName:Ee.ZodEnum,..._t(t)})}var gm=class e extends Lt{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),n=this._def.values;return je(r,{expected:Rt.joinValues(n),received:r.parsedType,code:ke.invalid_type}),ft}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),n=this._def.values;return je(r,{received:r.data,code:ke.invalid_enum_value,options:n}),ft}return fa(t.data)}get options(){return this._def.values}get enum(){let t={};for(let r of this._def.values)t[r]=r;return t}get Values(){let t={};for(let r of this._def.values)t[r]=r;return t}get Enum(){let t={};for(let r of this._def.values)t[r]=r;return t}extract(t,r=this._def){return e.create(t,{...this._def,...r})}exclude(t,r=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...r})}};gm.create=_ie;var vm=class extends Lt{_parse(t){let r=Rt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==Ge.string&&n.parsedType!==Ge.number){let a=Rt.objectValues(r);return je(n,{expected:Rt.joinValues(a),received:n.parsedType,code:ke.invalid_type}),ft}if(this._cache||(this._cache=new Set(Rt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let a=Rt.objectValues(r);return je(n,{received:n.data,code:ke.invalid_enum_value,options:a}),ft}return fa(t.data)}get enum(){return this._def.values}};vm.create=(e,t)=>new vm({values:e,typeName:Ee.ZodNativeEnum,..._t(t)});var dd=class extends Lt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Ge.promise&&r.common.async===!1)return je(r,{code:ke.invalid_type,expected:Ge.promise,received:r.parsedType}),ft;let n=r.parsedType===Ge.promise?r.data:Promise.resolve(r.data);return fa(n.then(a=>this._def.type.parseAsync(a,{path:r.path,errorMap:r.common.contextualErrorMap})))}};dd.create=(e,t)=>new dd({type:e,typeName:Ee.ZodPromise,..._t(t)});var yi=class extends Lt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:n}=this._processInputParams(t),a=this._def.effect||null,o={addIssue:i=>{je(n,i),i.fatal?r.abort():r.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),a.type==="preprocess"){let i=a.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return ft;let l=await this._def.schema._parseAsync({data:s,path:n.path,parent:n});return l.status==="aborted"?ft:l.status==="dirty"?sm(l.value):r.value==="dirty"?sm(l.value):l});{if(r.value==="aborted")return ft;let s=this._def.schema._parseSync({data:i,path:n.path,parent:n});return s.status==="aborted"?ft:s.status==="dirty"?sm(s.value):r.value==="dirty"?sm(s.value):s}}if(a.type==="refinement"){let i=s=>{let l=a.refinement(s,o);if(n.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return s.status==="aborted"?ft:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>s.status==="aborted"?ft:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(a.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!cd(i))return ft;let s=a.transform(i.value,o);if(s instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:s}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>cd(i)?Promise.resolve(a.transform(i.value,o)).then(s=>({status:r.value,value:s})):ft);Rt.assertNever(a)}};yi.create=(e,t,r)=>new yi({schema:e,typeName:Ee.ZodEffects,effect:t,..._t(r)});yi.createWithPreprocess=(e,t,r)=>new yi({schema:t,effect:{type:"preprocess",transform:e},typeName:Ee.ZodEffects,..._t(r)});var vi=class extends Lt{_parse(t){return this._getType(t)===Ge.undefined?fa(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};vi.create=(e,t)=>
vendor: 4,360 bytes, line 106
106new vi({innerType:e,typeName:Ee.ZodOptional,..._t(t)});var tl=class extends Lt{_parse(t){return this._getType(t)===Ge.null?fa(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};tl.create=(e,t)=>new tl({innerType:e,typeName:Ee.ZodNullable,..._t(t)});var ym=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return r.parsedType===Ge.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};ym.create=(e,t)=>new ym({innerType:e,typeName:Ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,..._t(t)});var bm=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n={...r,common:{...r.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Uv(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new to(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new to(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};bm.create=(e,t)=>new bm({innerType:e,typeName:Ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,..._t(t)});var Yv=class extends Lt{_parse(t){if(this._getType(t)!==Ge.nan){let n=this._getOrReturnCtx(t);return je(n,{code:ke.invalid_type,expected:Ge.nan,received:n.parsedType}),ft}return{status:"valid",value:t.data}}};Yv.create=e=>new Yv({typeName:Ee.ZodNaN,..._t(e)});var US=class extends Lt{_parse(t){let{ctx:r}=this._processInputParams(t),n=r.data;return this._def.type._parse({data:n,path:r.path,parent:r})}unwrap(){return this._def.type}},qS=class e extends Lt{_parse(t){let{status:r,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ft:o.status==="dirty"?(r.dirty(),sm(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ft:a.status==="dirty"?(r.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(t,r){return new e({in:t,out:r,typeName:Ee.ZodPipeline})}},xm=class extends Lt{_parse(t){let r=this._def.innerType._parse(t),n=a=>(cd(a)&&(a.value=Object.freeze(a.value)),a);return Uv(r)?r.then(a=>n(a)):n(r)}unwrap(){return this._def.innerType}};xm.create=(e,t)=>new xm({innerType:e,typeName:Ee.ZodReadonly,..._t(t)});var vTt={object:ro.lazycreate},Ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ee||(Ee={}));var yTt=um.create,bTt=qv.create,xTt=Yv.create,wTt=Vv.create,_Tt=Zv.create,STt=Hv.create,kTt=Gv.create,ITt=cm.create,TTt=dm.create,CTt=Wv.create,PTt=Tu.create,ATt=es.create,ETt=Kv.create,LTt=Cu.create,$Tt=ro.create,OTt=ro.strictCreate,MTt=fm.create,RTt=d7.create,DTt=pm.create,NTt=el.create,zTt=p7.create,jTt=Jv.create,BTt=Xv.create,FTt=m7.create,UTt=mm.create,qTt=hm.create,VTt=gm.create,ZTt=vm.create,HTt=dd.create,GTt=yi.create,WTt=vi.create,KTt=tl.create,JTt=yi.createWithPreprocess,XTt=qS.create;var VS=class extends Error{constructor(t,r){super(t),this.name="ParseError",this.type=r.type,this.field=r.field,this.value=r.value,this.line=r.line}};function h7(e){}function Sie(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did
106you mean `{onEvent: fn}`?");let{onEvent:t=h7,onError:r=h7,onRetry:n=h7,onComment:a}=e,o="",i=!0,s,l="",u="";function d(y){let b=i?y.replace(/^\xEF\xBB\xBF/,""):y,[w,S]=LBe(`${o}${b}`);for(let x of w)f(x);o=S,i=!1}function f(y){if(y===""){h();return}if(y.startsWith(":")){a&&a(y.slice(y.startsWith(": ")?2:1));return}let b=y.indexOf(":");if(b!==-1){let w=y.slice(0,b),S=y[b+1]===" "?2:1,x=y.slice(b+S);m(w,x,y);return}m(y,"",y)}function m(y,b,w){switch(y){case"event":u=b;break;case"data":l=`${l}${b} 107`;break;case"id":s=b.includes("\0")?void 0:b;break;case"retry":/^\d+$/.test(b)?n(parseInt(b,10)):r(new VS(`Invalid \`retry\` value: "${b}"`,{type:"invalid-retry",value:b,line:w}));break;default:r(new VS(`Unknown field "${y.length>20?`${y.slice(0,20)}\u2026`:y}"`,{type:"unknown-field",field:y,value:b,line:w}));break}}function h(){l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(` 108`)?l.slice(0,-1):l}),s=void 0,l="",u=""}function g(y={}){o&&y.consume&&f(o),i=!0,s=void 0,l="",u="",o=""}return{feed:d,reset:g}}function LBe(e){let t=[],r="",n=0;for(;n<e.length;){let a=e.indexOf("\r",n),o=e.indexOf(` 109`,n),i=-1;if(a!==-1&&o!==-1?i=Math.min(a,o):a!==-1?a===e.length-1?i=-1:i=a:o!==-1&&(i=o),i===-1){r=e.slice(n);break}else{let s=e.slice(n,i);t.push(s),n=i+1,e[n-1]==="\r"&&e[n]===` 110`&&n++}}return[t,r]}var ZS=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:n}={}){let a;super({start(o){a=Sie({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:r,onComment:n})},transform(o){a.feed(o)}})}};var{btoa:cCt,atob:dCt}=globalThis;var Aie="AI_DownloadError",Eie=`vercel.ai.error.${Aie}`,$Be=Symbol.for(Eie),kie,Iie,Oo=class extends(Iie=Nt,kie=$Be,Iie){constructor({url:e,statusCode:t,statusText:r,cause:n,message:a=n==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${n}`}){super({name:Aie,message:a,cause:n}),this[kie]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return Nt.hasMarker(e,Eie)}},w7=2*1024*1024*1024;async function Lie({response:e,url:t,maxBytes:r=w7}){let n=e.headers.get("content-length");if(n!=null){let d=parseInt(n,10);if(!isNaN(d)&&d>r)throw new Oo({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${d}).`})}let a=e.body;if(a==null)return new Uint8Array(0);let o=a.getReader(),i=[],s=0;try{for(;;){let{done:d,value:f}=await o.read();if(d)break;if(s+=f.length,s>r)throw new Oo({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});i.push(f)}}finally{try{await o.cancel()}finally{o.releaseLock()}}let l=new Uint8Array(s),u=0;for(let d of i)l.set(d,u),u+=d.length;return l}function _7(e){let t;try{t=new URL(e)}catch{throw new Oo({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Oo({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname;if(!r)throw new Oo({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new Oo({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let n=r.slice(1,-1);if(OBe(n))throw new Oo({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if($ie(r)){if(y7(r))throw new Oo({url:e,message:`URL with IP address ${r} is not allowed`});return}}function $ie(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let n=Number(r);return Number.isInteger(n)&&n>=0&&n<=255&&String(n)===r})}function y7(e){let t=e.split(".").map(Number),[r,n]=t;return r===0||r===10||r===127||r===169&&n===254||r===172&&n>=16&&n<=31||r===192&&n===168}function OBe(e){let t=e.toLowerCase();if(t==="::1"||t==="::")return!0;if(t.startsWith("::ffff:")){let r=t.slice(7);if($ie(r))return y7(r);let n=r.split(":");if(n.length===2){let a=parseInt(n[0],16),o=parseInt(n[1],16);if(!isNaN(a)&&!isNaN(o)){let i=a>>8&255,s=a&255,l=o>>8&255,u=o&255;return y7(`${i}.${s}.${l}.${u}`)}}}return!!(t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80"))}var rl=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let a=()=>{let o=r.length,i=new Array(t);for(let s=0;s<t;s++)i[s]=r[Math.random()*o|0];return i.join("")};if(e==null)return a;
110if(r.includes(n))throw new Xte({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${r}".`});return()=>`${e}${n}${a()}`},Oie=rl();function Mie(e=globalThis){var t,r,n;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(n=(r=e.process)==null?void 0:r.versions)!=null&&n.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function Pu(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,n)=>{t[n.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,n]of e)n!=null&&(t[r.toLowerCase()]=n)}return t}function HS(e,...t){let r=new Headers(Pu(e)),n=r.get("user-agent")||"";return r.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var MBe=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,RBe=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Tie(e){let t=JSON.parse(e);return t===null||typeof t!="object"||MBe.test(e)===!1&&RBe.test(e)===!1?t:DBe(t)}function DBe(e){let t=[e];for(;t.length;){let r=t;t=[];for(let n of r){if(Object.prototype.hasOwnProperty.call(n,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor!==null&&typeof n.constructor=="object"&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let a in n){let o=n[a];o&&typeof o=="object"&&t.push(o)}}}return e}function NBe(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return Tie(e)}try{return Tie(e)}finally{Error.stackTraceLimit=t}}function S7(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:r}=e;if(r!=null)for(let n of Object.keys(r))r[n]=fd(r[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(fd):fd(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(fd)),e.allOf!=null&&(e.allOf=e.allOf.map(fd)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(fd));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=fd(t[r]);return e}function fd(e){return typeof e=="boolean"?e:S7(e)}var zBe=Symbol("Let zodToJsonSchema decide on which parser to use"),Cie={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},jBe=e=>typeof e=="string"?{...Cie,name:e}:{...Cie,...e};function no(){return{}}function BBe(e,t){var r,n,a;let o={type:"array"};return(r=e.type)!=null&&r._def&&((a=(n=e.type)==null?void 0:n._def)==null?void 0:a.typeName)!==Ee.ZodAny&&(o.items=tr(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function FBe(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function UBe(){return{type:"boolean"}}function Rie(e,t){return tr(e.type._def,t)}var qBe=(e,t)=>tr(e.innerType._def,t);function Die(e,t,r){let n=r??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((a,o)=>Die(e,t,a))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return VBe(e)}}var VBe=e=>{let t={type:"integer",format:"unix-time"};for(let r of e.checks)switch(r.kind){case"min":t.minimum=r.value;break;case"max":t.maximum=r.value;break}return t};function ZBe(e,t){return{...tr(e.innerType._def,t),default:e.defaultValue()}}function HBe(e,t){return t.effectStrategy==="input"?tr(e.schema._def,t):no()}function GBe(e){return{type:"string",enum:Array.from(e.values)}}var WBe=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function KBe(e,t){let r=[tr(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),tr(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(a=>!!a),n=[];return r.forEach(a=>{if(WBe(a))n.push(...a.allOf);else{let o=a;if("additionalProperties"in a&&a.additionalProperties===!1){let{additionalProperties:i,...s}=a;o=s}n.push(o)}}),n.length?{allOf:n}:void 0}function JBe(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var g7=void 0,bi={cuid:/^[cC][^\s-]{8,}
110$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(g7===void 0&&(g7=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),g7),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Nie(e,t){let r={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":xi(r,"email",n.message,t);break;case"format:idn-email":xi(r,"idn-email",n.message,t);break;case"pattern:zod":pa(r,bi.email,n.message,t);break}break;case"url":xi(r,"uri",n.message,t);break;case"uuid":xi(r,"uuid",n.message,t);break;case"regex":pa(r,n.regex,n.message,t);break;case"cuid":pa(r,bi.cuid,n.message,t);break;case"cuid2":pa(r,bi.cuid2,n.message,t);break;case"startsWith":pa(r,RegExp(`^${v7(n.value,t)}`),n.message,t);break;case"endsWith":pa(r,RegExp(`${v7(n.value,t)}$`),n.message,t);break;case"datetime":xi(r,"date-time",n.message,t);break;case"date":xi(r,"date",n.message,t);break;case"time":xi(r,"time",n.message,t);break;case"duration":xi(r,"duration",n.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,n.value):n.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,n.value):n.value;break;case"includes":{pa(r,RegExp(v7(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&xi(r,"ipv4",n.message,t),n.version!=="v4"&&xi(r,"ipv6",n.message,t);break}case"base64url":pa(r,bi.base64url,n.message,t);break;case"jwt":pa(r,bi.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&pa(r,bi.ipv4Cidr,n.message,t),n.version!=="v4"&&pa(r,bi.ipv6Cidr,n.message,t);break}case"emoji":pa(r,bi.emoji(),n.message,t);break;case"ulid":{pa(r,bi.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{xi(r,"binary",n.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{pa(r,bi.base64,n.message,t);break}}break}case"nanoid":pa(r,bi.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function v7(e,t){return t.patternStrategy==="escape"?YBe(e):e}var XBe=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function YBe(e){let t="";for(let r=0;r<e.length;r++)XBe.has(e[r])||(t+="\\"),t+=e[r];return t}function xi(e,t,r,n){var a;
vendor: 5,067 bytes, lines 110-114
110e.format||(a=e.anyOf)!=null&&a.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&n.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function pa(e,t,r,n){var a;e.pattern||(a=e.allOf)!=null&&a.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:Pie(t,n),...r&&n.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=Pie(t,n)}function Pie(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},a=n.i?e.source.toLowerCase():e.source,o="",i=!1,s=!1,l=!1;for(let u=0;u<a.length;u++){if(i){o+=a[u],i=!1;continue}if(n.i){if(s){if(a[u].match(/[a-z]/)){l?(o+=a[u],o+=`${a[u-2]}-${a[u]}`.toUpperCase(),l=!1):a[u+1]==="-"&&((r=a[u+2])!=null&&r.match(/[a-z]/))?(o+=a[u],l=!0):o+=`${a[u]}${a[u].toUpperCase()}`;continue}}else if(a[u].match(/[a-z]/)){o+=`[${a[u]}${a[u].toUpperCase()}]`;continue}}if(n.m){if(a[u]==="^"){o+=`(^|(?<=[\r 111]))`;continue}else if(a[u]==="$"){o+=`($|(?=[\r 112]))`;continue}}if(n.s&&a[u]==="."){o+=s?`${a[u]}\r 113`:`[${a[u]}\r 114]`;continue}o+=a[u],a[u]==="\\"?i=!0:s&&a[u]==="]"?s=!1:!s&&a[u]==="["&&(s=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function zie(e,t){var r,n,a,o,i,s;let l={type:"object",additionalProperties:(r=tr(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===Ee.ZodString&&((a=e.keyType._def.checks)!=null&&a.length)){let{type:u,...d}=Nie(e.keyType._def,t);return{...l,propertyNames:d}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===Ee.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===Ee.ZodBranded&&e.keyType._def.type._def.typeName===Ee.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:u,...d}=Rie(e.keyType._def,t);return{...l,propertyNames:d}}}return l}function QBe(e,t){if(t.mapStrategy==="record")return zie(e,t);let r=tr(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||no(),n=tr(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||no();return{type:"array",maxItems:125,items:{type:"array",items:[r,n],minItems:2,maxItems:2}}}function eFe(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),a=Array.from(new Set(n.map(o=>typeof o)));return{type:a.length===1?a[0]==="string"?"string":"number":["string","number"],enum:n}}function tFe(){return{not:no()}}function rFe(){return{type:"null"}}var b7={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function nFe(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(n=>n._def.typeName in b7&&(!n._def.checks||!n._def.checks.length))){let n=r.reduce((a,o)=>{let i=b7[o._def.typeName];return i&&!a.includes(i)?[...a,i]:a},[]);return{type:n.length>1?n:n[0]}}else if(r.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=r.reduce((a,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...a,i];case"bigint":return[...a,"integer"];case"object":if(o._def.value===null)return[...a,"null"];default:return a}},[]);if(n.length===r.length){let a=n.filter((o,i,s)=>s.indexOf(o)===i);return{type:a.length>1?a:a[0],enum:r.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(r.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((n,a)=>[...n,...a._def.values.filter(o=>!n.includes(o))],[])};return aFe(e,t)}var aFe=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,a)=>tr(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${a}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return r.length?{anyOf:r}:void 0};function oFe(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[b7[e.innerType._def.typeName],"null"]};let r=tr(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function iFe(e){let t={type:"number"};if(!e.checks)return t;for(let r of e.checks)switch(r.kind){case"int":t.type="integer";break;case"min":r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value;break;case"max":r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value;break;case"multipleOf":t.multipleOf=r.value;break}return t}function sFe(e,t){let r={type:"object",properties:{}},n=[],a=e.shape();for(let i in a){let s=a[i];if(s===void 0||s._def===void 0)continue;let l=uFe(s),u=tr(s._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});
114u!==void 0&&(r.properties[i]=u,l||n.push(i))}n.length&&(r.required=n);let o=lFe(e,t);return o!==void 0&&(r.additionalProperties=o),r}function lFe(e,t){if(e.catchall._def.typeName!=="ZodNever")return tr(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function uFe(e){try{return e.isOptional()}catch{return!0}}var cFe=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return tr(e.innerType._def,t);let n=tr(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:no()},n]}:no()},dFe=(e,t)=>{if(t.pipeStrategy==="input")return tr(e.in._def,t);if(t.pipeStrategy==="output")return tr(e.out._def,t);let r=tr(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=tr(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,n].filter(a=>a!==void 0)}};function fFe(e,t){return tr(e.type._def,t)}function pFe(e,t){let n={type:"array",uniqueItems:!0,items:tr(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function mFe(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,n)=>tr(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[]),additionalItems:tr(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,n)=>tr(r._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((r,n)=>n===void 0?r:[...r,n],[])}}function hFe(){return{not:no()}}function gFe(){return no()}var vFe=(e,t)=>tr(e.innerType._def,t),yFe=(e,t,r)=>{switch(t){case Ee.ZodString:return Nie(e,r);case Ee.ZodNumber:return iFe(e);case Ee.ZodObject:return sFe(e,r);case Ee.ZodBigInt:return FBe(e);case Ee.ZodBoolean:return UBe();case Ee.ZodDate:return Die(e,r);case Ee.ZodUndefined:return hFe();case Ee.ZodNull:return rFe();case Ee.ZodArray:return BBe(e,r);case Ee.ZodUnion:case Ee.ZodDiscriminatedUnion:return nFe(e,r);case Ee.ZodIntersection:return KBe(e,r);case Ee.ZodTuple:return mFe(e,r);case Ee.ZodRecord:return zie(e,r);case Ee.ZodLiteral:return JBe(e);case Ee.ZodEnum:return GBe(e);case Ee.ZodNativeEnum:return eFe(e);case Ee.ZodNullable:return oFe(e,r);case Ee.ZodOptional:return cFe(e,r);case Ee.ZodMap:return QBe(e,r);case Ee.ZodSet:return pFe(e,r);case Ee.ZodLazy:return()=>e.getter()._def;case Ee.ZodPromise:return fFe(e,r);case Ee.ZodNaN:case Ee.ZodNever:return tFe();case Ee.ZodEffects:return HBe(e,r);case Ee.ZodAny:return no();case Ee.ZodUnknown:return gFe();case Ee.ZodDefault:return ZBe(e,r);case Ee.ZodBranded:return Rie(e,r);case Ee.ZodReadonly:return vFe(e,r);case Ee.ZodCatch:return qBe(e,r);case Ee.ZodPipeline:return dFe(e,r);case Ee.ZodFunction:case Ee.ZodVoid:case Ee.ZodSymbol:return;default:return(n=>{})(t)}},bFe=(e,t)=>{let r=0;for(;r<e.length&&r<t.length&&e[r]===t[r];r++);return[(e.length-r).toString(),...t.slice(r)].join("/")};function tr(e,t,r=!1){var n;let a=t.seen.get(e);if(t.override){let l=(n=t.override)==null?void 0:n.call(t,e,t,a,r);if(l!==zBe)return l}if(a&&!r){let l=xFe(a,t);if(l!==void 0)return l}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=yFe(e,e.typeName,t),s=typeof i=="function"?tr(i(),t):i;if(s&&wFe(e,t,s),t.postProcess){let l=t.postProcess(s,e,t);return o.jsonSchema=s,l}return o.jsonSchema=s,s}var xFe=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:bFe(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,n)=>t.currentPath[n]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),no()):t.$refStrategy==="seen"?no():void 0}},wFe=(e,t,r)=>(e.description&&(r.description=e.description),r),_Fe=e=>{let t=jBe(e),r=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:r,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,a])=>[a._def,{def:a._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},SFe=(e,t)=>{var r;let n=_Fe(t),a=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[d,f])=>{var m;return{...u,[d]:(m=tr(f._def,{...n,currentPath:[...n.basePath,n.definitionPath,d]},!0))!=null?m:no()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(r=tr(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]}
114,!1))!=null?r:no(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(i.title=s);let l=o===void 0?a?{...i,[n.definitionPath]:a}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:{...a,[o]:i}};return l.$schema="http://json-schema.org/draft-07/schema#",l},x7=Symbol.for("vercel.ai.schema");function GS(e){let t;return()=>(t==null&&(t=e()),t)}function WS(e,{validate:t}={}){return{[x7]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function kFe(e){return typeof e=="object"&&e!==null&&x7 in e&&e[x7]===!0&&"jsonSchema"in e&&"validate"in e}function KS(e){return e==null?WS({properties:{},additionalProperties:!1}):kFe(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Qv(e):IFe(e):e()}function IFe(e){return WS(()=>S7(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let r=await e["~standard"].validate(t);return"value"in r?{success:!0,value:r.value}:{success:!1,error:new Xi({value:t,cause:r.issues})}}})}function TFe(e,t){var r;let n=(r=t?.useReferences)!=null?r:!1;return WS(()=>SFe(e,{$refStrategy:n?"root":"none"}),{validate:async a=>{let o=await e.safeParseAsync(a);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function CFe(e,t){var r;let n=(r=t?.useReferences)!=null?r:!1;return WS(()=>S7(kS(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async a=>{let o=await TS(e,a);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function PFe(e){return"_zod"in e}function Qv(e,t){return PFe(e)?CFe(e,t):TFe(e,t)}async function JS({value:e,schema:t,context:r}){let n=await wm({value:e,schema:t,context:r});if(!n.success)throw Xi.wrap({value:e,cause:n.error,context:r});return n.value}async function wm({value:e,schema:t,context:r}){let n=KS(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};let a=await n.validate(e);return a.success?{success:!0,value:a.value,rawValue:e}:{success:!1,error:Xi.wrap({value:e,cause:a.error,context:r}),rawValue:e}}catch(a){return{success:!1,error:Xi.wrap({value:e,cause:a,context:r}),rawValue:e}}}async function nl({text:e,schema:t}){try{let r=NBe(e);return t==null?{success:!0,value:r,rawValue:r}:await wm({value:r,schema:t})}catch(r){return{success:!1,error:kA.isInstance(r)?r:new kA({text:e,cause:r}),rawValue:void 0}}}function jie({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new ZS).pipeThrough(new TransformStream({async transform({data:r},n){r!=="[DONE]"&&n.enqueue(await nl({text:r,schema:t}))}}))}async function ts(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var E={};Fn(E,{$brand:()=>XS,$input:()=>qO,$output:()=>UO,NEVER:()=>k7,TimePrecision:()=>GO,ZodAny:()=>DM,ZodArray:()=>BM,ZodBase64:()=>k4,ZodBase64URL:()=>I4,ZodBigInt:()=>Xm,ZodBigIntFormat:()=>P4,ZodBoolean:()=>Jm,ZodCIDRv4:()=>_4,ZodCIDRv6:()=>S4,ZodCUID:()=>h4,ZodCUID2:()=>g4,ZodCatch:()=>lR,ZodCodec:()=>D4,ZodCustom:()=>Ly,ZodCustomStringFormat:()=>Wm,ZodDate:()=>Ty,ZodDefault:()=>rR,ZodDiscriminatedUnion:()=>UM,ZodE164:()=>T4,ZodEmail:()=>f4,ZodEmoji:()=>p4,ZodEnum:()=>Hm,ZodError:()=>rVe,ZodExactOptional:()=>QM,ZodFile:()=>XM,ZodFirstPartyTypeKind:()=>xR,ZodFunction:()=>vR,ZodGUID:()=>wy,ZodIPv4:()=>x4,ZodIPv6:()=>w4,ZodISODate:()=>i4,ZodISODateTime:()=>o4,ZodISODuration:()=>l4,ZodISOTime:()=>s4,ZodIntersection:()=>qM,ZodIssueCode:()=>aVe,ZodJWT:()=>C4,ZodKSUID:()=>b4,ZodLazy:()=>mR,ZodLiteral:()=>JM,ZodMAC:()=>AM,ZodMap:()=>WM,ZodNaN:()=>cR,ZodNanoID:()=>m4,ZodNever:()=>zM,ZodNonOptional:()=>M4,ZodNull:()=>MM,ZodNullable:()=>tR,ZodNumber:()=>Km,ZodNumberFormat:()=>xd,ZodObject:()=>Py,ZodOptional:()=>O4,ZodPipe:()=>R4,ZodPrefault:()=>aR,ZodPromise:()=>gR,ZodReadonly:()=>dR,ZodRealError:()=>Ra,ZodRecord:()=>Ey,ZodSet:()=>KM,ZodString:()=>Gm,ZodStringFormat:()=>ir,ZodSuccess:()=>sR,ZodSymbol:()=>$M,ZodTemplateLiteral:()=>pR,ZodTransform:()=>YM,ZodTuple:()=>ZM,ZodType:()=>St,ZodULID:()=>v4,ZodURL:()=>Iy,ZodUUID:()=>os,ZodUndefined:()=>OM,ZodUnion:()=>Ay,ZodUnknown:()=>NM,ZodVoid:()=>jM,ZodXID:()=>y4,ZodXor:()=>FM,_ZodString:()=>d4,_default:()=>nR,_function:()=>yue,any:()=>Jle,array:()=>Cy,base64:()=>Ole,base64url:()=>Mle,bigint:()=>Zle,boolean:()=>LM,catch:()=>uR,check:()=>bue,cidrv4:()=>Lle,cidrv6:()=>$le,clone:()=>ma,codec:()=>hue,coerce:()=>wR,config:()=>Fr,core:()=>il,cuid:()=>Sle,cuid2:()=>kle,custom:()=>xue,date:()=>Yle,decode:()=>_M,decodeAsync:()=>kM,describe:()=>wue,discriminatedUnion:()=>aue,e164:()=>Rle,email:()=>ple,emoji:()=>wle,encode:()=>wM,encodeAsync:()=>SM,endsWith:()=>Dm,enum:()=>L4,exactOptional:()=>eR,file:()=>due,flattenError:()=>ly,float32:()=>Fle,float64:()=>Ule,formatError:()=>uy,fromJSONSchema:()=>Pue,function:()=>yue,getErrorMap:()=>iVe,globalRegistry:()=>Dn,gt:()=>ns,gte:()=>ha,guid:()=>mle,hash:()=>Ble,hex:()=>jle,hostname:()=>zle,httpUrl:()=>xle,includes:()=>Mm,instanceof:()=>Sue,int:()=>c4,int32:()=>qle,int64:()=>Hle,intersection:()=>VM,ipv4:()=>Ple,ipv6:()=>Ele,iso:()=>Zm,json:()=>Iue,jwt:()=>Dle,keyof:()=>Qle,ksuid:()=>Cle,lazy:()=>hR,length:()=>yd,literal:()=>cue,locales:()=>vy,looseObject:()=>rue,looseRecord:()=>iue,lowercase:()=>$m,lt:()=>rs,lte:()=>oo,mac:()=>Ale,map:()=>sue,maxLength:()=>vd,maxSize:()=>Ru,meta:()=>_ue,mime:()=>Nm,minLength:()=>ol,minSize:()=>as,multipleOf:()=>Mu,nan:()=>mue,nanoid:()=>_le,nativeEnum:()=>uue,negative:()=>K2,never:()=>A4,nonnegative:()=>X2,nonoptional:()=>iR,nonpositive:()=>J2,normalize:()=>zm,null:()=>RM,nullable:()=>Sy,nullish:()=>fue,number:()=>EM,object:()=>eue,optional:()=>_y,overwrite:()=>_i,parse:()=>vM,parseAsync:()=>yM,partialRecord:()=>oue,pipe:()=>ky,positive:()=>W2,prefault:()=>oR,preprocess:()=>Tue,prettifyError:()=>D7,promise:()=>vue,property:()=>Y2,readonly:()=>fR,record:()=>GM,refine:()=>yR,regex:()=>Lm,regexes:()=>Ro,registry:()=>C2,safeDecode:()=>TM,safeDecodeAsync:()=>PM,safeEncode:()=>IM,safeEncodeAsync:()=>CM,safeParse:()=>bM,safeParseAsync:()=>xM,set:()=>lue,setErrorMap:()=>oVe,size:()=>gd,slugify:()=>Um,startsWith:()=>Rm,strictObject:()=>tue,string:()=>u4,stringFormat:()=>Nle,stringbool:()=>kue,success:()=>pue,superRefine:()=>bR,symbol:()=>
114Wle,templateLiteral:()=>gue,toJSONSchema:()=>r4,toLowerCase:()=>Bm,toUpperCase:()=>Fm,transform:()=>$4,treeifyError:()=>R7,trim:()=>jm,tuple:()=>HM,uint32:()=>Vle,uint64:()=>Gle,ulid:()=>Ile,undefined:()=>Kle,union:()=>E4,unknown:()=>bd,uppercase:()=>Om,url:()=>ble,util:()=>Ce,uuid:()=>hle,uuidv4:()=>gle,uuidv6:()=>vle,uuidv7:()=>yle,void:()=>Xle,xid:()=>Tle,xor:()=>nue});var il={};Fn(il,{$ZodAny:()=>cO,$ZodArray:()=>hO,$ZodAsyncError:()=>wi,$ZodBase64:()=>eO,$ZodBase64URL:()=>tO,$ZodBigInt:()=>x2,$ZodBigIntFormat:()=>iO,$ZodBoolean:()=>py,$ZodCIDRv4:()=>X$,$ZodCIDRv6:()=>Y$,$ZodCUID:()=>j$,$ZodCUID2:()=>B$,$ZodCatch:()=>OO,$ZodCheck:()=>fr,$ZodCheckBigIntFormat:()=>h$,$ZodCheckEndsWith:()=>C$,$ZodCheckGreaterThan:()=>p2,$ZodCheckIncludes:()=>I$,$ZodCheckLengthEquals:()=>w$,$ZodCheckLessThan:()=>f2,$ZodCheckLowerCase:()=>S$,$ZodCheckMaxLength:()=>b$,$ZodCheckMaxSize:()=>g$,$ZodCheckMimeType:()=>A$,$ZodCheckMinLength:()=>x$,$ZodCheckMinSize:()=>v$,$ZodCheckMultipleOf:()=>p$,$ZodCheckNumberFormat:()=>m$,$ZodCheckOverwrite:()=>E$,$ZodCheckProperty:()=>P$,$ZodCheckRegex:()=>_$,$ZodCheckSizeEquals:()=>y$,$ZodCheckStartsWith:()=>T$,$ZodCheckStringFormat:()=>Am,$ZodCheckUpperCase:()=>k$,$ZodCodec:()=>hy,$ZodCustom:()=>FO,$ZodCustomStringFormat:()=>aO,$ZodDate:()=>mO,$ZodDefault:()=>AO,$ZodDiscriminatedUnion:()=>yO,$ZodE164:()=>rO,$ZodEmail:()=>R$,$ZodEmoji:()=>N$,$ZodEncodeError:()=>Au,$ZodEnum:()=>SO,$ZodError:()=>sy,$ZodExactOptional:()=>CO,$ZodFile:()=>IO,$ZodFunction:()=>zO,$ZodGUID:()=>O$,$ZodIPv4:()=>W$,$ZodIPv6:()=>K$,$ZodISODate:()=>Z$,$ZodISODateTime:()=>V$,$ZodISODuration:()=>G$,$ZodISOTime:()=>H$,$ZodIntersection:()=>bO,$ZodJWT:()=>nO,$ZodKSUID:()=>q$,$ZodLazy:()=>BO,$ZodLiteral:()=>kO,$ZodMAC:()=>J$,$ZodMap:()=>wO,$ZodNaN:()=>MO,$ZodNanoID:()=>z$,$ZodNever:()=>fO,$ZodNonOptional:()=>LO,$ZodNull:()=>uO,$ZodNullable:()=>PO,$ZodNumber:()=>b2,$ZodNumberFormat:()=>oO,$ZodObject:()=>fse,$ZodObjectJIT:()=>gO,$ZodOptional:()=>_2,$ZodPipe:()=>RO,$ZodPrefault:()=>EO,$ZodPromise:()=>jO,$ZodReadonly:()=>DO,$ZodRealError:()=>Ma,$ZodRecord:()=>xO,$ZodRegistry:()=>T2,$ZodSet:()=>_O,$ZodString:()=>hd,$ZodStringFormat:()=>or,$ZodSuccess:()=>$O,$ZodSymbol:()=>sO,$ZodTemplateLiteral:()=>NO,$ZodTransform:()=>TO,$ZodTuple:()=>w2,$ZodType:()=>ht,$ZodULID:()=>F$,$ZodURL:()=>D$,$ZodUUID:()=>M$,$ZodUndefined:()=>lO,$ZodUnion:()=>my,$ZodUnknown:()=>dO,$ZodVoid:()=>pO,$ZodXID:()=>U$,$ZodXor:()=>vO,$brand:()=>XS,$constructor:()=>ne,$input:()=>qO,$output:()=>UO,Doc:()=>fy,JSONSchema:()=>dle,JSONSchemaGenerator:()=>n4,NEVER:()=>k7,TimePrecision:()=>GO,_any:()=>m8,_array:()=>w8,_base64:()=>V2,_base64url:()=>Z2,_bigint:()=>s8,_boolean:()=>o8,_catch:()=>Wqe,_check:()=>cle,_cidrv4:()=>U2,_cidrv6:()=>q2,_coercedBigint:()=>l8,_coercedBoolean:()=>i8,_coercedDate:()=>b8,_coercedNumber:()=>QO,_coercedString:()=>ZO,_cuid:()=>R2,_cuid2:()=>D2,_custom:()=>S8,_date:()=>y8,_decode:()=>n2,_decodeAsync:()=>o2,_default:()=>Zqe,_discriminatedUnion:()=>Oqe,_e164:()=>H2,_email:()=>P2,_emoji:()=>O2,_encode:()=>r2,_encodeAsync:()=>a2,_endsWith:()=>Dm,_enum:()=>jqe,_file:()=>_8,_float32:()=>t8,_float64:()=>r8,_gt:()=>ns,_gte:()=>ha,_guid:()=>yy,_includes:()=>Mm,_int:()=>e8,_int32:()=>n8,_int64:()=>u8,_intersection:()=>Mqe,_ipv4:()=>B2,_ipv6:()=>F2,_isoDate:()=>KO,_isoDateTime:()=>WO,_isoDuration:()=>XO,_isoTime:()=>JO,_jwt:()=>G2,_ksuid:()=>j2,_lazy:()=>Yqe,_length:()=>yd,_literal:()=>Fqe,_lowercase:()=>$m,_lt:()=>rs,_lte:()=>oo,_mac:()=>HO,_map:()=>Nqe,_max:()=>oo,_maxLength:()=>vd,_maxSize:()=>Ru,_mime:()=>Nm,_min:()=>ha,_minLength:()=>ol,_minSize:()=>as,_multipleOf:()=>Mu,_nan:()=>x8,_nanoid:()=>M2,_nativeEnum:()=>Bqe,_negative:()=>K2,_never:()=>g8,_nonnegative:()=>X2,_nonoptional:()=>Hqe,_nonpositive:()=>J2,_normalize:()=>zm,_null:()=>p8,_nullable:()=>Vqe,_number:()=>YO,_optional:()=>qqe,_overwrite:()=>_i,_parse:()=>Im,_parseAsync:()=>Tm,_pipe:()=>Kqe,_positive:()=>W2,_promise:()=>Qqe,_property:()=>Y2,_readonly:()=>Jqe,_record:()=>Dqe,_refine:()=>k8,_regex:()=>Lm,_safeDecode:()=>s2,_safeDecodeAsync:()=>u2,_safeEncode:()=>i2,_safeEncodeAsync:()=>l2,_safeParse:()=>Cm,_safeParseAsync:()=>Pm,_set:()=>zqe,_size:()=>gd,_slugify:()=>Um,_startsWith:()=>Rm,_string:()=>VO,_stringFormat:()=>qm,_stringbool:()=>P8,_success:()=>Gqe,_superRefine:()=>I8,_symbol:()=>
vendor: 9,315 bytes, line 114
114d8,_templateLiteral:()=>Xqe,_toLowerCase:()=>Bm,_toUpperCase:()=>Fm,_transform:()=>Uqe,_trim:()=>jm,_tuple:()=>Rqe,_uint32:()=>a8,_uint64:()=>c8,_ulid:()=>N2,_undefined:()=>f8,_union:()=>Lqe,_unknown:()=>h8,_uppercase:()=>Om,_url:()=>by,_uuid:()=>A2,_uuidv4:()=>E2,_uuidv6:()=>L2,_uuidv7:()=>$2,_void:()=>v8,_xid:()=>z2,_xor:()=>$qe,clone:()=>ma,config:()=>Fr,createStandardJSONSchemaMethod:()=>Vm,createToJSONSchemaMethod:()=>A8,decode:()=>rUe,decodeAsync:()=>aUe,describe:()=>T8,encode:()=>tUe,encodeAsync:()=>nUe,extractDefs:()=>Nu,finalize:()=>zu,flattenError:()=>ly,formatError:()=>uy,globalConfig:()=>ey,globalRegistry:()=>Dn,initializeContext:()=>Du,isValidBase64:()=>Q$,isValidBase64URL:()=>lse,isValidJWT:()=>use,locales:()=>vy,meta:()=>C8,parse:()=>e2,parseAsync:()=>t2,prettifyError:()=>D7,process:()=>Yt,regexes:()=>Ro,registry:()=>C2,safeDecode:()=>iUe,safeDecodeAsync:()=>lUe,safeEncode:()=>oUe,safeEncodeAsync:()=>sUe,safeParse:()=>N7,safeParseAsync:()=>z7,toDotPath:()=>Vie,toJSONSchema:()=>r4,treeifyError:()=>R7,util:()=>Ce,version:()=>L$});var k7=Object.freeze({status:"aborted"});function ne(e,t,r){function n(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=i.prototype,d=Object.keys(u);for(let f=0;f<d.length;f++){let m=d[f];m in s||(s[m]=u[m].bind(s))}}let a=r?.Parent??Object;class o extends a{}Object.defineProperty(o,"name",{value:e});function i(s){var l;let u=r?.Parent?new o:this;n(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var XS=Symbol("zod_brand"),wi=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Au=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},ey={};function Fr(e){return e&&Object.assign(ey,e),ey}var Ce={};Fn(Ce,{BIGINT_FORMAT_RANGES:()=>M7,Class:()=>T7,NUMBER_FORMAT_RANGES:()=>O7,aborted:()=>Ou,allowsEval:()=>A7,assert:()=>OFe,assertEqual:()=>AFe,assertIs:()=>LFe,assertNever:()=>$Fe,assertNotEqual:()=>EFe,assignProp:()=>Lu,base64ToUint8Array:()=>Fie,base64urlToUint8Array:()=>JFe,cached:()=>Sm,captureStackTrace:()=>QS,cleanEnum:()=>KFe,cleanRegex:()=>ny,clone:()=>ma,cloneDef:()=>RFe,createTransparentProxy:()=>FFe,defineLazy:()=>Et,esc:()=>YS,escapeRegex:()=>Mo,extend:()=>VFe,finalizeIssue:()=>Oa,floatSafeRemainder:()=>C7,getElementAtPath:()=>DFe,getEnumValues:()=>ry,getLengthableOrigin:()=>iy,getParsedType:()=>BFe,getSizableOrigin:()=>oy,hexToUint8Array:()=>YFe,isObject:()=>pd,isPlainObject:()=>$u,issue:()=>km,joinValues:()=>de,jsonStringifyReplacer:()=>_m,merge:()=>HFe,mergeDefs:()=>al,normalizeParams:()=>$e,nullish:()=>Eu,numKeys:()=>jFe,objectClone:()=>MFe,omit:()=>qFe,optionalKeys:()=>$7,parsedType:()=>Ie,partial:()=>GFe,pick:()=>UFe,prefixIssues:()=>ao,primitiveTypes:()=>L7,promiseAllObject:()=>NFe,propertyKeyTypes:()=>ay,randomString:()=>zFe,required:()=>WFe,safeExtend:()=>ZFe,shallowClone:()=>E7,slugify:()=>P7,stringifyPrimitive:()=>Se,uint8ArrayToBase64:()=>Uie,uint8ArrayToBase64url:()=>XFe,uint8ArrayToHex:()=>QFe,unwrapMessage:()=>ty});function AFe(e){return e}function EFe(e){return e}function LFe(e){}function $Fe(e){throw new Error("Unexpected value in exhaustive check")}function OFe(e){}function ry(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,a])=>t.indexOf(+n)===-1).map(([n,a])=>a)}function de(e,t="|"){return e.map(r=>Se(r)).join(t)}function _m(e,t){return typeof t=="bigint"?t.toString():t}function Sm(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Eu(e){return e==null}function ny(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function C7(e,t){let r=(e.toString().split(".")[1]||"").length,n=t.toString(),a=(n.split(".")[1]||"").length;if(a===0&&/\d?e-\d?/.test(n)){let l=n.match(/\d?e-(\d?)/);l?.[1]&&(a=Number.parseInt(l[1]))}let o=r>a?r:a,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Bie=Symbol("evaluating");function Et(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==Bie)return n===void 0&&(n=Bie,n=r()),n},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function MFe(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Lu(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function al(...e){let t={};for(let r of e){let n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function RFe(e){return al(e._zod.def)}function DFe(e,t){return t?t.reduce((r,n)=>r?.[n],e):e}function NFe(e){let t=Object.keys(e),r=t.map(n=>e[n]);return Promise.all(r).then(n=>{let a={};for(let o=0;o<t.length;o++)a[t[o]]=n[o];return a})}function zFe(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let n=0;n<e;n++)r+=t[Math.floor(Math.random()*t.length)];return r}function YS(e){return JSON.stringify(e)}function P7(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var QS="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function pd(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var A7=Sm(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function $u(e){if(pd(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(pd(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function E7(e){return $u(e)?{...e}:Array.isArray(e)?[...e]:e}function jFe(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var BFe=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},ay=new Set(["string","number","symbol"]),L7=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Mo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ma(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function $e(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function FFe(e){let t;return new Proxy({},{get(r,n,a){return t??(t=e()),Reflect.get(t,n,a)},set(r,n,a,o){return t??(t=e()),Reflect.set(t,n,a,o)},has(r,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(r,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(r,n,a){return t??(t=e()),Reflect.defineProperty(t,n,a)}})}function Se(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function $7(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var O7={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},M7={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function UFe(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=al(e._zod.def,{get shape(){let i={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(i[s]=r.shape[s])}return Lu(this,"shape",i),i},checks:[]});return ma(e,o)}function qFe(e,t){let r=e._zod.def,n=r.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=al(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete i[s]}return Lu(this,"shape",i),i},checks:[]});return ma(e,o)}function VFe(e,t){if(!$u(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot over
114write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let a=al(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Lu(this,"shape",o),o}});return ma(e,a)}function ZFe(e,t){if(!$u(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=al(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Lu(this,"shape",n),n}});return ma(e,r)}function HFe(e,t){let r=al(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Lu(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return ma(e,r)}function GFe(e,t,r){let a=t._zod.def.checks;if(a&&a.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=al(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Lu(this,"shape",l),l},checks:[]});return ma(t,i)}function WFe(e,t,r){let n=al(t._zod.def,{get shape(){let a=t._zod.def.shape,o={...a};if(r)for(let i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(o[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(let i in a)o[i]=new e({type:"nonoptional",innerType:a[i]});return Lu(this,"shape",o),o}});return ma(t,n)}function Ou(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function ao(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function ty(e){return typeof e=="string"?e:e?.message}function Oa(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let a=ty(e.inst?._zod.def?.error?.(e))??ty(t?.error?.(e))??ty(r.customError?.(e))??ty(r.localeError?.(e))??"Invalid input";n.message=a}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function oy(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function iy(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ie(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function km(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}function KFe(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Fie(e){let t=atob(e),r=new Uint8Array(t.length);for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}function Uie(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function JFe(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Fie(t+r)}function XFe(e){return Uie(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function YFe(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)r[n/2]=Number.parseInt(t.slice(n,n+2),16);return r}function QFe(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var T7=class{constructor(...t){}};var qie=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,_m,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},sy=ne("$ZodError",qie),Ma=ne("$ZodError",qie,{Parent:Error});function ly(e,t=r=>r.message){let r={},n=[];for(let a of e.issues)a.path.length>0?(r[a.path[0]]=r[a.path[0]]||[],r[a.path[0]].push(t(a))):n.push(t(a));return{formErrors:n,fieldErrors:r}}function uy(e,t=r=>r.message){let r={_errors:[]},n=a=>{for(let o of a.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)r._errors.push(t(o));else{let i=r,s=0;for(;s<o.path.length;){let l=o.path[s];s===o.path.length-1?(i[l]=i[l]||{_errors:[]},i[l]._errors.push(t(o))):i[l]=i[l]||{_errors:[]},i=i[l],s++}}};return n(e),r}function R7(e,t=r=>r.message){let r={errors:[]},n=(a,o=[])=>{var i,s;for(let l of a.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>n({issues:u},l.path));else if(l.code==="invalid_key")n({issues:l.issues},l.path);else if(l.code==="invalid_element")n({issues:l.issues},l.path);else{let u=[...o,...l.path];if(u.length===0){r.errors.push(t(l));continue}let d=r,f=0;for(;f<u.length;){let m=u[f],h=f===u.length-1;typeof m=="string"?(d.properties??(d.properties={}),(i=d.properties)[m]??(i[m]={errors:[]}),d=d.properties[m]):(d.items??(d.items=[]),(s=d.items)[m]??(s[m]={errors:[]}),d=d.items[m]),h&&d.errors.push(t(l)),f++}}};return n(e),r}function Vie(e){let t=[],r=e.map(n=>typeof n=="object"?n.key:n);
114for(let n of r)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function D7(e){let t=[],r=[...e.issues].sort((n,a)=>(n.path??[]).length-(a.path??[]).length);for(let n of r)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${Vie(n.path)}`);return t.join(` 115`)}var Im=e=>(t,r,n,a)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new wi;if(i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>Oa(l,o,Fr())));throw QS(s,a?.callee),s}return i.value},e2=Im(Ma),Tm=e=>async(t,r,n,a)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let s=new(a?.Err??e)(i.issues.map(l=>Oa(l,o,Fr())));throw QS(s,a?.callee),s}return i.value},t2=Tm(Ma),Cm=e=>(t,r,n)=>{let a=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},a);if(o instanceof Promise)throw new wi;return o.issues.length?{success:!1,error:new(e??sy)(o.issues.map(i=>Oa(i,a,Fr())))}:{success:!0,data:o.value}},N7=Cm(Ma),Pm=e=>async(t,r,n)=>{let a=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},a);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Oa(i,a,Fr())))}:{success:!0,data:o.value}},z7=Pm(Ma),r2=e=>(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Im(e)(t,r,a)},tUe=r2(Ma),n2=e=>(t,r,n)=>Im(e)(t,r,n),rUe=n2(Ma),a2=e=>async(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Tm(e)(t,r,a)},nUe=a2(Ma),o2=e=>async(t,r,n)=>Tm(e)(t,r,n),aUe=o2(Ma),i2=e=>(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Cm(e)(t,r,a)},oUe=i2(Ma),s2=e=>(t,r,n)=>Cm(e)(t,r,n),iUe=s2(Ma),l2=e=>async(t,r,n)=>{let a=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Pm(e)(t,r,a)},sUe=l2(Ma),u2=e=>async(t,r,n)=>Pm(e)(t,r,n),lUe=u2(Ma);var Ro={};Fn(Ro,{base64:()=>e$,base64url:()=>c2,bigint:()=>i$,boolean:()=>l$,browserEmail:()=>gUe,cidrv4:()=>Y7,cidrv6:()=>Q7,cuid:()=>j7,cuid2:()=>B7,date:()=>r$,datetime:()=>a$,domain:()=>bUe,duration:()=>Z7,e164:()=>t$,email:()=>G7,emoji:()=>W7,extendedDuration:()=>uUe,guid:()=>H7,hex:()=>xUe,hostname:()=>yUe,html5Email:()=>pUe,idnEmail:()=>hUe,integer:()=>s$,ipv4:()=>K7,ipv6:()=>J7,ksuid:()=>q7,lowercase:()=>d$,mac:()=>X7,md5_base64:()=>_Ue,md5_base64url:()=>SUe,md5_hex:()=>wUe,nanoid:()=>V7,null:()=>u$,number:()=>d2,rfc5322Email:()=>mUe,sha1_base64:()=>IUe,sha1_base64url:()=>TUe,sha1_hex:()=>kUe,sha256_base64:()=>PUe,sha256_base64url:()=>AUe,sha256_hex:()=>CUe,sha384_base64:()=>LUe,sha384_base64url:()=>$Ue,sha384_hex:()=>EUe,sha512_base64:()=>MUe,sha512_base64url:()=>RUe,sha512_hex:()=>OUe,string:()=>o$,time:()=>n$,ulid:()=>F7,undefined:()=>c$,unicodeEmail:()=>Zie,uppercase:()=>f$,uuid:()=>md,uuid4:()=>cUe,uuid6:()=>dUe,uuid7:()=>fUe,xid:()=>U7});var j7=/^[cC][^\s-]{8,}$/,B7=/^[0-9a-z]+$/,F7=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,U7=/^[0-9a-vA-V]{20}$/,q7=/^[A-Za-z0-9]{27}$/,V7=/^[a-zA-Z0-9_-]{21}$/,Z7=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,uUe=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,H7=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,md=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,cUe=md(4),dUe=md(6),fUe=md(7),G7=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,pUe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,mUe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}
vendor: 63,127 bytes, lines 115-151
115))$/,Zie=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,hUe=Zie,gUe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,vUe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function W7(){return new RegExp(vUe,"u")}var K7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,J7=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,X7=e=>{let t=Mo(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Y7=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Q7=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,e$=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,c2=/^[A-Za-z0-9_-]*$/,yUe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,bUe=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,t$=/^\+[1-9]\d{6,14}$/,Hie="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",r$=new RegExp(`^${Hie}$`);function Gie(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function n$(e){return new RegExp(`^${Gie(e)}$`)}function a$(e){let t=Gie({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Hie}T(?:${n})$`)}var o$=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},i$=/^-?\d+n?$/,s$=/^-?\d+$/,d2=/^-?\d+(?:\.\d+)?$/,l$=/^(?:true|false)$/i,u$=/^null$/i;var c$=/^undefined$/i;var d$=/^[^A-Z]*$/,f$=/^[^a-z]*$/,xUe=/^[0-9a-fA-F]*$/;function cy(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function dy(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var wUe=/^[0-9a-fA-F]{32}$/,_Ue=cy(22,"=="),SUe=dy(22),kUe=/^[0-9a-fA-F]{40}$/,IUe=cy(27,"="),TUe=dy(27),CUe=/^[0-9a-fA-F]{64}$/,PUe=cy(43,"="),AUe=dy(43),EUe=/^[0-9a-fA-F]{96}$/,LUe=cy(64,""),$Ue=dy(64),OUe=/^[0-9a-fA-F]{128}$/,MUe=cy(86,"=="),RUe=dy(86);var fr=ne("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Kie={number:"number",bigint:"bigint",object:"date"},f2=ne("$ZodCheckLessThan",(e,t)=>{fr.init(e,t);let r=Kie[typeof t.value];e._zod.onattach.push(n=>{let a=n._zod.bag,o=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?a.maximum=t.value:a.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),p2=ne("$ZodCheckGreaterThan",(e,t)=>{fr.init(e,t);let r=Kie[typeof t.value];e._zod.onattach.push(n=>{let a=n._zod.bag,o=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?a.minimum=t.value:a.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),p$=ne("$ZodCheckMultipleOf",(e,t)=>{fr.init(e,t),e._zod.onattach.push(r=>{var n;(n=r._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):C7(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),m$=ne("$ZodCheckNumberFormat",(e,t)=>{fr.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),n=r?"int":"number",[a,o]=O7[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=a,s.maximum=o,r&&(s.pattern=s$)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?i.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):i.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}s<a&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),s>o&&i.issues.push({origin:"number",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),h$=ne("$ZodCheckBigIntFormat",(e,t)=>{fr.init(e,t);let[r,n]=M7[t.format];e._zod.onattach.push(a=>{let o=a._zod.bag;o.format=t.format,o.minimum=r,o.maximum=n}),e._zod.check=a=>{let o=a.value;o<r&&a.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>n&&a.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),g$=ne("$ZodCheckMaxSize",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let a=n.value;a.size<=t.maximum||n.issues.push({origin:oy(a),code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),v$=ne("$ZodCheckMinSize",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let a=n.value;a.size>=t.minimum||n.issues.push({origin:oy(a),code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),y$=ne("$ZodCheckSizeEquals",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.size!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=t.size,a.maximum=t.size,a.size=t.size}),e._zod.check=n=>{let a=n.value,o=a.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:oy(a),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),b$=ne("$ZodCheckMaxLength",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<a&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let a=n.value;if(a.length<=t.maximum)return;let i=iy(a);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),x$=ne("$ZodCheckMinLength",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>a&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let a=n.value;if(a.length>=t.minimum)return;let i=iy(a);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),w$=ne("$ZodCheckLengthEquals",(e,t)=>{var r;fr.init(e,t),(r=e._zod.def).when??(r.when=n=>{let a=n.value;return!Eu(a)&&a.length!==void 0}),e._zod.onattach.push(n=>{let a=n._zod.bag;a.minimum=t.length,a.maximum=t.length,a.length=t.length}),e._zod.check=n=>{let a=n.value,o=a.length;if(o===t.length)return;let i=iy(a),s=o>t.length;n.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Am=ne("$ZodCheckStringFormat",(e,t)=>{var r,n;fr.init(e,t),e._zod.onattach.push(a=>{let o=a._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:t.format,input:a.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),_$=ne("$ZodCheckRegex",(e,t)=>{Am.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),S$=ne("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=d$),Am.init(e,t)}),k$=ne("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=f$),Am.init(e,t)}),I$=ne("$ZodCheckIncludes",(e,t)=>{fr.init(e,t);let r=Mo(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(a=>{let o=a._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),T$=ne("$ZodCheckStartsWith",(e,t)=>{fr.init(e,t);let r=new RegExp(`^${Mo(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),C$=ne("$ZodCheckEndsWith",(e,t)=>{fr.init(e,t);let r=new RegExp(`.*${Mo(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{let a=n._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function Wie(e,t,r){e.issues.length&&t.issues.push(...ao(r,e.issues))}var P$=ne("$ZodCheckProperty",(e,t)=>{fr.init(e,t),e._zod.check=r=>{let n=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(a=>Wie(a,r,t.property));Wie(n,r,t.property)}}),A$=ne("$ZodCheckMimeType",(e,t)=>{fr.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{r.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),E$=ne("$ZodCheckOverwrite",(e,t)=>{fr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var fy=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(` 116`).filter(i=>i),a=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,a=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,a.join(` 117`))}};var L$={major:4,minor:3,patch:6};var ht=ne("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=L$;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let a of n)for(let o of a._zod.onattach)o(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let a=(i,s,l)=>{let u=Ou(i),d;for(let f of s){if(f._zod.def.when){if(!f._zod.def.when(i))continue}else if(u)continue;let m=i.issues.length,h=f._zod.check(i);if(h instanceof Promise&&l?.async===!1)throw new wi;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,i.issues.length!==m&&(u||(u=Ou(i,m)))});else{if(i.issues.length===m)continue;u||(u=Ou(i,m))}}return d?d.then(()=>i):i},o=(i,s,l)=>{if(Ou(i))return i.aborted=!0,i;let u=a(s,n,l);if(u instanceof Promise){if(l.async===!1)throw new wi;return u.then(d=>e._zod.parse(d,l))}return e._zod.parse(u,l)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,i,s)):o(u,i,s)}let l=e._zod.parse(i,s);if(l instanceof Promise){if(s.async===!1)throw new wi;return l.then(u=>a(u,n,s))}return a(l,n,s)}}Et(e,"~standard",()=>({validate:a=>{try{let o=N7(e,a);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return z7(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),hd=ne("$ZodString",(e,t)=>{ht.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??o$(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),or=ne("$ZodStringFormat",(e,t)=>{Am.init(e,t),hd.init(e,t)}),O$=ne("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=H7),or.init(e,t)}),M$=ne("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=md(n))}else t.pattern??(t.pattern=md());or.init(e,t)}),R$=ne("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=G7),or.init(e,t)}),D$=ne("$ZodURL",(e,t)=>{or.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),a=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=a.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),N$=ne("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=W7()),or.init(e,t)}),z$=ne("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=V7),or.init(e,t)}),j$=ne("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=j7),or.init(e,t)}),B$=ne("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=B7),or.init(e,t)}),F$=ne("$ZodULID",(e,t)=>{t.pattern??(t.pattern=F7),or.init(e,t)}),U$=ne("$ZodXID",(e,t)=>{t.pattern??(t.pattern=U7),or.init(e,t)}),q$=ne("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=q7),or.init(e,t)}),V$=ne("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=a$(t)),or.init(e,t)}),Z$=ne("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=r$),or.init(e,t)}),H$=ne("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=n$(t)),or.init(e,t)}),G$=ne("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Z7),or.init(e,t)}),W$=ne("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=K7),or.init(e,t),e._zod.bag.format="ipv4"}),K$=ne("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=J7),or.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),J$=ne("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=X7(t.delimiter)),or.init(e,t),e._zod.bag.format="mac"}),X$=ne("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Y7),or.init(e,t)}),Y$=ne("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Q7),or.init(e,t),e._zod.check=r=>{let n=r.value.split("/");try{if(n.length!==2)throw new Error;let[a,o]=n;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${a}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Q$(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var eO=ne("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=e$),or.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Q$(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function lse(e){if(!c2.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Q$(r)}var tO=ne("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=c2),or.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{lse(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),rO=ne("$ZodE164",(e,t)=>{t.pattern??(t.pattern=t$),or.init(e,t)});function use(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[n]=r;if(!n)return!1;let a=JSON.parse(atob(n));return!("typ"in a&&a?.typ!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}var nO=ne("$ZodJWT",(e,t)=>{or.init(e,t),e._zod.check=r=>{use(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),aO=ne("$ZodCustomStringFormat",(e,t)=>{or.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),b2=ne("$ZodNumber",(e,t)=>{ht.init(e,t),e._zod.pattern=e._zod.bag.pattern??d2,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let a=r.value;if(typeof a=="number"&&!Number.isNaN(a)&&Number.isFinite(a))return r;let o=typeof a=="number"?Number.isNaN(a)?"NaN":Number.isFinite(a)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:a,inst:e,...o?{received:o}:{}}),r}}),oO=ne("$ZodNumberFormat",(e,t)=>{m$.init(e,t),b2.init(e,t)}),py=ne("$ZodBoolean",(e,t)=>{ht.init(e,t),e._zod.pattern=l$,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let a=r.value;return typeof a=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:a,inst:e}),r}}),x2=ne("$ZodBigInt",(e,t)=>{ht.init(e,t),e._zod.pattern=i$,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),iO=ne("$ZodBigIntFormat",(e,t)=>{h$.init(e,t),x2.init(e,t)}),sO=ne("$ZodSymbol",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return typeof a=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:a,inst:e}),r}}),lO=ne("$ZodUndefined",(e,t)=>{ht.init(e,t),e._zod.pattern=c$,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:a,inst:e}),r}}),uO=ne("$ZodNull",(e,t)=>{ht.init(e,t),e._zod.pattern=u$,e._zod.values=new Set([null]),e._zod.parse=(r,n)=>{let a=r.value;return a===null||r.issues.push({expected:"null",code:"invalid_type",input:a,inst:e}),r}}),cO=ne("$ZodAny",(e,t)=>{ht.init(e,t),e._zod.parse=r=>r}),dO=ne("$ZodUnknown",(e,t)=>{ht.init(e,t),e._zod.parse=r=>r}),fO=ne("$ZodNever",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),pO=ne("$ZodVoid",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return typeof a>"u"||r.issues.push({expected:"void",code:"invalid_type",input:a,inst:e}),r}}),mO=ne("$ZodDate",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let a=r.value,o=a instanceof Date;return o&&!Number.isNaN(a.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:a,...o?{received:"Invalid Date"}:{},inst:e}),r}});function Xie(e,t,r){e.issues.length&&t.issues.push(...ao(r,e.issues)),t.value[r]=e.value}var hO=ne("$ZodArray",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),r;r.value=Array(a.length);let o=[];for(let i=0;i<a.length;i++){let s=a[i],l=t.element._zod.run({value:s,issues:[]},n);l instanceof Promise?o.push(l.then(u=>Xie(u,r,i))):Xie(l,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function y2(e,t,r,n,a){if(e.issues.length){if(a&&!(r in n))return;t.issues.push(...ao(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function cse(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=$7(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function dse(e,t,r,n,a,o){let i=[],s=a.keySet,l=a.catchall._zod,u=l.def.type,d=l.optout==="optional";for(let f in t){if(s.has(f))continue;if(u==="never"){i.push(f);continue}let m=l.run({value:t[f],issues:[]},n);m instanceof Promise?e.push(m.then(h=>y2(h,r,f,t,d))):y2(m,r,f,t,d)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var fse=ne("$ZodObject",(e,t)=>{if(ht.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let n=Sm(()=>cse(t));Et(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(let f of d.values)l[u].add(f)}}return l});let a=pd,o=t.catchall,i;e._zod.parse=(s,l)=>{i??(i=n.value);let u=s.value;if(!a(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let d=[],f=i.shape;for(let m of i.keys){let h=f[m],g=h._zod.optout==="optional",y=h._zod.run({value:u[m],issues:[]},l);y instanceof Promise?d.push(y.then(b=>y2(b,s,m,u,g))):y2(y,s,m,u,g)}return o?dse(d,u,s,l,n.value,e):d.length?Promise.all(d).then(()=>s):s}}),gO=ne("$ZodObjectJIT",(e,t)=>{fse.init(e,t);let r=e._zod.parse,n=Sm(()=>cse(t)),a=m=>{let h=new fy(["shape","payload","ctx"]),g=n.value,y=x=>{let C=YS(x);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};h.write("const input = payload.value;");let b=Object.create(null),w=0;for(let x of g.keys)b[x]=`key_${w++}`;h.write("const newResult = {};");for(let x of g.keys){let C=b[x],I=YS(x),O=m[x]?._zod?.optout==="optional";h.write(`const ${C} = ${y(x)};`),O?h.write(` 118 if (${C}.issues.length) { 119 if (${I} in input) { 120 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 121 ...iss, 122 path: iss.path ? [${I}, ...iss.path] : [${I}] 123 }))); 124 } 125 } 126 127 if (${C}.value === undefined) { 128 if (${I} in input) { 129 newResult[${I}] = undefined; 130 } 131 } else { 132 newResult[${I}] = ${C}.value; 133 } 134 135 `):h.write(` 136 if (${C}.issues.length) { 137 payload.issues = payload.issues.concat(${C}.issues.map(iss => ({ 138 ...iss, 139 path: iss.path ? [${I}, ...iss.path] : [${I}] 140 }))); 141 } 142 143 if (${C}.value === undefined) { 144 if (${I} in input) { 145 newResult[${I}] = undefined; 146 } 147 } else { 148 newResult[${I}] = ${C}.value; 149 } 150 151 `)}h.write("payload.value = newResult;"),h.write("return payload;");let S=h.compile();return(x,C)=>S(m,x,C)},o,i=pd,s=!ey.jitless,u=s&&A7.value,d=t.catchall,f;e._zod.parse=(m,h)=>{f??(f=n.value);let g=m.value;return i(g)?s&&u&&h?.async===!1&&h.jitless!==!0?(o||(o=a(t.shape)),m=o(m,h),d?dse([],g,m,h,f,e):m):r(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),m)}});function Yie(e,t,r,n){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let a=e.filter(o=>!Ou(o));return a.length===1?(t.value=a[0].value,a[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>Oa(i,n,Fr())))}),t)}var my=ne("$ZodUnion",(e,t)=>{ht.init(e,t),Et(e._zod,"optin",()=>t.options.some(a=>a._zod.optin==="optional")?"optional":void 0),Et(e._zod,"optout",()=>t.options.some(a=>a._zod.optout==="optional")?"optional":void 0),Et(e._zod,"values",()=>{if(t.options.every(a=>a._zod.values))return new Set(t.options.flatMap(a=>Array.from(a._zod.values)))}),Et(e._zod,"pattern",()=>{if(t.options.every(a=>a._zod.pattern)){let a=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${a.map(o=>ny(o.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(r)return n(a,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:a.value,issues:[]},o);if(u instanceof Promise)s.push(u),i=!0;else{if(u.issues.length===0)return u;s.push(u)}}return i?Promise.all(s).then(l=>Yie(l,a,e,o)):Yie(s,a,e,o)}});function Qie(e,t,r,n){let a=e.filter(o=>o.issues.length===0);return a.length===1?(t.value=a[0].value,t):(a.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>Oa(i,n,Fr())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var vO=ne("$ZodXor",(e,t)=>{my.init(e,t),t.inclusive=!1;let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(a,o)=>{if(r)return n(a,o);let i=!1,s=[];for(let l of t.options){let u=l._zod.run({value:a.value,issues:[]},o);u instanceof Promise?(s.push(u),i=!0):s.push(u)}return i?Promise.all(s).then(l=>Qie(l,a,e,o)):Qie(s,a,e,o)}}),yO=ne("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,my.init(e,t);let r=e._zod.parse;Et(e._zod,"propValues",()=>{let a={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[s,l]of Object.entries(i)){a[s]||(a[s]=new Set);for(let u of l)a[s].add(u)}}return a});let n=Sm(()=>{let a=t.options,o=new Map;for(let i of a){let s=i._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,i)}}return o});e._zod.parse=(a,o)=>{let i=a.value;if(!pd(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;let s=n.value.get(i?.[t.discriminator]);return s?s._zod.run(a,o):t.unionFallback?r(a,o):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),a)}}),bO=ne("$ZodIntersection",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value,o=t.left._zod.run({value:a,issues:[]},n),i=t.right._zod.run({value:a,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([l,u])=>ese(r,l,u)):ese(r,o,i)}});function $$(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if($u(e)&&$u(t)){let r=Object.keys(t),n=Object.keys(e).filter(o=>r.indexOf(o)!==-1),a={...e,...t};for(let o of n){let i=$$(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};a[o]=i.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let n=0;n<e.length;n++){let a=e[n],o=t[n],i=$$(a,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ese(e,t,r){let n=new Map,a;for(let s of t.issues)if(s.code==="unrecognized_keys"){a??(a=s);for(let l of s.keys)n.has(l)||n.set(l,{}),n.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)n.has(l)||n.set(l,{}),n.get(l).r=!0;else e.issues.push(s);let o=[...n].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&a&&e.issues.push({...a,keys:o}),Ou(e))return e;let i=$$(t.value,r.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var w2=ne("$ZodTuple",(e,t)=>{ht.init(e,t);let r=t.items;e._zod.parse=(n,a)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],s=[...r].reverse().findIndex(d=>d._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let d=o.length>r.length,f=o.length<l-1;if(d||f)return n.issues.push({...d?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let d of r){if(u++,u>=o.length&&u>=l)continue;let f=d._zod.run({value:o[u],issues:[]},a);f instanceof Promise?i.push(f.then(m=>m2(m,n,u))):m2(f,n,u)}if(t.rest){let d=o.slice(r.length);for(let f of d){u++;let m=t.rest._zod.run({value:f,issues:[]},a);m instanceof Promise?i.push(m.then(h=>m2(h,n,u))):m2(m,n,u)}}return i.length?Promise.all(i).then(()=>n):n}});function m2(e,t,r){e.issues.length&&t.issues.push(...ao(r,e.issues)),t.value[r]=e.value}var xO=ne("$ZodRecord",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!$u(a))return r.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let d=t.valueType._zod.run({value:a[u],issues:[]},n);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...ao(u,f.issues)),r.value[u]=f.value})):(d.issues.length&&r.issues.push(...ao(u,d.issues)),r.value[u]=d.value)}let l;for(let u in a)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:a,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(a)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&d2.test(s)&&l.issues.length){let f=t.keyType._zod.run({value:Number(s),issues:[]},n);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?r.value[s]=a[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>Oa(f,n,Fr())),input:s,path:[s],inst:e});continue}let d=t.valueType._zod.run({value:a[s],issues:[]},n);d instanceof Promise?o.push(d.then(f=>{f.issues.length&&r.issues.push(...ao(s,f.issues)),r.value[l.value]=f.value})):(d.issues.length&&r.issues.push(...ao(s,d.issues)),r.value[l.value]=d.value)}}return o.length?Promise.all(o).then(()=>r):r}}),wO=ne("$ZodMap",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:a,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of a){let l=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:s,issues:[]},n);l instanceof Promise||u instanceof Promise?o.push(Promise.all([l,u]).then(([d,f])=>{tse(d,f,r,i,a,e,n)})):tse(l,u,r,i,a,e,n)}return o.length?Promise.all(o).then(()=>r):r}});function tse(e,t,r,n,a,o,i){e.issues.length&&(ay.has(typeof n)?r.issues.push(...ao(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:a,inst:o,issues:e.issues.map(s=>Oa(s,i,Fr()))})),t.issues.length&&(ay.has(typeof n)?r.issues.push(...ao(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:a,inst:o,key:n,issues:t.issues.map(s=>Oa(s,i,Fr()))})),r.value.set(e.value,t.value)}var _O=ne("$ZodSet",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of a){let s=t.valueType._zod.run({value:i,issues:[]},n);s instanceof Promise?o.push(s.then(l=>rse(l,r))):rse(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function rse(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var SO=ne("$ZodEnum",(e,t)=>{ht.init(e,t);let r=ry(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(a=>ay.has(typeof a)).map(a=>typeof a=="string"?Mo(a):a.toString()).join("|")})$`),e._zod.parse=(a,o)=>{let i=a.value;return n.has(i)||a.issues.push({code:"invalid_value",values:r,input:i,inst:e}),a}}),kO=ne("$ZodLiteral",(e,t)=>{if(ht.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Mo(n):n?Mo(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,a)=>{let o=n.value;return r.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),IO=ne("$ZodFile",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{let a=r.value;return a instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:a,inst:e}),r}}),TO=ne("$ZodTransform",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Au(e.constructor.name);let a=t.transform(r.value,r);if(n.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(r.value=i,r));if(a instanceof Promise)throw new wi;return r.value=a,r}});function nse(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var _2=ne("$ZodOptional",(e,t)=>{ht.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Et(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Et(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ny(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>nse(o,r.value)):nse(a,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),CO=ne("$ZodExactOptional",(e,t)=>{_2.init(e,t),Et(e._zod,"values",()=>t.innerType._zod.values),Et(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,n)=>t.innerType._zod.run(r,n)}),PO=ne("$ZodNullable",(e,t)=>{ht.init(e,t),Et(e._zod,"optin",()=>t.innerType._zod.optin),Et(e._zod,"optout",()=>t.innerType._zod.optout),Et(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${ny(r.source)}|null)$`):void 0}),Et(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),AO=ne("$ZodDefault",(e,t)=>{ht.init(e,t),e._zod.optin="optional",Et(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>ase(o,t)):ase(a,t)}});function ase(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var EO=ne("$ZodPrefault",(e,t)=>{ht.init(e,t),e._zod.optin="optional",Et(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),LO=ne("$ZodNonOptional",(e,t)=>{ht.init(e,t),Et(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>ose(o,e)):ose(a,e)}});function ose(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var $O=ne("$ZodSuccess",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Au("ZodSuccess");let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>(r.value=o.issues.length===0,r)):(r.value=a.issues.length===0,r)}}),OO=ne("$ZodCatch",(e,t)=>{ht.init(e,t),Et(e._zod,"optin",()=>t.innerType._zod.optin),Et(e._zod,"optout",()=>t.innerType._zod.optout),Et(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Oa(i,n,Fr()))},input:r.value}),r.issues=[]),r)):(r.value=a.value,a.issues.length&&(r.value=t.catchValue({...r,error:{issues:a.issues.map(o=>Oa(o,n,Fr()))},input:r.value}),r.issues=[]),r)}}),MO=ne("$ZodNaN",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),RO=ne("$ZodPipe",(e,t)=>{ht.init(e,t),Et(e._zod,"values",()=>t.in._zod.values),Et(e._zod,"optin",()=>t.in._zod.optin),Et(e._zod,"optout",()=>t.out._zod.optout),Et(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>h2(i,t.in,n)):h2(o,t.in,n)}let a=t.in._zod.run(r,n);return a instanceof Promise?a.then(o=>h2(o,t.out,n)):h2(a,t.out,n)}});function h2(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var hy=ne("$ZodCodec",(e,t)=>{ht.init(e,t),Et(e._zod,"values",()=>t.in._zod.values),Et(e._zod,"optin",()=>t.in._zod.optin),Et(e._zod,"optout",()=>t.out._zod.optout),Et(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if((n.direction||"forward")==="forward"){let o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>g2(i,t,n)):g2(o,t,n)}else{let o=t.out._zod.run(r,n);return o instanceof Promise?o.then(i=>g2(i,t,n)):g2(o,t,n)}}});function g2(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let a=t.transform(e.value,e);return a instanceof Promise?a.then(o=>v2(e,o,t.out,r)):v2(e,a,t.out,r)}else{let a=t.reverseTransform(e.value,e);return a instanceof Promise?a.then(o=>v2(e,o,t.in,r)):v2(e,a,t.in,r)}}function v2(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var DO=ne("$ZodReadonly",(e,t)=>{ht.init(e,t),Et(e._zod,"propValues",()=>t.innerType._zod.propValues),Et(e._zod,"values",()=>t.innerType._zod.values),Et(e._zod,"optin",()=>t.innerType?._zod?.optin),Et(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);let a=t.innerType._zod.run(r,n);return a instanceof Promise?a.then(ise):ise(a)}});function ise(e){return e.value=Object.freeze(e.value),e}var NO=ne("$ZodTemplateLiteral",(e,t)=>{ht.init(e,t);let r=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let a=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!a)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=a.startsWith("^")?1:0,i=a.endsWith("$")?a.length-1:a.length;r.push(a.slice(o,i))}else if(n===null||L7.has(typeof n))r.push(Mo(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(n,a)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),zO=ne("$ZodFunction",(e,t)=>(ht.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...n){let a=e._def.input?e2(e._def.input,n):n,o=Reflect.apply(r,this,a);return e._def.output?e2(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let a=e._def.input?await t2(e._def.input,n):n,o=await Reflect.apply(r,this,a);return e._def.output?await t2(e._def.output,o):o}},e._zod.parse=(r,n)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let n=e.constructor;return Array.isArray(r[0])?new n({type:"function",input:new w2({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new n({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:r})},e)),jO=ne("$ZodPromise",(e,t)=>{ht.init(e,t),e._zod.parse=(r,n)=>Promise.resolve(r.value).then(a=>t.innerType._zod.run({value:a,issues:[]},n))}),BO=ne("$ZodLazy",(e,t)=>{ht.init(e,t),Et(e._zod,"innerType",()=>t.getter()),Et(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Et(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Et(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Et(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,n)=>e._zod.innerType._zod.run(r,n)}),FO=ne("$ZodCustom",(e,t)=>{fr.init(e,t),ht.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,a=t.fn(n);if(a instanceof Promise)return a.then(o=>sse(o,r,n,e));sse(a,r,n,e)}});function sse(e,t,r,n){if(!e){let a={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(a.params=n._zod.def.params),t.issues.push(km(a))}}var vy={};Fn(vy,{ar:()=>pse,az:()=>mse,be:()=>gse,bg:()=>vse,ca:()=>yse,cs:()=>bse,da:()=>xse,de:()=>wse,en:()=>S2,eo:()=>_se,es:()=>Sse,fa:()=>kse,fi:()=>Ise,fr:()=>Tse,frCA:()=>Cse,he:()=>Pse,hu:()=>Ase,hy:()=>Lse,id:()=>$se,is:()=>Ose,it:()=>Mse,ja:()=>Rse,ka:()=>Dse,kh:()=>Nse,km:()=>k2,ko:()=>zse,lt:()=>Bse,mk:()=>Fse,ms:()=>Use,nl:()=>qse,no:()=>Vse,ota:()=>Zse,pl:()=>Gse,ps:()=>Hse,pt:()=>Wse,ru:()=>Jse,sl:()=>Xse,sv:()=>Yse,ta:()=>Qse,th:()=>ele,tr:()=>tle,ua:()=>rle,uk:()=>I2,ur:()=>nle,uz:()=>ale,vi:()=>ole,yo:()=>lle,zhCN:()=>ile,zhTW:()=>sle});var NUe=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(a){return e[a]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${a.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return a.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${Se(a.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${a.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${a.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${a.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${a.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${r[o.format]??a.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${a.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${a.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${a.keys.length>1?"\u0629":""}: ${de(a.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${a.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function pse(){return{localeError:NUe()}}var zUe=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${a.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return a.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Se(a.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${o}${a.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${a.origin??"d\u0259y\u0259r"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${o}${a.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[o.format]??a.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${a.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${a.keys.length>1?"lar":""}: ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${a.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function mse(){return{localeError:zUe()}}function hse(e,t,r,n){let a=Math.abs(e),o=a%10,i=a%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?r:n}var jUe=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(a){return e[a]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${a.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return a.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${Se(a.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);if(i){let s=Number(a.maximum),l=hse(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${a.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);if(i){let s=Number(a.minimum),l=hse(s,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${a.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${a.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[o.format]??a.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${a.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${de(a.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${a.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function gse(){return{localeError:jUe()}}var BUe=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(a){return e[a]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${Se(a.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${a.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${a.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${r[o.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${a.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u043E\u0432\u0435":""}: ${de(a.keys,", ")}`;
151case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function vse(){return{localeError:BUe()}}var FUe=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(a){return e[a]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE
1517a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${a.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return a.values.length===1?`Valor inv\xE0lid: s'esperava ${Se(a.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${de(a.values," o ")}`;case"too_big":{let o=a.inclusive?"com a m\xE0xim":"menys de",i=t(a.origin);return i?`Massa gran: s'esperava que ${a.origin??"el valor"} contingu\xE9s ${o} ${a.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${a.origin??"el valor"} fos ${o} ${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(a.origin);return i?`Massa petit: s'esperava que ${a.origin} contingu\xE9s ${o} ${a.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${a.origin} fos ${o} ${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${r[o.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${a.divisor}`;case"unrecognized_keys":return`Clau${a.keys.length>1?"s":""} no reconeguda${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${a.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${a.origin}`;default:return"Entrada inv\xE0lida"}}};function yse(){return{localeError:FUe()}}var UUe=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(a){return e[a]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${a.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return a.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Se(a.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${o}${a.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED m\xEDt ${o}${a.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${a.origin??"hodnota"} mus\xED b\xFDt ${o}${a.minimum.toString()}`}
vendor: 23,014 bytes, line 151
151case"invalid_format":{let o=a;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${r[o.format]??a.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${a.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${de(a.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${a.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${a.origin}`;default:return"Neplatn\xFD vstup"}}};function bse(){return{localeError:UUe()}}var qUe=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(a){return e[a]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldigt input: forventede instanceof ${a.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return a.values.length===1?`Ugyldig v\xE6rdi: forventede ${Se(a.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin),s=n[a.origin]??a.origin;return i?`For stor: forventede ${s??"value"} ${i.verb} ${o} ${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin),s=n[a.origin]??a.origin;return i?`For lille: forventede ${s} ${i.verb} ${o} ${a.minimum.toString()} ${i.unit}`:`For lille: forventede ${s} havde ${o} ${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??a.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${de(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${a.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${a.origin}`;default:return"Ugyldigt input"}}};function xse(){return{localeError:qUe()}}var VUe=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(a){return e[a]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},n={nan:"NaN",number:"Zahl",array:"Array"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${a.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return a.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Se(a.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${o}${a.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${a.origin??"Wert"} ${o}${a.maximum.toString()} ist`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Zu klein: erwartet, dass ${a.origin} ${o}${a.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${a.origin} ${o}${a.minimum.toString()} ist`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${r[o.format]??a.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${a.divisor} sein`;case"unrecognized_keys":return`${a.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${de(a.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${a.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${a.origin}`;default:return"Ung\xFCltige Eingabe"}}};function wse(){return{localeError:VUe()}}var ZUe=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(a){return e[a]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Se(a.values[0])}`:`Invalid option: expected one of ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Too big: expected ${a.origin??"value"} to have ${o}${a.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${a.origin??"value"} to be ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Too small: expected ${a.origin} to have ${o}${a.minimum.toString()} ${i.unit}`:`Too small: expected ${a.origin} to be ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??a.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${a.divisor}`;case"unrecognized_keys":return`Unrecognized key${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Invalid key in ${a.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${a.origin}`;default:return"Invalid input"}}};function S2(){return{localeError:ZUe()}}var HUe=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(a){return e[a]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${a.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return a.values.length===1?`Nevalida enigo: atendi\u011Dis ${Se(a.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${o}${a.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${a.origin??"valoro"} havu ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Tro malgranda: atendi\u011Dis ke ${a.origin} havu ${o}${a.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${a.origin} estu ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??a.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${a.divisor}`;case"unrecognized_keys":return`Nekonata${a.keys.length>1?"j":""} \u015Dlosilo${a.keys.length>1?"j":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${a.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${a.origin}`;default:return"Nevalida enigo"}}};function _se(){return{localeError:HUe()}}var GUe=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(a){return e[a]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${a.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: se esperaba ${Se(a.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin),s=n[a.origin]??a.origin;return i?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${a.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin),s=n[a.origin]??a.origin;return i?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${a.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${r[o.format]??a.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Llave${a.keys.length>1?"s":""} desconocida${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[a.origin]??a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[a.origin]??a.origin}`;default:return"Entrada inv\xE1lida"}}};function Sse(){return{localeError:GUe()}}var WUe=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(a){return e[a]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${a.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return a.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${Se(a.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${de(a.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${a.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${a.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${o}${a.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${a.origin} \u0628\u0627\u06CC\u062F ${o}${a.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[o.format]??a.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${a.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${a.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${de(a.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${a.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${a.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function kse(){return{localeError:WUe()}}var KUe=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(a){return e[a]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Virheellinen tyyppi: odotettiin instanceof ${a.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return a.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Se(a.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${a.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${a.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??a.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${a.divisor} monikerta`;case"unrecognized_keys":return`${a.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${de(a.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function Ise(){return{localeError:KUe()}}var JUe=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN",number:"nombre",array:"tableau"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : instanceof ${a.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : ${Se(a.values[0])}
151 attendu`:`Option invalide : une valeur parmi ${de(a.values,"|")} attendue`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Trop grand : ${a.origin??"valeur"} doit ${i.verb} ${o}${a.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${a.origin??"valeur"} doit \xEAtre ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Trop petit : ${a.origin} doit ${i.verb} ${o}${a.minimum.toString()} ${i.unit}`:`Trop petit : ${a.origin} doit \xEAtre ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${r[o.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${de(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function Tse(){return{localeError:JUe()}}var XUe=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(a){return e[a]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Entr\xE9e invalide : attendu instanceof ${a.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return a.values.length===1?`Entr\xE9e invalide : attendu ${Se(a.values[0])}
151`:`Option invalide : attendu l'une des valeurs suivantes ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"\u2264":"<",i=t(a.origin);return i?`Trop grand : attendu que ${a.origin??"la valeur"} ait ${o}${a.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${a.origin??"la valeur"} soit ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?"\u2265":">",i=t(a.origin);return i?`Trop petit : attendu que ${a.origin} ait ${o}${a.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${a.origin} soit ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??a.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${a.divisor}`;case"unrecognized_keys":return`Cl\xE9${a.keys.length>1?"s":""} non reconnue${a.keys.length>1?"s":""} : ${de(a.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${a.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${a.origin}`;default:return"Entr\xE9e invalide"}}};function Cse(){return{localeError:XUe()}}var YUe=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,n=u=>{let d=r(u);return d?d.label:u??e.unknown.label},a=u=>`\u05D4${n(u)}`,o=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>
vendor: 33,639 bytes, line 151
151{switch(u.code){case"invalid_type":{let d=u.expected,f=l[d??""]??n(d),m=Ie(u.input),h=l[m]??e[m]?.label??m;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${h}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${Se(u.values[0])}`;let d=u.values.map(h=>Se(h));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let f=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let d=i(u.origin),f=a(u.origin??"value");if(u.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",y=u.inclusive?`${u.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=u.inclusive?"<=":"<",h=o(u.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${f} ${h} ${m}${u.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${h} ${m}${u.maximum.toString()}`}case"too_small":{let d=i(u.origin),f=a(u.origin??"value");if(u.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let g=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${g}`}if(u.origin==="array"||u.origin==="set"){let g=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let b=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let y=u.inclusive?`${u.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${g} \u05DC\u05D4\u05DB\u05D9\u05DC ${y}`.trim()}let m=u.inclusive?">=":">",h=o(u.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${f} ${h} ${m}${u.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${h} ${m}${u.minimum.toString()}`}case"invalid_format":{let d=u;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let f=s[d.format],m=f?.label??d.format,g=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${m} \u05DC\u05D0 ${g}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${de(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${a(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Pse(){return{localeError:YUe()}}var QUe=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(a){return e[a]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${a.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return a.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Se(a.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xFAl nagy: ${a.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${a.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${a.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} m\xE9rete t\xFAl kicsi ${o}${a.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${a.origin} t\xFAl kicsi ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[o.format]??a.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${a.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${a.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${a.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Ase(){return{localeError:QUe()}}function Ese(e,t,r){return Math.abs(e)===1?t:r}function Em(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var eqe=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(a){return e[a]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${a.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return a.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${Se(a.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);if(i){let s=Number(a.maximum),l=Ese(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Em(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${a.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Em(a.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);if(i){let s=Number(a.minimum),l=Ese(s,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Em(a.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${a.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Em(a.origin)} \u056C\u056B\u0576\u056B ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[o.format]??a.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${a.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${a.keys.length>1?"\u0576\u0565\u0580":""}. ${de(a.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Em(a.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Em(a.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Lse(){return{localeError:eqe()}}var tqe=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(a){return e[a]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak valid: diharapkan instanceof ${a.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return a.values.length===1?`Input tidak valid: diharapkan ${Se(a.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: diharapkan ${a.origin??"value"} memiliki ${o}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${a.origin??"value"} menjadi ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: diharapkan ${a.origin} memiliki ${o}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${a.origin} menjadi ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??a.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${a.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${a.origin}`;default:return"Input tidak valid"}}};function $se(){return{localeError:tqe()}}var rqe=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(a){return e[a]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${a.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return a.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Se(a.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} hafi ${o}${a.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin??"gildi"} s\xE9 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} hafi ${o}${a.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${a.origin} s\xE9 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??a.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${a.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${a.keys.length>1?"ir lyklar":"ur lykill"}: ${de(a.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${a.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${a.origin}`;default:return"Rangt gildi"}}};function Ose(){return{localeError:rqe()}}var nqe=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(a){return e[a]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"numero",array:"vettore"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Input non valido: atteso instanceof ${a.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return a.values.length===1?`Input non valido: atteso ${Se(a.values[0])}`:`Opzione non valida: atteso uno tra ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Troppo grande: ${a.origin??"valore"} deve avere ${o}${a.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${a.origin??"valore"} deve essere ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Troppo piccolo: ${a.origin} deve avere ${o}${a.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${a.origin} deve essere ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${r[o.format]??a.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${a.divisor}`;case"unrecognized_keys":return`Chiav${a.keys.length>1?"i":"e"} non riconosciut${a.keys.length>1?"e":"a"}: ${de(a.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${a.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${a.origin}`;default:return"Input non valido"}}};function Mse(){return{localeError:nqe()}}var aqe=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(a){return e[a]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${a.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return a.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${Se(a.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${de(a.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=a.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(a.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${a.origin??"\u5024"}\u306F${a.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=a.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(a.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${a.origin}\u306F${a.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[o.format]??a.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${a.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${a.keys.length>1?"\u7FA4":""}: ${de(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${a.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Rse(){return{localeError:aqe()}}var oqe=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(a){return e[a]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${a.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return a.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${Se(a.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${de(a.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${o}${a.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} ${i.verb} ${o}${a.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${a.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${a.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${a.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${de(a.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${a.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${a.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Dse(){return{localeError:oqe()}}var iqe=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(a){return e[a]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17
151D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},n={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${a.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return a.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${Se(a.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${a.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${o} ${a.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${a.origin} ${o} ${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${a.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${de(a.keys,", ")}`;
vendor: 13,650 bytes, line 151
151case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${a.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function k2(){return{localeError:iqe()}}function Nse(){return k2()}var sqe=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(a){return e[a]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${a.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return a.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Se(a.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${de(a.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=a.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(a.origin),l=s?.unit??"\uC694\uC18C";return s?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()}${l} ${o}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${a.maximum.toString()} ${o}${i}`}case"too_small":{let o=a.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(a.origin),l=s?.unit??"\uC694\uC18C";return s?`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()}${l} ${o}${i}`:`${a.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${a.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[o.format]??a.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${a.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${de(a.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${a.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${a.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function zse(){return{localeError:sqe()}}var gy=e=>e.charAt(0).toUpperCase()+e.slice(1);function jse(e){let t=Math.abs(e),r=t%10,n=t%100;return n>=11&&n<=19||r===0?"many":r===1?"one":"few"}var lqe=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(a,o,i,s){let l=e[a]??null;return l===null?l:{unit:l.unit[o],verb:l.verb[s][i?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},n={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${a.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return a.values.length===1?`Privalo b\u016Bti ${Se(a.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${de(a.values,"|")} pasirinkim\u0173`;case"too_big":{let o=n[a.origin]??a.origin,i=t(a.origin,jse(Number(a.maximum)),a.inclusive??!1,"smaller");if(i?.verb)return`${gy(o??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.maximum.toString()} ${i.unit??"element\u0173"}`;let s=a.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${gy(o??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${a.maximum.toString()} ${i?.unit}`}case"too_small":{let o=n[a.origin]??a.origin,i=t(a.origin,jse(Number(a.minimum)),a.inclusive??!1,"bigger");if(i?.verb)return`${gy(o??a.origin??"reik\u0161m\u0117")} ${i.verb} ${a.minimum.toString()} ${i.unit??"element\u0173"}`;let s=a.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${gy(o??a.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${a.minimum.toString()} ${i?.unit}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??a.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${a.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${a.keys.length>1?"i":"as"} rakt${a.keys.length>1?"ai":"as"}: ${de(a.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=n[a.origin]??a.origin;return`${gy(o??a.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function Bse(){return{localeError:lqe()}}var uqe=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(a){return e[a]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${a.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return a.values.length===1?`Invalid input: expected ${Se(a.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${a.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${a.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${r[o.format]??a.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u
151041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${de(a.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${a.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${a.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function Fse(){return{localeError:uqe()}}var cqe=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(a){return e[a]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"nombor"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Input tidak sah: dijangka instanceof ${a.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return a.values.length===1?`Input tidak sah: dijangka ${Se(a.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Terlalu besar: dijangka ${a.origin??"nilai"} ${i.verb} ${o}${a.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${a.origin??"nilai"} adalah ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Terlalu kecil: dijangka ${a.origin} ${i.verb} ${o}${a.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${a.origin} adalah ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??a.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${a.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${de(a.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${a.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${a.origin}`;default:return"Input tidak sah"}}};function Use(){return{localeError:cqe()}}var dqe=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(a){return e[a]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},n={nan:"NaN",number:"getal"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ongeldige invoer: verwacht instanceof ${a.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return a.values.length===1?`Ongeldige invoer: verwacht ${Se(a.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${de(a.values,"|")}`;
vendor: 7,384 bytes, line 151
151case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin),s=a.origin==="date"?"laat":a.origin==="string"?"lang":"groot";return i?`Te ${s}: verwacht dat ${a.origin??"waarde"} ${o}${a.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${s}: verwacht dat ${a.origin??"waarde"} ${o}${a.maximum.toString()} is`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin),s=a.origin==="date"?"vroeg":a.origin==="string"?"kort":"klein";return i?`Te ${s}: verwacht dat ${a.origin} ${o}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${s}: verwacht dat ${a.origin} ${o}${a.minimum.toString()} is`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??a.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${a.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${a.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${a.origin}`;default:return"Ongeldige invoer"}}};function qse(){return{localeError:dqe()}}var fqe=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(a){return e[a]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ugyldig input: forventet instanceof ${a.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return a.values.length===1?`Ugyldig verdi: forventet ${Se(a.values[0])}`:`Ugyldig valg: forventet en av ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${o}${a.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${a.origin??"value"} til \xE5 ha ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`For lite(n): forventet ${a.origin} til \xE5 ha ${o}${a.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${a.origin} til \xE5 ha ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${r[o.format]??a.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${de(a.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${a.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${a.origin}`;default:return"Ugyldig input"}}};function Vse(){return{localeError:fqe()}}var pqe=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(a){return e[a]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`F\xE2sit giren: umulan instanceof ${a.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return a.values.length===1?`F\xE2sit giren: umulan ${Se(a.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${o}${a.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${a.origin??"value"}, ${o}${a.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${o}${a.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${a.origin}, ${o}${a.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=a;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[o.format]??a.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${a.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${a.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function Zse(){return{localeError:pqe()}}var mqe=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(a){return e[a]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u
151067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${a.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return a.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${Se(a.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${de(a.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${a.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${a.maximum.toString()} \u0648\u064A`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${o}${a.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${a.origin} \u0628\u0627\u06CC\u062F ${o}${a.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[o.format]??a.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${a.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${a.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${de(a.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${a.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${a.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Hse(){return{localeError:mqe()}}var hqe=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(a){return e[a]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},n={nan:"NaN",number:"liczba",array:"tablica"};return a=>
vendor: 4,465 bytes, line 151
151{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${a.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return a.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Se(a.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${a.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${a.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${a.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[o.format]??a.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${a.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${a.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${a.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function Gse(){return{localeError:hqe()}}var gqe=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(a){return e[a]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Tipo inv\xE1lido: esperado instanceof ${a.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return a.values.length===1?`Entrada inv\xE1lida: esperado ${Se(a.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Muito grande: esperado que ${a.origin??"valor"} tivesse ${o}${a.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${a.origin??"valor"} fosse ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Muito pequeno: esperado que ${a.origin} tivesse ${o}${a.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${a.origin} fosse ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${r[o.format]??a.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${a.divisor}`;case"unrecognized_keys":return`Chave${a.keys.length>
1511?"s":""} desconhecida${a.keys.length>1?"s":""}: ${de(a.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${a.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${a.origin}`;default:return"Campo inv\xE1lido"}}};function Wse(){return{localeError:gqe()}}function Kse(e,t,r,n){let a=Math.abs(e),o=a%10,i=a%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?r:n}var vqe=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(a){return e[a]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${a.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${Se(a.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);if(i){let s=Number(a.maximum),l=Kse(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${a.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);if(i){let s=Number(a.minimum),l=Kse(s,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${a.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${a.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${a.minimum.toString()}`}
vendor: 106,169 bytes, lines 151-153
151case"invalid_format":{let o=a;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${a.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0438":""}: ${de(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${a.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function Jse(){return{localeError:vqe()}}var yqe=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(a){return e[a]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${a.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return a.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Se(a.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} imelo ${o}${a.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${a.origin??"vrednost"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${a.origin} imelo ${o}${a.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??a.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${a.divisor}`;case"unrecognized_keys":return`Neprepoznan${a.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${de(a.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${a.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${a.origin}`;default:return"Neveljaven vnos"}}};function Xse(){return{localeError:yqe()}}var bqe=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(a){return e[a]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${a.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return a.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Se(a.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${o}${a.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${a.origin??"v\xE4rdet"} att ha ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${o}${a.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${a.origin??"v\xE4rdet"} att ha ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??a.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${a.divisor}`;case"unrecognized_keys":return`${a.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${de(a.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${a.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${a.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function Yse(){return{localeError:bqe()}}var xqe=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(a){return e[a]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${a.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return a.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${Se(a.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${de(a.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${a.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${a.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${o}${a.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${a.origin} ${o}${a.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${a.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${a.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${a.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function Qse(){return{localeError:xqe()}}var wqe=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(a){return e[a]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},n={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${a.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return a.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${Se(a.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${a.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(a.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${a.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${a.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[o.format]??a.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${a.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${de(a.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${a.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function ele(){return{localeError:wqe()}}var _qe=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(a){return e[a]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${a.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return a.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Se(a.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${o}${a.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${a.origin??"de\u011Fer"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${o}${a.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[o.format]??a.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${a.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${a.keys.length>1?"lar":""}: ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${a.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function tle(){return{localeError:_qe()}}var Sqe=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(a){return e[a]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${a.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return a.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${Se(a.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${a.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} ${i.verb} ${o}${a.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${a.origin} \u0431\u0443\u0434\u0435 ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${a.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${a.keys.length>1?"\u0456":""}: ${de(a.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${a.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${a.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function I2(){return{localeError:Sqe()}}function rle(){return I2()}var kqe=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(a){return e[a]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${a.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return a.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${Se(a.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${de(a.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${a.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${a.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${a.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u06D2 ${o}${a.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${a.origin} \u06A9\u0627 ${o}${a.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${a.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${a.keys.length>1?"\u0632":""}: ${de(a.keys,"\u060C ")}`;case"invalid_key":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${a.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function nle(){return{localeError:kqe()}}var Iqe=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(a){return e[a]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${a.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return a.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Se(a.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Juda katta: kutilgan ${a.origin??"qiymat"} ${o}${a.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${a.origin??"qiymat"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Juda kichik: kutilgan ${a.origin} ${o}${a.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[o.format]??a.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${a.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${a.keys.length>1?"lar":""}: ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${a.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function ale(){return{localeError:Iqe()}}var Tqe=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(a){return e[a]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${a.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return a.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${Se(a.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${a.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${a.origin??"gi\xE1 tr\u1ECB"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${i.verb} ${o}${a.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${r[o.format]??a.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${a.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${de(a.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${a.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function ole(){return{localeError:Tqe()}}var Cqe=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(a){return e[a]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${a.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return a.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Se(a.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${o}${a.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${a.origin??"\u503C"} ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${o}${a.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${a.origin} ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${r[o.format]??a.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${a.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${de(a.keys,", ")}`;case"invalid_key":return`${a.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${a.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function ile(){return{localeError:Cqe()}}var Pqe=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(a){return e[a]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},n={nan:"NaN"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${a.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return a.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Se(a.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${o}${a.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${a.origin??"\u503C"} \u61C9\u70BA ${o}${a.maximum.toString()}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${o}${a.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${a.origin} \u61C9\u70BA ${o}${a.minimum.toString()}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${r[o.format]??a.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${a.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${a.keys.length>1?"\u5011":""}\uFF1A${de(a.keys,"\u3001")}`;case"invalid_key":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${a.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function sle(){return{localeError:Pqe()}}var Aqe=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(a){return e[a]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return a=>{switch(a.code){case"invalid_type":{let o=n[a.expected]??a.expected,i=Ie(a.input),s=n[i]??i;return/^[A-Z]/.test(a.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${a.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return a.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${Se(a.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${de(a.values,"|")}`;case"too_big":{let o=a.inclusive?"<=":"<",i=t(a.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin??"iye"} ${i.verb} ${o}${a.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${a.maximum}`}case"too_small":{let o=a.inclusive?">=":">",i=t(a.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${a.origin} ${i.verb} ${o}${a.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${a.minimum}`}case"invalid_format":{let o=a;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${r[o.format]??a.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${a.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${de(a.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${a.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function lle(){return{localeError:Aqe()}}var ule,UO=Symbol("ZodOutput"),qO=Symbol("ZodInput"),T2=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let a={...n,...this._map.get(t)};return Object.keys(a).length?a:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function C2(){return new T2}(ule=globalThis).__zod_globalRegistry??(ule.__zod_globalRegistry=C2());var Dn=globalThis.__zod_globalRegistry;function VO(e,t){return new e({type:"string",...$e(t)})}function ZO(e,t){return new e({type:"string",coerce:!0,...$e(t)})}function P2(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function yy(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function A2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function E2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function L2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function $2(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function by(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function O2(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function M2(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function R2(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function D2(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function N2(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function z2(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function j2(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function B2(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function F2(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function HO(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...$e(t)})}function U2(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function q2(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function V2(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function Z2(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function H2(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function G2(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}var GO={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function WO(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function KO(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function JO(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function XO(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function YO(e,t){return new e({type:"number",checks:[],...$e(t)})}function QO(e,t){return new e({type:"number",coerce:!0,checks:[],...$e(t)})}function e8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...$e(t)})}function t8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...$e(t)})}function r8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...$e(t)})}function n8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...$e(t)})}function a8(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...$e(t)})}function o8(e,t){return new e({type:"boolean",...$e(t)})}function i8(e,t){return new e({type:"boolean",coerce:!0,...$e(t)})}function s8(e,t){return new e({type:"bigint",...$e(t)})}function l8(e,t){return new e({type:"bigint",coerce:!0,...$e(t)})}function u8(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...$e(t)})}function c8(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...$e(t)})}function d8(e,t){return new e({type:"symbol",...$e(t)})}function f8(e,t){return new e({type:"undefined",...$e(t)})}function p8(e,t){return new e({type:"null",...$e(t)})}function m8(e){return new e({type:"any"})}function h8(e){return new e({type:"unknown"})}function g8(e,t){return new e({type:"never",...$e(t)})}function v8(e,t){return new e({type:"void",...$e(t)})}function y8(e,t){return new e({type:"date",...$e(t)})}function b8(e,t){return new e({type:"date",coerce:!0,...$e(t)})}function x8(e,t){return new e({type:"nan",...$e(t)})}function rs(e,t){return new f2({check:"less_than",...$e(t),value:e,inclusive:!1})}function oo(e,t){return new f2({check:"less_than",...$e(t),value:e,inclusive:!0})}function ns(e,t){return new p2({check:"greater_than",...$e(t),value:e,inclusive:!1})}function ha(e,t){return new p2({check:"greater_than",...$e(t),value:e,inclusive:!0})}function W2(e){return ns(0,e)}function K2(e){return rs(0,e)}function J2(e){return oo(0,e)}function X2(e){return ha(0,e)}function Mu(e,t){return new p$({check:"multiple_of",...$e(t),value:e})}function Ru(e,t){return new g$({check:"max_size",...$e(t),maximum:e})}function as(e,t){return new v$({check:"min_size",...$e(t),minimum:e})}function gd(e,t){return new y$({check:"size_equals",...$e(t),size:e})}function vd(e,t){return new b$({check:"max_length",...$e(t),maximum:e})}function ol(e,t){return new x$({check:"min_length",...$e(t),minimum:e})}function yd(e,t){return new w$({check:"length_equals",...$e(t),length:e})}function Lm(e,t){return new _$({check:"string_format",format:"regex",...$e(t),pattern:e})}function $m(e){return new S$({check:"string_format",format:"lowercase",...$e(e)})}function Om(e){return new k$({check:"string_format",format:"uppercase",...$e(e)})}function Mm(e,t){return new I$({check:"string_format",format:"includes",...$e(t),includes:e})}function Rm(e,t){return new T$({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function Dm(e,t){return new C$({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function Y2(e,t,r){return new P$({check:"property",property:e,schema:t,...$e(r)})}function Nm(e,t){return new A$({check:"mime_type",mime:e,...$e(t)})}function _i(e){return new E$({check:"overwrite",tx:e})}function zm(e){return _i(t=>t.normalize(e))}function jm(){return _i(e=>e.trim())}function Bm(){return _i(e=>e.toLowerCase())}function Fm(){return _i(e=>e.toUpperCase())}function Um(){return _i(e=>P7(e))}function w8(e,t,r){return new e({type:"array",element:t,...$e(r)})}function Lqe(e,t,r){return new e({type:"union",options:t,...$e(r)})}function $qe(e,t,r){return new e({type:"union",options:t,inclusive:!1,...$e(r)})}function Oqe(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...$e(n)})}function Mqe(e,t,r){return new e({type:"intersection",left:t,right:r})}function Rqe(e,t,r,n){let a=r instanceof ht,o=a?n:r,i=a?r:null;return new e({type:"tuple",items:t,rest:i,...$e(o)})}function Dqe(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...$e(n)})}function Nqe(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...$e(n)})}function zqe(e,t,r){return new e({type:"set",valueType:t,...$e(r)})}function jqe(e,t,r){let n=Array.isArray(t)?Object.fromEntries(t.map(a=>[a,a])):t;return new e({type:"enum",entries:n,...$e(r)})}function Bqe(e,t,r){return new e({type:"enum",entries:t,...$e(r)})}function Fqe(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...$e(r)})}function _8(e,t){return new e({type:"file",...$e(t)})}function Uqe(e,t){return new e({type:"transform",transform:t})}function qqe(e,t){return new e({type:"optional",innerType:t})}function Vqe(e,t){return new e({type:"nullable",innerType:t})}function Zqe(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():E7(r)}})}function Hqe(e,t,r){return new e({type:"nonoptional",innerType:t,...$e(r)})}function Gqe(e,t){return new e({type:"success",innerType:t})}function Wqe(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Kqe(e,t,r){return new e({type:"pipe",in:t,out:r})}function Jqe(e,t){return new e({type:"readonly",innerType:t})}function Xqe(e,t,r){return new e({type:"template_literal",parts:t,...$e(r)})}function Yqe(e,t){return new e({type:"lazy",getter:t})}function Qqe(e,t){return new e({type:"promise",innerType:t})}function S8(e,t,r){let n=$e(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function k8(e,t,r){return new e({type:"custom",check:"custom",fn:t,...$e(r)})}function I8(e){let t=cle(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(km(n,r.value,t._zod.def));else{let a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=t),a.continue??(a.continue=!t._zod.def.abort),r.issues.push(km(a))}},e(r.value,r)));return t}function cle(e,t){let r=new fr({check:"custom",...$e(t)});return r._zod.check=e,r}function T8(e){let t=new fr({check:"describe"});return t._zod.onattach=[r=>{let n=Dn.get(r)??{};Dn.add(r,{...n,description:e})}],t._zod.check=()=>{},t}function C8(e){let t=new fr({check:"meta"});return t._zod.onattach=[r=>{let n=Dn.get(r)??{};Dn.add(r,{...n,...e})}],t._zod.check=()=>{},t}function P8(e,t){let r=$e(t),n=r.truthy??["true","1","yes","on","y","enabled"],a=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(n=n.map(h=>typeof h=="string"?h.toLowerCase():h),a=a.map(h=>typeof h=="string"?h.toLowerCase():h));let o=new Set(n),i=new Set(a),s=e.Codec??hy,l=e.Boolean??py,u=e.String??hd,d=new u({type:"string",error:r.error}),f=new l({type:"boolean",error:r.error}),m=new s({type:"pipe",in:d,out:f,transform:((h,g)=>{let y=h;return r.case!=="sensitive"&&(y=y.toLowerCase()),o.has(y)?!0:i.has(y)?!1:(g.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:g.value,inst:m,continue:!1}),{})}),reverseTransform:((h,g)=>h===!0?n[0]||"true":a[0]||"false"),error:r.error});return m}function qm(e,t,r,n={}){let a=$e(n),o={...$e(n),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...a};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Du(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Dn,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Yt(e,t,r={path:[],schemaPath:[]}){var n;let a=e._zod.def,o=t.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,i);let s=e._zod.toJSONSchema?.();if(s)i.schema=s;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{let m=i.schema,h=t.processors[a.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${a.type}`);h(e,t,m,d)}let f=e._zod.parent;f&&(i.ref||(i.ref=f),Yt(f,t,d),t.seen.get(f).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(i.schema,l),t.io==="input"&&ga(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Nu(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let l=n.get(s);if(l&&l!==i[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(s,i[0])}}let a=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(i[0])?.id,m=e.external.uri??(g=>g);if(f)return{ref:m(f)};let h=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=h,{defId:h,ref:`${m("__shared")}#/${s}/${h}`}}if(i[1]===r)return{ref:"#"};let u=`#/${s}/`,d=i[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:l,defId:u}=a(i);s.def={...s.schema},u&&(s.defId=u);let d=s.schema;for(let f in d)delete d[f];d.$ref=l};if(e.cycles==="throw")for(let i of e.seen.entries()){let s=i[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 152 153Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let s=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(s.cycle){o(i);continue}if(s.count>1&&e.reused==="ref"){o(i);continue}}}function zu(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let s=e.seen.get(i);if(s.ref===null)return;let l=s.def??s.schema,u={...l},d=s.ref;if(s.ref=null,d){n(d);let m=e.seen.get(d),h=m.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(h)):Object.assign(l,h),Object.assign(l,u),i._zod.parent===d)for(let y in l)y==="$ref"||y==="allOf"||y in u||delete l[y];if(h.$ref&&m.def)for(let y in l)y==="$ref"||y==="allOf"||y in m.def&&JSON.stringify(l[y])===JSON.stringify(m.def[y])&&delete l[y]}let f=i._zod.parent;if(f&&f!==d){n(f);let m=e.seen.get(f);if(m?.schema.$ref&&(l.$ref=m.schema.$ref,m.def))for(let h in l)h==="$ref"||h==="allOf"||h in m.def&&JSON.stringify(l[h])===JSON.stringify(m.def[h])&&delete l[h]}e.override({zodSchema:i,jsonSchema:l,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())n(i[0]);let a={};if(e.target==="draft-2020-12"?a.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?a.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?a.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");a.$id=e.external.uri(i)}Object.assign(a,r.def??r.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let s=i[1];s.def&&s.defId&&(o[s.defId]=s.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?a.$defs=o:a.definitions=o);try{let i=JSON.parse(JSON.stringify(a));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Vm(t,"input",e.processors),output:Vm(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function ga(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return ga(n.element,r);if(n.type==="set")return ga(n.valueType,r);if(n.type==="lazy")return ga(n.getter(),r);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return ga(n.innerType,r);if(n.type==="intersection")return ga(n.left,r)||ga(n.right,r);if(n.type==="record"||n.type==="map")return ga(n.keyType,r)||ga(n.valueType,r);if(n.type==="pipe")return ga(n.in,r)||ga(n.out,r);if(n.type==="object"){for(let a in n.shape)if(ga(n.shape[a],r))return!0;return!1}if(n.type==="union"){for(let a of n.options)if(ga(a,r))return!0;return!1}if(n.type==="tuple"){for(let a of n.items)if(ga(a,r))return!0;return!!(n.rest&&ga(n.rest,r))}return!1}var A8=(e,t={})=>r=>{let n=Du({...r,processors:t});return Yt(e,n),Nu(n,e),zu(n,e)},Vm=(e,t,r={})=>n=>{let{libraryOptions:a,target:o}=n??{},i=Du({...a??{},target:o,io:t,processors:r});return Yt(e,i),Nu(i,e),zu(i,e)};var eVe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},E8=(e,t,r,n)=>{let a=r;a.type="string";let{minimum:o,maximum:i,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(a.minLength=o),typeof i=="number"&&(a.maxLength=i),s&&(a.format=eVe[s]??s,a.format===""&&delete a.format,s==="time"&&delete a.format),u&&(a.contentEncoding=u),l&&l.size>0){let d=[...l];d.length===1?a.pattern=d[0].source:d.length>1&&(a.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},L8=(e,t,r,n)=>{let a=r,{minimum:o,maximum:i,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?a.type="integer":a.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.minimum=d,a.exclusiveMinimum=!0):a.exclusiveMinimum=d),typeof o=="number"&&(a.minimum=o,typeof d=="number"&&t.target!=="draft-04"&&(d>=o?delete a.minimum:delete a.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u),typeof i=="number"&&(a.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete a.maximum:delete a.exclusiveMaximum)),typeof l=="number"&&(a.multipleOf=l)},$8=(e,t,r,n)=>{r.type="boolean"},O8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},M8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},R8=(e,t,r,n)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},D8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},N8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},z8=(e,t,r,n)=>{r.not={}},j8=(e,t,r,n)=>{},B8=(e,t,r,n)=>{},F8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},U8=(e,t,r,n)=>{let a=e._zod.def,o=ry(a.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},q8=(e,t,r,n)=>{let a=e._zod.def,o=[];for(let i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];r.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[i]:r.const=i}else o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),o.every(i=>typeof i=="boolean")&&(r.type="boolean"),o.every(i=>i===null)&&(r.type="null"),r.enum=o},V8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Z8=(e,t,r,n)=>{let a=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");a.type="string",a.pattern=o.source},H8=(e,t,r,n)=>{let a=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:l}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),l?l.length===1?(o.contentMediaType=l[0],Object.assign(a,o)):(Object.assign(a,o),a.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(a,o)},G8=(e,t,r,n)=>{r.type="boolean"},W8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},K8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},J8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},X8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Y8=(e,t,r,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Q8=(e,t,r,n)=>{let a=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof s=="number"&&(a.maxItems=s),a.type="array",a.items=Yt(o.element,t,{...n,path:[...n.path,"items"]})},eM=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="object",a.properties={};let i=o.shape;for(let u in i)a.properties[u]=Yt(i[u],t,{...n,path:[...n.path,"properties",u]});let s=new Set(Object.keys(i)),l=new Set([...s].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));l.size>0&&(a.required=Array.from(l)),o.catchall?._zod.def.type==="never"?a.additionalProperties=!1:o.catchall?o.catchall&&(a.additionalProperties=Yt(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},e4=(e,t,r,n)=>{let a=e._zod.def,o=a.inclusive===!1,i=a.options.map((s,l)=>Yt(s,t,{...n,path:[...n.path,o?"oneOf":"anyOf",l]}));o?r.oneOf=i:r.anyOf=i},tM=(e,t,r,n)=>{let a=e._zod.def,o=Yt(a.left,t,{...n,path:[...n.path,"allOf",0]}),i=Yt(a.right,t,{...n,path:[...n.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=l},rM=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=o.items.map((m,h)=>Yt(m,t,{...n,path:[...n.path,i,h]})),u=o.rest?Yt(o.rest,t,{...n,path:[...n.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=l,u&&(a.items=u)):t.target==="openapi-3.0"?(a.items={anyOf:l},u&&a.items.anyOf.push(u),a.minItems=l.length,u||(a.maxItems=l.length)):(a.items=l,u&&(a.additionalItems=u));let{minimum:d,maximum:f}=e._zod.bag;typeof d=="number"&&(a.minItems=d),typeof f=="number"&&(a.maxItems=f)},nM=(e,t,r,n)=>{let a=r,o=e._zod.def;a.type="object";let i=o.keyType,l=i._zod.bag?.patterns;if(o.mode==="loose"&&l&&l.size>0){let d=Yt(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});a.patternProperties={};for(let f of l)a.patternProperties[f.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=Yt(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),a.additionalProperties=Yt(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let d=[...u].filter(f=>typeof f=="string"||typeof f=="number");d.length>0&&(a.required=d)}},aM=(e,t,r,n)=>{let a=e._zod.def,o=Yt(a.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},oM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},iM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,r.default=JSON.parse(JSON.stringify(a.defaultValue))},sM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},lM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},uM=(e,t,r,n)=>{let a=e._zod.def,o=t.io==="input"?a.in._zod.def.type==="transform"?a.out:a.in:a.out;Yt(o,t,n);let i=t.seen.get(e);i.ref=o},cM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType,r.readOnly=!0},dM=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},t4=(e,t,r,n)=>{let a=e._zod.def;Yt(a.innerType,t,n);let o=t.seen.get(e);o.ref=a.innerType},fM=(e,t,r,n)=>{let a=e._zod.innerType;Yt(a,t,n);let o=t.seen.get(e);o.ref=a},Q2={string:E8,number:L8,boolean:$8,bigint:O8,symbol:M8,null:R8,undefined:D8,void:N8,never:z8,any:j8,unknown:B8,date:F8,enum:U8,literal:q8,nan:V8,template_literal:Z8,file:H8,success:G8,custom:W8,function:K8,transform:J8,map:X8,set:Y8,array:Q8,object:eM,union:e4,intersection:tM,tuple:rM,record:nM,nullable:aM,nonoptional:oM,default:iM,prefault:sM,catch:lM,pipe:uM,readonly:cM,promise:dM,optional:t4,lazy:fM};function r4(e,t){if("_idmap"in e){let n=e,a=Du({...t,processors:Q2}),o={};for(let l of n._idmap.entries()){let[u,d]=l;Yt(d,a)}let i={},s={registry:n,uri:t?.uri,defs:o};a.external=s;for(let l of n._idmap.entries()){let[u,d]=l;Nu(a,d),i[u]=zu(a,d)}if(Object.keys(o).length>0){let l=a.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[l]:o}}return{schemas:i}}let r=Du({...t,processors:Q2});return Yt(e,r),Nu(r,e),zu(r,e)}var n4=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Du({processors:Q2,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Yt(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Nu(this.ctx,t);let n=zu(this.ctx,t),{"~standard":a,...o}=n;return o}};var dle={};var xy={};Fn(xy,{ZodAny:()=>DM,ZodArray:()=>BM,ZodBase64:()=>k4,ZodBase64URL:()=>I4,ZodBigInt:()=>Xm,ZodBigIntFormat:()=>P4,ZodBoolean:()=>Jm,ZodCIDRv4:()=>_4,ZodCIDRv6:()=>S4,ZodCUID:()=>h4,ZodCUID2:()=>g4,ZodCatch:()=>lR,ZodCodec:()=>D4,ZodCustom:()=>Ly,ZodCustomStringFormat:()=>Wm,ZodDate:()=>Ty,ZodDefault:()=>rR,ZodDiscriminatedUnion:()=>UM,ZodE164:()=>T4,ZodEmail:()=>f4,ZodEmoji:()=>p4,ZodEnum:()=>Hm,ZodExactOptional:()=>QM,ZodFile:()=>XM,ZodFunction:()=>vR,ZodGUID:()=>wy,ZodIPv4:()=>x4,ZodIPv6:()=>w4,ZodIntersection:()=>qM,ZodJWT:()=>C4,ZodKSUID:()=>b4,ZodLazy:()=>mR,ZodLiteral:()=>JM,ZodMAC:()=>AM,ZodMap:()=>WM,ZodNaN:()=>cR,ZodNanoID:()=>m4,ZodNever:()=>zM,ZodNonOptional:()=>M4,ZodNull:()=>MM,ZodNullable:()=>tR,ZodNumber:()=>Km,ZodNumberFormat:()=>xd,ZodObject:()=>Py,ZodOptional:()=>O4,ZodPipe:()=>R4,ZodPrefault:()=>aR,ZodPromise:()=>gR,ZodReadonly:()=>dR,ZodRecord:()=>Ey,ZodSet:()=>KM,ZodString:()=>Gm,ZodStringFormat:()=>ir,ZodSuccess:()=>sR,ZodSymbol:()=>$M,ZodTemplateLiteral:()=>pR,ZodTransform:()=>YM,ZodTuple:()=>ZM,ZodType:()=>St,ZodULID:()=>v4,ZodURL:()=>Iy,ZodUUID:()=>os,ZodUndefined:()=>OM,ZodUnion:()=>Ay,ZodUnknown:()=>NM,ZodVoid:()=>jM,ZodXID:()=>y4,ZodXor:()=>FM,_ZodString:()=>d4,_default:()=>nR,_function:()=>yue,any:()=>Jle,array:()=>Cy,base64:()=>Ole,base64url:()=>Mle,bigint:()=>Zle,boolean:()=>LM,catch:()=>uR,check:()=>bue,cidrv4:()=>Lle,cidrv6:()=>$le,codec:()=>hue,cuid:()=>Sle,cuid2:()=>kle,custom:()=>xue,date:()=>Yle,describe:()=>wue,discriminatedUnion:()=>aue,e164:()=>Rle,email:()=>ple,emoji:()=>wle,enum:()=>L4,exactOptional:()=>eR,file:()=>due,float32:()=>Fle,float64:()=>Ule,function:()=>yue,guid:()=>mle,hash:()=>Ble,hex:()=>jle,hostname:()=>zle,httpUrl:()=>xle,instanceof:()=>Sue,int:()=>c4,int32:()=>qle,int64:()=>Hle,intersection:()=>VM,ipv4:()=>Ple,ipv6:()=>Ele,json:()=>Iue,jwt:()=>Dle,keyof:()=>Qle,ksuid:()=>Cle,lazy:()=>hR,literal:()=>cue,looseObject:()=>rue,looseRecord:()=>iue,mac:()=>Ale,map:()=>sue,meta:()=>_ue,nan:()=>mue,nanoid:()=>_le,nativeEnum:()=>uue,never:()=>A4,nonoptional:()=>iR,null:()=>RM,nullable:()=>Sy,nullish:()=>fue,number:()=>EM,object:()=>eue,optional:()=>_y,partialRecord:()=>oue,pipe:()=>ky,prefault:()=>oR,preprocess:()=>Tue,promise:()=>vue,readonly:()=>fR,record:()=>GM,refine:()=>yR,set:()=>lue,strictObject:()=>tue,string:()=>u4,stringFormat:()=>Nle,stringbool:()=>kue,success:()=>pue,superRefine:()=>bR,symbol:()=>Wle,templateLiteral:()=>gue,transform:()=>$4,tuple:()=>HM,uint32:()=>Vle,uint64:()=>Gle,ulid:()=>Ile,undefined:()=>Kle,union:()=>E4,unknown:()=>bd,url:()=>ble,uuid:()=>hle,uuidv4:()=>gle,uuidv6:()=>vle,uuidv7:()=>yle,void:()=>Xle,xid:()=>Tle,xor:()=>nue});var a4={};Fn(a4,{endsWith:()=>Dm,gt:()=>ns,gte:()=>ha,includes:()=>Mm,length:()=>yd,lowercase:()=>$m,lt:()=>rs,lte:()=>oo,maxLength:()=>vd,maxSize:()=>Ru,mime:()=>Nm,minLength:()=>ol,minSize:()=>as,multipleOf:()=>Mu,negative:()=>K2,nonnegative:()=>X2,nonpositive:()=>J2,normalize:()=>zm,overwrite:()=>_i,positive:()=>W2,property:()=>Y2,regex:()=>Lm,size:()=>gd,slugify:()=>Um,startsWith:()=>Rm,toLowerCase:()=>Bm,toUpperCase:()=>Fm,trim:()=>jm,uppercase:()=>Om});var Zm={};Fn(Zm,{ZodISODate:()=>i4,ZodISODateTime:()=>o4,ZodISODuration:()=>l4,ZodISOTime:()=>s4,date:()=>mM,datetime:()=>pM,duration:()=>gM,time:()=>hM});var o4=ne("ZodISODateTime",(e,t)=>{V$.init(e,t),ir.init(e,t)});function pM(e){return WO(o4,e)}var i4=ne("ZodISODate",(e,t)=>{Z$.init(e,t),ir.init(e,t)});function mM(e){return KO(i4,e)}var s4=ne("ZodISOTime",(e,t)=>{H$.init(e,t),ir.init(e,t)});function hM(e){return JO(s4,e)}var l4=ne("ZodISODuration",(e,t)=>{G$.init(e,t),ir.init(e,t)});function gM(e){return XO(l4,e)}var fle=(e,t)=>{sy.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>uy(e,r)},flatten:{value:r=>ly(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,_m,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,_m,2)}},isEmpty:{get(){return e.issues.length===0}}})},rVe=ne("ZodError",fle),Ra=ne("ZodError",fle,{Parent:Error});var vM=Im(Ra),yM=Tm(Ra),bM=Cm(Ra),xM=Pm(Ra),wM=r2(Ra),_M=n2(Ra),SM=a2(Ra),kM=o2(Ra),IM=i2(Ra),TM=s2(Ra),CM=l2(Ra),PM=u2(Ra);var St=ne("ZodType",(e,t)=>(ht.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Vm(e,"input"),output:Vm(e,"output")}}),e.toJSONSchema=A8(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ce.mergeDefs(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(r,n)=>ma(e,r,n),e.brand=()=>e,e.register=((r,n)=>(r.add(e,n),e)),e.parse=(r,n)=>vM(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>bM(e,r,n),e.parseAsync=async(r,n)=>yM(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>xM(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>wM(e,r,n),e.decode=(r,n)=>_M(e,r,n),e.encodeAsync=async(r,n)=>SM(e,r,n),e.decodeAsync=async(r,n)=>kM(e,r,n),e.safeEncode=(r,n)=>IM(e,r,n),e.safeDecode=(r,n)=>TM(e,r,n),e.safeEncodeAsync=async(r,n)=>CM(e,r,n),e.safeDecodeAsync=async(r,n)=>PM(e,r,n),e.refine=(r,n)=>e.check(yR(r,n)),e.superRefine=r=>e.check(bR(r)),e.overwrite=r=>e.check(_i(r)),e.optional=()=>_y(e),e.exactOptional=()=>eR(e),e.nullable=()=>Sy(e),e.nullish=()=>_y(Sy(e)),e.nonoptional=r=>iR(e,r),e.array=()=>Cy(e),e.or=r=>E4([e,r]),e.and=r=>VM(e,r),e.transform=r=>ky(e,$4(r)),e.default=r=>nR(e,r),e.prefault=r=>oR(e,r),e.catch=r=>uR(e,r),e.pipe=r=>ky(e,r),e.readonly=()=>fR(e),e.describe=r=>{let n=e.clone();return Dn.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return Dn.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Dn.get(e);let n=e.clone();return Dn.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),d4=ne("_ZodString",(e,t)=>{hd.init(e,t),St.init(e,t),e._zod.processJSONSchema=(n,a,o)=>E8(e,n,a,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(Lm(...n)),e.includes=(...n)=>e.check(Mm(...n)),e.startsWith=(...n)=>e.check(Rm(...n)),e.endsWith=(...n)=>e.check(Dm(...n)),e.min=(...n)=>e.check(ol(...n)),e.max=(...n)=>e.check(vd(...n)),e.length=(...n)=>e.check(yd(...n)),e.nonempty=(...n)=>e.check(ol(1,...n)),e.lowercase=n=>e.check($m(n)),e.uppercase=n=>e.check(Om(n)),e.trim=()=>e.check(jm()),e.normalize=(...n)=>e.check(zm(...n)),e.toLowerCase=()=>e.check(Bm()),e.toUpperCase=()=>e.check(Fm()),e.slugify=()=>e.check(Um())}),Gm=ne("ZodString",(e,t)=>{hd.init(e,t),d4.init(e,t),e.email=r=>e.check(P2(f4,r)),e.url=r=>e.check(by(Iy,r)),e.jwt=r=>e.check(G2(C4,r)),e.emoji=r=>e.check(O2(p4,r)),e.guid=r=>e.check(yy(wy,r)),e.uuid=r=>e.check(A2(os,r)),e.uuidv4=r=>e.check(E2(os,r)),e.uuidv6=r=>e.check(L2(os,r)),e.uuidv7=r=>e.check($2(os,r)),e.nanoid=r=>e.check(M2(m4,r)),e.guid=r=>e.check(yy(wy,r)),e.cuid=r=>e.check(R2(h4,r)),e.cuid2=r=>e.check(D2(g4,r)),e.ulid=r=>e.check(N2(v4,r)),e.base64=r=>e.check(V2(k4,r)),e.base64url=r=>e.check(Z2(I4,r)),e.xid=r=>e.check(z2(y4,r)),e.ksuid=r=>e.check(j2(b4,r)),e.ipv4=r=>e.check(B2(x4,r)),e.ipv6=r=>e.check(F2(w4,r)),e.cidrv4=r=>e.check(U2(_4,r)),e.cidrv6=r=>e.check(q2(S4,r)),e.e164=r=>e.check(H2(T4,r)),e.datetime=r=>e.check(pM(r)),e.date=r=>e.check(mM(r)),e.time=r=>e.check(hM(r)),e.duration=r=>e.check(gM(r))});function u4(e){return VO(Gm,e)}var ir=ne("ZodStringFormat",(e,t)=>{or.init(e,t),d4.init(e,t)}),f4=ne("ZodEmail",(e,t)=>{R$.init(e,t),ir.init(e,t)});function ple(e){return P2(f4,e)}var wy=ne("ZodGUID",(e,t)=>{O$.init(e,t),ir.init(e,t)});function mle(e){return yy(wy,e)}var os=ne("ZodUUID",(e,t)=>{M$.init(e,t),ir.init(e,t)});function hle(e){return A2(os,e)}function gle(e){return E2(os,e)}function vle(e){return L2(os,e)}function yle(e){return $2(os,e)}var Iy=ne("ZodURL",(e,t)=>{D$.init(e,t),ir.init(e,t)});function ble(e){return by(Iy,e)}function xle(e){return by(Iy,{protocol:/^https?$/,hostname:Ro.domain,...Ce.normalizeParams(e)})}var p4=ne("ZodEmoji",(e,t)=>{N$.init(e,t),ir.init(e,t)});function wle(e){return O2(p4,e)}var m4=ne("ZodNanoID",(e,t)=>{z$.init(e,t),ir.init(e,t)});function _le(e){return M2(m4,e)}var h4=ne("ZodCUID",(e,t)=>{j$.init(e,t),ir.init(e,t)});function Sle(e){return R2(h4,e)}var g4=ne("ZodCUID2",(e,t)=>{B$.init(e,t),ir.init(e,t)});function kle(e){return D2(g4,e)}var v4=ne("ZodULID",(e,t)=>{F$.init(e,t),ir.init(e,t)});function Ile(e){return N2(v4,e)}var y4=ne("ZodXID",(e,t)=>{U$.init(e,t),ir.init(e,t)});function Tle(e){return z2(y4,e)}var b4=ne("ZodKSUID",(e,t)=>{q$.init(e,t),ir.init(e,t)});function Cle(e){return j2(b4,e)}var x4=ne("ZodIPv4",(e,t)=>{W$.init(e,t),ir.init(e,t)});function Ple(e){return B2(x4,e)}var AM=ne("ZodMAC",(e,t)=>{J$.init(e,t),ir.init(e,t)});function Ale(e){return HO(AM,e)}var w4=ne("ZodIPv6",(e,t)=>{K$.init(e,t),ir.init(e,t)});function Ele(e){return F2(w4,e)}var _4=ne("ZodCIDRv4",(e,t)=>{X$.init(e,t),ir.init(e,t)});function Lle(e){return U2(_4,e)}var S4=ne("ZodCIDRv6",(e,t)=>{Y$.init(e,t),ir.init(e,t)});function $le(e){return q2(S4,e)}var k4=ne("ZodBase64",(e,t)=>{eO.init(e,t),ir.init(e,t)});function Ole(e){return V2(k4,e)}var I4=ne("ZodBase64URL",(e,t)=>{tO.init(e,t),ir.init(e,t)});function Mle(e){return Z2(I4,e)}var T4=ne("ZodE164",(e,t)=>{rO.init(e,t),ir.init(e,t)});function Rle(e){return H2(T4,e)}var C4=ne("ZodJWT",(e,t)=>{nO.init(e,t),ir.init(e,t)});function Dle(e){return G2(C4,e)}var Wm=ne("ZodCustomStringFormat",(e,t)=>{aO.init(e,t),ir.init(e,t)});function Nle(e,t,r={}){return qm(Wm,e,t,r)}function zle(e){return qm(Wm,"hostname",Ro.hostname,e)}function jle(e){return qm(Wm,"hex",Ro.hex,e)}function Ble(e,t){let r=t?.enc??"hex",n=`${e}_${r}`,a=Ro[n];if(!a)throw new Error(`Unrecognized hash format: ${n}`);return qm(Wm,n,a,t)}var Km=ne("ZodNumber",(e,t)=>{b2.init(e,t),St.init(e,t),e._zod.processJSONSchema=(n,a,o)=>L8(e,n,a,o),e.gt=(n,a)=>e.check(ns(n,a)),e.gte=(n,a)=>e.check(ha(n,a)),e.min=(n,a)=>e.check(ha(n,a)),e.lt=(n,a)=>e.check(rs(n,a)),e.lte=(n,a)=>e.check(oo(n,a)),e.max=(n,a)=>e.check(oo(n,a)),e.int=n=>e.check(c4(n)),e.safe=n=>e.check(c4(n)),e.positive=n=>e.check(ns(0,n)),e.nonnegative=n=>e.check(ha(0,n)),e.negative=n=>e.check(rs(0,n)),e.nonpositive=n=>e.check(oo(0,n)),e.multipleOf=(n,a)=>e.check(Mu(n,a)),e.step=(n,a)=>e.check(Mu(n,a)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function EM(e){return YO(Km,e)}var xd=ne("ZodNumberFormat",(e,t)=>{oO.init(e,t),Km.init(e,t)});function c4(e){return e8(xd,e)}function Fle(e){return t8(xd,e)}function Ule(e){return r8(xd,e)}function qle(e){return n8(xd,e)}function Vle(e){return a8(xd,e)}var Jm=ne("ZodBoolean",(e,t)=>{py.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>$8(e,r,n,a)});function LM(e){return o8(Jm,e)}var Xm=ne("ZodBigInt",(e,t)=>{x2.init(e,t),St.init(e,t),e._zod.processJSONSchema=(n,a,o)=>O8(e,n,a,o),e.gte=(n,a)=>e.check(ha(n,a)),e.min=(n,a)=>e.check(ha(n,a)),e.gt=(n,a)=>e.check(ns(n,a)),e.gte=(n,a)=>e.check(ha(n,a)),e.min=(n,a)=>e.check(ha(n,a)),e.lt=(n,a)=>e.check(rs(n,a)),e.lte=(n,a)=>e.check(oo(n,a)),e.max=(n,a)=>e.check(oo(n,a)),e.positive=n=>e.check(ns(BigInt(0),n)),e.negative=n=>e.check(rs(BigInt(0),n)),e.nonpositive=n=>e.check(oo(BigInt(0),n)),e.nonnegative=n=>e.check(ha(BigInt(0),n)),e.multipleOf=(n,a)=>e.check(Mu(n,a));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Zle(e){return s8(Xm,e)}var P4=ne("ZodBigIntFormat",(e,t)=>{iO.init(e,t),Xm.init(e,t)});function Hle(e){return u8(P4,e)}function Gle(e){return c8(P4,e)}var $M=ne("ZodSymbol",(e,t)=>{sO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>M8(e,r,n,a)});function Wle(e){return d8($M,e)}var OM=ne("ZodUndefined",(e,t)=>{lO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>D8(e,r,n,a)});function Kle(e){return f8(OM,e)}var MM=ne("ZodNull",(e,t)=>{uO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>R8(e,r,n,a)});function RM(e){return p8(MM,e)}var DM=ne("ZodAny",(e,t)=>{cO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>j8(e,r,n,a)});function Jle(){return m8(DM)}var NM=ne("ZodUnknown",(e,t)=>{dO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>B8(e,r,n,a)});function bd(){return h8(NM)}var zM=ne("ZodNever",(e,t)=>{fO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>z8(e,r,n,a)});function A4(e){return g8(zM,e)}var jM=ne("ZodVoid",(e,t)=>{pO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>N8(e,r,n,a)});function Xle(e){return v8(jM,e)}var Ty=ne("ZodDate",(e,t)=>{mO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(n,a,o)=>F8(e,n,a,o),e.min=(n,a)=>e.check(ha(n,a)),e.max=(n,a)=>e.check(oo(n,a));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Yle(e){return y8(Ty,e)}var BM=ne("ZodArray",(e,t)=>{hO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>Q8(e,r,n,a),e.element=t.element,e.min=(r,n)=>e.check(ol(r,n)),e.nonempty=r=>e.check(ol(1,r)),e.max=(r,n)=>e.check(vd(r,n)),e.length=(r,n)=>e.check(yd(r,n)),e.unwrap=()=>e.element});function Cy(e,t){return w8(BM,e,t)}function Qle(e){let t=e._zod.def.shape;return L4(Object.keys(t))}var Py=ne("ZodObject",(e,t)=>{gO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>eM(e,r,n,a),Ce.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>L4(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:bd()}),e.loose=()=>e.clone({...e._zod.def,catchall:bd()}),e.strict=()=>e.clone({...e._zod.def,catchall:A4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>Ce.extend(e,r),e.safeExtend=r=>Ce.safeExtend(e,r),e.merge=r=>Ce.merge(e,r),e.pick=r=>Ce.pick(e,r),e.omit=r=>Ce.omit(e,r),e.partial=(...r)=>Ce.partial(O4,e,r[0]),e.required=(...r)=>Ce.required(M4,e,r[0])});function eue(e,t){let r={type:"object",shape:e??{},...Ce.normalizeParams(t)};return new Py(r)}function tue(e,t){return new Py({type:"object",shape:e,catchall:A4(),...Ce.normalizeParams(t)})}function rue(e,t){return new Py({type:"object",shape:e,catchall:bd(),...Ce.normalizeParams(t)})}var Ay=ne("ZodUnion",(e,t)=>{my.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>e4(e,r,n,a),e.options=t.options});function E4(e,t){return new Ay({type:"union",options:e,...Ce.normalizeParams(t)})}var FM=ne("ZodXor",(e,t)=>{Ay.init(e,t),vO.init(e,t),e._zod.processJSONSchema=(r,n,a)=>e4(e,r,n,a),e.options=t.options});function nue(e,t){return new FM({type:"union",options:e,inclusive:!1,...Ce.normalizeParams(t)})}var UM=ne("ZodDiscriminatedUnion",(e,t)=>{Ay.init(e,t),yO.init(e,t)});function aue(e,t,r){return new UM({type:"union",options:t,discriminator:e,...Ce.normalizeParams(r)})}var qM=ne("ZodIntersection",(e,t)=>{bO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>tM(e,r,n,a)});function VM(e,t){return new qM({type:"intersection",left:e,right:t})}var ZM=ne("ZodTuple",(e,t)=>{w2.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>rM(e,r,n,a),e.rest=r=>e.clone({...e._zod.def,rest:r})});function HM(e,t,r){let n=t instanceof ht,a=n?r:t,o=n?t:null;return new ZM({type:"tuple",items:e,rest:o,...Ce.normalizeParams(a)})}var Ey=ne("ZodRecord",(e,t)=>{xO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>nM(e,r,n,a),e.keyType=t.keyType,e.valueType=t.valueType});function GM(e,t,r){return new Ey({type:"record",keyType:e,valueType:t,...Ce.normalizeParams(r)})}function oue(e,t,r){let n=ma(e);return n._zod.values=void 0,new Ey({type:"record",keyType:n,valueType:t,...Ce.normalizeParams(r)})}function iue(e,t,r){return new Ey({type:"record",keyType:e,valueType:t,mode:"loose",...Ce.normalizeParams(r)})}var WM=ne("ZodMap",(e,t)=>{wO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>X8(e,r,n,a),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(as(...r)),e.nonempty=r=>e.check(as(1,r)),e.max=(...r)=>e.check(Ru(...r)),e.size=(...r)=>e.check(gd(...r))});function sue(e,t,r){return new WM({type:"map",keyType:e,valueType:t,...Ce.normalizeParams(r)})}var KM=ne("ZodSet",(e,t)=>{_O.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>Y8(e,r,n,a),e.min=(...r)=>e.check(as(...r)),e.nonempty=r=>e.check(as(1,r)),e.max=(...r)=>e.check(Ru(...r)),e.size=(...r)=>e.check(gd(...r))});function lue(e,t){return new KM({type:"set",valueType:e,...Ce.normalizeParams(t)})}var Hm=ne("ZodEnum",(e,t)=>{SO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(n,a,o)=>U8(e,n,a,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(n,a)=>{let o={};for(let i of n)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Hm({...t,checks:[],...Ce.normalizeParams(a),entries:o})},e.exclude=(n,a)=>{let o={...t.entries};for(let i of n)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Hm({...t,checks:[],...Ce.normalizeParams(a),entries:o})}});function L4(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Hm({type:"enum",entries:r,...Ce.normalizeParams(t)})}function uue(e,t){return new Hm({type:"enum",entries:e,...Ce.normalizeParams(t)})}var JM=ne("ZodLiteral",(e,t)=>{kO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>q8(e,r,n,a),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function cue(e,t){return new JM({type:"literal",values:Array.isArray(e)?e:[e],...Ce.normalizeParams(t)})}var XM=ne("ZodFile",(e,t)=>{IO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>H8(e,r,n,a),e.min=(r,n)=>e.check(as(r,n)),e.max=(r,n)=>e.check(Ru(r,n)),e.mime=(r,n)=>e.check(Nm(Array.isArray(r)?r:[r],n))});function due(e){return _8(XM,e)}var YM=ne("ZodTransform",(e,t)=>{TO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>J8(e,r,n,a),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Au(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Ce.issue(o,r.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(Ce.issue(i))}};let a=t.transform(r.value,r);return a instanceof Promise?a.then(o=>(r.value=o,r)):(r.value=a,r)}});function $4(e){return new YM({type:"transform",transform:e})}var O4=ne("ZodOptional",(e,t)=>{_2.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>t4(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function _y(e){return new O4({type:"optional",innerType:e})}var QM=ne("ZodExactOptional",(e,t)=>{CO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>t4(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function eR(e){return new QM({type:"optional",innerType:e})}var tR=ne("ZodNullable",(e,t)=>{PO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>aM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function Sy(e){return new tR({type:"nullable",innerType:e})}function fue(e){return _y(Sy(e))}var rR=ne("ZodDefault",(e,t)=>{AO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>iM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function nR(e,t){return new rR({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Ce.shallowClone(t)}})}var aR=ne("ZodPrefault",(e,t)=>{EO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>sM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function oR(e,t){return new aR({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Ce.shallowClone(t)}})}var M4=ne("ZodNonOptional",(e,t)=>{LO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>oM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function iR(e,t){return new M4({type:"nonoptional",innerType:e,...Ce.normalizeParams(t)})}var sR=ne("ZodSuccess",(e,t)=>{$O.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>G8(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function pue(e){return new sR({type:"success",innerType:e})}var lR=ne("ZodCatch",(e,t)=>{OO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>lM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function uR(e,t){return new lR({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var cR=ne("ZodNaN",(e,t)=>{MO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>V8(e,r,n,a)});function mue(e){return x8(cR,e)}var R4=ne("ZodPipe",(e,t)=>{RO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>uM(e,r,n,a),e.in=t.in,e.out=t.out});function ky(e,t){return new R4({type:"pipe",in:e,out:t})}var D4=ne("ZodCodec",(e,t)=>{R4.init(e,t),hy.init(e,t)});function hue(e,t,r){return new D4({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var dR=ne("ZodReadonly",(e,t)=>{DO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>cM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function fR(e){return new dR({type:"readonly",innerType:e})}var pR=ne("ZodTemplateLiteral",(e,t)=>{NO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>Z8(e,r,n,a)});function gue(e,t){return new pR({type:"template_literal",parts:e,...Ce.normalizeParams(t)})}var mR=ne("ZodLazy",(e,t)=>{BO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>fM(e,r,n,a),e.unwrap=()=>e._zod.def.getter()});function hR(e){return new mR({type:"lazy",getter:e})}var gR=ne("ZodPromise",(e,t)=>{jO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>dM(e,r,n,a),e.unwrap=()=>e._zod.def.innerType});function vue(e){return new gR({type:"promise",innerType:e})}var vR=ne("ZodFunction",(e,t)=>{zO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>K8(e,r,n,a)});function yue(e){return new vR({type:"function",input:Array.isArray(e?.input)?HM(e?.input):e?.input??Cy(bd()),output:e?.output??bd()})}var Ly=ne("ZodCustom",(e,t)=>{FO.init(e,t),St.init(e,t),e._zod.processJSONSchema=(r,n,a)=>W8(e,r,n,a)});function bue(e){let t=new fr({check:"custom"});return t._zod.check=e,t}function xue(e,t){return S8(Ly,e??(()=>!0),t)}function yR(e,t={}){return k8(Ly,e,t)}function bR(e){return I8(e)}var wue=T8,_ue=C8;function Sue(e,t={}){let r=new Ly({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...Ce.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:r,path:[...r._zod.def.path??[]]})},r}var kue=(...e)=>P8({Codec:D4,Boolean:Jm,String:Gm},...e);function Iue(e){let t=hR(()=>E4([u4(e),EM(),LM(),RM(),Cy(t),GM(u4(),t)]));return t}function Tue(e,t){return ky($4(e),t)}var aVe={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function oVe(e){Fr({customError:e})}function iVe(){return Fr().customError}var xR;xR||(xR={});var Be={...xy,...a4,iso:Zm},sVe=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function lVe(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function uVe(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===n){let a=r[1];if(!a||!t.defs[a])throw new Error(`Reference not found: ${e}`);return t.defs[a]}throw new Error(`Reference not found: ${e}`)}function Cue(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return Be.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let a=e.$ref;if(t.refs.has(a))return t.refs.get(a);if(t.processing.has(a))return Be.lazy(()=>{if(!t.refs.has(a))throw new Error(`Circular reference not resolved: ${a}`);return t.refs.get(a)});t.processing.add(a);let o=uVe(a,t),i=Wn(o,t);return t.refs.set(a,i),t.processing.delete(a),i}if(e.enum!==void 0){let a=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&a.length===1&&a[0]===null)return Be.null();if(a.length===0)return Be.never();if(a.length===1)return Be.literal(a[0]);if(a.every(i=>typeof i=="string"))return Be.enum(a);let o=a.map(i=>Be.literal(i));return o.length<2?o[0]:Be.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return Be.literal(e.const);let r=e.type;if(Array.isArray(r)){let a=r.map(o=>{let i={...e,type:o};return Cue(i,t)});return a.length===0?Be.never():a.length===1?a[0]:Be.union(a)}if(!r)return Be.any();let n;switch(r){case"string":{let a=Be.string();if(e.format){let o=e.format;o==="email"?a=a.check(Be.email()):o==="uri"||o==="uri-reference"?a=a.check(Be.url()):o==="uuid"||o==="guid"?a=a.check(Be.uuid()):o==="date-time"?a=a.check(Be.iso.datetime()):o==="date"?a=a.check(Be.iso.date()):o==="time"?a=a.check(Be.iso.time()):o==="duration"?a=a.check(Be.iso.duration()):o==="ipv4"?a=a.check(Be.ipv4()):o==="ipv6"?a=a.check(Be.ipv6()):o==="mac"?a=a.check(Be.mac()):o==="cidr"?a=a.check(Be.cidrv4()):o==="cidr-v6"?a=a.check(Be.cidrv6()):o==="base64"?a=a.check(Be.base64()):o==="base64url"?a=a.check(Be.base64url()):o==="e164"?a=a.check(Be.e164()):o==="jwt"?a=a.check(Be.jwt()):o==="emoji"?a=a.check(Be.emoji()):o==="nanoid"?a=a.check(Be.nanoid()):o==="cuid"?a=a.check(Be.cuid()):o==="cuid2"?a=a.check(Be.cuid2()):o==="ulid"?a=a.check(Be.ulid()):o==="xid"?a=a.check(Be.xid()):o==="ksuid"&&(a=a.check(Be.ksuid()))}typeof e.minLength=="number"&&(a=a.min(e.minLength)),typeof e.maxLength=="number"&&(a=a.max(e.maxLength)),e.pattern&&(a=a.regex(new RegExp(e.pattern))),n=a;break}case"number":case"integer":{let a=r==="integer"?Be.number().int():Be.number();typeof e.minimum=="number"&&(a=a.min(e.minimum)),typeof e.maximum=="number"&&(a=a.max(e.maximum)),typeof e.exclusiveMinimum=="number"?a=a.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(a=a.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?a=a.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(a=a.lt(e.maximum)),typeof e.multipleOf=="number"&&(a=a.multipleOf(e.multipleOf)),n=a;break}case"boolean":{n=Be.boolean();break}case"null":{n=Be.null();break}case"object":{let a={},o=e.properties||{},i=new Set(e.required||[]);for(let[l,u]of Object.entries(o)){let d=Wn(u,t);a[l]=i.has(l)?d:d.optional()}if(e.propertyNames){let l=Wn(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Wn(e.additionalProperties,t):Be.any();if(Object.keys(a).length===0){n=Be.record(l,u);break}let d=Be.object(a).passthrough(),f=Be.looseRecord(l,u);n=Be.intersection(d,f);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),d=[];for(let m of u){let h=Wn(l[m],t),g=Be.string().regex(new RegExp(m));d.push(Be.looseRecord(g,h))}let f=[];if(Object.keys(a).length>0&&f.push(Be.object(a).passthrough()),f.push(...d),f.length===0)n=Be.object({}).passthrough();else if(f.length===1)n=f[0];else{let m=Be.intersection(f[0],f[1]);for(let h=2;h<f.length;h++)m=Be.intersection(m,f[h]);n=m}break}let s=Be.object(a);e.additionalProperties===!1?n=s.strict():typeof e.additionalProperties=="object"?n=s.catchall(Wn(e.additionalProperties,t)):n=s.passthrough();break}case"array":{let a=e.prefixItems,o=e.items;
153if(a&&Array.isArray(a)){let i=a.map(l=>Wn(l,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?Wn(o,t):void 0;s?n=Be.tuple(i).rest(s):n=Be.tuple(i),typeof e.minItems=="number"&&(n=n.check(Be.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Be.maxLength(e.maxItems)))}else if(Array.isArray(o)){let i=o.map(l=>Wn(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Wn(e.additionalItems,t):void 0;s?n=Be.tuple(i).rest(s):n=Be.tuple(i),typeof e.minItems=="number"&&(n=n.check(Be.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(Be.maxLength(e.maxItems)))}else if(o!==void 0){let i=Wn(o,t),s=Be.array(i);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),n=s}else n=Be.array(Be.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function Wn(e,t){if(typeof e=="boolean")return e?Be.any():Be.never();let r=Cue(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Wn(u,t)),l=Be.union(s);r=n?Be.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Wn(u,t)),l=Be.xor(s);r=n?Be.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=n?r:Be.any();else{let s=n?r:Wn(e.allOf[0],t),l=n?0:1;for(let u=l;u<e.allOf.length;u++)s=Be.intersection(s,Wn(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=Be.nullable(r)),e.readOnly===!0&&(r=Be.readonly(r));let a={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of o)s in e&&(a[s]=e[s]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let s of i)s in e&&(a[s]=e[s]);for(let s of Object.keys(e))sVe.has(s)||(a[s]=e[s]);return Object.keys(a).length>0&&t.registry.add(r,a),r}function Pue(e,t){if(typeof e=="boolean")return e?Be.any():Be.never();let r=lVe(e,t?.defaultTarget),n=e.$defs||e.definitions||{},a={version:r,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Dn};return Wn(e,a)}var wR={};Fn(wR,{bigint:()=>pVe,boolean:()=>fVe,date:()=>mVe,number:()=>dVe,string:()=>cVe});function cVe(e){return ZO(Gm,e)}function dVe(e){return QO(Km,e)}function fVe(e){return i8(Jm,e)}function pVe(e){return l8(Xm,e)}function mVe(e){return b8(Ty,e)}Fr(S2());var gVe=Object.defineProperty,vVe=(e,t)=>{for(var r in t)gVe(e,r,{get:t[r],enumerable:!0})},yVe="AI_InvalidArgumentError",bVe=`vercel.ai.error.${yVe}`,xVe=Symbol.for(bVe),wVe;wVe=xVe;var _Ve="AI_InvalidStreamPartError",SVe=`vercel.ai.error.${_Ve}`,kVe=Symbol.for(SVe),IVe;IVe=kVe;var TVe="AI_InvalidToolApprovalError",CVe=`vercel.ai.error.${TVe}`,PVe=Symbol.for(CVe),AVe;AVe=PVe;var EVe="AI_InvalidToolInputError",LVe=`vercel.ai.error.${EVe}`,$Ve=Symbol.for(LVe),OVe;OVe=$Ve;var MVe="AI_ToolCallNotFoundForApprovalError",RVe=`vercel.ai.error.${MVe}`,DVe=Symbol.for(RVe),NVe;NVe=DVe;var zVe="AI_MissingToolResultsError",jVe=`vercel.ai.error.${zVe}`,BVe=Symbol.for(jVe),FVe;FVe=BVe;var UVe="AI_NoImageGeneratedError",qVe=`vercel.ai.error.${UVe}`,VVe=Symbol.for(qVe),ZVe;ZVe=VVe;var Eue="AI_NoObjectGeneratedError",Lue=`vercel.ai.error.${Eue}`,HVe=Symbol.for(Lue),$ue,ju=class extends Nt{constructor({message:e="No object generated.",cause:t,text:r,response:n,usage:a,finishReason:o}){super({name:Eue,message:e,cause:t}),this[$ue]=!0,this.text=r,this.response=n,this.usage=a,this.finishReason=o}static isInstance(e){return Nt.hasMarker(e,Lue)}};$ue=HVe;var GVe="AI_NoOutputGeneratedError",WVe=`vercel.ai.error.${GVe}`,KVe=Symbol.for(WVe),JVe;JVe=KVe;var XVe="AI_NoSpeechGeneratedError",YVe=`vercel.ai.error.${XVe}`,QVe=Symbol.for(YVe),eZe;eZe=QVe;var tZe="AI_NoTranscriptGeneratedError",rZe=`vercel.ai.error.${tZe}`,nZe=Symbol.for(rZe),aZe;aZe=nZe;var oZe="AI_NoVideoGeneratedError",iZe=`vercel.ai.error.${oZe}`,sZe=Symbol.for(iZe),lZe;lZe=sZe;var uZe="AI_NoSuchToolError",cZe=`vercel.ai.error.${uZe}`,dZe=Symbol.for(cZe),fZe;fZe=dZe;var pZe="AI_ToolCallRepairError",mZe=`vercel.ai.error.${pZe}`,hZe=Symbol.for(mZe),gZe;gZe=hZe;var Oue="AI_UIMessageStreamError",Mue=`vercel.ai.error.${Oue}`,vZe=Symbol.for(Mue),Rue,Ym=class extends Nt{constructor({chunkType:e,chunkId:t,message:r}){super({name:Oue,message:r}),this[Rue]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Nt.hasMarker(e,Mue)}};Rue=vZe;var yZe="AI_InvalidDataContentError",bZe=`vercel.ai.error.${yZe}`,xZe=Symbol.for(bZe),wZe;wZe=xZe;var _Ze="AI_InvalidMessageRoleError",SZe=`vercel.ai.error.${_Ze}`,kZe=Symbol.for(SZe),IZe;IZe=kZe;var TZe="AI_MessageConversionError",CZe=`vercel.ai.error.${TZe}`,PZe=Symbol.for(CZe),AZe;AZe=PZe;var EZe="AI_RetryError",LZe=`vercel.ai.error.${EZe}`,$Ze=Symbol.for(LZe),OZe;OZe=$Ze;var MZe="6.0.146",RZe=async({url:e,maxBytes:t,abortSignal:r})=>{var n;let a=e.toString();_7(a);try{let o=await fetch(a,{headers:HS({},`ai-sdk/${MZe}`,Mie()),signal:r});if(o.redirected&&_7(o.url),!o.ok)throw new Oo({url:a,statusCode:o.status,statusText:o.statusText});return{data:await Lie({response:o,url:a,maxBytes:t??w7}),mediaType:(n=o.headers.get("content-type"))!=null?n:void 0}}catch(o){throw Oo.isInstance(o)?o:new Oo({url:a,cause:o})}};var Due=E.union([E.string(),E.instanceof(Uint8Array),E.instanceof(ArrayBuffer),E.custom(e=>{var t,r;return(r=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?r:!1},{message:"Must be a Buffer"})]);var $y=E.lazy(()=>E.union([E.null(),E.string(),E.number(),E.boolean(),E.record(E.string(),$y.optional()),E.array($y)])),tt=E.record(E.string(),E.record(E.string(),$y.optional())),Nue=E.object({type:E.literal("text"),text:E.string(),providerOptions:tt.optional()}),DZe=E.object({type:E.literal("image"),image:E.union([Due,E.instanceof(URL)]),mediaType:E.string().optional(),providerOptions:tt.optional()}),zue=E.object({type:E.literal("file"),data:E.union([Due,E.instanceof(URL)]),filename:E.string().optional(),mediaType:E.string(),providerOptions:tt.optional()}),NZe=E.object({type:E.literal("reasoning"),text:E.string(),providerOptions:tt.optional()}),zZe=E.object({type:E.literal("tool-call"),toolCallId:E.string(),toolName:E.string(),input
153:E.unknown(),providerOptions:tt.optional(),providerExecuted:E.boolean().optional()}),jZe=E.discriminatedUnion("type",[E.object({type:E.literal("text"),value:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("json"),value:$y,providerOptions:tt.optional()}),E.object({type:E.literal("execution-denied"),reason:E.string().optional(),providerOptions:tt.optional()}),E.object({type:E.literal("error-text"),value:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("error-json"),value:$y,providerOptions:tt.optional()}),E.object({type:E.literal("content"),value:E.array(E.union([E.object({type:E.literal("text"),text:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("media"),data:E.string(),mediaType:E.string()}),E.object({type:E.literal("file-data"),data:E.string(),mediaType:E.string(),filename:E.string().optional(),providerOptions:tt.optional()}),E.object({type:E.literal("file-url"),url:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("file-id"),fileId:E.union([E.string(),E.record(E.string(),E.string())]),providerOptions:tt.optional()}),E.object({type:E.literal("image-data"),data:E.string(),mediaType:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("image-url"),url:E.string(),providerOptions:tt.optional()}),E.object({type:E.literal("image-file-id"),fileId:E.union([E.string(),E.record(E.string(),E.string())]),providerOptions:tt.optional()}),E.object({type:E.literal("custom"),providerOptions:tt.optional()})]))})]),jue=E.object({type:E.literal("tool-result"),toolCallId:E.string(),toolName:E.string(),output:jZe,providerOptions:tt.optional()}),BZe=E.object({type:E.literal("tool-approval-request"),approvalId:E.string(),toolCallId:E.string()}),FZe=E.object({type:E.literal("tool-approval-response"),approvalId:E.string(),approved:E.boolean(),reason:E.string().optional()}),UZe=E.object({role:E.literal("system"),content:E.string(),providerOptions:tt.optional()}),qZe=E.object({role:E.literal("user"),content:E.union([E.string(),E.array(E.union([Nue,DZe,zue]))]),providerOptions:tt.optional()}),VZe=E.object({role:E.literal("assistant"),content:E.union([E.string(),E.array(E.union([Nue,zue,NZe,zZe,jue,BZe]))]),providerOptions:tt.optional()}),ZZe=E.object({role:E.literal("tool"),content:E.array(E.union([jue,FZe])),providerOptions:tt.optional()}),A3t=E.union([UZe,qZe,VZe,ZZe]);function Bue(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let r={...e};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let a=t[n];if(a===void 0)continue;let o=n in e?e[n]:void 0,i=a!==null&&typeof a=="object"&&!Array.isArray(a)&&!(a instanceof Date)&&!(a instanceof RegExp),s=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&s?r[n]=Bue(o,a):r[n]=a}return r}var HZe={};vVe(HZe,{array:()=>JZe,choice:()=>XZe,json:()=>YZe,object:()=>KZe,text:()=>WZe});function GZe(e){let t=["ROOT"],r=-1,n=null;function a(l,u,d){switch(l){case'"':{r=u,t.pop(),t.push(d),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=u,n=u,t.pop(),t.push(d),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=u,t.pop(),t.push(d),t.push("INSIDE_NUMBER");break}case"{":{r=u,t.pop(),t.push(d),t.push("INSIDE_OBJECT_START");break}case"[":{r=u,t.pop(),t.push(d),t.push("INSIDE_ARRAY_START");break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=u,t.pop();break}}}function i(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=u,t.pop();break}}}for(let l=0;l<e.length;l++){let u=e[l];switch(t[t.length-1]){case"ROOT":a(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{a(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),r=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=l}break}case"INSIDE_ARRAY_START":{u==="]"?(r=l,t.pop()):(r=l,a(u,l,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=l,t.pop();break}default:{r=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{a(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),r=l;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let f=e.substring(n,l+1);!"false".startsWith(f)&&!"true".startsWith(f)&&!"null".startsWith(f)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,l)):r=l;break}}}let s=e.slice(0,r+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{let d=e.substring(n,e.length);"true".startsWith(d)?s+="true".slice(d.length):"false".startsWith(d)?s+="false".slice(d.length):"null".startsWith(d)&&(s+="null".slice(d.length))}}return s}async function Oy(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await nl({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await nl({text:GZe(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var WZe=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),KZe=({schema:e,name:t,description:r})=>{let n=KS(e);return{name:"object",responseFormat:ts(n.jsonSchema).then(a=>({type:"json",schema:a,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:a},o){let i=await nl({text:a});if(!i.success)throw new ju({message:"No object generated: could not parse the response.",cause:i.error,text:a,response:o.response,usage:o.usage,finishReason:o.finishReason});let s=await wm({value:i.value,schema:n});if(!s.success)throw new ju({message:"No object generated: response did not match sc
153hema.",cause:s.error,text:a,response:o.response,usage:o.usage,finishReason:o.finishReason});return s.value},async parsePartialOutput({text:a}){let o=await Oy(a);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},JZe=({element:e,name:t,description:r})=>{let n=KS(e);return{name:"array",responseFormat:ts(n.jsonSchema).then(a=>{let{$schema:o,...i}=a;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:a},o){let i=await nl({text:a});if(!i.success)throw new ju({message:"No object generated: could not parse the response.",cause:i.error,text:a,response:o.response,usage:o.usage,finishReason:o.finishReason});let s=i.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new ju({message:"No object generated: response did not match schema.",cause:new Xi({value:s,cause:"response must be an object with an elements array"}),text:a,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let l of s.elements){let u=await wm({value:l,schema:n});if(!u.success)throw new ju({message:"No object generated: response did not match schema.",cause:u.error,text:a,response:o.response,usage:o.usage,finishReason:o.finishReason})}return s.elements},async parsePartialOutput({text:a}){let o=await Oy(a);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let s=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,l=[];for(let u of s){let d=await wm({value:u,schema:n});d.success&&l.push(d.value)}return{partial:l}}}},createElementStreamTransform(){let a=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;a<o.length;a++)i.enqueue(o[a])}})}}},XZe=({options:e,name:t,description:r})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}),async parseCompleteOutput({text:n},a){let o=await nl({text:n});if(!o.success)throw new ju({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new ju({message:"No object generated: response did not match schema.",cause:new Xi({value:i,cause:"response must be an object that contains a choice value."}),text:n,response:a.response,usage:a.usage,finishReason:a.finishReason});return i.result},async parsePartialOutput({text:n}){let a=await Oy(n);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=a.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(s=>s.startsWith(o.result));return a.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),YZe=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},n){let a=await nl({text:r});if(!a.success)throw new ju({message:"No object generated: could not parse the response.",cause:a.error,text:r,response:n.response,usage:n.usage,finishReason:n.finishReason});return a.value},async parsePartialOutput({text:r}){let n=await Oy(r);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return n.value===void 0?void 0:{partial:n.value}}},createElementStreamTransform(){}});var O3t=rl({prefix:"aitxt",size:24});var R3t=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 154 155`)},flush(e){e.enqueue(`data: [DONE] 156 157`)}})}};var QZe=GS(()=>Qv(E.union([E.strictObject({type:E.literal("text-start"),id:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("text-delta"),id:E.string(),delta:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("text-end"),id:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("error"),errorText:E.string()}),E.strictObject({type:E.literal("tool-input-start"),toolCallId:E.string(),toolName:E.string(),providerExecuted:E.boolean().optional(),providerMetadata:tt.optional(),dynamic:E.boolean().optional(),title:E.string().optional()}),E.strictObject({type:E.literal("tool-input-delta"),toolCallId:E.string(),inputTextDelta:E.string()}),E.strictObject({type:E.literal("tool-input-available"),toolCallId:E.string(),toolName:E.string(),input
157:E.unknown(),providerExecuted:E.boolean().optional(),providerMetadata:tt.optional(),dynamic:E.boolean().optional(),title:E.string().optional()}),E.strictObject({type:E.literal("tool-input-error"),toolCallId:E.string(),toolName:E.string(),input:E.unknown(),providerExecuted:E.boolean().optional(),providerMetadata:tt.optional(),dynamic:E.boolean().optional(),errorText:E.string(),title:E.string().optional()}),E.strictObject({type:E.literal("tool-approval-request"),approvalId:E.string(),toolCallId:E.string()}),E.strictObject({type:E.literal("tool-output-available"),toolCallId:E.string(),output:E.unknown(),providerExecuted:E.boolean().optional(),providerMetadata:tt.optional(),dynamic:E.boolean().optional(),preliminary:E.boolean().optional()}),E.strictObject({type:E.literal("tool-output-error"),toolCallId:E.string(),errorText:E.string(),providerExecuted:E.boolean().optional(),providerMetadata:tt.optional(),dynamic:E.boolean().optional()}),E.strictObject({type:E.literal("tool-output-denied"),toolCallId:E.string()}),E.str
vendor: 1,894 bytes, line 157
157ictObject({type:E.literal("reasoning-start"),id:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("reasoning-delta"),id:E.string(),delta:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("reasoning-end"),id:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("source-url"),sourceId:E.string(),url:E.string(),title:E.string().optional(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("source-document"),sourceId:E.string(),mediaType:E.string(),title:E.string(),filename:E.string().optional(),providerMetadata:tt.optional()}),E.strictObject({type:E.literal("file"),url:E.string(),mediaType:E.string(),providerMetadata:tt.optional()}),E.strictObject({type:E.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:E.string().optional(),data:E.unknown(),transient:E.boolean().optional()}),E.strictObject({type:E.literal("start-step")}),E.strictObject({type:E.literal("finish-step")}),E.strictObject({type:E.literal("start"),messageId:E.string().optional(),messageMetadata:E.unknown().optional()}),E.strictObject({type:E.literal("finish"),finishReason:E.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:E.unknown().optional()}),E.strictObject({type:E.literal("abort"),reason:E.string().optional()}),E.strictObject({type:E.literal("message-metadata"),messageMetadata:E.unknown()})])));function eHe(e){return e.type.startsWith("data-")}function _R(e){return e.type.startsWith("tool-")}function tHe(e){return e.type==="dynamic-tool"}function is(e){return _R(e)||tHe(e)}function Aue(e){return e.type.split("-").slice(1).join("-")}function rHe({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}
157function nHe({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:n,onError:a,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(s,l){await n(async({state:u,write:d})=>{var f,m,h,g;function y(x){let I=u.message.parts.filter(is).find(A=>A.toolCallId===x);if(I==null)throw new Ym({chunkType:"tool-invocation",chunkId:x,message:`No tool invocation found for tool call ID "${x}".`});return I}function b(x){var C;let I=u.message.parts.find(F=>_R(F)&&F.toolCallId===x.toolCallId),A=x,O=I;if(I!=null){I.state=x.state,O.input=A.input,O.output=A.output,O.errorText=A.errorText,O.rawInput=A.rawInput,O.preliminary=A.preliminary,x.title!==void 0&&(O.title=x.title),O.providerExecuted=(C=A.providerExecuted)!=null?C:I.providerExecuted;let F=A.providerMetadata;if(F!=null)if(x.state==="output-available"||x.state==="output-error"){let q=I;q.resultProviderMetadata=F}else I.callProviderMetadata=F}else u.message.parts.push({type:`tool-${x.toolName}`,toolCallId:x.toolCallId,state:x.state,title:x.title,input:A.input,output:A.output,rawInput:A.rawInput,errorText:A.errorText,providerExecuted:A.providerExecuted,preliminary:A.preliminary,...A.providerMetadata!=null&&(x.state==="output-available"||x.state==="output-error")?{resultProviderMetadata:A.providerMetadata}:{},...A.providerMetadata!=null&&!(x.state==="output-available"||x.state==="output-error")?{c
157allProviderMetadata:A.providerMetadata}:{}})}function w(x){var C,I;let A=u.message.parts.find(q=>q.type==="dynamic-tool"&&q.toolCallId===x.toolCallId),O=x,F=A;if(A!=null){A.state=x.state,F.toolName=x.toolName,F.input=O.input,F.output=O.output,F.errorText=O.errorText,F.rawInput=(C=O.rawInput)!=null?C:F.rawInput,F.preliminary=O.preliminary,x.title!==void 0&&(F.title=x.title),F.providerExecuted=(I=O.providerExecuted)!=null?I:A.providerExecuted;let q=O.providerMetadata;if(q!=null)if(x.state==="output-available"||x.state==="output-error"){let G=A;G.resultProviderMetadata=q}else A.callProviderMetadata=q}else u.message.parts.push({type:"dynamic-tool",toolName:x.toolName,toolCallId:x.toolCallId,state:x.state,input:O.input,output:O.output,errorText:O.errorText,preliminary:O.preliminary,providerExecuted:O.providerExecuted,title:x.title,...O.providerMetadata!=null&&(x.state==="output-available"||x.state==="output-error")?{resultProviderMetadata:O.providerMetadata}:{},...O.providerMetadata!=null&&!(x.state==="output-available"||x.state==="output-error")?{c
157allProviderMetadata:O.providerMetadata}:{}})}async function S(x){if(x!=null){let C=u.message.metadata!=null?Bue(u.message.metadata,x):x;t!=null&&await JS({value:C,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=C}}switch(s.type){case"text-start":{let x={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=x,u.message.parts.push(x),d();break}case"text-delta":{let x=u.activeTextParts[s.id];if(x==null)throw new Ym({chunkType:"text-delta",chunkId:s.id,message:`Received text-delta for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});x.text+=s.delta,x.providerMetadata=(f=s.providerMetadata)!=null?f:x.providerMetadata,d();break}case"text-end":{let x=u.activeTextParts[s.id];if(x==null)throw new Ym({chunkType:"text-end",chunkId:s.id,message:`Received text-end for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});x.state="done",x.providerMetadata=(m=s.providerMetadata)!=null?m:x.providerMetadata,delete u.activeTextParts[s.id],d();break}case"reasoning-start":{let x={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=x,u.message.parts.push(x),d();break}case"reasoning-delta":{let x=u.activeReasoningParts[s.id];if(x==null)throw new Ym({chunkType:"reasoning-delta",chunkId:s.id,message:`Received reasoning-delta for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});x.text+=s.delta,x.providerMetadata=(h=s.providerMetadata)!=null?h:x.providerMetadata,d();break}case"reasoning-end":{let x=u.activeReasoningParts[s.id];if(x==null)throw new Ym({chunkType:"reasoning-end",chunkId:s.id,message:`Received reasoning-end for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});x.providerMetadata=(g=s.providerMetadata)!=null?g:x.providerMetadata,x.state="done",delete u.activeReasoningParts[s.id],d();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),d();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),d();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),d();break}case"tool-input-start":{let x=u.message.parts.filter(_R);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:x.length,dynamic:s.dynamic,title:s.title},s.dynamic?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,providerMetadata:s.providerMetadata}),d();break}case"tool-input-delta":{let x=u.partialToolCalls[s.toolCallId];if(x==null)throw new Ym({chunkType:"tool-input-delta",chunkId:s.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${s.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});x.text+=s.inputTextDelta;let{value:C}=await Oy(x.text);x.dynamic?w({toolCallId:s.toolCallId,toolName:x.toolName,state:"input-streaming",input:C,title:x.title}):b({toolCallId:s.toolCallId,toolName:x.toolName,state:"input-streaming",input:C,title:x.title}),d();break}case"tool-input-available":{s.dynamic?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title}),d(),o&&!s.providerExecuted&&await o({toolCall:s});break}case"tool-input-error":{let x=u.message.parts.filter(is).find(I=>I.toolCallId===s.toolCallId);(x!=null?x.type==="dynamic-tool":!!s.dynamic)?w({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):b({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),d();break}case"tool-approval-request":{let x=y(s.toolCallId);x.state="approval-requested",x.approval={id:s.approvalId},d();break}case"tool-output-denied":{let x=y(s.toolCallId);x.state="output-denied",d();break}case"tool-output-available":{let x=y(s.toolCallId);x.type==="dynamic-tool"?w({toolCallId:s.toolCallId,toolName:x.toolName,state:"output-available",input:x.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title}):b({toolCallId:s.toolCallId,toolName:Aue(x),state:"output-available",input:x.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:x.title}),d();break}case"tool-output-error":{let x=y(s.toolCallId);x.type==="dynamic-tool"?w({toolCallId:s.toolCallId,toolName:x.toolName,state:"output-error",input:x.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title}):b({toolCallId:s.toolCallId,toolName:Aue(x),state:"output-error",input:x.input,rawInput:x.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:x.title}),d();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await S(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&d();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await S(s.messageMetadata),s.messageMetadata!=null&&d();break}case"message-metadata":{await S(s.messageMetadata),s.messageMetadata!=null&&d();break}case"error":{a?.(new Error(s.errorText));break}default:if(eHe(s)){if(r?.[s.type]!=null){let I=u.message.parts.findIndex(O=>"id"in O&&"data"in O&&O.id===s.id&&O.type===s.type),A=I>=0?I:u.message.parts.length;await JS({value:s.data,schema:r[s.type],context:{field:`message.parts[${A}].data`,entityName:s.type,entityId:s.id}})}let x=s;if(x.transient){i?.(x);break}let C=x.id!=null?u.message.parts.find(I=>x.type===I.type&&x.id===I.id):void 0;C!=null?C.data=x.data:u.message.parts.push(x),i?.(x),d()}}l.enqueue(s)})}}))}
157async function aHe({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:n}=await r.read();if(n)break}}catch(n){t?.(n)}finally{r.releaseLock()}}var j3t=rl({prefix:"aitxt",size:24});var U3t=GS(()=>Qv(E.array(E.object({id:E.string(),role:E.enum(["system","user","assistant"]),metadata:E.unknown().optional(),parts:E.array(E.union([E.object({type:E.literal("text"),text:E.string(),state:E.enum(["streaming","done"]).optional(),providerMetadata:tt.optional()}),E.object({type:E.literal("reasoning"),text:E.string(),state:E.enum(["streaming","done"]).optional(),providerMetadata:tt.optional()}),E.object({type:E.literal("source-url"),sourceId:E.string(),url:E.string(),title:E.string().optional(),providerMetadata:tt.optional()}),E.object({type:E.literal("source-document"),sourceId:E.string(),mediaType:E.string(),title:E.string(),filename:E.string().optional(),providerMetadata:tt.optional()}),E.object({type:E.literal("file"),mediaType:E.string(),filename:E.string().optional(),url:E.string(),providerMetadata:tt.optional()}),E.object({type:E.literal("step-start")}),E.object({type:E.string().startsWith("data-"),id:E.string().optional(),data:E.unknown()}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("input-streaming"),input:E.unknown().optional(),providerExecuted:E.boolean().optional(),callProviderMetadata:tt.optional(),output:E.never().optional(),errorText:E.never().optional(),approval:E.never().optional()}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("input-available"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.never().optional()}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("approval-requested"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.never().optional(),reason:E.never().optional()})}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("approval-responded"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.boolean(),reason:E.string().optional()})}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("output-available"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.unknown(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),resultProviderMetadata:tt.optional(),preliminary:E.boolean().optional(),approval:E.object({id:E.string(),approved:E.literal(!0),reason:E.string().optional()}).optional()}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("output-error"),input:E.unknown(),rawInput:E.unknown().optional(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.string(),callProviderMetadata:tt.optional(),resultProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.literal(!0),reason:E.string().optional()}).optional()}),E.object({type:E.literal("dynamic-tool"),toolName:E.string(),toolCallId:E.string(),state:E.literal("output-denied"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.literal(!1),reason:E.string().optional()})}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("input-streaming"),providerExecuted:E.boolean().optional(),callProviderMetadata:tt.optional(),input:E.unknown().optional(),output:E.never().optional(),errorText:E.never().optional(),approval:E.never().optional()}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("input-available"),providerExecuted:E.boolean().optional(),input
157:E.unknown(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.never().optional()}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("approval-requested"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.never().optional(),reason:E.never().optional()})}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("approval-responded"),input:E.unknown(),providerExecuted:E.boolean().optional(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.boolean(),reason:E.string().optional()})}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("output-available"),providerExecuted:E.boolean().optional(),input:E.unknown(),output:E.unknown(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),resultProviderMetadata:tt.optional(),preliminary:E.boolean().optional(),approval:E.object({id:E.string(),approved:E.literal(!0),reason:E.string().optional()}).optional()}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("output-error"),providerExecuted:E.boolean().optional(),input:E.unknown(),rawInput:E.unknown().optional(),output:E.never().optional(),errorText:E.string(),callProviderMetadata:tt.optional(),resultProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.literal(!0),reason:E.string().optional()}).optional()}),E.object({type:E.string().startsWith("tool-"),toolCallId:E.string(),state:E.literal("output-denied"),providerExecuted:E.boolean().optional(),input:E.unknown(),output:E.never().optional(),errorText:E.never().optional(),callProviderMetadata:tt.optional(),approval:E.object({id:E.string(),approved:E.literal(!1),reason:E.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var V3t=rl({prefix:"aiobj",size:24});function Fue(e){return({url:t,abortSignal:r})=>RZe({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var oHe=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,r)=>{this.queue.push(async()=>{try{await e(),t()}catch(n){r(n)}}),this.processQueue()})}};var H3t=rl({prefix:"aiobj",size:24});var G3t=Fue();var iHe="AI_NoSuchProviderError",sHe=`vercel.ai.error.${iHe}`,lHe=Symbol.for(sHe),uHe;uHe=lHe;var W3t=Fue();async function cHe(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:r,type:n}=t,a=await new Promise((o,i)=>{let s=new FileReader;s.onload=l=>{var u;o((u=l.target)==null?void 0:u.result)},s.onerror=l=>i(l),s.readAsDataURL(t)});return{type:"file",mediaType:n,filename:r,url:a}}))}var dHe=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:n,fetch:a,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=r,this.body=n,this.fetch=a,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var r,n,a,o,i;let s=await ts(this.body),l=await ts(this.headers),u=await ts(this.credentials),d={...Pu(l),...Pu(t.headers)},f=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:d,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),m=(n=f?.api)!=null?n:this.api,h=f?.headers!==void 0?Pu(f.headers):d,g=f?.body!==void 0?f.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},y=(a=f?.credentials)!=null?a:u,w=await((o=this.fetch)!=null?o:globalThis.fetch)(m,{method:"POST",headers:{"Content-Type":"application/json",...h},body:JSON.stringify(g),credentials:y,signal:e});if(!w.ok)throw new Error((i=await w.text())!=null?i:"Failed to fetch the chat response.");if(!w.body)throw new Error("The response body is empty.");return this.processResponseStream(w.body)}async reconnectToStream(e){var t,r,n,a,o;let i=await ts(this.body),s=await ts(this.headers),l=await ts(this.credentials),u={...Pu(s),...Pu(e.headers)},d=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),f=(r=d?.api)!=null?r:`${this.api}/${e.chatId}/stream`,m=d?.headers!==void 0?Pu(d.headers):u,h=(n=d?.credentials)!=null?n:l,y=await((a=this.fetch)!=null?a:globalThis.fetch)(f,{method:"GET",headers:m,credentials:h});if(y.status===204)return null;if(!y.ok)throw new Error((o=await y.text())!=null?o:"Failed to fetch the chat response.");if(!y.body)throw new Error("The response body is empty.");return this.processResponseStream(y.body)}},SR=class extends dHe{constructor(e={}){super(e)}
vendor: 4,153 bytes, line 157
157processResponseStream(e){return jie({stream:e,schema:QZe}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},Uue=class{constructor({generateId:e=Oie,id:t=e(),transport:r=new SR,messageMetadataSchema:n,dataPartSchemas:a,state:o,onError:i,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:d}){this.activeResponse=void 0,this.jobExecutor=new oHe,this.sendMessage=async(f,m)=>{var h,g,y,b;if(f==null){await this.makeRequest({trigger:"submit-message",messageId:(h=this.lastMessage)==null?void 0:h.id,...m});return}let w;if("text"in f||"files"in f?w={parts:[...Array.isArray(f.files)?f.files:await cHe(f.files),..."text"in f&&f.text!=null?[{type:"text",text:f.text}]:[]]}:w=f,f.messageId!=null){let S=this.state.messages.findIndex(x=>x.id===f.messageId);if(S===-1)throw new Error(`message with id ${f.messageId} not found`);if(this.state.messages[S].role!=="user")throw new Error(`message with id ${f.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,S+1),this.state.replaceMessage(S,{...w,id:f.messageId,role:(g=w.role)!=null?g:"user",metadata:f.metadata})}else this.state.pushMessage({...w,id:(y=w.id)!=null?y:this.generateId(),role:(b=w.role)!=null?b:"user",metadata:f.metadata});await this.makeRequest({trigger:"submit-message",messageId:f.messageId,...m})},this.regenerate=async({messageId:f,...m}={})=>{let h=f==null?this.state.messages.length-1:this.state.messages.findIndex(g=>g.id===f);if(h===-1)throw new Error(`message ${f} not found`);this.state.messages=this.state.messages.slice(0,this.messages[h].role==="assistant"?h:h+1),await this.makeRequest({trigger:"regenerate-message",messageId:f,...m})},this.resumeStream=async(f={})=>{await this.makeRequest({trigger:"resume-stream",...f})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:f,approved:m,reason:h,options:g})=>this.jobExecutor.run(async()=>{let y=this.state.messages,b=y[y.length-1],w=S=>is(S)&&S.state==="approval-requested"&&S.approval.id===f?{...S,state:"approval-responded",approval:{id:f,approved:m,reason:h}}:S;this.state.replaceMessage(y.length-1,{...b,parts:b.parts.map(w)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(w)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(S=>{var x;S&&this.makeRequest({trigger:"submit-message",messageId:(x=this.lastMessage)==null?void 0:x.id,...g})})}),this.addToolOutput=async({state:f="output-available",toolCallId:m,output:h,errorText:g,options:y})=>this.jobExecutor.run(async()=>{let b=this.state.messages,w=b[b.length-1],S=x=>is(x)&&x.toolCallId===m?{...x,state:f,output:h,errorText:g}:x;this.state.replaceMessage(b.length-1,{...w,parts:w.parts.map(S)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(S)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(x=>{var C;x&&this.makeRequest({trigger:"submit-message",messageId:(C=this.lastMessage)==null?void 0:C.id,...y})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var f;this.status!=="streaming"&&this.status!=="submitted"||(f=this.activeResponse)!=null&&f.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=a,this.state=o,this.onError=i,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=d}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}
157async makeRequest({trigger:e,metadata:t,headers:r,body:n,messageId:a}){var o,i,s;let l;if(e==="resume-stream")try{let h=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:n});if(h==null)return;l=h}catch(h){this.onError&&h instanceof Error&&this.onError(h),this.setStatus({status:"error",error:h});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,d=!1,f=!1,m=!1;try{let h={state:rHe({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};h.abortController.signal.addEventListener("abort",()=>{d=!0}),this.activeResponse=h;let g;e==="resume-stream"?g=l:g=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:h.abortController.signal,metadata:t,headers:r,body:n,trigger:e,messageId:a});let y=b=>this.jobExecutor.run(()=>b({state:h.state,write:()=>{var w;this.setStatus({status:"streaming"}),h.state.message.id===((w=this.lastMessage)==null?void 0:w.id)?this.state.replaceMessage(this.state.messages.length-1,h.state.message):this.state.pushMessage(h.state.message)}}));await aHe({stream:nHe({stream:g,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:y,onError:b=>{throw b}}),onError:b=>{throw b}}),this.setStatus({status:"ready"})}catch(h){if(d||h.name==="AbortError")return d=!0,this.setStatus({status:"ready"}),null;m=!0,h instanceof TypeError&&(h.message.toLowerCase().includes("fetch")||h.message.toLowerCase().includes("network"))&&(f=!0),this.onError&&h instanceof Error&&this.onError(h),this.setStatus({status:"error",error:h})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:d,isDisconnect:f,isError:m,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(h){console.error(h)}this.activeResponse=void 0}!m&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:r,body:n})}};function que({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((a,o,i)=>o.type==="step-start"?i:a,-1),n=t.parts.slice(r+1).filter(is).filter(a=>!a.providerExecuted);return n.filter(a=>a.state==="approval-responded").length>0&&n.every(a=>a.state==="output-available"||a.state==="output-error"||a.state==="approval-responded")}function Vue({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((a,o,i)=>o.type==="step-start"?i:a,-1),n=t.parts.slice(r+1).filter(is).filter(a=>!a.providerExecuted);return n.length>0&&n.every(a=>a.state==="output-available"||a.state==="output-error")}var Wue=H(Hue(),1);var Ny=H(ve(),1);var B4=H(ve(),1);var Gue=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},wr=(e,t,r)=>(Gue(e,t,"read from private field"),r?r.call(e):t.get(e)),ss=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Bu=(e,t,r,n)=>(Gue(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);function pHe(e,t){return t!=null?(0,Wue.default)(e,t):e}var Do,N4,z4,My,Ry,Dy,Qm,kR,IR,mHe=class{constructor(e=[]){ss(this,Do,void 0),ss(this,N4,"ready"),ss(this,z4,void 0),ss(this,My,new Set),ss(this,Ry,new Set),ss(this,Dy,new Set),this.pushMessage=t=>{Bu(this,Do,wr(this,Do).concat(t)),wr(this,Qm).call(this)},this.popMessage=()=>{Bu(this,Do,wr(this,Do).slice(0,-1)),wr(this,Qm).call(this)},this.replaceMessage=(t,r)=>{Bu(this,Do,[...wr(this,Do).slice(0,t),this.snapshot(r),...wr(this,Do).slice(t+1)]),wr(this,Qm).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let n=r?pHe(t,r):t;return wr(this,My).add(n),()=>{wr(this,My).delete(n)}},this["~registerStatusCallback"]=t=>(wr(this,Ry).add(t),()=>{wr(this,Ry).delete(t)}),this["~registerErrorCallback"]=t=>(wr(this,Dy).add(t),()=>{wr(this,Dy).delete(t)}),ss(this,Qm,()=>{wr(this,My).forEach(t=>t())}),ss(this,kR,()=>
157{wr(this,Ry).forEach(t=>t())}),ss(this,IR,()=>{wr(this,Dy).forEach(t=>t())}),Bu(this,Do,e)}get status(){return wr(this,N4)}set status(e){Bu(this,N4,e),wr(this,kR).call(this)}get error(){return wr(this,z4)}set error(e){Bu(this,z4,e),wr(this,IR).call(this)}get messages(){return wr(this,Do)}set messages(e){Bu(this,Do,[...e]),wr(this,Qm).call(this)}};Do=new WeakMap;N4=new WeakMap;z4=new WeakMap;My=new WeakMap;Ry=new WeakMap;Dy=new WeakMap;Qm=new WeakMap;kR=new WeakMap;IR=new WeakMap;var eh,j4=class extends Uue{constructor({messages:e,...t}){let r=new mHe(e);super({...t,state:r}),ss(this,eh,void 0),this["~registerMessagesCallback"]=(n,a)=>wr(this,eh)["~registerMessagesCallback"](n,a),this["~registerStatusCallback"]=n=>wr(this,eh)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>wr(this,eh)["~registerErrorCallback"](n),Bu(this,eh,r)}};eh=new WeakMap;function Kue({experimental_throttle:e,resume:t=!1,...r}={}){let n=(0,No.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(n.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let a={...r,onToolCall:m=>{var h,g;return(g=(h=n.current).onToolCall)==null?void 0:g.call(h,m)},onData:m=>{var h,g;return(g=(h=n.current).onData)==null?void 0:g.call(h,m)},onFinish:m=>{var h,g;return(g=(h=n.current).onFinish)==null?void 0:g.call(h,m)},onError:m=>{var h,g;return(g=(h=n.current).onError)==null?void 0:g.call(h,m)},sendAutomaticallyWhen:m=>{var h,g,y;return(y=(g=(h=n.current).sendAutomaticallyWhen)==null?void 0:g.call(h,m))!=null?y:!1}},o=(0,No.useRef)("chat"in r?r.chat:new j4(a));("chat"in r&&r.chat!==o.current||"id"in r&&o.current.id!==r.id)&&(o.current="chat"in r?r.chat:new j4(a));let s=(0,No.useCallback)(m=>o.current["~registerMessagesCallback"](m,e),[e,o.current.id]),l=(0,No.useSyncExternalStore)(s,()=>o.current.messages,()=>o.current.messages),u=(0,No.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),d=(0,No.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),f=(0,No.useCallback)(m=>{typeof m=="function"&&(m=m(o.current.messages)),o.current.messages=m},[o]);return(0,No.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:l,setMessages:f,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:d,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}function hHe(e){return e==null||e.trim().length===0}async function TR(e,t){if(hHe(e))throw new Error("Agent ID cannot be empty");let n=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,a=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"}}),o=a.headers.get("content-type")||"",i=await a.text().catch(()=>"");if(!a.ok)throw new Error(`Failed to create conversation: ${a.status} ${i||"Unknown error"}`);if(!o.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${o}. Response: ${i.substring(0,100)}`);try{return JSON.parse(i)}catch(s){throw new Error(`Failed to parse JSON response: ${s instanceof Error?s.message:"Unknown error"}. Response: ${i.substring(0,200)}`)}}function zy(e){if(!th(e))throw new Error("Parameter was not an error")}function th(e){return!!e&&typeof e=="object"&&gHe(e)==="[object Error]"||e instanceof Error}function gHe(e){return Object.prototype.toString.call(e)}var vHe="Layerr",yHe=vHe;function CR(){return yHe}function Jue(e){let t,r="";if(e.length===0)t={};else if(th(e[0]))t={cause:e[0]},r=e.slice(1).join(" ")||"";else if(e[0]&&typeof e[0]=="object")t=Object.assign({},e[0]),r=e.slice(1).join(" ")||"";else if(typeof e[0]=="string")t={},r=r=e.join(" ")||"";else throw new Error("Invalid arguments passed to Layerr");return{options:t,shortMessage:r}}
157var sl=class e extends Error{constructor(t,r){let n=[...arguments],{options:a,shortMessage:o}=Jue(n),i=o;if(a.cause&&(i=`${i}: ${a.cause.message}`),super(i),this.message=i,a.name&&typeof a.name=="string"?this.name=a.name:this.name=CR(),a.cause&&Object.defineProperty(this,"_cause",{value:a.cause}),Object.defineProperty(this,"_info",{value:{}}),a.info&&typeof a.info=="object"&&Object.assign(this._info,a.info),Error.captureStackTrace){let s=a.constructorOpt||this.constructor;Error.captureStackTrace(this,s)}}static cause(t){return zy(t),t._cause&&th(t._cause)?t._cause:null}static fullStack(t){zy(t);let r=e.cause(t);return r?`${t.stack} 158caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){zy(t);let r={},n=e.cause(t);return n&&Object.assign(r,e.info(n)),t._info&&Object.assign(r,t._info),r}toString(){let t=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(t=`${t}: ${this.message}`),t}};var Yue="0123456789ABCDEFGHJKMNPQRSTVWXYZ",By=32,Xue=0xffffffffffff,bHe=10,xHe=16,jy=Object.freeze({source:"ulid"});function wHe(e){let t=e||_He(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new sl({info:{code:"PRNG_DETECT",...jy}},"Failed to find a reliable PRNG")}function _He(){return IHe()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function SHe(e,t){let r="";for(;e>0;e--)r=THe(t)+r;return r}function kHe(e,t){if(isNaN(e))throw new sl({info:{code:"ENC_TIME_NAN",...jy}},`Time must be a number: ${e}`);if(e>Xue)throw new sl({info:{code:"ENC_TIME_SIZE_EXCEED",...jy}},`Cannot encode a time larger than ${Xue}: ${e}`);if(e<0)throw new sl({info:{code:"ENC_TIME_NEG",...jy}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new sl({info:{code:"ENC_TIME_TYPE",...jy}},`Time must be an integer: ${e}`);let r,n="";for(let a=t;a>0;a--)r=e%By,n=Yue.charAt(r)+n,e=(e-r)/By;return n}function IHe(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function THe(e){let t=Math.floor(e()*By);return t===By&&(t=By-1),Yue.charAt(t)}function F4(e,t){let r=t||wHe(),n=isNaN(e)?Date.now():e;return kHe(n,bHe)+SHe(xHe,r)}function CHe(e){if(e.length===0)return{history:e,messages:[]};let t=e.length-1,r=e[t];if(r==null)return{history:e,messages:[]};if(r.role==="user")return{history:e.slice(0,t),messages:[r]};if(r.role==="assistant"){let a=r.parts;if(a!=null&&a.length>0){let o=a[a.length-1];if(o!=null&&is(o)&&(o.state==="output-available"||o.state==="output-error"))return{history:e.slice(0,t),messages:[r]}}}return{history:e.slice(0,t),messages:[r]}}var PHe=6;function PR(e,t,r){let a=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,o=new j4({messages:[],transport:new SR({api:a,prepareSendMessagesRequest:i=>{let{history:s,messages:l}=CHe(i.messages),u=Math.max(0,PHe-l.length),d=u===0?[]:s.slice(-u);return{body:{messages:l,history:d}}}}),id:t,generateId:F4,sendAutomaticallyWhen:i=>!(!(Vue(i)||que(i))||o.error!=null)});return o}var FAt=H(ve());var bn=H(ve(),1);var ece=H(ve(),1);function Que(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function AR(...e){return t=>{let r=!1,n=e.map(a=>{let o=Que(a,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let a=0;a<n.length;a++){let o=n[a];typeof o=="function"?o():Que(e[a],null)}}}}function U4(...e){return ece.useCallback(AR(...e),e)}var q4=H(qe(),1);function ER(e){let t=AHe(e),r=bn.forwardRef((n,a)=>{let{children:o,...i}=n,s=bn.Children.toArray(o),l=s.find(LHe);if(l){let u=l.props.children,d=s.map(f=>f===l?bn.Children.count(u)>1?bn.Children.only(null):bn.isValidElement(u)?u.props.children:null:f);return(0,q4.jsx)(t,{...i,ref:a,children:bn.isValidElement(u)?bn.cloneElement(u,void 0,d):null})}return(0,q4.jsx)(t,{...i,ref:a,children:o})});return r.displayName=`${e}.Slot`,r}var V4=ER("Slot");function AHe(e){let t=bn.forwardRef((r,n)=>{let{children:a,...o}=r;
158if(bn.isValidElement(a)){let i=OHe(a),s=$He(o,a.props);return a.type!==bn.Fragment&&(s.ref=n?AR(n,i):i),bn.cloneElement(a,s)}return bn.Children.count(a)>1?bn.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var EHe=Symbol("radix.slottable");function LHe(e){return bn.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===EHe}function $He(e,t){let r={...t};for(let n in t){let a=e[n],o=t[n];/^on[A-Z]/.test(n)?a&&o?r[n]=(...s)=>{let l=o(...s);return a(...s),l}:a&&(r[n]=a):n==="style"?r[n]={...a,...o}:n==="className"&&(r[n]=[a,o].filter(Boolean).join(" "))}return{...e,...r}}function OHe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var tce=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rce=Rx,ll=(e,t)=>r=>{var n;if(t?.variants==null)return rce(e,r?.class,r?.className);let{variants:a,defaultVariants:o}=t,i=Object.keys(a).map(u=>{let d=r?.[u],f=o?.[u];if(d===null)return null;let m=tce(d)||tce(f);return a[u][m]}),s=r&&Object.entries(r).reduce((u,d)=>{let[f,m]=d;return m===void 0||(u[f]=m),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,d)=>{let{class:f,className:m,...h}=d;return Object.entries(h).every(g=>{let[y,b]=g;return Array.isArray(b)?b.includes({...o,...s}[y]):{...o,...s}[y]===b})?[...u,f,m]:u},[]);return rce(e,i,l,r?.class,r?.className)};var nce=H(qe()),MHe=ll("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function wd({className:e,variant:t,size:r,asChild:n=!1,...a}){return(0,nce.jsx)(n?V4:"button",{"data-slot":"button",className:et(MHe({variant:t,size:r,className:e})),...a})}var BHe=H(ve());var Nn=H(ve(),1);var RHe={damping:.7,stiffness:.05,mass:1.25},DHe=70,NHe=1e3/60,zHe=350,Z4=!1;globalThis.document?.addEventListener("mousedown",()=>{Z4=!0});globalThis.document?.addEventListener("mouseup",()=>{Z4=!1});globalThis.document?.addEventListener("click",()=>{Z4=!1});var oce=(e={})=>{let[t,r]=(0,Nn.useState)(!1),[n,a]=(0,Nn.useState)(e.initial!==!1),[o,i]=(0,Nn.useState)(!1),s=(0,Nn.useRef)(null);s.current=e;let l=(0,Nn.useCallback)(()=>{if(!Z4)return!1;let S=window.getSelection();if(!S||!S.rangeCount)return!1;let x=S.getRangeAt(0);return x.commonAncestorContainer.contains(b.current)||b.current?.contains(x.commonAncestorContainer)},[]),u=(0,Nn.useCallback)(S=>{f.isAtBottom=S,a(S)},[]),d=(0,Nn.useCallback)(S=>{f.escapedFromLock=S,r(S)},[]),f=(0,Nn.useMemo)(()=>{let S;return{escapedFromLock:t,isAtBottom:n,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return b.current?.scrollTop??0},set scrollTop(x){b.current&&(b.current.scrollTop=x,f.ignoreScrollToTop=b.current.scrollTop)},get targetScrollTop(){return!b.current||!w.current?0:b.current.scrollHeight-1-b.current.clientHeight},get calculatedTargetScrollTop(){if(!b.current||!w.current)return 0;let{targetScrollTop:x}=this;if(!e.targetScrollTop)return x;if(S?.targetScrollTop===x)return S.calculatedScrollTop;let C=Math.max(Math.min(e.targetScrollTop(x,{scrollElement:b.current,contentElement:w.current}),x),0);return S={targetScrollTop:x,calculatedScrollTop:C},requestAnimationFrame(()=>{S=void 0}),C},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=DHe}}},[]),m=(0,Nn.useCallback)((S={})=>{typeof S=="string"&&(S={animation:S}
158),S.preserveScrollPosition||u(!0);let x=Date.now()+(Number(S.wait)||0),C=$R(s.current,S.animation),{ignoreEscapes:I=!1}=S,A,O=f.calculatedTargetScrollTop;S.duration instanceof Promise?S.duration.finally(()=>{A=Date.now()}):A=x+(S.duration??0);let F=async()=>{let q=new Promise(requestAnimationFrame).then(()=>{if(!f.isAtBottom)return f.animation=void 0,!1;let{scrollTop:G}=f,J=performance.now(),Y=(J-(f.lastTick??J))/NHe;if(f.animation||(f.animation={behavior:C,promise:q,ignoreEscapes:I}),f.animation.behavior===C&&(f.lastTick=J),l()||x>Date.now())return F();if(G<Math.min(O,f.calculatedTargetScrollTop)){if(f.animation?.behavior===C){if(C==="instant")return f.scrollTop=f.calculatedTargetScrollTop,F();f.velocity=(C.damping*f.velocity+C.stiffness*f.scrollDifference)/C.mass,f.accumulated+=f.velocity*Y,f.scrollTop+=f.accumulated,f.scrollTop!==G&&(f.accumulated=0)}return F()}return A>Date.now()?(O=f.calculatedTargetScrollTop,F()):(f.animation=void 0,f.scrollTop<f.calculatedTargetScrollTop?m({animation:$R(s.current,s.current.resize),ignoreEscapes:I,duration:Math.max(0,A-Date.now())||void 0}):f.isAtBottom)});return q.then(G=>(requestAnimationFrame(()=>{f.animation||(f.lastTick=void 0,f.velocity=0)}),G))};return S.wait!==!0&&(f.animation=void 0),f.animation?.behavior===C?f.animation.promise:F()},[u,l,f]),h=(0,Nn.useCallback)(()=>{d(!0),u(!1)},[d,u]),g=(0,Nn.useCallback)(({target:S})=>{if(S!==b.current)return;let{scrollTop:x,ignoreScrollToTop:C}=f,{lastScrollTop:I=x}=f;f.lastScrollTop=x,f.ignoreScrollToTop=void 0,C&&C>x&&(I=C),i(f.isNearBottom),setTimeout(()=>{if(f.resizeDifference||x===C)return;if(l()){d(!0),u(!1);return}let A=x>I,O=x<I;if(f.animation?.ignoreEscapes){f.scrollTop=I;return}O&&(d(!0),u(!1)),A&&d(!1),!f.escapedFromLock&&f.isNearBottom&&u(!0)},1)},[d,u,l,f]),y=(0,Nn.useCallback)(({target:S,deltaY:x})=>{let C=S;for(;!["scroll","auto"].includes(getComputedStyle(C).overflow);){if(!C.parentElement)return;C=C.parentElement}C===b.current&&x<0&&b.current.scrollHeight>b.current.clientHeight&&!f.animation?.ignoreEscapes&&(d(!0),u(!1))},[d,u,f]),b=ace(S=>{b.current?.removeEventListener("scroll",g),b.current?.removeEventListener("wheel",y),S?.addEventListener("scroll",g,{passive:!0}),S?.addEventListener("wheel",y,{passive:!0})},[]),w=ace(S=>{if(f.resizeObserver?.disconnect(),!S)return;let x;f.resizeObserver=new ResizeObserver(([C])=>{let{height:I}=C.contentRect,A=I-(x??I);if(f.resizeDifference=A,f.scrollTop>f.targetScrollTop&&(f.scrollTop=f.targetScrollTop),i(f.isNearBottom),A>=0){let O=$R(s.current,x?s.current.resize:s.current.initial);m({animation:O,wait:!0,preserveScrollPosition:!0,duration:O==="instant"?void 0:zHe})}else f.isNearBottom&&(d(!1),u(!0));x=I,requestAnimationFrame(()=>{setTimeout(()=>{f.resizeDifference===A&&(f.resizeDifference=0)},1)})}),f.resizeObserver?.observe(S)},[]);return{contentRef:w,scrollRef:b,scrollToBottom:m,stopScroll:h,isAtBottom:n||o,isNearBottom:o,escapedFromLock:t,state:f}};function ace(e,t){let r=(0,Nn.useCallback)(n=>(r.current=n,e(n)),t);return r}var LR=new Map;function $R(...e){let t={...RHe},r=!1;for(let a of e){if(a==="instant"){r=!0;continue}typeof a=="object"&&(r=!1,t.damping=a.damping??t.damping,t.stiffness=a.stiffness??t.stiffness,t.mass=a.mass??t.mass)}let n=JSON.stringify(t);return LR.has(n)||LR.set(n,Object.freeze(t)),r?"instant":LR.get(n)}var _d=H(ve(),1),Da=H(ve(),1);var ice=(0,Da.createContext)(null),jHe=typeof window<"u"?Da.useLayoutEffect:Da.useEffect;function H4({instance:e,children:t,resize:r,initial:n,mass:a,damping:o,stiffness:i,targetScrollTop:s,contextRef:l,...u}){let d=(0,Da.useRef)(null),f=_d.useCallback((I,A)=>(C?.targetScrollTop??s)?.(I,A)??I,[s]),m=oce({mass:a,damping:o,stiffness:i,resize:r,initial:n,targetScrollTop:f}),{scrollRef:h,contentRef:g,scrollToBottom:y,stopScroll:b,isAtBottom:w,escapedFromLock:S,state:x}=e??m,C=(0,Da.useMemo)(()=>({scrollToBottom:y,stopScroll:b,scrollRef:h,isAtBottom:w,escapedFromLock:S,contentRef:g,state:x,get targetScrollTop(){return d.current},set targetScrollTop(I){d.current=I}}),[y,w,g,h,b,S,x]);return(0,Da.useImperativeHandle)(l,()=>C,[C]),jHe(()=>{h.current&&getComputedStyle(h.current).overflow==="visible"&&(h.current.style.overflow="auto")},[]),_d.createElement(ice.Provider,{value:C},_d.createElement("div",{...u},typeof t=="function"?t(C):t))}(function(e){function t({children:r,scrollClassName:n,...a}){let o=sce();return _d.createElement("div",{ref:o.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:n},_d.createElement("div",{...a,ref:o.contentRef},typeof r=="function"?r(o):r))}e.Content=t})(H4||(H4={}));function sce(){let e=(0,Da.useContext)(ice);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var G4=H(qe()),lce=({className:e,...t})=>(0,G4.jsx)(H4,{className:et("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t});var tEt=H(ve());var uce=H(ve(),1),FHe=H(Mx(),1);var cce=H(qe(),1),UHe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],W4=UHe.reduce((e,t)=>
vendor: 4,955 bytes, line 158
158{let r=ER(`Primitive.${t}`),n=uce.forwardRef((a,o)=>{let{asChild:i,...s}=a,l=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,cce.jsx)(l,{...s,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});var qHe=H(qe());var VHe=H(qe()),lEt=ll("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});var wEt=H(ve());var cEt=!!(typeof window<"u"&&window.document&&window.document.createElement);function dce(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}var ul=H(ve(),1),fce=H(qe(),1);function pce(e,t=[]){let r=[];function n(o,i){let s=ul.createContext(i),l=r.length;r=[...r,i];let u=f=>{let{scope:m,children:h,...g}=f,y=m?.[e]?.[l]||s,b=ul.useMemo(()=>g,Object.values(g));return(0,fce.jsx)(y.Provider,{value:b,children:h})};u.displayName=o+"Provider";function d(f,m){let h=m?.[e]?.[l]||s,g=ul.useContext(h);if(g)return g;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${o}\``)}return[u,d]}let a=()=>{let o=r.map(i=>ul.createContext(i));return function(s){let l=s?.[e]||o;return ul.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return a.scopeName=e,[n,ZHe(a,...t)]}function ZHe(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){let i=n.reduce((s,{useScope:l,scopeName:u})=>{let f=l(o)[`__scope${u}`];return{...s,...f}},{});return ul.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var OR=H(ve(),1);var mce=H(ve(),1),cl=globalThis?.document?mce.useLayoutEffect:()=>{};var HHe=OR[" useId ".trim().toString()]||(()=>{}),GHe=0;function hce(e){let[t,r]=OR.useState(HHe());return cl(()=>{e||r(n=>n??String(GHe++))},[e]),e||(t?`radix-${t}`:"")}var Na=H(ve(),1);var gce=H(ve(),1);function WHe(e,t){return gce.useReducer((r,n)=>t[r][n]??r,e)}var MR=e=>{let{present:t,children:r}=e,n=KHe(t),a=typeof r=="function"?r({present:n.isPresent}):Na.Children.only(r),o=U4(n.ref,JHe(a));return typeof r=="function"||n.isPresent?Na.cloneElement(a,{ref:o}):null};MR.displayName="Presence";function KHe(e){let[t,r]=Na.useState(),n=Na.useRef(null),a=Na.useRef(e),o=Na.useRef("none"),i=e?"mounted":"unmounted",[s,l]=WHe(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Na.useEffect(()=>{let u=K4(n.current);o.current=s==="mounted"?u:"none"},[s]),cl(()=>{let u=n.current,d=a.current;if(d!==e){let m=o.current,h=K4(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(d&&m!==h?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,l]),cl(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,f=h=>{let y=K4(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&y&&(l("ANIMATION_END"),!a.current)){let b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=h=>{h.target===t&&(o.current=K4(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Na.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}function K4(e){return e?.animationName||"none"}function JHe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var zo=H(ve(),1);var J4=H(ve(),1);var XHe=zo[" useInsertionEffect ".trim().toString()]||cl;function vce({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,i]=YHe({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:a;{let d=zo.useRef(e!==void 0);zo.useEffect(()=>{let f=d.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=s},[s,n])}let u=zo.useCallback(d=>
158{if(s){let f=QHe(d)?d(e):d;f!==e&&i.current?.(f)}else o(d)},[s,e,o,i]);return[l,u]}function YHe({defaultProp:e,onChange:t}){let[r,n]=zo.useState(e),a=zo.useRef(r),o=zo.useRef(t);return XHe(()=>{o.current=t},[t]),zo.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}function QHe(e){return typeof e=="function"}var yce=H(qe());var zn={carriageReturn:-5,lineFeed:-4,carriageReturnLineFeed:-3,horizontalTab:-2,virtualSpace:-1,eof:null,nul:0,soh:1,stx:2,etx:3,eot:4,enq:5,ack:6,bel:7,bs:8,ht:9,lf:10,vt:11,ff:12,cr:13,so:14,si:15,dle:16,dc1:17,dc2:18,dc3:19,dc4:20,nak:21,syn:22,etb:23,can:24,em:25,sub:26,esc:27,fs:28,gs:29,rs:30,us:31,space:32,exclamationMark:33,quotationMark:34,numberSign:35,dollarSign:36,percentSign:37,ampersand:38,apostrophe:39,leftParenthesis:40,rightParenthesis:41,asterisk:42,plusSign:43,comma:44,dash:45,dot:46,slash:47,digit0:48,digit1:49,digit2:50,digit3:51,digit4:52,digit5:53,digit6:54,digit7:55,digit8:56,digit9:57,colon:58,semicolon:59,lessThan:60,equalsTo:61,greaterThan:62,questionMark:63,atSign:64,uppercaseA:65,uppercaseB:66,uppercaseC:67,uppercaseD:68,uppercaseE:69,uppercaseF:70,uppercaseG:71,uppercaseH:72,uppercaseI:73,uppercaseJ:74,uppercaseK:75,uppercaseL:76,uppercaseM:77,uppercaseN:78,uppercaseO:79,uppercaseP:80,uppercaseQ:81,uppercaseR:82,uppercaseS:83,uppercaseT:84,uppercaseU:85,uppercaseV:86,uppercaseW:87,uppercaseX:88,uppercaseY:89,uppercaseZ:90,leftSquareBracket:91,backslash:92,rightSquareBracket:93,caret:94,underscore:95,graveAccent:96,lowercaseA:97,lowercaseB:98,lowercaseC:99,lowercaseD:100,lowercaseE:101,lowercaseF:102,lowercaseG:103,lowercaseH:104,lowercaseI:105,lowercaseJ:106,lowercaseK:107,lowercaseL:108,lowercaseM:109,lowercaseN:110,lowercaseO:111,lowercaseP:112,lowercaseQ:113,lowercaseR:114,lowercaseS:115,lowercaseT:116,lowercaseU:117,lowercaseV:118,lowercaseW:119,lowercaseX:120,lowercaseY:121,lowercaseZ:122,leftCurlyBrace:123,verticalBar:124,rightCurlyBrace:125,tilde:126,del:127,byteOrderMarker:65279,replacementCharacter:65533};var ls={attentionSideAfter:2,attentionSideBefore:1,atxHeadingOpeningFenceSizeMax:6,autolinkDomainSizeMax:63,autolinkSchemeSizeMax:32,cdataOpeningString:"CDATA[",characterGroupPunctuation:2,characterGroupWhitespace:1,characterReferenceDecimalSizeMax:7,characterReferenceHexadecimalSizeMax:6,characterReferenceNamedSizeMax:31,codeFencedSequenceSizeMin:3,contentTypeContent:"content",contentTypeDocument:"document",contentTypeFlow:"flow",contentTypeString:"string",contentTypeText:"text",hardBreakPrefixSizeMin:2,htmlBasic:6,htmlCdata:5,htmlComment:2,htmlComplete:7,htmlDeclaration:4,htmlInstruction:3,htmlRawSizeMax:8,htmlRaw:1,linkResourceDestinationBalanceMax:32,linkReferenceSizeMax:999,listItemValueSizeMax:10,numericBaseDecimal:10,numericBaseHexadecimal:16,tabSize:4,thematicBreakMarkerCountMin:3,v8MaxSafeChunkSize:1e4};var io={data:"data",whitespace:"whitespace",lineEnding:"lineEnding",lineEndingBlank:"lineEndingBlank",linePrefix:"linePrefix",lineSuffix:"lineSuffix",atxHeading:"atxHeading",atxHeadingSequence:"atxHeadingSequence",atxHeadingText:"atxHeadingText",autolink:"autolink",autolinkEmail:"autolinkEmail",autolinkMarker:"autolinkMarker",autolinkProtocol:"autolinkProtocol",characterEscape:"characterEscape",characterEscapeValue:"characterEscapeValue",characterReference:"characterReference",characterReferenceMarker:"characterReferenceMarker",characterReferenceMarkerNumeric:"characterReferenceMarkerNumeric",characterReferenceMarkerHexadecimal:"characterReferenceMarkerHexadecimal",characterReferenceValue:"characterReferenceValue",codeFenced:"codeFenced",codeFencedFence:"codeFencedFence",codeFencedFenceSequence:"codeFencedFenceSequence",codeFencedFenceInfo:"codeFencedFenceInfo",codeFencedFenceMeta:"codeFencedFenceMeta",codeFlowValue:"codeFlowValue",codeIndented:"codeIndented",codeText:"codeText",codeTextData:"codeTextData",codeTextPadding:"codeTextPadding",codeTextSequence:"codeTextSequence",content:"content",definition:"definition",definitionDestination:"definitionDestination",definitionDestinationLiteral:"definitionDestinationLiteral",definitionDestinationLiteralMarker:"definitionDestinationLiteralMarker",definitionDestinationRaw:"definitionDestinationRaw",definitionDestinationString:"definitionDestinationString",definitionLabel:"definitionLabel",definitionLabelMarker:"definitionLabelMarker",definitionLabelString:"definitionLabelString",definitionMarker:"definitionMarker",definitionTitle:"definitionTitle",definitionTitleMarker:"definitionTitleMarker",definitionTitleString:"definitionTitleString",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",escapeMarker:"escapeMarker",hardBreakEscape:"hardBreakEscape",hardBreakTrailing:"hardBreakTrailing",htmlFlow:"htmlFlow",htmlFlowData:"htmlFlowData",htmlText:"htmlText",htmlTextData:"htmlTextData",image:"image",label:"label",labelText:"labelText",labelLink:"labelLink",labelImage:"labelImage",labelMarker:"labelMarker",labelImageMarker:"labelImageMarker",labelEnd:"labelEnd",link:"link",paragraph:"paragraph",reference:"reference",referenceMarker:"referenceMarker",referenceString:"referenceString",resource:"resource",resourceDestination:"resourceDestination",resourceDestinationLiteral:"resourceDestinationLiteral",resourceDestinationLiteralMarker:"resourceDestinationLiteralMarker",resourceDestinationRaw:"resourceDestinationRaw",resourceDestinationString:"resourceDestinationString",resourceMarker:"resourceMarker",resourceTitle:"resourceTitle",resourceTitleMarker:"resourceTitleMarker",resourceTitleString:"resourceTitleString",setextHeading:"setextHeading",setextHeadingText:"setextHeadingText",setextHeadingLine:"setextHeadingLine",setextHeadingLineSequence:"setextHeadingLineSequence",strong:"strong",strongSequence:"strongSequence",strongText:"strongText",thematicBreak:"thematicBreak",thematicBreakSequence:"thematicBreakSequence",blockQuote:"blockQuote",blockQuotePrefix:"blockQuotePrefix",blockQuoteMarker:"blockQuoteMarker",blockQuotePrefixWhitespace:"blockQuotePrefixWhitespace",listOrdered:"listOrdered",listUnordered:"listUnordered",listItemIndent:"listItemIndent",listItemMarker:"listItemMarker",listItemPrefix:"listItemPrefix",listItemPrefixWhitespace:"listItemPrefixWhitespace",listItemValue:"listItemValue",chunkDocument:"chunkDocument",chunkContent:"chunkContent",chunkFlow:"chunkFlow",chunkText:"chunkText",chunkString:"chunkString"};var X4=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,23
vendor: 6,234 bytes, line 158
1580,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Y4=[12288,12288,65281,65376,65504,65510],Q4=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],ek=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Fy=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];var rh=(e,t)=>{let r=0,n=Math.floor(e.length/2)-1;for(;r<=n;){let a=Math.floor((r+n)/2),o=a*2;if(t<e[o])n=a-1;else if(t>e[o+1])r=a+1;else return!0}return!1};var eGe=X4[0],tGe=X4.at(-1),rGe=Y4[0],nGe=Y4.at(-1),aGe=Q4[0],oGe=Q4.at(-1),iGe=ek[0],sGe=ek.at(-1),lGe=Fy[0],uGe=Fy.at(-1),bce=19968,[cGe,dGe]=fGe(Fy);function fGe(e){let t=e[0],r=e[1];for(let n=0;n<e.length;n+=2){let a=e[n],o=e[n+1];if(bce>=a&&bce<=o)return[a,o];o-a>r-t&&(t=a,r=o)}return[t,r]}var xce=e=>e<eGe||e>tGe?!1:rh(X4,e),wce=e=>e<rGe||e>nGe?!1:rh(Y4,e),pGe=e=>e<aGe||e>oGe?!1:rh(Q4,e),mGe=e=>e<iGe||e>sGe?!1:rh(ek,e),_ce=e=>e>=cGe&&e<=dGe?!0:e<lGe||e>uGe?!1:rh(Fy,e);function Sce(e){return xce(e)?"ambiguous":wce(e)?"fullwidth":pGe(e)?"halfwidth":mGe(e)?"narrow":_ce(e)?"wide":"neutral"}function hGe(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function kce(e){return hGe(e),Sce(e)}function gGe(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Ice(e){if(!e||e<4352)return!1;switch(kce(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!gGe(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return/^\p{sc=Hangul}/u.test(String.fromCodePoint(e))}}function Tce(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function Cce(e){return e!==null&&e>=65024&&e<=65038}var Pce=Ece(/\p{P}|\p{S}/u),Ace=Ece(/\s/);function Ece(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function dl(e){return!!(e&ls.characterGroupWhitespace)}function Sd(e){return(e&va.cjkPunctuation)===ls.characterGroupPunctuation}function nh(e){return!!(e&va.cjk)}function RR(e){return e===va.ivs}function DR(e){return!!(e&va.cjkOrIvs)}function NR(e){return e===va.nonEmojiGeneralUseVS}function tk(e){return!!(e&va.spaceOrPunctuation)}var va;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(va||(va={}));function fl(e){if(e===zn.eof||Yz(e)||Ace(e))return ls.characterGroupWhitespace;let t=0;if(e>=4352){if(Cce(e))return va.nonEmojiGeneralUseVS;switch(Ice(e)){case null:return va.ivs;case!0:t|=va.cjk;break}}return Pce(e)&&(t|=ls.characterGroupPunctuation),t}function Uy(e,t,r){if(!NR(e))return e;let n=t(),a=fl(n);return!n||dl(a)?e:Tce(n,r)?va.cjkPunctuation:vGe(a)}function vGe(e){return e&~va.ivs}function qy(e){return!!(e&&e>=55296&&e<=56319)}function Vy(e){return!!(e&&e>=56320&&e<=57343)}function Zy(e,t,r){if(t._bufferIndex<2)return e;let n=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return n&&n>=65536?n:e}function Lce(e,t,r){let n=e>=65536?2:1;if(t._bufferIndex<1+n)return null;let a=t._bufferIndex-n-2,o=r({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-n}}
vendor: 9,485 bytes, line 158
158),i=o.charCodeAt(o.length-1);if(Number.isNaN(i))return null;if(o.length<2||i<56320||57343<i)return i;let s=o.codePointAt(0);return s&&s>=65536?s:i}var Hy=class{cachedValue=void 0;constructor(e,t,r){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return this.cachedValue===void 0&&(this.cachedValue=Lce(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function Gy(e,t,r){let n=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return n&&n>=65536?n:e}var rk={name:"attention",resolveAll:yGe,tokenize:bGe};function yGe(e,t){let r=-1,n,a,o,i,s,l,u,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let f={...e[n][1].end},m={...e[r][1].start};$ce(f,-l),$ce(m,l),i={type:l>1?io.strongSequence:io.emphasisSequence,start:f,end:{...e[n][1].end}},s={type:l>1?io.strongSequence:io.emphasisSequence,start:{...e[r][1].start},end:m},o={type:l>1?io.strongText:io.emphasisText,start:{...e[n][1].end},end:{...e[r][1].start}},a={type:l>1?io.strong:io.emphasis,start:{...i.start},end:{...s.end}},e[n][1].end={...i.start},e[r][1].start={...s.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=df(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=df(u,[["enter",a,t],["enter",i,t],["exit",i,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,u=df(u,Dx(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=df(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,u=df(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,cf(e,n-1,r-n+3,u),r=n+u.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function bGe(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:n,sliceSerialize:a,previous:o}=this,i=Vy(o)?Zy(o,n(),a):o,s=fl(i),l=new Hy(i,n(),a),u=Uy(s,l.value.bind(l),i),d;return f;function f(h){return h===zn.asterisk||zn.underscore,d=h,e.enter("attentionSequence"),m(h)}function m(h){if(h===d)return e.consume(h),m;let g=e.exit("attentionSequence"),y=fl(qy(h)?Gy(h,n(),a):h);let b=Sd(u),w=b||dl(u),S=Sd(y),x=S||dl(y),C=DR(u),I=!x||S&&(w||C)||r.includes(h),A=!w||b&&(x||nh(y))||r.includes(i);return g._open=!!(d===zn.asterisk?I:I&&(tk(u)||!A)),g._close=!!(d===zn.asterisk?A:A&&(tk(y)||!I)),t(h)}}function $ce(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function Oce(){return{text:{[zn.asterisk]:rk,[zn.underscore]:rk},insideSpan:{null:[rk]}}}function Mce(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(Oce())}function zR(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:a,resolveAll:n};return t==null&&(t=!0),{text:{[zn.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[zn.tilde]}};function n(o,i){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let l=s;for(;l--;)if(o[l][0]==="exit"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[l][1].end.offset-o[l][1].start.offset){o[s][1].type="strikethroughSequence",o[l][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},o[l][1].start),end:Object.assign({},o[s][1].end)},d={type:"strikethroughText",start:Object.assign({},o[l][1].end),end:Object.assign({},o[s][1].start)},f=[["enter",u,i],["enter",o[l][1],i],["exit",o[l][1],i],["enter",d,i]],m=i.parser.constructs.insideSpan.null;m&&cf(f,f.length,0,Dx(m,o.slice(l+1,s),i)),cf(f,f.length,0,[["exit",d,i],["enter",o[s][1],i],["exit",o[s][1],i],["exit",u,i]]),cf(o,l-1,s-l+3,f),s=l+f.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type=io.data);return o}function a(o,i,s){let{now:l,sliceSerialize:u,previous:d}=this,f=Vy(d)?Zy(d,l(),u):d,m=fl(f),h=new Hy(f,l(),u),g=Uy(m,h.value.bind(h),f),y=this.events,b=0;return w;function w(x){return zn.tilde,f===zn.tilde&&y[y.length-1][1].type!==io.characterEscape?s(x):(o.enter("strikethroughSequenceTemporary"),S(x))}function S(x){let C=fl(f);if(x===zn.tilde)return b>1?s(x):(o.consume(x),b++,S);if(b<2&&!t)return s(x);let I=o.exit("strikethroughSequenceTemporary"),A=fl(qy(x)?Gy(x,l(),u):x),O=Sd(g)||dl(g),F=Sd(A)||dl(A),q=nh(g)||RR(C);return I._open=!F||A===ls.attentionSideAfter&&(O||q),I._close=!O||C===ls.attentionSideAfter&&(F||nh(A)),i(x)}}}function Rce(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(zR(e))}var xGe=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),wGe=/^(https?:\/\/|mailto:|www\.)/i,_Ge=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},SGe=e=>{let t=0;for(let r of e){if(xGe.has(r))return t;t+=r.length}return null},kGe=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),IGe=e=>({type:"text",value:e}),TGe=()=>e=>{Nx(e,"link",(t,r,n)=>{if(!n||typeof r!="number"||!_Ge(t)||!wGe.test(t.url))return;let a=SGe(t.url);if(a===null||a===0)return;let o=t.url.slice(0,a),i=t.url.slice(a),s=kGe(o,t),l=IGe(i);return n.children.splice(r,1,s,l),r+1})};function CGe(){let e=[Mce],t=[TGe,Rce],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var Dce=CGe();var pr=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function PGe(e){return WR(e)}function WR(e){return Array.isArray(e)?AGe(e):e instanceof RegExp?e:typeof e=="object"?EGe(e):e}function AGe(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=WR(e[r]);return t}function EGe(e){let t={};for(let r in e)t[r]=WR(e[r]);return t}function Zce(e,...t){return t.forEach(r=>{for(let n in r)e[n]=r[n]}),e}function Hce(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Hce(e.substring(0,e.length-1)):e.substr(~t+1)}var jR=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,nk=class{static hasCaptures(e){return e===null?!1:(jR.lastIndex=0,jR.test(e))}static replaceCaptures(e,t,r){return e.replace(jR,(n,a,o,i)=>{let s=r[parseInt(a||o,10)];if(s){let l=t.substring(s.start,s.end);for(;l[0]===".";)l=l.substring(1);switch(i){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return n})}};function Gce(e,t){return e<t?-1:e>t?1:0}function Wce(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,n=t.length;if(r===n){for(let a=0;a<r;a++){let o=Gce(e[a],t[a]);if(o!==0)return o}return 0}return r-n}function Nce(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Kce(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Jce=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Jy=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(OGe(e),t)}static createFromParsedTheme(e,t){return RGe(e,t)}_cachedMatchRoot=new Jce(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(a=>LGe(e.parent,a.parentScopes));return n?new Xce(n.fontStyle,n.foreground,n.background):null}},BR=class ak{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let n of r)t=new ak(t,n);return t}static from(...t){let r=null;for(let n=0;n<t.length;n++)r=new ak(r,t[n]);return r}push(t){return new ak(this,t)}getSegments(){let t=this,r=[];for(;t;)r.push(t.scopeName),t=t.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){let r=[],n=this;for(;n&&n!==t;)r.push(n.scopeName),n=n.parent;return n===t?r.reverse():void 0}};function LGe(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let n=t[r],a=!1;if(n===">"){if(r===t.length-1)return!1;n=t[++r],a=!0}for(;e&&!$Ge(e.scopeName,n);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function $Ge(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Xce=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function OGe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],n=0;for(let a=0,o=t.length;a<o;a++){let i=t[a];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let f=i.scope;f=f.replace(/^[,]+/,""),f=f.replace(/[,]+$/,""),s=f.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let l=-1;if(typeof i.settings.fontStyle=="string"){l=0;let f=i.settings.fontStyle.split(" ");for(let m=0,h=f.length;m<h;m++)switch(f[m]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof i.settings.foreground=="string"&&Nce(i.settings.foreground)&&
vendor: 13,055 bytes, line 158
158(u=i.settings.foreground);let d=null;typeof i.settings.background=="string"&&Nce(i.settings.background)&&(d=i.settings.background);for(let f=0,m=s.length;f<m;f++){let g=s[f].trim().split(" "),y=g[g.length-1],b=null;g.length>1&&(b=g.slice(0,g.length-1),b.reverse()),r[n++]=new MGe(y,b,a,l,u,d)}}return r}var MGe=class{constructor(e,t,r,n,a,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=n,this.foreground=a,this.background=o}},jn=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(jn||{});function RGe(e,t){e.sort((l,u)=>{let d=Gce(l.scope,u.scope);return d!==0||(d=Wce(l.parentScopes,u.parentScopes),d!==0)?d:l.index-u.index});let r=0,n="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(r=l.fontStyle),l.foreground!==null&&(n=l.foreground),l.background!==null&&(a=l.background)}let o=new DGe(t),i=new Xce(r,o.getId(n),o.getId(a)),s=new zGe(new UR(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let d=e[l];s.insert(0,d.scope,d.parentScopes,d.fontStyle,o.getId(d.foreground),o.getId(d.background))}return new Jy(o,i,s)}var DGe=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,r=e.length;t<r;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},NGe=Object.freeze([]),UR=class Yce{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,n,a,o){this.scopeDepth=t,this.parentScopes=r||NGe,this.fontStyle=n,this.foreground=a,this.background=o}clone(){return new Yce(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let n=0,a=t.length;n<a;n++)r[n]=t[n].clone();return r}acceptOverwrite(t,r,n,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),n!==0&&(this.foreground=n),a!==0&&(this.background=a)}},zGe=class qR{constructor(t,r=[],n={}){this._mainRule=t,this._children=n,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let n=0,a=0;for(;t.parentScopes[n]===">"&&n++,r.parentScopes[a]===">"&&a++,!(n>=t.parentScopes.length||a>=r.parentScopes.length);){let o=r.parentScopes[a].length-t.parentScopes[n].length;if(o!==0)return o;n++,a++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let n=t.indexOf("."),a,o;if(n===-1?(a=t,o=""):(a=t.substring(0,n),o=t.substring(n+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(qR._cmpBySpecificity),r}insert(t,r,n,a,o,i){if(r===""){this._doInsertHere(t,n,a,o,i);return}let s=r.indexOf("."),l,u;s===-1?(l=r,u=""):(l=r.substring(0,s),u=r.substring(s+1));let d;this._children.hasOwnProperty(l)?d=this._children[l]:(d=new qR(this._mainRule.clone(),UR.cloneArr(this._rulesWithParentScopes)),this._children[l]=d),d.insert(t+1,u,n,a,o,i)}_doInsertHere(t,r,n,a,o){if(r===null){this._mainRule.acceptOverwrite(t,n,a,o);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let l=this._rulesWithParentScopes[i];if(Wce(l.parentScopes,r)===0){l.acceptOverwrite(t,n,a,o);return}}n===-1&&(n=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new UR(t,r,n,a,o))}},Id=class jo{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=jo.getLanguageId(t),n=jo.getTokenType(t),a=jo.getFontStyle(t),o=jo.getForeground(t),i=jo.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:a,foreground:o,background:i})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,r,n,a,o,i,s){let l=jo.getLanguageId(t),u=jo.getTokenType(t),d=jo.containsBalancedBrackets(t)?1:0,f=jo.getFontStyle(t),m=jo.getForeground(t),h=jo.getBackground(t);return r!==0&&(l=r),n!==8&&(u=n),a!==null&&(d=a?1:0),o!==-1&&(f=o),i!==0&&(m=i),s!==0&&(h=s),(l<<0|u<<8|d<<10|f<<11|m<<15|h<<24)>>>0}};function ik(e,t){let r=[],n=jGe(e),a=n.next();for(;a!==null;){let l=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=n.next()}let u=i();if(r.push({matcher:u,priority:l}),a!==",")break;a=n.next()}return r;function o(){if(a==="-"){a=n.next();let l=o();return u=>!!l&&!l(u)}if(a==="("){a=n.next();let l=s();return a===")"&&(a=n.next()),l}if(zce(a)){let l=[];do l.push(a),a=n.next();while(zce(a));return u=>t(l,u)}return null}function i(){let l=[],u=o();for(;u;)l.push(u),u=o();return d=>l.every(f=>f(d))}function s(){let l=[],u=i();for(;u&&(l.push(u),a==="|"||a===",");){do a=n.next();while(a==="|"||a===",");u=i()}return d=>l.some(f=>f(d))}}function zce(e){return!!e&&!!e.match(/[\w\.:]+/)}function jGe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let n=r[0];return r=t.exec(e),n}}}function Qce(e){typeof e.dispose=="function"&&e.dispose()}var Xy=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},BGe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},FGe=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},UGe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Xy(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new FGe;for(let r of e)qGe(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Xy){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function qGe(e,t,r,n){let a=r.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let o=r.lookup(t);e instanceof Xy?ok({baseGrammar:o,selfGrammar:a},n):VR(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},n);let i=r.injections(e.scopeName);if(i)for(let s of i)n.add(new Xy(s))}function VR(e,t,r){if(t.repository&&t.repository[e]){let n=t.repository[e];sk([n],t,r)}}function ok(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&sk(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&sk(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function sk(e,t,r){for(let n of e){if(r.visitedRule.has(n))continue;r.visitedRule.add(n);let a=n.repository?Zce({},t.repository,n.repository):t.repository;Array.isArray(n.patterns)&&sk(n.patterns,{...t,repository:a},r);let o=n.include;if(!o)continue;let i=ede(o);switch(i.kind){case 0:ok({...t,selfGrammar:t.baseGrammar},r);break;case 1:ok(t,r);break;case 2:VR(i.ruleName,{...t,repository:a},r);break;case 3:case 4:let s=i.scopeName===t.selfGrammar.scopeName?t.selfGrammar:i.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let l={baseGrammar:t.baseGrammar,selfGrammar:s,repository:a};i.kind===4?VR(i.ruleName,l,r):ok(l,r)}else i.kind===4?r.add(new BGe(i.scopeName,i.ruleName)):r.add(new Xy(i.scopeName));break}}}var VGe=class{kind=0},ZGe=class{kind=1},HGe=class{constructor(e){this.ruleName=e}kind=2},GGe=class{constructor(e){this.scopeName=e}kind=3},WGe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function ede(e){if(e==="$base")return new VGe;if(e==="$self")return new ZGe;let t=e.indexOf("#");if(t===-1)return new GGe(e);if(t===0)return new HGe(e.substring(1));{let r=e.substring(0,t),n=e.substring(t+1);return new WGe(r,n)}}var KGe=/\\(\d+)/,jce=/\\(\d+)/g;var JGe=-1,tde=-2;var eb=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,n){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=nk.hasCaptures(this._name),this._contentName=n||null,this._contentNameIsCapturing=nk.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Hce(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:nk.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:nk.replaceCaptures(this._contentName,e,t)}},XGe=class extends eb{retokenizeCapturedWithRuleId;constructor(e,t,r,n,a){super(e,t,r,n),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},YGe=class extends eb{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,null),this._match=new Yy(n,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qy,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bce=class extends eb{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a){super(e,t,r,n),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Qy,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ZR=class extends eb{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,n,a,o,i,s,l,u){super(e,t,r,n),this._begin=new Yy(a,this.id),this.beginCaptures=o,this._end=new Yy(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qy;for(let r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},lk=class extends eb{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,n,a,o,i,s,l){super(e,t,r,n),this._begin=new Yy(a,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=ne
vendor: 1,565 bytes, line 158
158w Yy(i,tde),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Qy;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Qy,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 20,935 bytes, lines 158-160
158},rde=class Kn{static createCaptureRule(t,r,n,a,o){return t.registerRule(i=>new XGe(r,i,n,a,o))}static getCompiledRuleId(t,r,n){return t.id||r.registerRule(a=>{if(t.id=a,t.match)return new YGe(t.$vscodeTextmateLocation,t.id,t.name,t.match,Kn._compileCaptures(t.captures,r,n));if(typeof t.begin>"u"){t.repository&&(n=Zce({},n,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Bce(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Kn._compilePatterns(o,r,n))}return t.while?new lk(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kn._compileCaptures(t.beginCaptures||t.captures,r,n),t.while,Kn._compileCaptures(t.whileCaptures||t.captures,r,n),Kn._compilePatterns(t.patterns,r,n)):new ZR(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Kn._compileCaptures(t.beginCaptures||t.captures,r,n),t.end,Kn._compileCaptures(t.endCaptures||t.captures,r,n),t.applyEndPatternLast,Kn._compilePatterns(t.patterns,r,n))}),t.id}static _compileCaptures(t,r,n){let a=[];if(t){let o=0;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let s=parseInt(i,10);s>o&&(o=s)}for(let i=0;i<=o;i++)a[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let s=parseInt(i,10),l=0;t[i].patterns&&(l=Kn.getCompiledRuleId(t[i],r,n)),a[s]=Kn.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,l)}}return a}static _compilePatterns(t,r,n){let a=[];if(t)for(let o=0,i=t.length;o<i;o++){let s=t[o],l=-1;if(s.include){let u=ede(s.include);switch(u.kind){case 0:case 1:l=Kn.getCompiledRuleId(n[s.include],r,n);break;case 2:let d=n[u.ruleName];d&&(l=Kn.getCompiledRuleId(d,r,n));break;case 3:case 4:let f=u.scopeName,m=u.kind===4?u.ruleName:null,h=r.getExternalGrammar(f,n);if(h)if(m){let g=h.repository[m];g&&(l=Kn.getCompiledRuleId(g,r,h.repository))}else l=Kn.getCompiledRuleId(h.repository.$self,r,h.repository);break}}else l=Kn.getCompiledRuleId(s,r,n);if(l!==-1){let u=r.getRule(l),d=!1;if((u instanceof Bce||u instanceof ZR||u instanceof lk)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;a.push(l)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Yy=class nde{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let n=t.length,a=0,o=[],i=!1;for(let s=0;s<n;s++)if(t.charAt(s)==="\\"&&s+1<n){let u=t.charAt(s+1);u==="z"?(o.push(t.substring(a,s)),o.push("$(?!\\n)(?<!\\n)"),a=s+2):(u==="A"||u==="G")&&(i=!0),s++}this.hasAnchor=i,a===0?this.source=t:(o.push(t.substring(a,n)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=KGe.test(this.source):this.hasBackReferences=!1}clone(){return new nde(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=r.map(a=>t.substring(a.start,a.end));return jce.lastIndex=0,this.source.replace(jce,(a,o)=>Kce(n[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],r=[],n=[],a=[],o,i,s,l;for(o=0,i=this.source.length;o<i;o++)s=this.source.charAt(o),t[o]=s,r[o]=s,n[o]=s,a[o]=s,s==="\\"&&o+1<i&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="\uFFFF",r[o+1]="\uFFFF",n[o+1]="A",a[o+1]="A"):l==="G"?(t[o+1]="\uFFFF",r[o+1]="G",n[o+1]="\uFFFF",a[o+1]="G"):(t[o+1]=l,r[o+1]=l,n[o+1]=l,a[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:n.join(""),A1_G1:a.join("")}}resolveAnchors(t,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Qy=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(r=>r.source);this._cached=new Fce(e,t,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,t,r){return this._hasAnchors?t?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,r){let n=this._items.map(a=>a.resolveAnchors(t,r));return new Fce(e,n,this._items.map(a=>a.ruleId))}},Fce=class{constructor(e,t,r){this.regExps=t,this.rules=r,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){let e=[];for(let t=0,r=this.rules.length;t<r;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(` 159`)}findNextMatchSync(e,t,r){let n=this.scanner.findNextMatchSync(e,t,r);return n?{ruleId:this.rules[n.index],captureIndices:n.captureIndices}:null}},FR=class{constructor(e,t){this.languageId=e,this.tokenType=t}},QGe=class HR{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new FR(t,8),this._embeddedLanguagesMatcher=new eWe(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?HR._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new FR(0,0);_getBasicScopeAttributes=new Jce(t=>{let r=this._scopeToLanguage(t),n=this._toStandardTokenType(t);return new FR(r,n)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(HR.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},eWe=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([r,n])=>Kce(r));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},ILt={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},ade=!1,Uce=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function ode(e,t,r,n,a,o,i,s){let l=t.content.length,u=!1,d=-1;if(i){let h=tWe(e,t,r,n,a,o);a=h.stack,n=h.linePos,r=h.isFirstLine,d=h.anchorPosition}let f=Date.now();for(;!u;){if(s!==0&&Date.now()-f>s)return new Uce(a,!0);m()}return new Uce(a,!1);function m(){let h=rWe(e,t,r,n,a,d);if(!h){o.produce(a,l),u=!0;return}let g=h.captureIndices,y=h.matchedRuleId,b=g&&g.length>0?g[0].end>n:!1;if(y===JGe){let w=a.getRule(e);o.produce(a,g[0].start),a=a.withContentNameScopesList(a.nameScopesList),Wy(e,t,r,a,o,w.endCaptures,g),o.produce(a,g[0].end);let S=a;if(a=a.parent,d=S.getAnchorPos(),!b&&S.getEnterPos()===n){a=S,o.produce(a,l),u=!0;return}}else{let w=e.getRule(y);o.produce(a,g[0].start);let S=a,x=w.getName(t.content,g),C=a.contentNameScopesList.pushAttributed(x,e);if(a=a.push(y,n,d,g[0].end===l,null,C,C),w instanceof ZR){let I=w;Wy(e,t,r,a,o,I.beginCaptures,g),o.produce(a,g[0].end),d=g[0].end;let A=I.getContentName(t.content,g),O=C.pushAttributed(A,e);if(a=a.withContentNameScopesList(O),I.endHasBackReferences&&(a=a.withEndRule(I.getEndWithResolvedBackReferences(t.content,g))),!b&&S.hasSameRuleAs(a)){a=a.pop(),o.produce(a,l),u=!0;return}}else if(w instanceof lk){let I=w;Wy(e,t,r,a,o,I.beginCaptures,g),o.produce(a,g[0].end),d=g[0].end;let A=I.getContentName(t.content,g),O=C.pushAttributed(A,e);if(a=a.withContentNameScopesList(O),I.whileHasBackReferences&&(a=a.withEndRule(I.getWhileWithResolvedBackReferences(t.content,g))),!b&&S.hasSameRuleAs(a)){a=a.pop(),o.produce(a,l),u=!0;return}}else if(Wy(e,t,r,a,o,w.captures,g),o.produce(a,g[0].end),a=a.pop(),!b){a=a.safePop(),o.produce(a,l),u=!0;return}}g[0].end>n&&(n=g[0].end,r=!1)}}function tWe(e,t,r,n,a,o){let i=a.beginRuleCapturedEOL?0:-1,s=[];for(let l=a;l;l=l.pop()){let u=l.getRule(e);u instanceof lk&&s.push({rule:u,stack:l})}for(let l=s.pop();l;l=s.pop()){let{ruleScanner:u,findOptions:d}=oWe(l.rule,e,l.stack.endRule,r,n===i),f=u.findNextMatchSync(t,n,d);if(f){if(f.ruleId!==tde){a=l.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(l.stack,f.captureIndices[0].start),Wy(e,t,r,l.stack,o,l.rule.whileCaptures,f.captureIndices),o.produce(l.stack,f.captureIndices[0].end),i=f.captureIndices[0].end,f.captureIndices[0].end>n&&(n=f.captureIndices[0].end,r=!1))}else{a=l.stack.pop();break}}return{stack:a,linePos:n,anchorPosition:i,isFirstLine:r}}function rWe(e,t,r,n,a,o){let i=nWe(e,t,r,n,a,o),s=e.getInjections();if(s.length===0)return i;let l=aWe(s,e,t,r,n,a,o);if(!l)return i;if(!i)return l;let u=i.captureIndices[0].start,d=l.captureIndices[0].start;return d<u||l.priorityMatch&&d===u?l:i}function nWe(e,t,r,n,a,o){let i=a.getRule(e),{ruleScanner:s,findOptions:l}=ide(i,e,a.endRule,r,n===o),u=s.findNextMatchSync(t,n,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function aWe(e,t,r,n,a,o,i){let s=Number.MAX_VALUE,l=null,u,d=0,f=o.contentNameScopesList.getScopeNames();for(let m=0,h=e.length;m<h;m++){let g=e[m];if(!g.matcher(f))continue;let y=t.getRule(g.ruleId),{ruleScanner:b,findOptions:w}=ide(y,t,null,n,a===i),S=b.findNextMatchSync(r,a,w);if(!S)continue;let x=S.captureIndices[0].start;if(!(x>=s)&&(s=x,l=S.captureIndices,u=S.ruleId,d=g.priority,s===a))break}return l?{priorityMatch:d===-1,captureIndices:l,matchedRuleId:u}:null}function ide(e,t,r,n,a){if(ade){let i=e.compile(t,r),s=sde(n,a);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileAG(t,r,n,a),findOptions:0}}function oWe(e,t,r,n,a){if(ade){let i=e.compileWhile(t,r),s=sde(n,a);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,n,a),findOptions:0}}function sde(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function Wy(e,t,r,n,a,o,i){if(o.length===0)return;let s=t.content,l=Math.min(o.length,i.length),u=[],d=i[0].end;for(let f=0;f<l;f++){let m=o[f];if(m===null)continue;let h=i[f];if(h.length===0)continue;if(h.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=h.start;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?a.produceFromScopes(u[u.length-1].scopes,h.start):a.produce(n,h.start),m.retokenizeCapturedWithRuleId){let y=m.getName(s,i),b=n.contentNameScopesList.pushAttributed(y,e),w=m.getContentName(s,i),S=b.pushAttributed(w,e),x=n.push(m.retokenizeCapturedWithRuleId,h.start,-1,!1,null,b,S),C=e.createOnigString(s.substring(0,h.end));ode(e,C,r&&h.start===0,h.start,x,a,!1,0),Qce(C);continue}let g=m.getName(s,i);if(g!==null){let b=(u.length>0?u[u.length-1].scopes:n.contentNameScopesList).pushAttributed(g,e);u.push(new iWe(b,h.end))}}for(;u.length>0;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var iWe=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function sWe(e,t,r,n,a,o,i,s){return new uWe(e,t,r,n,a,o,i,s)}function qce(e,t,r,n,a){let o=ik(t,uk),i=rde.getCompiledRuleId(r,n,a.repository);for(let s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:a,priority:s.priority})}function uk(e,t){if(t.length<e.length)return!1;let r=0;return e.every(n=>{for(let a=r;a<t.length;a++)if(lWe(t[a],n))return r=a+1,!0;return!1})}function lWe(e,t){if(!e)return!1;if(e===t)return!0;let r=t.length;return e.length>r&&e.substr(0,r)===t&&e[r]==="."}var uWe=class{constructor(e,t,r,n,a,o,i,s){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new QGe(r,n),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=Vce(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let l of Object.keys(a)){let u=ik(l,uk);for(let d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:a[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],r=this._rootScopeName,n=e.lookup(r);if(n){let a=n.injections;if(a)for(let i in a)qce(t,i,a[i],this,n);let o=this._grammarRepository.injections(r);o&&o.forEach(i=>{let s=this.getExternalGrammar(i);if(s){let l=s.injectionSelector;l&&qce(t,l,s,this,s)}})}return t.sort((a,o)=>a.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,r=e(t);return this._ruleId2desc[t]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=Vce(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let n=this._tokenize(e,t,!1,r);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(e,t,r=0){let n=this._tokenize(e,t,!0,r);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(e,t,r,n){this._rootId===-1&&(this._rootId=rde.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===GR.NULL){a=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),f=Id.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),m=this.getRule(this._rootId).getName(null,null),h;m?h=Ky.createRootAndLookUpScopeName(m,f,this):h=Ky.createRoot("unknown",f),t=new GR(null,this._rootId,-1,-1,!1,null,h,h)}else a=!1,t.reset();e=e+` 160`;let o=this.createOnigString(e),i=o.content.length,s=new dWe(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=ode(this,o,a,0,t,s,!0,n);return Qce(o),{lineLength:i,lineTokens:s,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Vce(e,t){return e=PGe(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ky=class us{constructor(t,r,n){this.parent=t,this.scopePath=r,this.tokenAttributes=n}static fromExtension(t,r){let n=t,a=t?.scopePath??null;for(let o of r)a=BR.push(a,o.scopeNames),n=new us(n,a,o.encodedTokenAttributes);return n}static createRoot(t,r){return new us(null,new BR(null,t),r)}static createRootAndLookUpScopeName(t,r,n){let a=n.getMetadataForScope(t),o=new BR(null,t),i=n.themeProvider.themeMatch(o),s=us.mergeAttributes(r,a,i);return new us(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return us.equals(this,t)}static equals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.scopeName!==r.scopeName||t.tokenAttributes!==r.tokenAttributes)return!1;t=t.parent,r=r.parent}while(!0)}static mergeAttributes(t,r,n){let a=-1,o=0,i=0;return n!==null&&(a=n.fontStyle,o=n.foregroundId,i=n.backgroundId),Id.set(t,r.languageId,r.tokenType,null,a,o,i)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return us._pushAttributed(this,t,r);let n=t.split(/ /g),a=this;for(let o of n)a=us._pushAttributed(a,o,r);return a}static _pushAttributed(t,r,n){let a=n.getMetadataForScope(r),o=t.scopePath.push(r),i=n.themeProvider.themeMatch(o),s=us.mergeAttributes(t.tokenAttributes,a,i);return new us(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],n=this;for(;n&&n!==t;)r.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===t?r.reverse():void 0}},GR=class kd{constructor(t,r,n,a,o,i,s,l){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new kd(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:kd._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Ky.equals(t.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(t,r){do{if(t===r||!t&&!r)return!0;if(!t||!r||t.depth!==r.depth||t.ruleId!==r.ruleId||t.endRule!==r.endRule)return!1;t=t.parent,r=r.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){kd._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,n,a,o,i,s){return new kd(this,t,r,n,a,o,i,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){let t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,r){return this.parent&&(r=this.parent._writeString(t,r)),t[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new kd(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let r=this;for(;r&&r._enterPos===t._enterPos;){if(r.ruleId===t.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,r){let n=Ky.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new kd(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,n,Ky.fromExtension(n,r.contentNameScopesList))}},cWe=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):ik(r,uk).map(n=>n.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>ik(r,uk).map(n=>n.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},dWe=class{constructor(e,t,r,n){this.balancedBracketSelectors=n,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>
vendor: 16,642 bytes, line 160
1600||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(o)&&(n=Id.set(n,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(o))}if(a&&(n=Id.set(n,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:r}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let r=new Uint32Array(this._binaryTokens.length);for(let n=0,a=this._binaryTokens.length;n<a;n++)r[n]=this._binaryTokens[n];return r}},fWe=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,r,n,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,sWe(e,o,t,r,n,a,this,this._onigLib))}return this._grammars.get(e)}},lde=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new fWe(Jy.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Jy.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new cWe(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,a){let o=new UGe(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(i=>this._loadSingleGrammar(i.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,n,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,a)}},ck=GR.NULL;function rb(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},n=typeof e=="string"?e:e.name;for(let[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[a]=o:a===n&&Object.assign(r,o);return r}function pl(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function pde(e){return Array.isArray(e)?e:[e]}async function KR(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function nb(e){return!e||["plaintext","txt","text","plain"].includes(e)}function mde(e){return e==="ansi"||nb(e)}function ab(e){return e==="none"}function hde(e){return ab(e)}function ah(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),n=0,a=[];for(let o=0;o<r.length;o+=2){let i=t?r[o]+(r[o+1]||""):r[o];a.push([i,n]),n+=r[o].length,n+=r[o+1]?.length||0}return a}var ude={light:"#333333",dark:"#bbbbbb"},cde={light:"#fffffe",dark:"#1e1e1e"},dde="__shiki_resolved";function dk(e){if(e?.[dde])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:r,fg:n}=t;if(!r||!n){let s=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;s?.settings?.foreground&&(n=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!n&&t?.colors?.["editor.foreground"]&&(n=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),n||(n=t.type==="light"?ude.light:ude.dark),r||(r=t.type==="light"?cde.light:cde.dark),t.fg=n,t.bg=r}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0,o=new Map;function i(s){if(o.has(s))return o.get(s);a+=1;let l=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?i(s):(o.set(s,l),l)}t.settings=t.settings.map(s=>{let l=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!l&&!u)return s;let d={...s,settings:{...s.settings}};if(l){let f=i(s.settings.foreground);t.colorReplacements[f]=s.settings.foreground,d.settings.foreground=f}if(u){let f=i(s.settings.background);t.colorReplacements[f]=s.settings.background,d.settings.background=f}return d});for(let s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){let l=i(t.colors[s]);t.colorReplacements[l]=t.colors[s],t.colors[s]=l}return Object.defineProperty(t,dde,{enumerable:!1,writable:!1,value:!0}),t}async function gde(e){return Array.from(new Set((await Promise.all(e.filter(t=>!mde(t)).map(async t=>await KR(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function vde(e){return(await Promise.all(e.map(async t=>hde(t)?null:dk(await KR(t))))).filter(t=>!!t)}function yde(e,t){if(!t)return e;if(t[e]){let r=new Set([e]);for(;t[e];){if(e=t[e],r.has(e))throw new pr(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var pWe=class extends lde{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,n={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=n,this._themes.map(a=>this.loadTheme(a)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=dk(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Jy.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=yde(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(a=>a.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let n=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(n.name=e.name,this._resolvedGrammars.set(e.name,n),e.aliases&&e.aliases.forEach(a=>{this._alias[a]=e.name}),this._loadedLanguagesCache=null,t.size)for(let a of t)this._resolvedGrammars.delete(a.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(a.scopeName),this._syncRegistry?._grammars?.delete(a.scopeName),this.loadLanguage(this._langMap.get(a.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let n of e)this.resolveEmbeddedLanguages(n);let t=Array.from(this._langGraph.entries()),r=t.filter(([n,a])=>!a);if(r.length){let n=t.filter(([a,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(i=>r.map(([s])=>s).includes(i)):!1).filter(a=>!r.includes(a));throw new pr(`Missing languages ${r.map(([a])=>`\`${a}\``).join(", ")}, required by ${n.map(([a])=>`\`${a}\``).join(", ")}`)}for(let[n,a]of t)this._resolver.addLanguage(a);for(let[n,a]of t)this.loadLanguage(a)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let r of t)this._langGraph.set(r,this._langMap.get(r))}},mWe=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},t.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),r=[];for(let n=1;n<=t.length;n++){let a=t.slice(0,n).join(".");r=[...r,...this._injections.get(a)||[]]}return r}},tb=0;function JR(e){tb+=1,e.warnings!==!1&&tb>=10&&tb%10===0&&console.warn(`[Shiki] ${tb} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new pr("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),n=(e.themes||[]).flat(1).map(dk),a=new pWe(new mWe(e.engine,r),n,r,e.langAlias),o;function i(S){return yde(S,e.langAlias)}function s(S){b();let x=a.getGrammar(typeof S=="string"?S:S.name);if(!x)throw new pr(`Language \`${S}\` not found, you may need to load it first`);return x}function l(S){if(S==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};b();let x=a.getTheme(S);if(!x)throw new pr(`Theme \`${S}\` not found, you may need to load it first`);return x}function u(S){b();let x=l(S);return o!==S&&(a.setTheme(x),o=S),{theme:x,colorMap:a.getColorMap()}}function d(){return b(),a.getLoadedThemes()}function f(){return b(),a.getLoadedLanguages()}function m(...S){b(),a.loadLanguages(S.flat(1))}async function h(...S){return m(await gde(S))}function g(...S){b();for(let x of S.flat(1))a.loadTheme(x)}async function y(...S){return b(),g(await vde(S))}function b(){if(t)throw new pr("Shiki instance has been disposed")}function w(){t||(t=!0,a.dispose(),tb-=1)}return{setTheme:u,getTheme:l,getLanguage:s,getLoadedThemes:d,getLoadedLanguages:f,resolveLangAlias:i,loadLanguage:h,loadLanguageSync:m,loadTheme:y,loadThemeSync:g,dispose:w,[Symbol.dispose]:w}}async function XR(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,n]=await Promise.all([vde(e.themes||[]),gde(e.langs||[]),e.engine]);return JR({...e,themes:t,langs:r,engine:n})}var bde=new WeakMap;function ob(e,t){bde.set(e,t)}function oh(e){return bde.get(e)}var fk=class xde{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,r){return new xde(Object.fromEntries(pde(r).map(n=>[n,ck])),t)}constructor(...t){if(t.length===2){let[r,n]=t;this.lang=n,this._stacks=r}else{let[r,n,a]=t;this.lang=n,this._stacks={[a]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return hWe(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function hWe(e){let t=[],r=new Set;function n(a){if(r.has(a))return;r.add(a);let o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&n(a.parent)}return n(e),t}function gWe(e,t){if(!(e instanceof fk))throw new pr("Invalid grammar state");return e.getInternalStack(t)}function YR(e,t,r={}){let{theme:n=e.getLoadedThemes()[0]}=r;if(nb(e.resolveLangAlias(r.lang||"text"))||ab(n))return ah(t).map(s=>[{content:s[0],offset:s[1]}]);let{theme:a,colorMap:o}=e.setTheme(n),i=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==i.name)throw new pr(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${i.name}"`);if(!r.grammarState.themes.includes(a.name))throw new pr(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${a.name}"`)}return _de(t,i,a,o,r)}function wde(...e){if(e.length===2)return oh(e[1]);let[t,r,n={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=n;if(nb(a)||ab(o))throw new pr("Plain language does not have grammar state");if(a==="ansi")throw new pr("ANSI language does not have grammar state");let{theme:i,colorMap:s}=t.setTheme(o),l=t.getLanguage(a);return new fk(QR(r,l,i,s,n).stateStack,l.name,i.name)}function _de(e,t,r,n,a){let o=QR(e,t,r,n,a),i=new fk(o.stateStack,t.name,r.name);return ob(o.tokens,i),o.tokens}function QR(e,t,r,n,a){let o=rb(r,a),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=a,l=ah(e),u=a.grammarState?gWe(a.grammarState,r.name)??ck:a.grammarContextCode!=null?QR(a.grammarContextCode,t,r,n,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:ck,d=[],f=[];for(let m=0,h=l.length;m<h;m++){let[g,y]=l[m];if(g===""){d=[],f.push([]);continue}if(i>0&&g.length>=i){d=[],f.push([{content:g,offset:y,color:"",fontStyle:0}]);continue}let b,w,S;a.includeExplanation&&(b=t.tokenizeLine(g,u,s),w=b.tokens,S=0);let x=t.tokenizeLine2(g,u,s),C=x.tokens.length/2;for(let I=0;I<C;I++){let A=x.tokens[2*I],O=I+1<C?x.tokens[2*I+2]:g.length;if(A===O)continue;let F=x.tokens[2*I+1],q=pl(n[Id.getForeground(F)],o),G=Id.getFontStyle(F),J={content:g.substring(A,O),offset:y+A,color:q,fontStyle:G};if(a.includeExplanation){let Y=[];if(a.includeExplanation!=="scopeName")for(let re of r.settings){let oe;switch(typeof re.scope){case"string":oe=re.scope.split(/,/).map($=>$.trim());break;case"object":oe=re.scope;break;default:continue}Y.push({settings:re,selectors:oe.map($=>$.split(/ /))})}J.explanation=[];let le=0;for(;A+le<O;){let re=w[S],oe=g.substring(re.startIndex,re.endIndex);le+=oe.length,J.explanation.push({content:oe,scopes:a.includeExplanation==="scopeName"?vWe(re.scopes):yWe(Y,re.scopes)}),S+=1}}d.push(J)}f.push(d),d=[],u=x.ruleStack}return{tokens:f,stateStack:u}}function vWe(e){return e.map(t=>({scopeName:t}))}function yWe(e,t){let r=[];for(let n=0,a=t.length;n<a;n++){let o=t[n];r[n]={scopeName:o,themeMatches:xWe(e,o,t.slice(0,n))}}return r}function fde(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function bWe(e,t,r){if(!fde(e[e.length-1],t))return!1;let n=e.length-2,a=r.length-1;for(;n>=0&&a>=0;)fde(e[n],r[a])&&(n-=1),a-=1;return n===-1}function xWe(e,t,r){let n=[];for(let{selectors:a,settings:o}of e)for(let i of a)if(bWe(i,t,r)){n.push(o);break}return n}function pk(e,t,r,n=YR){let a=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),o=a.map(u=>{let d=n(e,t,{...r,theme:u.theme});return{tokens:d,state:oh(d),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),i=wWe(...o.map(u=>u.tokens)),s=i[0].map((u,d)=>u.map((f,m)=>{let h={content:f.content,variants:{},offset:f.offset};return"includeExplanation"in r&&r.includeExplanation&&(h.explanation=f.explanation),i.forEach((g,y)=>{let{content:b,explanation:w,offset:S,...x}=g[d][m];h.variants[a[y].color]=x}),h})),l=o[0].state?new fk(Object.fromEntries(o.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),o[0].state.lang):void 0;return l&&ob(s,l),s}function wWe(...e){let t=e.map(()=>[]),r=e.length;for(let n=0;n<e[0].length;n++){let a=e.map(l=>l[n]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));let i=a.map(()=>
vendor: 1,962 bytes, line 160
1600),s=a.map(l=>l[0]);for(;s.every(l=>l);){let l=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){let d=s[u];d.content.length===l?(o[u].push(d),i[u]+=1,s[u]=a[u][i[u]]):(o[u].push({...d,content:d.content.slice(0,l)}),s[u]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}var _We=/["&'<>`]/g,SWe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kWe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,IWe=/[|\\{}()[\]^$+*?.]/g,Sde=new WeakMap;function kde(e,t){if(e=e.replace(t.subset?TWe(t.subset):_We,n),t.subset||t.escapeOnly)return e;return e.replace(SWe,r).replace(kWe,n);function r(a,o,i){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function n(a,o,i){return t.format(a.charCodeAt(0),i.charCodeAt(o+1),t)}}function TWe(e){let t=Sde.get(e);return t||(t=CWe(e),Sde.set(e,t)),t}function CWe(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(IWe,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var PWe=/[\dA-Fa-f]/;function Ide(e,t,r){let n="&#x"+e.toString(16).toUpperCase();return r&&t&&!PWe.test(String.fromCharCode(t))?n:n+";"}var AWe=/\d/;function Tde(e,t,r){let n="&#"+String(e);return r&&t&&!AWe.test(String.fromCharCode(t))?n:n+";"}var Cde=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
160sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var mk={nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",fnof:"\u0192",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",bull:"\u2022",hellip:"\u2026",prime:"\u2032",Prime:"\u2033",oline:"\u203E",frasl:"\u2044",weierp:"\u2118",image:"\u2111",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",quot:'"',amp:"&",lt:"<",gt:">",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",permil:"\u2030",lsaquo:"\u2039",rsaquo:"\u203A",euro:"\u20AC"};var Pde=["cent","copy","divide","gt","lt","not","para","times"];var Ade={}.hasOwnProperty,e9={},hk;for(hk in mk)Ade.call(mk,hk)&&(e9[mk[hk]]=hk);var EWe=/[^\dA-Za-z]/;function Ede(e,t,r,n){let a=String.fromCharCode(e);if(Ade.call(e9,a)){let o=e9[a],i="&"+o;return r&&Cde.includes(o)&&!Pde.includes(o)&&(!n||t&&t!==61&&EWe.test(String.fromCharCode(t)))?i:i+";"}return""}function Lde(e,t,r){let n=Ide(e,t,r.omitOptionalSemicolons),a;if((r.useNamedReferences||r.useShortestReferences)&&(a=Ede(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!a)&&r.useShortestReferences){let o=Tde(e,t,r.omitOptionalSemicolons);o.length<n.length&&(n=o)}return a&&(!r.useShortestReferences||a.length<n.length)?a:n}function ml(e,t){return kde(e,Object.assign({format:Lde},t))}var LWe=/^>|^->|<!--|-->|--!>|<!-$/g,$We=[">"],OWe=["<",">"];function $de(e,t,r,n){return n.settings.bogusComments?"<?"+ml(e.value,Object.assign({},n.settings.characterReferences,{subset:$We}))+">":"<!--"+e.value.replace(LWe,a)+"-->";function a(o){return ml(o,Object.assign({},n.settings.characterReferences,{subset:OWe}))}}function Ode(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}var Kr=Mde(1),t9=Mde(-1),MWe=[];function Mde(e){return t;function t(r,n,a){let o=r?r.children:MWe,i=(n||0)+e,s=o[i];if(!a)for(;s&&ff(s);)i+=e,s=o[i];return s}}var RWe={}.hasOwnProperty;function gk(e){return t;function t(r,n,a){return RWe.call(e,r.tagName)&&e[r.tagName](r,n,a)}}var ib=gk({body:NWe,caption:r9,colgroup:r9,dd:FWe,dt:BWe,head:r9,html:DWe,li:jWe,optgroup:UWe,option:qWe,p:zWe,rp:Rde,rt:Rde,tbody:ZWe,td:Dde,tfoot:HWe,th:Dde,thead:VWe,tr:GWe});function r9(e,t,r){let n=Kr(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ff(n.value.charAt(0)))}function DWe(e,t,r){let n=Kr(r,t);return!n||n.type!=="comment"}function NWe(e,t,r){let n=Kr(r,t);return!n||n.type!=="comment"}function zWe(e,t,r){let n=Kr(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function jWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&n.tagName==="li"}function BWe(e,t,r){let n=Kr(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function FWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function Rde(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function UWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function qWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function VWe(e,t,r){let n=Kr(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function ZWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function HWe(e,t,r){return!Kr(r,t)}function GWe(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function Dde(e,t,r){let n=Kr(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}var Nde=gk({body:JWe,colgroup:XWe,head:KWe,html:WWe,tbody:YWe});function WWe(e){let t=Kr(e,-1);return!t||t.type!=="comment"}function KWe(e){let t=new Set;for(let n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}let r=e.children[0];return!r||r.type==="element"}function JWe(e){let t=Kr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ff(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function XWe(e,t,r){let n=t9(r,t),a=Kr(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&ib(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function YWe(e,t,r){let n=t9(r,t),a=Kr(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&ib(n,r.children.indexOf(n),r)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}var vk={name:[[` 161\f\r &/=>`.split(""),` 162\f\r "&'/=>
vendor: 16,934 bytes, lines 162-168
162\``.split("")],[`\0 163\f\r "&'/<=>`.split(""),`\0 164\f\r "&'/<=>\``.split("")]],unquoted:[[` 165\f\r &>`.split(""),`\0 166\f\r "&'<=>\``.split("")],[`\0 167\f\r "&'<=>\``.split(""),`\0 168\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function zde(e,t,r,n){let a=n.schema,o=a.space==="svg"?!1:n.settings.omitOptionalTags,i=a.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase()),s=[],l;a.space==="html"&&e.tagName==="svg"&&(n.schema=zx);let u=QWe(n,e.properties),d=n.all(a.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=a,d&&(i=!1),(u||!o||!Nde(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),i&&(a.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(d),!i&&(!o||!ib(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function QWe(e,t){let r=[],n=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){let o=eKe(e,a,t[a]);o&&r.push(o)}}for(;++n<r.length;){let o=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&o!=='"'&&o!=="'"&&(r[n]+=" ")}return r.join("")}function eKe(e,t,r){let n=nj(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,i=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let l=ml(n.attribute,Object.assign({},e.settings.characterReferences,{subset:vk.name[a][o]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?ij:sj)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=ml(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vk.unquoted[a][o]}))),s!==r&&(e.settings.quoteSmart&&_T(r,i)>_T(r,e.alternative)&&(i=e.alternative),s=i+ml(r,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?vk.single:vk.double)[a][o],attribute:!0}))+i),l+(s&&"="+s))}var tKe=["<","&"];function yk(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ml(e.value,Object.assign({},n.settings.characterReferences,{subset:tKe}))}function jde(e,t,r,n){return n.settings.allowDangerousHtml?e.value:yk(e,t,r,n)}function Bde(e,t,r,n){return n.all(e)}var Fde=oj("type",{invalid:rKe,unknown:nKe,handlers:{comment:$de,doctype:Ode,element:zde,raw:jde,root:Bde,text:yk}});function rKe(e){throw new Error("Expected node, not `"+e+"`")}function nKe(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var aKe={},oKe={},iKe=[];function n9(e,t){let r=t||aKe,n=r.quote||'"',a=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:sKe,all:lKe,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||rj,characterReferences:r.characterReferences||oKe,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?zx:aj,quote:n,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function sKe(e,t,r){return Fde(e,t,r,this)}function lKe(e){let t=[],r=e&&e.children||iKe,n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}function Vde(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let r=Array.isArray(t)?t:t.split(/\s+/g);for(let n of r)n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}function uKe(e){let t=ah(e,!0).map(([a])=>a);function r(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,i=0;for(let s of t){if(o<s.length)break;o-=s.length,i++}return{line:i,character:o}}function n(a,o){let i=0;for(let s=0;s<a;s++)i+=t[s].length;return i+=o,i}return{lines:t,indexToPos:r,posToIndex:n}}var s9="light-dark()",cKe=["color","background-color"];function dKe(e,t){let r=0,n=[];for(let a of t)a>r&&n.push({...e,content:e.content.slice(r,a),offset:e.offset+r}),r=a;return r<e.content.length&&n.push({...e,content:e.content.slice(r),offset:e.offset+r}),n}function fKe(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((n,a)=>n-a);return r.length?e.map(n=>n.flatMap(a=>{let o=r.filter(i=>a.offset<i&&i<a.offset+a.content.length).map(i=>i-a.offset).sort((i,s)=>i-s);return o.length?dKe(a,o):a})):e}function pKe(e,t,r,n,a="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(d=>bk(e.variants[d])),s=new Set(i.flatMap(d=>Object.keys(d))),l={},u=(d,f)=>{let m=f==="color"?"":f==="background-color"?"-bg":`-${f}`;return r+t[d]+(f==="color"?"":m)};return i.forEach((d,f)=>{for(let m of s){let h=d[m]||"inherit";if(f===0&&n&&cKe.includes(m))if(n===s9&&i.length>1){let g=t.findIndex(b=>b==="light"),y=t.findIndex(b=>b==="dark");if(g===-1||y===-1)throw new pr('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[m]=`light-dark(${i[g][m]||"inherit"}, ${i[y][m]||"inherit"})`,a==="css-vars"&&(l[u(f,m)]=h)}else l[m]=h;else a==="css-vars"&&(l[u(f,m)]=h)}}),o.htmlStyle=l,o}function bk(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&jn.Italic&&(t["font-style"]="italic"),e.fontStyle&jn.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&jn.Underline&&r.push("underline"),e.fontStyle&jn.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function o9(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function mKe(){let e=new WeakMap;function t(r){if(!e.has(r.meta)){let o=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new pr(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...a.indexToPos(s),offset:s}}else{let l=a.lines[s.line];if(l===void 0)throw new pr(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);let u=s.character;if(u<0&&(u=l.length+u),u<0||u>l.length)throw new pr(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:u,offset:a.posToIndex(s.line,u)}}};var n=o;let a=uKe(r.source),i=(r.options.decorations||[]).map(s=>({...s,start:o(s.start),end:o(s.end)}));hKe(i),e.set(r.meta,{decorations:i,converter:a,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return fKe(r,t(this).decorations.flatMap(n=>[n.start.offset,n.end.offset]))},code(r){if(!this.options.decorations?.length)return;let n=t(this),a=Array.from(r.children).filter(d=>d.type==="element"&&d.tagName==="span");if(a.length!==n.converter.lines.length)throw new pr(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function o(d,f,m,h){let g=a[d],y="",b=-1,w=-1;if(f===0&&(b=0),m===0&&(w=0),m===Number.POSITIVE_INFINITY&&(w=g.children.length),b===-1||w===-1)for(let x=0;x<g.children.length;x++)y+=Zde(g.children[x]),b===-1&&y.length===f&&(b=x+1),w===-1&&y.length===m&&(w=x+1);if(b===-1)throw new pr(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(w===-1)throw new pr(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);let S=g.children.slice(b,w);if(!h.alwaysWrap&&S.length===g.children.length)s(g,h,"line");else if(!h.alwaysWrap&&S.length===1&&S[0].type==="element")s(S[0],h,"token");else{let x={type:"element",tagName:"span",properties:{},children:S};s(x,h,"wrapper"),g.children.splice(b,S.length,x)}}function i(d,f){a[d]=s(a[d],f,"line")}function s(d,f,m){let h=f.properties||{},g=f.transform||(y=>y);return d.tagName=f.tagName||"span",d.properties={...d.properties,...h,class:d.properties.class},f.properties?.class&&Vde(d,f.properties.class),d=g(d,m)||d,d}let l=[],u=n.decorations.sort((d,f)=>f.start.offset-d.start.offset||d.end.offset-f.end.offset);for(let d of u){let{start:f,end:m}=d;if(f.line===m.line)o(f.line,f.character,m.character,d);else if(f.line<m.line){o(f.line,f.character,Number.POSITIVE_INFINITY,d);for(let h=f.line+1;h<m.line;h++)l.unshift(()=>i(h,d));o(m.line,0,m.character,d)}}l.forEach(d=>d())}}}function hKe(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new pr(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let n=t+1;n<e.length;n++){let a=e[n],o=r.start.offset<=a.start.offset&&a.start.offset<r.end.offset,i=r.start.offset<a.end.offset&&a.end.offset<=r.end.offset,s=a.start.offset<=r.start.offset&&r.start.offset<a.end.offset,l=a.start.offset<r.end.offset&&r.end.offset<=a.end.offset;if(o||i||s||l){if(o&&i||s&&l||s&&r.start.offset===r.end.offset||i&&a.start.offset===a.end.offset)continue;throw new pr(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Zde(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Zde).join(""):""}var gKe=[mKe()];function xk(e){let t=vKe(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...gKe]}function vKe(e){let t=[],r=[],n=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":r.push(a);break;default:n.push(a)}return{pre:t,post:r,normal:n}}var Td=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],a9={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function yKe(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let n=e.indexOf("m",r);if(n!==-1)return{sequence:e.substring(r+2,n).split(";"),startPosition:r,position:n+1}}return{position:e.length}}function Ude(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(n=>Number.parseInt(n));return r.length!==3||r.some(n=>Number.isNaN(n))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function bKe(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let n=Number.parseInt(r);if(!Number.isNaN(n))if(n===0)t.push({type:"resetAll"});else if(n<=9)a9[n]&&t.push({type:"setDecoration",value:a9[n]});else if(n<=29){let a=a9[n-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(n<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Td[n-30]}});else if(n===38){let a=Ude(e);a&&t.push({type:"setForegroundColor",value:a})}else if(n===39)t.push({type:"resetForegroundColor"});else if(n<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Td[n-40]}});else if(n===48){let a=Ude(e);a&&t.push({type:"setBackgroundColor",value:a})}else n===49?t.push({type:"resetBackgroundColor"}):n===53?t.push({type:"setDecoration",value:"overline"}):n===55?t.push({type:"resetDecoration",value:"overline"}):n>=90&&n<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Td[n-90+8]}}):n>=100&&n<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Td[n-100+8]}})}return t}function xKe(){let e=null,t=null,r=new Set;return{parse(n){let a=[],o=0;do{let i=yKe(n,o),s=i.sequence?n.substring(o,i.startPosition):n.substring(o);if(s.length>0&&a.push({value:s,foreground:e,background:t,decorations:new Set(r)}),i.sequence){let l=bKe(i.sequence);for(let u of l)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(let u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}o=i.position}while(o<n.length);return a}}}var wKe={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _Ke(e=wKe){function t(s){return e[s]}function r(s){return`#${s.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let n;function a(){if(n)return n;n=[];for(let u=0;u<Td.length;u++)n.push(t(Td[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let d=0;d<6;d++)for(let f=0;f<6;f++)n.push(r([s[u],s[d],s[f]]));let l=8;for(let u=0;u<24;u++,l+=10)n.push(r([l,l,l]));return n}function o(s){return a()[s]}function i(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return o(s.index)}}return{value:i}}var SKe={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function kKe(e,t,r){let n=rb(e,r),a=ah(t),o=_Ke(Object.fromEntries(Td.map(s=>{let l=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[l]||SKe[s]]}))),i=xKe();return a.map(s=>i.parse(s[0]).map(l=>{let u,d;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,d=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,d=l.background?o.value(l.background):void 0),u=pl(u,n),d=pl(d,n),l.decorations.has("dim")&&(u=IKe(u));let f=jn.None;return l.decorations.has("bold")&&(f|=jn.Bold),l.decorations.has("italic")&&(f|=jn.Italic),l.decorations.has("underline")&&(f|=jn.Underline),l.decorations.has("strikethrough")&&(f|=jn.Strikethrough),{content:l.value,offset:s[1],color:u,bgColor:d,fontStyle:f}}))}function IKe(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let n=t[1];if(n.length===8){let a=Math.round(Number.parseInt(n.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${n.slice(0,6)}${a}`}else{if(n.length===6)return`#${n}80`;if(n.length===4){let a=n[0],o=n[1],i=n[2],s=n[3];return`#${a}${a}${o}${o}${i}${i}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(n.length===3){let a=n[0],o=n[1],i=n[2];return`#${a}${a}${o}${o}${i}${i}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function i9(e,t,r={}){let n=e.resolveLangAlias(r.lang||"text"),{theme:a=e.getLoadedThemes()[0]}=r;if(!nb(n)&&!ab(a)&&n==="ansi"){let{theme:o}=e.setTheme(a);return kKe(o,t,r)}return YR(e,t,r)}function wk(e,t,r){let n,a,o,i,s,l;if("themes"in r){let{defaultColor:u="light",cssVariablePrefix:d="--shiki-",colorsRendering:f="css-vars"}=r,m=Object.entries(r.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,S)=>w.color===u?-1:S.color===u?1:0);if(m.length===0)throw new pr("`themes` option must not be empty");let h=pk(e,t,r,i9);if(l=oh(h),u&&s9!==u&&!m.find(w=>w.color===u))throw new pr(`\`themes\` option must contain the defaultColor key \`${u}\``);let g=m.map(w=>e.getTheme(w.theme)),y=m.map(w=>w.color);o=h.map(w=>w.map(S=>pKe(S,y,d,u,f))),l&&ob(o,l);let b=m.map(w=>rb(w.theme,r));a=qde(m,g,b,d,u,"fg",f),n=qde(m,g,b,d,u,"bg",f),i=`shiki-themes ${g.map(w=>w.name).join(" ")}`,s=u?void 0:[a,n].join(";")}else if("theme"in r){let u=rb(r.theme,r);o=i9(e,t,r);let d=e.getTheme(r.theme);n=pl(d.bg,u),a=pl(d.fg,u),i=d.name,l=oh(o)}else throw new pr("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:n,themeName:i,rootStyle:s,grammarState:l}}function qde(e,t,r,n,a,o,i){return e.map((s,l)=>{let u=pl(t[l][o],r[l])||"inherit",d=`${n+s.color}${o==="bg"?"-bg":""}:${u}`;if(l===0&&a){if(a===s9&&e.length>1){let f=e.findIndex(h=>h.color==="light"),m=e.findIndex(h=>h.color==="dark");if(f===-1||m===-1)throw new pr('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${pl(t[f][o],r[f])||"inherit"}, ${pl(t[m][o],r[m])||"inherit"});${d}`}return u}return i==="css-vars"?d:null}).filter(s=>!!s).join(";")}function _k(e,t,r,n={meta:{},options:r,codeToHast:(a,o)=>_k(e,a,o),codeToTokens:(a,o)=>wk(e,a,o)}){let a=t;for(let g of xk(r))a=g.preprocess?.call(n,a,r)||a;let{tokens:o,fg:i,bg:s,themeName:l,rootStyle:u,grammarState:d}
168=wk(e,a,r),{mergeWhitespaces:f=!0,mergeSameStyleTokens:m=!1}=r;f===!0?o=CKe(o):f==="never"&&(o=PKe(o)),m&&(o=AKe(o));let h={...n,get source(){return a}};for(let g of xk(r))o=g.tokens?.call(h,o)||o;return TKe(o,{...r,fg:i,bg:s,themeName:l,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},h,d)}function TKe(e,t,r,n=oh(e)){let a=xk(t),o=[],i={type:"root",children:[]},{structure:s="classic",tabindex:l="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(u.tabindex=l.toString());for(let[y,b]of Object.entries(t.meta||{}))y.startsWith("_")||(u[y]=b);let d={type:"element",tagName:"pre",properties:u,children:[],data:t.data},f={type:"element",tagName:"code",properties:{},children:o},m=[],h={...r,structure:s,addClassToHast:Vde,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return d},get code(){return f},get lines(){return m}};if(e.forEach((y,b)=>{b&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` 169`}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},S=0;for(let x of y){let C={type:"element",tagName:"span",properties:{...x.htmlAttrs},children:[{type:"text",value:x.content}]},I=o9(x.htmlStyle||bk(x));I&&(C.properties.style=I);for(let A of a)C=A?.span?.call(h,C,b+1,S,w,x)||C;s==="inline"?i.children.push(C):s==="classic"&&w.children.push(C),S+=x.content.length}if(s==="classic"){for(let x of a)w=x?.line?.call(h,w,b+1)||w;m.push(w),o.push(w)}else s==="inline"&&m.push(w)}),s==="classic"){for(let y of a)f=y?.code?.call(h,f)||f;d.children.push(f);for(let y of a)d=y?.pre?.call(h,d)||d;i.children.push(d)}else if(s==="inline"){let y=[],b={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let S of i.children)S.type==="element"&&S.tagName==="br"?(y.push(b),b={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(S.type==="element"||S.type==="text")&&b.children.push(S);y.push(b);let w={type:"element",tagName:"code",properties:{},children:y};for(let S of a)w=S?.code?.call(h,w)||w;i.children=[];for(let S=0;S<w.children.length;S++){S>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});let x=w.children[S];x.type==="element"&&i.children.push(...x.children)}}let g=i;for(let y of a)g=y?.root?.call(h,g)||g;return n&&ob(g,n),g}function CKe(e){return e.map(t=>{let r=[],n="",a;return t.forEach((o,i)=>{let s=!(o.fontStyle&&(o.fontStyle&jn.Underline||o.fontStyle&jn.Strikethrough));s&&o.content.match(/^\s+$/)&&t[i+1]?(a===void 0&&(a=o.offset),n+=o.content):n?(s?r.push({...o,offset:a,content:n+o.content}):r.push({content:n,offset:a},o),a=void 0,n=""):r.push(o)}),r})}function PKe(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let n=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!n)return r;let[,a,o,i]=n;if(!a&&!i)return r;let s=[{...r,offset:r.offset+a.length,content:o}];return a&&s.unshift({content:a,offset:r.offset}),i&&s.push({content:i,offset:r.offset+a.length+o.length}),s}))}function AKe(e){return e.map(t=>{let r=[];for(let n of t){if(r.length===0){r.push({...n});continue}let a=r[r.length-1],o=o9(a.htmlStyle||bk(a)),i=o9(n.htmlStyle||bk(n)),s=a.fontStyle&&(a.fontStyle&jn.Underline||a.fontStyle&jn.Strikethrough),l=n.fontStyle&&(n.fontStyle&jn.Underline||n.fontStyle&jn.Strikethrough);!s&&!l&&o===i?a.content+=n.content:r.push({...n})}return r})}var EKe=n9;function LKe(e,t,r){let n={meta:{},options:r,codeToHast:(o,i)=>_k(e,o,i),codeToTokens:(o,i)=>wk(e,o,i)},a=EKe(_k(e,t,r,n));for(let o of xk(r))a=o.postprocess?.call(n,a,r)||a;return a}async function Hde(e){let t=await XR(e);return{getLastGrammarState:(...r)=>wde(t,...r),codeToTokensBase:(r,n)=>i9(t,r,n),codeToTokensWithThemes:(r,n)=>pk(t,r,n),codeToTokens:(r,n)=>wk(t,r,n),codeToHast:(r,n)=>_k(t,r,n),codeToHtml:(r,n)=>LKe(t,r,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var Gde=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:n,regexConstructor:a}=t;if(!a)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;let i=n?.get(o);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{let s=a(o);return n?.set(o,s),s}catch(s){if(n?.set(o,s),r)return null;throw s}})}findNextMatchSync(e,t,r){let n=typeof e=="string"?e:e.content,a=[];function o(i,s,l=0){return{index:i,captureIndices:s.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+l,end:u[1]+l,length:u[1]-u[0]})}}for(let i=0;i<this.regexps.length;i++){let s=this.regexps[i];if(s)try{s.lastIndex=t;let l=s.exec(n);if(!l)continue;if(l.index===t)return o(i,l,0);a.push([i,l,0])}catch(l){if(this.options.forgiving)continue;throw l}}if(a.length){let i=Math.min(...a.map(s=>s[1].index));for(let[s,l,u]of a)if(l.index===i)return o(s,l,u)}return null}};function Fu(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function Wde(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var sb=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),sn=String.raw;function hl(e,t){if(e==null)throw new Error(t??"Value expected");return e}var efe=sn`\[\^?`,tfe=`c.? | C(?:-.?)?|${sn`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${sn`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${sn`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${sn`o\{[^\}]*\}?`}|${sn`\d{1,3}`}`,u9=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Sk=new RegExp(sn` 170 \\ (?: 171 ${tfe} 172 | [gk]<[^>]*>? 173 | [gk]'[^']*'? 174 | . 175 ) 176 | \( (?: 177 \? (?: 178 [:=!>({] 179 | <[=!] 180 | <[^>]*> 181 | '[^']*' 182 | ~\|? 183 | #(?:[^)\\]|\\.?)* 184 | [^:)]*[:)] 185 )? 186 | \*[^\)]*\)? 187 )? 188 | (?:${u9.source})+ 189 | ${efe} 190 | . 191`.replace(/\s+/g,""),"gsu"),l9=new RegExp(sn` 192 \\ (?: 193 ${tfe} 194 | . 195 ) 196 | \[:(?:\^?\p{Alpha}+|\^):\] 197 | ${efe} 198 | && 199 | . 200`.replace(/\s+/g,""),"gsu");function rfe(e,t={}){let r={flags:"",...t,rules:{captureGroup:!1,singleline:!1,...t.rules}};if(typeof e!="string")throw new Error("String expected as pattern");let n=JKe(r.flags),a=[n.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return a.at(-1)},numOpenGroups:0,popModX(){a.pop()},pushModX(f){a.push(f)},replaceCurrentModX(f){a[a.length-1]=f},singleline:r.rules.singleline},i=[],s;for(Sk.lastIndex=0;s=Sk.exec(e);){let f=$Ke(o,e,s[0],Sk.lastIndex);f.tokens?i.push(...f.tokens):f.token&&i.push(f.token),f.lastIndex!==void 0&&(Sk.lastIndex=f.lastIndex)}let l=[],u=0;i.filter(f=>f.type==="GroupOpen").forEach(f=>{f.kind==="capturing"?f.number=++u:f.raw==="("&&l.push(f)}),u||l.forEach((f,m)=>{f.kind="capturing",f.number=m+1});let d=u||l.length;return{tokens:i.map(f=>f.type==="EscapedNumber"?YKe(f,d):f).flat(),flags:n}}function $Ke(e,t,r,n){let[a,o]=r;if(r==="["||r==="[^"){let i=OKe(t,r,n);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(a==="\\"){if("AbBGyYzZ".includes(o))return{token:Kde(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:qKe(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:afe(r)}}if(o==="K")return{token:ofe("keep",r)};if(o==="N"||o==="R")return{token:Cd("newline",r,{negate:o==="N"})};if(o==="O")return{token:Cd("any",r)};if(o==="X")return{token:Cd("text_segment",r)};let i=nfe(r,{inCharClass:!1}
vendor: 18,233 bytes, lines 200-201
200);return Array.isArray(i)?{tokens:i}:{token:i}}if(a==="("){if(o==="*")return{token:GKe(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[n]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:n+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:HKe(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:ih("group",r)};if(r==="(?>")return{token:ih("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:ih(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:ih("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:ih("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:BKe(r)}}if(e.getCurrentModX()){if(r==="#"){let i=t.indexOf(` 201`,n);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(r)){let i=/\s+/y;return i.lastIndex=n,{lastIndex:i.exec(t)?i.lastIndex:n}}}if(r===".")return{token:Cd("dot",r)};if(r==="^"||r==="$"){let i=e.singleline?{"^":sn`\A`,$:sn`\Z`}[r]:r;return{token:Kde(i,r)}}return r==="|"?{token:RKe(r)}:u9.test(r)?{tokens:QKe(r)}:{token:gl(Fu(r),r)}}function OKe(e,t,r){let n=[Jde(t[1]==="^",t)],a=1,o;for(l9.lastIndex=r;o=l9.exec(e);){let i=o[0];if(i[0]==="["&&i[1]!==":")a++,n.push(Jde(i[1]==="^",i));else if(i==="]"){if(n.at(-1).type==="CharacterClassOpen")n.push(gl(93,i));else if(a--,n.push(DKe(i)),!a)break}else{let s=MKe(i);Array.isArray(s)?n.push(...s):n.push(s)}}return{tokens:n,lastIndex:l9.lastIndex||e.length}}function MKe(e){if(e[0]==="\\")return nfe(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!sb.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Cd("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?NKe(e):e==="&&"?zKe(e):gl(Fu(e),e)}function nfe(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return ZKe(e);if("dDhHsSwW".includes(r))return WKe(e);if(e.startsWith(sn`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return KKe(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let n=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),a=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(n)),o=new TextEncoder;return[...a].map(i=>{let s=[...o.encode(i)].map(l=>`\\x${l.toString(16)}`).join("");return gl(Fu(i),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return gl(XKe(e),e);if(Xde.has(r))return gl(Xde.get(r),e);if(/\d/.test(r))return jKe(t,e);if(e==="\\")throw new Error(sn`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return gl(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function RKe(e){return{type:"Alternator",raw:e}}function Kde(e,t){return{type:"Assertion",kind:e,raw:t}}function afe(e){return{type:"Backreference",raw:e}}function gl(e,t){return{type:"Character",value:e,raw:t}}function DKe(e){return{type:"CharacterClassClose",raw:e}}function NKe(e){return{type:"CharacterClassHyphen",raw:e}}function zKe(e){return{type:"CharacterClassIntersector",raw:e}}function Jde(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Cd(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function ofe(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:hl(r.flags),raw:t}}function jKe(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function BKe(e){return{type:"GroupClose",raw:e}}function ih(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function FKe(e,t,r,n){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:n}}function UKe(e,t,r,n){return{type:"Quantifier",kind:e,min:t,max:r,raw:n}}function qKe(e){return{type:"Subroutine",raw:e}}var VKe=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),Xde=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function ZKe(e){let t=e[1]==="c"?e[2]:e[3];if(!t||!/[A-Za-z]/.test(t))throw new Error(`Unsupported control character "${e}"`);return gl(Fu(t.toUpperCase())-64,e)}function HKe(e,t){let{on:r,off:n}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;n??="";let a=(t.getCurrentModX()||r.includes("x"))&&!n.includes("x"),o=Qde(r),i=Qde(n),s={};if(o&&(s.enable=o),i&&(s.disable=i),e.endsWith(")"))return t.replaceCurrentModX(a),ofe("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(a),t.numOpenGroups++,ih("group",e,{...(o||i)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function GKe(e){let t=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!t)throw new Error(`Incomplete or invalid named callout "${e}"`);let{name:r,tag:n,args:a}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(n==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let o=a?a.split(",").filter(d=>d!=="").map(d=>/^[+-]?\d+$/.test(d)?+d:d):[],[i,s,l]=o,u=VKe.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof i=="string")throw new Error(`Named callout argument must be a number "${i}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(o.length===2&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${s}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof i=="number"||!/^[<>X]$/.test(i)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${i}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof i=="string"&&!/^[A-Za-z_]\w*$/.test(i))throw new Error(`Named callout argument one must be a tag or number "${i}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof l=="string"&&!/^[A-Za-z_]\w*$/.test(l))throw new Error(`Named callout argument three must be a tag or number "${l}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return FKe(u,n??null,a?.split(",")??null,e)}function Yde(e){let t=null,r,n;if(e[0]==="{"){let{minStr:a,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+a>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+a,n=o===void 0?+a:o===""?1/0:+o,r>n&&(t="possessive",[r,n]=[n,r]),e.endsWith("?")){if(t==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');t="lazy"}else t||(t="greedy")}else r=e[0]==="+"?1:0,n=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return UKe(t,r,n,e)}function WKe(e){let t=e[1].toLowerCase();return Cd({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function KKe(e){let{p:t,neg:r,value:n}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Cd("property",e,{value:n,negate:t==="P"&&!r||t==="p"&&!!r})}function Qde(e){let t={};return e.includes("i")&&(t.ignoreCase=!0),e.includes("m")&&(t.dotAll=!0),e.includes("x")&&(t.extended=!0),Object.keys(t).length?t:null}function JKe(e){let t={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){let n=e[r];if(!"imxDPSWy".includes(n))throw new Error(`Invalid flag "${n}"`);if(n==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');t.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}t[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[n]]=!0}return t}function XKe(e){if(/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e))throw new Error(`Incomplete or invalid escape "${e}"`);let t=e[2]==="{"?/^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex:e.slice(2);return parseInt(t,16)}function YKe(e,t){let{raw:r,inCharClass:n}=e,a=r.slice(1);if(!n&&(a!=="0"&&a.length===1||a[0]!=="0"&&+a<=t))return[afe(r)];let o=[],i=a.match(/^[0-7]+|\d/g);for(let s=0;s<i.length;s++){let l=i[s],u;if(s===0&&l!=="8"&&l!=="9"){if(u=parseInt(l,8),u>127)throw new Error(sn`Octal encoded byte above 177 unsupported "${r}"`)}else u=Fu(l);o.push(gl(u,(s===0?"\\":"")+l))}return o}function QKe(e){let t=[],r=new RegExp(u9,"gy"),n;for(;n=r.exec(e);){let a=n[0];if(a[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(a);if(o){let{min:i,max:s}=o.groups;if(+i>+s&&a.endsWith("?")){r.lastIndex--,t.push(Yde(a.slice(0,-1)));continue}}}t.push(Yde(a))}return t}function kk(e,t){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;let r=e.body[0];return!t||Object.keys(t).every(n=>t[n]===r[n])}function ife(e){return eJe.has(e.type)}var eJe=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Tk(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},n=rfe(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),a=(m,h)=>{let g=n.tokens[o.nextIndex];switch(o.parent=m,o.nextIndex++,g.type){case"Alternator":return vl();case"Assertion":return tJe(g);case"Backreference":return rJe(g,o);case"Character":return sh(g.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return nJe(g,o,h);case"CharacterClassOpen":return aJe(g,o,h);case"CharacterSet":return oJe(g,o);case"Directive":return dJe(g.kind,{flags:g.flags});case"GroupOpen":return iJe(g,o,h);case"NamedCallout":return pJe(g.kind,g.tag,g.arguments);case"Quantifier":return sJe(g,o);case"Subroutine":return lJe(g,o);default:throw new Error(`Unexpected token type "${g.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:n.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:a},i=hJe(fJe(n.flags)),s=i.body[0];for(;o.nextIndex<n.tokens.length;){let m=a(s,{});m.type==="Alternative"?(i.body.push(m),s=m):s.body.push(m)}let{capturingGroups:l,hasNumberedRef:u,namedGroupsByName:d,subroutines:f}=o;if(u&&d.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:m}of f)if(typeof m=="number"){if(m>l.length)throw new Error("Subroutine uses a group number that's not defined");m&&(l[m-1].isSubroutined=!0)}else if(d.has(m)){if(d.get(m).length>1)throw new Error(sn`Subroutine uses a duplicate group name "\g<${m}>"`);d.get(m)[0].isSubroutined=!0}else throw new Error(sn`Subroutine uses a group name that's not defined "\g<${m}>"`);return i}function tJe({kind:e}){return Ck(hl({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===sn`\B`||e===sn`\Y`})}function rJe({raw:e},t){let r=/^\\k[<']/.test(e),n=r?e.slice(3,-1):e.slice(1),a=(o,i=!1)=>{let s=t.capturingGroups.length,l=!1;if(o>s)if(t.skipBackrefValidation)l=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,Ik(i?s+1-o:o,{orphan:l})};if(r){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(n);if(o)return a(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(n))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(n))throw new Error(`Group name not defined to the left "${e}"`);return Ik(n)}return a(+n)}function nJe(e,t,r){let{tokens:n,walk:a}=t,o=t.parent,i=o.body.at(-1),s=n[t.nextIndex];if(!r.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let l=a(o,{...r,isCheckingRangeEnd:!0});if(i.type==="Character"&&l.type==="Character")return o.body.pop(),cJe(i,l);throw new Error("Invalid character class range")}return sh(Fu("-"))}function aJe({negate:e},t,r){let{tokens:n,walk:a}=t,o=n[t.nextIndex],i=[lb()],s=ufe(o);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")i.push(lb()),t.nextIndex++;else{let u=i.at(-1);u.body.push(a(u,r))}s=ufe(n[t.nextIndex],o)}let l=lb({negate:e});return i.length===1?l.body=i[0].body:(l.kind="intersection",l.body=i.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,l}function oJe({kind:e,negate:t,value:r},n){let{normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i}=n;if(e==="property"){let s=lh(r);if(sb.has(s)&&!i?.has(s))e="posix",r=s;else return Pd(r,{negate:t,normalizeUnknownPropertyNames:a,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?mJe(r,{negate:t}):Pk(e,{negate:t})}function iJe(e,t,r){let{tokens:n,capturingGroups:a,namedGroupsByName:o,skipLookbehindValidation:i,walk:s}=t,l=gJe(e),u=l.type==="AbsenceFunction",d=lfe(l),f=d&&l.negate;if(l.type==="CapturingGroup"&&(a.push(l),l.name&&Wde(o,l.name,[]).push(l)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let m=cfe(n[t.nextIndex]);for(;m.type!=="GroupClose";){if(m.type==="Alternator")l.body.push(vl()),t.nextIndex++;else{let h=l.body.at(-1),g=s(h,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||d,isInNegLookbehind:r.isInNegLookbehind||f});if(h.body.push(g),(d||r.isInLookbehind)&&!i){let y="Lookbehind includes a pattern not allowed by Oniguruma";if(f||r.isInNegLookbehind){if(sfe(g)||g.type==="CapturingGroup")throw new Error(y)}else if(sfe(g)||lfe(g)&&g.negate)throw new Error(y)}}m=cfe(n[t.nextIndex])}return t.nextIndex++,l}function sJe({kind:e,min:t,max:r},n){let a=n.parent,o=a.body.at(-1);if(!o||!ife(o))throw new Error("Quantifier requires a repeatable token");let i=d9(e,t,r,o);return a.body.pop(),i}function lJe({raw:e},t){let{capturingGroups:r,subroutines:n}=t,a=e.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(a);if(o){let s=+o.groups.num,l=r.length;if(t.hasNumberedRef=!0,a={"":s,"+":l+s,"-":l+1-s}[o.groups.sign],a<1)throw new Error("Invalid subroutine number")}else a==="0"&&(a=0);let i=f9(a);return n.push(i),i}function uJe(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:ub(t?.body)}}function vl(e){return{type:"Alternative",body:dfe(e?.body)}}function Ck(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function Ik(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function c9(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!vJe(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:ub(t?.body)}}function sh(e,t){let r={useLastValid:!1,...t};if(e>1114111){let n=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${n}}"`):new Error(`Invalid code point out of range in JS "\\x{${n}}"`)}return{type:"Character",value:e}}function lb(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:dfe(e?.body)}}function cJe(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Pk(e,t){let r=!!t?.negate,n={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(n.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(n.variableLength=!0),n}function dJe(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:hl(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function fJe(e){return{type:"Flags",...e}}function so(e){let t=e?.atomic,r=e?.flags;if(t&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...t&&{atomic:t},...r&&{flags:r},body:ub(e?.body)}}function Uu(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:ub(e?.body)}}function pJe(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function mJe(e,t){let r=!!t?.negate;if(!sb.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function d9(e,t,r,n){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:n}}function hJe(e,t){return{type:"Regex",body:ub(t?.body),flags:e}}function f9(e){return{type:"Subroutine",ref:e}}function Pd(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},n=r.unicodePropertyMap?.get(lh(e));
vendor: 4,331 bytes, line 201
201if(!n){if(r.normalizeUnknownPropertyNames)n=yJe(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(sn`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:n??e,negate:r.negate}}function gJe({flags:e,kind:t,name:r,negate:n,number:a}){switch(t){case"absence_repeater":return uJe("repeater");case"atomic":return so({atomic:!0});case"capturing":return c9(a,{name:r});case"group":return so({flags:e});case"lookahead":case"lookbehind":return Uu({behind:t==="lookbehind",negate:n});default:throw new Error(`Unexpected group kind "${t}"`)}}function ub(e){if(e===void 0)e=[vl()];else if(!Array.isArray(e)||!e.length||!e.every(t=>t.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function dfe(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(t=>!!t.type))throw new Error("Invalid body; expected array of nodes");return e}function sfe(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function lfe(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function vJe(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function yJe(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,t=>t[0].toUpperCase()+t.slice(1).toLowerCase())}function lh(e){return e.replace(/[- _]+/g,"").toLowerCase()}function ufe(e,t){return hl(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function cfe(e){return hl(e,"Unclosed group")}function Ad(e,t,r=null){function n(o,i){for(let s=0;s<o.length;s++){let l=a(o[s],i,s,o);s=Math.max(-1,s+l)}}function a(o,i=null,s=null,l=null){let u=0,d=!1,f={node:o,parent:i,key:s,container:l,root:e,remove(){Ak(l).splice(Math.max(0,uh(s)+u),1),u--,d=!0},removeAllNextSiblings(){return Ak(l).splice(uh(s)+1)},removeAllPrevSiblings(){let w=uh(s)+u;return u-=w,Ak(l).splice(0,Math.max(0,w))},replaceWith(w,S={}){let x=!!S.traverse;l?l[Math.max(0,uh(s)+u)]=w:hl(i,"Can't replace root node")[s]=w,x&&a(w,i,s,l),d=!0},replaceWithMultiple(w,S={}){let x=!!S.traverse;if(Ak(l).splice(Math.max(0,uh(s)+u),1,...w),u+=w.length-1,x){let C=0;for(let I=0;I<w.length;I++)C+=a(w[I],i,uh(s)+I+C,l)}d=!0},skip(){d=!0}},{type:m}=o,h=t["*"],g=t[m],y=typeof h=="function"?h:h?.enter,b=typeof g=="function"?g:g?.enter;if(y?.(f,r),b?.(f,r),!d)switch(m){case"AbsenceFunction":case"CapturingGroup":case"Group":n(o.body,o);break;case"Alternative":case"CharacterClass":n(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":a(o.min,o,"min"),a(o.max,o,"max");break;case"LookaroundAssertion":n(o.body,o);break;case"Quantifier":a(o.body,o,"body");break;case"Regex":n(o.body,o),a(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${m}"`)}return g?.exit?.(f,r),h?.exit?.(f,r),u}return a(e),e}function Ak(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function uh(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var ffe=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function pfe(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function mfe(e,t,r,n){return e.slice(0,t)+n+e.slice(t+r.length)}var za=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function cb(e,t,r,n){let a=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],i=0,s="";for(let l of e.matchAll(a)){let{0:u,groups:{$skip:d}}=l;if(!d&&(!n||n===za.DEFAULT==!i)){r instanceof Function?s+=r(l,{context:i?za.CHAR_CLASS:za.DEFAULT,negated:o[o.length-1]}):s+=r;continue}u[0]==="["?(i++,o.push(u[1]==="^")):u==="]"&&i&&(i--,o.pop()),s+=u}return s}function p9(e,t,r,n){cb(e,t,r,n)}function bJe(e,t,r=0,n){if(!new RegExp(t,"su").test(e))return null;let a=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");a.lastIndex=r;let o=0,i;for(;i=a.exec(e);){let{0:s,groups:{$skip:l}}=i;if(!l&&(!n||n===za.DEFAULT==!o))return i;s==="["?o++:s==="]"&&o&&o--,a.lastIndex==i.index&&a.lastIndex++}return null}function db(e,t,r){return!!bJe(e,t,0,r)}function hfe(e,t){let r=/\\?./gsu;r.lastIndex=t;let n=e.length,a=0,o=1,i;for(;i=r.exec(e);){let[s]=i;if(s==="[")a++;else if(a)s==="]"&&a--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){n=i.index;break}}return e.slice(t,n)}
vendor: 4,687 bytes, lines 201-216
201var gfe=new RegExp(String.raw`(?<noncapturingStart>${ffe})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function h9(e,t){let r=t?.hiddenCaptures??[],n=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};let a="(?>",o="(?:(?=(",i=[0],s=[],l=0,u=0,d=NaN,f;do{f=!1;let m=0,h=0,g=!1,y;for(gfe.lastIndex=Number.isNaN(d)?0:d+o.length;y=gfe.exec(e);){let{0:b,index:w,groups:{capturingStart:S,noncapturingStart:x}}=y;if(b==="[")m++;else if(m)b==="]"&&m--;else if(b===a&&!g)d=w,g=!0;else if(g&&x)h++;else if(S)g?h++:(l++,i.push(l+u));else if(b===")"&&g){if(!h){u++;let C=l+u;if(e=`${e.slice(0,d)}${o}${e.slice(d+a.length,w)}))<$$${C}>)${e.slice(w+1)}`,f=!0,s.push(C),pfe(r,C),n.size){let I=new Map;n.forEach((A,O)=>{I.set(O>=C?O+1:O,A.map(F=>F>=C?F+1:F))}),n=I}break}h--}}}while(f);return r.push(...s),e=cb(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:m,groups:{backrefNum:h,wrappedBackrefNum:g}})=>{if(h){let y=+h;if(y>i.length-1)throw new Error(`Backref "${m}" greater than number of captures`);return`\\${i[y]}`}return`\\${g}`},za.DEFAULT),{pattern:e,captureTransfers:n,hiddenCaptures:r}}var vfe=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,m9=new RegExp(String.raw` 202\\(?: \d+ 203 | c[A-Za-z] 204 | [gk]<[^>]+> 205 | [pPu]\{[^\}]+\} 206 | u[A-Fa-f\d]{4} 207 | x[A-Fa-f\d]{2} 208 ) 209| \((?: \? (?: [:=!>] 210 | <(?:[=!]|[^>]+>) 211 | [A-Za-z\-]+: 212 | \(DEFINE\) 213 ))? 214| (?<qBase>${vfe})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 215| \\?. 216`.replace(/\s+/g,""),"gsu");function g9(e){if(!new RegExp(`${vfe}\\+`).test(e))return{pattern:e};let t=[],r=null,n=null,a="",o=0,i;for(m9.lastIndex=0;i=m9.exec(e);){let{0:s,index:l,groups:{qBase:u,qMod:d,invalidQ:f}}=i;if(s==="[")o||(n=l),o++;else if(s==="]")o?o--:n=null;else if(!o)if(d==="+"&&a&&!a.startsWith("(")){if(f)throw new Error(`Invalid quantifier "${s}"`);let m=-1;if(/^\{\d+\}$/.test(u))e=mfe(e,l+u.length,d,"");else{if(a===")"||a==="]"){let h=a===")"?r:n;if(h===null)throw new Error(`Invalid unmatched "${a}"`);e=`${e.slice(0,h)}(?>${e.slice(h,l)}${u})${e.slice(l+s.length)}`}else e=`${e.slice(0,l-a.length)}(?>${a}${u})${e.slice(l+s.length)}`;m+=4}m9.lastIndex+=m}else s[0]==="("?t.push(l):s===")"&&(r=t.length?t.pop():null);a=s}return{pattern:e}}var Bo=String.raw,xJe=Bo`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,y9=Bo`\(\?R=(?<rDepth>[^\)]+)\)|${xJe}`,Ek=Bo`\(\?<(?![=!])(?<captureName>[^>]+)>`,_fe=Bo`${Ek}|(?<unnamed>\()(?!\?)`,Ed=new RegExp(Bo`${Ek}|${y9}|\(\?|\\?.`,"gsu"),v9="Cannot use multiple overlapping recursions";function Sfe(e,t){let{hiddenCaptures:r,mode:n}={hiddenCaptures:[],mode:"plugin",...t},a=t?.captureTransfers??new Map;if(!new RegExp(y9,"su").test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};if(n==="plugin"&&db(e,Bo`\(\?\(DEFINE\)`,za.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],i=db(e,Bo`\\[1-9]`,za.DEFAULT),s=new Map,l=[],u=!1,d=0,f=0,m;for(Ed.lastIndex=0;m=Ed.exec(e);){let{0:h,groups:{captureName:g,rDepth:y,gRNameOrNum:b,gRDepth:w}}=m;if(h==="[")d++;else if(d)h==="]"&&d--;else if(y){if(yfe(y),u)throw new Error(v9);if(i)throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let S=e.slice(0,m.index),x=e.slice(Ed.lastIndex);if(db(x,y9,za.DEFAULT))throw new Error(v9);let C=+y-1;e=bfe(S,x,C,!1,r,o,f),a=wfe(a,S,C,o.length,0,f);break}else if(b){yfe(w);let S=!1;for(let Y of l)if(Y.name===b||Y.num===+b){if(S=!0,Y.hasRecursedWithin)throw new Error(v9);break}if(!S)throw new Error(Bo`Recursive \g cannot be used outside the referenced group "${n==="external"?b:Bo`\g<${b}&R=${w}>`}"`);let x=s.get(b),C=hfe(e,x);if(i&&db(C,Bo`${Ek}|\((?!\?)`,za.DEFAULT))throw new Error(`${n==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let I=e.slice(x,m.index),A=C.slice(I.length+h.length),O=o.length,F=+w-1,q=bfe(I,A,F,!0,r,o,f);a=wfe(a,I,F,o.length-O,O,f);let G=e.slice(0,x),J=e.slice(x+C.length);e=`${G}${q}${J}`,Ed.lastIndex+=q.length-h.length-I.length-A.length,l.forEach(Y=>Y.hasRecursedWithin=!0),u=!0}else if(g)f++,s.set(String(f),Ed.lastIndex),s.set(g,Ed.lastIndex),l.push({num:f,name:g});else if(h[0]==="("){let S=h==="(";S&&(f++,s.set(String(f),Ed.lastIndex)),l.push(S?{num:f}:{})}else h===")"&&l.pop()}return r.push(...o),{pattern:e,captureTransfers:a,hiddenCaptures:r}}function yfe(e){let t=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(t);if(e=+e,e<2||e>100)throw new Error(t)}function bfe(e,t,r,n,a,o,i){let s=new Set;n&&p9(e+t,Ek,({groups:{captureName:u}})=>{s.add(u)},za.DEFAULT);let l=[r,n?s:null,a,o,i];return`${e}${xfe(`(?:${e}`,"forward",...l)}
216(?:)${xfe(`${t})`,"backward",...l)}${t}`}function xfe(e,t,r,n,a,o,i){let l=d=>t==="forward"?d+2:r-d+2-1,u="";for(let d=0;d<r;d++){let f=l(d);u+=cb(e,Bo`${_fe}|\\k<(?<backref>[^>]+)>`,({0:m,groups:{captureName:h,unnamed:g,backref:y}})=>{if(y&&n&&!n.has(y))return m;let b=`_$${f}`;if(g||h){let w=i+o.length+1;return o.push(w),wJe(a,w),g?m:`(?<${h}${b}>`}return Bo`\k<${y}${b}>`},za.DEFAULT)}return u}function wJe(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function wfe(e,t,r,n,a,o){if(e.size&&n){let i=0;p9(t,_fe,()=>i++,za.DEFAULT);let s=o-i+a,l=new Map;return e.forEach((u,d)=>{let f=(n-i*r)/r,m=i*r,h=d>s+i?d+n:d,g=[];for(let y of u)if(y<=s)g.push(y);else if(y>s+i+f)g.push(y+n);else if(y<=s+i)for(let b=0;b<=r;b++)g.push(y+i*b);else for(let b=0;b<=r;b++)g.push(y+m+f*b);l.set(h,g)}),l}return e}var xn=String.fromCodePoint,xt=String.raw,Si={},$k=globalThis.RegExp;Si.flagGroups=(()=>{try{new $k("(?i:)")}catch{return!1}return!0})();Si.unicodeSets=(()=>{try{new $k("[[]]","v")}catch{return!1}return!0})();Si.bugFlagVLiteralHyphenIsRange=Si.unicodeSets?(()=>{try{new $k(xt`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Si.bugNestedClassIgnoresNegation=Si.unicodeSets&&new $k("[[^a]]","v").test("a");function Lk(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function fb(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function S9(e,t){return kfe[e]>=kfe[t]}function _Je(e,t){if(e==null)throw new Error(t??"Value expected");return e}var kfe={ES2025:2025,ES2024:2024,ES2018:2018},SJe={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function Afe(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,282 bytes, lines 216-298
216if(e.target!==void 0&&!SJe[e.target])throw new Error(`Unexpected target "${e.target}"`);let t={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return t.target==="auto"&&(t.target=Si.flagGroups?"ES2025":Si.unicodeSets?"ES2024":"ES2018"),t}var kJe="[ -\r ]",IJe=new Set([xn(304),xn(305)]),yl=xt`[\p{L}\p{M}\p{N}\p{Pc}]`;function Efe(e){if(IJe.has(e))return[e];let t=new Set,r=e.toLowerCase(),n=r.toUpperCase(),a=PJe.get(r),o=TJe.get(r),i=CJe.get(r);return[...n].length===1&&t.add(n),i&&t.add(i),a&&t.add(a),t.add(r),o&&t.add(o),[...t]}var I9=new Map(`C Other 217Cc Control cntrl 218Cf Format 219Cn Unassigned 220Co Private_Use 221Cs Surrogate 222L Letter 223LC Cased_Letter 224Ll Lowercase_Letter 225Lm Modifier_Letter 226Lo Other_Letter 227Lt Titlecase_Letter 228Lu Uppercase_Letter 229M Mark Combining_Mark 230Mc Spacing_Mark 231Me Enclosing_Mark 232Mn Nonspacing_Mark 233N Number 234Nd Decimal_Number digit 235Nl Letter_Number 236No Other_Number 237P Punctuation punct 238Pc Connector_Punctuation 239Pd Dash_Punctuation 240Pe Close_Punctuation 241Pf Final_Punctuation 242Pi Initial_Punctuation 243Po Other_Punctuation 244Ps Open_Punctuation 245S Symbol 246Sc Currency_Symbol 247Sk Modifier_Symbol 248Sm Math_Symbol 249So Other_Symbol 250Z Separator 251Zl Line_Separator 252Zp Paragraph_Separator 253Zs Space_Separator 254ASCII 255ASCII_Hex_Digit AHex 256Alphabetic Alpha 257Any 258Assigned 259Bidi_Control Bidi_C 260Bidi_Mirrored Bidi_M 261Case_Ignorable CI 262Cased 263Changes_When_Casefolded CWCF 264Changes_When_Casemapped CWCM 265Changes_When_Lowercased CWL 266Changes_When_NFKC_Casefolded CWKCF 267Changes_When_Titlecased CWT 268Changes_When_Uppercased CWU 269Dash 270Default_Ignorable_Code_Point DI 271Deprecated Dep 272Diacritic Dia 273Emoji 274Emoji_Component EComp 275Emoji_Modifier EMod 276Emoji_Modifier_Base EBase 277Emoji_Presentation EPres 278Extended_Pictographic ExtPict 279Extender Ext 280Grapheme_Base Gr_Base 281Grapheme_Extend Gr_Ext 282Hex_Digit Hex 283IDS_Binary_Operator IDSB 284IDS_Trinary_Operator IDST 285ID_Continue IDC 286ID_Start IDS 287Ideographic Ideo 288Join_Control Join_C 289Logical_Order_Exception LOE 290Lowercase Lower 291Math 292Noncharacter_Code_Point NChar 293Pattern_Syntax Pat_Syn 294Pattern_White_Space Pat_WS 295Quotation_Mark QMark 296Radical 297Regional_Indicator RI 298Sentence_Terminal STerm
299Soft_Dotted SD 300Terminal_Punctuation Term 301Unified_Ideograph UIdeo 302Uppercase Upper 303Variation_Selector VS 304White_Space space 305XID_Continue XIDC 306XID_Start XIDS`.split(/\s/).map(e=>[lh(e),e])),TJe=new Map([["s",xn(383)],[xn(383),"s"]]),CJe=new Map([[xn(223),xn(7838)],[xn(107),xn(8490)],[xn(229),xn(8491)],[xn(969),xn(8486)]]),PJe=new Map([qu(453),qu(456),qu(459),qu(498),...b9(8072,8079),...b9(8088,8095),...b9(8104,8111),qu(8124),qu(8140),qu(8188)]),AJe=new Map([["alnum",xt`[\p{Alpha}\p{Nd}]`],["alpha",xt`\p{Alpha}`],["ascii",xt`\p{ASCII}`],["blank",xt`[\p{Zs}\t]`],["cntrl",xt`\p{Cc}`],["digit",xt`\p{Nd}`],["graph",xt`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",xt`\p{Lower}`],["print",xt`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",xt`[\p{P}\p{S}]`],["space",xt`\p{space}`],["upper",xt`\p{Upper}`],["word",xt`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",xt`\p{AHex}`]]);function EJe(e,t){let r=[];for(let n=e;n<=t;n++)r.push(n);return r}function qu(e){let t=xn(e);return[t.toLowerCase(),t]}function b9(e,t){return EJe(e,t).map(r=>qu(r))}var Lfe=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function LJe(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};$fe(e);let n={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:S9(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Ad(e,$Je,n);let a={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:a,prevFlags:null,globalFlags:a,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:n.subroutineRefMap};Ad(e,OJe,o);let i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return Ad(e,MJe,i),e._originMap=o.groupOriginByCopy,e._strategy=n.strategy,e}var $Je={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:n,kind:a}=e;if(a==="repeater"){let o=so();o.body[0].body.push(Uu({negate:!0,body:n}),Pd("Any"));let i=so();i.body[0].body.push(d9("greedy",0,1/0,o)),r(Jr(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:n}){let a=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){let i=t.body[o];fb(n,i,[]).push(...a)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=Mfe(t.get(e));if(r){let n=so({flags:r});n.body[0].body=e.body,e.body=[Jr(n,e)]}}}},Assertion({node:e,parent:t,key:r,container:n,root:a,remove:o,replaceWith:i},s){let{kind:l,negate:u}=e,{asciiWordBoundaries:d,avoidSubclass:f,supportedGNodes:m,wordIsAscii:h}=s;if(l==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(l==="line_end")i(Jr(Uu({body:[vl({body:[Ck("string_end")]}),vl({body:[sh(10)]})]}),t));else if(l==="line_start")i(Jr(bl(xt`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(l==="search_start")if(m.has(e))a.flags.sticky=!0,o();else{let g=n[r-1];if(g&&BJe(g))i(Jr(Uu({negate:!0}),t));else{if(f)throw new Error(xt`Uses "\G" in a way that requires a subclass`);i(Vu(Ck("string_start"),t)),s.strategy="clip_search"}}else if(!(l==="string_end"||l==="string_start"))if(l==="string_end_newline")i(Jr(bl(xt`(?=\n?\z)`),t));else if(l==="word_boundary"){if(!h&&!d){let g=`(?:(?<=${yl})(?!${yl})|(?<!${yl})(?=${yl}))`,y=`(?:(?<=${yl})(?=${yl})|(?<!${yl})(?!${yl}))`;i(Jr(bl(u?y:g),t))}}else throw new Error(`Unexpected assertion kind "${l}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!w9(r)&&(r=x9(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:n}=e;n&&!w9(n)&&(n=x9(n,t),e.name=n),r.set(e.number,e),n&&r.set(n,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let n=lb({body:[e]});r(Jr(n,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:n,minTargetEs2024:a,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:s}){let{kind:l,negate:u,value:d}=e;
vendor: 19,890 bytes, lines 306-309
306if(o&&(l==="digit"||d==="digit")){r(Vu(Pk("digit",{negate:u}),t));return}if(i&&(l==="space"||d==="space")){r(Jr(_9(bl(kJe),u),t));return}if(s&&(l==="word"||d==="word")){r(Vu(Pk("word",{negate:u}),t));return}if(l==="any")r(Vu(Pd("Any"),t));else if(l==="digit")r(Vu(Pd("Nd",{negate:u}),t));else if(l!=="dot")if(l==="text_segment"){if(n==="strict")throw new Error(xt`Use of "\X" requires non-strict accuracy`);let f="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",m=xt`\p{RI}{2}|${f}(?:\u200D${f})*`;r(Jr(bl(xt`(?>\r\n|${a?xt`\p{RGI_Emoji}`:m}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(l==="hex")r(Vu(Pd("AHex",{negate:u}),t));else if(l==="newline")r(Jr(bl(u?`[^ 307]`:`(?>\r 308?|[ 309\v\f\x85\u2028\u2029])`),t));else if(l==="posix")if(!a&&(d==="graph"||d==="print")){if(n==="strict")throw new Error(`POSIX class "${d}" requires min target ES2024 or non-strict accuracy`);let f={graph:"!-~",print:" -~"}[d];u&&(f=`\0-${xn(f.codePointAt(0)-1)}${xn(f.codePointAt(2)+1)}-\u{10FFFF}`),r(Jr(bl(`[${f}]`),t))}else r(Jr(_9(bl(AJe.get(d)),u),t));else if(l==="property")I9.has(lh(d))||(e.key="sc");else if(l==="space")r(Vu(Pd("space",{negate:u}),t));else if(l==="word")r(Jr(_9(bl(yl),u),t));else throw new Error(`Unexpected character set kind "${l}"`)},Directive({node:e,parent:t,root:r,remove:n,replaceWith:a,removeAllPrevSiblings:o,removeAllNextSiblings:i}){let{kind:s,flags:l}=e;if(s==="flags")if(!l.enable&&!l.disable)n();else{let u=so({flags:l});u.body[0].body=i(),a(Jr(u,t),{traverse:!0})}else if(s==="keep"){let u=r.body[0],f=r.body.length===1&&kk(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==f||f.body.length>1)throw new Error(xt`Uses "\K" in a way that's unsupported`);let m=Uu({behind:!0});m.body[0].body=o(),a(Jr(m,t))}else throw new Error(`Unexpected directive kind "${s}"`)},Flags({node:e,parent:t}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),t.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;let{enable:t,disable:r}=e.flags;t?.extended&&delete t.extended,r?.extended&&delete r.extended,t?.dotAll&&r?.dotAll&&delete t.dotAll,t?.ignoreCase&&r?.ignoreCase&&delete t.ignoreCase,t&&!Object.keys(t).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},t){let{kind:r}=e;r==="lookbehind"&&(t.passedLookbehind=!0)},NamedCallout({node:e,parent:t,replaceWith:r}){let{kind:n}=e;if(n==="fail")r(Jr(Uu({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${n.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=so();t.body[0].body.push(e.body),e.body=Jr(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],n=!1,a=!1;for(let o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let i=Dfe(o.body);i?(n=!0,Array.isArray(i)?r.push(...i):r.push(i)):a=!0}n&&!a&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:n}){if(t==="strict"&&r&&n)throw new Error(xt`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!w9(r)&&(r=x9(r,t),e.ref=r)}},OJe={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:n,ref:a}=e;n||r.set(e,[...t.get(a).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:n},{groupOriginByCopy:a,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:s,reffedNodesByReferencer:l}){let u=a.get(e);if(u&&s.has(e.number)){let f=Vu(Ife(e.number),t);l.set(f,s.get(e.number)),r(f);return}s.set(e.number,e),i.set(e.number,[]),e.name&&fb(i,e.name,[]);let d=i.get(e.name??e.number);for(let f=0;f<d.length;f++){let m=d[f];if(u===m.node||u&&u===m.origin||e===m.origin){d.splice(f,1);break}}if(i.get(e.number).push({node:e,origin:u}),e.name&&i.get(e.name).push({node:e,origin:u}),e.name){let f=fb(o,e.name,new Map),m=!1;if(u)m=!0;else for(let h of f.values())if(!h.hasDuplicateNameToRemove){m=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:m})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Lk(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},n){let{isRecursive:a,ref:o}=e;if(a){let d=t;for(;(d=d.parent)&&!(d.type==="CapturingGroup"&&(d.name===o||d.number===o)););n.reffedNodesByReferencer.set(e,d);return}let i=n.subroutineRefMap.get(o),s=o===0,l=s?Ife(0):Ofe(i,n.groupOriginByCopy,null),u=l;if(!s){let d=Mfe(NJe(i,m=>m.type==="Group"&&!!m.flags)),f=d?Lk(n.globalFlags,d):n.globalFlags;RJe(f,n.currentFlags)||(u=so({flags:zJe(f)}),u.body[0].body.push(l))}r(Jr(u,t),{traverse:!s})}},MJe={Backreference({node:e,parent:t,replaceWith:r},n){if(e.orphan){n.highestOrphanBackref=Math.max(n.highestOrphanBackref,e.ref);return}let o=n.reffedNodesByReferencer.get(e).filter(i=>DJe(i,e));if(!o.length)r(Jr(Uu({negate:!0}),t));else if(o.length>1){let i=so({atomic:!0,body:o.reverse().map(s=>vl({body:[Ik(s.number)]}))});r(Jr(i,t))}else e.ref=o[0].number},CapturingGroup({node:e},t){e.number=++t.numCapturesToLeft,e.name&&t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},t){let r=Math.max(t.highestOrphanBackref-t.numCapturesToLeft,0);for(let n=0;n<r;n++){let a=c9();e.body.at(-1).body.push(a)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function $fe(e){Ad(e,{"*"({node:t,parent:r}){t.parent=r}})}function RJe(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function DJe(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let n=Rfe(r.parent);for(let a of n){if(a===r)break;if(a===e||Nfe(a,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function Ofe(e,t,r,n){let a=Array.isArray(e)?[]:{};for(let[o,i]of Object.entries(e))o==="parent"?a.parent=Array.isArray(r)?n:r:i&&typeof i=="object"?a[o]=Ofe(i,t,a,r):(o==="type"&&i==="CapturingGroup"&&t.set(a,t.get(e)??e),a[o]=i);return a}function Ife(e){let t=f9(e);return t.isRecursive=!0,t}function NJe(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function x9(e,t){if(t.has(e))return t.get(e);let r=`$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return t.set(e,r),r}function Mfe(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:n})=>{t.forEach(a=>{n.enable?.[a]&&(delete r.disable[a],r.enable[a]=!0),n.disable?.[a]&&(r.disable[a]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function zJe({dotAll:e,ignoreCase:t}){let r={};return(e||t)&&(r.enable={},e&&(r.enable.dotAll=!0),t&&(r.enable.ignoreCase=!0)),(!e||!t)&&(r.disable={},!e&&(r.disable.dotAll=!0),!t&&(r.disable.ignoreCase=!0)),r}function Rfe(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function Dfe(e){let t=e.find(r=>r.kind==="search_start"||FJe(r,{negate:!1})||!jJe(r));if(!t)return null;if(t.kind==="search_start")return t;if(t.type==="LookaroundAssertion")return t.body[0].body[0];if(t.type==="CapturingGroup"||t.type==="Group"){let r=[];for(let n of t.body){let a=Dfe(n.body);if(!a)return null;Array.isArray(a)?r.push(...a):r.push(a)}return r}return null}function Nfe(e,t){let r=Rfe(e)??[];for(let n of r)if(n===t||Nfe(n,t))return!0;return!1}function jJe({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function BJe(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function FJe(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&kk(e.body[0],{type:"Assertion",kind:"search_start"})}function w9(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function bl(e,t){let n=Tk(e,{...t,unicodePropertyMap:I9}).body;return n.length>1||n[0].body.length>1?so({body:n}):n[0].body[0]}function _9(e,t){return e.negate=t,e}function Vu(e,t){return e.parent=t,e}function Jr(e,t){return $fe(e),e.parent=t,e}function UJe(e,t){let r=Afe(t),n=S9(r.target,"ES2024"),a=S9(r.target,"ES2025"),o=r.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let i=null,s=null;if(!a){let h=[e.flags.ignoreCase];Ad(e,qJe,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(g){h.push(g)},setHasCasedChar(){h.at(-1)?i=!0:s=!0}})}let l={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!s)},u=e,d={accuracy:r.accuracy,appliedGlobalFlags:l,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!a&&i&&s),useFlagMods:a,useFlagV:n,verbose:r.verbose};function f(h){return d.lastNode=u,u=h,_Je(VJe[h.type],`Unexpected node type "${h.type}"`)(h,d,f)}let m={pattern:e.body.map(f).join("|"),flags:f(e.flags),options:{...e.options}};return n||(delete m.options.force.v,m.options.disable.v=!0,m.options.unicodeSetsPlugin=null),m._captureTransfers=new Map,m._hiddenCaptures=[],d.captureMap.forEach((h,g)=>{h.hidden&&m._hiddenCaptures.push(g),h.transferTo&&fb(m._captureTransfers,h.transferTo,[]).push(g)}),m}var qJe={"*":{enter({node:e},t){if(Cfe(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Lk({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){Cfe(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){T9(xn(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),zfe(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&Lfe.has(e.value)&&t.setHasCasedChar()}},VJe={Alternative({body:e},t,r){return e.map(r).join("")},Assertion({kind:e,negate:t}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return t?xt`\B`:xt`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},t){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!t.useFlagMods&&t.accuracy==="strict"&&t.currentFlags.ignoreCase&&!t.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,t,r){let{body:n,name:a,number:o}=e,i={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(i.hidden=!0,o>s.number&&(i.transferTo=s.number)),t.captureMap.set(o,i),`(${a?`?<${a}>`:""}${n.map(r).join("|")})`},Character({value:e},t){let r=xn(e),n=ch(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(n!==r)return n;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&T9(r)){let a=Efe(r);return t.inCharClass?a.join(""):a.length>1?`[${a.join("")}]`:a[0]}return r},CharacterClass(e,t,r){let{kind:n,negate:a,parent:o}=e,{body:i}=e;if(n==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Si.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(Pfe)&&(i=[sh(45),...i.filter(u=>!Pfe(u))]);let s=()=>`[${a?"^":""}${i.map(r).join(n==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||Si.bugNestedClassIgnoresNegation)&&!a){let d=i.filter(f=>f.type==="CharacterClass"&&f.kind==="union"&&f.negate);if(d.length){let f=so(),m=f.body[0];return f.parent=o,m.parent=f,i=i.filter(h=>!d.includes(h)),e.body=i,i.length?(e.parent=m,m.body.push(e)):f.body.pop(),d.forEach(h=>{let g=vl({body:[h]});h.parent=g,g.parent=f,f.body.push(g)}),r(f)}}t.inCharClass=!0;let u=s();return t.inCharClass=!1,u}let l=i[0];if(n==="union"&&!a&&l&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(Si.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&l.type!=="CharacterClassRange"))return i.map(r).join("");if(!t.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return s()},CharacterClassRange(e,t){let r=e.min.value,n=e.max.value,a={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=ch(r,a),i=ch(n,a),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let l=zfe(e);KJe(l).forEach(d=>{s.add(Array.isArray(d)?`${ch(d[0],a)}-${ch(d[1],a)}`:ch(d,a))})}return`${o}-${i}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:n},a){if(e==="dot")return a.currentFlags.dotAll?a.appliedGlobalFlags.dotAll||a.useFlagMods?".":"[^]":xt`[^\n]`;if(e==="digit")return t?xt`\D`:xt`\d`;if(e==="property"){if(a.useAppliedIgnoreCase&&a.currentFlags.ignoreCase&&Lfe.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?xt`\P`:xt`\p`}{${n?`${n}=`:""}${r}}`}if(e==="word")return t?xt`\W`:xt`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,t){return(t.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:t,flags:r,parent:n},a,o){let i=a.currentFlags;r&&(a.currentFlags=Lk(i,r));let s=t.map(o).join("|"),l=!a.verbose&&t.length===1&&n.type!=="Quantifier"&&!e&&(!a.useFlagMods||!r)?s:`(?${JJe(e,r,a.useFlagMods)}${s})`;return a.currentFlags=i,l},LookaroundAssertion({body:e,kind:t,negate:r},n,a){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(a).join("|")})`},Quantifier(e,t,r){return r(e.body)+XJe(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let n=r.recursionLimit;return t===0?`(?R=${n})`:xt`\g<${t}&R=${n}>`}},ZJe=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),HJe=new Set(["-","\\","]","^","["]),GJe=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Tfe=new Map([[9,xt`\t`],[10,xt`\n`],[11,xt`\v`],[12,xt`\f`],[13,xt`\r`],[8232,xt`\u2028`],[8233,xt`\u2029`],[65279,xt`\uFEFF`]]),WJe=/^\p{Cased}$/u;function T9(e){return WJe.test(e)}function zfe(e,t){let r=!!t?.firstOnly,n=e.min.value,a=e.max.value,o=[];if(n<65&&(a===65535||a>=131071)||n===65536&&a>=131071)return o;for(let i=n;i<=a;i++){let s=xn(i);if(!T9(s))continue;let l=Efe(s).filter(u=>{let d=u.codePointAt(0);return d<n||d>a});if(l.length&&(o.push(...l),r))break}return o}function ch(e,{escDigit:t,inCharClass:r,useFlagV:n}){if(Tfe.has(e))return Tfe.get(e);if(e<32||e>126&&e<160||e>262143||t&&YJe(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let a=r?n?GJe:HJe:ZJe,o=xn(e);return(a.has(o)?"\\":"")+o}function KJe(e){let t=e.map(a=>a.codePointAt(0)).sort((a,o)=>a-o),r=[],n=null;for(let a=0;a<t.length;a++)t[a+1]===t[a]+1?n??=t[a]:n===null?r.push(t[a]):(r.push([n,t[a]]),n=null);return r}function JJe(e,t,r){if(e)return">";let n="";if(t&&r){let{enable:a,disable:o}=t;n=(a?.ignoreCase?"i":"")+(a?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${n}:`}function XJe({kind:e,max:t,min:r}){let n;return!r&&t===1?n="?":!r&&t===1/0?n="*":r===1&&t===1/0?n="+":r===t?n=`{${r}}`:n=`{${r},${t===1/0?"":t}}`,n+{greedy:"",lazy:"?",possessive:"+"}[e]}function Cfe({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function YJe(e){return e>47&&e<58}function Pfe({type:e,value:t}){return e==="Character"&&t===45}var QJe=class k9 extends RegExp{#t=new Map;#e=null;#n;#r=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,n){let a=!!n?.lazyCompile;if(t instanceof RegExp){if(n)throw new Error("Cannot provide options when copying a regexp");let o=t;super(o,r),this.#n=o.source,o instanceof k9&&(this.#t=o.#t,this.#r=o.#r,this.#a=o.#a,this.rawOptions=o.rawOptions)}else{let o={hiddenCaptures:[],strategy:null,transfers:[],...n};super(a?"":t,r),this.#n=t,this.#t=tXe(o.hiddenCaptures,o.transfers),this.#a=o.strategy,this.rawOptions=n??{}}a||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:a,...o}=this.rawOptions;this.#e=new k9(this.#n,this.flags,o)}let r=this.global||this.sticky,n=this.lastIndex;if(this.#a==="clip_search"&&r&&n){this.lastIndex=0;let a=this.#o(t.slice(n));return a&&(eXe(a,n,t,this.hasIndices),this.lastIndex+=n),a}return this.#o(t)}#o(t){this.#e.lastIndex=this.lastIndex;let r=super.exec.call(this.#e,t);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;let n=[...r];r.length=1;let a;this.hasIndices&&(a=[...r.indices],r.indices.length=1);let o=[0];for(let i=1;i<n.length;i++){let{hidden:s,transferTo:l}=this.#t.get(i)??{};if(s?o.push(null):(o.push(r.length),r.push(n[i]),this.hasIndices&&r.indices.push(a[i])),l&&n[i]!==void 0){let u=o[l];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=n[i],this.hasIndices&&(r.indices[u]=a[i]),r.groups){this.#r||(this.#r=rXe(this.source));let d=this.#r.get(l);d&&(r.groups[d]=n[i],this.hasIndices&&(r.indices.groups[d]=a[i]))}}}return r}};function eXe(e,t,r,n){if(e.index+=t,e.input=r,n){let a=e.indices;for(let i=0;i<a.length;i++){let s=a[i];s&&(a[i]=[s[0]+t,s[1]+t])}let o=a.groups;o&&Object.keys(o).forEach(i=>{let s=o[i];s&&(o[i]=[s[0]+t,s[1]+t])})}}function tXe(e,t){let r=new Map;for(let n of e)r.set(n,{hidden:!0});for(let[n,a]of t)for(let o of a)fb(r,o,{}).transferTo=n;return r}function rXe(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,n=0,a=0,o;for(;o=t.exec(e);){let{0:i,groups:{capture:s,name:l}}=o;i==="["?n++:n?i==="]"&&n--:s&&(a++,l&&r.set(a,l))}return r}function jfe(e,t){let r=nXe(e,t);return r.options?new QJe(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function nXe(e,t){let r=Afe(t),n=Tk(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:I9}),a=LJe(n,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=UJe(a,r),i=Sfe(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=g9(i.pattern),l=h9(s.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),u={pattern:l.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let d=l.hiddenCaptures.sort((g,y)=>g-y),f=Array.from(l.captureTransfers),m=a._strategy,h=u.pattern.length>=r.lazyCompileLength;(d.length||f.length||m||h)&&(u.options={...d.length&&{hiddenCaptures:d},...f.length&&{transfers:f},...m&&{strategy:m},...h&&{lazyCompile:h}})}return u}function Bfe(e,t){return jfe(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function C9(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>Bfe(r,{target:t.target}),{createScanner(r){return new Gde(r,t)},createString(r){return{content:r}}}}var Ffe=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#24292e","activityBar.border":"#1b1f23","activityBar.foreground":"#e1e4e8","activityBar.inactiveForeground":"#6a737d","activityBarBadge.background":"#0366d6","activityBarBadge.foreground":"#fff","badge.background":"#044289","badge.foreground":"#c8e1ff","breadcrumb.activeSelectionForeground":"#d1d5da","breadcrumb.focu
309sForeground":"#e1e4e8","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#2b3036","button.background":"#176f2c","button.foreground":"#dcffe4","button.hoverBackground":"#22863a","button.secondaryBackground":"#444d56","button.secondaryForeground":"#fff","button.secondaryHoverBackground":"#586069","checkbox.background":"#444d56","checkbox.border":"#1b1f23","debugToolBar.background":"#2b3036","descriptionForeground":"#959da5","diffEditor.insertedTextBackground":"#28a74530","diffEditor.removedTextBackground":"#d73a4930","dropdown.background":"#2f363d","dropdown.border":"#1b1f23","dropdown.foreground":"#e1e4e8","dropdown.listBackground":"#24292e","editor.background":"#24292e","editor.findMatchBackground":"#ffd33d44","editor.findMatchHighlightBackground":"#ffd33d22","editor.focusedStackFrameHighlightBackground":"#2b6a3033","editor.foldBackground":"#58606915","editor.foreground":"#e1e4e8","editor.inactiveSelectionBackground":"#3392FF22","editor.lineHighlightBackground":"#2b3036","editor.linkedEditingBackground":"#3392FF22","editor.selectionBackground":"#3392FF44","editor.selectionHighlightBackgroun
309d":"#17E5E633","editor.selectionHighlightBorder":"#17E5E600","editor.stackFrameHighlightBackground":"#C6902625","editor.wordHighlightBackground":"#17E5E600","editor.wordHighlightBorder":"#17E5E699","editor.wordHighlightStrongBackground":"#17E5E600","editor.wordHighlightStrongBorder":"#17E5E666","editorBracketHighlight.foreground1":"#79b8ff","editorBracketHighlight.foreground2":"#ffab70","editorBracketHighlight.foreground3":"#b392f0","editorBracketHighlight.foreground4":"#79b8ff","editorBracketHighlight.foreground5":"#ffab70","editorBracketHighlight.foreground6":"#b392f0","editorBracketMatch.background":"#17E5E650","editorBracketMatch.border":"#17E5E600","editorCursor.foreground":"#c8e1ff","editorError.foreground":"#f97583","editorGroup.border":"#1b1f23","editorGroupHeader.tabsBackground":"#1f2428","editorGroupHeader.tabsBorder":"#1b1f23","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#ea4a5a","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#444d56","editorIndentGuide.background":"#2f363d","editorLineNumber.activeForeground":"#e1e4e8","editorLineNumber.foreground":"#444d56","editorOverviewRuler.border":"#1b1f23","editorWarning.foreground":"#ffea7f","editorWhitespace.foreground":"#444d56","editorWidget.background":"#1f2428","errorForeground":"#f97583","focusBorder":"#005cc5","foreground":"#d1d5da","gitDecoration.addedResourceForeground":"#34d058","gitDecoration.conflictingResourceForeground":"#ffab70","gitDecoration.deletedResourceForeground":"#ea4a5a","gitDecoration.ignoredResourceForeground":"#6a737d","gitDecoration.modifiedResourceForeground":"#79b8ff","gitDecoration.submoduleResourceForeground":"#6a737d","gitDecoration.untrackedResourceForeground":"#34d058","input.background":"#2f363d","input.border":"#1b1f23","input.foreground":"#e1e4e8","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#39414a","list.activeSelectionForeground":"#e1e4e8","list.focusBackground":"#044289","list.hoverBackground":"#282e34","list.hoverForeground":"#e1e4e8","list.inactiveFocusBackground":"#1d2d3e","list.inactiveSelectionBackground":"#282e34","list.inactiveSelectionForeground":"#e1e4e8","notificationCenterHeader.background":"#24292e","notificationCenterHeader.foreground":"#959da5","notifications.background":"#2f363d","notifications.border":"#1b1f23","notifications.foreground":"#e1e4e8","notificationsErrorIcon.foreground":"#ea4a5a","notificationsInfoIcon.foreground":"#79b8ff","notificationsWarningIcon.foreground":"#ffab70","panel.background":"#1f2428","panel.border":"#1b1f23","panelInput.border":"#2f363d","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#e1e4e8","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#1f242888","peekViewEditor.matchHighlightBackgroun
309d":"#ffd33d33","peekViewResult.background":"#1f2428","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#444d56","pickerGroup.foreground":"#e1e4e8","progressBar.background":"#0366d6","quickInput.background":"#24292e","quickInput.foreground":"#e1e4e8","scrollbar.shadow":"#0008","scrollbarSlider.activeBackground":"#6a737d88","scrollbarSlider.background":"#6a737d33","scrollbarSlider.hoverBackground":"#6a737d44","settings.headerForeground":"#e1e4e8","settings.modifiedItemIndicator":"#0366d6","sideBar.background":"#1f2428","sideBar.border":"#1b1f23","sideBar.foreground":"#d1d5da","sideBarSectionHeader.background":"#1f2428","sideBarSectionHeader.border":"#1b1f23","sideBarSectionHeader.foreground":"#e1e4e8","sideBarTitle.foreground":"#e1e4e8","statusBar.background":"#24292e","statusBar.border":"#1b1f23","statusBar.debuggingBackground":"#931c06","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#d1d5da","statusBar.noFolderBackground":"#24292e","statusBarItem.prominentBackground":"#282e34","statusBarItem.remoteBackground":"#24292e","statusBarItem.remoteForeground":"#d1d5da","tab.activeBackground":"#24292e","tab.activeBorder":"#24292e","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#e1e4e8","tab.border":"#1b1f23","tab.hoverBackground":"#24292e","tab.inactiveBackground":"#1f2428","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#24292e","tab.unfocusedActiveBorderTop":"#1b1f23","tab.unfocusedHoverBackground":"#24292e","terminal.ansiBlack":"#586069","terminal.ansiBlue":"#2188ff","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#79b8ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#85e89d","terminal.ansiBrightMagenta":"#b392f0","terminal.ansiBrightRed":"#f97583","terminal.ansiBrightWhite":"#fafbfc","terminal.ansiBrightYellow":"#ffea7f","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#34d058","terminal.ansiMagenta":"#b392f0","terminal.ansiRed":"#ea4a5a","terminal.ansiWhite":"#d1d5da","terminal.ansiYellow":"#ffea7f","terminal.foreground":"#d1d5da","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#586069","terminalCursor.foreground":"#79b8ff","textBlockQuote.background":"#24292e","textBlockQuote.border":"#444d56","textCodeBlock.background":"#2f363d","textLink.activeForeground":"#c8e1ff","textLink.foreground":"#79b8ff","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#24292e","titleBar.activeForeground":"#e1e4e8","titleBar.border":"#1b1f23","titleBar.inactiveBackground":"#1f2428","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},"displayName":"GitHub Dark","name":"github-dark","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#79b8ff"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#b392f0"}},{"scope":"variable.parameter.function","settings":{"foreground":"#e1e4e8"}},{"scope":"entity.name.tag","settings":{"foreground":"#85e89d"}},{"scope":"keyword","settings":{"foreground":"#f97583"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#f97583"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e1e4e8"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#9ecbff"}},{"scope":"support","settings":{"foreground":"#79b8ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79b8ff"}},{"scope":"variable","settings":{"foreground":"#ffab70"}},{"scope":"variable.other","settings":{"foreground":"#e1e4e8"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#fdaeb7"}},{"scope":"carriage-return","settings":{"background":"#f97583","content":"^M","fontStyle":"italic underline","foreground":"#24292e"}},{"scope":"message.error","settings":{"foreground":"#fdaeb7"}},{"scope":"string variable","settings":{"foreground":"#79b8ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#dbedff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#dbedff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#85e89d"}},{"scope":"support.constant","settings":{"foreground":"#79b8ff"}},{"scope":"support.variable","settings":{"foreground":"#79b8ff"}},{"scope":"meta.module-reference","settings":{"foreground":"#79b8ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffab70"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"markup.quote","settings":{"foreground":"#85e89d"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e1e4e8"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e1e4e8"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79b8ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#86181d","foreground":"#fdaeb7"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#144620","foreground":"#85e89d"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#c24e00","foreground":"#ffab70"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79b8ff","foreground":"#2f363d"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#b392f0"}},{"scope":"meta.diff.header","settings":{"foreground":"#79b8ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79b8ff"}},{"scope":"meta.output","settings":{"foreground":"#79b8ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#d1d5da"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#fdaeb7"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#dbedff"}}],"type":"dark"}'));var Ufe=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focu
309sForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackgroun
309d":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackgroun
309d":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}'));var aXe="https://esm.sh/@shikijs/[email protected]/",P9=null;function oXe(){return P9||(P9=Hde({themes:[Ufe,Ffe],langs:[],engine:C9()})),P9}var qfe=new Set,A9=new Map;async function iXe(e,t){if(qfe.has(t))return;let r=A9.get(t);if(r)return r;let n=(async()=>{try{let a=await import(`${aXe}${t}.mjs`);await e.loadLanguage(a.default??a)}catch{}finally{qfe.add(t),A9.delete(t)}})();return A9.set(t,n),n}async function E9(e){let t=await oXe();return await iXe(t,e),t}var Vfe=["github-light","github-dark"],Zfe=new Map,dh=new Map;function sXe(e,t,r){let n=e.slice(0,100),a=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${n}:${a}`}function lXe(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}var Hfe={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[Vfe[0],Vfe[1]]}
309,highlight(e,t){let{code:r,language:n}=e,a=lXe(e.themes),o=sXe(r,n,a),i=Zfe.get(o);return i||(t&&(dh.has(o)||dh.set(o,new Set),dh.get(o).add(t)),E9(n).then(s=>{let l=s.getLoadedLanguages().includes(n)?n:"text",u=s.codeToTokens(r,{lang:l,themes:{light:a[0],dark:a[1]}}),d={bg:u.bg??void 0,fg:u.fg??void 0,tokens:u.tokens};Zfe.set(o,d);let f=dh.get(o);if(f){for(let m of f)m(d);dh.delete(o)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),dh.delete(o)}),null)}};function L9(e,t){return Wfe(e,t||{})||{type:"root",children:[]}}function Wfe(e,t){let r=uXe(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function uXe(e,t){switch(e.nodeType){case 1:return pXe(e,t);case 3:return dXe(e);case 8:return fXe(e);case 9:return Gfe(e,t);case 10:return cXe();case 11:return Gfe(e,t);default:return}}function Gfe(e,t){return{type:"root",children:Kfe(e,t)}}function cXe(){return{type:"doctype"}}function dXe(e){return{type:"text",value:e.nodeValue||""}}function fXe(e){return{type:"comment",value:e.nodeValue||""}}function pXe(e,t){let r=e.namespaceURI,n=r===jx.svg?uj:lj,a=r===jx.html?e.tagName.toLowerCase():e.tagName,o=r===jx.html&&a==="template"?e.content:e,i=e.getAttributeNames(),s={},l=-1;for(;++l<i.length;)s[i[l]]=e.getAttribute(i[l])||"";return n(a,s,Kfe(o,t))}function Kfe(e,t){let r=e.childNodes,n=[],a=-1;for(;++a<r.length;){let o=Wfe(r[a],t);o!==void 0&&n.push(o)}return n}var mXe=new DOMParser;function Jfe(e,t){let r=t?.fragment?hXe(e):mXe.parseFromString(e,"text/html");return L9(r)}function hXe(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var Ok=(function(e,t,r){let n=Qz(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(n(e.children[t],t,e))return e.children[t]});var xl=(function(e){if(e==null)return yXe;if(typeof e=="string")return vXe(e);if(typeof e=="object")return gXe(e);if(typeof e=="function")return $9(e);throw new Error("Expected function, string, or array as `test`")});function gXe(e){let t=[],r=-1;for(;++r<e.length;)t[r]=xl(e[r]);return $9(n);function n(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function vXe(e){return $9(t);function t(r){return r.tagName===e}}function $9(e){return t;function t(r,n,a){return!!(bXe(r)&&e.call(this,r,typeof n=="number"?n:void 0,a||void 0))}}function yXe(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function bXe(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var Xfe=/\n/g,Yfe=/[\t ]+/g,O9=xl("br"),Qfe=xl(TXe),xXe=xl("p"),epe=xl("tr"),wXe=xl(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",IXe,CXe]),tpe=xl(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function M9(e,t){let r=t||{},n="children"in e?e.children:[],a=tpe(e),o=ape(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];(e.type==="text"||e.type==="comment")&&i.push(...npe(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<n.length;)i.push(...rpe(n[s],e,{whitespace:o,breakBefore:s?void 0:a,breakAfter:s<n.length-1?O9(n[s+1]):a}));let l=[],u;for(s=-1;++s<i.length;){let d=i[s];typeof d=="number"?u!==void 0&&d>u&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` 310`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function rpe(e,t,r){return e.type==="element"?_Xe(e,t,r):e.type==="text"?r.whitespace==="normal"?npe(e,r):SXe(e):[]}function _Xe(e,t,r){let n=ape(e,r),a=e.children||[],o=-1,i=[];if(wXe(e))return i;let s,l;for(O9(e)||epe(e)&&Ok(t,e,epe)?l=` 311`:xXe(e)?(s=2,l=2):tpe(e)&&(s=1,l=1);++o<a.length;)i=i.concat(rpe(a[o],e,{whitespace:n,breakBefore:o?void 0:s,breakAfter:o<a.length-1?O9(a[o+1]):l}));return Qfe(e)&&Ok(t,e,Qfe)&&i.push(" "),s&&i.unshift(s),l&&i.push(l),i}function npe(e,t){let r=String(e.value),n=[],a=[],o=0;for(;o<=r.length;){Xfe.lastIndex=o;let l=Xfe.exec(r),u=l&&"index"in l?l.index:r.length;n.push(kXe(r.slice(o,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),o=u+1}let i=-1,s;for(;++i<n.length;
311)n[i].charCodeAt(n[i].length-1)===8203||i<n.length-1&&n[i+1].charCodeAt(0)===8203?(a.push(n[i]),s=void 0):n[i]?(typeof s=="number"&&a.push(s),a.push(n[i]),s=0):(i===0||i===n.length-1)&&a.push(0);return a}function SXe(e){return[String(e.value)]}function kXe(e,t,r){let n=[],a=0,o;for(;a<e.length;){Yfe.lastIndex=a;let i=Yfe.exec(e);o=i?i.index:e.length,!a&&!o&&i&&!t&&n.push(""),a!==o&&n.push(e.slice(a,o)),a=i?o+i[0].length:o}return a!==o&&!r&&n.push(""),n.join(" ")}function ape(e,t){if(e.type==="element"){let r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap";default:}}return t.whitespace}function IXe(e){return!!(e.properties||{}).hidden}function TXe(e){return e.tagName==="td"||e.tagName==="th"}function CXe(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var Le=class e extends Error{constructor(t,r){var n="KaTeX parse error: "+t,a,o,i=r&&r.loc;if(i&&i.start<=i.end){var s=i.lexer.input;a=i.start,o=i.end,a===s.length?n+=" at end of input: ":n+=" at position "+(a+1)+": ";var l=s.slice(a,o).replace(/[^]/g,"$&\u0332"),u;a>15?u="\u2026"+s.slice(a-15,a):u=s.slice(0,a);var d;o+15<s.length?d=s.slice(o,o+15)+"\u2026":d=s.slice(o),n+=u+l+d}super(n),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=a,a!=null&&o!=null&&(this.length=o-a),this.rawMessage=t}},PXe=/([A-Z])/g,dD=e=>e.replace(PXe,"-$1").toLowerCase(),AXe={"&":"&",">":">","<":"<",'"':""","'":"'"},EXe=/[&><"']/g,Xn=e=>String(e).replace(EXe,t=>AXe[t]),Zk=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?Zk(e.body[0]):e:e.type==="font"?Zk(e.body):e,LXe=new Set(["mathord","textord","atom"]),kl=e=>LXe.has(Zk(e).type),$Xe=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},K9={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function OXe(e){if("default"in e)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var vb=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(K9)){var n=K9[r],a=t[r];this[r]=a!==void 0?n.processor?n.processor(a):a:OXe(n)}}reportNonstrict(t,r,n){var a=this.strict;if(typeof a=="function"&&(a=a(t,r,n)),!(!a||a==="ignore")){if(a===!0||a==="error")throw new Le("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),n);a==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,n){var a=this.strict;if(typeof a=="function")try{a=a(t,r,n)}catch{a="error"}return!a||a==="ignore"?!1:a===!0||a==="error"?!0:a==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+a+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=$Xe(t.url);if(r==null)return!1;t.protocol=r}var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}},cs=class{constructor(t,r,n){this.id=t,this.size=r,this.cramped=n}sup(){return ds[MXe[this.id]]}sub(){return ds[RXe[this.id]]}fracNum(){return ds[DXe[this.id]]}fracDen(){return ds[NXe[this.id]]}cramp(){return ds[zXe[this.id]]}text(){return ds[jXe[this.id]]}isTight(){return this.size>=2}},fD=0,Gk=1,ph=2,Sl=3,yb=4,Fo=5,mh=6,ba=7,ds=[new cs(fD,0,!1),new cs(Gk,0,!0),new cs(ph,1,!1),new cs(Sl,1,!0),new cs(yb,2,!1),new cs(Fo,2,!0),new cs(mh,3,!1),new cs(ba,3,!0)],MXe=[yb,Fo,yb,Fo,mh,ba,mh,ba
vendor: 5,128 bytes, lines 311-362
311],RXe=[Fo,Fo,Fo,Fo,ba,ba,ba,ba],DXe=[ph,Sl,yb,Fo,mh,ba,mh,ba],NXe=[Sl,Sl,Fo,Fo,ba,ba,ba,ba],zXe=[Gk,Gk,Sl,Sl,Fo,Fo,ba,ba],jXe=[fD,Gk,ph,Sl,ph,Sl,ph,Sl],gt={DISPLAY:ds[fD],TEXT:ds[ph],SCRIPT:ds[yb],SCRIPTSCRIPT:ds[mh]},J9=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function BXe(e){for(var t=0;t<J9.length;t++)for(var r=J9[t],n=0;n<r.blocks.length;n++){var a=r.blocks[n];if(e>=a[0]&&e<=a[1])return r.name}return null}var Hk=[];J9.forEach(e=>e.blocks.forEach(t=>Hk.push(...t)));function Mpe(e){for(var t=0;t<Hk.length;t+=2)if(e>=Hk[t]&&e<=Hk[t+1])return!0;return!1}var fh=80,FXe=function(t,r){return"M95,"+(622+t+r)+` 312c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 313c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 314c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 315s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 316c69,-144,104.5,-217.7,106.5,-221 317l`+t/2.075+" -"+t+` 318c5.3,-9.3,12,-14,20,-14 319H400000v`+(40+t)+`H845.2724 320s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 321c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 322M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},UXe=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 323c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 324c340,-704.7,510.7,-1060.3,512,-1067 325l`+t/2.084+" -"+t+` 326c4.7,-7.3,11,-11,19,-11 327H40000v`+(40+t)+`H1012.3 328s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 329c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 330s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 331c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 332M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},qXe=function(t,r){return"M983 "+(10+t+r)+` 333l`+t/3.13+" -"+t+` 334c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 335H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 336s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 337c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 338c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 339c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 340c53.7,-170.3,84.5,-266.8,92.5,-289.5z 341M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},VXe=function(t,r){return"M424,"+(2398+t+r)+` 342c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 343c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 344s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 345s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 346l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 347v`+(40+t)+`H1014.6 348s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 349c-2,6,-10,9,-24,9 350c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` 351h400000v`+(40+t)+"h-400000z"},ZXe=function(t,r){return"M473,"+(2713+t+r)+` 352c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 353c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 354s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 355c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 356c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 357s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 358606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},HXe=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},GXe=function(t,r,n){var a=n-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` 359H742v`+a+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 360h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 361c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 362219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},WXe=function(t,r,n){r=1e3*r;var a="";switch(t){case"sqrtMain":a=FXe(r,fh);break;case"sqrtSize1":a=UXe(r,fh);break;case"sqrtSize2":a=qXe(r,fh);break;case"sqrtSize3":a=VXe(r,fh);break;case"sqrtSize4":a=ZXe(r,fh);break;case"sqrtTall":a=GXe(r,fh,n)}return a},KXe=function(t,r){switch(t){case"\u239C":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"\u2223":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"\u2225":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"\u239F":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"\u23A2":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"\u23A5":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"\u23AA":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"\u23D0":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"\u2016":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},ope
vendor: 10,493 bytes, lines 362-483
362={doubleleftarrow:`M262 157 363l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 364 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 365 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 366c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 367 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 368-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 369-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 370m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 371-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 372 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 373-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 374-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 375-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 376c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 377-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 378 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 379-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 380c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 381 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 382 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 383 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 384-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 385 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 386 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 387 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 388-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 389H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 390 435 0h399565z`,leftgroupunder:`M400000 262 391H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 392 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 393-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 394-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 395-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 396 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 397-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 398-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 399m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 400 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 401 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 402-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 403 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 404-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 405v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 406-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 407-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 408 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 409M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z 410M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z 411M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 412M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 413-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 414c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 415 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 416M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 417c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 418-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 419 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 420 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 421c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 422 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 423 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 424-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 425-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 426m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 42760.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 428-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 429m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 430c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 431-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 432m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 43385.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 434-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 435m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 436c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 437-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 438 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 439 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 440-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 441-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 442 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 443-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 444s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 445c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 446 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 447-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 448 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 449 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 450-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 451-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 452 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 453-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 454 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z 455m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 456 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 457-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 458-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 459 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 460 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 461-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 462m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 463 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 464-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 465 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z 466M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z 467M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z 468M399995 440 h-120 V150 H0 v-120 H399995z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 469 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 470-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 471-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 472 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 473-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 474-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 475-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 476 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 477c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 478 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 479 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 480-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 481 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 482-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 483 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2
vendor: 5,256 bytes, lines 483-541
4836.525 0 484 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 485-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 486-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 487 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 488c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 489 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 490-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 491 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 492 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 493 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 494-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 495 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 496 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 497 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 4983.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 49910.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 500-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 501-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 502H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 503c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 504c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 505-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 506-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 507-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, 508-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 509-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 510-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, 511-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 512c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 513c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 514s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 515121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 516s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 517c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 518M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 519-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 52013.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 521-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 522-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 523-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 524151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 525c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 526c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 527c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 528c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 529M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 530c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 531-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 532c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 533M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 534c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, 5351c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, 536-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 537M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 538c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 539-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 540c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z 541M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 8,535 bytes, lines 541-569
541JXe=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 542H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z 543M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 544c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 545c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 546c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 547c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 548M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 549c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 550c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z 551MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 552MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 553M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 554M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 555c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, 556-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 557949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 558c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 559-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 560l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 561-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, 56263,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 563c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 564c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 565c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 566c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 567c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 568l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 569-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Gu=class{constructor(t){this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}},X9={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},XXe={ex:!0,em:!0,mu:!0},Rpe=function(t){return typeof t!="string"&&(t=t.unit),t in X9||t in XXe||t==="ex"},Or=function(t,r){var n;if(t.unit in X9)n=X9[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")n=r.fontMetrics().cssEmPerMu;else{var a;if(r.style.isTight()?a=r.havingStyle(r.style.text()):a=r,t.unit==="ex")n=a.fontMetrics().xHeight;else if(t.unit==="em")n=a.fontMetrics().quad;else throw new Le("Invalid unit: '"+t.unit+"'");a!==r&&(n*=a.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*n,r.maxSize)},Me=function(t){return+t.toFixed(4)+"em"},Wu=function(t){return t.filter(r=>r).join(" ")},Dpe=function(t,r,n){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},r){r.style.isTight()&&this.classes.push("mtight");var a=r.getColor();a&&(this.style.color=a)}},Npe=function(t){var r=document.createElement(t);r.className=Wu(this.classes);for(var n of Object.keys(this.style))r.style[n]=this.style[n];for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},YXe=/[\s"'>/=\x00-\x1f]/,zpe=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Xn(Wu(this.classes))+'"');var n="";for(var a of Object.keys(this.style))n+=dD(a)+":"+this.style[a]+";";n&&(r+=' style="'+Xn(n)+'"');for(var o of Object.keys(this.attributes)){if(YXe.test(o))throw new Le("Invalid attribute name '"+o+"'");r+=" "+o+'="'+Xn(this.attributes[o])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+t+">",r},Ku=class{constructor(t,r,n,a){Dpe.call(this,t,n,a),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Npe.call(this,"span")}toMarkup(){return zpe.call(this,"span")}},hh=class{constructor(t,r,n,a){Dpe.call(this,r,a),this.children=n||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return Npe.call(this,"a")}toMarkup(){return zpe.call(this,"a")}},Y9=class{constructor(t,r,n){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=n}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r of Object.keys(this.style))t.style[r]=this.style[r];return t}toMarkup(){var t='<img src="'+Xn(this.src)+'"'+(' alt="'+Xn(this.alt)+'"'),r="";for(var n of Object.keys(this.style))r+=dD(n)+":"+this.style[n]+";";return r&&(t+=' style="'+Xn(r)+'"'),t+="'/>",t}},QXe={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},xa=class{constructor(t,r,n,a,o,i,s,l){this.text=t,this.height=r||0,this.depth=n||0,this.italic=a||0,this.skew=o||0,this.width=i||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=BXe(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=QXe[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=Me(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Wu(this.classes));for(var n of Object.keys(this.style))r=r||document.createElement("span"),r.style[n]=this.style[n];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Xn(Wu(this.classes)),r+='"');var n="";this.italic>0&&(n+="margin-right:"+Me(this.italic)+";");for(var a of Object.keys(this.style))n+=dD(a)+":"+this.style[a]+";";n&&(t=!0,r+=' style="'+Xn(n)+'"');var o=Xn(this.text);return t?(r+=">",r+=o,r+="</span>",r):o}},ki=class{constructor(t,r){this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var a=0;a<this.children.length;a++)r.appendChild(this.children[a].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Xn(this.attributes[r])+'"';t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</svg>",t}},ps=class{constructor(t,r){this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",ope[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Xn(this.alternate)+'"/>':'<path d="'+Xn(ope[this.pathName])+'"/>'}},bb=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Xn(this.attributes[r])+'"';return t+="/>",t}};function eYe(e){if(e instanceof xa)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function tYe(e){if(e instanceof Ku)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var rYe=e=>e instanceof Ku||e instanceof hh||e instanceof Gu,fs
vendor: 57,629 bytes, line 569
569={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},
vendor: 2,286 bytes, line 569
569Mk={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},ipe={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function nYe(e,t){fs[e]=t}function pD(e,t,r){if(!fs[t])throw new Error("Font metrics not found for font: "+t+".");var n=e.charCodeAt(0),a=fs[t][n];if(!a&&e[0]in ipe&&(n=ipe[e[0]].charCodeAt(0),a=fs[t][n]),!a&&r==="text"&&Mpe(n)&&(a=fs[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var R9={};function aYe(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!R9[t]){var r=R9[t]={cssEmPerMu:Mk.quad[t]/18};for(var n in Mk)Mk.hasOwnProperty(n)&&(r[n]=Mk[n][t])}return R9[t]}var oYe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},iYe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ir={math:{},text:{}};function k(e,t,r,n,a,o){Ir[e][a]={font:t,group:r,replace:n},o&&n&&(Ir[e][n]=Ir[e][a])}
569var T="math",be="text",M="main",W="ams",Tr="accent-token",We="bin",wa="close",yh="inner",it="mathord",un="op-token",uo="open",wb="punct",K="rel",Il="spacing",te="textord";k(T,M,K,"\u2261","\\equiv",!0);k(T,M,K,"\u227A","\\prec",!0);k(T,M,K,"\u227B","\\succ",!0);k(T,M,K,"\u223C","\\sim",!0);k(T,M,K,"\u22A5","\\perp");k(T,M,K,"\u2AAF","\\preceq",!0);k(T,M,K,"\u2AB0","\\succeq",!0);k(T,M,K,"\u2243","\\simeq",!0);k(T,M,K,"\u2223","\\mid",!0);k(T,M,K,"\u226A","\\ll",!0);k(T,M,K,"\u226B","\\gg",!0);k(T,M,K,"\u224D","\\asymp",!0);k(T,M,K,"\u2225","\\parallel");k(T,M,K,"\u22C8","\\bowtie",!0);k(T,M,K,"\u2323","\\smile",!0);k(T,M,K,"\u2291","\\sqsubseteq",!0);k(T,M,K,"\u2292","\\sqsupseteq",!0);k(T,M,K,"\u2250","\\doteq",!0);k(T,M,K,"\u2322","\\frown",!0);k(T,M,K,"\u220B","\\ni",!0);k(T,M,K,"\u221D","\\propto",!0);k(T,M,K,"\u22A2","\\vdash",!0);k(T,M,K,"\u22A3","\\dashv",!0);k(T,M,K,"\u220B","\\owns");k(T,M,wb,".","\\ldotp");k(T,M,wb,"\u22C5","\\cdotp");k(T,M,wb,"\u22C5","\xB7");k(be,M,te,"\u22C5","\xB7");k(T,M,te,"#","\\#");k(be,M,te,"#","\\#");k(T,M,te,"&","\\&");k(be,M,te,"&","\\&");k(T,M,te,"\u2135","\\aleph",!0);k(T,M,te,"\u2200","\\forall",!0);k(T,M,te,"\u210F","\\hbar",!0);k(T,M,te,"\u2203","\\exists",!0);k(T,M,te,"\u2207","\\nabla",!0);k(T,M,te,"\u266D","\\flat",!0);k(T,M,te,"\u2113","\\ell",!0);k(T,M,te,"\u266E","\\natural",!0);k(T,M,te,"\u2663","\\clubsuit",!0);k(T,M,te,"\u2118","\\wp",!0);k(T,M,te,"\u266F","\\sharp",!0);k(T,M,te,"\u2662","\\diamondsuit",!0);k(T,M,te,"\u211C","\\Re",!0);k(T,M,te,"\u2661","\\heartsuit",!0);k(T,M,te,"\u2111","\\Im",!0);k(T,M,te,"\u2660","\\spadesuit",!0);k(T,M,te,"\xA7","\\S",!0);k(be,M,te,"\xA7","\\S");k(T,M,te,"\xB6","\\P",!0);k(be,M,te,"\xB6","\\P");k(T,M,te,"\u2020","\\dag");k(be,M,te,"\u2020","\\dag");k(be,M,te,"\u2020","\\textdagger");k(T,M,te,"\u2021","\\ddag");k(be,M,te,"\u2021","\\ddag");k(be,M,te,"\u2021","\\textdaggerdbl");k(T,M,wa,"\u23B1","\\rmoustache",!0);k(T,M,uo,"\u23B0","\\lmoustache",!0);k(T,M,wa,"\u27EF","\\rgroup",!0);k(T,M,uo,"\u27EE","\\lgroup",!0);k(T,M,We,"\u2213","\\mp",!0);k(T,M,We,"\u2296","\\ominus",!0);k(T,M,We,"\u228E","\\uplus",!0);k(T,M,We,"\u2293","\\sqcap",!0);k(T,M,We,"\u2217","\\ast");k(T,M,We,"\u2294","\\sqcup",!0);k(T,M,We,"\u25EF","\\bigcirc",!0);k(T,M,We,"\u2219","\\bullet",!0);k(T,M,We,"\u2021","\\ddagger");k(T,M,We,"\u2240","\\wr",!0);k(T,M,We,"\u2A3F","\\amalg");k(T,M,We,"&","\\And");k(T,M,K,"\u27F5","\\longleftarrow",!0);k(T,M,K,"\u21D0","\\Leftarrow",!0);k(T,M,K,"\u27F8","\\Longleftarrow",!0);k(T,M,K,"\u27F6","\\longrightarrow",!0);k(T,M,K,"\u21D2","\\Rightarrow",!0);k(T,M,K,"\u27F9","\\Longrightarrow",!0);k(T,M,K,"\u2194","\\leftrightarrow",!0);k(T,M,K,"\u27F7","\\longleftrightarrow",!0);k(T,M,K,"\u21D4","\\Leftrightarrow",!0);k(T,M,K,"\u27FA","\\Longleftrightarrow",!0);k(T,M,K,"\u21A6","\\mapsto",!0);k(T,M,K,"\u27FC","\\longmapsto",!0);k(T,M,K,"\u2197","\\nearrow",!0);k(T,M,K,"\u21A9","\\hookleftarrow",!0);k(T,M,K,"\u21AA","\\hookrightarrow",!0);k(T,M,K,"\u2198","\\searrow",!0);k(T,M,K,"\u21BC","\\leftharpoonup",!0);k(T,M,K,"\u21C0","\\rightharpoonup",!0);k(T,M,K,"\u2199","\\swarrow",!0);k(T,M,K,"\u21BD","\\leftharpoondown",!0);k(T,M,K,"\u21C1","\\rightharpoondown",!0);k(T,M,K,"\u2196","\\nwarrow",!0);k(T,M,K,"\u21CC","\\rightleftharpoons",!0);k(T,W,K,"\u226E","\\nless",!0);k(T,W,K,"\uE010","\\@nleqslant");k(T,W,K,"\uE011","\\@nleqq");k(T,W,K,"\u2A87","\\lneq",!0);k(T,W,K,"\u2268","\\lneqq",!0);k(T,W,K,"\uE00C","\\@lvertneqq");k(T,W,K,"\u22E6","\\lnsim",!0);k(T,W,K,"\u2A89","\\lnapprox",!0);k(T,W,K,"\u2280","\\nprec",!0);k(T,W,K,"\u22E0","\\npreceq",!0);k(T,W,K,"\u22E8","\\precnsim",!0);k(T,W,K,"\u2AB9","\\precnapprox",!0);k(T,W,K,"\u2241","\\nsim",!0);k(T,W,K,"\uE006","\\@nshortmid");k(T,W,K,"\u2224","\\nmid",!0);k(T,W,K,"\u22AC","\\nvdash",!0);k(T,W,K,"\u22AD","\\nvDash",!0);k(T,W,K,"\u22EA","\\ntriangleleft");k(T,W,K,"\u22EC","\\ntrianglelefteq",!0);k(T,W,K,"\u228A","\\subsetneq",!0);k(T,W,K,"\uE01A","\\@varsubsetneq");k(T,W,K,"\u2ACB","\\subsetneqq",!0);k(T,W,K,"\uE017","\\@varsubsetneqq");k(T,W,K,"\u226F","\\ngtr",!0);k(T,W,K,"\uE00F","\\@ngeqslant");k(T,W,K,"\uE00E","\\@ngeqq");k(T,W,K,"\u2A88","\\gneq",!0);k(T,W,K,"\u2269","\\gneqq",!0);k(T,W,K,"\uE00D","\\@gvertneqq");k(T,W,K,"\u22E7","\\gnsim",!0);k(T,W,K,"\u2A8A","\\gnapprox",!0);k(T,W,K,"\u2281","\\nsucc",!0);k(T,W,K,"\u22E1","\\nsucceq",!0);k(T,W,K,"\u22E9","\\succnsim",!0);k(T,W,K,"\u2ABA","\\succnapprox",!0);k(T,W,K,"\u2246","\\ncong",!0);k(T,W,K,"\uE007","\\@nshortparallel");k(T,W,K,"\u2226","\\nparallel",!0);k(T,W,K,"\u22AF","\\nVDash",!0);k(T,W,K,"\u22EB","\\ntriangleright");k(T,W,K,"\u22ED","\\ntrianglerighteq",!0);k(T,W,K,"\uE018","\\@nsupseteqq");k(T,W,K,"\u228B","\\supsetneq",!0);k(T,W,K,"\uE01B","\\@varsupsetneq");k(T,W,K,"\u2ACC","\\supsetneqq",!0);k(T,W,K,"\uE019","\\@varsupsetneqq");k(T,W,K,"\u22AE","\\nVdash",!0);k(T,W,K,"\u2AB5","\\precneqq",!0);k(T,W,K,"\u2AB6","\\succneqq",!0);
569k(T,W,K,"\uE016","\\@nsubseteqq");k(T,W,We,"\u22B4","\\unlhd");k(T,W,We,"\u22B5","\\unrhd");k(T,W,K,"\u219A","\\nleftarrow",!0);k(T,W,K,"\u219B","\\nrightarrow",!0);k(T,W,K,"\u21CD","\\nLeftarrow",!0);k(T,W,K,"\u21CF","\\nRightarrow",!0);k(T,W,K,"\u21AE","\\nleftrightarrow",!0);k(T,W,K,"\u21CE","\\nLeftrightarrow",!0);k(T,W,K,"\u25B3","\\vartriangle");k(T,W,te,"\u210F","\\hslash");k(T,W,te,"\u25BD","\\triangledown");k(T,W,te,"\u25CA","\\lozenge");k(T,W,te,"\u24C8","\\circledS");k(T,W,te,"\xAE","\\circledR");k(be,W,te,"\xAE","\\circledR");k(T,W,te,"\u2221","\\measuredangle",!0);k(T,W,te,"\u2204","\\nexists");k(T,W,te,"\u2127","\\mho");k(T,W,te,"\u2132","\\Finv",!0);k(T,W,te,"\u2141","\\Game",!0);k(T,W,te,"\u2035","\\backprime");k(T,W,te,"\u25B2","\\blacktriangle");k(T,W,te,"\u25BC","\\blacktriangledown");k(T,W,te,"\u25A0","\\blacksquare");k(T,W,te,"\u29EB","\\blacklozenge");k(T,W,te,"\u2605","\\bigstar");k(T,W,te,"\u2222","\\sphericalangle",!0);k(T,W,te,"\u2201","\\complement",!0);k(T,W,te,"\xF0","\\eth",!0);k(be,M,te,"\xF0","\xF0");k(T,W,te,"\u2571","\\diagup");k(T,W,te,"\u2572","\\diagdown");k(T,W,te,"\u25A1","\\square");k(T,W,te,"\u25A1","\\Box");k(T,W,te,"\u25CA","\\Diamond");k(T,W,te,"\xA5","\\yen",!0);k(be,W,te,"\xA5","\\yen",!0);k(T,W,te,"\u2713","\\checkmark",!0);k(be,W,te,"\u2713","\\checkmark");k(T,W,te,"\u2136","\\beth",!0);k(T,W,te,"\u2138","\\daleth",!0);k(T,W,te,"\u2137","\\gimel",!0);k(T,W,te,"\u03DD","\\digamma",!0);k(T,W,te,"\u03F0","\\varkappa");k(T,W,uo,"\u250C","\\@ulcorner",!0);k(T,W,wa,"\u2510","\\@urcorner",!0);k(T,W,uo,"\u2514","\\@llcorner",!0);k(T,W,wa,"\u2518","\\@lrcorner",!0);k(T,W,K,"\u2266","\\leqq",!0);k(T,W,K,"\u2A7D","\\leqslant",!0);k(T,W,K,"\u2A95","\\eqslantless",!0);k(T,W,K,"\u2272","\\lesssim",!0);k(T,W,K,"\u2A85","\\lessapprox",!0);k(T,W,K,"\u224A","\\approxeq",!0);k(T,W,We,"\u22D6","\\lessdot");k(T,W,K,"\u22D8","\\lll",!0);k(T,W,K,"\u2276","\\lessgtr",!0);k(T,W,K,"\u22DA","\\lesseqgtr",!0);k(T,W,K,"\u2A8B","\\lesseqqgtr",!0);k(T,W,K,"\u2251","\\doteqdot");k(T,W,K,"\u2253","\\risingdotseq",!0);k(T,W,K,"\u2252","\\fallingdotseq",!0);k(T,W,K,"\u223D","\\backsim",!0);k(T,W,K,"\u22CD","\\backsimeq",!0);k(T,W,K,"\u2AC5","\\subseteqq",!0);k(T,W,K,"\u22D0","\\Subset",!0);k(T,W,K,"\u228F","\\sqsubset",!0);k(T,W,K,"\u227C","\\preccurlyeq",!0);k(T,W,K,"\u22DE","\\curlyeqprec",!0);k(T,W,K,"\u227E","\\precsim",!0);k(T,W,K,"\u2AB7","\\precapprox",!0);k(T,W,K,"\u22B2","\\vartriangleleft");k(T,W,K,"\u22B4","\\trianglelefteq");k(T,W,K,"\u22A8","\\vDash",!0);k(T,W,K,"\u22AA","\\Vvdash",!0);k(T,W,K,"\u2323","\\smallsmile");k(T,W,K,"\u2322","\\smallfrown");k(T,W,K,"\u224F","\\bumpeq",!0);k(T,W,K,"\u224E","\\Bumpeq",!0);k(T,W,K,"\u2267","\\geqq",!0);k(T,W,K,"\u2A7E","\\geqslant",!0);k(T,W,K,"\u2A96","\\eqslantgtr",!0);k(T,W,K,"\u2273","\\gtrsim",!0);k(T,W,K,"\u2A86","\\gtrapprox",!0);k(T,W,We,"\u22D7","\\gtrdot");k(T,W,K,"\u22D9","\\ggg",!0);k(T,W,K,"\u2277","\\gtrless",!0);k(T,W,K,"\u22DB","\\gtreqless",!0);k(T,W,K,"\u2A8C","\\gtreqqless",!0);k(T,W,K,"\u2256","\\eqcirc",!0);k(T,W,K,"\u2257","\\circeq",!0);k(T,W,K,"\u225C","\\triangleq",!0);k(T,W,K,"\u223C","\\thicksim");k(T,W,K,"\u2248","\\thickapprox");k(T,W,K,"\u2AC6","\\supseteqq",!0);k(T,W,K,"\u22D1","\\Supset",!0);k(T,W,K,"\u2290","\\sqsupset",!0);k(T,W,K,"\u227D","\\succcurlyeq",!0);k(T,W,K,"\u22DF","\\curlyeqsucc",!0);k(T,W,K,"\u227F","\\succsim",!0);k(T,W,K,"\u2AB8","\\succapprox",!0);k(T,W,K,"\u22B3","\\vartriangleright");k(T,W,K,"\u22B5","\\trianglerighteq");k(T,W,K,"\u22A9","\\Vdash",!0);k(T,W,K,"\u2223","\\shortmid");k(T,W,K,"\u2225","\\shortparallel");k(T,W,K,"\u226C","\\between",!0);k(T,W,K,"\u22D4","\\pitchfork",!0);k(T,W,K,"\u221D","\\varpropto");k(T,W,K,"\u25C0","\\blacktriangleleft");k(T,W,K,"\u2234","\\therefore",!0);k(T,W,K,"\u220D","\\backepsilon");k(T,W,K,"\u25B6","\\blacktriangleright");k(T,W,K,"\u2235","\\because",!0);k(T,W,K,"\u22D8","\\llless");k(T,W,K,"\u22D9","\\gggtr");k(T,W,We,"\u22B2","\\lhd");k(T,W,We,"\u22B3","\\rhd");k(T,W,K,"\u2242","\\eqsim",!0);k(T,M,K,"\u22C8","\\Join");k(T,W,K,"\u2251","\\Doteq",!0);k(T,W,We,"\u2214","\\dotplus",!0);k(T,W,We,"\u2216","\\smallsetminus");k(T,W,We,"\u22D2","\\Cap",!0);k(T,W,We,"\u22D3","\\Cup",!0);k(T,W,We,"\u2A5E","\\doublebarwedge",!0);k(T,W,We,"\u229F","\\boxminus",!0);k(T,W,We,"\u229E","\\boxplus",!0);
569k(T,W,We,"\u22C7","\\divideontimes",!0);k(T,W,We,"\u22C9","\\ltimes",!0);k(T,W,We,"\u22CA","\\rtimes",!0);k(T,W,We,"\u22CB","\\leftthreetimes",!0);k(T,W,We,"\u22CC","\\rightthreetimes",!0);k(T,W,We,"\u22CF","\\curlywedge",!0);k(T,W,We,"\u22CE","\\curlyvee",!0);k(T,W,We,"\u229D","\\circleddash",!0);k(T,W,We,"\u229B","\\circledast",!0);k(T,W,We,"\u22C5","\\centerdot");k(T,W,We,"\u22BA","\\intercal",!0);k(T,W,We,"\u22D2","\\doublecap");k(T,W,We,"\u22D3","\\doublecup");k(T,W,We,"\u22A0","\\boxtimes",!0);k(T,W,K,"\u21E2","\\dashrightarrow",!0);k(T,W,K,"\u21E0","\\dashleftarrow",!0);k(T,W,K,"\u21C7","\\leftleftarrows",!0);k(T,W,K,"\u21C6","\\leftrightarrows",!0);k(T,W,K,"\u21DA","\\Lleftarrow",!0);k(T,W,K,"\u219E","\\twoheadleftarrow",!0);k(T,W,K,"\u21A2","\\leftarrowtail",!0);k(T,W,K,"\u21AB","\\looparrowleft",!0);k(T,W,K,"\u21CB","\\leftrightharpoons",!0);k(T,W,K,"\u21B6","\\curvearrowleft",!0);k(T,W,K,"\u21BA","\\circlearrowleft",!0);k(T,W,K,"\u21B0","\\Lsh",!0);k(T,W,K,"\u21C8","\\upuparrows",!0);k(T,W,K,"\u21BF","\\upharpoonleft",!0);k(T,W,K,"\u21C3","\\downharpoonleft",!0);k(T,M,K,"\u22B6","\\origof",!0);k(T,M,K,"\u22B7","\\imageof",!0);k(T,W,K,"\u22B8","\\multimap",!0);k(T,W,K,"\u21AD","\\leftrightsquigarrow",!0);k(T,W,K,"\u21C9","\\rightrightarrows",!0);k(T,W,K,"\u21C4","\\rightleftarrows",!0);k(T,W,K,"\u21A0","\\twoheadrightarrow",!0);k(T,W,K,"\u21A3","\\rightarrowtail",!0);k(T,W,K,"\u21AC","\\looparrowright",!0);k(T,W,K,"\u21B7","\\curvearrowright",!0);k(T,W,K,"\u21BB","\\circlearrowright",!0);k(T,W,K,"\u21B1","\\Rsh",!0);k(T,W,K,"\u21CA","\\downdownarrows",!0);k(T,W,K,"\u21BE","\\upharpoonright",!0);k(T,W,K,"\u21C2","\\downharpoonright",!0);k(T,W,K,"\u21DD","\\rightsquigarrow",!0);k(T,W,K,"\u21DD","\\leadsto");k(T,W,K,"\u21DB","\\Rrightarrow",!0);k(T,W,K,"\u21BE","\\restriction");k(T,M,te,"\u2018","`");k(T,M,te,"$","\\$");k(be,M,te,"$","\\$");k(be,M,te,"$","\\textdollar");k(T,M,te,"%","\\%");k(be,M,te,"%","\\%");k(T,M,te,"_","\\_");k(be,M,te,"_","\\_");k(be,M,te,"_","\\textunderscore");k(T,M,te,"\u2220","\\angle",!0);k(T,M,te,"\u221E","\\infty",!0);k(T,M,te,"\u2032","\\prime");k(T,M,te,"\u25B3","\\triangle");k(T,M,te,"\u0393","\\Gamma",!0);k(T,M,te,"\u0394","\\Delta",!0);k(T,M,te,"\u0398","\\Theta",!0);k(T,M,te,"\u039B","\\Lambda",!0);k(T,M,te,"\u039E","\\Xi",!0);k(T,M,te,"\u03A0","\\Pi",!0);k(T,M,te,"\u03A3","\\Sigma",!0);k(T,M,te,"\u03A5","\\Upsilon",!0);k(T,M,te,"\u03A6","\\Phi",!0);k(T,M,te,"\u03A8","\\Psi",!0);k(T,M,te,"\u03A9","\\Omega",!0);k(T,M,te,"A","\u0391");k(T,M,te,"B","\u0392");k(T,M,te,"E","\u0395");k(T,M,te,"Z","\u0396");k(T,M,te,"H","\u0397");k(T,M,te,"I","\u0399");k(T,M,te,"K","\u039A");k(T,M,te,"M","\u039C");k(T,M,te,"N","\u039D");k(T,M,te,"O","\u039F");k(T,M,te,"P","\u03A1");k(T,M,te,"T","\u03A4");k(T,M,te,"X","\u03A7");k(T,M,te,"\xAC","\\neg",!0);k(T,M,te,"\xAC","\\lnot");k(T,M,te,"\u22A4","\\top");k(T,M,te,"\u22A5","\\bot");k(T,M,te,"\u2205","\\emptyset");k(T,W,te,"\u2205","\\varnothing");k(T,M,it,"\u03B1","\\alpha",!0);k(T,M,it,"\u03B2","\\beta",!0);k(T,M,it,"\u03B3","\\gamma",!0);k(T,M,it,"\u03B4","\\delta",!0);k(T,M,it,"\u03F5","\\epsilon",!0);k(T,M,it,"\u03B6","\\zeta",!0);k(T,M,it,"\u03B7","\\eta",!0);k(T,M,it,"\u03B8","\\theta",!0);k(T,M,it,"\u03B9","\\iota",!0);k(T,M,it,"\u03BA","\\kappa",!0);k(T,M,it,"\u03BB","\\lambda",!0);k(T,M,it,"\u03BC","\\mu",!0);k(T,M,it,"\u03BD","\\nu",!0);k(T,M,it,"\u03BE","\\xi",!0);k(T,M,it,"\u03BF","\\omicron",!0);k(T,M,it,"\u03C0","\\pi",!0);k(T,M,it,"\u03C1","\\rho",!0);k(T,M,it,"\u03C3","\\sigma",!0);k(T,M,it,"\u03C4","\\tau",!0);k(T,M,it,"\u03C5","\\upsilon",!0);k(T,M,it,"\u03D5","\\phi",!0);k(T,M,it,"\u03C7","\\chi",!0);k(T,M,it,"\u03C8","\\psi",!0);k(T,M,it,"\u03C9","\\omega",!0);k(T,M,it,"\u03B5","\\varepsilon",!0);k(T,M,it,"\u03D1","\\vartheta",!0);k(T,M,it,"\u03D6","\\varpi",!0);k(T,M,it,"\u03F1","\\varrho",!0);k(T,M,it,"\u03C2","\\varsigma",!0);k(T,M,it,"\u03C6","\\varphi",!0);k(T,M,We,"\u2217","*",!0);k(T,M,We,"+","+");k(T,M,We,"\u2212","-",!0);k(T,M,We,"\u22C5","\\cdot",!0);k(T,M,We,"\u2218","\\circ",!0);k(T,M,We,"\xF7","\\div",!0);k(T,M,We,"\xB1","\\pm",!0);k(T,M,We,"\xD7","\\times",!0);k(T,M,We,"\u2229","\\cap",!0);k(T,M,We,"\u222A","\\cup",!0);k(T,M,We,"\u2216","\\setminus",!0);k(T,M,We,"\u2227","\\land");k(T,M,We,"\u2228","\\lor");k(T,M,We,"\u2227","\\wedge",!0);k(T,M,We,"\u2228","\\vee",!0);k(T,M,te,"\u221A","\\surd");k(T,M,uo,"\u27E8","\\langle",!0);k(T,M,uo,"\u2223","\\lvert");k(T,M,uo,"\u2225","\\lVert");k(T,M,wa,"?","?");k(T,M,wa,"!","!");k(T,M,wa,"\u27E9","\\rangle",!0);k(T,M,wa,"\u2223","\\rvert");k(T,M,wa,"\u2225","\\rVert");k(T,M,K,"=","=");k(T,M,K,":",":");k(T,M,K,"\u2248","\\approx",!0);k(T,M,K,"\u2245","\\cong",!0);k(T,M,K,"\u2265","\\ge");k(T,M,K,"\u2265","\\geq",!0);k(T,M,K,"\u2190","\\gets");k(T,M,K,">","\\gt",!0);k(T,M,K,"\u2208","\\in",!0);k(T,M,K,"\uE020","\\@not");k(T,M,K,"\u2282","\\subset",!0);k(T,M,K,"\u2283","\\supset",!0);k(T,M,K,"\u2286","\\subseteq",!0);k(T,M,K,"\u2287","\\supseteq",!0);k(T,W,K,"\u2288","\\nsubseteq",!0);k(T,W,K,"\u2289","\\nsupseteq",!0);k(T,M,K,"\u22A8","\\models");k(T,M,K,"\u2190","\\leftarrow",!0);k(T,M,K,"\u2264","\\le");k(T,M,K,"\u2264","\\leq",!0);k(T,M,K,"<","\\lt",!0);k(T,M,K,"\u2192","\\rightarrow",!0);k(T,M,K,"\u2192","\\to");k(T,W,K,"\u2271","\\ngeq",!0);k(T,W,K,"\u2270","\\nleq",!0);k(T,M,Il,"\xA0","\\ ");k(T,M,Il,"\xA0","\\space");k(T,M,Il,"\xA0","\\nobreakspace");k(be,M,Il,"\xA0","\\ ");k(be,M,Il,"\xA0"," ");k(be,M,Il,"\xA0","\\space");k(be,M,Il,"\xA0","\\nobreakspace");k(T,M,Il,null,"\\nobreak");k(T,M,Il,null,"\\allowbreak");k(T,M,wb,",",",");k(T,M,wb,";",";");k(T,W,We,"\u22BC","\\barwedge",!0);k(T,W,We,"\u22BB","\\veebar",!0);k(T,M,We,"\u2299","\\odot",!0);k(T,M,We,"\u2295","\\oplus",!0);k(T,M,We,"\u2297","\\otimes",!0);k(T,M,te,"\u2202","\\partial",!0);k(T,M,We,"\u2298","\\oslash",!0);k(T,W,We,"\u229A","\\circledcirc",!0);k(T,W,We,"\u22A1","\\boxdot",!0);
vendor: 7,113 bytes, line 569
569k(T,M,We,"\u25B3","\\bigtriangleup");k(T,M,We,"\u25BD","\\bigtriangledown");k(T,M,We,"\u2020","\\dagger");k(T,M,We,"\u22C4","\\diamond");k(T,M,We,"\u22C6","\\star");k(T,M,We,"\u25C3","\\triangleleft");k(T,M,We,"\u25B9","\\triangleright");k(T,M,uo,"{","\\{");k(be,M,te,"{","\\{");k(be,M,te,"{","\\textbraceleft");k(T,M,wa,"}","\\}");k(be,M,te,"}","\\}");k(be,M,te,"}","\\textbraceright");k(T,M,uo,"{","\\lbrace");k(T,M,wa,"}","\\rbrace");k(T,M,uo,"[","\\lbrack",!0);k(be,M,te,"[","\\lbrack",!0);k(T,M,wa,"]","\\rbrack",!0);k(be,M,te,"]","\\rbrack",!0);k(T,M,uo,"(","\\lparen",!0);k(T,M,wa,")","\\rparen",!0);k(be,M,te,"<","\\textless",!0);k(be,M,te,">","\\textgreater",!0);k(T,M,uo,"\u230A","\\lfloor",!0);k(T,M,wa,"\u230B","\\rfloor",!0);k(T,M,uo,"\u2308","\\lceil",!0);k(T,M,wa,"\u2309","\\rceil",!0);k(T,M,te,"\\","\\backslash");k(T,M,te,"\u2223","|");k(T,M,te,"\u2223","\\vert");k(be,M,te,"|","\\textbar",!0);k(T,M,te,"\u2225","\\|");k(T,M,te,"\u2225","\\Vert");k(be,M,te,"\u2225","\\textbardbl");k(be,M,te,"~","\\textasciitilde");k(be,M,te,"\\","\\textbackslash");k(be,M,te,"^","\\textasciicircum");k(T,M,K,"\u2191","\\uparrow",!0);k(T,M,K,"\u21D1","\\Uparrow",!0);k(T,M,K,"\u2193","\\downarrow",!0);k(T,M,K,"\u21D3","\\Downarrow",!0);k(T,M,K,"\u2195","\\updownarrow",!0);k(T,M,K,"\u21D5","\\Updownarrow",!0);k(T,M,un,"\u2210","\\coprod");k(T,M,un,"\u22C1","\\bigvee");k(T,M,un,"\u22C0","\\bigwedge");k(T,M,un,"\u2A04","\\biguplus");k(T,M,un,"\u22C2","\\bigcap");k(T,M,un,"\u22C3","\\bigcup");k(T,M,un,"\u222B","\\int");k(T,M,un,"\u222B","\\intop");k(T,M,un,"\u222C","\\iint");k(T,M,un,"\u222D","\\iiint");k(T,M,un,"\u220F","\\prod");k(T,M,un,"\u2211","\\sum");k(T,M,un,"\u2A02","\\bigotimes");k(T,M,un,"\u2A01","\\bigoplus");k(T,M,un,"\u2A00","\\bigodot");k(T,M,un,"\u222E","\\oint");k(T,M,un,"\u222F","\\oiint");k(T,M,un,"\u2230","\\oiiint");k(T,M,un,"\u2A06","\\bigsqcup");k(T,M,un,"\u222B","\\smallint");k(be,M,yh,"\u2026","\\textellipsis");k(T,M,yh,"\u2026","\\mathellipsis");k(be,M,yh,"\u2026","\\ldots",!0);k(T,M,yh,"\u2026","\\ldots",!0);k(T,M,yh,"\u22EF","\\@cdots",!0);k(T,M,yh,"\u22F1","\\ddots",!0);k(T,M,te,"\u22EE","\\varvdots");k(be,M,te,"\u22EE","\\varvdots");k(T,M,Tr,"\u02CA","\\acute");k(T,M,Tr,"\u02CB","\\grave");k(T,M,Tr,"\xA8","\\ddot");k(T,M,Tr,"~","\\tilde");k(T,M,Tr,"\u02C9","\\bar");k(T,M,Tr,"\u02D8","\\breve");k(T,M,Tr,"\u02C7","\\check");k(T,M,Tr,"^","\\hat");k(T,M,Tr,"\u20D7","\\vec");k(T,M,Tr,"\u02D9","\\dot");k(T,M,Tr,"\u02DA","\\mathring");k(T,M,it,"\uE131","\\@imath");k(T,M,it,"\uE237","\\@jmath");k(T,M,te,"\u0131","\u0131");k(T,M,te,"\u0237","\u0237");k(be,M,te,"\u0131","\\i",!0);k(be,M,te,"\u0237","\\j",!0);k(be,M,te,"\xDF","\\ss",!0);k(be,M,te,"\xE6","\\ae",!0);k(be,M,te,"\u0153","\\oe",!0);k(be,M,te,"\xF8","\\o",!0);k(be,M,te,"\xC6","\\AE",!0);k(be,M,te,"\u0152","\\OE",!0);k(be,M,te,"\xD8","\\O",!0);k(be,M,Tr,"\u02CA","\\'");k(be,M,Tr,"\u02CB","\\`");k(be,M,Tr,"\u02C6","\\^");k(be,M,Tr,"\u02DC","\\~");k(be,M,Tr,"\u02C9","\\=");k(be,M,Tr,"\u02D8","\\u");k(be,M,Tr,"\u02D9","\\.");k(be,M,Tr,"\xB8","\\c");k(be,M,Tr,"\u02DA","\\r");k(be,M,Tr,"\u02C7","\\v");k(be,M,Tr,"\xA8",'\\"');k(be,M,Tr,"\u02DD","\\H");k(be,M,Tr,"\u25EF","\\textcircled");var jpe={"--":!0,"---":!0,"``":!0,"''":!0};k(be,M,te,"\u2013","--",!0);k(be,M,te,"\u2013","\\textendash");k(be,M,te,"\u2014","---",!0);k(be,M,te,"\u2014","\\textemdash");k(be,M,te,"\u2018","`",!0);k(be,M,te,"\u2018","\\textquoteleft");k(be,M,te,"\u2019","'",!0);k(be,M,te,"\u2019","\\textquoteright");k(be,M,te,"\u201C","``",!0);k(be,M,te,"\u201C","\\textquotedblleft");k(be,M,te,"\u201D","''",!0);k(be,M,te,"\u201D","\\textquotedblright");k(T,M,te,"\xB0","\\degree",!0);k(be,M,te,"\xB0","\\degree");k(be,M,te,"\xB0","\\textdegree",!0);k(T,M,te,"\xA3","\\pounds");k(T,M,te,"\xA3","\\mathsterling",!0);k(be,M,te,"\xA3","\\pounds");k(be,M,te,"\xA3","\\textsterling",!0);k(T,W,te,"\u2720","\\maltese");k(be,W,te,"\u2720","\\maltese");var spe='0123456789/@."';for(Rk=0;Rk<spe.length;Rk++)D9=spe.charAt(Rk),k(T,M,te,D9,D9);var D9,Rk,lpe='0123456789!@*()-=+";:?/.,';for(Dk=0;Dk<lpe.length;Dk++)N9=lpe.charAt(Dk),k(be,M,te,N9,N9);var N9,Dk,Wk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Nk=0;Nk<Wk.length;Nk++)pb=Wk.charAt(Nk),k(T,M,it,pb,pb),k(be,M,te,pb,pb);var pb,Nk;k(T,W,te,"C","\u2102");k(be,W,te,"C","\u2102");k(T,W,te,"H","\u210D");k(be,W,te,"H","\u210D");k(T,W,te,"N","\u2115");k(be,W,te,"N","\u2115");k(T,W,te,"P","\u2119");k(be,W,te,"P","\u2119");k(T,W,te,"Q","\u211A");k(be,W,te,"Q","\u211A");k(T,W,te,"R","\u211D");k(be,W,te,"R","\u211D");k(T,W,te,"Z","\u2124");k(be,W,te,"Z","\u2124");k(T,M,it,"h","\u210E");k(be,M,it,"h","\u210E");var pt="";for(Jn=0;Jn<Wk.length;Jn++)Lr=Wk.charAt(Jn),pt=String.fromCharCode(55349,56320+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56372+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56424+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56580+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56684+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56736+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56788+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56840+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56944+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),Jn<26&&(pt=String.fromCharCode(55349,56632+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt),pt=String.fromCharCode(55349,56476+Jn),k(T,M,it,Lr,pt),k(be,M,te,Lr,pt));var Lr,Jn;pt="\u{1D55C}";k(T,M,it,"k",pt);k(be,M,te,"k",pt);for(Zu=0;Zu<10;Zu++)wl=Zu.toString(),pt=String.fromCharCode(55349,57294+Zu),k(T,M,it,wl,pt),k(be,M,te,wl,pt),pt=String.fromCharCode(55349,57314+Zu),k(T,M,it,wl,pt),k(be,M,te,wl,pt),pt=String.fromCharCode(55349,57324+Zu),k(T,M,it,wl,pt),k(be,M,te,wl,pt),pt=String.fromCharCode(55349,57334+Zu),k(T,M,it,wl,pt),k(be,M,te,wl,pt);var wl,Zu,Q9="\xD0\xDE\xFE";for(zk=0;zk<Q9.length;zk++)mb=Q9.charAt(zk),k(T,M,it,mb,mb),k(be,M,te,mb,mb);var mb,zk,jk=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],upe=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sYe=(e,t)=>
vendor: 24,227 bytes, line 569
569{var r=e.charCodeAt(0),n=e.charCodeAt(1),a=(r-55296)*1024+(n-56320)+65536,o=t==="math"?0:1;if(119808<=a&&a<120484){var i=Math.floor((a-119808)/26);return[jk[i][2],jk[i][o]]}else if(120782<=a&&a<=120831){var s=Math.floor((a-120782)/10);return[upe[s][2],upe[s][o]]}else{if(a===120485||a===120486)return[jk[0][2],jk[0][o]];if(120486<a&&a<120782)return["",""];throw new Le("Unsupported character: "+e)}},rI=function(t,r,n){if(Ir[n][t]){var a=Ir[n][t].replace;a&&(t=a)}return{value:t,metrics:pD(t,r,n)}},ya=function(t,r,n,a,o){var i=rI(t,r,n),s=i.metrics;t=i.value;var l;if(s){var u=s.italic;(n==="text"||a&&a.font==="mathit")&&(u=0),l=new xa(t,s.height,s.depth,u,s.skew,s.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+n+"'")),l=new xa(t,0,0,0,0,0,o);if(a){l.maxFontSize=a.sizeMultiplier,a.style.isTight()&&l.classes.push("mtight");var d=a.getColor();d&&(l.style.color=d)}return l},mD=function(t,r,n,a){return a===void 0&&(a=[]),n.font==="boldsymbol"&&rI(t,"Main-Bold",r).metrics?ya(t,"Main-Bold",r,n,a.concat(["mathbf"])):t==="\\"||Ir[r][t].font==="main"?ya(t,"Main-Regular",r,n,a):ya(t,"AMS-Regular",r,n,a.concat(["amsrm"]))},lYe=function(t,r,n,a,o){return o!=="textord"&&rI(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},nI=function(t,r,n){var a=t.mode,o=t.text,i=["mord"],s=a==="math"||a==="text"&&r.font,l=s?r.font:r.fontFamily,u="",d="";if(o.charCodeAt(0)===55349&&([u,d]=sYe(o,a)),u.length>0)return ya(o,u,a,r,i.concat(d));if(l){var f,m;if(l==="boldsymbol"){var h=lYe(o,a,r,i,n);f=h.fontName,m=[h.fontClass]}else s?(f=eD[l].fontName,m=[l]):(f=Bk(l,r.fontWeight,r.fontShape),m=[l,r.fontWeight,r.fontShape]);if(rI(o,f,a).metrics)return ya(o,f,a,r,i.concat(m));if(jpe.hasOwnProperty(o)&&f.slice(0,10)==="Typewriter"){for(var g=[],y=0;y<o.length;y++)g.push(ya(o[y],f,a,r,i.concat(m)));return Tl(g)}}if(n==="mathord")return ya(o,"Math-Italic",a,r,i.concat(["mathnormal"]));if(n==="textord"){var b=Ir[a][o]&&Ir[a][o].font;if(b==="ams"){var w=Bk("amsrm",r.fontWeight,r.fontShape);return ya(o,w,a,r,i.concat("amsrm",r.fontWeight,r.fontShape))}else if(b==="main"||!b){var S=Bk("textrm",r.fontWeight,r.fontShape);return ya(o,S,a,r,i.concat(r.fontWeight,r.fontShape))}else{var x=Bk(b,r.fontWeight,r.fontShape);return ya(o,x,a,r,i.concat(x,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+n+" in makeOrd")},uYe=(e,t)=>{if(Wu(e.classes)!==Wu(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var n of Object.keys(e.style))if(e.style[n]!==t.style[n])return!1;for(var a of Object.keys(t.style))if(e.style[a]!==t.style[a])return!1;return!0},Bpe=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],n=e[t+1];r instanceof xa&&n instanceof xa&&uYe(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,e.splice(t+1,1),t--)}return e},hD=function(t){for(var r=0,n=0,a=0,o=0;o<t.children.length;o++){var i=t.children[o];i.height>r&&(r=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>a&&(a=i.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=a},we=function(t,r,n,a){var o=new Ku(t,r,n,a);return hD(o),o},Ju=(e,t,r,n)=>new Ku(e,t,r,n),gh=function(t,r,n){var a=we([t],[],r);return a.height=Math.max(n||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),a.style.borderBottomWidth=Me(a.height),a.maxFontSize=1,a},cYe=function(t,r,n,a){var o=new hh(t,r,n,a);return hD(o),o},Tl=function(t){var r=new Gu(t);return hD(r),r},vh=function(t,r){return t instanceof Gu?we([],[t],r):t},dYe=function(t){if(t.positionType==="individualShift"){for(var r=t.children,n=[r[0]],a=-r[0].shift-r[0].elem.depth,o=a,i=1;i<r.length;i++){var s=-r[i].shift-o-r[i].elem.depth,l=s-(r[i-1].elem.height+r[i-1].elem.depth);o=o+s,n.push({type:"kern",size:l}),n.push(r[i])}return{children:n,depth:a}}var u;if(t.positionType==="top"){for(var d=t.positionData,f=0;f<t.children.length;f++){var m=t.children[f];d-=m.type==="kern"?m.size:m.elem.height+m.elem.depth}u=d}else if(t.positionType==="bottom")u=-t.positionData;else{var h=t.children[0];if(h.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-h.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-h.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},Ht=function(t,r){for(var{children:n,depth:a}=dYe(t),o=0,i=0;i<n.length;i++){var s=n[i];if(s.type==="elem"){var l=s.elem;o=Math.max(o,l.maxFontSize,l.height)}}o+=2;var u=we(["pstrut"],[]);u.style.height=Me(o);for(var d=[],f=a,m=a,h=a,g=0;g<n.length;g++){var y=n[g];if(y.type==="kern")h+=y.size;else{var b=y.elem,w=y.wrapperClasses||[],S=y.wrapperStyle||{},x=we(w,[u,b],void 0,S);x.style.top=Me(-o-h-b.depth),y.marginLeft&&(x.style.marginLeft=y.marginLeft),y.marginRight&&(x.style.marginRight=y.marginRight),d.push(x),h+=b.height+b.depth}f=Math.min(f,h),m=Math.max(m,h)}var C=we(["vlist"],d);C.style.height=Me(m);var I;if(f<0){var A=we([],[]),O=we(["vlist"],[A]);O.style.height=Me(-f);var F=we(["vlist-s"],[new xa("\u200B")]);I=[we(["vlist-r"],[C,F]),we(["vlist-r"],[O])]}else I=[we(["vlist-r"],[C])];var q=we(["vlist-t"],I);return I.length===2&&q.classes.push("vlist-t2"),q.height=m,q.depth=-f,q},Fpe=(e,t)=>{var r=we(["mspace"],[],t),n=Or(e,t);return r.style.marginRight=Me(n),r},Bk=function(t,r,n){var a="";switch(t){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=t}var o;return r==="textbf"&&n==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",a+"-"+o},eD={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Upe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},qpe=function(t,r){var[n,a,o]=Upe[t],i=new ps(n),s=new ki([i],{width:Me(a),height:Me(o),style:"width:"+Me(a),viewBox:"0 0 "+1e3*a+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=Ju(["overlay"],[s],r);return l.height=o,l.style.height=Me(o),l.style.width=Me(a),l},$r={number:3,unit:"mu"},Ld={number:4,unit:"mu"},_l={number:5,unit:"mu"},fYe={mord:{mop:$r,mbin:Ld,mrel:_l,minner:$r},mop:{mord:$r,mop:$r,mrel:_l,minner:$r},mbin:{mord:Ld,mop:Ld,mopen:Ld,minner:Ld},mrel:{mord:_l,mop:_l,mopen:_l,minner:_l},mopen:{},mclose:{mop:$r,mbin:Ld,mrel:_l,minner:$r},mpunct:{mord:$r,mop:$r,mrel:_l,mopen:$r,mclose:$r,mpunct:$r,minner:$r},minner:{mord:$r,mop:$r,mbin:Ld,mrel:_l,mopen:$r,mpunct:$r,minner:$r}},pYe={mord:{mop:$r},mop:{mord:$r,mop:$r},mbin:{},mrel:{},mopen:{},mclose:{mop:$r},mpunct:{},minner:{mop:$r}},Vpe={},Kk={},Jk={};function Ue(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:a},l=0;l<r.length;++l)Vpe[r[l]]=s;t&&(o&&(Kk[t]=o),i&&(Jk[t]=i))}function $d(e){var{type:t,htmlBuilder:r,mathmlBuilder:n}=e;Ue({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:n})}var Xk=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},ln=function(t){return t.type==="ordgroup"?t.body:[t]},mYe=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),hYe=new Set(["rightmost","mrel","mclose","mpunct"]),gYe={display:gt.DISPLAY,text:gt.TEXT,script:gt.SCRIPT,scriptscript:gt.SCRIPTSCRIPT},vYe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},wn=function(t,r,n,a){a===void 0&&(a=[null,null]);for(var o=[],i=0;i<t.length;i++){var s=Gt(t[i],r);if(s instanceof Gu){var l=s.children;o.push(...l)}else o.push(s)}if(Bpe(o),!n)return o;var u=r;if(t.length===1){var d=t[0];d.type==="sizing"?u=r.havingSize(d.size):d.type==="styling"&&(u=r.havingStyle(gYe[d.style]))}var f=we([a[0]||"leftmost"],[],r),m=we([a[1]||"rightmost"],[],r),h=n==="root";return tD(o,(g,y)=>{var b=y.classes[0],w=g.classes[0];b==="mbin"&&hYe.has(w)?y.classes[0]="mord":w==="mbin"&&mYe.has(b)&&(g.classes[0]="mord")},{node:f},m,h),tD(o,(g,y)=>{var b,w,S=nD(y),x=nD(g),C=S&&x?g.hasClass("mtight")?(b=pYe[S])==null?void 0:b[x]:(w=fYe[S])==null?void 0:w[x]:null;if(C)return Fpe(C,u)},{node:f},m,h),o},tD=function(t,r,n,a,o){a&&t.push(a);for(var i=0;i<t.length;i++){var s=t[i],l=Zpe(s);if(l){tD(l.children,r,n,null,o);continue}var u=!s.hasClass("mspace");if(u){var d=r(s,n.node);d&&(n.insertAfter?n.insertAfter(d):(t.unshift(d),i++))}u?n.node=s:o&&s.hasClass("newline")&&(n.node=we(["leftmost"])),n.insertAfter=(f=>m=>{t.splice(f+1,0,m),i++})(i)}a&&t.pop()},Zpe=function(t){return t instanceof Gu||t instanceof hh||t instanceof Ku&&t.hasClass("enclosing")?t:null},rD=function(t,r){var n=Zpe(t);if(n){var a=n.children;if(a.length){if(r==="right")return rD(a[a.length-1],"right");if(r==="left")return rD(a[0],"left")}}return t},nD=function(t,r){if(!t)return null;r&&(t=rD(t,r));var n=t.classes[0];return vYe[n]||null},xb=function(t,r){var n=["nulldelimiter"].concat(t.baseSizingClasses());return we(r.concat(n))},Gt=function(t,r,n){if(!t)return we();if(Kk[t.type]){var a=Kk[t.type](t,r);if(n&&r.size!==n.size){a=we(r.sizingClasses(n),[a],r);var o=r.sizeMultiplier/n.sizeMultiplier;a.height*=o,a.depth*=o}return a}else throw new Le("Got group of unknown type: '"+t.type+"'")};function Fk(e,t){var r=we(["base"],e,t),n=we(["strut"]);return n.style.height=Me(r.height+r.depth),r.depth&&(n.style.verticalAlign=Me(-r.depth)),r.children.unshift(n),r}function aD(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var n=wn(e,t,"root"),a;n.length===2&&n[1].hasClass("tag")&&(a=n.pop());for(var o=[],i=[],s=0;s<n.length;s++)if(i.push(n[s]),n[s].hasClass("mbin")||n[s].hasClass("mrel")||n[s].hasClass("allowbreak")){for(var l=!1;s<n.length-1&&n[s+1].hasClass("mspace")&&!n[s+1].hasClass("newline");)s++,i.push(n[s]),n[s].hasClass("nobreak")&&(l=!0);l||(o.push(Fk(i,t)),i=[])}else n[s].hasClass("newline")&&(i.pop(),i.length>0&&(o.push(Fk(i,t)),i=[]),o.push(n[s]));i.length>0&&o.push(Fk(i,t));var u;r?(u=Fk(wn(r,t,!0),t),u.classes=["tag"],o.push(u)):a&&o.push(a);var d=we(["katex-html"],o);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Me(d.height+d.depth),d.depth&&(f.style.verticalAlign=Me(-d.depth))}return d}function Hpe(e){return new Gu(e)}var Pe=class{constructor(t,r,n){this.type=t,this.attributes={},this.children=r||[],this.classes=n||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Wu(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof Ur&&this.children[n+1]instanceof Ur){for(var a=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof Ur;)a+=this.children[++n].toText();t.appendChild(new Ur(a).toNode())}else t.appendChild(this.children[n].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Xn(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Xn(Wu(this.classes))+'"'),t+=">";for(var n=0;n<this.children.length;n++)t+=this.children[n].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},Ur=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Xn(this.toText())}toText(){return this.text}},Yk=class{constructor(t){this.width=t,t>=.05555&&t<=.05556?this.character="\u200A":t>=.1666&&t<=.1667?this.character="\u2009":t>=.2222&&t<=.2223?this.character="\u2005":t>=.2777&&t<=.2778?this.character="\u2005\u200A":t>=-.05556&&t<=-.05555?this.character="\u200A\u2063":t>=-.1667&&t<=-.1666?this.character="\u2009\u2063":t>=-.2223&&t<=-.2222?this.character="\u205F\u2063":t>=-.2778&&t<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Me(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+Me(this.width)+'"/>'}toText(){return this.character?this.character:" "}},yYe=new Set(["\\imath","\\jmath"]),bYe=new Set(["mrow","mtable"]),Uo=function(t,r,n){return Ir[r][t]&&Ir[r][t].replace&&t.charCodeAt(0)!==55349&&!(jpe.hasOwnProperty(t)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(t=Ir[r][t].replace),new Ur(t)},gD=function(t){return t.length===1?t[0]:new Pe("mrow",t)},vD=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var n=r.font;if(!n||n==="mathnormal")return null;var a=t.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathsfit")return"sans-serif-italic";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var o=t.text;if(yYe.has(o))return null;if(Ir[a][o]){var i=Ir[a][o].replace;i&&(o=i)}var s=eD[n].fontName;return pD(o,s,a)?eD[n].variant:null};function z9(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Ur&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof Ur&&r.text===","}else return!1}var co=function(t,r,n){if(t.length===1){var a=mr(t[0],r);return n&&a instanceof Pe&&a.type==="mo"&&(a.setAttribute("lspace","0em"),a.setAttribute("rspace","0em")),[a]}for(var o=[],i,s=0;s<t.length;s++){var l=mr(t[s],r);if(l instanceof Pe&&i instanceof Pe){if(l.type==="mtext"&&i.type==="mtext"&&l.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...l.children);continue}else if(l.type==="mn"&&i.type==="mn"){i.children.push(...l.children);continue}else if(z9(l)&&i.type==="mn"){i.children.push(...l.children);continue}else if(l.type==="mn"&&z9(i))l.children=[...i.children,...l.children],o.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(i.type==="mn"||z9(i))){var u=l.children[0];u instanceof Pe&&u.type==="mn"&&(u.children=[...i.children,...u.children],o.pop())}else if(i.type==="mi"&&i.children.length===1){var d=i.children[0];if(d instanceof Ur&&d.text==="\u0338"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var f=l.children[0];f instanceof Ur&&f.text.length>0&&(f.text=f.text.slice(0,1)+"\u0338"+f.text.slice(1),o.pop())}}}o.push(l),i=l}return o},Xu=function(t,r,n){return gD(co(t,r,n))},mr=function(t,r){if(!t)return new Pe("mrow");if(Jk[t.type]){var n=Jk[t.type](t,r);return n}else throw new Le("Got group of unknown type: '"+t.type+"'")};function cpe(e,t,r,n,a){var o=co(e,r),i;o.length===1&&o[0]instanceof Pe&&bYe.has(o[0].type)?i=o[0]:i=new Pe("mrow",o);var s=new Pe("annotation",[new Ur(t)]);s.setAttribute("encoding","application/x-tex");var l=new Pe("semantics",[i,s]),u=new Pe("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&u.setAttribute("display","block");var d=a?"katex":"katex-mathml";return we([d],[u])}var xYe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],dpe=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],fpe=function(t,r){return r.size<2?t:xYe[t-1][r.size-1]},Qk=class e{constructor(t){this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=dpe[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new e(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:fpe(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:dpe[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=fpe(e.BASESIZE,t);return this.size===r&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=aYe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};Qk.BASESIZE=6;var Gpe=function(t){return new Qk({style:t.displayMode?gt.DISPLAY:gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Wpe=function(t,r){if(r.displayMode){var n=["katex-display"];r.leqno&&n.push("leqno"),r.fleqn&&n.push("fleqn"),t=we(n,[t])}return t},wYe=function(t,r,n){var a=Gpe(n),o;if(n.output==="mathml")return cpe(t,r,a,n.displayMode,!0);if(n.output==="html"){var i=aD(t,a);o=we(["katex"],[i])}else{var s=cpe(t,r,a,n.displayMode,!1),l=aD(t,a);o=we(["katex"],[s,l])}return Wpe(o,n)},_Ye=function(t,r,n){var a=Gpe(n),o=aD(t,a),i=we(["katex"],[o]);return Wpe(i,n)},SYe={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",underbracket:"\u23B5",overbracket:"\u23B4",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},aI=function(t){var r=new Pe("mo",[new Ur(SYe[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},kYe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},IYe=new Set(["widehat","widecheck","widetilde","utilde"]),oI=function(t,r){function n(){var s=4e5,l=t.label.slice(1);if(IYe.has(l)){var u=t,d=u.base.type==="ordgroup"?u.base.body.length:1,f,m,h;if(d>5)l==="widehat"||l==="widecheck"?(f=420,s=2364,h=.42,m=l+"4"):(f=312,s=2340,h=.34,m="tilde4");else{var g=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(s=[0,1062,2364,2364,2364][g],f=[0,239,300,360,420][g],h=[0,.24,.3,.3,.36,.42][g],m=l+g):(s=[0,600,1033,2339,2340][g],f=[0,260,286,306,312][g],h=[0,.26,.286,.3,.306,.34][g],m="tilde"+g)}var y=new ps(m),b=new ki([y],{width:"100%",height:Me(h),viewBox:"0 0 "+s+" "+f,preserveAspectRatio:"none"});return{span:Ju([],[b],r),minWidth:0,height:h}}else{var w=[],S=kYe[l],[x,C,I]=S,A=I/1e3,O=x.length,F,q;if(O===1){var G=S[3];F=["hide-tail"],q=[G]}else if(O===2)F=["halfarrow-left","halfarrow-right"],q=["xMinYMin","xMaxYMin"];else if(O===3)F=["brace-left","brace-center","brace-right"],q=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
569ort 570 `+O+" children.");for(var J=0;J<O;J++){var Y=new ps(x[J]),le=new ki([Y],{width:"400em",height:Me(A),viewBox:"0 0 "+s+" "+I,preserveAspectRatio:q[J]+" slice"}),re=Ju([F[J]],[le],r);if(O===1)return{span:re,minWidth:C,height:A};re.style.height=Me(A),w.push(re)}return{span:we(["stretchy"],w,r),minWidth:C,height:A}}}var{span:a,minWidth:o,height:i}=n();return a.height=i,a.style.height=Me(i),o>0&&(a.style.minWidth=Me(o)),a},TYe=function(t,r,n,a,o){var i,s=t.height+t.depth+n+a;if(/fbox|color|angl/.test(r)){if(i=we(["stretchy",r],[],o),r==="fbox"){var l=o.color&&o.getColor();l&&(i.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new bb({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new bb({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new ki(u,{width:"100%",height:Me(s)});i=Ju([],[d],o)}return i.height=s,i.style.height=Me(s),i};function Ct(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function iI(e){var t=sI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function sI(e){return e&&(e.type==="atom"||iYe.hasOwnProperty(e.type))?e:null}var Kpe=e=>{if(e instanceof xa)return e;if(rYe(e)&&e.children.length===1)return Kpe(e.children[0])},yD=(e,t)=>{var r,n,a;e&&e.type==="supsub"?(n=Ct(e.base,"accent"),r=n.base,e.base=r,a=tYe(Gt(e,t)),e.base=n):(n=Ct(e,"accent"),r=n.base);var o=Gt(r,t.havingCrampedStyle()),i=n.isShifty&&kl(r),s=0;if(i){var l,u;s=(l=(u=Kpe(o))==null?void 0:u.skew)!=null?l:0}var d=n.label==="\\c",f=d?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),m;if(n.isStretchy)m=oI(n,t),m=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:m,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+Me(2*s)+")",marginLeft:Me(2*s)}:void 0}]});else{var h,g;n.label==="\\vec"?(h=qpe("vec",t),g=Upe.vec[1]):(h=nI({type:"textord",mode:n.mode,text:n.label},t,"textord"),h=eYe(h),h.italic=0,g=h.width,d&&(f+=h.depth)),m=we(["accent-body"],[h]);var y=n.label==="\\textcircled";y&&(m.classes.push("accent-full"),f=o.height);var b=s;y||(b-=g/2),m.style.left=Me(b),n.label==="\\textcircled"&&(m.style.top=".2em"),m=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-f},{type:"elem",elem:m}]})}var w=we(["mord","accent"],[m],t);return a?(a.children[0]=w,a.height=Math.max(w.height,a.height),a.classes[0]="mord",a):w},Jpe=(e,t)=>{var r=e.isStretchy?aI(e.label):new Pe("mo",[Uo(e.label,e.mode)]),n=new Pe("mover",[mr(e.base,t),r]);return n.setAttribute("accent","true"),n},CYe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Ue({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Xk(t[0]),n=!CYe.test(e.funcName),a=!n||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:n,isShifty:a,base:r}},htmlBuilder:yD,mathmlBuilder:Jpe});Ue({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],n=e.parser.mode;return n==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:yD,mathmlBuilder:Jpe});Ue({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"accentUnder",mode:r.mode,label:n,base:a}},htmlBuilder:(e,t)=>{var r=Gt(e.base,t),n=oI(e,t),a=e.label==="\\utilde"?.12:0,o=Ht({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:r}]});return we(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=aI(e.label),n=new Pe("munder",[mr(e.base,t),r]);return n.setAttribute("accentunder","true"),n}});var Uk=e=>{var t=new Pe("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Ue({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n,funcName:a}=e;return{type:"xArrow",mode:n.mode,label:a,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),a=vh(Gt(e.body,n,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";a.classes.push(o+"-arrow-pad");var i;e.below&&(n=t.havingStyle(r.sub()),i=vh(Gt(e.below,n,t),t),i.classes.push(o+"-arrow-pad"));var s=oI(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(a.depth>.25||e.label==="\\xleftequilibrium")&&(u-=a.depth);var d;if(i){var f=-t.fontMetrics().axisHeight+i.height+.5*s.height+.111;d=Ht({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:i,shift:f}]})}else d=Ht({positionType:"individualShift",children:[{type:"elem",elem:a,shift:u},{type:"elem",elem:s,shift:l}]});return d.children[0].children[0].children[1].classes.push("svg-align"),we(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var r=aI(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(e.body){var a=Uk(mr(e.body,t));if(e.below){var o=Uk(mr(e.below,t));n=new Pe("munderover",[r,o,a])}else n=new Pe("mover",[r,a])}else if(e.below){var i=Uk(mr(e.below,t));n=new Pe("munder",[r,i])}else n=Uk(),n=new Pe("mover",[r,n]);return n}});function Xpe(e,t){var r=wn(e.body,t,!0);return we([e.mclass],r,t)}function Ype(e,t){var r,n=co(e.body,t);return e.mclass==="minner"?r=new Pe("mpadded",n):e.mclass==="mord"?e.isCharacterBox?(r=n[0],r.type="mi"):r=new Pe("mi",n):(e.isCharacterBox?(r=n[0],r.type="mo"):r=new Pe("mo",n),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Ue({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+n.slice(5),body:ln(a),isCharacterBox:kl(a)}},htmlBuilder:Xpe,mathmlBuilder:Ype});var lI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Ue({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:lI(t[0]),body:ln(t[1]),isCharacterBox:kl(t[1])}}});Ue({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:n}=e,a=t[1],o=t[0],i;n!=="\\stackrel"?i=lI(a):i="mrel";var s={type:"op",mode:a.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:ln(a)},l={type:"supsub",mode:o.mode,base:s,sup:n==="\\underset"?null:o,sub:n==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:i,body:[l],isCharacterBox:kl(l)}},htmlBuilder:Xpe,mathmlBuilder:Ype});Ue({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:lI(t[0]),body:ln(t[0])}},htmlBuilder(e,t){var r=wn(e.body,t,!0),n=we([e.mclass],r,t);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(e,t){var r=co(e.body,t),n=new Pe("mstyle",r);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var PYe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ppe=()=>({type:"styling",body:[],mode:"math",style:"display"}),mpe=e=>e.type==="textord"&&e.text==="@",AYe=(e,t)=>
vendor: 4,585 bytes, line 570
570(e.type==="mathord"||e.type==="atom")&&e.text===t;function EYe(e,t,r){var n=PYe[e];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(n,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var a=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:n,mode:"math",family:"rel"},i=r.callFunction("\\Big",[o],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[a,i,s]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function LYe(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Le("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var n=[],a=[n],o=0;o<t.length;o++){for(var i=t[o],s=ppe(),l=0;l<i.length;l++)if(!mpe(i[l]))s.body.push(i[l]);else{n.push(s),l+=1;var u=iI(i[l]).text,d=new Array(2);if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var f=0;f<2;f++){for(var m=!0,h=l+1;h<i.length;h++){if(AYe(i[h],u)){m=!1,l=h;break}if(mpe(i[h]))throw new Le("Missing a "+u+" character to complete a CD arrow.",i[h]);d[f].body.push(i[h])}if(m)throw new Le("Missing a "+u+" character to complete a CD arrow.",i[l])}else throw new Le('Expected one of "<>AV=|." after @',i[l]);var g=EYe(u,d,e),y={type:"styling",body:[g],mode:"math",style:"display"};n.push(y),s=ppe()}o%2===0?n.push(s):n.shift(),n=[],a.push(n)}e.gullet.endGroup(),e.gullet.endGroup();var b=new Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(a.length+1).fill([])}}Ue({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"cdlabel",mode:r.mode,side:n.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),n=vh(Gt(e.label,r,t),t);return n.classes.push("cd-label-"+e.side),n.style.bottom=Me(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(e,t){var r=new Pe("mrow",[mr(e.label,t)]);return r=new Pe("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new Pe("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Ue({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=vh(Gt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new Pe("mrow",[mr(e.fragment,t)])}});Ue({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,n=Ct(t[0],"ordgroup"),a=n.body,o="",i=0;i<a.length;i++){var s=Ct(a[i],"textord");o+=s.text}var l=parseInt(o),u;if(isNaN(l))throw new Le("\\@char has non-numeric argument "+o);if(l<0||l>=1114111)throw new Le("\\@char with invalid code point "+o);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var Qpe=(e,t)=>{var r=wn(e.body,t.withColor(e.color),!1);return Tl(r)},eme=(e,t)=>{var r=co(e.body,t.withColor(e.color)),n=new Pe("mstyle",r);return n.setAttribute("mathcolor",e.color),n};Ue({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,n=Ct(t[0],"color-token").color,a=t[1];return{type:"color",mode:r.mode,color:n,body:ln(a)}},htmlBuilder:Qpe,mathmlBuilder:eme});Ue({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:n}=e,a=Ct(t[0],"color-token").color;r.gullet.macros.set("\\current@color",a);var o=r.parseExpression(!0,n);return{type:"color",mode:r.mode,color:a,body:o}},htmlBuilder:Qpe,mathmlBuilder:eme});Ue({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:n}=e,a=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,o=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
570X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:o,size:a&&Ct(a,"size").value}},htmlBuilder(e,t){var r=we(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=Me(Or(e.size,t)))),r},mathmlBuilder(e,t){var r=new Pe("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",Me(Or(e.size,t)))),r}});var oD={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},tme=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Le("Expected a control sequence",e);return t},$Ye=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},rme=(e,t,r,n)=>{var a=e.gullet.macros.get(r.text);a==null&&(r.noexpand=!0,a={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,a,n)};Ue({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var n=t.fetch();if(oD[n.text])return(r==="\\global"||r==="\\\\globallong")&&(n.text=oD[n.text]),Ct(t.parseFunction(),"internal");throw new Le("Invalid token after macro prefix",n)}});Ue({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=t.gullet.popToken(),a=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new Le("Expected a control sequence",n);for(var o=0,i,s=[[]];t.gullet.future().text!=="{";)if(n=t.gullet.popToken(),n.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),s[o].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Le('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Le('Argument number "'+n.text+'" out of order');o++,s.push([])}else{if(n.text==="EOF")throw new Le("Expected a macro definition");s[o].push(n.text)}var{tokens:l}=t.gullet.consumeArg();return i&&l.unshift(i),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(a,{tokens:l,numArgs:o,delimiters:s},r===oD[r]),{type:"internal",mode:t.mode}}});Ue({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=tme(t.gullet.popToken());t.gullet.consumeSpaces();var a=$Ye(t);return rme(t,n,a,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Ue({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,n=tme(t.gullet.popToken()),a=t.gullet.popToken(),o=t.gullet.popToken();return rme(t,n,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var hb=function(t,r,n){var a=Ir.math[t]&&Ir.math[t].replace,o=pD(a||t,r,n);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},bD=function(t,r,n,a){var o=n.havingBaseStyle(r),i=we(a.concat(o.sizingClasses(n)),[t],n),s=o.sizeMultiplier/n.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=o.sizeMultiplier,i},nme=function(t,r,n){var a=r.havingBaseStyle(n),o=(1-r.sizeMultiplier/a.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Me(o),t.height-=o,t.depth+=o},OYe=function(t,r,n,a,o,i){var s=ya(t,"Main-Regular",o,a),l=bD(s,r,a,i);return n&&nme(l,a,r),l},MYe=function(t,r,n,a){return ya(t,"Size"+r+"-Regular",n,a)},ame=function(t,r,n,a,o,i){var s=MYe(t,r,o,a),l=bD(we(["delimsizing","size"+r],[s],a),gt.TEXT,a,i);return n&&nme(l,a,gt.TEXT),l},j9=function(t,r,n){var a;r==="Size1-Regular"?a="delim-size1":a="delim-size4";var o=we(["delimsizinginner",a],[we([],[ya(t,r,n)])]);return{type:"elem",elem:o}},B9=function(t,r,n){var a=fs["Size4-Regular"][t.charCodeAt(0)]?fs["Size4-Regular"][t.charCodeAt(0)][4]:fs["Size1-Regular"][t.charCodeAt(0)][4],o=new ps("inner",KXe(t,Math.round(1e3*r))),i=new ki([o],{width:Me(a),height:Me(r),style:"width:"+Me(a),viewBox:"0 0 "+1e3*a+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Ju([],[i],n);return s.height=r,s.style.height=Me(r),s.style.width=Me(a),{type:"elem",elem:s}},iD=.008,qk={type:"kern",size:-1*iD},RYe=new Set(["|","\\lvert","\\rvert","\\vert"]),DYe=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ome=function(t,r,n,a,o,i){var s,l,u,d,f="",m=0;s=u=d=t,l=null;var h="Size1-Regular";t==="\\uparrow"?u=d="\u23D0":t==="\\Uparrow"?u=d="\u2016":t==="\\downarrow"?s=u="\u23D0":t==="\\Downarrow"?s=u="\u2016":t==="\\updownarrow"?(s="\\uparrow",u="\u23D0",d="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="\u2016",d="\\Downarrow"):RYe.has(t)?(u="\u2223",f="vert",m=333):DYe.has(t)?(u="\u2225",f="doublevert",m=556):t==="["||t==="\\lbrack"?(s="\u23A1",u="\u23A2",d="\u23A3",h="Size4-Regular",f="lbrack",m=667):t==="]"||t==="\\rbrack"?(s="\u23A4",u="\u23A5",d="\u23A6",h="Size4-Regular",f="rbrack",m=667):t==="\\lfloor"||t==="\u230A"?(u=s="\u23A2",d="\u23A3",h="Size4-Regular",f="lfloor",m=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",u=d="\u23A2",h="Size4-Regular",f="lceil",m=667):t==="\\rfloor"||t==="\u230B"?(u=s="\u23A5",d="\u23A6",h="Size4-Regular",f="rfloor",m=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",u=d="\u23A5",h="Size4-Regular",f="rceil",m=667):t==="("||t==="\\lparen"?(s="\u239B",u="\u239C",d="\u239D",h="Size4-Regular",f="lparen",m=875):t===")"||t==="\\rparen"?(s="\u239E",u="\u239F",d="\u23A0",h="Size4-Regular",f="rparen",m=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",l="\u23A8",d="\u23A9",u="\u23AA",h="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",l="\u23AC",d="\u23AD",u="\u23AA",h="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",d="\u23A9",u="\u23AA",h="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",d="\u23AD",u="\u23AA",h="Size4-Regular"):t==="\\lmou
570stache"||t==="\u23B0"?(s="\u23A7",d="\u23AD",u="\u23AA",h="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",d="\u23A9",u="\u23AA",h="Size4-Regular");var g=hb(s,h,o),y=g.height+g.depth,b=hb(u,h,o),w=b.height+b.depth,S=hb(d,h,o),x=S.height+S.depth,C=0,I=1;if(l!==null){var A=hb(l,h,o);C=A.height+A.depth,I=2}var O=y+x+C,F=Math.max(0,Math.ceil((r-O)/(I*w))),q=O+F*I*w,G=a.fontMetrics().axisHeight;n&&(G*=a.sizeMultiplier);var J=q/2-G,Y=[];if(f.length>0){var le=q-y-x,re=Math.round(q*1e3),oe=JXe(f,Math.round(le*1e3)),$=new ps(f,oe),z=Me(m/1e3),R=Me(re/1e3),N=new ki([$],{width:z,height:R,viewBox:"0 0 "+m+" "+re}),U=Ju([],[N],a);U.height=re/1e3,U.style.width=z,U.style.height=R,Y.push({type:"elem",elem:U})}else{if(Y.push(j9(d,h,o)),Y.push(qk),l===null){var B=q-y-x+2*iD;Y.push(B9(u,B,a))}else{var V=(q-y-x-C)/2+2*iD;Y.push(B9(u,V,a)),Y.push(qk),Y.push(j9(l,h,o)),Y.push(qk),Y.push(B9(u,V,a))}Y.push(qk),Y.push(j9(s,h,o))}var Z=a.havingBaseStyle(gt.TEXT),Q=Ht({positionType:"bottom",positionData:J,children:Y});return bD(we(["delimsizing","mult"],[Q],Z),gt.TEXT,a,i)},F9=80,U9=.08,q9=function(t,r,n,a,o){var i=WXe(t,a,n),s=new ps(t,i),l=new ki([s],{width:"400em",height:Me(r),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ju(["hide-tail"],[l],o)},NYe=function(t,r){var n=r.havingBaseSizing(),a=cme("\\surd",t*n.sizeMultiplier,ume,n),o=n.sizeMultiplier,i=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,l=0,u=0,d=0,f;return a.type==="small"?(d=1e3+1e3*i+F9,t<1?o=1:t<1.4&&(o=.7),l=(1+i+U9)/o,u=(1+i)/o,s=q9("sqrtMain",l,d,i,r),s.style.minWidth="0.853em",f=.833/o):a.type==="large"?(d=(1e3+F9)*gb[a.size],u=(gb[a.size]+i)/o,l=(gb[a.size]+i+U9)/o,s=q9("sqrtSize"+a.size,l,d,i,r),s.style.minWidth="1.02em",f=1/o):(l=t+i+U9,u=t+i,d=Math.floor(1e3*t+i)+F9,s=q9("sqrtTall",l,d,i,r),s.style.minWidth="0.742em",f=1.056),s.height=u,s.style.height=Me(l),{span:s,advanceWidth:f,ruleWidth:(r.fontMetrics().sqrtRuleThickness+i)*o}},ime=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),zYe=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),sme=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),gb=[0,1.2,1.8,2.4,3],lme=function(t,r,n,a,o){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),ime.has(t)||sme.has(t))return ame(t,r,!1,n,a,o);if(zYe.has(t))return ome(t,gb[r],!1,n,a,o);throw new Le("Illegal delimiter: '"+t+"'")},jYe=[{type:"small",style:gt.SCRIPTSCRIPT},{type:"small",style:gt.SCRIPT},{type:"small",style:gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],BYe=[{type:"small",style:gt.SCRIPTSCRIPT},{type:"small",style:gt.SCRIPT},{type:"small",style:gt.TEXT},{type:"stack"}],ume=[{type:"small",style:gt.SCRIPTSCRIPT},{type:"small",style:gt.SCRIPT},{type:"small",style:gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],FYe=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},cme=function(t,r,n,a){for(var o=Math.min(2,3-a.style.size),i=o;i<n.length;i++){var s=n[i];if(s.type==="stack")break;var l=hb(t,FYe(s),"math"),u=l.height+l.depth;if(s.type==="small"){var d=a.havingBaseStyle(s.style);u*=d.sizeMultiplier}if(u>r)return s}return n[n.length-1]},sD=function(t,r,n,a,o,i){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;sme.has(t)?s=jYe:ime.has(t)?s=ume:s=BYe;var l=cme(t,r,s,a);return l.type==="small"?OYe(t,l.style,n,a,o,i):l.type==="large"?ame(t,l.size,n,a,o,i):ome(t,r,n,a,o,i)},V9=function(t,r,n,a,o,i){var s=a.fontMetrics().axisHeight*a.sizeMultiplier,l=901,u=5/a.fontMetrics().ptPerEm,d=Math.max(r-s,n+s),f=Math.max(d/500*l,2*d-u);return sD(t,f,!0,a,o,i)},hpe={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},UYe=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function uI(e,t){var r=sI(e);if(r&&UYe.has(r.text))return r;
vendor: 60,026 bytes, lines 570-574
570throw r?new Le("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new Le("Invalid delimiter type '"+e.type+"'",e)}Ue({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=uI(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:hpe[e.funcName].size,mclass:hpe[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?we([e.mclass]):lme(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Uo(e.delim,e.mode));var r=new Pe("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var n=Me(gb[e.size]);return r.setAttribute("minsize",n),r.setAttribute("maxsize",n),r}});function gpe(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ue({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new Le("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:uI(t[0],e).text,color:r}}});Ue({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=uI(t[0],e),n=e.parser;++n.leftrightDepth;var a=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=Ct(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:a,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{gpe(e);for(var r=wn(e.body,t,!0,["mopen","mclose"]),n=0,a=0,o=!1,i=0;i<r.length;i++)r[i].isMiddle?o=!0:(n=Math.max(r[i].height,n),a=Math.max(r[i].depth,a));n*=t.sizeMultiplier,a*=t.sizeMultiplier;var s;if(e.left==="."?s=xb(t,["mopen"]):s=V9(e.left,n,a,t,e.mode,["mopen"]),r.unshift(s),o)for(var l=1;l<r.length;l++){var u=r[l],d=u.isMiddle;d&&(r[l]=V9(d.delim,n,a,d.options,e.mode,[]))}var f;if(e.right===".")f=xb(t,["mclose"]);else{var m=e.rightColor?t.withColor(e.rightColor):t;f=V9(e.right,n,a,m,e.mode,["mclose"])}return r.push(f),we(["minner"],r,t)},mathmlBuilder:(e,t)=>{gpe(e);var r=co(e.body,t);if(e.left!=="."){var n=new Pe("mo",[Uo(e.left,e.mode)]);n.setAttribute("fence","true"),r.unshift(n)}if(e.right!=="."){var a=new Pe("mo",[Uo(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),r.push(a)}return gD(r)}});Ue({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=uI(t[0],e);if(!e.parser.leftrightDepth)throw new Le("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=xb(t,[]);else{r=lme(e.delim,1,t,e.mode,[]);var n={delim:e.delim,options:t};r.isMiddle=n}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Uo("|","text"):Uo(e.delim,e.mode),n=new Pe("mo",[r]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var cI=(e,t)=>{var r=vh(Gt(e.body,t),t),n=e.label.slice(1),a=t.sizeMultiplier,o,i=0,s=kl(e.body);if(n==="sout")o=we(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/a,i=-.5*t.fontMetrics().xHeight;else if(n==="phase"){var l=Or({number:.6,unit:"pt"},t),u=Or({number:.35,unit:"ex"},t),d=t.havingBaseSizing();a=a/d.sizeMultiplier;var f=r.height+r.depth+l+u;r.style.paddingLeft=Me(f/2+l);var m=Math.floor(1e3*f*a),h=HXe(m),g=new ki([new ps("phase",h)],{width:"400em",height:Me(m/1e3),viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});o=Ju(["hide-tail"],[g],t),o.style.height=Me(f),i=r.depth+l+u}else{/cancel/.test(n)?s||r.classes.push("cancel-pad"):n==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var y=0,b=0,w=0;/box/.test(n)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),y=t.fontMetrics().fboxsep+(n==="colorbox"?0:w),b=y):n==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),y=4*w,b=Math.max(0,.25-r.depth)):(y=s?.2:0,b=y),o=TYe(r,n,y,b,t),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=Me(w)):n==="angl"&&w!==.049&&(o.style.borderTopWidth=Me(w),o.style.borderRightWidth=Me(w)),i=r.depth+b,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var S;if(e.backgroundColor)S=Ht({positionType:"individualShift",children:[{type:"elem",elem:o,shift:i},{type:"elem",elem:r,shift:0}]});else{var x=/cancel|phase/.test(n)?["svg-align"]:[];S=Ht({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:i,wrapperClasses:x}]})}return/cancel/.test(n)&&(S.height=r.height,S.depth=r.depth),/cancel/.test(n)&&!s?we(["mord","cancel-lap"],[S],t):we(["mord"],[S],t)},dI=(e,t)=>{var r=0,n=new Pe(e.label.includes("colorbox")?"mpadded":"menclose",[mr(e.body,t)]);switch(e.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*r+"pt"),n.setAttribute("height","+"+2*r+"pt"),n.setAttribute("lspace",r+"pt"),n.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);n.setAttribute("style","border: "+Me(a)+" solid "+e.borderColor)}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&n.setAttribute("mathbackground",e.backgroundColor),n};Ue({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,o=Ct(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:n.mode,label:a,backgroundColor:o,body:i}},htmlBuilder:cI,mathmlBuilder:dI});Ue({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:n,funcName:a}=e,o=Ct(t[0],"color-token").color,i=Ct(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:n.mode,label:a,backgroundColor:i,borderColor:o,body:s}},htmlBuilder:cI,mathmlBuilder:dI});Ue({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Ue({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:cI,mathmlBuilder:dI});Ue({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var a=t[0];return{type:"enclose",mode:r.mode,label:n,body:a}},htmlBuilder:cI,mathmlBuilder:dI});Ue({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var dme={};function ms(e){for(var{type:t,names:r,props:n,handler:a,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},l=0;l<r.length;++l)dme[r[l]]=s;o&&(Kk[t]=o),i&&(Jk[t]=i)}var fme={};function j(e,t){fme[e]=t}var ja=class e{constructor(t,r,n){this.lexer=t,this.start=r,this.end=n}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new e(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}},lo=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,ja.range(this,t))}};function vpe(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var fI=e=>{var t=e.parser.settings;if(!t.displayMode)throw new Le("{"+e.envName+"} can be used only in display mode.")},qYe=new Set(["gather","gather*"]);function xD(e){if(!e.includes("ed"))return!e.includes("*")}function Yu(e,t,r){var{hskipBeforeAndAfter:n,addJot:a,cols:o,arraystretch:i,colSeparationType:s,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:m}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var h=e.gullet.expandMacroAsText("\\arraystretch");if(h==null)i=1;else if(i=parseFloat(h),!i||i<0)throw new Le("Invalid \\arraystretch: "+h)}e.gullet.beginGroup();var g=[],y=[g],b=[],w=[],S=l!=null?[]:void 0;function x(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){S&&(e.gullet.macros.get("\\df@tag")?(S.push(e.subparse([new lo("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):S.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),w.push(vpe(e));;){var I=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var A={type:"ordgroup",mode:e.mode,body:I};r&&(A={type:"styling",mode:e.mode,style:r,body:[A]}),g.push(A);var O=e.fetch().text;if(O==="&"){if(f&&g.length===f){if(u||s)throw new Le("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(O==="\\end"){C(),g.length===1&&A.type==="styling"&&A.body.length===1&&A.body[0].type==="ordgroup"&&A.body[0].body.length===0&&(y.length>1||!d)&&y.pop(),w.length<y.length+1&&w.push([]);break}else if(O==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),b.push(F?F.value:null),C(),w.push(vpe(e)),g=[],y.push(g),x()}else throw new Le("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:i,body:y,cols:o,rowGaps:b,hskipBeforeAndAfter:n,hLinesBeforeRow:w,colSeparationType:s,tags:S,leqno:m}}function wD(e){return e.slice(0,1)==="d"?"display":"text"}var hs=function(t,r){var n,a,o=t.body.length,i=t.hLinesBeforeRow,s=0,l=new Array(o),u=[],d=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),f=1/r.fontMetrics().ptPerEm,m=5*f;if(t.colSeparationType&&t.colSeparationType==="small"){var h=r.havingStyle(gt.SCRIPT).sizeMultiplier;m=.2778*(h/r.sizeMultiplier)}var g=t.colSeparationType==="CD"?Or({number:3,unit:"ex"},r):12*f,y=3*f,b=t.arraystretch*g,w=.7*b,S=.3*b,x=0;function C(Ai){for(var Jo=0;Jo<Ai.length;++Jo)Jo>0&&(x+=.25),u.push({pos:x,isDashed:Ai[Jo]})}for(C(i[0]),n=0;n<t.body.length;++n){var I=t.body[n],A=w,O=S;s<I.length&&(s=I.length);var F=new Array(I.length);for(a=0;a<I.length;++a){var q=Gt(I[a],r);O<q.depth&&(O=q.depth),A<q.height&&(A=q.height),F[a]=q}var G=t.rowGaps[n],J=0;G&&(J=Or(G,r),J>0&&(J+=S,O<J&&(O=J),J=0)),t.addJot&&n<t.body.length-1&&(O+=y),F.height=A,F.depth=O,x+=A,F.pos=x,x+=O+J,l[n]=F,C(i[n+1])}var Y=x/2+r.fontMetrics().axisHeight,le=t.cols||[],re=[],oe,$,z=[];if(t.tags&&t.tags.some(Ai=>Ai))for(n=0;n<o;++n){var R=l[n],N=R.pos-Y,U=t.tags[n],B=void 0;U===!0?B=we(["eqn-num"],[],r):U===!1?B=we([],[],r):B=we([],wn(U,r,!0),r),B.depth=R.depth,B.height=R.height,z.push({type:"elem",elem:B,shift:N})}for(a=0,$=0;a<s||$<le.length;++a,++$){for(var V,Z=le[$],Q=!0;((ue=Z)==null?void 0:ue.type)==="separator";){var ue;if(Q||(oe=we(["arraycolsep"],[]),oe.style.width=Me(r.fontMetrics().doubleRuleSep),re.push(oe)),Z.separator==="|"||Z.separator===":"){var ge=Z.separator==="|"?"solid":"dashed",Te=we(["vertical-separator"],[],r);Te.style.height=Me(x),Te.style.borderRightWidth=Me(d),Te.style.borderRightStyle=ge,Te.style.margin="0 "+Me(-d/2);var De=x-Y;De&&(Te.style.verticalAlign=Me(-De)),re.push(Te)}else throw new Le("Invalid separator type: "+Z.separator);$++,Z=le[$],Q=!1}if(!(a>=s)){var me=void 0;if(a>0||t.hskipBeforeAndAfter){var Ze,Oe;me=(Ze=(Oe=Z)==null?void 0:Oe.pregap)!=null?Ze:m,me!==0&&(oe=we(["arraycolsep"],[]),oe.style.width=Me(me),re.push(oe))}var fe=[];for(n=0;n<o;++n){var Mt=l[n],at=Mt[a];if(at){var Ut=Mt.pos-Y;at.depth=Mt.depth,at.height=Mt.height,fe.push({type:"elem",elem:at,shift:Ut})}}var zt=Ht({positionType:"individualShift",children:fe}),Qt=we(["col-align-"+(((V=Z)==null?void 0:V.align)||"c")],[zt]);if(re.push(Qt),a<s-1||t.hskipBeforeAndAfter){var Vr,Dt;me=(Vr=(Dt=Z)==null?void 0:Dt.postgap)!=null?Vr:m,me!==0&&(oe=we(["arraycolsep"],[]),oe.style.width=Me(me),re.push(oe))}}}var dn=we(["mtable"],re);if(u.length>0){for(var fn=gh("hline",r,d),sr=gh("hdashline",r,d),_r=[{type:"elem",elem:dn,shift:0}];u.length>0;){var Kt=u.pop(),Ko=Kt.pos-Y;Kt.isDashed?_r.push({type:"elem",elem:sr,shift:Ko}):_r.push({type:"elem",elem:fn,shift:Ko})}dn=Ht({positionType:"individualShift",children:_r})}if(z.length===0)return we(["mord"],[dn],r);var ho=Ht({positionType:"individualShift",children:z}),Nl=we(["tag"],[ho],r);return Tl([dn,Nl])},VYe={c:"center ",l:"left ",r:"right "},gs=function(t,r){for(var n=[],a=new Pe("mtd",[],["mtr-glue"]),o=new Pe("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var s=t.body[i],l=[],u=0;u<s.length;u++)l.push(new Pe("mtd",[mr(s[u],r)]));t.tags&&t.tags[i]&&(l.unshift(a),l.push(a),t.leqno?l.unshift(o):l.push(o)),n.push(new Pe("mtr",l))}var d=new Pe("mtable",n),f=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);d.setAttribute("rowspacing",Me(f));var m="",h="";if(t.cols&&t.cols.length>0){var g=t.cols,y="",b=!1,w=0,S=g.length;g[0].type==="separator"&&(m+="top ",w=1),g[g.length-1].type==="separator"&&(m+="bottom ",S-=1);for(var x=w;x<S;x++){var C=g[x];C.type==="align"?(h+=VYe[C.align],b&&(y+="none "),b=!0):C.type==="separator"&&b&&(y+=C.separator==="|"?"solid ":"dashed ",b=!1)}d.setAttribute("columnalign",h.trim()),/[sd]/.test(y)&&d.setAttribute("columnlines",y.trim())}if(t.colSeparationType==="align"){for(var I=t.cols||[],A="",O=1;O<I.length;O++)A+=O%2?"0em ":"1em ";d.setAttribute("columnspacing",A.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?d.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?d.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?d.setAttribute("columnspacing","0.5em"):d.setAttribute("columnspacing","1em");var F="",q=t.hLinesBeforeRow;m+=q[0].length>0?"left ":"",m+=q[q.length-1].length>0?"right ":"";for(var G=1;G<q.length-1;G++)F+=q[G].length===0?"none ":q[G][0]?"dashed ":"solid ";return/[sd]/.test(F)&&d.setAttribute("rowlines",F.trim()),m!==""&&(d=new Pe("menclose",[d]),d.setAttribute("notation",m.trim())),t.arraystretch&&t.arraystretch<1&&(d=new Pe("mstyle",[d]),d.setAttribute("scriptlevel","1")),d},pme=function(t,r){t.envName.includes("ed")||fI(t);var n=[],a=t.envName.includes("at")?"alignat":"align",o=t.envName==="split",i=Yu(t.parser,{cols:n,addJot:!0,autoTag:o?void 0:xD(t.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var d="",f=0;f<r[0].body.length;f++){var m=Ct(r[0].body[f],"textord");d+=m.text}s=Number(d),l=s*2}var h=!l;i.body.forEach(function(w){for(var S=1;S<w.length;S+=2){var x=Ct(w[S],"styling"),C=Ct(x.body[0],"ordgroup");C.body.unshift(u)}if(h)l<w.length&&(l=w.length);else{var I=w.length/2;if(s<I)throw new Le("Too many math in a row: "+("expected "+s+", but got "+I),w[0])}});for(var g=0;g<l;++g){var y="r",b=0;g%2===1?y="l":g>0&&h&&(b=1),n[g]={type:"align",align:y,pregap:b,postgap:0}}return i.colSeparationType=h?"align":"alignat",i};ms({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=sI(t[0]),n=r?[t[0]]:Ct(t[0],"ordgroup").body,a=n.map(function(i){var s=iI(i),l=s.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Le("Unknown column alignment: "+l,i)}),o={cols:a,hskipBeforeAndAfter:!0,maxNumCols:a.length};return Yu(e.parser,o,wD(e.envName))},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var a=e.parser;if(a.consumeSpaces(),a.fetch().text==="["){if(a.consume(),a.consumeSpaces(),r=a.fetch().text,!"lcr".includes(r))throw new Le("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),n.cols=[{type:"align",align:r}]}}var o=Yu(e.parser,n,wD(e.envName)),i=Math.max(0,...o.body.map(s=>s.length));return o.cols=new Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Yu(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=sI(t[0]),n=r?[t[0]]:Ct(t[0],"ordgroup").body,a=n.map(function(s){var l=iI(s),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new Le("Unknown column alignment: "+u,s)});if(a.length>1)throw new Le("{subarray} can contain only one column");var o={cols:a,hskipBeforeAndAfter:!1,arraystretch:.5},i=Yu(e.parser,o,"script");if(i.body.length>0&&i.body[0].length>1)throw new Le("{subarray} can contain only one column");return i},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=Yu(e.parser,t,wD(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:pme,htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){qYe.has(e.envName)&&fI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:xD(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Yu(e.parser,t,"display")},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:pme,htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){fI(e);var t={autoTag:xD(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Yu(e.parser,t,"display")},htmlBuilder:hs,mathmlBuilder:gs});ms({type:"array",names:["CD"],props:{numArgs:0},handler(e){return fI(e),LYe(e.parser)},htmlBuilder:hs,mathmlBuilder:gs});j("\\nonumber","\\gdef\\@eqnsw{0}");j("\\notag","\\nonumber");Ue({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Le(e.funcName+" valid only within array environment")}});var ype=dme;Ue({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];if(a.type!=="ordgroup")throw new Le("Invalid environment name",a);for(var o="",i=0;i<a.body.length;++i)o+=Ct(a.body[i],"textord").text;if(n==="\\begin"){if(!ype.hasOwnProperty(o))throw new Le("No such environment: "+o,a);var s=ype[o],{args:l,optArgs:u}=r.parseArguments("\\begin{"+o+"}",s),d={mode:r.mode,envName:o,parser:r},f=s.handler(d,l,u);r.expect("\\end",!1);var m=r.nextToken,h=Ct(r.parseFunction(),"environment");if(h.name!==o)throw new Le("Mismatch: \\begin{"+o+"} matched by \\end{"+h.name+"}",m);return f}return{type:"environment",mode:r.mode,name:o,nameGroup:a}}});var mme=(e,t)=>{var r=e.font,n=t.withFont(r);return Gt(e.body,n)},hme=(e,t)=>{var r=e.font,n=t.withFont(r);return mr(e.body,n)},bpe={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ue({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=Xk(t[0]),o=n;return o in bpe&&(o=bpe[o]),{type:"font",mode:r.mode,font:o.slice(1),body:a}},htmlBuilder:mme,mathmlBuilder:hme});Ue({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:lI(n),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:n}],isCharacterBox:kl(n)}}});Ue({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,breakOnTokenText:a}=e,{mode:o}=r,i=r.parseExpression(!0,a),s="math"+n.slice(1);return{type:"font",mode:o,font:s,body:{type:"ordgroup",mode:r.mode,body:i}}},htmlBuilder:mme,mathmlBuilder:hme});var ZYe=(e,t)=>{var r=t.style,n=r.fracNum(),a=r.fracDen(),o;o=t.havingStyle(n);var i=Gt(e.numer,o,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;i.height=i.height<s?s:i.height,i.depth=i.depth<l?l:i.depth}o=t.havingStyle(a);var u=Gt(e.denom,o,t),d,f,m;e.hasBarLine?(e.barSize?(f=Or(e.barSize,t),d=gh("frac-line",t,f)):d=gh("frac-line",t),f=d.height,m=d.height):(d=null,f=0,m=t.fontMetrics().defaultRuleThickness);var h,g,y;r.size===gt.DISPLAY.size?(h=t.fontMetrics().num1,f>0?g=3*m:g=7*m,y=t.fontMetrics().denom1):(f>0?(h=t.fontMetrics().num2,g=m):(h=t.fontMetrics().num3,g=3*m),y=t.fontMetrics().denom2);var b;if(d){var S=t.fontMetrics().axisHeight;h-i.depth-(S+.5*f)<g&&(h+=g-(h-i.depth-(S+.5*f))),S-.5*f-(u.height-y)<g&&(y+=g-(S-.5*f-(u.height-y)));var x=-(S-.5*f);b=Ht({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:d,shift:x},{type:"elem",elem:i,shift:-h}]})}else{var w=h-i.depth-(u.height-y);w<g&&(h+=.5*(g-w),y+=.5*(g-w)),b=Ht({positionType:"individualShift",children:[{type:"elem",elem:u,shift:y},{type:"elem",elem:i,shift:-h}]})}o=t.havingStyle(r),b.height*=o.sizeMultiplier/t.sizeMultiplier,b.depth*=o.sizeMultiplier/t.sizeMultiplier;var C;r.size===gt.DISPLAY.size?C=t.fontMetrics().delim1:r.size===gt.SCRIPTSCRIPT.size?C=t.havingStyle(gt.SCRIPT).fontMetrics().delim2:C=t.fontMetrics().delim2;var I,A;return e.leftDelim==null?I=xb(t,["mopen"]):I=sD(e.leftDelim,C,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?A=we([]):e.rightDelim==null?A=xb(t,["mclose"]):A=sD(e.rightDelim,C,!0,t.havingStyle(r),e.mode,["mclose"]),we(["mord"].concat(o.sizingClasses(t)),[I,we(["mfrac"],[b]),A],t)},HYe=(e,t)=>{var r=new Pe("mfrac",[mr(e.numer,t),mr(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var n=Or(e.barSize,t);r.setAttribute("linethickness",Me(n))}if(e.leftDelim!=null||e.rightDelim!=null){var a=[];if(e.leftDelim!=null){var o=new Pe("mo",[new Ur(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),a.push(o)}if(a.push(r),e.rightDelim!=null){var i=new Pe("mo",[new Ur(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),a.push(i)}return gD(a)}return r},gme=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Ue({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],o=t[1],i,s=null,l=null;switch(n){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,s="(",l=")";break;case"\\\\bracefrac":i=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":i=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=n==="\\cfrac",d=null;return u||n.startsWith("\\d")?d="display":n.startsWith("\\t")&&(d="text"),gme({type:"genfrac",mode:r.mode,numer:a,denom:o,continued:u,hasBarLine:i,leftDelim:s,rightDelim:l,barSize:null},d)},htmlBuilder:ZYe,mathmlBuilder:HYe});Ue({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:n}=e,a;switch(r){case"\\over":a="\\frac";break;case"\\choose":a="\\binom";break;case"\\atop":a="\\\\atopfrac";break;case"\\brace":a="\\\\bracefrac";break;case"\\brack":a="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:a,token:n}}});var xpe=["display","text","script","scriptscript"],wpe=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Ue({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,n=t[4],a=t[5],o=Xk(t[0]),i=o.type==="atom"&&o.family==="open"?wpe(o.text):null,s=Xk(t[1]),l=s.type==="atom"&&s.family==="close"?wpe(s.text):null,u=Ct(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var m=null,h=t[3];if(h.type==="ordgroup"){if(h.body.length>0){var g=Ct(h.body[0],"textord");m=xpe[Number(g.text)]}}else h=Ct(h,"textord"),m=xpe[Number(h.text)];return gme({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:d,barSize:f,leftDelim:i,rightDelim:l},m)}});Ue({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:n,token:a}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ct(t[0],"size").value,token:a}}});Ue({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0],o=Ct(t[1],"infix").size;if(!o)throw new Error("\\\\abovefrac expected size, but got "+String(o));var i=t[2],s=o.number>0;return{type:"genfrac",mode:r.mode,numer:a,denom:i,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null}}});var vme=(e,t)=>{var r=t.style,n,a;e.type==="supsub"?(n=e.sup?Gt(e.sup,t.havingStyle(r.sup()),t):Gt(e.sub,t.havingStyle(r.sub()),t),a=Ct(e.base,"horizBrace")):a=Ct(e,"horizBrace");var o=Gt(a.base,t.havingBaseStyle(gt.DISPLAY)),i=oI(a,t),s;if(a.isOver?(s=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:i}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=Ht({positionType:"bottom",positionData:o.depth+.1+i.height,children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:o}]}),s.children[0].children[0].children[0].classes.push("svg-align")),n){var l=we(["minner",a.isOver?"mover":"munder"],[s],t);a.isOver?s=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]}):s=Ht({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]})}return we(["minner",a.isOver?"mover":"munder"],[s],t)},GYe=(e,t)=>{var r=aI(e.label);return new Pe(e.isOver?"mover":"munder",[mr(e.base,t),r])};Ue({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:n}=e;return{type:"horizBrace",mode:r.mode,label:n,isOver:n.includes("\\over"),base:t[0]}},htmlBuilder:vme,mathmlBuilder:GYe});Ue({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[1],a=Ct(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:r.mode,href:a,body:ln(n)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=wn(e.body,t,!1);return cYe(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Xu(e.body,t);return r instanceof Pe||(r=new Pe("mrow",[r])),r.setAttribute("href",e.href),r}});Ue({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=Ct(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:n}))return r.formatUnsupportedCmd("\\url");for(var a=[],o=0;o<n.length;o++){var i=n[o];i==="~"&&(i="\\textasciitilde"),a.push({type:"textord",mode:"text",text:i})}var s={type:"text",mode:r.mode,font:"\\texttt",body:a};return{type:"href",mode:r.mode,href:n,body:ln(s)}}});Ue({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:ln(t[0])}},htmlBuilder(e,t){var r=wn(e.body,t,!1);return Tl(r)},mathmlBuilder(e,t){return new Pe("mrow",co(e.body,t))}});Ue({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n,token:a}=e,o=Ct(t[0],"raw").string,i=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,l={};switch(n){case"\\htmlClass":l.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var u=o.split(","),d=0;d<u.length;d++){var f=u[d],m=f.indexOf("=");if(m<0)throw new Le("\\htmlData key/value '"+f+"' missing equals sign");var h=f.slice(0,m),g=f.slice(m+1);l["data-"+h.trim()]=g}s={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:l,body:ln(i)}:r.formatUnsupportedCmd(n)},htmlBuilder:(e,t)=>{var r=wn(e.body,t,!1),n=["enclosing"];e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/));var a=we(n,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&a.setAttribute(o,e.attributes[o]);return a},mathmlBuilder:(e,t)=>Xu(e.body,t)});Ue({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:ln(t[0]),mathml:ln(t[1])}},htmlBuilder:(e,t)=>{var r=wn(e.html,t,!1);return Tl(r)},mathmlBuilder:(e,t)=>Xu(e.mathml,t)});var Z9=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new Le("Invalid size: '"+t+"' in \\includegraphics");var n={number:+(r[1]+r[2]),unit:r[3]};if(!Rpe(n))throw new Le("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Ue({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:n}=e,a={number:0,unit:"em"},o={number:.9,unit:"em"},i={number:0,unit:"em"},s="";if(r[0])for(var l=Ct(r[0],"raw").string,u=l.split(","),d=0;d<u.length;d++){var f=u[d].split("=");if(f.length===2){var m=f[1].trim();switch(f[0].trim()){case"alt":s=m;break;case"width":a=Z9(m);break;case"height":o=Z9(m);break;case"totalheight":i=Z9(m);break;default:throw new Le("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var h=Ct(t[0],"url").url;return s===""&&(s=h,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),n.settings.isTrusted({command:"\\includegraphics",url:h})?{type:"includegraphics",mode:n.mode,alt:s,width:a,height:o,totalheight:i,src:h}:n.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Or(e.height,t),n=0;e.totalheight.number>0&&(n=Or(e.totalheight,t)-r);var a=0;e.width.number>0&&(a=Or(e.width,t));var o={height:Me(r+n)};a>0&&(o.width=Me(a)),n>0&&(o.verticalAlign=Me(-n));var i=new Y9(e.src,e.alt,o);return i.height=r,i.depth=n,i},mathmlBuilder:(e,t)=>{var r=new Pe("mglyph",[]);r.setAttribute("alt",e.alt);var n=Or(e.height,t),a=0;if(e.totalheight.number>0&&(a=Or(e.totalheight,t)-n,r.setAttribute("valign",Me(-a))),r.setAttribute("height",Me(n+a)),e.width.number>0){var o=Or(e.width,t);r.setAttribute("width",Me(o))}return r.setAttribute("src",e.src),r}});Ue({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=Ct(t[0],"size");if(r.settings.strict){var o=n[1]==="m",i=a.value.unit==="mu";o?(i||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+a.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):i&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:a.value}},htmlBuilder(e,t){return Fpe(e.dimension,t)},mathmlBuilder(e,t){var r=Or(e.dimension,t);return new Yk(r)}});Ue({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"lap",mode:r.mode,alignment:n.slice(5),body:a}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=we([],[Gt(e.body,t)]),r=we(["inner"],[r],t)):r=we(["inner"],[Gt(e.body,t)]);var n=we(["fix"],[]),a=we([e.alignment],[r,n],t),o=we(["strut"]);return o.style.height=Me(a.height+a.depth),a.depth&&(o.style.verticalAlign=Me(-a.depth)),a.children.unshift(o),a=we(["thinbox"],[a],t),we(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var r=new Pe("mpadded",[mr(e.body,t)]);if(e.alignment!=="rlap"){var n=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",n+"width")}return r.setAttribute("width","0px"),r}});Ue({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:n}=e,a=n.mode;n.switchMode("math");var o=r==="\\("?"\\)":"$",i=n.parseExpression(!1,o);return n.expect(o),n.switchMode(a),{type:"styling",mode:n.mode,style:"text",body:i}}});Ue({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Le("Mismatched "+e.funcName)}});var _pe=(e,t)=>{switch(t.style.size){case gt.DISPLAY.size:return e.display;case gt.TEXT.size:return e.text;case gt.SCRIPT.size:return e.script;case gt.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ue({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:ln(t[0]),text:ln(t[1]),script:ln(t[2]),scriptscript:ln(t[3])}},htmlBuilder:(e,t)=>{var r=_pe(e,t),n=wn(r,t,!1);return Tl(n)},mathmlBuilder:(e,t)=>{var r=_pe(e,t);return Xu(r,t)}});var yme=(e,t,r,n,a,o,i)=>{e=we([],[e]);var s=r&&kl(r),l,u;if(t){var d=Gt(t,n.havingStyle(a.sup()),n);u={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(r){var f=Gt(r,n.havingStyle(a.sub()),n);l={elem:f,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-f.height)}}var m;if(u&&l){var h=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+i;m=Ht({positionType:"bottom",positionData:h,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Me(-o)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Me(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else if(l){var g=e.height-i;m=Ht({positionType:"top",positionData:g,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Me(-o)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(u){var y=e.depth+i;m=Ht({positionType:"bottom",positionData:y,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Me(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]})}else return e;var b=[m];if(l&&o!==0&&!s){var w=we(["mspace"],[],n);w.style.marginRight=Me(o),b.unshift(w)}return we(["mop","op-limits"],b,n)},bme=new Set(["\\smallint"]),bh=(e,t)=>{var r,n,a=!1,o;e.type==="supsub"?(r=e.sup,n=e.sub,o=Ct(e.base,"op"),a=!0):o=Ct(e,"op");var i=t.style,s=!1;i.size===gt.DISPLAY.size&&o.symbol&&!bme.has(o.name)&&(s=!0);var l;if(o.symbol){var u=s?"Size2-Regular":"Size1-Regular",d="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(d=o.name.slice(1),o.name=d==="oiint"?"\\iint":"\\iiint"),l=ya(o.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),d.length>0){var f=l.italic,m=qpe(d+"Size"+(s?"2":"1"),t);l=Ht({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:m,shift:s?.08:0}]}),o.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(o.body){var h=wn(o.body,t,!0);h.length===1&&h[0]instanceof xa?(l=h[0],l.classes[0]="mop"):l=we(["mop"],h,t)}else{for(var g=[],y=1;y<o.name.length;y++)g.push(mD(o.name[y],o.mode,t));l=we(["mop"],g,t)}var b=0,w=0;return(l instanceof xa||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(b=(l.height-l.depth)/2-t.fontMetrics().axisHeight,w=l.italic||0),a?yme(l,r,n,t,i,w,b):(b&&(l.style.position="relative",l.style.top=Me(b)),l)},_b=(e,t)=>{var r;if(e.symbol)r=new Pe("mo",[Uo(e.name,e.mode)]),bme.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new Pe("mo",co(e.body,t));else{r=new Pe("mi",[new Ur(e.name.slice(1))]);var n=new Pe("mo",[Uo("\u2061","text")]);e.parentIsSupSub?r=new Pe("mrow",[r,n]):r=Hpe([r,n])}return r},WYe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ue({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=n;return a.length===1&&(a=WYe[a]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:bh,mathmlBuilder:_b});Ue({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ln(n)}},htmlBuilder:bh,mathmlBuilder:_b});var KYe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ue({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:bh,mathmlBuilder:_b});Ue({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:bh,mathmlBuilder:_b});Ue({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,n=r;return n.length===1&&(n=KYe[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:bh,mathmlBuilder:_b});var xme=(e,t)=>{var r,n,a=!1,o;e.type==="supsub"?(r=e.sup,n=e.sub,o=Ct(e.base,"operatorname"),a=!0):o=Ct(e,"operatorname");var i;if(o.body.length>0){for(var s=o.body.map(f=>{var m="text"in f?f.text:void 0;return typeof m=="string"?{type:"textord",mode:f.mode,text:m}:f}),l=wn(s,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var d=l[u];d instanceof xa&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=we(["mop"],l,t)}else i=we(["mop"],[],t);return a?yme(i,r,n,t,t.style,0,0):i},JYe=(e,t)=>{for(var r=co(e.body,t.withFont("mathrm")),n=!0,a=0;a<r.length;a++){var o=r[a];if(!(o instanceof Yk))if(o instanceof Pe)switch(o.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var i=o.children[0];o.children.length===1&&i instanceof Ur?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):n=!1;break}default:n=!1}else n=!1}if(n){var s=r.map(d=>d.toText()).join("");r=[new Ur(s)]}var l=new Pe("mi",r);l.setAttribute("mathvariant","normal");var u=new Pe("mo",[Uo("\u2061","text")]);return e.parentIsSupSub?new Pe("mrow",[l,u]):Hpe([l,u])};Ue({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:n}=e,a=t[0];return{type:"operatorname",mode:r.mode,body:ln(a),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:xme,mathmlBuilder:JYe});j("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");$d({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Tl(wn(e.body,t,!1)):we(["mord"],wn(e.body,t,!0),t)},mathmlBuilder(e,t){return Xu(e.body,t,!0)}});Ue({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,n=t[0];return{type:"overline",mode:r.mode,body:n}},htmlBuilder(e,t){var r=Gt(e.body,t.havingCrampedStyle()),n=gh("overline-line",t),a=t.fontMetrics().defaultRuleThickness,o=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*a},{type:"elem",elem:n},{type:"kern",size:a}]});return we(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new Pe("mo",[new Ur("\u203E")]);r.setAttribute("stretchy","true");var n=new Pe("mover",[mr(e.body,t),r]);return n.setAttribute("accent","true"),n}});Ue({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"phantom",mode:r.mode,body:ln(n)}},htmlBuilder:(e,t)=>{var r=wn(e.body,t.withPhantom(),!1);return Tl(r)},mathmlBuilder:(e,t)=>{var r=co(e.body,t);return new Pe("mphantom",r)}});j("\\hphantom","\\smash{\\phantom{#1}}");Ue({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,n=t[0];return{type:"vphantom",mode:r.mode,body:n}},htmlBuilder:(e,t)=>{var r=we(["inner"],[Gt(e.body,t.withPhantom())]),n=we(["fix"],[]);return we(["mord","rlap"],[r,n],t)},mathmlBuilder:(e,t)=>{var r=co(ln(e.body),t),n=new Pe("mphantom",r),a=new Pe("mpadded",[n]);return a.setAttribute("width","0px"),a}});Ue({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,n=Ct(t[0],"size").value,a=t[1];return{type:"raisebox",mode:r.mode,dy:n,body:a}},htmlBuilder(e,t){var r=Gt(e.body,t),n=Or(e.dy,t);return Ht({positionType:"shift",positionData:-n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new Pe("mpadded",[mr(e.body,t)]),n=e.dy.number+e.dy.unit;return r.setAttribute("voffset",n),r}});Ue({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Ue({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:n}=e,a=r[0],o=Ct(t[0],"size"),i=Ct(t[1],"size");return{type:"rule",mode:n.mode,shift:a&&Ct(a,"size").value,width:o.value,height:i.value}},htmlBuilder(e,t){var r=we(["mord","rule"],[],t),n=Or(e.width,t),a=Or(e.height,t),o=e.shift?Or(e.shift,t):0;return r.style.borderRightWidth=Me(n),r.style.borderTopWidth=Me(a),r.style.bottom=Me(o),r.width=n,r.height=a+o,r.depth=-o,r.maxFontSize=a*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Or(e.width,t),n=Or(e.height,t),a=e.shift?Or(e.shift,t):0,o=t.color&&t.getColor()||"black",i=new Pe("mspace");i.setAttribute("mathbackground",o),i.setAttribute("width",Me(r)),i.setAttribute("height",Me(n));var s=new Pe("mpadded",[i]);return a>=0?s.setAttribute("height",Me(a)):(s.setAttribute("height",Me(a)),s.setAttribute("depth",Me(-a))),s.setAttribute("voffset",Me(a)),s}});function wme(e,t,r){for(var n=wn(e,t,!1),a=t.sizeMultiplier/r.sizeMultiplier,o=0;o<n.length;o++){var i=n[o].classes.indexOf("sizing");i<0?Array.prototype.push.apply(n[o].classes,t.sizingClasses(r)):n[o].classes[i+1]==="reset-size"+t.size&&(n[o].classes[i+1]="reset-size"+r.size),n[o].height*=a,n[o].depth*=a}return Tl(n)}var Spe=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],XYe=(e,t)=>{var r=t.havingSize(e.size);return wme(e.body,r,t)};Ue({type:"sizing",names:Spe,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:n,parser:a}=e,o=a.parseExpression(!1,r);return{type:"sizing",mode:a.mode,size:Spe.indexOf(n)+1,body:o}},htmlBuilder:XYe,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),n=co(e.body,r),a=new Pe("mstyle",n);return a.setAttribute("mathsize",Me(r.sizeMultiplier)),a}});Ue({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:n}=e,a=!1,o=!1,i=r[0]&&Ct(r[0],"ordgroup");if(i)for(var s="",l=0;l<i.body.length;++l){var u=i.body[l];if(s=iI(u).text,s==="t")a=!0;else if(s==="b")o=!0;else{a=!1,o=!1;break}}else a=!0,o=!0;var d=t[0];return{type:"smash",mode:n.mode,body:d,smashHeight:a,smashDepth:o}},htmlBuilder:(e,t)=>{var r=we([],[Gt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return we(["mord","smash"],[r],t);if(r.children)for(var n=0;n<r.children.length;n++)e.smashHeight&&(r.children[n].height=0),e.smashDepth&&(r.children[n].depth=0);var a=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return we(["mord"],[a],t)},mathmlBuilder:(e,t)=>{var r=new Pe("mpadded",[mr(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Ue({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:n}=e,a=r[0],o=t[0];return{type:"sqrt",mode:n.mode,body:o,index:a}},htmlBuilder(e,t){var r=Gt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=vh(r,t);var n=t.fontMetrics(),a=n.defaultRuleThickness,o=a;t.style.id<gt.TEXT.id&&(o=t.fontMetrics().xHeight);var i=a+o/4,s=r.height+r.depth+i+a,{span:l,ruleWidth:u,advanceWidth:d}=NYe(s,t),f=l.height-u;f>r.height+r.depth+i&&(i=(i+f-r.height-r.depth)/2);var m=l.height-r.height-i-u;r.style.paddingLeft=Me(d);var h=Ht({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+m)},{type:"elem",elem:l},{type:"kern",size:u}]});if(e.index){var g=t.havingStyle(gt.SCRIPTSCRIPT),y=Gt(e.index,g,t),b=.6*(h.height-h.depth),w=Ht({positionType:"shift",positionData:-b,children:[{type:"elem",elem:y}]}),S=we(["root"],[w]);return we(["mord","sqrt"],[S,h],t)}else return we(["mord","sqrt"],[h],t)},mathmlBuilder(e,t){var{body:r,index:n}=e;return n?new Pe("mroot",[mr(r,t),mr(n,t)]):new Pe("msqrt",[mr(r,t)])}});var kpe={display:gt.DISPLAY,text:gt.TEXT,script:gt.SCRIPT,scriptscript:gt.SCRIPTSCRIPT};Ue({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:n,parser:a}=e,o=a.parseExpression(!0,r),i=n.slice(1,n.length-5);return{type:"styling",mode:a.mode,style:i,body:o}},htmlBuilder(e,t){var r=kpe[e.style],n=t.havingStyle(r).withFont("");return wme(e.body,n,t)},mathmlBuilder(e,t){var r=kpe[e.style],n=t.havingStyle(r),a=co(e.body,n),o=new Pe("mstyle",a),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=i[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var YYe=function(t,r){var n=t.base;if(n)if(n.type==="op"){var a=n.limits&&(r.style.size===gt.DISPLAY.size||n.alwaysHandleSupSub);return a?bh:null}else if(n.type==="operatorname"){var o=n.alwaysHandleSupSub&&(r.style.size===gt.DISPLAY.size||n.limits);return o?xme:null}else{if(n.type==="accent")return kl(n.base)?yD:null;if(n.type==="horizBrace"){var i=!t.sub;return i===n.isOver?vme:null}else return null}else return null};$d({type:"supsub",htmlBuilder(e,t){var r=YYe(e,t);if(r)return r(e,t);var{base:n,sup:a,sub:o}=e,i=Gt(n,t),s,l,u=t.fontMetrics(),d=0,f=0,m=n&&kl(n);if(a){var h=t.havingStyle(t.style.sup());s=Gt(a,h,t),m||(d=i.height-h.fontMetrics().supDrop*h.sizeMultiplier/t.sizeMultiplier)}if(o){var g=t.havingStyle(t.style.sub());l=Gt(o,g,t),m||(f=i.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}var y;t.style===gt.DISPLAY?y=u.sup1:t.style.cramped?y=u.sup3:y=u.sup2;var b=t.sizeMultiplier,w=Me(.5/u.ptPerEm/b),S=null;if(l){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(i instanceof xa||x)&&(S=Me(-i.italic))}var C;if(s&&l){d=Math.max(d,y,s.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var I=u.defaultRuleThickness,A=4*I;if(d-s.depth-(l.height-f)<A){f=A-(d-s.depth)+l.height;var O=.8*u.xHeight-(d-s.depth);O>0&&(d+=O,f-=O)}var F=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:S},{type:"elem",elem:s,shift:-d,marginRight:w}];C=Ht({positionType:"individualShift",children:F})}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var q=[{type:"elem",elem:l,marginLeft:S,marginRight:w}];C=Ht({positionType:"shift",positionData:f,children:q})}else if(s)d=Math.max(d,y,s.depth+.25*u.xHeight),C=Ht({positionType:"shift",positionData:-d,children:[{type:"elem",elem:s,marginRight:w}]});else throw new Error("supsub must have either sup or sub.");var G=nD(i,"right")||"mord";return we([G],[i,we(["msupsub"],[C])],t)},mathmlBuilder(e,t){var r=!1,n,a;e.base&&e.base.type==="horizBrace"&&(a=!!e.sup,a===e.base.isOver&&(r=!0,n=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[mr(e.base,t)];e.sub&&o.push(mr(e.sub,t)),e.sup&&o.push(mr(e.sup,t));var i;if(r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===gt.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===gt.DISPLAY||u.limits)?i="munderover":i="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===gt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===gt.DISPLAY)?i="munder":i="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===gt.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===gt.DISPLAY)?i="mover":i="msup"}return new Pe(i,o)}});$d({type:"atom",htmlBuilder(e,t){return mD(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new Pe("mo",[Uo(e.text,e.mode)]);if(e.family==="bin"){var n=vD(e,t);n==="bold-italic"&&r.setAttribute("mathvariant",n)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var _me={mi:"italic",mn:"normal",mtext:"normal"};$d({type:"mathord",htmlBuilder(e,t){return nI(e,t,"mathord")},mathmlBuilder(e,t){var r=new Pe("mi",[Uo(e.text,e.mode,t)]),n=vD(e,t)||"italic";return n!==_me[r.type]&&r.setAttribute("mathvariant",n),r}});$d({type:"textord",htmlBuilder(e,t){return nI(e,t,"textord")},mathmlBuilder(e,t){var r=Uo(e.text,e.mode,t),n=vD(e,t)||"normal",a;return e.mode==="text"?a=new Pe("mtext",[r]):/[0-9]/.test(e.text)?a=new Pe("mn",[r]):e.text==="\\prime"?a=new Pe("mo",[r]):a=new Pe("mi",[r]),n!==_me[a.type]&&a.setAttribute("mathvariant",n),a}});var H9={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},G9={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};$d({type:"spacing",htmlBuilder(e,t){if(G9.hasOwnProperty(e.text)){var r=G9[e.text].className||"";if(e.mode==="text"){var n=nI(e,t,"textord");return n.classes.push(r),n}else return we(["mspace",r],[mD(e.text,e.mode,t)],t)}else{if(H9.hasOwnProperty(e.text))return we(["mspace",H9[e.text]],[],t);throw new Le('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(G9.hasOwnProperty(e.text))r=new Pe("mtext",[new Ur("\xA0")]);else{if(H9.hasOwnProperty(e.text))return new Pe("mspace");throw new Le('Unknown type of space "'+e.text+'"')}return r}});var Ipe=()=>{var e=new Pe("mtd",[]);return e.setAttribute("width","50%"),e};$d({type:"tag",mathmlBuilder(e,t){var r=new Pe("mtable",[new Pe("mtr",[Ipe(),new Pe("mtd",[Xu(e.body,t)]),Ipe(),new Pe("mtd",[Xu(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var Tpe={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cpe={"\\textbf":"textbf","\\textmd":"textmd"},QYe={"\\textit":"textit","\\textup":"textup"},Ppe=(e,t)=>{var r=e.font;if(r){if(Tpe[r])return t.withTextFontFamily(Tpe[r]);if(Cpe[r])return t.withTextFontWeight(Cpe[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(QYe[r])};Ue({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:n}=e,a=t[0];return{type:"text",mode:r.mode,body:ln(a),font:n}},htmlBuilder(e,t){var r=Ppe(e,t),n=wn(e.body,r,!0);return we(["mord","text"],n,r)},mathmlBuilder(e,t){var r=Ppe(e,t);return Xu(e.body,r)}});Ue({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Gt(e.body,t),n=gh("underline-line",t),a=t.fontMetrics().defaultRuleThickness,o=Ht({positionType:"top",positionData:r.height,children:[{type:"kern",size:a},{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:r}]});return we(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new Pe("mo",[new Ur("\u203E")]);r.setAttribute("stretchy","true");var n=new Pe("munder",[mr(e.body,t),r]);return n.setAttribute("accentunder","true"),n}});Ue({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Gt(e.body,t),n=t.fontMetrics().axisHeight,a=.5*(r.height-n-(r.depth+n));return Ht({positionType:"shift",positionData:a,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new Pe("mpadded",[mr(e.body,t)],["vcenter"])}});Ue({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new Le("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=Ape(e),n=[],a=t.havingStyle(t.style.text()),o=0;o<r.length;o++){var i=r[o];i==="~"&&(i="\\textasciitilde"),n.push(ya(i,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return we(["mord","text"].concat(a.sizingClasses(t)),Bpe(n),a)},mathmlBuilder(e,t){var r=new Ur(Ape(e)),n=new Pe("mtext",[r]);return n.setAttribute("mathvariant","monospace"),n}});var Ape=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Hu=Vpe,Sme=`[ \r 571 ]`,eQe="\\\\[a-zA-Z@]+",tQe="\\\\[^\uD800-\uDFFF]",rQe="("+eQe+")"+Sme+"*",nQe=`\\\\( 572|[ \r ]+ 573?)[ \r ]*`,lD="[\u0300-\u036F]",aQe=new RegExp(lD+"+$"),oQe="("+Sme+"+)|"+(nQe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(lD+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(lD+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+rQe)+("|"+tQe+")"),eI=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(oQe,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new lo("EOF",new ja(this,r,r));var n=this.tokenRegex.exec(t);if(n===null||n.index!==r)throw new Le("Unexpected character: '"+t[r]+"'",new lo(t[r],new ja(this,r,r+1)));var a=n[6]||n[3]||(n[2]?"\\ ":" ");if(this.catcodes[a]===14){var o=t.indexOf(` 574`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new lo(a,new ja(this,r,this.tokenRegex.lastIndex))}},uD=class{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Le("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,n){if(n===void 0&&(n=!1),n){for(var a=0;a<this.undefStack.length;a++)delete this.undefStack[a][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(t)&&(o[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},iQe=fme;j("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});j("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});j("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});j("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});j("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});j("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");j("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Epe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};j("\\char",function(e){var t=e.popToken(),r,n=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")n=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Le("\\char` missing argument");n=t.text.charCodeAt(0)}else r=10;if(r){if(n=Epe[t.text],n==null||n>=r)throw new Le("Invalid base-"+r+" digit "+t.text);for(var a;(a=Epe[e.future().text])!=null&&a<r;)n*=r,n+=a,e.popToken()}return"\\@char{"+n+"}"});var _D=(e,t,r,n)=>{var a=e.consumeArg().tokens;if(a.length!==1)throw new Le("\\newcommand's first argument must be a macro name");var o=a[0].text,i=e.isDefined(o);if(i&&!t)throw new Le("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!i&&!r)throw new Le("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(a=e.consumeArg().tokens,a.length===1&&a[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new Le("Invalid number of arguments: "+l);s=parseInt(l),a=e.consumeArg().tokens}return i&&n||e.macros.set(o,{tokens:a,numArgs:s}),""};j("\\newcommand",e=>_D(e,!1,!0,!1));j("\\renewcommand",e=>_D(e,!0,!1,!1));j("\\providecommand",e=>_D(e,!0,!0,!0));j("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});j("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});j("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Hu[r],Ir.math[r],Ir.text[r]),""});j("\\bgroup","{");j("\\egroup","}");
574j("~","\\nobreakspace");j("\\lq","`");j("\\rq","'");j("\\aa","\\r a");j("\\AA","\\r A");j("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");j("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");j("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");j("\u212C","\\mathscr{B}");j("\u2130","\\mathscr{E}");j("\u2131","\\mathscr{F}");j("\u210B","\\mathscr{H}");j("\u2110","\\mathscr{I}");j("\u2112","\\mathscr{L}");j("\u2133","\\mathscr{M}");j("\u211B","\\mathscr{R}");j("\u212D","\\mathfrak{C}");j("\u210C","\\mathfrak{H}");j("\u2128","\\mathfrak{Z}");j("\\Bbbk","\\Bbb{k}");j("\\llap","\\mathllap{\\textrm{#1}}");j("\\rlap","\\mathrlap{\\textrm{#1}}");j("\\clap","\\mathclap{\\textrm{#1}}");j("\\mathstrut","\\vphantom{(}");j("\\underbar","\\underline{\\text{#1}}");j("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');j("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");j("\\ne","\\neq");j("\u2260","\\neq");j("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,438 bytes, line 574
574j("\u2209","\\notin");j("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");j("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");j("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");j("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");j("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");j("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");j("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");j("\u27C2","\\perp");j("\u203C","\\mathclose{!\\mkern-0.8mu!}");j("\u220C","\\notni");j("\u231C","\\ulcorner");j("\u231D","\\urcorner");j("\u231E","\\llcorner");j("\u231F","\\lrcorner");j("\xA9","\\copyright");j("\xAE","\\textregistered");j("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');j("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');j("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');j("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');j("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");j("\u22EE","\\vdots");j("\\varGamma","\\mathit{\\Gamma}");j("\\varDelta","\\mathit{\\Delta}");j("\\varTheta","\\mathit{\\Theta}");j("\\varLambda","\\mathit{\\Lambda}");j("\\varXi","\\mathit{\\Xi}");j("\\varPi","\\mathit{\\Pi}");j("\\varSigma","\\mathit{\\Sigma}");j("\\varUpsilon","\\mathit{\\Upsilon}");j("\\varPhi","\\mathit{\\Phi}");j("\\varPsi","\\mathit{\\Psi}");j("\\varOmega","\\mathit{\\Omega}");j("\\substack","\\begin{subarray}{c}#1\\end{subarray}");j("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");j("\\boxed","\\fbox{$\\displaystyle{#1}$}");j("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");j("\\implies","\\DOTSB\\;\\Longrightarrow\\;");j("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");j("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");j("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Lpe={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},sQe=new Set(["bin","rel"]);j("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Lpe?t=Lpe[r]:(r.slice(0,4)==="\\not"||r in Ir.math&&sQe.has(Ir.math[r].group))&&(t="\\dotsb"),t});var SD={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};j("\\dotso",function(e){var t=e.future().text;return t in SD?"\\ldots\\,":"\\ldots"});j("\\dotsc",function(e){var t=e.future().text;return t in SD&&t!==","?"\\ldots\\,":"\\ldots"});j("\\cdots",function(e){var t=e.future().text;return t in SD?"\\@cdots\\,":"\\@cdots"});j("\\dotsb","\\cdots");j("\\dotsm","\\cdots");j("\\dotsi","\\!\\cdots");j("\\dotsx","\\ldots\\,");j("\\DOTSI","\\relax");j("\\DOTSB","\\relax");j("\\DOTSX","\\relax");j("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");j("\\,","\\tmspace+{3mu}{.1667em}");j("\\thinspace","\\,");j("\\>","\\mskip{4mu}");j("\\:","\\tmspace+{4mu}{.2222em}");j("\\medspace","\\:");j("\\;","\\tmspace+{5mu}{.2777em}");j("\\thickspace","\\;");j("\\!","\\tmspace-{3mu}{.1667em}");j("\\negthinspace","\\!");j("\\negmedspace","\\tmspace-{4mu}{.2222em}");j("\\negthickspace","\\tmspace-{5mu}{.277em}");j("\\enspace","\\kern.5em ");j("\\enskip","\\hskip.5em\\relax");j("\\quad","\\hskip1em\\relax");j("\\qquad","\\hskip2em\\relax");j("\\tag","\\@ifstar\\tag@literal\\tag@paren");j("\\tag@paren","\\tag@literal{({#1})}");j("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Le("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});j("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");j("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");j("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");j("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");j("\\newline","\\\\\\relax");j("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var kme=Me(fs["Main-Regular"][84][1]-.7*fs["Main-Regular"][65][1]);j("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+kme+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");
574j("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+kme+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");j("\\hspace","\\@ifstar\\@hspacer\\@hspace");j("\\@hspace","\\hskip #1\\relax");j("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");j("\\ordinarycolon",":");j("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");j("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');j("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');j("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');j("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');j("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');j("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');j("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');j("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');j("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');j("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');j("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');j("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');j("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');j("\u2237","\\dblcolon");j("\u2239","\\eqcolon");j("\u2254","\\coloneqq");j("\u2255","\\eqqcolon");j("\u2A74","\\Coloneqq");j("\\ratio","\\vcentcolon");j("\\coloncolon","\\dblcolon");j("\\colonequals","\\coloneqq");j("\\coloncolonequals","\\Coloneqq");j("\\equalscolon","\\eqqcolon");j("\\equalscoloncolon","\\Eqqcolon");j("\\colonminus","\\coloneq");j("\\coloncolonminus","\\Coloneq");j("\\minuscolon","\\eqcolon");j("\\minuscoloncolon","\\Eqcolon");j("\\coloncolonapprox","\\Colonapprox");j("\\coloncolonsim","\\Colonsim");j("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");j("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");j("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");j("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");j("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");j("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");j("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");j("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");j("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");j("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");j("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");j("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");j("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");j("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");j("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");j("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");j("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");j("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");j("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");j("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");j("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");j("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");j("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");j("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");j("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");j("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");j("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");j("\\imath","\\html@mathml{\\@imath}{\u0131}");j("\\jmath","\\html@mathml{\\@jmath}{\u0237}");j("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
574{\\mathopen{\\char`\u27E6}}");j("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");j("\u27E6","\\llbracket");j("\u27E7","\\rrbracket");j("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");j("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");j("\u2983","\\lBrace");j("\u2984","\\rBrace");j("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");j("\u29B5","\\minuso");j("\\darr","\\downarrow");j("\\dArr","\\Downarrow");j("\\Darr","\\Downarrow");j("\\lang","\\langle");j("\\rang","\\rangle");j("\\uarr","\\uparrow");j("\\uArr","\\Uparrow");j("\\Uarr","\\Uparrow");j("\\N","\\mathbb{N}");j("\\R","\\mathbb{R}");j("\\Z","\\mathbb{Z}");j("\\alef","\\aleph");j("\\alefsym","\\aleph");j("\\Alpha","\\mathrm{A}");j("\\Beta","\\mathrm{B}");j("\\bull","\\bullet");j("\\Chi","\\mathrm{X}");j("\\clubs","\\clubsuit");j("\\cnums","\\mathbb{C}");j("\\Complex","\\mathbb{C}");j("\\Dagger","\\ddagger");j("\\diamonds","\\diamondsuit");j("\\empty","\\emptyset");j("\\Epsilon","\\mathrm{E}");j("\\Eta","\\mathrm{H}");j("\\exist","\\exists");j("\\harr","\\leftrightarrow");j("\\hArr","\\Leftrightarrow");j("\\Harr","\\Leftrightarrow");j("\\hearts","\\heartsuit");j("\\image","\\Im");j("\\infin","\\infty");j("\\Iota","\\mathrm{I}");j("\\isin","\\in");j("\\Kappa","\\mathrm{K}");j("\\larr","\\leftarrow");j("\\lArr","\\Leftarrow");j("\\Larr","\\Leftarrow");j("\\lrarr","\\leftrightarrow");j("\\lrArr","\\Leftrightarrow");j("\\Lrarr","\\Leftrightarrow");j("\\Mu","\\mathrm{M}");j("\\natnums","\\mathbb{N}");j("\\Nu","\\mathrm{N}");j("\\Omicron","\\mathrm{O}");j("\\plusmn","\\pm");j("\\rarr","\\rightarrow");j("\\rArr","\\Rightarrow");j("\\Rarr","\\Rightarrow");j("\\real","\\Re");j("\\reals","\\mathbb{R}");j("\\Reals","\\mathbb{R}");j("\\Rho","\\mathrm{P}");j("\\sdot","\\cdot");j("\\sect","\\S");j("\\spades","\\spadesuit");j("\\sub","\\subset");j("\\sube","\\subseteq");j("\\supe","\\supseteq");j("\\Tau","\\mathrm{T}");j("\\thetasym","\\vartheta");j("\\weierp","\\wp");j("\\Zeta","\\mathrm{Z}");j("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");j("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");j("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");j("\\bra","\\mathinner{\\langle{#1}|}");j("\\ket","\\mathinner{|{#1}\\rangle}");j("\\braket","\\mathinner{\\langle{#1}\\rangle}");j("\\Bra","\\left\\langle#1\\right|");j("\\Ket","\\left|#1\\right\\rangle");var Ime=e=>t=>{var r=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var l=f=>m=>{e&&(m.macros.set("|",i),a.length&&m.macros.set("\\|",s));var h=f;if(!f&&a.length){var g=m.future();g.text==="|"&&(m.popToken(),h=!0)}return{tokens:h?a:n,numArgs:0}};t.macros.set("|",l(!1)),a.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...o,...u,...r]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};j("\\bra@ket",Ime(!1));j("\\bra@set",Ime(!0));j("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");j("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");j("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");j("\\angln","{\\angl n}");j("\\blue","\\textcolor{##6495ed}{#1}");j("\\orange","\\textcolor{##ffa500}{#1}");j("\\pink","\\textcolor{##ff00af}{#1}");j("\\red","\\textcolor{##df0030}{#1}");j("\\green","\\textcolor{##28ae7b}{#1}");j("\\gray","\\textcolor{gray}{#1}");j("\\purple","\\textcolor{##9d38bd}{#1}");j("\\blueA","\\textcolor{##ccfaff}{#1}");j("\\blueB","\\textcolor{##80f6ff}{#1}");j("\\blueC","\\textcolor{##63d9ea}{#1}");j("\\blueD","\\textcolor{##11accd}{#1}");j("\\blueE","\\textcolor{##0c7f99}{#1}");j("\\tealA","\\textcolor{##94fff5}{#1}");j("\\tealB","\\textcolor{##26edd5}{#1}");j("\\tealC","\\textcolor{##01d1c1}{#1}");j("\\tealD","\\textcolor{##01a995}{#1}");j("\\tealE","\\textcolor{##208170}{#1}");j("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,094 bytes, line 574
574j("\\greenB","\\textcolor{##8af281}{#1}");j("\\greenC","\\textcolor{##74cf70}{#1}");j("\\greenD","\\textcolor{##1fab54}{#1}");j("\\greenE","\\textcolor{##0d923f}{#1}");j("\\goldA","\\textcolor{##ffd0a9}{#1}");j("\\goldB","\\textcolor{##ffbb71}{#1}");j("\\goldC","\\textcolor{##ff9c39}{#1}");j("\\goldD","\\textcolor{##e07d10}{#1}");j("\\goldE","\\textcolor{##a75a05}{#1}");j("\\redA","\\textcolor{##fca9a9}{#1}");j("\\redB","\\textcolor{##ff8482}{#1}");j("\\redC","\\textcolor{##f9685d}{#1}");j("\\redD","\\textcolor{##e84d39}{#1}");j("\\redE","\\textcolor{##bc2612}{#1}");j("\\maroonA","\\textcolor{##ffbde0}{#1}");j("\\maroonB","\\textcolor{##ff92c6}{#1}");j("\\maroonC","\\textcolor{##ed5fa6}{#1}");j("\\maroonD","\\textcolor{##ca337c}{#1}");j("\\maroonE","\\textcolor{##9e034e}{#1}");j("\\purpleA","\\textcolor{##ddd7ff}{#1}");j("\\purpleB","\\textcolor{##c6b9fc}{#1}");j("\\purpleC","\\textcolor{##aa87ff}{#1}");j("\\purpleD","\\textcolor{##7854ab}{#1}");j("\\purpleE","\\textcolor{##543b78}{#1}");j("\\mintA","\\textcolor{##f5f9e8}{#1}");j("\\mintB","\\textcolor{##edf2df}{#1}");j("\\mintC","\\textcolor{##e0e5cc}{#1}");j("\\grayA","\\textcolor{##f6f7f7}{#1}");j("\\grayB","\\textcolor{##f0f1f2}{#1}");j("\\grayC","\\textcolor{##e3e5e6}{#1}");j("\\grayD","\\textcolor{##d6d8da}{#1}");j("\\grayE","\\textcolor{##babec2}{#1}");j("\\grayF","\\textcolor{##888d93}{#1}");j("\\grayG","\\textcolor{##626569}{#1}");j("\\grayH","\\textcolor{##3b3e40}{#1}");j("\\grayI","\\textcolor{##21242c}{#1}");j("\\kaBlue","\\textcolor{##314453}{#1}");j("\\kaGreen","\\textcolor{##71B307}{#1}");var Tme={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},cD=class{constructor(t,r,n){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new uD(iQe,r.macros),this.mode=n,this.stack=[]}feed(t){this.lexer=new eI(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,n,a;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:a,end:n}=this.consumeArg(["]"])}else({tokens:a,start:r,end:n}=this.consumeArg());return this.pushToken(new lo("EOF",n.loc)),this.pushTokens(a),new lo("",ja.range(r,n))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],n=t&&t.length>0;n||this.consumeSpaces();var a=this.future(),o,i=0,s=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++i;else if(o.text==="}"){if(--i,i===-1)throw new Le("Extra }",o)}else if(o.text==="EOF")throw new Le("Unexpected end of input in a macro argument, expected '"+(t&&n?t[s]:"}")+"'",o);if(t&&n)if((i===0||i===1&&t[s]==="{")&&o.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(i!==0||n);return a.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:a,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new Le("The length of delimiters doesn't match the number of args!");for(var n=r[0],a=0;a<n.length;a++){var o=this.popToken();if(n[a]!==o.text)throw new Le("Use of the macro doesn't match its definition",o)}}for(var i=[],s=0;s<t;s++)i.push(this.consumeArg(r&&r[s+1]).tokens);return i}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new Le("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),n=r.text,a=r.noexpand?null:this._getExpansion(n);if(a==null||t&&a.unexpandable){if(t&&a==null&&n[0]==="\\"&&!this.isDefined(n))throw new Le("Undefined control sequence: "+n);return this.pushToken(r),!1}this.countExpansion(1);var o=a.tokens,i=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var l=o[s];if(l.text==="#"){if(s===0)throw new Le("Incomplete placeholder at end of macro body",l);if(l=o[--s],l.text==="#")o.splice(s+1,1);else if(/^[1-9]$/.test(l.text))o.splice(s,2,...i[+l.text-1]);else throw new Le("Not a valid argument number",l)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new lo(t)]):void 0}expandTokens(t){var r=[],n=this.stack.length;for(this.pushTokens(t);this.stack.length>n;)if(this.expandOnce(!0)===!1){var a=this.stack.pop();a.treatAsRelax&&(a.noexpand=!1,a.treatAsRelax=!1),r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(n=>n.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var n=this.lexer.catcodes[t];if(n!=null&&n!==13)return}var a=typeof r=="function"?r(this):r;if(typeof a=="string"){var o=0;if(a.includes("#"))for(var i=a.replace(/##/g,"");i.includes("#"+(o+1));)++o;for(var s=new eI(a,this.settings),l=[],u=s.lex();u.text!=="EOF";)l.push(u),u=s.lex();l.reverse();var d={tokens:l,numArgs:o};return d}return a}isDefined(t){return this.macros.has(t)||Hu.hasOwnProperty(t)||Ir.math.hasOwnProperty(t)||Ir.text.hasOwnProperty(t)||Tme.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Hu.hasOwnProperty(t)&&!Hu[t].primitive}},$pe=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,Vk=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),W9={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},Ope={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u
5740302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},tI=class e{constructor(t,r){this.mode="math",this.gullet=new cD(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new Le("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new lo("}")),this.gullet.pushTokens(t);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,n}parseExpression(t,r){for(var n=[];;){this.mode==="math"&&this.consumeSpaces();var a=this.fetch();if(e.endOfExpression.has(a.text)||r&&a.text===r||t&&Hu[a.text]&&Hu[a.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;n.push(o)}return this.mode==="text"&&this.formLigatures(n),this.handleInfixNodes(n)}handleInfixNodes(t){for(var r=-1,n,a=0;a<t.length;a++){var o=t[a];if(o.type==="infix"){if(r!==-1)throw new Le("only one infix operator per group",o.token);r=a,n=o.replaceWith}}if(r!==-1&&n){var i,s,l=t.slice(0,r),u=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?i=l[0]:i={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var d;return n==="\\\\abovefrac"?d=this.callFunction(n,[i,t[r],s],[]):d=this.callFunction(n,[i,s],[]),[d]}else return t}handleSupSubscript(t){var r=this.fetch(),n=r.text;this.consume(),this.consumeSpaces();var a;do{var o;a=this.parseGroup(t)}while(((o=a)==null?void 0:o.type)==="internal");if(!a)throw new Le("Expected group after '"+n+"'",r);return a}formatUnsupportedCmd(t){for(var r=[],n=0;n<t.length;n++)r.push({type:"textord",mode:"text",text:t[n]});var a={type:"text",mode:this.mode,body:r},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[a]};return o}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var n,a;;){this.consumeSpaces();var o=this.fetch();if(o.text==="\\limits"||o.text==="\\nolimits"){if(r&&r.type==="op"){var i=o.text==="\\limits";r.limits=i,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=o.text==="\\limits");else throw new Le("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(n)throw new Le("Double superscript",o);n=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(a)throw new Le("Double subscript",o);a=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(n)throw new Le("Double superscript",o);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();this.fetch().text==="'";)l.push(s),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),n={type:"ordgroup",mode:this.mode,body:l}}else if(Vk[o.text]){var u=$pe.test(o.text),d=[];for(d.push(new lo(Vk[o.text])),this.consume();;){var f=this.fetch().text;if(!Vk[f]||$pe.test(f)!==u)break;d.unshift(new lo(Vk[f])),this.consume()}var m=this.subparse(d);u?a={type:"ordgroup",mode:"math",body:m}:n={type:"ordgroup",mode:"math",body:m}}else break}return n||a?{type:"supsub",mode:this.mode,base:r,sup:n,sub:a}:r}parseFunction(t,r){var n=this.fetch(),a=n.text,o=Hu[a];if(!o)return null;if(this.consume(),r&&r!=="atom"&&!o.allowedInArgument)throw new Le("Got function '"+a+"' with no arguments"+(r?" as "+r:""),n);if(this.mode==="text"&&!o.allowedInText)throw new Le("Can't use function '"+a+"' in text mode",n);if(this.mode==="math"&&o.allowedInMath===!1)throw new Le("Can't use function '"+a+"' in math mode",n);var{args:i,optArgs:s}=this.parseArguments(a,o);return this.callFunction(a,i,s,n,t)}callFunction(t,r,n,a,o){var i={funcName:t,parser:this,token:a,breakOnTokenText:o},s=Hu[t];if(s&&s.handler)return s.handler(i,r,n);throw new Le("No function handler for "+t)}parseArguments(t,r){var n=r.numArgs+r.numOptionalArgs;if(n===0)return{args:[],optArgs:[]};for(var a=[],o=[],i=0;i<n;i++){var s=r.argTypes&&r.argTypes[i],l=i<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&i===1&&o[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,l);if(l)o.push(u);else if(u!=null)a.push(u);else throw new Le("Null argument, please report this as a bug")}return{args:a,optArgs:o}}parseGroupOfType(t,r,n){switch(r){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,r);case"hbox":{var a=this.parseArgumentGroup(n,"text");return a!=null?{type:"styling",mode:a.mode,body:[a],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",n);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(n)throw new Le("A primitive argument cannot be optional");var i=this.parseGroup(t);
vendor: 6,612 bytes, lines 574-575
574if(i==null)throw new Le("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new Le("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var n=this.gullet.scanArgument(r);if(n==null)return null;for(var a="",o;(o=this.fetch()).text!=="EOF";)a+=o.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(t,r){for(var n=this.fetch(),a=n,o="",i;(i=this.fetch()).text!=="EOF"&&t.test(o+i.text);)a=i,o+=a.text,this.consume();if(o==="")throw new Le("Invalid "+r+": '"+n.text+"'",n);return n.range(a,o)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!n)throw new Le("Invalid color: '"+r.text+"'",r);var a=n[0];return/^[0-9a-f]{6}$/i.test(a)&&(a="#"+a),{type:"color-token",mode:this.mode,color:a}}parseSizeGroup(t){var r,n=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",n=!0);var a=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!a)throw new Le("Invalid size: '"+r.text+"'",r);var o={number:+(a[1]+a[2]),unit:a[3]};if(!Rpe(o))throw new Le("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:n}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var n=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(t,r){var n=this.gullet.scanArgument(t);if(n==null)return null;var a=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:o};return r&&this.switchMode(a),i}parseGroup(t,r){var n=this.fetch(),a=n.text,o;if(a==="{"||a==="\\begingroup"){this.consume();var i=a==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,i),l=this.fetch();this.expect(i),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:ja.range(n,l),body:s,semisimple:a==="\\begingroup"||void 0}}else if(o=this.parseFunction(r,t)||this.parseSymbol(),o==null&&a[0]==="\\"&&!Tme.hasOwnProperty(a)){if(this.settings.throwOnError)throw new Le("Undefined control sequence: "+a,n);o=this.formatUnsupportedCmd(a),this.consume()}return o}formLigatures(t){for(var r=t.length-1,n=0;n<r;++n){var a=t[n];if(a.type==="textord"){var o=a.text,i=t[n+1];if(!(!i||i.type!=="textord")){if(o==="-"&&i.text==="-"){var s=t[n+2];n+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(n,3,{type:"textord",mode:"text",loc:ja.range(a,s),text:"---"}),r-=2):(t.splice(n,2,{type:"textord",mode:"text",loc:ja.range(a,i),text:"--"}),r-=1)}(o==="'"||o==="`")&&i.text===o&&(t.splice(n,2,{type:"textord",mode:"text",loc:ja.range(a,i),text:o+o}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var n=r.slice(5),a=n.charAt(0)==="*";if(a&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new Le(`\\verb assertion failed -- 575 please report what input caused this bug`);return n=n.slice(1,-1),{type:"verb",mode:"text",body:n,star:a}}Ope.hasOwnProperty(r[0])&&!Ir[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Ope[r[0]]+r.slice(1));var o=aQe.exec(r);o&&(r=r.substring(0,o.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var i;if(Ir[this.mode][r]){this.settings.strict&&this.mode==="math"&&Q9.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=Ir[this.mode][r].group,l=ja.range(t),u;if(oYe.hasOwnProperty(s)){var d=s;u={type:"atom",mode:this.mode,family:d,loc:l,text:r}}else u={type:s,mode:this.mode,loc:l,text:r};i=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(Mpe(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),i={type:"textord",mode:"text",loc:ja.range(t),text:r};else return null;if(this.consume(),o)for(var f=0;f<o[0].length;f++){var m=o[0][f];if(!W9[m])throw new Le("Unknown accent ' "+m+"'",t);var h=W9[m][this.mode]||W9[m].text;if(!h)throw new Le("Accent "+m+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:ja.range(t),label:h,isStretchy:!1,isShifty:!0,base:i}}return i}};tI.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var kD=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new tI(t,r);delete n.gullet.macros.current["\\df@tag"];var a=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new Le("\\tag works only in display equations");a=[{type:"tag",mode:"text",body:a,tag:n.subparse([new lo("\\df@tag")])}]}return a},Cme=function(t,r,n){r.textContent="";var a=ID(t,n).toNode();r.appendChild(a)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Cme=function(){throw new Le("KaTeX doesn't work in quirks mode.")});var lQe=function(t,r){var n=ID(t,r).toMarkup();return n},uQe=function(t,r){var n=new vb(r);return kD(t,n)},Pme=function(t,r,n){if(n.throwOnError||!(t instanceof Le))throw t;var a=we(["katex-error"],[new xa(r)]);return a.setAttribute("title",t.toString()),a.setAttribute("style","color:"+n.errorColor),a},ID=function(t,r){var n=new vb(r);try{var a=kD(t,n);return wYe(a,t,n)}catch(o){return Pme(o,t,n)}},cQe=function(t,r){var n=new vb(r);try{var a=kD(t,n);return _Ye(a,t,n)}catch(o){return Pme(o,t,n)}},dQe="0.16.44",fQe={Span:Ku,Anchor:hh,SymbolNode:xa,SvgNode:ki,PathNode:ps,LineNode:bb},TD={version:dQe,render:Cme,renderToString:lQe,ParseError:Le,SETTINGS_SCHEMA:K9,__parse:uQe,__renderToDomTree:ID,__renderToHTMLTree:cQe,__setFontMetrics:nYe,__defineSymbol
vendor: 4,576 bytes, lines 575-579
575:k,__defineFunction:Ue,__defineMacro:j,__domTree:fQe};var pQe={},mQe=[];function pI(e){let t=e||pQe;return function(r,n){tj(r,"element",function(a,o){let i=Array.isArray(a.properties.className)?a.properties.className:mQe,s=i.includes("language-math"),l=i.includes("math-display"),u=i.includes("math-inline"),d=l;if(!s&&!l&&!u)return;let f=o[o.length-1],m=a;if(a.tagName==="code"&&s&&f&&f.type==="element"&&f.tagName==="pre"&&(m=f,f=o[o.length-2],d=!0),!f)return;let h=M9(m,{whitespace:"pre"}),g;try{g=TD.renderToString(h,{...t,displayMode:d,throwOnError:!0})}catch(b){let w=b,S=w.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...o,a],cause:w,place:a.position,ruleId:S,source:"rehype-katex"});try{g=TD.renderToString(h,{...t,displayMode:d,strict:"ignore",throwOnError:!1})}catch{g=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(b)},children:[{type:"text",value:h}]}]}}typeof g=="string"&&(g=Jfe(g,{fragment:!0}).children);let y=f.children.indexOf(m);return f.children.splice(y,1,...g),ej})}}function CD(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:a,mathFlowFence:n,mathFlowFenceMeta:r,mathFlowValue:s,mathText:i,mathTextData:s}};function e(l){let u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function r(){let l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function n(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function a(l){let u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u;let f=d.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function o(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function i(l){let u=this.resume(),d=this.stack[this.stack.length-1];d.type,this.exit(l),d.value=u,d.data.hChildren.push({type:"text",value:u})}function s(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function PD(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),n.peek=a,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 576`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:n}};function r(o,i,s,l){let u=o.value||"",d=s.createTracker(l),f="$".repeat(Math.max(cj(u,"$")+1,2)),m=s.enter("mathFlow"),h=d.move(f);if(o.meta){let g=s.enter("mathFlowMeta");h+=d.move(s.safe(o.meta,{after:` 577`,before:h,encode:["$"],...d.current()})),g()}return h+=d.move(` 578`),u&&(h+=d.move(u+` 579`)),h+=d.move(f),m(),h}function n(o,i,s){let l=o.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;let d="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let f=-1;for(;++f<s.unsafe.length;){let m=s.unsafe[f];if(!m.atBreak)continue;let h=s.compilePattern(m),g;for(;g=h.exec(l);){let y=g.index;l.codePointAt(y)===10&&l.codePointAt(y-1)===13&&y--,l=l.slice(0,y)+" "+l.slice(g.index+1)}}return d+l+d}function a(){return"$"}}var Eme={tokenize:hQe,concrete:!0,name:"mathFlow"},Ame={tokenize:gQe,partial:!0};function hQe(e,t,r){let n=this,a=n.events[n.events.length-1],o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,i=0;return s;function s(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(S)}function l(S){return S===36?(e.consume(S),i++,l):i<2?r(S):(e.exit("mathFlowFenceSequence"),og(e,u,"whitespace")(S))}function u(S){return S===null||Ps(S)?f(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||Ps(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(S)):S===36?r(S):(e.consume(S),d)}function f(S){return e.exit("mathFlowFence"),n.interrupt?t(S):e.attempt(Ame,m,b)(S)}function m(S){return e.attempt({tokenize:w,partial:!0},b,h)(S)}function h(S){return(o?og(e,g,"linePrefix",o+1):g)(S)}function g(S){return S===null?b(S):Ps(S)?e.attempt(Ame,m,b)(S):(e.enter("mathFlowValue"),y(S))}function y(S){return S===null||Ps(S)?(e.exit("mathFlowValue"),g(S)):(e.consume(S),y)}function b(S){return e.exit("mathFlow"),t(S)}
579function w(S,x,C){let I=0;return og(S,A,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function A(q){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),O(q)}function O(q){return q===36?(I++,S.consume(q),O):I<i?C(q):(S.exit("mathFlowFenceSequence"),og(S,F,"whitespace")(q))}function F(q){return q===null||Ps(q)?(S.exit("mathFlowFence"),x(q)):C(q)}}}function gQe(e,t,r){let n=this;return a;function a(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return n.parser.lazy[n.now().line]?r(i):t(i)}}function Lme(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:n,resolve:vQe,previous:yQe,name:"mathText"};function n(a,o,i){let s=this,l=0,u,d;return f;function f(b){return a.enter("mathText"),a.enter("mathTextSequence"),m(b)}function m(b){return b===36?(a.consume(b),l++,m):l<2&&!r?i(b):(a.exit("mathTextSequence"),h(b))}function h(b){return b===null?i(b):b===36?(d=a.enter("mathTextSequence"),u=0,y(b)):b===32?(a.enter("space"),a.consume(b),a.exit("space"),h):Ps(b)?(a.enter("lineEnding"),a.consume(b),a.exit("lineEnding"),h):(a.enter("mathTextData"),g(b))}function g(b){return b===null||b===32||b===36||Ps(b)?(a.exit("mathTextData"),h(b)):(a.consume(b),g)}function y(b){return b===36?(a.consume(b),u++,y):u===l?(a.exit("mathTextSequence"),a.exit("mathText"),o(b)):(d.type="mathTextData",g(b))}}}function vQe(e){let t=e.length-4,r=3,n,a;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)a===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(a=n):(n===t||e[n][1].type==="lineEnding")&&(e[a][1].type="mathTextData",n!==a+2&&(e[a][1].end=e[n-1][1].end,e.splice(a+2,n-a-2),t-=n-a-2,n=a+2),a=void 0);return e}function yQe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function AD(e){return{flow:{36:Eme},text:{36:Lme(e)}}}var bQe={};function mI(e){let t=this,r=e||bQe,n=t.data(),a=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);a.push(AD(r)),o.push(CD()),i.push(PD(r))}function xQe(e={}){var t,r;let n=[mI,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],a=[pI,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:n,rehypePlugin:a,getStyles(){return"katex/dist/katex.min.css"}}}var $me=xQe();var wQe="11.14.0",_Qe=`https://esm.sh/mermaid@${wQe}`,SQe={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},ED=null,LD=!1;function kQe(){return ED||(ED=import(_Qe)),ED}var Ome={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...SQe,...e};return{initialize(r){Object.assign(t,r),LD=!1},async render(r,n){let o=(await kQe()).default;return LD||(o.initialize(t),LD=!0),o.render(r,n)}}}};var Cl=H(ve());var Sb=H(qe()),$D=({className:e,from:t,...r})=>(0,Sb.jsx)("div",{className:et("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),OD=({children:e,className:t,...r})=>(0,Sb.jsx)("div",{className:et("is-user:dark flex w-fit min-w-0 max-w-full flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...r,children:e});var eMt=(0,Cl.createContext)(null);var PQe={cjk:Dce,code:Hfe,math:$me,mermaid:Ome},AQe=(0,Cl.memo)(({className:e,...t})=>(0,Sb.jsx)(ST,{className:et("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:PQe,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);AQe.displayName="MessageResponse";var cMt=H(ve());var rMt=H(ve());var Mme=H(qe());var Rme=H(qe());var mMt=H(ve());var Dme=H(qe());var vMt=H(ve());var EQe=H(qe());var CMt=H(ve());var xMt=H(ve());var LQe=H(qe());var SMt=H(ve());var zme=H(qe());function Nme({className:e,...t}){return(0,zme.jsx)("textarea",{"data-slot":"textarea",className:et("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}var hI=H(qe());function jme({className:e,...t}){return(0,hI.jsx)("div",{"data-slot":"input-group",role:"group",className:et("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}var OMt=ll("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
579svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});var $Qe=ll("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function Bme({className:e,type:t="button",variant:r="ghost",size:n="xs",...a}){return(0,hI.jsx)(wd,{type:t,"data-size":n,variant:r,className:et($Qe({size:n}),e),...a})}function Fme({className:e,...t}){return(0,hI.jsx)(Nme,{"data-slot":"input-group-control",className:et("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var RMt=H(ve());var Ume=H(qe());var Vme=H(qe());function qme({className:e,...t}){return(0,Vme.jsx)(xo,{role:"status","aria-label":"Loading",className:et("size-4 animate-spin",e),...t})}var Zme="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var MD=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Zme[r[e]&63];return t};var yt=H(ve()),Yn=H(qe()),zQe=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(n=>{let a=new FileReader;a.onloadend=()=>n(a.result),a.onerror=()=>n(null),a.readAsDataURL(r)})}catch{return null}};var jQe=(0,yt.createContext)(null),BQe=(0,yt.createContext)(null);var Hme=()=>(0,yt.useContext)(jQe);var FQe=()=>(0,yt.useContext)(BQe);var Gme=(0,yt.createContext)(null),UQe=()=>{let e=FQe(),r=(0,yt.useContext)(Gme)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},qQe=(0,yt.createContext)(null);var Wme=({className:e,accept:t,multiple:r,globalDrop:n,syncHiddenInput:a,maxFiles:o,maxFileSize:i,onError:s,onSubmit:l,children:u,...d})=>{let f=Hme(),m=!!f,h=(0,yt.useRef)(null),g=(0,yt.useRef)(null),[y,b]=(0,yt.useState)([]),w=m?f.attachments.files:y,[S,x]=(0,yt.useState)([]),C=(0,yt.useRef)(w);(0,yt.useEffect)(()=>{C.current=w},[w]);let I=(0,yt.useCallback)(()=>{h.current?.click()},[]),A=(0,yt.useCallback)(V=>!t||t.trim()===""?!0:t.split(",").map(Q=>Q.trim()).filter(Boolean).some(Q=>{if(Q.endsWith("/*")){let ue=Q.slice(0,-1);return V.type.startsWith(ue)}return V.type===Q}),[t]),O=(0,yt.useCallback)(V=>{let Z=[...V],Q=Z.filter(Te=>A(Te));if(Z.length&&Q.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let ue=Te=>i?Te.size<=i:!0,ge=Q.filter(ue);if(Q.length>0&&ge.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}b(Te=>{let De=typeof o=="number"?Math.max(0,o-Te.length):void 0,me=typeof De=="number"?ge.slice(0,De):ge;typeof De=="number"&&ge.length>De&&s?.({code:"max_files",message:"Too many files. Some were not added."});let Ze=[];for(let Oe of me)Ze.push({filename:Oe.name,id:MD(),mediaType:Oe.type,type:"file",url:URL.createObjectURL(Oe)});return[...Te,...Ze]})},[A,o,i,s]),F=(0,yt.useCallback)(V=>b(Z=>{let Q=Z.find(ue=>ue.id===V);return Q?.url&&URL.revokeObjectURL(Q.url),Z.filter(ue=>ue.id!==V)}),[]),q=(0,yt.useCallback)(V=>{let Z=[...V],Q=Z.filter(Ze=>A(Ze));if(Z.length&&Q.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let ue=Ze=>i?Ze.size<=i:!0,ge=Q.filter(ue);if(Q.length>0&&ge.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let Te=w.length,De=typeof o=="number"?Math.max(0,o-Te):void 0,me=typeof De=="number"?ge.slice(0,De):ge;typeof De=="number"&&ge.length>De&&s?.({code:"max_files",message:"Too many files. Some were not added."}),me.length>0&&f?.attachments.add(me)},[A,i,o,s,w.length,f]),G=(0,yt.useCallback)(()=>m?f?.attachments.clear():b(V=>{for(let Z of V)Z.url&&URL.revokeObjectURL(Z.url);return[]}),[m,f]),J=(0,yt.useCallback)(()=>x([]),[]),Y=m?q:O,le=m?f.attachments.remove:F,re=m?f.attachments.openFileDialog:I,oe=(0,yt.useCallback)(()=>{G(),J()},[G,J]);(0,yt.useEffect)(()=>{m&&f.__registerFileInput(h,()=>h.current?.click())},[m,f]),(0,yt.useEffect)(()=>{a&&h.current&&w.length===0&&(h.current.value="")},[w,a]),(0,yt.useEffect)(()=>{let V=g.current;if(!V||n)return;let Z=ue=>{ue.dataTransfer?.types?.includes("Files")&&ue.preventDefault()},Q=ue=>{ue.dataTransfer?.types?.includes("Files")&&ue.preventDefault(),ue.dataTransfer?.files&&ue.dataTransfer.files.length>0&&Y(ue.dataTransfer.files)};return V.addEventListener("dragover",Z),V.addEventListener("drop",Q),()=>{V.removeEventListener("dragover",Z),V.removeEventListener("drop",Q)}},[Y,n]),(0,yt.useEffect)(()=>
579{if(!n)return;let V=Q=>{Q.dataTransfer?.types?.includes("Files")&&Q.preventDefault()},Z=Q=>{Q.dataTransfer?.types?.includes("Files")&&Q.preventDefault(),Q.dataTransfer?.files&&Q.dataTransfer.files.length>0&&Y(Q.dataTransfer.files)};return document.addEventListener("dragover",V),document.addEventListener("drop",Z),()=>{document.removeEventListener("dragover",V),document.removeEventListener("drop",Z)}},[Y,n]),(0,yt.useEffect)(()=>()=>{if(!m)for(let V of C.current)V.url&&URL.revokeObjectURL(V.url)},[m]);let $=(0,yt.useCallback)(V=>{V.currentTarget.files&&Y(V.currentTarget.files),V.currentTarget.value=""},[Y]),z=(0,yt.useMemo)(()=>({add:Y,clear:G,fileInputRef:h,files:w.map(V=>({...V,id:V.id})),openFileDialog:re,remove:le}),[w,Y,le,G,re]),R=(0,yt.useMemo)(()=>({add:V=>{let Z=Array.isArray(V)?V:[V];x(Q=>[...Q,...Z.map(ue=>({...ue,id:MD()}))])},clear:J,remove:V=>{x(Z=>Z.filter(Q=>Q.id!==V))},sources:S}),[S,J]),N=(0,yt.useCallback)(async V=>{V.preventDefault();let Z=V.currentTarget,Q=m?f.textInput.value:new FormData(Z).get("message")||"";m||Z.reset();try{let ue=await Promise.all(w.map(async({id:Te,...De})=>{if(De.url?.startsWith("blob:")){let me=await zQe(De.url);return{...De,url:me??De.url}}return De})),ge=l({files:ue,text:Q},V);if(ge instanceof Promise)try{await ge,oe(),m&&f.textInput.clear()}catch{}else oe(),m&&f.textInput.clear()}catch{}},[m,f,w,l,oe]),U=(0,Yn.jsxs)(Yn.Fragment,{children:[(0,Yn.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:$,ref:h,title:"Upload files",type:"file"}),(0,Yn.jsx)("form",{className:et("w-full",e),onSubmit:N,ref:g,...d,children:(0,Yn.jsx)(jme,{className:"overflow-hidden",children:u})})]}),B=(0,Yn.jsx)(qQe.Provider,{value:R,children:U});return(0,Yn.jsx)(Gme.Provider,{value:z,children:B})};var Kme=({onChange:e,onKeyDown:t,className:r,placeholder:n="What would you like to know?",...a})=>{let o=Hme(),i=UQe(),[s,l]=(0,yt.useState)(!1),u=(0,yt.useCallback)(g=>{if(t?.(g),!g.defaultPrevented){if(g.key==="Enter"){if(s||g.nativeEvent.isComposing||g.shiftKey)return;g.preventDefault();let{form:y}=g.currentTarget;if(y?.querySelector('button[type="submit"]')?.disabled)return;y?.requestSubmit()}if(g.key==="Backspace"&&g.currentTarget.value===""&&i.files.length>0){g.preventDefault();let y=i.files.at(-1);y&&i.remove(y.id)}}},[t,s,i]),d=(0,yt.useCallback)(g=>{let y=g.clipboardData?.items;if(!y)return;let b=[];for(let w of y)if(w.kind==="file"){let S=w.getAsFile();S&&b.push(S)}b.length>0&&(g.preventDefault(),i.add(b))},[i]),f=(0,yt.useCallback)(()=>l(!1),[]),m=(0,yt.useCallback)(()=>l(!0),[]),h=o?{onChange:g=>{o.textInput.setInput(g.currentTarget.value),e?.(g)},value:o.textInput.value}:{onChange:e};return(0,Yn.jsx)(Fme,{className:et("field-sizing-content max-h-48 min-h-16",r),name:"message",onCompositionEnd:f,onCompositionStart:m,onKeyDown:u,onPaste:d,placeholder:n,...a,...h})};var Jme=({className:e,variant:t="default",size:r="icon-sm",status:n,onStop:a,onClick:o,children:i,...s})=>{let l=n==="submitted"||n==="streaming",u=(0,Yn.jsx)(Pg,{className:"size-4"});n==="submitted"?u=(0,Yn.jsx)(qme,{}):n==="streaming"?u=(0,Yn.jsx)($g,{className:"size-4"}):n==="error"&&(u=(0,Yn.jsx)(aa,{className:"size-4"}));let d=(0,yt.useCallback)(f=>{if(l&&a){f.preventDefault(),a();return}o?.(f)},[l,a,o]);return(0,Yn.jsx)(Bme,{"aria-label":l?"Stop":"Submit",className:et(e),onClick:d,size:r,type:l&&a?"button":"submit",variant:t,...s,children:i??u})};var yRt=H(ve());var Xme=H(qe());var Yme=H(ve()),RD=H(qe());var Qme=({suggestion:e,onClick:t,className:r,variant:n="outline",size:a="sm",children:o,...i})=>{let s=(0,Yme.useCallback)(()=>{t?.(e)},[t,e]);return(0,RD.jsx)(wd,{className:et("cursor-pointer rounded-full px-4",r),onClick:s,size:a,type:"button",variant:n,...i,children:o||e})};var CRt=H(ve());var the=H(qe()),VQe=ll("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function ehe({className:e,variant:t,asChild:r=!1,...n}){return(0,the.jsx)(r?V4:"span",{"data-slot":"badge",className:et(VQe({variant:t}),e),...n})}var Bn=H(ve(),1);var Od=H(qe(),1),gI="Collapsible",[ZQe,BRt]=pce(gI),[HQe,DD]=ZQe(gI),rhe=Bn.forwardRef((e,t)=>
579{let{__scopeCollapsible:r,open:n,defaultOpen:a,disabled:o,onOpenChange:i,...s}=e,[l,u]=vce({prop:n,defaultProp:a??!1,onChange:i,caller:gI});return(0,Od.jsx)(HQe,{scope:r,disabled:o,contentId:hce(),open:l,onOpenToggle:Bn.useCallback(()=>u(d=>!d),[u]),children:(0,Od.jsx)(W4.div,{"data-state":jD(l),"data-disabled":o?"":void 0,...s,ref:t})})});rhe.displayName=gI;var nhe="CollapsibleTrigger",ND=Bn.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,a=DD(nhe,r);return(0,Od.jsx)(W4.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":jD(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...n,ref:t,onClick:dce(e.onClick,a.onOpenToggle)})});ND.displayName=nhe;var zD="CollapsibleContent",ahe=Bn.forwardRef((e,t)=>{let{forceMount:r,...n}=e,a=DD(zD,e.__scopeCollapsible);return(0,Od.jsx)(MR,{present:r||a.open,children:({present:o})=>(0,Od.jsx)(GQe,{...n,ref:t,present:o})})});ahe.displayName=zD;var GQe=Bn.forwardRef((e,t)=>{let{__scopeCollapsible:r,present:n,children:a,...o}=e,i=DD(zD,r),[s,l]=Bn.useState(n),u=Bn.useRef(null),d=U4(t,u),f=Bn.useRef(0),m=f.current,h=Bn.useRef(0),g=h.current,y=i.open||s,b=Bn.useRef(y),w=Bn.useRef(void 0);return Bn.useEffect(()=>{let S=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(S)},[]),cl(()=>{let S=u.current;if(S){w.current=w.current||{transitionDuration:S.style.transitionDuration,animationName:S.style.animationName},S.style.transitionDuration="0s",S.style.animationName="none";let x=S.getBoundingClientRect();f.current=x.height,h.current=x.width,b.current||(S.style.transitionDuration=w.current.transitionDuration,S.style.animationName=w.current.animationName),l(n)}},[i.open,n]),(0,Od.jsx)(W4.div,{"data-state":jD(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!y,...o,ref:d,style:{"--radix-collapsible-content-height":m?`${m}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:y&&a})});function jD(e){return e?"open":"closed"}var ohe=rhe;var BD=H(qe());function ihe({...e}){return(0,BD.jsx)(ohe,{"data-slot":"collapsible",...e})}function she({...e}){return(0,BD.jsx)(ND,{"data-slot":"collapsible-trigger",...e})}var net=H(ve());var qo=H(ve());var Qu=H(qe()),KQe=e=>e&&e&1,JQe=e=>e&&e&2,XQe=e=>e&&e&4,YQe=e=>e.map((t,r)=>({key:`line-${r}`,tokens:t.map((n,a)=>({key:`line-${r}-${a}`,token:n}))})),QQe=({token:e})=>(0,Qu.jsx)("span",{className:"dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)]",style:{backgroundColor:e.bgColor,color:e.color,fontStyle:KQe(e.fontStyle)?"italic":void 0,fontWeight:JQe(e.fontStyle)?"bold":void 0,textDecoration:XQe(e.fontStyle)?"underline":void 0,...e.htmlStyle},children:e.content}),eet=et("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-8","before:mr-4","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),tet=({keyedLine:e,showLineNumbers:t})=>(0,Qu.jsx)("span",{className:t?eet:"block",children:e.tokens.length===0?` 580`:e.tokens.map(({token:r,key:n})=>(0,Qu.jsx)(QQe,{token:r},n))}),HRt=(0,qo.createContext)({code:""});var ret=(0,qo.memo)(({tokenized:e,showLineNumbers:t,className:r})=>{let n=(0,qo.useMemo)(()=>({backgroundColor:e.bg,color:e.fg}),[e.bg,e.fg]),a=(0,qo.useMemo)(()=>YQe(e.tokens),[e.tokens]);return(0,Qu.jsx)("pre",{className:et("dark:!bg-[var(--shiki-dark-bg)] dark:!text-[var(--shiki-dark)] m-0 p-4 text-sm",r),style:n,children:(0,Qu.jsx)("code",{className:et("font-mono text-sm",t&&"[counter-increment:line_0] [counter-reset:line]"),children:a.map(o=>(0,Qu.jsx)(tet,{keyedLine:o,showLineNumbers:t},o.key))})})},(e,t)=>e.tokenized===t.tokenized&&e.showLineNumbers===t.showLineNumbers&&e.className===t.className);ret.displayName="CodeBlockBody";var Qn=H(qe()),lhe=({className:e,...t})=>(0,Qn.jsx)(ihe,{className:et("group not-prose mb-4 w-full rounded-md border",e),...t}),aet={"approval-requested":"Awaiting Approval","approval-responded":"Responded","input-available":"Running","input-streaming":"Pending","output-available":"Completed","output-denied":"Denied","output-error":"Error"},oet={"approval-requested":(0,Qn.jsx)(ji,{className:"size-4 text-yellow-600"}),"approval-responded":(0,Qn.jsx)(Os,{className:"size-4 text-blue-600"}),"input-available":(0,Qn.jsx)(ji,{className:"size-4 animate-pulse"}),"input-streaming":(0,Qn.jsx)(Tg,{className:"size-4"}
580),"output-available":(0,Qn.jsx)(Os,{className:"size-4 text-green-600"}),"output-denied":(0,Qn.jsx)(Ms,{className:"size-4 text-orange-600"}),"output-error":(0,Qn.jsx)(Ms,{className:"size-4 text-red-600"})},iet=e=>(0,Qn.jsxs)(ehe,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[oet[e],aet[e]]}),uhe=({className:e,title:t,type:r,state:n,toolName:a,...o})=>{let i=r==="dynamic-tool"?a:r.split("-").slice(1).join("-");return(0,Qn.jsxs)(she,{className:et("flex w-full items-center justify-between gap-4 p-3",e),...o,children:[(0,Qn.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Qn.jsx)(Og,{className:"size-4 text-muted-foreground"}),(0,Qn.jsx)("span",{className:"font-medium text-sm",children:t??i}),iet(n)]}),(0,Qn.jsx)(hn,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]})};var che=H(ve(),1),vI=(0,che.createContext)({});var dhe=H(ve(),1);function fhe(e){let t=(0,dhe.useRef)(null);return t.current===null&&(t.current=e()),t.current}var yI=H(ve(),1);var phe=typeof window<"u";var mhe=phe?yI.useLayoutEffect:yI.useEffect;var hhe=H(ve(),1),xh=(0,hhe.createContext)(null);function Md(e,t){e.indexOf(t)===-1&&e.push(t)}function ec(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var _n=(e,t,r)=>r>t?t:r<e?e:r;var Pl=()=>{},Vo=()=>{};var _a={};var kb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ib(e){return typeof e=="object"&&e!==null}var Tb=e=>/^0[^.\s]+$/u.test(e);function Cb(e){let t;return()=>(t===void 0&&(t=e()),t)}var Mr=e=>e;var set=(e,t)=>r=>t(e(r)),Ii=(...e)=>e.reduce(set);var vs=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var Al=class{constructor(){this.subscriptions=[]}add(t){return Md(this.subscriptions,t),()=>ec(this.subscriptions,t)}notify(t,r,n){let a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,r,n);else for(let o=0;o<a;o++){let i=this.subscriptions[o];i&&i(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Xr=e=>e*1e3,En=e=>e/1e3;function Pb(e,t){return t?e*(1e3/t):0}var ghe=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,uet=1e-7,cet=12;function det(e,t,r,n,a){let o,i,s=0;do i=t+(r-t)/2,o=ghe(i,n,a)-e,o>0?r=i:t=i;while(Math.abs(o)>uet&&++s<cet);return i}function tc(e,t,r,n){if(e===t&&r===n)return Mr;let a=o=>det(o,0,1,e,r);return o=>o===0||o===1?o:ghe(a(o),t,n)}var bI=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var xI=e=>t=>1-e(1-t);var wI=tc(.33,1.53,.69,.99),wh=xI(wI),Ab=bI(wh);var Eb=e=>e>=1?1:(e*=2)<1?.5*wh(e):.5*(2-Math.pow(2,-10*(e-1)));var Lb=e=>1-Math.sin(Math.acos(e)),$b=xI(Lb),Ob=bI(Lb);var FD=tc(.42,0,1,1),UD=tc(0,0,.58,1),Mb=tc(.42,0,.58,1);var qD=e=>Array.isArray(e)&&typeof e[0]!="number";var Rb=e=>Array.isArray(e)&&typeof e[0]=="number";var vhe={linear:Mr,easeIn:FD,easeInOut:Mb,easeOut:UD,circIn:Lb,circInOut:Ob,circOut:$b,backIn:wh,backInOut:Ab,backOut:wI,anticipate:Eb},fet=e=>typeof e=="string",_I=e=>{if(Rb(e)){Vo(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,n,a]=e;return tc(t,r,n,a)}else if(fet(e))return Vo(vhe[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),vhe[e];return e};var Db=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var fo={value:null,addProjectionMetrics:null};function yhe(e,t){let r=new Set,n=new Set,a=!1,o=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(f){i.has(f)&&(d.schedule(f),e()),l++,f(s)}let d={schedule:(f,m=!1,h=!1)=>{let y=h&&a?r:n;return m&&i.add(f),y.add(f),f},cancel:f=>{n.delete(f),i.delete(f)},process:f=>{if(s=f,a){o=!0;return}a=!0;let m=r;r=n,n=m,r.forEach(u),t&&fo.value&&fo.value.frameloop[t].push(l),l=0,r.clear(),a=!1,o&&(o=!1,d.process(f))}};return d}var pet=40;function SI(e,t){let r=!1,n=!0,a={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=Db.reduce((x,C)=>(x[C]=yhe(o,t?C:void 0),x),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:m,render:h,postRender:g}=i,y=()=>{let x=_a.useManualTiming,C=x?a.timestamp:performance.now();r=!1,x||(a.delta=n?1e3/60:Math.max(Math.min(C-a.timestamp,pet),1)),a.timestamp=C,a.isProcessing=!0,s.process(a),l.process(a),u.process(a),d.process(a),f.process(a),m.process(a),h.process(a),g.process(a),a.isProcessing=!1,r&&t&&(n=!1,e(y))},b=()=>{r=!0,n=!0,a.isProcessing||e(y)};return{schedule:Db.reduce((x,C)=>{let I=i[C];return x[C]=(A,O=!1,F=!1)=>(r||b(),I.schedule(A,O,F)),x},{}),cancel:x=>{for(let C=0;C<Db.length;C++)i[Db[C]].cancel(x)},state:a,steps:i}}var{schedule:kt,cancel:Ba,state:qr,steps:Nb}=SI(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mr,!0);var kI;function met(){kI=void 0}var Rr={now:()=>(kI===void 0&&Rr.set(qr.isProcessing||_a.useManualTiming?qr.timestamp:performance.now()),kI),set:e=>{kI=e,queueMicrotask(met)}};var ys={layout:0,mainThread:0,waapi:0};var bhe=e=>t=>typeof t=="string"&&t.startsWith(e),II=bhe("--"),het=bhe("var(--"),_h=e=>het(e)?get.test(e.split("/*")[0].trim()):!1,get=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function VD(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var bs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},El={...bs,transform:e=>_n(0,1,e)},zb={...bs,default:1};var rc=e=>Math.round(e*1e5)/1e5;var Sh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xhe(e){return e==null}var whe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var kh=(e,t)=>r=>!!(typeof r=="string"&&whe.test(r)&&r.startsWith(e)||t&&!xhe(r)&&Object.prototype.hasOwnProperty.call(r,t)),TI=(e,t,r)=>n=>
580{if(typeof n!="string")return n;let[a,o,i,s]=n.match(Sh);return{[e]:parseFloat(a),[t]:parseFloat(o),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var vet=e=>_n(0,255,e),ZD={...bs,transform:e=>Math.round(vet(e))},xs={test:kh("rgb","red"),parse:TI("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ZD.transform(e)+", "+ZD.transform(t)+", "+ZD.transform(r)+", "+rc(El.transform(n))+")"};function yet(e){let t="",r="",n="",a="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),a=e.substring(4,5),t+=t,r+=r,n+=n,a+=a),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:a?parseInt(a,16)/255:1}}var jb={test:kh("#"),parse:yet,transform:xs.transform};var Bb=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ti=Bb("deg"),ea=Bb("%"),Ve=Bb("px"),HD=Bb("vh"),GD=Bb("vw"),CI={...ea,parse:e=>ea.parse(e)/100,transform:e=>ea.transform(e*100)};var nc={test:kh("hsl","hue"),parse:TI("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ea.transform(rc(t))+", "+ea.transform(rc(r))+", "+rc(El.transform(n))+")"};var Cr={test:e=>xs.test(e)||jb.test(e)||nc.test(e),parse:e=>xs.test(e)?xs.parse(e):nc.test(e)?nc.parse(e):jb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):nc.transform(e),getAnimatableNone:e=>{let t=Cr.parse(e);return t.alpha=0,Cr.transform(t)}};var _he=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function bet(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sh)?.length||0)+(e.match(_he)?.length||0)>0}var khe="number",Ihe="color",xet="var",wet="var(",She="${}",_et=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ac(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},a=[],o=0,s=t.replace(_et,l=>(Cr.test(l)?(n.color.push(o),a.push(Ihe),r.push(Cr.parse(l))):l.startsWith(wet)?(n.var.push(o),a.push(xet),r.push(l)):(n.number.push(o),a.push(khe),r.push(parseFloat(l))),++o,She)).split(She);return{values:r,split:s,indexes:n,types:a}}function ket(e){return ac(e).values}function The({split:e,types:t}){let r=e.length;return n=>{let a="";for(let o=0;o<r;o++)if(a+=e[o],n[o]!==void 0){let i=t[o];i===khe?a+=rc(n[o]):i===Ihe?a+=Cr.transform(n[o]):a+=n[o]}return a}}function Iet(e){return The(ac(e))}var Tet=e=>typeof e=="number"?0:Cr.test(e)?Cr.getAnimatableNone(e):e,Cet=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:Tet(e);function Pet(e){let t=ac(e);return The(t)(t.values.map((n,a)=>Cet(n,t.split[a])))}var Sn={test:bet,parse:ket,createTransformer:Iet,getAnimatableNone:Pet};function WD(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Che({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let a=0,o=0,i=0;if(!t)a=o=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;a=WD(l,s,e+1/3),o=WD(l,s,e),i=WD(l,s,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:n}}function Ih(e,t){return r=>r>0?t:e}var Ot=(e,t,r)=>e+(t-e)*r;var KD=(e,t,r)=>{let n=e*e,a=r*(t*t-n)+n;return a<0?0:Math.sqrt(a)},Aet=[jb,xs,nc],Eet=e=>Aet.find(t=>t.test(e));function Phe(e){let t=Eet(e);if(Pl(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===nc&&(r=Che(r)),r}var JD=(e,t)=>{let r=Phe(e),n=Phe(t);if(!r||!n)return Ih(e,t);let a={...r};return o=>(a.red=KD(r.red,n.red,o),a.green=KD(r.green,n.green,o),a.blue=KD(r.blue,n.blue,o),a.alpha=Ot(r.alpha,n.alpha,o),xs.transform(a))};var PI=new Set(["none","hidden"]);function Ahe(e,t){return PI.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function Let(e,t){return r=>Ot(e,t,r)}function AI(e){return typeof e=="number"?Let:typeof e=="string"?_h(e)?Ih:Cr.test(e)?JD:Met:Array.isArray(e)?Ehe:typeof e=="object"?Cr.test(e)?JD:$et:Ih}function Ehe(e,t){let r=[...e],n=r.length,a=e.map((o,i)=>AI(o)(o,t[i]));return o=>{for(let i=0;i<n;i++)r[i]=a[i](o);return r}}function $et(e,t){let r={...e,...t},n={};for(let a in r)e[a]!==void 0&&t[a]!==void 0&&(n[a]=AI(e[a])(e[a],t[a]));return a=>{for(let o in n)r[o]=n[o](a);return r}}function Oet(e,t){let r=[],n={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let o=t.types[a],i=e.indexes[o][n[o]],s=e.values[i]??0;r[a]=s,n[o]++}return r}var Met=(e,t)=>{let r=Sn.createTransformer(t),n=ac(e),a=ac(t);return n.indexes.var.length===a.indexes.var.length&&n.indexes.color.length===a.indexes.color.length&&n.indexes.number.length>=a.indexes.number.length?PI.has(e)&&!a.values.length||PI.has(t)&&!n.values.length?Ahe(e,t):Ii(Ehe(Oet(n,a),a.values),r):(Pl(!0,`Complex values '${e}' and '${t}
580' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Ih(e,t))};function EI(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?Ot(e,t,r):AI(e)(e,t)}var Lhe=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>kt.update(t,r),stop:()=>Ba(t),now:()=>qr.isProcessing?qr.timestamp:Rr.now()}};var LI=(e,t,r=10)=>{let n="",a=Math.max(Math.round(t/r),2);for(let o=0;o<a;o++)n+=Math.round(e(o/(a-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`};function Th(e){let t=0,r=50,n=e.next(t);for(;!n.done&&t<2e4;)t+=r,n=e.next(t);return t>=2e4?1/0:t}function $he(e,t=100,r){let n=r({...e,keyframes:[0,t]}),a=Math.min(Th(n),2e4);return{type:"keyframes",ease:o=>n.next(a*o).value/t,duration:En(a)}}var Dr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function QD(e,t){return e*Math.sqrt(1-t*t)}var Ret=12;function Det(e,t,r){let n=r;for(let a=1;a<Ret;a++)n=n-e(n)/t(n);return n}var YD=.001;function Net({duration:e=Dr.duration,bounce:t=Dr.bounce,velocity:r=Dr.velocity,mass:n=Dr.mass}){let a,o;Pl(e<=Xr(Dr.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=_n(Dr.minDamping,Dr.maxDamping,i),e=_n(Dr.minDuration,Dr.maxDuration,En(e)),i<1?(a=u=>{let d=u*i,f=d*e,m=d-r,h=QD(u,i),g=Math.exp(-f);return YD-m/h*g},o=u=>{let f=u*i*e,m=f*r+r,h=Math.pow(i,2)*Math.pow(u,2)*e,g=Math.exp(-f),y=QD(Math.pow(u,2),i);return(-a(u)+YD>0?-1:1)*((m-h)*g)/y}):(a=u=>{let d=Math.exp(-u*e),f=(u-r)*e+1;return-YD+d*f},o=u=>{let d=Math.exp(-u*e),f=(r-u)*(e*e);return d*f});let s=5/e,l=Det(a,o,s);if(e=Xr(e),isNaN(l))return{stiffness:Dr.stiffness,damping:Dr.damping,duration:e};{let u=Math.pow(l,2)*n;return{stiffness:u,damping:i*2*Math.sqrt(n*u),duration:e}}}var zet=["duration","bounce"],jet=["stiffness","damping","mass"];function Ohe(e,t){return t.some(r=>e[r]!==void 0)}function Bet(e){let t={velocity:Dr.velocity,stiffness:Dr.stiffness,damping:Dr.damping,mass:Dr.mass,isResolvedFromDuration:!1,...e};if(!Ohe(e,jet)&&Ohe(e,zet))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,n=2*Math.PI/(r*1.2),a=n*n,o=2*_n(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Dr.mass,stiffness:a,damping:o}}else{let r=Net({...e,velocity:0});t={...t,...r,mass:Dr.mass},t.isResolvedFromDuration=!0}return t}function Ch(e=Dr.visualDuration,t=Dr.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:a}=r,o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:d,duration:f,velocity:m,isResolvedFromDuration:h}=Bet({...r,velocity:-En(r.velocity||0)}),g=m||0,y=u/(2*Math.sqrt(l*d)),b=i-o,w=En(Math.sqrt(l/d)),S=Math.abs(b)<5;n||(n=S?Dr.restSpeed.granular:Dr.restSpeed.default),a||(a=S?Dr.restDelta.granular:Dr.restDelta.default);let x,C,I,A,O,F;if(y<1)I=QD(w,y),A=(g+y*w*b)/I,x=G=>{let J=Math.exp(-y*w*G);return i-J*(A*Math.sin(I*G)+b*Math.cos(I*G))},O=y*w*A+b*I,F=y*w*b-A*I,C=G=>Math.exp(-y*w*G)*(O*Math.sin(I*G)+F*Math.cos(I*G));else if(y===1){x=J=>i-Math.exp(-w*J)*(b+(g+w*b)*J);let G=g+w*b;C=J=>Math.exp(-w*J)*(w*G*J-g)}else{let G=w*Math.sqrt(y*y-1);x=re=>{let oe=Math.exp(-y*w*re),$=Math.min(G*re,300);return i-oe*((g+y*w*b)*Math.sinh($)+G*b*Math.cosh($))/G};let J=(g+y*w*b)/G,Y=y*w*J-b*G,le=y*w*b-J*G;C=re=>{let oe=Math.exp(-y*w*re),$=Math.min(G*re,300);return oe*(Y*Math.sinh($)+le*Math.cosh($))}}let q={calculatedDuration:h&&f||null,velocity:G=>Xr(C(G)),next:G=>
580{if(!h&&y<1){let Y=Math.exp(-y*w*G),le=Math.sin(I*G),re=Math.cos(I*G),oe=i-Y*(A*le+b*re),$=Xr(Y*(O*le+F*re));return s.done=Math.abs($)<=n&&Math.abs(i-oe)<=a,s.value=s.done?i:oe,s}let J=x(G);if(h)s.done=G>=f;else{let Y=Xr(C(G));s.done=Math.abs(Y)<=n&&Math.abs(i-J)<=a}return s.value=s.done?i:J,s},toString:()=>{let G=Math.min(Th(q),2e4),J=LI(Y=>q.next(G*Y).value,G,30);return G+"ms "+J},toTransition:()=>{}};return q}Ch.applyToOptions=e=>{let t=$he(e,100,Ch);return e.ease=t.ease,e.duration=Xr(t.duration),e.type="keyframes",e};var Fet=5;function $I(e,t,r){let n=Math.max(t-Fet,0);return Pb(r-e(n),t-n)}function Fb({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:l,restDelta:u=.5,restSpeed:d}){let f=e[0],m={done:!1,value:f},h=F=>s!==void 0&&F<s||l!==void 0&&F>l,g=F=>s===void 0?l:l===void 0||Math.abs(s-F)<Math.abs(l-F)?s:l,y=r*t,b=f+y,w=i===void 0?b:i(b);w!==b&&(y=w-f);let S=F=>-y*Math.exp(-F/n),x=F=>w+S(F),C=F=>{let q=S(F),G=x(F);m.done=Math.abs(q)<=u,m.value=m.done?w:G},I,A,O=F=>{h(m.value)&&(I=F,A=Ch({keyframes:[m.value,g(m.value)],velocity:$I(x,F,m.value),damping:a,stiffness:o,restDelta:u,restSpeed:d}))};return O(0),{calculatedDuration:null,next:F=>{let q=!1;return!A&&I===void 0&&(q=!0,C(F),O(F)),I!==void 0&&F>=I?A.next(F-I):(!q&&C(F),m)}}}function Uet(e,t,r){let n=[],a=r||_a.mix||EI,o=e.length-1;for(let i=0;i<o;i++){let s=a(e[i],e[i+1]);if(t){let l=Array.isArray(t)?t[i]||Mr:t;s=Ii(l,s)}n.push(s)}return n}function Mhe(e,t,{clamp:r=!0,ease:n,mixer:a}={}){let o=e.length;if(Vo(o===t.length,"Both input and output ranges must be the same length","range-length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let i=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Uet(t,n,a),l=s.length,u=d=>{if(i&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);let m=vs(e[f],e[f+1],d);return s[f](m)};return r?d=>u(_n(e[0],e[o-1],d)):u}function Rhe(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let a=vs(0,t,n);e.push(Ot(r,1,a))}}function Dhe(e){let t=[0];return Rhe(t,e.length-1),t}function Nhe(e,t){return e.map(r=>r*t)}function qet(e,t){return e.map(()=>t||Mb).splice(0,e.length-1)}function Rd({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let a=qD(n)?n.map(_I):_I(n),o={done:!1,value:t[0]},i=Nhe(r&&r.length===t.length?r:Dhe(t),e),s=Mhe(i,t,{ease:Array.isArray(a)?a:qet(t,a)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}var Vet=e=>e!==null;function oc(e,{repeat:t,repeatType:r="loop"},n,a=1){let o=e.filter(Vet),s=a<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||n===void 0?o[s]:n}var Zet={decay:Fb,inertia:Fb,tween:Rd,keyframes:Rd,spring:Ch};function OI(e){typeof e.type=="string"&&(e.type=Zet[e.type])}var ic=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}};var Het=e=>e/100,Ll=class extends ic{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:r}=this.options;r&&r.updatedAt!==Rr.now()&&this.tick(Rr.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},ys.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;OI(t);let{type:r=Rd,repeat:n=0,repeatDelay:a=0,repeatType:o,velocity:i=0}=t,{keyframes:s}=t,l=r||Rd;l!==Rd&&typeof s[0]!="number"&&(this.mixKeyframes=Ii(Het,EI(s[0],s[1])),s=[0,100]);let u=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-i})),u.calculatedDuration===null&&(u.calculatedDuration=Th(u));let{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+a,this.totalDuration=this.resolvedDuration*(n+1)-a,this.generator=u}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:n,totalDuration:a,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);let{delay:u=0,keyframes:d,repeat:f,repeatType:m,repeatDelay:h,type:g,onUpdate:y,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?w<0:w>a;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let x=this.currentTime,C=n;if(f){let F=Math.min(this.currentTime,a)/s,q=Math.floor(F),G=F%1;!G&&F>=1&&(G=1),G===1&&q--,q=Math.min(q,f+1),q%2&&(m==="reverse"?(G=1-G,h&&(G-=h/s)):m==="mirror"&&(C=i)),x=_n(0,1,G)*s}let I;S?(this.delayState.value=d[0],I=this.delayState):I=C.next(x),o&&!S&&(I.value=o(I.value));let{done:A}=I;!S&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);let O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return O&&g!==Fb&&(I.value=oc(d,this.options,b,this.speed)),y&&y(I.value),O&&this.finish(),I}then(t,r){return this.finished.then(t,r)}get duration(){return En(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+En(t)}get time(){return En(this.currentTime)}set time(t){t=Xr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;
580if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return $I(n=>this.generator.next(n).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(Rr.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=En(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=Lhe,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();let n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Rr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,ys.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}};function zhe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Dd=e=>e*180/Math.PI,eN=e=>{let t=Dd(Math.atan2(e[1],e[0]));return tN(t)},Get={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eN,rotateZ:eN,skewX:e=>Dd(Math.atan(e[1])),skewY:e=>Dd(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tN=e=>(e=e%360,e<0&&(e+=360),e),jhe=eN,Bhe=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Fhe=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Wet={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bhe,scaleY:Fhe,scale:e=>(Bhe(e)+Fhe(e))/2,rotateX:e=>tN(Dd(Math.atan2(e[6],e[5]))),rotateY:e=>tN(Dd(Math.atan2(-e[2],e[0]))),rotateZ:jhe,rotate:jhe,skewX:e=>Dd(Math.atan(e[4])),skewY:e=>Dd(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function MI(e){return e.includes("scale")?1:0}function RI(e,t){if(!e||e==="none")return MI(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),n,a;if(r)n=Wet,a=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Get,a=s}if(!a)return MI(t);let o=n[t],i=a[1].split(",").map(Ket);return typeof o=="function"?o(i):i[o]}var Uhe=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return RI(r,t)};function Ket(e){return parseFloat(e.trim())}var ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zo=new Set(ws);var rN=e=>e===bs||e===Ve,Jet=new Set(["x","y","z"]),Xet=ws.filter(e=>!Jet.has(e));function qhe(e){let t=[];return Xet.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var $l={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:n})=>{let a=e.max-e.min;return n==="border-box"?a:a-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:n})=>{let a=e.max-e.min;return n==="border-box"?a:a-parseFloat(t)-parseFloat(r)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>RI(t,"x"),y:(e,{transform:t})=>RI(t,"y")};$l.translateX=$l.x;$l.translateY=$l.y;var Nd=new Set,nN=!1,aN=!1,oN=!1;
580function Vhe(){if(aN){let e=Array.from(Nd).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let a=qhe(n);a.length&&(r.set(n,a),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let a=r.get(n);a&&a.forEach(([o,i])=>{n.getValue(o)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}aN=!1,nN=!1,Nd.forEach(e=>e.complete(oN)),Nd.clear()}function Zhe(){Nd.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(aN=!0)})}function Hhe(){oN=!0,Zhe(),Vhe(),oN=!1}var sc=class{constructor(t,r,n,a,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=a,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Nd.add(this),nN||(nN=!0,kt.read(Zhe),kt.resolveKeyframes(Vhe))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:a}=this;if(t[0]===null){let o=a?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(n&&r){let s=n.readValue(r,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),a&&o===void 0&&a.set(t[0])}zhe(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Nd.delete(this)}cancel(){this.state==="scheduled"&&(Nd.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var Ghe=e=>e.startsWith("--");function DI(e,t,r){Ghe(t)?e.style.setProperty(t,r):e.style[t]=r}var Whe={};function NI(e,t){let r=Cb(e);return()=>Whe[t]??r()}var Khe=NI(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var zI=NI(()=>{try{document.createElement("div").animate({opacity:0}
580,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var zd=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`;var iN={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zd([0,.65,.55,1]),circOut:zd([.55,0,1,.45]),backIn:zd([.31,.01,.66,-.59]),backOut:zd([.33,1.53,.69,.99])};function sN(e,t){if(e)return typeof e=="function"?zI()?LI(e,t):"ease-out":Rb(e)?zd(e):Array.isArray(e)?e.map(r=>sN(r,t)||iN.easeOut):iN[e]}function Jhe(e,t,r,{delay:n=0,duration:a=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:l}={},u=void 0){let d={[t]:r};l&&(d.offset=l);let f=sN(s,a);Array.isArray(f)&&(d.easing=f),fo.value&&ys.waapi++;let m={delay:n,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};u&&(m.pseudoElement=u);let h=e.animate(d,m);return fo.value&&h.finished.finally(()=>{ys.waapi--}),h}function jI(e){return typeof e=="function"&&"applyToOptions"in e}function Xhe({type:e,...t}){return jI(e)&&zI()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Ph=class extends ic{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:n,keyframes:a,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,Vo(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=Xhe(t);this.animation=Jhe(r,n,a,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let d=oc(a,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(d),DI(r,n,d),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return En(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+En(t)}get time(){return En(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Xr(t),r&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:r,rangeEnd:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&Khe()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),n&&(this.animation.rangeEnd=n),Mr):a(this)}};var Yhe={anticipate:Eb,backInOut:Ab,circInOut:Ob};function Yet(e){return e in Yhe}function Qhe(e){typeof e.ease=="string"&&Yet(e.ease)&&(e.ease=Yhe[e.ease])}var lN=10,BI=class extends Ph{constructor(t){Qhe(t),OI(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:n,onComplete:a,element:o,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new Ll({...i,autoplay:!1}),l=Math.max(lN,Rr.now()-this.startTime),u=_n(0,lN,l-lN),d=s.sample(l).value,{name:f}=this.options;o&&f&&DI(o,f,d),r.setWithVelocity(s.sample(Math.max(0,l-u)).value,d,u),s.stop()}};var uN=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Sn.test(e)||e==="0")&&!e.startsWith("url("));function Qet(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function ege(e,t,r,n){let a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],i=uN(a,t),s=uN(o,t);return Pl(i===s,`You are trying to animate ${t} from "${a}" to "${o}". "${i?o:a}" is not an animatable value.`,"value-not-animatable"),!i||!s?!1:Qet(e)||(r==="spring"||jI(r))&&n}function Ub(e){e.duration=0,e.type="keyframes"}var FI=new Set(["opacity","clipPath","filter","transform"]);var ett=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function tge(e){for(let t=0;t<e.length;
580t++)if(typeof e[t]=="string"&&ett.test(e[t]))return!0;return!1}var ttt=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rtt=Cb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rge(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:a,damping:o,type:i,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:d}=t.owner.getProps();return rtt()&&r&&(FI.has(r)||ttt.has(r)&&tge(s))&&(r!=="transform"||!d)&&!u&&!n&&a!=="mirror"&&o!==0&&i!=="inertia"}var ntt=40,UI=class extends ic{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:l,motionValue:u,element:d,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Rr.now();let m={autoplay:t,delay:r,type:n,repeat:a,repeatDelay:o,repeatType:i,name:l,motionValue:u,element:d,...f},h=d?.KeyframeResolver||sc;this.keyframeResolver=new h(s,(g,y,b)=>this.onKeyframesResolved(g,y,m,!b),l,u,d),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,a){this.keyframeResolver=void 0;let{name:o,type:i,velocity:s,delay:l,isHandoff:u,onUpdate:d}=n;this.resolvedAt=Rr.now();let f=!0;ege(t,o,i,s)||(f=!1,(_a.instantAnimations||!l)&&d?.(oc(t,n,r)),t[0]=t[t.length-1],Ub(n),n.repeat=0);let h={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>ntt?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},g=f&&!u&&rge(h),y=h.motionValue?.owner?.current,b;if(g)try{b=new BI({...h,element:y})}catch{b=new Ll(h)}else b=new Ll(h);b.finished.then(()=>{this.notifyFinished()}).catch(Mr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hhe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function qI(e,t,r,n=0,a=1){let o=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),i=e.size,s=(i-1)*n;return typeof r=="function"?r(o,i):a===1?o*n:s-o*n}var att=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ott(e){let t=att.exec(e);if(!t)return[,];let[,r,n,a]=t;return[`--${r??n}`,a]}var itt=4;function cN(e,t,r=1){Vo(r<=itt,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[n,a]=ott(e);if(!n)return;let o=window.getComputedStyle(t).getPropertyValue(n);if(o){let i=o.trim();return kb(i)?parseFloat(i):i}return _h(a)?cN(a,t,r+1):a}var stt={type:"spring",stiffness:500,damping:25,restSpeed:10},ltt=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),utt={type:"keyframes",duration:.8},ctt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nge=(e,{keyframes:t})=>t.length>2?utt:Zo.has(e)?e.startsWith("scale")?ltt(t[1]):stt:ctt;function VI(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}function Ah(e,t){let r=e?.[t]??e?.default??e;return r!==e?VI(r,e):r}var dtt=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function age(e){for(let t in e)if(!dtt.has(t))return!0;return!1}var jd=(e,t,r,n={},a,o)=>i=>{let s=Ah(n,e)||{},l=s.delay||n.delay||0,{elapsed:u=0}=n;u=u-Xr(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:m=>
580{t.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:a};age(s)||Object.assign(d,nge(e,d)),d.duration&&(d.duration=Xr(d.duration)),d.repeatDelay&&(d.repeatDelay=Xr(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Ub(d),d.delay===0&&(f=!0)),(_a.instantAnimations||_a.skipAnimations||a?.shouldSkipAnimations)&&(f=!0,Ub(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!o&&t.get()!==void 0){let m=oc(d.keyframes,s);if(m!==void 0){kt.update(()=>{d.onUpdate(m),d.onComplete()});return}}return s.isSync?new Ll(d):new UI(d)};function oge(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Bd(e,t,r,n){if(typeof t=="function"){let[a,o]=oge(n);t=t(r!==void 0?r:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[a,o]=oge(n);t=t(r!==void 0?r:e.custom,a,o)}return t}function po(e,t,r){let n=e.getProps();return Bd(n,t,r!==void 0?r:n.custom,e)}var ZI=new Set(["width","height","top","left","right","bottom",...ws]);var ige=30,ftt=e=>!isNaN(parseFloat(e)),sge={current:void 0},dN=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{let a=Rr.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Rr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ftt(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new Al);let n=this.events[t].add(r);return t==="change"?()=>{n(),kt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return sge.current&&sge.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Rr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ige)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,ige);return Pb(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ci(e,t){return new dN(e,t)}var qb=e=>Array.isArray(e);function ptt(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ci(r))}function mtt(e){return qb(e)?e[e.length-1]||0:e}function lge(e,t){let r=po(e,t),{transitionEnd:n={},transition:a={},...o}=r||{};o={...o,...n};for(let i in o){let s=mtt(o[i]);ptt(e,i,s)}}var rr=e=>!!(e&&e.getVelocity);function uge(e){return!!(rr(e)&&e.add)}function Eh(e,t){let r=e.getValue("willChange");if(uge(r))return r.add(t);if(!r&&_a.WillChange){let n=new _a.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Lh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var cge="framerAppearId",Vb="data-"+Lh(cge);function HI(e){return e.props[Vb]}function htt({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function GI(e,t,{delay:r=0,transitionOverride:n,type:a}={}){let{transition:o,transitionEnd:i,...s}=t,l=e.getDefaultTransition();o=o?VI(o,l):l;let u=o?.reduceMotion;n&&(o=n);let d=[],f=a&&e.animationState&&e.animationState.getState()[a];for(let m in s){let h=e.getValue(m,e.latestValues[m]??null),g=s[m];if(g===void 0||f&&htt(f,m))continue;let y={delay:r,...Ah(o||{},m)},b=h.get();if(b!==void 0&&!h.isAnimating()&&!Array.isArray(g)&&g===b&&!y.velocity){kt.update(()=>h.set(g));continue}let w=!1;if(window.MotionHandoffAnimation){let C=HI(e);if(C){let I=window.MotionHandoffAnimation(C,m,kt);I!==null&&(y.startTime=I,w=!0)}}Eh(e,m);let S=u??e.shouldReduceMotion;h.start(jd(m,h,g,S&&ZI.has(m)?{type:!1}:y,e,w));let x=h.animation;x&&d.push(x)}if(i){let m=()=>kt.update(()=>{i&&lge(e,i)});d.length?Promise.all(d).then(m):m()}return d}function WI(e,t,r={}){let n=po(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(a=r.transitionOverride);let o=n?()=>Promise.all(GI(e,n,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{let{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=a;return gtt(e,t,l,u,d,f,r)}:()=>Promise.resolve(),{when:s}=a;if(s){let[l,u]=s==="beforeChildren"?[o,i]:[i,o];return l().then(()=>u())}else return Promise.all([o(),i(r.delay)])}function gtt(e,t,r=0,n=0,a=0,o=1,i){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(WI(l,t,{...i,delay:r+(typeof n=="function"?0:n)+qI(e.variantChildren,l,n,a,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function dge(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let a=t.map(o=>WI(e,o,r));n=Promise.all(a)}else if(typeof t=="string")n=WI(e,t,r);else{let a=typeof t=="function"?po(e,t,r.custom):t;n=Promise.all(GI(e,a,r))}return n.then(()=>
580{e.notify("AnimationComplete",t)})}var fge={test:e=>e==="auto",parse:e=>e};var KI=e=>t=>t.test(e);var fN=[bs,Ve,ea,Ti,GD,HD,fge],pN=e=>fN.find(KI(e));function pge(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Tb(e):!0}var vtt=new Set(["brightness","contrast","saturate","opacity"]);function ytt(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Sh)||[];if(!n)return e;let a=r.replace(n,""),o=vtt.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+a+")"}var btt=/\b([a-z-]*)\(.*?\)/gu,Zb={...Sn,getAnimatableNone:e=>{let t=e.match(btt);return t?t.map(ytt).join(" "):e}};var Hb={...Sn,getAnimatableNone:e=>{let t=Sn.parse(e);return Sn.createTransformer(e)(t.map(n=>typeof n=="number"?0:typeof n=="object"?{...n,alpha:1}:n))}};var mN={...bs,transform:Math.round};var mge={rotate:Ti,rotateX:Ti,rotateY:Ti,rotateZ:Ti,scale:zb,scaleX:zb,scaleY:zb,scaleZ:zb,skew:Ti,skewX:Ti,skewY:Ti,distance:Ve,translateX:Ve,translateY:Ve,translateZ:Ve,x:Ve,y:Ve,z:Ve,perspective:Ve,transformPerspective:Ve,opacity:El,originX:CI,originY:CI,originZ:Ve};var $h={borderWidth:Ve,borderTopWidth:Ve,borderRightWidth:Ve,borderBottomWidth:Ve,borderLeftWidth:Ve,borderRadius:Ve,borderTopLeftRadius:Ve,borderTopRightRadius:Ve,borderBottomRightRadius:Ve,borderBottomLeftRadius:Ve,width:Ve,maxWidth:Ve,height:Ve,maxHeight:Ve,top:Ve,right:Ve,bottom:Ve,left:Ve,inset:Ve,insetBlock:Ve,insetBlockStart:Ve,insetBlockEnd:Ve,insetInline:Ve,insetInlineStart:Ve,insetInlineEnd:Ve,padding:Ve,paddingTop:Ve,paddingRight:Ve,paddingBottom:Ve,paddingLeft:Ve,paddingBlock:Ve,paddingBlockStart:Ve,paddingBlockEnd:Ve,paddingInline:Ve,paddingInlineStart:Ve,paddingInlineEnd:Ve,margin:Ve,marginTop:Ve,marginRight:Ve,marginBottom:Ve,marginLeft:Ve,marginBlock:Ve,marginBlockStart:Ve,marginBlockEnd:Ve,marginInline:Ve,marginInlineStart:Ve,marginInlineEnd:Ve,fontSize:Ve,backgroundPositionX:Ve,backgroundPositionY:Ve,...mge,zIndex:mN,fillOpacity:El,strokeOpacity:El,numOctaves:mN};var xtt={...$h,color:Cr,backgroundColor:Cr,outlineColor:Cr,fill:Cr,stroke:Cr,borderColor:Cr,borderTopColor:Cr,borderRightColor:Cr,borderBottomColor:Cr,borderLeftColor:Cr,filter:Zb,WebkitFilter:Zb,mask:Hb,WebkitMask:Hb},JI=e=>xtt[e];var wtt=new Set([Zb,Hb]);function XI(e,t){let r=JI(e);return wtt.has(r)||(r=Sn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var _tt=new Set(["auto","none","0"]);function hge(e,t,r){let n=0,a;for(;n<e.length&&!a;){let o=e[n];typeof o=="string"&&!_tt.has(o)&&ac(o).values.length&&(a=e[n]),n++}if(a&&r)for(let o of t)e[o]=XI(r,a)}var YI=class extends sc{constructor(t,r,n,a,o){super(t,r,n,a,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),_h(f))){let m=cN(f,r.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ZI.has(n)||t.length!==2)return;let[a,o]=t,i=pN(a),s=pN(o),l=VD(a),u=VD(o);if(l!==u&&$l[n]){this.needsMeasurement=!0;return}if(i!==s)if(rN(i)&&rN(s))for(let d=0;d<t.length;d++){let f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else $l[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,n=[];for(let a=0;a<t.length;a++)(t[a]===null||pge(t[a]))&&n.push(a);n.length&&hge(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$l[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let a=r[r.length-1];a!==void 0&&t.getValue(n,a).jump(a,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let a=t.getValue(r);a&&a.jump(this.measuredOrigin,!1);let o=n.length-1,i=n[o];n[o]=$l[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
580h(([s,l])=>{t.getValue(s).set(l)}),this.resolveNoneKeyframes()}};function QI(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;t&&(n=t.current);let a=r?.[e]??n.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(n=>n!=null)}var e6=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function gge(e){return Ib(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:Fd,cancel:Stt}=SI(queueMicrotask,!1);var Ho={x:!1,y:!1};function t6(){return Ho.x||Ho.y}function hN(e){return e==="x"||e==="y"?Ho[e]?null:(Ho[e]=!0,()=>{Ho[e]=!1}):Ho.x||Ho.y?null:(Ho.x=Ho.y=!0,()=>{Ho.x=Ho.y=!1})}function r6(e,t){let r=QI(e),n=new AbortController,a={passive:!0,...t,signal:n.signal};return[r,a,()=>n.abort()]}function ktt(e){return!(e.pointerType==="touch"||t6())}function gN(e,t,r={}){let[n,a,o]=r6(e,r);return n.forEach(i=>{let s=!1,l=!1,u,d=()=>{i.removeEventListener("pointerleave",g)},f=b=>{u&&(u(b),u=void 0),d()},m=b=>{s=!1,window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",m),l&&(l=!1,f(b))},h=()=>{s=!0,window.addEventListener("pointerup",m,a),window.addEventListener("pointercancel",m,a)},g=b=>{if(b.pointerType!=="touch"){if(s){l=!0;return}f(b)}},y=b=>{if(!ktt(b))return;l=!1;let w=t(i,b);typeof w=="function"&&(u=w,i.addEventListener("pointerleave",g,a))};i.addEventListener("pointerenter",y,a),i.addEventListener("pointerdown",h,a)}),o}var vN=(e,t)=>t?e===t?!0:vN(e,t.parentElement):!1;var Ud=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var Itt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yN(e){return Itt.has(e.tagName)||e.isContentEditable===!0}var Ttt=new Set(["INPUT","SELECT","TEXTAREA"]);function bN(e){return Ttt.has(e.tagName)||e.isContentEditable===!0}var Oh=new WeakSet;function vge(e){return t=>{t.key==="Enter"&&e(t)}}function xN(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var yge=(e,t)=>{let r=e.currentTarget;if(!r)return;let n=vge(()=>{if(Oh.has(r))return;xN(r,"down");let a=vge(()=>{xN(r,"up")}),o=()=>xN(r,"cancel");r.addEventListener("keyup",a,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function bge(e){return Ud(e)&&!t6()}var xge=new WeakSet;function wN(e,t,r={}){let[n,a,o]=r6(e,r),i=s=>{let l=s.currentTarget;if(!bge(s)||xge.has(s))return;Oh.add(l),r.stopPropagation&&xge.add(s);let u=t(l,s),d=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),Oh.has(l)&&Oh.delete(l),bge(h)&&typeof u=="function"&&u(h,{success:g})},f=h=>{d(h,l===window||l===document||r.useGlobalTarget||vN(l,h.target))},m=h=>{d(h,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",m,a)};return n.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,a),gge(s)&&(s.addEventListener("focus",u=>yge(u,a)),!yN(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function Mh(e){return Ib(e)&&"ownerSVGElement"in e}var n6=new WeakMap,a6,wge=(e,t,r)=>(n,a)=>a&&a[0]?a[0][e+"Size"]:Mh(n)&&"getBBox"in n?n.getBBox()[t]:n[r],Ctt=wge("inline","width","offsetWidth"),Ptt=wge("block","height","offsetHeight");function Att({target:e,borderBoxSize:t}){n6.get(e)?.forEach(r=>{r(e,{get width(){return Ctt(e,t)},get height(){return Ptt(e,t)}})})}function Ett(e){e.forEach(Att)}function Ltt(){typeof ResizeObserver>"u"||(a6=new ResizeObserver(Ett))}function _ge(e,t){a6||Ltt();let r=QI(e);return r.forEach(n=>{let a=n6.get(n);a||(a=new Set,n6.set(n,a)),a.add(t),a6?.observe(n)}),()=>{r.forEach(n=>{let a=n6.get(n);a?.delete(t),a?.size||a6?.unobserve(n)})}}var o6=new Set,Rh;function $tt(){Rh=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};o6.forEach(t=>t(e))},window.addEventListener("resize",Rh)}function Sge(e){return o6.add(e),Rh||$tt(),()=>{o6.delete(e),!o6.size&&typeof Rh=="function"&&(window.removeEventListener("resize",Rh),Rh=void 0)}}function i6(e,t){return typeof e=="function"?Sge(e):_ge(e,t)}function kge(e){return Mh(e)&&e.tagName==="svg"}var Ott=[...fN,Cr,Sn],Ige=e=>Ott.find(KI(e));var _N=()=>({translate:0,scale:1,origin:0,originPoint:0}),lc=()=>({x:_N(),y:_N()}),SN=()=>({min:0,max:0}),Pr=()=>({x:SN(),y:SN()});var Tge=new WeakMap;function Ol(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _s(e){return typeof e=="string"||Array.isArray(e)}var s6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gb=["initial",...s6];function uc(e){return Ol(e.animate)||Gb.some(t=>_s(e[t]))}function Wb(e){return!!(uc(e)||e.variants)}function Cge(e,t,r){for(let n in t){let a=t[n],o=r[n];if(rr(a))e.addValue(n,a);else if(rr(o))e.addValue(n,Ci(a,{owner:e}));else if(o!==a)if(e.hasValue(n)){let i=e.getValue(n);i.liveStyle===!0?i.jump(a):i.hasAnimated||i.set(a)}else{let i=e.getStaticValue(n);e.addValue(n,Ci(i!==void 0?i:a,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}var Kb={current:null},l6={current:!1};var Mtt=typeof window<"u";function Pge(){if(l6.current=!0,!!Mtt)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kb.current=e.matches;e.addEventListener("change",t),t()}else Kb.current=!1}var Age=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],u6={};function Xb(e){u6=e}function kN(){return u6}var Jb=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:a,skipAnimations:o,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=sc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let h=Rr.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,kt.render(this.render,!1,!0))};let{latestValues:u,renderState:d}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=d,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!i,this.isControllingVariants=uc(r),this.isVariantNode=Wb(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...m}=this.scrapeMotionValuesFromProps(r,{},this);for(let h in m){let g=m[h];u[h]!==void 0&&rr(g)&&g.set(u[h])}}mount(t){if(this.hasBeenMounted)for(let r in this.initialValues)this.values.get(r)?.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,Tge.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
580h((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(l6.current||Pge(),this.shouldReduceMotion=Kb.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ba(this.notifyUpdate),Ba(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),r.accelerate&&FI.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:l,ease:u,duration:d}=r.accelerate,f=new Ph({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:Xr(d)}),m=i(f);this.valueSubscriptions.set(t,()=>{m(),f.cancel()});return}let n=Zo.has(t);n&&this.onBindTransform&&this.onBindTransform();let a=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&kt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{a(),o&&o(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in u6){let r=u6[t];if(!r)continue;let{isEnabled:n,Feature:a}=r;if(!this.features[t]&&a&&n(this.props)&&(this.features[t]=new a(this)),this.features[t]){let o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Pr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<Age.length;n++){let a=Age[n];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);let o="on"+a,i=t[o];i&&(this.propEventSubscriptions[a]=this.on(a,i))}this.prevMotionValues=Cge(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Ci(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(kb(n)||Tb(n))?n=parseFloat(n):!Ige(n)&&Sn.test(r)&&(n=XI(t,r)),this.setBaseTarget(t,rr(n)?n.get():n)),rr(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,n;if(typeof r=="string"||typeof r=="object"){let o=Bd(this.props,r,this.presenceContext?.custom);o&&(n=o[t])}if(r&&n!==void 0)return n;let a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!rr(a)?a:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new Al),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){Fd.render(this.render)}};
580var Dh=class extends Jb{constructor(){super(...arguments),this.KeyframeResolver=YI}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let n=t.style;return n?n[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;rr(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var kn=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function Yb({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function IN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TN(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function CN(e){return e===void 0||e===1}function c6({scale:e,scaleX:t,scaleY:r}){return!CN(e)||!CN(t)||!CN(r)}function Ml(e){return c6(e)||PN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function PN(e){return Ege(e.x)||Ege(e.y)}function Ege(e){return e&&e!=="0%"}function Qb(e,t,r){let n=e-r,a=t*n;return r+a}function Lge(e,t,r,n,a){return a!==void 0&&(e=Qb(e,a,n)),Qb(e,r,n)+t}function AN(e,t=0,r=1,n,a){e.min=Lge(e.min,t,r,n,a),e.max=Lge(e.max,t,r,n,a)}function EN(e,{x:t,y:r}){AN(e.x,t.translate,t.scale,t.originPoint),AN(e.y,r.translate,r.scale,r.originPoint)}var $ge=.999999999999,Oge=1.0000000000001;function Dge(e,t,r,n=!1){let a=r.length;if(!a)return;t.x=t.y=1;let o,i;for(let s=0;s<a;s++){o=r[s],i=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Go(e.x,-o.scroll.offset.x),Go(e.y,-o.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,EN(e,i)),n&&Ml(o.latestValues)&&ex(e,o.latestValues,o.layout?.layoutBox))}t.x<Oge&&t.x>$ge&&(t.x=1),t.y<Oge&&t.y>$ge&&(t.y=1)}function Go(e,t){e.min+=t,e.max+=t}function Mge(e,t,r,n,a=.5){let o=Ot(e.min,e.max,a);AN(e,t,r,o,n)}function Rge(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ex(e,t,r){let n=r??e;Mge(e.x,Rge(t.x,n.x),t.scaleX,t.scale,t.originX),Mge(e.y,Rge(t.y,n.y),t.scaleY,t.scale,t.originY)}function d6(e,t){return Yb(TN(e.getBoundingClientRect(),t))}function LN(e,t,r){let n=d6(e,r),{scroll:a}=t;return a&&(Go(n.x,a.offset.x),Go(n.y,a.offset.y)),n}var Rtt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Dtt=ws.length;function Nge(e,t,r){let n="",a=!0;for(let o=0;o<Dtt;o++){let i=ws[o],s=e[i];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(i.startsWith("scale")?1:0);else{let u=parseFloat(s);l=i.startsWith("scale")?u===1:u===0}if(!l||r){let u=e6(s,$h[i]);if(!l){a=!1;let d=Rtt[i]||i;n+=`${d}(${u}) `}r&&(t[i]=u)}}return n=n.trim(),r?n=r(t,a?"":n):a&&(n="none"),n}function qd(e,t,r){let{style:n,vars:a,transformOrigin:o}=e,i=!1,s=!1;for(let l in t){let u=t[l];if(Zo.has(l)){i=!0;continue}else if(II(l)){a[l]=u;continue}else{let d=e6(u,$h[l]);l.startsWith("origin")?(s=!0,o[l]=d):n[l]=d}}if(t.transform||(i||r?n.transform=Nge(t,e.transform,r):n.transform&&(n.transform="none")),s){let{originX:l="50%",originY:u="50%",originZ:d=0}=o;n.transformOrigin=`${l} ${u} ${d}`}}function f6(e,{style:t,vars:r},n,a){let o=e.style,i;for(i in t)o[i]=t[i];a?.applyProjectionStyles(o,n);for(i in r)o.setProperty(i,r[i])}function zge(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Nh={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ve.test(e))e=parseFloat(e);else return e;let r=zge(e,t.target.x),n=zge(e,t.target.y);return`${r}% ${n}%`}};var jge={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,a=Sn.parse(e);if(a.length>5)return n;let o=Sn.createTransformer(e),i=typeof a[0]!="number"?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;a[0+i]/=s,a[1+i]/=l;let u=Ot(s,l,.5);return typeof a[2+i]=="number"&&(a[2+i]/=u),typeof a[3+i]=="number"&&(a[3+i]/=u),o(a)}};var tx={borderRadius:{...Nh,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Nh,borderTopRightRadius:Nh,borderBottomLeftRadius:Nh,borderBottomRightRadius:Nh,boxSh
580adow:jge};function rx(e,{layout:t,layoutId:r}){return Zo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!tx[e]||e==="opacity")}function Vd(e,t,r){let n=e.style,a=t?.style,o={};if(!n)return o;for(let i in n)(rr(n[i])||a&&rr(a[i])||rx(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=n[i]);return o}function Ntt(e){return window.getComputedStyle(e)}var nx=class extends Dh{constructor(){super(...arguments),this.type="html",this.renderInstance=f6}readValueFromInstance(t,r){if(Zo.has(r))return this.projection?.isProjecting?MI(r):Uhe(t,r);{let n=Ntt(t),a=(II(r)?n.getPropertyValue(r):n[r])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:r}){return d6(t,r)}build(t,r,n){qd(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Vd(t,r,n)}};var ztt={offset:"stroke-dashoffset",array:"stroke-dasharray"},jtt={offset:"strokeDashoffset",array:"strokeDasharray"};function Bge(e,t,r=1,n=0,a=!0){e.pathLength=1;let o=a?ztt:jtt;e[o.offset]=`${-n}`,e[o.array]=`${t} ${r}`}var Btt=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ax(e,{attrX:t,attrY:r,attrScale:n,pathLength:a,pathSpacing:o=1,pathOffset:i=0,...s},l,u,d){if(qd(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=d?.transformBox??"fill-box",delete f.transformBox);for(let h of Btt)f[h]!==void 0&&(m[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),r!==void 0&&(f.y=r),n!==void 0&&(f.scale=n),a!==void 0&&Bge(f,a,o,i,!1)}var p6=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var ox=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fge(e,t,r,n){f6(e,t,void 0,n);for(let a in t.attrs)e.setAttribute(p6.has(a)?a:Lh(a),t.attrs[a])}function ix(e,t,r){let n=Vd(e,t,r);for(let a in e)if(rr(e[a])||rr(t[a])){let o=ws.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;n[o]=e[a]}return n}var sx=class extends Dh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Pr}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Zo.has(r)){let n=JI(r);return n&&n.default||0}return r=p6.has(r)?r:Lh(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return ix(t,r,n)}
580build(t,r,n){ax(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,a){Fge(t,r,n,a)}mount(t){this.isSVGTag=ox(t.tagName),super.mount(t)}};var Ftt=Gb.length;function $N(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?$N(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<Ftt;r++){let n=Gb[r],a=e.props[n];(_s(a)||a===!1)&&(t[n]=a)}return t}function ON(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var Utt=[...s6].reverse(),qtt=s6.length;function Vtt(e){return t=>Promise.all(t.map(({animation:r,options:n})=>dge(e,r,n)))}function MN(e){let t=Vtt(e),r=Uge(),n=!0,a=!1,o=u=>(d,f)=>{let m=po(e,f,u==="exit"?e.presenceContext?.custom:void 0);if(m){let{transition:h,transitionEnd:g,...y}=m;d={...d,...y,...g}}return d};function i(u){t=u(e)}function s(u){let{props:d}=e,f=$N(e.parent)||{},m=[],h=new Set,g={},y=1/0;for(let w=0;w<qtt;w++){let S=Utt[w],x=r[S],C=d[S]!==void 0?d[S]:f[S],I=_s(C),A=S===u?x.isActive:null;A===!1&&(y=w);let O=C===f[S]&&C!==d[S]&&I;if(O&&(n||a)&&e.manuallyAnimateOnMount&&(O=!1),x.protectedKeys={...g},!x.isActive&&A===null||!C&&!x.prevProp||Ol(C)||typeof C=="boolean")continue;if(S==="exit"&&x.isActive&&A!==!0){x.prevResolvedValues&&(g={...g,...x.prevResolvedValues});continue}let F=qge(x.prevProp,C),q=F||S===u&&x.isActive&&!O&&I||w>y&&I,G=!1,J=Array.isArray(C)?C:[C],Y=J.reduce(o(S),{});A===!1&&(Y={});let{prevResolvedValues:le={}}=x,re={...le,...Y},oe=R=>{q=!0,h.has(R)&&(G=!0,h.delete(R)),x.needsAnimating[R]=!0;let N=e.getValue(R);N&&(N.liveStyle=!1)};for(let R in re){let N=Y[R],U=le[R];if(g.hasOwnProperty(R))continue;let B=!1;qb(N)&&qb(U)?B=!ON(N,U):B=N!==U,B?N!=null?oe(R):h.add(R):N!==void 0&&h.has(R)?oe(R):x.protectedKeys[R]=!0}x.prevProp=C,x.prevResolvedValues=Y,x.isActive&&(g={...g,...Y}),(n||a)&&e.blockInitialAnimation&&(q=!1);let $=O&&F;q&&(!$||G)&&m.push(...J.map(R=>{let N={type:S};if(typeof R=="string"&&(n||a)&&!$&&e.manuallyAnimateOnMount&&e.parent){let{parent:U}=e,B=po(U,R);if(U.enteringChildren&&B){let{delayChildren:V}=B.transition||{};N.delay=qI(U.enteringChildren,e,V)}}return{animation:R,options:N}}))}if(h.size){let w={};if(typeof d.initial!="boolean"){let S=po(e,Array.isArray(d.initial)?d.initial[0]:d.initial);S&&S.transition&&(w.transition=S.transition)}h.forEach(S=>{let x=e.getBaseTarget(S),C=e.getValue(S);C&&(C.liveStyle=!0),w[S]=x??null}),m.push({animation:w})}let b=!!m.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),n=!1,a=!1,b?t(m):Promise.resolve()}function l(u,d){if(r[u].isActive===d)return Promise.resolve();e.variantChildren?.forEach(m=>m.animationState?.setActive(u,d)),r[u].isActive=d;let f=s(u);for(let m in r)r[m].protectedKeys={};return f}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>r,reset:()=>{r=Uge(),a=!0}}}function qge(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!ON(t,e):!1}function Zd(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Uge(){return{animate:Zd(!0),whileInView:Zd(),whileHover:Zd(),whileTap:Zd(),whileDrag:Zd(),whileFocus:Zd(),exit:Zd()}}function m6(e,t){e.min=t.min,e.max=t.max}function Wo(e,t){m6(e.x,t.x),m6(e.y,t.y)}function RN(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Vge=1e-4,Ztt=1-Vge,Htt=1+Vge,Zge=.01,Gtt=0-Zge,Wtt=0+Zge;function cn(e){return e.max-e.min}function jN(e,t,r){return Math.abs(e-t)<=r}function DN(e,t,r,n=.5){e.origin=n,e.originPoint=Ot(t.min,t.max,e.origin),e.scale=cn(r)/cn(t),e.translate=Ot(r.min,r.max,e.origin)-e.originPoint,(e.scale>=Ztt&&e.scale<=Htt||isNaN(e.scale))&&(e.scale=1),(e.translate>=Gtt&&e.translate<=Wtt||isNaN(e.translate))&&(e.translate=0)}function Hd(e,t,r,n){DN(e.x,t.x,r.x,n?n.originX:void 0),DN(e.y,t.y,r.y,n?n.originY:void 0)}function NN(e,t,r,n=0){let a=n?Ot(r.min,r.max,n):r.min;e.min=a+t.min,e.max=e.min+cn(t)}function BN(e,t,r,n){NN(e.x,t.x,r.x,n?.x),NN(e.y,t.y,r.y,n?.y)}function zN(e,t,r,n=0){let a=n?Ot(r.min,r.max,n):r.min;e.min=t.min-a,e.max=e.min+cn(t)}function zh(e,t,r,n){zN(e.x,t.x,r.x,n?.x),zN(e.y,t.y,r.y,n?.y)}function Hge(e,t,r,n,a){return e-=t,e=Qb(e,1/r,n),a!==void 0&&(e=Qb(e,1/a,n)),e}function Ktt(e,t=0,r=1,n=.5,a,o=e,i=e){if(ea.test(t)&&(t=parseFloat(t),t=Ot(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=Ot(o.min,o.max,n);e===o&&(s-=t),e.min=Hge(e.min,t,r,s,a),e.max=Hge(e.max,t,r,s,a)}function Gge(e,t,[r,n,a],o,i){Ktt(e,t[r],t[n],t[a],t.scale,o,i)}var Jtt=["x","scaleX","originX"],Xtt=["y","scaleY","originY"];function FN(e,t,r,n){Gge(e.x,t,Jtt,r?r.x:void 0,n?n.x:void 0),Gge(e.y,t,Xtt,r?r.y:void 0,n?n.y:void 0)}function Wge(e){return e.translate===0&&e.scale===1}function UN(e){return Wge(e.x)&&Wge(e.y)}function Kge(e,t){return e.min===t.min&&e.max===t.max}function Xge(e,t){return Kge(e.x,t.x)&&Kge(e.y,t.y)}function Jge(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qN(e,t){return Jge(e.x,t.x)&&Jge(e.y,t.y)}function VN(e){return cn(e.x)/cn(e.y)}function ZN(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function mo(e){return[e("x"),e("y")]}
580function Yge(e,t,r){let n="",a=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((a||o||i)&&(n=`translate3d(${a}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:d,rotateX:f,rotateY:m,skewX:h,skewY:g}=r;u&&(n=`perspective(${u}px) ${n}`),d&&(n+=`rotate(${d}deg) `),f&&(n+=`rotateX(${f}deg) `),m&&(n+=`rotateY(${m}deg) `),h&&(n+=`skewX(${h}deg) `),g&&(n+=`skewY(${g}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(n+=`scale(${s}, ${l})`),n||"none"}var r0e=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Ytt=r0e.length,Qge=e=>typeof e=="string"?parseFloat(e):e,e0e=e=>typeof e=="number"||Ve.test(e);function n0e(e,t,r,n,a,o){a?(e.opacity=Ot(0,r.opacity??1,Qtt(n)),e.opacityExit=Ot(t.opacity??1,0,ert(n))):o&&(e.opacity=Ot(t.opacity??1,r.opacity??1,n));for(let i=0;i<Ytt;i++){let s=r0e[i],l=t0e(t,s),u=t0e(r,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||e0e(l)===e0e(u)?(e[s]=Math.max(Ot(Qge(l),Qge(u),n),0),(ea.test(u)||ea.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=Ot(t.rotate||0,r.rotate||0,n))}function t0e(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var Qtt=a0e(0,.5,$b),ert=a0e(.5,.95,Mr);function a0e(e,t,r){return n=>n<e?0:n>t?1:r(vs(e,t,n))}function o0e(e,t,r){let n=rr(e)?e:Ci(e);return n.start(jd("",n,t,r)),n.animation}function Ss(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}var i0e=(e,t)=>e.depth-t.depth;var h6=class{constructor(){this.children=[],this.isDirty=!1}add(t){Md(this.children,t),this.isDirty=!0}remove(t){ec(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(i0e),this.isDirty=!1,this.children.forEach(t)}};function s0e(e,t){let r=Rr.now(),n=({timestamp:a})=>{let o=a-r;o>=t&&(Ba(n),e(o-t))};return kt.setup(n,!0),()=>Ba(n)}function Gd(e){return rr(e)?e.get():e}var g6=class{constructor(){this.members=[]}add(t){Md(this.members,t);for(let r=this.members.length-1;r>=0;r--){let n=this.members[r];if(n===t||n===this.lead||n===this.prevLead)continue;let a=n.instance;(!a||a.isConnected===!1)&&!n.snapshot&&(ec(this.members,n),n.unmount())}t.scheduleRender()}remove(t){if(ec(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){for(let r=this.members.indexOf(t)-1;r>=0;r--){let n=this.members[r];if(n.isPresent!==!1&&n.instance?.isConnected!==!1)return this.promote(n),!0}return!1}promote(t,r){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.updateSnapshot(),t.scheduleRender();let{layoutDependency:a}=n.options,{layoutDependency:o}=t.options;(a===void 0||a!==o)&&(t.resumeFrom=n,r&&(n.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}};var Wd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Kd={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},HN=["","X","Y","Z"],trt=1e3,rrt=0;function GN(e,t,r,n){let{latestValues:a}=t;a[e]&&(r[e]=a[e],t.setStaticValue(e,0),n&&(n[e]=0))}function g0e(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=HI(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",kt,!(a||o))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&g0e(n)}function v6({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:a}){return class{constructor(i={},s=t?.()){this.id=rrt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fo.value&&(Kd.nodes=Kd.calculatedTargetDeltas=Kd.calculatedProjections=0),this.nodes.forEac
580h(ort),this.nodes.forEach(drt),this.nodes.forEach(frt),this.nodes.forEach(irt),fo.addProjectionMetrics&&fo.addProjectionMetrics(Kd)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new h6)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new Al),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let l=this.eventHandlers.get(i);l&&l.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Mh(i)&&!kge(i),this.instance=i;let{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let d,f=0,m=()=>this.root.updateBlockedByResize=!1;kt.read(()=>{f=window.innerWidth}),e(i,()=>{let h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=s0e(m,250),Wd.hasAnimatedSinceResize&&(Wd.hasAnimatedSinceResize=!1,this.nodes.forEach(c0e)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let g=this.options.transition||u.getDefaultTransition()||vrt,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=u.getProps(),w=!this.targetLayout||!qN(this.targetLayout,h),S=!f&&m;if(this.options.layoutRoot||this.resumeFrom||S||f&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let x={...Ah(g,"layout"),onPlay:y,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(d,S)}else f||c0e(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ba(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(prt),this.animationId++)}getTransformTemplate(){let{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&g0e(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){let f=this.path[d];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(lrt),this.nodes.forEach(l0e);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(u0e);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
580h(urt),this.nodes.forEach(crt),this.nodes.forEach(nrt),this.nodes.forEach(art)):this.nodes.forEach(u0e),this.clearAllSnapshots();let s=Rr.now();qr.delta=_n(0,1e3/60,s-qr.timestamp),qr.timestamp=s,qr.isProcessing=!0,Nb.update.process(qr),Nb.preRender.process(qr),Nb.render.process(qr),qr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(srt),this.sharedNodes.forEach(mrt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!cn(this.snapshot.measuredBox.x)&&!cn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Pr()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(s=!1),s&&this.instance){let l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!UN(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;i&&this.instance&&(s||Ml(this.latestValues)||d)&&(a(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return i&&(l=this.removeTransform(l)),yrt(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return Pr();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(brt))){let{scroll:u}=this.root;u&&(Go(s.x,u.offset.x),Go(s.y,u.offset.y))}return s}removeElementScroll(i){let s=Pr();if(Wo(s,i),this.scroll?.wasRoot)return s;for(let l=0;l<this.path.length;l++){let u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&Wo(s,i),Go(s.x,d.offset.x),Go(s.y,d.offset.y))}return s}applyTransform(i,s=!1,l){let u=l||Pr();Wo(u,i);for(let d=0;d<this.path.length;d++){let f=this.path[d];!s&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(Go(u.x,-f.scroll.offset.x),Go(u.y,-f.scroll.offset.y)),Ml(f.latestValues)&&ex(u,f.latestValues,f.layout?.layoutBox)}return Ml(this.latestValues)&&ex(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(i){let s=Pr();Wo(s,i);for(let l=0;l<this.path.length;l++){let u=this.path[l];if(!Ml(u.latestValues))continue;let d;u.instance&&(c6(u.latestValues)&&u.updateSnapshot(),d=Pr(),Wo(d,u.measurePageBox())),FN(s,u.latestValues,u.snapshot?.layoutBox,d)}return Ml(this.latestValues)&&FN(s,this.latestValues),s}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==qr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
580haredProjectionDirty);let l=!!this.resumingFrom||this!==s;if(!(i||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=qr.timestamp;let m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Pr(),this.targetWithTransforms=Pr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BN(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Wo(this.target,this.layout.layoutBox),EN(this.target,this.targetDelta)):Wo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0),fo.value&&Kd.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||c6(this.parent.latestValues)||PN(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,s,l){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Pr(),this.relativeTargetOrigin=Pr(),zh(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),Wo(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===qr.timestamp&&(l=!1),l)return;let{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;Wo(this.layoutCorrected,this.layout.layoutBox);let f=this.treeScale.x,m=this.treeScale.y;Dge(this.layoutCorrected,this.treeScale,this.path,s),i.layout&&!i.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(i.target=i.layout.layoutBox,i.targetWithTransforms=Pr());let{target:h}=i;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(RN(this.prevProjectionDelta.x,this.projectionDelta.x),RN(this.prevProjectionDelta.y,this.projectionDelta.y)),Hd(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!ZN(this.projectionDelta.x,this.prevProjectionDelta.x)||!ZN(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h)),fo.value&&Kd.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){if(this.options.visualElement?.scheduleRender(),i){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=lc(),this.projectionDelta=lc(),this.projectionDeltaWithTransform=lc()}setAnimationOrigin(i,s=!1){let l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=lc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let m=Pr(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=h!==g,b=this.getStack(),w=!b||b.members.length<=1,S=!!(y&&!w&&this.options.crossfade===!0&&!this.path.some(grt));this.animationProgress=0;let x;this.mixTargetDelta=C=>{let I=C/1e3;d0e(f.x,i.x,I),d0e(f.y,i.y,I),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(zh(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hrt(this.relativeTarget,this.relativeTargetOrigin,m,I),x&&Xge(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Pr()
580),Wo(x,this.relativeTarget)),y&&(this.animationValues=d,n0e(d,u,this.latestValues,I,S,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ba(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=kt.update(()=>{Wd.hasAnimatedSinceResize=!0,ys.layout++,this.motionValue||(this.motionValue=Ci(0)),this.motionValue.jump(0,!1),this.currentAnimation=o0e(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{ys.layout--},onComplete:()=>{ys.layout--,i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(trt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:l,layout:u,latestValues:d}=i;if(!(!s||!l||!u)){if(this!==i&&this.layout&&u&&v0e(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Pr();let f=cn(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+f;let m=cn(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+m}Wo(s,l),ex(s,d),Hd(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new g6),this.sharedNodes.get(i).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){let u=this.getStack();u&&u.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){let{visualElement:i}=this.options;if(!i)return;let s=!1,{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;let u={};l.z&&GN("z",i,u,this.animationValues);for(let d=0;d<HN.length;d++)GN(`rotate${HN[d]}`,i,u,this.animationValues),GN(`skew${HN[d]}`,i,u,this.animationValues);i.render();for(let d in u)i.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Gd(s?.pointerEvents)||"",i.transform=l?l(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Gd(s?.pointerEvents)||""),this.hasProjected&&!Ml(this.latestValues)&&(i.transform=l?l({},""):"none",this.hasProjected=!1);return}i.visibility="";let d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Yge(this.projectionDeltaWithTransform,this.treeScale,d);l&&(f=l(d,f)),i.transform=f;let{x:m,y:h}=this.projectionDelta;i.transformOrigin=`${m.origin*100}% ${h.origin*100}% 0`,u.animationValues?i.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:i.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let g in tx){if(d[g]===void 0)continue;let{correct:y,applyTo:b,isCSSVariable:w}=tx[g],S=f==="none"?d[g]:y(d[g],u);if(b){let x=b.length;for(let C=0;C<x;C++)i[b[C]]=S}
580else w?this.options.visualElement.renderState.vars[g]=S:i[g]=S}this.options.layoutId&&(i.pointerEvents=u===this?Gd(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(l0e),this.root.sharedNodes.clear()}}}function nrt(e){e.updateLayout()}function art(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:n}=e.layout,{animationType:a}=e.options,o=t.source!==e.layout.source;if(a==="size")mo(d=>{let f=o?t.measuredBox[d]:t.layoutBox[d],m=cn(f);f.min=r[d].min,f.max=f.min+m});else if(a==="x"||a==="y"){let d=a==="x"?"y":"x";m6(o?t.measuredBox[d]:t.layoutBox[d],r[d])}else v0e(a,t.layoutBox,r)&&mo(d=>{let f=o?t.measuredBox[d]:t.layoutBox[d],m=cn(r[d]);f.max=f.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+m)});let i=lc();Hd(i,r,t.layoutBox);let s=lc();o?Hd(s,e.applyTransform(n,!0),t.measuredBox):Hd(s,r,t.layoutBox);let l=!UN(i),u=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:f,layout:m}=d;if(f&&m){let h=e.options.layoutAnchor||void 0,g=Pr();zh(g,t.layoutBox,f.layoutBox,h);let y=Pr();zh(y,r,m.layoutBox,h),qN(g,y)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=g,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function ort(e){fo.value&&Kd.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function irt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function srt(e){e.clearSnapshot()}function l0e(e){e.clearMeasurements()}function lrt(e){e.isLayoutDirty=!0,e.updateLayout()}function u0e(e){e.isLayoutDirty=!1}function urt(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function crt(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function c0e(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function drt(e){e.resolveTargetDelta()}function frt(e){e.calcProjection()}function prt(e){e.resetSkewAndRotation()}function mrt(e){e.removeLeadSnapshot()}function d0e(e,t,r){e.translate=Ot(t.translate,0,r),e.scale=Ot(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function f0e(e,t,r,n){e.min=Ot(t.min,r.min,n),e.max=Ot(t.max,r.max,n)}function hrt(e,t,r,n){f0e(e.x,t.x,r.x,n),f0e(e.y,t.y,r.y,n)}function grt(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vrt={duration:.45,ease:[.4,0,.1,1]},p0e=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),m0e=p0e("applewebkit/")&&!p0e("chrome/")?Math.round:Mr;function h0e(e){e.min=m0e(e.min),e.max=m0e(e.max)}function yrt(e){h0e(e.x),h0e(e.y)}function v0e(e,t,r){return e==="position"||e==="preserve-aspect"&&!jN(VN(t),VN(r),.2)}function brt(e){return e!==e.root&&e.scroll?.wasRoot}var y0e=v6({attachResizeListener:(e,t)=>Ss(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var y6={current:void 0},lx=v6({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!y6.current){let e=new y0e({});e.mount(window),e.setOptions({layoutScroll:!0}),y6.current=e}return y6.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var b0e=H(ve(),1),b6=(0,b0e.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var cc=H(ve(),1);function x0e(e=!0){let t=(0,cc.useContext)(xh);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:n,register:a}=t,o=(0,cc.useId)();(0,cc.useEffect)(()=>
580{if(e)return a(o)},[e]);let i=(0,cc.useCallback)(()=>e&&n&&n(o),[o,n,e]);return!r&&n?[!1,i]:[!0]}var w0e=H(ve(),1),x6=(0,w0e.createContext)({strict:!1});var _0e={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},S0e=!1;function xrt(){if(S0e)return;let e={};for(let t in _0e)e[t]={isEnabled:r=>_0e[t].some(n=>!!r[n])};Xb(e),S0e=!0}function w6(){return xrt(),kN()}function k0e(e){let t=w6();for(let r in e)t[r]={...t[r],...e[r]};Xb(t)}var wrt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ux(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wrt.has(e)}var I0e=e=>!ux(e);function _rt(e){typeof e=="function"&&(I0e=t=>t.startsWith("on")?!ux(t):e(t))}try{_rt(Xz("@emotion/is-prop-valid").default)}catch{}function T0e(e,t,r){let n={};for(let a in e)a==="values"&&typeof e.values=="object"||rr(e[a])||(I0e(a)||r===!0&&ux(a)||!t&&!ux(a)||e.draggable&&a.startsWith("onDrag"))&&(n[a]=e[a]);return n}var T6=H(qe(),1);var Uh=H(ve(),1);var C0e=H(ve(),1),dc=(0,C0e.createContext)({});var _6=H(ve(),1);function P0e(e,t){if(uc(e)){let{initial:r,animate:n}=e;return{initial:r===!1||_s(r)?r:void 0,animate:_s(n)?n:void 0}}return e.inherit!==!1?t:{}}function E0e(e){let{initial:t,animate:r}=P0e(e,(0,_6.useContext)(dc));return(0,_6.useMemo)(()=>({initial:t,animate:r}),[A0e(t),A0e(r)])}function A0e(e){return Array.isArray(e)?e.join(" "):e}var Fh=H(ve(),1);var L0e=H(ve(),1);var jh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function WN(e,t,r){for(let n in t)!rr(t[n])&&!rx(n,r)&&(e[n]=t[n])}function Srt({transformTemplate:e},t){return(0,L0e.useMemo)(()=>{let r=jh();return qd(r,t,e),Object.assign({},r.vars,r.style)},[t])}function krt(e,t){let r=e.style||{},n={};return WN(n,r,e),Object.assign(n,Srt(e,t)),n}function $0e(e,t){let r={},n=krt(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}var O0e=H(ve(),1);var S6=()=>({...jh(),attrs:{}});function M0e(e,t,r,n){let a=(0,O0e.useMemo)(()=>{let o=S6();return ax(o,t,ox(n),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};WN(o,e.style,e),a.style={...o,...a.style}}return a}var R0e=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Bh(e){return typeof e!="string"||e.includes("-")?!1:!!(R0e.indexOf(e)>-1||/[A-Z]/u.test(e))}function D0e(e,t,r,{latestValues:n},a,o=!1,i){let l=(i??Bh(e)?M0e:$0e)(t,n,a,e),u=T0e(t,typeof e=="string",o),d=e!==Fh.Fragment?{...u,...l,ref:r}:{},{children:f}=t,m=(0,Fh.useMemo)(()=>rr(f)?f.get():f,[f]);return(0,Fh.createElement)(e,{...d,children:m})}var KN=H(ve(),1);function Irt({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,a){return{latestValues:Trt(r,n,a,e),renderState:t()}}function Trt(e,t,r,n){let a={},o=n(e,{});for(let m in o)a[m]=Gd(o[m]);let{initial:i,animate:s}=e,l=uc(e),u=Wb(e);t&&u&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let d=r?r.initial===!1:!1;d=d||i===!1;let f=d?s:i;
580if(f&&typeof f!="boolean"&&!Ol(f)){let m=Array.isArray(f)?f:[f];for(let h=0;h<m.length;h++){let g=Bd(e,m[h]);if(g){let{transitionEnd:y,transition:b,...w}=g;for(let S in w){let x=w[S];if(Array.isArray(x)){let C=d?x.length-1:0;x=x[C]}x!==null&&(a[S]=x)}for(let S in y)a[S]=y[S]}}}return a}var k6=e=>(t,r)=>{let n=(0,KN.useContext)(dc),a=(0,KN.useContext)(xh),o=()=>Irt(e,t,n,a);return r?o():fhe(o)};var N0e=k6({scrapeMotionValuesFromProps:Vd,createRenderState:jh});var z0e=k6({scrapeMotionValuesFromProps:ix,createRenderState:S6});var j0e=Symbol.for("motionComponentSymbol");var Jd=H(ve(),1);function B0e(e,t,r){let n=(0,Jd.useRef)(r);(0,Jd.useInsertionEffect)(()=>{n.current=r});let a=(0,Jd.useRef)(null);return(0,Jd.useCallback)(o=>{o&&e.onMount?.(o);let i=n.current;if(typeof i=="function")if(o){let s=i(o);typeof s=="function"&&(a.current=s)}else a.current?(a.current(),a.current=null):i(o);else i&&(i.current=o);t&&(o?t.mount(o):t.unmount())},[t])}var Sa=H(ve(),1);var F0e=H(ve(),1),I6=(0,F0e.createContext)({});function fc(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function U0e(e,t,r,n,a,o){let{visualElement:i}=(0,Sa.useContext)(dc),s=(0,Sa.useContext)(x6),l=(0,Sa.useContext)(xh),u=(0,Sa.useContext)(b6),d=u.reducedMotion,f=u.skipAnimations,m=(0,Sa.useRef)(null),h=(0,Sa.useRef)(!1);n=n||s.renderer,!m.current&&n&&(m.current=n(e,{visualState:t,parent:i,props:r,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:d,skipAnimations:f,isSVG:o}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));let g=m.current,y=(0,Sa.useContext)(I6);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&Crt(m.current,r,a,y);let b=(0,Sa.useRef)(!1);(0,Sa.useInsertionEffect)(()=>{g&&b.current&&g.update(r,l)});let w=r[Vb],S=(0,Sa.useRef)(!!w&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return mhe(()=>{h.current=!0,g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),S.current&&g.animationState&&g.animationState.animateChanges())}),(0,Sa.useEffect)(()=>{g&&(!S.current&&g.animationState&&g.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),S.current=!1),g.enteringChildren=void 0)}),g}function Crt(e,t,r,n){let{layoutId:a,layout:o,drag:i,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:d,layoutCrossfade:f}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:q0e(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!i||s&&fc(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:n,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:d})}function q0e(e){if(e)return e.options.allowProjection!==!1?e.projection:q0e(e.parent)}function C6(e,{forwardMotionProps:t=!1,type:r}={},n,a){n&&k0e(n);let o=r?r==="svg":Bh(e),i=o?z0e:N0e;function s(u,d){let f,m={...(0,Uh.useContext)(b6),...u,layoutId:Prt(u)},{isStatic:h}=m,g=E0e(u),y=i(u,h);if(!h&&typeof window<"u"){Art(m,n);let b=Ert(m);f=b.MeasureLayout,g.visualElement=U0e(e,y,m,a,b.ProjectionNode,o)}return(0,T6.jsxs)(dc.Provider,{value:g,children:[f&&g.visualElement?(0,T6.jsx)(f,{visualElement:g.visualElement,...m}):null,D0e(e,u,B0e(y,g.visualElement,d),y,h,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let l=(0,Uh.forwardRef)(s);return l[j0e]=e,l}function Prt({layoutId:e}){let t=(0,Uh.useContext)(vI).id;return t&&e!==void 0?t+"-"+e:e}function Art(e,t){let r=(0,Uh.useContext)(x6).strict}function Ert(e){let t=w6(),{drag:r,layout:n}=t;if(!r&&!n)return{};let a={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function V0e(e,t){if(typeof Proxy>"u")return C6;let r=new Map,n=(o,i)=>C6(o,i,e,t),a=(o,i)=>n(o,i);return new Proxy(a,{get:(o,i)=>i==="create"?n:(r.has(i)||r.set(i,C6(i,void 0,e,t)),r.get(i))})}var Z0e=H(ve(),1);var H0e=(e,t)=>t.isSVG??Bh(e)?new sx(t):new nx(t,{allowProjection:e!==Z0e.Fragment});var P6=class extends kn{constructor(t){super(t),t.animationState||(t.animationState=MN(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();Ol(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}};var Lrt=0,A6=class extends kn{constructor(){super(...arguments),this.id=Lrt++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;if(t&&n===!1){if(this.isExitComplete){let{initial:o,custom:i}=this.node.getProps();
580if(typeof o=="string"){let s=po(this.node,o,i);if(s){let{transition:l,transitionEnd:u,...d}=s;for(let f in d)this.node.getValue(f)?.jump(d[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let a=this.node.animationState.setActive("exit",!t);r&&!t&&a.then(()=>{this.isExitComplete=!0,r(this.id)})}mount(){let{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}};var G0e={animation:{Feature:P6},exit:{Feature:A6}};function Rl(e){return{point:{x:e.pageX,y:e.pageY}}}var W0e=e=>t=>Ud(t)&&e(t,Rl(t));function pc(e,t,r,n){return Ss(e,t,W0e(r),n)}var E6=({current:e})=>e?e.ownerDocument.defaultView:null;var K0e=(e,t)=>Math.abs(e-t);function J0e(e,t){let r=K0e(e.x,t.x),n=K0e(e.y,t.y);return Math.sqrt(r**2+n**2)}var X0e=new Set(["auto","scroll"]),qh=class{constructor(t,r,{transformPagePoint:n,contextWindow:a=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=h=>{this.handleScroll(h.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=L6(this.lastRawMoveEventInfo,this.transformPagePoint));let h=JN(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=J0e(h.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;let{point:b}=h,{timestamp:w}=qr;this.history.push({...b,timestamp:w});let{onStart:S,onMove:x}=this.handlers;g||(S&&S(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,g)=>{this.lastMoveEvent=h,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=L6(g,this.transformPagePoint),kt.update(this.updatePoint,!0)},this.handlePointerUp=(h,g)=>{this.end();let{onEnd:y,onSessionEnd:b,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let S=JN(h.type==="pointercancel"?this.lastMoveEventInfo:L6(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(h,S),b&&b(h,S)},!Ud(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=a||window;let l=Rl(t),u=L6(l,this.transformPagePoint),{point:d}=u,{timestamp:f}=qr;this.history=[{...d,timestamp:f}];let{onSessionStart:m}=r;m&&m(t,JN(u,this.history)),this.removeListeners=Ii(pc(this.contextWindow,"pointermove",this.handlePointerMove),pc(this.contextWindow,"pointerup",this.handlePointerUp),pc(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let n=getComputedStyle(r);(X0e.has(n.overflowX)||X0e.has(n.overflowY))&&this.scrollPositions.set(r,{x:r.scrollLeft,y:r.scrollTop}),r=r.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let r=this.scrollPositions.get(t);if(!r)return;let n=t===window,a=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:a.x-r.x,y:a.y-r.y};o.x===0&&o.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,a),kt.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ba(this.updatePoint)}};function L6(e,t){return t?{point:t(e.point)}:e}function Y0e(e,t){return{x:e.x-t.x,y:e.y-t.y}}function JN({point:e},t){return{point:e,delta:Y0e(e,Q0e(t)),offset:Y0e(e,$rt(t)),velocity:Ort(t,.1)}}function $rt(e){return e[0]}function Q0e(e){return e[e.length-1]}function Ort(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,a=Q0e(e);for(;r>=0&&(n=e[r],!(a.timestamp-n.timestamp>Xr(t)));)r--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&a.timestamp-n.timestamp>Xr(t)*2&&(n=e[1]);let o=En(a.timestamp-n.timestamp);if(o===0)return{x:0,y:0};let i={x:(a.x-n.x)/o,y:(a.y-n.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ave(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?Ot(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?Ot(r,e,n.max):Math.min(e,r)),e}function eve(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function ove(e,{top:t,left:r,bottom:n,right:a}){return{x:eve(e.x,r,a),y:eve(e.y,t,n)}}function tve(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function ive(e,t){return{x:tve(e.x,t.x),y:tve(e.y,t.y)}}function sve(e,t){let r=.5,n=cn(e),a=cn(t);return a>n?r=vs(t.min,t.max-n,e.min):n>a&&(r=vs(e.min,e.max-a,t.min)),_n(0,1,r)}function lve(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var $6=.35;function uve(e=$6){return e===!1?e=0:e===!0&&(e=$6),{x:rve(e,"left","right"),y:rve(e,"top","bottom")}}function rve(e,t,r){return{min:nve(e,t),max:nve(e,r)}}function nve(e,t){return typeof e=="number"?e:e[t]||0}var Mrt=new WeakMap,M6=class{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Pr(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:n}={}){let{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;let o=f=>{r&&this.snapToCursor(Rl(f).point),this.stopAnimation()},i=(f,m)=>{let{drag:h,dragPropagation:g,onDragStart:y}=this.getProps();if(h&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hN(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mo(w=>{let S=this.getAxisMotionValue(w).get()||0;if(ea.test(S)){let{projection:x}=this.visualElement;if(x&&x.layout){let C=x.layout.layoutBox[w];C&&(S=cn(C)*(parseFloat(S)/100))}}this.originPoint[w]=S}),y&&kt.update(()=>y(f,m),!1,!0),Eh(this.visualElement,"transform");let{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;let{dragPropagation:h,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!h&&!this.openDragLock)return;let{offset:w}=m;if(g&&this.currentDirection===null){this.currentDirection=Drt(w),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",m.point,w),this.updateAxis("y",m.point,w),this.visualElement.render(),b&&kt.update(()=>b(f,m),!1,!0)},l=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new qh(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:n,contextWindow:E6(this.visualElement),element:this.visualElement.current})}stop(t,r){let n=t||this.latestPointerEvent,a=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!a||!n)return;let{velocity:i}=a;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&kt.postRender(()=>s(n,a))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,r,n){let{drag:a}=this.getProps();if(!n||!O6(t,a,this.currentDirection))return;let o=this.getAxisMotionValue(t),i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=ave(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&fc(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=ove(n.layoutBox,t):this.constraints=!1,this.elastic=uve(r),a!==this.constraints&&!fc(t)&&n&&this.constraints&&!this.hasMutatedConstraints&&mo(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lve(n.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!fc(t))return!1;let n=t.current;Vo(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;let o=LN(n,a.root,this.visualElement.getTransformPagePoint()),i=ive(a.layout.layoutBox,o);if(r){let s=r(IN(i));this.hasMutatedConstraints=!!s,s&&(i=Yb(s))}return i}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:a,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=mo(d=>
580{if(!O6(d,r,this.currentDirection))return;let f=l&&l[d]||{};(i===!0||i===d)&&(f={min:0,max:0});let m=a?200:1e6,h=a?40:1e7,g={type:"inertia",velocity:n?t[d]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(d,g)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return Eh(this.visualElement,t),n.start(jd(t,n,0,r,this.visualElement,!1))}stopAnimation(){mo(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),a=n[r];return a||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){mo(r=>{let{drag:n}=this.getProps();if(!O6(r,n,this.currentDirection))return;let{projection:a}=this.visualElement,o=this.getAxisMotionValue(r);if(a&&a.layout){let{min:i,max:s}=a.layout.layoutBox[r],l=o.get()||0;o.set(t[r]-Ot(i,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!fc(r)||!n||!this.constraints)return;this.stopAnimation();let a={x:0,y:0};mo(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let l=s.get();a[i]=sve({min:l,max:l},this.constraints[i])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),mo(i=>{if(!O6(i,t,null))return;let s=this.getAxisMotionValue(i),{min:l,max:u}=this.constraints[i];s.set(Ot(l,u,a[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Mrt.set(this.visualElement,this);let t=this.visualElement.current,r=pc(t,"pointerdown",u=>{let{drag:d,dragListener:f=!0}=this.getProps(),m=u.target,h=m!==t&&bN(m);d&&f&&!h&&this.start(u)}),n,a=()=>{let{dragConstraints:u}=this.getProps();fc(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),n||(n=Rrt(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",a);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),kt.read(a);let s=Ss(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(mo(f=>{let m=this.getAxisMotionValue(f);m&&(this.originPoint[f]+=u[f].translate,m.set(m.get()+u[f].translate))}),this.visualElement.render())}));return()=>{s(),r(),i(),l&&l(),n&&n()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:a=!1,dragConstraints:o=!1,dragElastic:i=$6,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:a,dragConstraints:o,dragElastic:i,dragMomentum:s}}};function cve(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Rrt(e,t,r){let n=i6(e,cve(r)),a=i6(t,cve(r));return()=>{n(),a()}}function O6(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Drt(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var R6=class extends kn{constructor(t){super(t),this.removeGroupControls=Mr,this.removeListeners=Mr,this.controls=new M6(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mr}update(){let{dragControls:t}=this.node.getProps(),{dragControls:r}=this.node.prevProps||{};t!==r&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}};var XN=e=>(t,r)=>{e&&kt.update(()=>e(t,r),!1,!0)},D6=class extends kn{constructor(){super(...arguments),this.removePointerDownListener=Mr}onPointerDown(t){this.session=new qh(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:E6(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:a}=this.node.getProps();return{onSessionStart:XN(t),onStart:XN(r),onMove:XN(n),onEnd:(o,i)=>{delete this.session,a&&kt.postRender(()=>a(o,i))}}}mount(){this.removePointerDownListener=pc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};var dve=H(qe(),1);var cx=H(ve(),1);var YN=!1,QN=class extends cx.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:a}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),n&&n.register&&a&&n.register(o),YN&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:a,isPresent:o}=this.props,{projection:i}=n;return i&&(i.isPresent=o,t.layoutDependency!==r&&i.setOptions({...i.options,layoutDependency:r}
580),YN=!0,a||t.layoutDependency!==r||r===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||kt.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:n}=t;n&&(n.options.layoutAnchor=r,n.root.didUpdate(),Fd.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:a}=t;YN=!0,a&&(a.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(a),n&&n.deregister&&n.deregister(a))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function N6(e){let[t,r]=x0e(),n=(0,cx.useContext)(vI);return(0,dve.jsx)(QN,{...e,layoutGroup:n,switchLayoutGroup:(0,cx.useContext)(I6),isPresent:t,safeToRemove:r})}var fve={pan:{Feature:D6},drag:{Feature:R6,ProjectionNode:lx,MeasureLayout:N6}};function pve(e,t,r){let{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");let a="onHover"+r,o=n[a];o&&kt.postRender(()=>o(t,Rl(t)))}var z6=class extends kn{mount(){let{current:t}=this.node;t&&(this.unmount=gN(t,(r,n)=>(pve(this.node,n,"Start"),a=>pve(this.node,a,"End"))))}unmount(){}};var j6=class extends kn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ii(Ss(this.node.current,"focus",()=>this.onFocus()),Ss(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function mve(e,t,r){let{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");let a="onTap"+(r==="End"?"":r),o=n[a];o&&kt.postRender(()=>o(t,Rl(t)))}var B6=class extends kn{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:n}=this.node.props;this.unmount=wN(t,(a,o)=>(mve(this.node,o,"Start"),(i,{success:s})=>mve(this.node,i,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:n?.tap===!1})}unmount(){}};var tz=new WeakMap,ez=new WeakMap,Nrt=e=>{let t=tz.get(e.target);t&&t(e)},zrt=e=>{e.forEach(Nrt)};function jrt({root:e,...t}){let r=e||document;ez.has(r)||ez.set(r,{});let n=ez.get(r),a=JSON.stringify(t);return n[a]||(n[a]=new IntersectionObserver(zrt,{root:e,...t})),n[a]}function hve(e,t,r){let n=jrt(t);return tz.set(e,r),n.observe(e),()=>{tz.delete(e),n.unobserve(e)}}var Brt={some:0,all:1},F6=class extends kn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:a="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:n,threshold:typeof a=="number"?a:Brt[a]},s=l=>{let{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};this.stopObserver=hve(this.node.current,i,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(Frt(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Frt({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var gve={inView:{Feature:F6},tap:{Feature:B6},focus:{Feature:j6},hover:{Feature:z6}};var vve={layout:{ProjectionNode:lx,MeasureLayout:N6}};var yve={...G0e,...gve,...fve,...vve};var U6=V0e(yve,H0e);var q6=H(ve()),wve=H(qe()),bve=new Map,Urt=e=>{let t=bve.get(e);return t||(t=U6.create(e),bve.set(e,t)),t},qrt=({children:e,as:t="p",className:r,duration:n=2,spread:a=2})=>{let o=Urt(t),i=(0,q6.useMemo)(()=>(e?.length??0)*a,[e,a]);return(0,wve.jsx)(o,{animate:{backgroundPosition:"0% center"},className:et("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),hsl(var(--background)),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",r),initial:{backgroundPosition:"100% center"},style:{"--spread":`${i}px`,backgroundImage:"var(--bg), linear-gradient(hsl(var(--muted-foreground)), hsl(var(--muted-foreground)))"},transition:{duration:n,ease:"linear",repeat:Number.POSITIVE_INFINITY},children:e})},xve=(0,q6.memo)(qrt);var Vh=H(qe(),1),kve=H(ve(),1);var Vrt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",_ve=[],Sve={allowDangerousHtml:!0},Zrt=/^(https?|ircs?|mailto|xmpp)$/i,Hrt=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function rz(e){let t=Grt(e),r=Wrt(e);return Krt(t.runSync(t.parse(r),r),e)}function Grt(e){let t=e.rehypePlugins||_ve,r=e.remarkPlugins||_ve,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Sve}:Sve;return hj().use(fj).use(r).use(pj,n).use(t)}function Wrt(e){let t=e.children||"",r=new mj;return typeof t=="string"?r.value=t:(""+t,void 0),r}function Krt(e,t){let r=t.allowedElements,n=t.allowElement,a=t.components,o=t.disallowedElements,i=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Ive;for(let d of Hrt)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+Vrt+d.id,void 0);return r&&o&&void 0,Nx(e,u),dj(e,{Fragment:Vh.Fragment,components:a,ignoreInvalidStyle:!0,jsx:Vh.jsx,jsxs:Vh.jsxs,passKeys:!0,passNode:!0});function u(d,f,m){if(d.type==="raw"&&m&&typeof f=="number")return i?m.children.splice(f,1):m.children[f]={type:"text",value:d.value},f;
580if(d.type==="element"){let h;for(h in Bx)if(Object.hasOwn(Bx,h)&&Object.hasOwn(d.properties,h)){let g=d.properties[h],y=Bx[h];(y===null||y.includes(d.tagName))&&(d.properties[h]=l(String(g||""),h,d))}}if(d.type==="element"){let h=r?!r.includes(d.tagName):o?o.includes(d.tagName):!1;if(!h&&n&&typeof f=="number"&&(h=!n(d,f,m)),h&&m&&typeof f=="number")return s&&d.children?m.children.splice(f,1,...d.children):m.children.splice(f,1),f}}}function Ive(e){let t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||r!==-1&&t>r||n!==-1&&t>n||Zrt.test(e.slice(0,t))?e:""}var nt=H(qe()),Tve="01KQ7NM113HXW0F77W11CKMSR2",Jrt=[{title:"\u{1F3CB}\uFE0F Build my workout plan",prompt:"Based on my fitness goals and workout history, build me a 4-week progressive workout plan with specific exercises, sets, reps, and rest times."},{title:"\u{1F4CA} Analyze my progress",prompt:"Look at my workout log and personal records. Tell me what progress I've made and where I might have plateaus or imbalances."},{title:"\u{1F4AA} What to train today?",prompt:"Check my recent workout log to see what muscle groups I've trained recently, then recommend what I should focus on today for optimal recovery."},{title:"\u{1F3AF} Help me hit my goals",prompt:"Review my fitness goals and tell me specifically what I need to do this week to stay on track. Be specific with exercises and intensity."}];function Xrt({chat:e}){let{messages:t,status:r,addToolApprovalResponse:n}=Kue({chat:e,id:e.id}),a=r==="submitted"||r==="streaming",[o,i]=Dl.useState(""),s=async l=>{let u=l.trim();!u||a||(i(""),await e.sendMessage({id:F4(),role:"user",parts:[{type:"text",text:u}]}))};return(0,nt.jsxs)("div",{className:"flex flex-col h-full",children:[(0,nt.jsxs)(lce,{className:"flex-1 px-4 py-4",children:[t.length===0&&!a&&(0,nt.jsxs)("div",{className:"flex flex-col items-center justify-center h-full text-center gap-4 py-12",children:[(0,nt.jsx)("div",{className:"w-16 h-16 rounded-2xl bg-primary/10 border border-primary/20 flex items-center justify-center",children:(0,nt.jsx)(Gl,{className:"w-8 h-8 text-primary"})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h3",{className:"font-semibold text-foreground text-lg",children:"FitCoach AI"}),(0,nt.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-xs",children:"Your personal trainer. Ask me to build a workout plan, analyze your progress, or answer any fitness question."})]}),(0,nt.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 w-full max-w-sm mt-2",children:Jrt.map(l=>(0,nt.jsx)(Qme,{onClick:()=>s(l.prompt),children:l.title},l.title))})]}),t.map(l=>(0,nt.jsx)($D,{from:l.role,children:(0,nt.jsx)(OD,{children:l.parts.map((u,d)=>u.type==="text"?(0,nt.jsx)("div",{className:"prose prose-sm dark:prose-invert max-w-none",children:(0,nt.jsx)(rz,{children:u.text})},d):is(u)?u.state==="approval-requested"&&u.approval!=null?(0,nt.jsxs)("div",{className:"bg-muted border border-border rounded-xl p-4 flex flex-col gap-3",children:[(0,nt.jsxs)("p",{className:"text-sm text-foreground font-medium",children:["Approve tool: ",(0,nt.jsx)("span",{className:"text-primary",children:u.toolName}),"?"]}),(0,nt.jsxs)("div",{className:"flex gap-2",children:[(0,nt.jsx)("button",{onClick:()=>n({id:u.approval.id,approved:!0}),className:"flex-1 bg-primary text-primary-foreground text-sm py-1.5 rounded-lg hover:opacity-90 transition-opacity",children:"Approve"}),(0,nt.jsx)("button",{onClick:()=>n({id:u.approval.id,approved:!1}),className:"flex-1 bg-muted border border-border text-muted-foreground text-sm py-1.5 rounded-lg hover:bg-accent transition-colors",children:"Deny"})]})]},d):(0,nt.jsx)(lhe,{children:(0,nt.jsx)(uhe,{type:u.type,state:u.state,toolName:u.type==="dynamic-tool"?u.toolName:void 0})},d):null)})},l.id)),a&&t[t.length-1]?.role==="user"&&(0,nt.jsx)($D,{from:"assistant",children:(0,nt.jsx)(OD,{children:(0,nt.jsx)(xve,{children:"FitCoach is thinking..."})})})]}),(0,nt.jsx)("div",{className:"p-4 border-t border-border",children:(0,nt.jsxs)(Wme,{onSubmit:l=>s(l.text??""),children:[(0,nt.jsx)(Kme,{value:o,onChange:l=>i(l.target.value),placeholder:"Ask your coach anything... workout plans, form tips, nutrition, motivation",disabled:a}),(0,nt.jsx)(Jme,{disabled:a||!o.trim(),children:(0,nt.jsx)(Jl,{className:"w-4 h-4"})})]})})]})}function nz(){let[e,t]=Dl.useState(null),[r,n]=Dl.useState(!1),[a,o]=Dl.useState(null),i=Dl.useCallback(async()=>{n(!0),o(null);try{let{conversationId:s}=await TR(Tve);t(PR(Tve,s))}catch{o("Failed to connect to FitCoach. Please try again.")}finally{n(!1)}},[]);return Dl.useEffect(()=>{i()},[i]),(0,nt.jsxs)("div",{className:"flex flex-col h-screen md:h-[calc(100vh)] max-h-screen",children:[(0,nt.jsxs)("div",{className:"flex items-center gap-3 px-6 py-4 border-b border-border shrink-0",children:[(0,nt.jsx)("div",{className:"w-10 h-10 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center",children:(0,nt.jsx)(Gl,{className:"w-5 h-5 text-primary"})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h1",{className:"font-bold text-foreground text-sm",children:"FitCoach AI"}),(0,nt.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,nt.jsx)("div",{className:"w-1.5 h-1.5 rounded-full bg-green-400 animate-pulse"}),(0,nt.jsx)("span",{className:"text-xs text-muted-foreground",children:"Online \xB7 knows your data"})]})]}),(0,nt.jsx)("div",{className:"ml-auto",children:(0,nt.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground bg-muted px-3 py-1.5 rounded-full",children:[(0,nt.jsx)(Mg,{className:"w-3 h-3 text-primary"}),(0,nt.jsx)("span",{children:"4 projects connected"})]})})]}),(0,nt.jsxs)("div",{className:"flex-1 min-h-0",children:[r&&(0,nt.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,nt.jsxs)("div",{className:"text-center",children:[(0,nt.jsx)("div",{className:"w-12 h-12 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-3 animate-pulse",children:(0,nt.jsx)(na,{className:"w-6 h-6 text-primary"})}),(0,nt.jsx)("p",{className:"text-sm text-muted-foreground",children:"Waking up your coach..."})]})}),a&&(0,nt.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,nt.jsxs)("div",{className:"text-center",children:[(0,nt.jsx)("p",{className:"text-sm text-destructive mb-3",children:a}),(0,nt.jsx)("button",{onClick:i,className:"text-sm text-primary hover:underline",children:"Try again"})]})}),e&&!r&&(0,nt.jsx)(Xrt,{chat:e})]})]})}var Wt=H(qe()),Yrt=[{to:"/",label:"Dashboard",icon:Lg},{to:"/exercises",label:"Exercises",icon:Ig},{to:"/log",label:"Log Workout",icon:Cg},{to:"/progress",label:"Progress",icon:Ds},{to:"/coach",label:"AI Coach",icon:Gl}];function Qrt(){let e=Ls();return(0,Wt.jsxs)("nav",{className:"fixed bottom-0 left-0 right-0 z-50 bg-card/80 backdrop-blur-xl border-t border-border md:relative md:bottom-auto md:left-auto md:right-auto md:border-t-0 md:border-r md:w-64 md:min-h-screen md:flex md:flex-col md:py-8 md:px-4",children:[(0,Wt.jsxs)("div",{className:"hidden md:flex items-center gap-3 px-4 mb-10",children:[(0,Wt.jsx)("div",{className:"w-10 h-10 rounded-xl bg-primary flex items-center justify-center shadow-lg shadow-primary/30",children:(0,Wt.jsx)(na,{className:"w-5 h-5 text-primary-foreground"})}),(0,Wt.jsxs)("div",{children:[(0,Wt.jsx)("div",{className:"font-bold text-foreground text-sm leading-tight",children:"FitTracker"}),(0,Wt.jsx)("div",{className:"text-xs text-muted-foreground",children:"Your fitness OS"})]})]}),(0,Wt.jsx)("div",{className:"flex flex-row md:flex-col gap-1 p-2 md:p-0 md:gap-2",children:Yrt.map(({to:t,label:r,icon:n})=>{let a=t==="/"?e.pathname==="/":e.pathname.startsWith(t);return(0,Wt.jsxs)(Gj,{to:t,className:et("flex flex-col md:flex-row items-center md:items-center gap-1 md:gap-3 px-2 md:px-4 py-2 md:py-3 rounded-xl text-xs md:text-sm font-medium transition-all duration-200 flex-1 md:flex-none",a?"bg-primary text-primary-foreground shadow-lg shadow-primary/25":"text-muted-foreground hover:text-foreground hover:bg-accent"),children:[(0,Wt.jsx)(n,{className:"w-5 h-5 shrink-0"}),(0,Wt.jsx)("span",{className:"hidden sm:block",children:r})]},t)})})]})}function ent(){return(0,Wt.jsxs)("div",{className:"min-h-screen bg-background flex flex-col md:flex-row",children:[(0,Wt.jsx)(Qrt,{}),(0,Wt.jsx)("main",{className:"flex-1 overflow-auto pb-20 md:pb-0",children:(0,Wt.jsxs)(RT,{children:[(0,Wt.jsx)(Vl,{path:"/",element:(0,Wt.jsx)(hC,{})}),(0,Wt.jsx)(Vl,{path:"/exercises",element:(0,Wt.jsx)(yC,{})}),(0,Wt.jsx)(Vl,{path:"/log",element:(0,Wt.jsx)(xC,{})}),(0,Wt.jsx)(Vl,{path:"/progress",element:(0,Wt.jsx)(_A,{})}),(0,Wt.jsx)(Vl,{path:"/coach",element:(0,Wt.jsx)(nz,{})})]})})]})}var tnt=function(){return(0,Wt.jsx)(Xj,{attribute:"class",defaultTheme:"dark",enableSystem:!0,children:(0,Wt.jsxs)(Hj,{children:[(0,Wt.jsx)(ent,{}),(0,Wt.jsx)(tB,{richColors:!0,position:"top-right"})]})})},Cve=tnt;var yXt=H(ve());var Pi=H(ve()),rnt=(0,Pi.createContext)(null),az={didCatch:!1,error:null},V6=class extends Pi.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=az}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(az)}}componentDidCatch(t,r){var n,a;(n=(a=this.props).onError)===null||n===void 0||n.call(a,t,r)}componentDidUpdate(t,r){let{didCatch:n}=this.state,{resetKeys:a}=this.props;if(n&&r.error!==null&&nnt(t.resetKeys,a)){var o,i;(o=(i=this.props).onReset)===null||o===void 0||o.call(i,{next:a,prev:t.resetKeys,reason:"keys"}),this.setState(az)}}render(){let{children:t,fallbackRender:r,FallbackComponent:n,fallback:a}=this.props,{didCatch:o,error:i}=this.state,s=t;if(o){let l={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=(0,Pi.createElement)(n,l);else if(a!==void 0)s=a;else throw i}return(0,Pi.createElement)(rnt.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};function nnt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}var mc=H(qe());function ant(){return typeof window>"u"?null:window.__TASKADE_APP_LIFECYCLE_LOGGER__??null}function ont(e,t,r){ant()?.log({level:"error",message:"Runtime Error",data:{code:e,message:t instanceof Error?t.message:String(t),stack:[t instanceof Error?t.stack:void 0,r].filter(
580Boolean).join(` 581`)}})}function int({error:e,resetErrorBoundary:t}){return(0,mc.jsxs)("div",{style:{padding:"2rem",fontFamily:"system-ui, sans-serif",maxWidth:600,margin:"0 auto"},children:[(0,mc.jsx)("h2",{style:{margin:"0 0 0.5rem",fontSize:"1.25rem"},children:"Something went wrong"}),(0,mc.jsx)("p",{style:{color:"#999",margin:"0 0 1rem",fontSize:"0.95rem"},children:"The app encountered an error. You can try again, or refresh the page."}),(0,mc.jsx)("pre",{style:{background:"#f5f5f5",padding:"1rem",borderRadius:"8px",overflow:"auto",fontSize:"0.8rem",color:"#dc2626",margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:String(e)}),(0,mc.jsx)("button",{type:"button",onClick:t,style:{marginTop:"1rem",padding:"0.5rem 1rem",background:"#1f2937",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"0.9rem"},children:"Try again"})]})}function Pve({children:e}){return(0,mc.jsx)(V6,{FallbackComponent:int,onError:(t,r)=>{console.error("[Genesis] Uncaught render error:",t,r),ont("error.boundary",t,r.componentStack)},onReset:()=>{console.info("[Genesis] User reset error boundary")},children:e})}var Ave="taskade-theme-overrides";function snt(e){let t=e.trim().split(/\s+/);if(t.length<3)return null;let r=parseFloat(t[0]),n=parseFloat(t[1]),a=parseFloat(t[2]);return isNaN(r)||isNaN(n)||isNaN(a)?null:{h:r,s:n,l:a}}function lnt(e,t){let r=snt(t);if(r==null)return t;let{h:n,s:a,l:o}=r;if(e==="--radius")return t;let i,s=a;return["--background","--card","--popover"].includes(e)?i=Math.max(3,Math.min(8,100-o)):["--foreground","--card-foreground","--popover-foreground"].includes(e)?i=Math.min(95,Math.max(85,100-o)):e==="--primary"?i=o<=50?Math.min(98,100-o):Math.max(2,100-o):e==="--primary-foreground"?i=o>50?Math.max(2,100-o):Math.min(98,100-o):["--accent","--muted","--border","--input","--ring"].includes(e)?(i=Math.max(10,Math.min(20,100-o)),s=Math.min(a,50)):e==="--accent-foreground"||e==="--muted-foreground"?i=Math.min(98,Math.max(55,100-o)):e==="--secondary"||e==="--secondary-foreground"?i=o>50?Math.max(8,100-o):Math.min(98,100-o):e==="--destructive"?(i=Math.max(25,o*.65),s=Math.min(a,70)):e==="--destructive-foreground"?i=Math.min(98,Math.max(90,100-o)):i=100-o,`${n} ${s}% ${Math.round(i)}%`}function Eve(e,t){let r=Object.entries(t).map(([n,a])=>` ${n}: ${a};`).join(` 582`);return`${e} { 583${r} 584}`}function Lve(){let e=new Set;window.addEventListener("message",t=>{if(t.source===window.parent){if(t.data?.type==="TASKADE_THEME_UPDATE"){let r=t.data.data?.vars;if(r==null)return;let n=new Set(e),a={},o={};e.clear();for(let[s,l]of Object.entries(r))l!==""&&(a[s]=l,o[s]=lnt(s,l),e.add(s));for(let s of n)document.documentElement.style.removeProperty(s);let i=document.getElementById(Ave);Object.keys(a).length===0?i?.remove():(i==null&&(i=document.createElement("style"),i.id=Ave,document.head.appendChild(i)),i.textContent=[Eve(":root",a),Eve(".dark",o)].join(` 585 586`)),window.parent.postMessage({type:"TASKADE_THEME_APPLIED"},"*");return}if(t.data?.type==="TASKADE_THEME_READ"){let r=t.data.data?.keys;if(r==null)return;let n=getComputedStyle(document.documentElement),a={};for(let o of r){let i=n.getPropertyValue(o).trim();i&&(a[o]=i)}window.parent.postMessage({type:"TASKADE_THEME_CURRENT",data:{vars:a}},"*");return}}})}var Z6=H(qe());Lve();(0,Ove.createRoot)(document.getElementById("root")).render((0,Z6.jsx)($ve.StrictMode,{children:(0,Z6.jsx)(Pve,{children:(0,Z6.jsx)(Cve,{})})})); 587/*! Bundled license information: 588 589leaflet/dist/leaflet-src.js: 590 (* @preserve 591 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 592 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 593 *) 594 595react-is/cjs/react-is.production.min.js: 596 (** 597 * @license React 598 * react-is.production.min.js 599 * 600 * Copyright (c) Facebook, Inc. and its affiliates. 601 * 602 * This source code is licensed under the MIT license found in the 603 * LICENSE file in the root directory of this source tree. 604 *) 605 606decimal.js-light/decimal.js: 607 (*! decimal.js-light v2.5.1 https://github.com/MikeMcl/decimal.js-light/LICENCE *) 608 609@remix-run/router/dist/router.js: 610 (** 611 * @remix-run/router v1.23.2 612 * 613 * Copyright (c) Remix Software Inc. 614 * 615 * This source code is licensed under the MIT license found in the 616 * LICENSE.md file in the root directory of this source tree. 617 * 618 * @license MIT 619 *) 620 621react-router/dist/index.js: 622 (** 623 * React Router v6.30.3 624 * 625 * Copyright (c) Remix Software Inc. 626 * 627 * This source code is licensed under the MIT license found in the 628 * LICENSE.md file in the root directory of this source tree. 629 * 630 * @license MIT 631 *) 632 633react-router-dom/dist/index.js: 634 (** 635 * React Router DOM v6.30.3 636 * 637 * Copyright (c) Remix Software Inc. 638 * 639 * This source code is licensed under the MIT license found in the 640 * LICENSE.md file in the root directory of this source tree. 641 * 642 * @license MIT 643 *) 644 645lucide-react/dist/esm/shared/src/utils.js: 646lucide-react/dist/esm/defaultAttributes.js: 647lucide-react/dist/esm/Icon.js: 648lucide-react/dist/esm/createLucideIcon.js: 649lucide-react/dist/esm/icons/book-open.js: 650lucide-react/dist/esm/icons/bot.js: 651lucide-react/dist/esm/icons/calendar.js: 652lucide-react/dist/esm/icons/check.js: 653lucide-react/dist/esm/icons/chevron-down.js: 654lucide-react/dist/esm/icons/chevron-right.js: 655lucide-react/dist/esm/icons/circle-check-big.js: 656lucide-react/dist/esm/icons/circle-x.js: 657lucide-react/dist/esm/icons/circle.js: 658lucide-react/dist/esm/icons/clipboard-list.js: 659lucide-react/dist/esm/icons/clock.js: 660lucide-react/dist/esm/icons/corner-down-left.js: 661lucide-react/dist/esm/icons/database-zap.js: 662lucide-react/dist/esm/icons/download.js: 663lucide-react/dist/esm/icons/dumbbell.js: 664lucide-react/dist/esm/icons/external-link.js: 665lucide-react/dist/esm/icons/flame.js: 666lucide-react/dist/esm/icons/funnel.js: 667lucide-react/dist/esm/icons/layout-dashboard.js: 668lucide-react/dist/esm/icons/loader-circle.js: 669lucide-react/dist/esm/icons/plus.js: 670lucide-react/dist/esm/icons/search.js: 671lucide-react/dist/esm/icons/send-horizontal.js: 672lucide-react/dist/esm/icons/square.js: 673lucide-react/dist/esm/icons/target.js: 674lucide-react/dist/esm/icons/trash-2.js: 675lucide-react/dist/esm/icons/trending-up.js: 676lucide-react/dist/esm/icons/trophy.js: 677lucide-react/dist/esm/icons/wrench.js: 678lucide-react/dist/esm/icons/x.js: 679lucide-react/dist/esm/icons/zap.js: 680lucide-react/dist/esm/lucide-react.js: 681 (** 682 * @license lucide-react v0.542.0 - ISC 683 * 684 * This source code is licensed under the ISC license. 685 * See the LICENSE file in the root directory of this source tree. 686 *) 687
688use-stick-to-bottom/dist/useStickToBottom.js: 689use-stick-to-bottom/dist/StickToBottom.js: 690 (*!--------------------------------------------------------------------------------------------- 691 * Copyright (c) StackBlitz. All rights reserved. 692 * Licensed under the MIT License. See License.txt in the project root for license information. 693 *--------------------------------------------------------------------------------------------*) 694*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.