1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{A as zT,B as DT,C as Rm,D as NT,E as qc,I as wb,a as _T,b as xb,c as Kr,d as O,e as le,f as kT,g as J,h as Am,i as eo,j as ST,k as bl,l as wl,m as Em,n as IT,o as CT,p as TT,q as PT,r as $T,s as LT,t as AT,u as Mm,v as ET,w as bb,x as MT,y as RT,z as _l}from"/chunks/chunk-APNFOFTB.js";var UT=xb((zm,OT)=>{"use strict";(function(e,t){typeof zm=="object"&&typeof OT<"u"?t(zm):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.leaflet={}))})(zm,(function(e){"use strict";var t="1.9.4";function r(l){var d,m,v,w;for(m=1,v=arguments.length;m<v;m++){w=arguments[m];for(d in w)l[d]=w[d]}return l}var a=Object.create||(function(){function l(){}return function(d){return l.prototype=d,new l}})();function n(l,d){var m=Array.prototype.slice;if(l.bind)return l.bind.apply(l,m.call(arguments,1));var v=m.call(arguments,2);return function(){return l.apply(d,v.length?v.concat(m.call(arguments)):arguments)}}var o=0;function i(l){return"_leaflet_id"in l||(l._leaflet_id=++o),l._leaflet_id}function s(l,d,m){var v,w,P,N;return N=function(){v=!1,w&&(P.apply(m,w),w=!1)},P=function(){v?w=arguments:(l.apply(m,arguments),setTimeout(N,d),v=!0)},P}function u(l,d,m){var v=d[1],w=d[0],P=v-w;return l===v&&m?l:((l-w)%P+P)%P+w}function c(){return!1}function f(l,d){if(d===!1)return l;var m=Math.pow(10,d===void 0?6:d);return Math.round(l*m)/m}function p(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function h(l){return p(l).split(/\s+/)}function g(l,d){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?a(l.options):{});for(var m in d)l.options[m]=d[m];return l.options}function x(l,d,m){var v=[];for(var w in l)v.push(encodeURIComponent(m?w.toUpperCase():w)+"="+encodeURIComponent(l[w]));return(!d||d.indexOf("?")===-1?"?":"&")+v.join("&")}var I=/\{ *([\w_ -]+) *\}/g;function S(l,d){return l.replace(I,function(m,v){var w=d[v];if(w===void 0)throw new Error("No value provided for variable "+m);return typeof w=="function"&&(w=w(d)),w})}var $=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function T(l,d){for(var m=0;m<l.length;m++)if(l[m]===d)return m;return-1}var k="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var E=0;function z(l){var d=+new Date,m=Math.max(0,16-(d-E));return E=d+m,window.setTimeout(l,m)}var j=window.requestAnimationFrame||M("RequestAnimationFrame")||z,q=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function Z(l,d,m){if(m&&j===z)l.call(d);else return j.call(window,n(l,d))}function W(l){l&&q.call(window,l)}var de={__proto__:null,extend:r,create:a,bind:n,get lastId(){return o},stamp:i,throttle:s,wrapNum:u,falseFn:c,formatNum:f,trim:p,splitWords:h,setOptions:g,getParamString:x,template:S,isArray:$,indexOf:T,emptyImageUrl:k,requestFn:j,cancelFn:q,requestAnimFrame:Z,cancelAnimFrame:W};function Q(){}Q.extend=function(l){var d=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},m=d.__super__=this.prototype,v=a(m);v.constructor=d,d.prototype=v;for(var w in this)Object.prototype.hasOwnProperty.call(this,w)&&w!=="prototype"&&w!=="__super__"&&(d[w]=this[w]);return l.statics&&r(d,l.statics),l.includes&&(ht(l.includes),r.apply(null,[v].concat(l.includes))),r(v,l),delete v.statics,delete v.includes,v.options&&(v.options=m.options?a(m.options):{},r(v.options,l.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){m.callInitHooks&&m.callInitHooks.call(this),this._initHooksCalled=!0;for(var P=0,N=v._initHooks.length;P<N;P++)v._initHooks[P].call(this)}},d},Q.include=function(l){var d=this.prototype.options;return r(this.prototype,l),l.options&&(this.prototype.options=d,this.mergeOptions(l.options)),this},Q.mergeOptions=function(l){return r(this.prototype.options,l),this},Q.addInitHook=function(l){var d=Array.prototype.slice.call(arguments,1
2),m=typeof l=="function"?l:function(){this[l].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(m),this};function ht(l){if(!(typeof L>"u"||!L||!L.Mixin)){l=$(l)?l:[l];for(var d=0;d<l.length;d++)l[d]===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 Ce={on:function(l,d,m){if(typeof l=="object")for(var v in l)this._on(v,l[v],d);else{l=h(l);for(var w=0,P=l.length;w<P;w++)this._on(l[w],d,m)}return this},off:function(l,d,m){if(!arguments.length)delete this._events;else if(typeof l=="object")for(var v in l)this._off(v,l[v],d);else{l=h(l);for(var w=arguments.length===1,P=0,N=l.length;P<N;P++)w?this._off(l[P]):this._off(l[P],d,m)}return this},_on:function(l,d,m,v){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(l,d,m)===!1){m===this&&(m=void 0);var w={fn:d,ctx:m};v&&(w.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(w)}},_off:function(l,d,m){var v,w,P;if(this._events&&(v=this._events[l],!!v)){if(arguments.length===1){if(this._firingCount)for(w=0,P=v.length;w<P;w++)v[w].fn=c;delete this._events[l];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var N=this._listens(l,d,m);if(N!==!1){var V=v[N];this._firingCount&&(V.fn=c,this._events[l]=v=v.slice()),v.splice(N,1)}}},fire:function(l,d,m){if(!this.listens(l,m))return this;var v=r({},d,{type:l,target:this,sourceTarget:d&&d.sourceTarget||this});if(this._events){var w=this._events[l];if(w){this._firingCount=this._firingCount+1||1;for(var P=0,N=w.length;P<N;P++){var V=w[P],G=V.fn;V.once&&this.off(l,G,V.ctx),G.call(V.ctx||this,v)}this._firingCount--}}return m&&this._propagateEvent(v),this},listens:function(l,d,m,v){typeof l!="string"&&console.warn('"string" type argument expected');var w=d;typeof d!="function"&&(v=!!d,w=void 0,m=void 0);var P=this._events&&this._events[l];if(P&&P.length&&this._listens(l,w,m)!==!1)return!0;if(v){for(var N in this._eventParents)if(this._eventParents[N].listens(l,d,m,v))return!0}return!1},_listens:function(l,d,m){if(!this._events)return!1;var v=this._events[l]||[];if(!d)return!!v.length;m===this&&(m=void 0);for(var w=0,P=v.length;w<P;w++)if(v[w].fn===d&&v[w].ctx===m)return w;return!1},once:function(l,d,m){if(typeof l=="object")for(var v in l)this._on(v,l[v],d,!0);else{l=h(l);for(var w=0,P=l.length;w<P;w++)this._on(l[w],d,m,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[i(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[i(l)],this},_propagateEvent:function(l){for(var d in this._eventParents)this._eventParents[d].fire(l.type,r({layer:l.target,propagatedFrom:l.target},l),!0)}};Ce.addEventListener=Ce.on,Ce.removeEventListener=Ce.clearAllEventListeners=Ce.off,Ce.addOneTimeEventListener=Ce.once,Ce.fireEvent=Ce.fire,Ce.hasEventListeners=Ce.listens;var Fe=Q.extend(Ce);function ve(l,d,m){this.x=m?Math.round(l):l,this.y=m?Math.round(d):d}var Mr=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};ve.prototype={clone:function(){return new ve(this.x,this.y)},add:function(l){return this.clone()._add(fe(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(fe(l))},_subtract:function(l){return this.x-=l.x,this.y-=l.y,this},divideBy:function(l){return this.clone()._divideBy(l)},_divideBy:function(l){return this.x/=l,this.y/=l,this},multiplyBy:function(l){return this.clone()._multiplyBy(l)},_multiplyBy:function(l){return this.x*=l,this.y*=l,this},scaleBy:function(l){return new ve(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new ve(this.x/l.x,this.y/l.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=Mr(this.x),this.y=Mr(this.y),this},distanceTo:function(l){l=fe(l);var d=l.x-this.x,m=l.y-this.y;return Math.sqrt(d*d+m*m)},equals:function(l){return l=fe(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=fe(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.
2y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function fe(l,d,m){return l instanceof ve?l:$(l)?new ve(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new ve(l.x,l.y):new ve(l,d,m)}function Ne(l,d){if(l)for(var m=d?[l,d]:l,v=0,w=m.length;v<w;v++)this.extend(m[v])}Ne.prototype={extend:function(l){var d,m;if(!l)return this;if(l instanceof ve||typeof l[0]=="number"||"x"in l)d=m=fe(l);else if(l=ot(l),d=l.min,m=l.max,!d||!m)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=m.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(m.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(m.y,this.max.y)),this},getCenter:function(l){return fe((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return fe(this.min.x,this.max.y)},getTopRight:function(){return fe(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(l){var d,m;return typeof l[0]=="number"||l instanceof ve?l=fe(l):l=ot(l),l instanceof Ne?(d=l.min,m=l.max):d=m=l,d.x>=this.min.x&&m.x<=this.max.x&&d.y>=this.min.y&&m.y<=this.max.y},intersects:function(l){l=ot(l);var d=this.min,m=this.max,v=l.min,w=l.max,P=w.x>=d.x&&v.x<=m.x,N=w.y>=d.y&&v.y<=m.y;return P&&N},overlaps:function(l){l=ot(l);var d=this.min,m=this.max,v=l.min,w=l.max,P=w.x>d.x&&v.x<m.x,N=w.y>d.y&&v.y<m.y;return P&&N},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var d=this.min,m=this.max,v=Math.abs(d.x-m.x)*l,w=Math.abs(d.y-m.y)*l;return ot(fe(d.x-v,d.y-w),fe(m.x+v,m.y+w))},equals:function(l){return l?(l=ot(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function ot(l,d){return!l||l instanceof Ne?l:new Ne(l,d)}function qe(l,d){if(l)for(var m=d?[l,d]:l,v=0,w=m.length;v<w;v++)this.extend(m[v])}qe.prototype={extend:function(l){var d=this._southWest,m=this._northEast,v,w;if(l instanceof Ie)v=l,w=l;else if(l instanceof qe){if(v=l._southWest,w=l._northEast,!v||!w)return this}else return l?this.extend(he(l)||ke(l)):this;return!d&&!m?(this._southWest=new Ie(v.lat,v.lng),this._northEast=new Ie(w.lat,w.lng)):(d.lat=Math.min(v.lat,d.lat),d.lng=Math.min(v.lng,d.lng),m.lat=Math.max(w.lat,m.lat),m.lng=Math.max(w.lng,m.lng)),this},pad:function(l){var d=this._southWest,m=this._northEast,v=Math.abs(d.lat-m.lat)*l,w=Math.abs(d.lng-m.lng)*l;return new qe(new Ie(d.lat-v,d.lng-w),new Ie(m.lat+v,m.lng+w))},getCenter:function(){return new Ie((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 Ie(this.getNorth(),this.getWest())},getSouthEast:function(){return new Ie(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(l){typeof l[0]=="number"||l instanceof Ie||"lat"in l?l=he(l):l=ke(l);var d=this._southWest,m=this._northEast,v,w;
2return l instanceof qe?(v=l.getSouthWest(),w=l.getNorthEast()):v=w=l,v.lat>=d.lat&&w.lat<=m.lat&&v.lng>=d.lng&&w.lng<=m.lng},intersects:function(l){l=ke(l);var d=this._southWest,m=this._northEast,v=l.getSouthWest(),w=l.getNorthEast(),P=w.lat>=d.lat&&v.lat<=m.lat,N=w.lng>=d.lng&&v.lng<=m.lng;return P&&N},overlaps:function(l){l=ke(l);var d=this._southWest,m=this._northEast,v=l.getSouthWest(),w=l.getNorthEast(),P=w.lat>d.lat&&v.lat<m.lat,N=w.lng>d.lng&&v.lng<m.lng;return P&&N},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,d){return l?(l=ke(l),this._southWest.equals(l.getSouthWest(),d)&&this._northEast.equals(l.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ke(l,d){return l instanceof qe?l:new qe(l,d)}function Ie(l,d,m){if(isNaN(l)||isNaN(d))throw new Error("Invalid LatLng object: ("+l+", "+d+")");this.lat=+l,this.lng=+d,m!==void 0&&(this.alt=+m)}Ie.prototype={equals:function(l,d){if(!l)return!1;l=he(l);var m=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return m<=(d===void 0?1e-9:d)},toString:function(l){return"LatLng("+f(this.lat,l)+", "+f(this.lng,l)+")"},distanceTo:function(l){return Ut.distance(this,he(l))},wrap:function(){return Ut.wrapLatLng(this)},toBounds:function(l){var d=180*l/40075017,m=d/Math.cos(Math.PI/180*this.lat);return ke([this.lat-d,this.lng-m],[this.lat+d,this.lng+m])},clone:function(){return new Ie(this.lat,this.lng,this.alt)}};function he(l,d,m){return l instanceof Ie?l:$(l)&&typeof l[0]!="object"?l.length===3?new Ie(l[0],l[1],l[2]):l.length===2?new Ie(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new Ie(l.lat,"lng"in l?l.lng:l.lon,l.alt):d===void 0?null:new Ie(l,d,m)}var it={latLngToPoint:function(l,d){var m=this.projection.project(l),v=this.scale(d);return this.transformation._transform(m,v)},pointToLatLng:function(l,d){var m=this.scale(d),v=this.transformation.untransform(l,m);return this.projection.unproject(v)},project:function(l){return this.projection.project(l)},unproject:function(l){return this.projection.unproject(l)},scale:function(l){return 256*Math.pow(2,l)},zoom:function(l){return Math.log(l/256)/Math.LN2},getProjectedBounds:function(l){if(this.infinite)return null;var d=this.projection.bounds,m=this.scale(l),v=this.transformation.transform(d.min,m),w=this.transformation.transform(d.max,m);return new Ne(v,w)},infinite:!1,wrapLatLng:function(l){var d=this.wrapLng?u(l.lng,this.wrapLng,!0):l.lng,m=this.wrapLat?u(l.lat,this.wrapLat,!0):l.lat,v=l.alt;return new Ie(m,d,v)},wrapLatLngBounds:function(l){var d=l.getCenter(),m=this.wrapLatLng(d),v=d.lat-m.lat,w=d.lng-m.lng;if(v===0&&w===0)return l;
2var P=l.getSouthWest(),N=l.getNorthEast(),V=new Ie(P.lat-v,P.lng-w),G=new Ie(N.lat-v,N.lng-w);return new qe(V,G)}},Ut=r({},it,{wrapLng:[-180,180],R:6371e3,distance:function(l,d){var m=Math.PI/180,v=l.lat*m,w=d.lat*m,P=Math.sin((d.lat-l.lat)*m/2),N=Math.sin((d.lng-l.lng)*m/2),V=P*P+Math.cos(v)*Math.cos(w)*N*N,G=2*Math.atan2(Math.sqrt(V),Math.sqrt(1-V));return this.R*G}}),lr=6378137,Ht={R:lr,MAX_LATITUDE:85.0511287798,project:function(l){var d=Math.PI/180,m=this.MAX_LATITUDE,v=Math.max(Math.min(m,l.lat),-m),w=Math.sin(v*d);return new ve(this.R*l.lng*d,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(l){var d=180/Math.PI;return new Ie((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*d,l.x*d/this.R)},bounds:(function(){var l=lr*Math.PI;return new Ne([-l,-l],[l,l])})()};function wr(l,d,m,v){if($(l)){this._a=l[0],this._b=l[1],this._c=l[2],this._d=l[3];return}this._a=l,this._b=d,this._c=m,this._d=v}wr.prototype={transform:function(l,d){return this._transform(l.clone(),d)},_transform:function(l,d){return d=d||1,l.x=d*(this._a*l.x+this._b),l.y=d*(this._c*l.y+this._d),l},untransform:function(l,d){return d=d||1,new ve((l.x/d-this._b)/this._a,(l.y/d-this._d)/this._c)}};function Rr(l,d,m,v){return new wr(l,d,m,v)}var fa=r({},Ut,{code:"EPSG:3857",projection:Ht,transformation:(function(){var l=.5/(Math.PI*Ht.R);return Rr(l,.5,-l,.5)})()}),cm=r({},fa,{code:"EPSG:900913"});function ts(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function rs(l,d){var m="",v,w,P,N,V,G;for(v=0,P=l.length;v<P;v++){for(V=l[v],w=0,N=V.length;w<N;w++)G=V[w],m+=(w?"L":"M")+G.x+" "+G.y;m+=d?$e.svg?"z":"x":""}return m||"M0 0"}var Pc=document.documentElement.style,ll="ActiveXObject"in window,jx=ll&&!document.addEventListener,$c="msLaunchUri"in navigator&&!("documentMode"in document),ul=pa("webkit"),ns=pa("android"),dm=pa("android 2")||pa("android 3"),Zx=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Lc=ns&&pa("Google")&&Zx<537&&!("AudioNode"in window),cl=!!window.opera,Ac=!$c&&pa("chrome"),fm=pa("gecko")&&!ul&&!cl&&!ll,Vx=!Ac&&pa("safari"),as=pa("phantom"),os="OTransition"in Pc,DZ=navigator.platform.indexOf("Win")===0,_3=ll&&"transition"in Pc,qx="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!dm,k3="MozPerspective"in Pc,NZ=!window.L_DISABLE_3D&&(_3||qx||k3)&&!os&&!as,Ec=typeof orientation<"u"||pa("mobile"),OZ=Ec&&ul,UZ=Ec&&qx,S3=!window.PointerEvent&&window.MSPointerEvent,I3=!!(window.PointerEvent||S3),C3="ontouchstart"in window||!!window.TouchEvent,BZ=!window.L_NO_TOUCH&&(C3||I3),FZ=Ec&&cl,jZ=Ec&&fm,ZZ=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,VZ=(function(){var l=!1;try{var d=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",c,d),window.removeEventListener("testPassiveEventSupport",c,d)}catch{}return l})(),qZ=(function(){return!!document.createElement("canvas").getContext})(),Gx=!!(document.createElementNS&&ts("svg").createSVGRect),GZ=!!Gx&&(function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),HZ=!Gx&&(function(){try{var l=document.createElement("div");l.innerHTML='<v:shape adj="1"/>';var d=l.firstChild;return d.style.behavior="url(#default#VML)",d&&typeof d.adj=="object"}catch{return!1}})(),WZ=navigator.platform.indexOf("Mac")===0,JZ=navigator.platform.indexOf("Linux")===0;function pa(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var $e={ie:ll,ielt9:jx,edge:$c,webkit:ul,android:ns,android23:dm,androidStock:Lc,opera:cl,chrome:Ac,gecko:fm,safari:Vx,phantom:as,opera12:os,win:DZ,ie3d:_3,webkit3d:qx,gecko3d:k3,any3d:NZ,mobile:Ec,mobileWebkit:OZ,mobileWebkit3d:UZ,msPointer:S3,pointer:I3,touch:BZ,touchNative:C3,mobileOpera:FZ,mobileGecko:jZ,retina:ZZ,passiveEvents:VZ,canvas:qZ,svg:Gx,vml:HZ,inlineSvg:GZ,mac:WZ,linux:JZ},T3=$e.msPointer?"MSPointerDown":"pointerdown",P3=$e.msPointer?"MSPointerMove":"pointermove",$3=$e.msPointer?"MSPointerUp":"pointerup",L3=$e.msPointer?"MSPointerCancel":"pointercancel",Hx={touchstart:T3,touchmove:P3,touchend:$3,touchcancel:L3},A3={touchstart:tV,touchmove:pm,touchend:pm,touchcancel:pm},dl={},E3=!1;
2function KZ(l,d,m){return d==="touchstart"&&eV(),A3[d]?(m=A3[d].bind(this,m),l.addEventListener(Hx[d],m,!1),m):(console.warn("wrong event specified:",d),c)}function XZ(l,d,m){if(!Hx[d]){console.warn("wrong event specified:",d);return}l.removeEventListener(Hx[d],m,!1)}function YZ(l){dl[l.pointerId]=l}function QZ(l){dl[l.pointerId]&&(dl[l.pointerId]=l)}function M3(l){delete dl[l.pointerId]}function eV(){E3||(document.addEventListener(T3,YZ,!0),document.addEventListener(P3,QZ,!0),document.addEventListener($3,M3,!0),document.addEventListener(L3,M3,!0),E3=!0)}function pm(l,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var m in dl)d.touches.push(dl[m]);d.changedTouches=[d],l(d)}}function tV(l,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&_r(d),pm(l,d)}function rV(l){var d={},m,v;for(v in l)m=l[v],d[v]=m&&m.bind?m.bind(l):m;return l=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var nV=200;function aV(l,d){l.addEventListener("dblclick",d);var m=0,v;function w(P){if(P.detail!==1){v=P.detail;return}if(!(P.pointerType==="mouse"||P.sourceCapabilities&&!P.sourceCapabilities.firesTouchEvents)){var N=O3(P);if(!(N.some(function(G){return G instanceof HTMLLabelElement&&G.attributes.for})&&!N.some(function(G){return G instanceof HTMLInputElement||G instanceof HTMLSelectElement}))){var V=Date.now();V-m<=nV?(v++,v===2&&d(rV(P))):v=1,m=V}}}return l.addEventListener("click",w),{dblclick:d,simDblclick:w}}function oV(l,d){l.removeEventListener("dblclick",d.dblclick),l.removeEventListener("click",d.simDblclick)}var Wx=gm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Mc=gm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),R3=Mc==="webkitTransition"||Mc==="OTransition"?Mc+"End":"transitionend";function z3(l){return typeof l=="string"?document.getElementById(l):l}function Rc(l,d){var m=l.style[d]||l.currentStyle&&l.currentStyle[d];if((!m||m==="auto")&&document.defaultView){var v=document.defaultView.getComputedStyle(l,null);m=v?v[d]:null}return m==="auto"?null:m}function ct(l,d,m){var v=document.createElement(l);return v.className=d||"",m&&m.appendChild(v),v}function Bt(l){var d=l.parentNode;d&&d.removeChild(l)}function mm(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function fl(l){var d=l.parentNode;d&&d.lastChild!==l&&d.appendChild(l)}function pl(l){var d=l.parentNode;d&&d.firstChild!==l&&d.insertBefore(l,d.firstChild)}function Jx(l,d){if(l.classList!==void 0)return l.classList.contains(d);var m=hm(l);return m.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(m)}function Qe(l,d){if(l.classList!==void 0)for(var m=h(d),v=0,w=m.length;v<w;v++)l.classList.add(m[v]);else if(!Jx(l,d)){var P=hm(l);Kx(l,(P?P+" ":"")+d)}}function Xt(l,d){l.classList!==void 0?l.classList.remove(d):Kx(l,p((" "+hm(l)+" ").replace(" "+d+" "," ")))}function Kx(l,d){l.className.baseVal===void 0?l.className=d:l.className.baseVal=d}function hm(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function Pn(l,d){"opacity"in l.style?l.style.opacity=d:"filter"in l.style&&iV(l,d)}function iV(l,d){var m=!1,v="DXImageTransform.Microsoft.Alpha";try{m=l.filters.item(v)}catch{if(d===1)return}d=Math.round(d*100),m?(m.Enabled=d!==100,m.Opacity=d):l.style.filter+=" progid:"+v+"(opacity="+d+")"}function gm(l){for(var d=document.documentElement.style,m=0;m<l.length;m++)if(l[m]in d)return l[m];return!1}function is(l,d,m){var v=d||new ve(0,0);l.style[Wx]=($e.ie3d?"translate("+v.x+"px,"+v.y+"px)":"translate3d("+v.x+"px,"+v.y+"px,0)")+(m?" scale("+m+")":"")}function rr(l,d){l._leaflet_pos=d,$e.any3d?is(l,d):(l.style.left=d.x+"px",l.style.top=d.y+"px")}function ss(l){return l._leaflet_pos||new ve(0,0)}var zc,Dc,Xx;if("onselectstart"in document)zc=function(){Ge(window,"selectstart",_r)},Dc=function(){Pt(window,"selectstart",_r)};else{var Nc=gm(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);zc=function(){if(Nc){var l=document.documentElement.style;Xx=l[Nc],l[Nc]="none"}},Dc=function(){Nc&&(document.documentElement.style[Nc]=Xx,Xx=void 0)}}function Yx(){Ge(window,"dragstart",_r)}function Qx(){Pt(window,"dragstart",_r)}var vm,eb;function tb(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(ym(),vm=l,eb=l.style.outlineStyle,l.style.outlineStyle="none",Ge(window,"keydown",ym))}function ym(){vm&&(vm.style.outlineStyle=eb,vm=void 0,eb=void 0,Pt(window,"keydown",ym))}function D3(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function rb(l){var d=l.getBoundingClientRect();return{x:d.width/l.offsetWidth||1,y:d.height/l.offsetHeight||1,boundingClientRect:d}}var sV={__proto__:null,TRANSFORM:Wx,TRANSITION:Mc,TRANSITION_END:R3,get:z3,getStyle:Rc,create:ct,remove:Bt,empty:mm,toFront:fl,toBack:pl,hasClass:Jx,addClass:Qe,removeClass:Xt,setClass:Kx,getClass:hm,setOpacity:Pn,testProp:gm,setTransform:is,setPosition:rr,getPosition:ss,get disableTextSelection(){return zc},get enableTextSelection(){return Dc},disableImageDrag:Yx,enableImageDrag:Qx,preventOutline:tb,restoreOutline:ym,getSizedParentNode:D3,getScale:rb};function Ge(l,d,m,v){if(d&&typeof d=="object")for(var w in d)ab(l,w,d[w],m);else{d=h(d);for(var P=0,N=d.length;P<N;P++)ab(l,d[P],m,v)}return this}var ma="_leaflet_events";function Pt(l,d,m,v){if(arguments.length===1)N3(l),delete l[ma];else if(d&&typeof d=="object")for(var w in d)ob(l,w,d[w],m);else if(d=h(d),arguments.length===2)N3(l,function(V){return T(d,V)!==-1});else for(var P=0,N=d.length;P<N;P++)ob(l,d[P],m,v);return this}function N3(l,d){for(var m in l[ma]){var v=m.split(/\d/)[0];(!d||d(v))&&ob(l,v,null,null,m)}}
2var nb={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ab(l,d,m,v){var w=d+i(m)+(v?"_"+i(v):"");if(l[ma]&&l[ma][w])return this;var P=function(V){return m.call(v||l,V||window.event)},N=P;!$e.touchNative&&$e.pointer&&d.indexOf("touch")===0?P=KZ(l,d,P):$e.touch&&d==="dblclick"?P=aV(l,P):"addEventListener"in l?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?l.addEventListener(nb[d]||d,P,$e.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?(P=function(V){V=V||window.event,sb(l,V)&&N(V)},l.addEventListener(nb[d],P,!1)):l.addEventListener(d,N,!1):l.attachEvent("on"+d,P),l[ma]=l[ma]||{},l[ma][w]=P}function ob(l,d,m,v,w){w=w||d+i(m)+(v?"_"+i(v):"");var P=l[ma]&&l[ma][w];if(!P)return this;!$e.touchNative&&$e.pointer&&d.indexOf("touch")===0?XZ(l,d,P):$e.touch&&d==="dblclick"?oV(l,P):"removeEventListener"in l?l.removeEventListener(nb[d]||d,P,!1):l.detachEvent("on"+d,P),l[ma][w]=null}function ls(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function ib(l){return ab(l,"wheel",ls),this}function Oc(l){return Ge(l,"mousedown touchstart dblclick contextmenu",ls),l._leaflet_disable_click=!0,this}function _r(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function us(l){return _r(l),ls(l),this}function O3(l){if(l.composedPath)return l.composedPath();for(var d=[],m=l.target;m;)d.push(m),m=m.parentNode;return d}function U3(l,d){if(!d)return new ve(l.clientX,l.clientY);var m=rb(d),v=m.boundingClientRect;return new ve((l.clientX-v.left)/m.x-d.clientLeft,(l.clientY-v.top)/m.y-d.clientTop)}var lV=$e.linux&&$e.chrome?window.devicePixelRatio:$e.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function B3(l){return $e.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/lV:l.deltaY&&l.deltaMode===1?-l.deltaY*20:l.deltaY&&l.deltaMode===2?-l.deltaY*60:l.deltaX||l.deltaZ?0:l.wheelDelta?(l.wheelDeltaY||l.wheelDelta)/2:l.detail&&Math.abs(l.detail)<32765?-l.detail*20:l.detail?l.detail/-32765*60:0}function sb(l,d){var m=d.relatedTarget;if(!m)return!0;try{for(;m&&m!==l;)m=m.parentNode}catch{return!1}return m!==l}var uV={__proto__:null,on:Ge,off:Pt,stopPropagation:ls,disableScrollPropagation:ib,disableClickPropagation:Oc,preventDefault:_r,stop:us,getPropagationPath:O3,getMousePosition:U3,getWheelDelta:B3,isExternalTarget:sb,addListener:Ge,removeListener:Pt},F3=Fe.extend({run:function(l,d,m,v){this.stop(),this._el=l,this._inProgress=!0,this._duration=m||.25,this._easeOutPower=1/Math.max(v||.5,.2),this._startPos=ss(l),this._offset=d.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=Z(this._animate,this),this._step()},_step:function(l){var d=+new Date-this._startTime,m=this._duration*1e3;d<m?this._runFrame(this._easeOut(d/m),l):(this._runFrame(1),this._complete())},_runFrame:function(l,d){var m=this._startPos.add(this._offset.multiplyBy(l));d&&m._round(),rr(this._el,m),this.fire("step")},_complete:function(){W(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(l){return 1-Math.pow(1-l,this._easeOutPower)}}),ut=Fe.extend({options:{crs:fa,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(l,d){d=g(this,d),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(l),this._initLayout(),this._onResize=n(this._onResize,this),this._initEvents(),d.maxBounds&&this.setMaxBounds(d.maxBounds),d.zoom!==void 0&&(this._zoom=this._limitZoom(d.zoom)),d.center&&d.zoom!==void 0&&this.setView(he(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Mc&&$e.any3d&&!$e.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Ge(this._proxy,R3,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(l,d,m){if(d=d===void 0?this._zoom:this._limitZoom(d),l=this._limitCenter(he(l),d,this.options.maxBounds),m=m||{},this._stop(),this._loaded&&!m.reset&&m!==!0){m.animate!==void 0&&(m.zoom=r({animate:m.animate},m.zoom),m.pan=r({animate:m.animate,duration:m.duration},m.pan));var v=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,d,m.zoom):this._tryAnimatedPan(l,m.pan);if(v)return clearTimeout(this._sizeTimer),this}return this._resetView(l,d,m.pan&&m.pan.noMoveStart),this},setZoom:function(l,d){return this._loaded?this.setView(this.getCenter(),l,{zoom:d}):(this._zoom=l,this)},zoomIn:function(l,d){return l=l||($e.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,d)},zoomOut:function(l,d){return l=l||($e.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,d)},setZoomAround:function(l,d,m){var v=this.getZoomScale(d),w=this.getSize().divideBy(2),P=l instanceof ve?l:this.latLngToContainerPoint(l),N=P.subtract(w).multiplyBy(1-1/v),V=this.containerPointToLatLng(w.add(N));return this.setView(V,d,{zoom:m})},_getBoundsCenterZoom:function(l,d){d=d||{},l=l.getBounds?l.getBounds():ke(l);var m=fe(d.paddingTopLeft||d.padding||[0,0]),v=fe(d.paddingBottomRight||d.padding||[0,0]),w=this.getBoundsZoom(l,!1,m.add(v));if(w=typeof d.maxZoom=="number"?Math.min(d.maxZoom,w):w,w===1/0)return{center:l.getCenter(),zoom:w};
2var P=v.subtract(m).divideBy(2),N=this.project(l.getSouthWest(),w),V=this.project(l.getNorthEast(),w),G=this.unproject(N.add(V).divideBy(2).add(P),w);return{center:G,zoom:w}},fitBounds:function(l,d){if(l=ke(l),!l.isValid())throw new Error("Bounds are not valid.");var m=this._getBoundsCenterZoom(l,d);return this.setView(m.center,m.zoom,d)},fitWorld:function(l){return this.fitBounds([[-90,-180],[90,180]],l)},panTo:function(l,d){return this.setView(l,this._zoom,{pan:d})},panBy:function(l,d){if(l=fe(l).round(),d=d||{},!l.x&&!l.y)return this.fire("moveend");if(d.animate!==!0&&!this.getSize().contains(l))return this._resetView(this.unproject(this.project(this.getCenter()).add(l)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new F3,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){Qe(this._mapPane,"leaflet-pan-anim");var m=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,m,d.duration||.25,d.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,d,m){if(m=m||{},m.animate===!1||!$e.any3d)return this.setView(l,d,m);this._stop();var v=this.project(this.getCenter()),w=this.project(l),P=this.getSize(),N=this._zoom;l=he(l),d=d===void 0?N:d;var V=Math.max(P.x,P.y),G=V*this.getZoomScale(N,d),K=w.distanceTo(v)||1,we=1.42,Re=we*we;function nt(nr){var Lm=nr?-1:1,XV=nr?G:V,YV=G*G-V*V+Lm*Re*Re*K*K,QV=2*XV*Re*K,yb=YV/QV,wT=Math.sqrt(yb*yb+1)-yb,eq=wT<1e-9?-18:Math.log(wT);return eq}function zr(nr){return(Math.exp(nr)-Math.exp(-nr))/2}function vr(nr){return(Math.exp(nr)+Math.exp(-nr))/2}function Ln(nr){return zr(nr)/vr(nr)}var Jr=nt(0);function xl(nr){return V*(vr(Jr)/vr(Jr+we*nr))}function HV(nr){return V*(vr(Jr)*Ln(Jr+we*nr)-zr(Jr))/Re}function WV(nr){return 1-Math.pow(1-nr,1.5)}var JV=Date.now(),xT=(nt(1)-Jr)/we,KV=m.duration?1e3*m.duration:1e3*xT*.8;function bT(){var nr=(Date.now()-JV)/KV,Lm=WV(nr)*xT;nr<=1?(this._flyToFrame=Z(bT,this),this._move(this.unproject(v.add(w.subtract(v).multiplyBy(HV(Lm)/K)),N),this.getScaleZoom(V/xl(Lm),N),{flyTo:!0})):this._move(l,d)._moveEnd(!0)}return this._moveStart(!0,m.noMoveStart),bT.call(this),this},flyToBounds:function(l,d){var m=this._getBoundsCenterZoom(l,d);return this.flyTo(m.center,m.zoom,d)},setMaxBounds:function(l){return l=ke(l),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),l.isValid()?(this.options.maxBounds=l,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(l){var d=this.options.minZoom;return this.options.minZoom=l,this._loaded&&d!==l&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(l):this},setMaxZoom:function(l){var d=this.options.maxZoom;return this.options.maxZoom=l,this._loaded&&d!==l&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(l):this},panInsideBounds:function(l,d){this._enforcingBounds=!0;var m=this.getCenter(),v=this._limitCenter(m,this._zoom,ke(l));return m.equals(v)||this.panTo(v,d),this._enforcingBounds=!1,this},panInside:function(l,d){d=d||{};var m=fe(d.paddingTopLeft||d.padding||[0,0]),v=fe(d.paddingBottomRight||d.padding||[0,0]),w=this.project(this.getCenter()),P=this.project(l),N=this.getPixelBounds(),V=ot([N.min.add(m),N.max.subtract(v)]),G=V.getSize();if(!V.contains(P)){this._enforcingBounds=!0;var K=P.subtract(V.getCenter()),we=V.extend(P).getSize().subtract(G);w.x+=K.x<0?-we.x:we.x,w.y+=K.y<0?-we.y:we.y,this.panTo(this.unproject(w),d),this._enforcingBounds=!1}return this},invalidateSize:function(l){if(!this._loaded)return this;l=r({animate:!1,pan:!0},l===!0?{animate:!0}:l);var d=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var m=this.getSize(),v=d.divideBy(2).round(),w=m.divideBy(2).round(),P=v.subtract(w);return!P.x&&!P.y?this:(l.animate&&l.pan?this.panBy(P):(l.pan&&this._rawPanBy(P),this.fire("move"),l.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(n(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:d,newSize:m}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(l){if(l=this._locateOptions=r({timeout:1e4,watch:!1},l),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var d=n(this._handleGeolocationResponse,this),m=n(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,m,l):navigator.geolocation.getCurrentPosition(d,m,l),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(l){if(this._container._leaflet_id){var d=l.code,m=l.message||(d===1?"permission denied":d===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:d,message:"Geolocation error: "+m+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var d=l.coords.latitude,m=l.coords.longitude,v=new Ie(d,m),w=v.toBounds(l.coords.accuracy*2),P=this._locateOptions;if(P.setView){var N=this.getBoundsZoom(w);this.setView(v,P.maxZoom?Math.min(N,P.maxZoom):N)}var V={latlng:v,bounds:w,timestamp:l.timestamp};for(var G in l.coords)typeof l.coords[G]=="number"&&(V[G]=l.coords[G]);this.fire("locationfound",V)}},addHandler:function(l,d){if(!d)return this;var m=this[l]=new d(this);return this._handlers.push(m),this.options[l]&&m.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(),Bt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(W(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var l;
2for(l in this._layers)this._layers[l].remove();for(l in this._panes)Bt(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,d){var m="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),v=ct("div",m,d||this._mapPane);return l&&(this._panes[l]=v),v},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var l=this.getPixelBounds(),d=this.unproject(l.getBottomLeft()),m=this.unproject(l.getTopRight());return new qe(d,m)},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(l,d,m){l=ke(l),m=fe(m||[0,0]);var v=this.getZoom()||0,w=this.getMinZoom(),P=this.getMaxZoom(),N=l.getNorthWest(),V=l.getSouthEast(),G=this.getSize().subtract(m),K=ot(this.project(V,v),this.project(N,v)).getSize(),we=$e.any3d?this.options.zoomSnap:1,Re=G.x/K.x,nt=G.y/K.y,zr=d?Math.max(Re,nt):Math.min(Re,nt);return v=this.getScaleZoom(zr,v),we&&(v=Math.round(v/(we/100))*(we/100),v=d?Math.ceil(v/we)*we:Math.floor(v/we)*we),Math.max(w,Math.min(P,v))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new ve(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,d){var m=this._getTopLeftPoint(l,d);return new Ne(m,m.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(l){return this.options.crs.getProjectedBounds(l===void 0?this.getZoom():l)},getPane:function(l){return typeof l=="string"?this._panes[l]:l},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(l,d){var m=this.options.crs;return d=d===void 0?this._zoom:d,m.scale(l)/m.scale(d)},getScaleZoom:function(l,d){var m=this.options.crs;d=d===void 0?this._zoom:d;var v=m.zoom(l*m.scale(d));return isNaN(v)?1/0:v},project:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(he(l),d)},unproject:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(fe(l),d)},layerPointToLatLng:function(l){var d=fe(l).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(l){var d=this.project(he(l))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(he(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(ke(l))},distance:function(l,d){return this.options.crs.distance(he(l),he(d))},containerPointToLayerPoint:function(l){return fe(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return fe(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var d=this.containerPointToLayerPoint(fe(l));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(he(l)))},mouseEventToContainerPoint:function(l){return U3(l,this._container)},mouseEventToLayerPoint:function(l){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(l))},mouseEventToLatLng:function(l){return this.layerPointToLatLng(this.mouseEventToLayerPoint(l))},_initContainer:function(l){var d=this._container=z3(l);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ge(d,"scroll",this._onScroll,this),this._containerId=i(d)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&$e.any3d,Qe(l,"leaflet-container"+($e.touch?" leaflet-touch":"")+($e.retina?" leaflet-retina":"")+($e.ielt9?" leaflet-oldie":"")+($e.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Rc(l,"position");d!=="absolute"&&d!=="relative"&&d!=="fixed"&&d!=="sticky"&&(l.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var l=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),rr(this._mapPane,new ve(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Qe(l.markerPane,"leaflet-zoom-hide"),Qe(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,d,m){rr(this._mapPane,new ve(0,0));var v=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var w=this._zoom!==d;this._moveStart(w,m)._move(l,d)._moveEnd(w),this.fire("viewreset"),v&&this.fire("load")},_moveStart:function(l,d){return l&&this.fire("zoomstart"),d||this.fire("movestart"),this},_move:function(l,d,m,v){d===void 0&&(d=this._zoom);var w=this._zoom!==d;return this._zoom=d,this._lastCenter=l,this._pixelOrigin=this._getNewPixelOrigin(l),v?m&&m.pinch&&this.fire("zoom",m):((w||m&&m.pinch)&&this.fire("zoom",m),this.fire("move",m)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(l){rr(this._mapPane,this._getMapPanePos().subtract(l))},_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(l){this._targets={},this._targets[i(this._container)]=this;var d=l?Pt:Ge;d(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&d(window,"resize",this._onResize,this),$e.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=Z(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();
2Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,d){for(var m=[],v,w=d==="mouseout"||d==="mouseover",P=l.target||l.srcElement,N=!1;P;){if(v=this._targets[i(P)],v&&(d==="click"||d==="preclick")&&this._draggableMoved(v)){N=!0;break}if(v&&v.listens(d,!0)&&(w&&!sb(P,l)||(m.push(v),w))||P===this._container)break;P=P.parentNode}return!m.length&&!N&&!w&&this.listens(d,!0)&&(m=[this]),m},_isClickDisabled:function(l){for(;l&&l!==this._container;){if(l._leaflet_disable_click)return!0;l=l.parentNode}},_handleDOMEvent:function(l){var d=l.target||l.srcElement;if(!(!this._loaded||d._leaflet_disable_events||l.type==="click"&&this._isClickDisabled(d))){var m=l.type;m==="mousedown"&&tb(d),this._fireDOMEvent(l,m)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,d,m){if(l.type==="click"){var v=r({},l);v.type="preclick",this._fireDOMEvent(v,v.type,m)}var w=this._findEventTargets(l,d);if(m){for(var P=[],N=0;N<m.length;N++)m[N].listens(d,!0)&&P.push(m[N]);w=P.concat(w)}if(w.length){d==="contextmenu"&&_r(l);var V=w[0],G={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var K=V.getLatLng&&(!V._radius||V._radius<=10);G.containerPoint=K?this.latLngToContainerPoint(V.getLatLng()):this.mouseEventToContainerPoint(l),G.layerPoint=this.containerPointToLayerPoint(G.containerPoint),G.latlng=K?V.getLatLng():this.layerPointToLatLng(G.layerPoint)}for(N=0;N<w.length;N++)if(w[N].fire(d,G,!0),G.originalEvent._stopped||w[N].options.bubblingMouseEvents===!1&&T(this._mouseEvents,d)!==-1)return}},_draggableMoved:function(l){return l=l.dragging&&l.dragging.enabled()?l:this,l.dragging&&l.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var l=0,d=this._handlers.length;l<d;l++)this._handlers[l].disable()},whenReady:function(l,d){return this._loaded?l.call(d||this,{target:this}):this.on("load",l,d),this},_getMapPanePos:function(){return ss(this._mapPane)||new ve(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,d){var m=l&&d!==void 0?this._getNewPixelOrigin(l,d):this.getPixelOrigin();return m.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,d){var m=this.getSize()._divideBy(2);return this.project(l,d)._subtract(m)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,d,m){var v=this._getNewPixelOrigin(m,d);return this.project(l,d)._subtract(v)},_latLngBoundsToNewLayerBounds:function(l,d,m){var v=this._getNewPixelOrigin(m,d);
2return ot([this.project(l.getSouthWest(),d)._subtract(v),this.project(l.getNorthWest(),d)._subtract(v),this.project(l.getSouthEast(),d)._subtract(v),this.project(l.getNorthEast(),d)._subtract(v)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(l){return this.latLngToLayerPoint(l).subtract(this._getCenterLayerPoint())},_limitCenter:function(l,d,m){if(!m)return l;var v=this.project(l,d),w=this.getSize().divideBy(2),P=new Ne(v.subtract(w),v.add(w)),N=this._getBoundsOffset(P,m,d);return Math.abs(N.x)<=1&&Math.abs(N.y)<=1?l:this.unproject(v.add(N),d)},_limitOffset:function(l,d){if(!d)return l;var m=this.getPixelBounds(),v=new Ne(m.min.add(l),m.max.add(l));return l.add(this._getBoundsOffset(v,d))},_getBoundsOffset:function(l,d,m){var v=ot(this.project(d.getNorthEast(),m),this.project(d.getSouthWest(),m)),w=v.min.subtract(l.min),P=v.max.subtract(l.max),N=this._rebound(w.x,-P.x),V=this._rebound(w.y,-P.y);return new ve(N,V)},_rebound:function(l,d){return l+d>0?Math.round(l-d)/2:Math.max(0,Math.ceil(l))-Math.max(0,Math.floor(d))},_limitZoom:function(l){var d=this.getMinZoom(),m=this.getMaxZoom(),v=$e.any3d?this.options.zoomSnap:1;return v&&(l=Math.round(l/v)*v),Math.max(d,Math.min(m,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Xt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,d){var m=this._getCenterOffset(l)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(m)?!1:(this.panBy(m,d),!0)},_createAnimProxy:function(){var l=this._proxy=ct("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(d){var m=Wx,v=this._proxy.style[m];is(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),v===this._proxy.style[m]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Bt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),d=this.getZoom();is(this._proxy,this.project(l,d),this.getZoomScale(d,1))},_catchTransitionEnd:function(l){this._animatingZoom&&l.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(l,d,m){if(this._animatingZoom)return!0;if(m=m||{},!this._zoomAnimated||m.animate===!1||this._nothingToAnimate()||Math.abs(d-this._zoom)>this.options.zoomAnimationThreshold)return!1;var v=this.getZoomScale(d),w=this._getCenterOffset(l)._divideBy(1-1/v);return m.animate!==!0&&!this.getSize().contains(w)?!1:(Z(function(){this._moveStart(!0,m.noMoveStart||!1)._animateZoom(l,d,!0)},this),!0)},_animateZoom:function(l,d,m,v){this._mapPane&&(m&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=d,Qe(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:l,zoom:d,noUpdate:v}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(n(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Xt(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 cV(l,d){return new ut(l,d)}var Hn=Q.extend({options:{position:"topright"},initialize:function(l){g(this,l)},getPosition:function(){return this.options.position},setPosition:function(l){var d=this._map;return d&&d.removeControl(this),this.options.position=l,d&&d.addControl(this),this},getContainer:function(){return this._container},addTo:function(l){this.remove(),this._map=l;var d=this._container=this.onAdd(l),m=this.getPosition(),v=l._controlCorners[m];return Qe(d,"leaflet-control"),m.indexOf("bottom")!==-1?v.insertBefore(d,v.firstChild):v.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Bt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(l){this._map&&l&&l.screenX>0&&l.screenY>0&&this._map.getContainer().focus()}}),Uc=function(l){return new Hn(l)};ut.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this}
vendor: 7,407 bytes, line 2
2,_initControlPos:function(){var l=this._controlCorners={},d="leaflet-",m=this._controlContainer=ct("div",d+"control-container",this._container);function v(w,P){var N=d+w+" "+d+P;l[w+P]=ct("div",N,m)}v("top","left"),v("top","right"),v("bottom","left"),v("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)Bt(this._controlCorners[l]);Bt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var j3=Hn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,d,m,v){return m<v?-1:v<m?1:0}},initialize:function(l,d,m){g(this,m),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var v in l)this._addLayer(l[v],v);for(v in d)this._addLayer(d[v],v,!0)},onAdd:function(l){this._initLayout(),this._update(),this._map=l,l.on("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(l){return Hn.prototype.addTo.call(this,l),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var l=0;l<this._layers.length;l++)this._layers[l].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(l,d){return this._addLayer(l,d),this._map?this._update():this},addOverlay:function(l,d){return this._addLayer(l,d,!0),this._map?this._update():this},removeLayer:function(l){l.off("add remove",this._onLayerChange,this);var d=this._getLayer(i(l));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){Qe(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var l=this._map.getSize().y-(this._container.offsetTop+50);return l<this._section.clientHeight?(Qe(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):Xt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Xt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",d=this._container=ct("div",l),m=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Oc(d),ib(d);var v=this._section=ct("section",l+"-list");m&&(this._map.on("click",this.collapse,this),Ge(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=ct("a",l+"-toggle",d);w.href="#",w.title="Layers",w.setAttribute("role","button"),Ge(w,{keydown:function(P){P.keyCode===13&&this._expandSafely()},click:function(P){_r(P),this._expandSafely()}},this),m||this.expand(),this._baseLayersList=ct("div",l+"-base",v),this._separator=ct("div",l+"-separator",v),this._overlaysList=ct("div",l+"-overlays",v),d.appendChild(v)},_getLayer:function(l){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&i(this._layers[d].layer)===l)return this._layers[d]},_addLayer:function(l,d,m){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:d,overlay:m}),this.options.sortLayers&&this._layers.sort(n(function(v,w){return this.options.sortFunction(v.layer,w.layer,v.name,w.name)},this)),this.options.autoZIndex&&l.setZIndex&&(this._lastZIndex++,l.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;mm(this._baseLayersList),mm(this._overlaysList),this._layerControlInputs=[];var l,d,m,v,w=0;for(m=0;m<this._layers.length;m++)v=this._layers[m],this._addItem(v),d=d||v.overlay,l=l||!v.overlay,w+=v.overlay?0:1;return this.options.hideSingleBase&&(l=l&&w>1,this._baseLayersList.style.display=l?"":"none"),this._separator.style.display=d&&l?"":"none",this},_onLayerChange:function(l){this._handlingClick||this._update();var d=this._getLayer(i(l.target)),m=d.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;m&&this._map.fire(m,d)},_createRadioElement:function(l,d){var m='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(d?' checked="checked"':"")+"/>",v=document.createElement("div");return v.innerHTML=m,v.firstChild},_addItem:function(l){var d=document.createElement("label"),m=this._map.hasLayer(l.layer),v;l.overlay?(v=document.createElement("input"),v.type="checkbox",v.className="leaflet-control-layers-selector",v.defaultChecked=m):v=this._createRadioElement("leaflet-base-layers_"+i(this),m),this._layerControlInputs.push(v),v.layerId=i(l.layer),Ge(v,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+l.name;var P=document.createElement("span");d.appendChild(P),P.appendChild(v),P.appendChild(w);var N=l.overlay?this._overlaysList:this._baseLayersList;return N.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,d,m,v=[],w=[];this._handlingClick=!0;for(var P=l.length-1;P>=0;P--)d=l[P],m=this._getLayer(d.layerId).layer,d.checked?v.push(m):d.checked||w.push(m);for(P=0;P<w.length;P++)this._map.hasLayer(w[P])&&this._map.removeLayer(w[P]);for(P=0;P<v.length;P++)this._map.hasLayer(v[P])||this._map.addLayer(v[P]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,d,m,v=this._map.getZoom(),w=l.length-1;w>=0;w--)d=l[w],m=this._getLayer(d.layerId).layer,d.disabled=m.options.minZoom!==void 0&&v<m.options.minZoom||m.options.maxZoom!==void 0&&v>m.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,Ge(l,"click",_r),this.expand();var d=this;setTimeout(function(){Pt(l,"click",_r),d._preventClick=!1})}}),dV=function(l,d,m){return new j3(l,d,m)},lb=Hn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(l){var d="leaflet-control-zoom",m=ct("div",d+" leaflet-bar"),v=this.options;return this._zoomInButton=this._createButton(v.zoomInText,v.zoomInTitle,d+"-in",m,this._zoomIn),this._zoomOutButton=this._createButton(v.zoomOutText,v.zoomOutTitle,d+"-out",m,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),m},onRemove:function(l){l.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(l){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(l.shiftKey?3:1))},_zoomOut:function(l){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(l.shiftKey?3:1))},_createButton:function(l,d,m,v,w){var P=ct("a",m,v);return P.innerHTML=l,P.href="#",P.title=d,P.setAttribute("role","button"),P.setAttribute("aria-label",d),Oc(P),Ge(P,"click",us),Ge(P,"click",w,this),Ge(P,"click",this._refocusOnMap,this),P},_updateDisabled:function(){var l=this._map,d="leaflet-disabled";Xt(this._zoomInButton,d),Xt(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMin
2Zoom())&&(Qe(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(Qe(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});ut.mergeOptions({zoomControl:!0}),ut.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new lb,this.addControl(this.zoomControl))});var fV=function(l){return new lb(l)},Z3=Hn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var d="leaflet-control-scale",m=ct("div",d),v=this.options;return this._addScales(v,d+"-line",m),l.on(v.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),m},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,d,m){l.metric&&(this._mScale=ct("div",d,m)),l.imperial&&(this._iScale=ct("div",d,m))},_update:function(){var l=this._map,d=l.getSize().y/2,m=l.distance(l.containerPointToLatLng([0,d]),l.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(m)},_updateScales:function(l){this.options.metric&&l&&this._updateMetric(l),this.options.imperial&&l&&this._updateImperial(l)},_updateMetric:function(l){var d=this._getRoundNum(l),m=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,m,d/l)},_updateImperial:function(l){var d=l*3.2808399,m,v,w;d>5280?(m=d/5280,v=this._getRoundNum(m),this._updateScale(this._iScale,v+" mi",v/m)):(w=this._getRoundNum(d),this._updateScale(this._iScale,w+" ft",w/d))},_updateScale:function(l,d,m){l.style.width=Math.round(this.options.maxWidth*m)+"px",l.innerHTML=d},_getRoundNum:function(l){var d=Math.pow(10,(Math.floor(l)+"").length-1),m=l/d;return m=m>=10?10:m>=5?5:m>=3?3:m>=2?2:1,d*m}}),pV=function(l){return new Z3(l)},mV='<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>',ub=Hn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+($e.inlineSvg?mV+" ":"")+"Leaflet</a>"},initialize:function(l){g(this,l),this._attributions={}},onAdd:function(l){l.attributionControl=this,this._container=ct("div","leaflet-control-attribution"),Oc(this._container);for(var d in l._layers)l._layers[d].getAttribution&&this.addAttribution(l._layers[d].getAttribution());return this._update(),l.on("layeradd",this._addAttribution,this),this._container},onRemove:function(l){l.off("layeradd",this._addAttribution,this)},_addAttribution:function(l){l.layer.getAttribution&&(this.addAttribution(l.layer.getAttribution()),l.layer.once("remove",function(){this.removeAttribution(l.layer.getAttribution())},this))},setPrefix:function(l){return this.options.prefix=l,this._update(),this},addAttribution:function(l){return l?(this._attributions[l]||(this._attributions[l]=0),this._attributions[l]++,this._update(),this):this},removeAttribution:function(l){return l?(this._attributions[l]&&(this._attributions[l]--,this._update()),this):this},_update:function(){if(this._map){var l=[];for(var d in this._attributions)this._attributions[d]&&l.push(d);var m=[];this.options.prefix&&m.push(this.options.prefix),l.length&&m.push(l.join(", ")),this._container.innerHTML=m.join(' <span aria-hidden="true">|</span> ')}}});ut.mergeOptions({attributionControl:!0}),ut.addInitHook(function(){this.options.attributionControl&&new ub().addTo(this)});var hV=function(l){return new ub(l)};Hn.Layers=j3,Hn.Zoom=lb,Hn.Scale=Z3,Hn.Attribution=ub,Uc.layers=dV,Uc.zoom=fV,Uc.scale=pV,Uc.attribution=hV;var ha=Q.extend({initialize:function(l){this._map=l},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}});ha.addTo=function(l,d){return l.addHandler(d,this),this};var gV={Events:Ce},V3=$e.touch?"touchstart mousedown":"mousedown",Ko=Fe.extend({options:{clickTolerance:3},initialize:function(l,d,m,v){g(this,v),this._element=l,this._dragStartTarget=d||l,this._preventOutline=m},enable:function(){this._enabled||(Ge(this._dragStartTarget,V3,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ko._dragging===this&&this.finishDrag(!0),Pt(this._dragStartTarget,V3,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!Jx(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){Ko._dragging===this&&this.finishDrag();return}if(!(Ko._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(Ko._dragging=this,this._preventOutline&&tb(this._element),Yx(),zc(),!this._moving)){this.fire("down");var d=l.touches?l.touches[0]:l,m=D3(this._element);this._startPoint=new ve(d.clientX,d.clientY),this._startPos=ss(this._element),this._parentScale=rb(m);var v=l.type==="mousedown";Ge(document,v?"mousemove":"touchmove",this._onMove,this),Ge(document,v?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(l){if(this._enabled){if(l.touches&&l.touches.length>1){this._moved=!0;return}var d=l.touches&&l.touches.length===1?l.touches[0]:l,m=new ve(d.clientX,d.clientY)._subtract(this._startPoint);!m.x&&!m.y||Math.abs(m.x)+Math.abs(m.y)<this.options.clickTolerance||(m.x/=this._parentScale.x,m.y/=this._parentScale.y,_r(l),this._moved||(this.fire("dragstart"),this._moved=!0,Qe(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Qe(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(m),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),rr(this._element,this._newPos),this.fire("drag",l)}
2,_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){Xt(document.body,"leaflet-dragging"),this._lastTarget&&(Xt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Pt(document,"mousemove touchmove",this._onMove,this),Pt(document,"mouseup touchend touchcancel",this._onUp,this),Qx(),Dc();var d=this._moved&&this._moving;this._moving=!1,Ko._dragging=!1,d&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function q3(l,d,m){var v,w=[1,4,2,8],P,N,V,G,K,we,Re,nt;for(P=0,we=l.length;P<we;P++)l[P]._code=cs(l[P],d);for(V=0;V<4;V++){for(Re=w[V],v=[],P=0,we=l.length,N=we-1;P<we;N=P++)G=l[P],K=l[N],G._code&Re?K._code&Re||(nt=xm(K,G,Re,d,m),nt._code=cs(nt,d),v.push(nt)):(K._code&Re&&(nt=xm(K,G,Re,d,m),nt._code=cs(nt,d),v.push(nt)),v.push(G));l=v}return l}function G3(l,d){var m,v,w,P,N,V,G,K,we;if(!l||l.length===0)throw new Error("latlngs not passed");$n(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var Re=he([0,0]),nt=ke(l),zr=nt.getNorthWest().distanceTo(nt.getSouthWest
2())*nt.getNorthEast().distanceTo(nt.getNorthWest());zr<1700&&(Re=cb(l));var vr=l.length,Ln=[];for(m=0;m<vr;m++){var Jr=he(l[m]);Ln.push(d.project(he([Jr.lat-Re.lat,Jr.lng-Re.lng])))}for(V=G=K=0,m=0,v=vr-1;m<vr;v=m++)w=Ln[m],P=Ln[v],N=w.y*P.x-P.y*w.x,G+=(w.x+P.x)*N,K+=(w.y+P.y)*N,V+=N*3;V===0?we=Ln[0]:we=[G/V,K/V];var xl=d.unproject(fe(we));return he([xl.lat+Re.lat,xl.lng+Re.lng])}function cb(l){for(var d=0,m=0,v=0,w=0;w<l.length;w++){var P=he(l[w]);d+=P.lat,m+=P.lng,v++}return he([d/v,m/v])}var vV={__proto__:null,clipPolygon:q3,polygonCenter:G3,centroid:cb};function H3(l,d){if(!d||!l.length)return l.slice();var m=d*d;return l=bV(l,m),l=xV(l,m),l}function W3(l,d,m){return Math.sqrt(Bc(l,d,m,!0))}function yV(l,d,m){return Bc(l,d,m)}function xV(l,d){var m=l.length,v=typeof Uint8Array<"u"?Uint8Array:Array,w=new v(m);w[0]=w[m-1]=1,db(l,w,d,0,m-1);var P,N=[];for(P=0;P<m;P++)w[P]&&N.push(l[P]);return N}function db(l,d,m,v,w){var P=0,N,V,G;for(V=v+1;V<=w-1;V++)G=Bc(l[V],l[v],l[w],!0),G>P&&(N=V,P=G);P>m&&(d[N]=1,db(l,d,m,v,N),db(l,d,m,N,w))}function bV(l,d){for(var m=[l[0]],v=1,w=0,P=l.length;v<P;v++)wV(l[v],l[w])>d&&(m.push(l[v]),w=v);return w<P-1&&m.push(l[P-1]),m}var J3;function K3(l,d,m,v,w){var P=v?J3:cs(l,m),N=cs(d,m),V,G,K;for(J3=N;;){if(!(P|N))return[l,d];if(P&N)return!1;V=P||N,G=xm(l,d,V,m,w),K=cs(G,m),V===P?(l=G,P=K):(d=G,N=K)}}function xm(l,d,m,v,w){var P=d.x-l.x,N=d.y-l.y,V=v.min,G=v.max,K,we;return m&8?(K=l.x+P*(G.y-l.y)/N,we=G.y):m&4?(K=l.x+P*(V.y-l.y)/N,we=V.y):m&2?(K=G.x,we=l.y+N*(G.x-l.x)/P):m&1&&(K=V.x,we=l.y+N*(V.x-l.x)/P),new ve(K,we,w
2)}function cs(l,d){var m=0;return l.x<d.min.x?m|=1:l.x>d.max.x&&(m|=2),l.y<d.min.y?m|=4:l.y>d.max.y&&(m|=8),m}function wV(l,d){var m=d.x-l.x,v=d.y-l.y;return m*m+v*v}function Bc(l,d,m,v){var w=d.x,P=d.y,N=m.x-w,V=m.y-P,G=N*N+V*V,K;return G>0&&(K=((l.x-w)*N+(l.y-P)*V)/G,K>1?(w=m.x,P=m.y):K>0&&(w+=N*K,P+=V*K)),N=l.x-w,V=l.y-P,v?N*N+V*V:new ve(w,P)}function $n(l){return!$(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]<"u"}function X3(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),$n(l)}function Y3(l,d){var m,v,w,P,N,V,G,K;if(!l||l.length===0)throw new Error("latlngs not passed");$n(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var we=he([0,0]),Re=ke(l),nt=Re.getNorthWest().distanceTo(Re.getSouthWest())*Re.getNorthEast().distanceTo(Re.getNorthWest());nt<1700&&(we=cb(l));var zr=l.length,vr=[];for(m=0;m<zr;m++){var Ln=he(l[m]);vr.push(d.project(he([Ln.lat-we.lat,Ln.lng-we.lng])))}for(m=0,v=0;m<zr-1;m++)v+=vr[m].distanceTo(vr[m+1])/2;if(v===0)K=vr[0];else for(m=0,P=0;m<zr-1;m++)if(N=vr[m],V=vr[m+1],w=N.distanceTo(V),P+=w,P>v){G=(P-v)/w,K=[V.x-G*(V.x-N.x),V.y-G*(V.y-N.y)];break}var Jr=d.unproject(fe(K));return he([Jr.lat+we.lat,Jr.lng+we.lng])}var _V={__proto__:null,simplify:H3,pointToSegmentDistance:W3,closestPointOnSegment:yV,clipSegment:K3,_getEdgeIntersection:xm,_getBitCode:cs,_sqClosestPointOnSegment:Bc,isFlat:$n,_flat:X3,polylineCenter:Y3},fb={project:function(l){return new ve(l.lng,l.lat)},unproject:function(l){return new Ie(l.y,l.x)},bounds:new Ne([-180,-90],[180,90])},pb={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Ne([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var d=Math.PI/180,m=this.R,v=l.lat*d,w=this.R_MINOR/m,P=Math.sqrt(1-w*w),N=P*Math.sin(v),V=Math.tan(Math.PI/4-v/2)/Math.pow((1-N)/(1+N),P/2);return v=-m*Math.log(Math.max(V,1e-10)),new ve(l.lng*d*m,v)},unproject:function(l){for(var d=180/Math.PI,m=this.R,v=this.R_MINOR/m,w=Math.sqrt(1-v*v),P=Math.exp(-l.y/m),N=Math.PI/2-2*Math.atan(P),V=0,G=.1,K;V<15&&Math.abs(G)>1e-7;V++)K=w*Math.sin(N),K=Math.pow((1-K)/(1+K),w/2),G=Math.PI/2-2*Math.atan(P*K)-N,N+=G;return new Ie(N*d,l.x*d/m)}},kV={__proto__:null,LonLat:fb,Mercator:pb,SphericalMercator:Ht},SV=r({},Ut,{code:"EPSG:3395",projection:pb,transformation:(function(){var l=.5/(Math.PI*pb.R);return Rr(l,.5,-l,.5)})()}),Q3=r({},Ut,{code:"EPSG:4326",projection:fb,transformation:Rr(1/180,1,-1/180,.5)}),IV=r({},it,{projection:fb,transformation:Rr(1,0,-1,0),scale:function(l){return Math.pow(2,l)},zoom:function(l){return Math.log(l)/Math.LN2},distance:function(l,d){var m=d.lng-l.lng,v=d.lat-l.lat;return Math.sqrt(m*m+v*v)},infinite:!0});it.Earth=Ut,it.EPSG3395=SV,it.EPSG3857=fa,it.EPSG900913=cm,it.EPSG4326=Q3,it.Simple=IV;var Wn=Fe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(l){return l.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(l){return l&&l.removeLayer(this),this},getPane:function(l){return this._map.getPane(l?this.options[l]||l:this.options.pane)},addInteractiveTarget:function(l){return this._map._targets[i(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[i(l)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(l){var d=l.target;if(d.hasLayer(this)){if(this._map=d,this._zoomAnimated=d._zoomAnimated,this.getEvents){var m=this.getEvents();d.on(m,this),this.once("remove",function(){d.off(m,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});ut.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var d=i(l);return this._layers[d]?this:(this._layers[d]=l,l._mapToAdd=this,l.beforeAdd&&l.beforeAdd(this),this.whenReady(l._layerAdd,l),this)},removeLayer:function(l){var d=i(l);return this._layers[d]?(this._loaded&&l.onRemove(this),delete this._layers[d],this._loaded&&(this.fire("layerremove",{layer:l}),l.fire("remove")),l._map=l._mapToAdd=null,this):this},hasLayer:function(l){return i(l)in this._layers},eachLayer:function(l,d){for(var m in this._layers)l.call(d,this._layers[m]);return this},_addLayers:function(l){l=l?$(l)?l:[l]:[];for(var d=0,m=l.length;d<m;d++)this.addLayer(l[d])}
2,_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[i(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var d=i(l);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,d=-1/0,m=this._getZoomSpan();for(var v in this._zoomBoundLayers){var w=this._zoomBoundLayers[v].options;l=w.minZoom===void 0?l:Math.min(l,w.minZoom),d=w.maxZoom===void 0?d:Math.max(d,w.maxZoom)}this._layersMaxZoom=d===-1/0?void 0:d,this._layersMinZoom=l===1/0?void 0:l,m!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ml=Wn.extend({initialize:function(l,d){g(this,d),this._layers={};var m,v;if(l)for(m=0,v=l.length;m<v;m++)this.addLayer(l[m])},addLayer:function(l){var d=this.getLayerId(l);return this._layers[d]=l,this._map&&this._map.addLayer(l),this},removeLayer:function(l){var d=l in this._layers?l:this.getLayerId(l);return this._map&&this._layers[d]&&this._map.removeLayer(this._layers[d]),delete this._layers[d],this},hasLayer:function(l){var d=typeof l=="number"?l:this.getLayerId(l);return d in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(l){var d=Array.prototype.slice.call(arguments,1),m,v;for(m in this._layers)v=this._layers[m],v[l]&&v[l].apply(v,d);return this},onAdd:function(l){this.eachLayer(l.addLayer,l)},onRemove:function(l){this.eachLayer(l.removeLayer,l)},eachLayer:function(l,d){for(var m in this._layers)l.call(d,this._layers[m]);return this},getLayer:function(l){return this._layers[l]},getLayers:function(){var l=[];return this.eachLayer(l.push,l),l},setZIndex:function(l){return this.invoke("setZIndex",l)},getLayerId:function(l){return i(l)}}),CV=function(l,d){return new ml(l,d)},Ka=ml.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),ml.prototype.addLayer.call(this,l),this.fire("layeradd",{layer:l}))},removeLayer:function(l){return this.hasLayer(l)?(l in this._layers&&(l=this._layers[l]),l.removeEventParent(this),ml.prototype.removeLayer.call(this,l),this.fire("layerremove",{layer:l})):this},setStyle:function(l){return this.invoke("setStyle",l)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var l=new qe;for(var d in this._layers){var m=this._layers[d];l.extend(m.getBounds?m.getBounds():m.getLatLng())}return l}}),TV=function(l,d){return new Ka(l,d)},hl=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(l){g(this,l)},createIcon:function(l){return this._createIcon("icon",l)},createShadow:function(l){return this._createIcon("shadow",l)},_createIcon:function(l,d){var m=this._getIconUrl(l);if(!m){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var v=this._createImg(m,d&&d.tagName==="IMG"?d:null);return this._setIconStyles(v,l),(this.options.crossOrigin||this.options.crossOrigin==="")&&(v.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),v},_setIconStyles:function(l,d){var m=this.options,v=m[d+"Size"];typeof v=="number"&&(v=[v,v]);
vendor: 11,183 bytes, line 2
2var w=fe(v),P=fe(d==="shadow"&&m.shadowAnchor||m.iconAnchor||w&&w.divideBy(2,!0));l.className="leaflet-marker-"+d+" "+(m.className||""),P&&(l.style.marginLeft=-P.x+"px",l.style.marginTop=-P.y+"px"),w&&(l.style.width=w.x+"px",l.style.height=w.y+"px")},_createImg:function(l,d){return d=d||document.createElement("img"),d.src=l,d},_getIconUrl:function(l){return $e.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function PV(l){return new hl(l)}var Fc=hl.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(l){return typeof Fc.imagePath!="string"&&(Fc.imagePath=this._detectIconPath()),(this.options.imagePath||Fc.imagePath)+hl.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var d=function(m,v,w){var P=v.exec(m);return P&&P[w]};return l=d(l,/^url\((['"])?(.+)\1\)$/,2),l&&d(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=ct("div","leaflet-default-icon-path",document.body),d=Rc(l,"background-image")||Rc(l,"backgroundImage");if(document.body.removeChild(l),d=this._stripUrl(d),d)return d;var m=document.querySelector('link[href$="leaflet.css"]');return m?m.href.substring(0,m.href.length-11-1):""}}),eT=ha.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new Ko(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Qe(l,"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&&Xt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var d=this._marker,m=d._map,v=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,P=ss(d._icon),N=m.getPixelBounds(),V=m.getPixelOrigin(),G=ot(N.min._subtract(V).add(w),N.max._subtract(V).subtract(w));if(!G.contains(P)){var K=fe((Math.max(G.max.x,P.x)-G.max.x)/(N.max.x-G.max.x)-(Math.min(G.min.x,P.x)-G.min.x)/(N.min.x-G.min.x),(Math.max(G.max.y,P.y)-G.max.y)/(N.max.y-G.max.y)-(Math.min(G.min.y,P.y)-G.min.y)/(N.min.y-G.min.y)).multiplyBy(v);m.panBy(K,{animate:!1}),this._draggable._newPos._add(K),this._draggable._startPos._add(K),rr(d._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=Z(this._adjustPan.bind(this,l))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(l){this._marker.options.autoPan&&(W(this._panRequest),this._panRequest=Z(this._adjustPan.bind(this,l)))},_onDrag:function(l){var d=this._marker,m=d._shadow,v=ss(d._icon),w=d._map.layerPointToLatLng(v);m&&rr(m,v),d._latlng=w,l.latlng=w,l.oldLatLng=this._oldLatLng,d.fire("move",l).fire("drag",l)},_onDragEnd:function(l){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),bm=Wn.extend({options:{icon:new Fc,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(l,d){g(this,d),this._latlng=he(l)},onAdd:function(l){this._zoomAnimated=this._zoomAnimated&&l.options.markerZoomAnimation,this._zoomAnimated&&l.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(l){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&l.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(l){var d=this._latlng;return this._latlng=he(l),this.update(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},setZIndexOffset:function(l){return this.options.zIndexOffset=l,this.update()},getIcon:function(){return this.options.icon},setIcon:function(l){return this.options.icon=l,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 l=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(l)}return this},_initIcon:function(){var l=this.options,d="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),m=l.icon.createIcon(this._icon),v=!1;m!==this._icon&&(this._icon&&this._removeIcon(),v=!0,l.title&&(m.title=l.title),m.tagName==="IMG"&&(m.alt=l.alt||"")),Qe(m,d),l.keyboard&&(m.tabIndex="0",m.setAttribute("role","button")),this._icon=m,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ge(m,"focus",this._panOnFocus,this);var w=l.icon.createShadow(this._shadow),P=!1;w!==this._shadow&&(this._removeShadow(),P=!0),w&&(Qe(w,d),w.alt=""),this._shadow=w,l.opacity<1&&this._updateOpacity(),v&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&P&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Pt(this._icon,"focus",this._panOnFocus,this),Bt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Bt(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&rr(this._icon,l),this._shadow&&rr(this._shadow,l),this._zIndex=l.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(l){this._icon&&(this._icon.style.zIndex=this._zIndex+l)},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center).round();this._setPos(d)},_initInteraction:function(){if(this.options.interactive&&(Qe(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),eT)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new eT(this),l&&this.dragging.enable()}},setOpacity:function(l){return this.options.opacity=l,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var l=this.options.opacity;this._icon&&Pn(this._icon,l),this._shadow&&Pn(this._shadow,l)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var l=this._map;if(l){var d=this.options.icon.options,m=d.iconSize?fe(d.iconSize):fe(0,0),v=d.iconAnchor?fe(d.iconAnchor):fe(0,0);l.panInside(this._latlng,{paddingTopLeft:v,paddingBottomRight:m.subtract(v)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function $V(l,d){return new bm(l,d)}var Xo=Wn.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(l){this._renderer=l.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(l){return g(this,l),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&l&&Object.prototype.hasOwnProperty.call(l,"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)}}),wm=Xo.extend({options:{fill:!0,radius:10},initialize:function(l,d){g(this,d),this._latlng=he(l),this._radius=this.options.radius},setLatLng:function(l){var d=this._latlng;return this._latlng=he(l),this.redraw(),this.fire("move",{oldLatLng:d,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(l){return this.options.radius=this._radius=l,this.redraw()},getRadius:function(){return this._radius},setStyle:function(l){var d=l&&l.radius||this._radius;return Xo.prototype.setStyle.call(this,l),this.setRadius(d),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var l=this._radius,d=this._radiusY||l,m=this._clickTolerance(),v=[l+m,d+m];this._pxBounds=new Ne(this._point.subtract(v),this._point.add(v))},_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(l){return l.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function LV(l,d){return new wm(l,d)}var mb=wm.extend({initialize:function(l,d,m){if(typeof d=="number"&&(d=r({},m,{radius:d})),g(this,d),this._latlng=he(l),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(l){return this._mRadius=l,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var l=[this._radius,this._radiusY||this._radius];return new qe(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:Xo.prototype.setStyle,_project:function(){var l=this._latlng.lng,d=this._latlng.lat,m=this._map,v=m.options.crs;if(v.distance===Ut.distance){var w=Math.PI/180,P=this._mRadius/Ut.R/w,N=m.project([d+P,l]),V=m.project([d-P,l]),G=N.add(V).divideBy(2),K=m.unproject(G).lat,we=Math.acos((Math.cos(P*w)-Math.sin(d*w)*Math.sin(K*w))/(Math.cos(d*w)*Math.cos(K*w)))/w;(isNaN(we)||we===0)&&(we=P/Math.cos(Math.PI/180*d)),this._point=G.subtract(m.getPixelOrigin()),this._radius=isNaN(we)?0:G.x-m.project([K,l-we]).x,this._radiusY=G.y-N.y}else{var Re=v.unproject(v.project(this._latlng).subtract([this._mRadius,0]));this._point=m.latLngToLayerPoint(this._latlng),this._radius=this._point.x-m.latLngToLayerPoint(Re).x}this._updateBounds()}});function AV(l,d,m){return new mb(l,d,m)}var Xa=Xo.extend({options:{smoothFactor:1,noClip:!1},initialize:function(l,d){g(this,d),this._setLatLngs(l)},getLatLngs:function(){return this._latlngs},setLatLngs:function(l){return this._setLatLngs(l),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(l){for(var d=1/0,m=null,v=Bc,w,P,N=0,V=this._parts.length;N<V;N++)for(var G=this._parts[N],K=1,we=G.length;K<we;K++){w=G[K-1],P=G[K];var Re=v(l,w,P,!0);Re<d&&(d=Re,m=v(l,w,P))}return m&&(m.distance=Math.sqrt(d)),m}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Y3(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,d){return d=d||this._defaultShape(),l=he(l),d.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new qe,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return $n(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var d=[],m=$n(l),v=0,w=l.length;v<w;v++)m?(d[v]=he(l[v]),this._bounds.extend(d[v])):d[v]=this._convertLatLngs(l[v]);return d},_project:function(){var l=new Ne;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,l),this._bounds.isValid()&&l.isValid()&&(this._rawPxBounds=l,this._updateBounds())},_updateBounds:function(){var l=this._clickTolerance(),d=new ve(l,l);this._rawPxBounds&&(this._pxBounds=new Ne([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(l,d,m){var v=l[0]instanceof Ie,w=l.length,P,N;if(v){for(N=[],P=0;P<w;P++)N[P]=this._map.latLngToLayerPoint(l[P]),m.extend(N[P]);d.push(N)}else for(P=0;P<w;P++)this._projectLatlngs(l[P],d,m)},_clipPoints:function(){var l=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}var d=this._parts,m,v,w,P,N,V,G;for(m=0,w=0,P=this._rings.length;m<P;m++)for(G=this._rings[m],v=0,N=G.length;v<N-1;v++)V=K3(G[v],G[v+1],l,v,!0),V&&(d[w]=d[w]||[],d[w].push(V[0]),(V[1]!==G[v+1]||v===N-2)&&(d[w].push(V[1]),w++))}},_simplifyPoints:function(){for(var l=this._parts,d=this.options.smoothFactor,m=0,v=l.length;m<v;m++)l[m]=H3(l[m],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,d){var m,v,w,P,N,V,G=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(m=0,P=this._parts.length;m<P;m++)for(V=this._parts[m],v=0,N=V.length,w=N-1;v<N;w=v++)if(!(!d&&v===0)&&W3(l,V[w],V[v])<=G)return!0;return!1}});function EV(l,d){return new Xa(l,d)}Xa._flat=X3;var gl=Xa.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 G3(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var d=Xa.prototype._convertLatLngs.call(this,l),m=d.length;return m>=2&&d[0]instanceof Ie&&d[0].equals(d[m-1])&&d.pop(),d},_setLatLngs:function(l){Xa.prototype._setLatLngs.call(this,l),$n(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return $n(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,d=this.options.weight,m=new ve(d,d);if(l=new Ne(l.min.subtract(m),l.max.add(m)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(l))){if(this.options.noClip){this._parts=this._rings;return}for(var v=0,w=this._rings.length,P;v<w;v++)P=q3(this._rings[v],l,!0),P.length&&this._parts.push(P)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var d=!1,m,v,w,P,N,V,G,K;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(P=0,G=this._parts.length;P<G;P++)for(m=this._parts[P],N=0,K=m.length,V=K-1;N<K;V=N++)v=m[N],w=m[V],v.y>l.y!=w.y>l.y&&l.x<(w.x-v.x)*(l.y-v.y)/(w.y-v.y)+v.x&&(d=!d);return d||Xa.prototype._containsPoint.call(this,l,!0)}});function MV(l,d){return new gl(l,d)}var Ya=Ka.extend({initialize:function(l,d){g(this,d),this._layers={},l&&this.addData(l)},addData:function(l){var d=$(l)?l:l.features,m,v,w;if(d){for(m=0,v=d.length;m<v;m++)w=d[m],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var P=this.options;if(P.filter&&!P.filter(l))return this;var N=_m(l,P);return N?(N.feature=Im(l),N.defaultOptions=N.options,this.resetStyle(N),P.onEachFeature&&P.onEachFeature(l,N),this.addLayer(N)):this},resetStyle:function(l){return l===void 0?this.eachLayer(this.resetStyle,this):(l.options=r({},l.defaultOptions),this._setLayerStyle(l,this.options.style),this)},setStyle:function(l){return this.eachLayer(function(d){this._setLayerStyle(d,l)},this)},_setLayerStyle:function(l,d){l.setStyle&&(typeof d=="function"&&(d=d(l.feature)),l.setStyle(d))}});function _m(l,d){var m=l.type==="Feature"?l.geometry:l,v=m?m.coordinates:null,w=[],P=d&&d.pointToLayer,N=d&&d.coordsToLatLng||hb,V,G,K,we;if(!v&&!m)return null;switch(m.type){case"Point":return V=N(v),tT(P,l,V,d);case"MultiPoint":for(K=0,we=v.length;K<we;K++)V=N(v[K]),w.push(tT(P,l,V,d));return new Ka(w);case"LineString":case"MultiLineString":return G=km(v,m.type==="LineString"?0:1,N),new Xa(G,d);case"Polygon":case"MultiPolygon":return G=km(v,m.type==="Polygon"?1:2,N),new gl(G,d);case"GeometryCollection":for(K=0,we=m.geometries.length;K<we;K++){var Re=_m({geometry:m.geometries[K],type:"Feature",properties:l.properties},d);Re&&w.push(Re)}return new Ka(w);case"FeatureCollection":for(K=0,we=m.features.length;K<we;K++){var nt=_m(m.features[K],d);nt&&w.push(nt)}return new Ka(w);default:throw new Error("Invalid GeoJSON object.")}}function tT(l,d,m,v){return l?l(d,m):new bm(m,v&&v.markersInheritOptions&&v)}function hb(l){return new Ie(l[1],l[0],l[2])}function km(l,d,m){for(var v=[],w=0,P=l.length,N;w<P;w++)N=d?km(l[w],d-1,m):(m||hb)(l[w]),v.push(N);return v}function gb(l,d){return l=he(l),l.alt!==void 0?[f(l.lng,d),f(l.lat,d),f(l.alt,d)]:[f(l.lng,d),f(l.lat,d)]}function Sm(l,d,m,v){for(var w=[],P=0,N=l.length;P<N;P++)w.push(d?Sm(l[P],$n(l[P])?0:d-1,m,v):gb(l[P],v));return!d&&m&&w.length>0&&w.push(w[0].slice()),w}function vl(l,d){return l.feature?r({},l.feature,{geometry:d}):Im(d)}function Im(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var vb={toGeoJSON:function(l){return vl(this,{type:"Point",coordinates:gb(this.getLatLng(),l)})}};bm.include(vb),mb.include(vb),wm.include(vb),Xa.include({toGeoJSON:function(l){var d=!$n(this._latlngs),m=Sm(this._latlngs,d?1:0,!1,l);return vl(this,{type:(d?"Multi":"")+"LineString",coordinates:m})}}),gl.include({toGeoJSON:function(l){var d=!$n(this._latlngs),m=d&&!$n(this._latlngs[0]),v=Sm(this._latlngs,m?2:d?1:0,!0,l);return d||(v=[v]),vl(this,{type:(m?"Multi":"")+"Polygon",coordinates:v})}}),ml.include({toMultiPoint:function(l){var d=[];return this.eachLayer(function(m){d.push(m.toGeoJSON(l).geometry.coordinates)}),vl(this,{type:"MultiPoint",coordinates:d})},toGeoJSON:function(l){var d=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(d==="MultiPoint")return this.toMultiPoint(l);var m=d==="GeometryCollection",v=[];return this.eachLayer(function(w){if(w.toGeoJSON){var P=w.toGeoJSON(l);if(m)v.push(P.geometry);else{var N=Im(P);N.type==="FeatureCollection"?v.push.apply(v,N.features):v.push(N)}}}),m?vl(this,{geometries:v,type:"GeometryCollection"}):{type:"FeatureCollection",features:v}}});function rT(l,d){return new Ya(l,d)}var RV=rT,Cm=Wn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,d,m){this._url=l,this._bounds=ke(d),g(this,m)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Qe(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Bt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(l){return this.options.opacity=l,this._image&&this._updateOpacity(),this},setStyle:function(l){return l.opacity&&this.setOpacity(l.opacity),this},bringToFront:function(){return this._map&&fl(this._image),this},bringToBack:function(){return this._map&&pl(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=ke(l),this._map&&this._reset(),this},getEvents:function(){var l={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var l=this._url.tagName==="IMG",d=this._image=l?this._url:ct("img");if(Qe(d,"leaflet-image-layer"),this._zoomAnimated&&Qe(d,"leaflet-zoom-animated"),this.options.className&&Qe(d,this.options.className),d.onselectstart=c,d.onmousemove=c,d.onload=n(this.fire,this,"load"),d.onerror=n(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),l){this._url=d.src;return}d.src=this._url,d.alt=this.options.alt},_animateZoom:function(l){var d=this._map.getZoomScale(l.zoom),m=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;is(this._image,m,d)},_reset:function(){var l=this._image,d=new Ne(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),m=d.getSize();rr(l,d.min),l.style.width=m.x+"px",l.style.height=m.y+"px"},_updateOpacity:function(){Pn(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 l=this.options.errorOverlayUrl;l&&this._url!==l&&(this._url=l,this._image.src=l)},getCenter:function(){return this._bounds.getCenter()}}),zV=function(l,d,m){return new Cm(l,d,m)},nT=Cm.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
2ine:!0},_initImage:function(){var l=this._url.tagName==="VIDEO",d=this._image=l?this._url:ct("video");if(Qe(d,"leaflet-image-layer"),this._zoomAnimated&&Qe(d,"leaflet-zoom-animated"),this.options.className&&Qe(d,this.options.className),d.onselectstart=c,d.onmousemove=c,d.onloadeddata=n(this.fire,this,"load"),l){for(var m=d.getElementsByTagName("source"),v=[],w=0;w<m.length;w++)v.push(m[w].src);this._url=m.length>0?v:[d.src];return}$(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(d.style,"objectFit")&&(d.style.objectFit="fill"),d.autoplay=!!this.options.autoplay,d.loop=!!this.options.loop,d.muted=!!this.options.muted,d.playsInline=!!this.options.playsInline;for(var P=0;P<this._url.length;P++){var N=ct("source");N.src=this._url[P],d.appendChild(N)}}});function DV(l,d,m){return new nT(l,d,m)}var aT=Cm.extend({_initImage:function(){var l=this._image=this._url;Qe(l,"leaflet-image-layer"),this._zoomAnimated&&Qe(l,"leaflet-zoom-animated"),this.options.className&&Qe(l,this.options.className),l.onselectstart=c,l.onmousemove=c}});function NV(l,d,m){return new aT(l,d,m)}var ga=Wn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,d){l&&(l instanceof Ie||$(l))?(this._latlng=he(l),g(this,d)):(g(this,l),this._source=d),this.options.content&&(this._content=this.options.content)},openOn:function(l){return l=arguments.length?l:this._source._map,l.hasLayer(this)||l.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(l){return this._map?this.close():(arguments.length?this._source=l:l=this._source,this._prepareOpen(),this.openOn(l._map)),this},onAdd:function(l){this._zoomAnimated=l._zoomAnimated,this._container||this._initLayout(),l._fadeAnimated&&Pn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&Pn(this._container,1),this.bringToFront(),this.options.interactive&&(Qe(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(Pn(this._container,0),this._removeTimeout=setTimeout(n(Bt,void 0,this._container),200)):Bt(this._container),this.options.interactive&&(Xt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=he(l),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(l){return this._content=l,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 l={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&fl(this._container),this},bringToBack:function(){return this._map&&pl(this._container),this},_prepareOpen:function(l){var d=this._source;if(!d._map)return!1;if(d instanceof Ka){d=null;var m=this._source._layers;for(var v in m)if(m[v]._map){d=m[v];break}if(!d)return!1;this._source=d}if(!l)if(d.getCenter)l=d.getCenter();else if(d.getLatLng)l=d.getLatLng();else if(d.getBounds)l=d.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(l),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var l=this._contentNode,d=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof d=="string")l.innerHTML=d;else{for(;l.hasChildNodes();)l.removeChild(l.firstChild);l.appendChild(d)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var l=this._map.latLngToLayerPoint(this._latlng),d=fe(this.options.offset),m=this._getAnchor();this._zoomAnimated?rr(this._container,l.add(m)):d=d.add(l).add(m);var v=this._containerBottom=-d.y,w=this._containerLeft=-Math.round(this._containerWidth/2)+d.x;this._container.style.bottom=v+"px",this._container.style.left=w+"px"}},_getAnchor:function(){return[0,0]}});ut.include({_initOverlay:function(l,d,m,v){var w=d;return w instanceof l||(w=new l(v).setContent(d)),m&&w.setLatLng(m),w}}),Wn.include({_initOverlay:function(l,d,m,v){var w=m;return w instanceof l?(g(w,v),w._source=this):(w=d&&!v?d:new l(v,this),w.setContent(m)),w}});var Tm=ga.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(l){return l=arguments.length?l:this._source._map,!l.hasLayer(this)&&l._popup&&l._popup.options.autoClose&&l.removeLayer(l._popup),l._popup=this,ga.prototype.openOn.call(this,l)},onAdd:function(l){ga.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Xo||this._source.on("preclick",ls))},onRemove:function(l){ga.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Xo||this._source.off("preclick",ls))},getEvents:function(){var l=ga.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(l.preclick=this.close),this.options.keepInView&&
2(l.moveend=this._adjustPan),l},_initLayout:function(){var l="leaflet-popup",d=this._container=ct("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),m=this._wrapper=ct("div",l+"-content-wrapper",d);if(this._contentNode=ct("div",l+"-content",m),Oc(d),ib(this._contentNode),Ge(d,"contextmenu",ls),this._tipContainer=ct("div",l+"-tip-container",d),this._tip=ct("div",l+"-tip",this._tipContainer),this.options.closeButton){var v=this._closeButton=ct("a",l+"-close-button",d);v.setAttribute("role","button"),v.setAttribute("aria-label","Close popup"),v.href="#close",v.innerHTML='<span aria-hidden="true">×</span>',Ge(v,"click",function(w){_r(w),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,d=l.style;d.width="",d.whiteSpace="nowrap";var m=l.offsetWidth;m=Math.min(m,this.options.maxWidth),m=Math.max(m,this.options.minWidth),d.width=m+1+"px",d.whiteSpace="",d.height="";var v=l.offsetHeight,w=this.options.maxHeight,P="leaflet-popup-scrolled";w&&v>w?(d.height=w+"px",Qe(l,P)):Xt(l,P),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),m=this._getAnchor();rr(this._container,d.add(m))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var l=this._map,d=parseInt(Rc(this._container,"marginBottom"),10)||0,m=this._container.offsetHeight+d,v=this._containerWidth,w=new ve(this._containerLeft,-m-this._containerBottom);w._add(ss(this._container));var P=l.layerPointToContainerPoint(w),N=fe(this.options.autoPanPadding),V=fe(this.options.autoPanPaddingTopLeft||N),G=fe(this.options.autoPanPaddingBottomRight||N),K=l.getSize(),we=0,Re=0;P.x+v+G.x>K.x&&(we=P.x+v-K.x+G.x),P.x-we-V.x<0&&(we=P.x-V.x),P.y+m+G.y>K.y&&(Re=P.y+m-K.y+G.y),P.y-Re-V.y<0&&(Re=P.y-V.y),(we||Re)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([we,Re]))}},_getAnchor:function(){return fe(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),OV=function(l,d){return new Tm(l,d)};ut.mergeOptions({closePopupOnClick:!0}),ut.include({openPopup:function(l,d,m){return this._initOverlay(Tm,l,d,m).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),Wn.include({bindPopup:function(l,d){return this._popup=this._initOverlay(Tm,this._popup,l,d),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(l){return this._popup&&(this instanceof Ka||(this._popup._source=this),this._popup._prepareOpen(l||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(l){return this._popup&&this._popup.setContent(l),this},getPopup:function(){return this._popup},_openPopup:function(l){if(!(!this._popup||!this._map)){us(l);var d=l.layer||l.target;if(this._popup._source===d&&!(d instanceof Xo)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(l.latlng);return}this._popup._source=d,this.openPopup(l.latlng)}},_movePopup:function(l){this._popup.setLatLng(l.latlng)},_onKeyPress:function(l){l.originalEvent.keyCode===13&&this._openPopup(l)}});var Pm=ga.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){ga.prototype.onAdd.call(this,l),this.setOpacity(this.options.opacity),l.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(l){ga.prototype.onRemove.call(this,l),l.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var l=ga.prototype.getEvents.call(this);return this.options.permanent||(l.preclick=this.close),l},_initLayout:function(){var l="leaflet-tooltip",d=l+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ct("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+i(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var d,m,v=this._map,w=this._container,P=v.latLngToContainerPoint(v.getCenter()),N=v.layerPointToContainerPoint(l),
2V=this.options.direction,G=w.offsetWidth,K=w.offsetHeight,we=fe(this.options.offset),Re=this._getAnchor();V==="top"?(d=G/2,m=K):V==="bottom"?(d=G/2,m=0):V==="center"?(d=G/2,m=K/2):V==="right"?(d=0,m=K/2):V==="left"?(d=G,m=K/2):N.x<P.x?(V="right",d=0,m=K/2):(V="left",d=G+(we.x+Re.x)*2,m=K/2),l=l.subtract(fe(d,m,!0)).add(we).add(Re),Xt(w,"leaflet-tooltip-right"),Xt(w,"leaflet-tooltip-left"),Xt(w,"leaflet-tooltip-top"),Xt(w,"leaflet-tooltip-bottom"),Qe(w,"leaflet-tooltip-"+V),rr(w,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&Pn(this._container,l)},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(d)},_getAnchor:function(){return fe(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),UV=function(l,d){return new Pm(l,d)};ut.include({openTooltip:function(l,d,m){return this._initOverlay(Pm,l,d,m).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),Wn.include({bindTooltip:function(l,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Pm,this._tooltip,l,d),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(l){if(!(!l&&this._tooltipHandlersAdded)){var d=l?"off":"on",m={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?m.add=this._openTooltip:(m.mouseover=this._openTooltip,m.mouseout=this.closeTooltip,m.click=this._openTooltip,this._map?this._addFocusListeners():m.add=this._addFocusListeners),this._tooltip.options.sticky&&(m.mousemove=this._moveTooltip),this[d](m),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof Ka||(this._tooltip._source=this),this._tooltip._prepareOpen(l)&&(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(l){return this._tooltip&&this._tooltip.setContent(l),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(l){var d=typeof l.getElement=="function"&&l.getElement();d&&(Ge(d,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),Ge(d,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(l){var d=typeof l.getElement=="function"&&l.getElement();d&&d.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(l){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var d=this;this._map.once("moveend",function(){d._openOnceFlag=!1,d._openTooltip(l)});return}this._tooltip._source=l.layer||l.target,this.openTooltip(this._tooltip.options.sticky?l.latlng:void 0)}},_moveTooltip:function(l){var d=l.latlng,m,v;this._tooltip.options.sticky&&l.originalEvent&&(m=this._map.mouseEventToContainerPoint(l.originalEvent),v=this._map.containerPointToLayerPoint(m),d=this._map.layerPointToLatLng(v)),this._tooltip.setLatLng(d)}});var oT=hl.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(l){var d=l&&l.tagName==="DIV"?l:document.createElement("div"),m=this.options;if(m.html instanceof Element?(mm(d),d.appendChild(m.html)):d.innerHTML=m.html!==!1?m.html:"",m.bgPos){var v=fe(m.bgPos);d.style.backgroundPosition=-v.x+"px "+-v.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function BV(l){return new oT(l)}hl.Default=Fc;var jc=Wn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:$e.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(l){g(this,l)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(l){l._addZoomLimit(this)},onRemove:function(l){this._removeAllTiles(),Bt(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(fl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(pl(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(l){return this.options.opacity=l,this._updateOpacity(),this},setZIndex:function(l){return this.options.zIndex=l,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var l=this._clampZoom(this._map.getZoom());l!==this._tileZoom&&(this._tileZoom=l,this._updateLevels()),this._update()}return this},getEvents:function(){var l={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)),l.move=this._onMove),this._zoomAnimated&&(l.zoomanim=this._animateZoom),l},createTile:function(){return document.createElement("div")},getTileSize:function(){var l=this.options.tileSize;return l instanceof ve?l:new ve(l,l)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(l){for(var d=this.getPane().children,m=-l(-1/0,1/0),v=0,w=d.length,P;v<w;v++)P=d[v].style.zIndex,d[v]!==this._container&&P&&(m=l(m,+P));isFinite(m)&&(this.options.zIndex=m+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!$e.ielt9){Pn(this._container,this.options.opacity);var l=+new Date,d=!1,m=!1;for(var v in this._tiles){var w=this._tiles[v];if(!(!w.current||!w.loaded)){var P=Math.min(1,(l-w.loaded)/200);Pn(w.el,P),P<1?d=!0:(w.active?m=!0:this._onOpaqueTile(w),w.active=!0)}}
2m&&!this._noPrune&&this._pruneTiles(),d&&(W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=ct("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var l=this._tileZoom,d=this.options.maxZoom;if(l!==void 0){for(var m in this._levels)m=Number(m),this._levels[m].el.children.length||m===l?(this._levels[m].el.style.zIndex=d-Math.abs(l-m),this._onUpdateLevel(m)):(Bt(this._levels[m].el),this._removeTilesAtZoom(m),this._onRemoveLevel(m),delete this._levels[m]);var v=this._levels[l],w=this._map;return v||(v=this._levels[l]={},v.el=ct("div","leaflet-tile-container leaflet-zoom-animated",this._container),v.el.style.zIndex=d,v.origin=w.project(w.unproject(w.getPixelOrigin()),l).round(),v.zoom=l,this._setZoomTransform(v,w.getCenter(),w.getZoom()),c(v.el.offsetWidth),this._onCreateLevel(v)),this._level=v,v}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var l,d,m=this._map.getZoom();if(m>this.options.maxZoom||m<this.options.minZoom){this._removeAllTiles();return}for(l in this._tiles)d=this._tiles[l],d.retain=d.current;for(l in this._tiles)if(d=this._tiles[l],d.current&&!d.active){var v=d.coords;this._retainParent(v.x,v.y,v.z,v.z-5)||this._retainChildren(v.x,v.y,v.z,v.z+2)}for(l in this._tiles)this._tiles[l].retain||this._removeTile(l)}},_removeTilesAtZoom:function(l){for(var d in this._tiles)this._tiles[d].coords.z===l&&this._removeTile(d)},_removeAllTiles:function(){for(var l in this._tiles)this._removeTile(l)},_invalidateAll:function(){for(var l in this._levels)Bt(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,d,m,v){var w=Math.floor(l/2),P=Math.floor(d/2),N=m-1,V=new ve(+w,+P);V.z=+N;var G=this._tileCoordsToKey(V),K=this._tiles[G];return K&&K.active?(K.retain=!0,!0):(K&&K.loaded&&(K.retain=!0),N>v?this._retainParent(w,P,N,v):!1)},_retainChildren:function(l,d,m,v){for(var w=2*l;w<2*l+2;w++)for(var P=2*d;P<2*d+2;P++){var N=new ve(w,P);N.z=m+1;var V=this._tileCoordsToKey(N),G=this._tiles[V];if(G&&G.active){G.retain=!0;continue}else G&&G.loaded&&(G.retain=!0);m+1<v&&this._retainChildren(w,P,m+1,v)}},_resetView:function(l){var d=l&&(l.pinch||l.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),d,d)},_animateZoom:function(l){this._setView(l.center,l.zoom,!0,l.noUpdate)},_clampZoom:function(l){var d=this.options;return d.minNativeZoom!==void 0&&l<d.minNativeZoom?d.minNativeZoom:d.maxNativeZoom!==void 0&&d.maxNativeZoom<l?d.maxNativeZoom:l},_setView:function(l,d,m,v){var w=Math.round(d);this.options.maxZoom!==void 0&&w>this.options.maxZoom||this.options.minZoom!==void 0&&w<this.options.minZoom?w=void 0:w=this._clampZoom(w);var P=this.options.updateWhenZooming&&w!==this._tileZoom;(!v||P)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(l),m||this._pruneTiles(),this._noPrune=!!m),this._setZoomTransforms(l,d)},_setZoomTransforms:function(l,d){for(var m in this._levels)this._setZoomTransform(this._levels[m],l,d)},_setZoomTransform:function(l,d,m){var v=this._map.getZoomScale(m,l.zoom),w=l.origin.multiplyBy(v).subtract(this._map._getNewPixelOrigin(d,m)).round();$e.any3d?is(l.el,w,v):rr(l.el,w)},_resetGrid:function(){var l=this._map,d=l.options.crs,m=this._tileSize=this.getTileSize(),v=this._tileZoom,w=this._map.getPixelWorldBounds(this._tileZoom);w&&(this._globalTileRange=this._pxBoundsToTileRange(w)),this._wrapX=d.wrapLng&&!this.options.noWrap&&[Math.floor(l.project([0,d.wrapLng[0]],v).x/m.x),Math.ceil(l.project([0,d.wrapLng[1]],v).x/m.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([d.wrapLat[0],0],v).y/m.x),Math.ceil(l.project([d.wrapLat[1],0],v).y/m.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var d=this._map,m=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),v=d.getZoomScale(m,this._tileZoom),w=d.project(l,this._tileZoom).floor(),P=d.getSize().divideBy(v*2);return new Ne(w.subtract(P),w.add(P))},_update:function(l){var d=this._map;if(d){var m=this._clampZoom(d.getZoom());if(l===void 0&&(l=d.getCenter()),this._tileZoom!==void 0){var v=this._getTiledPixelBounds(l),w=this._pxBoundsToTileRange(v),P=w.getCenter(),N=[],V=this.options.keepBuffer,G=new Ne(w.getBottomLeft().subtract([V,-V]),w.getTopRight().add([V,-V]));if(!(isFinite(w.min.x)&&isFinite(w.min.y)&&isFinite(w.max.x)&&isFinite(w.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var K in this._tiles){var we=this._tiles[K].coords;(we.z!==this._tileZoom||!G.contains(new ve(we.x,we.y)))&&(this._tiles[K].current=!1)}if(Math.abs(m-this._tileZoom)>
vendor: 8,073 bytes, line 2
21){this._setView(l,m);return}for(var Re=w.min.y;Re<=w.max.y;Re++)for(var nt=w.min.x;nt<=w.max.x;nt++){var zr=new ve(nt,Re);if(zr.z=this._tileZoom,!!this._isValidTile(zr)){var vr=this._tiles[this._tileCoordsToKey(zr)];vr?vr.current=!0:N.push(zr)}}if(N.sort(function(Jr,xl){return Jr.distanceTo(P)-xl.distanceTo(P)}),N.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Ln=document.createDocumentFragment();for(nt=0;nt<N.length;nt++)this._addTile(N[nt],Ln);this._level.el.appendChild(Ln)}}}},_isValidTile:function(l){var d=this._map.options.crs;if(!d.infinite){var m=this._globalTileRange;if(!d.wrapLng&&(l.x<m.min.x||l.x>m.max.x)||!d.wrapLat&&(l.y<m.min.y||l.y>m.max.y))return!1}if(!this.options.bounds)return!0;var v=this._tileCoordsToBounds(l);return ke(this.options.bounds).overlaps(v)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var d=this._map,m=this.getTileSize(),v=l.scaleBy(m),w=v.add(m),P=d.unproject(v,l.z),N=d.unproject(w,l.z);return[P,N]},_tileCoordsToBounds:function(l){var d=this._tileCoordsToNwSe(l),m=new qe(d[0],d[1]);return this.options.noWrap||(m=this._map.wrapLatLngBounds(m)),m},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var d=l.split(":"),m=new ve(+d[0],+d[1]);return m.z=+d[2],m},_removeTile:function(l){var d=this._tiles[l];d&&(Bt(d.el),delete this._tiles[l],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){Qe(l,"leaflet-tile");var d=this.getTileSize();l.style.width=d.x+"px",l.style.height=d.y+"px",l.onselectstart=c,l.onmousemove=c,$e.ielt9&&this.options.opacity<1&&Pn(l,this.options.opacity)},_addTile:function(l,d){var m=this._getTilePos(l),v=this._tileCoordsToKey(l),w=this.createTile(this._wrapCoords(l),n(this._tileReady,this,l));this._initTile(w),this.createTile.length<2&&Z(n(this._tileReady,this,l,null,w)),rr(w,m),this._tiles[v]={el:w,coords:l,current:!0},d.appendChild(w),this.fire("tileloadstart",{tile:w,coords:l})},_tileReady:function(l,d,m){d&&this.fire("tileerror",{error:d,tile:m,coords:l});var v=this._tileCoordsToKey(l);m=this._tiles[v],m&&(m.loaded=+new Date,this._map._fadeAnimated?(Pn(m.el,0),W(this._fadeFrame),this._fadeFrame=Z(this._updateOpacity,this)):(m.active=!0,this._pruneTiles()),d||(Qe(m.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:m.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),$e.ielt9||!this._map._fadeAnimated?Z(this._pruneTiles,this):setTimeout(n(this._pruneTiles,this),250)))},_getTilePos:function(l){return l.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(l){var d=new ve(this._wrapX?u(l.x,this._wrapX):l.x,this._wrapY?u(l.y,this._wrapY):l.y);return d.z=l.z,d},_pxBoundsToTileRange:function(l){var d=this.getTileSize();return new Ne(l.min.unscaleBy(d).floor(),l.max.unscaleBy(d).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var l in this._tiles)if(!this._tiles[l].loaded)return!1;return!0}});function FV(l){return new jc(l)}var yl=jc.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(l,d){this._url=l,d=g(this,d),d.detectRetina&&$e.retina&&d.maxZoom>0?(d.tileSize=Math.floor(d.tileSize/2),d.zoomReverse?(d.zoomOffset--,d.minZoom=Math.min(d.maxZoom,d.minZoom+1)):(d.zoomOffset++,d.maxZoom=Math.max(d.minZoom,d.maxZoom-1)),d.minZoom=Math.max(0,d.minZoom)):d.zoomReverse?d.minZoom=Math.min(d.maxZoom,d.minZoom):d.maxZoom=Math.max(d.minZoom,d.maxZoom),typeof d.subdomains=="string"&&(d.subdomains=d.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(l,d){return this._url===l&&d===void 0&&(d=!0),this._url=l,d||this.redraw(),this},createTile:function(l,d){var m=document.createElement("img");return Ge(m,"load",n(this._tileOnLoad,this,d,m)),Ge(m,"error",n(this._tileOnError,this,d,m)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(m.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(m.referrerPolicy=this.options.referrerPolicy),m.alt="",m.src=this.getTileUrl(l),m},getTileUrl:function(l){var d={r:$e.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var m=this._globalTileRange.max.y-l.y;this.options.tms&&(d.y=m),d["-y"]=m}return S(this._url,r(d,this.options))},_tileOnLoad:function(l,d){$e.ielt9?setTimeout(n(l,this,null,d),0):l(null,d)},_tileOnError:function(l,d,m){var v=this.options.errorTileUrl;v&&d.getAttribute("src")!==v&&(d.src=v),l(m,d)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,d=this.options.maxZoom,m=this.options.zoomReverse,v=this.options.zoomOffset;return m&&(l=d-l),l+v},_getSubdomain:function(l){var d=Math.abs(l.x+l.y)%this.options.subdomains.length;return this.options.subdomains[d]},_abortLoading:function(){var l,d;for(l in this._tiles)if(this._tiles[l].coords.z!==this._tileZoom&&(d=this._tiles[l].el,d.onload=c,d.onerror=c,!d.complete)){d.src=k;var m=this._tiles[l].coords;Bt(d),delete this._tiles[l],this.fire("tileabort",{tile:d,coords:m})}},_removeTile:function(l){var d=this._tiles[l];if(d)return d.el.setAttribute("src",k),jc.prototype._removeTile.call(this,l)},_tileReady:function(l,d,m){if(!(!this._map||m&&m.getAttribute("src")===k))return jc.prototype._tileReady.call(this,l,d,m)}});function iT(l,d){return new yl(l,d)}var sT=yl.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(l,d){this._url=l;var m=r({},this.defaultWmsParams);for(var v in d)v in this.options||(m[v]=d[v]);d=g(this,d);var w=d.detectRetina&&$e.retina?2:1,P=this.getTileSize();m.width=P.x*w,m.height=P.y*w,this.wmsParams=m},onAdd:function(l){this._crs=this.options.crs||l.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var d=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[d]=this._crs.code,yl.prototype.onAdd.call(this,l)},getTileUrl:function(l){var d=this._tileCoordsToNwSe(l),m=this._crs,v=ot(m.project(d[0]),m.project(d[1])),w=v.min,P=v.max,N=(this._wmsVersion>=1.3&&this._crs===Q3?[w.y,w.x,P.y,P.x]:[w.x,w.y,P.x,P.y]).join(","),V=yl.prototype.getTileUrl.call(this,l);return V+x(this.wmsParams,V,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+N},setParams:function(l,d){return r(this.wmsParams,l),d||this.redraw(),this}});function jV(l,d){return new sT(l,d)}yl.WMS=sT,iT.wms=jV;var Qa=Wn.extend({options:{padding:.1},initialize:function(l){g(this,l),i(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Qe(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 l={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(l.zoomanim=this._onAnimZoom),l},_onAnimZoom:function(l){this._updateTransform(l.center,l.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(l,d){var m=this._map.getZoomScale(d,this._zoom),v=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,d),P=v.multiplyBy(-m).add(w).subtract(this._map._getNewPixelOrigin(l,d));$e.any3d?is(this._container,P,m):rr(this._container,P)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var l in this._layers)this._layers[l]._reset()},_onZoomEnd:function(){for(var l in this._layers)this._layers[l]._project()},_updatePaths:function(){for(var l in this._layers)this._layers[l]._update()},_update:function(){var l=this.options.padding,d=this._map.getSize(),m=this._map.containerPointToLayerPoint(d.multiplyBy(-l)).round();
2this._bounds=new Ne(m,m.add(d.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),lT=Qa.extend({options:{tolerance:0},getEvents:function(){var l=Qa.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Qa.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");Ge(l,"mousemove",this._onMouseMove,this),Ge(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ge(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Bt(this._container),Pt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var l;this._redrawBounds=null;for(var d in this._layers)l=this._layers[d],l._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Qa.prototype._update.call(this);var l=this._bounds,d=this._container,m=l.getSize(),v=$e.retina?2:1;rr(d,l.min),d.width=v*m.x,d.height=v*m.y,d.style.width=m.x+"px",d.style.height=m.y+"px",$e.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){Qa.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[i(l)]=l;var d=l._order={layer:l,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=d),this._drawLast=d,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(l){this._requestRedraw(l)},_removePath:function(l){var d=l._order,m=d.next,v=d.prev;m?m.prev=v:this._drawLast=v,v?v.next=m:this._drawFirst=m,delete l._order,delete this._layers[i(l)],this._requestRedraw(l)},_updatePath:function(l){this._extendRedrawBounds(l),l._project(),l._update(),this._requestRedraw(l)},_updateStyle:function(l){this._updateDashArray(l),this._requestRedraw(l)},_updateDashArray:function(l){if(typeof l.options.dashArray=="string"){var d=l.options.dashArray.split(/[, ]+/),m=[],v,w;for(w=0;w<d.length;w++){if(v=Number(d[w]),isNaN(v))return;m.push(v)}l.options._dashArray=m}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||Z(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var d=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Ne,this._redrawBounds.extend(l._pxBounds.min.subtract([d,d])),this._redrawBounds.extend(l._pxBounds.max.add([d,d]))}},_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 l=this._redrawBounds;if(l){var d=l.getSize();this._ctx.clearRect(l.min.x,l.min.y,d.x,d.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()},_draw:function(){var l,d=this._redrawBounds;if(this._ctx.save(),d){var m=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,m.x,m.y),this._ctx.clip()}this._drawing=!0;for(var v=this._drawFirst;v;v=v.next)l=v.layer,(!d||l._pxBounds&&l._pxBounds.intersects(d))&&l._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(l,d){if(this._drawing){var m,v,w,P,N=l._parts,V=N.length,G=this._ctx;if(V){for(G.beginPath(),m=0;m<V;m++){for(v=0,w=N[m].length;v<w;v++)P=N[m][v],G[v?"lineTo":"moveTo"](P.x,P.y);d&&G.closePath()}this._fillStroke(G,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var d=l._point,m=this._ctx,v=Math.max(Math.round(l._radius),1),w=(Math.max(Math.round(l._radiusY),1)||v)/v;w!==1&&(m.save(),m.scale(1,w)),m.beginPath(),m.arc(d.x,d.y/w,v,0,Math.PI*2,!1),w!==1&&m.restore(),this._fillStroke(m,l)}},_fillStroke:function(l,d){var m=d.options;m.fill&&(l.globalAlpha=m.fillOpacity,l.fillStyle=m.fillColor||m.color,l.fill(m.fillRule||"evenodd")),m.stroke&&m.weight!==0&&(l.setLineDash&&l.setLineDash(d.options&&d.options._dashArray||[]),l.globalAlpha=m.opacity,l.lineWidth=m.weight,l.strokeStyle=m.color,l.lineCap=m.lineCap,l.lineJoin=m.lineJoin,l.stroke())},_onClick:function(l){for(var d=this._map.mouseEventToLayerPoint(l),m,v,w=this._drawFirst;w;w=w.next)m=w.layer,m.options.interactive&&m._containsPoint(d)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(m))&&(v=m);this._fireEvent(v?[v]:!1,l)},_onMouseMove:function(l){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var d=this._map.mouseEventToLayerPoint(l);this._handleMouseHover(l,d)}},_handleMouseOut:function(l){var d=this._hoveredLayer;d&&(Xt(this._container,"leaflet-interactive"),this._fireEvent([d],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,d){if(!this._mouseHoverThrottled){for(var m,v,w=this._drawFirst;w;w=w.next)m=w.layer,m.options.interactive&&m._containsPoint(d)&&(v=m);v!==this._hoveredLayer&&(this._handleMouseOut(l),v&&(Qe(this._container,"leaflet-interactive"),this._fireEvent([v],l,"mouseover"),this._hoveredLayer=v)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,l),this._mouseHoverThrottled=!0,setTimeout(n(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(l,d,m){this._map._fireDOMEvent(d,m||d.type,l)}
2,_bringToFront:function(l){var d=l._order;if(d){var m=d.next,v=d.prev;if(m)m.prev=v;else return;v?v.next=m:m&&(this._drawFirst=m),d.prev=this._drawLast,this._drawLast.next=d,d.next=null,this._drawLast=d,this._requestRedraw(l)}},_bringToBack:function(l){var d=l._order;if(d){var m=d.next,v=d.prev;if(v)v.next=m;else return;m?m.prev=v:v&&(this._drawLast=v),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(l)}}});function uT(l){return $e.canvas?new lT(l):null}var Zc=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(l){return document.createElement("<lvml:"+l+' class="lvml">')}}catch{}return function(l){return document.createElement("<"+l+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),ZV={_initContainer:function(){this._container=ct("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Qa.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var d=l._container=Zc("shape");Qe(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",l._path=Zc("path"),d.appendChild(l._path),this._updateStyle(l),this._layers[i(l)]=l},_addPath:function(l){var d=l._container;this._container.appendChild(d),l.options.interactive&&l.addInteractiveTarget(d)},_removePath:function(l){var d=l._container;Bt(d),l.removeInteractiveTarget(d),delete this._layers[i(l)]},_updateStyle:function(l){var d=l._stroke,m=l._fill,v=l.options,w=l._container;w.stroked=!!v.stroke,w.filled=!!v.fill,v.stroke?(d||(d=l._stroke=Zc("stroke")),w.appendChild(d),d.weight=v.weight+"px",d.color=v.color,d.opacity=v.opacity,v.dashArray?d.dashStyle=$(v.dashArray)?v.dashArray.join(" "):v.dashArray.replace(/( *, *)/g," "):d.dashStyle="",d.endcap=v.lineCap.replace("butt","flat"),d.joinstyle=v.lineJoin):d&&(w.removeChild(d),l._stroke=null),v.fill?(m||(m=l._fill=Zc("fill")),w.appendChild(m),m.color=v.fillColor||v.color,m.opacity=v.fillOpacity):m&&(w.removeChild(m),l._fill=null)},_updateCircle:function(l){var d=l._point.round(),m=Math.round(l._radius),v=Math.round(l._radiusY||m);this._setPath(l,l._empty()?"M0 0":"AL "+d.x+","+d.y+" "+m+","+v+" 0,"+65535*360)},_setPath:function(l,d){l._path.v=d},_bringToFront:function(l){fl(l._container)},_bringToBack:function(l){pl(l._container)}},$m=$e.vml?Zc:ts,Vc=Qa.extend({_initContainer:function(){this._container=$m("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$m("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Bt(this._container),Pt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Qa.prototype._update.call(this);var l=this._bounds,d=l.getSize(),m=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,m.setAttribute("width",d.x),m.setAttribute("height",d.y)),rr(m,l.min),m.setAttribute("viewBox",[l.min.x,l.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(l){var d=l._path=$m("path");l.options.className&&Qe(d,l.options.className),l.options.interactive&&Qe(d,"leaflet-interactive"),this._updateStyle(l),this._layers[i(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){Bt(l._path),l.removeInteractiveTarget(l._path),delete this._layers[i(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var d=l._path,m=l.options;d&&(m.stroke?(d.setAttribute("stroke",m.color),d.setAttribute("stroke-opacity",m.opacity),d.setAttribute("stroke-width",m.weight),d.setAttribute("stroke-linecap",m.lineCap),d.setAttribute("stroke-linejoin",m.lineJoin),m.dashArray?d.setAttribute("stroke-dasharray",m.dashArray):d.removeAttribute("stroke-dasharray"),m.dashOffset?d.setAttribute("stroke-dashoffset",m.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),m.fill?(d.setAttribute("fill",m.fillColor||m.color),d.setAttribute("fill-opacity",m.fillOpacity),d.setAttribute("fill-rule",m.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(l,d){this._setPath(l,rs(l._parts,d))},_updateCircle:function(l){var d=l._point,m=Math.max(Math.round(l._radius),1),v=Math.max(Math.round(l._radiusY),1)||m,w="a"+m+","+v+" 0 1,0 ",P=l._empty()?"M0 0":"M"+(d.x-m)+","+d.y+w+m*2+",0 "+w+-m*2+",0 ";this._setPath(l,P)},_setPath:function(l,d){l._path.setAttribute("d",d)},_bringToFront:function(l){fl(l._path)},_bringToBack:function(l){pl(l._path)}});$e.vml&&Vc.include(ZV);function cT(l){return $e.svg||$e.vml?new Vc(l):null}ut.include({getRenderer:function(l){var d=l.options.renderer||this._getPaneRenderer(l.options.pane)||this.options.renderer||this._renderer;return d||(d=this._renderer=this._createRenderer()),this.hasLayer(d)||this.addLayer(d),d},_getPaneRenderer:function(l){if(l==="overlayPane"||l===void 0)return!1;var d=this._paneRenderers[l];return d===void 0&&(d=this._createRenderer({pane:l}),this._paneRenderers[l]=d),d},_createRenderer:function(l){return this.options.preferCanvas&&uT(l)||cT(l)}});var dT=gl.extend({initialize:function(l,d){gl.prototype.initialize.call(this,this._boundsToLatLngs(l),d)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))}
2,_boundsToLatLngs:function(l){return l=ke(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function VV(l,d){return new dT(l,d)}Vc.create=$m,Vc.pointsToPath=rs,Ya.geometryToLayer=_m,Ya.coordsToLatLng=hb,Ya.coordsToLatLngs=km,Ya.latLngToCoords=gb,Ya.latLngsToCoords=Sm,Ya.getFeature=vl,Ya.asFeature=Im,ut.mergeOptions({boxZoom:!0});var fT=ha.extend({initialize:function(l){this._map=l,this._container=l._container,this._pane=l._panes.overlayPane,this._resetStateTimeout=0,l.on("unload",this._destroy,this)},addHooks:function(){Ge(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Pt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Bt(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(l){if(!l.shiftKey||l.which!==1&&l.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),zc(),Yx(),this._startPoint=this._map.mouseEventToContainerPoint(l),Ge(document,{contextmenu:us,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=ct("div","leaflet-zoom-box",this._container),Qe(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var d=new Ne(this._point,this._startPoint),m=d.getSize();rr(this._box,d.min),this._box.style.width=m.x+"px",this._box.style.height=m.y+"px"},_finish:function(){this._moved&&(Bt(this._box),Xt(this._container,"leaflet-crosshair")),Dc(),Qx(),Pt(document,{contextmenu:us,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(l){if(!(l.which!==1&&l.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(n(this._resetState,this),0);var d=new qe(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(d).fire("boxzoomend",{boxZoomBounds:d})}},_onKeyDown:function(l){l.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});ut.addInitHook("addHandler","boxZoom",fT),ut.mergeOptions({doubleClickZoom:!0});var pT=ha.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(l){var d=this._map,m=d.getZoom(),v=d.options.zoomDelta,w=l.originalEvent.shiftKey?m-v:m+v;d.options.doubleClickZoom==="center"?d.setZoom(w):d.setZoomAround(l.containerPoint,w)}});ut.addInitHook("addHandler","doubleClickZoom",pT),ut.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var mT=ha.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new Ko(l._mapPane,l._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),l.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),l.on("zoomend",this._onZoomEnd,this),l.whenReady(this._onZoomEnd,this))}Qe(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Xt(this._map._container,"leaflet-grab"),Xt(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 l=this._map;if(l._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var d=ke(this._map.options.maxBounds);this._offsetLimit=ot(this._map.latLngToContainerPoint(d.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(d.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;l.fire("movestart").fire("dragstart"),l.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(l){if(this._map.options.inertia){var d=this._lastTime=+new Date,m=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(m),this._times.push(d),this._prunePositions(d)}this._map.fire("move",l).fire("drag",l)}
2,_prunePositions:function(l){for(;this._positions.length>1&&l-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var l=this._map.getSize().divideBy(2),d=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=d.subtract(l).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(l,d){return l-(l-d)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var l=this._draggable._newPos.subtract(this._draggable._startPos),d=this._offsetLimit;l.x<d.min.x&&(l.x=this._viscousLimit(l.x,d.min.x)),l.y<d.min.y&&(l.y=this._viscousLimit(l.y,d.min.y)),l.x>d.max.x&&(l.x=this._viscousLimit(l.x,d.max.x)),l.y>d.max.y&&(l.y=this._viscousLimit(l.y,d.max.y)),this._draggable._newPos=this._draggable._startPos.add(l)}},_onPreDragWrap:function(){var l=this._worldWidth,d=Math.round(l/2),m=this._initialWorldOffset,v=this._draggable._newPos.x,w=(v-d+m)%l+d-m,P=(v+d+m)%l-d-m,N=Math.abs(w+m)<Math.abs(P+m)?w:P;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=N},_onDragEnd:function(l){var d=this._map,m=d.options,v=!m.inertia||l.noInertia||this._times.length<2;if(d.fire("dragend",l),v)d.fire("moveend");else{this._prunePositions(+new Date);var w=this._lastPos.subtract(this._positions[0]),P=(this._lastTime-this._times[0])/1e3,N=m.easeLinearity,V=w.multiplyBy(N/P),G=V.distanceTo([0,0]),K=Math.min(m.inertiaMaxSpeed,G),we=V.multiplyBy(K/G),Re=K/(m.inertiaDeceleration*N),nt=we.multiplyBy(-Re/2).round();!nt.x&&!nt.y?d.fire("moveend"):(nt=d._limitOffset(nt,d.options.maxBounds),Z(function(){d.panBy(nt,{duration:Re,easeLinearity:N,noMoveStart:!0,animate:!0})}))}}});ut.addInitHook("addHandler","dragging",mT),ut.mergeOptions({keyboard:!0,keyboardPanDelta:80});var hT=ha.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(l){this._map=l,this._setPanDelta(l.options.keyboardPanDelta),this._setZoomDelta(l.options.zoomDelta)},addHooks:function(){var l=this._map._container;l.tabIndex<=0&&(l.tabIndex="0"),Ge(l,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Pt(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 l=document.body,d=document.documentElement,m=l.scrollTop||d.scrollTop,v=l.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(v,m)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(l){var d=this._panKeys={},m=this.keyCodes,v,w;for(v=0,w=m.left.length;v<w;v++)d[m.left[v]]=[-1*l,0];for(v=0,w=m.right.length;v<w;v++)d[m.right[v]]=[l,0];for(v=0,w=m.down.length;v<w;v++)d[m.down[v]]=[0,l];for(v=0,w=m.up.length;v<w;v++)d[m.up[v]]=[0,-1*l]},_setZoomDelta:function(l){var d=this._zoomKeys={},m=this.keyCodes,v,w;for(v=0,w=m.zoomIn.length;v<w;v++)d[m.zoomIn[v]]=l;for(v=0,w=m.zoomOut.length;v<w;v++)d[m.zoomOut[v]]=-l},_addHooks:function(){Ge(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Pt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var d=l.keyCode,m=this._map,v;if(d in this._panKeys){if(!m._panAnim||!m._panAnim._inProgress)if(v=this._panKeys[d],l.shiftKey&&(v=fe(v).multiplyBy(3)),m.options.maxBounds&&(v=m._limitOffset(fe(v),m.options.maxBounds)),m.options.worldCopyJump){var w=m.wrapLatLng(m.unproject(m.project(m.getCenter()).add(v)));m.panTo(w)}else m.panBy(v)}else if(d in this._zoomKeys)m.setZoom(m.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&m._popup&&m._popup.options.closeOnEscapeKey)m.closePopup();else return;us(l)}}});ut.addInitHook("addHandler","keyboard",hT),ut.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var gT=ha.extend({addHooks:function(){Ge(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Pt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var d=B3(l),m=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var v=Math.max(m-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),v),us(l)},_performZoom:function(){var l=this._map,d=l.getZoom(),m=this._map.options.zoomSnap||0;l._stop();var v=this._delta/(this._map.options.wheelPxPerZoomLevel*4),w=4*Math.log(2/(1+Math.exp(-Math.abs(v))))/Math.LN2,P=m?Math.ceil(w/m)*m:w,N=l._limitZoom(d+(this._delta>0?P:-P))-d;this._delta=0,this._startTime=null,N&&(l.options.scrollWheelZoom==="center"?l.setZoom(d+N):l.setZoomAround(this._lastMousePos,d+N))}});ut.addInitHook("addHandler","scrollWheelZoom",gT);var qV=600;ut.mergeOptions({tapHold:$e.touchNative&&$e.safari&&$e.mobile,tapTolerance:15});var vT=ha.extend({addHooks:function(){Ge(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Pt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(l){if(clearTimeout(this._holdTimeout),l.touches.length===1){var d=l.touches[0];this._startPos=this._newPos=new ve(d.clientX,d.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(Ge(document,"touchend",_r),Ge(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),qV),Ge(document,"touchend touchcancel contextmenu",this._cancel,this),Ge(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){Pt(document,"touchend",_r),Pt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),Pt(document,"touchend touchcancel contextmenu",this._cancel,this),Pt(document,"touchmove",this._onMove,this)},_onMove:function(l){var d=l.touches[0];this._newPos=new ve(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,d){var m=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});m._simulated=!0,d.target.dispatchEvent(m)}});ut.addInitHook("addHandler","tapHold",vT),ut.mergeOptions({touchZoom:$e.touch,bounceAtZoomLimits:!0});var yT=ha.extend({addHooks:function(){Qe(this._map._container,"leaflet-touch-zoom"),Ge(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Xt(this._map._container,"leaflet-touch-zoom"),Pt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(l){var d=this._map;if(!(!l.touches||l.touches.length!==2||d._animatingZoom||this._zooming)){var m=d.mouseEventToContainerPoint(l.touches[0]),v=d.mouseEventToContainerPoint(l.touches[1]);this._centerPoint=d.getSize()._divideBy(2),this._startLatLng=d.containerPointToLatLng(this._centerPoint),d.options.touchZoom!=="center"&&(this._pinchStartLatLng=d.containerPointToLatLng(m.add(v)._divideBy(2))),this._startDist=m.distanceTo(v),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),Ge(document,"touchmove",this._onTouchMove,this),Ge(document,"touchend touchcancel",this._onTouchEnd,this),_r(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var d=this._map,m=d.mouseEventToContainerPoint(l.touches[0]),v=d.mouseEventToContainerPoint(l.touches[1]),w=m.distanceTo(v)/this._startDist;if(this._zoom=d.getScaleZoom(w,this._startZoom),!d.options.bounceAtZoomLimits&&(this._zoom<d.getMinZoom()&&w<1||this._zoom>d.getMaxZoom()&&w>1)&&(this._zoom=d._limitZoom(this._zoom)),d.options.touchZoom==="center"){if(this._center=this._startLatLng,w===1)return}else{var P=m._add(v)._divideBy(2)._subtract(this._centerPoint);if(w===1&&P.x===0&&P.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract(P),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var N=n(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Z(N,this,!0),_r(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Pt(document,"touchmove",this._onTouchMove,this),Pt(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))}});ut.addInitHook("addHandler","touchZoom",yT),ut.BoxZoom=fT,ut.DoubleClickZoom=pT,ut.Drag=mT,ut.Keyboard=hT,ut.ScrollWheelZoom=gT,ut.TapHold=vT,ut.TouchZoom=yT,e.Bounds=Ne,e.Browser=$e,e.CRS=it,e.Canvas=lT,e.Circle=mb,e.Cir
2cleMarker=wm,e.Class=Q,e.Control=Hn,e.DivIcon=oT,e.DivOverlay=ga,e.DomEvent=uV,e.DomUtil=sV,e.Draggable=Ko,e.Evented=Fe,e.FeatureGroup=Ka,e.GeoJSON=Ya,e.GridLayer=jc,e.Handler=ha,e.Icon=hl,e.ImageOverlay=Cm,e.LatLng=Ie,e.LatLngBounds=qe,e.Layer=Wn,e.LayerGroup=ml,e.LineUtil=_V,e.Map=ut,e.Marker=bm,e.Mixin=gV,e.Path=Xo,e.Point=ve,e.PolyUtil=vV,e.Polygon=gl,e.Polyline=Xa,e.Popup=Tm,e.PosAnimation=F3,e.Projection=kV,e.Rectangle=dT,e.Renderer=Qa,e.SVG=Vc,e.SVGOverlay=aT,e.TileLayer=yl,e.Tooltip=Pm,e.Transformation=wr,e.Util=de,e.VideoOverlay=nT,e.bind=n,e.bounds=ot,e.canvas=uT,e.circle=AV,e.circleMarker=LV,e.control=Uc,e.divIcon=BV,e.extend=r,e.featureGroup=TV,e.geoJSON=rT,e.geoJson=RV,e.gridLayer=FV,e.icon=PV,e.imageOverlay=zV,e.latLng=he,e.latLngBounds=ke,e.layerGroup=CV,e.map=cV,e.marker=$V,e.point=fe,e.polygon=MV,e.polyline=EV,e.popup=OV,e.rectangle=VV,e.setOptions=g,e.stamp=i,e.svg=cT,e.svgOverlay=NV,e.tileLayer=iT,e.tooltip=UV,e.transformation=Rr,e.version=t,e.videoOverlay=DV;var GV=window.L;e.noConflict=function(){return window.L=GV,this},window.L=e}))});var tP=xb(Lb=>{"use strict";var eP=kT();Lb.createRoot=eP.createRoot,Lb.hydrateRoot=eP.hydrateRoot;var ope});var nZ=xb((xUe,rZ)=>{"use strict";function Hde(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,a=0;return function(...o){clearTimeout(r);let i=Date.now(),s=i-a,u=t-s;u<=0?(a=i,e.apply(this,o)):r=setTimeout(()=>{a=Date.now(),e.apply(this,o)},u)}}rZ.exports=Hde});var _b=O(UT());var BT="/assets/marker-icon-2V3QKKVC.png";var FT="/assets/marker-icon-2x-SP63CLEO.png";var jT="/assets/marker-shadow-MEXDWUU7.png";delete _b.Icon.Default.prototype._getIconUrl;_b.Icon.Default.mergeOptions({iconRetinaUrl:FT,iconUrl:BT,shadowUrl:jT});var bq=O(le());var WT=O(le(),1);var ds=class extends Error{};ds.prototype.name="InvalidTokenError";function aq(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let a=r.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a}))}function oq(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return aq(t)}catch{return atob(t)}}function ZT(e,t){if(typeof e!="string")throw new ds("Invalid token specified: must be a string");t||(t={});let r=t.header===!0?0:1,a=e.split(".")[r];if(typeof a!="string")throw new ds(`Invalid token specified: missing part #${r+1}`);let n;try{n=oq(a)}catch(o){throw new ds(`Invalid token specified: invalid base64 for part #${r+1} (${o.message})`)}try{return JSON.parse(n)}catch(o){throw new ds(`Invalid token specified: invalid json for part #${r+1} (${o.message})`)}}var iq={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{}},ya,xa,Nm=(e=>(e[e.NONE=0]="NONE",e[e.ERROR=1]="ERROR",e[e.WARN=2]="WARN",e[e.INFO=3]="INFO",e[e.DEBUG=4]="DEBUG",e))(Nm||{});(e=>{function t(){ya=3,xa=iq}e.reset=t;function r(n){if(!(0<=n&&n<=4))throw new Error("Invalid log level");ya=n}e.setLevel=r;function a(n){xa=n}e.setLogger=a})(Nm||(Nm={}));var ba=class va{constructor(t){this._name=t}debug(...t){ya>=4&&xa.debug(va._format(this._name,this._method),...t)}info(...t){ya>=3&&xa.info(va._format(this._name,this._method),...t)}warn(...t){ya>=2&&xa.warn(va._format(this._name,this._method),...t)}error(...t){ya>=1&&xa.error(va._format(this._name,this._method),...t)}throw(t){throw this.error(t),t}create(t){let r=Object.create(this);return r._method=t,r.debug("begin"),r}static createStatic(t,r){let a=new va(`${t}.${r}`);return a.debug("begin"),a}static _format(t,r){let a=`[${t}]`;return r?`${a} ${r}:`:a}static debug(t,...r){ya>=4&&xa.debug(va._format(t),...r)}static info(t,...r){ya>=3&&xa.info(va._format(t),...r)}static warn(t,...r){ya>=2&&xa.warn(va._format(t),...r)}static error(t,...r){ya>=1&&xa.error(va._format(t),...r)}};Nm.reset();var VT=class{static decode(e){try{return ZT(e)}catch(t){throw ba.error("JwtUtils.decode",t),t}}static async generateSignedJwt(e,t,r){let a=to.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),n=to.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${a}.${n}`,i=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-256"}},r,new TextEncoder().encode(o)),s=to.encodeBase64Url(new Uint8Array(i));return`${o}.${s}`}static async generateSignedJwtWithHmac(e,t,r){let a=to.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e))),n=to.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t))),o=`${a}.${n}`,i=await window.crypto.subtle.sign("HMAC",r,new TextEncoder().encode(o)),s=to.encodeBase64Url(new Uint8Array(i));return`${o}.${s}`}},sq="10000000-1000-4000-8000-100000000000",kb=e=>btoa([...new Uint8Array(e)].map(t=>String.fromCharCode(t)).join("")),GT=class Jn{static _randomWord(){let t=new Uint32Array(1);return crypto.getRandomValues(t),t[0]}static generateUUIDv4(){return sq.replace(/[018]/g,r=>(+r^Jn._randomWord()&15>>+r/4).toString(16)).replace(/-/g,"")}static generateCodeVerifier(){return Jn.generateUUIDv4()+Jn.generateUUIDv4()+Jn.generateUUIDv4()}static async generateCodeChallenge(t){if(!crypto.subtle)throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");try{let a=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",a);return kb(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}catch(r){throw ba.error("CryptoUtils.generateCodeChallenge",r),r}}static generateBasicAuth(t,r){let n=new TextEncoder().encode([t,r].join(":"));return kb(n)}static async hash(t,r){let a=new TextEncoder().encode(r),n=await crypto.subtle.digest(t,a);return new Uint8Array(n)}static async customCalculateJwkThumbprint(t){let r;switch(t.kty){case"RSA":r={e:t.e,kty:t.kty,n:t.n};break;case"EC":r={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case"OKP":r={crv:t.crv,kty:t.kty,x:t.x};break;case"oct":r={crv:t.k,kty:t.kty};break;default:throw new Error("Unknown jwk type")}let a=await Jn.hash("SHA-256",JSON.stringify(r));return Jn.encodeBase64Url(a)}static async generateDPoPProof({url:t,accessToken:r,httpMethod:a,keyPair:n,nonce:o}){let i,s,u={jti:window.crypto.randomUUID(),htm:a??"GET",htu:t,iat:Math.floor(Date.now()/1e3)};r&&(i=await Jn.hash("SHA-256",r),s=Jn.encodeBase64Url(i),u.ath=s),o&&(u.nonce=o);try{let c=await crypto.subtle.exportKey("jwk",n.publicKey),f={alg
vendor: 5,024 bytes, line 2
2:"ES256",typ:"dpop+jwt",jwk:{crv:c.crv,kty:c.kty,x:c.x,y:c.y}};return await VT.generateSignedJwt(f,u,n.privateKey)}catch(c){throw c instanceof TypeError?new Error(`Error exporting dpop public key: ${c.message}`):c}}static async generateDPoPJkt(t){try{let r=await crypto.subtle.exportKey("jwk",t.publicKey);return await Jn.customCalculateJwkThumbprint(r)}catch(r){throw r instanceof TypeError?new Error(`Could not retrieve dpop keys from storage: ${r.message}`):r}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"])}static async generateClientAssertionJwt(t,r,a,n="HS256"){let o=Math.floor(Date.now()/1e3),i={alg:n,typ:"JWT"},s={iss:t,sub:t,aud:a,jti:Jn.generateUUIDv4(),exp:o+300,iat:o},c={HS256:"SHA-256",HS384:"SHA-384",HS512:"SHA-512"}[n];if(!c)throw new Error(`Unsupported algorithm: ${n}. Supported algorithms are: HS256, HS384, HS512`);let f=new TextEncoder,p=await crypto.subtle.importKey("raw",f.encode(r),{name:"HMAC",hash:c},!1,["sign"]);return await VT.generateSignedJwtWithHmac(i,s,p)}};GT.encodeBase64Url=e=>kb(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_");var to=GT,lq=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new ba(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug("raise:",...e);for(let t of this._callbacks)await t(...e)}};var qT=class Dm extends lq{constructor(){super(...arguments),this._logger=new ba(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let t=this._expiration-Dm.getEpochTime();this._logger.debug("timer completes in",t),this._expiration<=Dm.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){let r=this._logger.create("init");t=Math.max(Math.floor(t),1);let a=Dm.getEpochTime()+t;if(this.expiration===a&&this._timerHandle){r.debug("skipping since already initialized for expiration at",this.expiration);return}this.cancel(),r.debug("using duration",t),this._expiration=a;let n=Math.min(t,5);this._timerHandle=setInterval(this._callback,n*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create("cancel"),this._timerHandle&&(clearInterval(this._timerHandle),this._timerHandle=null)}};var uq=";";var cq=class Sb{constructor(t){this.id=t.id||to.generateUUIDv4(),this.data=t.data,t.created&&t.created>0?this.created=t.created:this.created=qT.getEpochTime(),this.request_type=t.request_type,this.url_state=t.url_state}toStorageString(){return new ba("State").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return ba.createStatic("State","fromStorageString"),Promise.resolve(new Sb(JSON.parse(t)))}static async clearStaleState(t,r){let a=ba.createStatic("State","clearStaleState"),n=qT.getEpochTime()-r,o=await t.getAllKeys();a.debug("got keys",o);for(let i=0;i<o.length;i++){let s=o[i],u=await t.get(s),c=!1;if(u)try{let f=await Sb.fromStorageString(u);a.debug("got item from key:",s,f.created),f.created<=n&&(c=!0)}catch(f){a.error("Error parsing state for key:",s,f),c=!0}else a.debug("no item in storage for key:",s),c=!0;c&&(a.debug("removed item for key:",s),t.remove(s))}}},dq=class Ib extends cq{constructor(t){super(t),this.code_verifier=t.code_verifier,this.code_challenge=t.code_challenge,this.authority=t.authority,this.client_id=t.client_id,this.redirect_uri=t.redirect_uri,this.scope=t.scope,this.client_secret=t.client_secret,this.extraTokenParams=t.extraTokenParams,this.response_mode=t.response_mode,this.skipUserInfo=t.skipUserInfo}static async create(t){let r=t.code_verifier===!0?to.generateCodeVerifier():t.code_verifier||void 0,a=r?await to.generateCodeChallenge(r):void 0;return new Ib({...t,code_verifier:r,code_challenge:a})}toStorageString(){return new ba("SigninState").create("toStorageString"),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo})}static fromStorageString(t){ba.createStatic("SigninState","fromStorageString");let r=JSON.parse(t);return Ib.create(r)}},fq=class HT{constructor(t){this.url=t.url,this.state=t.state}static async create({url:t,authority:r,client_id:a,redirect_uri:n,response_type:o,scope:i,state_data:s,response_mode:u,request_type:c,client_secret:f,nonce:p,url_state:h,resource:g,skipUserInfo:x,extraQueryParams:I,extraTokenParams:S,disablePKCE:$,dpopJkt:T,omitScopeWhenRequesting:k,...M}){if(!t)throw this._logger.error("create: No url passed"),new Error("url");
2if(!a)throw this._logger.error("create: No client_id passed"),new Error("client_id");if(!n)throw this._logger.error("create: No redirect_uri passed"),new Error("redirect_uri");if(!o)throw this._logger.error("create: No response_type passed"),new Error("response_type");if(!i)throw this._logger.error("create: No scope passed"),new Error("scope");if(!r)throw this._logger.error("create: No authority passed"),new Error("authority");let E=await dq.create({data:s,request_type:c,url_state:h,code_verifier:!$,client_id:a,authority:r,redirect_uri:n,response_mode:u,client_secret:f,scope:i,extraTokenParams:S,skipUserInfo:x}),z=new URL(t);z.searchParams.append("client_id",a),z.searchParams.append("redirect_uri",n),z.searchParams.append("response_type",o),k||z.searchParams.append("scope",i),p&&z.searchParams.append("nonce",p),T&&z.searchParams.append("dpop_jkt",T);let j=E.id;h&&(j=`${j}${uq}${h}`),z.searchParams.append("state",j),E.code_challenge&&(z.searchParams.append("code_challenge",E.code_challenge),z.searchParams.append("code_challenge_method","S256")),g&&(Array.isArray(g)?g:[g]).forEach(Z=>z.searchParams.append("resource",Z));for(let[q,Z]of Object.entries({response_mode:u,...M,...I}))Z!=null&&z.searchParams.append(q,Z.toString());return new HT({url:z.href,state:E})}};fq._logger=new ba("SigninRequest");var mq=O(le(),1),gq=O(le(),1),vq=O(le(),1),yq=O(le(),1),xq=O(le(),1),pq=WT.default.createContext(void 0);pq.displayName="AuthContext";var Xfe=Tb("signinCallback","Sign-in failed"),Yfe=Tb("signoutCallback","Sign-out failed"),Qfe=Tb("renewSilent","Renew silent failed");function hq(e,t){return{name:Cb(e,"name",()=>"Error"),message:Cb(e,"message",()=>t),stack:Cb(e,"stack",()=>new Error().stack),innerError:e}}function Tb(e,t){return r=>({...hq(r,t),source:e})}function Cb(e,t,r){if(e&&typeof e=="object"){let a=e[t];if(typeof a=="string")return a}return r()}var Om=null;function JT(e){try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin?!1:t.pathname.startsWith("/api/taskade/")||t.pathname.includes("/web-api/v1/gateways/")}catch{return!1}}function wq(){if(typeof window>"u")return;let e=window;if(e.__taskadeGatewayAuthInstalled__===!0)return;e.__taskadeGatewayAuthInstalled__=!0;let t=window.fetch.bind(window);window.fetch=function(o,i){let s=typeof o=="string"?o:o instanceof URL?o.href:o.url;if(Om!=null&&JT(s)){let u=new Headers(i?.headers??(o instanceof Request?o.headers:void 0));return u.has("Authorization")||u.set("Authorization",`Bearer ${Om}`),t(o,{...i,headers:u})}return t(o,i)};let r=window.XMLHttpRequest.prototype.open,a=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.open=function(o,i,s,u,c){return this.__taskadeGatewayUrl=typeof i=="string"?i:i.href,r.call(this,o,i,s??!0,u,c)},window.XMLHttpRequest.prototype.send=function(o){let i=this.__taskadeGatewayUrl;if(Om!=null&&i!=null&&JT(i))try{this.setRequestHeader("Authorization",`Bearer ${Om}`)}catch{}return a.call(this,o)}}wq();var xt=O(le(),1),_q=(e,t,r,a,n,o,i,s)=>{let u=document.documentElement,c=["light","dark"];function f(g){(Array.isArray(e)?e:[e]).forEach(x=>{let I=x==="class",S=I&&o?n.map($=>o[$]||$):n;I?(u.classList.remove(...S),u.classList.add(o&&o[g]?o[g]:g)):u.setAttribute(x,g)}),p(g)}function p(g){s&&c.includes(g)&&(u.style.colorScheme=g)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(a)f(a);else try{let g=localStorage.getItem(t)||r,x=i&&g==="system"?h():g;f(x)}catch{}},KT=["light","dark"],XT="(prefers-color-scheme: dark)",kq=typeof window>"u",$b=xt.createContext(void 0),Sq={setTheme:e=>{},themes:[]},YT=()=>{var e;return(e=xt.useContext($b))!=null?e:Sq},QT=e=>xt.useContext($b)?xt.createElement(xt.Fragment,null,e.children):xt.createElement(Cq,{...e}),Iq=["light","dark"],Cq=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:a=!0,storageKey:n="theme",themes:o=Iq,defaultTheme:i=r?"system":"light",attribute:s="data-theme",value:u,children:c,nonce:f,scriptProps:p})=>{let[h,g]=xt.useState(()=>Pq(n,i)),[x,I]=xt.useState(()=>h==="system"?Pb():h),S=u?Object.values(u):o,$=xt.useCallback(E=>{let z=E;if(!z)return;E==="system"&&r&&(z=Pb());let j=u?u[z]:z,q=t?$q(f):null,Z=document.documentElement,W=de=>{de==="class"?(Z.classList.remove(...S),j&&Z.classList.add(j)):de.startsWith("data-")&&(j?Z.setAttribute(de,j):Z.removeAttribute(de))};
2if(Array.isArray(s)?s.forEach(W):W(s),a){let de=KT.includes(i)?i:null,Q=KT.includes(z)?z:de;Z.style.colorScheme=Q}q?.()},[f]),T=xt.useCallback(E=>{let z=typeof E=="function"?E(h):E;g(z);try{localStorage.setItem(n,z)}catch{}},[h]),k=xt.useCallback(E=>{let z=Pb(E);I(z),h==="system"&&r&&!e&&$("system")},[h,e]);xt.useEffect(()=>{let E=window.matchMedia(XT);return E.addListener(k),k(E),()=>E.removeListener(k)},[k]),xt.useEffect(()=>{let E=z=>{z.key===n&&(z.newValue?g(z.newValue):T(i))};return window.addEventListener("storage",E),()=>window.removeEventListener("storage",E)},[T]),xt.useEffect(()=>{$(e??h)},[e,h]);let M=xt.useMemo(()=>({theme:h,setTheme:T,forcedTheme:e,resolvedTheme:h==="system"?x:h,themes:r?[...o,"system"]:o,systemTheme:r?x:void 0}),[h,T,e,x,r,o]);return xt.createElement($b.Provider,{value:M},xt.createElement(Tq,{forcedTheme:e,storageKey:n,attribute:s,enableSystem:r,enableColorScheme:a,defaultTheme:i,value:u,themes:o,nonce:f,scriptProps:p}),c)},Tq=xt.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:n,defaultTheme:o,value:i,themes:s,nonce:u,scriptProps:c})=>{let f=JSON.stringify([r,t,o,e,s,i,a,n]).slice(1,-1);return xt.createElement("script",{...c,suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(${_q.toString()})(${f})`}})}),Pq=(e,t)=>{if(kq)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},$q=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)}},Pb=e=>(e||(e=window.matchMedia(XT)),e.matches?"dark":"light");var Tc=O(le()),RZ=O(tP());var um=O(le());var Bm=O(le());var Um=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();var rP=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();var nP=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,a)=>a?a.toUpperCase():r.toLowerCase());var Ab=e=>{let t=nP(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Gc=O(le());var aP={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 oP=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};var iP=(0,Gc.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},u)=>(0,Gc.createElement)("svg",{ref:u,...aP,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:Um("lucide",n),...!o&&!oP(s)&&{"aria-hidden":"true"},...s},[...i.map(([c,f])=>(0,Gc.createElement)(c,f)),...Array.isArray(o)?o:[o]]));var $t=(e,t)=>{let r=(0,Bm.forwardRef)(({className:a,...n},o)=>(0,Bm.createElement)(iP,{ref:o,iconNode:t,className:Um(`lucide-${rP(Ab(e))}`,`lucide-${e}`,a),...n}));return r.displayName=Ab(e),r};var Lq=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Hc=$t("arrow-down",Lq);var Aq=[["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"}]],Yo=$t("book-open",Aq);var Eq=[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]],Wc=$t("check-check",Eq);var Mq=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Jc=$t("check",Mq);var Rq=[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]],Kc=$t("corner-down-left",Rq);var zq=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],fs=$t("graduation-cap",zq);var Dq=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],wa=$t("loader-circle",Dq);var Nq=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Xc=$t("message-circle",Nq);var Oq=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Yc=$t("moon",Oq);var Uq=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594
21.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],ro=$t("sparkles",Uq);var Bq=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Qc=$t("square",Bq);var Fq=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],ed=$t("sun",Fq);var jq=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ps=$t("x",jq);var jd=O(J(),1),Qn=O(le(),1);var sP=O(le(),1),kl=(0,sP.createContext)({});var lP=O(le(),1);function Sl(e){let t=(0,lP.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Fm=O(le(),1);var uP=typeof window<"u";var jm=uP?Fm.useLayoutEffect:Fm.useEffect;var B1=O(J(),1),x7=O(le(),1),Bd=O(le(),1);var cP=O(le(),1),Qo=(0,cP.createContext)(null);var v7=O(J(),1);function ms(e,t){e.indexOf(t)===-1&&e.push(t)}function ei(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var ur=(e,t,r)=>r>t?t:r<e?e:r;var no=()=>{},An=()=>{};var Dr={};var td=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function rd(e){return typeof e=="object"&&e!==null}var nd=e=>/^0[^.\s]+$/u.test(e);function ad(e){let t;return()=>(t===void 0&&(t=e()),t)}var Ft=e=>e;var Zq=(e,t)=>r=>t(e(r)),Kn=(...e)=>e.reduce(Zq);var _a=(e,t,r)=>{let a=t-e;return a===0?1:(r-e)/a};var ao=class{constructor(){this.subscriptions=[]}add(t){return ms(this.subscriptions,t),()=>ei(this.subscriptions,t)}notify(t,r,a){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,a);else for(let o=0;o<n;o++){let i=this.subscriptions[o];i&&i(t,r,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var Yt=e=>e*1e3,yr=e=>e/1e3;function od(e,t){return t?e*(1e3/t):0}var dP=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Vq=1e-7,qq=12;function Gq(e,t,r,a,n){let o,i,s=0;do i=t+(r-t)/2,o=dP(i,a,n)-e,o>0?r=i:t=i;while(Math.abs(o)>Vq&&++s<qq);return i}function ti(e,t,r,a){if(e===t&&r===a)return Ft;let n=o=>Gq(o,0,1,e,r);return o=>o===0||o===1?o:dP(n(o),t,a)}var Zm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Vm=e=>t=>1-e(1-t);var qm=ti(.33,1.53,.69,.99),Il=Vm(qm),id=Zm(Il);var sd=e=>e>=1?1:(e*=2)<1?.5*Il(e):.5*(2-Math.pow(2,-10*(e-1)));var ld=e=>1-Math.sin(Math.acos(e)),ud=Vm(ld),cd=Zm(ld);var Eb=ti(.42,0,1,1),Mb=ti(0,0,.58,1),dd=ti(.42,0,.58,1);var Rb=e=>Array.isArray(e)&&typeof e[0]!="number";var fd=e=>Array.isArray(e)&&typeof e[0]=="number";var fP={linear:Ft,easeIn:Eb,easeInOut:dd,easeOut:Mb,circIn:ld,circInOut:cd,circOut:ud,backIn:Il,backInOut:id,backOut:qm,anticipate:sd},Hq=e=>typeof e=="string",Gm=e=>{if(fd(e)){An(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,a,n]=e;return ti(t,r,a,n)}else if(Hq(e))return An(fP[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),fP[e];return e};var pd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var dn={value:null,addProjectionMetrics:null};function pP(e,t){let r=new Set,a=new Set,n=!1,o=!1,i=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},u=0;function c(p){i.has(p)&&(f.schedule(p),e()),u++,p(s)}let f={schedule:(p,h=!1,g=!1)=>{let I=g&&n?r:a;return h&&i.add(p),I.add(p),p},cancel:p=>{a.delete(p),i.delete(p)},process:p=>{if(s=p,n){o=!0;return}n=!0;let h=r;r=a,a=h,r.forEach(c),t&&dn.value&&dn.value.frameloop[t].push(u),u=0,r.clear(),n=!1,o&&(o=!1,f.process(p))}};return f}var Wq=40;function Hm(e,t){let r=!1,a=!0,n={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,i=pd.reduce((k,M)=>(k[M]=pP(o,t?M:void 0),k),{}),{setup:s,read:u,resolveKeyframes:c,preUpdate:f,update:p,preRender:h,render:g,postRender:x}=i,I=()=>{let k=Dr.useManualTiming,M=k?n.timestamp:performance.now();r=!1,k||(n.delta=a?1e3/60:Math.max(Math.min(M-n.timestamp,Wq),1)),n.timestamp=M,n.isProcessing=!0,s.process(n),u.process(n),c.process(n),f.process(n),p.process(n),h.process(n),g.process(n),x.process(n),n.isProcessing=!1,r&&t&&(a=!1,e(I))},S=()=>{r=!0,a=!0,n.isProcessing||e(I)};return{schedule:pd.reduce((k,M)=>{let E=i[M];return k[M]=(z,j=!1,q=!1)=>(r||S(),E.schedule(z,j,q)),k},{}),cancel:k=>{for(let M=0;M<pd.length;M++)i[pd[M]].cancel(k)},state:n,steps:i}}var{schedule:He,cancel:Xr,state:Wt,steps:md}=Hm(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ft,!0);var Wm;function Jq(){Wm=void 0}var jt={now:()=>(Wm===void 0&&jt.set(Wt.isProcessing||Dr.useManualTiming?Wt.timestamp:performance.now()),Wm),set:e=>{Wm=e,queueMicrotask(Jq)}};var ka={layout:0,mainThread:0,waapi:0};var mP=e=>t=>typeof t=="string"&&t.startsWith(e),Jm=mP("--"),Kq=mP("var(--"),Cl=e=>
2Kq(e)?Xq.test(e.split("/*")[0].trim()):!1,Xq=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function zb(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Sa={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oo={...Sa,transform:e=>ur(0,1,e)},hd={...Sa,default:1};var ri=e=>Math.round(e*1e5)/1e5;var Tl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hP(e){return e==null}var gP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Pl=(e,t)=>r=>!!(typeof r=="string"&&gP.test(r)&&r.startsWith(e)||t&&!hP(r)&&Object.prototype.hasOwnProperty.call(r,t)),Km=(e,t,r)=>a=>{if(typeof a!="string")return a;let[n,o,i,s]=a.match(Tl);return{[e]:parseFloat(n),[t]:parseFloat(o),[r]:parseFloat(i),alpha:s!==void 0?parseFloat(s):1}};var Yq=e=>ur(0,255,e),Db={...Sa,transform:e=>Math.round(Yq(e))},Ia={test:Pl("rgb","red"),parse:Km("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:a=1})=>"rgba("+Db.transform(e)+", "+Db.transform(t)+", "+Db.transform(r)+", "+ri(oo.transform(a))+")"};function Qq(e){let t="",r="",a="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),a=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),a=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,a+=a,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(a,16),alpha:n?parseInt(n,16)/255:1}}var gd={test:Pl("#"),parse:Qq,transform:Ia.transform};var vd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Xn=vd("deg"),Tr=vd("%"),xe=vd("px"),Nb=vd("vh"),Ob=vd("vw"),Xm={...Tr,parse:e=>Tr.parse(e)/100,transform:e=>Tr.transform(e*100)};var ni={test:Pl("hsl","hue"),parse:Km("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:a=1})=>"hsla("+Math.round(e)+", "+Tr.transform(ri(t))+", "+Tr.transform(ri(r))+", "+ri(oo.transform(a))+")"};var zt={test:e=>Ia.test(e)||gd.test(e)||ni.test(e),parse:e=>Ia.test(e)?Ia.parse(e):ni.test(e)?ni.parse(e):gd.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ia.transform(e):ni.transform(e),getAnimatableNone:e=>{let t=zt.parse(e);return t.alpha=0,zt.transform(t)}};var vP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function eG(e){return isNaN(e)&&typeof e=="string"&&(e.match(Tl)?.length||0)+(e.match(vP)?.length||0)>0}var xP="number",bP="color",tG="var",rG="var(",yP="${}",nG=/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 ai(e){let t=e.toString(),r=[],a={color:[],number:[],var:[]},n=[],o=0,s=t.replace(nG,u=>(zt.test(u)?(a.color.push(o),n.push(bP),r.push(zt.parse(u))):u.startsWith(rG)?(a.var.push(o),n.push(tG),r.push(u)):(a.number.push(o),n.push(xP),r.push(parseFloat(u))),++o,yP)).split(yP);return{values:r,split:s,indexes:a,types:n}}function aG(e){return ai(e).values}function wP({split:e,types:t}){let r=e.length;return a=>{let n="";for(let o=0;o<r;o++)if(n+=e[o],a[o]!==void 0){let i=t[o];i===xP?n+=ri(a[o]):i===bP?n+=zt.transform(a[o]):n+=a[o]}return n}}function oG(e){return wP(ai(e))}var iG=e=>typeof e=="number"?0:zt.test(e)?zt.getAnimatableNone(e):e,sG=(e,t)=>typeof e=="number"?t?.trim().endsWith("/")?e:0:iG(e);function lG(e){let t=ai(e);return wP(t)(t.values.map((a,n)=>sG(a,t.split[n])))}var cr={test:eG,parse:aG,createTransformer:oG,getAnimatableNone:lG};function Ub(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 _P({hue:e,saturation:t,lightness:r,alpha:a}){e/=360,t/=100,r/=100;let n=0,o=0,i=0;if(!t)n=o=i=r;else{let s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;n=Ub(u,s,e+1/3),o=Ub(u,s,e),i=Ub(u,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(o*255),blue:Math.round(i*255),alpha:a}}function $l(e,t){return r=>r>0?t:e}var at=(e,t,r)=>e+(t-e)*r;var Bb=(e,t,r)=>{let a=e*e,n=r*(t*t-a)+a;return n<0?0:Math.sqrt(n)},uG=[gd,Ia,ni],cG=e=>uG.find(t=>t.test(e));function kP(e){let t=cG(e);if(no(!!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===ni&&(r=_P(r)),r}var Fb=(e,t)=>
2{let r=kP(e),a=kP(t);if(!r||!a)return $l(e,t);let n={...r};return o=>(n.red=Bb(r.red,a.red,o),n.green=Bb(r.green,a.green,o),n.blue=Bb(r.blue,a.blue,o),n.alpha=at(r.alpha,a.alpha,o),Ia.transform(n))};var Ym=new Set(["none","hidden"]);function SP(e,t){return Ym.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function dG(e,t){return r=>at(e,t,r)}function Qm(e){return typeof e=="number"?dG:typeof e=="string"?Cl(e)?$l:zt.test(e)?Fb:mG:Array.isArray(e)?IP:typeof e=="object"?zt.test(e)?Fb:fG:$l}function IP(e,t){let r=[...e],a=r.length,n=e.map((o,i)=>Qm(o)(o,t[i]));return o=>{for(let i=0;i<a;i++)r[i]=n[i](o);return r}}function fG(e,t){let r={...e,...t},a={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(a[n]=Qm(e[n])(e[n],t[n]));return n=>{for(let o in a)r[o]=a[o](n);return r}}function pG(e,t){let r=[],a={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let o=t.types[n],i=e.indexes[o][a[o]],s=e.values[i]??0;r[n]=s,a[o]++}return r}var mG=(e,t)=>{let r=cr.createTransformer(t),a=ai(e),n=ai(t);return a.indexes.var.length===n.indexes.var.length&&a.indexes.color.length===n.indexes.color.length&&a.indexes.number.length>=n.indexes.number.length?Ym.has(e)&&!n.values.length||Ym.has(t)&&!a.values.length?SP(e,t):Kn(IP(pG(a,n),n.values),r):(no(!0,`Complex values '${e}' and '${t}' 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"),$l(e,t))};function eh(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?at(e,t,r):Qm(e)(e,t)}var CP=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>He.update(t,r),stop:()=>Xr(t),now:()=>Wt.isProcessing?Wt.timestamp:jt.now()}};var th=(e,t,r=10)=>{let a="",n=Math.max(Math.round(t/r),2);for(let o=0;o<n;o++)a+=Math.round(e(o/(n-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`};function Ll(e){let t=0,r=50,a=e.next(t);for(;!a.done&&t<2e4;)t+=r,a=e.next(t);return t>=2e4?1/0:t}function TP(e,t=100,r){let a=r({...e,keyframes:[0,t]}),n=Math.min(Ll(a),2e4);return{type:"keyframes",ease:o=>a.next(n*o).value/t,duration:yr(n)}}var Zt={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 Vb(e,t){return e*Math.sqrt(1-t*t)}var hG=12;function gG(e,t,r){let a=r;for(let n=1;n<hG;n++)a=a-e(a)/t(a);return a}var Zb=.001;function vG({duration:e=Zt.duration,bounce:t=Zt.bounce,velocity:r=Zt.velocity,mass:a=Zt.mass}){let n,o;no(e<=Yt(Zt.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=ur(Zt.minDamping,Zt.maxDamping,i),e=ur(Zt.minDuration,Zt.maxDuration,yr(e)),i<1?(n=c=>{let f=c*i,p=f*e,h=f-r,g=Vb(c,i),x=Math.exp(-p);return Zb-h/g*x},o=c=>{let p=c*i*e,h=p*r+r,g=Math.pow(i,2)*Math.pow(c,2)*e,x=Math.exp(-p),I=Vb(Math.pow(c,2),i);return(-n(c)+Zb>0?-1:1)*((h-g)*x)/I}):(n=c=>{let f=Math.exp(-c*e),p=(c-r)*e+1;return-Zb+f*p},o=c=>{let f=Math.exp(-c*e),p=(r-c)*(e*e);return f*p});let s=5/e,u=gG(n,o,s);if(e=Yt(e),isNaN(u))return{stiffness:Zt.stiffness,damping:Zt.damping,duration:e};
2{let c=Math.pow(u,2)*a;return{stiffness:c,damping:i*2*Math.sqrt(a*c),duration:e}}}var yG=["duration","bounce"],xG=["stiffness","damping","mass"];function PP(e,t){return t.some(r=>e[r]!==void 0)}function bG(e){let t={velocity:Zt.velocity,stiffness:Zt.stiffness,damping:Zt.damping,mass:Zt.mass,isResolvedFromDuration:!1,...e};if(!PP(e,xG)&&PP(e,yG))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,a=2*Math.PI/(r*1.2),n=a*a,o=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Zt.mass,stiffness:n,damping:o}}else{let r=vG({...e,velocity:0});t={...t,...r,mass:Zt.mass},t.isResolvedFromDuration=!0}return t}function Al(e=Zt.visualDuration,t=Zt.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:n}=r,o=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],s={done:!1,value:o},{stiffness:u,damping:c,mass:f,duration:p,velocity:h,isResolvedFromDuration:g}=bG({...r,velocity:-yr(r.velocity||0)}),x=h||0,I=c/(2*Math.sqrt(u*f)),S=i-o,$=yr(Math.sqrt(u/f)),T=Math.abs(S)<5;a||(a=T?Zt.restSpeed.granular:Zt.restSpeed.default),n||(n=T?Zt.restDelta.granular:Zt.restDelta.default);let k,M,E,z,j,q;if(I<1)E=Vb($,I),z=(x+I*$*S)/E,k=W=>{let de=Math.exp(-I*$*W);return i-de*(z*Math.sin(E*W)+S*Math.cos(E*W))},j=I*$*z+S*E,q=I*$*S-z*E,M=W=>Math.exp(-I*$*W)*(j*Math.sin(E*W)+q*Math.cos(E*W));else if(I===1){k=de=>i-Math.exp(-$*de)*(S+(x+$*S)*de);let W=x+$*S;M=de=>Math.exp(-$*de)*($*W*de-x)}else{let W=$*Math.sqrt(I*I-1);k=Ce=>{let Fe=Math.exp(-I*$*Ce),ve=Math.min(W*Ce,300);return i-Fe*((x+I*$*S)*Math.sinh(ve)+W*S*Math.cosh(ve))/W};let de=(x+I*$*S)/W,Q=I*$*de-S*W,ht=I*$*S-de*W;M=Ce=>{let Fe=Math.exp(-I*$*Ce),ve=Math.min(W*Ce,300);return Fe*(Q*Math.sinh(ve)+ht*Math.cosh(ve))}}let Z={calculatedDuration:g&&p||null,velocity:W=>
2Yt(M(W)),next:W=>{if(!g&&I<1){let Q=Math.exp(-I*$*W),ht=Math.sin(E*W),Ce=Math.cos(E*W),Fe=i-Q*(z*ht+S*Ce),ve=Yt(Q*(j*ht+q*Ce));return s.done=Math.abs(ve)<=a&&Math.abs(i-Fe)<=n,s.value=s.done?i:Fe,s}let de=k(W);if(g)s.done=W>=p;else{let Q=Yt(M(W));s.done=Math.abs(Q)<=a&&Math.abs(i-de)<=n}return s.value=s.done?i:de,s},toString:()=>{let W=Math.min(Ll(Z),2e4),de=th(Q=>Z.next(W*Q).value,W,30);return W+"ms "+de},toTransition:()=>{}};return Z}Al.applyToOptions=e=>{let t=TP(e,100,Al);return e.ease=t.ease,e.duration=Yt(t.duration),e.type="keyframes",e};var wG=5;function rh(e,t,r){let a=Math.max(t-wG,0);return od(r-e(a),t-a)}function yd({keyframes:e,velocity:t=0,power:r=.8,timeConstant:a=325,bounceDamping:n=10,bounceStiffness:o=500,modifyTarget:i,min:s,max:u,restDelta:c=.5,restSpeed:f}){let p=e[0],h={done:!1,value:p},g=q=>s!==void 0&&q<s||u!==void 0&&q>u,x=q=>s===void 0?u:u===void 0||Math.abs(s-q)<Math.abs(u-q)?s:u,I=r*t,S=p+I,$=i===void 0?S:i(S);$!==S&&(I=$-p);let T=q=>-I*Math.exp(-q/a),k=q=>$+T(q),M=q=>{let Z=T(q),W=k(q);h.done=Math.abs(Z)<=c,h.value=h.done?$:W},E,z,j=q=>{g(h.value)&&(E=q,z=Al({keyframes:[h.value,x(h.value)],velocity:rh(k,q,h.value),damping:n,stiffness:o,restDelta:c,restSpeed:f}))};return j(0),{calculatedDuration:null,next:q=>{let Z=!1;return!z&&E===void 0&&(Z=!0,M(q),j(q)),E!==void 0&&q>=E?z.next(q-E):(!Z&&M(q),h)}}}function _G(e,t,r){let a=[],n=r||Dr.mix||eh,o=e.length-1;for(let i=0;i<o;i++){let s=n(e[i],e[i+1]);if(t){let u=Array.isArray(t)?t[i]||Ft:t;s=Kn(u,s)}a.push(s)}return a}function $P(e,t,{clamp:r=!0,ease:a,mixer:n}={}){let o=e.length;if(An(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=_G(t,a,n),u=s.length,c=f=>{if(i&&f<e[0])return t[0];let p=0;if(u>1)for(;p<e.length-2&&!(f<e[p+1]);p++);let h=_a(e[p],e[p+1],f);return s[p](h)};return r?f=>c(ur(e[0],e[o-1],f)):c}function LP(e,t){let r=e[e.length-1];for(let a=1;a<=t;a++){let n=_a(0,t,a);e.push(at(r,1,n))}}function AP(e){let t=[0];return LP(t,e.length-1),t}function EP(e,t){return e.map(r=>r*t)}function kG(e,t){return e.map(()=>t||dd).splice(0,e.length-1)}function hs({duration:e=300,keyframes:t,times:r,ease:a="easeInOut"}){let n=Rb(a)?a.map(Gm):Gm(a),o={done:!1,value:t[0]},i=EP(r&&r.length===t.length?r:AP(t),e),s=$P(i,t,{ease:Array.isArray(n)?n:kG(t,n)});return{calculatedDuration:e,next:u=>(o.value=s(u),o.done=u>=e,o)}}var SG=e=>e!==null;function oi(e,{repeat:t,repeatType:r="loop"},a,n=1){let o=e.filter(SG),s=n<0||t&&r!=="loop"&&t%2===1?0:o.length-1;return!s||a===void 0?o[s]:a}var IG={decay:yd,inertia:yd,tween:hs,keyframes:hs,spring:Al};function nh(e){typeof e.type=="string"&&(e.type=IG[e.type])}var ii=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 CG=e=>e/100,io=class extends ii{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!==jt.now()&&this.tick(jt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},ka.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;nh(t);let{type:r=hs,repeat:a=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=t,{keyframes:s}=t,u=r||hs;u!==hs&&typeof s[0]!="number"&&(this.mixKeyframes=Kn(CG,eh(s[0],s[1])),s=[0,100]);let c=u({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...s].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=Ll(c));let{calculatedDuration:f}=c;this.calculatedDuration=f,this.resolvedDuration=f+n,this.totalDuration=this.resolvedDuration*(a+1)-n,this.generator=c}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:a,totalDuration:n,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:u}=this;if(this.startTime===null)return a.next(0);let{delay:c=0,keyframes:f,repeat:p,repeatType:h,repeatDelay:g,type:x,onUp
2date:I,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);let $=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?$<0:$>n;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let k=this.currentTime,M=a;if(p){let q=Math.min(this.currentTime,n)/s,Z=Math.floor(q),W=q%1;!W&&q>=1&&(W=1),W===1&&Z--,Z=Math.min(Z,p+1),Z%2&&(h==="reverse"?(W=1-W,g&&(W-=g/s)):h==="mirror"&&(M=i)),k=ur(0,1,W)*s}let E;T?(this.delayState.value=f[0],E=this.delayState):E=M.next(k),o&&!T&&(E.value=o(E.value));let{done:z}=E;!T&&u!==null&&(z=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return j&&x!==yd&&(E.value=oi(f,this.options,S,this.speed)),I&&I(E.value),j&&this.finish(),E}then(t,r){return this.finished.then(t,r)}get duration(){return yr(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+yr(t)}get time(){return yr(this.currentTime)}set time(t){t=Yt(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;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return rh(a=>this.generator.next(a).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(jt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=yr(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=CP,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=r??a),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(jt.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,ka.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 MP(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var gs=e=>e*180/Math.PI,qb=e=>{let t=gs(Math.atan2(e[1],e[0]));return Gb(t)},TG={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qb,rotateZ:qb,skewX:e=>gs(Math.atan(e[1])),skewY:e=>gs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gb=e=>(e=e%360,e<0&&(e+=360),e),RP=qb,zP=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),DP=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PG={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:zP,scaleY:DP,scale:e=>(zP(e)+DP(e))/2,rotateX:e=>Gb(gs(Math.atan2(e[6],e[5]))),rotateY:e=>Gb(gs(Math.atan2(-e[2],e[0]))),rotateZ:RP,rotate:RP,skewX:e=>gs(Math.atan(e[4])),skewY:e=>gs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ah(e){return e.includes("scale")?1:0}function oh(e,t){if(!e||e==="none")return ah(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),a,n;if(r)a=PG,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=TG,n=s}if(!n)return ah(t);let o=a[t],i=n[1].split(",").map($G);return typeof o=="function"?o(i):i[o]}var NP=(e,t)=>
2{let{transform:r="none"}=getComputedStyle(e);return oh(r,t)};function $G(e){return parseFloat(e.trim())}var Ca=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],En=new Set(Ca);var Hb=e=>e===Sa||e===xe,LG=new Set(["x","y","z"]),AG=Ca.filter(e=>!LG.has(e));function OP(e){let t=[];return AG.forEach(r=>{let a=e.getValue(r);a!==void 0&&(t.push([r,a.get()]),a.set(r.startsWith("scale")?1:0))}),t}var so={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:a})=>{let n=e.max-e.min;return a==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:a})=>{let n=e.max-e.min;return a==="border-box"?n:n-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})=>oh(t,"x"),y:(e,{transform:t})=>oh(t,"y")};so.translateX=so.x;so.translateY=so.y;var vs=new Set,Wb=!1,Jb=!1,Kb=!1;function UP(){if(Jb){let e=Array.from(vs).filter(a=>a.needsMeasurement),t=new Set(e.map(a=>a.element)),r=new Map;t.forEach(a=>{let n=OP(a);n.length&&(r.set(a,n),a.render())}),e.forEach(a=>a.measureInitialState()),t.forEach(a=>{a.render();let n=r.get(a);n&&n.forEach(([o,i])=>{a.getValue(o)?.set(i)})}),e.forEach(a=>a.measureEndState()),e.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}Jb=!1,Wb=!1,vs.forEach(e=>e.complete(Kb)),vs.clear()}function BP(){vs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Jb=!0)})}function FP(){Kb=!0,BP(),UP(),Kb=!1}var si=class{constructor(t,r,a,n,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=a,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(vs.add(this),Wb||(Wb=!0,He.read(BP),He.resolveKeyframes(UP))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:a,motionValue:n}=this;if(t[0]===null){let o=n?.get(),i=t[t.length-1];if(o!==void 0)t[0]=o;else if(a&&r){let s=a.readValue(r,i);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=i),n&&o===void 0&&n.set(t[0])}MP(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vs.delete(this)}cancel(){this.state==="scheduled"&&(vs.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var jP=e=>e.startsWith("--");function ih(e,t,r){jP(t)?e.style.setProperty(t,r):e.style[t]=r}var ZP={};function sh(e,t){let r=ad(e);return()=>ZP[t]??r()}var VP=sh(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var lh=sh(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var ys=([e,t,r,a])=>`cubic-bezier(${e}, ${t}, ${r}, ${a})`;var Xb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ys([0,.65,.55,1]),circOut:ys([.55,0,1,.45]),backIn:ys([.31,.01,.66,-.59]),backOut:ys([.33,1.53,.69,.99])};function Yb(e,t){if(e)return typeof e=="function"?lh()?th(e,t):"ease-out":fd(e)?ys(e):Array.isArray(e)?e.map(r=>Yb(r,t)||Xb.easeOut):Xb[e]}function qP(e,t,r,{delay:a=0,duration:n=300,repeat:o=0,repeatType:i="loop",ease:s="easeOut",times:u}={},c=void 0){let f={[t]:r};u&&(f.offset=u);let p=Yb(s,n);Array.isArray(p)&&(f.easing=p),dn.value&&ka.waapi++;let h={delay:a,duration:n,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:i==="reverse"?"alternate":"normal"};c&&(h.pseudoElement=c);let g=e.animate(f,h);return dn.value&&g.finished.finally(()=>{ka.waapi--}),g}function uh(e){return typeof e=="function"&&"applyToOptions"in e}function GP({type:e,...t}){return uh(e)&&lh()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var El=class extends ii{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:a,keyframes:n,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:u}=t;this.isPseudoElement=!!o,this.allowFlatten=i,this.options=t,An(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let c=GP(t);this.animation=qP(r,a,n,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){let f=oi(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(f),ih(r,a,f),this.animation.cancel()}u?.(),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 yr(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+yr(t)}get time(){return yr(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Yt(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:a,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&VP()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),a&&(this.animation.rangeEnd=a),Ft):n(this)}};var HP={anticipate:sd,backInOut:id,circInOut:cd};function EG(e){return e in HP}function WP(e){typeof e.ease=="string"&&EG(e.ease)&&(e.ease=HP[e.ease])}var Qb=10,ch=class extends El{constructor(t){WP(t),nh(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:a,onComplete:n,element:o,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new io({...i,autoplay:!1}),u=Math.max(Qb,jt.now()-this.startTime),c=ur(0,Qb,u-Qb),f=s.sample(u).value,{name:p}=this.options;o&&p&&ih(o,p,f),r.setWithVelocity(s.sample(Math.max(0,u-c)).value,f,c),s.stop()}};var e1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(cr.test(e)||e==="0")&&!e.startsWith("url("));function MG(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 JP(e,t,r,a){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],i=e1(n,t),s=e1(o,t);return no(i===s,`You are trying to animate ${t} from "${n}" to "${o}". "${i?o:n}" is not an animatable value.`,"value-not-animatable"),!i||!s?!1:MG(e)||(r==="spring"||uh(r))&&a}function xd(e){e.duration=0,e.type="keyframes"}var dh=new Set(["opacity","clipPath","filter","transform"]);var RG=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function KP(e){for(let t=0;t<e.length;
2t++)if(typeof e[t]=="string"&&RG.test(e[t]))return!0;return!1}var zG=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),DG=ad(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function XP(e){let{motionValue:t,name:r,repeatDelay:a,repeatType:n,damping:o,type:i,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:f}=t.owner.getProps();return DG()&&r&&(dh.has(r)||zG.has(r)&&KP(s))&&(r!=="transform"||!f)&&!c&&!a&&n!=="mirror"&&o!==0&&i!=="inertia"}var NG=40,fh=class extends ii{constructor({autoplay:t=!0,delay:r=0,type:a="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:u,motionValue:c,element:f,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=jt.now();let h={autoplay:t,delay:r,type:a,repeat:n,repeatDelay:o,repeatType:i,name:u,motionValue:c,element:f,...p},g=f?.KeyframeResolver||si;this.keyframeResolver=new g(s,(x,I,S)=>this.onKeyframesResolved(x,I,h,!S),u,c,f),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,a,n){this.keyframeResolver=void 0;let{name:o,type:i,velocity:s,delay:u,isHandoff:c,onUpdate:f}=a;this.resolvedAt=jt.now();let p=!0;JP(t,o,i,s)||(p=!1,(Dr.instantAnimations||!u)&&f?.(oi(t,a,r)),t[0]=t[t.length-1],xd(a),a.repeat=0);let g={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>NG?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...a,keyframes:t},x=p&&!c&&XP(g),I=g.motionValue?.owner?.current,S;if(x)try{S=new ch({...g,element:I})}catch{S=new io(g)}else S=new io(g);S.finished.then(()=>{this.notifyFinished()}).catch(Ft),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}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(),FP()),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 ph(e,t,r,a=0,n=1){let o=Array.from(e).sort((c,f)=>c.sortNodePosition(f)).indexOf(t),i=e.size,s=(i-1)*a;return typeof r=="function"?r(o,i):n===1?o*a:s-o*a}var OG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UG(e){let t=OG.exec(e);if(!t)return[,];let[,r,a,n]=t;return[`--${r??a}`,n]}var BG=4;function t1(e,t,r=1){An(r<=BG,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,n]=UG(e);if(!a)return;let o=window.getComputedStyle(t).getPropertyValue(a);if(o){let i=o.trim();return td(i)?parseFloat(i):i}return Cl(n)?t1(n,t,r+1):n}var FG={type:"spring",stiffness:500,damping:25,restSpeed:10},jG=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZG={type:"keyframes",duration:.8},VG={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},YP=(e,{keyframes:t})=>t.length>2?ZG:En.has(e)?e.startsWith("scale")?jG(t[1]):FG:VG;function mh(e,t){if(e?.inherit&&t){let{inherit:r,...a}=e;return{...t,...a}}return e}function Ml(e,t){let r=e?.[t]??e?.default??e;return r!==e?mh(r,e):r}var qG=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function QP(e){for(let t in e)if(!qG.has(t))return!0;return!1}var xs=(e,t,r,a={},n,o)=>i=>{let s=Ml(a,e)||{},u=s.delay||a.delay||0,{elapsed:c=0}=a;c=c-Yt(u);let f={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{i(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:n};QP(s)||Object.assign(f,YP(e,f)),f.duration&&(f.duration=Yt(f.duration)),f.repeatDelay&&(f.repeatDelay=Yt(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let p=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(xd(f),f.delay===0&&(p=!0)),(Dr.instantAnimations||Dr.skipAnimations||n?.shouldSkipAnimations)&&(p=!0,xd(f),f.delay=0),f.allowFlatten=!s.type&&!s.ease,p&&!o&&t.get()!==void 0){let h=oi(f.keyframes,s);if(h!==void 0){He.update(()=>{f.onUpdate(h),f.onComplete()});return}}return s.isSync?new io(f):new fh(f)};function e$(e){let t=[{},{}];
2return e?.values.forEach((r,a)=>{t[0][a]=r.get(),t[1][a]=r.getVelocity()}),t}function bs(e,t,r,a){if(typeof t=="function"){let[n,o]=e$(a);t=t(r!==void 0?r:e.custom,n,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,o]=e$(a);t=t(r!==void 0?r:e.custom,n,o)}return t}function fn(e,t,r){let a=e.getProps();return bs(a,t,r!==void 0?r:a.custom,e)}var hh=new Set(["width","height","top","left","right","bottom",...Ca]);var t$=30,GG=e=>!isNaN(parseFloat(e)),r$={current:void 0},r1=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{let n=jt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),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=jt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=GG(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 ao);let a=this.events[t].add(r);return t==="change"?()=>{a(),He.read(()=>{this.events.change.getSize()||this.stop()})}:a}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,a){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-a}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 r$.current&&r$.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>t$)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,t$);return od(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 Yn(e,t){return new r1(e,t)}var bd=e=>Array.isArray(e);function HG(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Yn(r))}function WG(e){return bd(e)?e[e.length-1]||0:e}function n$(e,t){let r=fn(e,t),{transitionEnd:a={},transition:n={},...o}=r||{};o={...o,...a};for(let i in o){let s=WG(o[i]);HG(e,i,s)}}var vt=e=>!!(e&&e.getVelocity);function a$(e){return!!(vt(e)&&e.add)}function Rl(e,t){let r=e.getValue("willChange");if(a$(r))return r.add(t);if(!r&&Dr.WillChange){let a=new Dr.WillChange("auto");e.addValue("willChange",a),a.add(t)}}function zl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var o$="framerAppearId",wd="data-"+zl(o$);function gh(e){return e.props[wd]}function JG({protectedKeys:e,needsAnimating:t},r){let a=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,a}function vh(e,t,{delay:r=0,transitionOverride:a,type:n}={}){let{transition:o,transitionEnd:i,...s}=t,u=e.getDefaultTransition();o=o?mh(o,u):u;let c=o?.reduceMotion;a&&(o=a);let f=[],p=n&&e.animationState&&e.animationState.getState()[n];for(let h in s){let g=e.getValue(h,e.latestValues[h]??null),x=s[h];if(x===void 0||p&&JG(p,h))continue;let I={delay:r,...Ml(o||{},h)},S=g.get();if(S!==void 0&&!g.isAnimating()&&!Array.isArray(x)&&x===S&&!I.velocity){He.update(()=>
2g.set(x));continue}let $=!1;if(window.MotionHandoffAnimation){let M=gh(e);if(M){let E=window.MotionHandoffAnimation(M,h,He);E!==null&&(I.startTime=E,$=!0)}}Rl(e,h);let T=c??e.shouldReduceMotion;g.start(xs(h,g,x,T&&hh.has(h)?{type:!1}:I,e,$));let k=g.animation;k&&f.push(k)}if(i){let h=()=>He.update(()=>{i&&n$(e,i)});f.length?Promise.all(f).then(h):h()}return f}function yh(e,t,r={}){let a=fn(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=a||{};r.transitionOverride&&(n=r.transitionOverride);let o=a?()=>Promise.all(vh(e,a,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(u=0)=>{let{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=n;return KG(e,t,u,c,f,p,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[u,c]=s==="beforeChildren"?[o,i]:[i,o];return u().then(()=>c())}else return Promise.all([o(),i(r.delay)])}function KG(e,t,r=0,a=0,n=0,o=1,i){let s=[];for(let u of e.variantChildren)u.notify("AnimationStart",t),s.push(yh(u,t,{...i,delay:r+(typeof a=="function"?0:a)+ph(e.variantChildren,u,a,n,o)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(s)}function i$(e,t,r={}){e.notify("AnimationStart",t);let a;if(Array.isArray(t)){let n=t.map(o=>yh(e,o,r));a=Promise.all(n)}else if(typeof t=="string")a=yh(e,t,r);else{let n=typeof t=="function"?fn(e,t,r.custom):t;a=Promise.all(vh(e,n,r))}return a.then(()=>{e.notify("AnimationComplete",t)})}var s$={test:e=>e==="auto",parse:e=>e};var xh=e=>t=>t.test(e);var n1=[Sa,xe,Tr,Xn,Ob,Nb,s$],a1=e=>n1.find(xh(e));function l$(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nd(e):!0}var XG=new Set(["brightness","contrast","saturate","opacity"]);function YG(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[a]=r.match(Tl)||[];if(!a)return e;let n=r.replace(a,""),o=XG.has(t)?1:0;return a!==r&&(o*=100),t+"("+o+n+")"}var QG=/\b([a-z-]*)\(.*?\)/gu,_d={...cr,getAnimatableNone:e=>{let t=e.match(QG);return t?t.map(YG).join(" "):e}};var kd={...cr,getAnimatableNone:e=>{let t=cr.parse(e);return cr.createTransformer(e)(t.map(a=>typeof a=="number"?0:typeof a=="object"?{...a,alpha:1}:a))}};var o1={...Sa,transform:Math.round};var u$={rotate:Xn,rotateX:Xn,rotateY:Xn,rotateZ:Xn,scale:hd,scaleX:hd,scaleY:hd,scaleZ:hd,skew:Xn,skewX:Xn,skewY:Xn,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:oo,originX:Xm,originY:Xm,originZ:xe};var Dl={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...u$,zIndex:o1,fillOpacity:oo,strokeOpacity:oo,numOctaves:o1};var eH={...Dl,color:zt,backgroundColor:zt,outlineColor:zt,fill:zt,stroke:zt,borderColor:zt,borderTopColor:zt,borderRightColor:zt,borderBottomColor:zt,borderLeftColor:zt,filter:_d,WebkitFilter:_d,mask:kd,WebkitMask:kd},bh=e=>eH[e];var tH=new Set([_d,kd]);function wh(e,t){let r=bh(e);return tH.has(r)||(r=cr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var rH=new Set(["auto","none","0"]);function c$(e,t,r){let a=0,n;for(;a<e.length&&!n;){let o=e[a];typeof o=="string"&&!rH.has(o)&&ai(o).values.length&&(n=e[a]),a++}if(n&&r)for(let o of t)e[o]=wh(r,n)}var _h=class extends si{constructor(t,r,a,n,o){super(t,r,a,n,o,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:a}=this;if(!r||!r.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let p=t[f];if(typeof p=="string"&&(p=p.trim(),Cl(p))){let h=t1(p,r.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!hh.has(a)||t.length!==2)return;let[n,o]=t,i=a1(n),s=a1(o),u=zb(n),c=zb(o);if(u!==c&&so[a]){this.needsMeasurement=!0;return}if(i!==s)if(Hb(i)&&Hb(s))for(let f=0;f<t.length;f++){let p=t[f];typeof p=="string"&&(t[f]=parseFloat(p))}else so[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,a=[];for(let n=0;n<t.length;n++)(t[n]===null||l$(t[n]))&&a.push(n);a.length&&c$(t,a,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:a}=this;if(!t||!t.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=so[a](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(a,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:a}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let o=a.length-1,i=a[o];a[o]=so[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEac
2h(([s,u])=>{t.getValue(s).set(u)}),this.resolveNoneKeyframes()}};function kh(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let a=document;t&&(a=t.current);let n=r?.[e]??a.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(a=>a!=null)}var Sh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ws(e){return rd(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:_s,cancel:nH}=Hm(queueMicrotask,!1);var Mn={x:!1,y:!1};function Ih(){return Mn.x||Mn.y}function i1(e){return e==="x"||e==="y"?Mn[e]?null:(Mn[e]=!0,()=>{Mn[e]=!1}):Mn.x||Mn.y?null:(Mn.x=Mn.y=!0,()=>{Mn.x=Mn.y=!1})}function Ch(e,t){let r=kh(e),a=new AbortController,n={passive:!0,...t,signal:a.signal};return[r,n,()=>a.abort()]}function aH(e){return!(e.pointerType==="touch"||Ih())}function s1(e,t,r={}){let[a,n,o]=Ch(e,r);return a.forEach(i=>{let s=!1,u=!1,c,f=()=>{i.removeEventListener("pointerleave",x)},p=S=>{c&&(c(S),c=void 0),f()},h=S=>{s=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),u&&(u=!1,p(S))},g=()=>{s=!0,window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",h,n)},x=S=>{if(S.pointerType!=="touch"){if(s){u=!0;return}p(S)}},I=S=>{if(!aH(S))return;u=!1;let $=t(i,S);typeof $=="function"&&(c=$,i.addEventListener("pointerleave",x,n))};i.addEventListener("pointerenter",I,n),i.addEventListener("pointerdown",g,n)}),o}var l1=(e,t)=>t?e===t?!0:l1(e,t.parentElement):!1;var ks=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var oH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function u1(e){return oH.has(e.tagName)||e.isContentEditable===!0}var iH=new Set(["INPUT","SELECT","TEXTAREA"]);function c1(e){return iH.has(e.tagName)||e.isContentEditable===!0}var Nl=new WeakSet;function d$(e){return t=>{t.key==="Enter"&&e(t)}}function d1(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var f$=(e,t)=>{let r=e.currentTarget;if(!r)return;let a=d$(()=>{if(Nl.has(r))return;d1(r,"down");let n=d$(()=>{d1(r,"up")}),o=()=>d1(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",o,t)});r.addEventListener("keydown",a,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",a),t)};function p$(e){return ks(e)&&!Ih()}var m$=new WeakSet;function f1(e,t,r={}){let[a,n,o]=Ch(e,r),i=s=>{let u=s.currentTarget;if(!p$(s)||m$.has(s))return;Nl.add(u),r.stopPropagation&&m$.add(s);let c=t(u,s),f=(g,x)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",h),Nl.has(u)&&Nl.delete(u),p$(g)&&typeof c=="function"&&c(g,{success:x})},p=g=>{f(g,u===window||u===document||r.useGlobalTarget||l1(u,g.target))},h=g=>{f(g,!1)};window.addEventListener("pointerup",p,n),window.addEventListener("pointercancel",h,n)};return a.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",i,n),ws(s)&&(s.addEventListener("focus",c=>f$(c,n)),!u1(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function Ol(e){return rd(e)&&"ownerSVGElement"in e}var Th=new WeakMap,Ph,h$=(e,t,r)=>(a,n)=>n&&n[0]?n[0][e+"Size"]:Ol(a)&&"getBBox"in a?a.getBBox()[t]:a[r],sH=h$("inline","width","offsetWidth"),lH=h$("block","height","offsetHeight");function uH({target:e,borderBoxSize:t}){Th.get(e)?.forEach(r=>{r(e,{get width(){return sH(e,t)},get height(){return lH(e,t)}})})}function cH(e){e.forEach(uH)}function dH(){typeof ResizeObserver>"u"||(Ph=new ResizeObserver(cH))}function g$(e,t){Ph||dH();let r=kh(e);return r.forEach(a=>{let n=Th.get(a);n||(n=new Set,Th.set(a,n)),n.add(t),Ph?.observe(a)}),()=>{r.forEach(a=>{let n=Th.get(a);n?.delete(t),n?.size||Ph?.unobserve(a)})}}var $h=new Set,Ul;function fH(){Ul=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};$h.forEach(t=>t(e))},window.addEventListener("resize",Ul)}function v$(e){return $h.add(e),Ul||fH(),()=>{$h.delete(e),!$h.size&&typeof Ul=="function"&&(window.removeEventListener("resize",Ul),Ul=void 0)}}function Lh(e,t){return typeof e=="function"?v$(e):g$(e,t)}function y$(e){return Ol(e)&&e.tagName==="svg"}var pH=[...n1,zt,cr],x$=e=>pH.find(xh(e));var p1=()=>({translate:0,scale:1,origin:0,originPoint:0}),li=()=>({x:p1(),y:p1()}),m1=()=>({min:0,max:0}),Dt=()=>({x:m1(),y:m1()});var b$=new WeakMap;function lo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ta(e){return typeof e=="string"||Array.isArray(e)}var Ah=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Sd=["initial",...Ah];function ui(e){return lo(e.animate)||Sd.some(t=>Ta(e[t]))}function Id(e){return!!(ui(e)||e.variants)}function w$(e,t,r){for(let a in t){let n=t[a],o=r[a];if(vt(n))e.addValue(a,n);else if(vt(o))e.addValue(a,Yn(n,{owner:e}));else if(o!==n)if(e.hasValue(a)){let i=e.getValue(a);i.liveStyle===!0?i.jump(n):i.hasAnimated||i.set(n)}else{let i=e.getStaticValue(a);e.addValue(a,Yn(i!==void 0?i:n,{owner:e}))}}for(let a in r)t[a]===void 0&&e.removeValue(a);return t}var Cd={current:null},Eh={current:!1};var mH=typeof window<"u";
2function _$(){if(Eh.current=!0,!!mH)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cd.current=e.matches;e.addEventListener("change",t),t()}else Cd.current=!1}var k$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Mh={};function Pd(e){Mh=e}function h1(){return Mh}var Td=class{scrapeMotionValuesFromProps(t,r,a){return{}}constructor({parent:t,props:r,presenceContext:a,reducedMotionConfig:n,skipAnimations:o,blockInitialAnimation:i,visualState:s},u={}){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=si,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 g=jt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,He.render(this.render,!1,!0))};let{latestValues:c,renderState:f}=s;this.latestValues=c,this.baseTarget={...c},this.initialValues=r.initial?{...c}:{},this.renderState=f,this.parent=t,this.props=r,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=o,this.options=u,this.blockInitialAnimation=!!i,this.isControllingVariants=ui(r),this.isVariantNode=Id(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(let g in h){let x=h[g];c[g]!==void 0&&vt(x)&&x.set(c[g])}}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,b$.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.forEach((r,a)=>this.bindToMotionValue(a,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Eh.current||_$(),this.shouldReduceMotion=Cd.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(),Xr(this.notifyUpdate),Xr(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&&dh.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:u,ease:c,duration:f}=r.accelerate,p=new El({element:this.current,name:t,keyframes:s,times:u,ease:c,duration:Yt(f)}),h=i(p);this.valueSubscriptions.set(t,()=>{h(),p.cancel()});return}let a=En.has(t);a&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&He.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),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 Mh){let r=Mh[t];if(!r)continue;let{isEnabled:a,Feature:n}=r;if(!this.features[t]&&n&&a(this.props)&&(this.features[t]=new n(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):Dt()}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;
2for(let a=0;a<k$.length;a++){let n=k$[a];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o="on"+n,i=t[o];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=w$(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 a=this.values.get(t);r!==a&&(a&&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 a=this.values.get(t);return a===void 0&&r!==void 0&&(a=Yn(r===null?void 0:r,{owner:this}),this.addValue(t,a)),a}readValue(t,r){let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(td(a)||nd(a))?a=parseFloat(a):!x$(a)&&cr.test(r)&&(a=wh(t,r)),this.setBaseTarget(t,vt(a)?a.get():a)),vt(a)?a.get():a}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,a;if(typeof r=="string"||typeof r=="object"){let o=bs(this.props,r,this.presenceContext?.custom);o&&(a=o[t])}if(r&&a!==void 0)return a;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!vt(n)?n:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ao),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){_s.render(this.render)}};var Bl=class extends Td{constructor(){super(...arguments),this.KeyframeResolver=_h}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let a=t.style;return a?a[r]:void 0}removeValueFromRenderState(t,{vars:r,style:a}){delete r[t],delete a[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;vt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var dr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function $d({top:e,left:t,right:r,bottom:a}){return{x:{min:t,max:r},y:{min:e,max:a}}}function g1({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function v1(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:a.y,right:a.x}}function y1(e){return e===void 0||e===1}function Rh({scale:e,scaleX:t,scaleY:r}){return!y1(e)||!y1(t)||!y1(r)}function uo(e){return Rh(e)||x1(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function x1(e){return S$(e.x)||S$(e.y)}function S$(e){return e&&e!=="0%"}function Ld(e,t,r){let a=e-r,n=t*a;return r+n}function I$(e,t,r,a,n){return n!==void 0&&(e=Ld(e,n,a)),Ld(e,r,a)+t}function b1(e,t=0,r=1,a,n){e.min=I$(e.min,t,r,a,n),e.max=I$(e.max,t,r,a,n)}function w1(e,{x:t,y:r}){b1(e.x,t.translate,t.scale,t.originPoint),b1(e.y,r.translate,r.scale,r.originPoint)}var C$=.999999999999,T$=1.0000000000001;function L$(e,t,r,a=!1){let n=r.length;if(!n)return;t.x=t.y=1;let o,i;for(let s=0;s<n;s++){o=r[s],i=o.projectionDelta;let{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(a&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Rn(e.x,-o.scroll.offset.x),Rn(e.y,-o.scroll.offset.y)),i&&(t.x*=i.x.scale,t.y*=i.y.scale,w1(e,i)),a&&uo(o.latestValues)&&Ad(e,o.latestValues,o.layout?.layoutBox))}t.x<T$&&t.x>C$&&(t.x=1),t.y<T$&&t.y>C$&&(t.y=1)}function Rn(e,t){e.min+=t,e.max+=t}function P$(e,t,r,a,n=.5){let o=at(e.min,e.max,n);b1(e,t,r,o,a)}function $$(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Ad(e,t,r){let a=r??e;P$(e.x,$$(t.x,a.x),t.scaleX,t.scale,t.originX),P$(e.y,$$(t.y,a.y),t.scaleY,t.scale,t.originY)}function zh(e,t){return $d(v1(e.getBoundingClientRect(),t))}function _1(e,t,r){let a=zh(e,r),{scroll:n}=t;return n&&(Rn(a.x,n.offset.x),Rn(a.y,n.offset.y)),a}var hH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gH=Ca.length;function A$(e,t,r){let a="",n=!0;for(let o=0;o<gH;o++){let i=Ca[o],s=e[i];if(s===void 0)continue;let u=!0;if(typeof s=="number")u=s===(i.startsWith("scale")?1:0);else{let c=parseFloat(s);u=i.startsWith("scale")?c===1:c===0}if(!u||r){let c=Sh(s,Dl[i]);if(!u){n=!1;let f=hH[i]||i;a+=`${f}(${c}) `}r&&(t[i]=c)}}return a=a.trim(),r?a=r(t,n?"":a):n&&(a="none"),a}function Ss(e,t,r){let{style:a,vars:n,transformOrigin:o}=e,i=!1,s=!1;for(let u in t){let c=t[u];
2if(En.has(u)){i=!0;continue}else if(Jm(u)){n[u]=c;continue}else{let f=Sh(c,Dl[u]);u.startsWith("origin")?(s=!0,o[u]=f):a[u]=f}}if(t.transform||(i||r?a.transform=A$(t,e.transform,r):a.transform&&(a.transform="none")),s){let{originX:u="50%",originY:c="50%",originZ:f=0}=o;a.transformOrigin=`${u} ${c} ${f}`}}function Dh(e,{style:t,vars:r},a,n){let o=e.style,i;for(i in t)o[i]=t[i];n?.applyProjectionStyles(o,a);for(i in r)o.setProperty(i,r[i])}function E$(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Fl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;let r=E$(e,t.target.x),a=E$(e,t.target.y);return`${r}% ${a}%`}};var M$={correct:(e,{treeScale:t,projectionDelta:r})=>{let a=e,n=cr.parse(e);if(n.length>5)return a;let o=cr.createTransformer(e),i=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,u=r.y.scale*t.y;n[0+i]/=s,n[1+i]/=u;let c=at(s,u,.5);return typeof n[2+i]=="number"&&(n[2+i]/=c),typeof n[3+i]=="number"&&(n[3+i]/=c),o(n)}};var Ed={borderRadius:{...Fl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fl,borderTopRightRadius:Fl,borderBottomLeftRadius:Fl,borderBottomRightRadius:Fl,boxShadow:M$};function Md(e,{layout:t,layoutId:r}){return En.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Ed[e]||e==="opacity")}function Is(e,t,r){let a=e.style,n=t?.style,o={};if(!a)return o;for(let i in a)(vt(a[i])||n&&vt(n[i])||Md(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=a[i]);return o}function vH(e){return window.getComputedStyle(e)}var Rd=class extends Bl{constructor(){super(...arguments),this.type="html",this.renderInstance=Dh}readValueFromInstance(t,r){if(En.has(r))return this.projection?.isProjecting?ah(r):NP(t,r);{let a=vH(t),n=(Jm(r)?a.getPropertyValue(r):a[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return zh(t,r)}build(t,r,a){Ss(t,r,a.transformTemplate)}scrapeMotionValuesFromProps(t,r,a){return Is(t,r,a)}};var yH={offset:"stroke-dashoffset",array:"stroke-dasharray"},xH={offset:"strokeDashoffset",array:"strokeDasharray"};function R$(e,t,r=1,a=0,n=!0){e.pathLength=1;let o=n?yH:xH;e[o.offset]=`${-a}`,e[o.array]=`${t} ${r}`}var bH=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function zd(e,{attrX:t,attrY:r,attrScale:a,pathLength:n,pathSpacing:o=1,pathOffset:i=0,...s},u,c,f){if(Ss(e,s,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:h}=e;p.transform&&(h.transform=p.transform,delete p.transform),(h.transform||p.transformOrigin)&&(h.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),h.transform&&(h.transformBox=f?.transformBox??"fill-box",delete p.transformBox);for(let g of bH)p[g]!==void 0&&(h[g]=p[g],delete p[g]);t!==void 0&&(p.x=t),r!==void 0&&(p.y=r),a!==void 0&&(p.scale=a),n!==void 0&&R$(p,n,o,i,!1)}var Nh=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 Dd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function z$(e,t,r,a){Dh(e,t,void 0,a);for(let n in t.attrs)e.setAttribute(Nh.has(n)?n:zl(n),t.attrs[n])}function Nd(e,t,r){let a=Is(e,t,r);for(let n in e)if(vt(e[n])||vt(t[n])){let o=Ca.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;a[o]=e[n]}return a}var Od=class extends Bl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Dt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(En.has(r)){let a=bh(r);return a&&a.default||0}return r=Nh.has(r)?r:zl(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,a){return Nd(t,r,a)}build(t,r,a){zd(t,r,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(t,r,a,n){z$(t,r,a,n)}mount(t){this.isSVGTag=Dd(t.tagName),super.mount(t)}};var wH=Sd.length;function k1(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?k1(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<wH;r++){let a=Sd[r],n=e.props[a];(Ta(n)||n===!1)&&(t[a]=n)}return t}function S1(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let a=0;a<r;a++)if(t[a]!==e[a])return!1;return!0}var _H=[...Ah].reverse(),kH=Ah.length;function SH(e){return t=>Promise.all(t.map(({animation:r,options:a})=>i$(e,r,a)))}function I1(e){let t=SH(e),r=D$(),a=!0,n=!1,o=c=>(f,p)=>{let h=fn(e,p,c==="exit"?e.presenceContext?.custom:void 0);if(h){let{transition:g,transitionEnd:x,...I}=h;f={...f,...I,...x}}return f};function i(c){t=c(e)}function s(c){let{props:f}=e,p=k1(e.parent)||{},h=[],g=new Set,x={},I=1/0;for(let $=0;$<kH;$++){let T=_H[$],k=r[T],M=f[T]!==void 0?f[T]:p[T],E=Ta(M),z=T===c?k.isActive:null;z===!1&&(I=$);let j=M===p[T]&&M!==f[T]&&E;if(j&&(a||n)&&e.manuallyAnimateOnMount&&(j=!1),k.protectedKeys={...x},!k.isActive&&z===null||!M&&!k.prevProp||lo(M)||typeof M=="boolean")continue;if(T==="exit"&&k.isActive&&z!==!0){k.prevResolvedValues&&(x={...x,...k.prevResolvedValues});continue}let q=N$(k.prevProp,M),Z=q||T===c&&k.isActive&&!j&&E||$>I&&E,W=!1,de=Array.isArray(M)?M:[M],Q=de.reduce(o(T),{});z===!1&&(Q={});let{prevResolvedValues:ht={}}=k,Ce={...ht,...Q},Fe=fe=>{Z=!0,g.has(fe)&&(W=!0,g.delete(fe)),k.needsAnimating[fe]=!0;let Ne=e.getValue(fe);Ne&&(Ne.liveStyle=!1)};for(let fe in Ce){let Ne=Q[fe],ot=ht[fe];
2if(x.hasOwnProperty(fe))continue;let qe=!1;bd(Ne)&&bd(ot)?qe=!S1(Ne,ot):qe=Ne!==ot,qe?Ne!=null?Fe(fe):g.add(fe):Ne!==void 0&&g.has(fe)?Fe(fe):k.protectedKeys[fe]=!0}k.prevProp=M,k.prevResolvedValues=Q,k.isActive&&(x={...x,...Q}),(a||n)&&e.blockInitialAnimation&&(Z=!1);let ve=j&&q;Z&&(!ve||W)&&h.push(...de.map(fe=>{let Ne={type:T};if(typeof fe=="string"&&(a||n)&&!ve&&e.manuallyAnimateOnMount&&e.parent){let{parent:ot}=e,qe=fn(ot,fe);if(ot.enteringChildren&&qe){let{delayChildren:ke}=qe.transition||{};Ne.delay=ph(ot.enteringChildren,e,ke)}}return{animation:fe,options:Ne}}))}if(g.size){let $={};if(typeof f.initial!="boolean"){let T=fn(e,Array.isArray(f.initial)?f.initial[0]:f.initial);T&&T.transition&&($.transition=T.transition)}g.forEach(T=>{let k=e.getBaseTarget(T),M=e.getValue(T);M&&(M.liveStyle=!0),$[T]=k??null}),h.push({animation:$})}let S=!!h.length;return a&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(S=!1),a=!1,n=!1,S?t(h):Promise.resolve()}function u(c,f){if(r[c].isActive===f)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,f)),r[c].isActive=f;let p=s(c);for(let h in r)r[h].protectedKeys={};return p}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>r,reset:()=>{r=D$(),n=!0}}}function N$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!S1(t,e):!1}function Cs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function D$(){return{animate:Cs(!0),whileInView:Cs(),whileHover:Cs(),whileTap:Cs(),whileDrag:Cs(),whileFocus:Cs(),exit:Cs()}}function Oh(e,t){e.min=t.min,e.max=t.max}function zn(e,t){Oh(e.x,t.x),Oh(e.y,t.y)}function C1(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var O$=1e-4,IH=1-O$,CH=1+O$,U$=.01,TH=0-U$,PH=0+U$;function ar(e){return e.max-e.min}function L1(e,t,r){return Math.abs(e-t)<=r}function T1(e,t,r,a=.5){e.origin=a,e.originPoint=at(t.min,t.max,e.origin),e.scale=ar(r)/ar(t),e.translate=at(r.min,r.max,e.origin)-e.originPoint,(e.scale>=IH&&e.scale<=CH||isNaN(e.scale))&&(e.scale=1),(e.translate>=TH&&e.translate<=PH||isNaN(e.translate))&&(e.translate=0)}function Ts(e,t,r,a){T1(e.x,t.x,r.x,a?a.originX:void 0),T1(e.y,t.y,r.y,a?a.originY:void 0)}function P1(e,t,r,a=0){let n=a?at(r.min,r.max,a):r.min;e.min=n+t.min,e.max=e.min+ar(t)}function A1(e,t,r,a){P1(e.x,t.x,r.x,a?.x),P1(e.y,t.y,r.y,a?.y)}function $1(e,t,r,a=0){let n=a?at(r.min,r.max,a):r.min;e.min=t.min-n,e.max=e.min+ar(t)}function jl(e,t,r,a){$1(e.x,t.x,r.x,a?.x),$1(e.y,t.y,r.y,a?.y)}function B$(e,t,r,a,n){return e-=t,e=Ld(e,1/r,a),n!==void 0&&(e=Ld(e,1/n,a)),e}function $H(e,t=0,r=1,a=.5,n,o=e,i=e){if(Tr.test(t)&&(t=parseFloat(t),t=at(i.min,i.max,t/100)-i.min),typeof t!="number")return;let s=at(o.min,o.max,a);e===o&&(s-=t),e.min=B$(e.min,t,r,s,n),e.max=B$(e.max,t,r,s,n)}function F$(e,t,[r,a,n],o,i){$H(e,t[r],t[a],t[n],t.scale,o,i)}var LH=["x","scaleX","originX"],AH=["y","scaleY","originY"];function E1(e,t,r,a){F$(e.x,t,LH,r?r.x:void 0,a?a.x:void 0),F$(e.y,t,AH,r?r.y:void 0,a?a.y:void 0)}function j$(e){return e.translate===0&&e.scale===1}function M1(e){return j$(e.x)&&j$(e.y)}function Z$(e,t){return e.min===t.min&&e.max===t.max}function q$(e,t){return Z$(e.x,t.x)&&Z$(e.y,t.y)}function V$(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function R1(e,t){return V$(e.x,t.x)&&V$(e.y,t.y)}function z1(e){return ar(e.x)/ar(e.y)}function D1(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function pn(e){return[e("x"),e("y")]}
2function G$(e,t,r){let a="",n=e.x.translate/t.x,o=e.y.translate/t.y,i=r?.z||0;if((n||o||i)&&(a=`translate3d(${n}px, ${o}px, ${i}px) `),(t.x!==1||t.y!==1)&&(a+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:f,rotateX:p,rotateY:h,skewX:g,skewY:x}=r;c&&(a=`perspective(${c}px) ${a}`),f&&(a+=`rotate(${f}deg) `),p&&(a+=`rotateX(${p}deg) `),h&&(a+=`rotateY(${h}deg) `),g&&(a+=`skewX(${g}deg) `),x&&(a+=`skewY(${x}deg) `)}let s=e.x.scale*t.x,u=e.y.scale*t.y;return(s!==1||u!==1)&&(a+=`scale(${s}, ${u})`),a||"none"}var K$=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],EH=K$.length,H$=e=>typeof e=="string"?parseFloat(e):e,W$=e=>typeof e=="number"||xe.test(e);function X$(e,t,r,a,n,o){n?(e.opacity=at(0,r.opacity??1,MH(a)),e.opacityExit=at(t.opacity??1,0,RH(a))):o&&(e.opacity=at(t.opacity??1,r.opacity??1,a));for(let i=0;i<EH;i++){let s=K$[i],u=J$(t,s),c=J$(r,s);if(u===void 0&&c===void 0)continue;u||(u=0),c||(c=0),u===0||c===0||W$(u)===W$(c)?(e[s]=Math.max(at(H$(u),H$(c),a),0),(Tr.test(c)||Tr.test(u))&&(e[s]+="%")):e[s]=c}(t.rotate||r.rotate)&&(e.rotate=at(t.rotate||0,r.rotate||0,a))}function J$(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var MH=Y$(0,.5,ud),RH=Y$(.5,.95,Ft);function Y$(e,t,r){return a=>a<e?0:a>t?1:r(_a(e,t,a))}function Q$(e,t,r){let a=vt(e)?e:Yn(e);return a.start(xs("",a,t,r)),a.animation}function Pa(e,t,r,a={passive:!0}){return e.addEventListener(t,r,a),()=>e.removeEventListener(t,r)}var e7=(e,t)=>e.depth-t.depth;var Uh=class{constructor(){this.children=[],this.isDirty=!1}add(t){ms(this.children,t),this.isDirty=!0}remove(t){ei(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(e7),this.isDirty=!1,this.children.forEach(t)}};function t7(e,t){let r=jt.now(),a=({timestamp:n})=>{let o=n-r;o>=t&&(Xr(a),e(o-t))};return He.setup(a,!0),()=>Xr(a)}function Ps(e){return vt(e)?e.get():e}var Bh=class{constructor(){this.members=[]}add(t){ms(this.members,t);for(let r=this.members.length-1;r>=0;r--){let a=this.members[r];if(a===t||a===this.lead||a===this.prevLead)continue;let n=a.instance;(!n||n.isConnected===!1)&&!a.snapshot&&(ei(this.members,a),a.unmount())}t.scheduleRender()}remove(t){if(ei(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 a=this.members[r];if(a.isPresent!==!1&&a.instance?.isConnected!==!1)return this.promote(a),!0}return!1}promote(t,r){let a=this.lead;if(t!==a&&(this.prevLead=a,this.lead=t,t.show(),a)){a.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=a.options,{layoutDependency:o}=t.options;(n===void 0||n!==o)&&(t.resumeFrom=a,r&&(a.preserveOpacity=!0),a.snapshot&&(t.snapshot=a.snapshot,t.snapshot.latestValues=a.animationValues||a.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&a.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 $s={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Ls={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},N1=["","X","Y","Z"],zH=1e3,DH=0;function O1(e,t,r,a){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),a&&(a[e]=0))}function c7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=gh(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",He,!(n||o))}let{parent:a}=e;a&&!a.hasCheckedOptimisedAppear&&c7(a)}function Fh({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:a,resetTransform:n}){return class{constructor(i={},s=t?.()){this.id=DH++,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,dn.value&&(Ls.nodes=Ls.calculatedTargetDeltas=Ls.calculatedProjections=0),this.nodes.forEac
2h(UH),this.nodes.forEach(qH),this.nodes.forEach(GH),this.nodes.forEach(BH),dn.addProjectionMetrics&&dn.addProjectionMetrics(Ls)},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 u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new Uh)}addEventListener(i,s){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new ao),this.eventHandlers.get(i).add(s)}notifyListeners(i,...s){let u=this.eventHandlers.get(i);u&&u.notify(...s)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Ol(i)&&!y$(i),this.instance=i;let{layoutId:s,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||s)&&(this.isLayoutDirty=!0),e){let f,p=0,h=()=>this.root.updateBlockedByResize=!1;He.read(()=>{p=window.innerWidth}),e(i,()=>{let g=window.innerWidth;g!==p&&(p=g,this.root.updateBlockedByResize=!0,f&&f(),f=t7(h,250),$s.hasAnimatedSinceResize&&($s.hasAnimatedSinceResize=!1,this.nodes.forEach(a7)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let x=this.options.transition||c.getDefaultTransition()||XH,{onLayoutAnimationStart:I,onLayoutAnimationComplete:S}=c.getProps(),$=!this.targetLayout||!R1(this.targetLayout,g),T=!p&&h;if(this.options.layoutRoot||this.resumeFrom||T||p&&($||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...Ml(x,"layout"),onPlay:I,onComplete:S};(c.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(f,T)}else p||a7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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(),Xr(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(HH),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&&c7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){let p=this.path[f];p.shouldResetTransform=!0,(typeof p.latestValues.x=="string"||typeof p.latestValues.y=="string")&&(p.isLayoutDirty=!0),p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}let{layoutId:s,layout:u}=this.options;if(s===void 0&&!u)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let u=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),u&&this.nodes.forEach(jH),this.nodes.forEach(r7);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(n7);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
2h(ZH),this.nodes.forEach(VH),this.nodes.forEach(NH),this.nodes.forEach(OH)):this.nodes.forEach(n7),this.clearAllSnapshots();let s=jt.now();Wt.delta=ur(0,1e3/60,s-Wt.timestamp),Wt.timestamp=s,Wt.isProcessing=!0,md.update.process(Wt),md.preRender.process(Wt),md.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,_s.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(FH),this.sharedNodes.forEach(WH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,He.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){He.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ar(this.snapshot.measuredBox.x)&&!ar(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();let i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Dt()),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 u=a(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:u,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!n)return;let i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!M1(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;i&&this.instance&&(s||uo(this.latestValues)||f)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){let s=this.measurePageBox(),u=this.removeElementScroll(s);return i&&(u=this.removeTransform(u)),YH(u),{animationId:this.root.animationId,measuredBox:s,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:i}=this.options;if(!i)return Dt();let s=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(QH))){let{scroll:c}=this.root;c&&(Rn(s.x,c.offset.x),Rn(s.y,c.offset.y))}return s}removeElementScroll(i){let s=Dt();if(zn(s,i),this.scroll?.wasRoot)return s;for(let u=0;u<this.path.length;u++){let c=this.path[u],{scroll:f,options:p}=c;c!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&zn(s,i),Rn(s.x,f.offset.x),Rn(s.y,f.offset.y))}return s}applyTransform(i,s=!1,u){let c=u||Dt();zn(c,i);for(let f=0;f<this.path.length;f++){let p=this.path[f];!s&&p.options.layoutScroll&&p.scroll&&p!==p.root&&(Rn(c.x,-p.scroll.offset.x),Rn(c.y,-p.scroll.offset.y)),uo(p.latestValues)&&Ad(c,p.latestValues,p.layout?.layoutBox)}return uo(this.latestValues)&&Ad(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(i){let s=Dt();zn(s,i);for(let u=0;u<this.path.length;u++){let c=this.path[u];if(!uo(c.latestValues))continue;let f;c.instance&&(Rh(c.latestValues)&&c.updateSnapshot(),f=Dt(),zn(f,c.measurePageBox())),E1(s,c.latestValues,c.snapshot?.layoutBox,f)}return uo(this.latestValues)&&E1(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!==Wt.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
2haredProjectionDirty);let u=!!this.resumingFrom||this!==s;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:p}=this.options;if(!this.layout||!(f||p))return;this.resolvedRelativeTargetAt=Wt.timestamp;let h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Dt(),this.targetWithTransforms=Dt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),A1(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):zn(this.target,this.layout.layoutBox),w1(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0),dn.value&&Ls.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Rh(this.parent.latestValues)||x1(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,u){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dt(),this.relativeTargetOrigin=Dt(),jl(this.relativeTargetOrigin,s,u,this.options.layoutAnchor||void 0),zn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let i=this.getLead(),s=!!this.resumingFrom||this!==i,u=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(u=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(u=!1),u)return;let{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;zn(this.layoutCorrected,this.layout.layoutBox);let p=this.treeScale.x,h=this.treeScale.y;L$(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=Dt());let{target:g}=i;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(C1(this.prevProjectionDelta.x,this.projectionDelta.x),C1(this.prevProjectionDelta.y,this.projectionDelta.y)),Ts(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==h||!D1(this.projectionDelta.x,this.prevProjectionDelta.x)||!D1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),dn.value&&Ls.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=li(),this.projectionDelta=li(),this.projectionDeltaWithTransform=li()}setAnimationOrigin(i,s=!1){let u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},p=li();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let h=Dt(),g=u?u.source:void 0,x=this.layout?this.layout.source:void 0,I=g!==x,S=this.getStack(),$=!S||S.members.length<=1,T=!!(I&&!$&&this.options.crossfade===!0&&!this.path.some(KH));this.animationProgress=0;let k;this.mixTargetDelta=M=>{let E=M/1e3;o7(p.x,i.x,E),o7(p.y,i.y,E),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jl(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),JH(this.relativeTarget,this.relativeTargetOrigin,h,E),k&&q$(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Dt()),zn(k,this.relativeTarget)),I&&(this.animationValues=f,X$(f,c,this.latestValues,E,T,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Xr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=He.update(()=>{$s.hasAnimatedSinceResize=!0,ka.layout++,this.motionValue||(this.motionValue=Yn(0)),this.motionValue.jump(0,!1),this.currentAnimation=Q$(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{ka.layout--},onComplete:()=>{ka.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(zH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let i=this.getLead(),{targetWithTransforms:s,target:u,layout:c,latestValues:f}=i;if(!(!s||!u||!c)){if(this!==i&&this.layout&&c&&d7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Dt();let p=ar(this.layout.layoutBox.x);u.x.min=i.target.x.min,u.x.max=u.x.min+p;let h=ar(this.layout.layoutBox.y);u.y.min=i.target.y.min,u.y.max=u.y.min+h}zn(s,u),Ad(s,f),Ts(this.projectionDeltaWithTransform,this.layoutCorrected,s,f)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new Bh),this.sharedNodes.get(i).add(s);let c=s.options.initialPromotionConfig;s.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(s):void 0})}isLead(){let i=this.getStack();return i?i.lead===this:!0}getLead(){let{layoutId:i}=this.options;
2return 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:u}={}){let c=this.getStack();c&&c.promote(this,u),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:u}=i;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(s=!0),!s)return;let c={};u.z&&O1("z",i,c,this.animationValues);for(let f=0;f<N1.length;f++)O1(`rotate${N1[f]}`,i,c,this.animationValues),O1(`skew${N1[f]}`,i,c,this.animationValues);i.render();for(let f in c)i.setStaticValue(f,c[f]),this.animationValues&&(this.animationValues[f]=c[f]);i.scheduleRender()}applyProjectionStyles(i,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}let u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Ps(s?.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none";return}let c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Ps(s?.pointerEvents)||""),this.hasProjected&&!uo(this.latestValues)&&(i.transform=u?u({},""):"none",this.hasProjected=!1);return}i.visibility="";let f=c.animationValues||c.latestValues;this.applyTransformsToTarget();let p=G$(this.projectionDeltaWithTransform,this.treeScale,f);u&&(p=u(f,p)),i.transform=p;let{x:h,y:g}=this.projectionDelta;i.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,c.animationValues?i.opacity=c===this?f.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:i.opacity=c===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(let x in Ed){if(f[x]===void 0)continue;let{correct:I,applyTo:S,isCSSVariable:$}=Ed[x],T=p==="none"?f[x]:I(f[x],c);if(S){let k=S.length;for(let M=0;M<k;M++)i[S[M]]=T}else $?this.options.visualElement.renderState.vars[x]=T:i[x]=T}this.options.layoutId&&(i.pointerEvents=c===this?Ps(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(r7),this.root.sharedNodes.clear()}}}function NH(e){e.updateLayout()}function OH(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:a}=e.layout,{animationType:n}=e.options,o=t.source!==e.layout.source;if(n==="size")pn(f=>{let p=o?t.measuredBox[f]:t.layoutBox[f],h=ar(p);p.min=r[f].min,p.max=p.min+h});else if(n==="x"||n==="y"){let f=n==="x"?"y":"x";Oh(o?t.measuredBox[f]:t.layoutBox[f],r[f])}else d7(n,t.layoutBox,r)&&pn(f=>{let p=o?t.measuredBox[f]:t.layoutBox[f],h=ar(r[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});let i=li();Ts(i,r,t.layoutBox);let s=li();o?Ts(s,e.applyTransform(a,!0),t.measuredBox):Ts(s,r,t.layoutBox);let u=!M1(i),c=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:p,layout:h}=f;if(p&&h){let g=e.options.layoutAnchor||void 0,x=Dt();jl(x,t.layoutBox,p.layoutBox,g);let I=Dt();jl(I,r,h.layoutBox,g),R1(x,I)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=I,e.relativeTargetOrigin=x,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:i,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function UH(e){dn.value&&Ls.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 BH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function FH(e){e.clearSnapshot()}function r7(e){e.clearMeasurements()}function jH(e){e.isLayoutDirty=!0,e.updateLayout()}function n7(e){e.isLayoutDirty=!1}function ZH(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function VH(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function a7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qH(e){e.resolveTargetDelta()}function GH(e){e.calcProjection()}
2function HH(e){e.resetSkewAndRotation()}function WH(e){e.removeLeadSnapshot()}function o7(e,t,r){e.translate=at(t.translate,0,r),e.scale=at(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function i7(e,t,r,a){e.min=at(t.min,r.min,a),e.max=at(t.max,r.max,a)}function JH(e,t,r,a){i7(e.x,t.x,r.x,a),i7(e.y,t.y,r.y,a)}function KH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var XH={duration:.45,ease:[.4,0,.1,1]},s7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),l7=s7("applewebkit/")&&!s7("chrome/")?Math.round:Ft;function u7(e){e.min=l7(e.min),e.max=l7(e.max)}function YH(e){u7(e.x),u7(e.y)}function d7(e,t,r){return e==="position"||e==="preserve-aspect"&&!L1(z1(t),z1(r),.2)}function QH(e){return e!==e.root&&e.scroll?.wasRoot}var f7=Fh({attachResizeListener:(e,t)=>Pa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var jh={current:void 0},Ud=Fh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jh.current){let e=new f7({});e.mount(window),e.setOptions({layoutScroll:!0}),jh.current=e}return jh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Zh=O(le(),1),co=O(le(),1);var p7=O(le(),1),Zl=(0,p7.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var h7=O(le(),1);function m7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eW(...e){return t=>{let r=!1,a=e.map(n=>{let o=m7(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():m7(e[n],null)}}}}function g7(...e){return h7.useCallback(eW(...e),e)}var U1=class extends Zh.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(ws(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let a=r.offsetParent,n=ws(a)&&a.offsetWidth||0,o=ws(a)&&a.offsetHeight||0,i=getComputedStyle(r),s=this.props.sizeRef.current;s.height=parseFloat(i.height),s.width=parseFloat(i.width),s.top=r.offsetTop,s.left=r.offsetLeft,s.right=n-s.width-s.left,s.bottom=o-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function y7({children:e,isPresent:t,anchorX:r,anchorY:a,root:n,pop:o}){let i=(0,co.useId)(),s=(0,co.useRef)(null),u=(0,co.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=(0,co.useContext)(Zl),f=e.props?.ref??e?.ref,p=g7(s,f);return(0,co.useInsertionEffect)(()=>{let{width:h,height:g,top:x,left:I,right:S,bottom:$}=u.current;if(t||o===!1||!s.current||!h||!g)return;let T=r==="left"?`left: ${I}`:`right: ${S}`,k=a==="bottom"?`bottom: ${$}`:`top: ${x}`;s.current.dataset.motionPopId=i;let M=document.createElement("style");c&&(M.nonce=c);let E=n??document.head;return E.appendChild(M),M.sheet&&M.sheet.insertRule(` 3 [data-motion-pop-id="${i}"] { 4 position: absolute !important; 5 width: ${h}px !important; 6 height: ${g}px !important; 7 ${T}px !important; 8 ${k}px !important; 9 } 10 `),()=>{s.current?.removeAttribute("data-motion-pop-id"),E.contains(M)&&E.removeChild(M)}},[t]),(0,v7.jsx)(U1,{isPresent:t,childRef:s,sizeRef:u,pop:o,children:o===!1?e:Zh.cloneElement(e,{ref:p})})}var b7=({children:e,initial:t,isPresent:r,onExitComplete:a,custom:n,presenceAffectsLayout:o,mode:i,anchorX:s,anchorY:u,root:c})=>{let f=Sl(tW),p=(0,Bd.useId)(),h=!0,g=(0,Bd.useMemo)(()=>(h=!1,{id:p,initial:t,isPresent:r,custom:n,onExitComplete:x=>{f.set(x,!0);for(let I of f.values())if(!I)return;a&&a()},register:x=>(f.set(x,!1),()=>f.delete(x))}),[r,f,a]);return o&&h&&(g={...g}),(0,Bd.useMemo)(()=>{f.forEach((x,I)=>f.set(I,!1))},[r]),x7.useEffect(()=>{!r&&!f.size&&a&&a()},[r]),e=(0,B1.jsx)(y7,{pop:i==="popLayout",isPresent:r,anchorX:s,anchorY:u,root:c,children:e}),(0,B1.jsx)(Qo.Provider,{value:g,children:e})};function tW(){return new Map}var ci=O(le(),1);function Vh(e=!0){let t=(0,ci.useContext)(Qo);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:a,register:n}=t,o=(0,ci.useId)();(0,ci.useEffect)(()=>
10{if(e)return n(o)},[e]);let i=(0,ci.useCallback)(()=>e&&a&&a(o),[o,a,e]);return!r&&a?[!1,i]:[!0]}var qh=O(le(),1),Fd=e=>e.key||"";function F1(e){let t=[];return qh.Children.forEach(e,r=>{(0,qh.isValidElement)(r)&&t.push(r)}),t}var j1=({children:e,custom:t,initial:r=!0,onExitComplete:a,presenceAffectsLayout:n=!0,mode:o="sync",propagate:i=!1,anchorX:s="left",anchorY:u="top",root:c})=>{let[f,p]=Vh(i),h=(0,Qn.useMemo)(()=>F1(e),[e]),g=i&&!f?[]:h.map(Fd),x=(0,Qn.useRef)(!0),I=(0,Qn.useRef)(h),S=Sl(()=>new Map),$=(0,Qn.useRef)(new Set),[T,k]=(0,Qn.useState)(h),[M,E]=(0,Qn.useState)(h);jm(()=>{x.current=!1,I.current=h;for(let q=0;q<M.length;q++){let Z=Fd(M[q]);g.includes(Z)?(S.delete(Z),$.current.delete(Z)):S.get(Z)!==!0&&S.set(Z,!1)}},[M,g.length,g.join("-")]);let z=[];if(h!==T){let q=[...h];for(let Z=0;Z<M.length;Z++){let W=M[Z],de=Fd(W);g.includes(de)||(q.splice(Z,0,W),z.push(W))}return o==="wait"&&z.length&&(q=z),E(F1(q)),k(h),null}let{forceRender:j}=(0,Qn.useContext)(kl);return(0,jd.jsx)(jd.Fragment,{children:M.map(q=>{let Z=Fd(q),W=i&&!f?!1:h===M||g.includes(Z),de=()=>{if($.current.has(Z))return;if(S.has(Z))$.current.add(Z),S.set(Z,!0);else return;let Q=!0;S.forEach(ht=>{ht||(Q=!1)}),Q&&(j?.(),E(I.current),i&&p?.(),a&&a())};return(0,jd.jsx)(b7,{isPresent:W,initial:!x.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:o,root:c,onExitComplete:W?void 0:de,anchorX:s,anchorY:u,children:q},Z)})})};var w7=O(le(),1),Gh=(0,w7.createContext)({strict:!1});var _7={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"]},k7=!1;function rW(){if(k7)return;let e={};for(let t in _7)e[t]={isEnabled:r=>_7[t].some(a=>!!r[a])};Pd(e),k7=!0}function Hh(){return rW(),h1()}function S7(e){let t=Hh();for(let r in e)t[r]={...t[r],...e[r]};Pd(t)}var nW=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 Zd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nW.has(e)}var I7=e=>!Zd(e);function aW(e){typeof e=="function"&&(I7=t=>t.startsWith("on")?!Zd(t):e(t))}try{aW(_T("@emotion/is-prop-valid").default)}catch{}function C7(e,t,r){let a={};for(let n in e)n==="values"&&typeof e.values=="object"||vt(e[n])||(I7(n)||r===!0&&Zd(n)||!t&&!Zd(n)||e.draggable&&n.startsWith("onDrag"))&&(a[n]=e[n]);return a}var Yh=O(J(),1);var Hl=O(le(),1);var T7=O(le(),1),di=(0,T7.createContext)({});var Wh=O(le(),1);function P7(e,t){if(ui(e)){let{initial:r,animate:a}=e;return{initial:r===!1||Ta(r)?r:void 0,animate:Ta(a)?a:void 0}}return e.inherit!==!1?t:{}}function L7(e){let{initial:t,animate:r}=P7(e,(0,Wh.useContext)(di));return(0,Wh.useMemo)(()=>({initial:t,animate:r}),[$7(t),$7(r)])}function $7(e){return Array.isArray(e)?e.join(" "):e}var Gl=O(le(),1);var A7=O(le(),1);var Vl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Z1(e,t,r){for(let a in t)!vt(t[a])&&!Md(a,r)&&(e[a]=t[a])}function oW({transformTemplate:e},t){return(0,A7.useMemo)(()=>{let r=Vl();return Ss(r,t,e),Object.assign({},r.vars,r.style)},[t])}function iW(e,t){let r=e.style||{},a={};return Z1(a,r,e),Object.assign(a,oW(e,t)),a}function E7(e,t){let r={},a=iW(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
10`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=a,r}var M7=O(le(),1);var Jh=()=>({...Vl(),attrs:{}});function R7(e,t,r,a){let n=(0,M7.useMemo)(()=>{let o=Jh();return zd(o,t,Dd(a),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};Z1(o,e.style,e),n.style={...o,...n.style}}return n}var z7=["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 ql(e){return typeof e!="string"||e.includes("-")?!1:!!(z7.indexOf(e)>-1||/[A-Z]/u.test(e))}function D7(e,t,r,{latestValues:a},n,o=!1,i){let u=(i??ql(e)?R7:E7)(t,a,n,e),c=C7(t,typeof e=="string",o),f=e!==Gl.Fragment?{...c,...u,ref:r}:{},{children:p}=t,h=(0,Gl.useMemo)(()=>vt(p)?p.get():p,[p]);return(0,Gl.createElement)(e,{...f,children:h})}var V1=O(le(),1);function sW({scrapeMotionValuesFromProps:e,createRenderState:t},r,a,n){return{latestValues:lW(r,a,n,e),renderState:t()}}function lW(e,t,r,a){let n={},o=a(e,{});for(let h in o)n[h]=Ps(o[h]);let{initial:i,animate:s}=e,u=ui(e),c=Id(e);t&&c&&!u&&e.inherit!==!1&&(i===void 0&&(i=t.initial),s===void 0&&(s=t.animate));let f=r?r.initial===!1:!1;f=f||i===!1;let p=f?s:i;if(p&&typeof p!="boolean"&&!lo(p)){let h=Array.isArray(p)?p:[p];for(let g=0;g<h.length;g++){let x=bs(e,h[g]);if(x){let{transitionEnd:I,transition:S,...$}=x;for(let T in $){let k=$[T];if(Array.isArray(k)){let M=f?k.length-1:0;k=k[M]}k!==null&&(n[T]=k)}for(let T in I)n[T]=I[T]}}}return n}var Kh=e=>(t,r)=>{let a=(0,V1.useContext)(di),n=(0,V1.useContext)(Qo),o=()=>sW(e,t,a,n);return r?o():Sl(o)};var N7=Kh({scrapeMotionValuesFromProps:Is,createRenderState:Vl});var O7=Kh({scrapeMotionValuesFromProps:Nd,createRenderState:Jh});var U7=Symbol.for("motionComponentSymbol");var As=O(le(),1);function B7(e,t,r){let a=(0,As.useRef)(r);(0,As.useInsertionEffect)(()=>{a.current=r});let n=(0,As.useRef)(null);return(0,As.useCallback)(o=>{o&&e.onMount?.(o);let i=a.current;if(typeof i=="function")if(o){let s=i(o);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):i(o);else i&&(i.current=o);t&&(o?t.mount(o):t.unmount())},[t])}var Nr=O(le(),1);var F7=O(le(),1),Xh=(0,F7.createContext)({});function fi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j7(e,t,r,a,n,o){let{visualElement:i}=(0,Nr.useContext)(di),s=(0,Nr.useContext)(Gh),u=(0,Nr.useContext)(Qo),c=(0,Nr.useContext)(Zl),f=c.reducedMotion,p=c.skipAnimations,h=(0,Nr.useRef)(null),g=(0,Nr.useRef)(!1);a=a||s.renderer,!h.current&&a&&(h.current=a(e,{visualState:t,parent:i,props:r,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f,skipAnimations:p,isSVG:o}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let x=h.current,I=(0,Nr.useContext)(Xh);x&&!x.projection&&n&&(x.type==="html"||x.type==="svg")&&uW(h.current,r,n,I);let S=(0,Nr.useRef)(!1);(0,Nr.useInsertionEffect)(()=>{x&&S.current&&x.update(r,u)});let $=r[wd],T=(0,Nr.useRef)(!!$&&typeof window<"u"&&!window.MotionHandoffIsComplete?.($)&&window.MotionHasOptimisedAnimation?.($));return jm(()=>{g.current=!0,x&&(S.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),T.current&&x.animationState&&x.animationState.animateChanges())}),(0,Nr.useEffect)(()=>{x&&(!T.current&&x.animationState&&x.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.($)}),T.current=!1),x.enteringChildren=void 0)}),x}function uW(e,t,r,a){let{layoutId:n,layout:o,drag:i,dragConstraints:s,layoutScroll:u,layoutRoot:c,layoutAnchor:f,layoutCrossfade:p}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Z7(e.parent)),e.projection.setOptions({layoutId:n,layout:o,alwaysMeasureLayout:!!i||s&&fi(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:a,crossfade:p,layoutScroll:u,layoutRoot:c,layoutAnchor:f})}function Z7(e){if(e)return e.options.allowProjection!==!1?e.projection:Z7(e.parent)}function Qh(e,{forwardMotionProps:t=!1,type:r}={},a,n){a&&S7(a);let o=r?r==="svg":ql(e),i=o?O7:N7;function s(c,f){let p,h={...(0,Hl.useContext)(Zl),...c,layoutId:cW(c)},{isStatic:g}=h,x=L7(c),I=i(c,g);if(!g&&typeof window<"u"){dW(h,a);let S=fW(h);p=S.MeasureLayout,x.visualElement=j7(e,I,h,n,S.ProjectionNode,o)}return(0,Yh.jsxs)(di.Provider,{value:x,children:[p&&x.visualElement?(0,Yh.jsx)(p,{visualElement:x.visualElement,...h}):null,D7(e,c,B7(I,x.visualElement,f),I,g,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let u=(0,Hl.forwardRef)(s);return u[U7]=e,u}function cW({layoutId:e}){let t=(0,Hl.useContext)(kl).id;return t&&e!==void 0?t+"-"+e:e}function dW(e,t){let r=(0,Hl.useContext)(Gh).strict}function fW(e){let t=Hh(),{drag:r,layout:a}=t;if(!r&&!a)return{};let n={...r,...a};return{MeasureLayout:r?.isEnabled(e)||a?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
10function V7(e,t){if(typeof Proxy>"u")return Qh;let r=new Map,a=(o,i)=>Qh(o,i,e,t),n=(o,i)=>a(o,i);return new Proxy(n,{get:(o,i)=>i==="create"?a:(r.has(i)||r.set(i,Qh(i,void 0,e,t)),r.get(i))})}var q7=O(le(),1);var G7=(e,t)=>t.isSVG??ql(e)?new Od(t):new Rd(t,{allowProjection:e!==q7.Fragment});var eg=class extends dr{constructor(t){super(t),t.animationState||(t.animationState=I1(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();lo(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 pW=0,tg=class extends dr{constructor(){super(...arguments),this.id=pW++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===a)return;if(t&&a===!1){if(this.isExitComplete){let{initial:o,custom:i}=this.node.getProps();if(typeof o=="string"){let s=fn(this.node,o,i);if(s){let{transition:u,transitionEnd:c,...f}=s;for(let p in f)this.node.getValue(p)?.jump(f[p])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);r&&!t&&n.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 H7={animation:{Feature:eg},exit:{Feature:tg}};function fo(e){return{point:{x:e.pageX,y:e.pageY}}}var W7=e=>t=>ks(t)&&e(t,fo(t));function pi(e,t,r,a){return Pa(e,t,W7(r),a)}var rg=({current:e})=>e?e.ownerDocument.defaultView:null;var J7=(e,t)=>Math.abs(e-t);function K7(e,t){let r=J7(e.x,t.x),a=J7(e.y,t.y);return Math.sqrt(r**2+a**2)}var X7=new Set(["auto","scroll"]),Wl=class{constructor(t,r,{transformPagePoint:a,contextWindow:n=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=g=>{this.handleScroll(g.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ng(this.lastRawMoveEventInfo,this.transformPagePoint));let g=q1(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,I=K7(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!I)return;let{point:S}=g,{timestamp:$}=Wt;this.history.push({...S,timestamp:$});let{onStart:T,onMove:k}=this.handlers;x||(T&&T(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,g)},this.handlePointerMove=(g,x)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=x,this.lastMoveEventInfo=ng(x,this.transformPagePoint),He.update(this.updatePoint,!0)},this.handlePointerUp=(g,x)=>{this.end();let{onEnd:I,onSessionEnd:S,resumeAnimation:$}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let T=q1(g.type==="pointercancel"?this.lastMoveEventInfo:ng(x,this.transformPagePoint),this.history);this.startEvent&&I&&I(g,T),S&&S(g,T)},!ks(t))return;this.dragSnapToOrigin=o,this.handlers=r,this.transformPagePoint=a,this.distanceThreshold=i,this.contextWindow=n||window;let u=fo(t),c=ng(u,this.transformPagePoint),{point:f}=c,{timestamp:p}=Wt;this.history=[{...f,timestamp:p}];let{onSessionStart:h}=r;h&&h(t,q1(c,this.history)),this.removeListeners=Kn(pi(this.contextWindow,"pointermove",this.handlePointerMove),pi(this.contextWindow,"pointerup",this.handlePointerUp),pi(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let a=getComputedStyle(r);(X7.has(a.overflowX)||X7.has(a.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 a=t===window,n=a?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:n.x-r.x,y:n.y-r.y};o.x===0&&o.y===0||(a?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,n),He.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Xr(this.updatePoint)}};function ng(e,t){return t?{point:t(e.point)}:e}function Y7(e,t){return{x:e.x-t.x,y:e.y-t.y}}function q1({point:e},t){return{point:e,delta:Y7(e,Q7(t)),offset:Y7(e,mW(t)),velocity:hW(t,.1)}}function mW(e){return e[0]}function Q7(e){return e[e.length-1]}function hW(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,a=null,n=Q7(e);for(;r>=0&&(a=e[r],!(n.timestamp-a.timestamp>Yt(t)));)r--;if(!a)return{x:0,y:0};a===e[0]&&e.length>2&&n.timestamp-a.timestamp>Yt(t)*2&&(a=e[1]);let o=yr(n.timestamp-a.timestamp);if(o===0)return{x:0,y:0};let i={x:(n.x-a.x)/o,y:(n.y-a.y)/o};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function aL(e,{min:t,max:r},a){return t!==void 0&&e<t?e=a?at(t,e,a.min):Math.max(e,t):r!==void 0&&e>
10r&&(e=a?at(r,e,a.max):Math.min(e,r)),e}function eL(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 oL(e,{top:t,left:r,bottom:a,right:n}){return{x:eL(e.x,r,n),y:eL(e.y,t,a)}}function tL(e,t){let r=t.min-e.min,a=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,a]=[a,r]),{min:r,max:a}}function iL(e,t){return{x:tL(e.x,t.x),y:tL(e.y,t.y)}}function sL(e,t){let r=.5,a=ar(e),n=ar(t);return n>a?r=_a(t.min,t.max-a,e.min):a>n&&(r=_a(e.min,e.max-n,t.min)),ur(0,1,r)}function lL(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 ag=.35;function uL(e=ag){return e===!1?e=0:e===!0&&(e=ag),{x:rL(e,"left","right"),y:rL(e,"top","bottom")}}function rL(e,t,r){return{min:nL(e,t),max:nL(e,r)}}function nL(e,t){return typeof e=="number"?e:e[t]||0}var gW=new WeakMap,ig=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=Dt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:a}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let o=p=>{r&&this.snapToCursor(fo(p).point),this.stopAnimation()},i=(p,h)=>{let{drag:g,dragPropagation:x,onDragStart:I}=this.getProps();if(g&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=i1(g),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pn($=>{let T=this.getAxisMotionValue($).get()||0;if(Tr.test(T)){let{projection:k}=this.visualElement;if(k&&k.layout){let M=k.layout.layoutBox[$];M&&(T=ar(M)*(parseFloat(T)/100))}}this.originPoint[$]=T}),I&&He.update(()=>I(p,h),!1,!0),Rl(this.visualElement,"transform");let{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},s=(p,h)=>{this.latestPointerEvent=p,this.latestPanInfo=h;let{dragPropagation:g,dragDirectionLock:x,onDirectionLock:I,onDrag:S}=this.getProps();if(!g&&!this.openDragLock)return;let{offset:$}=h;if(x&&this.currentDirection===null){this.currentDirection=yW($),this.currentDirection!==null&&I&&I(this.currentDirection);return}this.updateAxis("x",h.point,$),this.updateAxis("y",h.point,$),this.visualElement.render(),S&&He.update(()=>S(p,h),!1,!0)},u=(p,h)=>{this.latestPointerEvent=p,this.latestPanInfo=h,this.stop(p,h),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:p}=this.getProps();(p||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new Wl(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:a,contextWindow:rg(this.visualElement),element:this.visualElement.current})}stop(t,r){let a=t||this.latestPointerEvent,n=r||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!n||!a)return;let{velocity:i}=n;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&He.postRender(()=>s(a,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:a}=this.getProps();!a&&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,a){let{drag:n}=this.getProps();if(!a||!og(t,n,this.currentDirection))return;let o=this.getAxisMotionValue(t),i=this.originPoint[t]+a[t];this.constraints&&this.constraints[t]&&(i=aL(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&fi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&a?this.constraints=oL(a.layoutBox,t):this.constraints=!1,this.elastic=uL(r),n!==this.constraints&&!fi(t)&&a&&this.constraints&&!this.hasMutatedConstraints&&pn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lL(a.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!fi(t))return!1;let a=t.current;An(a!==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:n}=this.visualElement;if(!n||!n.layout)return!1;let o=_1(a,n.root,this.visualElement.getTransformPagePoint()),i=iL(n.layout.layoutBox,o);if(r){let s=r(g1(i));this.hasMutatedConstraints=!!s,s&&(i=$d(s))}return i}startAnimation(t){let{drag:r,dragMomentum:a,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),u=this.constraints||{},c=pn(f=>{if(!og(f,r,this.currentDirection))return;let p=u&&u[f]||{};(i===!0||i===f)&&(p={min:0,max:0});let h=n?200:1e6,g=n?40:1e7,x={type:"inertia",velocity:a?t[f]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...p};return this.startAxisValueAnimation(f,x)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let a=this.getAxisMotionValue(t);return Rl(this.visualElement,t),a.start(xs(t,a,0,r,this.visualElement,!1))}stopAnimation(){pn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps(),n=a[r];return n||this.visualElement.getValue(t,(a.initial?a.initial[t]:void 0)||0)}snapToCursor(t){pn(r=>{let{drag:a}=this.getProps();if(!og(r,a,this.currentDirection))return;let{projection:n}=this.visualElement,o=this.getAxisMotionValue(r);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[r],u=o.get()||0;o.set(t[r]-at(i,s,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:a}=this.visualElement;if(!fi(r)||!a||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};pn(i=>{let s=this.getAxisMotionValue(i);if(s&&this.constraints!==!1){let u=s.get();n[i]=sL({min:u,max:u},this.constraints[i])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.constraints=!1,this.resolveConstraints(),pn(i=>{if(!og(i,t,null))return;let s=this.getAxisMotionValue(i),{min:u,max:c}=this.constraints[i];s.set(at(u,c,n[i]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;gW.set(this.visualElement,this);let t=this.visualElement.current,r=pi(t,"pointerdown",c=>{let{drag:f,dragListener:p=!0}=this.getProps(),h=c.target,g=h!==t&&c1(h);f&&p&&!g&&this.start(c)}),a,n=()=>{let{dragConstraints:c}=this.getProps();fi(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),a||(a=vW(t,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),He.read(n);let s=Pa(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(pn(p=>{let h=this.getAxisMotionValue(p);h&&(this.originPoint[p]+=c[p].translate,h.set(h.get()+c[p].translate))}),this.visualElement.render())}));return()=>{s(),r(),i(),u&&u(),a&&a()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:a=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=ag,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:a,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:s}}};function cL(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vW(e,t,r){let a=Lh(e,cL(r)),n=Lh(t,cL(r));return()=>{a(),n()}}function og(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function yW(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var sg=class extends dr{constructor(t){super(t),this.removeGroupControls=Ft,this.removeListeners=Ft,this.controls=new ig(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ft}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 G1=e=>(t,r)=>{e&&He.update(()=>e(t,r),!1,!0)},lg=class extends dr{constructor(){super(...arguments),this.removePointerDownListener=Ft}onPointerDown(t){this.session=new Wl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rg(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:a,onPanEnd:n}=this.node.getProps();return{onSessionStart:G1(t),onStart:G1(r),onMove:G1(a),onEnd:(o,i)=>{delete this.session,n&&He.postRender(()=>n(o,i))}}}mount(){this.removePointerDownListener=pi(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 dL=O(J(),1);var Vd=O(le(),1);var H1=!1,W1=class extends Vd.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a,layoutId:n}=this.props,{projection:o}=t;o&&(r.group&&r.group.add(o),a&&a.register&&n&&a.register(o),H1&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$s.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:a,drag:n,isPresent:o}=this.props,{projection:i}=a;return i&&(i.isPresent=o,t.layoutDependency!==r&&i.setOptions({...i.options,layoutDependency:r}
10),H1=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==o?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||He.postRender(()=>{let s=i.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:a}=t;a&&(a.options.layoutAnchor=r,a.root.didUpdate(),_s.postRender(()=>{!a.currentAnimation&&a.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:a}=this.props,{projection:n}=t;H1=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),a&&a.deregister&&a.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function ug(e){let[t,r]=Vh(),a=(0,Vd.useContext)(kl);return(0,dL.jsx)(W1,{...e,layoutGroup:a,switchLayoutGroup:(0,Vd.useContext)(Xh),isPresent:t,safeToRemove:r})}var fL={pan:{Feature:lg},drag:{Feature:sg,ProjectionNode:Ud,MeasureLayout:ug}};function pL(e,t,r){let{props:a}=e;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,o=a[n];o&&He.postRender(()=>o(t,fo(t)))}var cg=class extends dr{mount(){let{current:t}=this.node;t&&(this.unmount=s1(t,(r,a)=>(pL(this.node,a,"Start"),n=>pL(this.node,n,"End"))))}unmount(){}};var dg=class extends dr{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=Kn(Pa(this.node.current,"focus",()=>this.onFocus()),Pa(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function mL(e,t,r){let{props:a}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),o=a[n];o&&He.postRender(()=>o(t,fo(t)))}var fg=class extends dr{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:a}=this.node.props;this.unmount=f1(t,(n,o)=>(mL(this.node,o,"Start"),(i,{success:s})=>mL(this.node,i,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:a?.tap===!1})}unmount(){}};var K1=new WeakMap,J1=new WeakMap,xW=e=>{let t=K1.get(e.target);t&&t(e)},bW=e=>{e.forEach(xW)};function wW({root:e,...t}){let r=e||document;J1.has(r)||J1.set(r,{});let a=J1.get(r),n=JSON.stringify(t);return a[n]||(a[n]=new IntersectionObserver(bW,{root:e,...t})),a[n]}function hL(e,t,r){let a=wW(t);return K1.set(e,r),a.observe(e),()=>{K1.delete(e),a.unobserve(e)}}var _W={some:0,all:1},pg=class extends dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:a,amount:n="some",once:o}=t,i={root:r?r.current:void 0,rootMargin:a,threshold:typeof n=="number"?n:_W[n]},s=u=>{let{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:f,onViewportLeave:p}=this.node.getProps(),h=c?f:p;h&&h(u)};this.stopObserver=hL(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(kW(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function kW({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var gL={inView:{Feature:pg},tap:{Feature:fg},focus:{Feature:dg},hover:{Feature:cg}};var vL={layout:{ProjectionNode:Ud,MeasureLayout:ug}};var yL={...H7,...gL,...fL,...vL};var X1=V7(yL,G7);var n6e=O(le());var SW=e=>{let t=CW(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:i=>{let s=i.split("-");return s[0]===""&&s.length!==1&&s.shift(),wL(s,t)||IW(i)},getConflictingClassGroupIds:(i,s)=>{let u=r[i]||[];return s&&a[i]?[...u,...a[i]]:u}}},wL=(e,t)=>{if(e.length===0)return t.classGroupId;let r=e[0],a=t.nextPart.get(r),n=a?wL(e.slice(1),a):void 0;if(n)return n;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},xL=/^\[(.+)\]$/,IW=e=>{if(xL.test(e)){let t=xL.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},CW=e=>{let{theme:t,prefix:r}=e,a={nextPart:new Map,validators:[]};return PW(Object.entries(e.classGroups),r).forEach(([o,i])=>{Q1(i,a,o,t)}),a},Q1=(e,t,r,a)=>{e.forEach(n=>{if(typeof n=="string"){let o=n===""?t:bL(t,n);o.classGroupId=r;return}if(typeof n=="function"){if(TW(n)){Q1(n(a),t,r,a);return}t.validators.push({validator:n,classGroupId:r});return}
vendor: 4,786 bytes, line 10
10Object.entries(n).forEach(([o,i])=>{Q1(i,bL(t,o),r,a)})})},bL=(e,t)=>{let r=e;return t.split("-").forEach(a=>{r.nextPart.has(a)||r.nextPart.set(a,{nextPart:new Map,validators:[]}),r=r.nextPart.get(a)}),r},TW=e=>e.isThemeGetter,PW=(e,t)=>t?e.map(([r,a])=>{let n=a.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,s])=>[t+i,s])):o);return[r,n]}):e,$W=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,a=new Map,n=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,a=r,r=new Map)};return{get(o){let i=r.get(o);if(i!==void 0)return i;if((i=a.get(o))!==void 0)return n(o,i),i},set(o,i){r.has(o)?r.set(o,i):n(o,i)}}};var LW=e=>{let{separator:t,experimentalParseClassName:r}=e,a=t.length===1,n=t[0],o=t.length,i=s=>{let u=[],c=0,f=0,p;for(let S=0;S<s.length;S++){let $=s[S];if(c===0){if($===n&&(a||s.slice(S,S+o)===t)){u.push(s.slice(f,S)),f=S+o;continue}if($==="/"){p=S;continue}}$==="["?c++:$==="]"&&c--}let h=u.length===0?s:s.substring(f),g=h.startsWith("!"),x=g?h.substring(1):h,I=p&&p>f?p-f:void 0;return{modifiers:u,hasImportantModifier:g,baseClassName:x,maybePostfixModifierPosition:I}};return r?s=>r({className:s,parseClassName:i}):i},AW=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(a=>{a[0]==="["?(t.push(...r.sort(),a),r=[]):r.push(a)}),t.push(...r.sort()),t},EW=e=>({cache:$W(e.cacheSize),parseClassName:LW(e),...SW(e)}),MW=/\s+/,RW=(e,t)=>{let{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:n}=t,o=[],i=e.trim().split(MW),s="";for(let u=i.length-1;u>=0;u-=1){let c=i[u],{modifiers:f,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:g}=r(c),x=!!g,I=a(x?h.substring(0,g):h);if(!I){if(!x){s=c+(s.length>0?" "+s:s);continue}if(I=a(h),!I){s=c+(s.length>0?" "+s:s);continue}x=!1}let S=AW(f).join(":"),$=p?S+"!":S,T=$+I;if(o.includes(T))continue;o.push(T);let k=n(I,x);for(let M=0;M<k.length;++M){let E=k[M];o.push($+E)}s=c+(s.length>0?" "+s:s)}return s};function zW(){let e=0,t,r,a="";for(;e<arguments.length;)(t=arguments[e++])&&(r=_L(t))&&(a&&(a+=" "),a+=r);return a}var _L=e=>{if(typeof e=="string")return e;let t,r="";for(let a=0;a<e.length;a++)e[a]&&(t=_L(e[a]))&&(r&&(r+=" "),r+=t);return r};function DW(e,...t){let r,a,n,o=i;function i(u){let c=t.reduce((f,p)=>p(f),e());return r=EW(c),a=r.cache.get,n=r.cache.set,o=s,s(u)}function s(u){let c=a(u);if(c)return c;let f=RW(u,r);return n(u,f),f}return function(){return o(zW.apply(null,arguments))}}var At=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},kL=/^\[(?:([a-z-]+):)?(.+)\]$/i,NW=/^\d+\/\d+$/,OW=new Set(["px","full","screen"]),UW=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,BW=/\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$/,FW=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jW=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ZW=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,po=e=>Jl(e)||OW.has(e)||NW.test(e),mi=e=>Kl(e,"length",XW),Jl=e=>!!e&&!Number.isNaN(Number(e)),Y1=e=>Kl(e,"number",Jl),qd=e=>!!e&&Number.isInteger(Number(e)),VW=e=>e.endsWith("%")&&Jl(e.slice(0,-1)),Ke=e=>kL.test(e),hi=e=>UW.test(e),qW=new Set(["length","size","percentage"]),GW=e=>Kl(e,qW,SL),HW=e=>Kl(e,"position",SL),WW=new Set(["image","url"]),JW=e=>Kl(e,WW,QW),KW=e=>Kl(e,"",YW),Gd=()=>!0,Kl=(e,t,r)=>{let a=kL.exec(e);return a?a[1]?typeof t=="string"?a[1]===t:t.has(a[1]):r(a[2]):!1},XW=e=>BW.test(e)&&!FW.test(e),SL=()=>!1,YW=e=>jW.test(e),QW=e=>ZW.test(e);var eJ=()=>{let e=At("colors"),t=At("spacing"),r=At("blur"),a=At("brightness"),n=At("borderColor"),o=At("borderRadius"),i=At("borderSpacing"),s=At("borderWidth"),u=At("contrast"),c=At("grayscale"),f=At("hueRotate"),p=At("invert"),h=At("gap"),g=At("gradientColorStops"),x=At("gradientColorStopPositions"),I=At("inset"),S=At("margin"),$=At("opacity"),T=At("padding"),k=At("saturate"),M=At("scale"),E=At("sepia"),z=At("skew"),j=At("space"),q=At("translate"),Z=()=>["auto","contain","none"],W=()=>["auto","hidden","clip","visible","scroll"],de=()=>["auto",Ke,t],Q=()=>[Ke,t],ht=()=>["",po,mi],Ce=()=>["auto",Jl,Ke],Fe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ve=()=>["solid","dashed","dotted","double","none"],Mr=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>["start","end","center","between","around","evenly","stretch"],Ne=()=>["","0",Ke],ot=()=>["auto","avoid","all","avoid-page","page","left","right","column"],qe=()=>[Jl,Ke];return{cacheSize:500,separator:":",theme:{colors:[Gd],spacing:[po,mi],blur:["none","",hi,Ke],brightness:qe(),borderColor:[e],borderRadius:["n
10one","","full",hi,Ke],borderSpacing:Q(),borderWidth:ht(),contrast:qe(),grayscale:Ne(),hueRotate:qe(),invert:Ne(),gap:Q(),gradientColorStops:[e],gradientColorStopPositions:[VW,mi],inset:de(),margin:de(),opacity:qe(),padding:Q(),saturate:qe(),scale:qe(),sepia:Ne(),skew:qe(),space:Q(),translate:Q()},classGroups:{aspect:[{aspect:["auto","square","video",Ke]}],container:["container"],columns:[{columns:[hi]}],"break-after":[{"break-after":ot()}],"break-before":[{"break-before":ot()}],"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:[...Fe(),Ke]}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[I]}],"inset-x":[{"inset-x":[I]}],"inset-y":[{"inset-y":[I]}],start:[{start:[I]}],end:[{end:[I]}],top:[{top:[I]}],right:[{right:[I]}],bottom:[{bottom:[I]}],left:[{left:[I]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qd,Ke]}],basis:[{basis:de()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Ke]}],grow:[{grow:Ne()}],shrink:[{shrink:Ne()}],order:[{order:["first","last","none",qd,Ke]}],"grid-cols":[{"grid-cols":[Gd]}],"col-start-end":[{col:["auto",{span:["full",qd,Ke]},Ke]}],"col-start":[{"col-start":Ce()}],"col-end":[{"col-end":Ce()}],"grid-rows":[{"grid-rows":[Gd]}],"row-start-end":[{row:["auto",{span:[qd,Ke]},Ke]}],"row-start":[{"row-start":Ce()}],"row-end":[{"row-end":Ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Ke]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Ke]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...fe()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...fe(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...fe(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[T]}],px:[{px:[T]}],py:[{py:[T]}],ps:[{ps:[T]}],pe:[{pe:[T]}],pt:[{pt:[T]}],pr:[{pr:[T]}],pb:[{pb:[T]}],pl:[{pl:[T]}],m:[{m:[S]}],mx:[{mx:[S]}],my:[{my:[S]}],ms:[{ms:[S]}],me:[{me:[S]}],mt:[{mt:[S]}],mr:[{mr:[S]}],mb:[{mb:[S]}],ml:[{ml:[S]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Ke,t]}],"min-w":[{"min-w":[Ke,t,"min","max","fit"]}],"max-w":[{"max-w":[Ke,t,"none","full","min","max","fit","prose",{screen:[hi]},hi]}],h:[{h:[Ke,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Ke,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Ke,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Ke,t,"auto","min","max","fit"]}],"font-size":[{text:["base",hi,mi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Y1]}],"font-family":[{font:[Gd]}],"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",Ke]}],"line-clamp":[{"line-clamp":["none",Jl,Y1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",po,Ke]}],"list-image":[{"list-image":["none",Ke]}],"list-style-type":[{list:["none","disc","decimal",Ke]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",po,mi]}],"underline-offset":[{"underline-offset":["auto",po,Ke]}],"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:Q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ke]}],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",Ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Fe(),HW]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",GW]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JW]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}
vendor: 4,246 bytes, line 10
10],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],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":[$]}],"border-style":[{border:[...ve(),"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":[$]}],"divide-style":[{divide:ve()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...ve()]}],"outline-offset":[{"outline-offset":[po,Ke]}],"outline-w":[{outline:[po,mi]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:ht()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[po,mi]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",hi,KW]}],"shadow-color":[{shadow:[Gd]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...Mr(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Mr()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[a]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",hi,Ke]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[p]}],saturate:[{saturate:[k]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[a]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[k]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"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",Ke]}],duration:[{duration:qe()}],ease:[{ease:["linear","in","out","in-out",Ke]}],delay:[{delay:qe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Ke]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[qd,Ke]}],"translate-x":[{"translate-x":[q]}],"translate-y":[{"translate-y":[q]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Ke]}],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",
10Ke]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Q()}],"scroll-mx":[{"scroll-mx":Q()}],"scroll-my":[{"scroll-my":Q()}],"scroll-ms":[{"scroll-ms":Q()}],"scroll-me":[{"scroll-me":Q()}],"scroll-mt":[{"scroll-mt":Q()}],"scroll-mr":[{"scroll-mr":Q()}],"scroll-mb":[{"scroll-mb":Q()}],"scroll-ml":[{"scroll-ml":Q()}],"scroll-p":[{"scroll-p":Q()}],"scroll-px":[{"scroll-px":Q()}],"scroll-py":[{"scroll-py":Q()}],"scroll-ps":[{"scroll-ps":Q()}],"scroll-pe":[{"scroll-pe":Q()}],"scroll-pt":[{"scroll-pt":Q()}],"scroll-pr":[{"scroll-pr":Q()}],"scroll-pb":[{"scroll-pb":Q()}],"scroll-pl":[{"scroll-pl":Q()}],"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"]}],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",Ke]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[po,mi,Y1]}],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 IL=DW(eJ);function be(...e){return IL(Am(e))}var CL=O(J());function mo({className:e,...t}){return(0,CL.jsx)("div",{"data-slot":"card",className:be("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}var Hd=O(le());var ew=O(J());var s6e=Hd.createContext(null);var TL=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,PL=Am,ea=(e,t)=>r=>{var a;if(t?.variants==null)return PL(e,r?.class,r?.className);let{variants:n,defaultVariants:o}=t,i=Object.keys(n).map(c=>{let f=r?.[c],p=o?.[c];if(f===null)return null;let h=TL(f)||TL(p);return n[c][h]}),s=r&&Object.entries(r).reduce((c,f)=>{let[p,h]=f;return h===void 0||(c[p]=h),c},{}),u=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((c,f)=>{let{class:p,className:h,...g}=f;return Object.entries(g).every(x=>{let[I,S]=x;return Array.isArray(S)?S.includes({...o,...s}[I]):{...o,...s}[I]===S})?[...c,p,h]:c},[]);return PL(e,i,u,r?.class,r?.className)};var tJ=O(J());var p6e=ea("flex shrink-0 items-center justify-center mb-2 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-transparent",icon:"bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"}},defaultVariants:{variant:"default"}});var rJ=O(J());var $L=O(J());var _6e=O(le());var fr=O(le(),1);var AL=O(le(),1);function LL(e,t){if(typeof e=="function")return e(t);
10e!=null&&(e.current=t)}function tw(...e){return t=>{let r=!1,a=e.map(n=>{let o=LL(n,t);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let n=0;n<a.length;n++){let o=a[n];typeof o=="function"?o():LL(e[n],null)}}}}function ho(...e){return AL.useCallback(tw(...e),e)}var mg=O(J(),1);function rw(e){let t=nJ(e),r=fr.forwardRef((a,n)=>{let{children:o,...i}=a,s=fr.Children.toArray(o),u=s.find(oJ);if(u){let c=u.props.children,f=s.map(p=>p===u?fr.Children.count(c)>1?fr.Children.only(null):fr.isValidElement(c)?c.props.children:null:p);return(0,mg.jsx)(t,{...i,ref:n,children:fr.isValidElement(c)?fr.cloneElement(c,void 0,f):null})}return(0,mg.jsx)(t,{...i,ref:n,children:o})});return r.displayName=`${e}.Slot`,r}var EL=rw("Slot");function nJ(e){let t=fr.forwardRef((r,a)=>{let{children:n,...o}=r;if(fr.isValidElement(n)){let i=sJ(n),s=iJ(o,n.props);return n.type!==fr.Fragment&&(s.ref=a?tw(a,i):i),fr.cloneElement(n,s)}return fr.Children.count(n)>1?fr.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var aJ=Symbol("radix.slottable");function oJ(e){return fr.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===aJ}function iJ(e,t){let r={...t};for(let a in t){let n=e[a],o=t[a];/^on[A-Z]/.test(a)?n&&o?r[a]=(...s)=>{let u=o(...s);return n(...s),u}:n&&(r[a]=n):a==="style"?r[a]={...n,...o}:a==="className"&&(r[a]=[n,o].filter(Boolean).join(" "))}return{...e,...r}}function sJ(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 lJ=O(J()),I6e=ea("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"}});var ML=O(J());var OL=O(J());var n8=O(le());var Z6e=O(le());var UL=O(J()),fJ=ea("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 xr({className:e,variant:t,size:r,asChild:a=!1,...n}){return(0,UL.jsx)(a?EL:"button",{"data-slot":"button",className:be(fJ({variant:t,size:r,className:e})),...n})}var o5e=O(le());var W6e=!!(typeof window<"u"&&window.document&&window.document.createElement);function gi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var go=O(le(),1),BL=O(J(),1);function FL(e,t=[]){let r=[];function a(o,i){let s=go.createContext(i),u=r.length;r=[...r,i];let c=p=>{let{scope:h,children:g,...x}=p,I=h?.[e]?.[u]||s,S=go.useMemo(()=>x,Object.values(x));return(0,BL.jsx)(I.Provider,{value:S,children:g})};c.displayName=o+"Provider";function f(p,h){let g=h?.[e]?.[u]||s,x=go.useContext(g);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${o}\``)}return[c,f]}let n=()=>{let o=r.map(i=>go.createContext(i));return function(s){let u=s?.[e]||o;return go.useMemo(()=>({[`__scope${e}`]:{...s,[e]:u}}),[s,u])}};return n.scopeName=e,[a,pJ(n,...t)]}function pJ(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let a=e.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(o){let i=a.reduce((s,{useScope:u,scopeName:c}
10)=>{let p=u(o)[`__scope${c}`];return{...s,...p}},{});return go.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}var jL=O(le(),1),Jd=globalThis?.document?jL.useLayoutEffect:()=>{};var ZL=O(le(),1),mJ=O(kT(),1);var VL=O(J(),1),hJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yl=hJ.reduce((e,t)=>{let r=rw(`Primitive.${t}`),a=ZL.forwardRef((n,o)=>{let{asChild:i,...s}=n,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,VL.jsx)(u,{...s,ref:o})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});var gg=O(le(),1),gJ=O(J(),1),vJ=gg.createContext(void 0);function qL(e){let t=gg.useContext(vJ);return e||t||"ltr"}var Ql=O(le(),1);function vi(e){let t=Ql.useRef(e);return Ql.useEffect(()=>{t.current=e}),Ql.useMemo(()=>(...r)=>t.current?.(...r),[])}var Yr=O(le(),1);var GL=O(le(),1);function yJ(e,t){return GL.useReducer((r,a)=>t[r][a]??r,e)}var eu=e=>{let{present:t,children:r}=e,a=xJ(t),n=typeof r=="function"?r({present:a.isPresent}):Yr.Children.only(r),o=ho(a.ref,bJ(n));return typeof r=="function"||a.isPresent?Yr.cloneElement(n,{ref:o}):null};eu.displayName="Presence";function xJ(e){let[t,r]=Yr.useState(),a=Yr.useRef(null),n=Yr.useRef(e),o=Yr.useRef("none"),i=e?"mounted":"unmounted",[s,u]=yJ(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Yr.useEffect(()=>{let c=vg(a.current);o.current=s==="mounted"?c:"none"},[s]),Jd(()=>{let c=a.current,f=n.current;if(f!==e){let h=o.current,g=vg(c);e?u("MOUNT"):g==="none"||c?.display==="none"?u("UNMOUNT"):u(f&&h!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,u]),Jd(()=>{if(t){let c,f=t.ownerDocument.defaultView??window,p=g=>{let I=vg(a.current).includes(CSS.escape(g.animationName));if(g.target===t&&I&&(u("ANIMATION_END"),!n.current)){let S=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},h=g=>{g.target===t&&(o.current=vg(a.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Yr.useCallback(c=>{a.current=c?getComputedStyle(c):null,r(c)},[])}}function vg(e){return e?.animationName||"none"}function bJ(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 HL=O(J());var WL=O(le());var JL=O(J()),yg=WL.forwardRef(({className:e,type:t,...r},a)=>(0,JL.jsx)("input",{ref:a,type:t,"data-slot":"input",className:be("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","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",e),...r}));yg.displayName="Input";var d5e=O(le());function KL(e,[t,r]){return Math.min(r,Math.max(t,e))}var XL=O(J());var m5e=O(le());var wJ=O(J());var a8=O(J());var Sg=O(le());var U5e=O(le());var Le=O(le(),1);var i8=O(le(),1),dt=O(J(),1);function MJ(e,t){return i8.useReducer((r,a)=>t[r][a]??r,e)}var aw="ScrollArea",[s8,O5e]=FL(aw),[RJ,Dn]=s8(aw),l8=Le.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:a="hover",dir:n,scrollHideDelay:o=600,...i}=e,[s,u]=Le.useState(null),[c,f]=Le.useState(null),[p,h]=Le.useState(null),[g,x]=Le.useState(null),[I,S]=Le.useState(null),[$,T]=Le.useState(0),[k,M]=Le.useState(0),[E,z]=Le.useState(!1),[j,q]=Le.useState(!1),Z=ho(t,de=>u(de)),W=qL(n);return(0,dt.jsx)(RJ,{scope:r,type:a,dir:W,scrollHideDelay:o,scrollArea:s,viewport:c,onViewportChange:f,content:p,onContentChange:h,scrollbarX:g,onScrollbarXChange:x,scrollbarXEnabled:E,onScrollbarXEnabledChange:z,scrollbarY:I,onScrollbarYChange:S,scrollbarYEnabled:j,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeight
vendor: 8,294 bytes, line 10
10Change:M,children:(0,dt.jsx)(Yl.div,{dir:W,...i,ref:Z,style:{position:"relative","--radix-scroll-area-corner-width":$+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});l8.displayName=aw;var u8="ScrollAreaViewport",c8=Le.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:a,nonce:n,...o}=e,i=Dn(u8,r),s=Le.useRef(null),u=ho(t,s,i.onViewportChange);return(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,dt.jsx)(Yl.div,{"data-radix-scroll-area-viewport":"",...o,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,dt.jsx)("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:a})})]})});c8.displayName=u8;var $a="ScrollAreaScrollbar",ow=Le.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=Dn($a,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:i}=n,s=e.orientation==="horizontal";return Le.useEffect(()=>(s?o(!0):i(!0),()=>{s?o(!1):i(!1)}),[s,o,i]),n.type==="hover"?(0,dt.jsx)(zJ,{...a,ref:t,forceMount:r}):n.type==="scroll"?(0,dt.jsx)(DJ,{...a,ref:t,forceMount:r}):n.type==="auto"?(0,dt.jsx)(d8,{...a,ref:t,forceMount:r}):n.type==="always"?(0,dt.jsx)(iw,{...a,ref:t}):null});ow.displayName=$a;var zJ=Le.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=Dn($a,e.__scopeScrollArea),[o,i]=Le.useState(!1);return Le.useEffect(()=>{let s=n.scrollArea,u=0;if(s){let c=()=>{window.clearTimeout(u),i(!0)},f=()=>{u=window.setTimeout(()=>i(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",c),s.addEventListener("pointerleave",f),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",c),s.removeEventListener("pointerleave",f)}}},[n.scrollArea,n.scrollHideDelay]),(0,dt.jsx)(eu,{present:r||o,children:(0,dt.jsx)(d8,{"data-state":o?"visible":"hidden",...a,ref:t})})}),DJ=Le.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=Dn($a,e.__scopeScrollArea),o=e.orientation==="horizontal",i=_g(()=>u("SCROLL_END"),100),[s,u]=MJ("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return Le.useEffect(()=>{if(s==="idle"){let c=window.setTimeout(()=>u("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(c)}},[s,n.scrollHideDelay,u]),Le.useEffect(()=>{let c=n.viewport,f=o?"scrollLeft":"scrollTop";if(c){let p=c[f],h=()=>{let g=c[f];p!==g&&(u("SCROLL"),i()),p=g};return c.addEventListener("scroll",h),()=>c.removeEventListener("scroll",h)}},[n.viewport,o,u,i]),(0,dt.jsx)(eu,{present:r||s!=="hidden",children:(0,dt.jsx)(iw,{"data-state":s==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:gi(e.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:gi(e.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),d8=Le.forwardRef((e,t)=>{let r=Dn($a,e.__scopeScrollArea),{forceMount:a,...n}=e,[o,i]=Le.useState(!1),s=e.orientation==="horizontal",u=_g(()=>{if(r.viewport){let c=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?c:f)}},10);return tu(r.viewport,u),tu(r.content,u),(0,dt.jsx)(eu,{present:a||o,children:(0,dt.jsx)(iw,{"data-state":o?"visible":"hidden",...n,ref:t})})}),iw=Le.forwardRef((e,t)=>{let{orientation:r="vertical",...a}=e,n=Dn($a,e.__scopeScrollArea),o=Le.useRef(null),i=Le.useRef(0),[s,u]=Le.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=h8(s.viewport,s.content),f={...a,sizes:s,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:h=>o.current=h,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:h=>i.current=h};function p(h,g){return jJ(h,i.current,s,g)}return r==="horizontal"?(0,dt.jsx)(NJ,{...f,ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let h=n.viewport.scrollLeft,g=o8(h,s,n.dir);o.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=p(h,n.dir))}}):r==="vertical"?(0,dt.jsx)(OJ,{...f,ref:t,onThumbPositionChange:()=>{if(n.viewport&&o.current){let h=n.viewport.scrollTop,g=o8(h,s);o.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=p(h))}}):null}),NJ=Le.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=Dn($a,e.__scopeScrollArea),[i,s]=Le.useState(),u=Le.useRef(null),c=ho(t,u,o.onScrollbarXChange);return Le.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),(0,dt.jsx)(p8,{"data-orientation":"horizontal",...n,ref:c,sizes:r,style:{bottom:0,left:o.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:o.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":wg(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.x),onDragScroll:f=>e.onDragScroll(f.x),onWheelScroll:(f,p)=>{if(o.viewport){let h=o.viewport.scrollLeft+f.deltaX;e.onWheelScroll(h),v8(h,p)&&f.preventDefault()}},onResize:()=>{u.current&&o.viewport&&i&&a({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:bg(i.paddingLeft),paddingEnd:bg(i.paddingRight)}})}})}),OJ=Le.forwardRef((e,t)=>{let{sizes:r,onSizesChange:a,...n}=e,o=Dn($a,e.__scopeScrollArea),[i,s]=Le.useState(),u=Le.useRef(null),c=ho(t,u,o.onScrollbarYChange);return Le.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),(0,dt.jsx)(p8,{"data-orientation":"vertical",...n,ref:c,sizes:r,style:{top:0,right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":wg(r)+"px",...e.style},onThumbPointerDown:f=>e.onThumbPointerDown(f.y),onDragScroll:f=>e.onDragScroll(f.y),onWheelScroll:(f,p)=>{if(o.viewport){let h=o.viewport.scrollTop+f.deltaY;e.onWheelScroll(h),v8(h,p)&&f.preventDefault()}},onResize:()=>{u.current&&o.viewport&&i&&a({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:bg(i.paddingTop),paddingEnd:bg(i.paddingBottom)}})}})}),[UJ,f8]=s8($a),p8=Le.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:a,hasThumb:n,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:f,onResize:p,...h}=e,g=Dn($a,r),[x,I]=Le.useState(null),S=ho(t,Z=>I(Z)),$=Le.useRef(null),T=Le.useRef(""),k=g.viewport,M=a.content-a.viewport,E=vi(f),z=vi(u),j=_g(p,10);function q(Z){if($.current){let W=Z.clientX-$.current.left,de=Z.clientY-$.current.top;c({x:W,y:de})}}return Le.useEffect(()=>{let Z=W=>{let de=W.target;x?.contains(de)&&E(W,M)};return document.addEventListener("wheel",Z,{passive:!1}),()=>document.removeEventListener("wheel",Z,{passive:!1})},[k,x,M,E]),Le.useEffect(z,[a,z]),tu(x,j),tu(g.content,j),(0,dt.jsx)(UJ,{scope:r,scrollbar:x,hasThumb:n,onThumbChange:vi(o),onThumbPointerUp:vi(i),onThumbPositionChange:z,onThumbPointerDown:vi(s),children:(0,dt.jsx)(Yl.div,{...h,ref:S,style:{position:"absolute",...h.style},onPointerDown:gi(e.onPointerDown,Z=>{Z.button===0&&(Z.target.setPointerCapture(Z.pointerId),$.current=x.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),q(Z))}),onPointerMove:gi(e.onPointerMove,q),onPointerUp:gi(e.onPointerUp,Z=>{let W=Z.target;W.hasPointerCapture(Z.pointerId)&&W.releasePointerCapture(Z.pointerId),document.body.style.webkitUserSelect=T.current,g.viewport&&(g.viewport.style.scrollBehavior=""),$.current=null})})})}),xg="ScrollAreaThumb",sw=Le.forwardRef((e,t)=>{let{forceMount:r,...a}=e,n=f8(xg,e.__scopeScrollArea);return(0,dt.jsx)(eu,{present:r||n.hasThumb,children:(0,dt.jsx)(BJ,{ref:t,...a})})}),BJ=Le.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:a,...n}=e,o=Dn(xg,r),i=f8(xg,r),{onThumbPositionChange:s}=i,u=ho(t,p=>i.onThumbChange(p)),c=Le.useRef(void 0),f=_g(()=>{c.current&&(c.current(),c.current=void 0)},100);return Le.useEffect(()=>{let p=o.viewport;if(p){let h=()=>
10{if(f(),!c.current){let g=ZJ(p,s);c.current=g,s()}};return s(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[o.viewport,f,s]),(0,dt.jsx)(Yl.div,{"data-state":i.hasThumb?"visible":"hidden",...n,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...a},onPointerDownCapture:gi(e.onPointerDownCapture,p=>{let g=p.target.getBoundingClientRect(),x=p.clientX-g.left,I=p.clientY-g.top;i.onThumbPointerDown({x,y:I})}),onPointerUp:gi(e.onPointerUp,i.onThumbPointerUp)})});sw.displayName=xg;var lw="ScrollAreaCorner",m8=Le.forwardRef((e,t)=>{let r=Dn(lw,e.__scopeScrollArea),a=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&a?(0,dt.jsx)(FJ,{...e,ref:t}):null});m8.displayName=lw;var FJ=Le.forwardRef((e,t)=>{let{__scopeScrollArea:r,...a}=e,n=Dn(lw,r),[o,i]=Le.useState(0),[s,u]=Le.useState(0),c=!!(o&&s);return tu(n.scrollbarX,()=>{let f=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(f),u(f)}),tu(n.scrollbarY,()=>{let f=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(f),i(f)}),c?(0,dt.jsx)(Yl.div,{...a,ref:t,style:{width:o,height:s,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function bg(e){return e?parseInt(e,10):0}function h8(e,t){let r=e/t;return isNaN(r)?0:r}function wg(e){let t=h8(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-r)*t;return Math.max(a,18)}function jJ(e,t,r,a="ltr"){let n=wg(r),o=n/2,i=t||o,s=n-i,u=r.scrollbar.paddingStart+i,c=r.scrollbar.size-r.scrollbar.paddingEnd-s,f=r.content-r.viewport,p=a==="ltr"?[0,f]:[f*-1,0];return g8([u,c],p)(e)}function o8(e,t,r="ltr"){let a=wg(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-n,i=t.content-t.viewport,s=o-a,u=r==="ltr"?[0,i]:[i*-1,0],c=KL(e,u);return g8([0,i],[0,s])(c)}function g8(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(r-e[0])}}function v8(e,t){return e>0&&e<t}var ZJ=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},a=0;return(function n(){let o={left:e.scrollLeft,top:e.scrollTop},i=r.left!==o.left,s=r.top!==o.top;(i||s)&&t(),r=o,a=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(a)};function _g(e,t){let r=vi(e),a=Le.useRef(0);return Le.useEffect(()=>()=>window.clearTimeout(a.current),[]),Le.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(r,t)},[r,t])}function tu(e,t){let r=vi(t);Jd(()=>{let a=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(a),n.unobserve(e)}}},[e,r])}var y8=l8,x8=c8;var b8=m8;var yi=O(J());function uw({className:e,children:t,...r}){return(0,yi.jsxs)(y8,{"data-slot":"scroll-area",className:be("relative",e),...r,children:[(0,yi.jsx)(x8,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),(0,yi.jsx)(kg,{}),(0,yi.jsx)(b8,{})]})}function kg({className:e,orientation:t="vertical",...r}){return(0,yi.jsx)(ow,{"data-slot":"scroll-area-scrollbar",orientation:t,className:be("flex touch-none p-px transition-colors select-none",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:(0,yi.jsx)(sw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var w8=O(J());var I8=O(le());var Q5e=O(le());var qJ=O(J());var Kd=O(le());var rCe=O(le());var GJ=O(J());var HJ=O(J());var lCe=Kd.createContext({});var uCe=Kd.createContext({});var _8=O(J());function cw({className:e,...t}){return(0,_8.jsx)(wa,{role:"status","aria-label":"Loading",className:be("size-4 animate-spin",e),...t})}var k8=O(le());var S8=O(J()),Ig=k8.forwardRef(({className:e,...t},r)=>(0,S8.jsx)("textarea",{ref:r,"data-slot":"textarea",className:be("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}));Ig.displayName="Textarea";var C8=O(J());var t9="vercel.ai.error",JJ=Symbol.for(t9),T8,P8,lt=class r9 extends(P8=Error,T8=JJ,P8){constructor({name:t,message:r,cause:a}){super(r),this[T8]=!0,this.name=t,this.cause=a}static isInstance(t){return r9.hasMarker(t,t9)}static hasMarker(t,r){let a=Symbol.for(r);return t!=null&&typeof t=="object"&&a in t&&typeof t[a]=="boolean"&&t[a]===!0}},n9="AI_APICallError",a9=`vercel.ai.error.${n9}`,KJ=Symbol.for(a9),$8,L8,NCe=class extends(L8=lt,$8=KJ,L8){constructor({message:e,url:t,requestBodyValues:r,statusCode:a,responseHeaders:n,responseBody:o,cause:i,isRetryable:s=a!=null&&(a===408||a===409||a===429||a>=500),data:u}){super({name:n9,message:e,cause:i}),this[$8]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=a,this.responseHeaders=n,this.responseBody=o,this.isRetryable=s,this.data=u}static isInstance(e){return lt.hasMarker(e,a9)}},o9="AI_EmptyResponseBodyError",i9=`vercel.ai.error.${o9}`,XJ=Symbol.for(i9),A8,E8,OCe=class extends(E8=lt,A8=XJ,E8){constructor({message:e="Empty response body"}={}){super({name:o9,message:e}),this[A8]=!0}static isInstance(e){return lt.hasMarker(e,i9)}};function s9(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var l9="AI_InvalidArgumentError",u9=`vercel.ai.error.${l9}`,YJ=Symbol.for(u9),M8,R8,c9=class extends(R8=lt,M8=YJ,R8){constructor({message:e,cause:t,argument:r}){super({name:l9,message:e,cause:t}),this[M8]=!0,this.argument=r}static isInstance(e){return lt.hasMarker(e,u9)}},d9="AI_InvalidPromptError",f9=`vercel.ai.error.${d9}`,QJ=Symbol.for(f9),z8,D8,UCe=class extends(D8=lt,z8=QJ,D8){constructor({prompt:e,message:t,cause:r}){super({name:d9,message:`Invalid prompt: ${t}`,cause:r}),this[z8]=!0,this.prompt=e}static isInstance(e){return lt.hasMarker(e,f9)}},p9="AI_InvalidResponseDataError",m9=`vercel.ai.error.${p9}
10`,eK=Symbol.for(m9),N8,O8,BCe=class extends(O8=lt,N8=eK,O8){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:p9,message:t}),this[N8]=!0,this.data=e}static isInstance(e){return lt.hasMarker(e,m9)}},h9="AI_JSONParseError",g9=`vercel.ai.error.${h9}`,tK=Symbol.for(g9),U8,B8,fw=class extends(B8=lt,U8=tK,B8){constructor({text:e,cause:t}){super({name:h9,message:`JSON parsing failed: Text: ${e}. 11Error message: ${s9(t)}`,cause:t}),this[U8]=!0,this.text=e}static isInstance(e){return lt.hasMarker(e,g9)}},v9="AI_LoadAPIKeyError",y9=`vercel.ai.error.${v9}`,rK=Symbol.for(y9),F8,j8,FCe=class extends(j8=lt,F8=rK,j8){constructor({message:e}){super({name:v9,message:e}),this[F8]=!0}static isInstance(e){return lt.hasMarker(e,y9)}},x9="AI_LoadSettingError",b9=`vercel.ai.error.${x9}`,nK=Symbol.for(b9),Z8,V8,jCe=class extends(V8=lt,Z8=nK,V8){constructor({message:e}){super({name:x9,message:e}),this[Z8]=!0}static isInstance(e){return lt.hasMarker(e,b9)}},w9="AI_NoContentGeneratedError",_9=`vercel.ai.error.${w9}`,aK=Symbol.for(_9),q8,G8,ZCe=class extends(G8=lt,q8=aK,G8){constructor({message:e="No content generated."}={}){super({name:w9,message:e}),this[q8]=!0}static isInstance(e){return lt.hasMarker(e,_9)}},k9="AI_NoSuchModelError",S9=`vercel.ai.error.${k9}`,oK=Symbol.for(S9),H8,W8,VCe=class extends(W8=lt,H8=oK,W8){constructor({errorName:e=k9,modelId:t,modelType:r,message:a=`No such ${r}: ${t}`}){super({name:e,message:a}),this[H8]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return lt.hasMarker(e,S9)}},I9="AI_TooManyEmbeddingValuesForCallError",C9=`vercel.ai.error.${I9}`,iK=Symbol.for(C9),J8,K8,qCe=class extends(K8=lt,J8=iK,K8){constructor(e){super({name:I9,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[J8]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return lt.hasMarker(e,C9)}},T9="AI_TypeValidationError",P9=`vercel.ai.error.${T9}`,sK=Symbol.for(P9),X8,Y8,La=class dw extends(Y8=lt,X8=sK,Y8){constructor({value:t,cause:r,context:a}){let n="Type validation failed";if(a?.field&&(n+=` for ${a.field}`),a?.entityName||a?.entityId){n+=" (";let o=[];a.entityName&&o.push(a.entityName),a.entityId&&o.push(`id: "${a.entityId}"`),n+=o.join(", "),n+=")"}super({name:T9,message:`${n}: Value: ${JSON.stringify(t)}. 12Error message: ${s9(r)}`,cause:r}),this[X8]=!0,this.value=t,this.context=a}static isInstance(t){return lt.hasMarker(t,P9)}static wrap({value:t,cause:r,context:a}){var n,o,i;return dw.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===a?.field&&((o=r.context)==null?void 0:o.entityName)===a?.entityName&&((i=r.context)==null?void 0:i.entityId)===a?.entityId?r:new dw({value:t,cause:r,context:a})}},$9="AI_UnsupportedFunctionalityError",L9=`vercel.ai.error.${$9}`,lK=Symbol.for(L9),Q8,e9,GCe=class extends(e9=lt,Q8=lK,e9){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:$9,message:t}),this[Q8]=!0,this.functionality=e}static isInstance(e){return lt.hasMarker(e,L9)}};var uK=Object.freeze({status:"aborted"});function F(e,t,r){function a(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=i.prototype,f=Object.keys(c);for(let p=0;p<f.length;p++){let h=f[p];h in s||(s[h]=c[h].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function i(s){var u;let c=r?.Parent?new o:this;a(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let f of c._zod.deferred)f();return c}return Object.defineProperty(i,"init",{value:a}),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 Aa=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}
vendor: 7,305 bytes, line 12
12,Es=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Cg={};function br(e){return e&&Object.assign(Cg,e),Cg}var oe={};Kr(oe,{BIGINT_FORMAT_RANGES:()=>ww,Class:()=>mw,NUMBER_FORMAT_RANGES:()=>bw,aborted:()=>_i,allowsEval:()=>vw,assert:()=>mK,assertEqual:()=>cK,assertIs:()=>fK,assertNever:()=>pK,assertNotEqual:()=>dK,assignProp:()=>bi,base64ToUint8Array:()=>M9,base64urlToUint8Array:()=>AK,cached:()=>nu,captureStackTrace:()=>Pg,cleanEnum:()=>LK,cleanRegex:()=>Qd,clone:()=>mn,cloneDef:()=>gK,createTransparentProxy:()=>_K,defineLazy:()=>et,esc:()=>Tg,escapeRegex:()=>Nn,extend:()=>IK,finalizeIssue:()=>Qr,floatSafeRemainder:()=>hw,getElementAtPath:()=>vK,getEnumValues:()=>Yd,getLengthableOrigin:()=>rf,getParsedType:()=>wK,getSizableOrigin:()=>tf,hexToUint8Array:()=>MK,isObject:()=>Ms,isPlainObject:()=>wi,issue:()=>au,joinValues:()=>Ee,jsonStringifyReplacer:()=>ru,merge:()=>TK,mergeDefs:()=>vo,normalizeParams:()=>ge,nullish:()=>xi,numKeys:()=>bK,objectClone:()=>hK,omit:()=>SK,optionalKeys:()=>xw,parsedType:()=>ze,partial:()=>PK,pick:()=>kK,prefixIssues:()=>hn,primitiveTypes:()=>yw,promiseAllObject:()=>yK,propertyKeyTypes:()=>ef,randomString:()=>xK,required:()=>$K,safeExtend:()=>CK,shallowClone:()=>E9,slugify:()=>gw,stringifyPrimitive:()=>Me,uint8ArrayToBase64:()=>R9,uint8ArrayToBase64url:()=>EK,uint8ArrayToHex:()=>RK,unwrapMessage:()=>Xd});function cK(e){return e}function dK(e){return e}function fK(e){}function pK(e){throw new Error("Unexpected value in exhaustive check")}function mK(e){}function Yd(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function Ee(e,t="|"){return e.map(r=>Me(r)).join(t)}function ru(e,t){return typeof t=="bigint"?t.toString():t}function nu(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function xi(e){return e==null}function Qd(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function hw(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),n=(a.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(a)){let u=a.match(/\d?e-(\d?)/);u?.[1]&&(n=Number.parseInt(u[1]))}let o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var A9=Symbol("evaluating");function et(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==A9)return a===void 0&&(a=A9,a=r()),a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function hK(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function bi(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vo(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function gK(e){return vo(e._zod.def)}function vK(e,t){return t?t.reduce((r,a)=>r?.[a],e):e}function yK(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=a[o];return n})}function xK(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let a=0;a<e;a++)r+=t[Math.floor(Math.random()*t.length)];return r}function Tg(e){return JSON.stringify(e)}function gw(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Pg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ms(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var vw=nu(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function wi(e){if(Ms(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ms(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function E9(e){return wi(e)?{...e}:Array.isArray(e)?[...e]:e}function bK(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var wK=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}`)}},ef=new Set(["string","number","symbol"]),yw=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Nn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mn(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function ge(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 _K(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,o){return t??(t=e()),Reflect.set(t,a,n,o)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function Me(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function xw(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var bw={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]},ww={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function kK(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=vo(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 bi(this,"shape",i),i},checks:[]});return mn(e,o)}function SK(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=vo(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 bi(this,"shape",i),i},checks:[]});return mn(e,o)}function IK(e,t){if(!wi(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
12write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=vo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return bi(this,"shape",o),o}});return mn(e,n)}function CK(e,t){if(!wi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=vo(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return bi(this,"shape",a),a}});return mn(e,r)}function TK(e,t){let r=vo(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return bi(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return mn(e,r)}function PK(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=vo(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return bi(this,"shape",u),u},checks:[]});return mn(t,i)}function $K(e,t,r){let a=vo(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};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:n[i]}))}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return bi(this,"shape",o),o}});return mn(t,a)}function _i(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 hn(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function Xd(e){return typeof e=="string"?e:e?.message}function Qr(e,t,r){let a={...e,path:e.path??[]};if(!e.message){let n=Xd(e.inst?._zod.def?.error?.(e))??Xd(t?.error?.(e))??Xd(r.customError?.(e))??Xd(r.localeError?.(e))??"Invalid input";a.message=n}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function tf(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function rf(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ze(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 au(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function LK(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function M9(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r}function R9(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function AK(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return M9(t+r)}function EK(e){return R9(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function MK(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 a=0;a<t.length;a+=2)r[a/2]=Number.parseInt(t.slice(a,a+2),16);return r}function RK(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var mw=class{constructor(...t){}};var z9=(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,ru,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$g=F("$ZodError",z9),nf=F("$ZodError",z9,{Parent:Error});function _w(e,t=r=>r.message){let r={},a=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):a.push(t(n));return{formErrors:a,fieldErrors:r}}function kw(e,t=r=>r.message){let r={_errors:[]},a=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>a({issues:i}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({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 u=o.path[s];s===o.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(t(o))):i[u]=i[u]||{_errors:[]},i=i[u],s++}}};return a(e),r}var af=e=>(t,r,a,n)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new Aa;if(i.issues.length){let s=new(n?.Err??e)(i.issues.map(u=>Qr(u,o,br())));throw Pg(s,n?.callee),s}return i.value},Sw=af(nf),of=e=>async(t,r,a,n)=>{let o=a?Object.assign(a,{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(n?.Err??e)(i.issues.map(u=>Qr(u,o,br())));throw Pg(s,n?.callee),s}return i.value},Iw=of(nf),sf=e=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new Aa;return o.issues.length?{success:!1,error:new(e??$g)(o.issues.map(i=>Qr(i,n,br())))}:{success:!0,data:o.value}},D9=sf(nf),lf=e=>async(t,r,a)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>Qr(i,n,br())))}:{success:!0,data:o.value}},N9=lf(nf),O9=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return af(e)(t,r,n)};var U9=e=>(t,r,a)=>af(e)(t,r,a);var B9=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return of(e)(t,r,n)};var F9=e=>async(t,r,a)=>of(e)(t,r,a);var j9=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return sf(e)(t,r,n)};var Z9=e=>(t,r,a)=>sf(e)(t,r,a);var V9=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return lf(e)(t,r,n)};var q9=e=>async(t,r,a)=>lf(e)(t,r,a);var Ea={};Kr(Ea,{base64:()=>Fw,base64url:()=>Lg,bigint:()=>Hw,boolean:()=>Jw,browserEmail:()=>ZK,cidrv4:()=>Uw,cidrv6:()=>Bw,cuid:()=>Cw,cuid2:()=>Tw,date:()=>Zw,datetime:()=>qw,domain:()=>GK,duration:()=>Ew,e164:()=>jw,email:()=>Rw,emoji:()=>zw,extendedDuration:()=>DK,guid:()=>Mw,hex:()=>HK,hostname:()=>qK,html5Email:()=>
vendor: 91,103 bytes, lines 12-50
12BK,idnEmail:()=>jK,integer:()=>Ww,ipv4:()=>Dw,ipv6:()=>Nw,ksuid:()=>Lw,lowercase:()=>Yw,mac:()=>Ow,md5_base64:()=>JK,md5_base64url:()=>KK,md5_hex:()=>WK,nanoid:()=>Aw,null:()=>Kw,number:()=>Ag,rfc5322Email:()=>FK,sha1_base64:()=>YK,sha1_base64url:()=>QK,sha1_hex:()=>XK,sha256_base64:()=>tX,sha256_base64url:()=>rX,sha256_hex:()=>eX,sha384_base64:()=>aX,sha384_base64url:()=>oX,sha384_hex:()=>nX,sha512_base64:()=>sX,sha512_base64url:()=>lX,sha512_hex:()=>iX,string:()=>Gw,time:()=>Vw,ulid:()=>Pw,undefined:()=>Xw,unicodeEmail:()=>G9,uppercase:()=>Qw,uuid:()=>Rs,uuid4:()=>NK,uuid6:()=>OK,uuid7:()=>UK,xid:()=>$w});var Cw=/^[cC][^\s-]{8,}$/,Tw=/^[0-9a-z]+$/,Pw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$w=/^[0-9a-vA-V]{20}$/,Lw=/^[A-Za-z0-9]{27}$/,Aw=/^[a-zA-Z0-9_-]{21}$/,Ew=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,DK=/^[-+]?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)?)??$/,Mw=/^([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})$/,Rs=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)$/,NK=Rs(4),OK=Rs(6),UK=Rs(7),Rw=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,BK=/^[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])?)*$/,FK=/^(([^<>()\[\]\\.,;:\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,}))$/,G9=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jK=G9,ZK=/^[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])?)*$/,VK="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function zw(){return new RegExp(VK,"u")}var Dw=/^(?:(?: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])$/,Nw=/^(([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}|:))$/,Ow=e=>{let t=Nn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Uw=/^((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])$/,Bw=/^(([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])$/,Fw=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Lg=/^[A-Za-z0-9_-]*$/,qK=/^(?=.{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])?)*\.?$/,GK=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jw=/^\+[1-9]\d{6,14}$/,H9="(?:(?:\\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])))",Zw=new RegExp(`^${H9}$`);function W9(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 Vw(e){return new RegExp(`^${W9(e)}$`)}function qw(e){let t=W9({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${H9}T(?:${a})$`)}var Gw=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Hw=/^-?\d+n?$/,Ww=/^-?\d+$/,Ag=/^-?\d+(?:\.\d+)?$/,Jw=/^(?:true|false)$/i,Kw=/^null$/i;var Xw=/^undefined$/i;var Yw=/^[^A-Z]*$/,Qw=/^[^a-z]*$/,HK=/^[0-9a-fA-F]*$/;function uf(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function cf(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var WK=/^[0-9a-fA-F]{32}$/,JK=uf(22,"=="),KK=cf(22),XK=/^[0-9a-fA-F]{40}$/,YK=uf(27,"="),QK=cf(27),eX=/^[0-9a-fA-F]{64}$/,tX=uf(43,"="),rX=cf(43),nX=/^[0-9a-fA-F]{96}$/,aX=uf(64,""),oX=cf(64),iX=/^[0-9a-fA-F]{128}$/,sX=uf(86,"=="),lX=cf(86);var Lt=F("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),K9={number:"number",bigint:"bigint",object:"date"},e_=F("$ZodCheckLessThan",(e,t)=>{Lt.init(e,t);let r=K9[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),t_=F("$ZodCheckGreaterThan",(e,t)=>{Lt.init(e,t);let r=K9[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),X9=F("$ZodCheckMultipleOf",(e,t)=>{Lt.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.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):hw(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})}}),Y9=F("$ZodCheckNumberFormat",(e,t)=>{Lt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,o]=bw[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=Ww)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:a,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:a,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:a,inclusive:!0,continue:!t.abort});return}}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,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})}}),Q9=F("$ZodCheckBigIntFormat",(e,t)=>{Lt.init(e,t);let[r,a]=ww[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=a}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),eA=F("$ZodCheckMaxSize",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;n.size<=t.maximum||a.issues.push({origin:tf(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),tA=F("$ZodCheckMinSize",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;n.size>=t.minimum||a.issues.push({origin:tf(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),rA=F("$ZodCheckSizeEquals",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=a=>{let n=a.value,o=n.size;if(o===t.size)return;let i=o>t.size;a.issues.push({origin:tf(n),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),nA=F("$ZodCheckMaxLength",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;if(n.length<=t.maximum)return;let i=rf(n);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),aA=F("$ZodCheckMinLength",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;if(n.length>=t.minimum)return;let i=rf(n);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),oA=F("$ZodCheckLengthEquals",(e,t)=>{var r;Lt.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!xi(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=a=>{let n=a.value,o=n.length;if(o===t.length)return;let i=rf(n),s=o>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),df=F("$ZodCheckStringFormat",(e,t)=>{var r,a;Lt.init(e,t),e._zod.onattach.push(n=>{let o=n._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=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),iA=F("$ZodCheckRegex",(e,t)=>{df.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})}}),sA=F("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Yw),df.init(e,t)}),lA=F("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Qw),df.init(e,t)}),uA=F("$ZodCheckIncludes",(e,t)=>{Lt.init(e,t);let r=Nn(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),cA=F("$ZodCheckStartsWith",(e,t)=>{Lt.init(e,t);let r=new RegExp(`^${Nn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),dA=F("$ZodCheckEndsWith",(e,t)=>{Lt.init(e,t);let r=new RegExp(`.*${Nn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function J9(e,t,r){e.issues.length&&t.issues.push(...hn(r,e.issues))}var fA=F("$ZodCheckProperty",(e,t)=>{Lt.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(n=>J9(n,r,t.property));J9(a,r,t.property)}}),pA=F("$ZodCheckMimeType",(e,t)=>{Lt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),mA=F("$ZodCheckOverwrite",(e,t)=>{Lt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Eg=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 a=t.split(` 13`).filter(i=>i),n=Math.min(...a.map(i=>i.length-i.trimStart().length)),o=a.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(` 14`))}};var gA={major:4,minor:3,patch:6};var je=F("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gA;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(i,s,u)=>{let c=_i(i),f;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(i))continue}else if(c)continue;let h=i.issues.length,g=p._zod.check(i);if(g instanceof Promise&&u?.async===!1)throw new Aa;if(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await g,i.issues.length!==h&&(c||(c=_i(i,h)))});else{if(i.issues.length===h)continue;c||(c=_i(i,h))}}return f?f.then(()=>i):i},o=(i,s,u)=>{if(_i(i))return i.aborted=!0,i;let c=n(s,a,u);if(c instanceof Promise){if(u.async===!1)throw new Aa;return c.then(f=>e._zod.parse(f,u))}return e._zod.parse(c,u)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let c=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,i,s)):o(c,i,s)}let u=e._zod.parse(i,s);if(u instanceof Promise){if(s.async===!1)throw new Aa;return u.then(c=>n(c,a,s))}return n(u,a,s)}}et(e,"~standard",()=>({validate:n=>{try{let o=D9(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return N9(e,n).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),ou=F("$ZodString",(e,t)=>{je.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Gw(e._zod.bag),e._zod.parse=(r,a)=>{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}}),kt=F("$ZodStringFormat",(e,t)=>{df.init(e,t),ou.init(e,t)}),PA=F("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Mw),kt.init(e,t)}),$A=F("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Rs(a))}else t.pattern??(t.pattern=Rs());kt.init(e,t)}),LA=F("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Rw),kt.init(e,t)}),AA=F("$ZodURL",(e,t)=>{kt.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),n=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.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(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.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=n.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),EA=F("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=zw()),kt.init(e,t)}),MA=F("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Aw),kt.init(e,t)}),RA=F("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Cw),kt.init(e,t)}),zA=F("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Tw),kt.init(e,t)}),DA=F("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Pw),kt.init(e,t)}),NA=F("$ZodXID",(e,t)=>{t.pattern??(t.pattern=$w),kt.init(e,t)}),OA=F("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Lw),kt.init(e,t)}),UA=F("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qw(t)),kt.init(e,t)}),BA=F("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Zw),kt.init(e,t)}),FA=F("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Vw(t)),kt.init(e,t)}),jA=F("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ew),kt.init(e,t)}),ZA=F("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Dw),kt.init(e,t),e._zod.bag.format="ipv4"}),VA=F("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Nw),kt.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})}}}),qA=F("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ow(t.delimiter)),kt.init(e,t),e._zod.bag.format="mac"}),GA=F("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Uw),kt.init(e,t)}),HA=F("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Bw),kt.init(e,t),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw new Error;let[n,o]=a;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://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function WA(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var JA=F("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Fw),kt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{WA(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function uX(e){if(!Lg.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return WA(r)}var KA=F("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Lg),kt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{uX(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),XA=F("$ZodE164",(e,t)=>{t.pattern??(t.pattern=jw),kt.init(e,t)});function cX(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let n=JSON.parse(atob(a));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var YA=F("$ZodJWT",(e,t)=>{kt.init(e,t),e._zod.check=r=>{cX(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),QA=F("$ZodCustomStringFormat",(e,t)=>{kt.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})}}),n_=F("$ZodNumber",(e,t)=>{je.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ag,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),eE=F("$ZodNumberFormat",(e,t)=>{Y9.init(e,t),n_.init(e,t)}),Og=F("$ZodBoolean",(e,t)=>{je.init(e,t),e._zod.pattern=Jw,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),a_=F("$ZodBigInt",(e,t)=>{je.init(e,t),e._zod.pattern=Hw,e._zod.parse=(r,a)=>{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}}),tE=F("$ZodBigIntFormat",(e,t)=>{Q9.init(e,t),a_.init(e,t)}),rE=F("$ZodSymbol",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),nE=F("$ZodUndefined",(e,t)=>{je.init(e,t),e._zod.pattern=Xw,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),aE=F("$ZodNull",(e,t)=>{je.init(e,t),e._zod.pattern=Kw,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),oE=F("$ZodAny",(e,t)=>{je.init(e,t),e._zod.parse=r=>r}),iE=F("$ZodUnknown",(e,t)=>{je.init(e,t),e._zod.parse=r=>r}),sE=F("$ZodNever",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),lE=F("$ZodVoid",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),uE=F("$ZodDate",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function vA(e,t,r){e.issues.length&&t.issues.push(...hn(r,e.issues)),t.value[r]=e.value}var cE=F("$ZodArray",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let i=0;i<n.length;i++){let s=n[i],u=t.element._zod.run({value:s,issues:[]},a);u instanceof Promise?o.push(u.then(c=>vA(c,r,i))):vA(u,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function Ng(e,t,r,a,n){if(e.issues.length){if(n&&!(r in a))return;t.issues.push(...hn(r,e.issues))}e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function dE(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let r=xw(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function fE(e,t,r,a,n,o){let i=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,f=u.optout==="optional";for(let p in t){if(s.has(p))continue;if(c==="never"){i.push(p);continue}let h=u.run({value:t[p],issues:[]},a);h instanceof Promise?e.push(h.then(g=>Ng(g,r,p,t,f))):Ng(h,r,p,t,f)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var dX=F("$ZodObject",(e,t)=>{if(je.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let a=nu(()=>dE(t));et(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let f=s[c]._zod;if(f.values){u[c]??(u[c]=new Set);for(let p of f.values)u[c].add(p)}}return u});let n=Ms,o=t.catchall,i;e._zod.parse=(s,u)=>{i??(i=a.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let f=[],p=i.shape;for(let h of i.keys){let g=p[h],x=g._zod.optout==="optional",I=g._zod.run({value:c[h],issues:[]},u);I instanceof Promise?f.push(I.then(S=>Ng(S,s,h,c,x))):Ng(I,s,h,c,x)}return o?fE(f,c,s,u,a.value,e):f.length?Promise.all(f).then(()=>s):s}}),pE=F("$ZodObjectJIT",(e,t)=>{dX.init(e,t);let r=e._zod.parse,a=nu(()=>dE(t)),n=h=>{let g=new Eg(["shape","payload","ctx"]),x=a.value,I=k=>{let M=Tg(k);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};g.write("const input = payload.value;");let S=Object.create(null),$=0;for(let k of x.keys)S[k]=`key_${$++}`;g.write("const newResult = {};");for(let k of x.keys){let M=S[k],E=Tg(k),j=h[k]?._zod?.optout==="optional";g.write(`const ${M} = ${I(k)};`),j?g.write(` 15 if (${M}.issues.length) { 16 if (${E} in input) { 17 payload.issues = payload.issues.concat(${M}.issues.map(iss => ({ 18 ...iss, 19 path: iss.path ? [${E}, ...iss.path] : [${E}] 20 }))); 21 } 22 } 23 24 if (${M}.value === undefined) { 25 if (${E} in input) { 26 newResult[${E}] = undefined; 27 } 28 } else { 29 newResult[${E}] = ${M}.value; 30 } 31 32 `):g.write(` 33 if (${M}.issues.length) { 34 payload.issues = payload.issues.concat(${M}.issues.map(iss => ({ 35 ...iss, 36 path: iss.path ? [${E}, ...iss.path] : [${E}] 37 }))); 38 } 39 40 if (${M}.value === undefined) { 41 if (${E} in input) { 42 newResult[${E}] = undefined; 43 } 44 } else { 45 newResult[${E}] = ${M}.value; 46 } 47 48 `)}g.write("payload.value = newResult;"),g.write("return payload;");let T=g.compile();return(k,M)=>T(h,k,M)},o,i=Ms,s=!Cg.jitless,c=s&&vw.value,f=t.catchall,p;e._zod.parse=(h,g)=>{p??(p=a.value);let x=h.value;return i(x)?s&&c&&g?.async===!1&&g.jitless!==!0?(o||(o=n(t.shape)),h=o(h,g),f?fE([],x,h,g,p,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),h)}});function yA(e,t,r,a){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!_i(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>Qr(i,a,br())))}),t)}var Ug=F("$ZodUnion",(e,t)=>{je.init(e,t),et(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),et(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),et(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),et(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Qd(o.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(u=>yA(u,n,e,o)):yA(s,n,e,o)}});function xA(e,t,r,a){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>Qr(i,a,br())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var mE=F("$ZodXor",(e,t)=>{Ug.init(e,t),t.inclusive=!1;let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(u=>xA(u,n,e,o)):xA(s,n,e,o)}}),hE=F("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ug.init(e,t);let r=e._zod.parse;et(e._zod,"propValues",()=>{let n={};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,u]of Object.entries(i)){n[s]||(n[s]=new Set);for(let c of u)n[s].add(c)}}return n});let a=nu(()=>{let n=t.options,o=new Map;for(let i of n){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 u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,i)}}return o});e._zod.parse=(n,o)=>{let i=n.value;if(!Ms(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;let s=a.value.get(i?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),gE=F("$ZodIntersection",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},a),i=t.right._zod.run({value:n,issues:[]},a);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([u,c])=>bA(r,u,c)):bA(r,o,i)}});function r_(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(wi(e)&&wi(t)){let r=Object.keys(t),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of a){let i=r_(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n[o]=i.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let n=e[a],o=t[a],i=r_(n,o);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function bA(e,t,r){let a=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let u of s.keys)a.has(u)||a.set(u,{}),a.get(u).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)a.has(u)||a.set(u,{}),a.get(u).r=!0;else e.issues.push(s);let o=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),_i(e))return e;let i=r_(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 o_=F("$ZodTuple",(e,t)=>{je.init(e,t);let r=t.items;e._zod.parse=(a,n)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let i=[],s=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),u=s===-1?0:r.length-s;if(!t.rest){let f=o.length>r.length,p=o.length<u-1;if(f||p)return a.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let c=-1;for(let f of r){if(c++,c>=o.length&&c>=u)continue;let p=f._zod.run({value:o[c],issues:[]},n);p instanceof Promise?i.push(p.then(h=>Mg(h,a,c))):Mg(p,a,c)}if(t.rest){let f=o.slice(r.length);for(let p of f){c++;let h=t.rest._zod.run({value:p,issues:[]},n);h instanceof Promise?i.push(h.then(g=>Mg(g,a,c))):Mg(h,a,c)}}return i.length?Promise.all(i).then(()=>a):a}});function Mg(e,t,r){e.issues.length&&t.issues.push(...hn(r,e.issues)),t.value[r]=e.value}var vE=F("$ZodRecord",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!wi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let f=t.valueType._zod.run({value:n[c],issues:[]},a);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...hn(c,p.issues)),r.value[c]=p.value})):(f.issues.length&&r.issues.push(...hn(c,f.issues)),r.value[c]=f.value)}let u;for(let c in n)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Ag.test(s)&&u.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},a);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(u=p)}if(u.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>Qr(p,a,br())),input:s,path:[s],inst:e});continue}let f=t.valueType._zod.run({value:n[s],issues:[]},a);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...hn(s,p.issues)),r.value[u.value]=p.value})):(f.issues.length&&r.issues.push(...hn(s,f.issues)),r.value[u.value]=f.value)}}return o.length?Promise.all(o).then(()=>r):r}}),yE=F("$ZodMap",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of n){let u=t.keyType._zod.run({value:i,issues:[]},a),c=t.valueType._zod.run({value:s,issues:[]},a);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([f,p])=>{wA(f,p,r,i,n,e,a)})):wA(u,c,r,i,n,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function wA(e,t,r,a,n,o,i){e.issues.length&&(ef.has(typeof a)?r.issues.push(...hn(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>Qr(s,i,br()))})),t.issues.length&&(ef.has(typeof a)?r.issues.push(...hn(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(s=>Qr(s,i,br()))})),r.value.set(e.value,t.value)}var xE=F("$ZodSet",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of n){let s=t.valueType._zod.run({value:i,issues:[]},a);s instanceof Promise?o.push(s.then(u=>_A(u,r))):_A(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function _A(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var bE=F("$ZodEnum",(e,t)=>{je.init(e,t);let r=Yd(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(n=>ef.has(typeof n)).map(n=>typeof n=="string"?Nn(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return a.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:e}),n}}),wE=F("$ZodLiteral",(e,t)=>{if(je.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(a=>typeof a=="string"?Nn(a):a?Nn(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),a}}),_E=F("$ZodFile",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),kE=F("$ZodTransform",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Es(e.constructor.name);let n=t.transform(r.value,r);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(i=>(r.value=i,r));if(n instanceof Promise)throw new Aa;return r.value=n,r}});function kA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var i_=F("$ZodOptional",(e,t)=>{je.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(`^(${Qd(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>kA(o,r.value)):kA(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),SE=F("$ZodExactOptional",(e,t)=>{i_.init(e,t),et(e._zod,"values",()=>t.innerType._zod.values),et(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),IE=F("$ZodNullable",(e,t)=>{je.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(`^(${Qd(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,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),CE=F("$ZodDefault",(e,t)=>{je.init(e,t),e._zod.optin="optional",et(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>SA(o,t)):SA(n,t)}});function SA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var TE=F("$ZodPrefault",(e,t)=>{je.init(e,t),e._zod.optin="optional",et(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),PE=F("$ZodNonOptional",(e,t)=>{je.init(e,t),et(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>IA(o,e)):IA(n,e)}});function IA(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 $E=F("$ZodSuccess",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Es("ZodSuccess");let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),LE=F("$ZodCatch",(e,t)=>{je.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,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>Qr(i,a,br()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>Qr(o,a,br()))},input:r.value}),r.issues=[]),r)}}),AE=F("$ZodNaN",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),EE=F("$ZodPipe",(e,t)=>{je.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,a)=>{if(a.direction==="backward"){let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>Rg(i,t.in,a)):Rg(o,t.in,a)}let n=t.in._zod.run(r,a);return n instanceof Promise?n.then(o=>Rg(o,t.out,a)):Rg(n,t.out,a)}});function Rg(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Bg=F("$ZodCodec",(e,t)=>{je.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,a)=>{if((a.direction||"forward")==="forward"){let o=t.in._zod.run(r,a);return o instanceof Promise?o.then(i=>zg(i,t,a)):zg(o,t,a)}else{let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>zg(i,t,a)):zg(o,t,a)}}});function zg(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>Dg(e,o,t.out,r)):Dg(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>Dg(e,o,t.in,r)):Dg(e,n,t.in,r)}}function Dg(e,t,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},a)}var ME=F("$ZodReadonly",(e,t)=>{je.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,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(CA):CA(n)}});function CA(e){return e.value=Object.freeze(e.value),e}var RE=F("$ZodTemplateLiteral",(e,t)=>{je.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let n=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${a._zod.traits}`);let o=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,i))}else if(a===null||yw.has(typeof a))r.push(Nn(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,n)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),zE=F("$ZodFunction",(e,t)=>(je.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(...a){let n=e._def.input?Sw(e._def.input,a):a,o=Reflect.apply(r,this,n);return e._def.output?Sw(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(...a){let n=e._def.input?await Iw(e._def.input,a):a,o=await Reflect.apply(r,this,n);return e._def.output?await Iw(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new o_({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:r})},e)),DE=F("$ZodPromise",(e,t)=>{je.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},a))}),NE=F("$ZodLazy",(e,t)=>{je.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,a)=>e._zod.innerType._zod.run(r,a)}),OE=F("$ZodCustom",(e,t)=>{Lt.init(e,t),je.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,n=t.fn(a);if(n instanceof Promise)return n.then(o=>TA(o,r,a,e));TA(n,r,a,e)}});function TA(e,t,r,a){if(!e){let n={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(au(n))}}var pX=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=ze(n.input),s=a[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Me(n.values[0])}`:`Invalid option: expected one of ${Ee(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${Ee(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function s_(){return{localeError:pX()}}var BE;var l_=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let a=r[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.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 a={...this.get(r)??{}};delete a.id;let n={...a,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function FE(){return new l_}(BE=globalThis).__zod_globalRegistry??(BE.__zod_globalRegistry=FE());var en=globalThis.__zod_globalRegistry;function jE(e,t){return new e({type:"string",...ge(t)})}function u_(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ge(t)})}function Fg(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ge(t)})}function c_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ge(t)})}function d_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ge(t)})}function f_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ge(t)})}function p_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ge(t)})}function jg(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ge(t)})}function m_(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ge(t)})}function h_(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ge(t)})}function g_(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ge(t)})}function v_(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ge(t)})}function y_(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ge(t)})}function x_(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ge(t)})}function b_(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ge(t)})}function w_(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ge(t)})}function __(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ge(t)})}function ZE(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ge(t)})}function k_(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ge(t)})}function S_(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ge(t)})}function I_(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ge(t)})}function C_(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ge(t)})}function T_(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ge(t)})}function P_(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ge(t)})}function VE(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ge(t)})}function qE(e,t){return new e({type:"string",format:"date",check:"string_format",...ge(t)})}function GE(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ge(t)})}function HE(e,t){return new e({type:"string",format:"duration",check:"string_format",...ge(t)})}function WE(e,t){return new e({type:"number",checks:[],...ge(t)})}function JE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ge(t)})}function KE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ge(t)})}function XE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ge(t)})}function YE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ge(t)})}function QE(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ge(t)})}function eM(e,t){return new e({type:"boolean",...ge(t)})}function tM(e,t){return new e({type:"bigint",...ge(t)})}function rM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ge(t)})}function nM(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ge(t)})}function aM(e,t){return new e({type:"symbol",...ge(t)})}function oM(e,t){return new e({type:"undefined",...ge(t)})}function iM(e,t){return new e({type:"null",...ge(t)})}function sM(e){return new e({type:"any"})}function lM(e){return new e({type:"unknown"})}function uM(e,t){return new e({type:"never",...ge(t)})}function cM(e,t){return new e({type:"void",...ge(t)})}function dM(e,t){return new e({type:"date",...ge(t)})}function fM(e,t){return new e({type:"nan",...ge(t)})}function ki(e,t){return new e_({check:"less_than",...ge(t),value:e,inclusive:!1})}function ta(e,t){return new e_({check:"less_than",...ge(t),value:e,inclusive:!0})}function Si(e,t){return new t_({check:"greater_than",...ge(t),value:e,inclusive:!1})}function gn(e,t){return new t_({check:"greater_than",...ge(t),value:e,inclusive:!0})}function pM(e){return Si(0,e)}function mM(e){return ki(0,e)}function hM(e){return ta(0,e)}function gM(e){return gn(0,e)}function iu(e,t){return new X9({check:"multiple_of",...ge(t),value:e})}function su(e,t){return new eA({check:"max_size",...ge(t),maximum:e})}function Ii(e,t){return new tA({check:"min_size",...ge(t),minimum:e})}function ff(e,t){return new rA({check:"size_equals",...ge(t),size:e})}function pf(e,t){return new nA({check:"max_length",...ge(t),maximum:e})}function zs(e,t){return new aA({check:"min_length",...ge(t),minimum:e})}function mf(e,t){return new oA({check:"length_equals",...ge(t),length:e})}function Zg(e,t){return new iA({check:"string_format",format:"regex",...ge(t),pattern:e})}function Vg(e){return new sA({check:"string_format",format:"lowercase",...ge(e)})}function qg(e){return new lA({check:"string_format",format:"uppercase",...ge(e)})}function Gg(e,t){return new uA({check:"string_format",format:"includes",...ge(t),includes:e})}function Hg(e,t){return new cA({check:"string_format",format:"starts_with",...ge(t),prefix:e})}function Wg(e,t){return new dA({check:"string_format",format:"ends_with",...ge(t),suffix:e})}function vM(e,t,r){return new fA({check:"property",property:e,schema:t,...ge(r)})}function Jg(e,t){return new pA({check:"mime_type",mime:e,...ge(t)})}function yo(e){return new mA({check:"overwrite",tx:e})}function Kg(e){return yo(t=>t.normalize(e))}function Xg(){return yo(e=>e.trim())}function Yg(){return yo(e=>e.toLowerCase())}function Qg(){return yo(e=>e.toUpperCase())}function e0(){return yo(e=>gw(e))}function yM(e,t,r){return new e({type:"array",element:t,...ge(r)})}function xM(e,t){return new e({type:"file",...ge(t)})}function bM(e,t,r){let a=ge(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function wM(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ge(r)})}function _M(e){let t=vX(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(au(a,r.value,t._zod.def));else{let n=a;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(au(n))}},e(r.value,r)));return t}function vX(e,t){let r=new Lt({check:"custom",...ge(t)});return r._zod.check=e,r}function kM(e){let t=new Lt({check:"describe"});return t._zod.onattach=[r=>{let a=en.get(r)??{};en.add(r,{...a,description:e})}],t._zod.check=()=>{},t}function SM(e){let t=new Lt({check:"meta"});return t._zod.onattach=[r=>{let a=en.get(r)??{};en.add(r,{...a,...e})}],t._zod.check=()=>{},t}function IM(e,t){let r=ge(t),a=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let o=new Set(a),i=new Set(n),s=e.Codec??Bg,u=e.Boolean??Og,c=e.String??ou,f=new c({type:"string",error:r.error}),p=new u({type:"boolean",error:r.error}),h=new s({type:"pipe",in:f,out:p,transform:((g,x)=>{let I=g;return r.case!=="sensitive"&&(I=I.toLowerCase()),o.has(I)?!0:i.has(I)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:x.value,inst:h,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?a[0]||"true":n[0]||"false"),error:r.error});return h}function hf(e,t,r,a={}){let n=ge(a),o={...ge(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function lu(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??en,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 bt(e,t,r={path:[],schemaPath:[]}){var a;let n=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 f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,f);else{let h=i.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,f)}let p=e._zod.parent;p&&(i.ref||(i.ref=p),bt(p,t,f),t.seen.get(p).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&Or(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((a=i.schema).default??(a.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function uu(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let u=a.get(s);if(u&&u!==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.`);a.set(s,i[0])}}let n=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(i[0])?.id,h=e.external.uri??(x=>x);if(p)return{ref:h(p)};let g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${h("__shared")}#/${s}/${g}`}}if(i[1]===r)return{ref:"#"};let c=`#/${s}/`,f=i[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:c+f}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:u,defId:c}=n(i);s.def={...s.schema},c&&(s.defId=c);let f=s.schema;for(let p in f)delete f[p];f.$ref=u};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> 49 50Set 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 c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){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 cu(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=i=>{let s=e.seen.get(i);if(s.ref===null)return;let u=s.def??s.schema,c={...u},f=s.ref;if(s.ref=null,f){a(f);let h=e.seen.get(f),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),i._zod.parent===f)for(let I in u)I==="$ref"||I==="allOf"||I in c||delete u[I];if(g.$ref&&h.def)for(let I in u)I==="$ref"||I==="allOf"||I in h.def&&JSON.stringify(u[I])===JSON.stringify(h.def[I])&&delete u[I]}let p=i._zod.parent;if(p&&p!==f){a(p);let h=e.seen.get(p);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}e.override({zodSchema:i,jsonSchema:u,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())a(i[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(i)}Object.assign(n,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"?n.$defs=o:n.definitions=o);try{let i=JSON.parse(JSON.stringify(n));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:gf(t,"input",e.processors),output:gf(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function Or(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Or(a.element,r);if(a.type==="set")return Or(a.valueType,r);if(a.type==="lazy")return Or(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return Or(a.innerType,r);if(a.type==="intersection")return Or(a.left,r)||Or(a.right,r);if(a.type==="record"||a.type==="map")return Or(a.keyType,r)||Or(a.valueType,r);if(a.type==="pipe")return Or(a.in,r)||Or(a.out,r);if(a.type==="object"){for(let n in a.shape)if(Or(a.shape[n],r))return!0;return!1}if(a.type==="union"){for(let n of a.options)if(Or(n,r))return!0;return!1}if(a.type==="tuple"){for(let n of a.items)if(Or(n,r))return!0;return!!(a.rest&&Or(a.rest,r))}return!1}var CM=(e,t={})=>r=>{let a=lu({...r,processors:t});return bt(e,a),uu(a,e),cu(a,e)},gf=(e,t,r={})=>a=>{let{libraryOptions:n,target:o}=a??{},i=lu({...n??{},target:o,io:t,processors:r});return bt(e,i),uu(i,e),cu(i,e)};var yX={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},L_=(e,t,r,a)=>{let n=r;n.type="string";let{minimum:o,maximum:i,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof i=="number"&&(n.maxLength=i),s&&(n.format=yX[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let f=[...u];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},A_=(e,t,r,a)=>{let n=r,{minimum:o,maximum:i,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:f}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof o=="number"&&(n.minimum=o,typeof f=="number"&&t.target!=="draft-04"&&(f>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof i=="number"&&(n.maximum=i,typeof c=="number"&&t.target!=="draft-04"&&(c<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},E_=(e,t,r,a)=>{r.type="boolean"},M_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},R_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},z_=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},D_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},N_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},O_=(e,t,r,a)=>{r.not={}},U_=(e,t,r,a)=>{},B_=(e,t,r,a)=>{},F_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},j_=(e,t,r,a)=>{let n=e._zod.def,o=Yd(n.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},Z_=(e,t,r,a)=>{let n=e._zod.def,o=[];for(let i of n.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},V_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},q_=(e,t,r,a)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},G_=(e,t,r,a)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:u}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,o)},H_=(e,t,r,a)=>{r.type="boolean"},W_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},J_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},K_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},X_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Y_=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Q_=(e,t,r,a)=>{let n=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(n.minItems=i),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=bt(o.element,t,{...a,path:[...a.path,"items"]})},e4=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let i=o.shape;for(let c in i)n.properties[c]=bt(i[c],t,{...a,path:[...a.path,"properties",c]});let s=new Set(Object.keys(i)),u=new Set([...s].filter(c=>{let f=o.shape[c]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));u.size>0&&(n.required=Array.from(u)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=bt(o.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},t0=(e,t,r,a)=>{let n=e._zod.def,o=n.inclusive===!1,i=n.options.map((s,u)=>bt(s,t,{...a,path:[...a.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=i:r.anyOf=i},t4=(e,t,r,a)=>{let n=e._zod.def,o=bt(n.left,t,{...a,path:[...a.path,"allOf",0]}),i=bt(n.right,t,{...a,path:[...a.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=u},r4=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((h,g)=>bt(h,t,{...a,path:[...a.path,i,g]})),c=o.rest?bt(o.rest,t,{...a,path:[...a.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:f,maximum:p}=e._zod.bag;typeof f=="number"&&(n.minItems=f),typeof p=="number"&&(n.maxItems=p)},n4=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object";let i=o.keyType,u=i._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let f=bt(o.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(let p of u)n.patternProperties[p.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=bt(o.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=bt(o.valueType,t,{...a,path:[...a.path,"additionalProperties"]});let c=i._zod.values;if(c){let f=[...c].filter(p=>typeof p=="string"||typeof p=="number");f.length>0&&(n.required=f)}},a4=(e,t,r,a)=>{let n=e._zod.def,o=bt(n.innerType,t,a),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},o4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},i4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},s4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},l4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType;let i;try{i=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},u4=(e,t,r,a)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;bt(o,t,a);let i=t.seen.get(e);i.ref=o},c4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},d4=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},r0=(e,t,r,a)=>{let n=e._zod.def;bt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},f4=(e,t,r,a)=>{let n=e._zod.innerType;bt(n,t,a);let o=t.seen.get(e);o.ref=n},$_={string:L_,number:A_,boolean:E_,bigint:M_,symbol:R_,null:z_,undefined:D_,void:N_,never:O_,any:U_,unknown:B_,date:F_,enum:j_,literal:Z_,nan:V_,template_literal:q_,file:G_,success:H_,custom:W_,function:J_,transform:K_,map:X_,set:Y_,array:Q_,object:e4,union:t0,intersection:t4,tuple:r4,record:n4,nullable:a4,nonoptional:o4,default:i4,prefault:s4,catch:l4,pipe:u4,readonly:c4,promise:d4,optional:r0,lazy:f4};function n0(e,t){if("_idmap"in e){let a=e,n=lu({...t,processors:$_}),o={};for(let u of a._idmap.entries()){let[c,f]=u;bt(f,n)}let i={},s={registry:a,uri:t?.uri,defs:o};n.external=s;for(let u of a._idmap.entries()){let[c,f]=u;uu(n,f),i[c]=cu(n,f)}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[u]:o}}return{schemas:i}}let r=lu({...t,processors:$_});return bt(e,r),uu(r,e),cu(r,e)}var yf={};Kr(yf,{ZodAny:()=>GM,ZodArray:()=>KM,ZodBase64:()=>D4,ZodBase64URL:()=>N4,ZodBigInt:()=>m0,ZodBigIntFormat:()=>B4,ZodBoolean:()=>p0,ZodCIDRv4:()=>R4,ZodCIDRv6:()=>z4,ZodCUID:()=>T4,ZodCUID2:()=>P4,ZodCatch:()=>yR,ZodCodec:()=>J4,ZodCustom:()=>x0,ZodCustomStringFormat:()=>bf,ZodDate:()=>j4,ZodDefault:()=>fR,ZodDiscriminatedUnion:()=>YM,ZodE164:()=>O4,ZodEmail:()=>S4,ZodEmoji:()=>I4,ZodEnum:()=>xf,ZodExactOptional:()=>uR,ZodFile:()=>sR,ZodFunction:()=>TR,ZodGUID:()=>i0,ZodIPv4:()=>E4,ZodIPv6:()=>M4,ZodIntersection:()=>QM,ZodJWT:()=>U4,ZodKSUID:()=>A4,ZodLazy:()=>SR,ZodLiteral:()=>iR,ZodMAC:()=>UM,ZodMap:()=>aR,ZodNaN:()=>bR,ZodNanoID:()=>C4,ZodNever:()=>WM,ZodNonOptional:()=>H4,ZodNull:()=>VM,ZodNullable:()=>dR,ZodNumber:()=>f0,ZodNumberFormat:()=>fu,ZodObject:()=>g0,ZodOptional:()=>G4,ZodPipe:()=>W4,ZodPrefault:()=>mR,ZodPromise:()=>CR,ZodReadonly:()=>wR,ZodRecord:()=>y0,ZodSet:()=>oR,ZodString:()=>c0,ZodStringFormat:()=>St,ZodSuccess:()=>vR,ZodSymbol:()=>jM,ZodTemplateLiteral:()=>kR,ZodTransform:()=>lR,ZodTuple:()=>tR,ZodType:()=>Xe,ZodULID:()=>$4,ZodURL:()=>d0,ZodUUID:()=>xo,ZodUndefined:()=>ZM,ZodUnion:()=>v0,ZodUnknown:()=>HM,ZodVoid:()=>JM,ZodXID:()=>L4,ZodXor:()=>XM,_ZodString:()=>k4,_default:()=>pR,_function:()=>CY,any:()=>aY,array:()=>h0,base64:()=>FX,base64url:()=>jX,bigint:()=>QX,boolean:()=>FM,catch:()=>xR,check:()=>TY,cidrv4:()=>UX,cidrv6:()=>BX,codec:()=>kY,cuid:()=>AX,cuid2:()=>EX,custom:()=>PY,date:()=>iY,describe:()=>$Y,discriminatedUnion:()=>fY,e164:()=>ZX,email:()=>wX,emoji:()=>$X,enum:()=>V4,exactOptional:()=>cR,file:()=>xY,float32:()=>JX,float64:()=>KX,function:()=>CY,guid:()=>_X,hash:()=>WX,hex:()=>HX,hostname:()=>GX,httpUrl:()=>PX,instanceof:()=>AY,int:()=>_4,int32:()=>XX,int64:()=>eY,intersection:()=>eR,ipv4:()=>DX,ipv6:()=>OX,json:()=>MY,jwt:()=>VX,keyof:()=>sY,ksuid:()=>zX,lazy:()=>IR,literal:()=>yY,looseObject:()=>cY,looseRecord:()=>mY,mac:()=>NX,map:()=>hY,meta:()=>LY,nan:()=>_Y,nanoid:()=>LX,nativeEnum:()=>vY,never:()=>F4,nonoptional:()=>gR,null:()=>qM,nullable:()=>l0,nullish:()=>bY,number:()=>BM,object:()=>lY,optional:()=>s0,partialRecord:()=>pY,pipe:()=>u0,prefault:()=>hR,preprocess:()=>RY,promise:()=>IY,readonly:()=>_R,record:()=>nR,refine:()=>PR,set:()=>gY,strictObject:()=>uY,string:()=>w4,stringFormat:()=>qX,stringbool:()=>EY,success:()=>wY,superRefine:()=>$R,symbol:()=>rY,templateLiteral:()=>SY,transform:()=>q4,tuple:()=>rR,uint32:()=>YX,uint64:()=>tY,ulid:()=>MX,undefined:()=>nY,union:()=>Z4,unknown:()=>du,url:()=>TX,uuid:()=>kX,uuidv4:()=>SX,uuidv6:()=>IX,uuidv7:()=>CX,void:()=>oY,xid:()=>RX,xor:()=>dY});var a0={};Kr(a0,{endsWith:()=>Wg,gt:()=>Si,gte:()=>gn,includes:()=>Gg,length:()=>mf,lowercase:()=>Vg,lt:()=>ki,lte:()=>ta,maxLength:()=>pf,maxSize:()=>su,mime:()=>Jg,minLength:()=>zs,minSize:()=>Ii,multipleOf:()=>iu,negative:()=>mM,nonnegative:()=>gM,nonpositive:()=>hM,normalize:()=>Kg,overwrite:()=>yo,positive:()=>pM,property:()=>vM,regex:()=>Zg,size:()=>ff,slugify:()=>e0,startsWith:()=>Hg,toLowerCase:()=>Yg,toUpperCase:()=>Qg,trim:()=>Xg,uppercase:()=>qg});var vf={};Kr(vf,{ZodISODate:()=>h4,ZodISODateTime:()=>p4,ZodISODuration:()=>x4,ZodISOTime:()=>v4,date:()=>g4,datetime:()=>m4,duration:()=>b4,time:()=>y4});var p4=F("ZodISODateTime",(e,t)=>{UA.init(e,t),St.init(e,t)});function m4(e){return VE(p4,e)}var h4=F("ZodISODate",(e,t)=>{BA.init(e,t),St.init(e,t)});function g4(e){return qE(h4,e)}var v4=F("ZodISOTime",(e,t)=>{FA.init(e,t),St.init(e,t)});function y4(e){return GE(v4,e)}var x4=F("ZodISODuration",(e,t)=>{jA.init(e,t),St.init(e,t)});function b4(e){return HE(x4,e)}var TM=(e,t)=>{$g.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>kw(e,r)},flatten:{value:r=>_w(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,ru,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,ru,2)}},isEmpty:{get(){return e.issues.length===0}}})},_$e=F("ZodError",TM),vn=F("ZodError",TM,{Parent:Error});var PM=af(vn),$M=of(vn),LM=sf(vn),o0=lf(vn),AM=O9(vn),EM=U9(vn),MM=B9(vn),RM=F9(vn),zM=j9(vn),DM=Z9(vn),NM=V9(vn),OM=q9(vn);var Xe=F("ZodType",(e,t)=>(je.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:gf(e,"input"),output:gf(e,"output")}}),e.toJSONSchema=CM(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(oe.mergeDefs(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>mn(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>PM(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>LM(e,r,a),e.parseAsync=async(r,a)=>$M(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>o0(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>AM(e,r,a),e.decode=(r,a)=>EM(e,r,a),e.encodeAsync=async(r,a)=>MM(e,r,a),e.decodeAsync=async(r,a)=>RM(e,r,a),e.safeEncode=(r,a)=>zM(e,r,a),e.safeDecode=(r,a)=>DM(e,r,a),e.safeEncodeAsync=async(r,a)=>NM(e,r,a),e.safeDecodeAsync=async(r,a)=>OM(e,r,a),e.refine=(r,a)=>e.check(PR(r,a)),e.superRefine=r=>e.check($R(r)),e.overwrite=r=>e.check(yo(r)),e.optional=()=>s0(e),e.exactOptional=()=>cR(e),e.nullable=()=>l0(e),e.nullish=()=>s0(l0(e)),e.nonoptional=r=>gR(e,r),e.array=()=>h0(e),e.or=r=>Z4([e,r]),e.and=r=>eR(e,r),e.transform=r=>u0(e,q4(r)),e.default=r=>pR(e,r),e.prefault=r=>hR(e,r),e.catch=r=>xR(e,r),e.pipe=r=>u0(e,r),e.readonly=()=>_R(e),e.describe=r=>{let a=e.clone();return en.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return en.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return en.get(e);let a=e.clone();return en.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),k4=F("_ZodString",(e,t)=>{ou.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(a,n,o)=>L_(e,a,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(Zg(...a)),e.includes=(...a)=>e.check(Gg(...a)),e.startsWith=(...a)=>e.check(Hg(...a)),e.endsWith=(...a)=>e.check(Wg(...a)),e.min=(...a)=>e.check(zs(...a)),e.max=(...a)=>e.check(pf(...a)),e.length=(...a)=>e.check(mf(...a)),e.nonempty=(...a)=>e.check(zs(1,...a)),e.lowercase=a=>e.check(Vg(a)),e.uppercase=a=>e.check(qg(a)),e.trim=()=>e.check(Xg()),e.normalize=(...a)=>e.check(Kg(...a)),e.toLowerCase=()=>e.check(Yg()),e.toUpperCase=()=>e.check(Qg()),e.slugify=()=>e.check(e0())}),c0=F("ZodString",(e,t)=>{ou.init(e,t),k4.init(e,t),e.email=r=>e.check(u_(S4,r)),e.url=r=>e.check(jg(d0,r)),e.jwt=r=>e.check(P_(U4,r)),e.emoji=r=>e.check(m_(I4,r)),e.guid=r=>e.check(Fg(i0,r)),e.uuid=r=>e.check(c_(xo,r)),e.uuidv4=r=>e.check(d_(xo,r)),e.uuidv6=r=>e.check(f_(xo,r)),e.uuidv7=r=>e.check(p_(xo,r)),e.nanoid=r=>e.check(h_(C4,r)),e.guid=r=>e.check(Fg(i0,r)),e.cuid=r=>e.check(g_(T4,r)),e.cuid2=r=>e.check(v_(P4,r)),e.ulid=r=>e.check(y_($4,r)),e.base64=r=>e.check(I_(D4,r)),e.base64url=r=>e.check(C_(N4,r)),e.xid=r=>e.check(x_(L4,r)),e.ksuid=r=>e.check(b_(A4,r)),e.ipv4=r=>e.check(w_(E4,r)),e.ipv6=r=>e.check(__(M4,r)),e.cidrv4=r=>e.check(k_(R4,r)),e.cidrv6=r=>e.check(S_(z4,r)),e.e164=r=>e.check(T_(O4,r)),e.datetime=r=>e.check(m4(r)),e.date=r=>e.check(g4(r)),e.time=r=>e.check(y4(r)),e.duration=r=>e.check(b4(r))});function w4(e){return jE(c0,e)}var St=F("ZodStringFormat",(e,t)=>{kt.init(e,t),k4.init(e,t)}),S4=F("ZodEmail",(e,t)=>{LA.init(e,t),St.init(e,t)});function wX(e){return u_(S4,e)}var i0=F("ZodGUID",(e,t)=>{PA.init(e,t),St.init(e,t)});function _X(e){return Fg(i0,e)}var xo=F("ZodUUID",(e,t)=>{$A.init(e,t),St.init(e,t)});function kX(e){return c_(xo,e)}function SX(e){return d_(xo,e)}function IX(e){return f_(xo,e)}function CX(e){return p_(xo,e)}var d0=F("ZodURL",(e,t)=>{AA.init(e,t),St.init(e,t)});function TX(e){return jg(d0,e)}function PX(e){return jg(d0,{protocol:/^https?$/,hostname:Ea.domain,...oe.normalizeParams(e)})}var I4=F("ZodEmoji",(e,t)=>{EA.init(e,t),St.init(e,t)});function $X(e){return m_(I4,e)}var C4=F("ZodNanoID",(e,t)=>{MA.init(e,t),St.init(e,t)});function LX(e){return h_(C4,e)}var T4=F("ZodCUID",(e,t)=>{RA.init(e,t),St.init(e,t)});function AX(e){return g_(T4,e)}var P4=F("ZodCUID2",(e,t)=>{zA.init(e,t),St.init(e,t)});function EX(e){return v_(P4,e)}var $4=F("ZodULID",(e,t)=>{DA.init(e,t),St.init(e,t)});function MX(e){return y_($4,e)}var L4=F("ZodXID",(e,t)=>{NA.init(e,t),St.init(e,t)});function RX(e){return x_(L4,e)}var A4=F("ZodKSUID",(e,t)=>{OA.init(e,t),St.init(e,t)});function zX(e){return b_(A4,e)}var E4=F("ZodIPv4",(e,t)=>{ZA.init(e,t),St.init(e,t)});function DX(e){return w_(E4,e)}var UM=F("ZodMAC",(e,t)=>{qA.init(e,t),St.init(e,t)});function NX(e){return ZE(UM,e)}var M4=F("ZodIPv6",(e,t)=>{VA.init(e,t),St.init(e,t)});function OX(e){return __(M4,e)}var R4=F("ZodCIDRv4",(e,t)=>{GA.init(e,t),St.init(e,t)});function UX(e){return k_(R4,e)}var z4=F("ZodCIDRv6",(e,t)=>{HA.init(e,t),St.init(e,t)});function BX(e){return S_(z4,e)}var D4=F("ZodBase64",(e,t)=>{JA.init(e,t),St.init(e,t)});function FX(e){return I_(D4,e)}var N4=F("ZodBase64URL",(e,t)=>{KA.init(e,t),St.init(e,t)});function jX(e){return C_(N4,e)}var O4=F("ZodE164",(e,t)=>{XA.init(e,t),St.init(e,t)});function ZX(e){return T_(O4,e)}var U4=F("ZodJWT",(e,t)=>{YA.init(e,t),St.init(e,t)});function VX(e){return P_(U4,e)}var bf=F("ZodCustomStringFormat",(e,t)=>{QA.init(e,t),St.init(e,t)});function qX(e,t,r={}){return hf(bf,e,t,r)}function GX(e){return hf(bf,"hostname",Ea.hostname,e)}function HX(e){return hf(bf,"hex",Ea.hex,e)}function WX(e,t){let r=t?.enc??"hex",a=`${e}_${r}`,n=Ea[a];if(!n)throw new Error(`Unrecognized hash format: ${a}`);return hf(bf,a,n,t)}var f0=F("ZodNumber",(e,t)=>{n_.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(a,n,o)=>A_(e,a,n,o),e.gt=(a,n)=>e.check(Si(a,n)),e.gte=(a,n)=>e.check(gn(a,n)),e.min=(a,n)=>e.check(gn(a,n)),e.lt=(a,n)=>e.check(ki(a,n)),e.lte=(a,n)=>e.check(ta(a,n)),e.max=(a,n)=>e.check(ta(a,n)),e.int=a=>e.check(_4(a)),e.safe=a=>e.check(_4(a)),e.positive=a=>e.check(Si(0,a)),e.nonnegative=a=>e.check(gn(0,a)),e.negative=a=>e.check(ki(0,a)),e.nonpositive=a=>e.check(ta(0,a)),e.multipleOf=(a,n)=>e.check(iu(a,n)),e.step=(a,n)=>e.check(iu(a,n)),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 BM(e){return WE(f0,e)}var fu=F("ZodNumberFormat",(e,t)=>{eE.init(e,t),f0.init(e,t)});function _4(e){return JE(fu,e)}function JX(e){return KE(fu,e)}function KX(e){return XE(fu,e)}function XX(e){return YE(fu,e)}function YX(e){return QE(fu,e)}var p0=F("ZodBoolean",(e,t)=>{Og.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>E_(e,r,a,n)});function FM(e){return eM(p0,e)}var m0=F("ZodBigInt",(e,t)=>{a_.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(a,n,o)=>M_(e,a,n,o),e.gte=(a,n)=>e.check(gn(a,n)),e.min=(a,n)=>e.check(gn(a,n)),e.gt=(a,n)=>e.check(Si(a,n)),e.gte=(a,n)=>e.check(gn(a,n)),e.min=(a,n)=>e.check(gn(a,n)),e.lt=(a,n)=>e.check(ki(a,n)),e.lte=(a,n)=>e.check(ta(a,n)),e.max=(a,n)=>e.check(ta(a,n)),e.positive=a=>e.check(Si(BigInt(0),a)),e.negative=a=>e.check(ki(BigInt(0),a)),e.nonpositive=a=>e.check(ta(BigInt(0),a)),e.nonnegative=a=>e.check(gn(BigInt(0),a)),e.multipleOf=(a,n)=>e.check(iu(a,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function QX(e){return tM(m0,e)}var B4=F("ZodBigIntFormat",(e,t)=>{tE.init(e,t),m0.init(e,t)});function eY(e){return rM(B4,e)}function tY(e){return nM(B4,e)}var jM=F("ZodSymbol",(e,t)=>{rE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>R_(e,r,a,n)});function rY(e){return aM(jM,e)}var ZM=F("ZodUndefined",(e,t)=>{nE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>D_(e,r,a,n)});function nY(e){return oM(ZM,e)}var VM=F("ZodNull",(e,t)=>{aE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>z_(e,r,a,n)});function qM(e){return iM(VM,e)}var GM=F("ZodAny",(e,t)=>{oE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>U_(e,r,a,n)});function aY(){return sM(GM)}var HM=F("ZodUnknown",(e,t)=>{iE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>B_(e,r,a,n)});function du(){return lM(HM)}var WM=F("ZodNever",(e,t)=>{sE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>O_(e,r,a,n)});function F4(e){return uM(WM,e)}var JM=F("ZodVoid",(e,t)=>{lE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>N_(e,r,a,n)});function oY(e){return cM(JM,e)}var j4=F("ZodDate",(e,t)=>{uE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(a,n,o)=>F_(e,a,n,o),e.min=(a,n)=>e.check(gn(a,n)),e.max=(a,n)=>e.check(ta(a,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function iY(e){return dM(j4,e)}var KM=F("ZodArray",(e,t)=>{cE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Q_(e,r,a,n),e.element=t.element,e.min=(r,a)=>e.check(zs(r,a)),e.nonempty=r=>e.check(zs(1,r)),e.max=(r,a)=>e.check(pf(r,a)),e.length=(r,a)=>e.check(mf(r,a)),e.unwrap=()=>e.element});function h0(e,t){return yM(KM,e,t)}function sY(e){let t=e._zod.def.shape;return V4(Object.keys(t))}var g0=F("ZodObject",(e,t)=>{pE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>e4(e,r,a,n),oe.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>V4(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:du()}),e.loose=()=>e.clone({...e._zod.def,catchall:du()}),e.strict=()=>e.clone({...e._zod.def,catchall:F4()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>oe.extend(e,r),e.safeExtend=r=>oe.safeExtend(e,r),e.merge=r=>oe.merge(e,r),e.pick=r=>oe.pick(e,r),e.omit=r=>oe.omit(e,r),e.partial=(...r)=>oe.partial(G4,e,r[0]),e.required=(...r)=>oe.required(H4,e,r[0])});function lY(e,t){let r={type:"object",shape:e??{},...oe.normalizeParams(t)};return new g0(r)}function uY(e,t){return new g0({type:"object",shape:e,catchall:F4(),...oe.normalizeParams(t)})}function cY(e,t){return new g0({type:"object",shape:e,catchall:du(),...oe.normalizeParams(t)})}var v0=F("ZodUnion",(e,t)=>{Ug.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>t0(e,r,a,n),e.options=t.options});function Z4(e,t){return new v0({type:"union",options:e,...oe.normalizeParams(t)})}var XM=F("ZodXor",(e,t)=>{v0.init(e,t),mE.init(e,t),e._zod.processJSONSchema=(r,a,n)=>t0(e,r,a,n),e.options=t.options});function dY(e,t){return new XM({type:"union",options:e,inclusive:!1,...oe.normalizeParams(t)})}var YM=F("ZodDiscriminatedUnion",(e,t)=>{v0.init(e,t),hE.init(e,t)});function fY(e,t,r){return new YM({type:"union",options:t,discriminator:e,...oe.normalizeParams(r)})}var QM=F("ZodIntersection",(e,t)=>{gE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>t4(e,r,a,n)});function eR(e,t){return new QM({type:"intersection",left:e,right:t})}var tR=F("ZodTuple",(e,t)=>{o_.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>r4(e,r,a,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function rR(e,t,r){let a=t instanceof je,n=a?r:t,o=a?t:null;return new tR({type:"tuple",items:e,rest:o,...oe.normalizeParams(n)})}var y0=F("ZodRecord",(e,t)=>{vE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>n4(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function nR(e,t,r){return new y0({type:"record",keyType:e,valueType:t,...oe.normalizeParams(r)})}function pY(e,t,r){let a=mn(e);return a._zod.values=void 0,new y0({type:"record",keyType:a,valueType:t,...oe.normalizeParams(r)})}function mY(e,t,r){return new y0({type:"record",keyType:e,valueType:t,mode:"loose",...oe.normalizeParams(r)})}var aR=F("ZodMap",(e,t)=>{yE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>X_(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Ii(...r)),e.nonempty=r=>e.check(Ii(1,r)),e.max=(...r)=>e.check(su(...r)),e.size=(...r)=>e.check(ff(...r))});function hY(e,t,r){return new aR({type:"map",keyType:e,valueType:t,...oe.normalizeParams(r)})}var oR=F("ZodSet",(e,t)=>{xE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Y_(e,r,a,n),e.min=(...r)=>e.check(Ii(...r)),e.nonempty=r=>e.check(Ii(1,r)),e.max=(...r)=>e.check(su(...r)),e.size=(...r)=>e.check(ff(...r))});function gY(e,t){return new oR({type:"set",valueType:e,...oe.normalizeParams(t)})}var xf=F("ZodEnum",(e,t)=>{bE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(a,n,o)=>j_(e,a,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,n)=>{let o={};for(let i of a)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new xf({...t,checks:[],...oe.normalizeParams(n),entries:o})},e.exclude=(a,n)=>{let o={...t.entries};for(let i of a)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new xf({...t,checks:[],...oe.normalizeParams(n),entries:o})}});function V4(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new xf({type:"enum",entries:r,...oe.normalizeParams(t)})}function vY(e,t){return new xf({type:"enum",entries:e,...oe.normalizeParams(t)})}var iR=F("ZodLiteral",(e,t)=>{wE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Z_(e,r,a,n),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 yY(e,t){return new iR({type:"literal",values:Array.isArray(e)?e:[e],...oe.normalizeParams(t)})}var sR=F("ZodFile",(e,t)=>{_E.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>G_(e,r,a,n),e.min=(r,a)=>e.check(Ii(r,a)),e.max=(r,a)=>e.check(su(r,a)),e.mime=(r,a)=>e.check(Jg(Array.isArray(r)?r:[r],a))});function xY(e){return xM(sR,e)}var lR=F("ZodTransform",(e,t)=>{kE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>K_(e,r,a,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Es(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(oe.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(oe.issue(i))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function q4(e){return new lR({type:"transform",transform:e})}var G4=F("ZodOptional",(e,t)=>{i_.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>r0(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function s0(e){return new G4({type:"optional",innerType:e})}var uR=F("ZodExactOptional",(e,t)=>{SE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>r0(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function cR(e){return new uR({type:"optional",innerType:e})}var dR=F("ZodNullable",(e,t)=>{IE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>a4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function l0(e){return new dR({type:"nullable",innerType:e})}function bY(e){return s0(l0(e))}var fR=F("ZodDefault",(e,t)=>{CE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>i4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function pR(e,t){return new fR({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}var mR=F("ZodPrefault",(e,t)=>{TE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>s4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function hR(e,t){return new mR({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oe.shallowClone(t)}})}var H4=F("ZodNonOptional",(e,t)=>{PE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>o4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function gR(e,t){return new H4({type:"nonoptional",innerType:e,...oe.normalizeParams(t)})}var vR=F("ZodSuccess",(e,t)=>{$E.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>H_(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function wY(e){return new vR({type:"success",innerType:e})}var yR=F("ZodCatch",(e,t)=>{LE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>l4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xR(e,t){return new yR({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var bR=F("ZodNaN",(e,t)=>{AE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>V_(e,r,a,n)});function _Y(e){return fM(bR,e)}var W4=F("ZodPipe",(e,t)=>{EE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>u4(e,r,a,n),e.in=t.in,e.out=t.out});function u0(e,t){return new W4({type:"pipe",in:e,out:t})}var J4=F("ZodCodec",(e,t)=>{W4.init(e,t),Bg.init(e,t)});function kY(e,t,r){return new J4({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var wR=F("ZodReadonly",(e,t)=>{ME.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>c4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function _R(e){return new wR({type:"readonly",innerType:e})}var kR=F("ZodTemplateLiteral",(e,t)=>{RE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>q_(e,r,a,n)});function SY(e,t){return new kR({type:"template_literal",parts:e,...oe.normalizeParams(t)})}var SR=F("ZodLazy",(e,t)=>{NE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>f4(e,r,a,n),e.unwrap=()=>e._zod.def.getter()});function IR(e){return new SR({type:"lazy",getter:e})}var CR=F("ZodPromise",(e,t)=>{DE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>d4(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function IY(e){return new CR({type:"promise",innerType:e})}var TR=F("ZodFunction",(e,t)=>{zE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>J_(e,r,a,n)});function CY(e){return new TR({type:"function",input:Array.isArray(e?.input)?rR(e?.input):e?.input??h0(du()),output:e?.output??du()})}var x0=F("ZodCustom",(e,t)=>{OE.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,a,n)=>W_(e,r,a,n)});function TY(e){let t=new Lt({check:"custom"});return t._zod.check=e,t}function PY(e,t){return bM(x0,e??(()=>!0),t)}function PR(e,t={}){return wM(x0,e,t)}function $R(e){return _M(e)}var $Y=kM,LY=SM;function AY(e,t={}){let r=new x0({type:"custom",check:"custom",fn:a=>
50a instanceof e,abort:!0,...oe.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var EY=(...e)=>IM({Codec:J4,Boolean:p0,String:c0},...e);function MY(e){let t=IR(()=>Z4([w4(e),BM(),FM(),qM(),h0(t),nR(w4(),t)]));return t}function RY(e,t){return u0(q4(e),t)}var LR;LR||(LR={});var L$e={...yf,...a0,iso:vf};br(s_());var st;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let o={};for(let i of n)o[i]=i;return o},e.getValidEnumValues=n=>{let o=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),i={};for(let s of o)i[s]=n[s];return e.objectValues(i)},e.objectValues=n=>e.objectKeys(n).map(function(o){return n[o]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let o=[];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&o.push(i);return o},e.find=(n,o)=>{for(let i of n)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function a(n,o=" | "){return n.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=a,e.jsonStringifyReplacer=(n,o)=>typeof o=="bigint"?o.toString():o})(st||(st={}));var AR;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(AR||(AR={}));var _e=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bo=e=>{switch(typeof e){case"undefined":return _e.undefined;case"string":return _e.string;case"number":return Number.isNaN(e)?_e.nan:_e.number;case"boolean":return _e.boolean;case"function":return _e.function;case"bigint":return _e.bigint;case"symbol":return _e.symbol;case"object":return Array.isArray(e)?_e.array:e===null?_e.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?_e.promise:typeof Map<"u"&&e instanceof Map?_e.map:typeof Set<"u"&&e instanceof Set?_e.set:typeof Date<"u"&&e instanceof Date?_e.date:_e.object;default:return _e.unknown}};
vendor: 4,389 bytes, line 50
50var te=st.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 yn=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};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},a={_errors:[]},n=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(n);else if(i.code==="invalid_return_type")n(i.returnTypeError);else if(i.code==="invalid_arguments")n(i.argumentsError);else if(i.path.length===0)a._errors.push(r(i));else{let s=a,u=0;for(;u<i.path.length;){let c=i.path[u];u===i.path.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(r(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}};return n(this),a}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,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),a=[];for(let n of this.issues)if(n.path.length>0){let o=n.path[0];r[o]=r[o]||[],r[o].push(t(n))}else a.push(t(n));return{formErrors:a,fieldErrors:r}}get formErrors(){return this.flatten()}};yn.create=e=>new yn(e);var UY=(e,t)=>{let r;switch(e.code){case te.invalid_type:e.received===_e.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case te.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,st.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:r=`Unrecognized key(s) in object: ${st.joinValues(e.keys,", ")}`;break;case te.invalid_union:r="Invalid input";break;case te.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${st.joinValues(e.options)}`;break;case te.invalid_enum_value:r=`Invalid enum value. Expected ${st.joinValues(e.options)}, received '${e.received}'`;break;case te.invalid_arguments:r="Invalid function arguments";break;case te.invalid_return_type:r="Invalid function return type";break;case te.invalid_date:r="Invalid date";break;case te.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}"`:st.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case te.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 te.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 te.custom:r="Invalid input";break;
vendor: 7,334 bytes, line 50
50case te.invalid_intersection_types:r="Intersection results could not be merged";break;case te.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case te.not_finite:r="Number must be finite";break;default:r=t.defaultError,st.assertNever(e)}return{message:r}},Ci=UY;var BY=Ci;function wf(){return BY}var b0=e=>{let{data:t,path:r,errorMaps:a,issueData:n}=e,o=[...r,...n.path||[]],i={...n,path:o};if(n.message!==void 0)return{...n,path:o,message:n.message};let s="",u=a.filter(c=>!!c).slice().reverse();for(let c of u)s=c(i,{data:t,defaultError:s}).message;return{...n,path:o,message:s}};function pe(e,t){let r=wf(),a=b0({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Ci?void 0:Ci].filter(n=>!!n)});e.common.issues.push(a)}var Pr=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 a=[];for(let n of r){if(n.status==="aborted")return De;n.status==="dirty"&&t.dirty(),a.push(n.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,r){let a=[];for(let n of r){let o=await n.key,i=await n.value;a.push({key:o,value:i})}return e.mergeObjectSync(t,a)}static mergeObjectSync(t,r){let a={};for(let n of r){let{key:o,value:i}=n;if(o.status==="aborted"||i.status==="aborted")return De;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||n.alwaysSet)&&(a[o.value]=i.value)}return{status:t.value,value:a}}},De=Object.freeze({status:"aborted"}),pu=e=>({status:"dirty",value:e}),Ur=e=>({status:"valid",value:e}),K4=e=>e.status==="aborted",X4=e=>e.status==="dirty",Ns=e=>e.status==="valid",_f=e=>typeof Promise<"u"&&e instanceof Promise;var Te;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Te||(Te={}));var On=class{constructor(t,r,a,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=a,this._key=n}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}},ER=(e,t)=>{if(Ns(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 yn(e.common.issues);return this._error=r,this._error}}};function We(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:a,description:n}=e;if(t&&(r||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:n}:{errorMap:(i,s)=>{let{message:u}=e;return i.code==="invalid_enum_value"?{message:u??s.defaultError}:typeof s.data>"u"?{message:u??a??s.defaultError}:i.code!=="invalid_type"?{message:s.defaultError}:{message:u??r??s.defaultError}},description:n}}var rt=class{get description(){return this._def.description}_getType(t){return bo(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:bo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Pr,ctx:{common:t.parent.common,data:t.data,parsedType:bo(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(_f(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 a=this.safeParse(t,r);if(a.success)return a.data;throw a.error}safeParse(t,r){let a={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bo(t)},n=this._parseSync({data:t,path:a.path,parent:a});return ER(a,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bo(t)};if(!this["~standard"].async)try{let a=this._parseSync({data:t,path:[],parent:r});return Ns(a)?{value:a.value}:{issues:r.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(a=>Ns(a)?{value:a.value}:{issues:r.common.issues})}async parseAsync(t,r){let a=await this.safeParseAsync(t,r);if(a.success)return a.data;throw a.error}async safeParseAsync(t,r){let a={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bo(t)},n=this._parse({data:t,path:a.path,parent:a}),o=await(_f(n)?n:Promise.resolve(n));return ER(a,o)}refine(t,r){let a=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,o)=>{let i=t(n),s=()=>o.addIssue({code:te.custom,...a(n)});return typeof Promise<"u"&&i instanceof Promise?i.then(u=>u?!0:(s(),!1)):i?!0:(s(),!1)})}refinement(t,r){return this._refinement((a,n)=>t(a)?!0:(n.addIssue(typeof r=="function"?r(a,n):r),!1))}_refinement(t){return new na({schema:this,typeName:ie.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 ra.create(this,this._def)}nullable(){return ko.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Pi.create(this)}promise(){return Os.create(this,this._def)}or(t){return yu.create([this,t],this._def)}and(t){return xu.create(this,t,this._def)}transform(t){return new na({...We(this._def),schema:this,typeName:ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new Su({...We(this._def),innerType:this,defaultValue:r,typeName:ie.ZodDefault})}brand(){return new w0({typeName:ie.ZodBranded,type:this,...We(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new Iu({...We(this._def),innerType:this,catchValue:r,typeName:ie.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return _0.create(this,t)}readonly(){return Cu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},FY=/^c[^\s-]{8,}
vendor: 40,955 bytes, line 50
50$/i,jY=/^[0-9a-z]+$/,ZY=/^[0-9A-HJKMNP-TV-Z]{26}$/i,VY=/^[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,qY=/^[a-z0-9_-]{21}$/i,GY=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,HY=/^[-+]?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)?)??$/,WY=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JY="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Y4,KY=/^(?:(?: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])$/,XY=/^(?:(?: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])$/,YY=/^(([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]))$/,QY=/^(([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])$/,eQ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,tQ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,MR="((\\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])))",rQ=new RegExp(`^${MR}$`);function RR(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 nQ(e){return new RegExp(`^${RR(e)}$`)}function aQ(e){let t=`${MR}T${RR(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 oQ(e,t){return!!((t==="v4"||!t)&&KY.test(e)||(t==="v6"||!t)&&YY.test(e))}function iQ(e,t){if(!GY.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let a=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(a));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function sQ(e,t){return!!((t==="v4"||!t)&&XY.test(e)||(t==="v6"||!t)&&QY.test(e))}var hu=class e extends rt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==_e.string){let o=this._getOrReturnCtx(t);return pe(o,{code:te.invalid_type,expected:_e.string,received:o.parsedType}),De}let a=new Pr,n;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(n=this._getOrReturnCtx(t,n),pe(n,{code:te.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="max")t.data.length>o.value&&(n=this._getOrReturnCtx(t,n),pe(n,{code:te.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),a.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,s=t.data.length<o.value;(i||s)&&(n=this._getOrReturnCtx(t,n),i?pe(n,{code:te.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):s&&pe(n,{code:te.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),a.dirty())}else if(o.kind==="email")WY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"email",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="emoji")Y4||(Y4=new RegExp(JY,"u")),Y4.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"emoji",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="uuid")VY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"uuid",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="nanoid")qY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"nanoid",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid")FY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"cuid",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="cuid2")jY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"cuid2",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="ulid")ZY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"ulid",code:te.invalid_string,message:o.message}),a.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),pe(n,{validation:"url",code:te.invalid_string,message:o.message}),a.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"regex",code:te.invalid_string,message:o.message}),a.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),a.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)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:{startsWith:o.value},message:o.message}),a.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:{endsWith:o.value},message:o.message}),a.dirty()):o.kind==="datetime"?aQ(o).test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:"datetime",message:o.message}),a.dirty()):o.kind==="date"?rQ.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:"date",message:o.message}),a.dirty()):o.kind==="time"?nQ(o).test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{code:te.invalid_string,validation:"time",message:o.message}),a.dirty()):o.kind==="duration"?HY.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"duration",code:te.invalid_string,message:o.message}),a.dirty()):o.kind==="ip"?oQ(t.data,o.version)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"ip",code:te.invalid_string,message:o.message}),a.dirty()):o.kind==="jwt"?iQ(t.data,o.alg)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"jwt",code:te.invalid_string,message:o.message}),a.dirty()):o.kind==="cidr"?sQ(t.data,o.version)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"cidr",code:te.invalid_string,message:o.message}),a.dirty()):o.kind==="base64"?eQ.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"base64",code:te.invalid_string,message:o.message}),a.dirty()):o.kind==="base64url"?tQ.test(t.data)||(n=this._getOrReturnCtx(t,n),pe(n,{validation:"base64url",code:te.invalid_string,message:o.message}),a.dirty()):st.assertNever(o);return{status:a.value,value:t.data}}_regex(t,r,a){return this.refinement(n=>t.test(n),{validation:r,code:te.invalid_string,...Te.errToObj(a)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Te.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Te.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Te.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Te.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Te.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Te.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Te.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Te.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Te.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Te.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Te.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Te.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Te.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,...Te.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,...Te.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Te.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Te.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Te.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Te.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Te.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Te.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Te.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Te.errToObj(r)})}nonempty(t){return this.min(1,Te.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}};hu.create=e=>new hu({checks:[],typeName:ie.ZodString,coerce:e?.coerce??!1,...We(e)});function lQ(e,t){let r=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,n=r>a?r:a,o=Number.parseInt(e.toFixed(n).replace(".","")),i=Number.parseInt(t.toFixed(n).replace(".",""));return o%i/10**n}var kf=class e extends rt{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)!==_e.number){let o=this._getOrReturnCtx(t);return pe(o,{code:te.invalid_type,expected:_e.number,received:o.parsedType}),De}let a,n=new Pr;for(let o of this._def.checks)o.kind==="int"?st.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),pe(a,{code:te.invalid_type,expected:"integer",received:"float",message:o.message}),n.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),n.dirty()):o.kind==="multipleOf"?lQ(t.data,o.value)!==0&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),pe(a,{code:te.not_finite,message:o.message}),n.dirty()):st.assertNever(o);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Te.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Te.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Te.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Te.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Te.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Te.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Te.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Te.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Te.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Te.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Te.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"&&st.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(r===null||a.value>r)&&(r=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(r)&&Number.isFinite(t)}};kf.create=e=>new kf({checks:[],typeName:ie.ZodNumber,coerce:e?.coerce||!1,...We(e)});var Sf=class e extends rt{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)!==_e.bigint)return this._getInvalidInput(t);let a,n=new Pr;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),n.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),pe(a,{code:te.not_multiple_of,multipleOf:o.value,message:o.message}),n.dirty()):st.assertNever(o);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return pe(r,{code:te.invalid_type,expected:_e.bigint,received:r.parsedType}),De}gte(t,r){return this.setLimit("min",t,!0,Te.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Te.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Te.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Te.toString(r))}setLimit(t,r,a,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:a,message:Te.toString(n)}]})}_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:Te.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Te.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Te.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Te.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}};Sf.create=e=>new Sf({checks:[],typeName:ie.ZodBigInt,coerce:e?.coerce??!1,...We(e)});var If=class extends rt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==_e.boolean){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.boolean,received:a.parsedType}),De}return Ur(t.data)}};If.create=e=>new If({typeName:ie.ZodBoolean,coerce:e?.coerce||!1,...We(e)});var Cf=class e extends rt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==_e.date){let o=this._getOrReturnCtx(t);return pe(o,{code:te.invalid_type,expected:_e.date,received:o.parsedType}),De}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return pe(o,{code:te.invalid_date}),De}let a=new Pr,n;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(n=this._getOrReturnCtx(t,n),pe(n,{code:te.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),a.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(n=this._getOrReturnCtx(t,n),pe(n,{code:te.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),a.dirty()):st.assertNever(o);return{status:a.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:Te.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Te.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}};Cf.create=e=>new Cf({checks:[],coerce:e?.coerce||!1,typeName:ie.ZodDate,...We(e)});var Tf=class extends rt{_parse(t){if(this._getType(t)!==_e.symbol){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.symbol,received:a.parsedType}),De}return Ur(t.data)}};Tf.create=e=>new Tf({typeName:ie.ZodSymbol,...We(e)});var gu=class extends rt{_parse(t){if(this._getType(t)!==_e.undefined){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.undefined,received:a.parsedType}),De}return Ur(t.data)}};gu.create=e=>new gu({typeName:ie.ZodUndefined,...We(e)});var vu=class extends rt{_parse(t){if(this._getType(t)!==_e.null){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.null,received:a.parsedType}),De}return Ur(t.data)}};vu.create=e=>new vu({typeName:ie.ZodNull,...We(e)});var Pf=class extends rt{constructor(){super(...arguments),this._any=!0}_parse(t){return Ur(t.data)}};Pf.create=e=>new Pf({typeName:ie.ZodAny,...We(e)});var Ti=class extends rt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Ur(t.data)}};Ti.create=e=>new Ti({typeName:ie.ZodUnknown,...We(e)});var Ma=class extends rt{_parse(t){let r=this._getOrReturnCtx(t);return pe(r,{code:te.invalid_type,expected:_e.never,received:r.parsedType}),De}};Ma.create=e=>new Ma({typeName:ie.ZodNever,...We(e)});var $f=class extends rt{_parse(t){if(this._getType(t)!==_e.undefined){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.void,received:a.parsedType}),De}return Ur(t.data)}};$f.create=e=>new $f({typeName:ie.ZodVoid,...We(e)});var Pi=class e extends rt{_parse(t){let{ctx:r,status:a}=this._processInputParams(t),n=this._def;if(r.parsedType!==_e.array)return pe(r,{code:te.invalid_type,expected:_e.array,received:r.parsedType}),De;if(n.exactLength!==null){let i=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(i||s)&&(pe(r,{code:i?te.too_big:te.too_small,minimum:s?n.exactLength.value:void 0,maximum:i?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),a.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(pe(r,{code:te.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),a.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(pe(r,{code:te.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),a.dirty()),r.common.async)return Promise.all([...r.data].map((i,s)=>n.type._parseAsync(new On(r,i,r.path,s)))).then(i=>Pr.mergeArray(a,i));let o=[...r.data].map((i,s)=>n.type._parseSync(new On(r,i,r.path,s)));return Pr.mergeArray(a,o)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Te.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Te.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Te.toString(r)}})}nonempty(t){return this.min(1,t)}};Pi.create=(e,t)=>new Pi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ie.ZodArray,...We(t)});function mu(e){if(e instanceof xn){let t={};for(let r in e.shape){let a=e.shape[r];t[r]=ra.create(mu(a))}return new xn({...e._def,shape:()=>t})}else return e instanceof Pi?new Pi({...e._def,type:mu(e.element)}):e instanceof ra?ra.create(mu(e.unwrap())):e instanceof ko?ko.create(mu(e.unwrap())):e instanceof _o?_o.create(e.items.map(t=>mu(t))):e}var xn=class e extends rt{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=st.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==_e.object){let c=this._getOrReturnCtx(t);return pe(c,{code:te.invalid_type,expected:_e.object,received:c.parsedType}),De}let{status:a,ctx:n}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),s=[];if(!(this._def.catchall instanceof Ma&&this._def.unknownKeys==="strip"))for(let c in n.data)i.includes(c)||s.push(c);let u=[];for(let c of i){let f=o[c],p=n.data[c];u.push({key:{status:"valid",value:c},value:f._parse(new On(n,p,n.path,c)),alwaysSet:c in n.data})}if(this._def.catchall instanceof Ma){let c=this._def.unknownKeys;if(c==="passthrough")for(let f of s)u.push({key:{status:"valid",value:f},value:{status:"valid",value:n.data[f]}});else if(c==="strict")s.length>0&&(pe(n,{code:te.unrecognized_keys,keys:s}),a.dirty());else if(c!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let c=this._def.catchall;for(let f of s){let p=n.data[f];u.push({key:{status:"valid",value:f},value:c._parse(new On(n,p,n.path,f)),alwaysSet:f in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let c=[];for(let f of u){let p=await f.key,h=await f.value;c.push({key:p,value:h,alwaysSet:f.alwaysSet})}return c}).then(c=>Pr.mergeObjectSync(a,c)):Pr.mergeObjectSync(a,u)}get shape(){return this._def.shape()}strict(t){return Te.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,a)=>{let n=this._def.errorMap?.(r,a).message??a.defaultError;return r.code==="unrecognized_keys"?{message:Te.errToObj(t).message??n}:{message:n}}}:{}})}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:ie.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let a of st.objectKeys(t))t[a]&&this.shape[a]&&(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let a of st.objectKeys(this.shape))t[a]||(r[a]=this.shape[a]);return new e({...this._def,shape:()=>r})}deepPartial(){return mu(this)}partial(t){let r={};for(let a of st.objectKeys(this.shape)){let n=this.shape[a];t&&!t[a]?r[a]=n:r[a]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let a of st.objectKeys(this.shape))if(t&&!t[a])r[a]=this.shape[a];else{let o=this.shape[a];for(;o instanceof ra;)o=o._def.innerType;r[a]=o}return new e({...this._def,shape:()=>r})}keyof(){return zR(st.objectKeys(this.shape))}};xn.create=(e,t)=>new xn({shape:()=>e,unknownKeys:"strip",catchall:Ma.create(),typeName:ie.ZodObject,...We(t)});xn.strictCreate=(e,t)=>new xn({shape:()=>e,unknownKeys:"strict",catchall:Ma.create(),typeName:ie.ZodObject,...We(t)});xn.lazycreate=(e,t)=>new xn({shape:e,unknownKeys:"strip",catchall:Ma.create(),typeName:ie.ZodObject,...We(t)});var yu=class extends rt{_parse(t){let{ctx:r}=this._processInputParams(t),a=this._def.options;function n(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 yn(s.ctx.common.issues));return pe(r,{code:te.invalid_union,unionErrors:i}),De}if(r.common.async)return Promise.all(a.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(n);{let o,i=[];for(let u of a){let c={...r,common:{...r.common,issues:[]},parent:null},f=u._parseSync({data:r.data,path:r.path,parent:c});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(o)return r.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(u=>new yn(u));return pe(r,{code:te.invalid_union,unionErrors:s}),De}}get options(){return this._def.options}};yu.create=(e,t)=>new yu({options:e,typeName:ie.ZodUnion,...We(t)});var wo=e=>e instanceof bu?wo(e.schema):e instanceof na?wo(e.innerType()):e instanceof wu?[e.value]:e instanceof _u?e.options:e instanceof ku?st.objectValues(e.enum):e instanceof Su?wo(e._def.innerType):e instanceof gu?[void 0]:e instanceof vu?[null]:e instanceof ra?[void 0,...wo(e.unwrap())]:e instanceof ko?[null,...wo(e.unwrap())]:e instanceof w0||e instanceof Cu?wo(e.unwrap()):e instanceof Iu?wo(e._def.innerType):[],Q4=class e extends rt{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.object)return pe(r,{code:te.invalid_type,expected:_e.object,received:r.parsedType}),De;let a=this.discriminator,n=r.data[a],o=this.optionsMap.get(n);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}):(pe(r,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),De)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,a){let n=new Map;for(let o of r){let i=wo(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(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,o)}}return new e({typeName:ie.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...We(a)})}};function e2(e,t){let r=bo(e),a=bo(t);if(e===t)return{valid:!0,data:e};if(r===_e.object&&a===_e.object){let n=st.objectKeys(t),o=st.objectKeys(e).filter(s=>n.indexOf(s)!==-1),i={...e,...t};for(let s of o){let u=e2(e[s],t[s]);if(!u.valid)return{valid:!1};i[s]=u.data}return{valid:!0,data:i}}else if(r===_e.array&&a===_e.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let o=0;o<e.length;o++){let i=e[o],s=t[o],u=e2(i,s);if(!u.valid)return{valid:!1};n.push(u.data)}return{valid:!0,data:n}}else return r===_e.date&&a===_e.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var xu=class extends rt{_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=(o,i)=>{if(K4(o)||K4(i))return De;let s=e2(o.value,i.value);return s.valid?((X4(o)||X4(i))&&r.dirty(),{status:r.value,value:s.data}):(pe(a,{code:te.invalid_intersection_types}),De)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([o,i])=>n(o,i)):n(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}};xu.create=(e,t,r)=>new xu({left:e,right:t,typeName:ie.ZodIntersection,...We(r)});var _o=class e extends rt{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==_e.array)return pe(a,{code:te.invalid_type,expected:_e.array,received:a.parsedType}),De;if(a.data.length<this._def.items.length)return pe(a,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),De;!this._def.rest&&a.data.length>this._def.items.length&&(pe(a,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let o=[...a.data].map((i,s)=>{let u=this._def.items[s]||this._def.rest;return u?u._parse(new On(a,i,a.path,s)):null}).filter(i=>!!i);return a.common.async?Promise.all(o).then(i=>Pr.mergeArray(r,i)):Pr.mergeArray(r,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};_o.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _o({items:e,typeName:ie.ZodTuple,rest:null,...We(t)})};var t2=class e extends rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==_e.object)return pe(a,{code:te.invalid_type,expected:_e.object,received:a.parsedType}),De;let n=[],o=this._def.keyType,i=this._def.valueType;for(let s in a.data)n.push({key:o._parse(new On(a,s,a.path,s)),value:i._parse(new On(a,a.data[s],a.path,s)),alwaysSet:s in a.data});return a.common.async?Pr.mergeObjectAsync(r,n):Pr.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,a){return r instanceof rt?new e({keyType:t,valueType:r,typeName:ie.ZodRecord,...We(a)}):new e({keyType:hu.create(),valueType:t,typeName:ie.ZodRecord,...We(r)})}},Lf=class extends rt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==_e.map)return pe(a,{code:te.invalid_type,expected:_e.map,received:a.parsedType}),De;let n=this._def.keyType,o=this._def.valueType,i=[...a.data.entries()].map(([s,u],c)=>({key:n._parse(new On(a,s,a.path,[c,"key"])),value:o._parse(new On(a,u,a.path,[c,"value"]))}));if(a.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let u of i){let c=await u.key,f=await u.value;if(c.status==="aborted"||f.status==="aborted")return De;(c.status==="dirty"||f.status==="dirty")&&r.dirty(),s.set(c.value,f.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let u of i){let c=u.key,f=u.value;if(c.status==="aborted"||f.status==="aborted")return De;(c.status==="dirty"||f.status==="dirty")&&r.dirty(),s.set(c.value,f.value)}return{status:r.value,value:s}}}};Lf.create=(e,t,r)=>new Lf({valueType:t,keyType:e,typeName:ie.ZodMap,...We(r)});var Af=class e extends rt{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.parsedType!==_e.set)return pe(a,{code:te.invalid_type,expected:_e.set,received:a.parsedType}),De;let n=this._def;n.minSize!==null&&a.data.size<n.minSize.value&&(pe(a,{code:te.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&a.data.size>n.maxSize.value&&(pe(a,{code:te.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let o=this._def.valueType;function i(u){let c=new Set;for(let f of u){if(f.status==="aborted")return De;f.status==="dirty"&&r.dirty(),c.add(f.value)}return{status:r.value,value:c}}let s=[...a.data.values()].map((u,c)=>o._parse(new On(a,u,a.path,c)));return a.common.async?Promise.all(s).then(u=>i(u)):i(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Te.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Te.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};Af.create=(e,t)=>new Af({valueType:e,minSize:null,maxSize:null,typeName:ie.ZodSet,...We(t)});var r2=class e extends rt{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.function)return pe(r,{code:te.invalid_type,expected:_e.function,received:r.parsedType}),De;function a(s,u){return b0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wf(),Ci].filter(c=>!!c),issueData:{code:te.invalid_arguments,argumentsError:u}})}function n(s,u){return b0({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,wf(),Ci].filter(c=>!!c),issueData:{code:te.invalid_return_type,returnTypeError:u}})}let o={errorMap:r.common.contextualErrorMap},i=r.data;if(this._def.returns instanceof Os){let s=this;return Ur(async function(...u){let c=new yn([]),f=await s._def.args.parseAsync(u,o).catch(g=>{throw c.addIssue(a(u,g)),c}),p=await Reflect.apply(i,this,f);return await s._def.returns._def.type.parseAsync(p,o).catch(g=>{throw c.addIssue(n(p,g)),c})})}else{let s=this;return Ur(function(...u){let c=s._def.args.safeParse(u,o);if(!c.success)throw new yn([a(u,c.error)]);let f=Reflect.apply(i,this,c.data),p=s._def.returns.safeParse(f,o);if(!p.success)throw new yn([n(f,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:_o.create(t).rest(Ti.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,a){return new e({args:t||_o.create([]).rest(Ti.create()),returns:r||Ti.create(),typeName:ie.ZodFunction,...We(a)})}},bu=class extends rt{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})}};bu.create=(e,t)=>new bu({getter:e,typeName:ie.ZodLazy,...We(t)});var wu=class extends rt{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return pe(r,{received:r.data,code:te.invalid_literal,expected:this._def.value}),De}return{status:"valid",value:t.data}}get value(){return this._def.value}};wu.create=(e,t)=>new wu({value:e,typeName:ie.ZodLiteral,...We(t)});function zR(e,t){return new _u({values:e,typeName:ie.ZodEnum,...We(t)})}var _u=class e extends rt{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),a=this._def.values;return pe(r,{expected:st.joinValues(a),received:r.parsedType,code:te.invalid_type}),De}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),a=this._def.values;return pe(r,{received:r.data,code:te.invalid_enum_value,options:a}),De}return Ur(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(a=>!t.includes(a)),{...this._def,...r})}};_u.create=zR;var ku=class extends rt{_parse(t){let r=st.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==_e.string&&a.parsedType!==_e.number){let n=st.objectValues(r);return pe(a,{expected:st.joinValues(n),received:a.parsedType,code:te.invalid_type}),De}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=st.objectValues(r);return pe(a,{received:a.data,code:te.invalid_enum_value,options:n}),De}return Ur(t.data)}get enum(){return this._def.values}};ku.create=(e,t)=>new ku({values:e,typeName:ie.ZodNativeEnum,...We(t)});var Os=class extends rt{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==_e.promise&&r.common.async===!1)return pe(r,{code:te.invalid_type,expected:_e.promise,received:r.parsedType}),De;let a=r.parsedType===_e.promise?r.data:Promise.resolve(r.data);return Ur(a.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Os.create=(e,t)=>new Os({type:e,typeName:ie.ZodPromise,...We(t)});var na=class extends rt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:a}=this._processInputParams(t),n=this._def.effect||null,o={addIssue:i=>{pe(a,i),i.fatal?r.abort():r.dirty()},get path(){return a.path}};if(o.addIssue=o.addIssue.bind(o),n.type==="preprocess"){let i=n.transform(a.data,o);if(a.common.async)return Promise.resolve(i).then(async s=>{if(r.value==="aborted")return De;let u=await this._def.schema._parseAsync({data:s,path:a.path,parent:a});return u.status==="aborted"?De:u.status==="dirty"?pu(u.value):r.value==="dirty"?pu(u.value):u});{if(r.value==="aborted")return De;let s=this._def.schema._parseSync({data:i,path:a.path,parent:a});return s.status==="aborted"?De:s.status==="dirty"?pu(s.value):r.value==="dirty"?pu(s.value):s}}if(n.type==="refinement"){let i=s=>{let u=n.refinement(s,o);if(a.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(a.common.async===!1){let s=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?De:(s.status==="dirty"&&r.dirty(),i(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(s=>s.status==="aborted"?De:(s.status==="dirty"&&r.dirty(),i(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(a.common.async===!1){let i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Ns(i))return De;let s=n.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:a.data,path:a.path,parent:a}).then(i=>Ns(i)?Promise.resolve(n.transform(i.value,o)).then(s=>({status:r.value,value:s})):De);st.assertNever(n)}};na.create=(e,t,r)=>new na({schema:e,typeName:ie.ZodEffects,effect:t,...We(r)});na.createWithPreprocess=(e,t,r)=>new na({schema:t,effect:{type:"preprocess",transform:e},typeName:ie.ZodEffects,...We(r)});var ra=class extends rt{_parse(t){return this._getType(t)===_e.undefined?Ur(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ra.create=(e,t)=>new ra({innerType:e,typeName:ie.ZodOptional,...We(t)});var ko=class extends rt{_parse(t){return this._getType(t)===_e.null?Ur(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};ko.create=(e,t)=>new ko({innerType:e,typeName:ie.ZodNullable,...We(t)});var Su=class extends rt{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return r.parsedType===_e.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};Su.create=(e,t)=>new Su({innerType:e,typeName:ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...We(t)});var Iu=class extends rt{_parse(t){let{ctx:r}=this._processInputParams(t),a={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return _f(n)?n.then(o=>
50({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new yn(a.common.issues)},input:a.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new yn(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}};Iu.create=(e,t)=>new Iu({innerType:e,typeName:ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...We(t)});var Ef=class extends rt{_parse(t){if(this._getType(t)!==_e.nan){let a=this._getOrReturnCtx(t);return pe(a,{code:te.invalid_type,expected:_e.nan,received:a.parsedType}),De}return{status:"valid",value:t.data}}};Ef.create=e=>new Ef({typeName:ie.ZodNaN,...We(e)});var w0=class extends rt{_parse(t){let{ctx:r}=this._processInputParams(t),a=r.data;return this._def.type._parse({data:a,path:r.path,parent:r})}unwrap(){return this._def.type}},_0=class e extends rt{_parse(t){let{status:r,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?De:o.status==="dirty"?(r.dirty(),pu(o.value)):this._def.out._parseAsync({data:o.value,path:a.path,parent:a})})();{let n=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return n.status==="aborted"?De:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:a.path,parent:a})}}static create(t,r){return new e({in:t,out:r,typeName:ie.ZodPipeline})}},Cu=class extends rt{_parse(t){let r=this._def.innerType._parse(t),a=n=>(Ns(n)&&(n.value=Object.freeze(n.value)),n);return _f(r)?r.then(n=>a(n)):a(r)}unwrap(){return this._def.innerType}};Cu.create=(e,t)=>new Cu({innerType:e,typeName:ie.ZodReadonly,...We(t)});var _7e={object:xn.lazycreate},ie;(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"})(ie||(ie={}));var k7e=hu.create,S7e=kf.create,I7e=Ef.create,C7e=Sf.create,T7e=If.create,P7e=Cf.create,$7e=Tf.create,L7e=gu.create,A7e=vu.create,E7e=Pf.create,M7e=Ti.create,R7e=Ma.create,z7e=$f.create,D7e=Pi.create,N7e=xn.create,O7e=xn.strictCreate,U7e=yu.create,B7e=Q4.create,F7e=xu.create,j7e=_o.create,Z7e=t2.create,V7e=Lf.create,q7e=Af.create,G7e=r2.create,H7e=bu.create,W7e=wu.create,J7e=_u.create,K7e=ku.create,X7e=Os.create,Y7e=na.create,Q7e=ra.create,eLe=ko.create,tLe=na.createWithPreprocess,rLe=_0.create;var Mf=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}},DR=10,cQ=13,Us=32;function n2(e){}function UR(e){if(typeof e=="function")throw new TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=n2,onError:r=n2,onRetry:a=n2,onComment:n,maxBufferSize:o}=e,i=[],s=0,u=!0,c,f="",p=0,h,g=!1;function x(E){if(g)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(u&&(u=!1,E.charCodeAt(0)===239&&E.charCodeAt(1)===187&&E.charCodeAt(2)===191&&(E=E.slice(3))),i.length===0){let q=S(E);q!==""&&(i.push(q),s=q.length),I();return}if(E.indexOf(` 51`)===-1&&E.indexOf("\r")===-1){i.push(E),s+=E.length,I();return}i.push(E);let z=i.join("");i.length=0,s=0;let j=S(z);j!==""&&(i.push(j),s=j.length),I()}function I(){o!==void 0&&(s+f.length<=o||(g=!0,i.length=0,s=0,c=void 0,f="",p=0,h=void 0,r(new Mf(`Buffered data exceeded max buffer size of ${o} characters`,{type:"max-buffer-size-exceeded"}))))}function S(E){let z=0;if(E.indexOf("\r")===-1){let j=E.indexOf(` 52`,z);for(;j!==-1;){if(z===j){p>0&&t({id:c,event:h,data:f}),c=void 0,f="",p=0,h=void 0,z=j+1,j=E.indexOf(` 53`,z);continue}let q=E.charCodeAt(z);if(NR(E,z,q)){let Z=E.charCodeAt(z+5)===Us?z+6:z+5,W=E.slice(Z,j);
53if(p===0&&E.charCodeAt(j+1)===DR){t({id:c,event:h,data:W}),c=void 0,f="",h=void 0,z=j+2,j=E.indexOf(` 54`,z);continue}f=p===0?W:`${f} 55${W}`,p++}else OR(E,z,q)?h=E.slice(E.charCodeAt(z+6)===Us?z+7:z+6,j)||void 0:$(E,z,j);z=j+1,j=E.indexOf(` 56`,z)}return E.slice(z)}for(;z<E.length;){let j=E.indexOf("\r",z),q=E.indexOf(` 57`,z),Z=-1;if(j!==-1&&q!==-1?Z=j<q?j:q:j!==-1?j===E.length-1?Z=-1:Z=j:q!==-1&&(Z=q),Z===-1)break;$(E,z,Z),z=Z+1,E.charCodeAt(z-1)===cQ&&E.charCodeAt(z)===DR&&z++}return E.slice(z)}function $(E,z,j){if(z===j){k();return}let q=E.charCodeAt(z);if(NR(E,z,q)){let Ce=E.charCodeAt(z+5)===Us?z+6:z+5,Fe=E.slice(Ce,j);f=p===0?Fe:`${f} 58${Fe}`,p++;return}if(OR(E,z,q)){h=E.slice(E.charCodeAt(z+6)===Us?z+7:z+6,j)||void 0;return}if(q===105&&E.charCodeAt(z+1)===100&&E.charCodeAt(z+2)===58){let Ce=E.slice(E.charCodeAt(z+3)===Us?z+4:z+3,j);c=Ce.includes("\0")?void 0:Ce;return}if(q===58){if(n){let Ce=E.slice(z,j);n(Ce.slice(E.charCodeAt(z+1)===Us?2:1))}return}let Z=E.slice(z,j),W=Z.indexOf(":");if(W===-1){T(Z,"",Z);return}let de=Z.slice(0,W),Q=Z.charCodeAt(W+1)===Us?2:1,ht=Z.slice(W+Q);T(de,ht,Z)}function T(E,z,j){switch(E){case"event":h=z||void 0;break;case"data":f=p===0?z:`${f} 59${z}`,p++;break;case"id":c=z.includes("\0")?void 0:z;break;case"retry":/^\d+$/.test(z)?a(parseInt(z,10)):r(new Mf(`Invalid \`retry\` value: "${z}"`,{type:"invalid-retry",value:z,line:j}));break;default:r(new Mf(`Unknown field "${E.length>20?`${E.slice(0,20)}\u2026`:E}"`,{type:"unknown-field",field:E,value:z,line:j}));break}}function k(){p>0&&t({id:c,event:h,data:f}),c=void 0,f="",p=0,h=void 0}function M(E={}){if(E.consume&&i.length>0){let z=i.join("");$(z,0,z.length)}u=!0,c=void 0,f="",p=0,h=void 0,i.length=0,s=0,g=!1}return{feed:x,reset:M}}function NR(e,t,r){return r===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function OR(e,t,r){return r===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var k0=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:a,maxBufferSize:n}={}){let o;super({start(i){o=UR({onEvent:s=>{i.enqueue(s)},onError(s){typeof t=="function"&&t(s),(t==="terminate"||s.type==="max-buffer-size-exceeded")&&i.error(s)},onRetry:r,onComment:a,maxBufferSize:n})},transform(i){o.feed(i)}})}};var{btoa:hLe,atob:gLe}=globalThis;async function S0(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var qR="AI_DownloadError",GR=`vercel.ai.error.${qR}`,dQ=Symbol.for(GR),BR,FR,tn=class extends(FR=lt,BR=dQ,FR){constructor({url:e,statusCode:t,statusText:r,cause:a,message:n=a==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${a}`}){super({name:qR,message:n,cause:a}),this[BR]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return lt.hasMarker(e,GR)}};function fQ(e=globalThis){return e.window!=null}function pQ(e){let t;try{t=new URL(e)}catch{throw new tn({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new tn({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new tn({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new tn({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let a=r.slice(1,-1);if(hQ(a))throw new tn({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(HR(r)){if(WR(r))throw new tn({url:e,message:`URL with IP address ${r} is not allowed`});return}}function HR(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let a=Number(r);return Number.isInteger(a)&&a>=0&&a<=255&&String(a)===r})}function WR(e){let t=e.split(".").map(Number),[r,a,n]=t;return r===0||r===10||r===100&&a>=64&&a<=127||r===127||r===169&&a===254||r===172&&a>=16&&a<=31||r===192&&a===0&&n===0||r===192&&a===168||r===198&&(a===18||a===19)||r>=240}function mQ(e){let t=e.toLowerCase(),r=t.indexOf("%");
59r!==-1&&(t=t.slice(0,r));let a=t.split("::");if(a.length>2)return null;let n=i=>{if(i==="")return[];let s=[],u=i.split(":");for(let c=0;c<u.length;c++){let f=u[c];if(f.includes(".")){if(c!==u.length-1||!HR(f))return null;let[p,h,g,x]=f.split(".").map(Number);s.push(p<<8|h,g<<8|x);continue}if(!/^[0-9a-f]{1,4}$/.test(f))return null;s.push(parseInt(f,16))}return s},o=n(a[0]);if(o===null)return null;if(a.length===2){let i=n(a[1]);if(i===null)return null;let s=8-o.length-i.length;return s<0?null:[...o,...new Array(s).fill(0),...i]}return o.length===8?o:null}function hQ(e){let t=mQ(e);if(t===null)return!0;let r=n=>t.slice(0,n).every(o=>o===0);if(r(7)&&(t[7]===0||t[7]===1)||(t[0]&65024)===64512||(t[0]&65472)===65152||(t[0]&65472)===65216||(t[0]&65280)===65280)return!0;if(r(6)||r(5)&&t[5]===65535||r(4)&&t[4]===65535&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===0&&t[3]===0&&t[4]===0&&t[5]===0||t[0]===100&&t[1]===65435&&t[2]===1){let n=t[6]>>8&255,o=t[6]&255,i=t[7]>>8&255,s=t[7]&255;return WR(`${n}.${o}.${i}.${s}`)}return!1}var gQ=10;async function JR({url:e,headers:t,abortSignal:r,maxRedirects:a=gQ}){let n={signal:r};t!==void 0&&(n.headers=t);let o=e;for(let i=0;i<=a;i++){pQ(o);let s=await fetch(o,{...n,redirect:"manual"});if(s.type==="opaqueredirect"){if(!fQ())throw new tn({url:e,message:`Redirect from ${o} could not be validated and was blocked`});return await fetch(o,{...n,redirect:"follow"})}let u=s.headers.get("location");if(s.status>=300&&s.status<400&&u){await S0(s),o=new URL(u,o).toString();continue}return s}throw new tn({url:e,message:`Too many redirects (max ${a})`})}var l2=2*1024*1024*1024;async function KR({response:e,url:t,maxBytes:r=l2}){let a=e.headers.get("content-length");if(a!=null){let f=parseInt(a,10);if(!isNaN(f)&&f>r)throw await S0(e),new tn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${f}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let o=n.getReader(),i=[],s=0;try{for(;;){let{done:f,value:p}=await o.read();if(f)break;
59if(s+=p.length,s>r)throw new tn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});i.push(p)}}finally{try{await o.cancel()}finally{o.releaseLock()}}let u=new Uint8Array(s),c=0;for(let f of i)u.set(f,c),c+=f.length;return u}var So=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:a="-"}={})=>{let n=()=>{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 n;if(r.includes(a))throw new c9({argument:"separator",message:`The separator "${a}" must not be part of the alphabet "${r}".`});return()=>`${e}${a}${n()}`},XR=So();function YR(e=globalThis){var t,r,a;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(a=(r=e.process)==null?void 0:r.versions)!=null&&a.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function $i(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,a)=>{t[a.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,a]of e)a!=null&&(t[r.toLowerCase()]=a)}return t}function I0(e,...t){let r=new Headers($i(e)),a=r.get("user-agent")||"";return r.set("user-agent",[a,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var vQ=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,yQ=/"(?: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 jR(e){let t=JSON.parse(e);return t===null||typeof t!="object"||vQ.test(e)===!1&&yQ.test(e)===!1?t:xQ(t)}function xQ(e){let t=[e];for(;t.length;){let r=t;t=[];for(let a of r){if(Object.prototype.hasOwnProperty.call(a,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(a,"constructor")&&a.constructor!==null&&typeof a.constructor=="object"&&Object.prototype.hasOwnProperty.call(a.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in a){let o=a[n];o&&typeof o=="object"&&t.push(o)}}}return e}function bQ(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return jR(e)}try{return jR(e)}finally{Error.stackTraceLimit=t}}function u2(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 a of Object.keys(r))r[a]=Bs(r[a])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(Bs):Bs(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(Bs)),e.allOf!=null&&(e.allOf=e.allOf.map(Bs)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(Bs));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=Bs(t[r]);return e}function Bs(e){return typeof e=="boolean"?e:u2(e)}var wQ=Symbol("Let zodToJsonSchema decide on which parser to use"),ZR={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"},_Q=e=>typeof e=="string"?{...ZR,name:e}:{...ZR,...e};function bn(){return{}}function kQ(e,t){var r,a,n;let o={type:"array"};return(r=e.type)!=null&&r._def&&((n=(a=e.type)==null?void 0:a._def)==null?void 0:n.typeName)!==ie.ZodAny&&(o.items=yt(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 SQ(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 IQ(){return{type:"boolean"}}function QR(e,t){return yt(e.type._def,t)}var CQ=(e,t)=>yt(e.innerType._def,t);function ez(e,t,r){let a=r??t.dateStrategy;if(Array.isArray(a))return{anyOf:a.map((n,o)=>ez(e,t,n))};switch(a){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return TQ(e)}}var TQ=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 PQ(e,t){return{...yt(e.innerType._def,t),default:e.defaultValue()}}function $Q(e,t){return t.effectStrategy==="input"?yt(e.schema._def,t):bn()}function LQ(e){return{type:"string",enum:Array.from(e.values)}}var AQ=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function EQ(e,t){let r=[yt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),yt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),a=[];return r.forEach(n=>{if(AQ(n))a.push(...n.allOf);else{let o=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:i,...s}=n;o=s}a.push(o)}}),a.length?{allOf:a}:void 0}function MQ(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 a2=void 0,aa={cuid:/^[cC][^\s-]{8,}
vendor: 9,659 bytes, lines 59-63
59$/,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:()=>(a2===void 0&&(a2=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),a2),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 tz(e,t){let r={type:"string"};if(e.checks)for(let a of e.checks)switch(a.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"email":switch(t.emailStrategy){case"format:email":oa(r,"email",a.message,t);break;case"format:idn-email":oa(r,"idn-email",a.message,t);break;case"pattern:zod":Br(r,aa.email,a.message,t);break}break;case"url":oa(r,"uri",a.message,t);break;case"uuid":oa(r,"uuid",a.message,t);break;case"regex":Br(r,a.regex,a.message,t);break;case"cuid":Br(r,aa.cuid,a.message,t);break;case"cuid2":Br(r,aa.cuid2,a.message,t);break;case"startsWith":Br(r,RegExp(`^${o2(a.value,t)}`),a.message,t);break;case"endsWith":Br(r,RegExp(`${o2(a.value,t)}$`),a.message,t);break;case"datetime":oa(r,"date-time",a.message,t);break;case"date":oa(r,"date",a.message,t);break;case"time":oa(r,"time",a.message,t);break;case"duration":oa(r,"duration",a.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,a.value):a.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,a.value):a.value;break;case"includes":{Br(r,RegExp(o2(a.value,t)),a.message,t);break}case"ip":{a.version!=="v6"&&oa(r,"ipv4",a.message,t),a.version!=="v4"&&oa(r,"ipv6",a.message,t);break}case"base64url":Br(r,aa.base64url,a.message,t);break;case"jwt":Br(r,aa.jwt,a.message,t);break;case"cidr":{a.version!=="v6"&&Br(r,aa.ipv4Cidr,a.message,t),a.version!=="v4"&&Br(r,aa.ipv6Cidr,a.message,t);break}case"emoji":Br(r,aa.emoji(),a.message,t);break;case"ulid":{Br(r,aa.ulid,a.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{oa(r,"binary",a.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Br(r,aa.base64,a.message,t);break}}break}case"nanoid":Br(r,aa.nanoid,a.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function o2(e,t){return t.patternStrategy==="escape"?zQ(e):e}var RQ=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function zQ(e){let t="";for(let r=0;r<e.length;r++)RQ.has(e[r])||(t+="\\"),t+=e[r];return t}function oa(e,t,r,a){var n;e.format||(n=e.anyOf)!=null&&n.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&&a.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function Br(e,t,r,a){var n;e.pattern||(n=e.allOf)!=null&&n.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:VR(t,a),...r&&a.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=VR(t,a)}function VR(e,t){var r;if(!t.applyRegexFlags||!e.flags)return e.source;let a={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=a.i?e.source.toLowerCase():e.source,o="",i=!1,s=!1,u=!1;for(let c=0;c<n.length;c++){if(i){o+=n[c],i=!1;continue}if(a.i){if(s){if(n[c].match(/[a-z]/)){u?(o+=n[c],o+=`${n[c-2]}-${n[c]}`.toUpperCase(),u=!1):n[c+1]==="-"&&((r=n[c+2])!=null&&r.match(/[a-z]/))?(o+=n[c],u=!0):o+=`${n[c]}${n[c].toUpperCase()}`;continue}}else if(n[c].match(/[a-z]/)){o+=`[${n[c]}${n[c].toUpperCase()}]`;continue}}if(a.m){if(n[c]==="^"){o+=`(^|(?<=[\r 60]))`;continue}else if(n[c]==="$"){o+=`($|(?=[\r 61]))`;continue}}if(a.s&&n[c]==="."){o+=s?`${n[c]}\r 62`:`[${n[c]}\r 63]`;continue}o+=n[c],n[c]==="\\"?i=!0:s&&n[c]==="]"?s=!1:!s&&n[c]==="["&&(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 rz(e,t){var r,a,n,o,i,s;let u={type:"object",additionalProperties:(r=yt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((a=e.keyType)==null?void 0:a._def.typeName)===ie.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:c,...f}=tz(e.keyType._def,t);return{...u,propertyNames:f}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===ie.ZodEnum)return{...u,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===ie.ZodBranded&&e.keyType._def.type._def.typeName===ie.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:c,...f}=QR(e.keyType._def,t);return{...u,propertyNames:f}}}return u}function DQ(e,t){if(t.mapStrategy==="record")return rz(e,t);let r=yt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||bn(),a=yt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||bn();return{type:"array",maxItems:125,items:{type:"array",items:[r,a],minItems:2,maxItems:2}}}function NQ(e){let t=e.values,a=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),n=Array.from(new Set(a.map(o=>typeof o)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:a}}function OQ(){return{not:bn()}}function UQ(){return{type:"null"}}var i2={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function BQ(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(a=>a._def.typeName in i2&&(!a._def.checks||!a._def.checks.length))){let a=r.reduce((n,o)=>{let i=i2[o._def.typeName];return i&&!n.includes(i)?[...n,i]:n},[]);return{type:a.length>1?a:a[0]}}else if(r.every(a=>a._def.typeName==="ZodLiteral"&&!a.description)){let a=r.reduce((n,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...n,i];case"bigint":return[...n,"integer"];case"object":if(o._def.value===null)return[...n,"null"];default:return n}},[]);if(a.length===r.length){let n=a.filter((o,i,s)=>s.indexOf(o)===i);return{type:n.length>1?n:n[0],enum:r.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(r.every(a=>a._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((a,n)=>[...a,...n._def.values.filter(o=>!a.includes(o))],[])};return FQ(e,t)}var FQ=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((a,n)=>yt(a._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(a=>!!a&&(!t.strictUnions||typeof a=="object"&&Object.keys(a).length>0));return r.length?{anyOf:r}:void 0};function jQ(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[i2[e.innerType._def.typeName],"null"]};let r=yt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function ZQ(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 VQ(e,t){let r={type:"object",properties:{}},a=[],n=e.shape();for(let i in n){let s=n[i];if(s===void 0||s._def===void 0)continue;let u=GQ(s),c=yt(s._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});c!==void 0&&(r.properties[i]=c,u||a.push(i))}a.length&&(r.required=a);let o=qQ(e,t);return o!==void 0&&(r.additionalProperties=o),r}function qQ(e,t){if(e.catchall._def.typeName!=="ZodNever")return yt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;
63case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function GQ(e){try{return e.isOptional()}catch{return!0}}var HQ=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return yt(e.innerType._def,t);let a=yt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return a?{anyOf:[{not:bn()},a]}:bn()},WQ=(e,t)=>{if(t.pipeStrategy==="input")return yt(e.in._def,t);if(t.pipeStrategy==="output")return yt(e.out._def,t);let r=yt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),a=yt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,a].filter(n=>n!==void 0)}};function JQ(e,t){return yt(e.type._def,t)}function KQ(e,t){let a={type:"array",uniqueItems:!0,items:yt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(a.minItems=e.minSize.value),e.maxSize&&(a.maxItems=e.maxSize.value),a}function XQ(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,a)=>yt(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[]),additionalItems:yt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,a)=>yt(r._def,{...t,currentPath:[...t.currentPath,"items",`${a}`]})).reduce((r,a)=>a===void 0?r:[...r,a],[])}}function YQ(){return{not:bn()}}function QQ(){return bn()}var eee=(e,t)=>yt(e.innerType._def,t),tee=(e,t,r)=>{switch(t){case ie.ZodString:return tz(e,r);case ie.ZodNumber:return ZQ(e);case ie.ZodObject:return VQ(e,r);case ie.ZodBigInt:return SQ(e);case ie.ZodBoolean:return IQ();case ie.ZodDate:return ez(e,r);case ie.ZodUndefined:return YQ();case ie.ZodNull:return UQ();case ie.ZodArray:return kQ(e,r);case ie.ZodUnion:case ie.ZodDiscriminatedUnion:return BQ(e,r);case ie.ZodIntersection:return EQ(e,r);case ie.ZodTuple:return XQ(e,r);case ie.ZodRecord:return rz(e,r);case ie.ZodLiteral:return MQ(e);case ie.ZodEnum:return LQ(e);case ie.ZodNativeEnum:return NQ(e);case ie.ZodNullable:return jQ(e,r);case ie.ZodOptional:return HQ(e,r);case ie.ZodMap:return DQ(e,r);case ie.ZodSet:return KQ(e,r);case ie.ZodLazy:return()=>e.getter()._def;case ie.ZodPromise:return JQ(e,r);case ie.ZodNaN:case ie.ZodNever:return OQ();case ie.ZodEffects:return $Q(e,r);case ie.ZodAny:return bn();case ie.ZodUnknown:return QQ();case ie.ZodDefault:return PQ(e,r);case ie.ZodBranded:return QR(e,r);case ie.ZodReadonly:return eee(e,r);case ie.ZodCatch:return CQ(e,r);case ie.ZodPipeline:return WQ(e,r);case ie.ZodFunction:case ie.ZodVoid:case ie.ZodSymbol:return;default:return(a=>{})(t)}},ree=(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 yt(e,t,r=!1){var a;let n=t.seen.get(e);if(t.override){let u=(a=t.override)==null?void 0:a.call(t,e,t,n,r);if(u!==wQ)return u}if(n&&!r){let u=nee(n,t);if(u!==void 0)return u}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=tee(e,e.typeName,t),s=typeof i=="function"?yt(i(),t):i;if(s&&aee(e,t,s),t.postProcess){let u=t.postProcess(s,e,t);return o.jsonSchema=s,u}return o.jsonSchema=s,s}var nee=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ree(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,a)=>t.currentPath[a]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),bn()):t.$refStrategy==="seen"?bn():void 0}},aee=(e,t,r)=>(e.description&&(r.description=e.description),r),oee=e=>{let t=_Q(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(([a,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,a],jsonSchema:void 0}]))}},iee=(e,t)=>{var r;let a=oee(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((c,[f,p])=>{var h;return{...c,[f]:(h=yt(p._def,{...a,currentPath:[...a.basePath,a.definitionPath,f]},!0))!=null?h:bn()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(r=yt(e._def,o===void 0?a:{...a,currentPath:[...a.basePath,a.definitionPath,o]}
63,!1))!=null?r:bn(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(i.title=s);let u=o===void 0?n?{...i,[a.definitionPath]:n}:i:{$ref:[...a.$refStrategy==="relative"?[]:a.basePath,a.definitionPath,o].join("/"),[a.definitionPath]:{...n,[o]:i}};return u.$schema="http://json-schema.org/draft-07/schema#",u},s2=Symbol.for("vercel.ai.schema");function C0(e){let t;return()=>(t==null&&(t=e()),t)}function T0(e,{validate:t}={}){return{[s2]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function see(e){return typeof e=="object"&&e!==null&&s2 in e&&e[s2]===!0&&"jsonSchema"in e&&"validate"in e}function P0(e){return e==null?T0({properties:{},additionalProperties:!1}):see(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Rf(e):lee(e):e()}function lee(e){return T0(()=>u2(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 La({value:t,cause:r.issues})}}})}function uee(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return T0(()=>iee(e,{$refStrategy:a?"root":"none"}),{validate:async n=>{let o=await e.safeParseAsync(n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function cee(e,t){var r;let a=(r=t?.useReferences)!=null?r:!1;return T0(()=>u2(n0(e,{target:"draft-7",io:"input",reused:a?"ref":"inline"})),{validate:async n=>{let o=await o0(e,n);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function dee(e){return"_zod"in e}function Rf(e,t){return dee(e)?cee(e,t):uee(e,t)}async function $0({value:e,schema:t,context:r}){let a=await Tu({value:e,schema:t,context:r});if(!a.success)throw La.wrap({value:e,cause:a.error,context:r});return a.value}async function Tu({value:e,schema:t,context:r}){let a=P0(t);try{if(a.validate==null)return{success:!0,value:e,rawValue:e};let n=await a.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:La.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:La.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function Io({text:e,schema:t}){try{let r=bQ(e);return t==null?{success:!0,value:r,rawValue:r}:await Tu({value:r,schema:t})}catch(r){return{success:!1,error:fw.isInstance(r)?r:new fw({text:e,cause:r}),rawValue:void 0}}}function nz({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new k0).pipeThrough(new TransformStream({async transform({data:r},a){r!=="[DONE]"&&a.enqueue(await Io({text:r,schema:t}))}}))}async function Ra(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var CLe=new TextDecoder;var _={};Kr(_,{$brand:()=>L0,$input:()=>$S,$output:()=>PS,NEVER:()=>c2,TimePrecision:()=>MS,ZodAny:()=>_6,ZodArray:()=>C6,ZodBase64:()=>ny,ZodBase64URL:()=>ay,ZodBigInt:()=>nc,ZodBigIntFormat:()=>sy,ZodBoolean:()=>rc,ZodCIDRv4:()=>ty,ZodCIDRv6:()=>ry,ZodCUID:()=>Wv,ZodCUID2:()=>Jv,ZodCatch:()=>
63W6,ZodCodec:()=>hy,ZodCustom:()=>fp,ZodCustomStringFormat:()=>ec,ZodDate:()=>sp,ZodDefault:()=>j6,ZodDiscriminatedUnion:()=>P6,ZodE164:()=>oy,ZodEmail:()=>qv,ZodEmoji:()=>Gv,ZodEnum:()=>Yu,ZodError:()=>Ure,ZodExactOptional:()=>U6,ZodFile:()=>N6,ZodFirstPartyTypeKind:()=>i5,ZodFunction:()=>n5,ZodGUID:()=>rp,ZodIPv4:()=>Qv,ZodIPv6:()=>ey,ZodISODate:()=>Uv,ZodISODateTime:()=>Ov,ZodISODuration:()=>Fv,ZodISOTime:()=>Bv,ZodIntersection:()=>$6,ZodIssueCode:()=>Fre,ZodJWT:()=>iy,ZodKSUID:()=>Yv,ZodLazy:()=>e5,ZodLiteral:()=>D6,ZodMAC:()=>h6,ZodMap:()=>R6,ZodNaN:()=>K6,ZodNanoID:()=>Hv,ZodNever:()=>S6,ZodNonOptional:()=>py,ZodNull:()=>b6,ZodNullable:()=>F6,ZodNumber:()=>tc,ZodNumberFormat:()=>Ws,ZodObject:()=>up,ZodOptional:()=>fy,ZodPipe:()=>my,ZodPrefault:()=>V6,ZodPromise:()=>r5,ZodReadonly:()=>X6,ZodRealError:()=>an,ZodRecord:()=>dp,ZodSet:()=>z6,ZodString:()=>Qu,ZodStringFormat:()=>_t,ZodSuccess:()=>H6,ZodSymbol:()=>y6,ZodTemplateLiteral:()=>Q6,ZodTransform:()=>O6,ZodTuple:()=>A6,ZodType:()=>Je,ZodULID:()=>Kv,ZodURL:()=>ip,ZodUUID:()=>Oa,ZodUndefined:()=>x6,ZodUnion:()=>cp,ZodUnknown:()=>k6,ZodVoid:()=>I6,ZodXID:()=>Xv,ZodXor:()=>T6,_ZodString:()=>Vv,_default:()=>Z6,_function:()=>DN,any:()=>mN,array:()=>lp,base64:()=>XD,base64url:()=>YD,bigint:()=>uN,boolean:()=>v6,catch:()=>J6,check:()=>NN,cidrv4:()=>JD,cidrv6:()=>KD,clone:()=>Fr,codec:()=>MN,coerce:()=>s5,config:()=>Jt,core:()=>Po,cuid:()=>FD,cuid2:()=>jD,custom:()=>ON,date:()=>gN,decode:()=>l6,decodeAsync:()=>c6,describe:()=>UN,discriminatedUnion:()=>_N,e164:()=>QD,email:()=>AD,emoji:()=>UD,encode:()=>s6,encodeAsync:()=>u6,endsWith:()=>ju,enum:()=>cy,exactOptional:()=>B6,file:()=>$N,flattenError:()=>Zf,float32:()=>oN,float64:()=>iN,formatError:()=>Vf,fromJSONSchema:()=>GN,function:()=>DN,getErrorMap:()=>Zre,globalRegistry:()=>kr,gt:()=>Da,gte:()=>jr,guid:()=>ED,hash:()=>aN,hex:()=>nN,hostname:()=>rN,httpUrl:()=>OD,includes:()=>Bu,instanceof:()=>FN,int:()=>Zv,int32:()=>sN,int64:()=>cN,intersection:()=>L6,ipv4:()=>GD,ipv6:()=>WD,iso:()=>Xu,json:()=>ZN,jwt:()=>eN,keyof:()=>vN,ksuid:()=>qD,lazy:()=>t5,length:()=>Gs,literal:()=>PN,locales:()=>Yf,looseObject:()=>bN,looseRecord:()=>SN,lowercase:()=>Ou,lt:()=>za,lte:()=>_n,mac:()=>HD,map:()=>IN,maxLength:()=>qs,maxSize:()=>Di,meta:()=>BN,mime:()=>Zu,minLength:()=>To,minSize:()=>Na,multipleOf:()=>zi,nan:()=>EN,nanoid:()=>BD,nativeEnum:()=>TN,negative:()=>Pv,never:()=>ly,nonnegative:()=>Lv,nonoptional:()=>G6,nonpositive:()=>$v,normalize:()=>Vu,null:()=>w6,nullable:()=>ap,nullish:()=>LN,number:()=>g6,object:()=>yN,optional:()=>
63np,overwrite:()=>sa,parse:()=>n6,parseAsync:()=>a6,partialRecord:()=>kN,pipe:()=>op,positive:()=>Tv,prefault:()=>q6,preprocess:()=>VN,prettifyError:()=>_2,promise:()=>zN,property:()=>Av,readonly:()=>Y6,record:()=>M6,refine:()=>a5,regex:()=>Nu,regexes:()=>Bn,registry:()=>iv,safeDecode:()=>f6,safeDecodeAsync:()=>m6,safeEncode:()=>d6,safeEncodeAsync:()=>p6,safeParse:()=>o6,safeParseAsync:()=>i6,set:()=>CN,setErrorMap:()=>jre,size:()=>Vs,slugify:()=>Wu,startsWith:()=>Fu,strictObject:()=>xN,string:()=>jv,stringFormat:()=>tN,stringbool:()=>jN,success:()=>AN,superRefine:()=>o5,symbol:()=>fN,templateLiteral:()=>RN,toJSONSchema:()=>zv,toLowerCase:()=>Gu,toUpperCase:()=>Hu,transform:()=>dy,treeifyError:()=>w2,trim:()=>qu,tuple:()=>E6,uint32:()=>lN,uint64:()=>dN,ulid:()=>ZD,undefined:()=>pN,union:()=>uy,unknown:()=>Hs,uppercase:()=>Uu,url:()=>ND,util:()=>ne,uuid:()=>MD,uuidv4:()=>RD,uuidv6:()=>zD,uuidv7:()=>DD,void:()=>hN,xid:()=>VD,xor:()=>wN});var Po={};Kr(Po,{$ZodAny:()=>Kk,$ZodArray:()=>tS,$ZodAsyncError:()=>ia,$ZodBase64:()=>Bk,$ZodBase64URL:()=>Fk,$ZodBigInt:()=>Q0,$ZodBigIntFormat:()=>Gk,$ZodBoolean:()=>Wf,$ZodCIDRv4:()=>Nk,$ZodCIDRv6:()=>Ok,$ZodCUID:()=>Ik,$ZodCUID2:()=>Ck,$ZodCatch:()=>xS,$ZodCheck:()=>It,$ZodCheckBigIntFormat:()=>tk,$ZodCheckEndsWith:()=>pk,$ZodCheckGreaterThan:()=>G0,$ZodCheckIncludes:()=>dk,$ZodCheckLengthEquals:()=>sk,$ZodCheckLessThan:()=>q0,$ZodCheckLowerCase:()=>uk,$ZodCheckMaxLength:()=>ok,$ZodCheckMaxSize:()=>rk,$ZodCheckMimeType:()=>hk,$ZodCheckMinLength:()=>ik,$ZodCheckMinSize:()=>nk,$ZodCheckMultipleOf:()=>Q2,$ZodCheckNumberFormat:()=>ek,$ZodCheckOverwrite:()=>gk,$ZodCheckProperty:()=>mk,$ZodCheckRegex:()=>lk,$ZodCheckSizeEquals:()=>ak,$ZodCheckStartsWith:()=>fk,$ZodCheckStringFormat:()=>zu,$ZodCheckUpperCase:()=>ck,$ZodCodec:()=>Kf,$ZodCustom:()=>TS,$ZodCustomStringFormat:()=>Vk,$ZodDate:()=>eS,$ZodDefault:()=>hS,$ZodDiscriminatedUnion:()=>aS,$ZodE164:()=>jk,$ZodEmail:()=>wk,$ZodEmoji:()=>kk,$ZodEncodeError:()=>Li,$ZodEnum:()=>uS,$ZodError:()=>jf,$ZodExactOptional:()=>pS,$ZodFile:()=>dS,$ZodFunction:()=>SS,$ZodGUID:()=>xk,$ZodIPv4:()=>Rk,$ZodIPv6:()=>zk,$ZodISODate:()=>Ak,$ZodISODateTime:()=>Lk,$ZodISODuration:()=>Mk,$ZodISOTime:()=>Ek,$ZodIntersection:()=>oS,$ZodJWT:()=>Zk,$ZodKSUID:()=>$k,$ZodLazy:()=>CS,$ZodLiteral:()=>cS,$ZodMAC:()=>Dk,$ZodMap:()=>sS,$ZodNaN:()=>bS,$ZodNanoID:()=>Sk,$ZodNever:()=>Yk,$ZodNonOptional:()=>vS,$ZodNull:()=>Jk,$ZodNullable:()=>mS,$ZodNumber:()=>Y0,$ZodNumberFormat:()=>qk,$ZodObject:()=>Lz,$ZodObjectJIT:()=>rS,$ZodOptional:()=>tv,$ZodPipe:()=>wS,$ZodPrefault:()=>gS,$ZodPromise:()=>IS,$ZodReadonly:()=>_S,$ZodRealError:()=>nn,$ZodRecord:()=>iS,$ZodRegistry:()=>ov,$ZodSet:()=>lS,$ZodString:()=>Zs,$ZodStringFormat:()=>wt,$ZodSuccess:()=>yS,$ZodSymbol:()=>Hk,$ZodTemplateLiteral:()=>kS,$ZodTransform:()=>fS,$ZodTuple:()=>ev,$ZodType:()=>Ue,$ZodULID:()=>Tk,$ZodURL:()=>_k,$ZodUUID:()=>bk,$ZodUndefined:()=>Wk,$ZodUnion:()=>Jf,$ZodUnknown:()=>Xk,$ZodVoid:()=>Qk,$ZodXID:()=>Pk,$ZodXor:()=>nS,$brand:()=>L0,$constructor:()=>B,$input:()=>$S,$output:()=>PS,Doc:()=>Hf,JSONSchema:()=>$D,JSONSchemaGenerator:()=>Dv,NEVER:()=>c2,TimePrecision:()=>MS,_any:()=>eI,_array:()=>sI,_base64:()=>kv,_base64url:()=>Sv,_bigint:()=>HS,_boolean:()=>qS,_catch:()=>Are,_check:()=>PD,_cidrv4:()=>wv,_cidrv6:()=>_v,_coercedBigint:()=>WS,_coercedBoolean:()=>GS,_coercedDate:()=>oI,_coercedNumber:()=>US,_coercedString:()=>AS,_cuid:()=>mv,_cuid2:()=>hv,_custom:()=>uI,_date:()=>aI,_decode:()=>D0,_decodeAsync:()=>O0,_default:()=>Pre,_discriminatedUnion:()=>gre,_e164:()=>Iv,_email:()=>sv,_emoji:()=>fv,_encode:()=>z0,_encodeAsync:()=>N0,_endsWith:()=>ju,_enum:()=>_re,_file:()=>lI,_float32:()=>FS,_float64:()=>jS,_gt:()=>Da,_gte:()=>jr,_guid:()=>Qf,_includes:()=>Bu,_int:()=>BS,_int32:()=>ZS,_int64:()=>JS,_intersection:()=>vre,_ipv4:()=>xv,_ipv6:()=>bv,_isoDate:()=>zS,_isoDateTime:()=>RS,_isoDuration:()=>NS,_isoTime:()=>DS,_jwt:()=>Cv,_ksuid:()=>yv,_lazy:()=>zre,_length:()=>Gs,_literal:()=>Sre,_lowercase:()=>Ou,_lt:()=>za,_lte:()=>_n,_mac:()=>ES,_map:()=>bre,_max:()=>_n,_maxLength:()=>qs,_maxSize:()=>Di,_mime:()=>Zu,_min:()=>jr,_minLength:()=>To,_minSize:()=>Na,_multipleOf:()=>zi,_nan:()=>iI,_nanoid:()=>pv,_nativeEnum:()=>kre,_negative:()=>Pv,_never:()=>rI,_nonnegative:()=>Lv,_nonoptional:()=>$re,_nonpositive:()=>$v,_normalize:()=>Vu,_null:()=>QS,_nullable:()=>Tre,_number:()=>OS,_optional:()=>Cre,_overwrite:()=>sa,_parse:()=>Au,_parseAsync:()=>Eu,_pipe:()=>Ere,_positive:()=>Tv,_promise:()=>Dre,_property:()=>Av,_readonly:()=>Mre,_record:()=>xre,_refine:()=>cI,_regex:()=>Nu,_safeDecode:()=>B0,_safeDecodeAsync:()=>j0,_safeEncode:()=>U0,_safeEncodeAsync:()=>F0,_safeParse:()=>Mu,_safeParseAsync:()=>Ru,_set:()=>wre,_size:()=>Vs,_slugify:()=>Wu,_startsWith:()=>Fu,_string:()=>LS,_stringFormat:()=>Ju,_stringbool:()=>mI,_success:()=>Lre,_superRefine:()=>dI,_symbol:()=>
vendor: 9,304 bytes, line 63
63XS,_templateLiteral:()=>Rre,_toLowerCase:()=>Gu,_toUpperCase:()=>Hu,_transform:()=>Ire,_trim:()=>qu,_tuple:()=>yre,_uint32:()=>VS,_uint64:()=>KS,_ulid:()=>gv,_undefined:()=>YS,_union:()=>mre,_unknown:()=>tI,_uppercase:()=>Uu,_url:()=>ep,_uuid:()=>lv,_uuidv4:()=>uv,_uuidv6:()=>cv,_uuidv7:()=>dv,_void:()=>nI,_xid:()=>vv,_xor:()=>hre,clone:()=>Fr,config:()=>Jt,createStandardJSONSchemaMethod:()=>Ku,createToJSONSchemaMethod:()=>hI,decode:()=>Uee,decodeAsync:()=>Fee,describe:()=>fI,encode:()=>Oee,encodeAsync:()=>Bee,extractDefs:()=>Oi,finalize:()=>Ui,flattenError:()=>Zf,formatError:()=>Vf,globalConfig:()=>zf,globalRegistry:()=>kr,initializeContext:()=>Ni,isValidBase64:()=>Uk,isValidBase64URL:()=>Cz,isValidJWT:()=>Tz,locales:()=>Yf,meta:()=>pI,parse:()=>M0,parseAsync:()=>R0,prettifyError:()=>_2,process:()=>gt,regexes:()=>Bn,registry:()=>iv,safeDecode:()=>Zee,safeDecodeAsync:()=>qee,safeEncode:()=>jee,safeEncodeAsync:()=>Vee,safeParse:()=>k2,safeParseAsync:()=>S2,toDotPath:()=>lz,toJSONSchema:()=>zv,treeifyError:()=>w2,util:()=>ne,version:()=>vk});var c2=Object.freeze({status:"aborted"});function B(e,t,r){function a(s,u){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:u,constr:i,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,u);let c=i.prototype,f=Object.keys(c);for(let p=0;p<f.length;p++){let h=f[p];h in s||(s[h]=c[h].bind(s))}}let n=r?.Parent??Object;class o extends n{}Object.defineProperty(o,"name",{value:e});function i(s){var u;let c=r?.Parent?new o:this;a(c,s),(u=c._zod).deferred??(u.deferred=[]);for(let f of c._zod.deferred)f();return c}return Object.defineProperty(i,"init",{value:a}),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 L0=Symbol("zod_brand"),ia=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Li=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},zf={};function Jt(e){return e&&Object.assign(zf,e),zf}var ne={};Kr(ne,{BIGINT_FORMAT_RANGES:()=>b2,Class:()=>f2,NUMBER_FORMAT_RANGES:()=>x2,aborted:()=>Ri,allowsEval:()=>h2,assert:()=>gee,assertEqual:()=>fee,assertIs:()=>mee,assertNever:()=>hee,assertNotEqual:()=>pee,assignProp:()=>Ei,base64ToUint8Array:()=>oz,base64urlToUint8Array:()=>Mee,cached:()=>$u,captureStackTrace:()=>E0,cleanEnum:()=>Eee,cleanRegex:()=>Of,clone:()=>Fr,cloneDef:()=>yee,createTransparentProxy:()=>See,defineLazy:()=>tt,esc:()=>A0,escapeRegex:()=>Un,extend:()=>Tee,finalizeIssue:()=>rn,floatSafeRemainder:()=>p2,getElementAtPath:()=>xee,getEnumValues:()=>Nf,getLengthableOrigin:()=>Ff,getParsedType:()=>kee,getSizableOrigin:()=>Bf,hexToUint8Array:()=>zee,isObject:()=>Fs,isPlainObject:()=>Mi,issue:()=>Lu,joinValues:()=>H,jsonStringifyReplacer:()=>Pu,merge:()=>$ee,mergeDefs:()=>Co,normalizeParams:()=>ue,nullish:()=>Ai,numKeys:()=>_ee,objectClone:()=>vee,omit:()=>Cee,optionalKeys:()=>y2,parsedType:()=>re,partial:()=>Lee,pick:()=>Iee,prefixIssues:()=>wn,primitiveTypes:()=>v2,promiseAllObject:()=>bee,propertyKeyTypes:()=>Uf,randomString:()=>wee,required:()=>Aee,safeExtend:()=>Pee,shallowClone:()=>g2,slugify:()=>m2,stringifyPrimitive:()=>ee,uint8ArrayToBase64:()=>iz,uint8ArrayToBase64url:()=>Ree,uint8ArrayToHex:()=>Dee,unwrapMessage:()=>Df});function fee(e){return e}function pee(e){return e}function mee(e){}function hee(e){throw new Error("Unexpected value in exhaustive check")}function gee(e){}function Nf(e){let t=Object.values(e).filter(a=>typeof a=="number");return Object.entries(e).filter(([a,n])=>t.indexOf(+a)===-1).map(([a,n])=>n)}function H(e,t="|"){return e.map(r=>ee(r)).join(t)}function Pu(e,t){return typeof t=="bigint"?t.toString():t}function $u(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ai(e){return e==null}function Of(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function p2(e,t){let r=(e.toString().split(".")[1]||"").length,a=t.toString(),n=(a.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(a)){let u=a.match(/\d?e-(\d?)/);u?.[1]&&(n=Number.parseInt(u[1]))}let o=r>n?r:n,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var az=Symbol("evaluating");function tt(e,t,r){let a;Object.defineProperty(e,t,{get(){if(a!==az)return a===void 0&&(a=az,a=r()),a},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function vee(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ei(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Co(...e){let t={};for(let r of e){let a=Object.getOwnPropertyDescriptors(r);Object.assign(t,a)}return Object.defineProperties({},t)}function yee(e){return Co(e._zod.def)}function xee(e,t){return t?t.reduce((r,a)=>r?.[a],e):e}function bee(e){let t=Object.keys(e),r=t.map(a=>e[a]);return Promise.all(r).then(a=>{let n={};for(let o=0;o<t.length;o++)n[t[o]]=a[o];return n})}function wee(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let a=0;a<e;a++)r+=t[Math.floor(Math.random()*t.length)];return r}function A0(e){return JSON.stringify(e)}function m2(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var E0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Fs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var h2=$u(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Mi(e){if(Fs(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Fs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function g2(e){return Mi(e)?{...e}:Array.isArray(e)?[...e]:e}function _ee(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var kee=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}`)}},Uf=new Set(["string","number","symbol"]),v2=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Un(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Fr(e,t,r){let a=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(a._zod.parent=e),a}function ue(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 See(e){let t;return new Proxy({},{get(r,a,n){return t??(t=e()),Reflect.get(t,a,n)},set(r,a,n,o){return t??(t=e()),Reflect.set(t,a,n,o)},has(r,a){return t??(t=e()),Reflect.has(t,a)},deleteProperty(r,a){return t??(t=e()),Reflect.deleteProperty(t,a)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,a){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,a)},defineProperty(r,a,n){return t??(t=e()),Reflect.defineProperty(t,a,n)}})}function ee(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function y2(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var x2={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]},b2={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Iee(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Co(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 Ei(this,"shape",i),i},checks:[]});return Fr(e,o)}function Cee(e,t){let r=e._zod.def,a=r.checks;if(a&&a.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Co(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 Ei(this,"shape",i),i},checks:[]});return Fr(e,o)}function Tee(e,t){if(!Mi(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
63write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Co(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Ei(this,"shape",o),o}});return Fr(e,n)}function Pee(e,t){if(!Mi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Co(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t};return Ei(this,"shape",a),a}});return Fr(e,r)}function $ee(e,t){let r=Co(e._zod.def,{get shape(){let a={...e._zod.def.shape,...t._zod.def.shape};return Ei(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:[]});return Fr(e,r)}function Lee(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=Co(t._zod.def,{get shape(){let s=t._zod.def.shape,u={...s};if(r)for(let c in r){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(u[c]=e?new e({type:"optional",innerType:s[c]}):s[c])}else for(let c in s)u[c]=e?new e({type:"optional",innerType:s[c]}):s[c];return Ei(this,"shape",u),u},checks:[]});return Fr(t,i)}function Aee(e,t,r){let a=Co(t._zod.def,{get shape(){let n=t._zod.def.shape,o={...n};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:n[i]}))}else for(let i in n)o[i]=new e({type:"nonoptional",innerType:n[i]});return Ei(this,"shape",o),o}});return Fr(t,a)}function Ri(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 wn(e,t){return t.map(r=>{var a;return(a=r).path??(a.path=[]),r.path.unshift(e),r})}function Df(e){return typeof e=="string"?e:e?.message}function rn(e,t,r){let a={...e,path:e.path??[]};if(!e.message){let n=Df(e.inst?._zod.def?.error?.(e))??Df(t?.error?.(e))??Df(r.customError?.(e))??Df(r.localeError?.(e))??"Invalid input";a.message=n}return delete a.inst,delete a.continue,t?.reportInput||delete a.input,a}function Bf(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Ff(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function re(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 Lu(...e){let[t,r,a]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:a}:{...t}}function Eee(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function oz(e){let t=atob(e),r=new Uint8Array(t.length);for(let a=0;a<t.length;a++)r[a]=t.charCodeAt(a);return r}function iz(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Mee(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return oz(t+r)}function Ree(e){return iz(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function zee(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 a=0;a<t.length;a+=2)r[a/2]=Number.parseInt(t.slice(a,a+2),16);return r}function Dee(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var f2=class{constructor(...t){}};var sz=(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,Pu,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},jf=B("$ZodError",sz),nn=B("$ZodError",sz,{Parent:Error});function Zf(e,t=r=>r.message){let r={},a=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):a.push(t(n));return{formErrors:a,fieldErrors:r}}function Vf(e,t=r=>r.message){let r={_errors:[]},a=n=>{for(let o of n.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>a({issues:i}));else if(o.code==="invalid_key")a({issues:o.issues});else if(o.code==="invalid_element")a({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 u=o.path[s];s===o.path.length-1?(i[u]=i[u]||{_errors:[]},i[u]._errors.push(t(o))):i[u]=i[u]||{_errors:[]},i=i[u],s++}}};return a(e),r}function w2(e,t=r=>r.message){let r={errors:[]},a=(n,o=[])=>{var i,s;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>a({issues:c},u.path));else if(u.code==="invalid_key")a({issues:u.issues},u.path);else if(u.code==="invalid_element")a({issues:u.issues},u.path);else{let c=[...o,...u.path];if(c.length===0){r.errors.push(t(u));continue}let f=r,p=0;for(;p<c.length;){let h=c[p],g=p===c.length-1;typeof h=="string"?(f.properties??(f.properties={}),(i=f.properties)[h]??(i[h]={errors:[]}),f=f.properties[h]):(f.items??(f.items=[]),(s=f.items)[h]??(s[h]={errors:[]}),f=f.items[h]),g&&f.errors.push(t(u)),p++}}};return a(e),r}function lz(e){let t=[],r=e.map(a=>typeof a=="object"?a.key:a);
vendor: 67,327 bytes, lines 63-100
63for(let a of r)typeof a=="number"?t.push(`[${a}]`):typeof a=="symbol"?t.push(`[${JSON.stringify(String(a))}]`):/[^\w$]/.test(a)?t.push(`[${JSON.stringify(a)}]`):(t.length&&t.push("."),t.push(a));return t.join("")}function _2(e){let t=[],r=[...e.issues].sort((a,n)=>(a.path??[]).length-(n.path??[]).length);for(let a of r)t.push(`\u2716 ${a.message}`),a.path?.length&&t.push(` \u2192 at ${lz(a.path)}`);return t.join(` 64`)}var Au=e=>(t,r,a,n)=>{let o=a?Object.assign(a,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ia;if(i.issues.length){let s=new(n?.Err??e)(i.issues.map(u=>rn(u,o,Jt())));throw E0(s,n?.callee),s}return i.value},M0=Au(nn),Eu=e=>async(t,r,a,n)=>{let o=a?Object.assign(a,{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(n?.Err??e)(i.issues.map(u=>rn(u,o,Jt())));throw E0(s,n?.callee),s}return i.value},R0=Eu(nn),Mu=e=>(t,r,a)=>{let n=a?{...a,async:!1}:{async:!1},o=t._zod.run({value:r,issues:[]},n);if(o instanceof Promise)throw new ia;return o.issues.length?{success:!1,error:new(e??jf)(o.issues.map(i=>rn(i,n,Jt())))}:{success:!0,data:o.value}},k2=Mu(nn),Ru=e=>async(t,r,a)=>{let n=a?Object.assign(a,{async:!0}):{async:!0},o=t._zod.run({value:r,issues:[]},n);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>rn(i,n,Jt())))}:{success:!0,data:o.value}},S2=Ru(nn),z0=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Au(e)(t,r,n)},Oee=z0(nn),D0=e=>(t,r,a)=>Au(e)(t,r,a),Uee=D0(nn),N0=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Eu(e)(t,r,n)},Bee=N0(nn),O0=e=>async(t,r,a)=>Eu(e)(t,r,a),Fee=O0(nn),U0=e=>(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Mu(e)(t,r,n)},jee=U0(nn),B0=e=>(t,r,a)=>Mu(e)(t,r,a),Zee=B0(nn),F0=e=>async(t,r,a)=>{let n=a?Object.assign(a,{direction:"backward"}):{direction:"backward"};return Ru(e)(t,r,n)},Vee=F0(nn),j0=e=>async(t,r,a)=>Ru(e)(t,r,a),qee=j0(nn);var Bn={};Kr(Bn,{base64:()=>B2,base64url:()=>Z0,bigint:()=>G2,boolean:()=>W2,browserEmail:()=>Qee,cidrv4:()=>O2,cidrv6:()=>U2,cuid:()=>I2,cuid2:()=>C2,date:()=>j2,datetime:()=>V2,domain:()=>rte,duration:()=>A2,e164:()=>F2,email:()=>M2,emoji:()=>R2,extendedDuration:()=>Gee,guid:()=>E2,hex:()=>nte,hostname:()=>tte,html5Email:()=>Kee,idnEmail:()=>Yee,integer:()=>H2,ipv4:()=>z2,ipv6:()=>D2,ksuid:()=>$2,lowercase:()=>X2,mac:()=>N2,md5_base64:()=>ote,md5_base64url:()=>ite,md5_hex:()=>ate,nanoid:()=>L2,null:()=>J2,number:()=>V0,rfc5322Email:()=>Xee,sha1_base64:()=>lte,sha1_base64url:()=>ute,sha1_hex:()=>ste,sha256_base64:()=>dte,sha256_base64url:()=>fte,sha256_hex:()=>cte,sha384_base64:()=>mte,sha384_base64url:()=>hte,sha384_hex:()=>pte,sha512_base64:()=>vte,sha512_base64url:()=>yte,sha512_hex:()=>gte,string:()=>q2,time:()=>Z2,ulid:()=>T2,undefined:()=>K2,unicodeEmail:()=>uz,uppercase:()=>Y2,uuid:()=>js,uuid4:()=>Hee,uuid6:()=>Wee,uuid7:()=>Jee,xid:()=>P2});var I2=/^[cC][^\s-]{8,}$/,C2=/^[0-9a-z]+$/,T2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,P2=/^[0-9a-vA-V]{20}$/,$2=/^[A-Za-z0-9]{27}$/,L2=/^[a-zA-Z0-9_-]{21}$/,A2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gee=/^[-+]?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)?)??$/,E2=/^([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})$/,js=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)$/,Hee=js(4),Wee=js(6),Jee=js(7),M2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Kee=/^[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])?)*$/,Xee=/^(([^<>()\[\]\\.,;:\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,}))$/,uz=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Yee=uz,Qee=/^[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])?)*$/,ete="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function R2(){return new RegExp(ete,"u")}var z2=/^(?:(?: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])$/,D2=/^(([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}|:))$/,N2=e=>{let t=Un(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},O2=/^((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])$/,U2=/^(([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])$/,B2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Z0=/^[A-Za-z0-9_-]*$/,tte=/^(?=.{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])?)*\.?$/,rte=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,F2=/^\+[1-9]\d{6,14}$/,cz="(?:(?:\\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])))",j2=new RegExp(`^${cz}$`);function dz(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 Z2(e){return new RegExp(`^${dz(e)}$`)}function V2(e){let t=dz({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let a=`${t}(?:${r.join("|")})`;return new RegExp(`^${cz}T(?:${a})$`)}var q2=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},G2=/^-?\d+n?$/,H2=/^-?\d+$/,V0=/^-?\d+(?:\.\d+)?$/,W2=/^(?:true|false)$/i,J2=/^null$/i;var K2=/^undefined$/i;var X2=/^[^A-Z]*$/,Y2=/^[^a-z]*$/,nte=/^[0-9a-fA-F]*$/;function qf(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Gf(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var ate=/^[0-9a-fA-F]{32}$/,ote=qf(22,"=="),ite=Gf(22),ste=/^[0-9a-fA-F]{40}$/,lte=qf(27,"="),ute=Gf(27),cte=/^[0-9a-fA-F]{64}$/,dte=qf(43,"="),fte=Gf(43),pte=/^[0-9a-fA-F]{96}$/,mte=qf(64,""),hte=Gf(64),gte=/^[0-9a-fA-F]{128}$/,vte=qf(86,"=="),yte=Gf(86);var It=B("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),pz={number:"number",bigint:"bigint",object:"date"},q0=B("$ZodCheckLessThan",(e,t)=>{It.init(e,t);let r=pz[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value<=t.value:a.value<t.value)||a.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),G0=B("$ZodCheckGreaterThan",(e,t)=>{It.init(e,t);let r=pz[typeof t.value];e._zod.onattach.push(a=>{let n=a._zod.bag,o=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=a=>{(t.inclusive?a.value>=t.value:a.value>t.value)||a.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:a.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Q2=B("$ZodCheckMultipleOf",(e,t)=>{It.init(e,t),e._zod.onattach.push(r=>{var a;(a=r._zod.bag).multipleOf??(a.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):p2(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})}}),ek=B("$ZodCheckNumberFormat",(e,t)=>{It.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),a=r?"int":"number",[n,o]=x2[t.format];e._zod.onattach.push(i=>{let s=i._zod.bag;s.format=t.format,s.minimum=n,s.maximum=o,r&&(s.pattern=H2)}),e._zod.check=i=>{let s=i.value;if(r){if(!Number.isInteger(s)){i.issues.push({expected:a,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:a,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:a,inclusive:!0,continue:!t.abort});return}}s<n&&i.issues.push({origin:"number",input:s,code:"too_small",minimum:n,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})}}),tk=B("$ZodCheckBigIntFormat",(e,t)=>{It.init(e,t);let[r,a]=b2[t.format];e._zod.onattach.push(n=>{let o=n._zod.bag;o.format=t.format,o.minimum=r,o.maximum=a}),e._zod.check=n=>{let o=n.value;o<r&&n.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),o>a&&n.issues.push({origin:"bigint",input:o,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),rk=B("$ZodCheckMaxSize",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;n.size<=t.maximum||a.issues.push({origin:Bf(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),nk=B("$ZodCheckMinSize",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;n.size>=t.minimum||a.issues.push({origin:Bf(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ak=B("$ZodCheckSizeEquals",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.size!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=a=>{let n=a.value,o=n.size;if(o===t.size)return;let i=o>t.size;a.issues.push({origin:Bf(n),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),ok=B("$ZodCheckMaxLength",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(a._zod.bag.maximum=t.maximum)}),e._zod.check=a=>{let n=a.value;if(n.length<=t.maximum)return;let i=Ff(n);a.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ik=B("$ZodCheckMinLength",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(a._zod.bag.minimum=t.minimum)}),e._zod.check=a=>{let n=a.value;if(n.length>=t.minimum)return;let i=Ff(n);a.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sk=B("$ZodCheckLengthEquals",(e,t)=>{var r;It.init(e,t),(r=e._zod.def).when??(r.when=a=>{let n=a.value;return!Ai(n)&&n.length!==void 0}),e._zod.onattach.push(a=>{let n=a._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=a=>{let n=a.value,o=n.length;if(o===t.length)return;let i=Ff(n),s=o>t.length;a.issues.push({origin:i,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:a.value,inst:e,continue:!t.abort})}}),zu=B("$ZodCheckStringFormat",(e,t)=>{var r,a;It.init(e,t),e._zod.onattach.push(n=>{let o=n._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=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(a=e._zod).check??(a.check=()=>{})}),lk=B("$ZodCheckRegex",(e,t)=>{zu.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})}}),uk=B("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=X2),zu.init(e,t)}),ck=B("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Y2),zu.init(e,t)}),dk=B("$ZodCheckIncludes",(e,t)=>{It.init(e,t);let r=Un(t.includes),a=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=a,e._zod.onattach.push(n=>{let o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),fk=B("$ZodCheckStartsWith",(e,t)=>{It.init(e,t);let r=new RegExp(`^${Un(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.startsWith(t.prefix)||a.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:a.value,inst:e,continue:!t.abort})}}),pk=B("$ZodCheckEndsWith",(e,t)=>{It.init(e,t);let r=new RegExp(`.*${Un(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(a=>{let n=a._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=a=>{a.value.endsWith(t.suffix)||a.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:a.value,inst:e,continue:!t.abort})}});function fz(e,t,r){e.issues.length&&t.issues.push(...wn(r,e.issues))}var mk=B("$ZodCheckProperty",(e,t)=>{It.init(e,t),e._zod.check=r=>{let a=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(a instanceof Promise)return a.then(n=>fz(n,r,t.property));fz(a,r,t.property)}}),hk=B("$ZodCheckMimeType",(e,t)=>{It.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(a=>{a._zod.bag.mime=t.mime}),e._zod.check=a=>{r.has(a.value.type)||a.issues.push({code:"invalid_value",values:t.mime,input:a.value.type,inst:e,continue:!t.abort})}}),gk=B("$ZodCheckOverwrite",(e,t)=>{It.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Hf=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 a=t.split(` 65`).filter(i=>i),n=Math.min(...a.map(i=>i.length-i.trimStart().length)),o=a.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...r,n.join(` 66`))}};var vk={major:4,minor:3,patch:6};var Ue=B("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=vk;let a=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&a.unshift(e);for(let n of a)for(let o of n._zod.onattach)o(e);if(a.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(i,s,u)=>{let c=Ri(i),f;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(i))continue}else if(c)continue;let h=i.issues.length,g=p._zod.check(i);if(g instanceof Promise&&u?.async===!1)throw new ia;if(f||g instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await g,i.issues.length!==h&&(c||(c=Ri(i,h)))});else{if(i.issues.length===h)continue;c||(c=Ri(i,h))}}return f?f.then(()=>i):i},o=(i,s,u)=>{if(Ri(i))return i.aborted=!0,i;let c=n(s,a,u);if(c instanceof Promise){if(u.async===!1)throw new ia;return c.then(f=>e._zod.parse(f,u))}return e._zod.parse(c,u)};e._zod.run=(i,s)=>{if(s.skipChecks)return e._zod.parse(i,s);if(s.direction==="backward"){let c=e._zod.parse({value:i.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(f=>o(f,i,s)):o(c,i,s)}let u=e._zod.parse(i,s);if(u instanceof Promise){if(s.async===!1)throw new ia;return u.then(c=>n(c,a,s))}return n(u,a,s)}}tt(e,"~standard",()=>({validate:n=>{try{let o=k2(e,n);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return S2(e,n).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),Zs=B("$ZodString",(e,t)=>{Ue.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??q2(e._zod.bag),e._zod.parse=(r,a)=>{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}}),wt=B("$ZodStringFormat",(e,t)=>{zu.init(e,t),Zs.init(e,t)}),xk=B("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=E2),wt.init(e,t)}),bk=B("$ZodUUID",(e,t)=>{if(t.version){let a={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(a===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=js(a))}else t.pattern??(t.pattern=js());wt.init(e,t)}),wk=B("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=M2),wt.init(e,t)}),_k=B("$ZodURL",(e,t)=>{wt.init(e,t),e._zod.check=r=>{try{let a=r.value.trim(),n=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.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(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.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=n.href:r.value=a;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),kk=B("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=R2()),wt.init(e,t)}),Sk=B("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=L2),wt.init(e,t)}),Ik=B("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=I2),wt.init(e,t)}),Ck=B("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=C2),wt.init(e,t)}),Tk=B("$ZodULID",(e,t)=>{t.pattern??(t.pattern=T2),wt.init(e,t)}),Pk=B("$ZodXID",(e,t)=>{t.pattern??(t.pattern=P2),wt.init(e,t)}),$k=B("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$2),wt.init(e,t)}),Lk=B("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=V2(t)),wt.init(e,t)}),Ak=B("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=j2),wt.init(e,t)}),Ek=B("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Z2(t)),wt.init(e,t)}),Mk=B("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=A2),wt.init(e,t)}),Rk=B("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=z2),wt.init(e,t),e._zod.bag.format="ipv4"}),zk=B("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=D2),wt.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})}}}),Dk=B("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=N2(t.delimiter)),wt.init(e,t),e._zod.bag.format="mac"}),Nk=B("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=O2),wt.init(e,t)}),Ok=B("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=U2),wt.init(e,t),e._zod.check=r=>{let a=r.value.split("/");try{if(a.length!==2)throw new Error;let[n,o]=a;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://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Uk(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Bk=B("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=B2),wt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Uk(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Cz(e){if(!Z0.test(e))return!1;let t=e.replace(/[-_]/g,a=>a==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Uk(r)}var Fk=B("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Z0),wt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Cz(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),jk=B("$ZodE164",(e,t)=>{t.pattern??(t.pattern=F2),wt.init(e,t)});function Tz(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[a]=r;if(!a)return!1;let n=JSON.parse(atob(a));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Zk=B("$ZodJWT",(e,t)=>{wt.init(e,t),e._zod.check=r=>{Tz(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Vk=B("$ZodCustomStringFormat",(e,t)=>{wt.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})}}),Y0=B("$ZodNumber",(e,t)=>{Ue.init(e,t),e._zod.pattern=e._zod.bag.pattern??V0,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let o=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...o?{received:o}:{}}),r}}),qk=B("$ZodNumberFormat",(e,t)=>{ek.init(e,t),Y0.init(e,t)}),Wf=B("$ZodBoolean",(e,t)=>{Ue.init(e,t),e._zod.pattern=W2,e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Q0=B("$ZodBigInt",(e,t)=>{Ue.init(e,t),e._zod.pattern=G2,e._zod.parse=(r,a)=>{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}}),Gk=B("$ZodBigIntFormat",(e,t)=>{tk.init(e,t),Q0.init(e,t)}),Hk=B("$ZodSymbol",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Wk=B("$ZodUndefined",(e,t)=>{Ue.init(e,t),e._zod.pattern=K2,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Jk=B("$ZodNull",(e,t)=>{Ue.init(e,t),e._zod.pattern=J2,e._zod.values=new Set([null]),e._zod.parse=(r,a)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Kk=B("$ZodAny",(e,t)=>{Ue.init(e,t),e._zod.parse=r=>r}),Xk=B("$ZodUnknown",(e,t)=>{Ue.init(e,t),e._zod.parse=r=>r}),Yk=B("$ZodNever",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Qk=B("$ZodVoid",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),eS=B("$ZodDate",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,o=n instanceof Date;return o&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...o?{received:"Invalid Date"}:{},inst:e}),r}});function hz(e,t,r){e.issues.length&&t.issues.push(...wn(r,e.issues)),t.value[r]=e.value}var tS=B("$ZodArray",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let o=[];for(let i=0;i<n.length;i++){let s=n[i],u=t.element._zod.run({value:s,issues:[]},a);u instanceof Promise?o.push(u.then(c=>hz(c,r,i))):hz(u,r,i)}return o.length?Promise.all(o).then(()=>r):r}});function X0(e,t,r,a,n){if(e.issues.length){if(n&&!(r in a))return;t.issues.push(...wn(r,e.issues))}e.value===void 0?r in a&&(t.value[r]=void 0):t.value[r]=e.value}function Pz(e){let t=Object.keys(e.shape);for(let a of t)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);let r=y2(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function $z(e,t,r,a,n,o){let i=[],s=n.keySet,u=n.catchall._zod,c=u.def.type,f=u.optout==="optional";for(let p in t){if(s.has(p))continue;if(c==="never"){i.push(p);continue}let h=u.run({value:t[p],issues:[]},a);h instanceof Promise?e.push(h.then(g=>X0(g,r,p,t,f))):X0(h,r,p,t,f)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>r):r}var Lz=B("$ZodObject",(e,t)=>{if(Ue.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...s};return Object.defineProperty(t,"shape",{value:u}),u}})}let a=$u(()=>Pz(t));tt(e._zod,"propValues",()=>{let s=t.shape,u={};for(let c in s){let f=s[c]._zod;if(f.values){u[c]??(u[c]=new Set);for(let p of f.values)u[c].add(p)}}return u});let n=Fs,o=t.catchall,i;e._zod.parse=(s,u)=>{i??(i=a.value);let c=s.value;if(!n(c))return s.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),s;s.value={};let f=[],p=i.shape;for(let h of i.keys){let g=p[h],x=g._zod.optout==="optional",I=g._zod.run({value:c[h],issues:[]},u);I instanceof Promise?f.push(I.then(S=>X0(S,s,h,c,x))):X0(I,s,h,c,x)}return o?$z(f,c,s,u,a.value,e):f.length?Promise.all(f).then(()=>s):s}}),rS=B("$ZodObjectJIT",(e,t)=>{Lz.init(e,t);let r=e._zod.parse,a=$u(()=>Pz(t)),n=h=>{let g=new Hf(["shape","payload","ctx"]),x=a.value,I=k=>{let M=A0(k);return`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`};g.write("const input = payload.value;");let S=Object.create(null),$=0;for(let k of x.keys)S[k]=`key_${$++}`;g.write("const newResult = {};");for(let k of x.keys){let M=S[k],E=A0(k),j=h[k]?._zod?.optout==="optional";g.write(`const ${M} = ${I(k)};`),j?g.write(` 67 if (${M}.issues.length) { 68 if (${E} in input) { 69 payload.issues = payload.issues.concat(${M}.issues.map(iss => ({ 70 ...iss, 71 path: iss.path ? [${E}, ...iss.path] : [${E}] 72 }))); 73 } 74 } 75 76 if (${M}.value === undefined) { 77 if (${E} in input) { 78 newResult[${E}] = undefined; 79 } 80 } else { 81 newResult[${E}] = ${M}.value; 82 } 83 84 `):g.write(` 85 if (${M}.issues.length) { 86 payload.issues = payload.issues.concat(${M}.issues.map(iss => ({ 87 ...iss, 88 path: iss.path ? [${E}, ...iss.path] : [${E}] 89 }))); 90 } 91 92 if (${M}.value === undefined) { 93 if (${E} in input) { 94 newResult[${E}] = undefined; 95 } 96 } else { 97 newResult[${E}] = ${M}.value; 98 } 99 100 `)}g.write("payload.value = newResult;"),g.write("return payload;");let T=g.compile();return(k,M)=>T(h,k,M)},o,i=Fs,s=!zf.jitless,c=s&&h2.value,f=t.catchall,p;e._zod.parse=(h,g)=>{p??(p=a.value);let x=h.value;return i(x)?s&&c&&g?.async===!1&&g.jitless!==!0?(o||(o=n(t.shape)),h=o(h,g),f?$z([],x,h,g,p,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),h)}});function gz(e,t,r,a){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let n=e.filter(o=>!Ri(o));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>rn(i,a,Jt())))}),t)}var Jf=B("$ZodUnion",(e,t)=>{Ue.init(e,t),tt(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),tt(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),tt(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),tt(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${n.map(o=>Of(o.source)).join("|")})$`)}});let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(u=>gz(u,n,e,o)):gz(s,n,e,o)}});function vz(e,t,r,a){let n=e.filter(o=>o.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(o=>o.issues.map(i=>rn(i,a,Jt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var nS=B("$ZodXor",(e,t)=>{Jf.init(e,t),t.inclusive=!1;let r=t.options.length===1,a=t.options[0]._zod.run;e._zod.parse=(n,o)=>{if(r)return a(n,o);let i=!1,s=[];for(let u of t.options){let c=u._zod.run({value:n.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(u=>vz(u,n,e,o)):vz(s,n,e,o)}}),aS=B("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Jf.init(e,t);let r=e._zod.parse;tt(e._zod,"propValues",()=>{let n={};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,u]of Object.entries(i)){n[s]||(n[s]=new Set);for(let c of u)n[s].add(c)}}return n});let a=$u(()=>{let n=t.options,o=new Map;for(let i of n){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 u of s){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,i)}}return o});e._zod.parse=(n,o)=>{let i=n.value;if(!Fs(i))return n.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),n;let s=a.value.get(i?.[t.discriminator]);return s?s._zod.run(n,o):t.unionFallback?r(n,o):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),n)}}),oS=B("$ZodIntersection",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value,o=t.left._zod.run({value:n,issues:[]},a),i=t.right._zod.run({value:n,issues:[]},a);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([u,c])=>yz(r,u,c)):yz(r,o,i)}});function yk(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(Mi(e)&&Mi(t)){let r=Object.keys(t),a=Object.keys(e).filter(o=>r.indexOf(o)!==-1),n={...e,...t};for(let o of a){let i=yk(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n[o]=i.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let a=0;a<e.length;a++){let n=e[a],o=t[a],i=yk(n,o);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function yz(e,t,r){let a=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let u of s.keys)a.has(u)||a.set(u,{}),a.get(u).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let u of s.keys)a.has(u)||a.set(u,{}),a.get(u).r=!0;else e.issues.push(s);let o=[...a].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(o.length&&n&&e.issues.push({...n,keys:o}),Ri(e))return e;let i=yk(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 ev=B("$ZodTuple",(e,t)=>{Ue.init(e,t);let r=t.items;e._zod.parse=(a,n)=>{let o=a.value;if(!Array.isArray(o))return a.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),a;a.value=[];let i=[],s=[...r].reverse().findIndex(f=>f._zod.optin!=="optional"),u=s===-1?0:r.length-s;if(!t.rest){let f=o.length>r.length,p=o.length<u-1;if(f||p)return a.issues.push({...f?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:o,inst:e,origin:"array"}),a}let c=-1;for(let f of r){if(c++,c>=o.length&&c>=u)continue;let p=f._zod.run({value:o[c],issues:[]},n);p instanceof Promise?i.push(p.then(h=>H0(h,a,c))):H0(p,a,c)}if(t.rest){let f=o.slice(r.length);for(let p of f){c++;let h=t.rest._zod.run({value:p,issues:[]},n);h instanceof Promise?i.push(h.then(g=>H0(g,a,c))):H0(h,a,c)}}return i.length?Promise.all(i).then(()=>a):a}});function H0(e,t,r){e.issues.length&&t.issues.push(...wn(r,e.issues)),t.value[r]=e.value}var iS=B("$ZodRecord",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!Mi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let o=[],i=t.keyType._zod.values;if(i){r.value={};let s=new Set;for(let c of i)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){s.add(typeof c=="number"?c.toString():c);let f=t.valueType._zod.run({value:n[c],issues:[]},a);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...wn(c,p.issues)),r.value[c]=p.value})):(f.issues.length&&r.issues.push(...wn(c,f.issues)),r.value[c]=f.value)}let u;for(let c in n)s.has(c)||(u=u??[],u.push(c));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let u=t.keyType._zod.run({value:s,issues:[]},a);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&V0.test(s)&&u.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},a);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(u=p)}if(u.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(p=>rn(p,a,Jt())),input:s,path:[s],inst:e});continue}let f=t.valueType._zod.run({value:n[s],issues:[]},a);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...wn(s,p.issues)),r.value[u.value]=p.value})):(f.issues.length&&r.issues.push(...wn(s,f.issues)),r.value[u.value]=f.value)}}return o.length?Promise.all(o).then(()=>r):r}}),sS=B("$ZodMap",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let o=[];r.value=new Map;for(let[i,s]of n){let u=t.keyType._zod.run({value:i,issues:[]},a),c=t.valueType._zod.run({value:s,issues:[]},a);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([f,p])=>{xz(f,p,r,i,n,e,a)})):xz(u,c,r,i,n,e,a)}return o.length?Promise.all(o).then(()=>r):r}});function xz(e,t,r,a,n,o,i){e.issues.length&&(Uf.has(typeof a)?r.issues.push(...wn(a,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:o,issues:e.issues.map(s=>rn(s,i,Jt()))})),t.issues.length&&(Uf.has(typeof a)?r.issues.push(...wn(a,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:o,key:a,issues:t.issues.map(s=>rn(s,i,Jt()))})),r.value.set(e.value,t.value)}var lS=B("$ZodSet",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let o=[];r.value=new Set;for(let i of n){let s=t.valueType._zod.run({value:i,issues:[]},a);s instanceof Promise?o.push(s.then(u=>bz(u,r))):bz(s,r)}return o.length?Promise.all(o).then(()=>r):r}});function bz(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var uS=B("$ZodEnum",(e,t)=>{Ue.init(e,t);let r=Nf(t.entries),a=new Set(r);e._zod.values=a,e._zod.pattern=new RegExp(`^(${r.filter(n=>Uf.has(typeof n)).map(n=>typeof n=="string"?Un(n):n.toString()).join("|")})$`),e._zod.parse=(n,o)=>{let i=n.value;return a.has(i)||n.issues.push({code:"invalid_value",values:r,input:i,inst:e}),n}}),cS=B("$ZodLiteral",(e,t)=>{if(Ue.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(a=>typeof a=="string"?Un(a):a?Un(a.toString()):String(a)).join("|")})$`),e._zod.parse=(a,n)=>{let o=a.value;return r.has(o)||a.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),a}}),dS=B("$ZodFile",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),fS=B("$ZodTransform",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Li(e.constructor.name);let n=t.transform(r.value,r);if(a.async)return(n instanceof Promise?n:Promise.resolve(n)).then(i=>(r.value=i,r));if(n instanceof Promise)throw new ia;return r.value=n,r}});function wz(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var tv=B("$ZodOptional",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",e._zod.optout="optional",tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),tt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Of(r.source)})?$`):void 0}),e._zod.parse=(r,a)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>wz(o,r.value)):wz(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,a)}}),pS=B("$ZodExactOptional",(e,t)=>{tv.init(e,t),tt(e._zod,"values",()=>t.innerType._zod.values),tt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,a)=>t.innerType._zod.run(r,a)}),mS=B("$ZodNullable",(e,t)=>{Ue.init(e,t),tt(e._zod,"optin",()=>t.innerType._zod.optin),tt(e._zod,"optout",()=>t.innerType._zod.optout),tt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Of(r.source)}|null)$`):void 0}),tt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,a)=>r.value===null?r:t.innerType._zod.run(r,a)}),hS=B("$ZodDefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>_z(o,t)):_z(n,t)}});function _z(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var gS=B("$ZodPrefault",(e,t)=>{Ue.init(e,t),e._zod.optin="optional",tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>(a.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,a))}),vS=B("$ZodNonOptional",(e,t)=>{Ue.init(e,t),tt(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(a=>a!==void 0)):void 0}),e._zod.parse=(r,a)=>{let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>kz(o,e)):kz(n,e)}});function kz(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 yS=B("$ZodSuccess",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Li("ZodSuccess");let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),xS=B("$ZodCatch",(e,t)=>{Ue.init(e,t),tt(e._zod,"optin",()=>t.innerType._zod.optin),tt(e._zod,"optout",()=>t.innerType._zod.optout),tt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(o=>(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>rn(i,a,Jt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(o=>rn(o,a,Jt()))},input:r.value}),r.issues=[]),r)}}),bS=B("$ZodNaN",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),wS=B("$ZodPipe",(e,t)=>{Ue.init(e,t),tt(e._zod,"values",()=>t.in._zod.values),tt(e._zod,"optin",()=>t.in._zod.optin),tt(e._zod,"optout",()=>t.out._zod.optout),tt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if(a.direction==="backward"){let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>W0(i,t.in,a)):W0(o,t.in,a)}let n=t.in._zod.run(r,a);return n instanceof Promise?n.then(o=>W0(o,t.out,a)):W0(n,t.out,a)}});function W0(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Kf=B("$ZodCodec",(e,t)=>{Ue.init(e,t),tt(e._zod,"values",()=>t.in._zod.values),tt(e._zod,"optin",()=>t.in._zod.optin),tt(e._zod,"optout",()=>t.out._zod.optout),tt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,a)=>{if((a.direction||"forward")==="forward"){let o=t.in._zod.run(r,a);return o instanceof Promise?o.then(i=>J0(i,t,a)):J0(o,t,a)}else{let o=t.out._zod.run(r,a);return o instanceof Promise?o.then(i=>J0(i,t,a)):J0(o,t,a)}}});function J0(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(o=>K0(e,o,t.out,r)):K0(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(o=>K0(e,o,t.in,r)):K0(e,n,t.in,r)}}function K0(e,t,r,a){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},a)}var _S=B("$ZodReadonly",(e,t)=>{Ue.init(e,t),tt(e._zod,"propValues",()=>t.innerType._zod.propValues),tt(e._zod,"values",()=>t.innerType._zod.values),tt(e._zod,"optin",()=>t.innerType?._zod?.optin),tt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,a)=>{if(a.direction==="backward")return t.innerType._zod.run(r,a);let n=t.innerType._zod.run(r,a);return n instanceof Promise?n.then(Sz):Sz(n)}});function Sz(e){return e.value=Object.freeze(e.value),e}var kS=B("$ZodTemplateLiteral",(e,t)=>{Ue.init(e,t);let r=[];for(let a of t.parts)if(typeof a=="object"&&a!==null){if(!a._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...a._zod.traits].shift()}`);let n=a._zod.pattern instanceof RegExp?a._zod.pattern.source:a._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${a._zod.traits}`);let o=n.startsWith("^")?1:0,i=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(o,i))}else if(a===null||v2.has(typeof a))r.push(Un(`${a}`));else throw new Error(`Invalid template literal part: ${a}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(a,n)=>typeof a.value!="string"?(a.issues.push({input:a.value,inst:e,expected:"string",code:"invalid_type"}),a):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(a.value)||a.issues.push({input:a.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),a)}),SS=B("$ZodFunction",(e,t)=>(Ue.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(...a){let n=e._def.input?M0(e._def.input,a):a,o=Reflect.apply(r,this,n);return e._def.output?M0(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(...a){let n=e._def.input?await R0(e._def.input,a):a,o=await Reflect.apply(r,this,n);return e._def.output?await R0(e._def.output,o):o}},e._zod.parse=(r,a)=>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 a=e.constructor;return Array.isArray(r[0])?new a({type:"function",input:new ev({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new a({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let a=e.constructor;return new a({type:"function",input:e._def.input,output:r})},e)),IS=B("$ZodPromise",(e,t)=>{Ue.init(e,t),e._zod.parse=(r,a)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},a))}),CS=B("$ZodLazy",(e,t)=>{Ue.init(e,t),tt(e._zod,"innerType",()=>t.getter()),tt(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),tt(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),tt(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),tt(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,a)=>e._zod.innerType._zod.run(r,a)}),TS=B("$ZodCustom",(e,t)=>{It.init(e,t),Ue.init(e,t),e._zod.parse=(r,a)=>r,e._zod.check=r=>{let a=r.value,n=t.fn(a);if(n instanceof Promise)return n.then(o=>Iz(o,r,a,e));Iz(n,r,a,e)}});function Iz(e,t,r,a){if(!e){let n={code:"custom",input:r,inst:a,path:[...a._zod.def.path??[]],continue:!a._zod.def.abort};a._zod.def.params&&(n.params=a._zod.def.params),t.issues.push(Lu(n))}}var Yf={};Kr(Yf,{ar:()=>Az,az:()=>Ez,be:()=>Rz,bg:()=>zz,ca:()=>Dz,cs:()=>Nz,da:()=>Oz,de:()=>Uz,en:()=>rv,eo:()=>Bz,es:()=>Fz,fa:()=>jz,fi:()=>Zz,fr:()=>Vz,frCA:()=>qz,he:()=>Gz,hu:()=>Hz,hy:()=>Jz,id:()=>Kz,is:()=>Xz,it:()=>Yz,ja:()=>Qz,ka:()=>eD,kh:()=>tD,km:()=>nv,ko:()=>rD,lt:()=>aD,mk:()=>oD,ms:()=>iD,nl:()=>sD,no:()=>lD,ota:()=>uD,pl:()=>dD,ps:()=>cD,pt:()=>fD,ru:()=>mD,sl:()=>hD,sv:()=>gD,ta:()=>vD,th:()=>yD,tr:()=>xD,ua:()=>bD,uk:()=>av,ur:()=>wD,uz:()=>_D,vi:()=>kD,yo:()=>CD,zhCN:()=>SD,zhTW:()=>ID});var bte=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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: ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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 "${n.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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${H(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Az(){return{localeError:bte()}}var wte=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${ee(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Ez(){return{localeError:wte()}}function Mz(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var _te=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),u=Mz(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),u=Mz(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${H(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Rz(){return{localeError:_te()}}var kte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${n.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${H(n.keys,", ")}`;
100case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function zz(){return{localeError:kte()}}var Ste=()=>{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(n){return e[n]??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
1007a 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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${ee(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${H(n.values," o ")}`;case"too_big":{let o=n.inclusive?"com a m\xE0xim":"menys de",i=t(n.origin);return i?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${o} ${n.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(n.origin);return i?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${o} ${n.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Dz(){return{localeError:Ste()}}var Ite=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${ee(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${o}${n.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${o}${n.minimum.toString()}`}
vendor: 22,992 bytes, line 100
100case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${H(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Nz(){return{localeError:Ite()}}var Cte=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??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"},a={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${o}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${ee(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=a[n.origin]??n.origin;return i?`For stor: forventede ${s??"value"} ${i.verb} ${o} ${n.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=a[n.origin]??n.origin;return i?`For lille: forventede ${s} ${i.verb} ${o} ${n.minimum.toString()} ${i.unit}`:`For lille: forventede ${s} havde ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function Oz(){return{localeError:Cte()}}var Tte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${ee(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${o}${n.maximum.toString()} ist`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${o}${n.minimum.toString()} ist`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Uz(){return{localeError:Tte()}}var Pte=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return`Invalid input: expected ${o}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${ee(n.values[0])}`:`Invalid option: expected one of ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Too big: expected ${n.origin??"value"} to have ${o}${n.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Too small: expected ${n.origin} to have ${o}${n.minimum.toString()} ${i.unit}`:`Too small: expected ${n.origin} to be ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function rv(){return{localeError:Pte()}}var $te=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${ee(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${o}${n.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function Bz(){return{localeError:$te()}}var Lte=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??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"},a={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 n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${ee(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=a[n.origin]??n.origin;return i?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=a[n.origin]??n.origin;return i?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${o}${n.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${a[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${a[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function Fz(){return{localeError:Lte()}}var Ate=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${ee(n.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 ${H(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${H(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function jz(){return{localeError:Ate()}}var Ete=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${ee(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${n.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${n.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${H(n.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 Zz(){return{localeError:Ete()}}var Mte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${ee(n.values[0])}
100 attendu`:`Option invalide : une valeur parmi ${H(n.values,"|")} attendue`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Trop grand : ${n.origin??"valeur"} doit ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Trop petit : ${n.origin} doit ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function Vz(){return{localeError:Mte()}}var Rte=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${ee(n.values[0])}
100`:`Option invalide : attendu l'une des valeurs suivantes ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u2264":"<",i=t(n.origin);return i?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${o}${n.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u2265":">",i=t(n.origin);return i?`Trop petit : attendu que ${n.origin} ait ${o}${n.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${n.origin} soit ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${H(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function qz(){return{localeError:Rte()}}var zte=()=>{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=c=>c?e[c]:void 0,a=c=>{let f=r(c);return f?f.label:c??e.unknown.label},n=c=>`\u05D4${a(c)}`,o=c=>(r(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=c=>c?t[c]??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"}},u={nan:"NaN"};return c=>
vendor: 33,613 bytes, line 100
100{switch(c.code){case"invalid_type":{let f=c.expected,p=u[f??""]??a(f),h=re(c.input),g=u[h]??e[h]?.label??h;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(c.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 ${ee(c.values[0])}`;let f=c.values.map(g=>ee(g));if(c.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 ${f[0]} \u05D0\u05D5 ${f[1]}`;let p=f[f.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 ${f.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let f=i(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${f?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${f?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",I=c.inclusive?`${c.maximum} ${f?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${f?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let h=c.inclusive?"<=":"<",g=o(c.origin??"value");return f?.unit?`${f.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${h}${c.maximum.toString()} ${f.unit}`:`${f?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${h}${c.maximum.toString()}`}case"too_small":{let f=i(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${f?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${f?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let S=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`}let I=c.inclusive?`${c.minimum} ${f?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${f?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`.trim()}let h=c.inclusive?">=":">",g=o(c.origin??"value");return f?.unit?`${f.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${h}${c.minimum.toString()} ${f.unit}`:`${f?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${h}${c.minimum.toString()}`}case"invalid_format":{let f=c;if(f.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${f.prefix}"`;if(f.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${f.suffix}"`;if(f.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${f.includes}"`;if(f.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 ${f.pattern}`;let p=s[f.format],h=p?.label??f.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${x}`}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 ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${H(c.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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Gz(){return{localeError:zte()}}var Dte=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${ee(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${n.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${o}${n.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Hz(){return{localeError:Dte()}}function Wz(e,t,r){return Math.abs(e)===1?t:r}function Du(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 Nte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),u=Wz(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 ${Du(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.maximum.toString()} ${u}`}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 ${Du(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),u=Wz(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 ${Du(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${n.minimum.toString()} ${u}`}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 ${Du(n.origin)} \u056C\u056B\u0576\u056B ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${H(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Du(n.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 ${Du(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function Jz(){return{localeError:Nte()}}var Ote=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${ee(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: diharapkan ${n.origin} memiliki ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function Kz(){return{localeError:Ote()}}var Ute=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${ee(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${o}${n.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${o}${n.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${H(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function Xz(){return{localeError:Ute()}}var Bte=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${o}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${ee(n.values[0])}`:`Opzione non valida: atteso uno tra ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Troppo grande: ${n.origin??"valore"} deve avere ${o}${n.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Troppo piccolo: ${n.origin} deve avere ${o}${n.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${n.origin} deve essere ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${H(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function Yz(){return{localeError:Bte()}}var Fte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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 n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${ee(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${H(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(n.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(n.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${H(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function Qz(){return{localeError:Fte()}}var jte=()=>{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(n){return e[n]??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"},a={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 n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${o}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.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 ${n.origin} ${i.verb} ${o}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${H(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function eD(){return{localeError:jte()}}var Zte=()=>{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(n){return e[n]??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
100D2\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"},a={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 n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${H(n.keys,", ")}`;
vendor: 13,639 bytes, line 100
100case"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 ${n.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 ${n.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 nv(){return{localeError:Zte()}}function tD(){return nv()}var Vte=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.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 n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${ee(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${H(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${o}${i}`}case"too_small":{let o=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),u=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${o}${i}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${H(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function rD(){return{localeError:Vte()}}var Xf=e=>e.charAt(0).toUpperCase()+e.slice(1);function nD(e){let t=Math.abs(e),r=t%10,a=t%100;return a>=11&&a<=19||r===0?"many":r===1?"one":"few"}var qte=()=>{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(n,o,i,s){let u=e[n]??null;return u===null?u:{unit:u.unit[o],verb:u.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"},a={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 n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${o}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${ee(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${H(n.values,"|")} pasirinkim\u0173`;case"too_big":{let o=a[n.origin]??n.origin,i=t(n.origin,nD(Number(n.maximum)),n.inclusive??!1,"smaller");if(i?.verb)return`${Xf(o??n.origin??"reik\u0161m\u0117")} ${i.verb} ${n.maximum.toString()} ${i.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Xf(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${i?.unit}`}case"too_small":{let o=a[n.origin]??n.origin,i=t(n.origin,nD(Number(n.minimum)),n.inclusive??!1,"bigger");if(i?.verb)return`${Xf(o??n.origin??"reik\u0161m\u0117")} ${i.verb} ${n.minimum.toString()} ${i.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Xf(o??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${i?.unit}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${H(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=a[n.origin]??n.origin;return`${Xf(o??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function aD(){return{localeError:qte()}}var Gte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 n.values.length===1?`Invalid input: expected ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${n.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u
100041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${H(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function oD(){return{localeError:Gte()}}var Hte=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${o}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${ee(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Terlalu besar: dijangka ${n.origin??"nilai"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Terlalu kecil: dijangka ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${H(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function iD(){return{localeError:Hte()}}var Wte=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${o}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${ee(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${H(n.values,"|")}`;
vendor: 7,376 bytes, line 100
100case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return i?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${o}${n.maximum.toString()} is`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return i?`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${s}: verwacht dat ${n.origin} ${o}${n.minimum.toString()} is`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function sD(){return{localeError:Wte()}}var Jte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${o}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${ee(n.values[0])}`:`Ugyldig valg: forventet en av ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function lD(){return{localeError:Jte()}}var Kte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${ee(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${o}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${o}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function uD(){return{localeError:Kte()}}var Xte=()=>{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(n){return e[n]??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
100067E\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"},a={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${ee(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${H(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${o}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=n;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]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${H(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function cD(){return{localeError:Xte()}}var Yte=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"liczba",array:"tablica"};return n=>
vendor: 4,461 bytes, line 100
100{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${ee(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${n.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function dD(){return{localeError:Yte()}}var Qte=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${ee(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${o}${n.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Muito pequeno: esperado que ${n.origin} tivesse ${o}${n.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>
1001?"s":""} desconhecida${n.keys.length>1?"s":""}: ${H(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function fD(){return{localeError:Qte()}}function pD(e,t,r,a){let n=Math.abs(e),o=n%10,i=n%100;return i>=11&&i<=19?a:o===1?t:o>=2&&o<=4?r:a}var ere=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);if(i){let s=Number(n.maximum),u=pD(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.maximum.toString()} ${u}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);if(i){let s=Number(n.minimum),u=pD(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${n.minimum.toString()} ${u}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${n.minimum.toString()}`}
vendor: 77,489 bytes, lines 100-102
100case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${H(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 mD(){return{localeError:ere()}}var tre=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??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"},a={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${ee(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${o}${n.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${o}${n.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${H(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function hD(){return{localeError:tre()}}var rre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${ee(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${H(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function gD(){return{localeError:rre()}}var nre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.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 ${n.origin} ${o}${n.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 ${n.origin} ${o}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 vD(){return{localeError:nre()}}var are=()=>{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(n){return e[n]??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"},a={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 n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(n.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.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: ${H(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function yD(){return{localeError:are()}}var ore=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${ee(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function xD(){return{localeError:ore()}}var ire=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.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 ${n.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 n.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 ${ee(n.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 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.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 ${n.origin} ${i.verb} ${o}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${H(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 av(){return{localeError:ire()}}function bD(){return av()}var sre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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 n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${ee(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${H(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${o}${n.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${o}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${H(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function wD(){return{localeError:sre()}}var lre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${ee(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function _D(){return{localeError:lre()}}var ure=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.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 n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${ee(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${n.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i.verb} ${o}${n.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${H(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function kD(){return{localeError:ure()}}var cre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.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 n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${ee(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${H(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function SD(){return{localeError:cre()}}var dre=()=>{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(n){return e[n]??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"},a={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.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 n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${ee(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${o}${n.maximum.toString()}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${o}${n.minimum.toString()}`}case"invalid_format":{let o=n;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]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${H(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function ID(){return{localeError:dre()}}var fre=()=>{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(n){return e[n]??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"},a={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let o=a[n.expected]??n.expected,i=re(n.input),s=a[i]??i;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.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 n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${ee(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${H(n.values,"|")}`;case"too_big":{let o=n.inclusive?"<=":"<",i=t(n.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${i.verb} ${o}${n.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.maximum}`}case"too_small":{let o=n.inclusive?">=":">",i=t(n.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${i.verb} ${o}${n.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${n.minimum}`}case"invalid_format":{let o=n;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]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${H(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function CD(){return{localeError:fre()}}var TD,PS=Symbol("ZodOutput"),$S=Symbol("ZodInput"),ov=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let a=r[0];return this._map.set(t,a),a&&typeof a=="object"&&"id"in a&&this._idmap.set(a.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 a={...this.get(r)??{}};delete a.id;let n={...a,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function iv(){return new ov}(TD=globalThis).__zod_globalRegistry??(TD.__zod_globalRegistry=iv());var kr=globalThis.__zod_globalRegistry;function LS(e,t){return new e({type:"string",...ue(t)})}function AS(e,t){return new e({type:"string",coerce:!0,...ue(t)})}function sv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ue(t)})}function Qf(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ue(t)})}function lv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ue(t)})}function uv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ue(t)})}function cv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ue(t)})}function dv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ue(t)})}function ep(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ue(t)})}function fv(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ue(t)})}function pv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ue(t)})}function mv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ue(t)})}function hv(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ue(t)})}function gv(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ue(t)})}function vv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ue(t)})}function yv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ue(t)})}function xv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ue(t)})}function bv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ue(t)})}function ES(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ue(t)})}function wv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ue(t)})}function _v(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ue(t)})}function kv(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ue(t)})}function Sv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ue(t)})}function Iv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ue(t)})}function Cv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ue(t)})}var MS={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function RS(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ue(t)})}function zS(e,t){return new e({type:"string",format:"date",check:"string_format",...ue(t)})}function DS(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ue(t)})}function NS(e,t){return new e({type:"string",format:"duration",check:"string_format",...ue(t)})}function OS(e,t){return new e({type:"number",checks:[],...ue(t)})}function US(e,t){return new e({type:"number",coerce:!0,checks:[],...ue(t)})}function BS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ue(t)})}function FS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ue(t)})}function jS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ue(t)})}function ZS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ue(t)})}function VS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ue(t)})}function qS(e,t){return new e({type:"boolean",...ue(t)})}function GS(e,t){return new e({type:"boolean",coerce:!0,...ue(t)})}function HS(e,t){return new e({type:"bigint",...ue(t)})}function WS(e,t){return new e({type:"bigint",coerce:!0,...ue(t)})}function JS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ue(t)})}function KS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ue(t)})}function XS(e,t){return new e({type:"symbol",...ue(t)})}function YS(e,t){return new e({type:"undefined",...ue(t)})}function QS(e,t){return new e({type:"null",...ue(t)})}function eI(e){return new e({type:"any"})}function tI(e){return new e({type:"unknown"})}function rI(e,t){return new e({type:"never",...ue(t)})}function nI(e,t){return new e({type:"void",...ue(t)})}function aI(e,t){return new e({type:"date",...ue(t)})}function oI(e,t){return new e({type:"date",coerce:!0,...ue(t)})}function iI(e,t){return new e({type:"nan",...ue(t)})}function za(e,t){return new q0({check:"less_than",...ue(t),value:e,inclusive:!1})}function _n(e,t){return new q0({check:"less_than",...ue(t),value:e,inclusive:!0})}function Da(e,t){return new G0({check:"greater_than",...ue(t),value:e,inclusive:!1})}function jr(e,t){return new G0({check:"greater_than",...ue(t),value:e,inclusive:!0})}function Tv(e){return Da(0,e)}function Pv(e){return za(0,e)}function $v(e){return _n(0,e)}function Lv(e){return jr(0,e)}function zi(e,t){return new Q2({check:"multiple_of",...ue(t),value:e})}function Di(e,t){return new rk({check:"max_size",...ue(t),maximum:e})}function Na(e,t){return new nk({check:"min_size",...ue(t),minimum:e})}function Vs(e,t){return new ak({check:"size_equals",...ue(t),size:e})}function qs(e,t){return new ok({check:"max_length",...ue(t),maximum:e})}function To(e,t){return new ik({check:"min_length",...ue(t),minimum:e})}function Gs(e,t){return new sk({check:"length_equals",...ue(t),length:e})}function Nu(e,t){return new lk({check:"string_format",format:"regex",...ue(t),pattern:e})}function Ou(e){return new uk({check:"string_format",format:"lowercase",...ue(e)})}function Uu(e){return new ck({check:"string_format",format:"uppercase",...ue(e)})}function Bu(e,t){return new dk({check:"string_format",format:"includes",...ue(t),includes:e})}function Fu(e,t){return new fk({check:"string_format",format:"starts_with",...ue(t),prefix:e})}function ju(e,t){return new pk({check:"string_format",format:"ends_with",...ue(t),suffix:e})}function Av(e,t,r){return new mk({check:"property",property:e,schema:t,...ue(r)})}function Zu(e,t){return new hk({check:"mime_type",mime:e,...ue(t)})}function sa(e){return new gk({check:"overwrite",tx:e})}function Vu(e){return sa(t=>t.normalize(e))}function qu(){return sa(e=>e.trim())}function Gu(){return sa(e=>e.toLowerCase())}function Hu(){return sa(e=>e.toUpperCase())}function Wu(){return sa(e=>m2(e))}function sI(e,t,r){return new e({type:"array",element:t,...ue(r)})}function mre(e,t,r){return new e({type:"union",options:t,...ue(r)})}function hre(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ue(r)})}function gre(e,t,r,a){return new e({type:"union",options:r,discriminator:t,...ue(a)})}function vre(e,t,r){return new e({type:"intersection",left:t,right:r})}function yre(e,t,r,a){let n=r instanceof Ue,o=n?a:r,i=n?r:null;return new e({type:"tuple",items:t,rest:i,...ue(o)})}function xre(e,t,r,a){return new e({type:"record",keyType:t,valueType:r,...ue(a)})}function bre(e,t,r,a){return new e({type:"map",keyType:t,valueType:r,...ue(a)})}function wre(e,t,r){return new e({type:"set",valueType:t,...ue(r)})}function _re(e,t,r){let a=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:a,...ue(r)})}function kre(e,t,r){return new e({type:"enum",entries:t,...ue(r)})}function Sre(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ue(r)})}function lI(e,t){return new e({type:"file",...ue(t)})}function Ire(e,t){return new e({type:"transform",transform:t})}function Cre(e,t){return new e({type:"optional",innerType:t})}function Tre(e,t){return new e({type:"nullable",innerType:t})}function Pre(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():g2(r)}})}function $re(e,t,r){return new e({type:"nonoptional",innerType:t,...ue(r)})}function Lre(e,t){return new e({type:"success",innerType:t})}function Are(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Ere(e,t,r){return new e({type:"pipe",in:t,out:r})}function Mre(e,t){return new e({type:"readonly",innerType:t})}function Rre(e,t,r){return new e({type:"template_literal",parts:t,...ue(r)})}function zre(e,t){return new e({type:"lazy",getter:t})}function Dre(e,t){return new e({type:"promise",innerType:t})}function uI(e,t,r){let a=ue(r);return a.abort??(a.abort=!0),new e({type:"custom",check:"custom",fn:t,...a})}function cI(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ue(r)})}function dI(e){let t=PD(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Lu(a,r.value,t._zod.def));else{let n=a;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Lu(n))}},e(r.value,r)));return t}function PD(e,t){let r=new It({check:"custom",...ue(t)});return r._zod.check=e,r}function fI(e){let t=new It({check:"describe"});return t._zod.onattach=[r=>{let a=kr.get(r)??{};kr.add(r,{...a,description:e})}],t._zod.check=()=>{},t}function pI(e){let t=new It({check:"meta"});return t._zod.onattach=[r=>{let a=kr.get(r)??{};kr.add(r,{...a,...e})}],t._zod.check=()=>{},t}function mI(e,t){let r=ue(t),a=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(a=a.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let o=new Set(a),i=new Set(n),s=e.Codec??Kf,u=e.Boolean??Wf,c=e.String??Zs,f=new c({type:"string",error:r.error}),p=new u({type:"boolean",error:r.error}),h=new s({type:"pipe",in:f,out:p,transform:((g,x)=>{let I=g;return r.case!=="sensitive"&&(I=I.toLowerCase()),o.has(I)?!0:i.has(I)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:x.value,inst:h,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?a[0]||"true":n[0]||"false"),error:r.error});return h}function Ju(e,t,r,a={}){let n=ue(a),o={...ue(a),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ni(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??kr,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 gt(e,t,r={path:[],schemaPath:[]}){var a;let n=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 f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,f);else{let h=i.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,f)}let p=e._zod.parent;p&&(i.ref||(i.ref=p),gt(p,t,f),t.seen.get(p).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(i.schema,u),t.io==="input"&&Zr(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((a=i.schema).default??(a.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Oi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=new Map;for(let i of e.seen.entries()){let s=e.metadataRegistry.get(i[0])?.id;if(s){let u=a.get(s);if(u&&u!==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.`);a.set(s,i[0])}}let n=i=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(i[0])?.id,h=e.external.uri??(x=>x);if(p)return{ref:h(p)};let g=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=g,{defId:g,ref:`${h("__shared")}#/${s}/${g}`}}if(i[1]===r)return{ref:"#"};let c=`#/${s}/`,f=i[1].schema.id??`__schema${e.counter++}`;return{defId:f,ref:c+f}},o=i=>{if(i[1].schema.$ref)return;let s=i[1],{ref:u,defId:c}=n(i);s.def={...s.schema},c&&(s.defId=c);let f=s.schema;for(let p in f)delete f[p];f.$ref=u};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> 101 102Set 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 c=e.external.registry.get(i[0])?.id;if(t!==i[0]&&c){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 Ui(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let a=i=>{let s=e.seen.get(i);if(s.ref===null)return;let u=s.def??s.schema,c={...u},f=s.ref;if(s.ref=null,f){a(f);let h=e.seen.get(f),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(g)):Object.assign(u,g),Object.assign(u,c),i._zod.parent===f)for(let I in u)I==="$ref"||I==="allOf"||I in c||delete u[I];if(g.$ref&&h.def)for(let I in u)I==="$ref"||I==="allOf"||I in h.def&&JSON.stringify(u[I])===JSON.stringify(h.def[I])&&delete u[I]}let p=i._zod.parent;if(p&&p!==f){a(p);let h=e.seen.get(p);if(h?.schema.$ref&&(u.$ref=h.schema.$ref,h.def))for(let g in u)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(u[g])===JSON.stringify(h.def[g])&&delete u[g]}e.override({zodSchema:i,jsonSchema:u,path:s.path??[]})};for(let i of[...e.seen.entries()].reverse())a(i[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(i)}Object.assign(n,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"?n.$defs=o:n.definitions=o);try{let i=JSON.parse(JSON.stringify(n));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Ku(t,"input",e.processors),output:Ku(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function Zr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let a=e._zod.def;if(a.type==="transform")return!0;if(a.type==="array")return Zr(a.element,r);if(a.type==="set")return Zr(a.valueType,r);if(a.type==="lazy")return Zr(a.getter(),r);if(a.type==="promise"||a.type==="optional"||a.type==="nonoptional"||a.type==="nullable"||a.type==="readonly"||a.type==="default"||a.type==="prefault")return Zr(a.innerType,r);if(a.type==="intersection")return Zr(a.left,r)||Zr(a.right,r);if(a.type==="record"||a.type==="map")return Zr(a.keyType,r)||Zr(a.valueType,r);if(a.type==="pipe")return Zr(a.in,r)||Zr(a.out,r);if(a.type==="object"){for(let n in a.shape)if(Zr(a.shape[n],r))return!0;return!1}if(a.type==="union"){for(let n of a.options)if(Zr(n,r))return!0;return!1}if(a.type==="tuple"){for(let n of a.items)if(Zr(n,r))return!0;return!!(a.rest&&Zr(a.rest,r))}return!1}var hI=(e,t={})=>r=>{let a=Ni({...r,processors:t});return gt(e,a),Oi(a,e),Ui(a,e)},Ku=(e,t,r={})=>a=>{let{libraryOptions:n,target:o}=a??{},i=Ni({...n??{},target:o,io:t,processors:r});return gt(e,i),Oi(i,e),Ui(i,e)};var Nre={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},gI=(e,t,r,a)=>{let n=r;n.type="string";let{minimum:o,maximum:i,format:s,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(n.minLength=o),typeof i=="number"&&(n.maxLength=i),s&&(n.format=Nre[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),c&&(n.contentEncoding=c),u&&u.size>0){let f=[...u];f.length===1?n.pattern=f[0].source:f.length>1&&(n.allOf=[...f.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},vI=(e,t,r,a)=>{let n=r,{minimum:o,maximum:i,format:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:f}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof f=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=f,n.exclusiveMinimum=!0):n.exclusiveMinimum=f),typeof o=="number"&&(n.minimum=o,typeof f=="number"&&t.target!=="draft-04"&&(f>=o?delete n.minimum:delete n.exclusiveMinimum)),typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c),typeof i=="number"&&(n.maximum=i,typeof c=="number"&&t.target!=="draft-04"&&(c<=i?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},yI=(e,t,r,a)=>{r.type="boolean"},xI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},bI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},wI=(e,t,r,a)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},_I=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},kI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},SI=(e,t,r,a)=>{r.not={}},II=(e,t,r,a)=>{},CI=(e,t,r,a)=>{},TI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},PI=(e,t,r,a)=>{let n=e._zod.def,o=Nf(n.entries);o.every(i=>typeof i=="number")&&(r.type="number"),o.every(i=>typeof i=="string")&&(r.type="string"),r.enum=o},$I=(e,t,r,a)=>{let n=e._zod.def,o=[];for(let i of n.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},LI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},AI=(e,t,r,a)=>{let n=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=o.source},EI=(e,t,r,a)=>{let n=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:s,mime:u}=e._zod.bag;i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),u?u.length===1?(o.contentMediaType=u[0],Object.assign(n,o)):(Object.assign(n,o),n.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(n,o)},MI=(e,t,r,a)=>{r.type="boolean"},RI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},zI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},DI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},NI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},OI=(e,t,r,a)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},UI=(e,t,r,a)=>{let n=r,o=e._zod.def,{minimum:i,maximum:s}=e._zod.bag;typeof i=="number"&&(n.minItems=i),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=gt(o.element,t,{...a,path:[...a.path,"items"]})},BI=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object",n.properties={};let i=o.shape;for(let c in i)n.properties[c]=gt(i[c],t,{...a,path:[...a.path,"properties",c]});let s=new Set(Object.keys(i)),u=new Set([...s].filter(c=>{let f=o.shape[c]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));u.size>0&&(n.required=Array.from(u)),o.catchall?._zod.def.type==="never"?n.additionalProperties=!1:o.catchall?o.catchall&&(n.additionalProperties=gt(o.catchall,t,{...a,path:[...a.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Mv=(e,t,r,a)=>{let n=e._zod.def,o=n.inclusive===!1,i=n.options.map((s,u)=>gt(s,t,{...a,path:[...a.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=i:r.anyOf=i},FI=(e,t,r,a)=>{let n=e._zod.def,o=gt(n.left,t,{...a,path:[...a.path,"allOf",0]}),i=gt(n.right,t,{...a,path:[...a.path,"allOf",1]}),s=c=>"allOf"in c&&Object.keys(c).length===1,u=[...s(o)?o.allOf:[o],...s(i)?i.allOf:[i]];r.allOf=u},jI=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((h,g)=>gt(h,t,{...a,path:[...a.path,i,g]})),c=o.rest?gt(o.rest,t,{...a,path:[...a.path,s,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:u},c&&n.items.anyOf.push(c),n.minItems=u.length,c||(n.maxItems=u.length)):(n.items=u,c&&(n.additionalItems=c));let{minimum:f,maximum:p}=e._zod.bag;typeof f=="number"&&(n.minItems=f),typeof p=="number"&&(n.maxItems=p)},ZI=(e,t,r,a)=>{let n=r,o=e._zod.def;n.type="object";let i=o.keyType,u=i._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let f=gt(o.valueType,t,{...a,path:[...a.path,"patternProperties","*"]});n.patternProperties={};for(let p of u)n.patternProperties[p.source]=f}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=gt(o.keyType,t,{...a,path:[...a.path,"propertyNames"]})),n.additionalProperties=gt(o.valueType,t,{...a,path:[...a.path,"additionalProperties"]});let c=i._zod.values;if(c){let f=[...c].filter(p=>typeof p=="string"||typeof p=="number");f.length>0&&(n.required=f)}},VI=(e,t,r,a)=>{let n=e._zod.def,o=gt(n.innerType,t,a),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=n.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},qI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},GI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},HI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},WI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType;let i;try{i=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=i},JI=(e,t,r,a)=>{let n=e._zod.def,o=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;gt(o,t,a);let i=t.seen.get(e);i.ref=o},KI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType,r.readOnly=!0},XI=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},Rv=(e,t,r,a)=>{let n=e._zod.def;gt(n.innerType,t,a);let o=t.seen.get(e);o.ref=n.innerType},YI=(e,t,r,a)=>{let n=e._zod.innerType;gt(n,t,a);let o=t.seen.get(e);o.ref=n},Ev={string:gI,number:vI,boolean:yI,bigint:xI,symbol:bI,null:wI,undefined:_I,void:kI,never:SI,any:II,unknown:CI,date:TI,enum:PI,literal:$I,nan:LI,template_literal:AI,file:EI,success:MI,custom:RI,function:zI,transform:DI,map:NI,set:OI,array:UI,object:BI,union:Mv,intersection:FI,tuple:jI,record:ZI,nullable:VI,nonoptional:qI,default:GI,prefault:HI,catch:WI,pipe:JI,readonly:KI,promise:XI,optional:Rv,lazy:YI};function zv(e,t){if("_idmap"in e){let a=e,n=Ni({...t,processors:Ev}),o={};for(let u of a._idmap.entries()){let[c,f]=u;gt(f,n)}let i={},s={registry:a,uri:t?.uri,defs:o};n.external=s;for(let u of a._idmap.entries()){let[c,f]=u;Oi(n,f),i[c]=Ui(n,f)}if(Object.keys(o).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[u]:o}}return{schemas:i}}let r=Ni({...t,processors:Ev});return gt(e,r),Oi(r,e),Ui(r,e)}var Dv=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=Ni({processors:Ev,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 gt(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)),Oi(this.ctx,t);let a=Ui(this.ctx,t),{"~standard":n,...o}=a;return o}};var $D={};var tp={};Kr(tp,{ZodAny:()=>_6,ZodArray:()=>C6,ZodBase64:()=>ny,ZodBase64URL:()=>ay,ZodBigInt:()=>nc,ZodBigIntFormat:()=>sy,ZodBoolean:()=>rc,ZodCIDRv4:()=>ty,ZodCIDRv6:()=>ry,ZodCUID:()=>Wv,ZodCUID2:()=>Jv,ZodCatch:()=>
vendor: 4,706 bytes, line 102
102W6,ZodCodec:()=>hy,ZodCustom:()=>fp,ZodCustomStringFormat:()=>ec,ZodDate:()=>sp,ZodDefault:()=>j6,ZodDiscriminatedUnion:()=>P6,ZodE164:()=>oy,ZodEmail:()=>qv,ZodEmoji:()=>Gv,ZodEnum:()=>Yu,ZodExactOptional:()=>U6,ZodFile:()=>N6,ZodFunction:()=>n5,ZodGUID:()=>rp,ZodIPv4:()=>Qv,ZodIPv6:()=>ey,ZodIntersection:()=>$6,ZodJWT:()=>iy,ZodKSUID:()=>Yv,ZodLazy:()=>e5,ZodLiteral:()=>D6,ZodMAC:()=>h6,ZodMap:()=>R6,ZodNaN:()=>K6,ZodNanoID:()=>Hv,ZodNever:()=>S6,ZodNonOptional:()=>py,ZodNull:()=>b6,ZodNullable:()=>F6,ZodNumber:()=>tc,ZodNumberFormat:()=>Ws,ZodObject:()=>up,ZodOptional:()=>fy,ZodPipe:()=>my,ZodPrefault:()=>V6,ZodPromise:()=>r5,ZodReadonly:()=>X6,ZodRecord:()=>dp,ZodSet:()=>z6,ZodString:()=>Qu,ZodStringFormat:()=>_t,ZodSuccess:()=>H6,ZodSymbol:()=>y6,ZodTemplateLiteral:()=>Q6,ZodTransform:()=>O6,ZodTuple:()=>A6,ZodType:()=>Je,ZodULID:()=>Kv,ZodURL:()=>ip,ZodUUID:()=>Oa,ZodUndefined:()=>x6,ZodUnion:()=>cp,ZodUnknown:()=>k6,ZodVoid:()=>I6,ZodXID:()=>Xv,ZodXor:()=>T6,_ZodString:()=>Vv,_default:()=>Z6,_function:()=>DN,any:()=>mN,array:()=>lp,base64:()=>XD,base64url:()=>YD,bigint:()=>uN,boolean:()=>v6,catch:()=>J6,check:()=>NN,cidrv4:()=>JD,cidrv6:()=>KD,codec:()=>MN,cuid:()=>FD,cuid2:()=>jD,custom:()=>ON,date:()=>gN,describe:()=>UN,discriminatedUnion:()=>_N,e164:()=>QD,email:()=>AD,emoji:()=>UD,enum:()=>cy,exactOptional:()=>B6,file:()=>$N,float32:()=>oN,float64:()=>iN,function:()=>DN,guid:()=>ED,hash:()=>aN,hex:()=>nN,hostname:()=>rN,httpUrl:()=>OD,instanceof:()=>FN,int:()=>Zv,int32:()=>sN,int64:()=>cN,intersection:()=>L6,ipv4:()=>GD,ipv6:()=>WD,json:()=>ZN,jwt:()=>eN,keyof:()=>vN,ksuid:()=>qD,lazy:()=>t5,literal:()=>PN,looseObject:()=>bN,looseRecord:()=>SN,mac:()=>HD,map:()=>IN,meta:()=>BN,nan:()=>EN,nanoid:()=>BD,nativeEnum:()=>TN,never:()=>ly,nonoptional:()=>G6,null:()=>w6,nullable:()=>ap,nullish:()=>LN,number:()=>g6,object:()=>yN,optional:()=>np,partialRecord:()=>kN,pipe:()=>op,prefault:()=>q6,preprocess:()=>VN,promise:()=>zN,readonly:()=>Y6,record:()=>M6,refine:()=>a5,set:()=>CN,strictObject:()=>xN,string:()=>jv,stringFormat:()=>tN,stringbool:()=>jN,success:()=>AN,superRefine:()=>o5,symbol:()=>fN,templateLiteral:()=>RN,transform:()=>dy,tuple:()=>E6,uint32:()=>lN,uint64:()=>dN,ulid:()=>ZD,undefined:()=>pN,union:()=>uy,unknown:()=>Hs,url:()=>ND,uuid:()=>MD,uuidv4:()=>RD,uuidv6:()=>zD,uuidv7:()=>DD,void:()=>hN,xid:()=>VD,xor:()=>wN});var Nv={};Kr(Nv,{endsWith:()=>ju,gt:()=>Da,gte:()=>jr,includes:()=>Bu,length:()=>Gs,lowercase:()=>Ou,lt:()=>za,lte:()=>_n,maxLength:()=>qs,maxSize:()=>Di,mime:()=>Zu,minLength:()=>To,minSize:()=>Na,multipleOf:()=>zi,negative:()=>Pv,nonnegative:()=>Lv,nonpositive:()=>$v,normalize:()=>Vu,overwrite:()=>sa,positive:()=>Tv,property:()=>Av,regex:()=>Nu,size:()=>Vs,slugify:()=>Wu,startsWith:()=>Fu,toLowerCase:()=>Gu,toUpperCase:()=>Hu,trim:()=>qu,uppercase:()=>Uu});var Xu={};Kr(Xu,{ZodISODate:()=>Uv,ZodISODateTime:()=>Ov,ZodISODuration:()=>Fv,ZodISOTime:()=>Bv,date:()=>e6,datetime:()=>QI,duration:()=>r6,time:()=>t6});var Ov=B("ZodISODateTime",(e,t)=>{Lk.init(e,t),_t.init(e,t)});function QI(e){return RS(Ov,e)}var Uv=B("ZodISODate",(e,t)=>{Ak.init(e,t),_t.init(e,t)});function e6(e){return zS(Uv,e)}var Bv=B("ZodISOTime",(e,t)=>{Ek.init(e,t),_t.init(e,t)});function t6(e){return DS(Bv,e)}var Fv=B("ZodISODuration",(e,t)=>{Mk.init(e,t),_t.init(e,t)});function r6(e){return NS(Fv,e)}var LD=(e,t)=>{jf.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Vf(e,r)},flatten:{value:r=>Zf(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Pu,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Pu,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ure=B("ZodError",LD),an=B("ZodError",LD,{Parent:Error});var n6=Au(an),a6=Eu(an),o6=Mu(an),i6=Ru(an),s6=z0(an),l6=D0(an),u6=N0(an),c6=O0(an),d6=U0(an),f6=B0(an),p6=F0(an),m6=j0(an);var Je=B("ZodType",(e,t)=>(Ue.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Ku(e,"input"),output:Ku(e,"output")}}),e.toJSONSchema=hI(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(ne.mergeDefs(t,{checks:[...t.checks??[],...r.map(a=>typeof a=="function"?{_zod:{check:a,def:{check:"custom"},onattach:[]}}:a)]}),{parent:!0}),e.with=e.check,e.clone=(r,a)=>Fr(e,r,a),e.brand=()=>e,e.register=((r,a)=>(r.add(e,a),e)),e.parse=(r,a)=>n6(e,r,a,{callee:e.parse}),e.safeParse=(r,a)=>o6(e,r,a),e.parseAsync=async(r,a)=>a6(e,r,a,{callee:e.parseAsync}),e.safeParseAsync=async(r,a)=>i6(e,r,a),e.spa=e.safeParseAsync,e.encode=(r,a)=>s6(e,r,a),e.decode=(r,a)=>l6(e,r,a),e.encodeAsync=async(r,a)=>u6(e,r,a),e.decodeAsync=async(r,a)=>c6(e,r,a),e.safeEncode=(r,a)=>d6(e,r,a),e.safeDecode=(r,a)=>
vendor: 25,350 bytes, line 102
102f6(e,r,a),e.safeEncodeAsync=async(r,a)=>p6(e,r,a),e.safeDecodeAsync=async(r,a)=>m6(e,r,a),e.refine=(r,a)=>e.check(a5(r,a)),e.superRefine=r=>e.check(o5(r)),e.overwrite=r=>e.check(sa(r)),e.optional=()=>np(e),e.exactOptional=()=>B6(e),e.nullable=()=>ap(e),e.nullish=()=>np(ap(e)),e.nonoptional=r=>G6(e,r),e.array=()=>lp(e),e.or=r=>uy([e,r]),e.and=r=>L6(e,r),e.transform=r=>op(e,dy(r)),e.default=r=>Z6(e,r),e.prefault=r=>q6(e,r),e.catch=r=>J6(e,r),e.pipe=r=>op(e,r),e.readonly=()=>Y6(e),e.describe=r=>{let a=e.clone();return kr.add(a,{description:r}),a},Object.defineProperty(e,"description",{get(){return kr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return kr.get(e);let a=e.clone();return kr.add(a,r[0]),a},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Vv=B("_ZodString",(e,t)=>{Zs.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(a,n,o)=>gI(e,a,n,o);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...a)=>e.check(Nu(...a)),e.includes=(...a)=>e.check(Bu(...a)),e.startsWith=(...a)=>e.check(Fu(...a)),e.endsWith=(...a)=>e.check(ju(...a)),e.min=(...a)=>e.check(To(...a)),e.max=(...a)=>e.check(qs(...a)),e.length=(...a)=>e.check(Gs(...a)),e.nonempty=(...a)=>e.check(To(1,...a)),e.lowercase=a=>e.check(Ou(a)),e.uppercase=a=>e.check(Uu(a)),e.trim=()=>e.check(qu()),e.normalize=(...a)=>e.check(Vu(...a)),e.toLowerCase=()=>e.check(Gu()),e.toUpperCase=()=>e.check(Hu()),e.slugify=()=>e.check(Wu())}),Qu=B("ZodString",(e,t)=>{Zs.init(e,t),Vv.init(e,t),e.email=r=>e.check(sv(qv,r)),e.url=r=>e.check(ep(ip,r)),e.jwt=r=>e.check(Cv(iy,r)),e.emoji=r=>e.check(fv(Gv,r)),e.guid=r=>e.check(Qf(rp,r)),e.uuid=r=>e.check(lv(Oa,r)),e.uuidv4=r=>e.check(uv(Oa,r)),e.uuidv6=r=>e.check(cv(Oa,r)),e.uuidv7=r=>e.check(dv(Oa,r)),e.nanoid=r=>e.check(pv(Hv,r)),e.guid=r=>e.check(Qf(rp,r)),e.cuid=r=>e.check(mv(Wv,r)),e.cuid2=r=>e.check(hv(Jv,r)),e.ulid=r=>e.check(gv(Kv,r)),e.base64=r=>e.check(kv(ny,r)),e.base64url=r=>e.check(Sv(ay,r)),e.xid=r=>e.check(vv(Xv,r)),e.ksuid=r=>e.check(yv(Yv,r)),e.ipv4=r=>e.check(xv(Qv,r)),e.ipv6=r=>e.check(bv(ey,r)),e.cidrv4=r=>e.check(wv(ty,r)),e.cidrv6=r=>e.check(_v(ry,r)),e.e164=r=>e.check(Iv(oy,r)),e.datetime=r=>e.check(QI(r)),e.date=r=>e.check(e6(r)),e.time=r=>e.check(t6(r)),e.duration=r=>e.check(r6(r))});function jv(e){return LS(Qu,e)}var _t=B("ZodStringFormat",(e,t)=>{wt.init(e,t),Vv.init(e,t)}),qv=B("ZodEmail",(e,t)=>{wk.init(e,t),_t.init(e,t)});function AD(e){return sv(qv,e)}var rp=B("ZodGUID",(e,t)=>{xk.init(e,t),_t.init(e,t)});function ED(e){return Qf(rp,e)}var Oa=B("ZodUUID",(e,t)=>{bk.init(e,t),_t.init(e,t)});function MD(e){return lv(Oa,e)}function RD(e){return uv(Oa,e)}function zD(e){return cv(Oa,e)}function DD(e){return dv(Oa,e)}var ip=B("ZodURL",(e,t)=>{_k.init(e,t),_t.init(e,t)});function ND(e){return ep(ip,e)}function OD(e){return ep(ip,{protocol:/^https?$/,hostname:Bn.domain,...ne.normalizeParams(e)})}var Gv=B("ZodEmoji",(e,t)=>{kk.init(e,t),_t.init(e,t)});function UD(e){return fv(Gv,e)}var Hv=B("ZodNanoID",(e,t)=>{Sk.init(e,t),_t.init(e,t)});function BD(e){return pv(Hv,e)}var Wv=B("ZodCUID",(e,t)=>{Ik.init(e,t),_t.init(e,t)});function FD(e){return mv(Wv,e)}var Jv=B("ZodCUID2",(e,t)=>{Ck.init(e,t),_t.init(e,t)});function jD(e){return hv(Jv,e)}var Kv=B("ZodULID",(e,t)=>{Tk.init(e,t),_t.init(e,t)});function ZD(e){return gv(Kv,e)}var Xv=B("ZodXID",(e,t)=>{Pk.init(e,t),_t.init(e,t)});function VD(e){return vv(Xv,e)}var Yv=B("ZodKSUID",(e,t)=>{$k.init(e,t),_t.init(e,t)});function qD(e){return yv(Yv,e)}var Qv=B("ZodIPv4",(e,t)=>{Rk.init(e,t),_t.init(e,t)});function GD(e){return xv(Qv,e)}var h6=B("ZodMAC",(e,t)=>{Dk.init(e,t),_t.init(e,t)});function HD(e){return ES(h6,e)}var ey=B("ZodIPv6",(e,t)=>{zk.init(e,t),_t.init(e,t)});function WD(e){return bv(ey,e)}var ty=B("ZodCIDRv4",(e,t)=>{Nk.init(e,t),_t.init(e,t)});function JD(e){return wv(ty,e)}var ry=B("ZodCIDRv6",(e,t)=>{Ok.init(e,t),_t.init(e,t)});function KD(e){return _v(ry,e)}var ny=B("ZodBase64",(e,t)=>{Bk.init(e,t),_t.init(e,t)});function XD(e){return kv(ny,e)}var ay=B("ZodBase64URL",(e,t)=>{Fk.init(e,t),_t.init(e,t)});function YD(e){return Sv(ay,e)}var oy=B("ZodE164",(e,t)=>{jk.init(e,t),_t.init(e,t)});function QD(e){return Iv(oy,e)}var iy=B("ZodJWT",(e,t)=>{Zk.init(e,t),_t.init(e,t)});function eN(e){return Cv(iy,e)}var ec=B("ZodCustomStringFormat",(e,t)=>{Vk.init(e,t),_t.init(e,t)});function tN(e,t,r={}){return Ju(ec,e,t,r)}function rN(e){return Ju(ec,"hostname",Bn.hostname,e)}function nN(e){return Ju(ec,"hex",Bn.hex,e)}function aN(e,t){let r=t?.enc??"hex",a=`${e}_${r}`,n=Bn[a];if(!n)throw new Error(`Unrecognized hash format: ${a}`);return Ju(ec,a,n,t)}var tc=B("ZodNumber",(e,t)=>{Y0.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(a,n,o)=>vI(e,a,n,o),e.gt=(a,n)=>e.check(Da(a,n)),e.gte=(a,n)=>e.check(jr(a,n)),e.min=(a,n)=>e.check(jr(a,n)),e.lt=(a,n)=>e.check(za(a,n)),e.lte=(a,n)=>e.check(_n(a,n)),e.max=(a,n)=>e.check(_n(a,n)),e.int=a=>e.check(Zv(a)),e.safe=a=>e.check(Zv(a)),e.positive=a=>e.check(Da(0,a)),e.nonnegative=a=>e.check(jr(0,a)),e.negative=a=>e.check(za(0,a)),e.nonpositive=a=>e.check(_n(0,a)),e.multipleOf=(a,n)=>e.check(zi(a,n)),e.step=(a,n)=>e.check(zi(a,n)),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 g6(e){return OS(tc,e)}var Ws=B("ZodNumberFormat",(e,t)=>{qk.init(e,t),tc.init(e,t)});function Zv(e){return BS(Ws,e)}function oN(e){return FS(Ws,e)}function iN(e){return jS(Ws,e)}function sN(e){return ZS(Ws,e)}function lN(e){return VS(Ws,e)}var rc=B("ZodBoolean",(e,t)=>{Wf.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>yI(e,r,a,n)});function v6(e){return qS(rc,e)}var nc=B("ZodBigInt",(e,t)=>{Q0.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(a,n,o)=>xI(e,a,n,o),e.gte=(a,n)=>e.check(jr(a,n)),e.min=(a,n)=>e.check(jr(a,n)),e.gt=(a,n)=>e.check(Da(a,n)),e.gte=(a,n)=>e.check(jr(a,n)),e.min=(a,n)=>e.check(jr(a,n)),e.lt=(a,n)=>e.check(za(a,n)),e.lte=(a,n)=>e.check(_n(a,n)),e.max=(a,n)=>e.check(_n(a,n)),e.positive=a=>e.check(Da(BigInt(0),a)),e.negative=a=>e.check(za(BigInt(0),a)),e.nonpositive=a=>e.check(_n(BigInt(0),a)),e.nonnegative=a=>e.check(jr(BigInt(0),a)),e.multipleOf=(a,n)=>e.check(zi(a,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function uN(e){return HS(nc,e)}var sy=B("ZodBigIntFormat",(e,t)=>{Gk.init(e,t),nc.init(e,t)});function cN(e){return JS(sy,e)}function dN(e){return KS(sy,e)}var y6=B("ZodSymbol",(e,t)=>{Hk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>bI(e,r,a,n)});function fN(e){return XS(y6,e)}var x6=B("ZodUndefined",(e,t)=>{Wk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>_I(e,r,a,n)});function pN(e){return YS(x6,e)}var b6=B("ZodNull",(e,t)=>{Jk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>wI(e,r,a,n)});function w6(e){return QS(b6,e)}var _6=B("ZodAny",(e,t)=>{Kk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>II(e,r,a,n)});function mN(){return eI(_6)}var k6=B("ZodUnknown",(e,t)=>{Xk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>CI(e,r,a,n)});function Hs(){return tI(k6)}var S6=B("ZodNever",(e,t)=>{Yk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>SI(e,r,a,n)});function ly(e){return rI(S6,e)}var I6=B("ZodVoid",(e,t)=>{Qk.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>kI(e,r,a,n)});function hN(e){return nI(I6,e)}var sp=B("ZodDate",(e,t)=>{eS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(a,n,o)=>TI(e,a,n,o),e.min=(a,n)=>e.check(jr(a,n)),e.max=(a,n)=>e.check(_n(a,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function gN(e){return aI(sp,e)}var C6=B("ZodArray",(e,t)=>{tS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>UI(e,r,a,n),e.element=t.element,e.min=(r,a)=>e.check(To(r,a)),e.nonempty=r=>e.check(To(1,r)),e.max=(r,a)=>e.check(qs(r,a)),e.length=(r,a)=>e.check(Gs(r,a)),e.unwrap=()=>e.element});function lp(e,t){return sI(C6,e,t)}function vN(e){let t=e._zod.def.shape;return cy(Object.keys(t))}var up=B("ZodObject",(e,t)=>{rS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>BI(e,r,a,n),ne.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>cy(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Hs()}),e.loose=()=>e.clone({...e._zod.def,catchall:Hs()}),e.strict=()=>e.clone({...e._zod.def,catchall:ly()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>ne.extend(e,r),e.safeExtend=r=>ne.safeExtend(e,r),e.merge=r=>ne.merge(e,r),e.pick=r=>ne.pick(e,r),e.omit=r=>ne.omit(e,r),e.partial=(...r)=>ne.partial(fy,e,r[0]),e.required=(...r)=>ne.required(py,e,r[0])});function yN(e,t){let r={type:"object",shape:e??{},...ne.normalizeParams(t)};return new up(r)}function xN(e,t){return new up({type:"object",shape:e,catchall:ly(),...ne.normalizeParams(t)})}function bN(e,t){return new up({type:"object",shape:e,catchall:Hs(),...ne.normalizeParams(t)})}var cp=B("ZodUnion",(e,t)=>{Jf.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Mv(e,r,a,n),e.options=t.options});function uy(e,t){return new cp({type:"union",options:e,...ne.normalizeParams(t)})}var T6=B("ZodXor",(e,t)=>{cp.init(e,t),nS.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Mv(e,r,a,n),e.options=t.options});function wN(e,t){return new T6({type:"union",options:e,inclusive:!1,...ne.normalizeParams(t)})}var P6=B("ZodDiscriminatedUnion",(e,t)=>{cp.init(e,t),aS.init(e,t)});function _N(e,t,r){return new P6({type:"union",options:t,discriminator:e,...ne.normalizeParams(r)})}var $6=B("ZodIntersection",(e,t)=>{oS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>FI(e,r,a,n)});function L6(e,t){return new $6({type:"intersection",left:e,right:t})}var A6=B("ZodTuple",(e,t)=>{ev.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>jI(e,r,a,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function E6(e,t,r){let a=t instanceof Ue,n=a?r:t,o=a?t:null;return new A6({type:"tuple",items:e,rest:o,...ne.normalizeParams(n)})}var dp=B("ZodRecord",(e,t)=>{iS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>ZI(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType});function M6(e,t,r){return new dp({type:"record",keyType:e,valueType:t,...ne.normalizeParams(r)})}function kN(e,t,r){let a=Fr(e);return a._zod.values=void 0,new dp({type:"record",keyType:a,valueType:t,...ne.normalizeParams(r)})}function SN(e,t,r){return new dp({type:"record",keyType:e,valueType:t,mode:"loose",...ne.normalizeParams(r)})}var R6=B("ZodMap",(e,t)=>{sS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>NI(e,r,a,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Na(...r)),e.nonempty=r=>e.check(Na(1,r)),e.max=(...r)=>e.check(Di(...r)),e.size=(...r)=>e.check(Vs(...r))});function IN(e,t,r){return new R6({type:"map",keyType:e,valueType:t,...ne.normalizeParams(r)})}var z6=B("ZodSet",(e,t)=>{lS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>OI(e,r,a,n),e.min=(...r)=>e.check(Na(...r)),e.nonempty=r=>e.check(Na(1,r)),e.max=(...r)=>e.check(Di(...r)),e.size=(...r)=>e.check(Vs(...r))});function CN(e,t){return new z6({type:"set",valueType:e,...ne.normalizeParams(t)})}var Yu=B("ZodEnum",(e,t)=>{uS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(a,n,o)=>PI(e,a,n,o),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(a,n)=>{let o={};for(let i of a)if(r.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Yu({...t,checks:[],...ne.normalizeParams(n),entries:o})},e.exclude=(a,n)=>{let o={...t.entries};for(let i of a)if(r.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new Yu({...t,checks:[],...ne.normalizeParams(n),entries:o})}});function cy(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(a=>[a,a])):e;return new Yu({type:"enum",entries:r,...ne.normalizeParams(t)})}function TN(e,t){return new Yu({type:"enum",entries:e,...ne.normalizeParams(t)})}var D6=B("ZodLiteral",(e,t)=>{cS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>$I(e,r,a,n),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 PN(e,t){return new D6({type:"literal",values:Array.isArray(e)?e:[e],...ne.normalizeParams(t)})}var N6=B("ZodFile",(e,t)=>{dS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>EI(e,r,a,n),e.min=(r,a)=>e.check(Na(r,a)),e.max=(r,a)=>e.check(Di(r,a)),e.mime=(r,a)=>e.check(Zu(Array.isArray(r)?r:[r],a))});function $N(e){return lI(N6,e)}var O6=B("ZodTransform",(e,t)=>{fS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>DI(e,r,a,n),e._zod.parse=(r,a)=>{if(a.direction==="backward")throw new Li(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(ne.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(ne.issue(i))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(o=>(r.value=o,r)):(r.value=n,r)}});function dy(e){return new O6({type:"transform",transform:e})}var fy=B("ZodOptional",(e,t)=>{tv.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Rv(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function np(e){return new fy({type:"optional",innerType:e})}var U6=B("ZodExactOptional",(e,t)=>{pS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>Rv(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function B6(e){return new U6({type:"optional",innerType:e})}var F6=B("ZodNullable",(e,t)=>{mS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>VI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function ap(e){return new F6({type:"nullable",innerType:e})}function LN(e){return np(ap(e))}var j6=B("ZodDefault",(e,t)=>{hS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>GI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Z6(e,t){return new j6({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var V6=B("ZodPrefault",(e,t)=>{gS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>HI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function q6(e,t){return new V6({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var py=B("ZodNonOptional",(e,t)=>{vS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>qI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function G6(e,t){return new py({type:"nonoptional",innerType:e,...ne.normalizeParams(t)})}var H6=B("ZodSuccess",(e,t)=>{yS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>MI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function AN(e){return new H6({type:"success",innerType:e})}var W6=B("ZodCatch",(e,t)=>{xS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>WI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function J6(e,t){return new W6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var K6=B("ZodNaN",(e,t)=>{bS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>LI(e,r,a,n)});function EN(e){return iI(K6,e)}var my=B("ZodPipe",(e,t)=>{wS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>JI(e,r,a,n),e.in=t.in,e.out=t.out});function op(e,t){return new my({type:"pipe",in:e,out:t})}var hy=B("ZodCodec",(e,t)=>{my.init(e,t),Kf.init(e,t)});function MN(e,t,r){return new hy({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var X6=B("ZodReadonly",(e,t)=>{_S.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>KI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function Y6(e){return new X6({type:"readonly",innerType:e})}var Q6=B("ZodTemplateLiteral",(e,t)=>{kS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>AI(e,r,a,n)});function RN(e,t){return new Q6({type:"template_literal",parts:e,...ne.normalizeParams(t)})}var e5=B("ZodLazy",(e,t)=>{CS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>YI(e,r,a,n),e.unwrap=()=>e._zod.def.getter()});function t5(e){return new e5({type:"lazy",getter:e})}var r5=B("ZodPromise",(e,t)=>{IS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>XI(e,r,a,n),e.unwrap=()=>e._zod.def.innerType});function zN(e){return new r5({type:"promise",innerType:e})}var n5=B("ZodFunction",(e,t)=>{SS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>zI(e,r,a,n)});function DN(e){return new n5({type:"function",input:Array.isArray(e?.input)?E6(e?.input):e?.input??lp(Hs()),output:e?.output??Hs()})}var fp=B("ZodCustom",(e,t)=>{TS.init(e,t),Je.init(e,t),e._zod.processJSONSchema=(r,a,n)=>RI(e,r,a,n)});function NN(e){let t=new It({check:"custom"});return t._zod.check=e,t}function ON(e,t){return uI(fp,e??(()=>!0),t)}function a5(e,t={}){return cI(fp,e,t)}function o5(e){return dI(e)}var UN=fI,BN=pI;function FN(e,t={}){let r=new fp({type:"custom",check:"custom",fn:a=>a instanceof e,abort:!0,...ne.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=a=>{a.value instanceof e||a.issues.push({code:"invalid_type",expected:e.name,input:a.value,inst:r,path:[...r._zod.def.path??[]]})},r}var jN=(...e)=>mI({Codec:hy,Boolean:rc,String:Qu},...e);function ZN(e){let t=t5(()=>uy([jv(e),g6(),v6(),w6(),lp(t),M6(jv(),t)]));return t}function VN(e,t){return op(dy(e),t)}var Fre={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 jre(e){Jt({customError:e})}function Zre(){return Jt().customError}var i5;i5||(i5={});var me={...tp,...Nv,iso:Xu},Vre=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 qre(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 Gre(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 a=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===a){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function qN(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return me.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return me.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let o=Gre(n,t),i=$r(o,t);return t.refs.set(n,i),t.processing.delete(n),i}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return me.null();if(n.length===0)return me.never();if(n.length===1)return me.literal(n[0]);if(n.every(i=>typeof i=="string"))return me.enum(n);let o=n.map(i=>me.literal(i));return o.length<2?o[0]:me.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return me.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(o=>{let i={...e,type:o};return qN(i,t)});return n.length===0?me.never():n.length===1?n[0]:me.union(n)}if(!r)return me.any();let a;switch(r){case"string":{let n=me.string();if(e.format){let o=e.format;o==="email"?n=n.check(me.email()):o==="uri"||o==="uri-reference"?n=n.check(me.url()):o==="uuid"||o==="guid"?n=n.check(me.uuid()):o==="date-time"?n=n.check(me.iso.datetime()):o==="date"?n=n.check(me.iso.date()):o==="time"?n=n.check(me.iso.time()):o==="duration"?n=n.check(me.iso.duration()):o==="ipv4"?n=n.check(me.ipv4()):o==="ipv6"?n=n.check(me.ipv6()):o==="mac"?n=n.check(me.mac()):o==="cidr"?n=n.check(me.cidrv4()):o==="cidr-v6"?n=n.check(me.cidrv6()):o==="base64"?n=n.check(me.base64()):o==="base64url"?n=n.check(me.base64url()):o==="e164"?n=n.check(me.e164()):o==="jwt"?n=n.check(me.jwt()):o==="emoji"?n=n.check(me.emoji()):o==="nanoid"?n=n.check(me.nanoid()):o==="cuid"?n=n.check(me.cuid()):o==="cuid2"?n=n.check(me.cuid2()):o==="ulid"?n=n.check(me.ulid()):o==="xid"?n=n.check(me.xid()):o==="ksuid"&&(n=n.check(me.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),a=n;break}case"number":case"integer":{let n=r==="integer"?me.number().int():me.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),a=n;break}case"boolean":{a=me.boolean();break}case"null":{a=me.null();break}case"object":{let n={},o=e.properties||{},i=new Set(e.required||[]);for(let[u,c]of Object.entries(o)){let f=$r(c,t);n[u]=i.has(u)?f:f.optional()}if(e.propertyNames){let u=$r(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?$r(e.additionalProperties,t):me.any();if(Object.keys(n).length===0){a=me.record(u,c);break}let f=me.object(n).passthrough(),p=me.looseRecord(u,c);a=me.intersection(f,p);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),f=[];for(let h of c){let g=$r(u[h],t),x=me.string().regex(new RegExp(h));f.push(me.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(me.object(n).passthrough()),p.push(...f),p.length===0)a=me.object({}).passthrough();else if(p.length===1)a=p[0];else{let h=me.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)h=me.intersection(h,p[g]);a=h}break}let s=me.object(n);e.additionalProperties===!1?a=s.strict():typeof e.additionalProperties=="object"?a=s.catchall($r(e.additionalProperties,t)):a=s.passthrough();break}case"array":{let n=e.prefixItems,o=e.items;if(n&&Array.isArray(n)){let i=n.map(u=>$r(u,t)),s=o&&typeof o=="object"&&!Array.isArray(o)?$r(o,t):void 0;s?a=me.tuple(i).rest(s):a=me.tuple(i),typeof e.minItems=="number"&&(a=a.check(me.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(me.maxLength(e.maxItems)))}else if(Array.isArray(o)){let i=o.map(u=>$r(u,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?$r(e.additionalItems,t):void 0;s?a=me.tuple(i).rest(s):a=me.tuple(i),typeof e.minItems=="number"&&(a=a.check(me.minLength(e.minItems))),typeof e.maxItems=="number"&&(a=a.check(me.maxLength(e.maxItems)))}else if(o!==void 0){let i=$r(o,t),s=me.array(i);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),a=s}else a=me.array(me.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(a=a.describe(e.description)),e.default!==void 0&&(a=a.default(e.default)),a}function $r(e,t){if(typeof e=="boolean")return e?me.any():me.never();let r=qN(e,t),a=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(c=>$r(c,t)),u=me.union(s);r=a?me.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(c=>$r(c,t)),u=me.xor(s);r=a?me.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=a?r:me.any();else{let s=a?r:$r(e.allOf[0],t),u=a?0:1;for(let c=u;c<e.allOf.length;c++)s=me.intersection(s,$r(e.allOf[c],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=me.nullable(r)),e.readOnly===!0&&(r=me.readonly(r));let n={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];
102for(let s of o)s in e&&(n[s]=e[s]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let s of i)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))Vre.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function GN(e,t){if(typeof e=="boolean")return e?me.any():me.never();let r=qre(e,t?.defaultTarget),a=e.$defs||e.definitions||{},n={version:r,defs:a,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??kr};return $r(e,n)}var s5={};Kr(s5,{bigint:()=>Kre,boolean:()=>Jre,date:()=>Xre,number:()=>Wre,string:()=>Hre});function Hre(e){return AS(Qu,e)}function Wre(e){return US(tc,e)}function Jre(e){return GS(rc,e)}function Kre(e){return WS(nc,e)}function Xre(e){return oI(sp,e)}Jt(rv());var Qre=Object.defineProperty,ene=(e,t)=>{for(var r in t)Qre(e,r,{get:t[r],enumerable:!0})},tne="AI_InvalidArgumentError",rne=`vercel.ai.error.${tne}`,nne=Symbol.for(rne),ane;ane=nne;var one="AI_InvalidStreamPartError",ine=`vercel.ai.error.${one}`,sne=Symbol.for(ine),lne;lne=sne;var une="AI_InvalidToolApprovalError",cne=`vercel.ai.error.${une}`,dne=Symbol.for(cne),fne;fne=dne;var pne="AI_InvalidToolApprovalSignatureError",mne=`vercel.ai.error.${pne}`,hne=Symbol.for(mne),gne;gne=hne;var vne="AI_InvalidToolInputError",yne=`vercel.ai.error.${vne}`,xne=Symbol.for(yne),bne;bne=xne;var wne="AI_ToolCallNotFoundForApprovalError",_ne=`vercel.ai.error.${wne}`,kne=Symbol.for(_ne),Sne;Sne=kne;var Ine="AI_MissingToolResultsError",Cne=`vercel.ai.error.${Ine}`,Tne=Symbol.for(Cne),Pne;Pne=Tne;var $ne="AI_NoImageGeneratedError",Lne=`vercel.ai.error.${$ne}`,Ane=Symbol.for(Lne),Ene;Ene=Ane;var HN="AI_NoObjectGeneratedError",WN=`vercel.ai.error.${HN}`,Mne=Symbol.for(WN),JN,Bi=class extends lt{constructor({message:e="No object generated.",cause:t,text:r,response:a,usage:n,finishReason:o}){super({name:HN,message:e,cause:t}),this[JN]=!0,this.text=r,this.response=a,this.usage=n,this.finishReason=o}static isInstance(e){return lt.hasMarker(e,WN)}};JN=Mne;var Rne="AI_NoOutputGeneratedError",zne=`vercel.ai.error.${Rne}`,Dne=Symbol.for(zne),Nne;Nne=Dne;var One="AI_NoSpeechGeneratedError",Une=`vercel.ai.error.${One}`,Bne=Symbol.for(Une),Fne;Fne=Bne;var jne="AI_NoTranscriptGeneratedError",Zne=`vercel.ai.error.${jne}`,Vne=Symbol.for(Zne),qne;qne=Vne;var Gne="AI_NoVideoGeneratedError",Hne=`vercel.ai.error.${Gne}`,Wne=Symbol.for(Hne),Jne;Jne=Wne;var Kne="AI_NoSuchToolError",Xne=`vercel.ai.error.${Kne}`,Yne=Symbol.for(Xne),Qne;Qne=Yne;var eae="AI_ToolCallRepairError",tae=`vercel.ai.error.${eae}`,rae=Symbol.for(tae),nae;nae=rae;var KN="AI_UIMessageStreamError",XN=`vercel.ai.error.${KN}`,aae=Symbol.for(XN),YN,ac=class extends lt{constructor({chunkType:e,chunkId:t,message:r}){super({name:KN,message:r}),this[YN]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return lt.hasMarker(e,XN)}};YN=aae;var oae="AI_InvalidDataContentError",iae=`vercel.ai.error.${oae}`,sae=Symbol.for(iae),lae;lae=sae;var uae="AI_InvalidMessageRoleError",cae=`vercel.ai.error.${uae}`,dae=Symbol.for(cae),fae;fae=dae;var pae="AI_MessageConversionError",mae=`vercel.ai.error.${pae}`,hae=Symbol.for(mae),gae;gae=hae;var vae="AI_RetryError",yae=`vercel.ai.error.${vae}`,xae=Symbol.for(yae),bae;bae=xae;var wae="6.0.218",_ae=async({url:e,maxBytes:t,abortSignal:r})=>{var a;let n=e.toString();try{let o=I0({},`ai-sdk/${wae}`,YR()),i=await JR({url:n,headers:o,abortSignal:r});if(!i.ok)throw await S0(i),new tn({url:n,statusCode:i.status,statusText:i.statusText});return{data:await KR({response:i,url:n,maxBytes:t??l2}),mediaType:(a=i.headers.get("content-type"))!=null?a:void 0}}catch(o){throw tn.isInstance(o)?o:new tn({url:n,cause:o})}};var QN=_.union([_.string(),_.instanceof(Uint8Array),_.instanceof(ArrayBuffer),_.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 Js=_.lazy(()=>_.union([_.null(),_.string(),_.number(),_.boolean(),_.record(_.string(),Js.optional()),_.array(Js)])),Pe=_.record(_.string(),_.record(_.string(),Js.optional())),eO=_.object({type:_.literal("text"),text:_.string(),providerOptions:Pe.optional()}),kae=_.object({type:_.literal("image"),image:_.union([QN,_.instanceof(URL)]),mediaType:_.string().optional(),providerOptions:Pe.optional()}),tO=_.object({type:_.literal("file"),data:_.union([QN,_.instanceof(URL)]),filename:_.string().optional(),mediaType:_.string(),providerOptions:Pe.optional()}),Sae=_.object({type:_.literal("reasoning"),text:_.string(),providerOptions:Pe.optional()}),Iae=_.object({type:_.literal("tool-call"),toolCallId:_.string(),toolName:_.string(),input
102:_.unknown(),providerOptions:Pe.optional(),providerExecuted:_.boolean().optional()}),Cae=_.discriminatedUnion("type",[_.object({type:_.literal("text"),value:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("json"),value:Js,providerOptions:Pe.optional()}),_.object({type:_.literal("execution-denied"),reason:_.string().optional(),providerOptions:Pe.optional()}),_.object({type:_.literal("error-text"),value:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("error-json"),value:Js,providerOptions:Pe.optional()}),_.object({type:_.literal("content"),value:_.array(_.union([_.object({type:_.literal("text"),text:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("media"),data:_.string(),mediaType:_.string()}),_.object({type:_.literal("file-data"),data:_.string(),mediaType:_.string(),filename:_.string().optional(),providerOptions:Pe.optional()}),_.object({type:_.literal("file-url"),url:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Pe.optional()}),_.object({type:_.literal("image-data"),data:_.string(),mediaType:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("image-url"),url:_.string(),providerOptions:Pe.optional()}),_.object({type:_.literal("image-file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Pe.optional()}),_.object({type:_.literal("custom"),providerOptions:Pe.optional()})]))})]),rO=_.object({type:_.literal("tool-result"),toolCallId:_.string(),toolName:_.string(),output:Cae,providerOptions:Pe.optional()}),Tae=_.object({type:_.literal("tool-approval-request"),approvalId:_.string(),toolCallId:_.string()}),Pae=_.object({type:_.literal("tool-approval-response"),approvalId:_.string(),approved:_.boolean(),reason:_.string().optional()}),$ae=_.object({role:_.literal("system"),content:_.string(),providerOptions:Pe.optional()}),Lae=_.object({role:_.literal("user"),content:_.union([_.string(),_.array(_.union([eO,kae,tO]))]),providerOptions:Pe.optional()}),Aae=_.object({role:_.literal("assistant"),content:_.union([_.string(),_.array(_.union([eO,tO,Sae,Iae,rO,Tae]))]),providerOptions:Pe.optional()}),Eae=_.object({role:_.literal("tool"),content:_.array(_.union([rO,Pae])),providerOptions:Pe.optional()}),RAe=_.union([$ae,Lae,Aae,Eae]);function nO(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 a in t)if(!(a==="__proto__"||a==="constructor"||a==="prototype")&&Object.prototype.hasOwnProperty.call(t,a)){let n=t[a];if(n===void 0)continue;let o=a in e?e[a]:void 0,i=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&s?r[a]=nO(o,n):r[a]=n}return r}var zAe=new TextEncoder;var Mae={};ene(Mae,{array:()=>Nae,choice:()=>Oae,json:()=>Uae,object:()=>Dae,text:()=>zae});function Rae(e){let t=["ROOT"],r=-1,a=null,n=0;function o(f){return f>="0"&&f<="9"||f>="A"&&f<="F"||f>="a"&&f<="f"}function i(f,p,h){switch(f){case'"':{r=p,t.pop(),t.push(h),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=p,a=p,t.pop(),t.push(h),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(h),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=p,t.pop(),t.push(h),t.push("INSIDE_NUMBER");break}case"{":{r=p,t.pop(),t.push(h),t.push("INSIDE_OBJECT_START");break}case"[":{r=p,t.pop(),t.push(h),t.push("INSIDE_ARRAY_START");break}}}function s(f,p){switch(f){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=p,t.pop();break}}}function u(f,p){switch(f){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}}}for(let f=0;f<e.length;f++){let p=e[f];switch(t[t.length-1]){case"ROOT":i(p,f,"FINISH");break;case"INSIDE_OBJECT_START":{switch(p){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=f,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{p==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{p==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{p===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(p,f,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(p,f);break}case"INSIDE_STRING":{switch(p){case'"':{t.pop(),r=f;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=f}break}
vendor: 4,230 bytes, line 102
102case"INSIDE_ARRAY_START":{p==="]"?(r=f,t.pop()):(r=f,i(p,f,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=f,t.pop();break}default:{r=f;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(p,f,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),p==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=f;break}case"INSIDE_STRING_UNICODE_ESCAPE":{o(p)&&(n++,n===4&&(t.pop(),r=f));break}case"INSIDE_NUMBER":{switch(p){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=f;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(p,f),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,f);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(p,f);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(p,f);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let g=e.substring(a,f+1);!"false".startsWith(g)&&!"true".startsWith(g)&&!"null".startsWith(g)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(p,f):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&u(p,f)):r=f;break}}}let c=e.slice(0,r+1);for(let f=t.length-1;f>=0;f--)switch(t[f]){case"INSIDE_STRING":{c+='"';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":{c+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{c+="]";break}case"INSIDE_LITERAL":{let h=e.substring(a,e.length);"true".startsWith(h)?c+="true".slice(h.length):"false".startsWith(h)?c+="false".slice(h.length):"null".startsWith(h)&&(c+="null".slice(h.length))}}return c}async function hp(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Io({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Io({text:Rae(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var zae=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),Dae=({schema:e,name:t,description:r})=>{let a=P0(e);return{name:"object",responseFormat:Ra(a.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},o){let i=await Io({text:n});if(!i.success)throw new Bi({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});let s=await Tu({value:i.value,schema:a});if(!s.success)throw new Bi({message:"No object generated: response did not match schema.",cause:s.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});return s.value},async parsePartialOutput({text:n}){let o=await hp(n);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},Nae=({element:e,name:t,description:r})=>{let a=P0(e);return{name:"array",responseFormat:Ra(a.jsonSchema).then(n=>{let{$schema:o,...i}=n;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:n},o){let i=await Io({text:n});if(!i.success)throw new Bi({message:"No object generated: could not parse the response.",cause:i.error,text:n,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 Bi({message:"No object generated: response did not match schema.",cause:new La({value:s,cause:"response must be an object with an elements array"}),text:n,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let u of s.elements){let c=await Tu({value:u,schema:a});if(!c.success)throw new Bi({message:"No object generated: response did not match sc
102hema.",cause:c.error,text:n,response:o.response,usage:o.usage,finishReason:o.finishReason})}return s.elements},async parsePartialOutput({text:n}){let o=await hp(n);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,u=[];for(let c of s){let f=await Tu({value:c,schema:a});f.success&&u.push(f.value)}return{partial:u}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;n<o.length;n++)i.enqueue(o[n])}})}}},Oae=({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:a},n){let o=await Io({text:a});if(!o.success)throw new Bi({message:"No object generated: could not parse the response.",cause:o.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new Bi({message:"No object generated: response did not match schema.",cause:new La({value:i,cause:"response must be an object that contains a choice value."}),text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return i.result},async parsePartialOutput({text:a}){let n=await hp(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=n.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 n.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),Uae=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},a){let n=await Io({text:r});if(!n.success)throw new Bi({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:a.response,usage:a.usage,finishReason:a.finishReason});return n.value},async parsePartialOutput({text:r}){let a=await hp(r);switch(a.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return a.value===void 0?void 0:{partial:a.value}}},createElementStreamTransform(){}});var UAe=So({prefix:"aitxt",size:24});var FAe=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 103 104`)},flush(e){e.enqueue(`data: [DONE] 105 106`)}})}};var pp=_.record(_.string(),Js.optional()),Bae=C0(()=>Rf(_.union([_.strictObject({type:_.literal("text-start"),id:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("text-delta"),id:_.string(),delta:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("text-end"),id:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("error"),errorText:_.string()}),_.strictObject({type:_.literal("tool-input-start"),toolCallId:_.string(),toolName:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Pe.optional(),toolMetadata:pp.optional(),dynamic:_.boolean().optional(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-input-delta"),toolCallId:_.string(),inputTextDelta:_.string()}),_.strictObject({type:_.literal("tool-input-available"),toolCallId:_.string(),toolName:_.string(),input:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Pe.optional(),toolMetadata:pp.optional(),dynamic:_.boolean().optional(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-input-error"),toolCallId:_.string(),toolName:_.string(),input:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Pe.optional(),toolMetadata:pp.optional(),dynamic:_.boolean().optional(),errorText:_.string(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-approval-request"),approvalId:_.string(),toolCallId:_.string(),signature:_.string().optional()}),_.strictObject({type:_.literal("tool-output-available"),toolCallId:_.string(),output:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Pe.optional(),toolMetadata:pp.optional(),dynamic:_.boolean().optional(),preliminary:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-error"),toolCallId:_.string(),errorText:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Pe.optional(),toolMetadata:pp.optional(),dynamic:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-denied"),toolCallId:_.string()}),_.strictObject({type:_.literal("reasoning-start"),id:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("reasoning-delta"),id:_.string(),delta:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("reasoning-end"),id:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Pe.optional()}),_.strictObject({type:_.literal("file"),url:_.string(),mediaType:_.string(),providerMetadata:Pe.optional()}),_.strictObject({type:_.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:_.string().optional(),data:_.unknown(),transient:_.boolean().optional()}),_.strictObject({type:_.literal("start-step")}),_.strictObject({type:_.literal("finish-step")}),_.strictObject({type:_.literal("start"),messageId:_.string().optional(),messageMetadata:_.unknown().optional()}),_.strictObject({type:_.literal("finish"),finishReason:_.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:_.unknown().optional()}),_.strictObject({type:_.literal("abort"),reason:_.string().optional()}),_.strictObject({type:_.literal("message-metadata"),messageMetadata:_.unknown()})])));function Fae(e){return e.type.startsWith("data-")}function mp(){return Object.create(null)}function l5(e){return e.type.startsWith("tool-")}function aO(e){return e.type==="dynamic-tool"}function la(e){return l5(e)||aO(e)}function u5(e){return e.type.split("-").slice(1).join("-")}function oO(e){return aO(e)?e.toolName:u5(e)}function jae({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:mp(),activeReasoningParts:mp(),partialToolCalls:mp()}}
106function Zae({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:a,onError:n,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(s,u){await a(async({state:c,write:f})=>{var p,h,g,x;function I(k){let E=c.message.parts.filter(la).find(z=>z.toolCallId===k);if(E==null)throw new ac({chunkType:"tool-invocation",chunkId:k,message:`No tool invocation found for tool call ID "${k}".`});return E}function S(k){var M;let E=c.message.parts.find(q=>l5(q)&&q.toolCallId===k.toolCallId),z=k,j=E;if(E!=null){E.state=k.state,j.input=z.input,j.output=z.output,j.errorText=z.errorText,j.rawInput=z.rawInput,j.preliminary=z.preliminary,k.title!==void 0&&(j.title=k.title),k.toolMetadata!==void 0&&(j.toolMetadata=k.toolMetadata),j.providerExecuted=(M=z.providerExecuted)!=null?M:E.providerExecuted;let q=z.providerMetadata;if(q!=null)if(k.state==="output-available"||k.state==="output-error"){let Z=E;Z.resultProviderMetadata=q}else E.callProviderMetadata=q}else c.message.parts.push({type:`tool-${k.toolName}`,toolCallId:k.toolCallId,state:k.state,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},input:z.input,output:z.output,rawInput:z.rawInput,errorText:z.errorText,providerExecuted:z.providerExecuted,preliminary:z.preliminary,...z.providerMetadata!=null&&(k.state==="output-available"||k.state==="output-error")?{resultProviderMetadata:z.providerMetadata}:{},...z.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{c
106allProviderMetadata:z.providerMetadata}:{}})}function $(k){var M,E;let z=c.message.parts.find(Z=>Z.type==="dynamic-tool"&&Z.toolCallId===k.toolCallId),j=k,q=z;if(z!=null){z.state=k.state,q.toolName=k.toolName,q.input=j.input,q.output=j.output,q.errorText=j.errorText,q.rawInput=(M=j.rawInput)!=null?M:q.rawInput,q.preliminary=j.preliminary,k.title!==void 0&&(q.title=k.title),k.toolMetadata!==void 0&&(q.toolMetadata=k.toolMetadata),q.providerExecuted=(E=j.providerExecuted)!=null?E:z.providerExecuted;let Z=j.providerMetadata;if(Z!=null)if(k.state==="output-available"||k.state==="output-error"){let W=z;W.resultProviderMetadata=Z}else z.callProviderMetadata=Z}else c.message.parts.push({type:"dynamic-tool",toolName:k.toolName,toolCallId:k.toolCallId,state:k.state,input:j.input,output:j.output,errorText:j.errorText,preliminary:j.preliminary,providerExecuted:j.providerExecuted,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},...j.providerMetadata!=null&&(k.state==="output-available"||k.state==="output-error")?{resultProviderMetadata:j.providerMetadata}:{},...j.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{c
vendor: 7,286 bytes, line 106
106allProviderMetadata:j.providerMetadata}:{}})}async function T(k){if(k!=null){let M=c.message.metadata!=null?nO(c.message.metadata,k):k;t!=null&&await $0({value:M,schema:t,context:{field:"message.metadata",entityId:c.message.id}}),c.message.metadata=M}}switch(s.type){case"text-start":{let k={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeTextParts[s.id]=k,c.message.parts.push(k),f();break}case"text-delta":{let k=c.activeTextParts[s.id];if(k==null)throw new ac({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.`});k.text+=s.delta,k.providerMetadata=(p=s.providerMetadata)!=null?p:k.providerMetadata,f();break}case"text-end":{let k=c.activeTextParts[s.id];if(k==null)throw new ac({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.`});k.state="done",k.providerMetadata=(h=s.providerMetadata)!=null?h:k.providerMetadata,delete c.activeTextParts[s.id],f();break}case"reasoning-start":{let k={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};c.activeReasoningParts[s.id]=k,c.message.parts.push(k),f();break}case"reasoning-delta":{let k=c.activeReasoningParts[s.id];if(k==null)throw new ac({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.`});k.text+=s.delta,k.providerMetadata=(g=s.providerMetadata)!=null?g:k.providerMetadata,f();break}case"reasoning-end":{let k=c.activeReasoningParts[s.id];if(k==null)throw new ac({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.`});k.providerMetadata=(x=s.providerMetadata)!=null?x:k.providerMetadata,k.state="done",delete c.activeReasoningParts[s.id],f();break}case"file":{c.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),f();break}case"source-url":{c.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),f();break}case"source-document":{c.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),f();break}case"tool-input-start":{let k=c.message.parts.filter(l5);c.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:k.length,dynamic:s.dynamic,title:s.title,toolMetadata:s.toolMetadata},s.dynamic?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}):S({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}),f();break}case"tool-input-delta":{let k=c.partialToolCalls[s.toolCallId];if(k==null)throw new ac({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.`});k.text+=s.inputTextDelta;let{value:M}=await hp(k.text);k.dynamic?$({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:M,title:k.title,toolMetadata:k.toolMetadata}):S({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:M,title:k.title,toolMetadata:k.toolMetadata}),f();break}case"tool-input-available":{s.dynamic?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}):S({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}),f(),o&&!s.providerExecuted&&await o({toolCall:s});break}case"tool-input-error":{let k=c.message.parts.filter(la).find(E=>E.toolCallId===s.toolCallId);(k!=null?k.type==="dynamic-tool":!!s.dynamic)?$({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}):S({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}),f();break}case"tool-approval-request":{let k=I(s.toolCallId);k.state="approval-requested",k.approval={id:s.approvalId,...s.signature!=null?{signature:s.signature}:{}},f();break}case"tool-output-denied":{let k=I(s.toolCallId);k.state="output-denied",f();break}case"tool-output-available":{let k=I(s.toolCallId);k.type==="dynamic-tool"?$({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-available",input:k.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}):S({toolCallId:s.toolCallId,toolName:u5(k),state:"output-available",input:k.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}),f();break}case"tool-output-error":{let k=I(s.toolCallId);k.type==="dynamic-tool"?$({toolCallId:s.toolCallId,toolName:k.toolName,state:"output-error",input:k.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}):S({toolCallId:s.toolCallId,toolName:u5(k),state:"output-error",input:k.input,rawInput:k.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:k.title,toolMetadata:k.toolMetadata}),f();break}case"start-step":{c.message.parts.push({type:"step-start"});break}case"finish-step":{c.activeTextParts=mp(),c.activeReasoningParts=mp();break}case"start":{s.messageId!=null&&(c.message.id=s.messageId),await T(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&f();break}case"finish":{s.finishReason!=null&&(c.finishReason=s.finishReason),await T(s.messageMetadata),s.messageMetadata!=null&&f();break}case"message-metadata":{await T(s.messageMetadata),s.messageMetadata!=null&&f();break}case"error":{n?.(new Error(s.errorText));break}default:if(Fae(s)){if(r?.[s.type]!=null){let E=c.message.parts.findIndex(j=>"id"in j&&"data"in j&&j.id===s.id&&j.type===s.type),z=E>=0?E:c.message.parts.length;await $0({value:s.data,schema:r[s.type],context:{field:`message.parts[${z}].data`,entityName:s.type,entityId:s.id}})}let k=s;if(k.transient){i?.(k);break}let M=k.id!=null?c.message.parts.find(E=>k.type===E.type&&k.id===E.id):void 0;M!=null?M.data=k.data:c.message.parts.push(k),i?.(k),f()}}u.enqueue(s)})}}))}
106async function Vae({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:a}=await r.read();if(a)break}}catch(a){t?.(a)}finally{r.releaseLock()}}var qAe=So({prefix:"aitxt",size:24});var on=_.record(_.string(),Js.optional()),WAe=C0(()=>Rf(_.array(_.object({id:_.string(),role:_.enum(["system","user","assistant"]),metadata:_.unknown().optional(),parts:_.array(_.union([_.object({type:_.literal("text"),text:_.string(),state:_.enum(["streaming","done"]).optional(),providerMetadata:Pe.optional()}),_.object({type:_.literal("reasoning"),text:_.string(),state:_.enum(["streaming","done"]).optional(),providerMetadata:Pe.optional()}),_.object({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Pe.optional()}),_.object({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Pe.optional()}),_.object({type:_.literal("file"),mediaType:_.string(),filename:_.string().optional(),url:_.string(),providerMetadata:Pe.optional()}),_.object({type:_.literal("step-start")}),_.object({type:_.string().startsWith("data-"),id:_.string().optional(),data:_.unknown()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("input-streaming"),input:_.unknown().optional(),providerExecuted:_.boolean().optional(),callProviderMetadata:Pe.optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("input-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),resultProviderMetadata:Pe.optional(),preliminary:_.boolean().optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-error"),input:_.unknown().optional(),rawInput:_.unknown().optional(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Pe.optional(),resultProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-denied"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.literal(!1),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("input-streaming"),providerExecuted:_.boolean().optional(),callProviderMetadata:Pe.optional(),input
106:_.unknown().optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("input-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),resultProviderMetadata:Pe.optional(),preliminary:_.boolean().optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-error"),providerExecuted:_.boolean().optional(),input:_.unknown().optional(),rawInput:_.unknown().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Pe.optional(),resultProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:on.optional(),state:_.literal("output-denied"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Pe.optional(),approval:_.object({id:_.string(),approved:_.literal(!1),reason:_.string().optional(),signature:_.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var KAe=So({prefix:"aiobj",size:24});function iO(e){return({url:t,abortSignal:r})=>_ae({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var qae=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(a){r(a)}}),this.processQueue()})}};var YAe=So({prefix:"aiobj",size:24});var QAe=iO();var Gae="AI_NoSuchProviderError",Hae=`vercel.ai.error.${Gae}`,Wae=Symbol.for(Hae),Jae;Jae=Wae;var eEe=iO();async function Kae(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:a}=t,n=await new Promise((o,i)=>{let s=new FileReader;s.onload=u=>{var c;o((c=u.target)==null?void 0:c.result)},s.onerror=u=>i(u),s.readAsDataURL(t)});return{type:"file",mediaType:a,filename:r,url:n}}))}var Xae=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:a,fetch:n,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=r,this.body=a,this.fetch=n,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var r,a,n,o,i;let s=await Ra(this.body),u=await Ra(this.headers),c=await Ra(this.credentials),f={...$i(u),...$i(t.headers)},p=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:f,credentials:c,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),h=(a=p?.api)!=null?a:this.api,g=p?.headers!==void 0?$i(p.headers):f,x=p?.body!==void 0?p.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},I=(n=p?.credentials)!=null?n:c,$=await((o=this.fetch)!=null?o:globalThis.fetch)(h,{method:"POST",headers:{"Content-Type":"application/json",...g},body:JSON.stringify(x),credentials:I,signal:e});if(!$.ok)throw new Error((i=await $.text())!=null?i:"Failed to fetch the chat response.");if(!$.body)throw new Error("The response body is empty.");return this.processResponseStream($.body)}async reconnectToStream(e){var t,r,a,n,o;let i=await Ra(this.body),s=await Ra(this.headers),u=await Ra(this.credentials),c={...$i(s),...$i(e.headers)},f=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:c,credentials:u,requestMetadata:e.metadata})),p=(r=f?.api)!=null?r:`${this.api}/${e.chatId}/stream`,h=f?.headers!==void 0?$i(f.headers):c,g=(a=f?.credentials)!=null?a:u,I=await((n=this.fetch)!=null?n:globalThis.fetch)(p,{method:"GET",headers:h,credentials:g});if(I.status===204)return null;if(!I.ok)throw new Error((o=await I.text())!=null?o:"Failed to fetch the chat response.");if(!I.body)throw new Error("The response body is empty.");return this.processResponseStream(I.body)}},c5=class extends Xae{constructor(e={}){super(e)}
vendor: 4,150 bytes, line 106
106processResponseStream(e){return nz({stream:e,schema:Bae}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},sO=class{constructor({generateId:e=XR,id:t=e(),transport:r=new c5,messageMetadataSchema:a,dataPartSchemas:n,state:o,onError:i,onToolCall:s,onFinish:u,onData:c,sendAutomaticallyWhen:f}){this.activeResponse=void 0,this.jobExecutor=new qae,this.sendMessage=async(p,h)=>{var g,x,I,S;if(p==null){await this.makeRequest({trigger:"submit-message",messageId:(g=this.lastMessage)==null?void 0:g.id,...h});return}let $;if("text"in p||"files"in p?$={parts:[...Array.isArray(p.files)?p.files:await Kae(p.files),..."text"in p&&p.text!=null?[{type:"text",text:p.text}]:[]]}:$=p,p.messageId!=null){let T=this.state.messages.findIndex(k=>k.id===p.messageId);if(T===-1)throw new Error(`message with id ${p.messageId} not found`);if(this.state.messages[T].role!=="user")throw new Error(`message with id ${p.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,T+1),this.state.replaceMessage(T,{...$,id:p.messageId,role:(x=$.role)!=null?x:"user",metadata:p.metadata})}else this.state.pushMessage({...$,id:(I=$.id)!=null?I:this.generateId(),role:(S=$.role)!=null?S:"user",metadata:p.metadata});await this.makeRequest({trigger:"submit-message",messageId:p.messageId,...h})},this.regenerate=async({messageId:p,...h}={})=>{let g=p==null?this.state.messages.length-1:this.state.messages.findIndex(x=>x.id===p);if(g===-1)throw new Error(`message ${p} not found`);this.state.messages=this.state.messages.slice(0,this.messages[g].role==="assistant"?g:g+1),await this.makeRequest({trigger:"regenerate-message",messageId:p,...h})},this.resumeStream=async(p={})=>{await this.makeRequest({trigger:"resume-stream",...p})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:p,approved:h,reason:g,options:x})=>this.jobExecutor.run(async()=>{let I=this.state.messages,S=I[I.length-1],$=T=>la(T)&&T.state==="approval-requested"&&T.approval.id===p?{...T,state:"approval-responded",approval:{id:p,approved:h,reason:g}}:T;this.state.replaceMessage(I.length-1,{...S,parts:S.parts.map($)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map($)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(T=>{var k;T&&this.makeRequest({trigger:"submit-message",messageId:(k=this.lastMessage)==null?void 0:k.id,...x})})}),this.addToolOutput=async({state:p="output-available",toolCallId:h,output:g,errorText:x,options:I})=>this.jobExecutor.run(async()=>{let S=this.state.messages,$=S[S.length-1],T=k=>la(k)&&k.toolCallId===h?{...k,state:p,output:g,errorText:x}:k;this.state.replaceMessage(S.length-1,{...$,parts:$.parts.map(T)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(T)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(k=>{var M;k&&this.makeRequest({trigger:"submit-message",messageId:(M=this.lastMessage)==null?void 0:M.id,...I})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var p;this.status!=="streaming"&&this.status!=="submitted"||(p=this.activeResponse)!=null&&p.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=a,this.dataPartSchemas=n,this.state=o,this.onError=i,this.onToolCall=s,this.onFinish=u,this.onData=c,this.sendAutomaticallyWhen=f}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}
106async makeRequest({trigger:e,metadata:t,headers:r,body:a,messageId:n}){var o,i,s;let u;if(e==="resume-stream")try{let g=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:a});if(g==null)return;u=g}catch(g){this.onError&&g instanceof Error&&this.onError(g),this.setStatus({status:"error",error:g});return}this.setStatus({status:"submitted",error:void 0});let c=this.lastMessage,f=!1,p=!1,h=!1;try{let g={state:jae({lastMessage:this.state.snapshot(c),messageId:this.generateId()}),abortController:new AbortController};g.abortController.signal.addEventListener("abort",()=>{f=!0}),this.activeResponse=g;let x;e==="resume-stream"?x=u:x=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:g.abortController.signal,metadata:t,headers:r,body:a,trigger:e,messageId:n});let I=S=>this.jobExecutor.run(()=>S({state:g.state,write:()=>{var $;this.setStatus({status:"streaming"}),g.state.message.id===(($=this.lastMessage)==null?void 0:$.id)?this.state.replaceMessage(this.state.messages.length-1,g.state.message):this.state.pushMessage(g.state.message)}}));await Vae({stream:Zae({stream:x,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:I,onError:S=>{throw S}}),onError:S=>{throw S}}),this.setStatus({status:"ready"})}catch(g){if(f||g.name==="AbortError")return f=!0,this.setStatus({status:"ready"}),null;h=!0,g instanceof TypeError&&(g.message.toLowerCase().includes("fetch")||g.message.toLowerCase().includes("network"))&&(p=!0),this.onError&&g instanceof Error&&this.onError(g),this.setStatus({status:"error",error:g})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:f,isDisconnect:p,isError:h,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(g){console.error(g)}this.activeResponse=void 0}!h&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:r,body:a})}};function lO({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,o,i)=>o.type==="step-start"?i:n,-1),a=t.parts.slice(r+1).filter(la);return a.filter(n=>n.state==="approval-responded").length>0&&a.every(n=>n.state==="output-available"||n.state==="output-error"||n.state==="approval-responded")}function uO({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,o,i)=>o.type==="step-start"?i:n,-1),a=t.parts.slice(r+1).filter(la).filter(n=>!n.providerExecuted);return a.length>0&&a.every(n=>n.state==="output-available"||n.state==="output-error")}var pO=O(le());var Sr=O(le(),1);var Yae={damping:.7,stiffness:.05,mass:1.25},Qae=70,eoe=1e3/60,toe=350,gy=!1;globalThis.document?.addEventListener("mousedown",()=>{gy=!0});globalThis.document?.addEventListener("mouseup",()=>{gy=!1});globalThis.document?.addEventListener("click",()=>{gy=!1});var dO=(e={})=>{let[t,r]=(0,Sr.useState)(!1),[a,n]=(0,Sr.useState)(e.initial!==!1),[o,i]=(0,Sr.useState)(!1),s=(0,Sr.useRef)(null);s.current=e;let u=(0,Sr.useCallback)(()=>{if(!gy)return!1;let T=window.getSelection();if(!T||!T.rangeCount)return!1;let k=T.getRangeAt(0);return k.commonAncestorContainer.contains(S.current)||S.current?.contains(k.commonAncestorContainer)},[]),c=(0,Sr.useCallback)(T=>{p.isAtBottom=T,n(T)},[]),f=(0,Sr.useCallback)(T=>{p.escapedFromLock=T,r(T)},[]),p=(0,Sr.useMemo)(()=>{let T;return{escapedFromLock:t,isAtBottom:a,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return S.current?.scrollTop??0},set scrollTop(k){S.current&&(S.current.scrollTop=k,p.ignoreScrollToTop=S.current.scrollTop)},get targetScrollTop(){return!S.current||!$.current?0:S.current.scrollHeight-1-S.current.clientHeight},get calculatedTargetScrollTop(){if(!S.current||!$.current)return 0;let{targetScrollTop:k}=this;if(!e.targetScrollTop)return k;if(T?.targetScrollTop===k)return T.calculatedScrollTop;let M=Math.max(Math.min(e.targetScrollTop(k,{scrollElement:S.current,contentElement:$.current}),k),0);return T={targetScrollTop:k,calculatedScrollTop:M},requestAnimationFrame(()=>{T=void 0}),M},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=Qae}}},[]),h=(0,Sr.useCallback)((T={})=>{typeof T=="string"&&(T={animation:T}),T.preserveScrollPosition||c(!0);let k=Date.now()+(Number(T.wait)||0),M=f5(s.current,T.animation),{ignoreEscapes:E=!1}=T,z,j=p.calculatedTargetScrollTop;T.duration instanceof Promise?T.duration.finally(()=>{z=Date.now()}):z=k+(T.duration??0);let q=async()=>{let Z=new Promise(requestAnimationFrame).then(()=>
106{if(!p.isAtBottom)return p.animation=void 0,!1;let{scrollTop:W}=p,de=performance.now(),Q=(de-(p.lastTick??de))/eoe;if(p.animation||(p.animation={behavior:M,promise:Z,ignoreEscapes:E}),p.animation.behavior===M&&(p.lastTick=de),u()||k>Date.now())return q();if(W<Math.min(j,p.calculatedTargetScrollTop)){if(p.animation?.behavior===M){if(M==="instant")return p.scrollTop=p.calculatedTargetScrollTop,q();p.velocity=(M.damping*p.velocity+M.stiffness*p.scrollDifference)/M.mass,p.accumulated+=p.velocity*Q,p.scrollTop+=p.accumulated,p.scrollTop!==W&&(p.accumulated=0)}return q()}return z>Date.now()?(j=p.calculatedTargetScrollTop,q()):(p.animation=void 0,p.scrollTop<p.calculatedTargetScrollTop?h({animation:f5(s.current,s.current.resize),ignoreEscapes:E,duration:Math.max(0,z-Date.now())||void 0}):p.isAtBottom)});return Z.then(W=>(requestAnimationFrame(()=>{p.animation||(p.lastTick=void 0,p.velocity=0)}),W))};return T.wait!==!0&&(p.animation=void 0),p.animation?.behavior===M?p.animation.promise:q()},[c,u,p]),g=(0,Sr.useCallback)(()=>{f(!0),c(!1)},[f,c]),x=(0,Sr.useCallback)(({target:T})=>
106{if(T!==S.current)return;let{scrollTop:k,ignoreScrollToTop:M}=p,{lastScrollTop:E=k}=p;p.lastScrollTop=k,p.ignoreScrollToTop=void 0,M&&M>k&&(E=M),i(p.isNearBottom),setTimeout(()=>{if(p.resizeDifference||k===M)return;if(u()){f(!0),c(!1);return}let z=k>E,j=k<E;if(p.animation?.ignoreEscapes){p.scrollTop=E;return}j&&(f(!0),c(!1)),z&&f(!1),!p.escapedFromLock&&p.isNearBottom&&c(!0)},1)},[f,c,u,p]),I=(0,Sr.useCallback)(({target:T,deltaY:k})=>{let M=T;for(;!["scroll","auto"].includes(getComputedStyle(M).overflow);){if(!M.parentElement)return;M=M.parentElement}M===S.current&&k<0&&S.current.scrollHeight>S.current.clientHeight&&!p.animation?.ignoreEscapes&&(f(!0),c(!1))},[f,c,p]),S=cO(T=>{S.current?.removeEventListener("scroll",x),S.current?.removeEventListener("wheel",I),T?.addEventListener("scroll",x,{passive:!0}),T?.addEventListener("wheel",I,{passive:!0})},[]),$=cO(T=>{if(p.resizeObserver?.disconnect(),!T)return;let k;p.resizeObserver=new ResizeObserver(([M])=>{let{height:E}=M.contentRect,z=E-(k??E);if(p.resizeDifference=z,p.scrollTop>p.targetScrollTop&&(p.scrollTop=p.targetScrollTop),i(p.isNearBottom),z>=0){let j=f5(s.current,k?s.current.resize:s.current.initial);h({animation:j,wait:!0,preserveScrollPosition:!0,duration:j==="instant"?void 0:toe})}else p.isNearBottom&&(f(!1),c(!0));k=E,requestAnimationFrame(()=>{setTimeout(()=>{p.resizeDifference===z&&(p.resizeDifference=0)},1)})}),p.resizeObserver?.observe(T)},[]);return{contentRef:$,scrollRef:S,scrollToBottom:h,stopScroll:g,isAtBottom:a||o,isNearBottom:o,escapedFromLock:t,state:p}};function cO(e,t){let r=(0,Sr.useCallback)(a=>(r.current=a,e(a)),t);return r}var d5=new Map;function f5(...e){let t={...Yae},r=!1;for(let n of e){if(n==="instant"){r=!0;continue}typeof n=="object"&&(r=!1,t.damping=n.damping??t.damping,t.stiffness=n.stiffness??t.stiffness,t.mass=n.mass??t.mass)}let a=JSON.stringify(t);return d5.has(a)||d5.set(a,Object.freeze(t)),r?"instant":d5.get(a)}var Ks=O(le(),1),sn=O(le(),1);var fO=(0,sn.createContext)(null),roe=typeof window<"u"?sn.useLayoutEffect:sn.useEffect;function gp({instance:e,children:t,resize:r,initial:a,mass:n,damping:o,stiffness:i,targetScrollTop:s,contextRef:u,...c}){let f=(0,sn.useRef)(null),p=Ks.useCallback((E,z)=>(M?.targetScrollTop??s)?.(E,z)??E,[s]),h=dO({mass:n,damping:o,stiffness:i,resize:r,initial:a,targetScrollTop:p}),{scrollRef:g,contentRef:x,scrollToBottom:I,stopScroll:S,isAtBottom:$,escapedFromLock:T,state:k}=e??h,M=(0,sn.useMemo)(()=>({scrollToBottom:I,stopScroll:S,scrollRef:g,isAtBottom:$,escapedFromLock:T,contentRef:x,state:k,get targetScrollTop(){return f.current},set targetScrollTop(E){f.current=E}}),[I,$,x,g,S,T,k]);return(0,sn.useImperativeHandle)(u,()=>M,[M]),roe(()=>{g.current&&getComputedStyle(g.current).overflow==="visible"&&(g.current.style.overflow="auto")},[]),Ks.createElement(fO.Provider,{value:M},Ks.createElement("div",{...c},typeof t=="function"?t(M):t))}(function(e){function t({children:r,scrollClassName:a,...n}){let o=p5();return Ks.createElement("div",{ref:o.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:a},Ks.createElement("div",{...n,ref:o.contentRef},typeof r=="function"?r(o):r))}e.Content=t})(gp||(gp={}));function p5(){let e=(0,sn.useContext)(fO);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var ln=O(J()),mO=({className:e,...t})=>(0,ln.jsx)(gp,{className:be("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),hO=({className:e,...t})=>(0,ln.jsx)(gp.Content,{className:be("flex flex-col gap-8 p-4",e),...t}),gO=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:a,children:n,...o})=>(0,ln.jsx)("div",{className:be("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...o,children:n??(0,ln.jsxs)(ln.Fragment,{children:[a&&(0,ln.jsx)("div",{className:"text-muted-foreground",children:a}),(0,ln.jsxs)("div",{className:"space-y-1",children:[(0,ln.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,ln.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),vO=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:a}=p5(),n=(0,pO.useCallback)(()=>{a()},[a]);return!r&&(0,ln.jsx)(xr,{className:be("dark:bg-background dark:hover:bg-muted absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:n,size:"icon",type:"button",variant:"outline",...t,children:(0,ln.jsx)(Hc,{className:"size-4"})})};var wEe=O(le());var noe=O(J());var aoe=O(J()),TEe=ea("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 $Ee=O(le());var yO=O(J());var Ir={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 Ua={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 kn={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 vy=[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
1060,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],yy=[12288,12288,65281,65376,65504,65510],xy=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],by=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],vp=[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 oc=(e,t)=>{let r=0,a=Math.floor(e.length/2)-1;for(;r<=a;){let n=Math.floor((r+a)/2),o=n*2;if(t<e[o])a=n-1;else if(t>e[o+1])r=n+1;else return!0}return!1};var ooe=vy[0],ioe=vy.at(-1),soe=yy[0],loe=yy.at(-1),uoe=xy[0],coe=xy.at(-1),doe=by[0],foe=by.at(-1),poe=vp[0],moe=vp.at(-1),xO=19968,[hoe,goe]=voe(vp);function voe(e){let t=e[0],r=e[1];for(let a=0;a<e.length;a+=2){let n=e[a],o=e[a+1];if(xO>=n&&xO<=o)return[n,o];o-n>r-t&&(t=n,r=o)}return[t,r]}var bO=e=>e<ooe||e>ioe?!1:oc(vy,e),wO=e=>e<soe||e>loe?!1:oc(yy,e),yoe=e=>e<uoe||e>coe?!1:oc(xy,e),xoe=e=>e<doe||e>foe?!1:oc(by,e),_O=e=>e>=hoe&&e<=goe?!0:e<poe||e>moe?!1:oc(vp,e);function kO(e){return bO(e)?"ambiguous":wO(e)?"fullwidth":yoe(e)?"halfwidth":xoe(e)?"narrow":_O(e)?"wide":"neutral"}function boe(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function SO(e){return boe(e),kO(e)}function woe(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function IO(e){if(!e||e<4352)return!1;switch(SO(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!woe(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 CO(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function TO(e){return e!==null&&e>=65024&&e<=65038}var PO=LO(/\p{P}|\p{S}/u),$O=LO(/\s/);function LO(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function $o(e){return!!(e&Ua.characterGroupWhitespace)}function Xs(e){return(e&Vr.cjkPunctuation)===Ua.characterGroupPunctuation}function ic(e){return!!(e&Vr.cjk)}function h5(e){return e===Vr.ivs}function g5(e){return!!(e&Vr.cjkOrIvs)}function v5(e){return e===Vr.nonEmojiGeneralUseVS}function wy(e){return!!(e&Vr.spaceOrPunctuation)}var Vr;(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})(Vr||(Vr={}));function Lo(e){if(e===Ir.eof||ST(e)||$O(e))return Ua.characterGroupWhitespace;let t=0;if(e>=4352){if(TO(e))return Vr.nonEmojiGeneralUseVS;switch(IO(e)){case null:return Vr.ivs;case!0:t|=Vr.cjk;break}}return PO(e)&&(t|=Ua.characterGroupPunctuation),t}function yp(e,t,r){if(!v5(e))return e;let a=t(),n=Lo(a);
vendor: 9,963 bytes, line 106
106return!a||$o(n)?e:CO(a,r)?Vr.cjkPunctuation:_oe(n)}function _oe(e){return e&~Vr.ivs}function xp(e){return!!(e&&e>=55296&&e<=56319)}function bp(e){return!!(e&&e>=56320&&e<=57343)}function wp(e,t,r){if(t._bufferIndex<2)return e;let a=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return a&&a>=65536?a:e}function AO(e,t,r){let a=e>=65536?2:1;if(t._bufferIndex<1+a)return null;let n=t._bufferIndex-a-2,o=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-a}}),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 _p=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=AO(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function kp(e,t,r){let a=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return a&&a>=65536?a:e}var _y={name:"attention",resolveAll:koe,tokenize:Soe};function koe(e,t){let r=-1,a,n,o,i,s,u,c,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&t.sliceSerialize(e[a][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let p={...e[a][1].end},h={...e[r][1].start};EO(p,-u),EO(h,u),i={type:u>1?kn.strongSequence:kn.emphasisSequence,start:p,end:{...e[a][1].end}},s={type:u>1?kn.strongSequence:kn.emphasisSequence,start:{...e[r][1].start},end:h},o={type:u>1?kn.strongText:kn.emphasisText,start:{...e[a][1].end},end:{...e[r][1].start}},n={type:u>1?kn.strong:kn.emphasis,start:{...i.start},end:{...s.end}},e[a][1].end={...i.start},e[r][1].start={...s.end},c=[],e[a][1].end.offset-e[a][1].start.offset&&(c=wl(c,[["enter",e[a][1],t],["exit",e[a][1],t]])),c=wl(c,[["enter",n,t],["enter",i,t],["exit",i,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,c=wl(c,Em(t.parser.constructs.insideSpan.null,e.slice(a+1,r),t)),c=wl(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,c=wl(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,bl(e,a-1,r-a+3,c),r=a+c.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Soe(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:n,previous:o}=this,i=bp(o)?wp(o,a(),n):o,s=Lo(i),u=new _p(i,a(),n),c=yp(s,u.value.bind(u),i),f;return p;function p(g){return g===Ir.asterisk||Ir.underscore,f=g,e.enter("attentionSequence"),h(g)}function h(g){if(g===f)return e.consume(g),h;let x=e.exit("attentionSequence"),I=Lo(xp(g)?kp(g,a(),n):g);let S=Xs(c),$=S||$o(c),T=Xs(I),k=T||$o(I),M=g5(c),E=!k||T&&($||M)||r.includes(g),z=!$||S&&(k||ic(I))||r.includes(i);return x._open=!!(f===Ir.asterisk?E:E&&(wy(c)||!z)),x._close=!!(f===Ir.asterisk?z:z&&(wy(I)||!E)),t(g)}}function EO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function MO(){return{text:{[Ir.asterisk]:_y,[Ir.underscore]:_y},insideSpan:{null:[_y]}}}function RO(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(MO())}function y5(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:a};return t==null&&(t=!0),{text:{[Ir.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Ir.tilde]}};function a(o,i){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},p=[["enter",c,i],["enter",o[u][1],i],["exit",o[u][1],i],["enter",f,i]],h=i.parser.constructs.insideSpan.null;h&&bl(p,p.length,0,Em(h,o.slice(u+1,s),i)),bl(p,p.length,0,[["exit",f,i],["enter",o[s][1],i],["exit",o[s][1],i],["exit",c,i]]),bl(o,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type=kn.data);return o}function n(o,i,s){let{now:u,sliceSerialize:c,previous:f}=this,p=bp(f)?wp(f,u(),c):f,h=Lo(p),g=new _p(p,u(),c),x=yp(h,g.value.bind(g),p),I=this.events,S=0;return $;function $(k){return Ir.tilde,p===Ir.tilde&&I[I.length-1][1].type!==kn.characterEscape?s(k):(o.enter("strikethroughSequenceTemporary"),T(k))}function T(k){let M=Lo(p);if(k===Ir.tilde)return S>1?s(k):(o.consume(k),S++,T);if(S<2&&!t)return s(k);let E=o.exit("strikethroughSequenceTemporary"),z=Lo(xp(k)?kp(k,u(),c):k),j=Xs(x)||$o(x),q=Xs(z)||$o(z),Z=ic(x)||h5(M);return E._open=!q||z===Ua.attentionSideAfter&&(j||Z),E._close=!j||M===Ua.attentionSideAfter&&(q||ic(z)),i(k)}}}function zO(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(y5(e))}var Ioe=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),Coe=/^(https?:\/\/|mailto:|www\.)/i,Toe=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},Poe=e=>{let t=0;for(let r of e){if(Ioe.has(r))return t;t+=r.length}return null},$oe=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),Loe=e=>({type:"text",value:e}),Aoe=()=>e=>{PT(e,"link",(t,r,a)=>{if(!a||typeof r!="number"||!Toe(t)||!Coe.test(t.url))return;let n=Poe(t.url);if(n===null||n===0)return;let o=t.url.slice(0,n),i=t.url.slice(n),s=$oe(o,t),u=Loe(i);return a.children.splice(r,1,s,u),r+1})};function Eoe(){let e=[RO],t=[Aoe,zO],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var DO=Eoe();var Ct=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Moe(e){return P5(e)}function P5(e){return Array.isArray(e)?Roe(e):e instanceof RegExp?e:typeof e=="object"?zoe(e):e}function Roe(e){let t=[];for(let r=0,a=e.length;r<a;r++)t[r]=P5(e[r]);return t}function zoe(e){let t={};for(let r in e)t[r]=P5(e[r]);return t}function qO(e,...t){return t.forEach(r=>{for(let a in r)e[a]=r[a]}),e}function GO(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?GO(e.substring(0,e.length-1)):e.substr(~t+1)}var x5=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ky=class{static hasCaptures(e){return e===null?!1:(x5.lastIndex=0,x5.test(e))}static replaceCaptures(e,t,r){return e.replace(x5,(a,n,o,i)=>{let s=r[parseInt(n||o,10)];if(s){let u=t.substring(s.start,s.end);for(;u[0]===".";)u=u.substring(1);switch(i){case"downcase":return u.toLowerCase();case"upcase":return u.toUpperCase();default:return u}}else return a})}};function HO(e,t){return e<t?-1:e>t?1:0}function WO(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,a=t.length;if(r===a){for(let n=0;n<r;n++){let o=HO(e[n],t[n]);if(o!==0)return o}return 0}return r-a}function NO(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 JO(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var KO=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}},Cp=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(Ooe(e),t)}static createFromParsedTheme(e,t){return Boe(e,t)}_cachedMatchRoot=new KO(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,a=this._cachedMatchRoot.get(t).find(n=>Doe(e.parent,n.parentScopes));return a?new XO(a.fontStyle,a.foreground,a.background):null}},b5=class Sy{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let a of r)t=new Sy(t,a);return t}static from(...t){let r=null;for(let a=0;a<t.length;a++)r=new Sy(r,t[a]);return r}push(t){return new Sy(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=[],a=this;for(;a&&a!==t;)r.push(a.scopeName),a=a.parent;return a===t?r.reverse():void 0}};function Doe(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let a=t[r],n=!1;if(a===">"){if(r===t.length-1)return!1;a=t[++r],n=!0}for(;e&&!Noe(e.scopeName,a);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Noe(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var XO=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function Ooe(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],a=0;for(let n=0,o=t.length;n<o;n++){let i=t[n];if(!i.settings)continue;let s;if(typeof i.scope=="string"){let p=i.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),s=p.split(",")}else Array.isArray(i.scope)?s=i.scope:s=[""];let u=-1;if(typeof i.settings.fontStyle=="string"){u=0;let p=i.settings.fontStyle.split(" ");for(let h=0,g=p.length;h<g;h++)switch(p[h]){case"italic":u=u|1;break;case"bold":u=u|2;break;case"underline":u=u|4;break;case"strikethrough":u=u|8;break}}let c=null;typeof i.settings.foreground=="string"&&NO(i.settings.foreground)&&
vendor: 13,037 bytes, line 106
106(c=i.settings.foreground);let f=null;typeof i.settings.background=="string"&&NO(i.settings.background)&&(f=i.settings.background);for(let p=0,h=s.length;p<h;p++){let x=s[p].trim().split(" "),I=x[x.length-1],S=null;x.length>1&&(S=x.slice(0,x.length-1),S.reverse()),r[a++]=new Uoe(I,S,n,u,c,f)}}return r}var Uoe=class{constructor(e,t,r,a,n,o){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=a,this.foreground=n,this.background=o}},Cr=(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))(Cr||{});function Boe(e,t){e.sort((u,c)=>{let f=HO(u.scope,c.scope);return f!==0||(f=WO(u.parentScopes,c.parentScopes),f!==0)?f:u.index-c.index});let r=0,a="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let u=e.shift();u.fontStyle!==-1&&(r=u.fontStyle),u.foreground!==null&&(a=u.foreground),u.background!==null&&(n=u.background)}let o=new Foe(t),i=new XO(r,o.getId(a),o.getId(n)),s=new Zoe(new _5(0,null,-1,0,0),[]);for(let u=0,c=e.length;u<c;u++){let f=e[u];s.insert(0,f.scope,f.parentScopes,f.fontStyle,o.getId(f.foreground),o.getId(f.background))}return new Cp(o,i,s)}var Foe=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)}},joe=Object.freeze([]),_5=class YO{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,a,n,o){this.scopeDepth=t,this.parentScopes=r||joe,this.fontStyle=a,this.foreground=n,this.background=o}clone(){return new YO(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let a=0,n=t.length;a<n;a++)r[a]=t[a].clone();return r}acceptOverwrite(t,r,a,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),a!==0&&(this.foreground=a),n!==0&&(this.background=n)}},Zoe=class k5{constructor(t,r=[],a={}){this._mainRule=t,this._children=a,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let a=0,n=0;for(;t.parentScopes[a]===">"&&a++,r.parentScopes[n]===">"&&n++,!(a>=t.parentScopes.length||n>=r.parentScopes.length);){let o=r.parentScopes[n].length-t.parentScopes[a].length;if(o!==0)return o;a++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let a=t.indexOf("."),n,o;if(a===-1?(n=t,o=""):(n=t.substring(0,a),o=t.substring(a+1)),this._children.hasOwnProperty(n))return this._children[n].match(o)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(k5._cmpBySpecificity),r}insert(t,r,a,n,o,i){if(r===""){this._doInsertHere(t,a,n,o,i);return}let s=r.indexOf("."),u,c;s===-1?(u=r,c=""):(u=r.substring(0,s),c=r.substring(s+1));let f;this._children.hasOwnProperty(u)?f=this._children[u]:(f=new k5(this._mainRule.clone(),_5.cloneArr(this._rulesWithParentScopes)),this._children[u]=f),f.insert(t+1,c,a,n,o,i)}_doInsertHere(t,r,a,n,o){if(r===null){this._mainRule.acceptOverwrite(t,a,n,o);return}for(let i=0,s=this._rulesWithParentScopes.length;i<s;i++){let u=this._rulesWithParentScopes[i];if(WO(u.parentScopes,r)===0){u.acceptOverwrite(t,a,n,o);return}}a===-1&&(a=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new _5(t,r,a,n,o))}},Qs=class Fn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=Fn.getLanguageId(t),a=Fn.getTokenType(t),n=Fn.getFontStyle(t),o=Fn.getForeground(t),i=Fn.getBackground(t);console.log({languageId:r,tokenType:a,fontStyle:n,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,a,n,o,i,s){let u=Fn.getLanguageId(t),c=Fn.getTokenType(t),f=Fn.containsBalancedBrackets(t)?1:0,p=Fn.getFontStyle(t),h=Fn.getForeground(t),g=Fn.getBackground(t);return r!==0&&(u=r),a!==8&&(c=a),n!==null&&(f=n?1:0),o!==-1&&(p=o),i!==0&&(h=i),s!==0&&(g=s),(u<<0|c<<8|f<<10|p<<11|h<<15|g<<24)>>>0}};function Cy(e,t){let r=[],a=Voe(e),n=a.next();for(;n!==null;){let u=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":u=1;break;case"L":u=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=a.next()}let c=i();if(r.push({matcher:c,priority:u}),n!==",")break;n=a.next()}return r;function o(){if(n==="-"){n=a.next();let u=o();return c=>!!u&&!u(c)}if(n==="("){n=a.next();let u=s();return n===")"&&(n=a.next()),u}if(OO(n)){let u=[];do u.push(n),n=a.next();while(OO(n));return c=>t(u,c)}return null}function i(){let u=[],c=o();for(;c;)u.push(c),c=o();return f=>u.every(p=>p(f))}function s(){let u=[],c=i();for(;c&&(u.push(c),n==="|"||n===",");){do n=a.next();while(n==="|"||n===",");c=i()}return f=>u.some(p=>p(f))}}function OO(e){return!!e&&!!e.match(/[\w\.:]+/)}function Voe(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let a=r[0];return r=t.exec(e),a}}}function QO(e){typeof e.dispose=="function"&&e.dispose()}var Tp=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},qoe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Goe=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))}},Hoe=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Tp(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Goe;for(let r of e)Woe(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof Tp){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 Woe(e,t,r,a){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let o=r.lookup(t);e instanceof Tp?Iy({baseGrammar:o,selfGrammar:n},a):S5(e.ruleName,{baseGrammar:o,selfGrammar:n,repository:n.repository},a);let i=r.injections(e.scopeName);if(i)for(let s of i)a.add(new Tp(s))}function S5(e,t,r){if(t.repository&&t.repository[e]){let a=t.repository[e];Ty([a],t,r)}}function Iy(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ty(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ty(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ty(e,t,r){for(let a of e){if(r.visitedRule.has(a))continue;r.visitedRule.add(a);let n=a.repository?qO({},t.repository,a.repository):t.repository;Array.isArray(a.patterns)&&Ty(a.patterns,{...t,repository:n},r);let o=a.include;if(!o)continue;let i=eU(o);switch(i.kind){case 0:Iy({...t,selfGrammar:t.baseGrammar},r);break;case 1:Iy(t,r);break;case 2:S5(i.ruleName,{...t,repository:n},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 u={baseGrammar:t.baseGrammar,selfGrammar:s,repository:n};i.kind===4?S5(i.ruleName,u,r):Iy(u,r)}else i.kind===4?r.add(new qoe(i.scopeName,i.ruleName)):r.add(new Tp(i.scopeName));break}}}var Joe=class{kind=0},Koe=class{kind=1},Xoe=class{constructor(e){this.ruleName=e}kind=2},Yoe=class{constructor(e){this.scopeName=e}kind=3},Qoe=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function eU(e){if(e==="$base")return new Joe;if(e==="$self")return new Koe;let t=e.indexOf("#");if(t===-1)return new Yoe(e);if(t===0)return new Xoe(e.substring(1));{let r=e.substring(0,t),a=e.substring(t+1);return new Qoe(r,a)}}var eie=/\\(\d+)/,UO=/\\(\d+)/g;var tie=-1,tU=-2;var Lp=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,a){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=ky.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=ky.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${GO(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:ky.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ky.replaceCaptures(this._contentName,e,t)}},rie=class extends Lp{retokenizeCapturedWithRuleId;constructor(e,t,r,a,n){super(e,t,r,a),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,a){throw new Error("Not supported!")}},nie=class extends Lp{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,a,n){super(e,t,r,null),this._match=new Pp(a,this.id),this.captures=n,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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $p,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},BO=class extends Lp{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,a,n){super(e,t,r,a),this.patterns=n.patterns,this.hasMissingPatterns=n.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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new $p,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},I5=class extends Lp{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,a,n,o,i,s,u,c){super(e,t,r,a),this._begin=new Pp(n,this.id),this.beginCaptures=o,this._end=new Pp(i||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.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,a){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,a)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $p;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}},Py=class extends Lp{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,a,n,o,i,s,u){super(e,t,r,a),this._begin=new Pp(n,this.id),this.beginCaptures=o,this.whileCaptures=s,this._while=ne
vendor: 1,564 bytes, line 106
106w Pp(i,tU),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.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,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new $p;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,a){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,a)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new $p,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}
vendor: 8,918 bytes, lines 106-107
106},rU=class Lr{static createCaptureRule(t,r,a,n,o){return t.registerRule(i=>new rie(r,i,a,n,o))}static getCompiledRuleId(t,r,a){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new nie(t.$vscodeTextmateLocation,t.id,t.name,t.match,Lr._compileCaptures(t.captures,r,a));if(typeof t.begin>"u"){t.repository&&(a=qO({},a,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new BO(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Lr._compilePatterns(o,r,a))}return t.while?new Py(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Lr._compileCaptures(t.beginCaptures||t.captures,r,a),t.while,Lr._compileCaptures(t.whileCaptures||t.captures,r,a),Lr._compilePatterns(t.patterns,r,a)):new I5(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Lr._compileCaptures(t.beginCaptures||t.captures,r,a),t.end,Lr._compileCaptures(t.endCaptures||t.captures,r,a),t.applyEndPatternLast,Lr._compilePatterns(t.patterns,r,a))}),t.id}static _compileCaptures(t,r,a){let n=[];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++)n[i]=null;for(let i in t){if(i==="$vscodeTextmateLocation")continue;let s=parseInt(i,10),u=0;t[i].patterns&&(u=Lr.getCompiledRuleId(t[i],r,a)),n[s]=Lr.createCaptureRule(r,t[i].$vscodeTextmateLocation,t[i].name,t[i].contentName,u)}}return n}static _compilePatterns(t,r,a){let n=[];if(t)for(let o=0,i=t.length;o<i;o++){let s=t[o],u=-1;if(s.include){let c=eU(s.include);switch(c.kind){case 0:case 1:u=Lr.getCompiledRuleId(a[s.include],r,a);break;case 2:let f=a[c.ruleName];f&&(u=Lr.getCompiledRuleId(f,r,a));break;case 3:case 4:let p=c.scopeName,h=c.kind===4?c.ruleName:null,g=r.getExternalGrammar(p,a);if(g)if(h){let x=g.repository[h];x&&(u=Lr.getCompiledRuleId(x,r,g.repository))}else u=Lr.getCompiledRuleId(g.repository.$self,r,g.repository);break}}else u=Lr.getCompiledRuleId(s,r,a);if(u!==-1){let c=r.getRule(u),f=!1;if((c instanceof BO||c instanceof I5||c instanceof Py)&&c.hasMissingPatterns&&c.patterns.length===0&&(f=!0),f)continue;n.push(u)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},Pp=class nU{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let a=t.length,n=0,o=[],i=!1;for(let s=0;s<a;s++)if(t.charAt(s)==="\\"&&s+1<a){let c=t.charAt(s+1);c==="z"?(o.push(t.substring(n,s)),o.push("$(?!\\n)(?<!\\n)"),n=s+2):(c==="A"||c==="G")&&(i=!0),s++}this.hasAnchor=i,n===0?this.source=t:(o.push(t.substring(n,a)),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=eie.test(this.source):this.hasBackReferences=!1}clone(){return new nU(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 a=r.map(n=>t.substring(n.start,n.end));return UO.lastIndex=0,this.source.replace(UO,(n,o)=>JO(a[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=[],a=[],n=[],o,i,s,u;for(o=0,i=this.source.length;o<i;o++)s=this.source.charAt(o),t[o]=s,r[o]=s,a[o]=s,n[o]=s,s==="\\"&&o+1<i&&(u=this.source.charAt(o+1),u==="A"?(t[o+1]="\uFFFF",r[o+1]="\uFFFF",a[o+1]="A",n[o+1]="A"):u==="G"?(t[o+1]="\uFFFF",r[o+1]="G",a[o+1]="\uFFFF",n[o+1]="G"):(t[o+1]=u,r[o+1]=u,a[o+1]=u,n[o+1]=u),o++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:a.join(""),A1_G1:n.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}},$p=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 FO(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 a=this._items.map(n=>n.resolveAnchors(t,r));return new FO(e,a,this._items.map(n=>n.ruleId))}},FO=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(` 107`)}findNextMatchSync(e,t,r){let a=this.scanner.findNextMatchSync(e,t,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},w5=class{constructor(e,t){this.languageId=e,this.tokenType=t}},aie=class C5{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new w5(t,8),this._embeddedLanguagesMatcher=new oie(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?C5._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new w5(0,0);_getBasicScopeAttributes=new KO(t=>{let r=this._scopeToLanguage(t),a=this._toStandardTokenType(t);return new w5(r,a)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(C5.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/},oie=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,a])=>JO(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])}},MMe={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},aU=!1,jO=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function oU(e,t,r,a,n,o,i,s){let u=t.content.length,c=!1,f=-1;if(i){let g=iie(e,t,r,a,n,o);n=g.stack,a=g.linePos,r=g.isFirstLine,f=g.anchorPosition}let p=Date.now();for(;!c;){if(s!==0&&Date.now()-p>s)return new jO(n,!0);h()}return new jO(n,!1);function h(){let g=sie(e,t,r,a,n,f);if(!g){o.produce(n,u),c=!0;return}let x=g.captureIndices,I=g.matchedRuleId,S=x&&x.length>0?x[0].end>a:!1;if(I===tie){let $=n.getRule(e);o.produce(n,x[0].start),n=n.withContentNameScopesList(n.nameScopesList),Sp(e,t,r,n,o,$.endCaptures,x),o.produce(n,x[0].end);let T=n;if(n=n.parent,f=T.getAnchorPos(),!S&&T.getEnterPos()===a){n=T,o.produce(n,u),c=!0;return}}else{let $=e.getRule(I);o.produce(n,x[0].start);let T=n,k=$.getName(t.content,x),M=n.contentNameScopesList.pushAttributed(k,e);if(n=n.push(I,a,f,x[0].end===u,null,M,M),$ instanceof I5){let E=$;Sp(e,t,r,n,o,E.beginCaptures,x),o.produce(n,x[0].end),f=x[0].end;let z=E.getContentName(t.content,x),j=M.pushAttributed(z,e);if(n=n.withContentNameScopesList(j),E.endHasBackReferences&&(n=n.withEndRule(E.getEndWithResolvedBackReferences(t.content,x))),!S&&T.hasSameRuleAs(n)){n=n.pop(),o.produce(n,u),c=!0;return}}else if($ instanceof Py){let E=$;Sp(e,t,r,n,o,E.beginCaptures,x),o.produce(n,x[0].end),f=x[0].end;let z=E.getContentName(t.content,x),j=M.pushAttributed(z,e);if(n=n.withContentNameScopesList(j),E.whileHasBackReferences&&(n=n.withEndRule(E.getWhileWithRes
vendor: 2,487 bytes, line 107
107olvedBackReferences(t.content,x))),!S&&T.hasSameRuleAs(n)){n=n.pop(),o.produce(n,u),c=!0;return}}else if(Sp(e,t,r,n,o,$.captures,x),o.produce(n,x[0].end),n=n.pop(),!S){n=n.safePop(),o.produce(n,u),c=!0;return}}x[0].end>a&&(a=x[0].end,r=!1)}}function iie(e,t,r,a,n,o){let i=n.beginRuleCapturedEOL?0:-1,s=[];for(let u=n;u;u=u.pop()){let c=u.getRule(e);c instanceof Py&&s.push({rule:c,stack:u})}for(let u=s.pop();u;u=s.pop()){let{ruleScanner:c,findOptions:f}=cie(u.rule,e,u.stack.endRule,r,a===i),p=c.findNextMatchSync(t,a,f);if(p){if(p.ruleId!==tU){n=u.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(u.stack,p.captureIndices[0].start),Sp(e,t,r,u.stack,o,u.rule.whileCaptures,p.captureIndices),o.produce(u.stack,p.captureIndices[0].end),i=p.captureIndices[0].end,p.captureIndices[0].end>a&&(a=p.captureIndices[0].end,r=!1))}else{n=u.stack.pop();break}}return{stack:n,linePos:a,anchorPosition:i,isFirstLine:r}}function sie(e,t,r,a,n,o){let i=lie(e,t,r,a,n,o),s=e.getInjections();if(s.length===0)return i;let u=uie(s,e,t,r,a,n,o);if(!u)return i;if(!i)return u;let c=i.captureIndices[0].start,f=u.captureIndices[0].start;return f<c||u.priorityMatch&&f===c?u:i}function lie(e,t,r,a,n,o){let i=n.getRule(e),{ruleScanner:s,findOptions:u}=iU(i,e,n.endRule,r,a===o),c=s.findNextMatchSync(t,a,u);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function uie(e,t,r,a,n,o,i){let s=Number.MAX_VALUE,u=null,c,f=0,p=o.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){let x=e[h];if(!x.matcher(p))continue;let I=t.getRule(x.ruleId),{ruleScanner:S,findOptions:$}=iU(I,t,null,a,n===i),T=S.findNextMatchSync(r,n,$);if(!T)continue;let k=T.captureIndices[0].start;if(!(k>=s)&&(s=k,u=T.captureIndices,c=T.ruleId,f=x.priority,s===n))break}return u?{priorityMatch:f===-1,captureIndices:u,matchedRuleId:c}:null}function iU(e,t,r,a,n){if(aU){let i=e.compile(t,r),s=sU(a,n);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileAG(t,r,a,n),findOptions:0}}function cie(e,t,r,a,n){if(aU){let i=e.compileWhile(t,r),s=sU(a,n);return{ruleScanner:i,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,a,n),findOptions:0}}function sU(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function Sp(e,t,r,a,n,o,i){if(o.length===0)return;let s=t.content,u=Math.min(o.length,i.length),c=[],f=i[0].end;for(let p=0;p<u;p++){let h=o[p];if(h===null)continue;let g=i[p];if(g.length===0)continue;if(g.start>f)break;for(;c.length>0&&c[c.length-1].endPos<=g.start;
vendor: 9,489 bytes, lines 107-108
107)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?n.produceFromScopes(c[c.length-1].scopes,g.start):n.produce(a,g.start),h.retokenizeCapturedWithRuleId){let I=h.getName(s,i),S=a.contentNameScopesList.pushAttributed(I,e),$=h.getContentName(s,i),T=S.pushAttributed($,e),k=a.push(h.retokenizeCapturedWithRuleId,g.start,-1,!1,null,S,T),M=e.createOnigString(s.substring(0,g.end));oU(e,M,r&&g.start===0,g.start,k,n,!1,0),QO(M);continue}let x=h.getName(s,i);if(x!==null){let S=(c.length>0?c[c.length-1].scopes:a.contentNameScopesList).pushAttributed(x,e);c.push(new die(S,g.end))}}for(;c.length>0;)n.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var die=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function fie(e,t,r,a,n,o,i,s){return new mie(e,t,r,a,n,o,i,s)}function ZO(e,t,r,a,n){let o=Cy(t,$y),i=rU.getCompiledRuleId(r,a,n.repository);for(let s of o)e.push({debugSelector:t,matcher:s.matcher,ruleId:i,grammar:n,priority:s.priority})}function $y(e,t){if(t.length<e.length)return!1;let r=0;return e.every(a=>{for(let n=r;n<t.length;n++)if(pie(t[n],a))return r=n+1,!0;return!1})}function pie(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 mie=class{constructor(e,t,r,a,n,o,i,s){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=s,this._basicScopeAttributesProvider=new aie(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=i,this._grammar=VO(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let u of Object.keys(n)){let c=Cy(u,$y);for(let f of c)this._tokenTypeMatchers.push({matcher:f.matcher,type:n[u]})}}_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:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},t=[],r=this._rootScopeName,a=e.lookup(r);if(a){let n=a.injections;if(n)for(let i in n)ZO(t,i,n[i],this,a);let o=this._grammarRepository.injections(r);o&&o.forEach(i=>{let s=this.getExternalGrammar(i);if(s){let u=s.injectionSelector;u&&ZO(t,u,s,this,s)}})}return t.sort((n,o)=>n.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]=VO(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let a=this._tokenize(e,t,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,t,r=0){let a=this._tokenize(e,t,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,t,r,a){this._rootId===-1&&(this._rootId=rU.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===T5.NULL){n=!0;let c=this._basicScopeAttributesProvider.getDefaultAttributes(),f=this.themeProvider.getDefaults(),p=Qs.set(0,c.languageId,c.tokenType,null,f.fontStyle,f.foregroundId,f.backgroundId),h=this.getRule(this._rootId).getName(null,null),g;h?g=Ip.createRootAndLookUpScopeName(h,p,this):g=Ip.createRoot("unknown",p),t=new T5(null,this._rootId,-1,-1,!1,null,g,g)}else n=!1,t.reset();e=e+` 108`;let o=this.createOnigString(e),i=o.content.length,s=new gie(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=oU(this,o,n,0,t,s,!0,a);return QO(o),{lineLength:i,lineTokens:s,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function VO(e,t){return e=Moe(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 Ip=class Ba{constructor(t,r,a){this.parent=t,this.scopePath=r,this.tokenAttributes=a}static fromExtension(t,r){let a=t,n=t?.scopePath??null;for(let o of r)n=b5.push(n,o.scopeNames),a=new Ba(a,n,o.encodedTokenAttributes);return a}static createRoot(t,r){return new Ba(null,new b5(null,t),r)}static createRootAndLookUpScopeName(t,r,a){let n=a.getMetadataForScope(t),o=new b5(null,t),i=a.themeProvider.themeMatch(o),s=Ba.mergeAttributes(r,n,i);return new Ba(null,o,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Ba.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,a){let n=-1,o=0,i=0;return a!==null&&(n=a.fontStyle,o=a.foregroundId,i=a.backgroundId),Qs.set(t,r.languageId,r.tokenType,null,n,o,i)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Ba._pushAttributed(this,t,r);let a=t.split(/ /g),n=this;for(let o of a)n=Ba._pushAttributed(n,o,r);return n}static _pushAttributed(t,r,a){let n=a.getMetadataForScope(r),o=t.scopePath.push(r),i=a.themeProvider.themeMatch(o),s=Ba.mergeAttributes(t.tokenAttributes,n,i);return new Ba(t,o,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],a=this;for(;a&&a!==t;)r.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===t?r.reverse():void 0}},T5=class Ys{constructor(t,r,a,n,o,i,s,u){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=o,this.endRule=i,this.nameScopesList=s,this.contentNameScopesList=u,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new Ys(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ys._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?Ip.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(){Ys._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,a,n,o,i,s){return new Ys(this,t,r,a,n,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 Ys(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 a=Ip.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new Ys(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,a,Ip.fromExtension(a,r.contentNameScopesList))}},hie=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Cy(r,$y).map(a=>a.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>Cy(r,$y).map(a=>a.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}},gie=class{constructor(e,t,r,a){this.balancedBracketSelectors=a,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 a=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
vendor: 18,483 bytes, line 108
1080||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let o=e?.getScopeNames()??[];for(let i of this._tokenTypeOverrides)i.matcher(o)&&(a=Qs.set(a,0,i.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(o))}if(n&&(a=Qs.set(a,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),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 a=0,n=this._binaryTokens.length;a<n;a++)r[a]=this._binaryTokens[a];return r}},vie=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,a,n){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,fie(e,o,t,r,a,n,this,this._onigLib))}return this._grammars.get(e)}},lU=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new vie(Cp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Cp.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 hie(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,a,n){let o=new Hoe(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(i=>this._loadSingleGrammar(i.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,a,n)}_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,a=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,a)}_grammarForScopeName(e,t=0,r=null,a=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,a,n)}},Ly=T5.NULL;function Ep(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(let[n,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?r[n]=o:n===a&&Object.assign(r,o);return r}function Ao(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function pU(e){return Array.isArray(e)?e:[e]}async function $5(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Mp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function mU(e){return e==="ansi"||Mp(e)}function Rp(e){return e==="none"}function hU(e){return Rp(e)}function sc(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),a=0,n=[];for(let o=0;o<r.length;o+=2){let i=t?r[o]+(r[o+1]||""):r[o];n.push([i,a]),a+=r[o].length,a+=r[o+1]?.length||0}return n}var uU={light:"#333333",dark:"#bbbbbb"},cU={light:"#fffffe",dark:"#1e1e1e"},dU="__shiki_resolved";function Ay(e){if(e?.[dU])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:a}=t;if(!r||!a){let s=t.settings?t.settings.find(u=>!u.name&&!u.scope):void 0;s?.settings?.foreground&&(a=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!a&&t?.colors?.["editor.foreground"]&&(a=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),a||(a=t.type==="light"?uU.light:uU.dark),r||(r=t.type==="light"?cU.light:cU.dark),t.fg=a,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 n=0,o=new Map;function i(s){if(o.has(s))return o.get(s);n+=1;let u=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${u}`]?i(s):(o.set(s,u),u)}t.settings=t.settings.map(s=>{let u=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),c=s.settings?.background&&!s.settings.background.startsWith("#");if(!u&&!c)return s;let f={...s,settings:{...s.settings}};if(u){let p=i(s.settings.foreground);t.colorReplacements[p]=s.settings.foreground,f.settings.foreground=p}if(c){let p=i(s.settings.background);t.colorReplacements[p]=s.settings.background,f.settings.background=p}return f});for(let s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){let u=i(t.colors[s]);t.colorReplacements[u]=t.colors[s],t.colors[s]=u}return Object.defineProperty(t,dU,{enumerable:!1,writable:!1,value:!0}),t}async function gU(e){return Array.from(new Set((await Promise.all(e.filter(t=>!mU(t)).map(async t=>await $5(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function vU(e){return(await Promise.all(e.map(async t=>hU(t)?null:Ay(await $5(t))))).filter(t=>!!t)}function yU(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 Ct(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var yie=class extends lU{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,a={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=a,this._themes.map(n=>this.loadTheme(n)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ay(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=Cp.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=yU(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(n=>n.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let a=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),e.aliases&&e.aliases.forEach(n=>{this._alias[n]=e.name}),this._loadedLanguagesCache=null,t.size)for(let n of t)this._resolvedGrammars.delete(n.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(n.scopeName),this._syncRegistry?._grammars?.delete(n.scopeName),this.loadLanguage(this._langMap.get(n.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let a of e)this.resolveEmbeddedLanguages(a);let t=Array.from(this._langGraph.entries()),r=t.filter(([a,n])=>!n);if(r.length){let a=t.filter(([n,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(i=>r.map(([s])=>s).includes(i)):!1).filter(n=>!r.includes(n));throw new Ct(`Missing languages ${r.map(([n])=>`\`${n}\``).join(", ")}, required by ${a.map(([n])=>`\`${n}\``).join(", ")}`)}for(let[a,n]of t)this._resolver.addLanguage(n);for(let[a,n]of t)this.loadLanguage(n)}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))}},xie=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 a=1;a<=t.length;a++){let n=t.slice(0,a).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},Ap=0;function L5(e){Ap+=1,e.warnings!==!1&&Ap>=10&&Ap%10===0&&console.warn(`[Shiki] ${Ap} 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 Ct("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(Ay),n=new yie(new xie(e.engine,r),a,r,e.langAlias),o;function i(T){return yU(T,e.langAlias)}function s(T){S();let k=n.getGrammar(typeof T=="string"?T:T.name);if(!k)throw new Ct(`Language \`${T}\` not found, you may need to load it first`);return k}function u(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};S();let k=n.getTheme(T);if(!k)throw new Ct(`Theme \`${T}\` not found, you may need to load it first`);return k}function c(T){S();let k=u(T);return o!==T&&(n.setTheme(k),o=T),{theme:k,colorMap:n.getColorMap()}}function f(){return S(),n.getLoadedThemes()}function p(){return S(),n.getLoadedLanguages()}function h(...T){S(),n.loadLanguages(T.flat(1))}async function g(...T){return h(await gU(T))}function x(...T){S();for(let k of T.flat(1))n.loadTheme(k)}async function I(...T){return S(),x(await vU(T))}function S(){if(t)throw new Ct("Shiki instance has been disposed")}function $(){t||(t=!0,n.dispose(),Ap-=1)}return{setTheme:c,getTheme:u,getLanguage:s,getLoadedThemes:f,getLoadedLanguages:p,resolveLangAlias:i,loadLanguage:g,loadLanguageSync:h,loadTheme:I,loadThemeSync:x,dispose:$,[Symbol.dispose]:$}}async function A5(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,a]=await Promise.all([vU(e.themes||[]),gU(e.langs||[]),e.engine]);return L5({...e,themes:t,langs:r,engine:a})}var xU=new WeakMap;function zp(e,t){xU.set(e,t)}function lc(e){return xU.get(e)}var Ey=class bU{_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 bU(Object.fromEntries(pU(r).map(a=>[a,Ly])),t)}constructor(...t){if(t.length===2){let[r,a]=t;this.lang=a,this._stacks=r}else{let[r,a,n]=t;this.lang=a,this._stacks={[n]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return bie(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function bie(e){let t=[],r=new Set;function a(n){if(r.has(n))return;r.add(n);let o=n?.nameScopesList?.scopeName;o&&t.push(o),n.parent&&a(n.parent)}return a(e),t}function wie(e,t){if(!(e instanceof Ey))throw new Ct("Invalid grammar state");return e.getInternalStack(t)}function E5(e,t,r={}){let{theme:a=e.getLoadedThemes()[0]}=r;if(Mp(e.resolveLangAlias(r.lang||"text"))||Rp(a))return sc(t).map(s=>[{content:s[0],offset:s[1]}]);let{theme:n,colorMap:o}=e.setTheme(a),i=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==i.name)throw new Ct(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${i.name}"`);if(!r.grammarState.themes.includes(n.name))throw new Ct(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return _U(t,i,n,o,r)}function wU(...e){if(e.length===2)return lc(e[1]);let[t,r,a={}]=e,{lang:n="text",theme:o=t.getLoadedThemes()[0]}=a;if(Mp(n)||Rp(o))throw new Ct("Plain language does not have grammar state");if(n==="ansi")throw new Ct("ANSI language does not have grammar state");let{theme:i,colorMap:s}=t.setTheme(o),u=t.getLanguage(n);return new Ey(M5(r,u,i,s,a).stateStack,u.name,i.name)}function _U(e,t,r,a,n){let o=M5(e,t,r,a,n),i=new Ey(o.stateStack,t.name,r.name);return zp(o.tokens,i),o.tokens}function M5(e,t,r,a,n){let o=Ep(r,n),{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:s=500}=n,u=sc(e),c=n.grammarState?wie(n.grammarState,r.name)??Ly:n.grammarContextCode!=null?M5(n.grammarContextCode,t,r,a,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ly,f=[],p=[];for(let h=0,g=u.length;h<g;h++){let[x,I]=u[h];if(x===""){f=[],p.push([]);continue}if(i>0&&x.length>=i){f=[],p.push([{content:x,offset:I,color:"",fontStyle:0}]);continue}let S,$,T;n.includeExplanation&&(S=t.tokenizeLine(x,c,s),$=S.tokens,T=0);let k=t.tokenizeLine2(x,c,s),M=k.tokens.length/2;for(let E=0;E<M;E++){let z=k.tokens[2*E],j=E+1<M?k.tokens[2*E+2]:x.length;if(z===j)continue;let q=k.tokens[2*E+1],Z=Ao(a[Qs.getForeground(q)],o),W=Qs.getFontStyle(q),de={content:x.substring(z,j),offset:I+z,color:Z,fontStyle:W};if(n.includeExplanation){let Q=[];if(n.includeExplanation!=="scopeName")for(let Ce of r.settings){let Fe;switch(typeof Ce.scope){case"string":Fe=Ce.scope.split(/,/).map(ve=>ve.trim());break;case"object":Fe=Ce.scope;break;default:continue}Q.push({settings:Ce,selectors:Fe.map(ve=>ve.split(/ /))})}de.explanation=[];let ht=0;for(;z+ht<j;){let Ce=$[T],Fe=x.substring(Ce.startIndex,Ce.endIndex);ht+=Fe.length,de.explanation.push({content:Fe,scopes:n.includeExplanation==="scopeName"?_ie(Ce.scopes):kie(Q,Ce.scopes)}),T+=1}}f.push(de)}p.push(f),f=[],c=k.ruleStack}return{tokens:p,stateStack:c}}function _ie(e){return e.map(t=>({scopeName:t}))}function kie(e,t){let r=[];for(let a=0,n=t.length;a<n;a++){let o=t[a];r[a]={scopeName:o,themeMatches:Iie(e,o,t.slice(0,a))}}return r}function fU(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Sie(e,t,r){if(!fU(e[e.length-1],t))return!1;let a=e.length-2,n=r.length-1;for(;a>=0&&n>=0;)fU(e[a],r[n])&&(a-=1),n-=1;return a===-1}function Iie(e,t,r){let a=[];for(let{selectors:n,settings:o}of e)for(let i of n)if(Sie(i,t,r)){a.push(o);break}return a}function My(e,t,r,a=E5){let n=Object.entries(r.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),o=n.map(c=>{let f=a(e,t,{...r,theme:c.theme});return{tokens:f,state:lc(f),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),i=Cie(...o.map(c=>c.tokens)),s=i[0].map((c,f)=>c.map((p,h)=>{let g={content:p.content,variants:{},offset:p.offset};return"includeExplanation"in r&&r.includeExplanation&&(g.explanation=p.explanation),i.forEach((x,I)=>{let{content:S,explanation:$,offset:T,...k}=x[f][h];g.variants[n[I].color]=k}),g})),u=o[0].state?new Ey(Object.fromEntries(o.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),o[0].state.lang):void 0;return u&&zp(s,u),s}function Cie(...e){let t=e.map(()=>[]),r=e.length;for(let a=0;a<e[0].length;a++){let n=e.map(u=>u[a]),o=t.map(()=>[]);t.forEach((u,c)=>u.push(o[c]));let i=n.map(()=>0),s=n.map(u=>u[0]);for(;s.every(u=>u);){let u=Math.min(...s.map(c=>c.content.length));for(let c=0;c<r;c++){let f=s[c];f.content.length===u?(o[c].push(f),i[c]+=1,s[c]=n[c][i[c]]):(o[c].push({...f,content:f.content.slice(0,u)}),s[c]={...f,content:f.content.slice(u),offset:f.offset+u})}}}return t}var Tie=/["&'<>`]/g,Pie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$ie=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Lie=/[|\\{}()[\]^$+*?.]/g,kU=new WeakMap;function SU(e,t){if(e=e.replace(t.subset?Aie(t.subset):Tie,a),t.subset||t.escapeOnly)return e;return e.replace(Pie,r).replace($ie,a);function r(n,o,i){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,i.charCodeAt(o+2),t)}function a(n,o,i){return t.format(n.charCodeAt(0),i.charCodeAt(o+1),t)}}function Aie(e){let t=kU.get(e);return t||(t=Eie(e),kU.set(e,t)),t}function Eie(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Lie,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Mie=/[\dA-Fa-f]/;function IU(e,t,r){let a="&#x"+e.toString(16).toUpperCase();return r&&t&&!Mie.test(String.fromCharCode(t))?a:a+";"}var Rie=/\d/;function CU(e,t,r){let a="&#"+String(e);return r&&t&&!Rie.test(String.fromCharCode(t))?a:a+";"}var TU=["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","oslas
108h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"];var Ry={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 PU=["cent","copy","divide","gt","lt","not","para","times"];var $U={}.hasOwnProperty,R5={},zy;for(zy in Ry)$U.call(Ry,zy)&&(R5[Ry[zy]]=zy);var zie=/[^\dA-Za-z]/;function LU(e,t,r,a){let n=String.fromCharCode(e);if($U.call(R5,n)){let o=R5[n],i="&"+o;return r&&TU.includes(o)&&!PU.includes(o)&&(!a||t&&t!==61&&zie.test(String.fromCharCode(t)))?i:i+";"}return""}function AU(e,t,r){let a=IU(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=LU(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let o=CU(e,t,r.omitOptionalSemicolons);o.length<a.length&&(a=o)}return n&&(!r.useShortestReferences||n.length<a.length)?n:a}function Eo(e,t){return SU(e,Object.assign({format:AU},t))}var Die=/^>|^->|<!--|-->|--!>|<!-$/g,Nie=[">"],Oie=["<",">"];function EU(e,t,r,a){return a.settings.bogusComments?"<?"+Eo(e.value,Object.assign({},a.settings.characterReferences,{subset:Nie}))+">":"<!--"+e.value.replace(Die,n)+"-->";function n(o){return Eo(o,Object.assign({},a.settings.characterReferences,{subset:Oie}))}}function MU(e,t,r,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}var Qt=RU(1),z5=RU(-1),Uie=[];function RU(e){return t;function t(r,a,n){let o=r?r.children:Uie,i=(a||0)+e,s=o[i];if(!n)for(;s&&_l(s);)i+=e,s=o[i];return s}}var Bie={}.hasOwnProperty;function Dy(e){return t;function t(r,a,n){return Bie.call(e,r.tagName)&&e[r.tagName](r,a,n)}}var Dp=Dy({body:jie,caption:D5,colgroup:D5,dd:Gie,dt:qie,head:D5,html:Fie,li:Vie,optgroup:
vendor: 4,423 bytes, lines 108-116
108Hie,option:Wie,p:Zie,rp:zU,rt:zU,tbody:Kie,td:DU,tfoot:Xie,th:DU,thead:Jie,tr:Yie});function D5(e,t,r){let a=Qt(r,t,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&_l(a.value.charAt(0)))}function Fie(e,t,r){let a=Qt(r,t);return!a||a.type!=="comment"}function jie(e,t,r){let a=Qt(r,t);return!a||a.type!=="comment"}function Zie(e,t,r){let a=Qt(r,t);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.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 Vie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&a.tagName==="li"}function qie(e,t,r){let a=Qt(r,t);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function Gie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function zU(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function Hie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&a.tagName==="optgroup"}function Wie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function Jie(e,t,r){let a=Qt(r,t);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function Kie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function Xie(e,t,r){return!Qt(r,t)}function Yie(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&a.tagName==="tr"}function DU(e,t,r){let a=Qt(r,t);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}var NU=Dy({body:tse,colgroup:rse,head:ese,html:Qie,tbody:nse});function Qie(e){let t=Qt(e,-1);return!t||t.type!=="comment"}function ese(e){let t=new Set;for(let a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(t.has(a.tagName))return!1;t.add(a.tagName)}let r=e.children[0];return!r||r.type==="element"}function tse(e){let t=Qt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&_l(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function rse(e,t,r){let a=z5(r,t),n=Qt(e,-1,!0);return r&&a&&a.type==="element"&&a.tagName==="colgroup"&&Dp(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function nse(e,t,r){let a=z5(r,t),n=Qt(e,-1);return r&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&Dp(a,r.children.indexOf(a),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var Ny={name:[[` 109\f\r &/=>`.split(""),` 110\f\r "&'/=>\``.split("")],[`\0 111\f\r "&'/<=>`.split(""),`\0 112\f\r "&'/<=>\``.split("")]],unquoted:[[` 113\f\r &>`.split(""),`\0 114\f\r "&'<=>\``.split("")],[`\0 115\f\r "&'<=>\``.split(""),`\0 116\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function OU(e,t,r,a){let n=a.schema,o=n.space==="svg"?!1:a.settings.omitOptionalTags,i=n.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase()),s=[],u;n.space==="html"&&e.tagName==="svg"&&(a.schema=Mm);let c=ase(a,e.properties),f=a.all(n.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=n,f&&(i=!1),(c||!o||!NU(e,t,r))&&(s.push("<",e.tagName,c?" "+c:""),i&&(n.space==="svg"||a.settings.closeSelfClosing)&&(u=c.charAt(c.length-1),(!a.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(f),!i&&(!o||!Dp(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function ase(e,t){let r=[],a=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let o=ose(e,n,t[n]);o&&r.push(o)}}for(;++a<r.length;){let o=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;
vendor: 19,141 bytes, lines 116-117
116a!==r.length-1&&o!=='"'&&o!=="'"&&(r[a]+=" ")}return r.join("")}function ose(e,t,r){let a=LT(e.schema,t),n=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1,i=e.quote,s;if(a.overloadedBoolean&&(r===a.attribute||r==="")?r=!0:(a.boolean||a.overloadedBoolean)&&(typeof r!="string"||r===a.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let u=Eo(a.attribute,Object.assign({},e.settings.characterReferences,{subset:Ny.name[n][o]}));return r===!0||(r=Array.isArray(r)?(a.commaSeparated?MT:RT)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(s=Eo(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ny.unquoted[n][o]}))),s!==r&&(e.settings.quoteSmart&&bb(r,i)>bb(r,e.alternative)&&(i=e.alternative),s=i+Eo(r,Object.assign({},e.settings.characterReferences,{subset:(i==="'"?Ny.single:Ny.double)[n][o],attribute:!0}))+i),u+(s&&"="+s))}var ise=["<","&"];function Oy(e,t,r,a){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Eo(e.value,Object.assign({},a.settings.characterReferences,{subset:ise}))}function UU(e,t,r,a){return a.settings.allowDangerousHtml?e.value:Oy(e,t,r,a)}function BU(e,t,r,a){return a.all(e)}var FU=ET("type",{invalid:sse,unknown:lse,handlers:{comment:EU,doctype:MU,element:OU,raw:UU,root:BU,text:Oy}});function sse(e){throw new Error("Expected node, not `"+e+"`")}function lse(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var use={},cse={},dse=[];function N5(e,t){let r=t||use,a=r.quote||'"',n=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:fse,all:pse,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||$T,characterReferences:r.characterReferences||cse,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Mm:AT,quote:a,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function fse(e,t,r){return FU(e,t,r,this)}function pse(e){let t=[],r=e&&e.children||dse,a=-1;for(;++a<r.length;)t[a]=this.one(r[a],a,e);return t.join("")}function VU(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 a of r)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function mse(e){let t=sc(e,!0).map(([n])=>n);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=n,i=0;for(let s of t){if(o<s.length)break;o-=s.length,i++}return{line:i,character:o}}function a(n,o){let i=0;for(let s=0;s<n;s++)i+=t[s].length;return i+=o,i}return{lines:t,indexToPos:r,posToIndex:a}}var F5="light-dark()",hse=["color","background-color"];function gse(e,t){let r=0,a=[];for(let n of t)n>r&&a.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&a.push({...e,content:e.content.slice(r),offset:e.offset+r}),a}function vse(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((a,n)=>a-n);return r.length?e.map(a=>a.flatMap(n=>{let o=r.filter(i=>n.offset<i&&i<n.offset+n.content.length).map(i=>i-n.offset).sort((i,s)=>i-s);return o.length?gse(n,o):n})):e}function yse(e,t,r,a,n="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},i=t.map(f=>Uy(e.variants[f])),s=new Set(i.flatMap(f=>Object.keys(f))),u={},c=(f,p)=>{let h=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return r+t[f]+(p==="color"?"":h)};return i.forEach((f,p)=>{for(let h of s){let g=f[h]||"inherit";if(p===0&&a&&hse.includes(h))if(a===F5&&i.length>1){let x=t.findIndex(S=>S==="light"),I=t.findIndex(S=>S==="dark");if(x===-1||I===-1)throw new Ct('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');u[h]=`light-dark(${i[x][h]||"inherit"}, ${i[I][h]||"inherit"})`,n==="css-vars"&&(u[c(p,h)]=g)}else u[h]=g;else n==="css-vars"&&(u[c(p,h)]=g)}}),o.htmlStyle=u,o}function Uy(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Cr.Italic&&(t["font-style"]="italic"),e.fontStyle&Cr.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&Cr.Underline&&r.push("underline"),e.fontStyle&Cr.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function U5(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function xse(){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 Ct(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...n.indexToPos(s),offset:s}}else{let u=n.lines[s.line];if(u===void 0)throw new Ct(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let c=s.character;if(c<0&&(c=u.length+c),c<0||c>u.length)throw new Ct(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${u.length}`);return{...s,character:c,offset:n.posToIndex(s.line,c)}}};var a=o;let n=mse(r.source),i=(r.options.decorations||[]).map(s=>({...s,start:o(s.start),end:o(s.end)}));bse(i),e.set(r.meta,{decorations:i,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return vse(r,t(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]))},code(r){if(!this.options.decorations?.length)return;let a=t(this),n=Array.from(r.children).filter(f=>f.type==="element"&&f.tagName==="span");if(n.length!==a.converter.lines.length)throw new Ct(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function o(f,p,h,g){let x=n[f],I="",S=-1,$=-1;if(p===0&&(S=0),h===0&&($=0),h===Number.POSITIVE_INFINITY&&($=x.children.length),S===-1||$===-1)for(let k=0;k<x.children.length;k++)I+=qU(x.children[k]),S===-1&&I.length===p&&(S=k+1),$===-1&&I.length===h&&($=k+1);if(S===-1)throw new Ct(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if($===-1)throw new Ct(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);let T=x.children.slice(S,$);if(!g.alwaysWrap&&T.length===x.children.length)s(x,g,"line");else if(!g.alwaysWrap&&T.length===1&&T[0].type==="element")s(T[0],g,"token");else{let k={type:"element",tagName:"span",properties:{},children:T};s(k,g,"wrapper"),x.children.splice(S,T.length,k)}}function i(f,p){n[f]=s(n[f],p,"line")}function s(f,p,h){let g=p.properties||{},x=p.transform||(I=>I);return f.tagName=p.tagName||"span",f.properties={...f.properties,...g,class:f.properties.class},p.properties?.class&&VU(f,p.properties.class),f=x(f,h)||f,f}let u=[],c=a.decorations.sort((f,p)=>p.start.offset-f.start.offset||f.end.offset-p.end.offset);for(let f of c){let{start:p,end:h}=f;if(p.line===h.line)o(p.line,p.character,h.character,f);else if(p.line<h.line){o(p.line,p.character,Number.POSITIVE_INFINITY,f);for(let g=p.line+1;g<h.line;g++)u.unshift(()=>i(g,f));o(h.line,0,h.character,f)}}u.forEach(f=>f())}}}function bse(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new Ct(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let a=t+1;a<e.length;a++){let n=e[a],o=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,i=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset,s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,u=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(o||i||s||u){if(o&&i||s&&u||s&&r.start.offset===r.end.offset||i&&n.start.offset===n.end.offset)continue;throw new Ct(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function qU(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(qU).join(""):""}var wse=[xse()];function By(e){let t=_se(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...wse]}function _se(e){let t=[],r=[],a=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:a.push(n)}return{pre:t,post:r,normal:a}}var el=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],O5={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function kse(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let a=e.indexOf("m",r);if(a!==-1)return{sequence:e.substring(r+2,a).split(";"),startPosition:r,position:a+1}}return{position:e.length}}function jU(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(a=>Number.parseInt(a));return r.length!==3||r.some(a=>Number.isNaN(a))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function Sse(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)O5[a]&&t.push({type:"setDecoration",value:O5[a]});else if(a<=29){let n=O5[a-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:el[a-30]}});else if(a===38){let n=jU(e);n&&t.push({type:"setForegroundColor",value:n})}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:el[a-40]}});else if(a===48){let n=jU(e);n&&t.push({type:"setBackgroundColor",value:n})}else a===49?t.push({type:"resetBackgroundColor"}):a===53?t.push({type:"setDecoration",value:"overline"}):a===55?t.push({type:"resetDecoration",value:"overline"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:el[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:el[a-100+8]}})}return t}function Ise(){let e=null,t=null,r=new Set;return{parse(a){let n=[],o=0;do{let i=kse(a,o),s=i.sequence?a.substring(o,i.startPosition):a.substring(o);if(s.length>0&&n.push({value:s,foreground:e,background:t,decorations:new Set(r)}),i.sequence){let u=Sse(i.sequence);for(let c of u)c.type==="resetAll"?(e=null,t=null,r.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&r.delete(c.value);for(let c of u)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&r.add(c.value)}o=i.position}while(o<a.length);return n}}}var Cse={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 Tse(e=Cse){function t(s){return e[s]}function r(s){return`#${s.map(u=>Math.max(0,Math.min(u,255)).toString(16).padStart(2,"0")).join("")}`}let a;function n(){if(a)return a;a=[];for(let c=0;c<el.length;c++)a.push(t(el[c]));let s=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let f=0;f<6;f++)for(let p=0;p<6;p++)a.push(r([s[c],s[f],s[p]]));let u=8;for(let c=0;c<24;c++,u+=10)a.push(r([u,u,u]));return a}function o(s){return n()[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 Pse={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 $se(e,t,r){let a=Ep(e,r),n=sc(t),o=Tse(Object.fromEntries(el.map(s=>{let u=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[u]||Pse[s]]}))),i=Ise();return n.map(s=>i.parse(s[0]).map(u=>{let c,f;u.decorations.has("reverse")?(c=u.background?o.value(u.background):e.bg,f=u.foreground?o.value(u.foreground):e.fg):(c=u.foreground?o.value(u.foreground):e.fg,f=u.background?o.value(u.background):void 0),c=Ao(c,a),f=Ao(f,a),u.decorations.has("dim")&&(c=Lse(c));let p=Cr.None;return u.decorations.has("bold")&&(p|=Cr.Bold),u.decorations.has("italic")&&(p|=Cr.Italic),u.decorations.has("underline")&&(p|=Cr.Underline),u.decorations.has("strikethrough")&&(p|=Cr.Strikethrough),{content:u.value,offset:s[1],color:c,bgColor:f,fontStyle:p}}))}function Lse(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let a=t[1];if(a.length===8){let n=Math.round(Number.parseInt(a.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${a.slice(0,6)}${n}`}else{if(a.length===6)return`#${a}80`;if(a.length===4){let n=a[0],o=a[1],i=a[2],s=a[3];return`#${n}${n}${o}${o}${i}${i}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(a.length===3){let n=a[0],o=a[1],i=a[2];return`#${n}${n}${o}${o}${i}${i}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function B5(e,t,r={}){let a=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!Mp(a)&&!Rp(n)&&a==="ansi"){let{theme:o}=e.setTheme(n);return $se(o,t,r)}return E5(e,t,r)}function Fy(e,t,r){let a,n,o,i,s,u;if("themes"in r){let{defaultColor:c="light",cssVariablePrefix:f="--shiki-",colorsRendering:p="css-vars"}=r,h=Object.entries(r.themes).filter($=>$[1]).map($=>({color:$[0],theme:$[1]})).sort(($,T)=>$.color===c?-1:T.color===c?1:0);if(h.length===0)throw new Ct("`themes` option must not be empty");let g=My(e,t,r,B5);if(u=lc(g),c&&F5!==c&&!h.find($=>$.color===c))throw new Ct(`\`themes\` option must contain the defaultColor key \`${c}\``);let x=h.map($=>e.getTheme($.theme)),I=h.map($=>$.color);o=g.map($=>$.map(T=>yse(T,I,f,c,p))),u&&zp(o,u);let S=h.map($=>Ep($.theme,r));n=ZU(h,x,S,f,c,"fg",p),a=ZU(h,x,S,f,c,"bg",p),i=`shiki-themes ${x.map($=>$.name).join(" ")}`,s=c?void 0:[n,a].join(";")}else if("theme"in r){let c=Ep(r.theme,r);o=B5(e,t,r);let f=e.getTheme(r.theme);a=Ao(f.bg,c),n=Ao(f.fg,c),i=f.name,u=lc(o)}else throw new Ct("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:n,bg:a,themeName:i,rootStyle:s,grammarState:u}}function ZU(e,t,r,a,n,o,i){return e.map((s,u)=>{let c=Ao(t[u][o],r[u])||"inherit",f=`${a+s.color}${o==="bg"?"-bg":""}:${c}`;if(u===0&&n){if(n===F5&&e.length>1){let p=e.findIndex(g=>g.color==="light"),h=e.findIndex(g=>g.color==="dark");if(p===-1||h===-1)throw new Ct('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Ao(t[p][o],r[p])||"inherit"}, ${Ao(t[h][o],r[h])||"inherit"});${f}`}return c}return i==="css-vars"?f:null}).filter(s=>!!s).join(";")}function jy(e,t,r,a={meta:{},options:r,codeToHast:(n,o)=>jy(e,n,o),codeToTokens:(n,o)=>Fy(e,n,o)}){let n=t;for(let x of By(r))n=x.preprocess?.call(a,n,r)||n;let{tokens:o,fg:i,bg:s,themeName:u,rootStyle:c,grammarState:f}=Fy(e,n,r),{mergeWhitespaces:p=!0,mergeSameStyleTokens:h=!1}=r;p===!0?o=Ese(o):p==="never"&&(o=Mse(o)),h&&(o=Rse(o));let g={...a,get source(){return n}};for(let x of By(r))o=x.tokens?.call(g,o)||o;return Ase(o,{...r,fg:i,bg:s,themeName:u,rootStyle:r.rootStyle===!1?!1:r.rootStyle??c},g,f)}function Ase(e,t,r,a=lc(e)){let n=By(t),o=[],i={type:"root",children:[]},{structure:s="classic",tabindex:u="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),u!==!1&&u!=null&&(c.tabindex=u.toString());for(let[I,S]of Object.entries(t.meta||{}))I.startsWith("_")||(c[I]=S);let f={type:"element",tagName:"pre",properties:c,children:[],data:t.data},p={type:"element",tagName:"code",properties:{},children:o},h=[],g={...r,structure:s,addClassToHast:VU,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return i},get pre(){return f},get code(){return p},get lines(){return h}};if(e.forEach((I,S)=>{S&&(s==="inline"?i.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&o.push({type:"text",value:` 117`}));let $={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(let k of I){let M={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]},E=U5(k.htmlStyle||Uy(k));E&&(M.properties.style=E);for(let z of n)M=z?.span?.call(g,M,S+1,T,$,k)||M;s==="inline"?i.children.push(M):s==="classic"&&$.children.push(M),T+=k.content.length}if(s==="classic"){for(let k of n)$=k?.line?.call(g,$,S+1)||$;h.push($),o.push($)}else s==="inline"&&h.push($)}),s==="classic"){for(let I of n)p=I?.code?.call(g,p)||p;f.children.push(p);for(let I of n)f=I?.pre?.call(g,f)||f;i.children.push(f)}else if(s==="inline"){let I=[],S={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let T of i.children)T.type==="element"&&T.tagName==="br"?(I.push(S),S={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(T.type==="element"||T.type==="text")&&S.children.push(T);I.push(S);let $={type:"element",tagName:"code",properties:{},children:I};for(let T of n)$=T?.code?.call(g,$)||$;i.children=[];for(let T=0;T<$.children.length;T++){T>0&&i.children.push({type:"element",tagName:"br",properties:{},children:[]});let k=$.children[T];k.type==="element"&&i.children.push(...k.children)}}let x=i;for(let I of n)x=I?.root?.call(g,x)||x;return a&&zp(x,a),x}function Ese(e){return e.map(t=>{let r=[],a="",n;return t.forEach((o,i)=>{let s=!(o.fontStyle&&(o.fontStyle&Cr.Underline||o.fontStyle&Cr.Strikethrough));s&&o.content.match(/^\s+$/)&&t[i+1]?(n===void 0&&(n=o.offset),a+=o.content):a?(s?r.push({...o,offset:n,content:a+o.content}):r.push({content:a,offset:n},o),n=void 0,a=""):r.push(o)}),r})}function Mse(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let a=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!a)return r;let[,n,o,i]=a;if(!n&&!i)return r;let s=[{...r,offset:r.offset+n.length,content:o}];return n&&s.unshift({content:n,offset:r.offset}),i&&s.push({content:i,offset:r.offset+n.length+o.length}),s}))}function Rse(e){return e.map(t=>{let r=[];for(let a of t){if(r.length===0){r.push({...a});continue}let n=r[r.length-1],o=U5(n.htmlStyle||Uy(n)),i=U5(a.htmlStyle||Uy(a)),s=n.fontStyle&&(n.fontStyle&Cr.Underline||n.fontStyle&Cr.Strikethrough),u=a.fontStyle&&(a.fontStyle&Cr.Underline||a.fontStyle&Cr.Strikethrough);
117!s&&!u&&o===i?n.content+=a.content:r.push({...a})}return r})}var zse=N5;function Dse(e,t,r){let a={meta:{},options:r,codeToHast:(o,i)=>jy(e,o,i),codeToTokens:(o,i)=>Fy(e,o,i)},n=zse(jy(e,t,r,a));for(let o of By(r))n=o.postprocess?.call(a,n,r)||n;return n}async function GU(e){let t=await A5(e);return{getLastGrammarState:(...r)=>wU(t,...r),codeToTokensBase:(r,a)=>B5(t,r,a),codeToTokensWithThemes:(r,a)=>My(t,r,a),codeToTokens:(r,a)=>Fy(t,r,a),codeToHast:(r,a)=>jy(t,r,a),codeToHtml:(r,a)=>Dse(t,r,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var HU=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:a,regexConstructor:n}=t;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(o=>{if(typeof o!="string")return o;let i=a?.get(o);if(i){if(i instanceof RegExp)return i;if(r)return null;throw i}try{let s=n(o);return a?.set(o,s),s}catch(s){if(a?.set(o,s),r)return null;throw s}})}findNextMatchSync(e,t,r){let a=typeof e=="string"?e:e.content,n=[];function o(i,s,u=0){return{index:i,captureIndices:s.indices.map(c=>c==null?{start:4294967295,end:4294967295,length:0}:{start:c[0]+u,end:c[1]+u,length:c[1]-c[0]})}}for(let i=0;i<this.regexps.length;i++){let s=this.regexps[i];if(s)try{s.lastIndex=t;let u=s.exec(a);if(!u)continue;if(u.index===t)return o(i,u,0);n.push([i,u,0])}catch(u){if(this.options.forgiving)continue;throw u}}if(n.length){let i=Math.min(...n.map(s=>s[1].index));for(let[s,u,c]of n)if(u.index===i)return o(s,u,c)}return null}};function Fi(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function WU(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var Np=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),or=String.raw;function Mo(e,t){if(e==null)throw new Error(t??"Value expected");return e}var eB=or`\[\^?`,tB=`c.? | C(?:-.?)?|${or`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${or`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${or`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${or`o\{[^\}]*\}?`}|${or`\d{1,3}`}`,Z5=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Zy=new RegExp(or` 118 \\ (?: 119 ${tB} 120 | [gk]<[^>]*>? 121 | [gk]'[^']*'? 122 | . 123 ) 124 | \( (?: 125 \? (?: 126 [:=!>({] 127 | <[=!] 128 | <[^>]*> 129 | '[^']*' 130 | ~\|? 131 | #(?:[^)\\]|\\.?)* 132 | [^:)]*[:)] 133 )? 134 | \*[^\)]*\)? 135 )? 136 | (?:${Z5.source})+ 137 | ${eB} 138 | . 139`.replace(/\s+/g,""),"gsu"),j5=new RegExp(or` 140 \\ (?: 141 ${tB} 142 | . 143 ) 144 | \[:(?:\^?\p{Alpha}+|\^):\] 145 | ${eB} 146 | && 147 | . 148`.replace(/\s+/g,""),"gsu");function rB(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 a=tle(r.flags),n=[a.extended],o={captureGroup:r.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(p){n.push(p)},replaceCurrentModX(p){n[n.length-1]=p},singleline:r.rules.singleline},i=[],s;for(Zy.lastIndex=0;s=Zy.exec(e);){let p=Nse(o,e,s[0],Zy.lastIndex);p.tokens?i.push(...p.tokens):p.token&&i.push(p.token),p.lastIndex!==void 0&&(Zy.lastIndex=p.lastIndex)}let u=[],c=0;i.filter(p=>p.type==="GroupOpen").forEach(p=>{p.kind==="capturing"?p.number=++c:p.raw==="("&&u.push(p)}),c||u.forEach((p,h)=>{p.kind="capturing",p.number=h+1});let f=c||u.length;return{tokens:i.map(p=>p.type==="EscapedNumber"?nle(p,f):p).flat(),flags:a}}function Nse(e,t,r,a){let[n,o]=r;if(r==="["||r==="[^"){let i=Ose(t,r,a);return{tokens:i.tokens,lastIndex:i.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(o))return{token:JU(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Wse(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:aB(r)}}if(o==="K")return{token:oB("keep",r)};if(o==="N"||o==="R")return{token:tl("newline",r,{negate:o==="N"})};if(o==="O")return{token:tl("any",r)};if(o==="X")return{token:tl("text_segment",r)};let i=nB(r,{inCharClass:!1}
vendor: 19,970 bytes, lines 148-149
148);return Array.isArray(i)?{tokens:i}:{token:i}}if(n==="("){if(o==="*")return{token:Yse(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[a]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:Xse(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:uc("group",r)};if(r==="(?>")return{token:uc("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:uc(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:uc("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:uc("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:qse(r)}}if(e.getCurrentModX()){if(r==="#"){let i=t.indexOf(` 149`,a);return{lastIndex:i===-1?t.length:i}}if(/^\s$/.test(r)){let i=/\s+/y;return i.lastIndex=a,{lastIndex:i.exec(t)?i.lastIndex:a}}}if(r===".")return{token:tl("dot",r)};if(r==="^"||r==="$"){let i=e.singleline?{"^":or`\A`,$:or`\Z`}[r]:r;return{token:JU(i,r)}}return r==="|"?{token:Bse(r)}:Z5.test(r)?{tokens:ale(r)}:{token:Ro(Fi(r),r)}}function Ose(e,t,r){let a=[KU(t[1]==="^",t)],n=1,o;for(j5.lastIndex=r;o=j5.exec(e);){let i=o[0];if(i[0]==="["&&i[1]!==":")n++,a.push(KU(i[1]==="^",i));else if(i==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(Ro(93,i));else if(n--,a.push(Fse(i)),!n)break}else{let s=Use(i);Array.isArray(s)?a.push(...s):a.push(s)}}return{tokens:a,lastIndex:j5.lastIndex||e.length}}function Use(e){if(e[0]==="\\")return nB(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!Np.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return tl("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?jse(e):e==="&&"?Zse(e):Ro(Fi(e),e)}function nB(e,{inCharClass:t}){let r=e[1];if(r==="c"||r==="C")return Kse(e);if("dDhHsSwW".includes(r))return Qse(e);if(e.startsWith(or`\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 ele(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let a=e.split(/\\x/).slice(1).map(i=>parseInt(i,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),o=new TextEncoder;return[...n].map(i=>{let s=[...o.encode(i)].map(u=>`\\x${u.toString(16)}`).join("");return Ro(Fi(i),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Ro(rle(e),e);if(XU.has(r))return Ro(XU.get(r),e);if(/\d/.test(r))return Vse(t,e);if(e==="\\")throw new Error(or`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Ro(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Bse(e){return{type:"Alternator",raw:e}}function JU(e,t){return{type:"Assertion",kind:e,raw:t}}function aB(e){return{type:"Backreference",raw:e}}function Ro(e,t){return{type:"Character",value:e,raw:t}}function Fse(e){return{type:"CharacterClassClose",raw:e}}function jse(e){return{type:"CharacterClassHyphen",raw:e}}function Zse(e){return{type:"CharacterClassIntersector",raw:e}}function KU(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function tl(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function oB(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Mo(r.flags),raw:t}}function Vse(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function qse(e){return{type:"GroupClose",raw:e}}function uc(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Gse(e,t,r,a){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:a}}function Hse(e,t,r,a){return{type:"Quantifier",kind:e,min:t,max:r,raw:a}}function Wse(e){return{type:"Subroutine",raw:e}}var Jse=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),XU=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Kse(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 Ro(Fi(t.toUpperCase())-64,e)}function Xse(e,t){let{on:r,off:a}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;a??="";let n=(t.getCurrentModX()||r.includes("x"))&&!a.includes("x"),o=QU(r),i=QU(a),s={};if(o&&(s.enable=o),i&&(s.disable=i),e.endsWith(")"))return t.replaceCurrentModX(n),oB("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,uc("group",e,{...(o||i)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function Yse(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:a,args:n}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(a==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let o=n?n.split(",").filter(f=>f!=="").map(f=>/^[+-]?\d+$/.test(f)?+f:f):[],[i,s,u]=o,c=Jse.has(r)?r.toLowerCase():"custom";switch(c){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 u=="string"&&!/^[A-Za-z_]\w*$/.test(u))throw new Error(`Named callout argument three must be a tag or number "${u}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${c}"`)}return Gse(c,a??null,n?.split(",")??null,e)}function YU(e){let t=null,r,a;if(e[0]==="{"){let{minStr:n,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,i=1e5;if(+n>i||o&&+o>i)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+n,a=o===void 0?+n:o===""?1/0:+o,r>a&&(t="possessive",[r,a]=[a,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,a=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Hse(t,r,a,e)}function Qse(e){let t=e[1].toLowerCase();return tl({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function ele(e){let{p:t,neg:r,value:a}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return tl("property",e,{value:a,negate:t==="P"&&!r||t==="p"&&!!r})}function QU(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 tle(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 a=e[r];if(!"imxDPSWy".includes(a))throw new Error(`Invalid flag "${a}"`);if(a==="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"}[a]]=!0}return t}function rle(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 nle(e,t){let{raw:r,inCharClass:a}=e,n=r.slice(1);if(!a&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[aB(r)];let o=[],i=n.match(/^[0-7]+|\d/g);for(let s=0;s<i.length;s++){let u=i[s],c;if(s===0&&u!=="8"&&u!=="9"){if(c=parseInt(u,8),c>127)throw new Error(or`Octal encoded byte above 177 unsupported "${r}"`)}else c=Fi(u);o.push(Ro(c,(s===0?"\\":"")+u))}return o}function ale(e){let t=[],r=new RegExp(Z5,"gy"),a;for(;a=r.exec(e);){let n=a[0];if(n[0]==="{"){let o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(o){let{min:i,max:s}=o.groups;if(+i>+s&&n.endsWith("?")){r.lastIndex--,t.push(YU(n.slice(0,-1)));continue}}}t.push(YU(n))}return t}function Vy(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(a=>t[a]===r[a])}function iB(e){return ole.has(e.type)}var ole=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Gy(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},a=rB(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(h,g)=>{let x=a.tokens[o.nextIndex];switch(o.parent=h,o.nextIndex++,x.type){case"Alternator":return zo();case"Assertion":return ile(x);case"Backreference":return sle(x,o);case"Character":return cc(x.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return lle(x,o,g);case"CharacterClassOpen":return ule(x,o,g);case"CharacterSet":return cle(x,o);case"Directive":return gle(x.kind,{flags:x.flags});case"GroupOpen":return dle(x,o,g);case"NamedCallout":return yle(x.kind,x.tag,x.arguments);case"Quantifier":return fle(x,o);case"Subroutine":return ple(x,o);default:throw new Error(`Unexpected token type "${x.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:a.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},i=ble(vle(a.flags)),s=i.body[0];for(;o.nextIndex<a.tokens.length;){let h=n(s,{});h.type==="Alternative"?(i.body.push(h),s=h):s.body.push(h)}let{capturingGroups:u,hasNumberedRef:c,namedGroupsByName:f,subroutines:p}=o;if(c&&f.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:h}of p)if(typeof h=="number"){if(h>u.length)throw new Error("Subroutine uses a group number that's not defined");h&&(u[h-1].isSubroutined=!0)}else if(f.has(h)){if(f.get(h).length>1)throw new Error(or`Subroutine uses a duplicate group name "\g<${h}>"`);f.get(h)[0].isSubroutined=!0}else throw new Error(or`Subroutine uses a group name that's not defined "\g<${h}>"`);return i}function ile({kind:e}){return Hy(Mo({"^":"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===or`\B`||e===or`\Y`})}function sle({raw:e},t){let r=/^\\k[<']/.test(e),a=r?e.slice(3,-1):e.slice(1),n=(o,i=!1)=>{let s=t.capturingGroups.length,u=!1;if(o>s)if(t.skipBackrefValidation)u=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,qy(i?s+1-o:o,{orphan:u})};if(r){let o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(a);if(o)return n(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(a))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(a))throw new Error(`Group name not defined to the left "${e}"`);return qy(a)}return n(+a)}function lle(e,t,r){let{tokens:a,walk:n}=t,o=t.parent,i=o.body.at(-1),s=a[t.nextIndex];if(!r.isCheckingRangeEnd&&i&&i.type!=="CharacterClass"&&i.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let u=n(o,{...r,isCheckingRangeEnd:!0});if(i.type==="Character"&&u.type==="Character")return o.body.pop(),hle(i,u);throw new Error("Invalid character class range")}return cc(Fi("-"))}function ule({negate:e},t,r){let{tokens:a,walk:n}=t,o=a[t.nextIndex],i=[Op()],s=uB(o);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")i.push(Op()),t.nextIndex++;else{let c=i.at(-1);c.body.push(n(c,r))}s=uB(a[t.nextIndex],o)}let u=Op({negate:e});return i.length===1?u.body=i[0].body:(u.kind="intersection",u.body=i.map(c=>c.body.length===1?c.body[0]:c)),t.nextIndex++,u}function cle({kind:e,negate:t,value:r},a){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:i}=a;if(e==="property"){let s=dc(r);if(Np.has(s)&&!i?.has(s))e="posix",r=s;else return rl(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:o,unicodePropertyMap:i})}return e==="posix"?xle(r,{negate:t}):Wy(e,{negate:t})}function dle(e,t,r){let{tokens:a,capturingGroups:n,namedGroupsByName:o,skipLookbehindValidation:i,walk:s}=t,u=wle(e),c=u.type==="AbsenceFunction",f=lB(u),p=f&&u.negate;if(u.type==="CapturingGroup"&&(n.push(u),u.name&&WU(o,u.name,[]).push(u)),c&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=cB(a[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")u.body.push(zo()),t.nextIndex++;else{let g=u.body.at(-1),x=s(g,{...r,isInAbsenceFunction:r.isInAbsenceFunction||c,isInLookbehind:r.isInLookbehind||f,isInNegLookbehind:r.isInNegLookbehind||p});if(g.body.push(x),(f||r.isInLookbehind)&&!i){let I="Lookbehind includes a pattern not allowed by Oniguruma";if(p||r.isInNegLookbehind){if(sB(x)||x.type==="CapturingGroup")throw new Error(I)}else if(sB(x)||lB(x)&&x.negate)throw new Error(I)}}h=cB(a[t.nextIndex])}return t.nextIndex++,u}function fle({kind:e,min:t,max:r},a){let n=a.parent,o=n.body.at(-1);if(!o||!iB(o))throw new Error("Quantifier requires a repeatable token");let i=q5(e,t,r,o);return n.body.pop(),i}function ple({raw:e},t){let{capturingGroups:r,subroutines:a}=t,n=e.slice(3,-1),o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(o){let s=+o.groups.num,u=r.length;if(t.hasNumberedRef=!0,n={"":s,"+":u+s,"-":u+1-s}[o.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);let i=G5(n);return a.push(i),i}function mle(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Up(t?.body)}}function zo(e){return{type:"Alternative",body:dB(e?.body)}}function Hy(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function qy(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function V5(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!_le(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:Up(t?.body)}}function cc(e,t){let r={useLastValid:!1,...t};if(e>1114111){let a=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${a}}"`):new Error(`Invalid code point out of range in JS "\\x{${a}}"`)}return{type:"Character",value:e}}function Op(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:dB(e?.body)}}function hle(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Wy(e,t){let r=!!t?.negate,a={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(a.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(a.variableLength=!0),a}function gle(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Mo(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function vle(e){return{type:"Flags",...e}}function Sn(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:Up(e?.body)}}function ji(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Up(e?.body)}}function yle(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function xle(e,t){let r=!!t?.negate;if(!Np.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function q5(e,t,r,a){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:a}}function ble(e,t){return{type:"Regex",body:Up(t?.body),flags:e}}function G5(e){return{type:"Subroutine",ref:e}}function rl(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},a=r.unicodePropertyMap?.get(dc(e));if(!a){if(r.normalizeUnknownPropertyNames)a=kle(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(or`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:r.negate}}function wle({flags:e,kind:t,name:r,negate:a,number:n}){switch(t){case"absence_repeater":return mle("repeater");case"atomic":return Sn({atomic:!0});case"capturing":return V5(n,{name:r});case"group":return Sn({flags:e});case"lookahead":case"lookbehind":return ji({behind:t==="lookbehind",negate:a});default:throw new Error(`Unexpected group kind "${t}"`)}}function Up(e){if(e===void 0)e=[zo()];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 dB(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 sB(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function lB(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function _le(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function kle(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 dc(e){return e.replace(/[- _]+/g,"").toLowerCase()}function uB(e,t){return Mo(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function cB(e){return Mo(e,"Unclosed group")}function nl(e,t,r=null){function a(o,i){for(let s=0;s<o.length;s++){let u=n(o[s],i,s,o);s=Math.max(-1,s+u)}}function n(o,i=null,s=null,u=null){let c=0,f=!1,p={node:o,parent:i,key:s,container:u,root:e,remove(){Jy(u).splice(Math.max(0,fc(s)+c),1
vendor: 11,221 bytes, lines 149-246
149),c--,f=!0},removeAllNextSiblings(){return Jy(u).splice(fc(s)+1)},removeAllPrevSiblings(){let $=fc(s)+c;return c-=$,Jy(u).splice(0,Math.max(0,$))},replaceWith($,T={}){let k=!!T.traverse;u?u[Math.max(0,fc(s)+c)]=$:Mo(i,"Can't replace root node")[s]=$,k&&n($,i,s,u),f=!0},replaceWithMultiple($,T={}){let k=!!T.traverse;if(Jy(u).splice(Math.max(0,fc(s)+c),1,...$),c+=$.length-1,k){let M=0;for(let E=0;E<$.length;E++)M+=n($[E],i,fc(s)+E+M,u)}f=!0},skip(){f=!0}},{type:h}=o,g=t["*"],x=t[h],I=typeof g=="function"?g:g?.enter,S=typeof x=="function"?x:x?.enter;if(I?.(p,r),S?.(p,r),!f)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":a(o.body,o);break;case"Alternative":case"CharacterClass":a(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(o.min,o,"min"),n(o.max,o,"max");break;case"LookaroundAssertion":a(o.body,o);break;case"Quantifier":n(o.body,o,"body");break;case"Regex":a(o.body,o),n(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return x?.exit?.(p,r),g?.exit?.(p,r),c}return n(e),e}function Jy(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function fc(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var fB=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function pB(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function mB(e,t,r,a){return e.slice(0,t)+a+e.slice(t+r.length)}var un=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Bp(e,t,r,a){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1],i=0,s="";for(let u of e.matchAll(n)){let{0:c,groups:{$skip:f}}=u;if(!f&&(!a||a===un.DEFAULT==!i)){r instanceof Function?s+=r(u,{context:i?un.CHAR_CLASS:un.DEFAULT,negated:o[o.length-1]}):s+=r;continue}c[0]==="["?(i++,o.push(c[1]==="^")):c==="]"&&i&&(i--,o.pop()),s+=c}return s}function H5(e,t,r,a){Bp(e,t,r,a)}function Sle(e,t,r=0,a){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let o=0,i;for(;i=n.exec(e);){let{0:s,groups:{$skip:u}}=i;if(!u&&(!a||a===un.DEFAULT==!o))return i;s==="["?o++:s==="]"&&o&&o--,n.lastIndex==i.index&&n.lastIndex++}return null}function Fp(e,t,r){return!!Sle(e,t,0,r)}function hB(e,t){let r=/\\?./gsu;r.lastIndex=t;let a=e.length,n=0,o=1,i;for(;i=r.exec(e);){let[s]=i;if(s==="[")n++;else if(n)s==="]"&&n--;else if(s==="(")o++;else if(s===")"&&(o--,!o)){a=i.index;break}}return e.slice(t,a)}var gB=new RegExp(String.raw`(?<noncapturingStart>${fB})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function J5(e,t){let r=t?.hiddenCaptures??[],a=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};let n="(?>",o="(?:(?=(",i=[0],s=[],u=0,c=0,f=NaN,p;do{p=!1;let h=0,g=0,x=!1,I;for(gB.lastIndex=Number.isNaN(f)?0:f+o.length;I=gB.exec(e);){let{0:S,index:$,groups:{capturingStart:T,noncapturingStart:k}}=I;if(S==="[")h++;else if(h)S==="]"&&h--;else if(S===n&&!x)f=$,x=!0;else if(x&&k)g++;else if(T)x?g++:(u++,i.push(u+c));else if(S===")"&&x){if(!g){c++;let M=u+c;if(e=`${e.slice(0,f)}${o}${e.slice(f+n.length,$)}))<$$${M}>)${e.slice($+1)}`,p=!0,s.push(M),pB(r,M),a.size){let E=new Map;a.forEach((z,j)=>{E.set(j>=M?j+1:j,z.map(q=>q>=M?q+1:q))}),a=E}break}g--}}}while(p);return r.push(...s),e=Bp(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:g,wrappedBackrefNum:x}})=>{if(g){let I=+g;if(I>i.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${i[I]}`}return`\\${x}`},un.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:r}}var vB=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,W5=new RegExp(String.raw` 150\\(?: \d+ 151 | c[A-Za-z] 152 | [gk]<[^>]+> 153 | [pPu]\{[^\}]+\} 154 | u[A-Fa-f\d]{4} 155 | x[A-Fa-f\d]{2} 156 ) 157| \((?: \? (?: [:=!>] 158 | <(?:[=!]|[^>]+>) 159 | [A-Za-z\-]+: 160 | \(DEFINE\) 161 ))? 162| (?<qBase>${vB})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 163| \\?. 164`.replace(/\s+/g,""),"gsu");function K5(e){if(!new RegExp(`${vB}\\+`).test(e))return{pattern:e};let t=[],r=null,a=null,n="",o=0,i;for(W5.lastIndex=0;i=W5.exec(e);){let{0:s,index:u,groups:{qBase:c,qMod:f,invalidQ:p}}=i;if(s==="[")o||(a=u),o++;else if(s==="]")o?o--:a=null;else if(!o)if(f==="+"&&n&&!n.startsWith("(")){if(p)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(c))e=mB(e,u+c.length,f,"");else{if(n===")"||n==="]"){let g=n===")"?r:a;if(g===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,g)}(?>${e.slice(g,u)}${c})${e.slice(u+s.length)}`}else e=`${e.slice(0,u-n.length)}(?>${n}${c})${e.slice(u+s.length)}`;h+=4}W5.lastIndex+=h}else s[0]==="("?t.push(u):s===")"&&(r=t.length?t.pop():null);n=s}return{pattern:e}}var jn=String.raw,Ile=jn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Y5=jn`\(\?R=(?<rDepth>[^\)]+)\)|${Ile}`,Ky=jn`\(\?<(?![=!])(?<captureName>[^>]+)>`,_B=jn`${Ky}|(?<unnamed>\()(?!\?)`,al=new RegExp(jn`${Ky}|${Y5}|\(\?|\\?.`,"gsu"),X5="Cannot use multiple overlapping recursions";function kB(e,t){let{hiddenCaptures:r,mode:a}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(Y5,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(a==="plugin"&&Fp(e,jn`\(\?\(DEFINE\)`,un.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let o=[],i=Fp(e,jn`\\[1-9]`,un.DEFAULT),s=new Map,u=[],c=!1,f=0,p=0,h;for(al.lastIndex=0;h=al.exec(e);){let{0:g,groups:{captureName:x,rDepth:I,gRNameOrNum:S,gRDepth:$}}=h;if(g==="[")f++;else if(f)g==="]"&&f--;else if(I){if(yB(I),c)throw new Error(X5);if(i)throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let T=e.slice(0,h.index),k=e.slice(al.lastIndex);if(Fp(k,Y5,un.DEFAULT))throw new Error(X5);let M=+I-1;e=xB(T,k,M,!1,r,o,p),n=wB(n,T,M,o.length,0,p);break}else if(S){yB($);let T=!1;for(let Q of u)if(Q.name===S||Q.num===+S){if(T=!0,Q.hasRecursedWithin)throw new Error(X5);break}if(!T)throw new Error(jn`Recursive \g cannot be used outside the referenced group "${a==="external"?S:jn`\g<${S}&R=${$}>`}"`);let k=s.get(S),M=hB(e,k);if(i&&Fp(M,jn`${Ky}|\((?!\?)`,un.DEFAULT))throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let E=e.slice(k,h.index),z=M.slice(E.length+g.length),j=o.length,q=+$-1,Z=xB(E,z,q,!0,r,o,p);n=wB(n,E,q,o.length-j,j,p);let W=e.slice(0,k),de=e.slice(k+M.length);e=`${W}${Z}${de}`,al.lastIndex+=Z.length-g.length-E.length-z.length,u.forEach(Q=>Q.hasRecursedWithin=!0),c=!0}else if(x)p++,s.set(String(p),al.lastIndex),s.set(x,al.lastIndex),u.push({num:p,name:x});else if(g[0]==="("){let T=g==="(";T&&(p++,s.set(String(p),al.lastIndex)),u.push(T?{num:p}:{})}else g===")"&&u.pop()}return r.push(...o),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function yB(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 xB(e,t,r,a,n,o,i){let s=new Set;a&&H5(e+t,Ky,({groups:{captureName:c}})=>{s.add(c)},un.DEFAULT);let u=[r,a?s:null,n,o,i];return`${e}${bB(`(?:${e}`,"forward",...u)}(?:)${bB(`${t})`,"backward",...u)}${t}`}function bB(e,t,r,a,n,o,i){let u=f=>t==="forward"?f+2:r-f+2-1,c="";for(let f=0;f<r;f++){let p=u(f);c+=Bp(e,jn`${_B}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:g,unnamed:x,backref:I}})=>{if(I&&a&&!a.has(I))return h;let S=`_$${p}`;if(x||g){let $=i+o.length+1;return o.push($),Cle(n,$),x?h:`(?<${g}${S}>`}return jn`\k<${I}${S}>`},un.DEFAULT)}return c}function Cle(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function wB(e,t,r,a,n,o){if(e.size&&a){let i=0;H5(t,_B,()=>i++,un.DEFAULT);let s=o-i+n,u=new Map;return e.forEach((c,f)=>{let p=(a-i*r)/r,h=i*r,g=f>s+i?f+a:f,x=[];for(let I of c)if(I<=s)x.push(I);else if(I>s+i+p)x.push(I+a);else if(I<=s+i)for(let S=0;S<=r;S++)x.push(I+i*S);else for(let S=0;S<=r;S++)x.push(I+h+p*S);u.set(g,x)}),u}return e}var pr=String.fromCodePoint,Ve=String.raw,ua={},Yy=globalThis.RegExp;ua.flagGroups=(()=>{try{new Yy("(?i:)")}catch{return!1}return!0})();ua.unicodeSets=(()=>{try{new Yy("[[]]","v")}catch{return!1}return!0})();ua.bugFlagVLiteralHyphenIsRange=ua.unicodeSets?(()=>{try{new Yy(Ve`[\d\-a]`,"v")}catch{return!0}return!1})():!1;ua.bugNestedClassIgnoresNegation=ua.unicodeSets&&new Yy("[[^a]]","v").test("a");function Xy(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function jp(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function nC(e,t){return SB[e]>=SB[t]}function Tle(e,t){if(e==null)throw new Error(t??"Value expected");return e}var SB={ES2025:2025,ES2024:2024,ES2018:2018},Ple={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function $B(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!Ple[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=ua.flagGroups?"ES2025":ua.unicodeSets?"ES2024":"ES2018"),t}var $le="[ -\r ]",Lle=new Set([pr(304),pr(305)]),Do=Ve`[\p{L}\p{M}\p{N}\p{Pc}]`;function LB(e){if(Lle.has(e))return[e];let t=new Set,r=e.toLowerCase(),a=r.toUpperCase(),n=Mle.get(r),o=Ale.get(r),i=Ele.get(r);return[...a].length===1&&t.add(a),i&&t.add(i),n&&t.add(n),t.add(r),o&&t.add(o),[...t]}var oC=new Map(`C Other 165Cc Control cntrl 166Cf Format 167Cn Unassigned 168Co Private_Use 169Cs Surrogate 170L Letter 171LC Cased_Letter 172Ll Lowercase_Letter 173Lm Modifier_Letter 174Lo Other_Letter 175Lt Titlecase_Letter 176Lu Uppercase_Letter 177M Mark Combining_Mark 178Mc Spacing_Mark 179Me Enclosing_Mark 180Mn Nonspacing_Mark 181N Number 182Nd Decimal_Number digit 183Nl Letter_Number 184No Other_Number 185P Punctuation punct 186Pc Connector_Punctuation 187Pd Dash_Punctuation 188Pe Close_Punctuation 189Pf Final_Punctuation 190Pi Initial_Punctuation 191Po Other_Punctuation 192Ps Open_Punctuation 193S Symbol 194Sc Currency_Symbol 195Sk Modifier_Symbol 196Sm Math_Symbol 197So Other_Symbol 198Z Separator 199Zl Line_Separator 200Zp Paragraph_Separator 201Zs Space_Separator 202ASCII 203ASCII_Hex_Digit AHex 204Alphabetic Alpha 205Any 206Assigned 207Bidi_Control Bidi_C 208Bidi_Mirrored Bidi_M 209Case_Ignorable CI 210Cased 211Changes_When_Casefolded CWCF 212Changes_When_Casemapped CWCM 213Changes_When_Lowercased CWL 214Changes_When_NFKC_Casefolded CWKCF 215Changes_When_Titlecased CWT 216Changes_When_Uppercased CWU 217Dash 218Default_Ignorable_Code_Point DI 219Deprecated Dep 220Diacritic Dia 221Emoji 222Emoji_Component EComp 223Emoji_Modifier EMod 224Emoji_Modifier_Base EBase 225Emoji_Presentation EPres 226Extended_Pictographic ExtPict 227Extender Ext 228Grapheme_Base Gr_Base 229Grapheme_Extend Gr_Ext 230Hex_Digit Hex 231IDS_Binary_Operator IDSB 232IDS_Trinary_Operator IDST 233ID_Continue IDC 234ID_Start IDS 235Ideographic Ideo 236Join_Control Join_C 237Logical_Order_Exception LOE 238Lowercase Lower 239Math 240Noncharacter_Code_Point NChar 241Pattern_Syntax Pat_Syn 242Pattern_White_Space Pat_WS 243Quotation_Mark QMark 244Radical 245Regional_Indicator RI 246Sentence_Terminal STerm
247Soft_Dotted SD 248Terminal_Punctuation Term 249Unified_Ideograph UIdeo 250Uppercase Upper 251Variation_Selector VS 252White_Space space 253XID_Continue XIDC 254XID_Start XIDS`.split(/\s/).map(e=>[dc(e),e])),Ale=new Map([["s",pr(383)],[pr(383),"s"]]),Ele=new Map([[pr(223),pr(7838)],[pr(107),pr(8490)],[pr(229),pr(8491)],[pr(969),pr(8486)]]),Mle=new Map([Zi(453),Zi(456),Zi(459),Zi(498),...Q5(8072,8079),...Q5(8088,8095),...Q5(8104,8111),Zi(8124),Zi(8140),Zi(8188)]),Rle=new Map([["alnum",Ve`[\p{Alpha}\p{Nd}]`],["alpha",Ve`\p{Alpha}`],["ascii",Ve`\p{ASCII}`],["blank",Ve`[\p{Zs}\t]`],["cntrl",Ve`\p{Cc}`],["digit",Ve`\p{Nd}`],["graph",Ve`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Ve`\p{Lower}`],["print",Ve`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Ve`[\p{P}\p{S}]`],["space",Ve`\p{space}`],["upper",Ve`\p{Upper}`],["word",Ve`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Ve`\p{AHex}`]]);function zle(e,t){let r=[];for(let a=e;a<=t;a++)r.push(a);return r}function Zi(e){let t=pr(e);return[t.toLowerCase(),t]}function Q5(e,t){return zle(e,t).map(r=>Zi(r))}var AB=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Dle(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};EB(e);let a={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:nC(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};nl(e,Nle,a);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},o={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};nl(e,Ole,o);let i={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return nl(e,Ule,i),e._originMap=o.groupOriginByCopy,e._strategy=a.strategy,e}var Nle={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:a,kind:n}=e;if(n==="repeater"){let o=Sn();o.body[0].body.push(ji({negate:!0,body:a}),rl("Any"));let i=Sn();i.body[0].body.push(q5("greedy",0,1/0,o)),r(er(i,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:a}){let n=e.body.filter(o=>o.kind==="flags");for(let o=r+1;o<t.body.length;o++){let i=t.body[o];jp(a,i,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=RB(t.get(e));if(r){let a=Sn({flags:r});a.body[0].body=e.body,e.body=[er(a,e)]}}}},Assertion({node:e,parent:t,key:r,container:a,root:n,remove:o,replaceWith:i},s){let{kind:u,negate:c}=e,{asciiWordBoundaries:f,avoidSubclass:p,supportedGNodes:h,wordIsAscii:g}=s;if(u==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${c?"Y":"y"}"`);if(u==="line_end")i(er(ji({body:[zo({body:[Hy("string_end")]}),zo({body:[cc(10)]})]}),t));else if(u==="line_start")i(er(No(Ve`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(u==="search_start")if(h.has(e))n.flags.sticky=!0,o();else{let x=a[r-1];if(x&&qle(x))i(er(ji({negate:!0}),t));else{if(p)throw new Error(Ve`Uses "\G" in a way that requires a subclass`);i(Vi(Hy("string_start"),t)),s.strategy="clip_search"}}else if(!(u==="string_end"||u==="string_start"))if(u==="string_end_newline")i(er(No(Ve`(?=\n?\z)`),t));else if(u==="word_boundary"){if(!g&&!f){let x=`(?:(?<=${Do})(?!${Do})|(?<!${Do})(?=${Do}))`,I=`(?:(?<=${Do})(?=${Do})|(?<!${Do})(?!${Do}))`;i(er(No(c?I:x),t))}}else throw new Error(`Unexpected assertion kind "${u}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!tC(r)&&(r=eC(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:a}=e;a&&!tC(a)&&(a=eC(a,t),e.name=a),r.set(e.number,e),a&&r.set(a,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let a=Op({body:[e]});r(er(a,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:a,minTargetEs2024:n,digitIsAscii:o,spaceIsAscii:i,wordIsAscii:s}){let{kind:u,negate:c,value:f}=e;
vendor: 15,474 bytes, lines 254-257
254if(o&&(u==="digit"||f==="digit")){r(Vi(Wy("digit",{negate:c}),t));return}if(i&&(u==="space"||f==="space")){r(er(rC(No($le),c),t));return}if(s&&(u==="word"||f==="word")){r(Vi(Wy("word",{negate:c}),t));return}if(u==="any")r(Vi(rl("Any"),t));else if(u==="digit")r(Vi(rl("Nd",{negate:c}),t));else if(u!=="dot")if(u==="text_segment"){if(a==="strict")throw new Error(Ve`Use of "\X" requires non-strict accuracy`);let p="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=Ve`\p{RI}{2}|${p}(?:\u200D${p})*`;r(er(No(Ve`(?>\r\n|${n?Ve`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(u==="hex")r(Vi(rl("AHex",{negate:c}),t));else if(u==="newline")r(er(No(c?`[^ 255]`:`(?>\r 256?|[ 257\v\f\x85\u2028\u2029])`),t));else if(u==="posix")if(!n&&(f==="graph"||f==="print")){if(a==="strict")throw new Error(`POSIX class "${f}" requires min target ES2024 or non-strict accuracy`);let p={graph:"!-~",print:" -~"}[f];c&&(p=`\0-${pr(p.codePointAt(0)-1)}${pr(p.codePointAt(2)+1)}-\u{10FFFF}`),r(er(No(`[${p}]`),t))}else r(er(rC(No(Rle.get(f)),c),t));else if(u==="property")oC.has(dc(f))||(e.key="sc");else if(u==="space")r(Vi(rl("space",{negate:c}),t));else if(u==="word")r(er(rC(No(Do),c),t));else throw new Error(`Unexpected character set kind "${u}"`)},Directive({node:e,parent:t,root:r,remove:a,replaceWith:n,removeAllPrevSiblings:o,removeAllNextSiblings:i}){let{kind:s,flags:u}=e;if(s==="flags")if(!u.enable&&!u.disable)a();else{let c=Sn({flags:u});c.body[0].body=i(),n(er(c,t),{traverse:!0})}else if(s==="keep"){let c=r.body[0],p=r.body.length===1&&Vy(c,{type:"Group"})&&c.body[0].body.length===1?c.body[0]:r;if(t.parent!==p||p.body.length>1)throw new Error(Ve`Uses "\K" in a way that's unsupported`);let h=ji({behind:!0});h.body[0].body=o(),n(er(h,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:a}=e;if(a==="fail")r(er(ji({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=Sn();t.body[0].body.push(e.body),e.body=er(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],a=!1,n=!1;for(let o of e.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{let i=DB(o.body);i?(a=!0,Array.isArray(i)?r.push(...i):r.push(i)):n=!0}a&&!n&&r.forEach(o=>t.add(o))},exit(e,{accuracy:t,passedLookbehind:r,strategy:a}){if(t==="strict"&&r&&a)throw new Error(Ve`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!tC(r)&&(r=eC(r,t),e.ref=r)}},Ole={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:a,ref:n}=e;a||r.set(e,[...t.get(n).map(({node:o})=>o)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:a},{groupOriginByCopy:n,groupsByName:o,multiplexCapturesToLeftByRef:i,openRefs:s,reffedNodesByReferencer:u}){let c=n.get(e);if(c&&s.has(e.number)){let p=Vi(IB(e.number),t);u.set(p,s.get(e.number)),r(p);return}s.set(e.number,e),i.set(e.number,[]),e.name&&jp(i,e.name,[]);let f=i.get(e.name??e.number);for(let p=0;p<f.length;p++){let h=f[p];if(c===h.node||c&&c===h.origin||e===h.origin){f.splice(p,1);break}}if(i.get(e.number).push({node:e,origin:c}),e.name&&i.get(e.name).push({node:e,origin:c}),e.name){let p=jp(o,e.name,new Map),h=!1;if(c)h=!0;else for(let g of p.values())if(!g.hasDuplicateNameToRemove){h=!0;break}o.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:h})}},exit({node:e},{openRefs:t}){t.delete(e.number)}},Group:{enter({node:e},t){t.prevFlags=t.currentFlags,e.flags&&(t.currentFlags=Xy(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},a){let{isRecursive:n,ref:o}=e;if(n){let f=t;for(;(f=f.parent)&&!(f.type==="CapturingGroup"&&(f.name===o||f.number===o)););a.reffedNodesByReferencer.set(e,f);return}let i=a.subroutineRefMap.get(o),s=o===0,u=s?IB(0):MB(i,a.groupOriginByCopy,null),c=u;if(!s){let f=RB(jle(i,h=>h.type==="Group"&&!!h.flags)),p=f?Xy(a.globalFlags,f):a.globalFlags;Ble(p,a.currentFlags)||(c=Sn({flags:Zle(p)}),c.body[0].body.push(u))}r(er(c,t),{traverse:!s})}},Ule={Backreference({node:e,parent:t,replaceWith:r},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}let o=a.reffedNodesByReferencer.get(e).filter(i=>Fle(i,e));if(!o.length)r(er(ji({negate:!0}),t));else if(o.length>1){let i=Sn({atomic:!0,body:o.reverse().map(s=>zo({body:[qy(s.number)]}))});r(er(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 a=0;a<r;a++){let n=V5();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function EB(e){nl(e,{"*"({node:t,parent:r}){t.parent=r}})}function Ble(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Fle(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let a=zB(r.parent);for(let n of a){if(n===r)break;if(n===e||NB(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function MB(e,t,r,a){let n=Array.isArray(e)?[]:{};for(let[o,i]of Object.entries(e))o==="parent"?n.parent=Array.isArray(r)?a:r:i&&typeof i=="object"?n[o]=MB(i,t,n,r):(o==="type"&&i==="CapturingGroup"&&t.set(n,t.get(e)??e),n[o]=i);return n}function IB(e){let t=G5(e);return t.isRecursive=!0,t}function jle(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function eC(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 RB(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:a})=>{t.forEach(n=>{a.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),a.disable?.[n]&&(r.disable[n]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function Zle({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 zB(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function DB(e){let t=e.find(r=>r.kind==="search_start"||Gle(r,{negate:!1})||!Vle(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 a of t.body){let n=DB(a.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function NB(e,t){let r=zB(e)??[];for(let a of r)if(a===t||NB(a,t))return!0;return!1}function Vle({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function qle(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Gle(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Vy(e.body[0],{type:"Assertion",kind:"search_start"})}function tC(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function No(e,t){let a=Gy(e,{...t,unicodePropertyMap:oC}).body;return a.length>1||a[0].body.length>1?Sn({body:a}):a[0].body[0]}function rC(e,t){return e.negate=t,e}function Vi(e,t){return e.parent=t,e}function er(e,t){return EB(e),e.parent=t,e}function Hle(e,t){let r=$B(t),a=nC(r.target,"ES2024"),n=nC(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(!n){let g=[e.flags.ignoreCase];nl(e,Wle,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(x){g.push(x)},setHasCasedChar(){g.at(-1)?i=!0:s=!0}})}let u={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||i)&&!s)},c=e,f={accuracy:r.accuracy,appliedGlobalFlags:u,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:c,originMap:e._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!n&&i&&s),useFlagMods:n,useFlagV:a,verbose:r.verbose};function p(g){return f.lastNode=c,c=g,Tle(Jle[g.type],`Unexpected node type "${g.type}"`)(g,f,p)}let h={pattern:e.body.map(p).join("|"),flags:p(e.flags),options:{...e.options}};return a||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],f.captureMap.forEach((g,x)=>{g.hidden&&h._hiddenCaptures.push(x),g.transferTo&&jp(h._captureTransfers,g.transferTo,[]).push(x)}),h}var Wle={"*":{enter({node:e},t){if(TB(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Xy({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){TB(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){iC(pr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),OB(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&AB.has(e.value)&&t.setHasCasedChar()}},Jle={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?Ve`\B`:Ve`\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:a,name:n,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),`(${n?`?<${n}>`:""}${a.map(r).join("|")})`},Character({value:e},t){let r=pr(e),a=pc(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(a!==r)return a;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&iC(r)){let n=LB(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:a,negate:n,parent:o}=e,{body:i}=e;if(a==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");ua.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&i.some(PB)&&(i=[cc(45),...i.filter(c=>!PB(c))]);let s=()=>`[${n?"^":""}${i.map(r).join(a==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||ua.bugNestedClassIgnoresNegation)&&!n){let f=i.filter(p=>p.type==="CharacterClass"&&p.kind==="union"&&p.negate);if(f.length){let p=Sn(),h=p.body[0];return p.parent=o,h.parent=p,i=i.filter(g=>!f.includes(g)),e.body=i,i.length?(e.parent=h,h.body.push(e)):p.body.pop(),f.forEach(g=>{let x=zo({body:[g]});g.parent=x,x.parent=p,p.body.push(x)}),r(p)}}t.inCharClass=!0;let c=s();return t.inCharClass=!1,c}let u=i[0];if(a==="union"&&!n&&u&&((!t.useFlagV||!t.verbose)&&o.kind==="union"&&!(ua.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&o.kind==="intersection"&&i.length===1&&u.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,a=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},o=pc(r,n),i=pc(a,n),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let u=OB(e);eue(u).forEach(f=>{s.add(Array.isArray(f)?`${pc(f[0],n)}-${pc(f[1],n)}`:pc(f,n))})}return`${o}-${i}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:a},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":Ve`[^\n]`;if(e==="digit")return t?Ve`\D`:Ve`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&AB.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?Ve`\P`:Ve`\p`}{${a?`${a}=`:""}${r}}`}if(e==="word")return t?Ve`\W`:Ve`\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:a},n,o){let i=n.currentFlags;r&&(n.currentFlags=Xy(i,r));let s=t.map(o).join("|"),u=!n.verbose&&t.length===1&&a.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?s:`(?${tue(e,r,n.useFlagMods)}${s})`;return n.currentFlags=i,u},LookaroundAssertion({body:e,kind:t,negate:r},a,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+rue(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let a=r.recursionLimit;return t===0?`(?R=${a})`:Ve`\g<${t}&R=${a}>`}},Kle=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),Xle=new Set(["-","\\","]","^","["]),Yle=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),CB=new Map([[9,Ve`\t`],[10,Ve`\n`],[11,Ve`\v`],[12,Ve`\f`],[13,Ve`\r`],[8232,Ve`\u2028`],[8233,Ve`\u2029`],[65279,Ve`\uFEFF`]]),Qle=/^\p{Cased}$/u;function iC(e){return Qle.test(e)}function OB(e,t){let r=!!t?.firstOnly,a=e.min.value,n=e.max.value,o=[];if(a<65&&(n===65535||n>=131071)||a===65536&&n>=131071)return o;for(let i=a;i<=n;i++){let s=pr(i);if(!iC(s))continue;let u=LB(s).filter(c=>{let f=c.codePointAt(0);return f<a||f>n});if(u.length&&(o.push(...u),r))break}return o}function pc(e,{escDigit:t,inCharClass:r,useFlagV:a}){if(CB.has(e))return CB.get(e);if(e<32||e>126&&e<160||e>262143||t&&nue(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?a?Yle:Xle:Kle,o=pr(e);return(n.has(o)?"\\":"")+o}function eue(e){let t=e.map(n=>n.codePointAt(0)).sort((n,o)=>n-o),r=[],a=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?a??=t[n]:a===null?r.push(t[n]):(r.push([a,t[n]]),a=null);return r}function tue(e,t,r){if(e)return">";let a="";if(t&&r){let{enable:n,disable:o}=t;a=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${a}:`}function rue({kind:e,max:t,min:r}){let a;return!r&&t===1?a="?":!r&&t===1/0?a="*":r===1&&t===1/0?a="+":r===t?a=`{${r}}
257`:a=`{${r},${t===1/0?"":t}}`,a+{greedy:"",lazy:"?",possessive:"+"}[e]}function TB({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function nue(e){return e>47&&e<58}function PB({type:e,value:t}){return e==="Character"&&t===45}var aue=class aC extends RegExp{#t=new Map;#e=null;#n;#r=null;#a=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,a){let n=!!a?.lazyCompile;if(t instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");let o=t;super(o,r),this.#n=o.source,o instanceof aC&&(this.#t=o.#t,this.#r=o.#r,this.#a=o.#a,this.rawOptions=o.rawOptions)}else{let o={hiddenCaptures:[],strategy:null,transfers:[],...a};super(n?"":t,r),this.#n=t,this.#t=iue(o.hiddenCaptures,o.transfers),this.#a=o.strategy,this.rawOptions=a??{}}n||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:n,...o}=this.rawOptions;this.#e=new aC(this.#n,this.flags,o)}let r=this.global||this.sticky,a=this.lastIndex;if(this.#a==="clip_search"&&r&&a){this.lastIndex=0;let n=this.#o(t.slice(a));return n&&(oue(n,a,t,this.hasIndices),this.lastIndex+=a),n}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 a=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);let o=[0];for(let i=1;i<a.length;i++){let{hidden:s,transferTo:u}=this.#t.get(i)??{};if(s?o.push(null):(o.push(r.length),r.push(a[i]),this.hasIndices&&r.indices.push(n[i])),u&&a[i]!==void 0){let c=o[u];if(!c)throw new Error(`Invalid capture transfer to "${c}"`);if(r[c]=a[i],this.hasIndices&&(r.indices[c]=n[i]),r.groups){this.#r||(this.#r=sue(this.source));let f=this.#r.get(u);f&&(r.groups[f]=a[i],this.hasIndices&&(r.indices.groups[f]=n[i]))}}}return r}};function oue(e,t,r,a){if(e.index+=t,e.input=r,a){let n=e.indices;for(let i=0;i<n.length;i++){let s=n[i];s&&(n[i]=[s[0]+t,s[1]+t])}let o=n.groups;o&&Object.keys(o).forEach(i=>{let s=o[i];s&&(o[i]=[s[0]+t,s[1]+t])})}}function iue(e,t){let r=new Map;for(let a of e)r.set(a,{hidden:!0});for(let[a,n]of t)for(let o of n)jp(r,o,{}).transferTo=a;return r}function sue(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,a=0,n=0,o;for(;o=t.exec(e);){let{0:i,groups:{capture:s,name:u}}=o;i==="["?a++:a?i==="]"&&a--:s&&(n++,u&&r.set(n,u))}return r}function UB(e,t){let r=lue(e,t);return r.options?new aue(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function lue(e,t){let r=$B(t),a=Gy(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:oC}),n=Dle(a,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),o=Hle(n,r),i=kB(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),s=K5(i.pattern),u=J5(s.pattern,{captureTransfers:i.captureTransfers,hiddenCaptures:i.hiddenCaptures}),c={pattern:u.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 f=u.hiddenCaptures.sort((x,I)=>x-I),p=Array.from(u.captureTransfers),h=n._strategy,g=c.pattern.length>=r.lazyCompileLength;(f.length||p.length||h||g)&&(c.options={...f.length&&{hiddenCaptures:f},...p.length&&{transfers:p},...h&&{strategy:h},...g&&{lazyCompile:g}})}return c}function BB(e,t){return UB(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function sC(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>BB(r,{target:t.target}),{createScanner(r){return new HU(r,t)},createString(r){return{content:r}}}}var FB=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
257sForeground":"#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
257d":"#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
257d":"#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 jB=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
257sForeground":"#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
257d":"#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
257d":"#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 uue="https://esm.sh/@shikijs/[email protected]/",lC=null;function cue(){return lC||(lC=GU({themes:[jB,FB],langs:[],engine:sC()})),lC}var ZB=new Set,uC=new Map;async function due(e,t){if(ZB.has(t))return;let r=uC.get(t);if(r)return r;let a=(async()=>{try{let n=await import(`${uue}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{ZB.add(t),uC.delete(t)}})();return uC.set(t,a),a}async function VB(e){let t=await cue();return await due(t,e),t}var qB=["github-light","github-dark"],GB=new Map,mc=new Map;function fue(e,t,r){let a=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${a}:${n}`}function pue(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}
257var HB={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[qB[0],qB[1]]},highlight(e,t){let{code:r,language:a}=e,n=pue(e.themes),o=fue(r,a,n),i=GB.get(o);return i||(t&&(mc.has(o)||mc.set(o,new Set),mc.get(o).add(t)),VB(a).then(s=>{let u=s.getLoadedLanguages().includes(a)?a:"text",c=s.codeToTokens(r,{lang:u,themes:{light:n[0],dark:n[1]}}),f={bg:c.bg??void 0,fg:c.fg??void 0,tokens:c.tokens};GB.set(o,f);let p=mc.get(o);if(p){for(let h of p)h(f);mc.delete(o)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),mc.delete(o)}),null)}};function cC(e,t){return JB(e,t||{})||{type:"root",children:[]}}function JB(e,t){let r=mue(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function mue(e,t){switch(e.nodeType){case 1:return yue(e,t);case 3:return gue(e);case 8:return vue(e);case 9:return WB(e,t);case 10:return hue();case 11:return WB(e,t);default:return}}function WB(e,t){return{type:"root",children:KB(e,t)}}function hue(){return{type:"doctype"}}function gue(e){return{type:"text",value:e.nodeValue||""}}function vue(e){return{type:"comment",value:e.nodeValue||""}}function yue(e,t){let r=e.namespaceURI,a=r===Rm.svg?DT:zT,n=r===Rm.html?e.tagName.toLowerCase():e.tagName,o=r===Rm.html&&n==="template"?e.content:e,i=e.getAttributeNames(),s={},u=-1;for(;++u<i.length;)s[i[u]]=e.getAttribute(i[u])||"";return a(n,s,KB(o,t))}function KB(e,t){let r=e.childNodes,a=[],n=-1;for(;++n<r.length;){let o=JB(r[n],t);o!==void 0&&a.push(o)}return a}var xue=new DOMParser;function XB(e,t){let r=t?.fragment?bue(e):xue.parseFromString(e,"text/html");return cC(r)}function bue(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var Qy=(function(e,t,r){let a=IT(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(a(e.children[t],t,e))return e.children[t]});var Oo=(function(e){if(e==null)return kue;if(typeof e=="string")return _ue(e);if(typeof e=="object")return wue(e);if(typeof e=="function")return dC(e);throw new Error("Expected function, string, or array as `test`")});function wue(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Oo(e[r]);return dC(a);function a(...n){let o=-1;for(;++o<t.length;)if(t[o].apply(this,n))return!0;return!1}}function _ue(e){return dC(t);function t(r){return r.tagName===e}}function dC(e){return t;function t(r,a,n){return!!(Sue(r)&&e.call(this,r,typeof a=="number"?a:void 0,n||void 0))}}function kue(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Sue(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var YB=/\n/g,QB=/[\t ]+/g,fC=Oo("br"),eF=Oo(Aue),Iue=Oo("p"),tF=Oo("tr"),Cue=Oo(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Lue,Eue]),rF=Oo(["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 pC(e,t){let r=t||{},a="children"in e?e.children:[],n=rF(e),o=oF(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),i=[];(e.type==="text"||e.type==="comment")&&i.push(...aF(e,{whitespace:o,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<a.length;)i.push(...nF(a[s],e,{whitespace:o,breakBefore:s?void 0:n,breakAfter:s<a.length-1?fC(a[s+1]):n}));let u=[],c;for(s=-1;++s<i.length;){let f=i[s];typeof f=="number"?c!==void 0&&f>c&&(c=f):f&&(c!==void 0&&c>-1&&u.push(` 258`.repeat(c)||" "),c=-1,u.push(f))}return u.join("")}function nF(e,t,r){return e.type==="element"?Tue(e,t,r):e.type==="text"?r.whitespace==="normal"?aF(e,r):Pue(e):[]}function Tue(e,t,r){let a=oF(e,r),n=e.children||[],o=-1,i=[];if(Cue(e))return i;let s,u;for(fC(e)||tF(e)&&Qy(t,e,tF)?u=` 259`:Iue(e)?(s=2,u=2):rF(e)&&(s=1,u=1);++o<n.length;)i=i.concat(nF(n[o],e,{whitespace:a,breakBefore:o?void 0:s,breakAfter:o<n.length-1?fC(n[o+1]):u}));return eF(e)&&Qy(t,e,eF)&&i.push(" "),s&&i.unshift(s),u&&i.push(u),i}function aF(e,t){let r=String(e.value),a=[],n=[],o=0;for(;o<=r.length;){YB.lastIndex=o;let u=YB.exec(r),c=u&&"index"in u?u.index:r.length;a.push($ue(r.slice(o,c).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,c===r.length?t.breakAfter:!0)),o=c+1}let i=-1,s;for(;++i<a.length;
259)a[i].charCodeAt(a[i].length-1)===8203||i<a.length-1&&a[i+1].charCodeAt(0)===8203?(n.push(a[i]),s=void 0):a[i]?(typeof s=="number"&&n.push(s),n.push(a[i]),s=0):(i===0||i===a.length-1)&&n.push(0);return n}function Pue(e){return[String(e.value)]}function $ue(e,t,r){let a=[],n=0,o;for(;n<e.length;){QB.lastIndex=n;let i=QB.exec(e);o=i?i.index:e.length,!n&&!o&&i&&!t&&a.push(""),n!==o&&a.push(e.slice(n,o)),n=i?o+i[0].length:o}return n!==o&&!r&&a.push(""),a.join(" ")}function oF(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 Lue(e){return!!(e.properties||{}).hidden}function Aue(e){return e.tagName==="td"||e.tagName==="th"}function Eue(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var se=class e extends Error{constructor(t,r){var a="KaTeX parse error: "+t,n,o,i=r&&r.loc;if(i&&i.start<=i.end){var s=i.lexer.input;n=i.start,o=i.end,n===s.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var u=s.slice(n,o).replace(/[^]/g,"$&\u0332"),c;n>15?c="\u2026"+s.slice(n-15,n):c=s.slice(0,n);var f;o+15<s.length?f=s.slice(o,o+15)+"\u2026":f=s.slice(o),a+=c+u+f}super(a),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&o!=null&&(this.length=o-n),this.rawMessage=t}},Mue=/([A-Z])/g,VC=e=>e.replace(Mue,"-$1").toLowerCase(),Rue={"&":"&",">":">","<":"<",'"':""","'":"'"},zue=/[&><"']/g,Er=e=>String(e).replace(zue,t=>Rue[t]),dx=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?dx(e.body[0]):e:e.type==="font"?dx(e.body):e,Due=new Set(["mathord","textord","atom"]),jo=e=>Due.has(dx(e).type),Nue=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"},PC={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 Oue(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 Hp=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(PC)){var a=PC[r],n=t[r];this[r]=n!==void 0?a.processor?a.processor(n):n:Oue(a)}}reportNonstrict(t,r,a){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,a)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new se("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),a);n==="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 '"+n+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,a){var n=this.strict;if(typeof n=="function")try{n=n(t,r,a)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="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 '"+n+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=Nue(t.url);if(r==null)return!1;t.protocol=r}var a=typeof this.trust=="function"?this.trust(t):this.trust;return!!a}},Fa=class{constructor(t,r,a){this.id=t,this.size=r,this.cramped=a}sup(){return ja[Uue[this.id]]}sub(){return ja[Bue[this.id]]}fracNum(){return ja[Fue[this.id]]}fracDen(){return ja[jue[this.id]]}cramp(){return ja[Zue[this.id]]}text(){return ja[Vue[this.id]]}isTight(){return this.size>=2}},qC=0,px=1,gc=2,Fo=3,Wp=4,Zn=5,vc=6,Gr=7,ja=[new Fa(qC,0,!1),new Fa(px,0,!0),new Fa(gc,1,!1),new Fa(Fo,1,!0),new Fa(Wp,2,!1),new Fa(Zn,2,!0),new Fa(vc,3,!1),new Fa(Gr,3,!0)],Uue=[Wp,Zn,Wp,Zn,vc,Gr,vc,Gr],Bue=[Zn,Zn,Zn,Zn,Gr,Gr,Gr,Gr],Fue=[gc,Fo,Wp,Zn,vc,Gr,vc,Gr],jue=[Fo,Fo,Zn,Zn,Gr,Gr,Gr,Gr],Zue=[px,px,Fo,Fo,Zn,Zn,Gr,Gr],Vue=[qC,px,gc,Fo,gc,Fo,gc,Fo],Be={DISPLAY:ja[qC],TEXT:ja[gc],SCRIPT:ja[Wp],SCRIPTSCRIPT:ja[vc]},$C=[{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 que(e){for(var t=0;t<$C.length;t++)for(var r=$C[t],a=0;a<r.blocks.length;a++){var n=r.blocks[a];if(e>=n[0]&&e<=n[1])return r.name}return null}var fx=[];
vendor: 4,440 bytes, lines 259-310
259$C.forEach(e=>e.blocks.forEach(t=>fx.push(...t)));function zF(e){for(var t=0;t<fx.length;t+=2)if(e>=fx[t]&&e<=fx[t+1])return!0;return!1}var hc=80,Gue=function(t,r){return"M95,"+(622+t+r)+` 260c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 261c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 262c44.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 263s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 264c69,-144,104.5,-217.7,106.5,-221 265l`+t/2.075+" -"+t+` 266c5.3,-9.3,12,-14,20,-14 267H400000v`+(40+t)+`H845.2724 268s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 269c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 270M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Hue=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 271c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 272c340,-704.7,510.7,-1060.3,512,-1067 273l`+t/2.084+" -"+t+` 274c4.7,-7.3,11,-11,19,-11 275H40000v`+(40+t)+`H1012.3 276s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 277c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 278s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 279c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 280M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Wue=function(t,r){return"M983 "+(10+t+r)+` 281l`+t/3.13+" -"+t+` 282c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 283H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 284s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 285c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 286c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 287c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 288c53.7,-170.3,84.5,-266.8,92.5,-289.5z 289M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Jue=function(t,r){return"M424,"+(2398+t+r)+` 290c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 291c0,-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 292s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 293s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 294l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 295v`+(40+t)+`H1014.6 296s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 297c-2,6,-10,9,-24,9 298c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` 299h400000v`+(40+t)+"h-400000z"},Kue=function(t,r){return"M473,"+(2713+t+r)+` 300c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 301c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 302s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 303c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 304c0,-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 305s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 306606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},Xue=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},Yue=function(t,r,a){var n=a-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` 307H742v`+n+`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 308h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 309c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 310219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},Que=function(t,r,a){r=1e3*r;var n="";switch(t){case"sqrtMain":n=Gue(r,hc);break;case"sqrtSize1":n=Hue(r,hc);break;case"sqrtSize2":n=Wue(r,hc);break;case"sqrtSize3":n=Jue(r,hc);break;case"sqrtSize4":n=Kue(r,hc);break;case"sqrtTall":n=Yue(r,hc,a)}return n},ece=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""}},iF
vendor: 10,493 bytes, lines 310-431
310={doubleleftarrow:`M262 157 311l10-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 312 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 313 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 314c2 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 315 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 316-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 317-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 318m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 319-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 320 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 321-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 322-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 323-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 324c-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 325-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 326 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 327-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 328c-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 329 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 330 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 331 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 332-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 333 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 334 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 335 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 336-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 337H435C64 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 338 435 0h399565z`,leftgroupunder:`M400000 262 339H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 340 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 341-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 342-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 343-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 344 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 345-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 346-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 347m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 348 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 349 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 350-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 351 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 352-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 353v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 354-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 355-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 356 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 357M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z 358M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z 359M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 360M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 361-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 362c28.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 363 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 364M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 365c-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 366-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 367 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 368 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 369c100.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 370 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 371 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 372-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 373-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 374m368.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 37560.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 376-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 377m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 378c0 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 379-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 380m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 38185.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 382-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 383m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 384c0 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 385-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 386 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 387 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 388-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 389-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 390 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 391-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 392s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 393c124.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 394 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 395-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 396 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 397 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 398-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 399-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 400 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 401-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 402 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 403m0 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 404 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 405-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 406-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 407 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 408 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 409-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 410m0-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 411 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 412-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 413 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 414M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z 415M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z 416M399995 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 417 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 418-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 419-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 420 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 421-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 422-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 423-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 424 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 425c-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 426 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 427 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 428-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 429 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 430-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 431 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 431-489
4316.525 0 432 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 433-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 434-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 435 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 436c1 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 437 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 438-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 439 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 440 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 441 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 442-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 443 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 444 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 445 -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 4463.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 44710.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 448-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 449-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 450H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 451c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 452c-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 453-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 454-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 455-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, 456-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, 457-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, 458-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, 459-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 460c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 461c-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 462s-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 463121.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 464s2.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 465c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 466M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 467-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 46813.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 469-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 470-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 471-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 472151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 473c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 474c2,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 475c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 476c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 477M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 478c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 479-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 480c-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 481M0 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 482c1.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, 4831c0,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, 484-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 485M93 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 486c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 487-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 488c-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 489M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 6,037 bytes, lines 489-517
489tce=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 490H403z 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 491M347 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 492c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 493c-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 494c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 495c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 496M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 497c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 498c-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 499MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 500MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 501M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 502M347 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 503c-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, 504-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 505949.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 506c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 507-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 508l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 509-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, 51063,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 511c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 512c-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 513c-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 514c0,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 515c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 516l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 517-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.")}},Hi=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("")}},LC={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},rce={ex:!0,em:!0,mu:!0},DF=function(t){return typeof t!="string"&&(t=t.unit),t in LC||t in rce||t==="ex"},Gt=function(t,r){var a;if(t.unit in LC)a=LC[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")a=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")a=n.fontMetrics().xHeight;else if(t.unit==="em")a=n.fontMetrics().quad;else throw new se("Invalid unit: '"+t.unit+"'");n!==r&&(a*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*a,r.maxSize)},ce=function(t){return+t.toFixed(4)+"em"},Wi=function(t){return t.filter(r=>r).join(" ")},NF=function(t,r,a){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},OF=function(t){var r=document.createElement(t);r.className=Wi(this.classes);for(var a of Object.keys(this.style))r.style[a]=this.style[a];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},nce=/[\s"'>/=\x00-\x1f]/,UF=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Er(Wi(this.classes))+'"');var a="";for(var n of Object.keys(this.style))a+=VC(n)+":"+this.style[n]+";";a&&(r+=' style="'+Er(a)+'"');for(var o of Object.keys(this.attributes)){if(nce.test(o))throw new se("Invalid attribute name '"+o+"'");r+=" "+o+'="'+Er(this.attributes[o])+'"'}r+=">";for(var i=0;i<this.children.length;i++)r+=this.children[i].toMarkup();return r+="</"+t+">",r},Ji=class{constructor(t,r,a,n){NF.call(this,t,a,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return OF.call(this,"span")}toMarkup(){return UF.call(this,"span")}},yc=class{constructor(t,r,a,n){NF.call(this,r,n),this.children=a||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return OF.call(this,"a")}toMarkup(){return UF.call(this,"a")}},AC=class{constructor(t,r,a){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=a}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="'+Er(this.src)+'"'+(' alt="'+Er(this.alt)+'"'),r="";for(var a of Object.keys(this.style))r+=VC(a)+":"+this.style[a]+";";return r&&(t+=' style="'+Er(r)+'"'),t+="'/>",t}},ace={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Hr=class{constructor(t,r,a,n,o,i,s,u){this.text=t,this.height=r||0,this.depth=a||0,this.italic=n||
vendor: 2,486 bytes, line 517
5170,this.skew=o||0,this.width=i||0,this.classes=s||[],this.style=u||{},this.maxFontSize=0;var c=que(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=ace[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=ce(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Wi(this.classes));for(var a of Object.keys(this.style))r=r||document.createElement("span"),r.style[a]=this.style[a];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Er(Wi(this.classes)),r+='"');var a="";this.italic>0&&(a+="margin-right:"+ce(this.italic)+";");for(var n of Object.keys(this.style))a+=VC(n)+":"+this.style[n]+";";a&&(t=!0,r+=' style="'+Er(a)+'"');var o=Er(this.text);return t?(r+=">",r+=o,r+="</span>",r):o}},ca=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 a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Er(this.attributes[r])+'"';t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</svg>",t}},Va=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",iF[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Er(this.alternate)+'"/>':'<path d="'+Er(iF[this.pathName])+'"/>'}},Jp=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var a of Object.keys(this.attributes))r.setAttribute(a,this.attributes[a]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Er(this.attributes[r])+'"';return t+="/>",t}};function oce(e){if(e instanceof Hr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function ice(e){if(e instanceof Ji)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var sce=e=>e instanceof Ji||e instanceof yc||e instanceof Hi,Za
vendor: 57,629 bytes, line 517
517={"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: 3,037 bytes, line 517
517ex={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]},sF={\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 lce(e,t){Za[e]=t}function GC(e,t,r){if(!Za[t])throw new Error("Font metrics not found for font: "+t+".");var a=e.charCodeAt(0),n=Za[t][a];if(!n&&e[0]in sF&&(a=sF[e[0]].charCodeAt(0),n=Za[t][a]),!n&&r==="text"&&zF(a)&&(n=Za[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var mC={};function uce(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!mC[t]){var r=mC[t]={cssEmPerMu:ex.quad[t]/18};for(var a in ex)ex.hasOwnProperty(a)&&(r[a]=ex[a][t])}return mC[t]}var cce={bin:1,close:1,inner:1,open:1,punct:1,rel:1},dce={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Nt={math:{},text:{}};function y(e,t,r,a,n,o){Nt[e][n]={font:t,group:r,replace:a},o&&a&&(Nt[e][a]=Nt[e][n])}var b="math",X="text",C="main",R="ams",Ot="accent-token",Se="bin",Wr="close",wc="inner",Ae="mathord",sr="op-token",Cn="open",Xp="punct",D="rel",Zo="spacing",U="textord";y(b,C,D,"\u2261","\\equiv",!0);y(b,C,D,"\u227A","\\prec",!0);y(b,C,D,"\u227B","\\succ",!0);y(b,C,D,"\u223C","\\sim",!0);y(b,C,D,"\u22A5","\\perp");y(b,C,D,"\u2AAF","\\preceq",!0);y(b,C,D,"\u2AB0","\\succeq",!0);y(b,C,D,"\u2243","\\simeq",!0);y(b,C,D,"\u2223","\\mid",!0);y(b,C,D,"\u226A","\\ll",!0);y(b,C,D,"\u226B","\\gg",!0);y(b,C,D,"\u224D","\\asymp",!0);y(b,C,D,"\u2225","\\parallel");y(b,C,D,"\u22C8","\\bowtie",!0);y(b,C,D,"\u2323","\\smile",!0);y(b,C,D,"\u2291","\\sqsubseteq",!0);y(b,C,D,"\u2292","\\sqsupseteq",!0);y(b,C,D,"\u2250","\\doteq",!0);y(b,C,D,"\u2322","\\frown",!0);
517y(b,C,D,"\u220B","\\ni",!0);y(b,C,D,"\u221D","\\propto",!0);y(b,C,D,"\u22A2","\\vdash",!0);y(b,C,D,"\u22A3","\\dashv",!0);y(b,C,D,"\u220B","\\owns");y(b,C,Xp,".","\\ldotp");y(b,C,Xp,"\u22C5","\\cdotp");y(b,C,Xp,"\u22C5","\xB7");y(X,C,U,"\u22C5","\xB7");y(b,C,U,"#","\\#");y(X,C,U,"#","\\#");y(b,C,U,"&","\\&");y(X,C,U,"&","\\&");y(b,C,U,"\u2135","\\aleph",!0);y(b,C,U,"\u2200","\\forall",!0);y(b,C,U,"\u210F","\\hbar",!0);y(b,C,U,"\u2203","\\exists",!0);y(b,C,U,"\u2207","\\nabla",!0);y(b,C,U,"\u266D","\\flat",!0);y(b,C,U,"\u2113","\\ell",!0);y(b,C,U,"\u266E","\\natural",!0);y(b,C,U,"\u2663","\\clubsuit",!0);y(b,C,U,"\u2118","\\wp",!0);y(b,C,U,"\u266F","\\sharp",!0);y(b,C,U,"\u2662","\\diamondsuit",!0);y(b,C,U,"\u211C","\\Re",!0);y(b,C,U,"\u2661","\\heartsuit",!0);y(b,C,U,"\u2111","\\Im",!0);y(b,C,U,"\u2660","\\spadesuit",!0);y(b,C,U,"\xA7","\\S",!0);y(X,C,U,"\xA7","\\S");y(b,C,U,"\xB6","\\P",!0);y(X,C,U,"\xB6","\\P");y(b,C,U,"\u2020","\\dag");y(X,C,U,"\u2020","\\dag");y(X,C,U,"\u2020","\\textdagger");y(b,C,U,"\u2021","\\ddag");y(X,C,U,"\u2021","\\ddag");y(X,C,U,"\u2021","\\textdaggerdbl");y(b,C,Wr,"\u23B1","\\rmoustache",!0);y(b,C,Cn,"\u23B0","\\lmoustache",!0);y(b,C,Wr,"\u27EF","\\rgroup",!0);y(b,C,Cn,"\u27EE","\\lgroup",!0);y(b,C,Se,"\u2213","\\mp",!0);y(b,C,Se,"\u2296","\\ominus",!0);y(b,C,Se,"\u228E","\\uplus",!0);y(b,C,Se,"\u2293","\\sqcap",!0);y(b,C,Se,"\u2217","\\ast");y(b,C,Se,"\u2294","\\sqcup",!0);y(b,C,Se,"\u25EF","\\bigcirc",!0);y(b,C,Se,"\u2219","\\bullet",!0);y(b,C,Se,"\u2021","\\ddagger");y(b,C,Se,"\u2240","\\wr",!0);y(b,C,Se,"\u2A3F","\\amalg");y(b,C,Se,"&","\\And");y(b,C,D,"\u27F5","\\longleftarrow",!0);y(b,C,D,"\u21D0","\\Leftarrow",!0);y(b,C,D,"\u27F8","\\Longleftarrow",!0);y(b,C,D,"\u27F6","\\longrightarrow",!0);y(b,C,D,"\u21D2","\\Rightarrow",!0);y(b,C,D,"\u27F9","\\Longrightarrow",!0);y(b,C,D,"\u2194","\\leftrightarrow",!0);y(b,C,D,"\u27F7","\\longleftrightarrow",!0);y(b,C,D,"\u21D4","\\Leftrightarrow",!0);y(b,C,D,"\u27FA","\\Longleftrightarrow",!0);y(b,C,D,"\u21A6","\\mapsto",!0);y(b,C,D,"\u27FC","\\longmapsto",!0);y(b,C,D,"\u2197","\\nearrow",!0);y(b,C,D,"\u21A9","\\hookleftarrow",!0);y(b,C,D,"\u21AA","\\hookrightarrow",!0);y(b,C,D,"\u2198","\\searrow",!0);y(b,C,D,"\u21BC","\\leftharpoonup",!0);y(b,C,D,"\u21C0","\\rightharpoonup",!0);y(b,C,D,"\u2199","\\swarrow",!0);y(b,C,D,"\u21BD","\\leftharpoondown",!0);y(b,C,D,"\u21C1","\\rightharpoondown",!0);y(b,C,D,"\u2196","\\nwarrow",!0);y(b,C,D,"\u21CC","\\rightleftharpoons",!0);y(b,R,D,"\u226E","\\nless",!0);y(b,R,D,"\uE010","\\@nleqslant");y(b,R,D,"\uE011","\\@nleqq");y(b,R,D,"\u2A87","\\lneq",!0);y(b,R,D,"\u2268","\\lneqq",!0);y(b,R,D,"\uE00C","\\@lvertneqq");y(b,R,D,"\u22E6","\\lnsim",!0);y(b,R,D,"\u2A89","\\lnapprox",!0);y(b,R,D,"\u2280","\\nprec",!0);y(b,R,D,"\u22E0","\\npreceq",!0);y(b,R,D,"\u22E8","\\precnsim",!0);y(b,R,D,"\u2AB9","\\precnapprox",!0);y(b,R,D,"\u2241","\\nsim",!0);y(b,R,D,"\uE006","\\@nshortmid");y(b,R,D,"\u2224","\\nmid",!0);y(b,R,D,"\u22AC","\\nvdash",!0);y(b,R,D,"\u22AD","\\nvDash",!0);y(b,R,D,"\u22EA","\\ntriangleleft");y(b,R,D,"\u22EC","\\ntrianglelefteq",!0);y(b,R,D,"\u228A","\\subsetneq",!0);y(b,R,D,"\uE01A","\\@varsubsetneq");y(b,R,D,"\u2ACB","\\subsetneqq",!0);y(b,R,D,"\uE017","\\@varsubsetneqq");y(b,R,D,"\u226F","\\ngtr",!0);y(b,R,D,"\uE00F","\\@ngeqslant");y(b,R,D,"\uE00E","\\@ngeqq");y(b,R,D,"\u2A88","\\gneq",!0);y(b,R,D,"\u2269","\\gneqq",!0);y(b,R,D,"\uE00D","\\@gvertneqq");y(b,R,D,"\u22E7","\\gnsim",!0);y(b,R,D,"\u2A8A","\\gnapprox",!0);y(b,R,D,"\u2281","\\nsucc",!0);y(b,R,D,"\u22E1","\\nsucceq",!0);y(b,R,D,"\u22E9","\\succnsim",!0);y(b,R,D,"\u2ABA","\\succnapprox",!0);y(b,R,D,"\u2246","\\ncong",!0);y(b,R,D,"\uE007","\\@nshortparallel");y(b,R,D,"\u2226","\\nparallel",!0);y(b,R,D,"\u22AF","\\nVDash",!0);y(b,R,D,"\u22EB","\\ntriangleright");y(b,R,D,"\u22ED","\\ntrianglerighteq",!0);y(b,R,D,"\uE018","\\@nsupseteqq");y(b,R,D,"\u228B","\\supsetneq",!0);y(b,R,D,"\uE01B","\\@varsupsetneq");y(b,R,D,"\u2ACC","\\supsetneqq",!0);y(b,R,D,"\uE019","\\@varsupsetneqq");y(b,R,D,"\u22AE","\\nVdash",!0);y(b,R,D,"\u2AB5","\\precneqq",!0);y(b,R,D,"\u2AB6","\\succneqq",!0);
517y(b,R,D,"\uE016","\\@nsubseteqq");y(b,R,Se,"\u22B4","\\unlhd");y(b,R,Se,"\u22B5","\\unrhd");y(b,R,D,"\u219A","\\nleftarrow",!0);y(b,R,D,"\u219B","\\nrightarrow",!0);y(b,R,D,"\u21CD","\\nLeftarrow",!0);y(b,R,D,"\u21CF","\\nRightarrow",!0);y(b,R,D,"\u21AE","\\nleftrightarrow",!0);y(b,R,D,"\u21CE","\\nLeftrightarrow",!0);y(b,R,D,"\u25B3","\\vartriangle");y(b,R,U,"\u210F","\\hslash");y(b,R,U,"\u25BD","\\triangledown");y(b,R,U,"\u25CA","\\lozenge");y(b,R,U,"\u24C8","\\circledS");y(b,R,U,"\xAE","\\circledR");y(X,R,U,"\xAE","\\circledR");y(b,R,U,"\u2221","\\measuredangle",!0);y(b,R,U,"\u2204","\\nexists");y(b,R,U,"\u2127","\\mho");y(b,R,U,"\u2132","\\Finv",!0);y(b,R,U,"\u2141","\\Game",!0);y(b,R,U,"\u2035","\\backprime");y(b,R,U,"\u25B2","\\blacktriangle");y(b,R,U,"\u25BC","\\blacktriangledown");y(b,R,U,"\u25A0","\\blacksquare");y(b,R,U,"\u29EB","\\blacklozenge");y(b,R,U,"\u2605","\\bigstar");y(b,R,U,"\u2222","\\sphericalangle",!0);y(b,R,U,"\u2201","\\complement",!0);y(b,R,U,"\xF0","\\eth",!0);y(X,C,U,"\xF0","\xF0");y(b,R,U,"\u2571","\\diagup");y(b,R,U,"\u2572","\\diagdown");y(b,R,U,"\u25A1","\\square");y(b,R,U,"\u25A1","\\Box");y(b,R,U,"\u25CA","\\Diamond");y(b,R,U,"\xA5","\\yen",!0);y(X,R,U,"\xA5","\\yen",!0);y(b,R,U,"\u2713","\\checkmark",!0);y(X,R,U,"\u2713","\\checkmark");y(b,R,U,"\u2136","\\beth",!0);y(b,R,U,"\u2138","\\daleth",!0);y(b,R,U,"\u2137","\\gimel",!0);y(b,R,U,"\u03DD","\\digamma",!0);y(b,R,U,"\u03F0","\\varkappa");y(b,R,Cn,"\u250C","\\@ulcorner",!0);y(b,R,Wr,"\u2510","\\@urcorner",!0);y(b,R,Cn,"\u2514","\\@llcorner",!0);y(b,R,Wr,"\u2518","\\@lrcorner",!0);y(b,R,D,"\u2266","\\leqq",!0);y(b,R,D,"\u2A7D","\\leqslant",!0);y(b,R,D,"\u2A95","\\eqslantless",!0);y(b,R,D,"\u2272","\\lesssim",!0);y(b,R,D,"\u2A85","\\lessapprox",!0);y(b,R,D,"\u224A","\\approxeq",!0);y(b,R,Se,"\u22D6","\\lessdot");y(b,R,D,"\u22D8","\\lll",!0);y(b,R,D,"\u2276","\\lessgtr",!0);y(b,R,D,"\u22DA","\\lesseqgtr",!0);y(b,R,D,"\u2A8B","\\lesseqqgtr",!0);y(b,R,D,"\u2251","\\doteqdot");y(b,R,D,"\u2253","\\risingdotseq",!0);y(b,R,D,"\u2252","\\fallingdotseq",!0);y(b,R,D,"\u223D","\\backsim",!0);y(b,R,D,"\u22CD","\\backsimeq",!0);y(b,R,D,"\u2AC5","\\subseteqq",!0);y(b,R,D,"\u22D0","\\Subset",!0);y(b,R,D,"\u228F","\\sqsubset",!0);y(b,R,D,"\u227C","\\preccurlyeq",!0);y(b,R,D,"\u22DE","\\curlyeqprec",!0);y(b,R,D,"\u227E","\\precsim",!0);y(b,R,D,"\u2AB7","\\precapprox",!0);y(b,R,D,"\u22B2","\\vartriangleleft");y(b,R,D,"\u22B4","\\trianglelefteq");y(b,R,D,"\u22A8","\\vDash",!0);y(b,R,D,"\u22AA","\\Vvdash",!0);y(b,R,D,"\u2323","\\smallsmile");y(b,R,D,"\u2322","\\smallfrown");y(b,R,D,"\u224F","\\bumpeq",!0);y(b,R,D,"\u224E","\\Bumpeq",!0);y(b,R,D,"\u2267","\\geqq",!0);y(b,R,D,"\u2A7E","\\geqslant",!0);y(b,R,D,"\u2A96","\\eqslantgtr",!0);y(b,R,D,"\u2273","\\gtrsim",!0);y(b,R,D,"\u2A86","\\gtrapprox",!0);y(b,R,Se,"\u22D7","\\gtrdot");y(b,R,D,"\u22D9","\\ggg",!0);y(b,R,D,"\u2277","\\gtrless",!0);y(b,R,D,"\u22DB","\\gtreqless",!0);y(b,R,D,"\u2A8C","\\gtreqqless",!0);y(b,R,D,"\u2256","\\eqcirc",!0);y(b,R,D,"\u2257","\\circeq",!0);y(b,R,D,"\u225C","\\triangleq",!0);y(b,R,D,"\u223C","\\thicksim");y(b,R,D,"\u2248","\\thickapprox");y(b,R,D,"\u2AC6","\\supseteqq",!0);y(b,R,D,"\u22D1","\\Supset",!0);y(b,R,D,"\u2290","\\sqsupset",!0);y(b,R,D,"\u227D","\\succcurlyeq",!0);y(b,R,D,"\u22DF","\\curlyeqsucc",!0);y(b,R,D,"\u227F","\\succsim",!0);y(b,R,D,"\u2AB8","\\succapprox",!0);y(b,R,D,"\u22B3","\\vartriangleright");y(b,R,D,"\u22B5","\\trianglerighteq");y(b,R,D,"\u22A9","\\Vdash",!0);y(b,R,D,"\u2223","\\shortmid");y(b,R,D,"\u2225","\\shortparallel");y(b,R,D,"\u226C","\\between",!0);y(b,R,D,"\u22D4","\\pitchfork",!0);y(b,R,D,"\u221D","\\varpropto");y(b,R,D,"\u25C0","\\blacktriangleleft");y(b,R,D,"\u2234","\\therefore",!0);y(b,R,D,"\u220D","\\backepsilon");y(b,R,D,"\u25B6","\\blacktriangleright");y(b,R,D,"\u2235","\\because",!0);y(b,R,D,"\u22D8","\\llless");y(b,R,D,"\u22D9","\\gggtr");y(b,R,Se,"\u22B2","\\lhd");y(b,R,Se,"\u22B3","\\rhd");y(b,R,D,"\u2242","\\eqsim",!0);y(b,C,D,"\u22C8","\\Join");y(b,R,D,"\u2251","\\Doteq",!0);y(b,R,Se,"\u2214","\\dotplus",!0);y(b,R,Se,"\u2216","\\smallsetminus");y(b,R,Se,"\u22D2","\\Cap",!0);y(b,R,Se,"\u22D3","\\Cup",!0);y(b,R,Se,"\u2A5E","\\doublebarwedge",!0);y(b,R,Se,"\u229F","\\boxminus",!0);y(b,R,Se,"\u229E","\\boxplus",!0);
517y(b,R,Se,"\u22C7","\\divideontimes",!0);y(b,R,Se,"\u22C9","\\ltimes",!0);y(b,R,Se,"\u22CA","\\rtimes",!0);y(b,R,Se,"\u22CB","\\leftthreetimes",!0);y(b,R,Se,"\u22CC","\\rightthreetimes",!0);y(b,R,Se,"\u22CF","\\curlywedge",!0);y(b,R,Se,"\u22CE","\\curlyvee",!0);y(b,R,Se,"\u229D","\\circleddash",!0);y(b,R,Se,"\u229B","\\circledast",!0);y(b,R,Se,"\u22C5","\\centerdot");y(b,R,Se,"\u22BA","\\intercal",!0);y(b,R,Se,"\u22D2","\\doublecap");y(b,R,Se,"\u22D3","\\doublecup");y(b,R,Se,"\u22A0","\\boxtimes",!0);y(b,R,D,"\u21E2","\\dashrightarrow",!0);y(b,R,D,"\u21E0","\\dashleftarrow",!0);y(b,R,D,"\u21C7","\\leftleftarrows",!0);y(b,R,D,"\u21C6","\\leftrightarrows",!0);y(b,R,D,"\u21DA","\\Lleftarrow",!0);y(b,R,D,"\u219E","\\twoheadleftarrow",!0);y(b,R,D,"\u21A2","\\leftarrowtail",!0);y(b,R,D,"\u21AB","\\looparrowleft",!0);y(b,R,D,"\u21CB","\\leftrightharpoons",!0);y(b,R,D,"\u21B6","\\curvearrowleft",!0);y(b,R,D,"\u21BA","\\circlearrowleft",!0);y(b,R,D,"\u21B0","\\Lsh",!0);y(b,R,D,"\u21C8","\\upuparrows",!0);y(b,R,D,"\u21BF","\\upharpoonleft",!0);y(b,R,D,"\u21C3","\\downharpoonleft",!0);y(b,C,D,"\u22B6","\\origof",!0);y(b,C,D,"\u22B7","\\imageof",!0);y(b,R,D,"\u22B8","\\multimap",!0);y(b,R,D,"\u21AD","\\leftrightsquigarrow",!0);y(b,R,D,"\u21C9","\\rightrightarrows",!0);y(b,R,D,"\u21C4","\\rightleftarrows",!0);y(b,R,D,"\u21A0","\\twoheadrightarrow",!0);y(b,R,D,"\u21A3","\\rightarrowtail",!0);y(b,R,D,"\u21AC","\\looparrowright",!0);y(b,R,D,"\u21B7","\\curvearrowright",!0);y(b,R,D,"\u21BB","\\circlearrowright",!0);y(b,R,D,"\u21B1","\\Rsh",!0);y(b,R,D,"\u21CA","\\downdownarrows",!0);y(b,R,D,"\u21BE","\\upharpoonright",!0);y(b,R,D,"\u21C2","\\downharpoonright",!0);y(b,R,D,"\u21DD","\\rightsquigarrow",!0);y(b,R,D,"\u21DD","\\leadsto");y(b,R,D,"\u21DB","\\Rrightarrow",!0);y(b,R,D,"\u21BE","\\restriction");y(b,C,U,"\u2018","`");y(b,C,U,"$","\\$");y(X,C,U,"$","\\$");y(X,C,U,"$","\\textdollar");y(b,C,U,"%","\\%");y(X,C,U,"%","\\%");y(b,C,U,"_","\\_");y(X,C,U,"_","\\_");y(X,C,U,"_","\\textunderscore");y(b,C,U,"\u2220","\\angle",!0);y(b,C,U,"\u221E","\\infty",!0);y(b,C,U,"\u2032","\\prime");y(b,C,U,"\u25B3","\\triangle");y(b,C,U,"\u0393","\\Gamma",!0);y(b,C,U,"\u0394","\\Delta",!0);y(b,C,U,"\u0398","\\Theta",!0);y(b,C,U,"\u039B","\\Lambda",!0);y(b,C,U,"\u039E","\\Xi",!0);y(b,C,U,"\u03A0","\\Pi",!0);y(b,C,U,"\u03A3","\\Sigma",!0);y(b,C,U,"\u03A5","\\Upsilon",!0);y(b,C,U,"\u03A6","\\Phi",!0);y(b,C,U,"\u03A8","\\Psi",!0);y(b,C,U,"\u03A9","\\Omega",!0);y(b,C,U,"A","\u0391");y(b,C,U,"B","\u0392");y(b,C,U,"E","\u0395");y(b,C,U,"Z","\u0396");y(b,C,U,"H","\u0397");y(b,C,U,"I","\u0399");y(b,C,U,"K","\u039A");y(b,C,U,"M","\u039C");y(b,C,U,"N","\u039D");y(b,C,U,"O","\u039F");y(b,C,U,"P","\u03A1");y(b,C,U,"T","\u03A4");y(b,C,U,"X","\u03A7");y(b,C,U,"\xAC","\\neg",!0);y(b,C,U,"\xAC","\\lnot");y(b,C,U,"\u22A4","\\top");y(b,C,U,"\u22A5","\\bot");y(b,C,U,"\u2205","\\emptyset");y(b,R,U,"\u2205","\\varnothing");y(b,C,Ae,"\u03B1","\\alpha",!0);y(b,C,Ae,"\u03B2","\\beta",!0);y(b,C,Ae,"\u03B3","\\gamma",!0);y(b,C,Ae,"\u03B4","\\delta",!0);y(b,C,Ae,"\u03F5","\\epsilon",!0);y(b,C,Ae,"\u03B6","\\zeta",!0);y(b,C,Ae,"\u03B7","\\eta",!0);y(b,C,Ae,"\u03B8","\\theta",!0);y(b,C,Ae,"\u03B9","\\iota",!0);y(b,C,Ae,"\u03BA","\\kappa",!0);y(b,C,Ae,"\u03BB","\\lambda",!0);y(b,C,Ae,"\u03BC","\\mu",!0);y(b,C,Ae,"\u03BD","\\nu",!0);y(b,C,Ae,"\u03BE","\\xi",!0);y(b,C,Ae,"\u03BF","\\omicron",!0);y(b,C,Ae,"\u03C0","\\pi",!0);y(b,C,Ae,"\u03C1","\\rho",!0);y(b,C,Ae,"\u03C3","\\sigma",!0);y(b,C,Ae,"\u03C4","\\tau",!0);y(b,C,Ae,"\u03C5","\\upsilon",!0);y(b,C,Ae,"\u03D5","\\phi",!0);y(b,C,Ae,"\u03C7","\\chi",!0);y(b,C,Ae,"\u03C8","\\psi",!0);y(b,C,Ae,"\u03C9","\\omega",!0);y(b,C,Ae,"\u03B5","\\varepsilon",!0);y(b,C,Ae,"\u03D1","\\vartheta",!0);y(b,C,Ae,"\u03D6","\\varpi",!0);y(b,C,Ae,"\u03F1","\\varrho",!0);y(b,C,Ae,"\u03C2","\\varsigma",!0);y(b,C,Ae,"\u03C6","\\varphi",!0);y(b,C,Se,"\u2217","*",!0);y(b,C,Se,"+","+");y(b,C,Se,"\u2212","-",!0);y(b,C,Se,"\u22C5","\\cdot",!0);y(b,C,Se,"\u2218","\\circ",!0);y(b,C,Se,"\xF7","\\div",!0);y(b,C,Se,"\xB1","\\pm",!0);y(b,C,Se,"\xD7","\\times",!0);y(b,C,Se,"\u2229","\\cap",!0);y(b,C,Se,"\u222A","\\cup",!0);y(b,C,Se,"\u2216","\\setminus",!0);y(b,C,Se,"\u2227","\\land");y(b,C,Se,"\u2228","\\lor");y(b,C,Se,"\u2227","\\wedge",!0);y(b,C,Se,"\u2228","\\vee",!0);y(b,C,U,"\u221A","\\surd");y(b,C,Cn,"\u27E8","\\langle",!0);y(b,C,Cn,"\u2223","\\lvert");y(b,C,Cn,"\u2225","\\lVert");y(b,C,Wr,"?","?");y(b,C,Wr,"!","!");y(b,C,Wr,"\u27E9","\\rangle",!0);y(b,C,Wr,"\u2223","\\rvert");y(b,C,Wr,"\u2225","\\rVert");y(b,C,D,"=","=");y(b,C,D,":",":");y(b,C,D,"\u2248","\\approx",!0);y(b,C,D,"\u2245","\\cong",!0);y(b,C,D,"\u2265","\\ge");y(b,C,D,"\u2265","\\geq",!0);y(b,C,D,"\u2190","\\gets");y(b,C,D,">","\\gt",!0);y(b,C,D,"\u2208","\\in",!0);y(b,C,D,"\uE020","\\@not");y(b,C,D,"\u2282","\\subset",!0);y(b,C,D,"\u2283","\\supset",!0);y(b,C,D,"\u2286","\\subseteq",!0);y(b,C,D,"\u2287","\\supseteq",!0);y(b,R,D,"\u2288","\\nsubseteq",!0);y(b,R,D,"\u2289","\\nsupseteq",!0);y(b,C,D,"\u22A8","\\models");y(b,C,D,"\u2190","\\leftarrow",!0);y(b,C,D,"\u2264","\\le");y(b,C,D,"\u2264","\\leq",!0);y(b,C,D,"<","\\lt",!0);y(b,C,D,"\u2192","\\rightarrow",!0);y(b,C,D,"\u2192","\\to");y(b,R,D,"\u2271","\\ngeq",!0);y(b,R,D,"\u2270","\\nleq",!0);y(b,C,Zo,"\xA0","\\ ");y(b,C,Zo,"\xA0","\\space");y(b,C,Zo,"\xA0","\\nobreakspace");y(X,C,Zo,"\xA0","\\ ");y(X,C,Zo,"\xA0"," ");y(X,C,Zo,"\xA0","\\space");y(X,C,Zo,"\xA0","\\nobreakspace");y(b,C,Zo,null,"\\nobreak");y(b,C,Zo,null,"\\allowbreak");y(b,C,Xp,",",",");y(b,C,Xp,";",";");y(b,R,Se,"\u22BC","\\barwedge",!0);y(b,R,Se,"\u22BB","\\veebar",!0);y(b,C,Se,"\u2299","\\odot",!0);y(b,C,Se,"\u2295","\\oplus",!0);y(b,C,Se,"\u2297","\\otimes",!0);y(b,C,U,"\u2202","\\partial",!0);y(b,C,Se,"\u2298","\\oslash",!0);y(b,R,Se,"\u229A","\\circledcirc",!0);y(b,R,Se,"\u22A1","\\boxdot",!0);
vendor: 7,334 bytes, line 517
517y(b,C,Se,"\u25B3","\\bigtriangleup");y(b,C,Se,"\u25BD","\\bigtriangledown");y(b,C,Se,"\u2020","\\dagger");y(b,C,Se,"\u22C4","\\diamond");y(b,C,Se,"\u22C6","\\star");y(b,C,Se,"\u25C3","\\triangleleft");y(b,C,Se,"\u25B9","\\triangleright");y(b,C,Cn,"{","\\{");y(X,C,U,"{","\\{");y(X,C,U,"{","\\textbraceleft");y(b,C,Wr,"}","\\}");y(X,C,U,"}","\\}");y(X,C,U,"}","\\textbraceright");y(b,C,Cn,"{","\\lbrace");y(b,C,Wr,"}","\\rbrace");y(b,C,Cn,"[","\\lbrack",!0);y(X,C,U,"[","\\lbrack",!0);y(b,C,Wr,"]","\\rbrack",!0);y(X,C,U,"]","\\rbrack",!0);y(b,C,Cn,"(","\\lparen",!0);y(b,C,Wr,")","\\rparen",!0);y(X,C,U,"<","\\textless",!0);y(X,C,U,">","\\textgreater",!0);y(b,C,Cn,"\u230A","\\lfloor",!0);y(b,C,Wr,"\u230B","\\rfloor",!0);y(b,C,Cn,"\u2308","\\lceil",!0);y(b,C,Wr,"\u2309","\\rceil",!0);y(b,C,U,"\\","\\backslash");y(b,C,U,"\u2223","|");y(b,C,U,"\u2223","\\vert");y(X,C,U,"|","\\textbar",!0);y(b,C,U,"\u2225","\\|");y(b,C,U,"\u2225","\\Vert");y(X,C,U,"\u2225","\\textbardbl");y(X,C,U,"~","\\textasciitilde");y(X,C,U,"\\","\\textbackslash");y(X,C,U,"^","\\textasciicircum");y(b,C,D,"\u2191","\\uparrow",!0);y(b,C,D,"\u21D1","\\Uparrow",!0);y(b,C,D,"\u2193","\\downarrow",!0);y(b,C,D,"\u21D3","\\Downarrow",!0);y(b,C,D,"\u2195","\\updownarrow",!0);y(b,C,D,"\u21D5","\\Updownarrow",!0);y(b,C,sr,"\u2210","\\coprod");y(b,C,sr,"\u22C1","\\bigvee");y(b,C,sr,"\u22C0","\\bigwedge");y(b,C,sr,"\u2A04","\\biguplus");y(b,C,sr,"\u22C2","\\bigcap");y(b,C,sr,"\u22C3","\\bigcup");y(b,C,sr,"\u222B","\\int");y(b,C,sr,"\u222B","\\intop");y(b,C,sr,"\u222C","\\iint");y(b,C,sr,"\u222D","\\iiint");y(b,C,sr,"\u220F","\\prod");y(b,C,sr,"\u2211","\\sum");y(b,C,sr,"\u2A02","\\bigotimes");y(b,C,sr,"\u2A01","\\bigoplus");y(b,C,sr,"\u2A00","\\bigodot");y(b,C,sr,"\u222E","\\oint");y(b,C,sr,"\u222F","\\oiint");y(b,C,sr,"\u2230","\\oiiint");y(b,C,sr,"\u2A06","\\bigsqcup");y(b,C,sr,"\u222B","\\smallint");y(X,C,wc,"\u2026","\\textellipsis");y(b,C,wc,"\u2026","\\mathellipsis");y(X,C,wc,"\u2026","\\ldots",!0);y(b,C,wc,"\u2026","\\ldots",!0);y(b,C,wc,"\u22EF","\\@cdots",!0);y(b,C,wc,"\u22F1","\\ddots",!0);y(b,C,U,"\u22EE","\\varvdots");y(X,C,U,"\u22EE","\\varvdots");y(b,C,Ot,"\u02CA","\\acute");y(b,C,Ot,"\u02CB","\\grave");y(b,C,Ot,"\xA8","\\ddot");y(b,C,Ot,"~","\\tilde");y(b,C,Ot,"\u02C9","\\bar");y(b,C,Ot,"\u02D8","\\breve");y(b,C,Ot,"\u02C7","\\check");y(b,C,Ot,"^","\\hat");y(b,C,Ot,"\u20D7","\\vec");y(b,C,Ot,"\u02D9","\\dot");y(b,C,Ot,"\u02DA","\\mathring");y(b,C,Ae,"\uE131","\\@imath");y(b,C,Ae,"\uE237","\\@jmath");y(b,C,U,"\u0131","\u0131");y(b,C,U,"\u0237","\u0237");y(X,C,U,"\u0131","\\i",!0);y(X,C,U,"\u0237","\\j",!0);y(X,C,U,"\xDF","\\ss",!0);y(X,C,U,"\xE6","\\ae",!0);y(X,C,U,"\u0153","\\oe",!0);y(X,C,U,"\xF8","\\o",!0);y(X,C,U,"\xC6","\\AE",!0);y(X,C,U,"\u0152","\\OE",!0);y(X,C,U,"\xD8","\\O",!0);y(X,C,Ot,"\u02CA","\\'");y(X,C,Ot,"\u02CB","\\`");y(X,C,Ot,"\u02C6","\\^");y(X,C,Ot,"\u02DC","\\~");y(X,C,Ot,"\u02C9","\\=");y(X,C,Ot,"\u02D8","\\u");y(X,C,Ot,"\u02D9","\\.");y(X,C,Ot,"\xB8","\\c");y(X,C,Ot,"\u02DA","\\r");y(X,C,Ot,"\u02C7","\\v");y(X,C,Ot,"\xA8",'\\"');y(X,C,Ot,"\u02DD","\\H");y(X,C,Ot,"\u25EF","\\textcircled");var BF={"--":!0,"---":!0,"``":!0,"''":!0};y(X,C,U,"\u2013","--",!0);y(X,C,U,"\u2013","\\textendash");y(X,C,U,"\u2014","---",!0);y(X,C,U,"\u2014","\\textemdash");y(X,C,U,"\u2018","`",!0);y(X,C,U,"\u2018","\\textquoteleft");y(X,C,U,"\u2019","'",!0);y(X,C,U,"\u2019","\\textquoteright");y(X,C,U,"\u201C","``",!0);y(X,C,U,"\u201C","\\textquotedblleft");y(X,C,U,"\u201D","''",!0);y(X,C,U,"\u201D","\\textquotedblright");y(b,C,U,"\xB0","\\degree",!0);y(X,C,U,"\xB0","\\degree");y(X,C,U,"\xB0","\\textdegree",!0);y(b,C,U,"\xA3","\\pounds");y(b,C,U,"\xA3","\\mathsterling",!0);y(X,C,U,"\xA3","\\pounds");y(X,C,U,"\xA3","\\textsterling",!0);y(b,R,U,"\u2720","\\maltese");y(X,R,U,"\u2720","\\maltese");var lF='0123456789/@."';for(tx=0;tx<lF.length;tx++)hC=lF.charAt(tx),y(b,C,U,hC,hC);var hC,tx,uF='0123456789!@*()-=+";:?/.,';for(rx=0;rx<uF.length;rx++)gC=uF.charAt(rx),y(X,C,U,gC,gC);var gC,rx,mx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(nx=0;nx<mx.length;nx++)Zp=mx.charAt(nx),y(b,C,Ae,Zp,Zp),y(X,C,U,Zp,Zp);var Zp,nx;y(b,R,U,"C","\u2102");y(X,R,U,"C","\u2102");y(b,R,U,"H","\u210D");y(X,R,U,"H","\u210D");y(b,R,U,"N","\u2115");y(X,R,U,"N","\u2115");y(b,R,U,"P","\u2119");y(X,R,U,"P","\u2119");y(b,R,U,"Q","\u211A");y(X,R,U,"Q","\u211A");y(b,R,U,"R","\u211D");y(X,R,U,"R","\u211D");y(b,R,U,"Z","\u2124");y(X,R,U,"Z","\u2124");y(b,C,Ae,"h","\u210E");y(X,C,Ae,"h","\u210E");var Oe="";for(Ar=0;Ar<mx.length;Ar++)Vt=mx.charAt(Ar),Oe=String.fromCharCode(55349,56320+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56372+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56424+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56580+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56684+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56736+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56788+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56840+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56944+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Ar<26&&(Oe=String.fromCharCode(55349,56632+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe),Oe=String.fromCharCode(55349,56476+Ar),y(b,C,Ae,Vt,Oe),y(X,C,U,Vt,Oe));var Vt,Ar;Oe="\u{1D55C}";y(b,C,Ae,"k",Oe);y(X,C,U,"k",Oe);for(qi=0;qi<10;qi++)Uo=qi.toString(),Oe=String.fromCharCode(55349,57294+qi),y(b,C,Ae,Uo,Oe),y(X,C,U,Uo,Oe),Oe=String.fromCharCode(55349,57314+qi),y(b,C,Ae,Uo,Oe),y(X,C,U,Uo,Oe),Oe=String.fromCharCode(55349,57324+qi),y(b,C,Ae,Uo,Oe),y(X,C,U,Uo,Oe),Oe=String.fromCharCode(55349,57334+qi),y(b,C,Ae,Uo,Oe),y(X,C,U,Uo,Oe);var Uo,qi,EC="\xD0\xDE\xFE";for(ax=0;ax<EC.length;ax++)Vp=EC.charAt(ax),y(b,C,Ae,Vp,Vp),y(X,C,U,Vp,Vp);var Vp,ax,ox=[["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"]],cF=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],fce=(e,t)=>{var r=e.charCodeAt(0),a=e.charCodeAt(1),n=(r-55296)*1024+(a-56320)+65536,o=t==="math"?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[ox[i][2],ox[i][o]]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return[cF[s][2],cF[s][o]]}else{if(n===120485||n===120486)return[ox[0][2],ox[0][o]];if(120486<n&&n<120782)return["",""];throw new se("Unsupported character: "+e)}}
vendor: 23,770 bytes, line 517
517,_x=function(t,r,a){if(Nt[a][t]){var n=Nt[a][t].replace;n&&(t=n)}return{value:t,metrics:GC(t,r,a)}},qr=function(t,r,a,n,o){var i=_x(t,r,a),s=i.metrics;t=i.value;var u;if(s){var c=s.italic;(a==="text"||n&&n.font==="mathit")&&(c=0),u=new Hr(t,s.height,s.depth,c,s.skew,s.width,o)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+a+"'")),u=new Hr(t,0,0,0,0,0,o);if(n){u.maxFontSize=n.sizeMultiplier,n.style.isTight()&&u.classes.push("mtight");var f=n.getColor();f&&(u.style.color=f)}return u},HC=function(t,r,a,n){return n===void 0&&(n=[]),a.font==="boldsymbol"&&_x(t,"Main-Bold",r).metrics?qr(t,"Main-Bold",r,a,n.concat(["mathbf"])):t==="\\"||Nt[r][t].font==="main"?qr(t,"Main-Regular",r,a,n):qr(t,"AMS-Regular",r,a,n.concat(["amsrm"]))},pce=function(t,r,a,n,o){return o!=="textord"&&_x(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},kx=function(t,r,a){var n=t.mode,o=t.text,i=["mord"],s=n==="math"||n==="text"&&r.font,u=s?r.font:r.fontFamily,c="",f="";if(o.charCodeAt(0)===55349&&([c,f]=fce(o,n)),c.length>0)return qr(o,c,n,r,i.concat(f));if(u){var p,h;if(u==="boldsymbol"){var g=pce(o,n,r,i,a);p=g.fontName,h=[g.fontClass]}else s?(p=MC[u].fontName,h=[u]):(p=ix(u,r.fontWeight,r.fontShape),h=[u,r.fontWeight,r.fontShape]);if(_x(o,p,n).metrics)return qr(o,p,n,r,i.concat(h));if(BF.hasOwnProperty(o)&&p.slice(0,10)==="Typewriter"){for(var x=[],I=0;I<o.length;I++)x.push(qr(o[I],p,n,r,i.concat(h)));return Vo(x)}}if(a==="mathord")return qr(o,"Math-Italic",n,r,i.concat(["mathnormal"]));if(a==="textord"){var S=Nt[n][o]&&Nt[n][o].font;if(S==="ams"){var $=ix("amsrm",r.fontWeight,r.fontShape);return qr(o,$,n,r,i.concat("amsrm",r.fontWeight,r.fontShape))}else if(S==="main"||!S){var T=ix("textrm",r.fontWeight,r.fontShape);return qr(o,T,n,r,i.concat(r.fontWeight,r.fontShape))}else{var k=ix(S,r.fontWeight,r.fontShape);return qr(o,k,n,r,i.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+a+" in makeOrd")},mce=(e,t)=>{if(Wi(e.classes)!==Wi(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 a of Object.keys(e.style))if(e.style[a]!==t.style[a])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},FF=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],a=e[t+1];r instanceof Hr&&a instanceof Hr&&mce(r,a)&&(r.text+=a.text,r.height=Math.max(r.height,a.height),r.depth=Math.max(r.depth,a.depth),r.italic=a.italic,e.splice(t+1,1),t--)}return e},WC=function(t){for(var r=0,a=0,n=0,o=0;o<t.children.length;o++){var i=t.children[o];i.height>r&&(r=i.height),i.depth>a&&(a=i.depth),i.maxFontSize>n&&(n=i.maxFontSize)}t.height=r,t.depth=a,t.maxFontSize=n},Y=function(t,r,a,n){var o=new Ji(t,r,a,n);return WC(o),o},Ki=(e,t,r,a)=>new Ji(e,t,r,a),xc=function(t,r,a){var n=Y([t],[],r);return n.height=Math.max(a||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=ce(n.height),n.maxFontSize=1,n},hce=function(t,r,a,n){var o=new yc(t,r,a,n);return WC(o),o},Vo=function(t){var r=new Hi(t);return WC(r),r},bc=function(t,r){return t instanceof Hi?Y([],[t],r):t},gce=function(t){if(t.positionType==="individualShift"){for(var r=t.children,a=[r[0]],n=-r[0].shift-r[0].elem.depth,o=n,i=1;i<r.length;i++){var s=-r[i].shift-o-r[i].elem.depth,u=s-(r[i-1].elem.height+r[i-1].elem.depth);o=o+s,a.push({type:"kern",size:u}),a.push(r[i])}return{children:a,depth:n}}var c;if(t.positionType==="top"){for(var f=t.positionData,p=0;p<t.children.length;p++){var h=t.children[p];f-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}c=f}else if(t.positionType==="bottom")c=-t.positionData;else{var g=t.children[0];if(g.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")c=-g.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")c=-g.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:c}},ft=function(t,r){for(var{children:a,depth:n}=gce(t),o=0,i=0;i<a.length;i++){var s=a[i];if(s.type==="elem"){var u=s.elem;o=Math.max(o,u.maxFontSize,u.height)}}o+=2;var c=Y(["pstrut"],[]);c.style.height=ce(o);for(var f=[],p=n,h=n,g=n,x=0;x<a.length;x++){var I=a[x];if(I.type==="kern")g+=I.size;else{var S=I.elem,$=I.wrapperClasses||[],T=I.wrapperStyle||{},k=Y($,[c,S],void 0,T);k.style.top=ce(-o-g-S.depth),I.marginLeft&&(k.style.marginLeft=I.marginLeft),I.marginRight&&(k.style.marginRight=I.marginRight),f.push(k),g+=S.height+S.depth}p=Math.min(p,g),h=Math.max(h,g)}var M=Y(["vlist"],f);M.style.height=ce(h);var E;if(p<0){var z=Y([],[]),j=Y(["vlist"],[z]);j.style.height=ce(-p);var q=Y(["vlist-s"],[new Hr("\u200B")]);E=[Y(["vlist-r"],[M,q]),Y(["vlist-r"],[j])]}else E=[Y(["vlist-r"],[M])];var Z=Y(["vlist-t"],E);return E.length===2&&Z.classes.push("vlist-t2"),Z.height=h,Z.depth=-p,Z},jF=(e,t)=>{var r=Y(["mspace"],[],t),a=Gt(e,t);return r.style.marginRight=ce(a),r},ix=function(t,r,a){var n="";switch(t){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=t}var o;return r==="textbf"&&a==="textit"?o="BoldItalic":r==="textbf"?o="Bold":r==="textit"?o="Italic":o="Regular",n+"-"+o},MC={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"}},ZF={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},VF=function(t,r){var[a,n,o]=ZF[t],i=new Va(a),s=new ca([i],{width:ce(n),height:ce(o),style:"width:"+ce(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),u=Ki(["overlay"],[s],r);return u.height=o,u.style.height=ce(o),u.style.width=ce(n),u},qt={number:3,unit:"mu"},ol={number:4,unit:"mu"},Bo={number:5,unit:"mu"},vce={mord:{mop:qt,mbin:ol,mrel:Bo,minner:qt},mop:{mord:qt,mop:qt,mrel:Bo,minner:qt},mbin:{mord:ol,mop:ol,mopen:ol,minner:ol},mrel:{mord:Bo,mop:Bo,mopen:Bo,minner:Bo},mopen:{},mclose:{mop:qt,mbin:ol,mrel:Bo,minner:qt},mpunct:{mord:qt,mop:qt,mrel:Bo,mopen:qt,mclose:qt,mpunct:qt,minner:qt},minner:{mord:qt,mop:qt,mbin:ol,mrel:Bo,mopen:qt,mpunct:qt,minner:qt}},yce={mord:{mop:qt},mop:{mord:qt,mop:qt},mbin:{},mrel:{},mopen:{},mclose:{mop:qt},mpunct:{},minner:{mop:qt}},qF={},hx={},gx={};function ye(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:a.numArgs,argTypes:a.argTypes,allowedInArgument:!!a.allowedInArgument,allowedInText:!!a.allowedInText,allowedInMath:a.allowedInMath===void 0?!0:a.allowedInMath,numOptionalArgs:a.numOptionalArgs||0,infix:!!a.infix,primitive:!!a.primitive,handler:n},u=0;u<r.length;++u)qF[r[u]]=s;t&&(o&&(hx[t]=o),i&&(gx[t]=i))}function il(e){var{type:t,htmlBuilder:r,mathmlBuilder:a}=e;ye({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:a})}var vx=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},ir=function(t){return t.type==="ordgroup"?t.body:[t]},xce=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),bce=new Set(["rightmost","mrel","mclose","mpunct"]),wce={display:Be.DISPLAY,text:Be.TEXT,script:Be.SCRIPT,scriptscript:Be.SCRIPTSCRIPT},_ce={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},mr=function(t,r,a,n){n===void 0&&(n=[null,null]);for(var o=[],i=0;i<t.length;i++){var s=pt(t[i],r);if(s instanceof Hi){var u=s.children;o.push(...u)}else o.push(s)}if(FF(o),!a)return o;var c=r;if(t.length===1){var f=t[0];f.type==="sizing"?c=r.havingSize(f.size):f.type==="styling"&&(c=r.havingStyle(wce[f.style]))}var p=Y([n[0]||"leftmost"],[],r),h=Y([n[1]||"rightmost"],[],r),g=a==="root";return RC(o,(x,I)=>{var S=I.classes[0],$=x.classes[0];S==="mbin"&&bce.has($)?I.classes[0]="mord":$==="mbin"&&xce.has(S)&&(x.classes[0]="mord")},{node:p},h,g),RC(o,(x,I)=>{var S,$,T=DC(I),k=DC(x),M=T&&k?x.hasClass("mtight")?(S=yce[T])==null?void 0:S[k]:($=vce[T])==null?void 0:$[k]:null;if(M)return jF(M,c)},{node:p},h,g),o},RC=function(t,r,a,n,o){n&&t.push(n);for(var i=0;i<t.length;i++){var s=t[i],u=GF(s);if(u){RC(u.children,r,a,null,o);continue}var c=!s.hasClass("mspace");if(c){var f=r(s,a.node);f&&(a.insertAfter?a.insertAfter(f):(t.unshift(f),i++))}c?a.node=s:o&&s.hasClass("newline")&&(a.node=Y(["leftmost"])),a.insertAfter=(p=>h=>{t.splice(p+1,0,h),i++})(i)}n&&t.pop()},GF=function(t){return t instanceof Hi||t instanceof yc||t instanceof Ji&&t.hasClass("enclosing")?t:null},zC=function(t,r){var a=GF(t);if(a){var n=a.children;if(n.length){if(r==="right")return zC(n[n.length-1],"right");if(r==="left")return zC(n[0],"left")}}return t},DC=function(t,r){if(!t)return null;r&&(t=zC(t,r));var a=t.classes[0];return _ce[a]||null},Kp=function(t,r){var a=["nulldelimiter"].concat(t.baseSizingClasses());return Y(r.concat(a))},pt=function(t,r,a){if(!t)return Y();if(hx[t.type]){var n=hx[t.type](t,r);if(a&&r.size!==a.size){n=Y(r.sizingClasses(a),[n],r);var o=r.sizeMultiplier/a.sizeMultiplier;n.height*=o,n.depth*=o}return n}else throw new se("Got group of unknown type: '"+t.type+"'")};function sx(e,t){var r=Y(["base"],e,t),a=Y(["strut"]);return a.style.height=ce(r.height+r.depth),r.depth&&(a.style.verticalAlign=ce(-r.depth)),r.children.unshift(a),r}function NC(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var a=mr(e,t,"root"),n;a.length===2&&a[1].hasClass("tag")&&(n=a.pop());for(var o=[],i=[],s=0;s<a.length;s++)if(i.push(a[s]),a[s].hasClass("mbin")||a[s].hasClass("mrel")||a[s].hasClass("allowbreak")){for(var u=!1;s<a.length-1&&a[s+1].hasClass("mspace")&&!a[s+1].hasClass("newline");)s++,i.push(a[s]),a[s].hasClass("nobreak")&&(u=!0);u||(o.push(sx(i,t)),i=[])}else a[s].hasClass("newline")&&(i.pop(),i.length>0&&(o.push(sx(i,t)),i=[]),o.push(a[s]));i.length>0&&o.push(sx(i,t));var c;r?(c=sx(mr(r,t,!0),t),c.classes=["tag"],o.push(c)):n&&o.push(n);var f=Y(["katex-html"],o);if(f.setAttribute("aria-hidden","true"),c){var p=c.children[0];p.style.height=ce(f.height+f.depth),f.depth&&(p.style.verticalAlign=ce(-f.depth))}return f}function HF(e){return new Hi(e)}var ae=class{constructor(t,r,a){this.type=t,this.attributes={},this.children=r||[],this.classes=a||[]}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=Wi(this.classes));for(var a=0;a<this.children.length;a++)if(this.children[a]instanceof Kt&&this.children[a+1]instanceof Kt){for(var n=this.children[a].toText()+this.children[++a].toText();this.children[a+1]instanceof Kt;)n+=this.children[++a].toText();t.appendChild(new Kt(n).toNode())}else t.appendChild(this.children[a].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Er(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Er(Wi(this.classes))+'"'),t+=">";for(var a=0;a<this.children.length;a++)t+=this.children[a].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},Kt=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Er(this.toText())}toText(){return this.text}},yx=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",ce(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+ce(this.width)+'"/>'}toText(){return this.character?this.character:" "}},kce=new Set(["\\imath","\\jmath"]),Sce=new Set(["mrow","mtable"]),Vn=function(t,r,a){return Nt[r][t]&&Nt[r][t].replace&&t.charCodeAt(0)!==55349&&!(BF.hasOwnProperty(t)&&a&&(a.fontFamily&&a.fontFamily.slice(4,6)==="tt"||a.font&&a.font.slice(4,6)==="tt"))&&(t=Nt[r][t].replace),new Kt(t)},JC=function(t){return t.length===1?t[0]:new ae("mrow",t)},KC=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 a=r.font;if(!a||a==="mathnormal")return null;var n=t.mode;if(a==="mathit")return"italic";if(a==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(a==="mathbf")return"bold";if(a==="mathbb")return"double-struck";if(a==="mathsfit")return"sans-serif-italic";if(a==="mathfrak")return"fraktur";if(a==="mathscr"||a==="mathcal")return"script";if(a==="mathsf")return"sans-serif";if(a==="mathtt")return"monospace";var o=t.text;if(kce.has(o))return null;if(Nt[n][o]){var i=Nt[n][o].replace;i&&(o=i)}var s=MC[a].fontName;return GC(o,s,n)?MC[a].variant:null};function vC(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Kt&&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 Kt&&r.text===","}else return!1}var Tn=function(t,r,a){if(t.length===1){var n=Tt(t[0],r);return a&&n instanceof ae&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o=[],i,s=0;s<t.length;s++){var u=Tt(t[s],r);if(u instanceof ae&&i instanceof ae){if(u.type==="mtext"&&i.type==="mtext"&&u.getAttribute("mathvariant")===i.getAttribute("mathvariant")){i.children.push(...u.children);continue}else if(u.type==="mn"&&i.type==="mn"){i.children.push(...u.children);continue}else if(vC(u)&&i.type==="mn"){i.children.push(...u.children);continue}else if(u.type==="mn"&&vC(i))u.children=[...i.children,...u.children],o.pop();else if((u.type==="msup"||u.type==="msub")&&u.children.length>=1&&(i.type==="mn"||vC(i))){var c=u.children[0];c instanceof ae&&c.type==="mn"&&(c.children=[...i.children,...c.children],o.pop())}else if(i.type==="mi"&&i.children.length===1){var f=i.children[0];if(f instanceof Kt&&f.text==="\u0338"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var p=u.children[0];p instanceof Kt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),o.pop())}}}o.push(u),i=u}return o},Xi=function(t,r,a){return JC(Tn(t,r,a))},Tt=function(t,r){if(!t)return new ae("mrow");if(gx[t.type]){var a=gx[t.type](t,r);return a}else throw new se("Got group of unknown type: '"+t.type+"'")};function dF(e,t,r,a,n){var o=Tn(e,r),i;o.length===1&&o[0]instanceof ae&&Sce.has(o[0].type)?i=o[0]:i=new ae("mrow",o);var s=new ae("annotation",[new Kt(t)]);s.setAttribute("encoding","application/x-tex");var u=new ae("semantics",[i,s]),c=new ae("math",[u]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a&&c.setAttribute("display","block");var f=n?"katex":"katex-mathml";return Y([f],[c])}var Ice=[[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]],fF=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],pF=function(t,r){return r.size<2?t:Ice[t-1][r.size-1]},xx=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=fF[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:pF(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:fF[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=pF(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=uce(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};xx.BASESIZE=6;var WF=function(t){return new xx({style:t.displayMode?Be.DISPLAY:Be.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},JF=function(t,r){if(r.displayMode){var a=["katex-display"];r.leqno&&a.push("leqno"),r.fleqn&&a.push("fleqn"),t=Y(a,[t])}return t},Cce=function(t,r,a){var n=WF(a),o;if(a.output==="mathml")return dF(t,r,n,a.displayMode,!0);if(a.output==="html"){var i=NC(t,n);o=Y(["katex"],[i])}else{var s=dF(t,r,n,a.displayMode,!1),u=NC(t,n);o=Y(["katex"],[s,u])}return JF(o,a)},Tce=function(t,r,a){var n=WF(a),o=NC(t,n),i=Y(["katex"],[o]);return JF(i,a)},Pce={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":"="},Sx=function(t){var r=new ae("mo",[new Kt(Pce[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},$ce={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]},Lce=new Set(["widehat","widecheck","widetilde","utilde"]),Ix=function(t,r){function a(){var s=4e5,u=t.label.slice(1);if(Lce.has(u)){var c=t,f=c.base.type==="ordgroup"?c.base.body.length:1,p,h,g;if(f>5)u==="widehat"||u==="widecheck"?(p=420,s=2364,g=.42,h=u+"4"):(p=312,s=2340,g=.34,h="tilde4");else{var x=[1,1,2,2,3,3][f];u==="widehat"||u==="widecheck"?(s=[0,1062,2364,2364,2364][x],p=[0,239,300,360,420][x],g=[0,.24,.3,.3,.36,.42][x],h=u+x):(s=[0,600,1033,2339,2340][x],p=[0,260,286,306,312][x],g=[0,.26,.286,.3,.306,.34][x],h="tilde"+x)}var I=new Va(h),S=new ca([I],{width:"100%",height:ce(g),viewBox:"0 0 "+s+" "+p,preserveAspectRatio:"none"});return{span:Ki([],[S],r),minWidth:0,height:g}}else{var $=[],T=$ce[u],[k,M,E]=T,z=E/1e3,j=k.length,q,Z;if(j===1){var W=T[3];q=["hide-tail"],Z=[W]}else if(j===2)q=["halfarrow-left","halfarrow-right"],Z=["xMinYMin","xMaxYMin"];else if(j===3)q=["brace-left","brace-center","brace-right"],Z=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
517ort 518 `+j+" children.");for(var de=0;de<j;de++){var Q=new Va(k[de]),ht=new ca([Q],{width:"400em",height:ce(z),viewBox:"0 0 "+s+" "+E,preserveAspectRatio:Z[de]+" slice"}),Ce=Ki([q[de]],[ht],r);if(j===1)return{span:Ce,minWidth:M,height:z};Ce.style.height=ce(z),$.push(Ce)}return{span:Y(["stretchy"],$,r),minWidth:M,height:z}}}var{span:n,minWidth:o,height:i}=a();return n.height=i,n.style.height=ce(i),o>0&&(n.style.minWidth=ce(o)),n},Ace=function(t,r,a,n,o){var i,s=t.height+t.depth+a+n;if(/fbox|color|angl/.test(r)){if(i=Y(["stretchy",r],[],o),r==="fbox"){var u=o.color&&o.getColor();u&&(i.style.borderColor=u)}}else{var c=[];/^[bx]cancel$/.test(r)&&c.push(new Jp({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&c.push(new Jp({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var f=new ca(c,{width:"100%",height:ce(s)});i=Ki([],[f],o)}return i.height=s,i.style.height=ce(s),i};function Ye(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 Cx(e){var t=Tx(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 Tx(e){return e&&(e.type==="atom"||dce.hasOwnProperty(e.type))?e:null}var KF=e=>{if(e instanceof Hr)return e;if(sce(e)&&e.children.length===1)return KF(e.children[0])},XC=(e,t)=>{var r,a,n;e&&e.type==="supsub"?(a=Ye(e.base,"accent"),r=a.base,e.base=r,n=ice(pt(e,t)),e.base=a):(a=Ye(e,"accent"),r=a.base);var o=pt(r,t.havingCrampedStyle()),i=a.isShifty&&jo(r),s=0;if(i){var u,c;s=(u=(c=KF(o))==null?void 0:c.skew)!=null?u:0}var f=a.label==="\\c",p=f?o.height+o.depth:Math.min(o.height,t.fontMetrics().xHeight),h;if(a.isStretchy)h=Ix(a,t),h=ft({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+ce(2*s)+")",marginLeft:ce(2*s)}:void 0}]});else{var g,x;a.label==="\\vec"?(g=VF("vec",t),x=ZF.vec[1]):(g=kx({type:"textord",mode:a.mode,text:a.label},t,"textord"),g=oce(g),g.italic=0,x=g.width,f&&(p+=g.depth)),h=Y(["accent-body"],[g]);var I=a.label==="\\textcircled";I&&(h.classes.push("accent-full"),p=o.height);var S=s;I||(S-=x/2),h.style.left=ce(S),a.label==="\\textcircled"&&(h.style.top=".2em"),h=ft({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-p},{type:"elem",elem:h}]})}var $=Y(["mord","accent"],[h],t);return n?(n.children[0]=$,n.height=Math.max($.height,n.height),n.classes[0]="mord",n):$},XF=(e,t)=>{var r=e.isStretchy?Sx(e.label):new ae("mo",[Vn(e.label,e.mode)]),a=new ae("mover",[Tt(e.base,t),r]);return a.setAttribute("accent","true"),a},Ece=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ye({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=vx(t[0]),a=!Ece.test(e.funcName),n=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:n,base:r}},htmlBuilder:XC,mathmlBuilder:XF});ye({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],a=e.parser.mode;return a==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),a="text"),{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:XC,mathmlBuilder:XF});ye({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:a,base:n}},htmlBuilder:(e,t)=>{var r=pt(e.base,t),a=Ix(e,t),n=e.label==="\\utilde"?.12:0,o=ft({positionType:"top",positionData:r.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return Y(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var r=Sx(e.label),a=new ae("munder",[Tt(e.base,t),r]);return a.setAttribute("accentunder","true"),a}});var lx=e=>{var t=new ae("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ye({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:a,funcName:n}=e;return{type:"xArrow",mode:a.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,a=t.havingStyle(r.sup()),n=bc(pt(e.body,a,t),t),o=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(o+"-arrow-pad");var i;e.below&&(a=t.havingStyle(r.sub()),i=bc(pt(e.below,a,t),t),i.classes.push(o+"-arrow-pad"));var s=Ix(e,t),u=-t.fontMetrics().axisHeight+.5*s.height,c=-t.fontMetrics().axisHeight-.5*s.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(c-=n.depth);var f;if(i){var p=-t.fontMetrics().axisHeight+i.height+.5*s.height+.111;f=ft({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:s,shift:u},{type:"elem",elem:i,shift:p}]})}else f=ft({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:s,shift:u}]});return f.children[0].children[0].children[1].classes.push("svg-align"),Y(["mrel","x-arrow"],[f],t)},mathmlBuilder(e,t){var r=Sx(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var n=lx(Tt(e.body,t));if(e.below){var o=lx(Tt(e.below,t));a=new ae("munderover",[r,o,n])}else a=new ae("mover",[r,n])}else if(e.below){var i=lx(Tt(e.below,t));a=new ae("munder",[r,i])}else a=lx(),a=new ae("mover",[r,a]);return a}});function YF(e,t){var r=mr(e.body,t,!0);return Y([e.mclass],r,t)}function QF(e,t){var r,a=Tn(e.body,t);return e.mclass==="minner"?r=new ae("mpadded",a):e.mclass==="mord"?e.isCharacterBox?(r=a[0],r.type="mi"):r=new ae("mi",a):(e.isCharacterBox?(r=a[0],r.type="mo"):r=new ae("mo",a),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}ye({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+a.slice(5),body:ir(n),isCharacterBox:jo(n)}},htmlBuilder:YF,mathmlBuilder:QF});var Px=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"};ye({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:Px(t[0]),body:ir(t[1]),isCharacterBox:jo(t[1])}}});ye({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:a}=e,n=t[1],o=t[0],i;a!=="\\stackrel"?i=Px(n):i="mrel";var s={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ir(n)},u={type:"supsub",mode:o.mode,base:s,sup:a==="\\underset"?null:o,sub:a==="\\underset"?o:null};return{type:"mclass",mode:r.mode,mclass:i,body:[u],isCharacterBox:jo(u)}},htmlBuilder:YF,mathmlBuilder:QF});ye({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:Px(t[0]),body:ir(t[0])}},htmlBuilder(e,t){var r=mr(e.body,t,!0),a=Y([e.mclass],r,t);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,t){var r=Tn(e.body,t),a=new ae("mstyle",r);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var Mce={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},mF=()=>({type:"styling",body:[],mode:"math",style:"display"}),hF=e=>e.type==="textord"&&e.text==="@",Rce=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function zce(e,t,r){var a=Mce[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(a,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),o={type:"atom",text:a,mode:"math",family:"rel"},i=r.callFunction("\\Big",[o],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[n,i,s]};return r.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);
vendor: 75,277 bytes, lines 518-522
518case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Dce(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 se("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var a=[],n=[a],o=0;o<t.length;o++){for(var i=t[o],s=mF(),u=0;u<i.length;u++)if(!hF(i[u]))s.body.push(i[u]);else{a.push(s),u+=1;var c=Cx(i[u]).text,f=new Array(2);if(f[0]={type:"ordgroup",mode:"math",body:[]},f[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(c))if("<>AV".includes(c))for(var p=0;p<2;p++){for(var h=!0,g=u+1;g<i.length;g++){if(Rce(i[g],c)){h=!1,u=g;break}if(hF(i[g]))throw new se("Missing a "+c+" character to complete a CD arrow.",i[g]);f[p].body.push(i[g])}if(h)throw new se("Missing a "+c+" character to complete a CD arrow.",i[u])}else throw new se('Expected one of "<>AV=|." after @',i[u]);var x=zce(c,f,e),I={type:"styling",body:[x],mode:"math",style:"display"};a.push(I),s=mF()}o%2===0?a.push(s):a.shift(),a=[],n.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var S=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:S,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}ye({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"cdlabel",mode:r.mode,side:a.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),a=bc(pt(e.label,r,t),t);return a.classes.push("cd-label-"+e.side),a.style.bottom=ce(.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,t){var r=new ae("mrow",[Tt(e.label,t)]);return r=new ae("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new ae("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ye({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=bc(pt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new ae("mrow",[Tt(e.fragment,t)])}});ye({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,a=Ye(t[0],"ordgroup"),n=a.body,o="",i=0;i<n.length;i++){var s=Ye(n[i],"textord");o+=s.text}var u=parseInt(o),c;if(isNaN(u))throw new se("\\@char has non-numeric argument "+o);if(u<0||u>=1114111)throw new se("\\@char with invalid code point "+o);return u<=65535?c=String.fromCharCode(u):(u-=65536,c=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:r.mode,text:c}}});var ej=(e,t)=>{var r=mr(e.body,t.withColor(e.color),!1);return Vo(r)},tj=(e,t)=>{var r=Tn(e.body,t.withColor(e.color)),a=new ae("mstyle",r);return a.setAttribute("mathcolor",e.color),a};ye({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,a=Ye(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:a,body:ir(n)}},htmlBuilder:ej,mathmlBuilder:tj});ye({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:a}=e,n=Ye(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var o=r.parseExpression(!0,a);return{type:"color",mode:r.mode,color:n,body:o}},htmlBuilder:ej,mathmlBuilder:tj});ye({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:a}=e,n=a.gullet.future().text==="["?a.parseSizeGroup(!0):null,o=!a.settings.displayMode||!a.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:a.mode,newLine:o,size:n&&Ye(n,"size").value}},htmlBuilder(e,t){var r=Y(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=ce(Gt(e.size,t)))),r},mathmlBuilder(e,t){var r=new ae("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",ce(Gt(e.size,t)))),r}});var OC={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},rj=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new se("Expected a control sequence",e);return t},Nce=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},nj=(e,t,r,a)=>{var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,a)};ye({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var a=t.fetch();if(OC[a.text])return(r==="\\global"||r==="\\\\globallong")&&(a.text=OC[a.text]),Ye(t.parseFunction(),"internal");throw new se("Invalid token after macro prefix",a)}});ye({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=t.gullet.popToken(),n=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new se("Expected a control sequence",a);for(var o=0,i,s=[[]];t.gullet.future().text!=="{";)if(a=t.gullet.popToken(),a.text==="#"){if(t.gullet.future().text==="{"){i=t.gullet.future(),s[o].push("{");break}if(a=t.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new se('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==o+1)throw new se('Argument number "'+a.text+'" out of order');o++,s.push([])}else{if(a.text==="EOF")throw new se("Expected a macro definition");s[o].push(a.text)}var{tokens:u}=t.gullet.consumeArg();return i&&u.unshift(i),(r==="\\edef"||r==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(n,{tokens:u,numArgs:o,delimiters:s},r===OC[r]),{type:"internal",mode:t.mode}}});ye({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=rj(t.gullet.popToken());t.gullet.consumeSpaces();var n=Nce(t);return nj(t,a,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ye({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,a=rj(t.gullet.popToken()),n=t.gullet.popToken(),o=t.gullet.popToken();return nj(t,a,o,r==="\\\\globalfuture"),t.gullet.pushToken(o),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var qp=function(t,r,a){var n=Nt.math[t]&&Nt.math[t].replace,o=GC(n||t,r,a);if(!o)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return o},YC=function(t,r,a,n){var o=a.havingBaseStyle(r),i=Y(n.concat(o.sizingClasses(a)),[t],a),s=o.sizeMultiplier/a.sizeMultiplier;return i.height*=s,i.depth*=s,i.maxFontSize=o.sizeMultiplier,i},aj=function(t,r,a){var n=r.havingBaseStyle(a),o=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=ce(o),t.height-=o,t.depth+=o},Oce=function(t,r,a,n,o,i){var s=qr(t,"Main-Regular",o,n),u=YC(s,r,n,i);return a&&aj(u,n,r),u},Uce=function(t,r,a,n){return qr(t,"Size"+r+"-Regular",a,n)},oj=function(t,r,a,n,o,i){var s=Uce(t,r,o,n),u=YC(Y(["delimsizing","size"+r],[s],n),Be.TEXT,n,i);return a&&aj(u,n,Be.TEXT),u},yC=function(t,r,a){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var o=Y(["delimsizinginner",n],[Y([],[qr(t,r,a)])]);return{type:"elem",elem:o}},xC=function(t,r,a){var n=Za["Size4-Regular"][t.charCodeAt(0)]?Za["Size4-Regular"][t.charCodeAt(0)][4]:Za["Size1-Regular"][t.charCodeAt(0)][4],o=new Va("inner",ece(t,Math.round(1e3*r))),i=new ca([o],{width:ce(n),height:ce(r),style:"width:"+ce(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Ki([],[i],a);return s.height=r,s.style.height=ce(r),s.style.width=ce(n),{type:"elem",elem:s}},UC=.008,ux={type:"kern",size:-1*UC},Bce=new Set(["|","\\lvert","\\rvert","\\vert"]),Fce=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),ij=function(t,r,a,n,o,i){var s,u,c,f,p="",h=0;s=c=f=t,u=null;var g="Size1-Regular";t==="\\uparrow"?c=f="\u23D0":t==="\\Uparrow"?c=f="\u2016":t==="\\downarrow"?s=c="\u23D0":t==="\\Downarrow"?s=c="\u2016":t==="\\updownarrow"?(s="\\uparrow",c="\u23D0",f="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",c="\u2016",f="\\Downarrow"):Bce.has(t)?(c="\u2223",p="vert",h=333):Fce.has(t)?(c="\u2225",p="doublevert",h=556):t==="["||t==="\\lbrack"?(s="\u23A1",c="\u23A2",f="\u23A3",g="Size4-Regular",p="lbrack",h=667):t==="]"||t==="\\rbrack"?(s="\u23A4",c="\u23A5",f="\u23A6",g="Size4-Regular",p="rbrack",h=667):t==="\\lfloor"||t==="\u230A"?(c=s="\u23A2",f="\u23A3",g="Size4-Regular",p="lfloor",h=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",c=f="\u23A2",g="Size4-Regular",p="lceil",h=667):t==="\\rfloor"||t==="\u230B"?(c=s="\u23A5",f="\u23A6",g="Size4-Regular",p="rfloor",h=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",c=f="\u23A5",g="Size4-Regular",p="rceil",h=667):t==="("||t==="\\lparen"?(s="\u239B",c="\u239C",f="\u239D",g="Size4-Regular",p="lparen",h=875):t===")"||t==="\\rparen"?(s="\u239E",c="\u239F",f="\u23A0",g="Size4-Regular",p="rparen",h=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",u="\u23A8",f="\u23A9",c="\u23AA",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",u="\u23AC",f="\u23AD",c="\u23AA",g="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",f="\u23A9",c="\u23AA",g="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",f="\u23AD",c="\u23AA",g="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(s="\u23A7",f="\u23AD",c="\u23AA",g="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",f="\u23A9",c="\u23AA",g="Size4-Regular");var x=qp(s,g,o),I=x.height+x.depth,S=qp(c,g,o),$=S.height+S.depth,T=qp(f,g,o),k=T.height+T.depth,M=0,E=1;if(u!==null){var z=qp(u,g,o);M=z.height+z.depth,E=2}var j=I+k+M,q=Math.max(0,Math.ceil((r-j)/(E*$))),Z=j+q*E*$,W=n.fontMetrics().axisHeight;a&&(W*=n.sizeMultiplier);var de=Z/2-W,Q=[];if(p.length>0){var ht=Z-I-k,Ce=Math.round(Z*1e3),Fe=tce(p,Math.round(ht*1e3)),ve=new Va(p,Fe),Mr=ce(h/1e3),fe=ce(Ce/1e3),Ne=new ca([ve],{width:Mr,height:fe,viewBox:"0 0 "+h+" "+Ce}),ot=Ki([],[Ne],n);ot.height=Ce/1e3,ot.style.width=Mr,ot.style.height=fe,Q.push({type:"elem",elem:ot})}else{if(Q.push(yC(f,g,o)),Q.push(ux),u===null){var qe=Z-I-k+2*UC;Q.push(xC(c,qe,n))}else{var ke=(Z-I-k-M)/2+2*UC;Q.push(xC(c,ke,n)),Q.push(ux),Q.push(yC(u,g,o)),Q.push(ux),Q.push(xC(c,ke,n))}Q.push(ux),Q.push(yC(s,g,o))}var Ie=n.havingBaseStyle(Be.TEXT),he=ft({positionType:"bottom",positionData:de,children:Q});return YC(Y(["delimsizing","mult"],[he],Ie),Be.TEXT,n,i)},bC=80,wC=.08,_C=function(t,r,a,n,o){var i=Que(t,n,a),s=new Va(t,i),u=new ca([s],{width:"400em",height:ce(r),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return Ki(["hide-tail"],[u],o)},jce=function(t,r){var a=r.havingBaseSizing(),n=dj("\\surd",t*a.sizeMultiplier,cj,a),o=a.sizeMultiplier,i=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,u=0,c=0,f=0,p;return n.type==="small"?(f=1e3+1e3*i+bC,t<1?o=1:t<1.4&&(o=.7),u=(1+i+wC)/o,c=(1+i)/o,s=_C("sqrtMain",u,f,i,r),s.style.minWidth="0.853em",p=.833/o):n.type==="large"?(f=(1e3+bC)*Gp[n.size],c=(Gp[n.size]+i)/o,u=(Gp[n.size]+i+wC)/o,s=_C("sqrtSize"+n.size,u,f,i,r),s.style.minWidth="1.02em",p=1/o):(u=t+i+wC,c=t+i,f=Math.floor(1e3*t+i)+bC,s=_C("sqrtTall",u,f,i,r),s.style.minWidth="0.742em",p=1.056),s.height=c,s.style.height=ce(u),{span:s,advanceWidth:p,ruleWidth:(r.fontMetrics().sqrtRuleThickness+i)*o}},sj=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Zce=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),lj=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Gp=[0,1.2,1.8,2.4,3],uj=function(t,r,a,n,o){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),sj.has(t)||lj.has(t))return oj(t,r,!1,a,n,o);if(Zce.has(t))return ij(t,Gp[r],!1,a,n,o);throw new se("Illegal delimiter: '"+t+"'")},Vce=[{type:"small",style:Be.SCRIPTSCRIPT},{type:"small",style:Be.SCRIPT},{type:"small",style:Be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],qce=[{type:"small",style:Be.SCRIPTSCRIPT},{type:"small",style:Be.SCRIPT},{type:"small",style:Be.TEXT},{type:"stack"}],cj=[{type:"small",style:Be.SCRIPTSCRIPT},{type:"small",style:Be.SCRIPT},{type:"small",style:Be.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Gce=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.")},dj=function(t,r,a,n){for(var o=Math.min(2,3-n.style.size),i=o;i<a.length;i++){var s=a[i];if(s.type==="stack")break;var u=qp(t,Gce(s),"math"),c=u.height+u.depth;if(s.type==="small"){var f=n.havingBaseStyle(s.style);c*=f.sizeMultiplier}if(c>r)return s}return a[a.length-1]},BC=function(t,r,a,n,o,i){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;lj.has(t)?s=Vce:sj.has(t)?s=cj:s=qce;var u=dj(t,r,s,n);return u.type==="small"?Oce(t,u.style,a,n,o,i):u.type==="large"?oj(t,u.size,a,n,o,i):ij(t,r,a,n,o,i)},kC=function(t,r,a,n,o,i){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,u=901,c=5/n.fontMetrics().ptPerEm,f=Math.max(r-s,a+s),p=Math.max(f/500*u,2*f-c);return BC(t,p,!0,n,o,i)},gF={"\\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}},Hce=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 $x(e,t){var r=Tx(e);if(r&&Hce.has(r.text))return r;throw r?new se("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new se("Invalid delimiter type '"+e.type+"'",e)}ye({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=$x(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:gF[e.funcName].size,mclass:gF[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?Y([e.mclass]):uj(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Vn(e.delim,e.mode));var r=new ae("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var a=ce(Gp[e.size]);return r.setAttribute("minsize",a),r.setAttribute("maxsize",a),r}});function vF(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ye({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 se("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:$x(t[0],e).text,color:r}}});ye({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=$x(t[0],e),a=e.parser;++a.leftrightDepth;var n=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var o=Ye(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:n,left:r.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{vF(e);for(var r=mr(e.body,t,!0,["mopen","mclose"]),a=0,n=0,o=!1,i=0;i<r.length;i++)r[i].isMiddle?o=!0:(a=Math.max(r[i].height,a),n=Math.max(r[i].depth,n));a*=t.sizeMultiplier,n*=t.sizeMultiplier;var s;if(e.left==="."?s=Kp(t,["mopen"]):s=kC(e.left,a,n,t,e.mode,["mopen"]),r.unshift(s),o)for(var u=1;u<r.length;u++){var c=r[u],f=c.isMiddle;f&&(r[u]=kC(f.delim,a,n,f.options,e.mode,[]))}var p;if(e.right===".")p=Kp(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;p=kC(e.right,a,n,h,e.mode,["mclose"])}return r.push(p),Y(["minner"],r,t)},mathmlBuilder:(e,t)=>{vF(e);var r=Tn(e.body,t);if(e.left!=="."){var a=new ae("mo",[Vn(e.left,e.mode)]);a.setAttribute("fence","true"),r.unshift(a)}if(e.right!=="."){var n=new ae("mo",[Vn(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return JC(r)}});ye({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=$x(t[0],e);if(!e.parser.leftrightDepth)throw new se("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Kp(t,[]);else{r=uj(e.delim,1,t,e.mode,[]);var a={delim:e.delim,options:t};r.isMiddle=a}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Vn("|","text"):Vn(e.delim,e.mode),a=new ae("mo",[r]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var Lx=(e,t)=>{var r=bc(pt(e.body,t),t),a=e.label.slice(1),n=t.sizeMultiplier,o,i=0,s=jo(e.body);if(a==="sout")o=Y(["stretchy","sout"]),o.height=t.fontMetrics().defaultRuleThickness/n,i=-.5*t.fontMetrics().xHeight;else if(a==="phase"){var u=Gt({number:.6,unit:"pt"},t),c=Gt({number:.35,unit:"ex"},t),f=t.havingBaseSizing();n=n/f.sizeMultiplier;var p=r.height+r.depth+u+c;r.style.paddingLeft=ce(p/2+u);var h=Math.floor(1e3*p*n),g=Xue(h),x=new ca([new Va("phase",g)],{width:"400em",height:ce(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});o=Ki(["hide-tail"],[x],t),o.style.height=ce(p),i=r.depth+u+c}else{/cancel/.test(a)?s||r.classes.push("cancel-pad"):a==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var I=0,S=0,$=0;/box/.test(a)?($=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),I=t.fontMetrics().fboxsep+(a==="colorbox"?0:$),S=I):a==="angl"?($=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),I=4*$,S=Math.max(0,.25-r.depth)):(I=s?.2:0,S=I),o=Ace(r,a,I,S,t),/fbox|boxed|fcolorbox/.test(a)?(o.style.borderStyle="solid",o.style.borderWidth=ce($)):a==="angl"&&$!==.049&&(o.style.borderTopWidth=ce($),o.style.borderRightWidth=ce($)),i=r.depth+S,e.backgroundColor&&(o.style.backgroundColor=e.backgroundColor,e.borderColor&&(o.style.borderColor=e.borderColor))}var T;if(e.backgroundColor)T=ft({positionType:"individualShift",children:[{type:"elem",elem:o,shift:i},{type:"elem",elem:r,shift:0}]});else{var k=/cancel|phase/.test(a)?["svg-align"]:[];T=ft({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:o,shift:i,wrapperClasses:k}]})}return/cancel/.test(a)&&(T.height=r.height,T.depth=r.depth),/cancel/.test(a)&&!s?Y(["mord","cancel-lap"],[T],t):Y(["mord"],[T],t)},Ax=(e,t)=>{var r=0,a=new ae(e.label.includes("colorbox")?"mpadded":"menclose",[Tt(e.body,t)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*r+"pt"),a.setAttribute("height","+"+2*r+"pt"),a.setAttribute("lspace",r+"pt"),a.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);a.setAttribute("style","border: "+ce(n)+" solid "+e.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&a.setAttribute("mathbackground",e.backgroundColor),a};ye({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=Ye(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:a.mode,label:n,backgroundColor:o,body:i}},htmlBuilder:Lx,mathmlBuilder:Ax});ye({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:a,funcName:n}=e,o=Ye(t[0],"color-token").color,i=Ye(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:a.mode,label:n,backgroundColor:i,borderColor:o,body:s}},htmlBuilder:Lx,mathmlBuilder:Ax});ye({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]}}});ye({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Lx,mathmlBuilder:Ax});ye({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:a,body:n}},htmlBuilder:Lx,mathmlBuilder:Ax});ye({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 fj={};function qa(e){for(var{type:t,names:r,props:a,handler:n,htmlBuilder:o,mathmlBuilder:i}=e,s={type:t,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},u=0;u<r.length;++u)fj[r[u]]=s;o&&(hx[t]=o),i&&(gx[t]=i)}var pj={};function A(e,t){pj[e]=t}var cn=class e{constructor(t,r,a){this.lexer=t,this.start=r,this.end=a}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}},In=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,cn.range(this,t))}};function yF(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 Ex=e=>{var t=e.parser.settings;if(!t.displayMode)throw new se("{"+e.envName+"} can be used only in display mode.")},Wce=new Set(["gather","gather*"]);function QC(e){if(!e.includes("ed"))return!e.includes("*")}function Yi(e,t,r){var{hskipBeforeAndAfter:a,addJot:n,cols:o,arraystretch:i,colSeparationType:s,autoTag:u,singleRow:c,emptySingleRow:f,maxNumCols:p,leqno:h}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!i){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)i=1;else if(i=parseFloat(g),!i||i<0)throw new se("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var x=[],I=[x],S=[],$=[],T=u!=null?[]:void 0;function k(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function M(){T&&(e.gullet.macros.get("\\df@tag")?(T.push(e.subparse([new In("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):T.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),$.push(yF(e));;){var E=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var z={type:"ordgroup",mode:e.mode,body:E};r&&(z={type:"styling",mode:e.mode,style:r,body:[z]}),x.push(z);var j=e.fetch().text;if(j==="&"){if(p&&x.length===p){if(c||s)throw new se("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(j==="\\end"){M(),x.length===1&&z.type==="styling"&&z.body.length===1&&z.body[0].type==="ordgroup"&&z.body[0].body.length===0&&(I.length>1||!f)&&I.pop(),$.length<I.length+1&&$.push([]);break}else if(j==="\\\\"){e.consume();var q=void 0;e.gullet.future().text!==" "&&(q=e.parseSizeGroup(!0)),S.push(q?q.value:null),M(),$.push(yF(e)),x=[],I.push(x),k()}else throw new se("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:i,body:I,cols:o,rowGaps:S,hskipBeforeAndAfter:a,hLinesBeforeRow:$,colSeparationType:s,tags:T,leqno:h}}function e3(e){return e.slice(0,1)==="d"?"display":"text"}var Ga=function(t,r){var a,n,o=t.body.length,i=t.hLinesBeforeRow,s=0,u=new Array(o),c=[],f=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),p=1/r.fontMetrics().ptPerEm,h=5*p;if(t.colSeparationType&&t.colSeparationType==="small"){var g=r.havingStyle(Be.SCRIPT).sizeMultiplier;h=.2778*(g/r.sizeMultiplier)}var x=t.colSeparationType==="CD"?Gt({number:3,unit:"ex"},r):12*p,I=3*p,S=t.arraystretch*x,$=.7*S,T=.3*S,k=0;function M(as){for(var os=0;os<as.length;++os)os>0&&(k+=.25),c.push({pos:k,isDashed:as[os]})}for(M(i[0]),a=0;a<t.body.length;++a){var E=t.body[a],z=$,j=T;s<E.length&&(s=E.length);var q=new Array(E.length);for(n=0;n<E.length;++n){var Z=pt(E[n],r);j<Z.depth&&(j=Z.depth),z<Z.height&&(z=Z.height),q[n]=Z}var W=t.rowGaps[a],de=0;W&&(de=Gt(W,r),de>0&&(de+=T,j<de&&(j=de),de=0)),t.addJot&&a<t.body.length-1&&(j+=I),q.height=z,q.depth=j,k+=z,q.pos=k,k+=j+de,u[a]=q,M(i[a+1])}var Q=k/2+r.fontMetrics().axisHeight,ht=t.cols||[],Ce=[],Fe,ve,Mr=[];if(t.tags&&t.tags.some(as=>as))for(a=0;a<o;++a){var fe=u[a],Ne=fe.pos-Q,ot=t.tags[a],qe=void 0;ot===!0?qe=Y(["eqn-num"],[],r):ot===!1?qe=Y([],[],r):qe=Y([],mr(ot,r,!0),r),qe.depth=fe.depth,qe.height=fe.height,Mr.push({type:"elem",elem:qe,shift:Ne})}for(n=0,ve=0;n<s||ve<ht.length;++n,++ve){for(var ke,Ie=ht[ve],he=!0;((it=Ie)==null?void 0:it.type)==="separator";){var it;if(he||(Fe=Y(["arraycolsep"],[]),Fe.style.width=ce(r.fontMetrics().doubleRuleSep),Ce.push(Fe)),Ie.separator==="|"||Ie.separator===":"){var Ut=Ie.separator==="|"?"solid":"dashed",lr=Y(["vertical-separator"],[],r);lr.style.height=ce(k),lr.style.borderRightWidth=ce(f),lr.style.borderRightStyle=Ut,lr.style.margin="0 "+ce(-f/2);var Ht=k-Q;Ht&&(lr.style.verticalAlign=ce(-Ht)),Ce.push(lr)}else throw new se("Invalid separator type: "+Ie.separator);ve++,Ie=ht[ve],he=!1}if(!(n>=s)){var wr=void 0;if(n>0||t.hskipBeforeAndAfter){var Rr,fa;wr=(Rr=(fa=Ie)==null?void 0:fa.pregap)!=null?Rr:h,wr!==0&&(Fe=Y(["arraycolsep"],[]),Fe.style.width=ce(wr),Ce.push(Fe))}var cm=[];for(a=0;a<o;++a){var ts=u[a],rs=ts[n];if(rs){var Pc=ts.pos-Q;rs.depth=ts.depth,rs.height=ts.height,cm.push({type:"elem",elem:rs,shift:Pc})}}var ll=ft({positionType:"individualShift",children:cm}),jx=Y(["col-align-"+(((ke=Ie)==null?void 0:ke.align)||"c")],[ll]);if(Ce.push(jx),n<s-1||t.hskipBeforeAndAfter){var $c,ul;wr=($c=(ul=Ie)==null?void 0:ul.postgap)!=null?$c:h,wr!==0&&(Fe=Y(["arraycolsep"],[]),Fe.style.width=ce(wr),Ce.push(Fe))}}}var ns=Y(["mtable"],Ce);if(c.length>0){for(var dm=xc("hline",r,f),Zx=xc("hdashline",r,f),Lc=[{type:"elem",elem:ns,shift:0}];c.length>0;){var cl=c.pop(),Ac=cl.pos-Q;cl.isDashed?Lc.push({type:"elem",elem:Zx,shift:Ac}):Lc.push({type:"elem",elem:dm,shift:Ac})}ns=ft({positionType:"individualShift",children:Lc})}if(Mr.length===0)return Y(["mord"],[ns],r);var fm=ft({positionType:"individualShift",children:Mr}),Vx=Y(["tag"],[fm],r);return Vo([ns,Vx])},Jce={c:"center ",l:"left ",r:"right "},Ha=function(t,r){for(var a=[],n=new ae("mtd",[],["mtr-glue"]),o=new ae("mtd",[],["mml-eqn-num"]),i=0;i<t.body.length;i++){for(var s=t.body[i],u=[],c=0;c<s.length;c++)u.push(new ae("mtd",[Tt(s[c],r)]));t.tags&&t.tags[i]&&(u.unshift(n),u.push(n),t.leqno?u.unshift(o):u.push(o)),a.push(new ae("mtr",u))}var f=new ae("mtable",a),p=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);f.setAttribute("rowspacing",ce(p));var h="",g="";if(t.cols&&t.cols.length>0){var x=t.cols,I="",S=!1,$=0,T=x.length;x[0].type==="separator"&&(h+="top ",$=1),x[x.length-1].type==="separator"&&(h+="bottom ",T-=1);for(var k=$;k<T;k++){var M=x[k];M.type==="align"?(g+=Jce[M.align],S&&(I+="none "),S=!0):M.type==="separator"&&S&&(I+=M.separator==="|"?"solid ":"dashed ",S=!1)}f.setAttribute("columnalign",g.trim()),/[sd]/.test(I)&&f.setAttribute("columnlines",I.trim())}if(t.colSeparationType==="align"){for(var E=t.cols||[],z="",j=1;j<E.length;j++)z+=j%2?"0em ":"1em ";f.setAttribute("columnspacing",z.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?f.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?f.setAttribute("columnspacing","0.5em"):f.setAttribute("columnspacing","1em");var q="",Z=t.hLinesBeforeRow;h+=Z[0].length>0?"left ":"",h+=Z[Z.length-1].length>0?"right ":"";for(var W=1;W<Z.length-1;W++)q+=Z[W].length===0?"none ":Z[W][0]?"dashed ":"solid ";return/[sd]/.test(q)&&f.setAttribute("rowlines",q.trim()),h!==""&&(f=new ae("menclose",[f]),f.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(f=new ae("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},mj=function(t,r){t.envName.includes("ed")||Ex(t);var a=[],n=t.envName.includes("at")?"alignat":"align",o=t.envName==="split",i=Yi(t.parser,{cols:a,addJot:!0,autoTag:o?void 0:QC(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:o?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,u=0,c={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var f="",p=0;p<r[0].body.length;p++){var h=Ye(r[0].body[p],"textord");f+=h.text}s=Number(f),u=s*2}var g=!u;i.body.forEach(function($){for(var T=1;T<$.length;T+=2){var k=Ye($[T],"styling"),M=Ye(k.body[0],"ordgroup");M.body.unshift(c)}if(g)u<$.length&&(u=$.length);else{var E=$.length/2;if(s<E)throw new se("Too many math in a row: "+("expected "+s+", but got "+E),$[0])}});for(var x=0;x<u;++x){var I="r",S=0;x%2===1?I="l":x>0&&g&&(S=1),a[x]={type:"align",align:I,pregap:S,postgap:0}}return i.colSeparationType=g?"align":"alignat",i};qa({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=Tx(t[0]),a=r?[t[0]]:Ye(t[0],"ordgroup").body,n=a.map(function(i){var s=Cx(i),u=s.text;if("lcr".includes(u))return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new se("Unknown column alignment: "+u,i)}),o={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Yi(e.parser,o,e3(e.envName))},htmlBuilder:Ga,mathmlBuilder:Ha});qa({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",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new se("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),a.cols=[{type:"align",align:r}]}}var o=Yi(e.parser,a,e3(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:Ga,mathmlBuilder:Ha});qa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Yi(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=Tx(t[0]),a=r?[t[0]]:Ye(t[0],"ordgroup").body,n=a.map(function(s){var u=Cx(s),c=u.text;if("lc".includes(c))return{type:"align",align:c};throw new se("Unknown column alignment: "+c,s)});if(n.length>1)throw new se("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},i=Yi(e.parser,o,"script");if(i.body.length>0&&i.body[0].length>1)throw new se("{subarray} can contain only one column");return i},htmlBuilder:Ga,mathmlBuilder:Ha});qa({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=Yi(e.parser,t,e3(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:mj,htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Wce.has(e.envName)&&Ex(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:QC(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Yi(e.parser,t,"display")},htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:mj,htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Ex(e);var t={autoTag:QC(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Yi(e.parser,t,"display")},htmlBuilder:Ga,mathmlBuilder:Ha});qa({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Ex(e),Dce(e.parser)},htmlBuilder:Ga,mathmlBuilder:Ha});A("\\nonumber","\\gdef\\@eqnsw{0}");A("\\notag","\\nonumber");ye({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new se(e.funcName+" valid only within array environment")}});var xF=fj;ye({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:a}=e,n=t[0];if(n.type!=="ordgroup")throw new se("Invalid environment name",n);for(var o="",i=0;i<n.body.length;++i)o+=Ye(n.body[i],"textord").text;if(a==="\\begin"){if(!xF.hasOwnProperty(o))throw new se("No such environment: "+o,n);var s=xF[o],{args:u,optArgs:c}=r.parseArguments("\\begin{"+o+"}",s),f={mode:r.mode,envName:o,parser:r},p=s.handler(f,u,c);r.expect("\\end",!1);var h=r.nextToken,g=Ye(r.parseFunction(),"environment");if(g.name!==o)throw new se("Mismatch: \\begin{"+o+"} matched by \\end{"+g.name+"}",h);return p}return{type:"environment",mode:r.mode,name:o,nameGroup:n}}});var hj=(e,t)=>{var r=e.font,a=t.withFont(r);return pt(e.body,a)},gj=(e,t)=>{var r=e.font,a=t.withFont(r);return Tt(e.body,a)},bF={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ye({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:a}=e,n=vx(t[0]),o=a;return o in bF&&(o=bF[o]),{type:"font",mode:r.mode,font:o.slice(1),body:n}},htmlBuilder:hj,mathmlBuilder:gj});ye({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"mclass",mode:r.mode,mclass:Px(a),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:a}],isCharacterBox:jo(a)}}});ye({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,breakOnTokenText:n}=e,{mode:o}=r,i=r.parseExpression(!0,n),s="math"+a.slice(1);return{type:"font",mode:o,font:s,body:{type:"ordgroup",mode:r.mode,body:i}}},htmlBuilder:hj,mathmlBuilder:gj});var Kce=(e,t)=>{var r=t.style,a=r.fracNum(),n=r.fracDen(),o;o=t.havingStyle(a);var i=pt(e.numer,o,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;i.height=i.height<s?s:i.height,i.depth=i.depth<u?u:i.depth}o=t.havingStyle(n);var c=pt(e.denom,o,t),f,p,h;e.hasBarLine?(e.barSize?(p=Gt(e.barSize,t),f=xc("frac-line",t,p)):f=xc("frac-line",t),p=f.height,h=f.height):(f=null,p=0,h=t.fontMetrics().defaultRuleThickness);var g,x,I;r.size===Be.DISPLAY.size?(g=t.fontMetrics().num1,p>0?x=3*h:x=7*h,I=t.fontMetrics().denom1):(p>0?(g=t.fontMetrics().num2,x=h):(g=t.fontMetrics().num3,x=3*h),I=t.fontMetrics().denom2);var S;if(f){var T=t.fontMetrics().axisHeight;g-i.depth-(T+.5*p)<x&&(g+=x-(g-i.depth-(T+.5*p))),T-.5*p-(c.height-I)<x&&(I+=x-(T-.5*p-(c.height-I)));var k=-(T-.5*p);S=ft({positionType:"individualShift",children:[{type:"elem",elem:c,shift:I},{type:"elem",elem:f,shift:k},{type:"elem",elem:i,shift:-g}]})}else{var $=g-i.depth-(c.height-I);$<x&&(g+=.5*(x-$),I+=.5*(x-$)),S=ft({positionType:"individualShift",children:[{type:"elem",elem:c,shift:I},{type:"elem",elem:i,shift:-g}]})}o=t.havingStyle(r),S.height*=o.sizeMultiplier/t.sizeMultiplier,S.depth*=o.sizeMultiplier/t.sizeMultiplier;var M;r.size===Be.DISPLAY.size?M=t.fontMetrics().delim1:r.size===Be.SCRIPTSCRIPT.size?M=t.havingStyle(Be.SCRIPT).fontMetrics().delim2:M=t.fontMetrics().delim2;var E,z;return e.leftDelim==null?E=Kp(t,["mopen"]):E=BC(e.leftDelim,M,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?z=Y([]):e.rightDelim==null?z=Kp(t,["mclose"]):z=BC(e.rightDelim,M,!0,t.havingStyle(r),e.mode,["mclose"]),Y(["mord"].concat(o.sizingClasses(t)),[E,Y(["mfrac"],[S]),z],t)},Xce=(e,t)=>{var r=new ae("mfrac",[Tt(e.numer,t),Tt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var a=Gt(e.barSize,t);r.setAttribute("linethickness",ce(a))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var o=new ae("mo",[new Kt(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),n.push(o)}if(n.push(r),e.rightDelim!=null){var i=new ae("mo",[new Kt(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}return JC(n)}return r},vj=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};ye({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:a}=e,n=t[0],o=t[1],i,s=null,u=null;switch(a){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="(",u=")";break;case"\\\\bracefrac":i=!1,s="\\{",u="\\}";break;case"\\\\brackfrac":i=!1,s="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}var c=a==="\\cfrac",f=null;return c||a.startsWith("\\d")?f="display":a.startsWith("\\t")&&(f="text"),vj({type:"genfrac",mode:r.mode,numer:n,denom:o,continued:c,hasBarLine:i,leftDelim:s,rightDelim:u,barSize:null},f)},htmlBuilder:Kce,mathmlBuilder:Xce});ye({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:a}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:a}}});var wF=["display","text","script","scriptscript"],_F=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ye({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,a=t[4],n=t[5],o=vx(t[0]),i=o.type==="atom"&&o.family==="open"?_F(o.text):null,s=vx(t[1]),u=s.type==="atom"&&s.family==="close"?_F(s.text):null,c=Ye(t[2],"size"),f,p=null;c.isBlank?f=!0:(p=c.value,f=p.number>0);var h=null,g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var x=Ye(g.body[0],"textord");h=wF[Number(x.text)]}}else g=Ye(g,"textord"),h=wF[Number(g.text)];return vj({type:"genfrac",mode:r.mode,numer:a,denom:n,continued:!1,hasBarLine:f,barSize:p,leftDelim:i,rightDelim:u},h)}});ye({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:a,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ye(t[0],"size").value,token:n}}});ye({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0],o=Ye(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:n,denom:i,continued:!1,hasBarLine:s,barSize:o,leftDelim:null,rightDelim:null}}});var yj=(e,t)=>{var r=t.style,a,n;e.type==="supsub"?(a=e.sup?pt(e.sup,t.havingStyle(r.sup()),t):pt(e.sub,t.havingStyle(r.sub()),t),n=Ye(e.base,"horizBrace")):n=Ye(e,"horizBrace");var o=pt(n.base,t.havingBaseStyle(Be.DISPLAY)),i=Ix(n,t),s;if(n.isOver?(s=ft({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=ft({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")),a){var u=Y(["minner",n.isOver?"mover":"munder"],[s],t);n.isOver?s=ft({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:a}]}):s=ft({positionType:"bottom",positionData:u.depth+.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:.2},{type:"elem",elem:u}]})}return Y(["minner",n.isOver?"mover":"munder"],[s],t)},Yce=(e,t)=>{var r=Sx(e.label);return new ae(e.isOver?"mover":"munder",[Tt(e.base,t),r])};ye({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:a}=e;return{type:"horizBrace",mode:r.mode,label:a,isOver:a.includes("\\over"),base:t[0]}},htmlBuilder:yj,mathmlBuilder:Yce});ye({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[1],n=Ye(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:ir(a)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=mr(e.body,t,!1);return hce(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Xi(e.body,t);return r instanceof ae||(r=new ae("mrow",[r])),r.setAttribute("href",e.href),r}});ye({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=Ye(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:a}))return r.formatUnsupportedCmd("\\url");for(var n=[],o=0;o<a.length;o++){var i=a[o];i==="~"&&(i="\\textasciitilde"),n.push({type:"textord",mode:"text",text:i})}var s={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:a,body:ir(s)}}});ye({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:ir(t[0])}},htmlBuilder(e,t){var r=mr(e.body,t,!1);return Vo(r)},mathmlBuilder(e,t){return new ae("mrow",Tn(e.body,t))}});ye({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a,token:n}=e,o=Ye(t[0],"raw").string,i=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,u={};switch(a){case"\\htmlClass":u.class=o,s={command:"\\htmlClass",class:o};break;case"\\htmlId":u.id=o,s={command:"\\htmlId",id:o};break;case"\\htmlStyle":u.style=o,s={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var c=o.split(","),f=0;f<c.length;f++){var p=c[f],h=p.indexOf("=");if(h<0)throw new se("\\htmlData key/value '"+p+"' missing equals sign");var g=p.slice(0,h),x=p.slice(h+1);u["data-"+g.trim()]=x}s={command:"\\htmlData",attributes:u};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:u,body:ir(i)}:r.formatUnsupportedCmd(a)},htmlBuilder:(e,t)=>{var r=mr(e.body,t,!1),a=["enclosing"];e.attributes.class&&a.push(...e.attributes.class.trim().split(/\s+/));var n=Y(a,r,t);for(var o in e.attributes)o!=="class"&&e.attributes.hasOwnProperty(o)&&n.setAttribute(o,e.attributes[o]);return n},mathmlBuilder:(e,t)=>Xi(e.body,t)});ye({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:ir(t[0]),mathml:ir(t[1])}},htmlBuilder:(e,t)=>{var r=mr(e.html,t,!1);return Vo(r)},mathmlBuilder:(e,t)=>Xi(e.mathml,t)});var SC=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 se("Invalid size: '"+t+"' in \\includegraphics");var a={number:+(r[1]+r[2]),unit:r[3]};if(!DF(a))throw new se("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a};ye({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:a}=e,n={number:0,unit:"em"},o={number:.9,unit:"em"},i={number:0,unit:"em"},s="";if(r[0])for(var u=Ye(r[0],"raw").string,c=u.split(","),f=0;f<c.length;f++){var p=c[f].split("=");if(p.length===2){var h=p[1].trim();switch(p[0].trim()){case"alt":s=h;break;case"width":n=SC(h);break;case"height":o=SC(h);break;case"totalheight":i=SC(h);break;default:throw new se("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var g=Ye(t[0],"url").url;return s===""&&(s=g,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),a.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:a.mode,alt:s,width:n,height:o,totalheight:i,src:g}:a.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Gt(e.height,t),a=0;e.totalheight.number>0&&(a=Gt(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=Gt(e.width,t));var o={height:ce(r+a)};n>0&&(o.width=ce(n)),a>0&&(o.verticalAlign=ce(-a));var i=new AC(e.src,e.alt,o);return i.height=r,i.depth=a,i},mathmlBuilder:(e,t)=>{var r=new ae("mglyph",[]);r.setAttribute("alt",e.alt);var a=Gt(e.height,t),n=0;if(e.totalheight.number>0&&(n=Gt(e.totalheight,t)-a,r.setAttribute("valign",ce(-n))),r.setAttribute("height",ce(a+n)),e.width.number>0){var o=Gt(e.width,t);r.setAttribute("width",ce(o))}return r.setAttribute("src",e.src),r}});ye({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:a}=e,n=Ye(t[0],"size");if(r.settings.strict){var o=a[1]==="m",i=n.value.unit==="mu";o?(i||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" works only in math mode")):i&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+a+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return jF(e.dimension,t)},mathmlBuilder(e,t){var r=Gt(e.dimension,t);return new yx(r)}});ye({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:a.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=Y([],[pt(e.body,t)]),r=Y(["inner"],[r],t)):r=Y(["inner"],[pt(e.body,t)]);var a=Y(["fix"],[]),n=Y([e.alignment],[r,a],t),o=Y(["strut"]);return o.style.height=ce(n.height+n.depth),n.depth&&(o.style.verticalAlign=ce(-n.depth)),n.children.unshift(o),n=Y(["thinbox"],[n],t),Y(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new ae("mpadded",[Tt(e.body,t)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",a+"width")}return r.setAttribute("width","0px"),r}});ye({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:a}=e,n=a.mode;a.switchMode("math");var o=r==="\\("?"\\)":"$",i=a.parseExpression(!1,o);return a.expect(o),a.switchMode(n),{type:"styling",mode:a.mode,style:"text",body:i}}});ye({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new se("Mismatched "+e.funcName)}});var kF=(e,t)=>{switch(t.style.size){case Be.DISPLAY.size:return e.display;case Be.TEXT.size:return e.text;case Be.SCRIPT.size:return e.script;case Be.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ye({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:ir(t[0]),text:ir(t[1]),script:ir(t[2]),scriptscript:ir(t[3])}},htmlBuilder:(e,t)=>{var r=kF(e,t),a=mr(r,t,!1);return Vo(a)},mathmlBuilder:(e,t)=>{var r=kF(e,t);return Xi(r,t)}});var xj=(e,t,r,a,n,o,i)=>{e=Y([],[e]);var s=r&&jo(r),u,c;if(t){var f=pt(t,a.havingStyle(n.sup()),a);c={elem:f,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-f.depth)}}if(r){var p=pt(r,a.havingStyle(n.sub()),a);u={elem:p,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-p.height)}}var h;if(c&&u){var g=a.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+i;h=ft({positionType:"bottom",positionData:g,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ce(-o)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:ce(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(u){var x=e.height-i;h=ft({positionType:"top",positionData:x,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:ce(-o)},{type:"kern",size:u.kern},{type:"elem",elem:e}]})}else if(c){var I=e.depth+i;h=ft({positionType:"bottom",positionData:I,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:ce(o)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return e;var S=[h];if(u&&o!==0&&!s){var $=Y(["mspace"],[],a);$.style.marginRight=ce(o),S.unshift($)}return Y(["mop","op-limits"],S,a)},bj=new Set(["\\smallint"]),_c=(e,t)=>{var r,a,n=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=Ye(e.base,"op"),n=!0):o=Ye(e,"op");var i=t.style,s=!1;i.size===Be.DISPLAY.size&&o.symbol&&!bj.has(o.name)&&(s=!0);var u;if(o.symbol){var c=s?"Size2-Regular":"Size1-Regular",f="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(f=o.name.slice(1),o.name=f==="oiint"?"\\iint":"\\iiint"),u=qr(o.name,c,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),f.length>0){var p=u.italic,h=VF(f+"Size"+(s?"2":"1"),t);u=ft({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:h,shift:s?.08:0}]}),o.name="\\"+f,u.classes.unshift("mop"),u.italic=p}}else if(o.body){var g=mr(o.body,t,!0);g.length===1&&g[0]instanceof Hr?(u=g[0],u.classes[0]="mop"):u=Y(["mop"],g,t)}else{for(var x=[],I=1;I<o.name.length;I++)x.push(HC(o.name[I],o.mode,t));u=Y(["mop"],x,t)}var S=0,$=0;return(u instanceof Hr||o.name==="\\oiint"||o.name==="\\oiiint")&&!o.suppressBaseShift&&(S=(u.height-u.depth)/2-t.fontMetrics().axisHeight,$=u.italic||0),n?xj(u,r,a,t,i,$,S):(S&&(u.style.position="relative",u.style.top=ce(S)),u)},Yp=(e,t)=>{var r;if(e.symbol)r=new ae("mo",[Vn(e.name,e.mode)]),bj.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new ae("mo",Tn(e.body,t));else{r=new ae("mi",[new Kt(e.name.slice(1))]);var a=new ae("mo",[Vn("\u2061","text")]);e.parentIsSupSub?r=new ae("mrow",[r,a]):r=HF([r,a])}return r},Qce={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};ye({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:a}=e,n=a;return n.length===1&&(n=Qce[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:_c,mathmlBuilder:Yp});ye({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ir(a)}},htmlBuilder:_c,mathmlBuilder:Yp});var ede={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};ye({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:_c,mathmlBuilder:Yp});ye({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:_c,mathmlBuilder:Yp});ye({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,a=r;return a.length===1&&(a=ede[a]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:_c,mathmlBuilder:Yp});var wj=(e,t)=>{var r,a,n=!1,o;e.type==="supsub"?(r=e.sup,a=e.sub,o=Ye(e.base,"operatorname"),n=!0):o=Ye(e,"operatorname");var i;if(o.body.length>0){for(var s=o.body.map(p=>{var h="text"in p?p.text:void 0;return typeof h=="string"?{type:"textord",mode:p.mode,text:h}:p}),u=mr(s,t.withFont("mathrm"),!0),c=0;c<u.length;c++){var f=u[c];f instanceof Hr&&(f.text=f.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Y(["mop"],u,t)}else i=Y(["mop"],[],t);return n?xj(i,r,a,t,t.style,0,0):i},tde=(e,t)=>{for(var r=Tn(e.body,t.withFont("mathrm")),a=!0,n=0;n<r.length;n++){var o=r[n];if(!(o instanceof yx))if(o instanceof ae)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 Kt?i.text=i.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):a=!1;break}default:a=!1}else a=!1}if(a){var s=r.map(f=>f.toText()).join("");r=[new Kt(s)]}var u=new ae("mi",r);u.setAttribute("mathvariant","normal");var c=new ae("mo",[Vn("\u2061","text")]);return e.parentIsSupSub?new ae("mrow",[u,c]):HF([u,c])};ye({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:a}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:ir(n),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:wj,mathmlBuilder:tde});A("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");il({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Vo(mr(e.body,t,!1)):Y(["mord"],mr(e.body,t,!0),t)},mathmlBuilder(e,t){return Xi(e.body,t,!0)}});ye({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,a=t[0];return{type:"overline",mode:r.mode,body:a}},htmlBuilder(e,t){var r=pt(e.body,t.havingCrampedStyle()),a=xc("overline-line",t),n=t.fontMetrics().defaultRuleThickness,o=ft({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:a},{type:"kern",size:n}]});return Y(["mord","overline"],[o],t)},mathmlBuilder(e,t){var r=new ae("mo",[new Kt("\u203E")]);r.setAttribute("stretchy","true");var a=new ae("mover",[Tt(e.body,t),r]);return a.setAttribute("accent","true"),a}});ye({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"phantom",mode:r.mode,body:ir(a)}},htmlBuilder:(e,t)=>{var r=mr(e.body,t.withPhantom(),!1);return Vo(r)},mathmlBuilder:(e,t)=>{var r=Tn(e.body,t);return new ae("mphantom",r)}});A("\\hphantom","\\smash{\\phantom{#1}}");ye({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,a=t[0];return{type:"vphantom",mode:r.mode,body:a}},htmlBuilder:(e,t)=>{var r=Y(["inner"],[pt(e.body,t.withPhantom())]),a=Y(["fix"],[]);return Y(["mord","rlap"],[r,a],t)},mathmlBuilder:(e,t)=>{var r=Tn(ir(e.body),t),a=new ae("mphantom",r),n=new ae("mpadded",[a]);return n.setAttribute("width","0px"),n}});ye({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,a=Ye(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:a,body:n}},htmlBuilder(e,t){var r=pt(e.body,t),a=Gt(e.dy,t);return ft({positionType:"shift",positionData:-a,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new ae("mpadded",[Tt(e.body,t)]),a=e.dy.number+e.dy.unit;return r.setAttribute("voffset",a),r}});ye({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ye({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:a}=e,n=r[0],o=Ye(t[0],"size"),i=Ye(t[1],"size");return{type:"rule",mode:a.mode,shift:n&&Ye(n,"size").value,width:o.value,height:i.value}},htmlBuilder(e,t){var r=Y(["mord","rule"],[],t),a=Gt(e.width,t),n=Gt(e.height,t),o=e.shift?Gt(e.shift,t):0;return r.style.borderRightWidth=ce(a),r.style.borderTopWidth=ce(n),r.style.bottom=ce(o),r.width=a,r.height=n+o,r.depth=-o,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Gt(e.width,t),a=Gt(e.height,t),n=e.shift?Gt(e.shift,t):0,o=t.color&&t.getColor()||"black",i=new ae("mspace");i.setAttribute("mathbackground",o),i.setAttribute("width",ce(r)),i.setAttribute("height",ce(a));var s=new ae("mpadded",[i]);return n>=0?s.setAttribute("height",ce(n)):(s.setAttribute("height",ce(n)),s.setAttribute("depth",ce(-n))),s.setAttribute("voffset",ce(n)),s}});function _j(e,t,r){for(var a=mr(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,o=0;o<a.length;o++){var i=a[o].classes.indexOf("sizing");i<0?Array.prototype.push.apply(a[o].classes,t.sizingClasses(r)):a[o].classes[i+1]==="reset-size"+t.size&&(a[o].classes[i+1]="reset-size"+r.size),a[o].height*=n,a[o].depth*=n}return Vo(a)}var SF=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],rde=(e,t)=>{var r=t.havingSize(e.size);return _j(e.body,r,t)};ye({type:"sizing",names:SF,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:SF.indexOf(a)+1,body:o}},htmlBuilder:rde,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),a=Tn(e.body,r),n=new ae("mstyle",a);return n.setAttribute("mathsize",ce(r.sizeMultiplier)),n}});ye({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:a}=e,n=!1,o=!1,i=r[0]&&Ye(r[0],"ordgroup");if(i)for(var s="",u=0;u<i.body.length;++u){var c=i.body[u];if(s=Cx(c).text,s==="t")n=!0;else if(s==="b")o=!0;else{n=!1,o=!1;break}}else n=!0,o=!0;var f=t[0];return{type:"smash",mode:a.mode,body:f,smashHeight:n,smashDepth:o}},htmlBuilder:(e,t)=>{var r=Y([],[pt(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 Y(["mord","smash"],[r],t);if(r.children)for(var a=0;a<r.children.length;a++)e.smashHeight&&(r.children[a].height=0),e.smashDepth&&(r.children[a].depth=0);var n=ft({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return Y(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new ae("mpadded",[Tt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ye({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:a}=e,n=r[0],o=t[0];return{type:"sqrt",mode:a.mode,body:o,index:n}},htmlBuilder(e,t){var r=pt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=bc(r,t);var a=t.fontMetrics(),n=a.defaultRuleThickness,o=n;t.style.id<Be.TEXT.id&&(o=t.fontMetrics().xHeight);var i=n+o/4,s=r.height+r.depth+i+n,{span:u,ruleWidth:c,advanceWidth:f}=jce(s,t),p=u.height-c;p>r.height+r.depth+i&&(i=(i+p-r.height-r.depth)/2);var h=u.height-r.height-i-c;r.style.paddingLeft=ce(f);var g=ft({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:u},{type:"kern",size:c}]});if(e.index){var x=t.havingStyle(Be.SCRIPTSCRIPT),I=pt(e.index,x,t),S=.6*(g.height-g.depth),$=ft({positionType:"shift",positionData:-S,children:[{type:"elem",elem:I}]}),T=Y(["root"],[$]);return Y(["mord","sqrt"],[T,g],t)}else return Y(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:r,index:a}=e;return a?new ae("mroot",[Tt(r,t),Tt(a,t)]):new ae("msqrt",[Tt(r,t)])}});var IF={display:Be.DISPLAY,text:Be.TEXT,script:Be.SCRIPT,scriptscript:Be.SCRIPTSCRIPT};ye({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:a,parser:n}=e,o=n.parseExpression(!0,r),i=a.slice(1,a.length-5);return{type:"styling",mode:n.mode,style:i,body:o}},htmlBuilder(e,t){var r=IF[e.style],a=t.havingStyle(r).withFont("");return _j(e.body,a,t)},mathmlBuilder(e,t){var r=IF[e.style],a=t.havingStyle(r),n=Tn(e.body,a),o=new ae("mstyle",n),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 nde=function(t,r){var a=t.base;if(a)if(a.type==="op"){var n=a.limits&&(r.style.size===Be.DISPLAY.size||a.alwaysHandleSupSub);return n?_c:null}else if(a.type==="operatorname"){var o=a.alwaysHandleSupSub&&(r.style.size===Be.DISPLAY.size||a.limits);return o?wj:null}else{if(a.type==="accent")return jo(a.base)?XC:null;if(a.type==="horizBrace"){var i=!t.sub;return i===a.isOver?yj:null}else return null}else return null};il({type:"supsub",htmlBuilder(e,t){var r=nde(e,t);if(r)return r(e,t);var{base:a,sup:n,sub:o}=e,i=pt(a,t),s,u,c=t.fontMetrics(),f=0,p=0,h=a&&jo(a);if(n){var g=t.havingStyle(t.style.sup());s=pt(n,g,t),h||(f=i.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(o){var x=t.havingStyle(t.style.sub());u=pt(o,x,t),h||(p=i.depth+x.fontMetrics().subDrop*x.sizeMultiplier/t.sizeMultiplier)}var I;t.style===Be.DISPLAY?I=c.sup1:t.style.cramped?I=c.sup3:I=c.sup2;var S=t.sizeMultiplier,$=ce(.5/c.ptPerEm/S),T=null;if(u){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(i instanceof Hr||k)&&(T=ce(-i.italic))}var M;if(s&&u){f=Math.max(f,I,s.depth+.25*c.xHeight),p=Math.max(p,c.sub2);var E=c.defaultRuleThickness,z=4*E;if(f-s.depth-(u.height-p)<z){p=z-(f-s.depth)+u.height;var j=.8*c.xHeight-(f-s.depth);j>0&&(f+=j,p-=j)}var q=[{type:"elem",elem:u,shift:p,marginRight:$,marginLeft:T},{type:"elem",elem:s,shift:-f,marginRight:$}];M=ft({positionType:"individualShift",children:q})}else if(u){p=Math.max(p,c.sub1,u.height-.8*c.xHeight);var Z=[{type:"elem",elem:u,marginLeft:T,marginRight:$}];M=ft({positionType:"shift",positionData:p,children:Z})}else if(s)f=Math.max(f,I,s.depth+.25*c.xHeight),M=ft({positionType:"shift",positionData:-f,children:[{type:"elem",elem:s,marginRight:$}]});else throw new Error("supsub must have either sup or sub.");var W=DC(i,"right")||"mord";return Y([W],[i,Y(["msupsub"],[M])],t)},mathmlBuilder(e,t){var r=!1,a,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,a=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var o=[Tt(e.base,t)];e.sub&&o.push(Tt(e.sub,t)),e.sup&&o.push(Tt(e.sup,t));var i;if(r)i=a?"mover":"munder";else if(e.sub)if(e.sup){var c=e.base;c&&c.type==="op"&&c.limits&&t.style===Be.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(t.style===Be.DISPLAY||c.limits)?i="munderover":i="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===Be.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===Be.DISPLAY)?i="munder":i="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Be.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Be.DISPLAY)?i="mover":i="msup"}return new ae(i,o)}});il({type:"atom",htmlBuilder(e,t){return HC(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new ae("mo",[Vn(e.text,e.mode)]);if(e.family==="bin"){var a=KC(e,t);a==="bold-italic"&&r.setAttribute("mathvariant",a)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var kj={mi:"italic",mn:"normal",mtext:"normal"};il({type:"mathord",htmlBuilder(e,t){return kx(e,t,"mathord")},mathmlBuilder(e,t){var r=new ae("mi",[Vn(e.text,e.mode,t)]),a=KC(e,t)||"italic";return a!==kj[r.type]&&r.setAttribute("mathvariant",a),r}});il({type:"textord",htmlBuilder(e,t){return kx(e,t,"textord")},mathmlBuilder(e,t){var r=Vn(e.text,e.mode,t),a=KC(e,t)||"normal",n;return e.mode==="text"?n=new ae("mtext",[r]):/[0-9]/.test(e.text)?n=new ae("mn",[r]):e.text==="\\prime"?n=new ae("mo",[r]):n=new ae("mi",[r]),a!==kj[n.type]&&n.setAttribute("mathvariant",a),n}});var IC={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},CC={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};il({type:"spacing",htmlBuilder(e,t){if(CC.hasOwnProperty(e.text)){var r=CC[e.text].className||"";if(e.mode==="text"){var a=kx(e,t,"textord");return a.classes.push(r),a}else return Y(["mspace",r],[HC(e.text,e.mode,t)],t)}else{if(IC.hasOwnProperty(e.text))return Y(["mspace",IC[e.text]],[],t);throw new se('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(CC.hasOwnProperty(e.text))r=new ae("mtext",[new Kt("\xA0")]);else{if(IC.hasOwnProperty(e.text))return new ae("mspace");throw new se('Unknown type of space "'+e.text+'"')}return r}});var CF=()=>{var e=new ae("mtd",[]);return e.setAttribute("width","50%"),e};il({type:"tag",mathmlBuilder(e,t){var r=new ae("mtable",[new ae("mtr",[CF(),new ae("mtd",[Xi(e.body,t)]),CF(),new ae("mtd",[Xi(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var TF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},PF={"\\textbf":"textbf","\\textmd":"textmd"},ade={"\\textit":"textit","\\textup":"textup"},$F=(e,t)=>{var r=e.font;if(r){if(TF[r])return t.withTextFontFamily(TF[r]);if(PF[r])return t.withTextFontWeight(PF[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(ade[r])};ye({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:a}=e,n=t[0];return{type:"text",mode:r.mode,body:ir(n),font:a}},htmlBuilder(e,t){var r=$F(e,t),a=mr(e.body,r,!0);return Y(["mord","text"],a,r)},mathmlBuilder(e,t){var r=$F(e,t);return Xi(e.body,r)}});ye({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=pt(e.body,t),a=xc("underline-line",t),n=t.fontMetrics().defaultRuleThickness,o=ft({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:a},{type:"kern",size:3*n},{type:"elem",elem:r}]});return Y(["mord","underline"],[o],t)},mathmlBuilder(e,t){var r=new ae("mo",[new Kt("\u203E")]);r.setAttribute("stretchy","true");var a=new ae("munder",[Tt(e.body,t),r]);return a.setAttribute("accentunder","true"),a}});ye({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=pt(e.body,t),a=t.fontMetrics().axisHeight,n=.5*(r.height-a-(r.depth+a));return ft({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new ae("mpadded",[Tt(e.body,t)],["vcenter"])}});ye({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new se("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=LF(e),a=[],n=t.havingStyle(t.style.text()),o=0;o<r.length;o++){var i=r[o];i==="~"&&(i="\\textasciitilde"),a.push(qr(i,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return Y(["mord","text"].concat(n.sizingClasses(t)),FF(a),n)},mathmlBuilder(e,t){var r=new Kt(LF(e)),a=new ae("mtext",[r]);return a.setAttribute("mathvariant","monospace"),a}});var LF=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Gi=qF,Sj=`[ \r 519 ]`,ode="\\\\[a-zA-Z@]+",ide="\\\\[^\uD800-\uDFFF]",sde="("+ode+")"+Sj+"*",lde=`\\\\( 520|[ \r ]+ 521?)[ \r ]*`,FC="[\u0300-\u036F]",ude=new RegExp(FC+"+$"),cde="("+Sj+"+)|"+(lde+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(FC+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(FC+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+sde)+("|"+ide+")"),bx=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(cde,"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 In("EOF",new cn(this,r,r));var a=this.tokenRegex.exec(t);if(a===null||a.index!==r)throw new se("Unexpected character: '"+t[r]+"'",new In(t[r],new cn(this,r,r+1)));var n=a[6]||a[3]||(a[2]?"\\ ":" ");if(this.catcodes[n]===14){var o=t.indexOf(` 522`,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 In(n,new cn(this,r,this.tokenRegex.lastIndex))}},jC=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 se("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,a){if(a===void 0&&(a=!1),a){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][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}},dde=pj;A("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});A("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});A("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});A("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});A("\\@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}});A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");A("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var AF={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};A("\\char",function(e){var t=e.popToken(),r,a=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]==="\\")a=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new se("\\char` missing argument");a=t.text.charCodeAt(0)}else r=10;if(r){if(a=AF[t.text],a==null||a>=r)throw new se("Invalid base-"+r+" digit "+t.text);for(var n;(n=AF[e.future().text])!=null&&n<r;)a*=r,a+=n,e.popToken()}return"\\@char{"+a+"}"});var t3=(e,t,r,a)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new se("\\newcommand's first argument must be a macro name");var o=n[0].text,i=e.isDefined(o);if(i&&!t)throw new se("\\newcommand{"+o+"} attempting to redefine "+(o+"; use \\renewcommand"));if(!i&&!r)throw new se("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var u="",c=e.expandNextToken();c.text!=="]"&&c.text!=="EOF";)u+=c.text,c=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new se("Invalid number of arguments: "+u);s=parseInt(u),n=e.consumeArg().tokens}return i&&a||e.macros.set(o,{tokens:n,numArgs:s}),""};A("\\newcommand",e=>t3(e,!1,!0,!1));A("\\renewcommand",e=>t3(e,!0,!1,!1));A("\\providecommand",e=>t3(e,!0,!0,!0));A("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});A("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});A("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Gi[r],Nt.math[r],Nt.text[r]),""});A("\\bgroup","{");A("\\egroup","}");
522A("~","\\nobreakspace");A("\\lq","`");A("\\rq","'");A("\\aa","\\r a");A("\\AA","\\r A");A("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");A("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");A("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");A("\u212C","\\mathscr{B}");A("\u2130","\\mathscr{E}");A("\u2131","\\mathscr{F}");A("\u210B","\\mathscr{H}");A("\u2110","\\mathscr{I}");A("\u2112","\\mathscr{L}");A("\u2133","\\mathscr{M}");A("\u211B","\\mathscr{R}");A("\u212D","\\mathfrak{C}");A("\u210C","\\mathfrak{H}");A("\u2128","\\mathfrak{Z}");A("\\Bbbk","\\Bbb{k}");A("\\llap","\\mathllap{\\textrm{#1}}");A("\\rlap","\\mathrlap{\\textrm{#1}}");A("\\clap","\\mathclap{\\textrm{#1}}");A("\\mathstrut","\\vphantom{(}");A("\\underbar","\\underline{\\text{#1}}");A("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');A("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");A("\\ne","\\neq");A("\u2260","\\neq");A("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 5,554 bytes, line 522
522A("\u2209","\\notin");A("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");A("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");A("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");A("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");A("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");A("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");A("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");A("\u27C2","\\perp");A("\u203C","\\mathclose{!\\mkern-0.8mu!}");A("\u220C","\\notni");A("\u231C","\\ulcorner");A("\u231D","\\urcorner");A("\u231E","\\llcorner");A("\u231F","\\lrcorner");A("\xA9","\\copyright");A("\xAE","\\textregistered");A("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');A("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');A("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');A("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');A("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");A("\u22EE","\\vdots");A("\\varGamma","\\mathit{\\Gamma}");A("\\varDelta","\\mathit{\\Delta}");A("\\varTheta","\\mathit{\\Theta}");A("\\varLambda","\\mathit{\\Lambda}");A("\\varXi","\\mathit{\\Xi}");A("\\varPi","\\mathit{\\Pi}");A("\\varSigma","\\mathit{\\Sigma}");A("\\varUpsilon","\\mathit{\\Upsilon}");A("\\varPhi","\\mathit{\\Phi}");A("\\varPsi","\\mathit{\\Psi}");A("\\varOmega","\\mathit{\\Omega}");A("\\substack","\\begin{subarray}{c}#1\\end{subarray}");A("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");A("\\boxed","\\fbox{$\\displaystyle{#1}$}");A("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");A("\\implies","\\DOTSB\\;\\Longrightarrow\\;");A("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");A("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");A("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var EF={",":"\\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"},fde=new Set(["bin","rel"]);A("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in EF?t=EF[r]:(r.slice(0,4)==="\\not"||r in Nt.math&&fde.has(Nt.math[r].group))&&(t="\\dotsb"),t});var r3={")":!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};A("\\dotso",function(e){var t=e.future().text;return t in r3?"\\ldots\\,":"\\ldots"});A("\\dotsc",function(e){var t=e.future().text;return t in r3&&t!==","?"\\ldots\\,":"\\ldots"});A("\\cdots",function(e){var t=e.future().text;return t in r3?"\\@cdots\\,":"\\@cdots"});A("\\dotsb","\\cdots");A("\\dotsm","\\cdots");A("\\dotsi","\\!\\cdots");A("\\dotsx","\\ldots\\,");A("\\DOTSI","\\relax");A("\\DOTSB","\\relax");A("\\DOTSX","\\relax");A("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");A("\\,","\\tmspace+{3mu}{.1667em}");A("\\thinspace","\\,");A("\\>","\\mskip{4mu}");A("\\:","\\tmspace+{4mu}{.2222em}");A("\\medspace","\\:");A("\\;","\\tmspace+{5mu}{.2777em}");A("\\thickspace","\\;");A("\\!","\\tmspace-{3mu}{.1667em}");A("\\negthinspace","\\!");A("\\negmedspace","\\tmspace-{4mu}{.2222em}");A("\\negthickspace","\\tmspace-{5mu}{.277em}");A("\\enspace","\\kern.5em ");A("\\enskip","\\hskip.5em\\relax");A("\\quad","\\hskip1em\\relax");A("\\qquad","\\hskip2em\\relax");A("\\tag","\\@ifstar\\tag@literal\\tag@paren");A("\\tag@paren","\\tag@literal{({#1})}");A("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new se("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});A("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");A("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");A("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");A("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");A("\\newline","\\\\\\relax");A("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Ij=ce(Za["Main-Regular"][84][1]-.7*Za["Main-Regular"][65][1]);A("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ij+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");A("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ij+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");
522A("\\hspace","\\@ifstar\\@hspacer\\@hspace");A("\\@hspace","\\hskip #1\\relax");A("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");A("\\ordinarycolon",":");A("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");A("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');A("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');A("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');A("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');A("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');A("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');A("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');A("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');A("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');A("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');A("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');A("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');A("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');A("\u2237","\\dblcolon");A("\u2239","\\eqcolon");A("\u2254","\\coloneqq");A("\u2255","\\eqqcolon");A("\u2A74","\\Coloneqq");A("\\ratio","\\vcentcolon");A("\\coloncolon","\\dblcolon");A("\\colonequals","\\coloneqq");A("\\coloncolonequals","\\Coloneqq");A("\\equalscolon","\\eqqcolon");A("\\equalscoloncolon","\\Eqqcolon");A("\\colonminus","\\coloneq");A("\\coloncolonminus","\\Coloneq");A("\\minuscolon","\\eqcolon");A("\\minuscoloncolon","\\Eqcolon");A("\\coloncolonapprox","\\Colonapprox");A("\\coloncolonsim","\\Colonsim");A("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");A("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");A("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");A("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");A("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");A("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");A("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");A("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");A("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");A("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");A("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");A("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");A("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");A("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");A("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");A("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");A("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");A("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");A("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");A("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");A("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");A("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");A("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");A("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");A("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");A("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");A("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");A("\\imath","\\html@mathml{\\@imath}{\u0131}");A("\\jmath","\\html@mathml{\\@jmath}{\u0237}");A("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");A("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");A("\u27E6","\\llbracket");A("\u27E7","\\rrbracket");A("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}
522{\\mathopen{\\char`\u2983}}");A("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");A("\u2983","\\lBrace");A("\u2984","\\rBrace");A("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");A("\u29B5","\\minuso");A("\\darr","\\downarrow");A("\\dArr","\\Downarrow");A("\\Darr","\\Downarrow");A("\\lang","\\langle");A("\\rang","\\rangle");A("\\uarr","\\uparrow");A("\\uArr","\\Uparrow");A("\\Uarr","\\Uparrow");A("\\N","\\mathbb{N}");A("\\R","\\mathbb{R}");A("\\Z","\\mathbb{Z}");A("\\alef","\\aleph");A("\\alefsym","\\aleph");A("\\Alpha","\\mathrm{A}");A("\\Beta","\\mathrm{B}");A("\\bull","\\bullet");A("\\Chi","\\mathrm{X}");A("\\clubs","\\clubsuit");A("\\cnums","\\mathbb{C}");A("\\Complex","\\mathbb{C}");A("\\Dagger","\\ddagger");A("\\diamonds","\\diamondsuit");A("\\empty","\\emptyset");A("\\Epsilon","\\mathrm{E}");A("\\Eta","\\mathrm{H}");A("\\exist","\\exists");A("\\harr","\\leftrightarrow");A("\\hArr","\\Leftrightarrow");A("\\Harr","\\Leftrightarrow");A("\\hearts","\\heartsuit");A("\\image","\\Im");A("\\infin","\\infty");A("\\Iota","\\mathrm{I}");A("\\isin","\\in");A("\\Kappa","\\mathrm{K}");A("\\larr","\\leftarrow");A("\\lArr","\\Leftarrow");A("\\Larr","\\Leftarrow");A("\\lrarr","\\leftrightarrow");A("\\lrArr","\\Leftrightarrow");A("\\Lrarr","\\Leftrightarrow");A("\\Mu","\\mathrm{M}");A("\\natnums","\\mathbb{N}");A("\\Nu","\\mathrm{N}");A("\\Omicron","\\mathrm{O}");A("\\plusmn","\\pm");A("\\rarr","\\rightarrow");A("\\rArr","\\Rightarrow");A("\\Rarr","\\Rightarrow");A("\\real","\\Re");A("\\reals","\\mathbb{R}");A("\\Reals","\\mathbb{R}");A("\\Rho","\\mathrm{P}");A("\\sdot","\\cdot");A("\\sect","\\S");A("\\spades","\\spadesuit");A("\\sub","\\subset");A("\\sube","\\subseteq");A("\\supe","\\supseteq");A("\\Tau","\\mathrm{T}");A("\\thetasym","\\vartheta");A("\\weierp","\\wp");A("\\Zeta","\\mathrm{Z}");A("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");A("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");A("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");A("\\bra","\\mathinner{\\langle{#1}|}");A("\\ket","\\mathinner{|{#1}\\rangle}");A("\\braket","\\mathinner{\\langle{#1}\\rangle}");A("\\Bra","\\left\\langle#1\\right|");A("\\Ket","\\left|#1\\right\\rangle");var Cj=e=>t=>{var r=t.consumeArg().tokens,a=t.consumeArg().tokens,n=t.consumeArg().tokens,o=t.consumeArg().tokens,i=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var u=p=>h=>{e&&(h.macros.set("|",i),n.length&&h.macros.set("\\|",s));var g=p;if(!p&&n.length){var x=h.future();x.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?n:a,numArgs:0}};t.macros.set("|",u(!1)),n.length&&t.macros.set("\\|",u(!0));var c=t.consumeArg().tokens,f=t.expandTokens([...o,...c,...r]);return t.macros.endGroup(),{tokens:f.reverse(),numArgs:0}};A("\\bra@ket",Cj(!1));A("\\bra@set",Cj(!0));A("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");A("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");A("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");A("\\angln","{\\angl n}");A("\\blue","\\textcolor{##6495ed}{#1}");A("\\orange","\\textcolor{##ffa500}{#1}");A("\\pink","\\textcolor{##ff00af}{#1}");A("\\red","\\textcolor{##df0030}{#1}");A("\\green","\\textcolor{##28ae7b}{#1}");A("\\gray","\\textcolor{gray}{#1}");A("\\purple","\\textcolor{##9d38bd}{#1}");A("\\blueA","\\textcolor{##ccfaff}{#1}");A("\\blueB","\\textcolor{##80f6ff}{#1}");A("\\blueC","\\textcolor{##63d9ea}{#1}");A("\\blueD","\\textcolor{##11accd}{#1}");A("\\blueE","\\textcolor{##0c7f99}{#1}");A("\\tealA","\\textcolor{##94fff5}{#1}");A("\\tealB","\\textcolor{##26edd5}{#1}");A("\\tealC","\\textcolor{##01d1c1}{#1}");A("\\tealD","\\textcolor{##01a995}{#1}");A("\\tealE","\\textcolor{##208170}{#1}");A("\\greenA","\\textcolor{##b6ffb0}{#1}");A("\\greenB","\\textcolor{##8af281}{#1}");A("\\greenC","\\textcolor{##74cf70}{#1}");A("\\greenD","\\textcolor{##1fab54}{#1}");A("\\greenE","\\textcolor{##0d923f}{#1}");A("\\goldA","\\textcolor{##ffd0a9}{#1}");A("\\goldB","\\textcolor{##ffbb71}{#1}");A("\\goldC","\\textcolor{##ff9c39}{#1}");A("\\goldD","\\textcolor{##e07d10}{#1}");A("\\goldE","\\textcolor{##a75a05}{#1}");A("\\redA","\\textcolor{##fca9a9}{#1}");A("\\redB","\\textcolor{##ff8482}{#1}");A("\\redC","\\textcolor{##f9685d}{#1}");A("\\redD","\\textcolor{##e84d39}{#1}");
vendor: 12,557 bytes, line 522
522A("\\redE","\\textcolor{##bc2612}{#1}");A("\\maroonA","\\textcolor{##ffbde0}{#1}");A("\\maroonB","\\textcolor{##ff92c6}{#1}");A("\\maroonC","\\textcolor{##ed5fa6}{#1}");A("\\maroonD","\\textcolor{##ca337c}{#1}");A("\\maroonE","\\textcolor{##9e034e}{#1}");A("\\purpleA","\\textcolor{##ddd7ff}{#1}");A("\\purpleB","\\textcolor{##c6b9fc}{#1}");A("\\purpleC","\\textcolor{##aa87ff}{#1}");A("\\purpleD","\\textcolor{##7854ab}{#1}");A("\\purpleE","\\textcolor{##543b78}{#1}");A("\\mintA","\\textcolor{##f5f9e8}{#1}");A("\\mintB","\\textcolor{##edf2df}{#1}");A("\\mintC","\\textcolor{##e0e5cc}{#1}");A("\\grayA","\\textcolor{##f6f7f7}{#1}");A("\\grayB","\\textcolor{##f0f1f2}{#1}");A("\\grayC","\\textcolor{##e3e5e6}{#1}");A("\\grayD","\\textcolor{##d6d8da}{#1}");A("\\grayE","\\textcolor{##babec2}{#1}");A("\\grayF","\\textcolor{##888d93}{#1}");A("\\grayG","\\textcolor{##626569}{#1}");A("\\grayH","\\textcolor{##3b3e40}{#1}");A("\\grayI","\\textcolor{##21242c}{#1}");A("\\kaBlue","\\textcolor{##314453}{#1}");A("\\kaGreen","\\textcolor{##71B307}{#1}");var Tj={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},ZC=class{constructor(t,r,a){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new jC(dde,r.macros),this.mode=a,this.stack=[]}feed(t){this.lexer=new bx(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,a,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:a}=this.consumeArg(["]"])}else({tokens:n,start:r,end:a}=this.consumeArg());return this.pushToken(new In("EOF",a.loc)),this.pushTokens(n),new In("",cn.range(r,a))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],a=t&&t.length>0;a||this.consumeSpaces();var n=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 se("Extra }",o)}else if(o.text==="EOF")throw new se("Unexpected end of input in a macro argument, expected '"+(t&&a?t[s]:"}")+"'",o);if(t&&a)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||a);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:o}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new se("The length of delimiters doesn't match the number of args!");for(var a=r[0],n=0;n<a.length;n++){var o=this.popToken();if(a[n]!==o.text)throw new se("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 se("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),a=r.text,n=r.noexpand?null:this._getExpansion(a);if(n==null||t&&n.unexpandable){if(t&&n==null&&a[0]==="\\"&&!this.isDefined(a))throw new se("Undefined control sequence: "+a);return this.pushToken(r),!1}this.countExpansion(1);var o=n.tokens,i=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){o=o.slice();for(var s=o.length-1;s>=0;--s){var u=o[s];if(u.text==="#"){if(s===0)throw new se("Incomplete placeholder at end of macro body",u);if(u=o[--s],u.text==="#")o.splice(s+1,1);else if(/^[1-9]$/.test(u.text))o.splice(s,2,...i[+u.text-1]);else throw new se("Not a valid argument number",u)}}}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 In(t)]):void 0}expandTokens(t){var r=[],a=this.stack.length;for(this.pushTokens(t);this.stack.length>a;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(a=>a.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var a=this.lexer.catcodes[t];if(a!=null&&a!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var o=0;if(n.includes("#"))for(var i=n.replace(/##/g,"");i.includes("#"+(o+1));)++o;for(var s=new bx(n,this.settings),u=[],c=s.lex();c.text!=="EOF";)u.push(c),c=s.lex();u.reverse();var f={tokens:u,numArgs:o};return f}return n}isDefined(t){return this.macros.has(t)||Gi.hasOwnProperty(t)||Nt.math.hasOwnProperty(t)||Nt.text.hasOwnProperty(t)||Tj.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Gi.hasOwnProperty(t)&&!Gi[t].primitive}},MF=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,cx=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"}),TC={"\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"}},RF={\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
5220302",\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"},wx=class e{constructor(t,r){this.mode="math",this.gullet=new ZC(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 se("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 In("}")),this.gullet.pushTokens(t);var a=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,a}parseExpression(t,r){for(var a=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(e.endOfExpression.has(n.text)||r&&n.text===r||t&&Gi[n.text]&&Gi[n.text].infix)break;var o=this.parseAtom(r);if(o){if(o.type==="internal")continue}else break;a.push(o)}return this.mode==="text"&&this.formLigatures(a),this.handleInfixNodes(a)}handleInfixNodes(t){for(var r=-1,a,n=0;n<t.length;n++){var o=t[n];if(o.type==="infix"){if(r!==-1)throw new se("only one infix operator per group",o.token);r=n,a=o.replaceWith}}if(r!==-1&&a){var i,s,u=t.slice(0,r),c=t.slice(r+1);u.length===1&&u[0].type==="ordgroup"?i=u[0]:i={type:"ordgroup",mode:this.mode,body:u},c.length===1&&c[0].type==="ordgroup"?s=c[0]:s={type:"ordgroup",mode:this.mode,body:c};var f;return a==="\\\\abovefrac"?f=this.callFunction(a,[i,t[r],s],[]):f=this.callFunction(a,[i,s],[]),[f]}else return t}handleSupSubscript(t){var r=this.fetch(),a=r.text;this.consume(),this.consumeSpaces();var n;do{var o;n=this.parseGroup(t)}while(((o=n)==null?void 0:o.type)==="internal");if(!n)throw new se("Expected group after '"+a+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],a=0;a<t.length;a++)r.push({type:"textord",mode:"text",text:t[a]});var n={type:"text",mode:this.mode,body:r},o={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return o}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var a,n;;){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 se("Limit controls must follow a math operator",o);this.consume()}else if(o.text==="^"){if(a)throw new se("Double superscript",o);a=this.handleSupSubscript("superscript")}else if(o.text==="_"){if(n)throw new se("Double subscript",o);n=this.handleSupSubscript("subscript")}else if(o.text==="'"){if(a)throw new se("Double superscript",o);var s={type:"textord",mode:this.mode,text:"\\prime"},u=[s];for(this.consume();this.fetch().text==="'";)u.push(s),this.consume();this.fetch().text==="^"&&u.push(this.handleSupSubscript("superscript")),a={type:"ordgroup",mode:this.mode,body:u}}else if(cx[o.text]){var c=MF.test(o.text),f=[];for(f.push(new In(cx[o.text])),this.consume();;){var p=this.fetch().text;if(!cx[p]||MF.test(p)!==c)break;f.unshift(new In(cx[p])),this.consume()}var h=this.subparse(f);c?n={type:"ordgroup",mode:"math",body:h}:a={type:"ordgroup",mode:"math",body:h}}else break}return a||n?{type:"supsub",mode:this.mode,base:r,sup:a,sub:n}:r}parseFunction(t,r){var a=this.fetch(),n=a.text,o=Gi[n];if(!o)return null;if(this.consume(),r&&r!=="atom"&&!o.allowedInArgument)throw new se("Got function '"+n+"' with no arguments"+(r?" as "+r:""),a);if(this.mode==="text"&&!o.allowedInText)throw new se("Can't use function '"+n+"' in text mode",a);if(this.mode==="math"&&o.allowedInMath===!1)throw new se("Can't use function '"+n+"' in math mode",a);var{args:i,optArgs:s}=this.parseArguments(n,o);return this.callFunction(n,i,s,a,t)}callFunction(t,r,a,n,o){var i={funcName:t,parser:this,token:n,breakOnTokenText:o},s=Gi[t];if(s&&s.handler)return s.handler(i,r,a);throw new se("No function handler for "+t)}
vendor: 7,424 bytes, lines 522-523
522parseArguments(t,r){var a=r.numArgs+r.numOptionalArgs;if(a===0)return{args:[],optArgs:[]};for(var n=[],o=[],i=0;i<a;i++){var s=r.argTypes&&r.argTypes[i],u=i<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&i===1&&o[0]==null)&&(s="primitive");var c=this.parseGroupOfType("argument to '"+t+"'",s,u);if(u)o.push(c);else if(c!=null)n.push(c);else throw new se("Null argument, please report this as a bug")}return{args:n,optArgs:o}}parseGroupOfType(t,r,a){switch(r){case"color":return this.parseColorGroup(a);case"size":return this.parseSizeGroup(a);case"url":return this.parseUrlGroup(a);case"math":case"text":return this.parseArgumentGroup(a,r);case"hbox":{var n=this.parseArgumentGroup(a,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var o=this.parseStringGroup("raw",a);return o!=null?{type:"raw",mode:"text",string:o.text}:null}case"primitive":{if(a)throw new se("A primitive argument cannot be optional");var i=this.parseGroup(t);if(i==null)throw new se("Expected group as "+t,this.fetch());return i}case"original":case null:case void 0:return this.parseArgumentGroup(a);default:throw new se("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var a=this.gullet.scanArgument(r);if(a==null)return null;for(var n="",o;(o=this.fetch()).text!=="EOF";)n+=o.text,this.consume();return this.consume(),a.text=n,a}parseRegexGroup(t,r){for(var a=this.fetch(),n=a,o="",i;(i=this.fetch()).text!=="EOF"&&t.test(o+i.text);)n=i,o+=n.text,this.consume();if(o==="")throw new se("Invalid "+r+": '"+a.text+"'",a);return a.range(n,o)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var a=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!a)throw new se("Invalid color: '"+r.text+"'",r);var n=a[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,a=!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",a=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new se("Invalid size: '"+r.text+"'",r);var o={number:+(n[1]+n[2]),unit:n[3]};if(!DF(o))throw new se("Invalid unit: '"+o.unit+"'",r);return{type:"size",mode:this.mode,value:o,isBlank:a}}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 a=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:a}}parseArgumentGroup(t,r){var a=this.gullet.scanArgument(t);if(a==null)return null;var n=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:a.loc,body:o};return r&&this.switchMode(n),i}parseGroup(t,r){var a=this.fetch(),n=a.text,o;if(n==="{"||n==="\\begingroup"){this.consume();var i=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,i),u=this.fetch();this.expect(i),this.gullet.endGroup(),o={type:"ordgroup",mode:this.mode,loc:cn.range(a,u),body:s,semisimple:n==="\\begingroup"||void 0}}else if(o=this.parseFunction(r,t)||this.parseSymbol(),o==null&&n[0]==="\\"&&!Tj.hasOwnProperty(n)){if(this.settings.throwOnError)throw new se("Undefined control sequence: "+n,a);o=this.formatUnsupportedCmd(n),this.consume()}return o}formLigatures(t){for(var r=t.length-1,a=0;a<r;++a){var n=t[a];if(n.type==="textord"){var o=n.text,i=t[a+1];if(!(!i||i.type!=="textord")){if(o==="-"&&i.text==="-"){var s=t[a+2];a+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(a,3,{type:"textord",mode:"text",loc:cn.range(n,s),text:"---"}),r-=2):(t.splice(a,2,{type:"textord",mode:"text",loc:cn.range(n,i),text:"--"}),r-=1)}(o==="'"||o==="`")&&i.text===o&&(t.splice(a,2,{type:"textord",mode:"text",loc:cn.range(n,i),text:o+o}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var a=r.slice(5),n=a.charAt(0)==="*";if(n&&(a=a.slice(1)),a.length<2||a.charAt(0)!==a.slice(-1))throw new se(`\\verb assertion failed -- 523 please report what input caused this bug`);return a=a.slice(1,-1),{type:"verb",mode:"text",body:a,star:n}}RF.hasOwnProperty(r[0])&&!Nt[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=RF[r[0]]+r.slice(1));var o=ude.exec(r);o&&(r=r.substring(0,o.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var i;if(Nt[this.mode][r]){this.settings.strict&&this.mode==="math"&&EC.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=Nt[this.mode][r].group,u=cn.range(t),c;if(cce.hasOwnProperty(s)){var f=s;c={type:"atom",mode:this.mode,family:f,loc:u,text:r}}else c={type:s,mode:this.mode,loc:u,text:r};i=c}else if(r.charCodeAt(0)>=128)this.settings.strict&&(zF(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:cn.range(t),text:r};else return null;if(this.consume(),o)for(var p=0;p<o[0].length;p++){var h=o[0][p];if(!TC[h])throw new se("Unknown accent ' "+h+"'",t);var g=TC[h][this.mode]||TC[h].text;if(!g)throw new se("Accent "+h+" unsupported in "+this.mode+" mode",t);i={type:"accent",mode:this.mode,loc:cn.range(t),label:g,isStretchy:!1,isShifty:!0,base:i}}return i}};wx.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var n3=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var a=new wx(t,r);delete a.gullet.macros.current["\\df@tag"];var n=a.parse();if(delete a.gullet.macros.current["\\current@color"],delete a.gullet.macros.current["\\color"],a.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new se("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:a.subparse([new In("\\df@tag")])}]}return n},Pj=function(t,r,a){r.textContent="";var n=a3(t,a).toNode();r.appendChild(n)};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."),Pj=function(){throw new se("KaTeX doesn't work in quirks mode.")});var pde=function(t,r){var a=a3(t,r).toMarkup();return a},mde=function(t,r){var a=new Hp(r);return n3(t,a)},$j=function(t,r,a){if(a.throwOnError||!(t instanceof se))throw t;var n=Y(["katex-error"],[new Hr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+a.errorColor),n},a3=function(t,r){var a=new Hp(r);try{var n=n3(t,a);return Cce(n,t,a)}catch(o){return $j(o,t,a)}},hde=function(t,r){var a=new Hp(r);try{var n=n3(t,a);return Tce(n,t,a)}catch(o){return $j(o,t,a)}},gde="0.16.44",vde={Span:Ji,Anchor:yc,SymbolNode:Hr,SvgNode:ca,PathNode:Va,LineN
vendor: 5,069 bytes, lines 523-527
523ode:Jp},o3={version:gde,render:Pj,renderToString:pde,ParseError:se,SETTINGS_SCHEMA:PC,__parse:mde,__renderToDomTree:a3,__renderToHTMLTree:hde,__setFontMetrics:lce,__defineSymbol:y,__defineFunction:ye,__defineMacro:A,__domTree:vde};var yde={},xde=[];function Mx(e){let t=e||yde;return function(r,a){TT(r,"element",function(n,o){let i=Array.isArray(n.properties.className)?n.properties.className:xde,s=i.includes("language-math"),u=i.includes("math-display"),c=i.includes("math-inline"),f=u;if(!s&&!u&&!c)return;let p=o[o.length-1],h=n;if(n.tagName==="code"&&s&&p&&p.type==="element"&&p.tagName==="pre"&&(h=p,p=o[o.length-2],f=!0),!p)return;let g=pC(h,{whitespace:"pre"}),x;try{x=o3.renderToString(g,{...t,displayMode:f,throwOnError:!0})}catch(S){let $=S,T=$.name.toLowerCase();a.message("Could not render math with KaTeX",{ancestors:[...o,n],cause:$,place:n.position,ruleId:T,source:"rehype-katex"});try{x=o3.renderToString(g,{...t,displayMode:f,strict:"ignore",throwOnError:!1})}catch{x=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(S)},children:[{type:"text",value:g}]}]}}typeof x=="string"&&(x=XB(x,{fragment:!0}).children);let I=p.children.indexOf(h);return p.children.splice(I,1,...x),CT})}}function i3(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:o},exit:{mathFlow:n,mathFlowFence:a,mathFlowFenceMeta:r,mathFlowValue:s,mathText:i,mathTextData:s}};function e(u){let c={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[c]}},u)}function t(){this.buffer()}function r(){let u=this.resume(),c=this.stack[this.stack.length-1];c.type,c.meta=u}function a(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(u){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),f=this.stack[this.stack.length-1];f.type,this.exit(u),f.value=c;let p=f.data.hChildren[0];p.type,p.tagName,p.children.push({type:"text",value:c}),this.data.mathFlowInside=void 0}function o(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function i(u){let c=this.resume(),f=this.stack[this.stack.length-1];f.type,this.exit(u),f.value=c,f.data.hChildren.push({type:"text",value:c})}function s(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function s3(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),a.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 524`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:a}};function r(o,i,s,u){let c=o.value||"",f=s.createTracker(u),p="$".repeat(Math.max(NT(c,"$")+1,2)),h=s.enter("mathFlow"),g=f.move(p);if(o.meta){let x=s.enter("mathFlowMeta");g+=f.move(s.safe(o.meta,{after:` 525`,before:g,encode:["$"],...f.current()})),x()}return g+=f.move(` 526`),c&&(g+=f.move(c+` 527`)),g+=f.move(p),h(),g}function a(o,i,s){let u=o.value||"",c=1;for(t||c++;new RegExp("(^|[^$])"+"\\$".repeat(c)+"([^$]|$)").test(u);)c++;let f="$".repeat(c);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let p=-1;for(;++p<s.unsafe.length;){let h=s.unsafe[p];if(!h.atBreak)continue;let g=s.compilePattern(h),x;for(;x=g.exec(u);){let I=x.index;u.codePointAt(I)===10&&u.codePointAt(I-1)===13&&I--,u=u.slice(0,I)+" "+u.slice(x.index+1)}}return f+u+f}function n(){return"$"}}var Aj={tokenize:bde,concrete:!0,name:"mathFlow"},Lj={tokenize:wde,partial:!0};function bde(e,t,r){let a=this,n=a.events[a.events.length-1],o=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,i=0;return s;function s(T){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(T)}function u(T){return T===36?(e.consume(T),i++,u):i<2?r(T):(e.exit("mathFlowFenceSequence"),qc(e,c,"whitespace")(T))}function c(T){return T===null||eo(T)?p(T):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(T))}function f(T){return T===null||eo(T)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),p(T)):T===36?r(T):(e.consume(T),f)}function p(T){return e.exit("mathFlowFence"),a.interrupt?t(T):e.attempt(Lj,h,S)(T)}function h(T){return e.attempt({tokenize:$,partial:!0},S,g)(T)}function g(T){return(o?qc(e,x,"linePrefix",o+1):x)(T)}function x(T){return T===null?S(T):eo(T)?e.attempt(Lj,h,S)(T):(e.enter("mathFlowValue"),I(T))}function I(T){return T===null||eo(T)?(e.exit("mathFlowValue"),x(T)):(e.consume(T),I)}function S(T){return e.exit("mathFlow"),t(T)}function $(T,k,M){let E=0;return qc(T,z,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function z(Z){return T.enter("mathFlowFence"),T.enter("mathFlowFenceSequence"),j(Z)}function j(Z){return Z===36?(E++,T.consume(Z),j):E<i?M(Z):(T.exit("mathFlowFenceSequence"),qc(T,q,"whitespace")(Z))}
527function q(Z){return Z===null||eo(Z)?(T.exit("mathFlowFence"),k(Z)):M(Z)}}}function wde(e,t,r){let a=this;return n;function n(i){return i===null?t(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return a.parser.lazy[a.now().line]?r(i):t(i)}}function Ej(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:a,resolve:_de,previous:kde,name:"mathText"};function a(n,o,i){let s=this,u=0,c,f;return p;function p(S){return n.enter("mathText"),n.enter("mathTextSequence"),h(S)}function h(S){return S===36?(n.consume(S),u++,h):u<2&&!r?i(S):(n.exit("mathTextSequence"),g(S))}function g(S){return S===null?i(S):S===36?(f=n.enter("mathTextSequence"),c=0,I(S)):S===32?(n.enter("space"),n.consume(S),n.exit("space"),g):eo(S)?(n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),g):(n.enter("mathTextData"),x(S))}function x(S){return S===null||S===32||S===36||eo(S)?(n.exit("mathTextData"),g(S)):(n.consume(S),x)}function I(S){return S===36?(n.consume(S),c++,I):c===u?(n.exit("mathTextSequence"),n.exit("mathText"),o(S)):(f.type="mathTextData",x(S))}}}function _de(e){let t=e.length-4,r=3,a,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(a=r;++a<t;)if(e[a][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(a=r-1,t++;++a<=t;)n===void 0?a!==t&&e[a][1].type!=="lineEnding"&&(n=a):(a===t||e[a][1].type==="lineEnding")&&(e[n][1].type="mathTextData",a!==n+2&&(e[n][1].end=e[a-1][1].end,e.splice(n+2,a-n-2),t-=a-n-2,a=n+2),n=void 0);return e}function kde(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function l3(e){return{flow:{36:Aj},text:{36:Ej(e)}}}var Sde={};function Rx(e){let t=this,r=e||Sde,a=t.data(),n=a.micromarkExtensions||(a.micromarkExtensions=[]),o=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),i=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);n.push(l3(r)),o.push(i3()),i.push(s3(r))}function Ide(e={}){var t,r;let a=[Rx,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[Mx,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:a,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var Mj=Ide();var Cde="11.14.0",Tde=`https://esm.sh/mermaid@${Cde}`,Pde={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},u3=null,c3=!1;function $de(){return u3||(u3=import(Tde)),u3}var Rj={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...Pde,...e};return{initialize(r){Object.assign(t,r),c3=!1},async render(r,a){let o=(await $de()).default;return c3||(o.initialize(t),c3=!0),o.render(r,a)}}}};var qo=O(le());var Qp=O(J()),zj=({className:e,from:t,...r})=>(0,Qp.jsx)("div",{className:be("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),Dj=({children:e,className:t,...r})=>(0,Qp.jsx)("div",{className:be("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 lOe=(0,qo.createContext)(null);var Mde={cjk:DO,code:HB,math:Mj,mermaid:Rj},zx=(0,qo.memo)(({className:e,...t})=>(0,Qp.jsx)(wb,{className:be("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:Mde,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);zx.displayName="MessageResponse";var yOe=O(le());var cOe=O(le());var Nj=O(J());var Oj=O(J());var _Oe=O(le());var Rde=O(J());var IOe=O(le());var em=O(J());function Uj({className:e,...t}){return(0,em.jsx)("div",{"data-slot":"input-group",role:"group",className:be("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 zde=ea("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
527svg: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"}});function Bj({className:e,align:t="inline-start",...r}){return(0,em.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:be(zde({align:t}),e),onClick:a=>{a.target.closest("button")||a.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var Dde=ea("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 Fj({className:e,type:t="button",variant:r="ghost",size:a="xs",...n}){return(0,em.jsx)(xr,{type:t,"data-size":a,variant:r,className:be(Dde({size:a}),e),...n})}function jj({className:e,...t}){return(0,em.jsx)(Ig,{"data-slot":"input-group-control",className:be("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var Zj="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var d3=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=Zj[r[e]&63];return t};var Ze=O(le()),hr=O(J()),Nde=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(a=>{let n=new FileReader;n.onloadend=()=>a(n.result),n.onerror=()=>a(null),n.readAsDataURL(r)})}catch{return null}};var Ode=(0,Ze.createContext)(null),Ude=(0,Ze.createContext)(null);var Vj=()=>(0,Ze.useContext)(Ode);var Bde=()=>(0,Ze.useContext)(Ude);var qj=(0,Ze.createContext)(null),Fde=()=>{let e=Bde(),r=(0,Ze.useContext)(qj)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},jde=(0,Ze.createContext)(null);var Gj=({className:e,accept:t,multiple:r,globalDrop:a,syncHiddenInput:n,maxFiles:o,maxFileSize:i,onError:s,onSubmit:u,children:c,...f})=>{let p=Vj(),h=!!p,g=(0,Ze.useRef)(null),x=(0,Ze.useRef)(null),[I,S]=(0,Ze.useState)([]),$=h?p.attachments.files:I,[T,k]=(0,Ze.useState)([]),M=(0,Ze.useRef)($);(0,Ze.useEffect)(()=>{M.current=$},[$]);let E=(0,Ze.useCallback)(()=>{g.current?.click()},[]),z=(0,Ze.useCallback)(ke=>!t||t.trim()===""?!0:t.split(",").map(he=>he.trim()).filter(Boolean).some(he=>{if(he.endsWith("/*")){let it=he.slice(0,-1);return ke.type.startsWith(it)}return ke.type===he}),[t]),j=(0,Ze.useCallback)(ke=>{let Ie=[...ke],he=Ie.filter(lr=>z(lr));if(Ie.length&&he.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let it=lr=>i?lr.size<=i:!0,Ut=he.filter(it);if(he.length>0&&Ut.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}S(lr=>{let Ht=typeof o=="number"?Math.max(0,o-lr.length):void 0,wr=typeof Ht=="number"?Ut.slice(0,Ht):Ut;typeof Ht=="number"&&Ut.length>Ht&&s?.({code:"max_files",message:"Too many files. Some were not added."});let Rr=[];for(let fa of wr)Rr.push({filename:fa.name,id:d3(),mediaType:fa.type,type:"file",url:URL.createObjectURL(fa)});return[...lr,...Rr]})},[z,o,i,s]),q=(0,Ze.useCallback)(ke=>S(Ie=>{let he=Ie.find(it=>it.id===ke);return he?.url&&URL.revokeObjectURL(he.url),Ie.filter(it=>it.id!==ke)}),[]),Z=(0,Ze.useCallback)(ke=>{let Ie=[...ke],he=Ie.filter(Rr=>z(Rr));if(Ie.length&&he.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let it=Rr=>i?Rr.size<=i:!0,Ut=he.filter(it);if(he.length>0&&Ut.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let lr=$.length,Ht=typeof o=="number"?Math.max(0,o-lr):void 0,wr=typeof Ht=="number"?Ut.slice(0,Ht):Ut;typeof Ht=="number"&&Ut.length>Ht&&s?.({code:"max_files",message:"Too many files. Some were not added."}),wr.length>0&&p?.attachments.add(wr)},[z,i,o,s,$.length,p]),W=(0,Ze.useCallback)(()=>h?p?.attachments.clear():S(ke=>{for(let Ie of ke)Ie.url&&URL.revokeObjectURL(Ie.url);return[]}),[h,p]),de=(0,Ze.useCallback)(()=>k([]),[]),Q=h?Z:j,ht=h?p.attachments.remove:q,Ce=h?p.attachments.openFileDialog:E,Fe=(0,Ze.useCallback)(()=>{W(),de()},[W,de]);(0,Ze.useEffect)(()=>{h&&p.__registerFileInput(g,()=>g.current?.click())},[h,p]),(0,Ze.useEffect)(()=>{n&&g.current&&$.length===0&&(g.current.value="")},[$,n]),(0,Ze.useEffect)(()=>{let ke=x.current;if(!ke||a)return;let Ie=it=>{it.dataTransfer?.types?.includes("Files")&&it.preventDefault()},he=it=>{it.dataTransfer?.types?.includes("Files")&&it.preventDefault(),it.dataTransfer?.files&&it.dataTransfer.files.length>0&&Q(it.dataTransfer.files)};return ke.addEventListener("dragover",Ie),ke.addEventListener("drop",he),()=>{ke.removeEventListener("dragover",Ie),ke.removeEventListener("drop",he)}},[Q,a]),(0,Ze.useEffect)(()=>
527{if(!a)return;let ke=he=>{he.dataTransfer?.types?.includes("Files")&&he.preventDefault()},Ie=he=>{he.dataTransfer?.types?.includes("Files")&&he.preventDefault(),he.dataTransfer?.files&&he.dataTransfer.files.length>0&&Q(he.dataTransfer.files)};return document.addEventListener("dragover",ke),document.addEventListener("drop",Ie),()=>{document.removeEventListener("dragover",ke),document.removeEventListener("drop",Ie)}},[Q,a]),(0,Ze.useEffect)(()=>()=>{if(!h)for(let ke of M.current)ke.url&&URL.revokeObjectURL(ke.url)},[h]);let ve=(0,Ze.useCallback)(ke=>{ke.currentTarget.files&&Q(ke.currentTarget.files),ke.currentTarget.value=""},[Q]),Mr=(0,Ze.useMemo)(()=>({add:Q,clear:W,fileInputRef:g,files:$.map(ke=>({...ke,id:ke.id})),openFileDialog:Ce,remove:ht}),[$,Q,ht,W,Ce]),fe=(0,Ze.useMemo)(()=>({add:ke=>{let Ie=Array.isArray(ke)?ke:[ke];k(he=>[...he,...Ie.map(it=>({...it,id:d3()}))])},clear:de,remove:ke=>{k(Ie=>Ie.filter(he=>he.id!==ke))},sources:T}),[T,de]),Ne=(0,Ze.useCallback)(async ke=>{ke.preventDefault();let Ie=ke.currentTarget,he=h?p.textInput.value:new FormData(Ie).get("message")||"";h||Ie.reset();try{let it=await Promise.all($.map(async({id:lr,...Ht})=>{if(Ht.url?.startsWith("blob:")){let wr=await Nde(Ht.url);return{...Ht,url:wr??Ht.url}}return Ht})),Ut=u({files:it,text:he},ke);if(Ut instanceof Promise)try{await Ut,Fe(),h&&p.textInput.clear()}catch{}else Fe(),h&&p.textInput.clear()}catch{}},[h,p,$,u,Fe]),ot=(0,hr.jsxs)(hr.Fragment,{children:[(0,hr.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:ve,ref:g,title:"Upload files",type:"file"}),(0,hr.jsx)("form",{className:be("w-full",e),onSubmit:Ne,ref:x,...f,children:(0,hr.jsx)(Uj,{className:"overflow-hidden",children:c})})]}),qe=(0,hr.jsx)(jde.Provider,{value:fe,children:ot});return(0,hr.jsx)(qj.Provider,{value:Mr,children:qe})},Hj=({className:e,...t})=>(0,hr.jsx)("div",{className:be("contents",e),...t}),Wj=({onChange:e,onKeyDown:t,className:r,placeholder:a="What would you like to know?",...n})=>{let o=Vj(),i=Fde(),[s,u]=(0,Ze.useState)(!1),c=(0,Ze.useCallback)(x=>{if(t?.(x),!x.defaultPrevented){if(x.key==="Enter"){if(s||x.nativeEvent.isComposing||x.shiftKey)return;x.preventDefault();let{form:I}=x.currentTarget;if(I?.querySelector('button[type="submit"]')?.disabled)return;I?.requestSubmit()}if(x.key==="Backspace"&&x.currentTarget.value===""&&i.files.length>0){x.preventDefault();let I=i.files.at(-1);I&&i.remove(I.id)}}},[t,s,i]),f=(0,Ze.useCallback)(x=>{let I=x.clipboardData?.items;if(!I)return;let S=[];for(let $ of I)if($.kind==="file"){let T=$.getAsFile();T&&S.push(T)}S.length>0&&(x.preventDefault(),i.add(S))},[i]),p=(0,Ze.useCallback)(()=>u(!1),[]),h=(0,Ze.useCallback)(()=>u(!0),[]),g=o?{onChange:x=>{o.textInput.setInput(x.currentTarget.value),e?.(x)},value:o.textInput.value}:{onChange:e};return(0,hr.jsx)(jj,{className:be("field-sizing-content max-h-48 min-h-16",r),name:"message",onCompositionEnd:p,onCompositionStart:h,onKeyDown:c,onPaste:f,placeholder:a,...n,...g})};var Jj=({className:e,...t})=>(0,hr.jsx)(Bj,{align:"block-end",className:be("justify-between gap-1",e),...t}),Kj=({className:e,...t})=>(0,hr.jsx)("div",{className:be("flex min-w-0 items-center gap-1",e),...t});var Xj=({className:e,variant:t="default",size:r="icon-sm",status:a,onStop:n,onClick:o,children:i,...s})=>{let u=a==="submitted"||a==="streaming",c=(0,hr.jsx)(Kc,{className:"size-4"});a==="submitted"?c=(0,hr.jsx)(cw,{}):a==="streaming"?c=(0,hr.jsx)(Qc,{className:"size-4"}):a==="error"&&(c=(0,hr.jsx)(ps,{className:"size-4"}));let f=(0,Ze.useCallback)(p=>{if(u&&n){p.preventDefault(),n();return}o?.(p)},[u,n,o]);return(0,hr.jsx)(Fj,{"aria-label":u?"Stop":"Submit",className:be(e),onClick:f,size:r,type:u&&n?"button":"submit",variant:t,...s,children:i??c})};var Yj=O(le()),kc=O(J()),Qj=({className:e,children:t,...r})=>(0,kc.jsxs)(uw,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,kc.jsx)("div",{className:be("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,kc.jsx)(kg,{className:"hidden",orientation:"horizontal"})]}),eZ=({suggestion:e,onClick:t,className:r,variant:a="outline",size:n="sm",children:o,...i})=>{let s=(0,Yj.useCallback)(()=>{t?.(e)},[t,e]);return(0,kc.jsx)(xr,{className:be("cursor-pointer rounded-full px-4",r),onClick:s,size:n,type:"button",variant:a,...i,children:o||e})};var mt=O(J()),tZ=["What can you help me with?","Give me a quick overview","Summarize what I have here","What should I look at first?"];function Zde(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function Vde(e){return e.parts.some(t=>la(t))}var qde={"input-streaming":"Working on it...","input-available":"Working on it...","a
527pproval-requested":"Needs your approval","approval-responded":"Working on it...","output-available":"Done","output-error":"Something went wrong","output-denied":"Skipped"};function Gde(e){return oO(e).split(/[_\s-]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function f3({messages:e,onSend:t,busy:r=!1,status:a,onStop:n,onApprove:o,errorMessage:i,suggestions:s=tZ,title:u="Assistant",placeholder:c="Ask me anything\u2026",emptyTitle:f="How can I help?",emptyDescription:p="Ask a question or pick a starter below.",className:h}){let g=e.length===0,x=a??(r?"submitted":void 0),I=S=>{let $=S.text.trim();if(!(!$||r))return t($)};return(0,mt.jsxs)(mo,{className:be("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",h),children:[(0,mt.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,mt.jsx)(ro,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,mt.jsx)("span",{className:"text-foreground text-sm font-semibold",children:u})]}),(0,mt.jsxs)(mO,{children:[(0,mt.jsx)(hO,{children:g?(0,mt.jsx)(gO,{title:f,description:p,icon:(0,mt.jsx)(ro,{className:"size-6","aria-hidden":!0})}):e.map(S=>(0,mt.jsx)(zj,{from:S.role,children:(0,mt.jsx)(Dj,{children:Vde(S)?S.parts.map(($,T)=>$.type==="text"?(0,mt.jsx)(zx,{children:$.text},T):la($)?(0,mt.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,mt.jsxs)("span",{className:"italic",children:[Gde($)," \xB7 ",qde[$.state]]}),$.state==="approval-requested"&&$.approval!=null&&o!=null?(0,mt.jsxs)("span",{className:"flex gap-1.5",children:[(0,mt.jsx)(xr,{type:"button",size:"sm",onClick:()=>o($.approval.id,!0),children:"Approve"}),(0,mt.jsx)(xr,{type:"button",size:"sm",variant:"outline",onClick:()=>o($.approval.id,!1),children:"Deny"})]}):null]},T):null):(0,mt.jsx)(zx,{children:Zde(S)})})},S.id))}),(0,mt.jsx)(vO,{})]}),i!=null&&i!==""?(0,mt.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:i}):null,s.length>0?(0,mt.jsx)("div",{className:"px-4 pb-2",children:(0,mt.jsx)(Qj,{children:s.map(S=>(0,mt.jsx)(eZ,{suggestion:S,onClick:t,disabled:r},S))})}):null,(0,mt.jsx)("div",{className:"p-4 pt-0",children:(0,mt.jsxs)(Gj,{onSubmit:I,children:[(0,mt.jsx)(Hj,{children:(0,mt.jsx)(Wj,{placeholder:c,disabled:r})}),(0,mt.jsxs)(Jj,{children:[(0,mt.jsx)(Kj,{}),(0,mt.jsx)(Xj,{status:x,onStop:n})]})]})})]})}var Gn=O(le(),1);var oZ=O(nZ(),1);var am=O(le(),1);var Ux=O(le(),1);var aZ=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Et=(e,t,r)=>(aZ(e,t,"read from private field"),r?r.call(e):t.get(e)),Wa=(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)},Qi=(e,t,r,a)=>(aZ(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r);function Wde(e,t){return t!=null?(0,oZ.default)(e,t):e}var qn,Dx,Nx,tm,rm,nm,Sc,p3,m3,Jde=class{constructor(e=[]){Wa(this,qn,void 0),Wa(this,Dx,"ready"),Wa(this,Nx,void 0),Wa(this,tm,new Set),Wa(this,rm,new Set),Wa(this,nm,new Set),this.pushMessage=t=>{Qi(this,qn,Et(this,qn).concat(t)),Et(this,Sc).call(this)},this.popMessage=()=>{Qi(this,qn,Et(this,qn).slice(0,-1)),Et(this,Sc).call(this)},this.replaceMessage=(t,r)=>{Qi(this,qn,[...Et(this,qn).slice(0,t),this.snapshot(r),...Et(this,qn).slice(t+1)]),Et(this,Sc).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let a=r?Wde(t,r):t;return Et(this,tm).add(a),()=>{Et(this,tm).delete(a)}},this["~registerStatusCallback"]=t=>(Et(this,rm).add(t),()=>{Et(this,rm).delete(t)}),this["~registerErrorCallback"]=t=>(Et(this,nm).add(t),()=>{Et(this,nm).delete(t)}),Wa(this,Sc,()=>{Et(this,tm).forEach(t=>t())}),Wa(this,p3,()=>{Et(this,rm).forEach(t=>t())}),Wa(this,m3,()=>{Et(this,nm).forEach(t=>t())}),Qi(this,qn,e)}get status(){return Et(this,Dx)}set status(e){Qi(this,Dx,e),Et(this,p3).call(this)}get error(){return Et(this,Nx)}set error(e){Qi(this,Nx,e),Et(this,m3).call(this)}get messages(){return Et(this,qn)}set messages(e){Qi(this,qn,[...e]),Et(this,Sc).call(this)}};qn=new WeakMap;Dx=new WeakMap;Nx=new WeakMap;tm=new WeakMap;
527rm=new WeakMap;nm=new WeakMap;Sc=new WeakMap;p3=new WeakMap;m3=new WeakMap;var Ic,Ox=class extends sO{constructor({messages:e,...t}){let r=new Jde(e);super({...t,state:r}),Wa(this,Ic,void 0),this["~registerMessagesCallback"]=(a,n)=>Et(this,Ic)["~registerMessagesCallback"](a,n),this["~registerStatusCallback"]=a=>Et(this,Ic)["~registerStatusCallback"](a),this["~registerErrorCallback"]=a=>Et(this,Ic)["~registerErrorCallback"](a),Qi(this,Ic,r)}};Ic=new WeakMap;function iZ({experimental_throttle:e,resume:t=!1,...r}={}){let a=(0,Gn.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(a.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:h=>{var g,x;return(x=(g=a.current).onToolCall)==null?void 0:x.call(g,h)},onData:h=>{var g,x;return(x=(g=a.current).onData)==null?void 0:x.call(g,h)},onFinish:h=>{var g,x;return(x=(g=a.current).onFinish)==null?void 0:x.call(g,h)},onError:h=>{var g,x;return(x=(g=a.current).onError)==null?void 0:x.call(g,h)},sendAutomaticallyWhen:h=>{var g,x,I;return(I=(x=(g=a.current).sendAutomaticallyWhen)==null?void 0:x.call(g,h))!=null?I:!1}},o=(0,Gn.useRef)("chat"in r?r.chat:new Ox(n));("chat"in r&&r.chat!==o.current||"id"in r&&o.current.id!==r.id)&&(o.current="chat"in r?r.chat:new Ox(n));let s=(0,Gn.useCallback)(h=>o.current["~registerMessagesCallback"](h,e),[e,o.current.id]),u=(0,Gn.useSyncExternalStore)(s,()=>o.current.messages,()=>o.current.messages),c=(0,Gn.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),f=(0,Gn.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),p=(0,Gn.useCallback)(h=>{typeof h=="function"&&(h=h(o.current.messages)),o.current.messages=h},[o]);return(0,Gn.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:u,setMessages:p,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:f,resumeStream:o.current.resumeStream,status:c,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Ho=O(le());function om(e){if(!Cc(e))throw new Error("Parameter was not an error")}function Cc(e){return!!e&&typeof e=="object"&&Kde(e)==="[object Error]"||e instanceof Error}function Kde(e){return Object.prototype.toString.call(e)}var Xde="Layerr",Yde=Xde;function h3(){return Yde}function sZ(e){let t,r="";if(e.length===0)t={};else if(Cc(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}}var Go=class e extends Error{constructor(t,r){let a=[...arguments],{options:n,shortMessage:o}=sZ(a),i=o;if(n.cause&&(i=`${i}: ${n.cause.message}`),super(i),this.message=i,n.name&&typeof n.name=="string"?this.name=n.name:this.name=h3(),n.cause&&Object.defineProperty(this,"_cause",{value:n.cause}),Object.defineProperty(this,"_info",{value:{}}),n.info&&typeof n.info=="object"&&Object.assign(this._info,n.info),Error.captureStackTrace){let s=n.constructorOpt||this.constructor;Error.captureStackTrace(this,s)}}static cause(t){return om(t),t._cause&&Cc(t._cause)?t._cause:null}static fullStack(t){om(t);let r=e.cause(t);return r?`${t.stack} 528caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){om(t);let r={},a=e.cause(t);return a&&Object.assign(r,e.info(a)),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 uZ="0123456789ABCDEFGHJKMNPQRSTVWXYZ",sm=32,lZ=0xffffffffffff,Qde=10,efe=16,im=Object.freeze({source:"ulid"});function tfe(e){let t=e||rfe(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new Go({info:{code:"PRNG_DETECT",...im}},"Failed to find a reliable PRNG")}function rfe(){return ofe()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function nfe(e,t){let r="";for(;e>0;e--)r=ife(t)+r;return r}function afe(e,t){if(isNaN(e))throw new Go({info:{code:"ENC_TIME_NAN",...im}},`Time must be a number: ${e}`);if(e>lZ)throw new Go({info:{code:"ENC_TIME_SIZE_EXCEED",...im}},`Cannot encode a time larger than ${lZ}: ${e}`);if(e<0)throw new Go({info:{code:"ENC_TIME_NEG",...im}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Go({info:{code:"ENC_TIME_TYPE",...im}},`Time must be an integer: ${e}`);let r,a="";for(let n=t;n>0;n--)r=e%sm,a=uZ.charAt(r)+a,e=(e-r)/sm;return a}function ofe(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ife(e){let t=Math.floor(e()*sm);return t===sm&&(t=sm-1),uZ.charAt(t)}function Bx(e,t){let r=t||tfe(),a=isNaN(e)?Date.now():e;return afe(a,Qde)+nfe(efe,r)}function sfe(e){return e==null||e.trim().length===0}async function g3(e,t){if(sfe(e))throw new Error("Agent ID cannot be empty");let a=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,n=await fetch(a,{method:"POST",headers:{"Content-Type":"application/json"}}),o=n.headers.get("content-type")||"",i=await n.text().catch(()=>"");
528if(!n.ok)throw new Error(`Failed to create conversation: ${n.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 lfe(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 n=r.parts;if(n!=null&&n.length>0){let o=n[n.length-1];if(o!=null&&la(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 ufe=6;function v3(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,o=new Ox({messages:[],transport:new c5({api:n,prepareSendMessagesRequest:i=>{let{history:s,messages:u}=lfe(i.messages),c=Math.max(0,ufe-u.length),f=c===0?[]:s.slice(-c);return{body:{messages:u,history:f}}}}),id:t,generateId:Bx,sendAutomaticallyWhen:i=>!(!(uO(i)||lO(i))||o.error!=null)});return o}var Mt=O(J()),cfe={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function y3({agentId:e,publicAgentId:t,title:r="Assistant",accent:a,suggestions:n,placeholder:o,defaultOpen:i=!1,className:s}){let[u,c]=(0,Ho.useState)(i),[f,p]=(0,Ho.useState)(null),[h,g]=(0,Ho.useState)(!1),[x,I]=(0,Ho.useState)(!1),S=e!=null&&e!=="",$=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,T=(0,Ho.useCallback)(async()=>{if(!(!S||f!=null||x)){I(!0);try{let{conversationId:M}=await g3(e);p(v3(e,M)),g(!1)}catch{g(!0)}finally{I(!1)}}},[S,f,x,e]);if((0,Ho.useEffect)(()=>{u&&S&&f==null&&!h&&!x&&T()},[u,S,f,h,x,T]),!S&&$==null)return null;let k=()=>{c(!0),T()};return(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)(j1,{children:u?(0,Mt.jsxs)(Mt.Fragment,{children:[(0,Mt.jsx)("div",{className:"bg-foreground
528/20 fixed inset-0 z-40 sm:hidden",onClick:()=>c(!1),"aria-hidden":!0}),(0,Mt.jsx)(X1.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:be("fixed inset-0 z-50 h-full w-full sm:inset-auto sm:bottom-6 sm:right-6 sm:h-[600px] sm:w-[400px]",s),children:(0,Mt.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,Mt.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,Mt.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,Mt.jsx)(xr,{variant:"ghost",size:"icon",onClick:()=>c(!1),"aria-label":"Close chat",children:(0,Mt.jsx)(ps,{className:"size-4","aria-hidden":!0})})]}),S&&f!=null?(0,Mt.jsx)(dfe,{chat:f,title:r,suggestions:n,placeholder:o}):S&&h?(0,Mt.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,Mt.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,Mt.jsx)(xr,{onClick:()=>{T()},disabled:x,children:"Try again"}),$!=null?(0,Mt.jsx)("a",{href:$,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):S?(0,Mt.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):$!=null?(0,Mt.jsx)("iframe",{src:$,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),u?null:(0,Mt.jsx)(xr,{onClick:k,"aria-label":`Open ${r}`,className:be("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",a!=null?cfe[a]:"bg-primary text-primary-foreground"),children:(0,Mt.jsx)(Xc,{className:"size-6","aria-hidden":!0})})]})}function dfe({chat:e,title:t,suggestions:r,placeholder:a}){let{messages:n,status:o,stop:i,error:s,addToolApprovalResponse:u}=iZ({chat:e,id:e.id});return(0,Mt.jsx)(f3,{messages:n,onSend:async p=>{try{await e.sendMessage({id:Bx(),role:"user",parts:[{type:"text",text:p}]})}catch{}},busy:o==="submitted"||o==="streaming",status:o,onStop:i,errorMessage:s!=null?"Something went wrong - please try again.":void 0,onApprove:(p,h)=>u({id:p,approved:h}),title:t,suggestions:r,placeholder:a,className:"rounded-none border-0"})}var lm=O(le());var aBe=O(le());var cZ=O(J());var sBe=O(le());var ffe=O(J());var dZ=O(J());var x3=O(J());var GBe=O(le());var RBe=O(le());var pfe=O(J());var NBe=O(le());var mfe=O(J());var fZ=O(J());var Wo=O(le());function gZ(e){return e==null||e.trim().length===0}var hfe=new Set([429,502,503,504]),gfe=3,pZ=300,vfe=4e3;function mZ(e){return new Promise(t=>setTimeout(t,e))}function hZ(e){return Math.min(pZ*2**(e-1),vfe)+Math.random()*pZ}function yfe(e){let t=e.headers.get("retry-after")?.trim();if(t==null||t.length===0)return null;if(/^\d+$/.test(t))return Number.parseInt(t,10)*1e3;let r=Date.parse(t);return Number.isNaN(r)?null:Math.max(0,r-Date.now())}async function vZ(e,t,r){let n=`${r?.baseUrl??""}/api/taskade${e}`,i=(t.method??"GET").toUpperCase()==="GET"?gfe:1;for(let s=1;;s++){let u=s<i,c;try{c=await fetch(n,{...t,headers:{"Content-Type":"application/json",...t.headers}})}catch(h){if(u){await mZ(hZ(s));continue}throw h}if(!c.ok){if(u&&hfe.has(c.status)){let g=yfe(c)??hZ(s);await mZ(g);continue}let h=await c.text().catch(()=>"");throw new Error(`Taskade gateway request failed: ${c.status} ${h||"Unknown error"}`)}let f=c.headers.get("content-type")||"",p=await c.text().catch(()=>"");if(!f.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${f}. Response: ${p.substring(0,100)}`);try{return JSON.parse(p)}catch(h){throw new Error(`Failed to parse JSON response: ${h instanceof Error?h.message:"Unknown error"}. Response: ${p.substring(0,200)}`,{cause:h})}}}async function b3(e,t){if(gZ(e))throw new Error("Project ID cannot be empty");return(await vZ(`/projects/${encodeURIComponent(e)}/nodes`,{method:"GET"},t)).payload?.nodes??[]}function sl(e,...t){for(let r of t){let a=e.fieldValues[r];
528if(a!=null)return typeof a=="string"?a:String(a)}return null}var yZ="01KY2DD4ZRP5H0E30MX6YK2K0Y",xZ="01KY2DD5KEJ6CH75RWG3TWA3PV",bZ="4hJdkETKXHGMYvPL";var xfe={"M\xF3dulo 1: Gmail":{icon:"\u{1F4E7}",color:"#DB4437"},"M\xF3dulo 2: Perfil Facebook":{icon:"\u{1F499}",color:"#4267B2"},"M\xF3dulo 3: Fanpage":{icon:"\u{1F3E2}",color:"#1877F2"},"M\xF3dulo 4: Prospecci\xF3n":{icon:"\u{1F50D}",color:"#F7B928"},"M\xF3dulo 5: WhatsApp Business":{icon:"\u{1F4F2}",color:"#25D366"}},wZ="trdc-course-completed";function _Z(){try{let e=localStorage.getItem(wZ);if(e)return new Set(JSON.parse(e))}catch{}return new Set}function bfe(e){try{localStorage.setItem(wZ,JSON.stringify([...e]))}catch{}}function wfe(e){let t=e.filter(a=>{let n=sl(a,"Tipo");return n==="\u{1F4D8} Lecci\xF3n"||n==="\u{1F4CB} Resumen"}),r=_Z();return t.map(a=>{let n=sl(a,"M\xF3dulo")||"",o=xfe[n]||{icon:"\u{1F4D8}",color:"#4A90D9"},s=e.filter(u=>u.parentId===a.id).map(u=>({id:u.id,title:sl(u,"Title")||"",type:sl(u,"Tipo")||"\u{1F463} Paso a Paso",module:n,completed:r.has(u.id),parentId:u.parentId}));return{id:a.id,title:sl(a,"Title")||"",moduleLabel:n,lessons:s,icon:o.icon,color:o.color}})}function kZ(){let[e,t]=(0,Wo.useState)([]),[r,a]=(0,Wo.useState)(!0),[n,o]=(0,Wo.useState)(null),i=(0,Wo.useCallback)(async()=>{try{a(!0);let p=await b3(bZ);t(wfe(p)),o(null)}catch{o("No se pudo cargar el contenido del curso.")}finally{a(!1)}},[]);(0,Wo.useEffect)(()=>{i()},[i]);let s=(0,Wo.useCallback)(p=>{let h=_Z(),g=h.has(p);g?h.delete(p):h.add(p),bfe(h),t(x=>x.map(I=>({...I,lessons:I.lessons.map(S=>S.id===p?{...S,completed:!g}:S)})))},[]),u=e.reduce((p,h)=>p+h.lessons.length,0),c=e.reduce((p,h)=>p+h.lessons.filter(g=>g.completed).length,0),f=u>0?Math.round(c/u*100):0;return{modules:e,loading:r,error:n,toggleLesson:s,progress:f,completedLessons:c,totalLessons:u,refetch:i}}var Rt=O(J());function SZ({modules:e,activeModuleId:t,onSelectModule:r,progress:a}){let{theme:n,setTheme:o}=YT();return(0,Rt.jsxs)("aside",{className:"w-72 flex-shrink-0 border-r border-border bg-card flex flex-col h-screen sticky top-0",children:[(0,Rt.jsxs)("div",{className:"p-4 border-b border-border",children:[(0,Rt.jsxs)("div",{className:"flex items-center gap-2.5 mb-3",children:[(0,Rt.jsx)("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center",children:(0,Rt.jsx)(fs,{className:"w-4 h-4 text-primary-foreground"})}),(0,Rt.jsxs)("div",{children:[(0,Rt.jsx)("h2",{className:"text-sm font-bold text-foreground leading-tight",children:"Oficina Virtual"}),(0,Rt.jsx)("p",{className:"text-[11px] text-muted-foreground",children:"Curso #TeamTRDC"})]})]}),(0,Rt.jsx)("div",{className:"w-full bg-muted rounded-full h-1.5 mb-1.5",children:(0,Rt.jsx)("div",{className:"h-1.5 rounded-full bg-primary transition-all duration-500",style:{width:`${a}%`}})}),(0,Rt.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:[a,"% completado"]})]}),(0,Rt.jsx)("nav",{className:"flex-1 overflow-y-auto py-2 px-3",children:e.map(i=>{let s=t===i.id,u=i.lessons.filter(f=>f.completed).length,c=i.lessons.length;return(0,Rt.jsxs)("button",{onClick:()=>r(i.id),className:`w-full text-left px-3 py-2.5 rounded-lg mb-1 transition-all duration-150 flex items-center gap-3 group ${s?"bg-primary/10 text-foreground font-medium":"hover:bg-muted text-muted-foreground hover:text-foreground"}`,children:[(0,Rt.jsx)("span",{className:"text-lg flex-shrink-0",children:i.icon}),(0,Rt.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Rt.jsx)("p",{className:"text-xs font-medium truncate",children:i.title}),(0,Rt.jsxs)("p",{className:"text-[11px] text-muted-foreground",children:[u,"/",c," lecciones"]})]}),s&&(0,Rt.jsx)("div",{className:"w-1 h-6 rounded-full flex-shrink-0",style:{backgroundColor:i.color}})]},i.id)})}),(0,Rt.jsxs)("div",{className:"p-3 border-t border-border",children:[(0,Rt.jsxs)("button",{onClick:()=>o(n==="dark"?"light":"dark"),className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs text-muted-foreground hover:bg-muted hover:text-foreground transition-colors","aria-label":"Cambiar tema",children:[n==="dark"?(0,Rt.jsx)(ed,{className:"w-4 h-4"}):(0,Rt.jsx)(Yc,{className:"w-4 h-4"}),n==="dark"?"Modo claro":"Modo oscuro"]}
528),(0,Rt.jsx)("p",{className:"text-[10px] text-muted-foreground/60 text-center mt-2",children:"Desarrollado por #TeamTRDC \xA9 2026"})]})]})}var Ja=O(J()),IZ={"\u{1F4A1} Concepto Clave":{bg:"bg-purple-50 dark:bg-purple-950/30",border:"border-l-purple-400"},"\u{1F463} Paso a Paso":{bg:"bg-green-50 dark:bg-green-950/30",border:"border-l-green-400"},"\u2705 Checklist":{bg:"bg-amber-50 dark:bg-amber-950/30",border:"border-l-amber-400"},"\u{1F4CB} Resumen":{bg:"bg-orange-50 dark:bg-orange-950/30",border:"border-l-orange-400"},"\u{1F4D8} Lecci\xF3n":{bg:"bg-blue-50 dark:bg-blue-950/30",border:"border-l-blue-400"}};function CZ({lesson:e,onToggle:t,isActive:r}){let a=IZ[e.type]||IZ["\u{1F463} Paso a Paso"],n=e.type==="\u2705 Checklist";return(0,Ja.jsx)("button",{onClick:()=>t(e.id),className:`w-full text-left border-l-4 ${a.border} ${a.bg} rounded-r-lg p-3 transition-all duration-200 hover:shadow-sm ${r?"ring-2 ring-primary/30":""}`,children:(0,Ja.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,Ja.jsx)("div",{className:`mt-0.5 flex-shrink-0 w-5 h-5 rounded-full border-2 flex items-center justify-center transition-colors ${e.completed?"bg-primary border-primary":"border-muted-foreground/30 hover:border-primary/50"}`,children:e.completed&&(0,Ja.jsx)(Jc,{className:"w-3 h-3 text-primary-foreground"})}),(0,Ja.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Ja.jsx)("div",{className:"flex items-center gap-2 mb-0.5",children:(0,Ja.jsx)("span",{className:"text-xs font-medium text-muted-foreground",children:e.type})}),(0,Ja.jsx)("p",{className:`text-sm leading-relaxed ${e.completed?"text-muted-foreground line-through":"text-foreground"}`,children:e.title})]})]})})}var gr=O(J());function TZ({module:e,onToggleLesson:t,activeLessonId:r}){let a=e.lessons.filter(i=>i.completed).length,n=e.lessons.length,o=n>0?Math.round(a/n*100):0;return(0,gr.jsxs)("div",{className:"animate-in fade-in slide-in-from-right-4 duration-300",children:[(0,gr.jsxs)("div",{className:"rounded-xl p-5 mb-6",style:{backgroundColor:e.color+"12",borderLeft:`4px solid ${e.color}`},children:[(0,gr.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,gr.jsx)("span",{className:"text-2xl",children:e.icon}),(0,gr.jsx)("h1",{className:"text-xl font-bold text-foreground",children:e.title})]}),(0,gr.jsxs)("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(0,gr.jsxs)("span",{className:"flex items-center gap-1",children:[(0,gr.jsx)(Yo,{className:"w-4 h-4"}),n," lecciones"]}),(0,gr.jsxs)("span",{className:"flex items-center gap-1",children:[(0,gr.jsx)(Wc,{className:"w-4 h-4"}),a," completadas"]})]}),(0,gr.jsx)("div",{className:"mt-3 w-full bg-muted rounded-full h-1.5",children:(0,gr.jsx)("div",{className:"h-1.5 rounded-full transition-all duration-500",style:{width:`${o}%`,backgroundColor:e.color}})})]}),(0,gr.jsx)("div",{className:"space-y-3",children:e.lessons.map(i=>(0,gr.jsx)(CZ,{lesson:i,onToggle:t,isActive:r===i.id},i.id))}),e.lessons.length===0&&(0,gr.jsxs)("div",{className:"text-center py-12 text-muted-foreground",children:[(0,gr.jsx)(Yo,{className:"w-12 h-12 mx-auto mb-3 opacity-30"}),(0,gr.jsx)("p",{className:"text-sm",children:"No hay lecciones en este m\xF3dulo todav\xEDa."})]})]})}var tr=O(J());function _fe(){let{modules:e,loading:t,error:r,toggleLesson:a,progress:n,refetch:o}=kZ(),[i,s]=(0,um.useState)(null);(0,um.useEffect)(()=>{document.title="Oficina Virtual Desde Cero | #TeamTRDC"},[]),(0,um.useEffect)(()=>{e.length>0&&!i&&s(e[0].id)},[e,i]);let u=e.find(c=>c.id===i)||null;return t?(0,tr.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-background",children:(0,tr.jsxs)("div",{className:"text-center",children:[(0,tr.jsx)(wa,{className:"w-8 h-8 animate-spin text-primary mx-auto mb-3"}),(0,tr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Cargando el curso..."})]})}):r?(0,tr.jsx)("div",{className:"flex items-center justify-center min-h-screen bg-background",children:(0,tr.jsxs)("div",{className:"text-center max-w-sm",children:[(0,tr.jsx)(Yo,{className:"w-12 h-12 text-muted-foreground
528/40 mx-auto mb-4"}),(0,tr.jsx)("p",{className:"text-sm text-muted-foreground mb-3",children:r}),(0,tr.jsx)("button",{onClick:o,className:"text-sm text-primary hover:underline",children:"Intentar de nuevo"})]})}):(0,tr.jsxs)("div",{className:"flex min-h-screen bg-background",children:[(0,tr.jsx)(SZ,{modules:e,activeModuleId:i,onSelectModule:s,progress:n}),(0,tr.jsx)("main",{className:"flex-1 min-w-0",children:(0,tr.jsx)("div",{className:"max-w-3xl mx-auto px-6 py-8",children:u?(0,tr.jsx)(TZ,{module:u,onToggleLesson:a,activeLessonId:null}):(0,tr.jsxs)("div",{className:"text-center py-20",children:[(0,tr.jsx)(fs,{className:"w-16 h-16 text-muted-foreground/30 mx-auto mb-4"}),(0,tr.jsx)("h2",{className:"text-lg font-semibold text-foreground mb-2",children:"Selecciona un m\xF3dulo"}),(0,tr.jsx)("p",{className:"text-sm text-muted-foreground",children:"Elige un m\xF3dulo del panel izquierdo para comenzar tu aprendizaje."})]})})}),(0,tr.jsx)(y3,{agentId:yZ,publicAgentId:xZ,title:"Coach TRDC"})]})}var PZ=_fe;var Uje=O(le());var da=O(le()),kfe=(0,da.createContext)(null),w3={didCatch:!1,error:null},Fx=class extends da.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=w3}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,a,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];(r=(a=this.props).onReset)===null||r===void 0||r.call(a,{args:o,reason:"imperative-api"}),this.setState(w3)}}componentDidCatch(t,r){var a,n;(a=(n=this.props).onError)===null||a===void 0||a.call(n,t,r)}componentDidUpdate(t,r){let{didCatch:a}=this.state,{resetKeys:n}=this.props;if(a&&r.error!==null&&Sfe(t.resetKeys,n)){var o,i;(o=(i=this.props).onReset)===null||o===void 0||o.call(i,{next:n,prev:t.resetKeys,reason:"keys"}),this.setState(w3)}}render(){let{children:t,fallbackRender:r,FallbackComponent:a,fallback:n}=this.props,{didCatch:o,error:i}=this.state,s=t;if(o){let u={error:i,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(u);else if(a)s=(0,da.createElement)(a,u);else if(n!==void 0)s=n;else throw i}return(0,da.createElement)(kfe.Provider,{value:{didCatch:o,error:i,resetErrorBoundary:this.resetErrorBoundary}},s)}};function Sfe(){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,a)=>!Object.is(r,t[a]))}var es=O(J());function $Z(){return typeof window>"u"?null:window.__TASKADE_APP_LIFECYCLE_LOGGER__??null}function Ife(e,t,r){$Z()?.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(Boolean).join(` 529`)}})}function Cfe({error:e,resetErrorBoundary:t}){let r=$Z()!=null;return(0,es.jsxs)("div",{style:{padding:"2rem",fontFamily:"system-ui, sans-serif",maxWidth:600,margin:"0 auto"},children:[(0,es.jsx)("h2",{style:{margin:"0 0 0.5rem",fontSize:"1.25rem"},children:"Something went wrong"}),(0,es.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."}),r&&(0,es.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,es.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 LZ({children:e}){return(0,es.jsx)(Fx,{FallbackComponent:Cfe,onError:(t,r)=>{console.error("[Genesis] Uncaught render error:",t,r),Ife("error.boundary",t,r.componentStack)},onReset:()=>{console.info("[Genesis] User reset error boundary")},children:e})}var AZ="taskade-theme-overrides";function Tfe(e){let t=e.trim().split(/\s+/);if(t.length<3)return null;let r=parseFloat(t[0]),a=parseFloat(t[1]),n=parseFloat(t[2]);return isNaN(r)||isNaN(a)||isNaN(n)?null:{h:r,s:a,l:n}}function Pfe(e,t){let r=Tfe(t);if(r==null)return t;let{h:a,s:n,l:o}=r;if(e==="--radius")return t;let i,s=n;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(n,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(n,70)):e==="--destructive-foreground"?i=Math.min(98,Math.max(90,100-o)):i=100-o,`${a} ${s}% ${Math.round(i)}%`}function EZ(e,t){let r=Object.entries(t).map(([a,n])=>` ${a}: ${n};`).join(` 530`);return`${e} { 531${r} 532}`}function MZ(){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 a=new Set(e),n={},o={};e.clear();for(let[s,u]of Object.entries(r))u!==""&&(n[s]=u,o[s]=Pfe(s,u),e.add(s));for(let s of a)document.documentElement.style.removeProperty(s);let i=document.getElementById(AZ);Object.keys(n).length===0?i?.remove():(i==null&&(i=document.createElement("style"),i.id=AZ,document.head.appendChild(i)),i.textContent=[EZ(":root",n),EZ(".dark",o)].join(` 533 534`)),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 a=getComputedStyle(document.documentElement),n={};for(let o of r){let i=a.getPropertyValue(o).trim();i&&(n[o]=i)}window.parent.postMessage({type:"TASKADE_THEME_CURRENT",data:{vars:n}},"*");return}}})}var Jo=O(J());MZ();var zZ=document.getElementById("root");function $fe(){for(let e of zZ.querySelectorAll("script:not([src])")){let t=e.textContent??"";if(t.includes("documentElement")&&t.includes("localStorage"))return!0}return!1}function Lfe(){try{let e=document.cookie.match(/(?:^|;\s*)director-preview-access-token=([^;
534]+)/),t=new URLSearchParams(window.location.search).get("accessToken")??window.sessionStorage.getItem("director-preview-access-token")??(e?e[1]:null);if(t!=null){let r=t.split("."),a=r.length===3?r[1]:null;if(a!=null){let n=JSON.parse(atob(a.replace(/-/g,"+").replace(/_/g,"/")));if(n!=null&&n.appId!=null)return`theme:${n.spaceId}:${n.appId}`}}}catch{}return"theme"}var Afe=Lfe();function Efe({children:e}){let[t,r]=(0,Tc.useState)(!1);return(0,Tc.useLayoutEffect)(()=>{$fe()||r(!0)},[]),t?(0,Jo.jsx)(QT,{attribute:"class",defaultTheme:"dark",enableSystem:!1,disableTransitionOnChange:!0,storageKey:Afe,children:e}):(0,Jo.jsx)(Jo.Fragment,{children:e})}(0,RZ.createRoot)(zZ).render((0,Jo.jsx)(Tc.StrictMode,{children:(0,Jo.jsx)(LZ,{children:(0,Jo.jsx)(Efe,{children:(0,Jo.jsx)(PZ,{})})})})); 535/*! Bundled license information: 536 537leaflet/dist/leaflet-src.js: 538 (* @preserve 539 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 540 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 541 *) 542 543lucide-react/dist/esm/shared/src/utils/mergeClasses.js: 544lucide-react/dist/esm/shared/src/utils/toKebabCase.js: 545lucide-react/dist/esm/shared/src/utils/toCamelCase.js: 546lucide-react/dist/esm/shared/src/utils/toPascalCase.js: 547lucide-react/dist/esm/defaultAttributes.js: 548lucide-react/dist/esm/shared/src/utils/hasA11yProp.js: 549lucide-react/dist/esm/Icon.js: 550lucide-react/dist/esm/createLucideIcon.js: 551lucide-react/dist/esm/icons/arrow-down.js: 552lucide-react/dist/esm/icons/book-open.js: 553lucide-react/dist/esm/icons/check-check.js: 554lucide-react/dist/esm/icons/check.js: 555lucide-react/dist/esm/icons/corner-down-left.js: 556lucide-react/dist/esm/icons/graduation-cap.js: 557lucide-react/dist/esm/icons/loader-circle.js: 558lucide-react/dist/esm/icons/message-circle.js: 559lucide-react/dist/esm/icons/moon.js: 560lucide-react/dist/esm/icons/sparkles.js: 561lucide-react/dist/esm/icons/square.js: 562lucide-react/dist/esm/icons/sun.js: 563lucide-react/dist/esm/icons/x.js: 564lucide-react/dist/esm/lucide-react.js: 565 (** 566 * @license lucide-react v0.577.0 - ISC 567 * 568 * This source code is licensed under the ISC license. 569 * See the LICENSE file in the root directory of this source tree. 570 *) 571 572use-stick-to-bottom/dist/useStickToBottom.js: 573use-stick-to-bottom/dist/StickToBottom.js: 574 (*!--------------------------------------------------------------------------------------------- 575 * Copyright (c) StackBlitz. All rights reserved. 576 * Licensed under the MIT License. See License.txt in the project root for license information. 577 *--------------------------------------------------------------------------------------------*) 578*/
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.