1var __IMPORT_META_ENV={};var __PROCESS_ENV={NODE_ENV:"production"}; 2import{A as x1,a as ii,b as a$,c as vl,d as yl,e as If,f as s$,g as l$,h as c$,i as u$,j as d$,k as p$,l as m$,m as Tf,n as f$,o as b1,p as h$,q as g$,r as bl,s as v$,t as y$,u as $f,v as b$,w as ju}from"/chunks/chunk-WWM5NXNF.js";import{a as $7,b as wf}from"/chunks/chunk-X72RZCT6.js";import{C as y1,a as We,b as Ki,c as Lu,d as kf,e as $r,f as J7,g as Sf,h as gl,i as nn,j as K7,k as X7,l as Y7,m as Xi,n as g1,o as v1,p as Q7,q as e$,r as t$,s as r$,t as n$,u as o$,v as i$}from"/chunks/chunk-SIK2SK2Y.js";import{a as P7,b as C7,d as E7,e as no,f as m1,g as z7,i as f1}from"/chunks/chunk-RNBNUPYO.js";import{a as lq}from"/chunks/chunk-LBOF5UZC.js";import"/chunks/chunk-RPDIDNSP.js";import"/chunks/chunk-IQXS5TGS.js";import"/chunks/chunk-FPOK5YOB.js";import{a as Lt}from"/chunks/chunk-FELOAUEI.js";import{a as oi}from"/chunks/chunk-4LEMSLOC.js";import{a as _f,b as Tr,c as W7,e as ls}from"/chunks/chunk-TDDFZO7Y.js";import{A as Z7,F as Ou,G as V7,H as G7,L as q7,M as H7,N as hl,a as Te,b as A7,d as M7,e as R7,f as N7,g as D7,r as O7,s as h1,v as L7,w as j7,x as U7,y as B7,z as F7}from"/chunks/chunk-YDJINYEP.js";import{a as T7,b as p1,c as rn,d as Z,e as xe,f as se}from"/chunks/chunk-OZLXG5XE.js";var w$=p1((Pf,x$)=>{"use strict";(function(e,t){typeof Pf=="object"&&typeof x$<"u"?t(Pf):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.leaflet={}))})(Pf,(function(e){"use strict";var t="1.9.4";function r(l){var d,f,v,w;for(f=1,v=arguments.length;f<v;f++){w=arguments[f];for(d in w)l[d]=w[d]}return l}var o=Object.create||(function(){function l(){}return function(d){return l.prototype=d,new l}})();function n(l,d){var f=Array.prototype.slice;if(l.bind)return l.bind.apply(l,f.call(arguments,1));var v=f.call(arguments,2);return function(){return l.apply(d,v.length?v.concat(f.call(arguments)):arguments)}}var i=0;function a(l){return"_leaflet_id"in l||(l._leaflet_id=++i),l._leaflet_id}function s(l,d,f){var v,w,$,D;return D=function(){v=!1,w&&($.apply(f,w),w=!1)},$=function(){v?w=arguments:(l.apply(f,arguments),setTimeout(D,d),v=!0)},$}function c(l,d,f){var v=d[1],w=d[0],$=v-w;return l===v&&f?l:((l-w)%$+$)%$+w}function u(){return!1}function p(l,d){if(d===!1)return l;var f=Math.pow(10,d===void 0?6:d);return Math.round(l*f)/f}function m(l){return l.trim?l.trim():l.replace(/^\s+|\s+$/g,"")}function h(l){return m(l).split(/\s+/)}function g(l,d){Object.prototype.hasOwnProperty.call(l,"options")||(l.options=l.options?o(l.options):{});for(var f in d)l.options[f]=d[f];return l.options}function b(l,d,f){var v=[];for(var w in l)v.push(encodeURIComponent(f?w.toUpperCase():w)+"="+encodeURIComponent(l[w]));return(!d||d.indexOf("?")===-1?"?":"&")+v.join("&")}var T=/\{ *([\w_ -]+) *\}/g;function I(l,d){return l.replace(T,function(f,v){var w=d[v];if(w===void 0)throw new Error("No value provided for variable "+f);return typeof w=="function"&&(w=w(d)),w})}var P=Array.isArray||function(l){return Object.prototype.toString.call(l)==="[object Array]"};function C(l,d){for(var f=0;f<l.length;f++)if(l[f]===d)return f;return-1}var k="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function A(l){return window["webkit"+l]||window["moz"+l]||window["ms"+l]}var z=0;function N(l){var d=+new Date,f=Math.max(0,16-(d-z));return z=d+f,window.setTimeout(l,f)}var B=window.requestAnimationFrame||A("RequestAnimationFrame")||N,G=window.cancelAnimationFrame||A("CancelAnimationFrame")||A("CancelRequestAnimationFrame")||function(l){window.clearTimeout(l)};function F(l,d,f){if(f&&B===N)l.call(d);else return B.call(window,n(l,d))}function W(l){l&&G.call(window,l)}var ue={__proto__:null,extend:r,create:o,bind:n,get lastId(){return i},stamp:a,throttle:s,wrapNum:c,falseFn:u,formatNum:p,trim:m,splitWords:h,setOptions:g,getParamString:b,template:I,isArray:P,indexOf:C,emptyImageUrl:k,requestFn:B,cancelFn:G,requestAnimFrame:F,cancelAnimFrame:W};function de(){}de.extend=function(l){var d=function(){g(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},f=d.__super__=this.prototype,v=o(f);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&&(ft(l.includes),r.apply(null,[v].concat(l.includes))),r(v,l),delete v.statics,delete v.
2includes,v.options&&(v.options=f.options?o(f.options):{},r(v.options,l.options)),v._initHooks=[],v.callInitHooks=function(){if(!this._initHooksCalled){f.callInitHooks&&f.callInitHooks.call(this),this._initHooksCalled=!0;for(var $=0,D=v._initHooks.length;$<D;$++)v._initHooks[$].call(this)}},d},de.include=function(l){var d=this.prototype.options;return r(this.prototype,l),l.options&&(this.prototype.options=d,this.mergeOptions(l.options)),this},de.mergeOptions=function(l){return r(this.prototype.options,l),this},de.addInitHook=function(l){var d=Array.prototype.slice.call(arguments,1),f=typeof l=="function"?l:function(){this[l].apply(this,d)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(f),this};function ft(l){if(!(typeof L>"u"||!L||!L.Mixin)){l=P(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 $e={on:function(l,d,f){if(typeof l=="object")for(var v in l)this._on(v,l[v],d);else{l=h(l);for(var w=0,$=l.length;w<$;w++)this._on(l[w],d,f)}return this},off:function(l,d,f){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,$=0,D=l.length;$<D;$++)w?this._off(l[$]):this._off(l[$],d,f)}return this},_on:function(l,d,f,v){if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}if(this._listens(l,d,f)===!1){f===this&&(f=void 0);var w={fn:d,ctx:f};v&&(w.once=!0),this._events=this._events||{},this._events[l]=this._events[l]||[],this._events[l].push(w)}},_off:function(l,d,f){var v,w,$;if(this._events&&(v=this._events[l],!!v)){if(arguments.length===1){if(this._firingCount)for(w=0,$=v.length;w<$;w++)v[w].fn=u;delete this._events[l];return}if(typeof d!="function"){console.warn("wrong listener type: "+typeof d);return}var D=this._listens(l,d,f);if(D!==!1){var V=v[D];this._firingCount&&(V.fn=u,this._events[l]=v=v.slice()),v.splice(D,1)}}},fire:function(l,d,f){if(!this.listens(l,f))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 $=0,D=w.length;$<D;$++){var V=w[$],q=V.fn;V.once&&this.off(l,q,V.ctx),q.call(V.ctx||this,v)}this._firingCount--}}return f&&this._propagateEvent(v),this},listens:function(l,d,f,v){typeof l!="string"&&console.warn('"string" type argument expected');var w=d;typeof d!="function"&&(v=!!d,w=void 0,f=void 0);var $=this._events&&this._events[l];if($&&$.length&&this._listens(l,w,f)!==!1)return!0;if(v){for(var D in this._eventParents)if(this._eventParents[D].listens(l,d,f,v))return!0}return!1},_listens:function(l,d,f){if(!this._events)return!1;var v=this._events[l]||[];if(!d)return!!v.length;f===this&&(f=void 0);for(var w=0,$=v.length;w<$;w++)if(v[w].fn===d&&v[w].ctx===f)return w;return!1},once:function(l,d,f){if(typeof l=="object")for(var v in l)this._on(v,l[v],d,!0);else{l=h(l);for(var w=0,$=l.length;w<$;w++)this._on(l[w],d,f,!0)}return this},addEventParent:function(l){return this._eventParents=this._eventParents||{},this._eventParents[a(l)]=l,this},removeEventParent:function(l){return this._eventParents&&delete this._eventParents[a(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)}};$e.addEventListener=$e.on,$e.removeEventListener=$e.clearAllEventListeners=$e.off,$e.addOneTimeEventListener=$e.once,$e.fireEvent=$e.fire,$e.hasEventListeners=$e.listens;var Fe=de.extend($e);function pe(l,d,f){this.x=f?Math.round(l):l,this.y=f?Math.round(d):d}var en=Math.trunc||function(l){return l>0?Math.floor(l):Math.ceil(l)};pe.prototype={clone:function(){return new pe(this.x,this.y)},add:function(l){return this.clone()._add(me(l))},_add:function(l){return this.x+=l.x,this.y+=l.y,this},subtract:function(l){return this.clone()._subtract(me(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 pe(this.x*l.x,this.y*l.y)},unscaleBy:function(l){return new pe(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=en(this.x),this.y=en(this.y),this},distanceTo:function(l){l=me(l);var d=l.x-this.x,f=l.y-this.y;return Math.sqrt(d*d+f*f)},equals:function(l){return l=me(l),l.x===this.x&&l.y===this.y},contains:function(l){return l=me(l),Math.abs(l.x)<=Math.abs(this.x)&&Math.abs(l.
2y)<=Math.abs(this.y)},toString:function(){return"Point("+p(this.x)+", "+p(this.y)+")"}};function me(l,d,f){return l instanceof pe?l:P(l)?new pe(l[0],l[1]):l==null?l:typeof l=="object"&&"x"in l&&"y"in l?new pe(l.x,l.y):new pe(l,d,f)}function ce(l,d){if(l)for(var f=d?[l,d]:l,v=0,w=f.length;v<w;v++)this.extend(f[v])}ce.prototype={extend:function(l){var d,f;if(!l)return this;if(l instanceof pe||typeof l[0]=="number"||"x"in l)d=f=me(l);else if(l=et(l),d=l.min,f=l.max,!d||!f)return this;return!this.min&&!this.max?(this.min=d.clone(),this.max=f.clone()):(this.min.x=Math.min(d.x,this.min.x),this.max.x=Math.max(f.x,this.max.x),this.min.y=Math.min(d.y,this.min.y),this.max.y=Math.max(f.y,this.max.y)),this},getCenter:function(l){return me((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,l)},getBottomLeft:function(){return me(this.min.x,this.max.y)},getTopRight:function(){return me(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,f;return typeof l[0]=="number"||l instanceof pe?l=me(l):l=et(l),l instanceof ce?(d=l.min,f=l.max):d=f=l,d.x>=this.min.x&&f.x<=this.max.x&&d.y>=this.min.y&&f.y<=this.max.y},intersects:function(l){l=et(l);var d=this.min,f=this.max,v=l.min,w=l.max,$=w.x>=d.x&&v.x<=f.x,D=w.y>=d.y&&v.y<=f.y;return $&&D},overlaps:function(l){l=et(l);var d=this.min,f=this.max,v=l.min,w=l.max,$=w.x>d.x&&v.x<f.x,D=w.y>d.y&&v.y<f.y;return $&&D},isValid:function(){return!!(this.min&&this.max)},pad:function(l){var d=this.min,f=this.max,v=Math.abs(d.x-f.x)*l,w=Math.abs(d.y-f.y)*l;return et(me(d.x-v,d.y-w),me(f.x+v,f.y+w))},equals:function(l){return l?(l=et(l),this.min.equals(l.getTopLeft())&&this.max.equals(l.getBottomRight())):!1}};function et(l,d){return!l||l instanceof ce?l:new ce(l,d)}function tt(l,d){if(l)for(var f=d?[l,d]:l,v=0,w=f.length;v<w;v++)this.extend(f[v])}tt.prototype={extend:function(l){var d=this._southWest,f=this._northEast,v,w;if(l instanceof ve)v=l,w=l;else if(l instanceof tt){if(v=l._southWest,w=l._northEast,!v||!w)return this}else return l?this.extend(fe(l)||be(l)):this;return!d&&!f?(this._southWest=new ve(v.lat,v.lng),this._northEast=new ve(w.lat,w.lng)):(d.lat=Math.min(v.lat,d.lat),d.lng=Math.min(v.lng,d.lng),f.lat=Math.max(w.lat,f.lat),f.lng=Math.max(w.lng,f.lng)),this},pad:function(l){var d=this._southWest,f=this._northEast,v=Math.abs(d.lat-f.lat)*l,w=Math.abs(d.lng-f.lng)*l;return new tt(new ve(d.lat-v,d.lng-w),new ve(f.lat+v,f.lng+w))},getCenter:function(){return new ve((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 ve(this.getNorth(),this.getWest())},getSouthEast:function(){return new ve(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 ve||"lat"in l?l=fe(l):l=be(l);var d=this._southWest,f=this._northEast,v,w;
2return l instanceof tt?(v=l.getSouthWest(),w=l.getNorthEast()):v=w=l,v.lat>=d.lat&&w.lat<=f.lat&&v.lng>=d.lng&&w.lng<=f.lng},intersects:function(l){l=be(l);var d=this._southWest,f=this._northEast,v=l.getSouthWest(),w=l.getNorthEast(),$=w.lat>=d.lat&&v.lat<=f.lat,D=w.lng>=d.lng&&v.lng<=f.lng;return $&&D},overlaps:function(l){l=be(l);var d=this._southWest,f=this._northEast,v=l.getSouthWest(),w=l.getNorthEast(),$=w.lat>d.lat&&v.lat<f.lat,D=w.lng>d.lng&&v.lng<f.lng;return $&&D},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(l,d){return l?(l=be(l),this._southWest.equals(l.getSouthWest(),d)&&this._northEast.equals(l.getNorthEast(),d)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function be(l,d){return l instanceof tt?l:new tt(l,d)}function ve(l,d,f){if(isNaN(l)||isNaN(d))throw new Error("Invalid LatLng object: ("+l+", "+d+")");this.lat=+l,this.lng=+d,f!==void 0&&(this.alt=+f)}ve.prototype={equals:function(l,d){if(!l)return!1;l=fe(l);var f=Math.max(Math.abs(this.lat-l.lat),Math.abs(this.lng-l.lng));return f<=(d===void 0?1e-9:d)},toString:function(l){return"LatLng("+p(this.lat,l)+", "+p(this.lng,l)+")"},distanceTo:function(l){return wt.distance(this,fe(l))},wrap:function(){return wt.wrapLatLng(this)},toBounds:function(l){var d=180*l/40075017,f=d/Math.cos(Math.PI/180*this.lat);return be([this.lat-d,this.lng-f],[this.lat+d,this.lng+f])},clone:function(){return new ve(this.lat,this.lng,this.alt)}};function fe(l,d,f){return l instanceof ve?l:P(l)&&typeof l[0]!="object"?l.length===3?new ve(l[0],l[1],l[2]):l.length===2?new ve(l[0],l[1]):null:l==null?l:typeof l=="object"&&"lat"in l?new ve(l.lat,"lng"in l?l.lng:l.lon,l.alt):d===void 0?null:new ve(l,d,f)}var at={latLngToPoint:function(l,d){var f=this.projection.project(l),v=this.scale(d);return this.transformation._transform(f,v)},pointToLatLng:function(l,d){var f=this.scale(d),v=this.transformation.untransform(l,f);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,f=this.scale(l),v=this.transformation.transform(d.min,f),w=this.transformation.transform(d.max,f);return new ce(v,w)},infinite:!1,wrapLatLng:function(l){var d=this.wrapLng?c(l.lng,this.wrapLng,!0):l.lng,f=this.wrapLat?c(l.lat,this.wrapLat,!0):l.lat,v=l.alt;return new ve(f,d,v)},wrapLatLngBounds:function(l){var d=l.getCenter(),f=this.wrapLatLng(d),v=d.lat-f.lat,w=d.lng-f.lng;if(v===0&&w===0)return l;
2var $=l.getSouthWest(),D=l.getNorthEast(),V=new ve($.lat-v,$.lng-w),q=new ve(D.lat-v,D.lng-w);return new tt(V,q)}},wt=r({},at,{wrapLng:[-180,180],R:6371e3,distance:function(l,d){var f=Math.PI/180,v=l.lat*f,w=d.lat*f,$=Math.sin((d.lat-l.lat)*f/2),D=Math.sin((d.lng-l.lng)*f/2),V=$*$+Math.cos(v)*Math.cos(w)*D*D,q=2*Math.atan2(Math.sqrt(V),Math.sqrt(1-V));return this.R*q}}),mt=6378137,Nt={R:mt,MAX_LATITUDE:85.0511287798,project:function(l){var d=Math.PI/180,f=this.MAX_LATITUDE,v=Math.max(Math.min(f,l.lat),-f),w=Math.sin(v*d);return new pe(this.R*l.lng*d,this.R*Math.log((1+w)/(1-w))/2)},unproject:function(l){var d=180/Math.PI;return new ve((2*Math.atan(Math.exp(l.y/this.R))-Math.PI/2)*d,l.x*d/this.R)},bounds:(function(){var l=mt*Math.PI;return new ce([-l,-l],[l,l])})()};function Sr(l,d,f,v){if(P(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=f,this._d=v}Sr.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 pe((l.x/d-this._b)/this._a,(l.y/d-this._d)/this._c)}};function Lr(l,d,f,v){return new Sr(l,d,f,v)}var _o=r({},wt,{code:"EPSG:3857",projection:Nt,transformation:(function(){var l=.5/(Math.PI*Nt.R);return Lr(l,.5,-l,.5)})()}),Qm=r({},_o,{code:"EPSG:900913"});function Ya(l){return document.createElementNS("http://www.w3.org/2000/svg",l)}function Qa(l,d){var f="",v,w,$,D,V,q;for(v=0,$=l.length;v<$;v++){for(V=l[v],w=0,D=V.length;w<D;w++)q=V[w],f+=(w?"L":"M")+q.x+" "+q.y;f+=d?ze.svg?"z":"x":""}return f||"M0 0"}var xu=document.documentElement.style,nl="ActiveXObject"in window,Nb=nl&&!document.addEventListener,wu="msLaunchUri"in navigator&&!("documentMode"in document),ol=ko("webkit"),es=ko("android"),ef=ko("android 2")||ko("android 3"),Db=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),_u=es&&ko("Google")&&Db<537&&!("AudioNode"in window),il=!!window.opera,ku=!wu&&ko("chrome"),tf=ko("gecko")&&!ol&&!il&&!nl,Ob=!ku&&ko("safari"),ts=ko("phantom"),rs="OTransition"in xu,ZV=navigator.platform.indexOf("Win")===0,TT=nl&&"transition"in xu,Lb="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ef,$T="MozPerspective"in xu,VV=!window.L_DISABLE_3D&&(TT||Lb||$T)&&!rs&&!ts,Su=typeof orientation<"u"||ko("mobile"),GV=Su&&ol,qV=Su&&Lb,PT=!window.PointerEvent&&window.MSPointerEvent,CT=!!(window.PointerEvent||PT),ET="ontouchstart"in window||!!window.TouchEvent,HV=!window.L_NO_TOUCH&&(ET||CT),WV=Su&&il,JV=Su&&tf,KV=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,XV=(function(){var l=!1;try{var d=Object.defineProperty({},"passive",{get:function(){l=!0}});window.addEventListener("testPassiveEventSupport",u,d),window.removeEventListener("testPassiveEventSupport",u,d)}catch{}return l})(),YV=(function(){return!!document.createElement("canvas").getContext})(),jb=!!(document.createElementNS&&Ya("svg").createSVGRect),QV=!!jb&&(function(){var l=document.createElement("div");return l.innerHTML="<svg/>",(l.firstChild&&l.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),eG=!jb&&(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}})(),tG=navigator.platform.indexOf("Mac")===0,rG=navigator.platform.indexOf("Linux")===0;function ko(l){return navigator.userAgent.toLowerCase().indexOf(l)>=0}var ze={ie:nl,ielt9:Nb,edge:wu,webkit:ol,android:es,android23:ef,androidStock:_u,opera:il,chrome:ku,gecko:tf,safari:Ob,phantom:ts,opera12:rs,win:ZV,ie3d:TT,webkit3d:Lb,gecko3d:$T,any3d:VV,mobile:Su,mobileWebkit:GV,mobileWebkit3d:qV,msPointer:PT,pointer:CT,touch:HV,touchNative:ET,mobileOpera:WV,mobileGecko:JV,retina:KV,passiveEvents:XV,canvas:YV,svg:jb,vml:eG,inlineSvg:QV,mac:tG,linux:rG},zT=ze.msPointer?"MSPointerDown":"pointerdown",AT=ze.msPointer?"MSPointerMove":"pointermove",MT=ze.msPointer?"MSPointerUp":"pointerup",RT=ze.msPointer?"MSPointerCancel":"pointercancel",Ub={touchstart:zT,touchmove:AT,touchend:MT,touchcancel:RT},NT={touchstart:lG,touchmove:rf,touchend:rf,touchcancel:rf},al={},DT=!1;function nG(l,d,f){return d==="touchstart"&&sG(),NT[d]?(f=NT[d].bind(this,f),l.addEventListener(Ub[d],f,!1),f):(console.warn("wrong event specified:",d),u)}function oG(l,d,f){if(!Ub[d]){console.warn("wrong event specified:",d);return}l.removeEventListener(Ub[d],f,!1)}function iG(l){al[l.pointerId]=l}function aG(l){al[l.pointerId]&&(al[l.pointerId]=l)}function OT(l){delete al[l.pointerId]}function sG(){DT||(document.addEventListener(zT,iG,!0),document.addEventListener(AT,aG,!0),document.addEventListener(MT,OT,!0),document.addEventListener(RT,OT,!0),DT=!0)}function rf(l,d){if(d.pointerType!==(d.MSPOINTER_TYPE_MOUSE||"mouse")){d.touches=[];for(var f in al)d.touches.push(al[f]);d.changedTouches=[d],l(d)}}function lG(l,d){d.MSPOINTER_TYPE_TOUCH&&d.pointerType===d.MSPOINTER_TYPE_TOUCH&&Ir(d),rf(l,d)}function cG(l){var d={},f,v;for(v in l)f=l[v],d[v]=f&&f.bind?f.bind(l):f;return l=d,d.type="dblclick",d.detail=2,d.isTrusted=!1,d._simulated=!0,d}var uG=200;function dG(l,d){l.addEventListener("dblclick",d);var f=0,v;function w($){if($.detail!==1){v=$.detail;return}if(!($.pointerType==="mouse"||$.sourceCapabilities&&!$.sourceCapabilities.firesTouchEvents)){var D=FT($);if(!(D.some(function(q){return q instanceof HTMLLabelElement&&q.attributes.for})&&!D.some(function(q){return q instanceof HTMLInputElement||q instanceof HTMLSelectElement}))){var V=Date.now();V-f<=uG?(v++,v===2&&d(cG($))):v=1,f=V}}}return l.addEventListener("click",w),{dblclick:d,simDblclick:w}}function pG(l,d){l.removeEventListener("dblclick",d.dblclick),l.removeEventListener("click",d.simDblclick)}var Bb=af(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Iu=af(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),LT=Iu==="webkitTransition"||Iu==="OTransition"?Iu+"End":"transitionend";function jT(l){return typeof l=="string"?document.getElementById(l):l}function Tu(l,d){var f=l.style[d]||l.currentStyle&&l.currentStyle[d
2];if((!f||f==="auto")&&document.defaultView){var v=document.defaultView.getComputedStyle(l,null);f=v?v[d]:null}return f==="auto"?null:f}function ht(l,d,f){var v=document.createElement(l);return v.className=d||"",f&&f.appendChild(v),v}function Vt(l){var d=l.parentNode;d&&d.removeChild(l)}function nf(l){for(;l.firstChild;)l.removeChild(l.firstChild)}function sl(l){var d=l.parentNode;d&&d.lastChild!==l&&d.appendChild(l)}function ll(l){var d=l.parentNode;d&&d.firstChild!==l&&d.insertBefore(l,d.firstChild)}function Fb(l,d){if(l.classList!==void 0)return l.classList.contains(d);var f=of(l);return f.length>0&&new RegExp("(^|\\s)"+d+"(\\s|$)").test(f)}function rt(l,d){if(l.classList!==void 0)for(var f=h(d),v=0,w=f.length;v<w;v++)l.classList.add(f[v]);else if(!Fb(l,d)){var $=of(l);Zb(l,($?$+" ":"")+d)}}function er(l,d){l.classList!==void 0?l.classList.remove(d):Zb(l,m((" "+of(l)+" ").replace(" "+d+" "," ")))}function Zb(l,d){l.className.baseVal===void 0?l.className=d:l.className.baseVal=d}function of(l){return l.correspondingElement&&(l=l.correspondingElement),l.className.baseVal===void 0?l.className:l.className.baseVal}function Nn(l,d){"opacity"in l.style?l.style.opacity=d:"filter"in l.style&&mG(l,d)}function mG(l,d){var f=!1,v="DXImageTransform.Microsoft.Alpha";try{f=l.filters.item(v)}catch{if(d===1)return}d=Math.round(d*100),f?(f.Enabled=d!==100,f.Opacity=d):l.style.filter+=" progid:"+v+"(opacity="+d+")"}function af(l){for(var d=document.documentElement.style,f=0;f<l.length;f++)if(l[f]in d)return l[f];return!1}function ns(l,d,f){var v=d||new pe(0,0);l.style[Bb]=(ze.ie3d?"translate("+v.x+"px,"+v.y+"px)":"translate3d("+v.x+"px,"+v.y+"px,0)")+(f?" scale("+f+")":"")}function or(l,d){l._leaflet_pos=d,ze.any3d?ns(l,d):(l.style.left=d.x+"px",l.style.top=d.y+"px")}function os(l){return l._leaflet_pos||new pe(0,0)}var $u,Pu,Vb;if("onselectstart"in document)$u=function(){He(window,"selectstart",Ir)},Pu=function(){Mt(window,"selectstart",Ir)};else{var Cu=af(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);$u=function(){if(Cu){var l=document.documentElement.style;Vb=l[Cu],l[Cu]="none"}},Pu=function(){Cu&&(document.documentElement.style[Cu]=Vb,Vb=void 0)}}function Gb(){He(window,"dragstart",Ir)}function qb(){Mt(window,"dragstart",Ir)}var sf,Hb;function Wb(l){for(;l.tabIndex===-1;)l=l.parentNode;l.style&&(lf(),sf=l,Hb=l.style.outlineStyle,l.style.outlineStyle="none",He(window,"keydown",lf))}function lf(){sf&&(sf.style.outlineStyle=Hb,sf=void 0,Hb=void 0,Mt(window,"keydown",lf))}function UT(l){do l=l.parentNode;while((!l.offsetWidth||!l.offsetHeight)&&l!==document.body);return l}function Jb(l){var d=l.getBoundingClientRect();return{x:d.width/l.offsetWidth||1,y:d.height/l.offsetHeight||1,boundingClientRect:d}}var fG={__proto__:null,TRANSFORM:Bb,TRANSITION:Iu,TRANSITION_END:LT,get:jT,getStyle:Tu,create:ht,remove:Vt,empty:nf,toFront:sl,toBack:ll,hasClass:Fb,addClass:rt,removeClass:er,setClass:Zb,getClass:of,setOpacity:Nn,testProp:af,setTransform:ns,setPosition:or,getPosition:os,get disableTextSelection(){return $u},get enableTextSelection(){return Pu},disableImageDrag:Gb,enableImageDrag:qb,preventOutline:Wb,restoreOutline:lf,getSizedParentNode:UT,getScale:Jb};function He(l,d,f,v){if(d&&typeof d=="object")for(var w in d)Xb(l,w,d[w],f);else{d=h(d);for(var $=0,D=d.length;$<D;$++)Xb(l,d[$],f,v)}return this}var So="_leaflet_events";function Mt(l,d,f,v){if(arguments.length===1)BT(l),delete l[So];else if(d&&typeof d=="object")for(var w in d)Yb(l,w,d[w],f);else if(d=h(d),arguments.length===2)BT(l,function(V){return C(d,V)!==-1});else for(var $=0,D=d.length;$<D;$++)Yb(l,d[$],f,v);return this}function BT(l,d){for(var f in l[So]){var v=f.split(/\d/)[0];(!d||d(v))&&Yb(l,v,null,null,f)}}
2var Kb={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Xb(l,d,f,v){var w=d+a(f)+(v?"_"+a(v):"");if(l[So]&&l[So][w])return this;var $=function(V){return f.call(v||l,V||window.event)},D=$;!ze.touchNative&&ze.pointer&&d.indexOf("touch")===0?$=nG(l,d,$):ze.touch&&d==="dblclick"?$=dG(l,$):"addEventListener"in l?d==="touchstart"||d==="touchmove"||d==="wheel"||d==="mousewheel"?l.addEventListener(Kb[d]||d,$,ze.passiveEvents?{passive:!1}:!1):d==="mouseenter"||d==="mouseleave"?($=function(V){V=V||window.event,e1(l,V)&&D(V)},l.addEventListener(Kb[d],$,!1)):l.addEventListener(d,D,!1):l.attachEvent("on"+d,$),l[So]=l[So]||{},l[So][w]=$}function Yb(l,d,f,v,w){w=w||d+a(f)+(v?"_"+a(v):"");var $=l[So]&&l[So][w];if(!$)return this;!ze.touchNative&&ze.pointer&&d.indexOf("touch")===0?oG(l,d,$):ze.touch&&d==="dblclick"?pG(l,$):"removeEventListener"in l?l.removeEventListener(Kb[d]||d,$,!1):l.detachEvent("on"+d,$),l[So][w]=null}function is(l){return l.stopPropagation?l.stopPropagation():l.originalEvent?l.originalEvent._stopped=!0:l.cancelBubble=!0,this}function Qb(l){return Xb(l,"wheel",is),this}function Eu(l){return He(l,"mousedown touchstart dblclick contextmenu",is),l._leaflet_disable_click=!0,this}function Ir(l){return l.preventDefault?l.preventDefault():l.returnValue=!1,this}function as(l){return Ir(l),is(l),this}function FT(l){if(l.composedPath)return l.composedPath();for(var d=[],f=l.target;f;)d.push(f),f=f.parentNode;return d}function ZT(l,d){if(!d)return new pe(l.clientX,l.clientY);var f=Jb(d),v=f.boundingClientRect;return new pe((l.clientX-v.left)/f.x-d.clientLeft,(l.clientY-v.top)/f.y-d.clientTop)}var hG=ze.linux&&ze.chrome?window.devicePixelRatio:ze.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function VT(l){return ze.edge?l.wheelDeltaY/2:l.deltaY&&l.deltaMode===0?-l.deltaY/hG: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 e1(l,d){var f=d.relatedTarget;if(!f)return!0;try{for(;f&&f!==l;)f=f.parentNode}catch{return!1}return f!==l}var gG={__proto__:null,on:He,off:Mt,stopPropagation:is,disableScrollPropagation:Qb,disableClickPropagation:Eu,preventDefault:Ir,stop:as,getPropagationPath:FT,getMousePosition:ZT,getWheelDelta:VT,isExternalTarget:e1,addListener:He,removeListener:Mt},GT=Fe.extend({run:function(l,d,f,v){this.stop(),this._el=l,this._inProgress=!0,this._duration=f||.25,this._easeOutPower=1/Math.max(v||.5,.2),this._startPos=os(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=F(this._animate,this),this._step()},_step:function(l){var d=+new Date-this._startTime,f=this._duration*1e3;d<f?this._runFrame(this._easeOut(d/f),l):(this._runFrame(1),this._complete())},_runFrame:function(l,d){var f=this._startPos.add(this._offset.multiplyBy(l));d&&f._round(),or(this._el,f),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)}}),pt=Fe.extend({options:{crs:_o,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(fe(d.center),d.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Iu&&ze.any3d&&!ze.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),He(this._proxy,LT,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)}
2,setView:function(l,d,f){if(d=d===void 0?this._zoom:this._limitZoom(d),l=this._limitCenter(fe(l),d,this.options.maxBounds),f=f||{},this._stop(),this._loaded&&!f.reset&&f!==!0){f.animate!==void 0&&(f.zoom=r({animate:f.animate},f.zoom),f.pan=r({animate:f.animate,duration:f.duration},f.pan));var v=this._zoom!==d?this._tryAnimatedZoom&&this._tryAnimatedZoom(l,d,f.zoom):this._tryAnimatedPan(l,f.pan);if(v)return clearTimeout(this._sizeTimer),this}return this._resetView(l,d,f.pan&&f.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||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+l,d)},zoomOut:function(l,d){return l=l||(ze.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-l,d)},setZoomAround:function(l,d,f){var v=this.getZoomScale(d),w=this.getSize().divideBy(2),$=l instanceof pe?l:this.latLngToContainerPoint(l),D=$.subtract(w).multiplyBy(1-1/v),V=this.containerPointToLatLng(w.add(D));return this.setView(V,d,{zoom:f})},_getBoundsCenterZoom:function(l,d){d=d||{},l=l.getBounds?l.getBounds():be(l);var f=me(d.paddingTopLeft||d.padding||[0,0]),v=me(d.paddingBottomRight||d.padding||[0,0]),w=this.getBoundsZoom(l,!1,f.add(v));if(w=typeof d.maxZoom=="number"?Math.min(d.maxZoom,w):w,w===1/0)return{center:l.getCenter(),zoom:w};
2var $=v.subtract(f).divideBy(2),D=this.project(l.getSouthWest(),w),V=this.project(l.getNorthEast(),w),q=this.unproject(D.add(V).divideBy(2).add($),w);return{center:q,zoom:w}},fitBounds:function(l,d){if(l=be(l),!l.isValid())throw new Error("Bounds are not valid.");var f=this._getBoundsCenterZoom(l,d);return this.setView(f.center,f.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=me(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 GT,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),d.noMoveStart||this.fire("movestart"),d.animate!==!1){rt(this._mapPane,"leaflet-pan-anim");var f=this._getMapPanePos().subtract(l).round();this._panAnim.run(this._mapPane,f,d.duration||.25,d.easeLinearity)}else this._rawPanBy(l),this.fire("move").fire("moveend");return this},flyTo:function(l,d,f){if(f=f||{},f.animate===!1||!ze.any3d)return this.setView(l,d,f);this._stop();var v=this.project(this.getCenter()),w=this.project(l),$=this.getSize(),D=this._zoom;l=fe(l),d=d===void 0?D:d;var V=Math.max($.x,$.y),q=V*this.getZoomScale(D,d),J=w.distanceTo(v)||1,ke=1.42,De=ke*ke;function lt(ir){var xf=ir?-1:1,oq=ir?q:V,iq=q*q-V*V+xf*De*De*J*J,aq=2*oq*De*J,d1=iq/aq,I7=Math.sqrt(d1*d1+1)-d1,sq=I7<1e-9?-18:Math.log(I7);return sq}function jr(ir){return(Math.exp(ir)-Math.exp(-ir))/2}function br(ir){return(Math.exp(ir)+Math.exp(-ir))/2}function On(ir){return jr(ir)/br(ir)}var tn=lt(0);function fl(ir){return V*(br(tn)/br(tn+ke*ir))}function eq(ir){return V*(br(tn)*On(tn+ke*ir)-jr(tn))/De}function tq(ir){return 1-Math.pow(1-ir,1.5)}var rq=Date.now(),k7=(lt(1)-tn)/ke,nq=f.duration?1e3*f.duration:1e3*k7*.8;function S7(){var ir=(Date.now()-rq)/nq,xf=tq(ir)*k7;ir<=1?(this._flyToFrame=F(S7,this),this._move(this.unproject(v.add(w.subtract(v).multiplyBy(eq(xf)/J)),D),this.get
2ScaleZoom(V/fl(xf),D),{flyTo:!0})):this._move(l,d)._moveEnd(!0)}return this._moveStart(!0,f.noMoveStart),S7.call(this),this},flyToBounds:function(l,d){var f=this._getBoundsCenterZoom(l,d);return this.flyTo(f.center,f.zoom,d)},setMaxBounds:function(l){return l=be(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 f=this.getCenter(),v=this._limitCenter(f,this._zoom,be(l));return f.equals(v)||this.panTo(v,d),this._enforcingBounds=!1,this},panInside:function(l,d){d=d||{};var f=me(d.paddingTopLeft||d.padding||[0,0]),v=me(d.paddingBottomRight||d.padding||[0,0]),w=this.project(this.getCenter()),$=this.project(l),D=this.getPixelBounds(),V=et([D.min.add(f),D.max.subtract(v)]),q=V.getSize();if(!V.contains($)){this._enforcingBounds=!0;var J=$.subtract(V.getCenter()),ke=V.extend($).getSize().subtract(q);w.x+=J.x<0?-ke.x:ke.x,w.y+=J.y<0?-ke.y:ke.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 f=this.getSize(),v=d.divideBy(2).round(),w=f.divideBy(2).round(),$=v.subtract(w);return!$.x&&!$.y?this:(l.animate&&l.pan?this.panBy($):(l.pan&&this._rawPanBy($),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:f}))},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),f=n(this._handleGeolocationError,this);return l.watch?this._locationWatchId=navigator.geolocation.watchPosition(d,f,l):navigator.geolocation.getCurrentPosition(d,f,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,f=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: "+f+"."})}},_handleGeolocationResponse:function(l){if(this._container._leaflet_id){var d=l.coords.latitude,f=l.coords.longitude,v=new ve(d,f),w=v.toBounds(l.coords.accuracy*2),$=this._locateOptions;if($.setView){var D=this.getBoundsZoom(w);this.setView(v,$.maxZoom?Math.min(D,$.maxZoom):D)}var V={latlng:v,bounds:w,timestamp:l.timestamp};for(var q in l.coords)typeof l.coords[q]=="number"&&(V[q]=l.coords[q]);this.fire("locationfound",V)}},addHandler:function(l,d){if(!d)return this;var f=this[l]=new d(this);return this._handlers.push(f),this.options[l]&&f.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(),Vt(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)Vt(this._panes[l]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(l,d){var f="leaflet-pane"+(l?" leaflet-"+l.replace("Pane","")+"-pane":""),v=ht("div",f,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()),f=this.unproject(l.getTopRight());return new tt(d,f)},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,f){l=be(l),f=me(f||[0,0]);var v=this.getZoom()||0,w=this.getMinZoom(),$=this.getMaxZoom(),D=l.getNorthWest(),V=l.getSouthEast(),q=this.getSize().subtract(f),J=et(this.project(V,v),this.project(D,v)).getSize(),ke=ze.any3d?this.options.zoomSnap:1,De=q.x/J.x,lt=q.y/J.y,jr=d?Math.max(De,lt):Math.min(De,lt);return v=this.getScaleZoom(jr,v),ke&&(v=Math.round(v/(ke/100))*(ke/100),v=d?Math.ceil(v/ke)*ke:Math.floor(v/ke)*ke),Math.max(w,Math.min($,v))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new pe(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(l,d){var f=this._getTopLeftPoint(l,d);return new ce(f,f.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 f=this.options.crs;return d=d===void 0?this._zoom:d,f.scale(l)/f.scale(d)},getScaleZoom:function(l,d){var f=this.options.crs;d=d===void 0?this._zoom:d;var v=f.zoom(l*f.scale(d));return isNaN(v)?1/0:v},project:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.latLngToPoint(fe(l),d)},unproject:function(l,d){return d=d===void 0?this._zoom:d,this.options.crs.pointToLatLng(me(l),d)},layerPointToLatLng:function(l){var d=me(l).add(this.getPixelOrigin());return this.unproject(d)},latLngToLayerPoint:function(l){var d=this.project(fe(l))._round();return d._subtract(this.getPixelOrigin())},wrapLatLng:function(l){return this.options.crs.wrapLatLng(fe(l))},wrapLatLngBounds:function(l){return this.options.crs.wrapLatLngBounds(be(l))},distance:function(l,d){return this.options.crs.distance(fe(l),fe(d))},containerPointToLayerPoint:function(l){return me(l).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(l){return me(l).add(this._getMapPanePos())},containerPointToLatLng:function(l){var d=this.containerPointToLayerPoint(me(l));return this.layerPointToLatLng(d)},latLngToContainerPoint:function(l){return this.layerPointToContainerPoint(this.latLngToLayerPoint(fe(l)))},mouseEventToContainerPoint:function(l){return ZT(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=jT(l);if(d){if(d._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");He(d,"scroll",this._onScroll,this),this._containerId=a(d)},_initLayout:function(){var l=this._container;this._fadeAnimated=this.options.fadeAnimation&&ze.any3d,rt(l,"leaflet-container"+(ze.touch?" leaflet-touch":"")+(ze.retina?" leaflet-retina":"")+(ze.ielt9?" leaflet-oldie":"")+(ze.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var d=Tu(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),or(this._mapPane,new pe(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(rt(l.markerPane,"leaflet-zoom-hide"),rt(l.shadowPane,"leaflet-zoom-hide"))},_resetView:function(l,d,f){or(this._mapPane,new pe(0,0));var v=!this._loaded;this._loaded=!0,d=this._limitZoom(d),this.fire("viewprereset");var w=this._zoom!==d;this._moveStart(w,f)._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,f,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?f&&f.pinch&&this.fire("zoom",f):((w||f&&f.pinch)&&this.fire("zoom",f),this.fire("move",f)),this},_moveEnd:function(l){return l&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return W(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this}
2,_rawPanBy:function(l){or(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[a(this._container)]=this;var d=l?Mt:He;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),ze.any3d&&this.options.transform3DLimit&&(l?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){W(this._resizeRequest),this._resizeRequest=F(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var l=this._getMapPanePos();Math.max(Math.abs(l.x),Math.abs(l.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(l,d){for(var f=[],v,w=d==="mouseout"||d==="mouseover",$=l.target||l.srcElement,D=!1;$;){if(v=this._targets[a($)],v&&(d==="click"||d==="preclick")&&this._draggableMoved(v)){D=!0;break}if(v&&v.listens(d,!0)&&(w&&!e1($,l)||(f.push(v),w))||$===this._container)break;$=$.parentNode}return!f.length&&!D&&!w&&this.listens(d,!0)&&(f=[this]),f},_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 f=l.type;f==="mousedown"&&Wb(d),this._fireDOMEvent(l,f)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(l,d,f){if(l.type==="click"){var v=r({},l);v.type="preclick",this._fireDOMEvent(v,v.type,f)}var w=this._findEventTargets(l,d);if(f){for(var $=[],D=0;D<f.length;D++)f[D].listens(d,!0)&&$.push(f[D]);w=$.concat(w)}if(w.length){d==="contextmenu"&&Ir(l);var V=w[0],q={originalEvent:l};if(l.type!=="keypress"&&l.type!=="keydown"&&l.type!=="keyup"){var J=V.getLatLng&&(!V._radius||V._radius<=10);q.containerPoint=J?this.latLngToContainerPoint(V.getLatLng()):this.mouseEventToContainerPoint(l),q.layerPoint=this.containerPointToLayerPoint(q.containerPoint),q.latlng=J?V.getLatLng():this.layerPointToLatLng(q.layerPoint)}for(D=0;D<w.length;D++)if(w[D].fire(d,q,!0),q.originalEvent._stopped||w[D].options.bubblingMouseEvents===!1&&C(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 os(this._mapPane)||new pe(0,0)},_moved:function(){var l=this._getMapPanePos();return l&&!l.equals([0,0])},_getTopLeftPoint:function(l,d){var f=l&&d!==void 0?this._getNewPixelOrigin(l,d):this.getPixelOrigin();return f.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(l,d){var f=this.getSize()._divideBy(2);return this.project(l,d)._subtract(f)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(l,d,f){var v=this._getNewPixelOrigin(f,d);return this.project(l,d)._subtract(v)},_latLngBoundsToNewLayerBounds:function(l,d,f){var v=this._getNewPixelOrigin(f,d);
2return et([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,f){if(!f)return l;var v=this.project(l,d),w=this.getSize().divideBy(2),$=new ce(v.subtract(w),v.add(w)),D=this._getBoundsOffset($,f,d);return Math.abs(D.x)<=1&&Math.abs(D.y)<=1?l:this.unproject(v.add(D),d)},_limitOffset:function(l,d){if(!d)return l;var f=this.getPixelBounds(),v=new ce(f.min.add(l),f.max.add(l));return l.add(this._getBoundsOffset(v,d))},_getBoundsOffset:function(l,d,f){var v=et(this.project(d.getNorthEast(),f),this.project(d.getSouthWest(),f)),w=v.min.subtract(l.min),$=v.max.subtract(l.max),D=this._rebound(w.x,-$.x),V=this._rebound(w.y,-$.y);return new pe(D,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(),f=this.getMaxZoom(),v=ze.any3d?this.options.zoomSnap:1;return v&&(l=Math.round(l/v)*v),Math.max(d,Math.min(f,l))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){er(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(l,d){var f=this._getCenterOffset(l)._trunc();return(d&&d.animate)!==!0&&!this.getSize().contains(f)?!1:(this.panBy(f,d),!0)},_createAnimProxy:function(){var l=this._proxy=ht("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(l),this.on("zoomanim",function(d){var f=Bb,v=this._proxy.style[f];ns(this._proxy,this.project(d.center,d.zoom),this.getZoomScale(d.zoom,1)),v===this._proxy.style[f]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Vt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var l=this.getCenter(),d=this.getZoom();ns(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,f){if(this._animatingZoom)return!0;if(f=f||{},!this._zoomAnimated||f.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 f.animate!==!0&&!this.getSize().contains(w)?!1:(F(function(){this._moveStart(!0,f.noMoveStart||!1)._animateZoom(l,d,!0)},this),!0)},_animateZoom:function(l,d,f,v){this._mapPane&&(f&&(this._animatingZoom=!0,this._animateToCenter=l,this._animateToZoom=d,rt(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&&er(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 vG(l,d){return new pt(l,d)}var to=de.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),f=this.getPosition(),v=l._controlCorners[f];return rt(d,"leaflet-control"),f.indexOf("bottom")!==-1?v.insertBefore(d,v.firstChild):v.appendChild(d),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Vt(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()}}),zu=function(l){return new to(l)};pt.include({addControl:function(l){return l.addTo(this),this},removeControl:function(l){return l.remove(),this}
2,_initControlPos:function(){var l=this._controlCorners={},d="leaflet-",f=this._controlContainer=ht("div",d+"control-container",this._container);function v(w,$){var D=d+w+" "+d+$;l[w+$]=ht("div",D,f)}v("top","left"),v("top","right"),v("bottom","left"),v("bottom","right")},_clearControlPos:function(){for(var l in this._controlCorners)Vt(this._controlCorners[l]);Vt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var qT=to.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(l,d,f,v){return f<v?-1:v<f?1:0}},initialize:function(l,d,f){g(this,f),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 to.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(a(l));return d&&this._layers.splice(this._layers.indexOf(d),1),this._map?this._update():this},expand:function(){rt(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?(rt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=l+"px"):er(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return er(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var l="leaflet-control-layers",d=this._container=ht("div",l),f=this.options.collapsed;d.setAttribute("aria-haspopup",!0),Eu(d),Qb(d);var v=this._section=ht("section",l+"-list");f&&(this._map.on("click",this.collapse,this),He(d,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var w=this._layersLink=ht("a",l+"-toggle",d);w.href="#",w.title="Layers",w.setAttribute("role","button"),He(w,{keydown:function($){$.keyCode===13&&this._expandSafely()},click:function($){Ir($),this._expandSafely()}},this),f||this.expand(),this._baseLayersList=ht("div",l+"-base",v),this._separator=ht("div",l+"-separator",v),this._overlaysList=ht("div",l+"-overlays",v),d.appendChild(v)},_getLayer:function(l){for(var d=0;d<this._layers.length;d++)if(this._layers[d]&&a(this._layers[d].layer)===l)return this._layers[d]},_addLayer:function(l,d,f){this._map&&l.on("add remove",this._onLayerChange,this),this._layers.push({layer:l,name:d,overlay:f}),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;nf(this._baseLayersList),nf(this._overlaysList),this._layerControlInputs=[];var l,d,f,v,w=0;for(f=0;f<this._layers.length;f++)v=this._layers[f],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(a(l.target)),f=d.overlay?l.type==="add"?"overlayadd":"overlayremove":l.type==="add"?"baselayerchange":null;f&&this._map.fire(f,d)},_createRadioElement:function(l,d){var f='<input type="radio" class="leaflet-control-layers-selector" name="'+l+'"'+(d?' checked="checked"':"")+"/>",v=document.createElement("div");return v.innerHTML=f,v.firstChild},_addItem:function(l){var d=document.createElement("label"),f=this._map.hasLayer(l.layer),v;l.overlay?(v=document.createElement("input"),v.type="checkbox",v.className="leaflet-control-layers-selector",v.defaultChecked=f):v=this._createRadioElement("leaflet-base-layers_"+a(this),f),this._layerControlInputs.push(v),v.layerId=a(l.layer),He(v,"click",this._onInputClick,this);var w=document.createElement("span");w.innerHTML=" "+l.name;var $=document.createElement("span");d.appendChild($),$.appendChild(v),$.appendChild(w);var D=l.overlay?this._overlaysList:this._baseLayersList;return D.appendChild(d),this._checkDisabledLayers(),d},_onInputClick:function(){if(!this._preventClick){var l=this._layerControlInputs,d,f,v=[],w=[];this._handlingClick=!0;for(var $=l.length-1;$>=0;$--)d=l[$],f=this._getLayer(d.layerId).layer,d.checked?v.push(f):d.checked||w.push(f);for($=0;$<w.length;$++)this._map.hasLayer(w[$])&&this._map.removeLayer(w[$]);for($=0;$<v.length;$++)this._map.hasLayer(v[$])||this._map.addLayer(v[$]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var l=this._layerControlInputs,d,f,v=this._map.getZoom(),w=l.length-1;w>=0;w--)d=l[w],f=this._getLayer(d.layerId).layer,d.disabled=f.options.minZoom!==void 0&&v<f.options.minZoom||f.options.maxZoom!==void 0&&v>
2f.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var l=this._section;this._preventClick=!0,He(l,"click",Ir),this.expand();var d=this;setTimeout(function(){Mt(l,"click",Ir),d._preventClick=!1})}}),yG=function(l,d,f){return new qT(l,d,f)},t1=to.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",f=ht("div",d+" leaflet-bar"),v=this.options;return this._zoomInButton=this._createButton(v.zoomInText,v.zoomInTitle,d+"-in",f,this._zoomIn),this._zoomOutButton=this._createButton(v.zoomOutText,v.zoomOutTitle,d+"-out",f,this._zoomOut),this._updateDisabled(),l.on("zoomend zoomlevelschange",this._updateDisabled,this),f},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,f,v,w){var $=ht("a",f,v);return $.innerHTML=l,$.href="#",$.title=d,$.setAttribute("role","button"),$.setAttribute("aria-label",d),Eu($),He($,"click",as),He($,"click",w,this),He($,"click",this._refocusOnMap,this),$},_updateDisabled:function(){var l=this._map,d="leaflet-disabled";er(this._zoomInButton,d),er(this._zoomOutButton,d),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||l._zoom===l.getMinZoom())&&(rt(this._zoomOutButton,d),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||l._zoom===l.getMaxZoom())&&(rt(this._zoomInButton,d),this._zoomInButton.setAttribute("aria-disabled","true"))}});pt.mergeOptions({zoomControl:!0}),pt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new t1,this.addControl(this.zoomControl))});var bG=function(l){return new t1(l)},HT=to.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(l){var d="leaflet-control-scale",f=ht("div",d),v=this.options;return this._addScales(v,d+"-line",f),l.on(v.updateWhenIdle?"moveend":"move",this._update,this),l.whenReady(this._update,this),f},onRemove:function(l){l.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(l,d,f){l.metric&&(this._mScale=ht("div",d,f)),l.imperial&&(this._iScale=ht("div",d,f))},_update:function(){var l=this._map,d=l.getSize().y/2,f=l.distance(l.containerPointToLatLng([0,d]),l.containerPointToLatLng([this.options.maxWidth,d]));this._updateScales(f)},_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),f=d<1e3?d+" m":d/1e3+" km";this._updateScale(this._mScale,f,d/l)},_updateImperial:function(l){var d=l*3.2808399,f,v,w;d>5280?(f=d/5280,v=this._getRoundNum(f),this._updateScale(this._iScale,v+" mi",v/f)):(w=this._getRoundNum(d),this._updateScale(this._iScale,w+" ft",w/d))},_updateScale:function(l,d,f){l.style.width=Math.round(this.options.maxWidth*f)+"px",l.innerHTML=d},_getRoundNum:function(l){var d=Math.pow(10,(Math.floor(l)+"").length-1),f=l/d;return f=f>=10?10:f>=5?5:f>=3?3:f>=2?2:1,d*f}}),xG=function(l){return new HT(l)},wG='<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>',r1=to.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ze.inlineSvg?wG+" ":"")+"Leaflet</a>"},initialize:function(l){g(this,l),this._attributions={}}
2,onAdd:function(l){l.attributionControl=this,this._container=ht("div","leaflet-control-attribution"),Eu(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 f=[];this.options.prefix&&f.push(this.options.prefix),l.length&&f.push(l.join(", ")),this._container.innerHTML=f.join(' <span aria-hidden="true">|</span> ')}}});pt.mergeOptions({attributionControl:!0}),pt.addInitHook(function(){this.options.attributionControl&&new r1().addTo(this)});var _G=function(l){return new r1(l)};to.Layers=qT,to.Zoom=t1,to.Scale=HT,to.Attribution=r1,zu.layers=yG,zu.zoom=bG,zu.scale=xG,zu.attribution=_G;var Io=de.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}});Io.addTo=function(l,d){return l.addHandler(d,this),this};var kG={Events:$e},WT=ze.touch?"touchstart mousedown":"mousedown",Wi=Fe.extend({options:{clickTolerance:3},initialize:function(l,d,f,v){g(this,v),this._element=l,this._dragStartTarget=d||l,this._preventOutline=f},enable:function(){this._enabled||(He(this._dragStartTarget,WT,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Wi._dragging===this&&this.finishDrag(!0),Mt(this._dragStartTarget,WT,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(l){if(this._enabled&&(this._moved=!1,!Fb(this._element,"leaflet-zoom-anim"))){if(l.touches&&l.touches.length!==1){Wi._dragging===this&&this.finishDrag();return}if(!(Wi._dragging||l.shiftKey||l.which!==1&&l.button!==1&&!l.touches)&&(Wi._dragging=this,this._preventOutline&&Wb(this._element),Gb(),$u(),!this._moving)){this.fire("down");var d=l.touches?l.touches[0]:l,f=UT(this._element);this._startPoint=new pe(d.clientX,d.clientY),this._startPos=os(this._element),this._parentScale=Jb(f);var v=l.type==="mousedown";He(document,v?"mousemove":"touchmove",this._onMove,this),He(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,f=new pe(d.clientX,d.clientY)._subtract(this._startPoint);!f.x&&!f.y||Math.abs(f.x)+Math.abs(f.y)<this.options.clickTolerance||(f.x/=this._parentScale.x,f.y/=this._parentScale.y,Ir(l),this._moved||(this.fire("dragstart"),this._moved=!0,rt(document.body,"leaflet-dragging"),this._lastTarget=l.target||l.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),rt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(f),this._moving=!0,this._lastEvent=l,this._updatePosition())}},_updatePosition:function(){var l={originalEvent:this._lastEvent};this.fire("predrag",l),or(this._element,this._newPos),this.fire("drag",l)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(l){er(document.body,"leaflet-dragging"),this._lastTarget&&(er(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Mt(document,"mousemove touchmove",this._onMove,this),Mt(document,"mouseup touchend touchcancel",this._onUp,this),qb(),Pu();var d=this._moved&&this._moving;this._moving=!1,Wi._dragging=!1,d&&this.fire("dragend",{noInertia:l,distance:this._newPos.distanceTo(this._startPos)})}});function JT(l,d,f){var v,w=[1,4,2,8],$,D,V,q,J,ke,De,lt;for($=0,ke=l.length;$<ke;$++)l[$]._code=ss(l[$],d);for(V=0;V<4;V++){for(De=w[V],v=[],$=0,ke=l.length,D=ke-1;$<ke;D=$++)q=l[$],J=l[D],q._code&De?J._code&De||(lt=cf(J,q,De,d,f),lt._code=ss(lt,d),v.push(lt)):(J._co
2de&De&&(lt=cf(J,q,De,d,f),lt._code=ss(lt,d),v.push(lt)),v.push(q));l=v}return l}function KT(l,d){var f,v,w,$,D,V,q,J,ke;if(!l||l.length===0)throw new Error("latlngs not passed");Dn(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var De=fe([0,0]),lt=be(l),jr=lt.getNorthWest().distanceTo(lt.getSouthWest())*lt.getNorthEast().distanceTo(lt.getNorthWest());jr<1700&&(De=n1(l));var br=l.length,On=[];for(f=0;f<br;f++){var tn=fe(l[f]);On.push(d.project(fe([tn.lat-De.lat,tn.lng-De.lng])))}for(V=q=J=0,f=0,v=br-1;f<br;v=f++)w=On[f],$=On[v],D=w.y*$.x-$.y*w.x,q+=(w.x+$.x)*D,J+=(w.y+$.y)*D,V+=D*3;V===0?ke=On[0]:ke=[q/V,J/V];var fl=d.unproject(me(ke));return fe([fl.lat+De.lat,fl.lng+De.lng])}function n1(l){for(var d=0,f=0,v=0,w=0;w<l.length;w++){var $=fe(l[w]);d+=$.lat,f+=$.lng,v++}return fe([d/v,f/v])}var SG={__proto__:null,clipPolygon:JT,polygonCenter:KT,centroid:n1};function XT(l,d){if(!d||!l.length)return l.slice();var f=d*d;return l=$G(l,f),l=TG(l,f),l}function YT(l,d,f){return Math.sqrt(Au(l,d,f,!0))}function IG(l,d,f){return Au(l,d,f)}function TG(l,d){var f=l.length,v=typeof Uint8Array<"u"?Uint8Array:Array,w=new v(f);w[0]=w[f-1]=1,o1(l,w,d,0,f-1);var $,D=[];for($=0;$<f;$++)w[$]&&D.push(l[$]);return D}function o1(l,d,f,v,w){var $=0,D,V,q;for(V=v+1;V<=w-1;V++)q=Au(l[V],l[v],l[w],!0),q>$&&(D=V,$=q);$>f&&(d[D]=1,o1(l,d,f,v,D),o1(l,d,f,D,w))}function $G(l,d){for(var f=[l[0]],v=1,w=0,$=l.length;v<$;v++)PG(l[v],l[w])>d&&(f.push(l[v]),w=v);return w<$-1&&f.push(l[$-1]),f}var QT;function e7(l,d,f,v,w){var $=v?QT:ss(l,f),D=ss(d,f),V,q,J;for(QT=D;;){if(!($|D))return[l,d];if($&D)return!1;
2V=$||D,q=cf(l,d,V,f,w),J=ss(q,f),V===$?(l=q,$=J):(d=q,D=J)}}function cf(l,d,f,v,w){var $=d.x-l.x,D=d.y-l.y,V=v.min,q=v.max,J,ke;return f&8?(J=l.x+$*(q.y-l.y)/D,ke=q.y):f&4?(J=l.x+$*(V.y-l.y)/D,ke=V.y):f&2?(J=q.x,ke=l.y+D*(q.x-l.x)/$):f&1&&(J=V.x,ke=l.y+D*(V.x-l.x)/$),new pe(J,ke,w)}function ss(l,d){var f=0;return l.x<d.min.x?f|=1:l.x>d.max.x&&(f|=2),l.y<d.min.y?f|=4:l.y>d.max.y&&(f|=8),f}function PG(l,d){var f=d.x-l.x,v=d.y-l.y;return f*f+v*v}function Au(l,d,f,v){var w=d.x,$=d.y,D=f.x-w,V=f.y-$,q=D*D+V*V,J;return q>0&&(J=((l.x-w)*D+(l.y-$)*V)/q,J>1?(w=f.x,$=f.y):J>0&&(w+=D*J,$+=V*J)),D=l.x-w,V=l.y-$,v?D*D+V*V:new pe(w,$)}function Dn(l){return!P(l[0])||typeof l[0][0]!="object"&&typeof l[0][0]<"u"}function t7(l){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Dn(l)}function r7(l,d){var f,v,w,$,D,V,q,J;if(!l||l.length===0)throw new Error("latlngs not passed");Dn(l)||(console.warn("latlngs are not flat! Only the first ring will be used"),l=l[0]);var ke=fe([0,0]),De=be(l),lt=De.getNorthWest().distanceTo(De.getSouthWest
2())*De.getNorthEast().distanceTo(De.getNorthWest());lt<1700&&(ke=n1(l));var jr=l.length,br=[];for(f=0;f<jr;f++){var On=fe(l[f]);br.push(d.project(fe([On.lat-ke.lat,On.lng-ke.lng])))}for(f=0,v=0;f<jr-1;f++)v+=br[f].distanceTo(br[f+1])/2;if(v===0)J=br[0];else for(f=0,$=0;f<jr-1;f++)if(D=br[f],V=br[f+1],w=D.distanceTo(V),$+=w,$>v){q=($-v)/w,J=[V.x-q*(V.x-D.x),V.y-q*(V.y-D.y)];break}var tn=d.unproject(me(J));return fe([tn.lat+ke.lat,tn.lng+ke.lng])}var CG={__proto__:null,simplify:XT,pointToSegmentDistance:YT,closestPointOnSegment:IG,clipSegment:e7,_getEdgeIntersection:cf,_getBitCode:ss,_sqClosestPointOnSegment:Au,isFlat:Dn,_flat:t7,polylineCenter:r7},i1={project:function(l){return new pe(l.lng,l.lat)},unproject:function(l){return new ve(l.y,l.x)},bounds:new ce([-180,-90],[180,90])},a1={R:6378137,R_MINOR:6356752314245179e-9,bounds:new ce([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(l){var d=Math.PI/180,f=this.R,v=l.lat*d,w=this.R_MINOR/f,$=Math.sqrt(1-w*w),D=$*Math.sin(v),V=Math.tan(Math.PI/4-v/2)/Math.pow((1-D)/(1+D),$/2);return v=-f*Math.log(Math.max(V,1e-10)),new pe(l.lng*d*f,v)},unproject:function(l){for(var d=180/Math.PI,f=this.R,v=this.R_MINOR/f,w=Math.sqrt(1-v*v),$=Math.exp(-l.y/f),D=Math.PI/2-2*Math.atan($),V=0,q=.1,J;V<15&&Math.abs(q)>1e-7;V++)J=w*Math.sin(D),J=Math.pow((1-J)/(1+J),w/2),q=Math.PI/2-2*Math.atan($*J)-D,D+=q;return new ve(D*d,l.x*d/f)}},EG={__proto__:null,LonLat:i1,Mercator:a1,SphericalMercator:Nt},zG=r({},wt,{code:"EPSG:3395",projection:a1,transformation:(function(){var l=.5/(Math.PI*a1.R);return Lr(l,.5,-l,.5)})()}),n7=r({},wt,{code:"EPSG:4326",projection:i1,transformation:Lr(1/180,1,-1/180,.5)}),AG=r({},at,{projection:i1,transformation:Lr(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 f=d.lng-l.lng,v=d.lat-l.lat;return Math.sqrt(f*f+v*v)},infinite:!0});at.Earth=wt,at.EPSG3395=zG,at.EPSG3857=_o,at.EPSG900913=Qm,at.EPSG4326=n7,at.Simple=AG;var ro=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[a(l)]=this,this},removeInteractiveTarget:function(l){return delete this._map._targets[a(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 f=this.getEvents();d.on(f,this),this.once("remove",function(){d.off(f,this)},this)}this.onAdd(d),this.fire("add"),d.fire("layeradd",{layer:this})}}});pt.include({addLayer:function(l){if(!l._layerAdd)throw new Error("The provided object is not a Layer.");var d=a(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=a(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 a(l)in this._layers},eachLayer:function(l,d){for(var f in this._layers)l.call(d,this._layers[f]);return this},_addLayers:function(l){l=l?P(l)?l:[l]:[];for(var d=0,f=l.length;d<f;d++)this.addLayer(l[d])},_addZoomLimit:function(l){(!isNaN(l.options.maxZoom)||!isNaN(l.options.minZoom))&&(this._zoomBoundLayers[a(l)]=l,this._updateZoomLevels())},_removeZoomLimit:function(l){var d=a(l);this._zoomBoundLayers[d]&&(delete this._zoomBoundLayers[d],this._updateZoomLevels())},_updateZoomLevels:function(){var l=1/0,d=-1/0,f=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,f!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZo
2om&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var cl=ro.extend({initialize:function(l,d){g(this,d),this._layers={};var f,v;if(l)for(f=0,v=l.length;f<v;f++)this.addLayer(l[f])},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),f,v;for(f in this._layers)v=this._layers[f],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 f in this._layers)l.call(d,this._layers[f]);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 a(l)}}),MG=function(l,d){return new cl(l,d)},ei=cl.extend({addLayer:function(l){return this.hasLayer(l)?this:(l.addEventParent(this),cl.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),cl.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 tt;for(var d in this._layers){var f=this._layers[d];l.extend(f.getBounds?f.getBounds():f.getLatLng())}return l}}),RG=function(l,d){return new ei(l,d)},ul=de.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 f=this._getIconUrl(l);if(!f){if(l==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var v=this._createImg(f,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 f=this.options,v=f[d+"Size"];typeof v=="number"&&(v=[v,v]);var w=me(v),$=me(d==="shadow"&&f.shadowAnchor||f.iconAnchor||w&&w.divideBy(2,!0));l.className="leaflet-marker-"+d+" "+(f.className||""),$&&(l.style.marginLeft=-$.x+"px",l.style.marginTop=-$.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 ze.retina&&this.options[l+"RetinaUrl"]||this.options[l+"Url"]}});function NG(l){return new ul(l)}var Mu=ul.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 Mu.imagePath!="string"&&(Mu.imagePath=this._detectIconPath()),(this.options.imagePath||Mu.imagePath)+ul.prototype._getIconUrl.call(this,l)},_stripUrl:function(l){var d=function(f,v,w){var $=v.exec(f);return $&&$[w]};return l=d(l,/^url\((['"])?(.+)\1\)$/,2),l&&d(l,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var l=ht("div","leaflet-default-icon-path",document.body),d=Tu(l,"background-image")||Tu(l,"backgroundImage");if(document.body.removeChild(l),d=this._stripUrl(d),d)return d;var f=document.querySelector('link[href$="leaflet.css"]');return f?f.href.substring(0,f.href.length-11-1):""}}),o7=Io.extend({initialize:function(l){this._marker=l},addHooks:function(){var l=this._marker._icon;this._draggable||(this._draggable=new Wi(l,l,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),rt(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&&er(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(l){var d=this._marker,f=d._map,v=this._marker.options.autoPanSpeed,w=this._marker.options.autoPanPadding,$=os(d._icon),D=f.getPixelBounds(),V=f.getPixelOrigin(),q=et(D.min._subtract(V).add(w),D.max._subtract(V).subtract(w));if(!q.contains($)){var J=me((Math.max(q.max.x,$.x)-q.max.x)/(D.max.x-q.max.x)-(Math.min(q.min.x,$.x)-q.min.x)/(D.min.x-q.min.x),(Math.max(q.max.y,$.y)-q.max.y)/(D.max.y-q.max.y)-(Math.min(q.min.y,$.y)-q.min.y)/(D.min.y-q.min.y)).multiplyBy(v);f.panBy(J,{animate:!1}),this._draggable._newPos._add(J),this._draggable._startPos._add(J),or(d._icon,this._draggable._newPos),this._onDrag(l),this._panRequest=F(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=F(this._adjustPan.bind(this,l)))},_onDrag:function(l){var d=this._marker,f=d._shadow,v=os(d._icon),w=d._map.layerPointToLatLng(v);f&&or(f,v),d._latlng=w,l.latlng=w,l.oldLatLng=this._oldLatLng,d.fire("move",l).fire("drag",l)}
vendor: 8,102 bytes, line 2
2,_onDragEnd:function(l){W(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",l)}}),uf=ro.extend({options:{icon:new Mu,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=fe(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=fe(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"),f=l.icon.createIcon(this._icon),v=!1;f!==this._icon&&(this._icon&&this._removeIcon(),v=!0,l.title&&(f.title=l.title),f.tagName==="IMG"&&(f.alt=l.alt||"")),rt(f,d),l.keyboard&&(f.tabIndex="0",f.setAttribute("role","button")),this._icon=f,l.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&He(f,"focus",this._panOnFocus,this);var w=l.icon.createShadow(this._shadow),$=!1;w!==this._shadow&&(this._removeShadow(),$=!0),w&&(rt(w,d),w.alt=""),this._shadow=w,l.opacity<1&&this._updateOpacity(),v&&this.getPane().appendChild(this._icon),this._initInteraction(),w&&$&&this.getPane(l.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Mt(this._icon,"focus",this._panOnFocus,this),Vt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Vt(this._shadow),this._shadow=null},_setPos:function(l){this._icon&&or(this._icon,l),this._shadow&&or(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&&(rt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),o7)){var l=this.options.draggable;this.dragging&&(l=this.dragging.enabled(),this.dragging.disable()),this.dragging=new o7(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&&Nn(this._icon,l),this._shadow&&Nn(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,f=d.iconSize?me(d.iconSize):me(0,0),v=d.iconAnchor?me(d.iconAnchor):me(0,0);l.panInside(this._latlng,{paddingTopLeft:v,paddingBottomRight:f.subtract(v)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function DG(l,d){return new uf(l,d)}var Ji=ro.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)}}),df=Ji.extend({options:{fill:!0,radius:10},initialize:function(l,d){g(this,d),this._latlng=fe(l),this._radius=this.options.radius},setLatLng:function(l){var d=this._latlng;return this._latlng=fe(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 Ji.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,f=this._clickTolerance(),v=[l+f,d+f];this._pxBounds=new ce(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 OG(l,d){return new df(l,d)}var s1=df.extend({initialize:function(l,d,f){if(typeof d=="number"&&(d=r({},f,{radius:d})),g(this,d),this._latlng=fe(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 tt(this._map.layerPointToLatLng(this._point.subtract(l)),this._map.layerPointToLatLng(this._point.add(l)))},setStyle:Ji.prototype.setStyle,_project:function(){var l=this._latlng.lng,d=this._latlng.lat,f=this._map,v=f.options.crs;if(v.distance===wt.distance){var w=Math.PI/180,$=this._mRadius/wt.R/w,D=f.project([d+$,l]),V=f.project([d-$,l]),q=D.add(V).divideBy(2),J=f.unproject(q).lat,ke=Math.acos((Math.cos($*w)-Math.sin(d*w)*Math.sin(J*w))/(Math.cos(d*w)*Math.cos(J*w)))/w;(isNaN(ke)||ke===0)&&(ke=$/Math.cos(Math.PI/180*d)),this._point=q.subtract(f.getPixelOrigin()),this._radius=isNaN(ke)?0:q.x-f.project([J,l-ke]).x,this._radiusY=q.y-D.y}else{var De=v.unproject(v.project(this._latlng).subtract([this._mRadius,0]));this._point=f.latLngToLayerPoint(this._latlng),this._radius=this._point.x-f.latLngToLayerPoint(De).x}this._updateBounds()}});function LG(l,d,f){return new s1(l,d,f)}var ti=Ji.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,f=null,v=Au,w,$,D=0,V=this._parts.length;D<V;D++)for(var q=this._parts[D],J=1,ke=q.length;J<ke;J++){w=q[J-1],$=q[J];var De=v(l,w,$,!0);De<d&&(d=De,f=v(l,w,$))}return f&&(f.distance=Math.sqrt(d)),f}
2,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return r7(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(l,d){return d=d||this._defaultShape(),l=fe(l),d.push(l),this._bounds.extend(l),this.redraw()},_setLatLngs:function(l){this._bounds=new tt,this._latlngs=this._convertLatLngs(l)},_defaultShape:function(){return Dn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(l){for(var d=[],f=Dn(l),v=0,w=l.length;v<w;v++)f?(d[v]=fe(l[v]),this._bounds.extend(d[v])):d[v]=this._convertLatLngs(l[v]);return d},_project:function(){var l=new ce;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 pe(l,l);this._rawPxBounds&&(this._pxBounds=new ce([this._rawPxBounds.min.subtract(d),this._rawPxBounds.max.add(d)]))},_projectLatlngs:function(l,d,f){var v=l[0]instanceof ve,w=l.length,$,D;if(v){for(D=[],$=0;$<w;$++)D[$]=this._map.latLngToLayerPoint(l[$]),f.extend(D[$]);d.push(D)}else for($=0;$<w;$++)this._projectLatlngs(l[$],d,f)},_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,f,v,w,$,D,V,q;for(f=0,w=0,$=this._rings.length;f<$;f++)for(q=this._rings[f],v=0,D=q.length;v<D-1;v++)V=e7(q[v],q[v+1],l,v,!0),V&&(d[w]=d[w]||[],d[w].push(V[0]),(V[1]!==q[v+1]||v===D-2)&&(d[w].push(V[1]),w++))}},_simplifyPoints:function(){for(var l=this._parts,d=this.options.smoothFactor,f=0,v=l.length;f<v;f++)l[f]=XT(l[f],d)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(l,d){var f,v,w,$,D,V,q=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for(f=0,$=this._parts.length;f<$;f++)for(V=this._parts[f],v=0,D=V.length,w=D-1;v<D;w=v++)if(!(!d&&v===0)&&YT(l,V[w],V[v])<=q)return!0;return!1}});function jG(l,d){return new ti(l,d)}ti._flat=t7;var dl=ti.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 KT(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(l){var d=ti.prototype._convertLatLngs.call(this,l),f=d.length;return f>=2&&d[0]instanceof ve&&d[0].equals(d[f-1])&&d.pop(),d},_setLatLngs:function(l){ti.prototype._setLatLngs.call(this,l),Dn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Dn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var l=this._renderer._bounds,d=this.options.weight,f=new pe(d,d);if(l=new ce(l.min.subtract(f),l.max.add(f)),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,$;v<w;v++)$=JT(this._rings[v],l,!0),$.length&&this._parts.push($)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(l){var d=!1,f,v,w,$,D,V,q,J;if(!this._pxBounds||!this._pxBounds.contains(l))return!1;for($=0,q=this._parts.length;$<q;$++)for(f=this._parts[$],D=0,J=f.length,V=J-1;D<J;V=D++)v=f[D],w=f[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||ti.prototype._containsPoint.call(this,l,!0)}});function UG(l,d){return new dl(l,d)}var ri=ei.extend({initialize:function(l,d){g(this,d),this._layers={},l&&this.addData(l)},addData:function(l){var d=P(l)?l:l.features,f,v,w;if(d){for(f=0,v=d.length;f<v;f++)w=d[f],(w.geometries||w.geometry||w.features||w.coordinates)&&this.addData(w);return this}var $=this.options;if($.filter&&!$.filter(l))return this;var D=pf(l,$);return D?(D.feature=hf(l),D.defaultOptions=D.options,this.resetStyle(D),$.onEachFeature&&$.onEachFeature(l,D),this.addLayer(D)):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 pf(l,d){var f=l.type==="Feature"?l.geometry:l,v=f?f.coordinates:null,w=[],$=d&&d.pointToLayer,D=d&&d.coordsToLatLng||l1,V,q,J,ke;if(!v&&!f)return null;switch(f.type){case"Point":return V=D(v),i7($,l,V,d);case"MultiPoint":for(J=0,ke=v.length;J<ke;J++)V=D(v[J]),w.push(i7($,l,V,d));return new ei(w);case"LineString":case"MultiLineString":return q=mf(v,f.type==="LineString"?0:1,D),new ti(q,d);case"Polygon":case"MultiPolygon":return q=mf(v,f.type==="Polygon"?1:2,D),new dl(q,d);case"GeometryCollection":for(J=0,ke=f.geometries.length;J<ke;J++){var De=pf({geometry:f.geometries[J],type:"Feature",properties:l.properties},d);De&&w.push(De)}return new ei(w);case"FeatureCollection":for(J=0,ke=f.features.length;J<ke;J++){var lt=pf(f.features[J],d);lt&&w.push(lt)}return new ei(w);default:throw new Error("Invalid GeoJSON object.")}}function i7(l,d,f,v){return l?l(d,f):new uf(f,v&&v.markersInheritOptions&&v)}function l1(l){return new ve(l[1],l[0],l[2])}function mf(l,d,f){for(var v=[],w=0,$=l.length,D;w<$;w++)D=d?mf(l[w],d-1,f):(f||l1)(l[w]),v.push(D);return v}function c1(l,d){return l=fe(l),l.alt!==void 0?[p(l.lng,d),p(l.lat,d),p(l.alt,d)]:[p(l.lng,d),p(l.lat,d)]}function ff(l,d,f,v){for(var w=[],$=0,D=l.length;$<D;$++)w.push(d?ff(l[$],Dn(l[$])?0:d-1,f,v):c1(l[$],v));return!d&&f&&w.length>0&&w.push(w[0].slice()),w}function pl(l,d){return l.feature?r({},l.feature,{geometry:d}):hf(d)}function hf(l){return l.type==="Feature"||l.type==="FeatureCollection"?l:{type:"Feature",properties:{},geometry:l}}var u1={toGeoJSON:function(l){return pl(this,{type:"Point",coordinates:c1(this.getLatLng(),l)})}};uf.include(u1),s1.include(u1),df.include(u1),ti.include({toGeoJSON:function(l){var d=!Dn(this._latlngs),f=ff(this._latlngs,d?1:0,!1,l);return pl(this,{type:(d?"Multi":"")+"LineString",coordinates:f})}}),dl.include({toGeoJSON:function(l){var d=!Dn(this._latlngs),f=d&&!Dn(this._latlngs[0]),v=ff(this._latlngs,f?2:d?1:0,!0,l);return d||(v=[v]),pl(this,{type:(f?"Multi":"")+"Polygon",coordinates:v})}}),cl.include({toMultiPoint:function(l){var d=[];return this.eachLayer(function(f){d.push(f.toGeoJSON(l).geometry.coordinates)}),pl(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 f=d==="GeometryCollection",v=[];return this.eachLayer(function(w){if(w.toGeoJSON){var $=w.toGeoJSON(l);if(f)v.push($.geometry);else{var D=hf($);D.type==="FeatureCollection"?v.push.apply(v,D.features):v.push(D)}}}),f?pl(this,{geometries:v,type:"GeometryCollection"}):{type:"FeatureCollection",features:v}}});function a7(l,d){return new ri(l,d)}var BG=a7,gf=ro.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(l,d,f){this._url=l,this._bounds=be(d),g(this,f)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(rt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Vt(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&&sl(this._image),this},bringToBack:function(){return this._map&&ll(this._image),this},setUrl:function(l){return this._url=l,this._image&&(this._image.src=l),this},setBounds:function(l){return this._bounds=be(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:ht("img");if(rt(d,"leaflet-image-layer"),this._zoomAnimated&&rt(d,"leaflet-zoom-animated"),this.options.className&&rt(d,this.options.className),d.onselectstart=u,d.onmousemove=u,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),f=this._map._latLngBoundsToNewLayerBounds(this._bounds,l.zoom,l.center).min;ns(this._image,f,d)},_reset:function(){var l=this._image,d=new ce(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),f=d.getSize();or(l,d.min),l.style.width=f.x+"px",l.style.height=f.y+"px"},_updateOpacity:function(){Nn(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()}}),FG=function(l,d,f){return new gf(l,d,f)},s7=gf.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:ht("video");if(rt(d,"leaflet-image-layer"),this._zoomAnimated&&rt(d,"leaflet-zoom-animated"),this.options.className&&rt(d,this.options.className),d.onselectstart=u,d.onmousemove=u,d.onloadeddata=n(this.fire,this,"load"),l){for(var f=d.getElementsByTagName("source"),v=[],w=0;w<f.length;w++)v.push(f[w].src);this._url=f.length>0?v:[d.src];return}P(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 $=0;$<this._url.length;$++){var D=ht("source");D.src=this._url[$],d.appendChild(D)}}});function ZG(l,d,f){return new s7(l,d,f)}var l7=gf.extend({_initImage:function(){var l=this._image=this._url;rt(l,"leaflet-image-layer"),this._zoomAnimated&&rt(l,"leaflet-zoom-animated"),this.options.className&&rt(l,this.options.className),l.onselectstart=u,l.onmousemove=u}});function VG(l,d,f){return new l7(l,d,f)}var To=ro.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(l,d){l&&(l instanceof ve||P(l))?(this._latlng=fe(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&&Nn(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),l._fadeAnimated&&Nn(this._container,1),this.bringToFront(),this.options.interactive&&(rt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(l){l._fadeAnimated?(Nn(this._container,0),this._removeTimeout=setTimeout(n(Vt,void 0,this._container),200)):Vt(this._container),this.options.interactive&&(er(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(l){return this._latlng=fe(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&&sl(this._container),this},bringToBack:function(){return this._map&&ll(this._container),this},_prepareOpen:function(l){var d=this._source;if(!d._map)return!1;if(d instanceof ei){d=null;var f=this._source._layers;for(var v in f)if(f[v]._map){d=f[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=me(this.options.offset),f=this._getAnchor();this._zoomAnimated?or(this._container,l.add(f)):d=d.add(l).add(f);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]}});pt.include({_initOverlay:function(l,d,f,v){var w=d;return w instanceof l||(w=new l(v).setContent(d)),f&&w.setLatLng(f),w}}),ro.include({_initOverlay:function(l,d,f,v){var w=f;return w instanceof l?(g(w,v),w._source=this):(w=d&&!v?d:new l(v,this),w.setContent(f)),w}});var vf=To.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,To.prototype.openOn.call(this,l)},onAdd:function(l){To.prototype.onAdd.call(this,l),l.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ji||this._source.on("preclick",is))},onRemove:function(l){To.prototype.onRemove.call(this,l),l.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ji||this._source.off("preclick",is))},getEvents:function(){var l=To.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=ht("div",l+" "+(this.options.className||"")+" leaflet-zoom-animated"),f=this._wrapper=ht("div",l+"-content-wrapper",d);if(this._contentNode=ht("div",l+"-content",f),Eu(d),Qb(this._contentNode),He(d,"contextmenu",is),this._tipContainer=ht("div",l+"-tip-container",d),this._tip=ht("div",l+"-tip",this._tipContainer),this.options.closeButton){var v=this._closeButton=ht("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>',He(v,"click",function(w){Ir(w),this.close()},this)}},_updateLayout:function(){var l=this._contentNode,d=l.style;d.width="",d.whiteSpace="nowrap";var f=l.offsetWidth;f=Math.min(f,this.options.maxWidth),f=Math.max(f,this.options.minWidth),d.width=f+1+"px",d.whiteSpace="",d.height="";var v=l.offsetHeight,w=this.options.maxHeight,$="leaflet-popup-scrolled";w&&v>w?(d.height=w+"px",rt(l,$)):er(l,$),this._containerWidth=this._container.offsetWidth},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center),f=this._getAnchor();or(this._container,d.add(f))},_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(Tu(this._container,"marginBottom"),10)||0,f=this._container.offsetHeight+d,v=this._containerWidth,w=new pe(this._containerLeft,-f-this._containerBottom);w._add(os(this._container));var $=l.layerPointToContainerPoint(w),D=me(this.options.autoPanPadding),V=me(this.options.autoPanPaddingTopLeft||D),q=me(this.options.autoPanPaddingBottomRight||D),J=l.getSize(),ke=0,De=0;$.x+v+q.x>J.x&&(ke=$.x+v-J.x+q.x),$.x-ke-V.x<0&&(ke=$.x-V.x),$.y+f+q.y>J.y&&(De=$.y+f-J.y+q.y),$.y-De-V.y<0&&(De=$.y-V.y),(ke||De)&&(this.options.keepInView&&(this._autopanning=!0),l.fire("autopanstart").panBy([ke,De]))}},_getAnchor:function(){return me(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),GG=function(l,d){return new vf(l,d)};pt.mergeOptions({closePopupOnClick:!0}),pt.include({openPopup:function(l,d,f){return this._initOverlay(vf,l,d,f).openOn(this),this},closePopup:function(l){return l=arguments.length?l:this._popup,l&&l.close(),this}}),ro.include({bindPopup:function(l,d){return this._popup=this._initOverlay(vf,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 ei||(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)){as(l);var d=l.layer||l.target;if(this._popup._source===d&&!(d instanceof Ji)){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 yf=To.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(l){To.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){To.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=To.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=ht("div",d),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(l){var d,f,v=this._map,w=this._container,$=v.latLngToContainerPoint(v.getCenter()),D=v.layerPointToContainerPoint(l),
2V=this.options.direction,q=w.offsetWidth,J=w.offsetHeight,ke=me(this.options.offset),De=this._getAnchor();V==="top"?(d=q/2,f=J):V==="bottom"?(d=q/2,f=0):V==="center"?(d=q/2,f=J/2):V==="right"?(d=0,f=J/2):V==="left"?(d=q,f=J/2):D.x<$.x?(V="right",d=0,f=J/2):(V="left",d=q+(ke.x+De.x)*2,f=J/2),l=l.subtract(me(d,f,!0)).add(ke).add(De),er(w,"leaflet-tooltip-right"),er(w,"leaflet-tooltip-left"),er(w,"leaflet-tooltip-top"),er(w,"leaflet-tooltip-bottom"),rt(w,"leaflet-tooltip-"+V),or(w,l)},_updatePosition:function(){var l=this._map.latLngToLayerPoint(this._latlng);this._setPosition(l)},setOpacity:function(l){this.options.opacity=l,this._container&&Nn(this._container,l)},_animateZoom:function(l){var d=this._map._latLngToNewLayerPoint(this._latlng,l.zoom,l.center);this._setPosition(d)},_getAnchor:function(){return me(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),qG=function(l,d){return new yf(l,d)};pt.include({openTooltip:function(l,d,f){return this._initOverlay(yf,l,d,f).openOn(this),this},closeTooltip:function(l){return l.close(),this}}),ro.include({bindTooltip:function(l,d){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(yf,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",f={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?f.add=this._openTooltip:(f.mouseover=this._openTooltip,f.mouseout=this.closeTooltip,f.click=this._openTooltip,this._map?this._addFocusListeners():f.add=this._addFocusListeners),this._tooltip.options.sticky&&(f.mousemove=this._moveTooltip),this[d](f),this._tooltipHandlersAdded=!l}},openTooltip:function(l){return this._tooltip&&(this instanceof ei||(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&&(He(d,"focus",function(){this._tooltip._source=l,this.openTooltip()},this),He(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,f,v;this._tooltip.options.sticky&&l.originalEvent&&(f=this._map.mouseEventToContainerPoint(l.originalEvent),v=this._map.containerPointToLayerPoint(f),d=this._map.layerPointToLatLng(v)),this._tooltip.setLatLng(d)}});var c7=ul.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"),f=this.options;if(f.html instanceof Element?(nf(d),d.appendChild(f.html)):d.innerHTML=f.html!==!1?f.html:"",f.bgPos){var v=me(f.bgPos);d.style.backgroundPosition=-v.x+"px "+-v.y+"px"}return this._setIconStyles(d,"icon"),d},createShadow:function(){return null}});function HG(l){return new c7(l)}ul.Default=Mu;var Ru=ro.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ze.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(),Vt(this._container),l._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(sl(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ll(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 pe?l:new pe(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,f=-l(-1/0,1/0),v=0,w=d.length,$;v<w;v++)$=d[v].style.zIndex,d[v]!==this._container&&$&&(f=l(f,+$));
2isFinite(f)&&(this.options.zIndex=f+l(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ze.ielt9){Nn(this._container,this.options.opacity);var l=+new Date,d=!1,f=!1;for(var v in this._tiles){var w=this._tiles[v];if(!(!w.current||!w.loaded)){var $=Math.min(1,(l-w.loaded)/200);Nn(w.el,$),$<1?d=!0:(w.active?f=!0:this._onOpaqueTile(w),w.active=!0)}}f&&!this._noPrune&&this._pruneTiles(),d&&(W(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this))}},_onOpaqueTile:u,_initContainer:function(){this._container||(this._container=ht("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 f in this._levels)f=Number(f),this._levels[f].el.children.length||f===l?(this._levels[f].el.style.zIndex=d-Math.abs(l-f),this._onUpdateLevel(f)):(Vt(this._levels[f].el),this._removeTilesAtZoom(f),this._onRemoveLevel(f),delete this._levels[f]);var v=this._levels[l],w=this._map;return v||(v=this._levels[l]={},v.el=ht("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()),u(v.el.offsetWidth),this._onCreateLevel(v)),this._level=v,v}},_onUpdateLevel:u,_onRemoveLevel:u,_onCreateLevel:u,_pruneTiles:function(){if(this._map){var l,d,f=this._map.getZoom();if(f>this.options.maxZoom||f<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)Vt(this._levels[l].el),this._onRemoveLevel(Number(l)),delete this._levels[l];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(l,d,f,v){var w=Math.floor(l/2),$=Math.floor(d/2),D=f-1,V=new pe(+w,+$);V.z=+D;var q=this._tileCoordsToKey(V),J=this._tiles[q];return J&&J.active?(J.retain=!0,!0):(J&&J.loaded&&(J.retain=!0),D>v?this._retainParent(w,$,D,v):!1)},_retainChildren:function(l,d,f,v){for(var w=2*l;w<2*l+2;w++)for(var $=2*d;$<2*d+2;$++){var D=new pe(w,$);D.z=f+1;var V=this._tileCoordsToKey(D),q=this._tiles[V];if(q&&q.active){q.retain=!0;continue}else q&&q.loaded&&(q.retain=!0);f+1<v&&this._retainChildren(w,$,f+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,f,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 $=this.options.updateWhenZooming&&w!==this._tileZoom;(!v||$)&&(this._tileZoom=w,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),w!==void 0&&this._update(l),f||this._pruneTiles(),this._noPrune=!!f),this._setZoomTransforms(l,d)},_setZoomTransforms:function(l,d){for(var f in this._levels)this._setZoomTransform(this._levels[f],l,d)},_setZoomTransform:function(l,d,f){var v=this._map.getZoomScale(f,l.zoom),w=l.origin.multiplyBy(v).subtract(this._map._getNewPixelOrigin(d,f)).round();ze.any3d?ns(l.el,w,v):or(l.el,w)},_resetGrid:function(){var l=this._map,d=l.options.crs,f=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/f.x),Math.ceil(l.project([0,d.wrapLng[1]],v).x/f.y)],this._wrapY=d.wrapLat&&!this.options.noWrap&&[Math.floor(l.project([d.wrapLat[0],0],v).y/f.x),Math.ceil(l.project([d.wrapLat[1],0],v).y/f.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(l){var d=this._map,f=d._animatingZoom?Math.max(d._animateToZoom,d.getZoom()):d.getZoom(),v=d.getZoomScale(f,this._tileZoom),w=d.project(l,this._tileZoom).floor(),$=d.getSize().divideBy(v*2);return new ce(w.subtract($),w.add($))},_update:function(l){var d=this._map;if(d){var f=this._clampZoom(d.getZoom());if(l===void 0&&(l=d.getCenter()),this._tileZoom!==void 0){var v=this._getTiledPixelBounds(l),w=this._pxBoundsToTileRange(v),$=w.getCenter(),D=[],V=this.options.keepBuffer,q=new ce(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 J in this._tiles){var ke=this._tiles[J].coords;(ke.z!==this._tileZoom||!q.contains(new pe(ke.x,ke.y)))&&(this._tiles[J].current=!1)}if(Math.abs(f-this._tileZoom)>
vendor: 8,073 bytes, line 2
21){this._setView(l,f);return}for(var De=w.min.y;De<=w.max.y;De++)for(var lt=w.min.x;lt<=w.max.x;lt++){var jr=new pe(lt,De);if(jr.z=this._tileZoom,!!this._isValidTile(jr)){var br=this._tiles[this._tileCoordsToKey(jr)];br?br.current=!0:D.push(jr)}}if(D.sort(function(tn,fl){return tn.distanceTo($)-fl.distanceTo($)}),D.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var On=document.createDocumentFragment();for(lt=0;lt<D.length;lt++)this._addTile(D[lt],On);this._level.el.appendChild(On)}}}},_isValidTile:function(l){var d=this._map.options.crs;if(!d.infinite){var f=this._globalTileRange;if(!d.wrapLng&&(l.x<f.min.x||l.x>f.max.x)||!d.wrapLat&&(l.y<f.min.y||l.y>f.max.y))return!1}if(!this.options.bounds)return!0;var v=this._tileCoordsToBounds(l);return be(this.options.bounds).overlaps(v)},_keyToBounds:function(l){return this._tileCoordsToBounds(this._keyToTileCoords(l))},_tileCoordsToNwSe:function(l){var d=this._map,f=this.getTileSize(),v=l.scaleBy(f),w=v.add(f),$=d.unproject(v,l.z),D=d.unproject(w,l.z);return[$,D]},_tileCoordsToBounds:function(l){var d=this._tileCoordsToNwSe(l),f=new tt(d[0],d[1]);return this.options.noWrap||(f=this._map.wrapLatLngBounds(f)),f},_tileCoordsToKey:function(l){return l.x+":"+l.y+":"+l.z},_keyToTileCoords:function(l){var d=l.split(":"),f=new pe(+d[0],+d[1]);return f.z=+d[2],f},_removeTile:function(l){var d=this._tiles[l];d&&(Vt(d.el),delete this._tiles[l],this.fire("tileunload",{tile:d.el,coords:this._keyToTileCoords(l)}))},_initTile:function(l){rt(l,"leaflet-tile");var d=this.getTileSize();l.style.width=d.x+"px",l.style.height=d.y+"px",l.onselectstart=u,l.onmousemove=u,ze.ielt9&&this.options.opacity<1&&Nn(l,this.options.opacity)},_addTile:function(l,d){var f=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&&F(n(this._tileReady,this,l,null,w)),or(w,f),this._tiles[v]={el:w,coords:l,current:!0},d.appendChild(w),this.fire("tileloadstart",{tile:w,coords:l})},_tileReady:function(l,d,f){d&&this.fire("tileerror",{error:d,tile:f,coords:l});var v=this._tileCoordsToKey(l);f=this._tiles[v],f&&(f.loaded=+new Date,this._map._fadeAnimated?(Nn(f.el,0),W(this._fadeFrame),this._fadeFrame=F(this._updateOpacity,this)):(f.active=!0,this._pruneTiles()),d||(rt(f.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:f.el,coords:l})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ze.ielt9||!this._map._fadeAnimated?F(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 pe(this._wrapX?c(l.x,this._wrapX):l.x,this._wrapY?c(l.y,this._wrapY):l.y);return d.z=l.z,d},_pxBoundsToTileRange:function(l){var d=this.getTileSize();return new ce(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 WG(l){return new Ru(l)}var ml=Ru.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&&ze.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 f=document.createElement("img");return He(f,"load",n(this._tileOnLoad,this,d,f)),He(f,"error",n(this._tileOnError,this,d,f)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(f.referrerPolicy=this.options.referrerPolicy),f.alt="",f.src=this.getTileUrl(l),f},getTileUrl:function(l){var d={r:ze.retina?"@2x":"",s:this._getSubdomain(l),x:l.x,y:l.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var f=this._globalTileRange.max.y-l.y;this.options.tms&&(d.y=f),d["-y"]=f}return I(this._url,r(d,this.options))},_tileOnLoad:function(l,d){ze.ielt9?setTimeout(n(l,this,null,d),0):l(null,d)},_tileOnError:function(l,d,f){var v=this.options.errorTileUrl;v&&d.getAttribute("src")!==v&&(d.src=v),l(f,d)},_onTileRemove:function(l){l.tile.onload=null},_getZoomForUrl:function(){var l=this._tileZoom,d=this.options.maxZoom,f=this.options.zoomReverse,v=this.options.zoomOffset;return f&&(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=u,d.onerror=u,!d.complete)){d.src=k;var f=this._tiles[l].coords;Vt(d),delete this._tiles[l],this.fire("tileabort",{tile:d,coords:f})}},_removeTile:function(l){var d=this._tiles[l];if(d)return d.el.setAttribute("src",k),Ru.prototype._removeTile.call(this,l)},_tileReady:function(l,d,f){if(!(!this._map||f&&f.getAttribute("src")===k))return Ru.prototype._tileReady.call(this,l,d,f)}});function u7(l,d){return new ml(l,d)}var d7=ml.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 f=r({},this.defaultWmsParams);for(var v in d)v in this.options||(f[v]=d[v]);d=g(this,d);var w=d.detectRetina&&ze.retina?2:1,$=this.getTileSize();f.width=$.x*w,f.height=$.y*w,this.wmsParams=f},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,ml.prototype.onAdd.call(this,l)},getTileUrl:function(l){var d=this._tileCoordsToNwSe(l),f=this._crs,v=et(f.project(d[0]),f.project(d[1])),w=v.min,$=v.max,D=(this._wmsVersion>=1.3&&this._crs===n7?[w.y,w.x,$.y,$.x]:[w.x,w.y,$.x,$.y]).join(","),V=ml.prototype.getTileUrl.call(this,l);return V+b(this.wmsParams,V,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+D},setParams:function(l,d){return r(this.wmsParams,l),d||this.redraw(),this}});function JG(l,d){return new d7(l,d)}ml.WMS=d7,u7.wms=JG;var ni=ro.extend({options:{padding:.1},initialize:function(l){g(this,l),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),rt(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 f=this._map.getZoomScale(d,this._zoom),v=this._map.getSize().multiplyBy(.5+this.options.padding),w=this._map.project(this._center,d),$=v.multiplyBy(-f).add(w).subtract(this._map._getNewPixelOrigin(l,d));ze.any3d?ns(this._container,$,f):or(this._container,$)},_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(),f=this._map.containerPointToLayerPoint(d.multiplyBy(-l)).round();
2this._bounds=new ce(f,f.add(d.multiplyBy(1+l*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),p7=ni.extend({options:{tolerance:0},getEvents:function(){var l=ni.prototype.getEvents.call(this);return l.viewprereset=this._onViewPreReset,l},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ni.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var l=this._container=document.createElement("canvas");He(l,"mousemove",this._onMouseMove,this),He(l,"click dblclick mousedown mouseup contextmenu",this._onClick,this),He(l,"mouseout",this._handleMouseOut,this),l._leaflet_disable_events=!0,this._ctx=l.getContext("2d")},_destroyContainer:function(){W(this._redrawRequest),delete this._ctx,Vt(this._container),Mt(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)){ni.prototype._update.call(this);var l=this._bounds,d=this._container,f=l.getSize(),v=ze.retina?2:1;or(d,l.min),d.width=v*f.x,d.height=v*f.y,d.style.width=f.x+"px",d.style.height=f.y+"px",ze.retina&&this._ctx.scale(2,2),this._ctx.translate(-l.min.x,-l.min.y),this.fire("update")}},_reset:function(){ni.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(l){this._updateDashArray(l),this._layers[a(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,f=d.next,v=d.prev;f?f.prev=v:this._drawLast=v,v?v.next=f:this._drawFirst=f,delete l._order,delete this._layers[a(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(/[, ]+/),f=[],v,w;for(w=0;w<d.length;w++){if(v=Number(d[w]),isNaN(v))return;f.push(v)}l.options._dashArray=f}else l.options._dashArray=l.options.dashArray},_requestRedraw:function(l){this._map&&(this._extendRedrawBounds(l),this._redrawRequest=this._redrawRequest||F(this._redraw,this))},_extendRedrawBounds:function(l){if(l._pxBounds){var d=(l.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new ce,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 f=d.getSize();this._ctx.beginPath(),this._ctx.rect(d.min.x,d.min.y,f.x,f.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 f,v,w,$,D=l._parts,V=D.length,q=this._ctx;if(V){for(q.beginPath(),f=0;f<V;f++){for(v=0,w=D[f].length;v<w;v++)$=D[f][v],q[v?"lineTo":"moveTo"]($.x,$.y);d&&q.closePath()}this._fillStroke(q,l)}}},_updateCircle:function(l){if(!(!this._drawing||l._empty())){var d=l._point,f=this._ctx,v=Math.max(Math.round(l._radius),1),w=(Math.max(Math.round(l._radiusY),1)||v)/v;w!==1&&(f.save(),f.scale(1,w)),f.beginPath(),f.arc(d.x,d.y/w,v,0,Math.PI*2,!1),w!==1&&f.restore(),this._fillStroke(f,l)}},_fillStroke:function(l,d){var f=d.options;f.fill&&(l.globalAlpha=f.fillOpacity,l.fillStyle=f.fillColor||f.color,l.fill(f.fillRule||"evenodd")),f.stroke&&f.weight!==0&&(l.setLineDash&&l.setLineDash(d.options&&d.options._dashArray||[]),l.globalAlpha=f.opacity,l.lineWidth=f.weight,l.strokeStyle=f.color,l.lineCap=f.lineCap,l.lineJoin=f.lineJoin,l.stroke())},_onClick:function(l){for(var d=this._map.mouseEventToLayerPoint(l),f,v,w=this._drawFirst;w;
2w=w.next)f=w.layer,f.options.interactive&&f._containsPoint(d)&&(!(l.type==="click"||l.type==="preclick")||!this._map._draggableMoved(f))&&(v=f);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&&(er(this._container,"leaflet-interactive"),this._fireEvent([d],l,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(l,d){if(!this._mouseHoverThrottled){for(var f,v,w=this._drawFirst;w;w=w.next)f=w.layer,f.options.interactive&&f._containsPoint(d)&&(v=f);v!==this._hoveredLayer&&(this._handleMouseOut(l),v&&(rt(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,f){this._map._fireDOMEvent(d,f||d.type,l)},_bringToFront:function(l){var d=l._order;if(d){var f=d.next,v=d.prev;if(f)f.prev=v;else return;v?v.next=f:f&&(this._drawFirst=f),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 f=d.next,v=d.prev;if(v)v.next=f;else return;f?f.prev=v:v&&(this._drawLast=v),d.prev=null,d.next=this._drawFirst,this._drawFirst.prev=d,this._drawFirst=d,this._requestRedraw(l)}}});function m7(l){return ze.canvas?new p7(l):null}var Nu=(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">')}})(),KG={_initContainer:function(){this._container=ht("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ni.prototype._update.call(this),this.fire("update"))},_initPath:function(l){var d=l._container=Nu("shape");rt(d,"leaflet-vml-shape "+(this.options.className||"")),d.coordsize="1 1",l._path=Nu("path"),d.appendChild(l._path),this._updateStyle(l),this._layers[a(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;Vt(d),l.removeInteractiveTarget(d),delete this._layers[a(l)]},_updateStyle:function(l){var d=l._stroke,f=l._fill,v=l.options,w=l._container;w.stroked=!!v.stroke,w.filled=!!v.fill,v.stroke?(d||(d=l._stroke=Nu("stroke")),w.appendChild(d),d.weight=v.weight+"px",d.color=v.color,d.opacity=v.opacity,v.dashArray?d.dashStyle=P(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?(f||(f=l._fill=Nu("fill")),w.appendChild(f),f.color=v.fillColor||v.color,f.opacity=v.fillOpacity):f&&(w.removeChild(f),l._fill=null)},_updateCircle:function(l){var d=l._point.round(),f=Math.round(l._radius),v=Math.round(l._radiusY||f);this._setPath(l,l._empty()?"M0 0":"AL "+d.x+","+d.y+" "+f+","+v+" 0,"+65535*360)},_setPath:function(l,d){l._path.v=d},_bringToFront:function(l){sl(l._container)},_bringToBack:function(l){ll(l._container)}},bf=ze.vml?Nu:Ya,Du=ni.extend({_initContainer:function(){this._container=bf("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=bf("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Vt(this._container),Mt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ni.prototype._update.call(this);var l=this._bounds,d=l.getSize(),f=this._container;(!this._svgSize||!this._svgSize.equals(d))&&(this._svgSize=d,f.setAttribute("width",d.x),f.setAttribute("height",d.y)),or(f,l.min),f.setAttribute("viewBox",[l.min.x,l.min.y,d.x,d.y].join(" ")),this.fire("update")}},_initPath:function(l){var d=l._path=bf("path");l.options.className&&rt(d,l.options.className),l.options.interactive&&rt(d,"leaflet-interactive"),this._updateStyle(l),this._layers[a(l)]=l},_addPath:function(l){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(l._path),l.addInteractiveTarget(l._path)},_removePath:function(l){Vt(l._path),l.removeInteractiveTarget(l._path),delete this._layers[a(l)]},_updatePath:function(l){l._project(),l._update()},_updateStyle:function(l){var d=l._path,f=l.options;d&&(f.stroke?(d.setAttribute("stroke",f.color),d.setAttribute("stroke-opacity",f.opacity),d.setAttribute("stroke-width",f.weight),d.setAttribute("stroke-linecap",f.lineCap),d.setAttribute("stroke-linejoin",f.lineJoin),f.dashArray?d.setAttribute("stroke-dasharray",f.dashArray):d.removeAttribute("stroke-dasharray"),f.dashOffset?d.setAttribute("stroke-dashoffset",f.dashOffset):d.removeAttribute("stroke-dashoffset")):d.setAttribute("stroke","none"),f.fill?(d.setAttribute("fill",f.fillColor||f.color),d.setAttribute("fill-opacity",f.fillOpacity),d.setAttribute("fill-rule",f.fillRule||"evenodd")):d.setAttribute("fill","none"))},_updatePoly:function(l,d){this._setPath(l,Qa(l._parts,d))},_updateCircle:function(l){var d=l._point,f=Math.max(Math.round(l._radius),1),v=Math.max(Math.round(l._radiusY),1)||f,w="a"+f+","+v+" 0 1,0 ",$=l._empty()?"M0 0":"M"+(d.x-f)+","+d.y+w+f*2+",0 "+w+-f*2+",0 ";this._setPath(l,$)},_setPath:function(l,d){l._path.setAttribute("d",d)},_bringToFront:function(l){sl(l._path)},_bringToBack:function(l){ll(l._path)}});ze.vml&&Du.include(KG);function f7(l){return ze.svg||ze.vml?new Du(l):null}pt.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&&m7(l)||f7(l)}});var h7=dl.extend({initialize:function(l,d){dl.prototype.initialize.call(this,this._boundsToLatLngs(l),d)},setBounds:function(l){return this.setLatLngs(this._boundsToLatLngs(l))}
2,_boundsToLatLngs:function(l){return l=be(l),[l.getSouthWest(),l.getNorthWest(),l.getNorthEast(),l.getSouthEast()]}});function XG(l,d){return new h7(l,d)}Du.create=bf,Du.pointsToPath=Qa,ri.geometryToLayer=pf,ri.coordsToLatLng=l1,ri.coordsToLatLngs=mf,ri.latLngToCoords=c1,ri.latLngsToCoords=ff,ri.getFeature=pl,ri.asFeature=hf,pt.mergeOptions({boxZoom:!0});var g7=Io.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(){He(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Mt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Vt(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(),$u(),Gb(),this._startPoint=this._map.mouseEventToContainerPoint(l),He(document,{contextmenu:as,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(l){this._moved||(this._moved=!0,this._box=ht("div","leaflet-zoom-box",this._container),rt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(l);var d=new ce(this._point,this._startPoint),f=d.getSize();or(this._box,d.min),this._box.style.width=f.x+"px",this._box.style.height=f.y+"px"},_finish:function(){this._moved&&(Vt(this._box),er(this._container,"leaflet-crosshair")),Pu(),qb(),Mt(document,{contextmenu:as,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 tt(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())}});pt.addInitHook("addHandler","boxZoom",g7),pt.mergeOptions({doubleClickZoom:!0});var v7=Io.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,f=d.getZoom(),v=d.options.zoomDelta,w=l.originalEvent.shiftKey?f-v:f+v;d.options.doubleClickZoom==="center"?d.setZoom(w):d.setZoomAround(l.containerPoint,w)}});pt.addInitHook("addHandler","doubleClickZoom",v7),pt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var y7=Io.extend({addHooks:function(){if(!this._draggable){var l=this._map;this._draggable=new Wi(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))}rt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){er(this._map._container,"leaflet-grab"),er(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=be(this._map.options.maxBounds);this._offsetLimit=et(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,f=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(f),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),f=this._initialWorldOffset,v=this._draggable._newPos.x,w=(v-d+f)%l+d-f,$=(v+d+f)%l-d-f,D=Math.abs(w+f)<Math.abs($+f)?w:$;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=D},_onDragEnd:function(l){var d=this._map,f=d.options,v=!f.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]),$=(this._lastTime-this._times[0])/1e3,D=f.easeLinearity,V=w.multiplyBy(D/$),q=V.distanceTo([0,0]),J=Math.min(f.inertiaMaxSpeed,q),ke=V.multiplyBy(J/q),De=J/(f.inertiaDeceleration*D),lt=ke.multiplyBy(-De/2).round();!lt.x&&!lt.y?d.fire("moveend"):(lt=d._limitOffset(lt,d.options.maxBounds),F(function(){d.panBy(lt,{duration:De,easeLinearity:D,noMoveStart:!0,animate:!0})}))}}});pt.addInitHook("addHandler","dragging",y7),pt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var b7=Io.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"),He(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(),Mt(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,f=l.scrollTop||d.scrollTop,v=l.scrollLeft||d.scrollLeft;this._map._container.focus(),window.scrollTo(v,f)}},_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={},f=this.keyCodes,v,w;for(v=0,w=f.left.length;v<w;v++)d[f.left[v]]=[-1*l,0];for(v=0,w=f.right.length;v<w;v++)d[f.right[v]]=[l,0];for(v=0,w=f.down.length;v<w;v++)d[f.down[v]]=[0,l];for(v=0,w=f.up.length;v<w;v++)d[f.up[v]]=[0,-1*l]},_setZoomDelta:function(l){var d=this._zoomKeys={},f=this.keyCodes,v,w;for(v=0,w=f.zoomIn.length;v<w;v++)d[f.zoomIn[v]]=l;for(v=0,w=f.zoomOut.length;v<w;v++)d[f.zoomOut[v]]=-l},_addHooks:function(){He(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Mt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(l){if(!(l.altKey||l.ctrlKey||l.metaKey)){var d=l.keyCode,f=this._map,v;if(d in this._panKeys){if(!f._panAnim||!f._panAnim._inProgress)if(v=this._panKeys[d],l.shiftKey&&(v=me(v).multiplyBy(3)),f.options.maxBounds&&(v=f._limitOffset(me(v),f.options.maxBounds)),f.options.worldCopyJump){var w=f.wrapLatLng(f.unproject(f.project(f.getCenter()).add(v)));f.panTo(w)}else f.panBy(v)}else if(d in this._zoomKeys)f.setZoom(f.getZoom()+(l.shiftKey?3:1)*this._zoomKeys[d]);else if(d===27&&f._popup&&f._popup.options.closeOnEscapeKey)f.closePopup();else return;as(l)}}});pt.addInitHook("addHandler","keyboard",b7),pt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var x7=Io.extend({addHooks:function(){He(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Mt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(l){var d=VT(l),f=this._map.options.wheelDebounceTime;this._delta+=d,this._lastMousePos=this._map.mouseEventToContainerPoint(l),this._startTime||(this._startTime=+new Date);var v=Math.max(f-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(n(this._performZoom,this),v),as(l)},_performZoom:function(){var l=this._map,d=l.getZoom(),f=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,$=f?Math.ceil(w/f)*f:w,D=l._limitZoom(d+(this._delta>0?$:-$))-d;this._delta=0,this._startTime=null,D&&(l.options.scrollWheelZoom==="center"?l.setZoom(d+D):l.setZoomAround(this._lastMousePos,d+D))}});pt.addInitHook("addHandler","scrollWheelZoom",x7);var YG=600;pt.mergeOptions({tapHold:ze.touchNative&&ze.safari&&ze.mobile,tapTolerance:15});var w7=Io.extend({addHooks:function(){He(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Mt(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 pe(d.clientX,d.clientY),this._holdTimeout=setTimeout(n(function(){this._cancel(),this._isTapValid()&&(He(document,"touchend",Ir),He(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",d))},this),YG),He(document,"touchend touchcancel contextmenu",this._cancel,this),He(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function l(){Mt(document,"touchend",Ir),Mt(document,"touchend touchcancel",l)},_cancel:function(){clearTimeout(this._holdTimeout),Mt(document,"touchend touchcancel contextmenu",this._cancel,this),Mt(document,"touchmove",this._onMove,this)},_onMove:function(l){var d=l.touches[0];this._newPos=new pe(d.clientX,d.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(l,d){var f=new MouseEvent(l,{bubbles:!0,cancelable:!0,view:window,screenX:d.screenX,screenY:d.screenY,clientX:d.clientX,clientY:d.clientY});f._simulated=!0,d.target.dispatchEvent(f)}});pt.addInitHook("addHandler","tapHold",w7),pt.mergeOptions({touchZoom:ze.touch,bounceAtZoomLimits:!0});var _7=Io.extend({addHooks:function(){rt(this._map._container,"leaflet-touch-zoom"),He(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){er(this._map._container,"leaflet-touch-zoom"),Mt(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 f=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(f.add(v)._divideBy(2))),this._startDist=f.distanceTo(v),this._startZoom=d.getZoom(),this._moved=!1,this._zooming=!0,d._stop(),He(document,"touchmove",this._onTouchMove,this),He(document,"touchend touchcancel",this._onTouchEnd,this),Ir(l)}},_onTouchMove:function(l){if(!(!l.touches||l.touches.length!==2||!this._zooming)){var d=this._map,f=d.mouseEventToContainerPoint(l.touches[0]),v=d.mouseEventToContainerPoint(l.touches[1]),w=f.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 $=f._add(v)._divideBy(2)._subtract(this._centerPoint);if(w===1&&$.x===0&&$.y===0)return;this._center=d.unproject(d.project(this._pinchStartLatLng,this._zoom).subtract($),this._zoom)}this._moved||(d._moveStart(!0,!1),this._moved=!0),W(this._animRequest);var D=n(d._move,d,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=F(D,this,!0),Ir(l)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,W(this._animRequest),Mt(document,"touchmove",this._onTouchMove,this),Mt(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))}});
2pt.addInitHook("addHandler","touchZoom",_7),pt.BoxZoom=g7,pt.DoubleClickZoom=v7,pt.Drag=y7,pt.Keyboard=b7,pt.ScrollWheelZoom=x7,pt.TapHold=w7,pt.TouchZoom=_7,e.Bounds=ce,e.Browser=ze,e.CRS=at,e.Canvas=p7,e.Circle=s1,e.CircleMarker=df,e.Class=de,e.Control=to,e.DivIcon=c7,e.DivOverlay=To,e.DomEvent=gG,e.DomUtil=fG,e.Draggable=Wi,e.Evented=Fe,e.FeatureGroup=ei,e.GeoJSON=ri,e.GridLayer=Ru,e.Handler=Io,e.Icon=ul,e.ImageOverlay=gf,e.LatLng=ve,e.LatLngBounds=tt,e.Layer=ro,e.LayerGroup=cl,e.LineUtil=CG,e.Map=pt,e.Marker=uf,e.Mixin=kG,e.Path=Ji,e.Point=pe,e.PolyUtil=SG,e.Polygon=dl,e.Polyline=ti,e.Popup=vf,e.PosAnimation=GT,e.Projection=EG,e.Rectangle=h7,e.Renderer=ni,e.SVG=Du,e.SVGOverlay=l7,e.TileLayer=ml,e.Tooltip=yf,e.Transformation=Sr,e.Util=ue,e.VideoOverlay=s7,e.bind=n,e.bounds=et,e.canvas=m7,e.circle=LG,e.circleMarker=OG,e.control=zu,e.divIcon=HG,e.extend=r,e.featureGroup=RG,e.geoJSON=a7,e.geoJson=BG,e.gridLayer=WG,e.icon=NG,e.imageOverlay=FG,e.latLng=fe,e.latLngBounds=be,e.layerGroup=MG,e.map=vG,e.marker=DG,e.point=me,e.polygon=UG,e.polyline=jG,e.popup=GG,e.rectangle=XG,e.setOptions=g,e.stamp=a,e.svg=f7,e.svgOverlay=VG,e.tileLayer=u7,e.tooltip=qG,e.transformation=Lr,e.version=t,e.videoOverlay=ZG;var QG=window.L;e.noConflict=function(){return window.L=QG,this},window.L=e}))});var R$=p1(S1=>{"use strict";var M$=lq();S1.createRoot=M$.createRoot,S1.hydrateRoot=M$.hydrateRoot;var Wme});var PV=p1((Pje,$V)=>{"use strict";function Xpe(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let r,o=0;return function(...i){clearTimeout(r);let a=Date.now(),s=a-o,c=t-s;c<=0?(o=a,e.apply(this,i)):r=setTimeout(()=>{o=Date.now(),e.apply(this,i)},c)}}$V.exports=Xpe});var w1=Z(w$());var _$="/assets/marker-icon-2V3QKKVC.png";var k$="/assets/marker-icon-2x-SP63CLEO.png";var S$="/assets/marker-shadow-MEXDWUU7.png";delete w1.Icon.Default.prototype._getIconUrl;w1.Icon.Default.mergeOptions({iconRetinaUrl:k$,iconUrl:_$,shadowUrl:S$});var $$=Z(xe());var Uu=null;function I$(e){Uu=e}function T$(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 pq(){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(i,a){let s=typeof i=="string"?i:i instanceof URL?i.href:i.url;if(Uu!=null&&T$(s)){let c=new Headers(a?.headers??(i instanceof Request?i.headers:void 0));return c.has("Authorization")||c.set("Authorization",`Bearer ${Uu}`),t(i,{...a,headers:c})}return t(i,a)};let r=window.XMLHttpRequest.prototype.open,o=window.XMLHttpRequest.prototype.send;window.XMLHttpRequest.prototype.open=function(i,a,s,c,u){return this.__taskadeGatewayUrl=typeof a=="string"?a:a.href,r.call(this,i,a,s??!0,c,u)},window.XMLHttpRequest.prototype.send=function(i){let a=this.__taskadeGatewayUrl;if(Uu!=null&&a!=null&&T$(a))try{this.setRequestHeader("Authorization",`Bearer ${Uu}`)}catch{}return o.call(this,i)}}pq();function P$(){let t=wf().user?.id_token??null;return $$.useEffect(()=>(I$(t),()=>I$(null)),[t]),null}var St=Z(xe(),1),mq=(e,t,r,o,n,i,a,s)=>{let c=document.documentElement,u=["light","dark"];function p(g){(Array.isArray(e)?e:[e]).forEach(b=>{let T=b==="class",I=T&&i?n.map(P=>i[P]||P):n;T?(c.classList.remove(...I),c.classList.add(i&&i[g]?i[g]:g)):c.setAttribute(b,g)}),m(g)}function m(g){s&&u.includes(g)&&(c.style.colorScheme=g)}function h(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)p(o);else try{let g=localStorage.getItem(t)||r,b=a&&g==="system"?h():g;p(b)}catch{}},C$=["light","dark"],E$="(prefers-color-scheme: dark)",fq=typeof window>"u",k1=St.createContext(void 0),hq={setTheme:e=>{},themes:[]},z$=()=>{var e;return(e=St.useContext(k1))!=null?e:hq},A$=e=>St.useContext(k1)?St.createElement(St.Fragment,null,e.children):St.createElement(vq,{...e}),gq=["light","dark"],vq=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:n="theme",themes:i=gq,defaultTheme:a=r?"system":"light",attribute:s="data-theme",value:c,children:u,nonce:p,scriptProps:m})=>{let[h,g]=St.useState(()=>bq(n,a)),[b,T]=St.useState(()=>h==="system"?_1():h),I=c?Object.values(c):i,P=St.useCallback(z=>{let N=z;if(!N)return;z==="system"&&r&&(N=_1());let B=c?c[N]:N,G=t?xq(p):null,F=document.documentElement,W=ue=>{ue==="class"?(F.classList.remove(...I),B&&F.classList.add(B)):ue.startsWith("data-")&&(B?F.setAttribute(ue,B):F.removeAttribute(ue))};
2if(Array.isArray(s)?s.forEach(W):W(s),o){let ue=C$.includes(a)?a:null,de=C$.includes(N)?N:ue;F.style.colorScheme=de}G?.()},[p]),C=St.useCallback(z=>{let N=typeof z=="function"?z(h):z;g(N);try{localStorage.setItem(n,N)}catch{}},[h]),k=St.useCallback(z=>{let N=_1(z);T(N),h==="system"&&r&&!e&&P("system")},[h,e]);St.useEffect(()=>{let z=window.matchMedia(E$);return z.addListener(k),k(z),()=>z.removeListener(k)},[k]),St.useEffect(()=>{let z=N=>{N.key===n&&(N.newValue?g(N.newValue):C(a))};return window.addEventListener("storage",z),()=>window.removeEventListener("storage",z)},[C]),St.useEffect(()=>{P(e??h)},[e,h]);let A=St.useMemo(()=>({theme:h,setTheme:C,forcedTheme:e,resolvedTheme:h==="system"?b:h,themes:r?[...i,"system"]:i,systemTheme:r?b:void 0}),[h,C,e,b,r,i]);return St.createElement(k1.Provider,{value:A},St.createElement(yq,{forcedTheme:e,storageKey:n,attribute:s,enableSystem:r,enableColorScheme:o,defaultTheme:a,value:c,themes:i,nonce:p,scriptProps:m}),u)},yq=St.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:o,enableColorScheme:n,defaultTheme:i,value:a,themes:s,nonce:c,scriptProps:u})=>{let p=JSON.stringify([r,t,i,e,s,a,o,n]).slice(1,-1);return St.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(${mq.toString()})(${p})`}})}),bq=(e,t)=>{if(fq)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},xq=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)}},_1=e=>(e||(e=window.matchMedia(E$)),e.matches?"dark":"light");var bu=Z(xe()),BV=Z(R$());var wo=Z(xe());var Cf=Z(se());function N$({children:e}){let t=window.location.origin;return(0,Cf.jsxs)($7,{authority:`${t}/_genesis/auth`,client_id:"default",redirect_uri:`${t}/`,scope:"openid profile email",children:[(0,Cf.jsx)(P$,{}),e]})}var B$=Z(xe());var oo=Z(xe()),wq=(0,oo.createContext)(null),I1={didCatch:!1,error:null},Bu=class extends oo.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=I1}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){let{error:t}=this.state;if(t!==null){for(var r,o,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];(r=(o=this.props).onReset)===null||r===void 0||r.call(o,{args:i,reason:"imperative-api"}),this.setState(I1)}}componentDidCatch(t,r){var o,n;(o=(n=this.props).onError)===null||o===void 0||o.call(n,t,r)}componentDidUpdate(t,r){let{didCatch:o}=this.state,{resetKeys:n}=this.props;if(o&&r.error!==null&&_q(t.resetKeys,n)){var i,a;(i=(a=this.props).onReset)===null||i===void 0||i.call(a,{next:n,prev:t.resetKeys,reason:"keys"}),this.setState(I1)}}render(){let{children:t,fallbackRender:r,FallbackComponent:o,fallback:n}=this.props,{didCatch:i,error:a}=this.state,s=t;if(i){let c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(c);else if(o)s=(0,oo.createElement)(o,c);else if(n!==void 0)s=n;else throw a}return(0,oo.createElement)(wq.Provider,{value:{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}};function _q(){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,o)=>!Object.is(r,t[o]))}var jt=Z(se());function T1(){return typeof window>"u"?null:window.__TASKADE_APP_LIFECYCLE_LOGGER__??null}var D$=new WeakMap,O$=null,Ef=null;function L$(){let e=typeof globalThis.crypto>"u"?void 0:globalThis.crypto;return typeof e?.randomUUID=="function"?e.randomUUID().replace(/-/g,""):`${Date.now().toString(36)}${Math.random().toString(36).slice(2,12)}`}function $1(e){if(typeof e=="object"&&e!=null){let r=D$.get(e);if(r!=null)return r;let o=L$();return D$.set(e,o),o}let t=String(e);return O$===t&&Ef!=null||(O$=t,Ef=L$()),Ef}var kq="/api/taskade/telemetry/errors",Sq=5,j$=0,U$=new Set;function Iq(e){try{fetch(kq,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),keepalive:!0}
2).catch(()=>{})}catch{}}function Tq(e,t,r,o){if(typeof window>"u"||typeof fetch!="function")return;let n=(r instanceof Error?r.message:String(r))||"Unknown error",i=r instanceof Error?r.stack:void 0,a=`${e}|${n}|${i?.split(` 3`)[1]??""}`;U$.has(a)||j$>=Sq||(U$.add(a),j$+=1,Iq({errorId:t,code:e,message:n.slice(0,4e3),stack:i?.slice(0,2e4),componentStack:o?.slice(0,2e4)??void 0,path:window.location.pathname.slice(0,1e3),userAgent:window.navigator?.userAgent?.slice(0,512)}))}function F$(e,t,r){let o=$1(t),n=T1();return n!=null?(n.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(` 4`)}}),o):(Tq(e,o,t,r),o)}function $q({error:e,resetErrorBoundary:t}){let r=T1()!=null,o=$1(e);return(0,jt.jsxs)("div",{style:{padding:"2rem",fontFamily:"system-ui, sans-serif",maxWidth:600,margin:"0 auto"},children:[(0,jt.jsx)("h2",{style:{margin:"0 0 0.5rem",fontSize:"1.25rem"},children:"Something went wrong"}),(0,jt.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,jt.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)}),!r&&(0,jt.jsxs)("p",{style:{color:"#999",margin:0,fontSize:"0.8rem"},children:["Error ID: ",(0,jt.jsx)("code",{children:o})]}),(0,jt.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 Pq({error:e,resetErrorBoundary:t}){let r=T1()!=null,o=e instanceof Error?e.message:String(e),n=/loading( css)? chunk|dynamically imported module|failed to fetch dynamically/i.test(o);return(0,jt.jsxs)("div",{role:"alert",style:{padding:"1.5rem",margin:"1rem",fontFamily:"system-ui, sans-serif",border:"1px solid #e5e7eb",borderRadius:"12px",background:"#fafafa",maxWidth:520},children:[(0,jt.jsx)("h3",{style:{margin:"0 0 0.375rem",fontSize:"1rem",color:"#111827"},children:"This section hit an error"}),(0,jt.jsxs)("p",{style:{color:"#6b7280",margin:"0 0 1rem",fontSize:"0.875rem"},children:["The rest of the app still works."," ",n?"Reload the page to recover this section.":"You can retry just this section."]}),r&&(0,jt.jsx)("pre",{style:{background:"#f5f5f5",padding:"0.75rem",borderRadius:"8px",overflow:"auto",fontSize:"0.75rem",color:"#dc2626",margin:"0 0 1rem",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:String(e)}),!r&&(0,jt.jsxs)("p",{style:{color:"#9ca3af",margin:"0 0 1rem",fontSize:"0.75rem"},children:["Error ID: ",(0,jt.jsx)("code",{children:$1(e)})]}),(0,jt.jsx)("button",{type:"button",onClick:n?()=>window.location.reload():t,style:{padding:"0.4rem 0.9rem",background:"#1f2937",color:"white",border:"none",borderRadius:"6px",cursor:"pointer",fontSize:"0.85rem"},children:n?"Reload page":"Retry section"})]})}function Cq(){return(0,jt.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"3rem 1rem",color:"#9ca3af",fontFamily:"system-ui, sans-serif",fontSize:"0.875rem"},children:"Loading\u2026"})}function Z$({children:e,name:t,resetKeys:r}){return(0,jt.jsx)(Bu,{FallbackComponent:Pq,resetKeys:r,onError:(o,n)=>{console.error(`[Genesis] Section error${t?` (${t})`:""}:`,o,n),F$("error.boundary",o,n.componentStack)},children:(0,jt.jsx)(B$.Suspense,{fallback:(0,jt.jsx)(Cq,{}),children:e})})}function Eq(e){let{pathname:t}=C7();return(0,jt.jsx)(Z$,{...e,resetKeys:[t,...e.resetKeys??[]]})}function ai(e){return P7()?(0,jt.jsx)(Eq,{...e}):(0,jt.jsx)(Z$,{...e})}function V$({children:e}){return(0,jt.jsx)(Bu,{FallbackComponent:$q,onError:(t,r)=>{console.error("[Genesis] Uncaught render error:",t,r),F$("error.boundary",t,r.componentStack)},onReset:()=>{console.info("[Genesis] User reset error boundary")},children:e})}var G$="01KYY9TX7J58QGQQRSD0BZTZB4",q$="01KYY9TX7VFHA5NEJ65653RDK6";var H$=Z(xe());var ar=Z(se()),zq=[{to:"/dashboard",label:"Dashboard",icon:j7},{to:"/library",label:"Library",icon:R7},{to:"/upload",label:"Upload Notes",icon:q7},{to:"/quiz",label:"Quizzes",icon:N7},{to:"/flashcards",label:"Flashcards",icon:L7},{to:"/progress",label:"Progress",icon:D7},{to:"/premium",label:"Premium",icon:h1}];function W$(){let[e,t]=(0,H$.useState)(!1);return(0,ar.jsxs)(ar.Fragment,{children:[(0,ar.jsx)(Lt,{variant:"ghost",size:"icon",className:"fixed top-3 left-3 z-50 md:hidden",onClick:()=>t(!e),"aria-label":e?"Close menu":"Open menu",children:e?(0,ar.jsx)(hl,{className:"h-5 w-5"}):(0,ar.jsx)(B7,{className:"h-5 w-5"})}),e&&(0,ar.jsx)("div",{className:"fixed inset-0 z-40 bg-background/80 backdrop-blur-sm md:hidden",onClick:()=>t(!1)}),(0,ar.jsxs)("aside",{className:Te("fixed inset-y-0 left-0 z-40 flex w-64 flex-col border-r bg-card transition-transform duration-200 md:translate-x-0",e?"translate-x-0":"-translate-x-full"),children:[(0,ar.jsxs)("div",{className:"flex h-16 items-center gap-2 border-b px-6",children:[(0,ar.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary",children:(0,ar.jsx)(Ou,{className:"h-4 w-4 text-primary-foreground"})}),(0,ar.jsx)("span",{className:"text-lg font-bold tracking-tight",children:"StudyForge"})]}),(0,ar.jsx)("nav",{className:"flex-1 space-y-1 overflow-y-auto p-3",children:zq.map(r=>(0,ar.jsxs)(f1,{to:r.to,onClick:()=>t(!1),className:({isActive:o})=>Te("flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm font-medium transition-colors",o?"bg-primary/10 text-primary":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:[(0,ar.jsx)(r.icon,{className:"h-4 w-4"}),r.label]},r.to))}),(0,ar.jsx)("div",{className:"border-t p-4",children:(0,ar.jsxs)(f1,{to:"/premium",onClick:()=>t(!1),className:"flex items-center justify-center gap-2 rounded-lg bg-gradient-to-r from-blue-600 to-indigo-600 px-4 py-2.5 text-sm font-semibold text-white transition-opacity hover:opacity-90",children:[(0,ar.jsx)(h1,{className:"h-4 w-4"}),"Upgrade to Premium"]})})]})]})}var ohe=Z(xe());var dr=Z(xe(),1);var Ee=Z(xe(),1);var on=Z(xe(),1);var J$=Z(xe(),1);function Aq(e,t){return J$.useReducer((r,o)=>t[r][o]??r,e)}var io=e=>{let{present:t,children:r}=e,o=Mq(t),n=typeof r=="function"?r({present:o.isPresent}):on.Children.only(r),i=Tr(o.ref,Rq(n));return typeof r=="function"||o.isPresent?on.cloneElement(n,{ref:i}
vendor: 5,527 bytes, line 4
4):null};io.displayName="Presence";function Mq(e){let[t,r]=on.useState(),o=on.useRef(null),n=on.useRef(e),i=on.useRef("none"),a=e?"mounted":"unmounted",[s,c]=Aq(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return on.useEffect(()=>{let u=zf(o.current);i.current=s==="mounted"?u:"none"},[s]),Lu(()=>{let u=o.current,p=n.current;if(p!==e){let h=i.current,g=zf(u);e?c("MOUNT"):g==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=e}},[e,c]),Lu(()=>{if(t){let u,p=t.ownerDocument.defaultView??window,m=g=>{let T=zf(o.current).includes(CSS.escape(g.animationName));if(g.target===t&&T&&(c("ANIMATION_END"),!n.current)){let I=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=I)})}},h=g=>{g.target===t&&(i.current=zf(o.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",m),t.addEventListener("animationend",m),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",m),t.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:on.useCallback(u=>{o.current=u?getComputedStyle(u):null,r(u)},[])}}function zf(e){return e?.animationName||"none"}function Rq(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 xr=Z(xe(),1);var Yi=Z(se(),1),P1="rovingFocusGroup.onEntryFocus",Nq={bubbles:!1,cancelable:!0},Fu="RovingFocusGroup",[C1,K$,Dq]=Sf(Fu),[Oq,E1]=Ki(Fu,[Dq]),[Lq,jq]=Oq(Fu),X$=xr.forwardRef((e,t)=>(0,Yi.jsx)(C1.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Yi.jsx)(C1.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Yi.jsx)(Uq,{...e,ref:t})})}));X$.displayName=Fu;var Uq=xr.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:n=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:u,preventScrollOnEntryFocus:p=!1,...m}=e,h=xr.useRef(null),g=Tr(t,h),b=gl(i),[T,I]=kf({prop:a,defaultProp:s??null,onChange:c,caller:Fu}),[P,C]=xr.useState(!1),k=nn(u),A=K$(r),z=xr.useRef(!1),[N,B]=xr.useState(0);return xr.useEffect(()=>{let G=h.current;if(G)return G.addEventListener(P1,k),()=>G.removeEventListener(P1,k)},[k]),(0,Yi.jsx)(Lq,{scope:r,orientation:o,dir:b,loop:n,currentTabStopId:T,onItemFocus:xr.useCallback(G=>I(G),[I]),onItemShiftTab:xr.useCallback(()=>C(!0),[]),onFocusableItemAdd:xr.useCallback(()=>B(G=>G+1),[]),onFocusableItemRemove:xr.useCallback(()=>B(G=>G-1),[]),children:(0,Yi.jsx)($r.div,{tabIndex:P||N===0?-1:0,"data-orientation":o,...m,ref:g,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{z.current=!0}),onFocus:We(e.onFocus,G=>{let F=!z.current;if(G.target===G.currentTarget&&F&&!P){let W=new CustomEvent(P1,Nq);if(G.currentTarget.dispatchEvent(W),!W.defaultPrevented){let ue=A().filter(pe=>pe.focusable),de=ue.find(pe=>pe.active),ft=ue.find(pe=>pe.id===T),Fe=[de,ft,...ue].filter(Boolean).map(pe=>pe.ref.current);e8(Fe,p)}}z.current=!1}),onBlur:We(e.onBlur,()=>C(!1))})})}),Y$="RovingFocusGroupItem",Q$=xr.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:n=!1,tabStopId:i,children:a,...s}=e,c=Xi(),u=i||c,p=jq(Y$,r),m=p.currentTabStopId===u,h=K$(r),{onFocusableItemAdd:g,onFocusableItemRemove:b,currentTabStopId:T}=p;return xr.useEffect(()=>{if(o)return g(),()=>b()},[o,g,b]),(0,Yi.jsx)(C1.ItemSlot,{scope:r,id:u,focusable:o,active:n,children:(0,Yi.jsx)($r.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:We(e.onMouseDown,I=>{o?p.onItemFocus(u):I.preventDefault()}),onFocus:We(e.onFocus,()=>p.onItemFocus(u)),onKeyDown:We(e.onKeyDown,I=>{if(I.key==="Tab"&&I.shiftKey){p.onItemShiftTab();return}if(I.target!==I.currentTarget)return;let P=Zq(I,p.orientation,p.dir);if(P!==void 0){if(I.metaKey||I.ctrlKey||I.altKey||I.shiftKey)return;I.preventDefault();let k=h().filter(A=>A.focusable).map(A=>A.ref.current);if(P==="last")k.reverse();else if(P==="prev"||P==="next"){P==="prev"&&k.reverse();let A=k.indexOf(I.currentTarget);k=p.loop?Vq(k,A+1):k.slice(A+1)}setTimeout(()=>e8(k))}}),children:typeof a=="function"?a({isCurrentTabStop:m,hasTabStop:T!=null}):a})})});Q$.displayName=Y$;var Bq={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Fq(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Zq(e,t,r){let o=Fq(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Bq[o]}function e8(e,t=!1){let r=document.activeElement;for(let o of e)if(o===r||(o.focus({preventScroll:t}),document.activeElement!==r))return}function Vq(e,t){return e.map((r,o)=>e[(t+o)%e.length])}var t8=X$,r8=Q$;var Ue=Z(se(),1),z1=["Enter"," "],qq=["ArrowDown","PageUp","Home"],o8=["ArrowUp","PageDown","End"],Hq=[...qq,...o8],Wq={ltr:[...z1,"ArrowRight"],rtl:[...z1,"ArrowLeft"]},Jq={ltr:["ArrowLeft"],rtl:["ArrowRight"]},qu="Menu",[Vu,Kq,Xq]=Sf(qu),[cs,A1]=Ki(qu,[Xq,g1,E1]),Hu=g1(),i8=E1(),[a8,Qi]=cs(qu),[Yq,Wu]=cs(qu),s8=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:n,onOpenChange:i,modal:
vendor: 13,170 bytes, line 4
4a=!0}=e,s=Hu(t),[c,u]=Ee.useState(null),p=Ee.useRef(!1),m=nn(i),h=gl(n);return Ee.useEffect(()=>{let g=()=>{p.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),(0,Ue.jsx)(v1,{...s,children:(0,Ue.jsx)(a8,{scope:t,open:r,onOpenChange:m,content:c,onContentChange:u,children:(0,Ue.jsx)(Yq,{scope:t,onClose:Ee.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:p,dir:h,modal:a,children:o})})})};s8.displayName=qu;var Qq="MenuAnchor",M1=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,...o}=e,n=Hu(r);return(0,Ue.jsx)(Q7,{...n,...o,ref:t})});M1.displayName=Qq;var R1="MenuPortal",[eH,l8]=cs(R1,{forceMount:void 0}),c8=e=>{let{__scopeMenu:t,forceMount:r,children:o,container:n}=e,i=Qi(R1,t);return(0,Ue.jsx)(eH,{scope:t,forceMount:r,children:(0,Ue.jsx)(io,{present:r||i.open,children:(0,Ue.jsx)(r$,{asChild:!0,container:n,children:o})})})};c8.displayName=R1;var Ln="MenuContent",[tH,N1]=cs(Ln),u8=Ee.forwardRef((e,t)=>{let r=l8(Ln,e.__scopeMenu),{forceMount:o=r.forceMount,...n}=e,i=Qi(Ln,e.__scopeMenu),a=Wu(Ln,e.__scopeMenu);return(0,Ue.jsx)(Vu.Provider,{scope:e.__scopeMenu,children:(0,Ue.jsx)(io,{present:o||i.open,children:(0,Ue.jsx)(Vu.Slot,{scope:e.__scopeMenu,children:a.modal?(0,Ue.jsx)(rH,{...n,ref:t}):(0,Ue.jsx)(nH,{...n,ref:t})})})})}),rH=Ee.forwardRef((e,t)=>{let r=Qi(Ln,e.__scopeMenu),o=Ee.useRef(null),n=Tr(t,o);return Ee.useEffect(()=>{let i=o.current;if(i)return n$(i)},[]),(0,Ue.jsx)(D1,{...e,ref:n,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:We(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),nH=Ee.forwardRef((e,t)=>{let r=Qi(Ln,e.__scopeMenu);return(0,Ue.jsx)(D1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),oH=W7("MenuContent.ScrollLock"),D1=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,loop:o=!1,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:b,...T}=e,I=Qi(Ln,r),P=Wu(Ln,r),C=Hu(r),k=i8(r),A=Kq(r),[z,N]=Ee.useState(null),B=Ee.useRef(null),G=Tr(t,B,I.onContentChange),F=Ee.useRef(0),W=Ee.useRef(""),ue=Ee.useRef(0),de=Ee.useRef(null),ft=Ee.useRef("right"),$e=Ee.useRef(0),Fe=b?o$:Ee.Fragment,pe=b?{as:oH,allowPinchZoom:!0}:void 0,en=ce=>{let et=W.current+ce,tt=A().filter(mt=>!mt.disabled),be=document.activeElement,ve=tt.find(mt=>mt.ref.current===be)?.textValue,fe=tt.map(mt=>mt.textValue),at=vH(fe,et,ve),wt=tt.find(mt=>mt.textValue===at)?.ref.current;(function mt(Nt){W.current=Nt,window.clearTimeout(F.current),Nt!==""&&(F.current=window.setTimeout(()=>mt(""),1e3))})(et),wt&&setTimeout(()=>wt.focus())};Ee.useEffect(()=>()=>window.clearTimeout(F.current),[]),X7();let me=Ee.useCallback(ce=>ft.current===de.current?.side&&bH(ce,de.current?.area),[]);return(0,Ue.jsx)(tH,{scope:r,searchRef:W,onItemEnter:Ee.useCallback(ce=>{me(ce)&&ce.preventDefault()},[me]),onItemLeave:Ee.useCallback(ce=>{me(ce)||(B.current?.focus(),N(null))},[me]),onTriggerLeave:Ee.useCallback(ce=>{me(ce)&&ce.preventDefault()},[me]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:Ee.useCallback(ce=>{de.current=ce},[]),children:(0,Ue.jsx)(Fe,{...pe,children:(0,Ue.jsx)(Y7,{asChild:!0,trapped:n,onMountAutoFocus:We(i,ce=>{ce.preventDefault(),B.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,Ue.jsx)(K7,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:p,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:(0,Ue.jsx)(t8,{asChild:!0,...k,dir:P.dir,orientation:"vertical",loop:o,currentTabStopId:z,onCurrentTabStopIdChange:N,onEntryFocus:We(c,ce=>{P.isUsingKeyboardRef.current||ce.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,Ue.jsx)(e$,{role:"menu","aria-orientation":"vertical","data-state":T8(I.open),"data-radix-menu-content":"",dir:P.dir,...C,...T,ref:G,style:{outline:"none",...T.style},onKeyDown:We(T.onKeyDown,ce=>{let tt=ce.target.closest("[data-radix-menu-content]")===ce.currentTarget,be=ce.ctrlKey||ce.altKey||ce.metaKey,ve=ce.key.length===1;tt&&(ce.key==="Tab"&&ce.preventDefault(),!be&&ve&&en(ce.key));let fe=B.current;if(ce.target!==fe||!Hq.includes(ce.key))return;ce.preventDefault();let wt=A().filter(mt=>!mt.disabled).map(mt=>mt.ref.current);o8.includes(ce.key)&&wt.reverse(),hH(wt)}),onBlur:We(e.onBlur,ce=>{ce.currentTarget.contains(ce.target)||(window.clearTimeout(F.current),W.current="")}),onPointerMove:We(e.onPointerMove,Gu(ce=>{let et=ce.target,tt=$e.current!==ce.clientX;if(ce.currentTarget.contains(et)&&tt){let be=ce.clientX>$e.current?"right":"left";ft.current=be,$e.current=ce.clientX}}))})})})})})})});u8.displayName=Ln;var iH="MenuGroup",O1=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,Ue.jsx)($r.div,{role:"group",...o,ref:t})});O1.displayName=iH;var aH="MenuLabel",d8=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,Ue.jsx)($r.div,{...o,ref:t})});d8.displayName=aH;var Af="MenuItem",n8="menu.itemSelect",Rf=Ee.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:o,...n}=e,i=Ee.useRef(null),a=Wu(Af,e.__scopeMenu),s=N1(Af,e.__scopeMenu),c=Tr(t,i),u=Ee.useRef(!1),p=()=>{let m=i.current;if(!r&&m){let h=new CustomEvent(n8,{bubbles:!0,cancelable:!0});m.addEventListener(n8,g=>o?.(g),{once:!0}),J7(m,h),h.defaultPrevented?u.current=!1:a.onClose()}};return(0,Ue.jsx)(p8,{...n,ref:c,disabled:r,onClick:We(e.onClick,p),onPointerDown:m=>{e.onPointerDown?.(m),u.current=!0},onPointerUp:We(e.onPointerUp,m=>{u.current||m.currentTarget?.click()}),onKeyDown:We(e.onKeyDown,m=>{let h=s.searchRef.current!=="";r||h&&m.key===" "||z1.includes(m.key)&&(m.currentTarget.click(),m.preventDefault())})})});Rf.displayName=Af;var p8=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:o=!1,textValue:n,...i}=e,a=N1(Af,r),s=i8(r),c=Ee.useRef(null),u=Tr(t,c),[p,m]=Ee.useState(!1),[h,g]=Ee.useState("");return Ee.useEffect(()=>{let b=c.current;b&&g((b.textContent??"").trim())},[i.children]),(0,Ue.jsx)(Vu.ItemSlot,{scope:r,disabled:o,textValue:n??h,children:(0,Ue.jsx)(r8,{asChild:!0,...s,focusable:!o,children:(0,Ue.jsx)($r.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:u,onPointerMove:We(e.onPointerMove,Gu(b=>{o?a.onItemLeave(b):(a.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:We(e.onPointerLeave,Gu(b=>a.onItemLeave(b))),onFocus:We(e.onFocus,()=>m(!0)),onBlur:We(e.onBlur,()=>m(!1))})})})}),sH="MenuCheckboxItem",m8=Ee.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:o,...n}=e;return(0,Ue.jsx)(y8,{scope:e.__scopeMenu,checked:r,children:(0,Ue.jsx)(Rf,{role:"menuitemcheckbox","aria-checked":Mf(r)?"mixed":r,...n,ref:t,"data-state":U1(r),onSelect:We(n.onSelect,()=>o?.(Mf(r)?!0:!r),{checkForDefaultPrevented:!1})})})});m8.displayName=sH;var f8="MenuRadioGroup",[lH,cH]=cs(f8,{value:void 0,onValueChange:()=>{}}),h8=Ee.forwardRef((e,t)=>{let{value:r,onValueChange:o,...n}=e,i=nn(o);return(0,Ue.jsx)(lH,{scope:e.__scopeMenu,value:r,onValueChange:i,children:(0,Ue.jsx)(O1,{...n,ref:t})})});h8.displayName=f8;var g8="MenuRadioItem",v8=Ee.forwardRef((e,t)=>{let{value:r,...o}=e,n=cH(g8,e.__scopeMenu),i=r===n.value;return(0,Ue.jsx)(y8,{scope:e.__scopeMenu,checked:i,children:(0,Ue.jsx)(Rf,{role:"menuitemradio","aria-checked":i,...o,ref:t,"data-state":U1(i),onSelect:We(o.onSelect,()=>n.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});v8.displayName=g8;var L1="MenuItemIndicator",[y8,uH]=cs(L1,{checked:!1}),b8=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:o,...n}=e,i=uH(L1,r);return(0,Ue.jsx)(io,{present:o||Mf(i.checked)||i.checked===!0,children:(0,Ue.jsx)($r.span,{...n,ref:t,"data-state":U1(i.checked)})})});b8.displayName=L1;var dH="MenuSeparator",x8=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,...o}=e;return(0,Ue.jsx)($r.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});x8.displayName=dH;var pH="MenuArrow",w8=Ee.forwardRef((e,t)=>{let{__scopeMenu:r,...o}=e,n=Hu(r);return(0,Ue.jsx)(t$,{...n,...o,ref:t})});w8.displayName=pH;var j1="MenuSub",[mH,_8]=cs(j1),fH=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:n}=e,i=Qi(j1,t),a=Hu(t),[s,c]=Ee.useState(null),[u,p]=Ee.useState(null),m=nn(n);return Ee.useEffect(()=>(i.open===!1&&m(!1),()=>m(!1)),[i.open,m]),(0,Ue.jsx)(v1,{...a,children:(0,Ue.jsx)(a8,{scope:t,open:o,onOpenChange:m,content:u,onContentChange:p,children:(0,Ue.jsx)(mH,{scope:t,contentId:Xi(),triggerId:Xi(),trigger:s,onTriggerChange:c,children:r})})})};fH.displayName=j1;var Zu="MenuSubTrigger",k8=Ee.forwardRef((e,t)=>{let r=Qi(Zu,e.__scopeMenu),o=Wu(Zu,e.__scopeMenu),n=_8(Zu,e.__scopeMenu),i=N1(Zu,e.__scopeMenu),a=Ee.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:c}=i,u={__scopeMenu:e.__scopeMenu},p=Ee.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return Ee.useEffect(()=>p,[p]),Ee.useEffect(()=>{let m=s.current;return()=>{window.clearTimeout(m),c(null)}},[s,c]),(0,Ue.jsx)(M1,{asChild:!0,...u,children:(0,Ue.jsx)(p8,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":n.contentId,"data-state":T8(r.open),...e,ref:_f(t,n.onTriggerChange),onClick:m=>{e.onClick?.(m),!(e.disabled||m.defaultPrevented)&&(m.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:We(e.onPointerMove,Gu(m=>{i.onItemEnter(m),!m.defaultPrevented&&!e.disabled&&!r.open&&!a.current&&(i.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:We(e.onPointerLeave,Gu(m=>{p();let h=r.content?.getBoundingClientRect();if(h){let g=r.content?.dataset.side,b=g==="right",T=b?-5:5,I=h[b?"left":"right"],P=h[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:m.clientX+T,y:m.clientY},{x:I,y:h.top},{x:P,y:h.top},{x:P,y:h.bottom},{x:I,y:h.bottom}],side:g}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(m),m.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:We(e.onKeyDown,m=>{let h=i.searchRef.current!=="";e.disabled||h&&m.key===" "||Wq[o.dir].includes(m.key)&&(r.onOpenChange(!0),r.content?.focus(),m.preventDefault())})})})});k8.displayName=Zu;var S8="MenuSubContent",I8=Ee.forwardRef((e,t)=>{let r=l8(Ln,e.__scopeMenu),{forceMount:o=r.forceMount,...n}=e,i=Qi(Ln,e.__scopeMenu),a=Wu(Ln,e.__scopeMenu),s=_8(S8,e.__scopeMenu),c=Ee.useRef(null),u=Tr(t,c);return(0,Ue.jsx)(Vu.Provider,{scope:e.__scopeMenu,children:(0,Ue.jsx)(io,{present:o||i.open,children:(0,Ue.jsx)(Vu.Slot,{scope:e.__scopeMenu,children:(0,Ue.jsx)(D1,{id:s.contentId,"aria-labelledby":s.triggerId,...n,ref:u,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{a.isUsingKeyboardRef.current&&c.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:We(e.onFocusOutside,p=>{p.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:We(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:We(e.onKeyDown,p=>{let m=p.currentTarget.contains(p.target),h=Jq[a.dir].includes(p.key);m&&h&&(i.onOpenChange(!1),s.trigger?.focus(),p.preventDefault())})})})})})});I8.displayName=S8;function T8(e){return e?"open":"closed"}function Mf(e){return e==="indeterminate"}function U1(e){return Mf(e)?"indeterminate":e?"checked":"unchecked"}function hH(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function gH(e,t){return e.map((r,o)=>e[(t+o)%e.length])}function vH(e,t,r){let n=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=r?e.indexOf(r):-1,a=gH(e,Math.max(i,0));n.length===1&&(a=a.filter(u=>u!==r));let c=a.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return c!==r?c:void 0}function yH(e,t){let{x:r,y:o}=e,n=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){let s=t[i],c=t[a],u=s.x,p=s.y,m=c.x,h=c.y;p>o!=h>o&&r<(m-u)*(o-p)/(h-p)+u&&(n=!n)}return n}function bH(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return yH(r,t)}function Gu(e){return t=>t.pointerType==="mouse"?e(t):void 0}var $8=s8,P8=M1,C8=c8,E8=u8,z8=O1,A8=d8,M8=Rf,R8=m8,N8=h8,D8=v8,O8=b8,L8=x8,j8=w8;var U8=k8,B8=I8;var wr=Z(se(),1),Nf="DropdownMenu",[wH,Wfe]=Ki(Nf,[A1]),Ur=A1(),[_H,F8]=wH(Nf),Z8=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:n,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=Ur(t),u=dr.useRef(null),[p,m]=kf({prop:n,defaultProp:i??!1,onChange:a,caller:Nf});return(0,wr.jsx)(_H,{scope:t,triggerId:Xi(),triggerRef:u,contentId:Xi(),open:p,onOpenChange:m,onOpenToggle:dr.useCallback(()=>m(h=>!h),[m]),modal:s,children:(0,wr.jsx)($8,{...c,open:p,onOpenChange:m,dir:o,modal:s,children:r})})};Z8.displayName=Nf;var V8="DropdownMenuTrigger",G8=dr.forwardRef((e,t)=>
4{let{__scopeDropdownMenu:r,disabled:o=!1,...n}=e,i=F8(V8,r),a=Ur(r);return(0,wr.jsx)(P8,{asChild:!0,...a,children:(0,wr.jsx)($r.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:_f(t,i.triggerRef),onPointerDown:We(e.onPointerDown,s=>{!o&&s.button===0&&s.ctrlKey===!1&&(i.onOpenToggle(),i.open||s.preventDefault())}),onKeyDown:We(e.onKeyDown,s=>{o||(["Enter"," "].includes(s.key)&&i.onOpenToggle(),s.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});G8.displayName=V8;var kH="DropdownMenuPortal",q8=e=>{let{__scopeDropdownMenu:t,...r}=e,o=Ur(t);return(0,wr.jsx)(C8,{...o,...r})};q8.displayName=kH;var H8="DropdownMenuContent",W8=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=F8(H8,r),i=Ur(r),a=dr.useRef(!1);return(0,wr.jsx)(E8,{id:n.contentId,"aria-labelledby":n.triggerId,...i,...o,ref:t,onCloseAutoFocus:We(e.onCloseAutoFocus,s=>{a.current||n.triggerRef.current?.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:We(e.onInteractOutside,s=>{let c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,p=c.button===2||u;(!n.modal||p)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});W8.displayName=H8;var SH="DropdownMenuGroup",IH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(z8,{...n,...o,ref:t})});IH.displayName=SH;var TH="DropdownMenuLabel",$H=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(A8,{...n,...o,ref:t})});$H.displayName=TH;var PH="DropdownMenuItem",J8=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(M8,{...n,...o,ref:t})});J8.displayName=PH;var CH="DropdownMenuCheckboxItem",EH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(R8,{...n,...o,ref:t})});EH.displayName=CH;var zH="DropdownMenuRadioGroup",AH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(N8,{...n,...o,ref:t})});AH.displayName=zH;var MH="DropdownMenuRadioItem",RH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(D8,{...n,...o,ref:t})});RH.displayName=MH;var NH="DropdownMenuItemIndicator",DH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(O8,{...n,...o,ref:t})});DH.displayName=NH;var OH="DropdownMenuSeparator",K8=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(L8,{...n,...o,ref:t})});K8.displayName=OH;var LH="DropdownMenuArrow",jH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(j8,{...n,...o,ref:t})});jH.displayName=LH;var UH="DropdownMenuSubTrigger",BH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(U8,{...n,...o,ref:t})});BH.displayName=UH;var FH="DropdownMenuSubContent",ZH=dr.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,n=Ur(r);return(0,wr.jsx)(B8,{...n,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ZH.displayName=FH;var X8=Z8,Y8=G8,Q8=q8,e9=W8;var t9=J8;var r9=K8;var ea=Z(se());function Df({...e}){return(0,ea.jsx)(X8,{"data-slot":"dropdown-menu",...e})}function Of({...e}){return(0,ea.jsx)(Y8,{"data-slot":"dropdown-menu-trigger",...e})}function Lf({className:e,sideOffset:t=4,...r}){return(0,ea.jsx)(Q8,{children:(0,ea.jsx)(e9,{"data-slot":"dropdown-menu-content",sideOffset:t,className:Te("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
4de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function jf({className:e,inset:t,variant:r="default",...o}){return(0,ea.jsx)(t9,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:Te("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function n9({className:e,...t}){return(0,ea.jsx)(r9,{"data-slot":"dropdown-menu-separator",className:Te("bg-border -mx-1 my-1 h-px",e),...t})}var pr=Z(se());function o9(){let e=wf(),{theme:t,setTheme:r}=z$(),o=e.user?.profile?.name??e.user?.profile?.email??"User";return(0,pr.jsxs)("header",{className:"sticky top-0 z-30 flex h-16 items-center justify-between border-b bg-background/95 px-6 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:[(0,pr.jsx)("div",{className:"md:hidden"}),(0,pr.jsxs)("h1",{className:"hidden text-lg font-semibold md:block",children:["Welcome back",o?`, ${o.split(" ")[0]}`:""]}),(0,pr.jsxs)("div",{className:"flex items-center gap-2",children:[(0,pr.jsxs)(Lt,{variant:"ghost",size:"icon",onClick:()=>r(t==="dark"?"light":"dark"),"aria-label":"Toggle theme",children:[(0,pr.jsx)(G7,{className:"h-4 w-4 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,pr.jsx)(Z7,{className:"absolute h-4 w-4 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"})]}),(0,pr.jsx)(Lt,{variant:"ghost",size:"icon","aria-label":"Notifications",children:(0,pr.jsx)(M7,{className:"h-4 w-4"})}),(0,pr.jsxs)(Df,{children:[(0,pr.jsx)(Of,{asChild:!0,children:(0,pr.jsx)(Lt,{variant:"ghost",size:"icon","aria-label":"User menu",children:(0,pr.jsx)(H7,{className:"h-4 w-4"})})}),(0,pr.jsxs)(Lf,{align:"end",className:"w-48",children:[(0,pr.jsx)("div",{className:"px-2 py-1.5 text-sm font-medium",children:o}),(0,pr.jsx)(n9,{}),(0,pr.jsx)(jf,{onClick:()=>e.signoutRedirect(),children:"Sign Out"})]})]})]})]})}var Dd=Z(se(),1),co=Z(xe(),1);var i9=Z(xe(),1),xl=(0,i9.createContext)({});var a9=Z(xe(),1);function wl(e){let t=(0,a9.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Uf=Z(xe(),1);var s9=typeof window<"u";var Bf=s9?Uf.useLayoutEffect:Uf.useEffect;var Jx=Z(se(),1),vC=Z(xe(),1),Rd=Z(xe(),1);var l9=Z(xe(),1),ta=(0,l9.createContext)(null);var hC=Z(se(),1);function us(e,t){e.indexOf(t)===-1&&e.push(t)}function ra(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var mr=(e,t,r)=>r>t?t:r<e?e:r;var si=()=>{},jn=()=>{};var Br={};var Ju=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ku(e){return typeof e=="object"&&e!==null}var Xu=e=>/^0[^.\s]+$/u.test(e);function Yu(e){let t;return()=>(t===void 0&&(t=e()),t)}var Gt=e=>e;var GH=(e,t)=>r=>t(e(r)),ao=(...e)=>e.reduce(GH);var $o=(e,t,r)=>{let o=t-e;return o===0?1:(r-e)/o};var li=class{constructor(){this.subscriptions=[]}add(t){return us(this.subscriptions,t),()=>ra(this.subscriptions,t)}notify(t,r,o){let n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,r,o);else for(let i=0;i<n;i++){let a=this.subscriptions[i];a&&a(t,r,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var tr=e=>e*1e3,_r=e=>e/1e3;function Qu(e,t){return t?e*(1e3/t):0}var c9=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qH=1e-7,HH=12;function WH(e,t,r,o,n){let i,a,s=0;do a=t+(r-t)/2,i=c9(a,o,n)-e,i>0?r=a:t=a;while(Math.abs(i)>qH&&++s<HH);return a}function na(e,t,r,o){if(e===t&&r===o)return Gt;let n=i=>WH(i,0,1,e,r);return i=>i===0||i===1?i:c9(n(i),t,o)}var Ff=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;var Zf=e=>t=>1-e(1-t);var Vf=na(.33,1.53,.69,.99),_l=Zf(Vf),ed=Ff(_l);var td=e=>e>=1?1:(e*=2)<1?.5*_l(e):.5*(2-Math.pow(2,-10*(e-1)));var rd=e=>1-Math.sin(Math.acos(e)),nd=Zf(rd),od=Ff(rd);var B1=na(.42,0,1,1),F1=na(0,0,.58,1),id=na(.42,0,.58,1);var Z1=e=>Array.isArray(e)&&typeof e[0]!="number";var ad=e=>Array.isArray(e)&&typeof e[0]=="number";var u9={linear:Gt,easeIn:B1,easeInOut:id,easeOut:F1,circIn:rd,circInOut:od,circOut:nd,backIn:_l,backInOut:ed,backOut:Vf,anticipate:td}
4,JH=e=>typeof e=="string",Gf=e=>{if(ad(e)){jn(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,r,o,n]=e;return na(t,r,o,n)}else if(JH(e))return jn(u9[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),u9[e];return e};var sd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var yn={value:null,addProjectionMetrics:null};function d9(e,t){let r=new Set,o=new Set,n=!1,i=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function u(m){a.has(m)&&(p.schedule(m),e()),c++,m(s)}let p={schedule:(m,h=!1,g=!1)=>{let T=g&&n?r:o;return h&&a.add(m),T.add(m),m},cancel:m=>{o.delete(m),a.delete(m)},process:m=>{if(s=m,n){i=!0;return}n=!0;let h=r;r=o,o=h,r.forEach(u),t&&yn.value&&yn.value.frameloop[t].push(c),c=0,r.clear(),n=!1,i&&(i=!1,p.process(m))}};return p}var KH=40;function qf(e,t){let r=!1,o=!0,n={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=sd.reduce((k,A)=>(k[A]=d9(i,t?A:void 0),k),{}),{setup:s,read:c,resolveKeyframes:u,preUpdate:p,update:m,preRender:h,render:g,postRender:b}=a,T=()=>{let k=Br.useManualTiming,A=k?n.timestamp:performance.now();r=!1,k||(n.delta=o?1e3/60:Math.max(Math.min(A-n.timestamp,KH),1)),n.timestamp=A,n.isProcessing=!0,s.process(n),c.process(n),u.process(n),p.process(n),m.process(n),h.process(n),g.process(n),b.process(n),n.isProcessing=!1,r&&t&&(o=!1,e(T))},I=()=>{r=!0,o=!0,n.isProcessing||e(T)};return{schedule:sd.reduce((k,A)=>{let z=a[A];return k[A]=(N,B=!1,G=!1)=>(r||I(),z.schedule(N,B,G)),k},{}),cancel:k=>{for(let A=0;A<sd.length;A++)a[sd[A]].cancel(k)},state:n,steps:a}}var{schedule:Je,cancel:an,state:Xt,steps:ld}=qf(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0);var Hf;function XH(){Hf=void 0}var qt={now:()=>(Hf===void 0&&qt.set(Xt.isProcessing||Br.useManualTiming?Xt.timestamp:performance.now()),Hf),set:e=>{Hf=e,queueMicrotask(XH)}};var Po={layout:0,mainThread:0,waapi:0};var p9=e=>t=>typeof t=="string"&&t.startsWith(e),Wf=p9("--"),YH=p9("var(--"),kl=e=>YH(e)?QH.test(e.split("/*")[0].trim()):!1,QH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function V1(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}var Co={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ci={...Co,transform:e=>mr(0,1,e)},cd={...Co,default:1};var oa=e=>Math.round(e*1e5)/1e5;var Sl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function m9(e){return e==null}var f9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var Il=(e,t)=>r=>!!(typeof r=="string"&&f9.test(r)&&r.startsWith(e)||t&&!m9(r)&&Object.prototype.hasOwnProperty.call(r,t)),Jf=(e,t,r)=>o=>{if(typeof o!="string")return o;let[n,i,a,s]=o.match(Sl);return{[e]:parseFloat(n),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var eW=e=>mr(0,255,e),G1={...Co,transform:e=>Math.round(eW(e))},Eo={test:Il("rgb","red"),parse:Jf("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:o=1})=>"rgba("+G1.transform(e)+", "+G1.transform(t)+", "+G1.transform(r)+", "+oa(ci.transform(o))+")"};function tW(e){let t="",r="",o="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),o=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),o=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,o+=o,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(o,16),alpha:n?parseInt(n,16)/255:1}}var ud={test:Il("#"),parse:tW,transform:Eo.transform};var dd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),so=dd("deg"),Ar=dd("%"),_e=dd("px"),q1=dd("vh"),H1=dd("vw"),Kf={...Ar,parse:e=>Ar.parse(e)/100,transform:e=>Ar.transform(e*100)};var ia={test:Il("hsl","hue"),parse:Jf("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:o=1})=>"hsla("+Math.round(e)+", "+Ar.transform(oa(t))+", "+Ar.transform(oa(r))+", "+oa(ci.transform(o))+")"};var Ut={test:e=>Eo.test(e)||ud.test(e)||ia.test(e),parse:e=>Eo.test(e)?Eo.parse(e):ia.test(e)?ia.parse(e):ud.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Eo.transform(e):ia.transform(e),getAnimatableNone:e=>{let t=Ut.parse(e);return t.alpha=0,Ut.transform(t)}};var h9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function rW(e){return isNaN(e)&&typeof e=="string"&&(e.match(Sl)?.length||0)+(e.match(h9)?.length||0)>0}var v9="number",y9="color",nW="var",oW="var(",g9="${}",iW=/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 aa(e){let t=e.toString(),r=[],o={color:[],number:[],var:[]},n=[],i=0,s=t.replace(iW,c=>(Ut.test(c)?(o.color.push(i),n.push(y9),r.push(Ut.parse(c))):c.startsWith(oW)?(o.var.push(i),n.push(nW),r.push(c)):(o.number.push(i),n.push(v9),r.push(parseFloat(c))),++i,g9)).split(g9);return{values:r,split:s,indexes:o,types:n}}function aW(e){return aa(e).values}function b9({split:e,types:t}){let r=e.length;return o=>{let n="";for(let i=0;i<r;i++)if(n+=e[i],o[i]!==void 0){let a=t[i];a===v9?n+=oa(o[i]):a===y9?n+=Ut.transform(o[i]):n+=o[i]}return n}}function sW(e){return b9(aa(e))}var lW=e=>typeof e=="number"?0:Ut.test(e)?Ut.getAnimatableNone(e):e,cW=(e,t)=>
4typeof e=="number"?t?.trim().endsWith("/")?e:0:lW(e);function uW(e){let t=aa(e);return b9(t)(t.values.map((o,n)=>cW(o,t.split[n])))}var fr={test:rW,parse:aW,createTransformer:sW,getAnimatableNone:uW};function W1(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 x9({hue:e,saturation:t,lightness:r,alpha:o}){e/=360,t/=100,r/=100;let n=0,i=0,a=0;if(!t)n=i=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,c=2*r-s;n=W1(c,s,e+1/3),i=W1(c,s,e),a=W1(c,s,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:o}}function Tl(e,t){return r=>r>0?t:e}var ct=(e,t,r)=>e+(t-e)*r;var J1=(e,t,r)=>{let o=e*e,n=r*(t*t-o)+o;return n<0?0:Math.sqrt(n)},dW=[ud,Eo,ia],pW=e=>dW.find(t=>t.test(e));function w9(e){let t=pW(e);if(si(!!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===ia&&(r=x9(r)),r}var K1=(e,t)=>{let r=w9(e),o=w9(t);if(!r||!o)return Tl(e,t);let n={...r};return i=>(n.red=J1(r.red,o.red,i),n.green=J1(r.green,o.green,i),n.blue=J1(r.blue,o.blue,i),n.alpha=ct(r.alpha,o.alpha,i),Eo.transform(n))};var Xf=new Set(["none","hidden"]);function _9(e,t){return Xf.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function mW(e,t){return r=>ct(e,t,r)}function Yf(e){return typeof e=="number"?mW:typeof e=="string"?kl(e)?Tl:Ut.test(e)?K1:gW:Array.isArray(e)?k9:typeof e=="object"?Ut.test(e)?K1:fW:Tl}function k9(e,t){let r=[...e],o=r.length,n=e.map((i,a)=>Yf(i)(i,t[a]));return i=>{for(let a=0;a<o;a++)r[a]=n[a](i);return r}}function fW(e,t){let r={...e,...t},o={};for(let n in r)e[n]!==void 0&&t[n]!==void 0&&(o[n]=Yf(e[n])(e[n],t[n]));return n=>{for(let i in o)r[i]=o[i](n);return r}}function hW(e,t){let r=[],o={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let i=t.types[n],a=e.indexes[i][o[i]],s=e.values[a]??0;r[n]=s,o[i]++}return r}var gW=(e,t)=>{let r=fr.createTransformer(t),o=aa(e),n=aa(t);return o.indexes.var.length===n.indexes.var.length&&o.indexes.color.length===n.indexes.color.length&&o.indexes.number.length>=n.indexes.number.length?Xf.has(e)&&!n.values.length||Xf.has(t)&&!o.values.length?_9(e,t):ao(k9(hW(o,n),n.values),r):(si(!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"),Tl(e,t))};function Qf(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?ct(e,t,r):Yf(e)(e,t)}var S9=e=>{let t=({timestamp:r})=>e(r);return{start:(r=!0)=>Je.update(t,r),stop:()=>an(t),now:()=>Xt.isProcessing?Xt.timestamp:qt.now()}};var eh=(e,t,r=10)=>{let o="",n=Math.max(Math.round(t/r),2);for(let i=0;i<n;i++)o+=Math.round(e(i/(n-1))*1e4)/1e4+", ";return`linear(${o.substring(0,o.length-2)})`};function $l(e){let t=0,r=50,o=e.next(t);for(;!o.done&&t<2e4;)t+=r,o=e.next(t);return t>=2e4?1/0:t}function I9(e,t=100,r){let o=r({...e,keyframes:[0,t]}),n=Math.min($l(o),2e4);return{type:"keyframes",ease:i=>o.next(n*i).value/t,duration:_r(n)}}var Ht={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 Q1(e,t){return e*Math.sqrt(1-t*t)}var vW=12;function yW(e,t,r){let o=r;for(let n=1;n<vW;n++)o=o-e(o)/t(o);return o}var Y1=.001;function bW({duration:e=Ht.duration,bounce:t=Ht.bounce,velocity:r=Ht.velocity,mass:o=Ht.mass}){let n,i;si(e<=tr(Ht.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=mr(Ht.minDamping,Ht.maxDamping,a),e=mr(Ht.minDuration,Ht.maxDuration,_r(e)),a<1?(n=u=>{let p=u*a,m=p*e,h=p-r,g=Q1(u,a),b=Math.exp(-m);return Y1-h/g*b},i=u=>{let m=u*a*e,h=m*r+r,g=Math.pow(a,2)*Math.pow(u,2)*e,b=Math.exp(-m),T=Q1(Math.pow(u,2),a);return(-n(u)+Y1>0?-1:1)*((h-g)*b)/T}):(n=u=>{let p=Math.exp(-u*e),m=(u-r)*e+1;return-Y1+p*m},i=u=>{let p=Math.exp(-u*e),m=(r-u)*(e*e);return p*m});let s=5/e,c=yW(n,i,s);if(e=tr(e),isNaN(c))return{stiffness:Ht.stiffness,damping:Ht.damping,duration:e};{let u=Math.pow(c,2)*o;return{stiffness:u,damping:a*2*Math.sqrt(o*u),duration:e}}}var xW=["duration","bounce"],wW=["stiffness","damping","mass"];function T9(e,t){return t.some(r=>e[r]!==void 0)}function _W(e){let t={velocity:Ht.velocity,stiffness:Ht.stiffness,damping:Ht.damping,mass:Ht.mass,isResolvedFromDuration:!1,...e};if(!T9(e,wW)&&T9(e,xW))if(t.velocity=0,e.visualDuration){let r=e.visualDuration,o=2*Math.PI/(r*1.2),n=o*o,i=2*mr(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:Ht.mass,stiffness:n,damping:i}}else{let r=bW({...e,velocity:0});t={...t,...r,mass:Ht.mass},t.isResolvedFromDuration=!0}return t}function Pl(e=Ht.visualDuration,t=Ht.bounce){let r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:o,restDelta:n}=r,i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:c,damping:u,mass:p,duration:m,velocity:h,isResolvedFromDuration:g}=_W({...r,velocity:-_r(r.velocity||0)}),b=h||0,T=u/(2*Math.sqrt(c*p)),I=a-i,P=_r(Math.sqrt(c/p)),C=Math.abs(I)<5;o||(o=C?Ht.restSpeed.granular:Ht.restSpeed.default),n||(n=C?Ht.restDelta.granular:Ht.restDelta.default);let k,A,z,N,B,G;if(T<1)z=Q1(P,T),N=(b+T*P*I)/z,k=W=>{let ue=Math.exp(-T*P*W);return a-ue*(N*Math.sin(z*W)+I*Math.cos(z*W))},B=T*P*N+I*z,G=T*P*I-N*z,A=W=>Math.exp(-T*P*W)*(B*Math.sin(z*W)+G*Math.cos(z*W));else if(T===1){k=ue=>a-Math.exp(-P*ue)*(I+(b+P*I)*ue);let W=b+P*I;A=ue=>Math.exp(-P*ue)*(P*W*ue-b)}else{let W=P*Math.sqrt(T*T-1);k=$e=>
4{let Fe=Math.exp(-T*P*$e),pe=Math.min(W*$e,300);return a-Fe*((b+T*P*I)*Math.sinh(pe)+W*I*Math.cosh(pe))/W};let ue=(b+T*P*I)/W,de=T*P*ue-I*W,ft=T*P*I-ue*W;A=$e=>{let Fe=Math.exp(-T*P*$e),pe=Math.min(W*$e,300);return Fe*(de*Math.sinh(pe)+ft*Math.cosh(pe))}}let F={calculatedDuration:g&&m||null,velocity:W=>tr(A(W)),next:W=>{if(!g&&T<1){let de=Math.exp(-T*P*W),ft=Math.sin(z*W),$e=Math.cos(z*W),Fe=a-de*(N*ft+I*$e),pe=tr(de*(B*ft+G*$e));return s.done=Math.abs(pe)<=o&&Math.abs(a-Fe)<=n,s.value=s.done?a:Fe,s}let ue=k(W);if(g)s.done=W>=m;else{let de=tr(A(W));s.done=Math.abs(de)<=o&&Math.abs(a-ue)<=n}return s.value=s.done?a:ue,s},toString:()=>{let W=Math.min($l(F),2e4),ue=eh(de=>F.next(W*de).value,W,30);return W+"ms "+ue},toTransition:()=>{}};return F}Pl.applyToOptions=e=>{let t=I9(e,100,Pl);return e.ease=t.ease,e.duration=tr(t.duration),e.type="keyframes",e};var kW=5;function th(e,t,r){let o=Math.max(t-kW,0);return Qu(r-e(o),t-o)}function pd({keyframes:e,velocity:t=0,power:r=.8,timeConstant:o=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:c,restDelta:u=.5,restSpeed:p}){let m=e[0],h={done:!1,value:m},g=G=>s!==void 0&&G<s||c!==void 0&&G>c,b=G=>s===void 0?c:c===void 0||Math.abs(s-G)<Math.abs(c-G)?s:c,T=r*t,I=m+T,P=a===void 0?I:a(I);P!==I&&(T=P-m);let C=G=>-T*Math.exp(-G/o),k=G=>P+C(G),A=G=>{let F=C(G),W=k(G);h.done=Math.abs(F)<=u,h.value=h.done?P:W},z,N,B=G=>{g(h.value)&&(z=G,N=Pl({keyframes:[h.value,b(h.value)],velocity:th(k,G,h.value),damping:n,stiffness:i,restDelta:u,restSpeed:p}))};return B(0),{calculatedDuration:null,next:G=>{let F=!1;return!N&&z===void 0&&(F=!0,A(G),B(G)),z!==void 0&&G>=z?N.next(G-z):(!F&&A(G),h)}}}function SW(e,t,r){let o=[],n=r||Br.mix||Qf,i=e.length-1;for(let a=0;a<i;a++){let s=n(e[a],e[a+1]);if(t){let c=Array.isArray(t)?t[a]||Gt:t;s=ao(c,s)}o.push(s)}return o}function $9(e,t,{clamp:r=!0,ease:o,mixer:n}={}){let i=e.length;if(jn(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=SW(t,o,n),c=s.length,u=p=>{if(a&&p<e[0])return t[0];let m=0;if(c>1)for(;m<e.length-2&&!(p<e[m+1]);m++);let h=$o(e[m],e[m+1],p);return s[m](h)};return r?p=>u(mr(e[0],e[i-1],p)):u}function P9(e,t){let r=e[e.length-1];for(let o=1;o<=t;o++){let n=$o(0,t,o);e.push(ct(r,1,n))}}function C9(e){let t=[0];return P9(t,e.length-1),t}function E9(e,t){return e.map(r=>r*t)}function IW(e,t){return e.map(()=>t||id).splice(0,e.length-1)}function ds({duration:e=300,keyframes:t,times:r,ease:o="easeInOut"}){let n=Z1(o)?o.map(Gf):Gf(o),i={done:!1,value:t[0]},a=E9(r&&r.length===t.length?r:C9(t),e),s=$9(a,t,{ease:Array.isArray(n)?n:IW(t,n)});return{calculatedDuration:e,next:c=>(i.value=s(c),i.done=c>=e,i)}}var TW=e=>e!==null;function sa(e,{repeat:t,repeatType:r="loop"},o,n=1){let i=e.filter(TW),s=n<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}var $W={decay:pd,inertia:pd,tween:ds,keyframes:ds,spring:Pl};function rh(e){typeof e.type=="string"&&(e.type=$W[e.type])}var la=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 PW=e=>e/100,ui=class extends la{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!==qt.now()&&this.tick(qt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},Po.mainThread++,this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){let{options:t}=this;rh(t);let{type:r=ds,repeat:o=0,repeatDelay:n=0,repeatType:i,velocity:a=0}=t,{keyframes:s}=t,c=r||ds;c!==ds&&typeof s[0]!="number"&&(this.mixKeyframes=ao(PW,Qf(s[0],s[1])),s=[0,100]);let u=c({...t,keyframes:s});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=$l(u));let{calculatedDuration:p}=u;this.calculatedDuration=p,this.resolvedDuration=p+n,this.totalDuration=this.resolvedDuration*(o+1)-n,this.generator=u}updateTime(t){let r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){let{generator:o,totalDuration:n,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);let{delay:u=0,keyframes:p,repeat:m,repeatType:h,repeatDelay:g,type:b,onUpdate:T,finalKeyframe:I}=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 P=this.currentTime-u*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?P<0:P>n;this.currentTime=Math.max(P,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let k=this.currentTime,A=o;if(m){let G=Math.min(this.currentTime,n)/s,F=Math.floor(G),W=G%1;!W&&G>=1&&(W=1),W===1&&F--,F=Math.min(F,m+1),F%2&&(h==="reverse"?(W=1-W,g&&(W-=g/s)):h==="mirror"&&(A=a)),k=mr(0,1,W)*s}let z;C?(this.delayState.value=p[0],z=this.delayState):z=A.next(k),i&&!C&&(z.value=i(z.value));let{done:N}=z;!C&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return B&&b!==pd&&(z.value=sa(p,this.options,I,this.speed)),T&&T(z.value),B&&this.finish(),z}then(t,r){return this.finished.then(t,r)}get duration(){return _r(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+_r(t)}get time(){return _r(this.currentTime)}set time(t){t=tr(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;
4if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let r=this.generator.next(t).value;return th(o=>this.generator.next(o).value,t,r)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;r&&this.driver&&this.updateTime(qt.now()),this.playbackSpeed=t,r&&this.driver&&(this.time=_r(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=S9,startTime:r}=this.options;this.driver||(this.driver=t(n=>this.tick(n))),this.options.onPlay?.();let o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=r??o),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(qt.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,Po.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 z9(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ps=e=>e*180/Math.PI,ex=e=>{let t=ps(Math.atan2(e[1],e[0]));return tx(t)},CW={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ex,rotateZ:ex,skewX:e=>ps(Math.atan(e[1])),skewY:e=>ps(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},tx=e=>(e=e%360,e<0&&(e+=360),e),A9=ex,M9=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),R9=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),EW={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:M9,scaleY:R9,scale:e=>(M9(e)+R9(e))/2,rotateX:e=>tx(ps(Math.atan2(e[6],e[5]))),rotateY:e=>tx(ps(Math.atan2(-e[2],e[0]))),rotateZ:A9,rotate:A9,skewX:e=>ps(Math.atan(e[4])),skewY:e=>ps(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nh(e){return e.includes("scale")?1:0}function oh(e,t){if(!e||e==="none")return nh(t);let r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),o,n;if(r)o=EW,n=r;else{let s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=CW,n=s}if(!n)return nh(t);let i=o[t],a=n[1].split(",").map(zW);return typeof i=="function"?i(a):a[i]}var N9=(e,t)=>{let{transform:r="none"}=getComputedStyle(e);return oh(r,t)};function zW(e){return parseFloat(e.trim())}var zo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Un=new Set(zo);var rx=e=>e===Co||e===_e,AW=new Set(["x","y","z"]),MW=zo.filter(e=>!AW.has(e));function D9(e){let t=[];return MW.forEach(r=>{let o=e.getValue(r);o!==void 0&&(t.push([r,o.get()]),o.set(r.startsWith("scale")?1:0))}),t}var di={width:({x:e},{paddingLeft:t="0",paddingRight:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="border-box"?n:n-parseFloat(t)-parseFloat(r)},height:({y:e},{paddingTop:t="0",paddingBottom:r="0",boxSizing:o})=>{let n=e.max-e.min;return o==="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")};di.translateX=di.x;di.translateY=di.y;var ms=new Set,nx=!1,ox=!1,ix=!1;function O9(){if(ox){let e=Array.from(ms).filter(o=>o.needsMeasurement),t=new Set(e.map(o=>o.element)),r=new Map;t.forEach(o=>{let n=D9(o);n.length&&(r.set(o,n),o.render())}),e.forEach(o=>o.measureInitialState()),t.forEach(o=>{o.render();let n=r.get(o);n&&n.forEach(([i,a])=>{o.getValue(i)?.set(a)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}
4ox=!1,nx=!1,ms.forEach(e=>e.complete(ix)),ms.clear()}function L9(){ms.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ox=!0)})}function j9(){ix=!0,L9(),O9(),ix=!1}var ca=class{constructor(t,r,o,n,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=o,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ms.add(this),nx||(nx=!0,Je.read(L9),Je.resolveKeyframes(O9))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:o,motionValue:n}=this;if(t[0]===null){let i=n?.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(o&&r){let s=o.readValue(r,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),n&&i===void 0&&n.set(t[0])}z9(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ms.delete(this)}cancel(){this.state==="scheduled"&&(ms.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}};var U9=e=>e.startsWith("--");function ih(e,t,r){U9(t)?e.style.setProperty(t,r):e.style[t]=r}var B9={};function ah(e,t){let r=Yu(e);return()=>B9[t]??r()}var F9=ah(()=>window.ScrollTimeline!==void 0,"scrollTimeline");var sh=ah(()=>{try{document.createElement("div").animate({opacity:0}
4,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");var fs=([e,t,r,o])=>`cubic-bezier(${e}, ${t}, ${r}, ${o})`;var ax={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:fs([0,.65,.55,1]),circOut:fs([.55,0,1,.45]),backIn:fs([.31,.01,.66,-.59]),backOut:fs([.33,1.53,.69,.99])};function sx(e,t){if(e)return typeof e=="function"?sh()?eh(e,t):"ease-out":ad(e)?fs(e):Array.isArray(e)?e.map(r=>sx(r,t)||ax.easeOut):ax[e]}function Z9(e,t,r,{delay:o=0,duration:n=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:c}={},u=void 0){let p={[t]:r};c&&(p.offset=c);let m=sx(s,n);Array.isArray(m)&&(p.easing=m),yn.value&&Po.waapi++;let h={delay:o,duration:n,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};u&&(h.pseudoElement=u);let g=e.animate(p,h);return yn.value&&g.finished.finally(()=>{Po.waapi--}),g}function lh(e){return typeof e=="function"&&"applyToOptions"in e}function V9({type:e,...t}){return lh(e)&&sh()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}var Cl=class extends la{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;let{element:r,name:o,keyframes:n,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,jn(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");let u=V9(t);this.animation=Z9(r,o,n,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let p=sa(n,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(p),ih(r,o,p),this.animation.cancel()}c?.(),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 _r(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+_r(t)}get time(){return _r(Number(this.animation.currentTime)||0)}set time(t){let r=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tr(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:o,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&F9()?(this.animation.timeline=t,r&&(this.animation.rangeStart=r),o&&(this.animation.rangeEnd=o),Gt):n(this)}};var G9={anticipate:td,backInOut:ed,circInOut:od};function RW(e){return e in G9}function q9(e){typeof e.ease=="string"&&RW(e.ease)&&(e.ease=G9[e.ease])}var lx=10,ch=class extends Cl{constructor(t){q9(t),rh(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:r,onUpdate:o,onComplete:n,element:i,...a}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}let s=new ui({...a,autoplay:!1}),c=Math.max(lx,qt.now()-this.startTime),u=mr(0,lx,c-lx),p=s.sample(c).value,{name:m}=this.options;i&&m&&ih(i,m,p),r.setWithVelocity(s.sample(Math.max(0,c-u)).value,p,u),s.stop()}};var cx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fr.test(e)||e==="0")&&!e.startsWith("url("));function NW(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 H9(e,t,r,o){let n=e[0];if(n===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],a=cx(n,t),s=cx(i,t);return si(a===s,`You are trying to animate ${t} from "${n}" to "${i}". "${a?i:n}" is not an animatable value.`,"value-not-animatable"),!a||!s?!1:NW(e)||(r==="spring"||lh(r))&&o}function md(e){e.duration=0,e.type="keyframes"}var uh=new Set(["opacity","clipPath","filter","transform"]);var DW=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function W9(e){for(let t=0;t<e.length;
4t++)if(typeof e[t]=="string"&&DW.test(e[t]))return!0;return!1}var OW=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),LW=Yu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function J9(e){let{motionValue:t,name:r,repeatDelay:o,repeatType:n,damping:i,type:a,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:p}=t.owner.getProps();return LW()&&r&&(uh.has(r)||OW.has(r)&&W9(s))&&(r!=="transform"||!p)&&!u&&!o&&n!=="mirror"&&i!==0&&a!=="inertia"}var jW=40,dh=class extends la{constructor({autoplay:t=!0,delay:r=0,type:o="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:c,motionValue:u,element:p,...m}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=qt.now();let h={autoplay:t,delay:r,type:o,repeat:n,repeatDelay:i,repeatType:a,name:c,motionValue:u,element:p,...m},g=p?.KeyframeResolver||ca;this.keyframeResolver=new g(s,(b,T,I)=>this.onKeyframesResolved(b,T,h,!I),c,u,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,o,n){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:c,isHandoff:u,onUpdate:p}=o;this.resolvedAt=qt.now();let m=!0;H9(t,i,a,s)||(m=!1,(Br.instantAnimations||!c)&&p?.(sa(t,o,r)),t[0]=t[t.length-1],md(o),o.repeat=0);let g={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>jW?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...o,keyframes:t},b=m&&!u&&J9(g),T=g.motionValue?.owner?.current,I;if(b)try{I=new ch({...g,element:T})}catch{I=new ui(g)}else I=new ui(g);I.finished.then(()=>{this.notifyFinished()}).catch(Gt),this.pendingTimeline&&(this.stopTimeline=I.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=I}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(),j9()),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,o=0,n=1){let i=Array.from(e).sort((u,p)=>u.sortNodePosition(p)).indexOf(t),a=e.size,s=(a-1)*o;return typeof r=="function"?r(i,a):n===1?i*o:s-i*o}var UW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function BW(e){let t=UW.exec(e);if(!t)return[,];let[,r,o,n]=t;return[`--${r??o}`,n]}var FW=4;function ux(e,t,r=1){jn(r<=FW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[o,n]=BW(e);if(!o)return;let i=window.getComputedStyle(t).getPropertyValue(o);if(i){let a=i.trim();return Ju(a)?parseFloat(a):a}return kl(n)?ux(n,t,r+1):n}var ZW={type:"spring",stiffness:500,damping:25,restSpeed:10},VW=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),GW={type:"keyframes",duration:.8},qW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},K9=(e,{keyframes:t})=>t.length>2?GW:Un.has(e)?e.startsWith("scale")?VW(t[1]):ZW:qW;function mh(e,t){if(e?.inherit&&t){let{inherit:r,...o}=e;return{...t,...o}}return e}function El(e,t){let r=e?.[t]??e?.default??e;return r!==e?mh(r,e):r}var HW=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function X9(e){for(let t in e)if(!HW.has(t))return!0;return!1}var hs=(e,t,r,o={},n,i)=>a=>{let s=El(o,e)||{},c=s.delay||o.delay||0,{elapsed:u=0}=o;u=u-tr(c);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:n};X9(s)||Object.assign(p,K9(e,p)),p.duration&&(p.duration=tr(p.duration)),p.repeatDelay&&(p.repeatDelay=tr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let m=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(md(p),p.delay===0&&(m=!0)),(Br.instantAnimations||Br.skipAnimations||n?.shouldSkipAnimations)&&(m=!0,md(p),p.delay=0),p.allowFlatten=!s.type&&!s.ease,m&&!i&&t.get()!==void 0){let h=sa(p.keyframes,s);if(h!==void 0){Je.update(()=>{p.onUpdate(h),p.onComplete()});return}}return s.isSync?new ui(p):new dh(p)};function Y9(e){let t=[{},{}];
4return e?.values.forEach((r,o)=>{t[0][o]=r.get(),t[1][o]=r.getVelocity()}),t}function gs(e,t,r,o){if(typeof t=="function"){let[n,i]=Y9(o);t=t(r!==void 0?r:e.custom,n,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[n,i]=Y9(o);t=t(r!==void 0?r:e.custom,n,i)}return t}function bn(e,t,r){let o=e.getProps();return gs(o,t,r!==void 0?r:o.custom,e)}var fh=new Set(["width","height","top","left","right","bottom",...zo]);var Q9=30,WW=e=>!isNaN(parseFloat(e)),eP={current:void 0},dx=class{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{let n=qt.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=qt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=WW(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 li);let o=this.events[t].add(r);return t==="change"?()=>{o(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:o}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,o){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-o}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 eP.current&&eP.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=qt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Q9)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,Q9);return Qu(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 lo(e,t){return new dx(e,t)}var fd=e=>Array.isArray(e);function JW(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,lo(r))}function KW(e){return fd(e)?e[e.length-1]||0:e}function tP(e,t){let r=bn(e,t),{transitionEnd:o={},transition:n={},...i}=r||{};i={...i,...o};for(let a in i){let s=KW(i[a]);JW(e,a,s)}}var _t=e=>!!(e&&e.getVelocity);function rP(e){return!!(_t(e)&&e.add)}function zl(e,t){let r=e.getValue("willChange");if(rP(r))return r.add(t);if(!r&&Br.WillChange){let o=new Br.WillChange("auto");e.addValue("willChange",o),o.add(t)}}function Al(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}var nP="framerAppearId",hd="data-"+Al(nP);function hh(e){return e.props[hd]}function XW({protectedKeys:e,needsAnimating:t},r){let o=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,o}function gh(e,t,{delay:r=0,transitionOverride:o,type:n}={}){let{transition:i,transitionEnd:a,...s}=t,c=e.getDefaultTransition();i=i?mh(i,c):c;let u=i?.reduceMotion;o&&(i=o);let p=[],m=n&&e.animationState&&e.animationState.getState()[n];for(let h in s){let g=e.getValue(h,e.latestValues[h]??null),b=s[h];if(b===void 0||m&&XW(m,h))continue;let T={delay:r,...El(i||{},h)},I=g.get();
4if(I!==void 0&&!g.isAnimating()&&!Array.isArray(b)&&b===I&&!T.velocity){Je.update(()=>g.set(b));continue}let P=!1;if(window.MotionHandoffAnimation){let A=hh(e);if(A){let z=window.MotionHandoffAnimation(A,h,Je);z!==null&&(T.startTime=z,P=!0)}}zl(e,h);let C=u??e.shouldReduceMotion;g.start(hs(h,g,b,C&&fh.has(h)?{type:!1}:T,e,P));let k=g.animation;k&&p.push(k)}if(a){let h=()=>Je.update(()=>{a&&tP(e,a)});p.length?Promise.all(p).then(h):h()}return p}function vh(e,t,r={}){let o=bn(e,t,r.type==="exit"?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(n=r.transitionOverride);let i=o?()=>Promise.all(gh(e,o,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:u=0,staggerChildren:p,staggerDirection:m}=n;return YW(e,t,c,u,p,m,r)}:()=>Promise.resolve(),{when:s}=n;if(s){let[c,u]=s==="beforeChildren"?[i,a]:[a,i];return c().then(()=>u())}else return Promise.all([i(),a(r.delay)])}function YW(e,t,r=0,o=0,n=0,i=1,a){let s=[];for(let c of e.variantChildren)c.notify("AnimationStart",t),s.push(vh(c,t,{...a,delay:r+(typeof o=="function"?0:o)+ph(e.variantChildren,c,o,n,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(s)}function oP(e,t,r={}){e.notify("AnimationStart",t);let o;if(Array.isArray(t)){let n=t.map(i=>vh(e,i,r));o=Promise.all(n)}else if(typeof t=="string")o=vh(e,t,r);else{let n=typeof t=="function"?bn(e,t,r.custom):t;o=Promise.all(gh(e,n,r))}return o.then(()=>{e.notify("AnimationComplete",t)})}var iP={test:e=>e==="auto",parse:e=>e};var yh=e=>t=>t.test(e);var px=[Co,_e,Ar,so,H1,q1,iP],mx=e=>px.find(yh(e));function aP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Xu(e):!0}var QW=new Set(["brightness","contrast","saturate","opacity"]);function eJ(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[o]=r.match(Sl)||[];if(!o)return e;let n=r.replace(o,""),i=QW.has(t)?1:0;return o!==r&&(i*=100),t+"("+i+n+")"}var tJ=/\b([a-z-]*)\(.*?\)/gu,gd={...fr,getAnimatableNone:e=>{let t=e.match(tJ);return t?t.map(eJ).join(" "):e}};var vd={...fr,getAnimatableNone:e=>{let t=fr.parse(e);return fr.createTransformer(e)(t.map(o=>typeof o=="number"?0:typeof o=="object"?{...o,alpha:1}:o))}};var fx={...Co,transform:Math.round};var sP={rotate:so,rotateX:so,rotateY:so,rotateZ:so,scale:cd,scaleX:cd,scaleY:cd,scaleZ:cd,skew:so,skewX:so,skewY:so,distance:_e,translateX:_e,translateY:_e,translateZ:_e,x:_e,y:_e,z:_e,perspective:_e,transformPerspective:_e,opacity:ci,originX:Kf,originY:Kf,originZ:_e};var Ml={borderWidth:_e,borderTopWidth:_e,borderRightWidth:_e,borderBottomWidth:_e,borderLeftWidth:_e,borderRadius:_e,borderTopLeftRadius:_e,borderTopRightRadius:_e,borderBottomRightRadius:_e,borderBottomLeftRadius:_e,width:_e,maxWidth:_e,height:_e,maxHeight:_e,top:_e,right:_e,bottom:_e,left:_e,inset:_e,insetBlock:_e,insetBlockStart:_e,insetBlockEnd:_e,insetInline:_e,insetInlineStart:_e,insetInlineEnd:_e,padding:_e,paddingTop:_e,paddingRight:_e,paddingBottom:_e,paddingLeft:_e,paddingBlock:_e,paddingBlockStart:_e,paddingBlockEnd:_e,paddingInline:_e,paddingInlineStart:_e,paddingInlineEnd:_e,margin:_e,marginTop:_e,marginRight:_e,marginBottom:_e,marginLeft:_e,marginBlock:_e,marginBlockStart:_e,marginBlockEnd:_e,marginInline:_e,marginInlineStart:_e,marginInlineEnd:_e,fontSize:_e,backgroundPositionX:_e,backgroundPositionY:_e,...sP,zIndex:fx,fillOpacity:ci,strokeOpacity:ci,numOctaves:fx};var rJ={...Ml,color:Ut,backgroundColor:Ut,outlineColor:Ut,fill:Ut,stroke:Ut,borderColor:Ut,borderTopColor:Ut,borderRightColor:Ut,borderBottomColor:Ut,borderLeftColor:Ut,filter:gd,WebkitFilter:gd,mask:vd,WebkitMask:vd},bh=e=>rJ[e];var nJ=new Set([gd,vd]);function xh(e,t){let r=bh(e);return nJ.has(r)||(r=fr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var oJ=new Set(["auto","none","0"]);function lP(e,t,r){let o=0,n;for(;o<e.length&&!n;){let i=e[o];typeof i=="string"&&!oJ.has(i)&&aa(i).values.length&&(n=e[o]),o++}if(n&&r)for(let i of t)e[i]=xh(r,n)}var wh=class extends ca{constructor(t,r,o,n,i){super(t,r,o,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:o}=this;if(!r||!r.current)return;super.readKeyframes();for(let p=0;p<t.length;p++){let m=t[p];if(typeof m=="string"&&(m=m.trim(),kl(m))){let h=ux(m,r.current);h!==void 0&&(t[p]=h),p===t.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!fh.has(o)||t.length!==2)return;let[n,i]=t,a=mx(n),s=mx(i),c=V1(n),u=V1(i);if(c!==u&&di[o]){this.needsMeasurement=!0;return}if(a!==s)if(rx(a)&&rx(s))for(let p=0;p<t.length;p++){let m=t[p];typeof m=="string"&&(t[p]=parseFloat(m))}else di[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,o=[];for(let n=0;n<t.length;n++)(t[n]===null||aP(t[n]))&&o.push(n);o.length&&lP(t,o,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:o}=this;if(!t||!t.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=di[o](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let n=r[r.length-1];n!==void 0&&t.getValue(o,n).jump(n,!1)}measureEndState(){let{element:t,name:r,unresolvedKeyframes:o}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let i=o.length-1,a=o[i];o[i]=di[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
4h(([s,c])=>{t.getValue(s).set(c)}),this.resolveNoneKeyframes()}};function _h(e,t,r){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;t&&(o=t.current);let n=r?.[e]??o.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(o=>o!=null)}var kh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function vs(e){return Ku(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var{schedule:ys,cancel:iJ}=qf(queueMicrotask,!1);var Bn={x:!1,y:!1};function Sh(){return Bn.x||Bn.y}function hx(e){return e==="x"||e==="y"?Bn[e]?null:(Bn[e]=!0,()=>{Bn[e]=!1}):Bn.x||Bn.y?null:(Bn.x=Bn.y=!0,()=>{Bn.x=Bn.y=!1})}function Ih(e,t){let r=_h(e),o=new AbortController,n={passive:!0,...t,signal:o.signal};return[r,n,()=>o.abort()]}function aJ(e){return!(e.pointerType==="touch"||Sh())}function gx(e,t,r={}){let[o,n,i]=Ih(e,r);return o.forEach(a=>{let s=!1,c=!1,u,p=()=>{a.removeEventListener("pointerleave",b)},m=I=>{u&&(u(I),u=void 0),p()},h=I=>{s=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,m(I))},g=()=>{s=!0,window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",h,n)},b=I=>{if(I.pointerType!=="touch"){if(s){c=!0;return}m(I)}},T=I=>{if(!aJ(I))return;c=!1;let P=t(a,I);typeof P=="function"&&(u=P,a.addEventListener("pointerleave",b,n))};a.addEventListener("pointerenter",T,n),a.addEventListener("pointerdown",g,n)}),i}var vx=(e,t)=>t?e===t?!0:vx(e,t.parentElement):!1;var bs=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;var sJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function yx(e){return sJ.has(e.tagName)||e.isContentEditable===!0}var lJ=new Set(["INPUT","SELECT","TEXTAREA"]);function bx(e){return lJ.has(e.tagName)||e.isContentEditable===!0}var Rl=new WeakSet;function cP(e){return t=>{t.key==="Enter"&&e(t)}}function xx(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}var uP=(e,t)=>{let r=e.currentTarget;if(!r)return;let o=cP(()=>{if(Rl.has(r))return;xx(r,"down");let n=cP(()=>{xx(r,"up")}),i=()=>xx(r,"cancel");r.addEventListener("keyup",n,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",o,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",o),t)};function dP(e){return bs(e)&&!Sh()}var pP=new WeakSet;function wx(e,t,r={}){let[o,n,i]=Ih(e,r),a=s=>{let c=s.currentTarget;if(!dP(s)||pP.has(s))return;Rl.add(c),r.stopPropagation&&pP.add(s);let u=t(c,s),p=(g,b)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",h),Rl.has(c)&&Rl.delete(c),dP(g)&&typeof u=="function"&&u(g,{success:b})},m=g=>{p(g,c===window||c===document||r.useGlobalTarget||vx(c,g.target))},h=g=>{p(g,!1)};window.addEventListener("pointerup",m,n),window.addEventListener("pointercancel",h,n)};return o.forEach(s=>{(r.useGlobalTarget?window:s).addEventListener("pointerdown",a,n),vs(s)&&(s.addEventListener("focus",u=>uP(u,n)),!yx(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function Nl(e){return Ku(e)&&"ownerSVGElement"in e}var Th=new WeakMap,$h,mP=(e,t,r)=>(o,n)=>n&&n[0]?n[0][e+"Size"]:Nl(o)&&"getBBox"in o?o.getBBox()[t]:o[r],cJ=mP("inline","width","offsetWidth"),uJ=mP("block","height","offsetHeight");function dJ({target:e,borderBoxSize:t}){Th.get(e)?.forEach(r=>{r(e,{get width(){return cJ(e,t)},get height(){return uJ(e,t)}})})}function pJ(e){e.forEach(dJ)}function mJ(){typeof ResizeObserver>"u"||($h=new ResizeObserver(pJ))}function fP(e,t){$h||mJ();let r=_h(e);return r.forEach(o=>{let n=Th.get(o);n||(n=new Set,Th.set(o,n)),n.add(t),$h?.observe(o)}),()=>{r.forEach(o=>{let n=Th.get(o);n?.delete(t),n?.size||$h?.unobserve(o)})}}var Ph=new Set,Dl;function fJ(){Dl=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ph.forEach(t=>t(e))},window.addEventListener("resize",Dl)}function hP(e){return Ph.add(e),Dl||fJ(),()=>{Ph.delete(e),!Ph.size&&typeof Dl=="function"&&(window.removeEventListener("resize",Dl),Dl=void 0)}}function Ch(e,t){return typeof e=="function"?hP(e):fP(e,t)}function gP(e){return Nl(e)&&e.tagName==="svg"}var hJ=[...px,Ut,fr],vP=e=>hJ.find(yh(e));var _x=()=>({translate:0,scale:1,origin:0,originPoint:0}),ua=()=>({x:_x(),y:_x()}),kx=()=>({min:0,max:0}),Bt=()=>({x:kx(),y:kx()});var yP=new WeakMap;function pi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ao(e){return typeof e=="string"||Array.isArray(e)}var Eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yd=["initial",...Eh];function da(e){return pi(e.animate)||yd.some(t=>Ao(e[t]))}function bd(e){return!!(da(e)||e.variants)}function bP(e,t,r){for(let o in t){let n=t[o],i=r[o];if(_t(n))e.addValue(o,n);else if(_t(i))e.addValue(o,lo(n,{owner:e}));else if(i!==n)if(e.hasValue(o)){let a=e.getValue(o);a.liveStyle===!0?a.jump(n):a.hasAnimated||a.set(n)}else{let a=e.getStaticValue(o);e.addValue(o,lo(a!==void 0?a:n,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var xd={current:null},zh={current:!1};var gJ=typeof window<"u";
4function xP(){if(zh.current=!0,!!gJ)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xd.current=e.matches;e.addEventListener("change",t),t()}else xd.current=!1}var wP=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Ah={};function _d(e){Ah=e}function Sx(){return Ah}var wd=class{scrapeMotionValuesFromProps(t,r,o){return{}}constructor({parent:t,props:r,presenceContext:o,reducedMotionConfig:n,skipAnimations:i,blockInitialAnimation:a,visualState:s},c={}){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=ca,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=qt.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Je.render(this.render,!1,!0))};let{latestValues:u,renderState:p}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=r.initial?{...u}:{},this.renderState=p,this.parent=t,this.props=r,this.presenceContext=o,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!a,this.isControllingVariants=da(r),this.isVariantNode=bd(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:m,...h}=this.scrapeMotionValuesFromProps(r,{},this);for(let g in h){let b=h[g];u[g]!==void 0&&_t(b)&&b.set(u[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,yP.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,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zh.current||xP(),this.shouldReduceMotion=xd.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(),an(this.notifyUpdate),an(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&&uh.has(t)&&this.current instanceof HTMLElement){let{factory:a,keyframes:s,times:c,ease:u,duration:p}=r.accelerate,m=new Cl({element:this.current,name:t,keyframes:s,times:c,ease:u,duration:tr(p)}),h=a(m);this.valueSubscriptions.set(t,()=>{h(),m.cancel()});return}let o=Un.has(t);o&&this.onBindTransform&&this.onBindTransform();let n=r.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Je.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{n(),i&&i(),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 Ah){let r=Ah[t];if(!r)continue;let{isEnabled:o,Feature:n}=r;if(!this.features[t]&&n&&o(this.props)&&(this.features[t]=new n(this)),this.features[t]){let i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Bt()}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;
4for(let o=0;o<wP.length;o++){let n=wP[o];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i="on"+n,a=t[i];a&&(this.propEventSubscriptions[n]=this.on(n,a))}this.prevMotionValues=bP(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 o=this.values.get(t);r!==o&&(o&&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 o=this.values.get(t);return o===void 0&&r!==void 0&&(o=lo(r===null?void 0:r,{owner:this}),this.addValue(t,o)),o}readValue(t,r){let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(Ju(o)||Xu(o))?o=parseFloat(o):!vP(o)&&fr.test(r)&&(o=xh(t,r)),this.setBaseTarget(t,_t(o)?o.get():o)),_t(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){let{initial:r}=this.props,o;if(typeof r=="string"||typeof r=="object"){let i=gs(this.props,r,this.presenceContext?.custom);i&&(o=i[t])}if(r&&o!==void 0)return o;let n=this.getBaseTargetFromProps(this.props,t);return n!==void 0&&!_t(n)?n:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new li),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){ys.render(this.render)}};var Ol=class extends wd{constructor(){super(...arguments),this.KeyframeResolver=wh}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){let o=t.style;return o?o[r]:void 0}removeValueFromRenderState(t,{vars:r,style:o}){delete r[t],delete o[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;_t(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};var hr=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function kd({top:e,left:t,right:r,bottom:o}){return{x:{min:t,max:r},y:{min:e,max:o}}}function Ix({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Tx(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:o.y,right:o.x}}function $x(e){return e===void 0||e===1}function Mh({scale:e,scaleX:t,scaleY:r}){return!$x(e)||!$x(t)||!$x(r)}function mi(e){return Mh(e)||Px(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Px(e){return _P(e.x)||_P(e.y)}function _P(e){return e&&e!=="0%"}function Sd(e,t,r){let o=e-r,n=t*o;return r+n}function kP(e,t,r,o,n){return n!==void 0&&(e=Sd(e,n,o)),Sd(e,r,o)+t}function Cx(e,t=0,r=1,o,n){e.min=kP(e.min,t,r,o,n),e.max=kP(e.max,t,r,o,n)}function Ex(e,{x:t,y:r}){Cx(e.x,t.translate,t.scale,t.originPoint),Cx(e.y,r.translate,r.scale,r.originPoint)}var SP=.999999999999,IP=1.0000000000001;function PP(e,t,r,o=!1){let n=r.length;if(!n)return;t.x=t.y=1;let i,a;for(let s=0;s<n;s++){i=r[s],a=i.projectionDelta;let{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(Fn(e.x,-i.scroll.offset.x),Fn(e.y,-i.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Ex(e,a)),o&&mi(i.latestValues)&&Id(e,i.latestValues,i.layout?.layoutBox))}t.x<IP&&t.x>SP&&(t.x=1),t.y<IP&&t.y>SP&&(t.y=1)}function Fn(e,t){e.min+=t,e.max+=t}function TP(e,t,r,o,n=.5){let i=ct(e.min,e.max,n);Cx(e,t,r,i,o)}function $P(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function Id(e,t,r){let o=r??e;TP(e.x,$P(t.x,o.x),t.scaleX,t.scale,t.originX),TP(e.y,$P(t.y,o.y),t.scaleY,t.scale,t.originY)}function Rh(e,t){return kd(Tx(e.getBoundingClientRect(),t))}function zx(e,t,r){let o=Rh(e,r),{scroll:n}=t;return n&&(Fn(o.x,n.offset.x),Fn(o.y,n.offset.y)),o}var vJ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yJ=zo.length;function CP(e,t,r){let o="",n=!0;for(let i=0;i<yJ;i++){let a=zo[i],s=e[a];if(s===void 0)continue;let c=!0;if(typeof s=="number")c=s===(a.startsWith("scale")?1:0);else{let u=parseFloat(s);c=a.startsWith("scale")?u===1:u===0}if(!c||r){let u=kh(s,Ml[a]);if(!c){n=!1;let p=vJ[a]||a;o+=`${p}(${u}) `}r&&(t[a]=u)}}return o=o.trim(),r?o=r(t,n?"":o):n&&(o="none"),o}function xs(e,t,r){let{style:o,vars:n,transformOrigin:i}=e,a=!1,s=!1;for(let c in t){let u=t[c];if(Un.has(c)){a=!0;continue}else if(Wf(c)){n[c]=u;continue}else{let p=kh(u,Ml[c]);c.startsWith("origin")?(s=!0,i[c]=p):o[c]=p}}if(t.transform||(a||r?o.transform=CP(t,e.transform,r):o.transform&&(o.transform="none")),s){let{originX:c="50%",originY:u="50%",originZ:p=0}=i;o.transformOrigin=`${c} ${u} ${p}`}}function Nh(e,{style:t,vars:r},o,n){let i=e.style,a;for(a in t)i[a]=t[a];n?.applyProjectionStyles(i,o);for(a in r)i.setProperty(a,r[a])}function EP(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ll={correct:(e,t)=>
4{if(!t.target)return e;if(typeof e=="string")if(_e.test(e))e=parseFloat(e);else return e;let r=EP(e,t.target.x),o=EP(e,t.target.y);return`${r}% ${o}%`}};var zP={correct:(e,{treeScale:t,projectionDelta:r})=>{let o=e,n=fr.parse(e);if(n.length>5)return o;let i=fr.createTransformer(e),a=typeof n[0]!="number"?1:0,s=r.x.scale*t.x,c=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=c;let u=ct(s,c,.5);return typeof n[2+a]=="number"&&(n[2+a]/=u),typeof n[3+a]=="number"&&(n[3+a]/=u),i(n)}};var Td={borderRadius:{...Ll,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ll,borderTopRightRadius:Ll,borderBottomLeftRadius:Ll,borderBottomRightRadius:Ll,boxShadow:zP};function $d(e,{layout:t,layoutId:r}){return Un.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Td[e]||e==="opacity")}function ws(e,t,r){let o=e.style,n=t?.style,i={};if(!o)return i;for(let a in o)(_t(o[a])||n&&_t(n[a])||$d(a,e)||r?.getValue(a)?.liveStyle!==void 0)&&(i[a]=o[a]);return i}function bJ(e){return window.getComputedStyle(e)}var Pd=class extends Ol{constructor(){super(...arguments),this.type="html",this.renderInstance=Nh}readValueFromInstance(t,r){if(Un.has(r))return this.projection?.isProjecting?nh(r):N9(t,r);{let o=bJ(t),n=(Wf(r)?o.getPropertyValue(r):o[r])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Rh(t,r)}build(t,r,o){xs(t,r,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,o){return ws(t,r,o)}};var xJ={offset:"stroke-dashoffset",array:"stroke-dasharray"},wJ={offset:"strokeDashoffset",array:"strokeDasharray"};function AP(e,t,r=1,o=0,n=!0){e.pathLength=1;let i=n?xJ:wJ;e[i.offset]=`${-o}`,e[i.array]=`${t} ${r}`}var _J=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Cd(e,{attrX:t,attrY:r,attrScale:o,pathLength:n,pathSpacing:i=1,pathOffset:a=0,...s},c,u,p){if(xs(e,s,u),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:h}=e;m.transform&&(h.transform=m.transform,delete m.transform),(h.transform||m.transformOrigin)&&(h.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),h.transform&&(h.transformBox=p?.transformBox??"fill-box",delete m.transformBox);for(let g of _J)m[g]!==void 0&&(h[g]=m[g],delete m[g]);t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),o!==void 0&&(m.scale=o),n!==void 0&&AP(m,n,i,a,!1)}var Dh=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 Ed=e=>typeof e=="string"&&e.toLowerCase()==="svg";function MP(e,t,r,o){Nh(e,t,void 0,o);for(let n in t.attrs)e.setAttribute(Dh.has(n)?n:Al(n),t.attrs[n])}function zd(e,t,r){let o=ws(e,t,r);for(let n in e)if(_t(e[n])||_t(t[n])){let i=zo.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;o[i]=e[n]}return o}var Ad=class extends Ol{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Bt}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Un.has(r)){let o=bh(r);return o&&o.default||0}return r=Dh.has(r)?r:Al(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,o){return zd(t,r,o)}build(t,r,o){Cd(t,r,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(t,r,o,n){MP(t,r,o,n)}mount(t){this.isSVGTag=Ed(t.tagName),super.mount(t)}};var kJ=yd.length;function Ax(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Ax(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<kJ;r++){let o=yd[r],n=e.props[o];(Ao(n)||n===!1)&&(t[o]=n)}return t}function Mx(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let o=0;o<r;o++)if(t[o]!==e[o])return!1;return!0}var SJ=[...Eh].reverse(),IJ=Eh.length;function TJ(e){return t=>Promise.all(t.map(({animation:r,options:o})=>oP(e,r,o)))}function Rx(e){let t=TJ(e),r=RP(),o=!0,n=!1,i=u=>(p,m)=>{let h=bn(e,m,u==="exit"?e.presenceContext?.custom:void 0);if(h){let{transition:g,transitionEnd:b,...T}=h;p={...p,...T,...b}}return p};function a(u){t=u(e)}function s(u){let{props:p}=e,m=Ax(e.parent)||{},h=[],g=new Set,b={},T=1/0;for(let P=0;P<IJ;P++){let C=SJ[P],k=r[C],A=p[C]!==void 0?p[C]:m[C],z=Ao(A),N=C===u?k.isActive:null;N===!1&&(T=P);let B=A===m[C]&&A!==p[C]&&z;if(B&&(o||n)&&e.manuallyAnimateOnMount&&(B=!1),k.protectedKeys={...b}
4,!k.isActive&&N===null||!A&&!k.prevProp||pi(A)||typeof A=="boolean")continue;if(C==="exit"&&k.isActive&&N!==!0){k.prevResolvedValues&&(b={...b,...k.prevResolvedValues});continue}let G=NP(k.prevProp,A),F=G||C===u&&k.isActive&&!B&&z||P>T&&z,W=!1,ue=Array.isArray(A)?A:[A],de=ue.reduce(i(C),{});N===!1&&(de={});let{prevResolvedValues:ft={}}=k,$e={...ft,...de},Fe=me=>{F=!0,g.has(me)&&(W=!0,g.delete(me)),k.needsAnimating[me]=!0;let ce=e.getValue(me);ce&&(ce.liveStyle=!1)};for(let me in $e){let ce=de[me],et=ft[me];if(b.hasOwnProperty(me))continue;let tt=!1;fd(ce)&&fd(et)?tt=!Mx(ce,et):tt=ce!==et,tt?ce!=null?Fe(me):g.add(me):ce!==void 0&&g.has(me)?Fe(me):k.protectedKeys[me]=!0}k.prevProp=A,k.prevResolvedValues=de,k.isActive&&(b={...b,...de}),(o||n)&&e.blockInitialAnimation&&(F=!1);let pe=B&&G;F&&(!pe||W)&&h.push(...ue.map(me=>{let ce={type:C};if(typeof me=="string"&&(o||n)&&!pe&&e.manuallyAnimateOnMount&&e.parent){let{parent:et}=e,tt=bn(et,me);if(et.enteringChildren&&tt){let{delayChildren:be}=tt.transition||{};ce.delay=ph(et.enteringChildren,e,be)}}return{animation:me,options:ce}}))}if(g.size){let P={};if(typeof p.initial!="boolean"){let C=bn(e,Array.isArray(p.initial)?p.initial[0]:p.initial);C&&C.transition&&(P.transition=C.transition)}g.forEach(C=>{let k=e.getBaseTarget(C),A=e.getValue(C);A&&(A.liveStyle=!0),P[C]=k??null}),h.push({animation:P})}let I=!!h.length;return o&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(I=!1),o=!1,n=!1,I?t(h):Promise.resolve()}function c(u,p){if(r[u].isActive===p)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(u,p)),r[u].isActive=p;let m=s(u);for(let h in r)r[h].protectedKeys={};return m}return{animateChanges:s,setActive:c,setAnimateFunction:a,getState:()=>r,reset:()=>{r=RP(),n=!0}}}function NP(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Mx(t,e):!1}function _s(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RP(){return{animate:_s(!0),whileInView:_s(),whileHover:_s(),whileTap:_s(),whileDrag:_s(),whileFocus:_s(),exit:_s()}}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 Nx(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var DP=1e-4,$J=1-DP,PJ=1+DP,OP=.01,CJ=0-OP,EJ=0+OP;function sr(e){return e.max-e.min}function jx(e,t,r){return Math.abs(e-t)<=r}function Dx(e,t,r,o=.5){e.origin=o,e.originPoint=ct(t.min,t.max,e.origin),e.scale=sr(r)/sr(t),e.translate=ct(r.min,r.max,e.origin)-e.originPoint,(e.scale>=$J&&e.scale<=PJ||isNaN(e.scale))&&(e.scale=1),(e.translate>=CJ&&e.translate<=EJ||isNaN(e.translate))&&(e.translate=0)}function ks(e,t,r,o){Dx(e.x,t.x,r.x,o?o.originX:void 0),Dx(e.y,t.y,r.y,o?o.originY:void 0)}function Ox(e,t,r,o=0){let n=o?ct(r.min,r.max,o):r.min;e.min=n+t.min,e.max=e.min+sr(t)}function Ux(e,t,r,o){Ox(e.x,t.x,r.x,o?.x),Ox(e.y,t.y,r.y,o?.y)}function Lx(e,t,r,o=0){let n=o?ct(r.min,r.max,o):r.min;e.min=t.min-n,e.max=e.min+sr(t)}function jl(e,t,r,o){Lx(e.x,t.x,r.x,o?.x),Lx(e.y,t.y,r.y,o?.y)}function LP(e,t,r,o,n){return e-=t,e=Sd(e,1/r,o),n!==void 0&&(e=Sd(e,1/n,o)),e}function zJ(e,t=0,r=1,o=.5,n,i=e,a=e){if(Ar.test(t)&&(t=parseFloat(t),t=ct(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=ct(i.min,i.max,o);e===i&&(s-=t),e.min=LP(e.min,t,r,s,n),e.max=LP(e.max,t,r,s,n)}function jP(e,t,[r,o,n],i,a){zJ(e,t[r],t[o],t[n],t.scale,i,a)}var AJ=["x","scaleX","originX"],MJ=["y","scaleY","originY"];function Bx(e,t,r,o){jP(e.x,t,AJ,r?r.x:void 0,o?o.x:void 0),jP(e.y,t,MJ,r?r.y:void 0,o?o.y:void 0)}function UP(e){return e.translate===0&&e.scale===1}function Fx(e){return UP(e.x)&&UP(e.y)}function BP(e,t){return e.min===t.min&&e.max===t.max}function ZP(e,t){return BP(e.x,t.x)&&BP(e.y,t.y)}function FP(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Zx(e,t){return FP(e.x,t.x)&&FP(e.y,t.y)}function Vx(e){return sr(e.x)/sr(e.y)}function Gx(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function xn(e){return[e("x"),e("y")]}function VP(e,t,r){let o="",n=e.x.translate/t.x,i=e.y.translate/t.y,a=r?.z||0;if((n||i||a)&&(o=`translate3d(${n}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(o+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:u,rotate:p,rotateX:m,rotateY:h,skewX:g,skewY:b}=r;u&&(o=`perspective(${u}px) ${o}`),p&&(o+=`rotate(${p}deg) `),m&&(o+=`rotateX(${m}deg) `),h&&(o+=`rotateY(${h}deg) `),g&&(o+=`skewX(${g}deg) `),b&&(o+=`skewY(${b}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(o+=`scale(${s}, ${c})`),o||"none"}var WP=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],RJ=WP.length,GP=e=>typeof e=="string"?parseFloat(e):e,qP=e=>typeof e=="number"||_e.test(e);function JP(e,t,r,o,n,i){n?(e.opacity=ct(0,r.opacity??1,NJ(o)),e.opacityExit=ct(t.opacity??1,0,DJ(o))):i&&(e.opacity=ct(t.opacity??1,r.opacity??1,o));for(let a=0;a<RJ;a++){let s=WP[a],c=HP(t,s),u=HP(r,s);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||qP(c)===qP(u)?(e[s]=Math.max(ct(GP(c),GP(u),o),0),(Ar.test(u)||Ar.test(c))&&(e[s]+="
4%")):e[s]=u}(t.rotate||r.rotate)&&(e.rotate=ct(t.rotate||0,r.rotate||0,o))}function HP(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var NJ=KP(0,.5,nd),DJ=KP(.5,.95,Gt);function KP(e,t,r){return o=>o<e?0:o>t?1:r($o(e,t,o))}function XP(e,t,r){let o=_t(e)?e:lo(e);return o.start(hs("",o,t,r)),o.animation}function Mo(e,t,r,o={passive:!0}){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r)}var YP=(e,t)=>e.depth-t.depth;var Lh=class{constructor(){this.children=[],this.isDirty=!1}add(t){us(this.children,t),this.isDirty=!0}remove(t){ra(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(YP),this.isDirty=!1,this.children.forEach(t)}};function QP(e,t){let r=qt.now(),o=({timestamp:n})=>{let i=n-r;i>=t&&(an(o),e(i-t))};return Je.setup(o,!0),()=>an(o)}function Ss(e){return _t(e)?e.get():e}var jh=class{constructor(){this.members=[]}add(t){us(this.members,t);for(let r=this.members.length-1;r>=0;r--){let o=this.members[r];if(o===t||o===this.lead||o===this.prevLead)continue;let n=o.instance;(!n||n.isConnected===!1)&&!o.snapshot&&(ra(this.members,o),o.unmount())}t.scheduleRender()}remove(t){if(ra(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 o=this.members[r];if(o.isPresent!==!1&&o.instance?.isConnected!==!1)return this.promote(o),!0}return!1}promote(t,r){let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=o.options,{layoutDependency:i}=t.options;(n===void 0||n!==i)&&(t.resumeFrom=o,r&&(o.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&o.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 Is={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var Ts={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},qx=["","X","Y","Z"],OJ=1e3,LJ=0;function Hx(e,t,r,o){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),o&&(o[e]=0))}function lC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=hh(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Je,!(n||i))}let{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&lC(o)}function Uh({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:o,resetTransform:n}){return class{constructor(a={},s=t?.()){this.id=LJ++,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,yn.value&&(Ts.nodes=Ts.calculatedTargetDeltas=Ts.calculatedProjections=0),this.nodes.forEach(BJ),this.nodes.forEach(HJ),this.nodes.forEach(WJ),this.nodes.forEach(FJ),yn.addProjectionMetrics&&yn.addProjectionMetrics(Ts)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Lh)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new li),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let c=this.eventHandlers.get(a);c&&c.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Nl(a)&&!gP(a),this.instance=a;let{layoutId:s,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||s)&&(this.isLayoutDirty=!0),e){let p,m=0,h=()=>this.root.updateBlockedByResize=!1;Je.read(()=>{m=window.innerWidth}
4),e(a,()=>{let g=window.innerWidth;g!==m&&(m=g,this.root.updateBlockedByResize=!0,p&&p(),p=QP(h,250),Is.hasAnimatedSinceResize&&(Is.hasAnimatedSinceResize=!1,this.nodes.forEach(rC)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||c)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:m,hasRelativeLayoutChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let b=this.options.transition||u.getDefaultTransition()||QJ,{onLayoutAnimationStart:T,onLayoutAnimationComplete:I}=u.getProps(),P=!this.targetLayout||!Zx(this.targetLayout,g),C=!m&&h;if(this.options.layoutRoot||this.resumeFrom||C||m&&(P||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let k={...El(b,"layout"),onPlay:T,onComplete:I};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k),this.setAnimationOrigin(p,C)}else m||rC(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),an(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(JJ),this.animationId++)}getTransformTemplate(){let{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lC(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let m=this.path[p];m.shouldResetTransform=!0,(typeof m.latestValues.x=="string"||typeof m.latestValues.y=="string")&&(m.isLayoutDirty=!0),m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}let{layoutId:s,layout:c}=this.options;if(s===void 0&&!c)return;let u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(VJ),this.nodes.forEach(eC);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(tC);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(GJ),this.nodes.forEach(qJ),this.nodes.forEach(jJ),this.nodes.forEach(UJ)):this.nodes.forEach(tC),this.clearAllSnapshots();let s=qt.now();Xt.delta=mr(0,1e3/60,s-Xt.timestamp),Xt.timestamp=s,Xt.isProcessing=!0,ld.update.process(Xt),ld.preRender.process(Xt),ld.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ys.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ZJ),this.sharedNodes.forEach(KJ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!sr(this.snapshot.measuredBox.x)&&!sr(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();let a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Bt()),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){let c=o(this.instance);
4this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!n)return;let a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Fx(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,p=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||mi(this.latestValues)||p)&&(n(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),c=this.removeElementScroll(s);return a&&(c=this.removeTransform(c)),eK(c),{animationId:this.root.animationId,measuredBox:s,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return Bt();let s=a.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tK))){let{scroll:u}=this.root;u&&(Fn(s.x,u.offset.x),Fn(s.y,u.offset.y))}return s}removeElementScroll(a){let s=Bt();if(Zn(s,a),this.scroll?.wasRoot)return s;for(let c=0;c<this.path.length;c++){let u=this.path[c],{scroll:p,options:m}=u;u!==this.root&&p&&m.layoutScroll&&(p.wasRoot&&Zn(s,a),Fn(s.x,p.offset.x),Fn(s.y,p.offset.y))}return s}applyTransform(a,s=!1,c){let u=c||Bt();Zn(u,a);for(let p=0;p<this.path.length;p++){let m=this.path[p];!s&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Fn(u.x,-m.scroll.offset.x),Fn(u.y,-m.scroll.offset.y)),mi(m.latestValues)&&Id(u,m.latestValues,m.layout?.layoutBox)}return mi(this.latestValues)&&Id(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(a){let s=Bt();Zn(s,a);for(let c=0;c<this.path.length;c++){let u=this.path[c];if(!mi(u.latestValues))continue;let p;u.instance&&(Mh(u.latestValues)&&u.updateSnapshot(),p=Bt(),Zn(p,u.measurePageBox())),Bx(s,u.latestValues,u.snapshot?.layoutBox,p)}return mi(this.latestValues)&&Bx(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==s;if(!(a||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:p,layoutId:m}=this.options;if(!this.layout||!(p||m))return;this.resolvedRelativeTargetAt=Xt.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=Bt(),this.targetWithTransforms=Bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ux(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),Ex(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),yn.value&&Ts.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||Mh(this.parent.latestValues)||Px(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,c){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Bt(),this.relativeTargetOrigin=Bt(),jl(this.relativeTargetOrigin,s,c,this.options.layoutAnchor||void 0),Zn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let a=this.getLead(),s=!!this.resumingFrom||this!==a,c=!0;
4if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(c=!1),c)return;let{layout:u,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||p))return;Zn(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,h=this.treeScale.y;PP(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Bt());let{target:g}=a;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Nx(this.prevProjectionDelta.x,this.projectionDelta.x),Nx(this.prevProjectionDelta.y,this.projectionDelta.y)),ks(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==h||!Gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),yn.value&&Ts.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.visualElement?.scheduleRender(),a){let s=this.getStack();s&&s.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ua(),this.projectionDelta=ua(),this.projectionDeltaWithTransform=ua()}setAnimationOrigin(a,s=!1){let c=this.snapshot,u=c?c.latestValues:{},p={...this.latestValues},m=ua();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;let h=Bt(),g=c?c.source:void 0,b=this.layout?this.layout.source:void 0,T=g!==b,I=this.getStack(),P=!I||I.members.length<=1,C=!!(T&&!P&&this.options.crossfade===!0&&!this.path.some(YJ));this.animationProgress=0;let k;this.mixTargetDelta=A=>{let z=A/1e3;nC(m.x,a.x,z),nC(m.y,a.y,z),this.setTargetDelta(m),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),XJ(this.relativeTarget,this.relativeTargetOrigin,h,z),k&&ZP(this.relativeTarget,k)&&(this.isProjectionDirty=!1),k||(k=Bt()),Zn(k,this.relativeTarget)),T&&(this.animationValues=p,JP(p,u,this.latestValues,z,C,P)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=z},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(an(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Je.update(()=>{Is.hasAnimatedSinceResize=!0,Po.layout++,this.motionValue||(this.motionValue=lo(0)),this.motionValue.jump(0,!1),this.currentAnimation=XP(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),a.onUpdate&&a.onUpdate(s)},onStop:()=>{Po.layout--},onComplete:()=>{Po.layout--,a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(OJ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:c,layout:u,latestValues:p}=a;if(!(!s||!c||!u)){if(this!==a&&this.layout&&u&&cC(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Bt();let m=sr(this.layout.layoutBox.x);
4c.x.min=a.target.x.min,c.x.max=c.x.min+m;let h=sr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+h}Zn(s,c),Id(s,p),ks(this.projectionDeltaWithTransform,this.layoutCorrected,s,p)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new jh),this.sharedNodes.get(a).add(s);let u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){let{layoutId:a}=this.options;return a?this.getStack()?.lead||this:this}getPrevLead(){let{layoutId:a}=this.options;return a?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:c}={}){let u=this.getStack();u&&u.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(s=!0),!s)return;let u={};c.z&&Hx("z",a,u,this.animationValues);for(let p=0;p<qx.length;p++)Hx(`rotate${qx[p]}
4`,a,u,this.animationValues),Hx(`skew${qx[p]}`,a,u,this.animationValues);a.render();for(let p in u)a.setStaticValue(p,u[p]),this.animationValues&&(this.animationValues[p]=u[p]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}let c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ss(s?.pointerEvents)||"",a.transform=c?c(this.latestValues,""):"none";return}let u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ss(s?.pointerEvents)||""),this.hasProjected&&!mi(this.latestValues)&&(a.transform=c?c({},""):"none",this.hasProjected=!1);return}a.visibility="";let p=u.animationValues||u.latestValues;this.applyTransformsToTarget();let m=VP(this.projectionDeltaWithTransform,this.treeScale,p);c&&(m=c(p,m)),a.transform=m;let{x:h,y:g}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,u.animationValues?a.opacity=u===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:a.opacity=u===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(let b in Td){if(p[b]===void 0)continue;let{correct:T,applyTo:I,isCSSVariable:P}=Td[b],C=m==="none"?p[b]:T(p[b],u);if(I){let k=I.length;for(let A=0;A<k;A++)a[I[A]]=C}else P?this.options.visualElement.renderState.vars[b]=C:a[b]=C}this.options.layoutId&&(a.pointerEvents=u===this?Ss(s?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>a.currentAnimation?.stop()),this.root.nodes.forEach(eC),this.root.sharedNodes.clear()}}}function jJ(e){e.updateLayout()}function UJ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:o}=e.layout,{animationType:n}=e.options,i=t.source!==e.layout.source;if(n==="size")xn(p=>{let m=i?t.measuredBox[p]:t.layoutBox[p],h=sr(m);m.min=r[p].min,m.max=m.min+h});else if(n==="x"||n==="y"){let p=n==="x"?"y":"x";Oh(i?t.measuredBox[p]:t.layoutBox[p],r[p])}else cC(n,t.layoutBox,r)&&xn(p=>{let m=i?t.measuredBox[p]:t.layoutBox[p],h=sr(r[p]);m.max=m.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+h)});let a=ua();ks(a,r,t.layoutBox);let s=ua();i?ks(s,e.applyTransform(o,!0),t.measuredBox):ks(s,r,t.layoutBox);let c=!Fx(a),u=!1;if(!e.resumeFrom){let p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){let{snapshot:m,layout:h}=p;if(m&&h){let g=e.options.layoutAnchor||void 0,b=Bt();jl(b,t.layoutBox,m.layoutBox,g);let T=Bt();jl(T,r,h.layoutBox,g),Zx(b,T)||(u=!0),p.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=b,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function BJ(e){yn.value&&Ts.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 FJ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZJ(e){e.clearSnapshot()}function eC(e){e.clearMeasurements()}function VJ(e){e.isLayoutDirty=!0,e.updateLayout()}function tC(e){e.isLayoutDirty=!1}function GJ(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function qJ(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function HJ(e){e.resolveTargetDelta()}function WJ(e){e.calcProjection()}
4function JJ(e){e.resetSkewAndRotation()}function KJ(e){e.removeLeadSnapshot()}function nC(e,t,r){e.translate=ct(t.translate,0,r),e.scale=ct(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function oC(e,t,r,o){e.min=ct(t.min,r.min,o),e.max=ct(t.max,r.max,o)}function XJ(e,t,r,o){oC(e.x,t.x,r.x,o),oC(e.y,t.y,r.y,o)}function YJ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var QJ={duration:.45,ease:[.4,0,.1,1]},iC=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),aC=iC("applewebkit/")&&!iC("chrome/")?Math.round:Gt;function sC(e){e.min=aC(e.min),e.max=aC(e.max)}function eK(e){sC(e.x),sC(e.y)}function cC(e,t,r){return e==="position"||e==="preserve-aspect"&&!jx(Vx(t),Vx(r),.2)}function tK(e){return e!==e.root&&e.scroll?.wasRoot}var uC=Uh({attachResizeListener:(e,t)=>Mo(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0});var Bh={current:void 0},Md=Uh({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Bh.current){let e=new uC({});e.mount(window),e.setOptions({layoutScroll:!0}),Bh.current=e}return Bh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var Fh=Z(xe(),1),fi=Z(xe(),1);var dC=Z(xe(),1),Ul=(0,dC.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});var mC=Z(xe(),1);function pC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rK(...e){return t=>{let r=!1,o=e.map(n=>{let i=pC(n,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<o.length;n++){let i=o[n];typeof i=="function"?i():pC(e[n],null)}}}}function fC(...e){return mC.useCallback(rK(...e),e)}var Wx=class extends Fh.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(vs(r)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let o=r.offsetParent,n=vs(o)&&o.offsetWidth||0,i=vs(o)&&o.offsetHeight||0,a=getComputedStyle(r),s=this.props.sizeRef.current;s.height=parseFloat(a.height),s.width=parseFloat(a.width),s.top=r.offsetTop,s.left=r.offsetLeft,s.right=n-s.width-s.left,s.bottom=i-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}};function gC({children:e,isPresent:t,anchorX:r,anchorY:o,root:n,pop:i}){let a=(0,fi.useId)(),s=(0,fi.useRef)(null),c=(0,fi.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:u}=(0,fi.useContext)(Ul),p=e.props?.ref??e?.ref,m=fC(s,p);return(0,fi.useInsertionEffect)(()=>{let{width:h,height:g,top:b,left:T,right:I,bottom:P}=c.current;if(t||i===!1||!s.current||!h||!g)return;let C=r==="left"?`left: ${T}`:`right: ${I}`,k=o==="bottom"?`bottom: ${P}`:`top: ${b}`;s.current.dataset.motionPopId=a;let A=document.createElement("style");u&&(A.nonce=u);let z=n??document.head;return z.appendChild(A),A.sheet&&A.sheet.insertRule(` 5 [data-motion-pop-id="${a}"] { 6 position: absolute !important; 7 width: ${h}px !important; 8 height: ${g}px !important; 9 ${C}px !important; 10 ${k}px !important; 11 } 12 `),()=>{s.current?.removeAttribute("data-motion-pop-id"),z.contains(A)&&z.removeChild(A)}},[t]),(0,hC.jsx)(Wx,{isPresent:t,childRef:s,sizeRef:c,pop:i,children:i===!1?e:Fh.cloneElement(e,{ref:m})})}var yC=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:n,presenceAffectsLayout:i,mode:a,anchorX:s,anchorY:c,root:u})=>{let p=wl(nK),m=(0,Rd.useId)(),h=!0,g=(0,Rd.useMemo)(()=>(h=!1,{id:m,initial:t,isPresent:r,custom:n,onExitComplete:b=>{p.set(b,!0);for(let T of p.values())if(!T)return;o&&o()},register:b=>(p.set(b,!1),()=>p.delete(b))}),[r,p,o]);return i&&h&&(g={...g}),(0,Rd.useMemo)(()=>{p.forEach((b,T)=>p.set(T,!1))},[r]),vC.useEffect(()=>{!r&&!p.size&&o&&o()},[r]),e=(0,Jx.jsx)(gC,{pop:a==="popLayout",isPresent:r,anchorX:s,anchorY:c,root:u,children:e}),(0,Jx.jsx)(ta.Provider,{value:g,children:e})};function nK(){return new Map}var pa=Z(xe(),1);function Zh(e=!0){let t=(0,pa.useContext)(ta);if(t===null)return[!0,null];let{isPresent:r,onExitComplete:o,register:n}=t,i=(0,pa.useId)();(0,pa.useEffect)(()=>
12{if(e)return n(i)},[e]);let a=(0,pa.useCallback)(()=>e&&o&&o(i),[i,o,e]);return!r&&o?[!1,a]:[!0]}var Vh=Z(xe(),1),Nd=e=>e.key||"";function Kx(e){let t=[];return Vh.Children.forEach(e,r=>{(0,Vh.isValidElement)(r)&&t.push(r)}),t}var Xx=({children:e,custom:t,initial:r=!0,onExitComplete:o,presenceAffectsLayout:n=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",anchorY:c="top",root:u})=>{let[p,m]=Zh(a),h=(0,co.useMemo)(()=>Kx(e),[e]),g=a&&!p?[]:h.map(Nd),b=(0,co.useRef)(!0),T=(0,co.useRef)(h),I=wl(()=>new Map),P=(0,co.useRef)(new Set),[C,k]=(0,co.useState)(h),[A,z]=(0,co.useState)(h);Bf(()=>{b.current=!1,T.current=h;for(let G=0;G<A.length;G++){let F=Nd(A[G]);g.includes(F)?(I.delete(F),P.current.delete(F)):I.get(F)!==!0&&I.set(F,!1)}},[A,g.length,g.join("-")]);let N=[];if(h!==C){let G=[...h];for(let F=0;F<A.length;F++){let W=A[F],ue=Nd(W);g.includes(ue)||(G.splice(F,0,W),N.push(W))}return i==="wait"&&N.length&&(G=N),z(Kx(G)),k(h),null}let{forceRender:B}=(0,co.useContext)(xl);return(0,Dd.jsx)(Dd.Fragment,{children:A.map(G=>{let F=Nd(G),W=a&&!p?!1:h===A||g.includes(F),ue=()=>{if(P.current.has(F))return;if(I.has(F))P.current.add(F),I.set(F,!0);else return;let de=!0;I.forEach(ft=>{ft||(de=!1)}),de&&(B?.(),z(T.current),a&&m?.(),o&&o())};return(0,Dd.jsx)(yC,{isPresent:W,initial:!b.current||r?void 0:!1,custom:t,presenceAffectsLayout:n,mode:i,root:u,onExitComplete:W?void 0:ue,anchorX:s,anchorY:c,children:G},F)})})};var bC=Z(xe(),1),Gh=(0,bC.createContext)({strict:!1});var xC={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"]},wC=!1;function oK(){if(wC)return;let e={};for(let t in xC)e[t]={isEnabled:r=>xC[t].some(o=>!!r[o])};_d(e),wC=!0}function qh(){return oK(),Sx()}function _C(e){let t=qh();for(let r in e)t[r]={...t[r],...e[r]};_d(t)}var iK=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 Od(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iK.has(e)}var kC=e=>!Od(e);function aK(e){typeof e=="function"&&(kC=t=>t.startsWith("on")?!Od(t):e(t))}try{aK(T7("@emotion/is-prop-valid").default)}catch{}function SC(e,t,r){let o={};for(let n in e)n==="values"&&typeof e.values=="object"||_t(e[n])||(kC(n)||r===!0&&Od(n)||!t&&!Od(n)||e.draggable&&n.startsWith("onDrag"))&&(o[n]=e[n]);return o}var Xh=Z(se(),1);var Vl=Z(xe(),1);var IC=Z(xe(),1),ma=(0,IC.createContext)({});var Hh=Z(xe(),1);function TC(e,t){if(da(e)){let{initial:r,animate:o}=e;return{initial:r===!1||Ao(r)?r:void 0,animate:Ao(o)?o:void 0}}return e.inherit!==!1?t:{}}function PC(e){let{initial:t,animate:r}=TC(e,(0,Hh.useContext)(ma));return(0,Hh.useMemo)(()=>({initial:t,animate:r}),[$C(t),$C(r)])}function $C(e){return Array.isArray(e)?e.join(" "):e}var Zl=Z(xe(),1);var CC=Z(xe(),1);var Bl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Yx(e,t,r){for(let o in t)!_t(t[o])&&!$d(o,r)&&(e[o]=t[o])}function sK({transformTemplate:e},t){return(0,CC.useMemo)(()=>{let r=Bl();return xs(r,t,e),Object.assign({},r.vars,r.style)},[t])}function lK(e,t){let r=e.style||{},o={};return Yx(o,r,e),Object.assign(o,sK(e,t)),o}function EC(e,t){let r={},o=lK(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
12`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}var zC=Z(xe(),1);var Wh=()=>({...Bl(),attrs:{}});function AC(e,t,r,o){let n=(0,zC.useMemo)(()=>{let i=Wh();return Cd(i,t,Ed(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};Yx(i,e.style,e),n.style={...i,...n.style}}return n}var MC=["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 Fl(e){return typeof e!="string"||e.includes("-")?!1:!!(MC.indexOf(e)>-1||/[A-Z]/u.test(e))}function RC(e,t,r,{latestValues:o},n,i=!1,a){let c=(a??Fl(e)?AC:EC)(t,o,n,e),u=SC(t,typeof e=="string",i),p=e!==Zl.Fragment?{...u,...c,ref:r}:{},{children:m}=t,h=(0,Zl.useMemo)(()=>_t(m)?m.get():m,[m]);return(0,Zl.createElement)(e,{...p,children:h})}var Qx=Z(xe(),1);function cK({scrapeMotionValuesFromProps:e,createRenderState:t},r,o,n){return{latestValues:uK(r,o,n,e),renderState:t()}}function uK(e,t,r,o){let n={},i=o(e,{});for(let h in i)n[h]=Ss(i[h]);let{initial:a,animate:s}=e,c=da(e),u=bd(e);t&&u&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let p=r?r.initial===!1:!1;p=p||a===!1;let m=p?s:a;if(m&&typeof m!="boolean"&&!pi(m)){let h=Array.isArray(m)?m:[m];for(let g=0;g<h.length;g++){let b=gs(e,h[g]);if(b){let{transitionEnd:T,transition:I,...P}=b;for(let C in P){let k=P[C];if(Array.isArray(k)){let A=p?k.length-1:0;k=k[A]}k!==null&&(n[C]=k)}for(let C in T)n[C]=T[C]}}}return n}var Jh=e=>(t,r)=>{let o=(0,Qx.useContext)(ma),n=(0,Qx.useContext)(ta),i=()=>cK(e,t,o,n);return r?i():wl(i)};var NC=Jh({scrapeMotionValuesFromProps:ws,createRenderState:Bl});var DC=Jh({scrapeMotionValuesFromProps:zd,createRenderState:Wh});var OC=Symbol.for("motionComponentSymbol");var $s=Z(xe(),1);function LC(e,t,r){let o=(0,$s.useRef)(r);(0,$s.useInsertionEffect)(()=>{o.current=r});let n=(0,$s.useRef)(null);return(0,$s.useCallback)(i=>{i&&e.onMount?.(i);let a=o.current;if(typeof a=="function")if(i){let s=a(i);typeof s=="function"&&(n.current=s)}else n.current?(n.current(),n.current=null):a(i);else a&&(a.current=i);t&&(i?t.mount(i):t.unmount())},[t])}var Fr=Z(xe(),1);var jC=Z(xe(),1),Kh=(0,jC.createContext)({});function fa(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function UC(e,t,r,o,n,i){let{visualElement:a}=(0,Fr.useContext)(ma),s=(0,Fr.useContext)(Gh),c=(0,Fr.useContext)(ta),u=(0,Fr.useContext)(Ul),p=u.reducedMotion,m=u.skipAnimations,h=(0,Fr.useRef)(null),g=(0,Fr.useRef)(!1);o=o||s.renderer,!h.current&&o&&(h.current=o(e,{visualState:t,parent:a,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p,skipAnimations:m,isSVG:i}),g.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let b=h.current,T=(0,Fr.useContext)(Kh);b&&!b.projection&&n&&(b.type==="html"||b.type==="svg")&&dK(h.current,r,n,T);let I=(0,Fr.useRef)(!1);(0,Fr.useInsertionEffect)(()=>{b&&I.current&&b.update(r,c)});let P=r[hd],C=(0,Fr.useRef)(!!P&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(P)&&window.MotionHasOptimisedAnimation?.(P));return Bf(()=>{g.current=!0,b&&(I.current=!0,window.MotionIsMounted=!0,b.updateFeatures(),b.scheduleRenderMicrotask(),C.current&&b.animationState&&b.animationState.animateChanges())}),(0,Fr.useEffect)(()=>{b&&(!C.current&&b.animationState&&b.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(P)}),C.current=!1),b.enteringChildren=void 0)}),b}function dK(e,t,r,o){let{layoutId:n,layout:i,drag:a,dragConstraints:s,layoutScroll:c,layoutRoot:u,layoutAnchor:p,layoutCrossfade:m}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:BC(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!a||s&&fa(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:m,layoutScroll:c,layoutRoot:u,layoutAnchor:p})}function BC(e){if(e)return e.options.allowProjection!==!1?e.projection:BC(e.parent)}function Yh(e,{forwardMotionProps:t=!1,type:r}={},o,n){o&&_C(o);let i=r?r==="svg":Fl(e),a=i?DC:NC;function s(u,p){let m,h={...(0,Vl.useContext)(Ul),...u,layoutId:pK(u)},{isStatic:g}=h,b=PC(u),T=a(u,g);if(!g&&typeof window<"u"){mK(h,o);let I=fK(h);m=I.MeasureLayout,b.visualElement=UC(e,T,h,n,I.ProjectionNode,i)}return(0,Xh.jsxs)(ma.Provider,{value:b,children:[m&&b.visualElement?(0,Xh.jsx)(m,{visualElement:b.visualElement,...h}):null,RC(e,u,LC(T,b.visualElement,p),T,g,t,i)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;let c=(0,Vl.forwardRef)(s);return c[OC]=e,c}function pK({layoutId:e}){let t=(0,Vl.useContext)(xl).id;return t&&e!==void 0?t+"-"+e:e}function mK(e,t){let r=(0,Vl.useContext)(Gh).strict}function fK(e){let t=qh(),{drag:r,layout:o}=t;if(!r&&!o)return{};let n={...r,...o};return{MeasureLayout:r?.isEnabled(e)||o?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
12function FC(e,t){if(typeof Proxy>"u")return Yh;let r=new Map,o=(i,a)=>Yh(i,a,e,t),n=(i,a)=>o(i,a);return new Proxy(n,{get:(i,a)=>a==="create"?o:(r.has(a)||r.set(a,Yh(a,void 0,e,t)),r.get(a))})}var ZC=Z(xe(),1);var VC=(e,t)=>t.isSVG??Fl(e)?new Ad(t):new Pd(t,{allowProjection:e!==ZC.Fragment});var Qh=class extends hr{constructor(t){super(t),t.animationState||(t.animationState=Rx(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();pi(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 hK=0,e0=class extends hr{constructor(){super(...arguments),this.id=hK++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===o)return;if(t&&o===!1){if(this.isExitComplete){let{initial:i,custom:a}=this.node.getProps();if(typeof i=="string"){let s=bn(this.node,i,a);if(s){let{transition:c,transitionEnd:u,...p}=s;for(let m in p)this.node.getValue(m)?.jump(p[m])}}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 GC={animation:{Feature:Qh},exit:{Feature:e0}};function hi(e){return{point:{x:e.pageX,y:e.pageY}}}var qC=e=>t=>bs(t)&&e(t,hi(t));function ha(e,t,r,o){return Mo(e,t,qC(r),o)}var t0=({current:e})=>e?e.ownerDocument.defaultView:null;var HC=(e,t)=>Math.abs(e-t);function WC(e,t){let r=HC(e.x,t.x),o=HC(e.y,t.y);return Math.sqrt(r**2+o**2)}var JC=new Set(["auto","scroll"]),Gl=class{constructor(t,r,{transformPagePoint:o,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:a=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=r0(this.lastRawMoveEventInfo,this.transformPagePoint));let g=ew(this.lastMoveEventInfo,this.history),b=this.startEvent!==null,T=WC(g.offset,{x:0,y:0})>=this.distanceThreshold;if(!b&&!T)return;let{point:I}=g,{timestamp:P}=Xt;this.history.push({...I,timestamp:P});let{onStart:C,onMove:k}=this.handlers;b||(C&&C(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,g)},this.handlePointerMove=(g,b)=>{this.lastMoveEvent=g,this.lastRawMoveEventInfo=b,this.lastMoveEventInfo=r0(b,this.transformPagePoint),Je.update(this.updatePoint,!0)},this.handlePointerUp=(g,b)=>{this.end();let{onEnd:T,onSessionEnd:I,resumeAnimation:P}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&P&&P(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let C=ew(g.type==="pointercancel"?this.lastMoveEventInfo:r0(b,this.transformPagePoint),this.history);this.startEvent&&T&&T(g,C),I&&I(g,C)},!bs(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=o,this.distanceThreshold=a,this.contextWindow=n||window;let c=hi(t),u=r0(c,this.transformPagePoint),{point:p}=u,{timestamp:m}=Xt;this.history=[{...p,timestamp:m}];let{onSessionStart:h}=r;h&&h(t,ew(u,this.history)),this.removeListeners=ao(ha(this.contextWindow,"pointermove",this.handlePointerMove),ha(this.contextWindow,"pointerup",this.handlePointerUp),ha(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let r=t.parentElement;for(;r;){let o=getComputedStyle(r);(JC.has(o.overflowX)||JC.has(o.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 o=t===window,n=o?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:n.x-r.x,y:n.y-r.y};i.x===0&&i.y===0||(o?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,n),Je.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),an(this.updatePoint)}};function r0(e,t){return t?{point:t(e.point)}:e}function KC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ew({point:e},t){return{point:e,delta:KC(e,XC(t)),offset:KC(e,gK(t)),velocity:vK(t,.1)}}function gK(e){return e[0]}function XC(e){return e[e.length-1]}function vK(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,o=null,n=XC(e);for(;r>=0&&(o=e[r],!(n.timestamp-o.timestamp>tr(t)));)r--;if(!o)return{x:0,y:0};o===e[0]&&e.length>2&&n.timestamp-o.timestamp>tr(t)*2&&(o=e[1]);let i=_r(n.timestamp-o.timestamp);if(i===0)return{x:0,y:0};let a={x:(n.x-o.x)/i,y:(n.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function rE(e,{min:t,max:r},o){return t!==void 0&&e<t?e=o?ct(t,e,o.min):Math.max(e,t):r!==void 0&&e>r&&(e=o?ct(r,e,o.max):Math.min(e,r)),e}function YC(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 nE(e,{top:t,left:r,bottom:o,right:n}){return{x:YC(e.x,r,n),y:YC(e.y,t,o)}}function QC(e,t){let r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,o]=[o,r]),{min:r,max:o}}function oE(e,t){return{x:QC(e.x,t.x),y:QC(e.y,t.y)}}function iE(e,t){let r=.5,o=sr(e),n=sr(t);return n>o?r=$o(t.min,t.max-o,e.min):o>n&&(r=$o(e.min,e.max-n,t.min)),mr(0,1,r)}function aE(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 n0=.35;function sE(e=n0){return e===!1?e=0:e===!0&&(e=n0),{x:eE(e,"left","right"),y:eE(e,"top","bottom")}}function eE(e,t,r){return{min:tE(e,t),max:tE(e,r)}}function tE(e,t){return typeof e=="number"?e:e[t]||0}var yK=new WeakMap,i0=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=Bt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:o}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let i=m=>{r&&this.snapToCursor(hi(m).point),this.stopAnimation()},a=(m,h)=>{let{drag:g,dragPropagation:b,onDragStart:T}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=hx(g),!this.openDragLock))return;this.latestPointerEvent=m,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),xn(P=>{let C=this.getAxisMotionValue(P).get()||0;if(Ar.test(C)){let{projection:k}=this.visualElement;if(k&&k.layout){let A=k.layout.layoutBox[P];A&&(C=sr(A)*(parseFloat(C)/100))}}this.originPoint[P]=C}),T&&Je.update(()=>T(m,h),!1,!0),zl(this.visualElement,"transform");let{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},s=(m,h)=>{this.latestPointerEvent=m,this.latestPanInfo=h;let{dragPropagation:g,dragDirectionLock:b,onDirectionLock:T,onDrag:I}=this.getProps();if(!g&&!this.openDragLock)return;let{offset:P}=h;if(b&&this.currentDirection===null){this.currentDirection=xK(P),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",h.point,P),this.updateAxis("y",h.point,P),this.visualElement.render(),I&&Je.update(()=>I(m,h),!1,!0)},c=(m,h)=>{this.latestPointerEvent=m,this.latestPanInfo=h,this.stop(m,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{let{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:p}=this.getProps();this.panSession=new Gl(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:o,contextWindow:t0(this.visualElement),element:this.visualElement.current})}stop(t,r){let o=t||this.latestPointerEvent,n=r||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!o)return;let{velocity:a}=n;this.startAnimation(a);let{onDragEnd:s}=this.getProps();s&&Je.postRender(()=>s(o,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:o}=this.getProps();!o&&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,o){let{drag:n}=this.getProps();if(!o||!o0(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+o[t];this.constraints&&this.constraints[t]&&(a=rE(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&fa(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&o?this.constraints=nE(o.layoutBox,t):this.constraints=!1,this.elastic=sE(r),n!==this.constraints&&!fa(t)&&o&&this.constraints&&!this.hasMutatedConstraints&&xn(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=aE(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!fa(t))return!1;let o=t.current;jn(o!==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 i=zx(o,n.root,this.visualElement.getTransformPagePoint()),a=oE(n.layout.layoutBox,i);if(r){let s=r(Ix(a));this.hasMutatedConstraints=!!s,s&&(a=kd(s))}return a}startAnimation(t){let{drag:r,dragMomentum:o,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},u=xn(p=>{if(!o0(p,r,this.currentDirection))return;let m=c&&c[p]||{};
12(a===!0||a===p)&&(m={min:0,max:0});let h=n?200:1e6,g=n?40:1e7,b={type:"inertia",velocity:o?t[p]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...m};return this.startAxisValueAnimation(p,b)});return Promise.all(u).then(s)}startAxisValueAnimation(t,r){let o=this.getAxisMotionValue(t);return zl(this.visualElement,t),o.start(hs(t,o,0,r,this.visualElement,!1))}stopAnimation(){xn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,o=this.visualElement.getProps(),n=o[r];return n||this.visualElement.getValue(t,(o.initial?o.initial[t]:void 0)||0)}snapToCursor(t){xn(r=>{let{drag:o}=this.getProps();if(!o0(r,o,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(r);if(n&&n.layout){let{min:a,max:s}=n.layout.layoutBox[r],c=i.get()||0;i.set(t[r]-ct(a,s,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:o}=this.visualElement;if(!fa(r)||!o||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};xn(a=>{let s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){let c=s.get();n[a]=iE({min:c,max:c},this.constraints[a])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.constraints=!1,this.resolveConstraints(),xn(a=>{if(!o0(a,t,null))return;let s=this.getAxisMotionValue(a),{min:c,max:u}=this.constraints[a];s.set(ct(c,u,n[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;yK.set(this.visualElement,this);let t=this.visualElement.current,r=ha(t,"pointerdown",u=>{let{drag:p,dragListener:m=!0}=this.getProps(),h=u.target,g=h!==t&&bx(h);p&&m&&!g&&this.start(u)}),o,n=()=>{let{dragConstraints:u}=this.getProps();fa(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),o||(o=bK(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Je.read(n);let s=Mo(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:p})=>{this.isDragging&&p&&(xn(m=>{let h=this.getAxisMotionValue(m);h&&(this.originPoint[m]+=u[m].translate,h.set(h.get()+u[m].translate))}),this.visualElement.render())}));return()=>{s(),r(),a(),c&&c(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:o=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=n0,dragMomentum:s=!0}=t;return{...t,drag:r,dragDirectionLock:o,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s}}};function lE(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function bK(e,t,r){let o=Ch(e,lE(r)),n=Ch(t,lE(r));return()=>{o(),n()}}function o0(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function xK(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var a0=class extends hr{constructor(t){super(t),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new i0(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}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 tw=e=>(t,r)=>{e&&Je.update(()=>e(t,r),!1,!0)},s0=class extends hr{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(t){this.session=new Gl(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:t0(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:o,onPanEnd:n}=this.node.getProps();return{onSessionStart:tw(t),onStart:tw(r),onMove:tw(o),onEnd:(i,a)=>{delete this.session,n&&Je.postRender(()=>n(i,a))}}}mount(){this.removePointerDownListener=ha(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 cE=Z(se(),1);var Ld=Z(xe(),1);var rw=!1,nw=class extends Ld.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o,layoutId:n}=this.props,{projection:i}=t;i&&(r.group&&r.group.add(i),o&&o.register&&n&&o.register(i),rw&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Is.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:o,drag:n,isPresent:i}=this.props,{projection:a}=o;return a&&(a.isPresent=i,t.layoutDependency!==r&&a.setOptions({...a.options,layoutDependency:r}
12),rw=!0,n||t.layoutDependency!==r||r===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||Je.postRender(()=>{let s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:r}=this.props,{projection:o}=t;o&&(o.options.layoutAnchor=r,o.root.didUpdate(),ys.postRender(()=>{!o.currentAnimation&&o.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:o}=this.props,{projection:n}=t;rw=!0,n&&(n.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(n),o&&o.deregister&&o.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function l0(e){let[t,r]=Zh(),o=(0,Ld.useContext)(xl);return(0,cE.jsx)(nw,{...e,layoutGroup:o,switchLayoutGroup:(0,Ld.useContext)(Kh),isPresent:t,safeToRemove:r})}var uE={pan:{Feature:s0},drag:{Feature:a0,ProjectionNode:Md,MeasureLayout:l0}};function dE(e,t,r){let{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",r==="Start");let n="onHover"+r,i=o[n];i&&Je.postRender(()=>i(t,hi(t)))}var c0=class extends hr{mount(){let{current:t}=this.node;t&&(this.unmount=gx(t,(r,o)=>(dE(this.node,o,"Start"),n=>dE(this.node,n,"End"))))}unmount(){}};var u0=class extends hr{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=ao(Mo(this.node.current,"focus",()=>this.onFocus()),Mo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function pE(e,t,r){let{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",r==="Start");let n="onTap"+(r==="End"?"":r),i=o[n];i&&Je.postRender(()=>i(t,hi(t)))}var d0=class extends hr{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:r,propagate:o}=this.node.props;this.unmount=wx(t,(n,i)=>(pE(this.node,i,"Start"),(a,{success:s})=>pE(this.node,a,s?"End":"Cancel")),{useGlobalTarget:r,stopPropagation:o?.tap===!1})}unmount(){}};var iw=new WeakMap,ow=new WeakMap,wK=e=>{let t=iw.get(e.target);t&&t(e)},_K=e=>{e.forEach(wK)};function kK({root:e,...t}){let r=e||document;ow.has(r)||ow.set(r,{});let o=ow.get(r),n=JSON.stringify(t);return o[n]||(o[n]=new IntersectionObserver(_K,{root:e,...t})),o[n]}function mE(e,t,r){let o=kK(t);return iw.set(e,r),o.observe(e),()=>{iw.delete(e),o.unobserve(e)}}var SK={some:0,all:1},p0=class extends hr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:t={}}=this.node.getProps(),{root:r,margin:o,amount:n="some",once:i}=t,a={root:r?r.current:void 0,rootMargin:o,threshold:typeof n=="number"?n:SK[n]},s=c=>{let{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);let{onViewportEnter:p,onViewportLeave:m}=this.node.getProps(),h=u?p:m;h&&h(c)};this.stopObserver=mE(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(IK(t,r))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function IK({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var fE={inView:{Feature:p0},tap:{Feature:d0},focus:{Feature:u0},hover:{Feature:c0}};var hE={layout:{ProjectionNode:Md,MeasureLayout:l0}};var gE={...GC,...fE,...uE,...hE};var aw=FC(gE,VC);var jd=Z(xe());var sw=Z(se());var o3e=jd.createContext(null);var TK=Z(se());var l3e=ls("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 vE=Z(se());var yE=Z(se());var kE=Z(se());var EE=Z(xe());var P3e=Z(xe());var EK=Z(se());var zE=Z(se());var b0=Z(xe());var Q3e=Z(xe());var Ae=Z(xe(),1);var ME=Z(xe(),1),gt=Z(se(),1);function LK(e,t){return ME.useReducer((r,o)=>t[r][o]??r,e)}var cw="ScrollArea",[RE,Y3e]=Ki(cw),[jK,Vn]=RE(cw),NE=Ae.forwardRef((e,t)=>
vendor: 8,513 bytes, line 12
12{let{__scopeScrollArea:r,type:o="hover",dir:n,scrollHideDelay:i=600,...a}=e,[s,c]=Ae.useState(null),[u,p]=Ae.useState(null),[m,h]=Ae.useState(null),[g,b]=Ae.useState(null),[T,I]=Ae.useState(null),[P,C]=Ae.useState(0),[k,A]=Ae.useState(0),[z,N]=Ae.useState(!1),[B,G]=Ae.useState(!1),F=Tr(t,ue=>c(ue)),W=gl(n);return(0,gt.jsx)(jK,{scope:r,type:o,dir:W,scrollHideDelay:i,scrollArea:s,viewport:u,onViewportChange:p,content:m,onContentChange:h,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:z,onScrollbarXEnabledChange:N,scrollbarY:T,onScrollbarYChange:I,scrollbarYEnabled:B,onScrollbarYEnabledChange:G,onCornerWidthChange:C,onCornerHeightChange:A,children:(0,gt.jsx)($r.div,{dir:W,...a,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":P+"px","--radix-scroll-area-corner-height":k+"px",...e.style}})})});NE.displayName=cw;var DE="ScrollAreaViewport",OE=Ae.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:o,nonce:n,...i}=e,a=Vn(DE,r),s=Ae.useRef(null),c=Tr(t,s,a.onViewportChange);return(0,gt.jsxs)(gt.Fragment,{children:[(0,gt.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,gt.jsx)($r.div,{"data-radix-scroll-area-viewport":"",...i,ref:c,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,gt.jsx)("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});OE.displayName=DE;var Ro="ScrollAreaScrollbar",uw=Ae.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Vn(Ro,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=n,s=e.orientation==="horizontal";return Ae.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),n.type==="hover"?(0,gt.jsx)(UK,{...o,ref:t,forceMount:r}):n.type==="scroll"?(0,gt.jsx)(BK,{...o,ref:t,forceMount:r}):n.type==="auto"?(0,gt.jsx)(LE,{...o,ref:t,forceMount:r}):n.type==="always"?(0,gt.jsx)(dw,{...o,ref:t}):null});uw.displayName=Ro;var UK=Ae.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Vn(Ro,e.__scopeScrollArea),[i,a]=Ae.useState(!1);return Ae.useEffect(()=>{let s=n.scrollArea,c=0;if(s){let u=()=>{window.clearTimeout(c),a(!0)},p=()=>{c=window.setTimeout(()=>a(!1),n.scrollHideDelay)};return s.addEventListener("pointerenter",u),s.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",u),s.removeEventListener("pointerleave",p)}}},[n.scrollArea,n.scrollHideDelay]),(0,gt.jsx)(io,{present:r||i,children:(0,gt.jsx)(LE,{"data-state":i?"visible":"hidden",...o,ref:t})})}),BK=Ae.forwardRef((e,t)=>{let{forceMount:r,...o}=e,n=Vn(Ro,e.__scopeScrollArea),i=e.orientation==="horizontal",a=v0(()=>c("SCROLL_END"),100),[s,c]=LK("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 Ae.useEffect(()=>{if(s==="idle"){let u=window.setTimeout(()=>c("HIDE"),n.scrollHideDelay);return()=>window.clearTimeout(u)}},[s,n.scrollHideDelay,c]),Ae.useEffect(()=>{let u=n.viewport,p=i?"scrollLeft":"scrollTop";if(u){let m=u[p],h=()=>{let g=u[p];m!==g&&(c("SCROLL"),a()),m=g};return u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[n.viewport,i,c,a]),(0,gt.jsx)(io,{present:r||s!=="hidden",children:(0,gt.jsx)(dw,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:We(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:We(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),LE=Ae.forwardRef((e,t)=>{let r=Vn(Ro,e.__scopeScrollArea),{forceMount:o,...n}=e,[i,a]=Ae.useState(!1),s=e.orientation==="horizontal",c=v0(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?u:p)}},10);return Hl(r.viewport,c),Hl(r.content,c),(0,gt.jsx)(io,{present:o||i,children:(0,gt.jsx)(dw,{"data-state":i?"visible":"hidden",...n,ref:t})})}),dw=Ae.forwardRef((e,t)=>{let{orientation:r="vertical",...o}=e,n=Vn(Ro,e.__scopeScrollArea),i=Ae.useRef(null),a=Ae.useRef(0),[s,c]=Ae.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=FE(s.viewport,s.content),p={...o,sizes:s,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:h=>i.current=h,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:h=>a.current=h};function m(h,g){return HK(h,a.current,s,g)}return r==="horizontal"?(0,gt.jsx)(FK,{...p,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let h=n.viewport.scrollLeft,g=AE(h,s,n.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=m(h,n.dir))}}):r==="vertical"?(0,gt.jsx)(ZK,{...p,ref:t,onThumbPositionChange:()=>{if(n.viewport&&i.current){let h=n.viewport.scrollTop,g=AE(h,s);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=m(h))}}):null}),FK=Ae.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=Vn(Ro,e.__scopeScrollArea),[a,s]=Ae.useState(),c=Ae.useRef(null),u=Tr(t,c,i.onScrollbarXChange);return Ae.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,gt.jsx)(UE,{"data-orientation":"horizontal",...n,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":g0(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,m)=>{if(i.viewport){let h=i.viewport.scrollLeft+p.deltaX;e.onWheelScroll(h),VE(h,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:h0(a.paddingLeft),paddingEnd:h0(a.paddingRight)}})}})}),ZK=Ae.forwardRef((e,t)=>{let{sizes:r,onSizesChange:o,...n}=e,i=Vn(Ro,e.__scopeScrollArea),[a,s]=Ae.useState(),c=Ae.useRef(null),u=Tr(t,c,i.onScrollbarYChange);return Ae.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,gt.jsx)(UE,{"data-orientation":"vertical",...n,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":g0(r)+"px",...e.style},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,m)=>{if(i.viewport){let h=i.viewport.scrollTop+p.deltaY;e.onWheelScroll(h),VE(h,m)&&p.preventDefault()}},onResize:()=>{c.current&&i.viewport&&a&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:h0(a.paddingTop),paddingEnd:h0(a.paddingBottom)}})}})}),[VK,jE]=RE(Ro),UE=Ae.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:o,hasThumb:n,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:p,onResize:m,...h}=e,g=Vn(Ro,r),[b,T]=Ae.useState(null),I=Tr(t,F=>T(F)),P=Ae.useRef(null),C=Ae.useRef(""),k=g.viewport,A=o.content-o.viewport,z=nn(p),N=nn(c),B=v0(m,10);function G(F){if(P.current){let W=F.clientX-P.current.left,ue=F.clientY-P.current.top;u({x:W,y:ue})}}return Ae.useEffect(()=>{let F=W=>{let ue=W.target;b?.contains(ue)&&z(W,A)};return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[k,b,A,z]),Ae.useEffect(N,[o,N]),Hl(b,B),Hl(g.content,B),(0,gt.jsx)(VK,{scope:r,scrollbar:b,hasThumb:n,onThumbChange:nn(i),onThumbPointerUp:nn(a),onThumbPositionChange:N,onThumbPointerDown:nn(s),children:(0,gt.jsx)($r.div,{...h,ref:I,style:{position:"absolute",...h.style},onPointerDown:We(e.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),P.current=b.getBoundingClientRect(),C.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),G(F))}),onPointerMove:We(e.onPointerMove,G),onPointerUp:We(e.onPointerUp,F=>{let W=F.target;W.hasPointerCapture(F.pointerId)&&W.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=C.current,g.viewport&&(g.viewport.style.scrollBehavior=""),P.current=null})})})}),f0="ScrollAreaThumb",pw=Ae.forwardRef((e,t)=>
12{let{forceMount:r,...o}=e,n=jE(f0,e.__scopeScrollArea);return(0,gt.jsx)(io,{present:r||n.hasThumb,children:(0,gt.jsx)(GK,{ref:t,...o})})}),GK=Ae.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:o,...n}=e,i=Vn(f0,r),a=jE(f0,r),{onThumbPositionChange:s}=a,c=Tr(t,m=>a.onThumbChange(m)),u=Ae.useRef(void 0),p=v0(()=>{u.current&&(u.current(),u.current=void 0)},100);return Ae.useEffect(()=>{let m=i.viewport;if(m){let h=()=>{if(p(),!u.current){let g=WK(m,s);u.current=g,s()}};return s(),m.addEventListener("scroll",h),()=>m.removeEventListener("scroll",h)}},[i.viewport,p,s]),(0,gt.jsx)($r.div,{"data-state":a.hasThumb?"visible":"hidden",...n,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:We(e.onPointerDownCapture,m=>{let g=m.target.getBoundingClientRect(),b=m.clientX-g.left,T=m.clientY-g.top;a.onThumbPointerDown({x:b,y:T})}),onPointerUp:We(e.onPointerUp,a.onThumbPointerUp)})});pw.displayName=f0;var mw="ScrollAreaCorner",BE=Ae.forwardRef((e,t)=>{let r=Vn(mw,e.__scopeScrollArea),o=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&o?(0,gt.jsx)(qK,{...e,ref:t}):null});BE.displayName=mw;var qK=Ae.forwardRef((e,t)=>{let{__scopeScrollArea:r,...o}=e,n=Vn(mw,r),[i,a]=Ae.useState(0),[s,c]=Ae.useState(0),u=!!(i&&s);return Hl(n.scrollbarX,()=>{let p=n.scrollbarX?.offsetHeight||0;n.onCornerHeightChange(p),c(p)}),Hl(n.scrollbarY,()=>{let p=n.scrollbarY?.offsetWidth||0;n.onCornerWidthChange(p),a(p)}),u?(0,gt.jsx)($r.div,{...o,ref:t,style:{width:i,height:s,position:"absolute",right:n.dir==="ltr"?0:void 0,left:n.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function h0(e){return e?parseInt(e,10):0}function FE(e,t){let r=e/t;return isNaN(r)?0:r}function g0(e){let t=FE(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-r)*t;return Math.max(o,18)}function HK(e,t,r,o="ltr"){let n=g0(r),i=n/2,a=t||i,s=n-a,c=r.scrollbar.paddingStart+a,u=r.scrollbar.size-r.scrollbar.paddingEnd-s,p=r.content-r.viewport,m=o==="ltr"?[0,p]:[p*-1,0];return ZE([c,u],m)(e)}function AE(e,t,r="ltr"){let o=g0(t),n=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-n,a=t.content-t.viewport,s=i-o,c=r==="ltr"?[0,a]:[a*-1,0],u=i$(e,c);return ZE([0,a],[0,s])(u)}function ZE(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(r-e[0])}}function VE(e,t){return e>0&&e<t}var WK=(e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},o=0;return(function n(){let i={left:e.scrollLeft,top:e.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&t(),r=i,o=window.requestAnimationFrame(n)})(),()=>window.cancelAnimationFrame(o)};function v0(e,t){let r=nn(e),o=Ae.useRef(0);return Ae.useEffect(()=>()=>window.clearTimeout(o.current),[]),Ae.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(r,t)},[r,t])}function Hl(e,t){let r=nn(t);Lu(()=>{let o=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(r)});return n.observe(e),()=>{window.cancelAnimationFrame(o),n.unobserve(e)}}},[e,r])}var GE=NE,qE=OE;var HE=BE;var ga=Z(se());function fw({className:e,children:t,...r}){return(0,ga.jsxs)(GE,{"data-slot":"scroll-area",className:Te("relative",e),...r,children:[(0,ga.jsx)(qE,{"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,ga.jsx)(y0,{}),(0,ga.jsx)(HE,{})]})}function y0({className:e,orientation:t="vertical",...r}){return(0,ga.jsx)(uw,{"data-slot":"scroll-area-scrollbar",orientation:t,className:Te("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,ga.jsx)(pw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var WE=Z(se());var KE=Z(xe());var mIe=Z(xe());var KK=Z(se());var Bd=Z(xe());var XK=Z(se());var bIe=Bd.createContext({});var xIe=Bd.createContext({});var JE=Z(se());function hw({className:e,...t}){return(0,JE.jsx)(U7,{role:"status","aria-label":"Loading",className:Te("size-4 animate-spin",e),...t})}var XE=Z(se());var Tz="vercel.ai.error",QK=Symbol.for(Tz),YE,QE,dt=class $z extends(QE=Error,YE=QK,QE){constructor({name:t,message:r,cause:o}){super(r),this[YE]=!0,this.name=t,this.cause=o}static isInstance(t){return $z.hasMarker(t,Tz)}static hasMarker(t,r){let o=Symbol.for(r);return t!=null&&typeof t=="object"&&o in t&&typeof t[o]=="boolean"&&t[o]===!0}},Pz="AI_APICallError",Cz=`vercel.ai.error.${Pz}`,eX=Symbol.for(Cz),ez,tz,qIe=class extends(tz=dt,ez=eX,tz){constructor({message:e,url:t,requestBodyValues:r,statusCode:o,responseHeaders:n,responseBody:i,cause:a,isRetryable:s=o!=null&&(o===408||o===409||o===429||o>=500),data:c}){super({name:Pz,message:e,cause:a}),this[ez]=!0,this.url=t,this.requestBodyValues=r,this.statusCode=o,this.responseHeaders=n,this.responseBody=i,this.isRetryable=s,this.data=c}static isInstance(e){return dt.hasMarker(e,Cz)}},Ez="AI_EmptyResponseBodyError",zz=`vercel.ai.error.${Ez}`,tX=Symbol.for(zz),rz,nz,HIe=class extends(nz=dt,rz=tX,nz){constructor({message:e="Empty response body"}={}){super({name:Ez,message:e}),this[rz]=!0}static isInstance(e){return dt.hasMarker(e,zz)}};function Az(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var Mz="AI_InvalidArgumentError",Rz=`vercel.ai.error.${Mz}`,rX=Symbol.for(Rz),oz,iz,Nz=class extends(iz=dt,oz=rX,iz){constructor({message:e,cause:t,argument:r}){super({name:Mz,message:e,cause:t}),this[oz]=!0,this.argument=r}static isInstance(e){return dt.hasMarker(e,Rz)}},Dz="AI_InvalidPromptError",Oz=`vercel.ai.error.${Dz}
12`,nX=Symbol.for(Oz),az,sz,WIe=class extends(sz=dt,az=nX,sz){constructor({prompt:e,message:t,cause:r}){super({name:Dz,message:`Invalid prompt: ${t}`,cause:r}),this[az]=!0,this.prompt=e}static isInstance(e){return dt.hasMarker(e,Oz)}},Lz="AI_InvalidResponseDataError",jz=`vercel.ai.error.${Lz}`,oX=Symbol.for(jz),lz,cz,JIe=class extends(cz=dt,lz=oX,cz){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:Lz,message:t}),this[lz]=!0,this.data=e}static isInstance(e){return dt.hasMarker(e,jz)}},Uz="AI_JSONParseError",Bz=`vercel.ai.error.${Uz}`,iX=Symbol.for(Bz),uz,dz,vw=class extends(dz=dt,uz=iX,dz){constructor({text:e,cause:t}){super({name:Uz,message:`JSON parsing failed: Text: ${e}. 13Error message: ${Az(t)}`,cause:t}),this[uz]=!0,this.text=e}static isInstance(e){return dt.hasMarker(e,Bz)}},Fz="AI_LoadAPIKeyError",Zz=`vercel.ai.error.${Fz}`,aX=Symbol.for(Zz),pz,mz,KIe=class extends(mz=dt,pz=aX,mz){constructor({message:e}){super({name:Fz,message:e}),this[pz]=!0}static isInstance(e){return dt.hasMarker(e,Zz)}},Vz="AI_LoadSettingError",Gz=`vercel.ai.error.${Vz}`,sX=Symbol.for(Gz),fz,hz,XIe=class extends(hz=dt,fz=sX,hz){constructor({message:e}){super({name:Vz,message:e}),this[fz]=!0}static isInstance(e){return dt.hasMarker(e,Gz)}},qz="AI_NoContentGeneratedError",Hz=`vercel.ai.error.${qz}`,lX=Symbol.for(Hz),gz,vz,YIe=class extends(vz=dt,gz=lX,vz){constructor({message:e="No content generated."}={}){super({name:qz,message:e}),this[gz]=!0}static isInstance(e){return dt.hasMarker(e,Hz)}},Wz="AI_NoSuchModelError",Jz=`vercel.ai.error.${Wz}`,cX=Symbol.for(Jz),yz,bz,QIe=class extends(bz=dt,yz=cX,bz){constructor({errorName:e=Wz,modelId:t,modelType:r,message:o=`No such ${r}: ${t}`}){super({name:e,message:o}),this[yz]=!0,this.modelId=t,this.modelType=r}static isInstance(e){return dt.hasMarker(e,Jz)}},Kz="AI_TooManyEmbeddingValuesForCallError",Xz=`vercel.ai.error.${Kz}`,uX=Symbol.for(Xz),xz,wz,eTe=class extends(wz=dt,xz=uX,wz){constructor(e){super({name:Kz,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[xz]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return dt.hasMarker(e,Xz)}},Yz="AI_TypeValidationError",Qz=`vercel.ai.error.${Yz}`,dX=Symbol.for(Qz),_z,kz,No=class gw extends(kz=dt,_z=dX,kz){constructor({value:t,cause:r,context:o}){let n="Type validation failed";if(o?.field&&(n+=` for ${o.field}`),o?.entityName||o?.entityId){n+=" (";let i=[];o.entityName&&i.push(o.entityName),o.entityId&&i.push(`id: "${o.entity
13Id}"`),n+=i.join(", "),n+=")"}super({name:Yz,message:`${n}: Value: ${JSON.stringify(t)}. 14Error message: ${Az(r)}`,cause:r}),this[_z]=!0,this.value=t,this.context=o}static isInstance(t){return dt.hasMarker(t,Qz)}static wrap({value:t,cause:r,context:o}){var n,i,a;return gw.isInstance(r)&&r.value===t&&((n=r.context)==null?void 0:n.field)===o?.field&&((i=r.context)==null?void 0:i.entityName)===o?.entityName&&((a=r.context)==null?void 0:a.entityId)===o?.entityId?r:new gw({value:t,cause:r,context:o})}},eA="AI_UnsupportedFunctionalityError",tA=`vercel.ai.error.${eA}`,pX=Symbol.for(tA),Sz,Iz,tTe=class extends(Iz=dt,Sz=pX,Iz){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:eA,message:t}),this[Sz]=!0,this.functionality=e}static isInstance(e){return dt.hasMarker(e,tA)}};var mX=Object.freeze({status:"aborted"});function U(e,t,r){function o(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,p=Object.keys(u);for(let m=0;m<p.length;m++){let h=p[m];h in s||(s[h]=u[h].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let u=r?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Do=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ps=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},x0={};function kr(e){return e&&Object.assign(x0,e),x0}var ne={};rn(ne,{BIGINT_FORMAT_RANGES:()=>Tw,Class:()=>bw,NUMBER_FORMAT_RANGES:()=>Iw,aborted:()=>xa,allowsEval:()=>_w,assert:()=>yX,assertEqual:()=>fX,assertIs:()=>gX,assertNever:()=>vX,assertNotEqual:()=>hX,assignProp:()=>ya,base64ToUint8Array:()=>oA,base64urlToUint8Array:()=>NX,cached:()=>Jl,captureStackTrace:()=>_0,cleanEnum:()=>RX,cleanRegex:()=>Vd,clone:()=>wn,cloneDef:()=>xX,createTransparentProxy:()=>TX,defineLazy:()=>nt,esc:()=>w0,escapeRegex:()=>Gn,extend:()=>CX,finalizeIssue:()=>sn,floatSafeRemainder:()=>xw,getElementAtPath:()=>wX,getEnumValues:()=>Zd,getLengthableOrigin:()=>Hd,getParsedType:()=>IX,getSizableOrigin:()=>qd,hexToUint8Array:()=>OX,isObject:()=>Cs,isPlainObject:()=>ba,issue:()=>Kl,joinValues:()=>Re,jsonStringifyReplacer:()=>Wl,merge:()=>zX,mergeDefs:()=>gi,normalizeParams:()=>ye,nullish:()=>va,numKeys:()=>SX,objectClone:()=>bX,omit:()=>PX,optionalKeys:()=>Sw,parsedType:()=>Oe,partial:()=>AX,pick:()=>$X,prefixIssues:()=>_n,primitiveTypes:()=>kw,promiseAllObject:()=>_X,propertyKeyTypes:()=>Gd,randomString:()=>kX,required:()=>MX,safeExtend:()=>EX,shallowClone:()=>nA,slugify:()=>ww,stringifyPrimitive:()=>Ne,uint8ArrayToBase64:()=>iA,uint8ArrayToBase64url:()=>DX,uint8ArrayToHex:()=>LX,unwrapMessage:()=>Fd});function fX(e){return e}function hX(e){return e}function gX(e){}function vX(e){throw new Error("Unexpected value in exhaustive check")}function yX(e){}function Zd(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function Re(e,t="|"){return e.map(r=>Ne(r)).join(t)}function Wl(e,t){return typeof t=="bigint"?t.toString():t}function Jl(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function va(e){return e==null}function Vd(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function xw(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var rA=Symbol("evaluating");function nt(e,t,r){let o;
vendor: 4,807 bytes, line 14
14Object.defineProperty(e,t,{get(){if(o!==rA)return o===void 0&&(o=rA,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function bX(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function ya(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function gi(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function xX(e){return gi(e._zod.def)}function wX(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function _X(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function kX(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function w0(e){return JSON.stringify(e)}function ww(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var _0="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Cs(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _w=Jl(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function ba(e){if(Cs(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Cs(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function nA(e){return ba(e)?{...e}:Array.isArray(e)?[...e]:e}function SX(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var IX=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}`)}},Gd=new Set(["string","number","symbol"]),kw=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Gn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wn(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ye(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 TX(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function Ne(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Sw(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Iw={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]},Tw={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $X(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=gi(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return ya(this,"shape",a),a},checks:[]});return wn(e,i)}function PX(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=gi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return ya(this,"shape",a),a},checks:[]});return wn(e,i)}function CX(e,t){if(!ba(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot over
14write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=gi(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return ya(this,"shape",i),i}});return wn(e,n)}function EX(e,t){if(!ba(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=gi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return ya(this,"shape",o),o}});return wn(e,r)}function zX(e,t){let r=gi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return ya(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return wn(e,r)}function AX(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 a=gi(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return ya(this,"shape",c),c},checks:[]});return wn(t,a)}function MX(e,t,r){let o=gi(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return ya(this,"shape",i),i}});return wn(t,o)}function xa(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 _n(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Fd(e){return typeof e=="string"?e:e?.message}function sn(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Fd(e.inst?._zod.def?.error?.(e))??Fd(t?.error?.(e))??Fd(r.customError?.(e))??Fd(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function qd(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Hd(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Oe(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 Kl(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function RX(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function oA(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function iA(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function NX(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return oA(t+r)}function DX(e){return iA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function OX(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 o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function LX(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var bw=class{constructor(...t){}};var aA=(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,Wl,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},k0=U("$ZodError",aA),Wd=U("$ZodError",aA,{Parent:Error});function $w(e,t=r=>r.message){let r={},o=[];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))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Pw(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let c=i.path[s];s===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return o(e),r}var Jd=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new Do;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>sn(c,i,kr())));throw _0(s,n?.callee),s}return a.value},Cw=Jd(Wd),Kd=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>sn(c,i,kr())));throw _0(s,n?.callee),s}return a.value},Ew=Kd(Wd),Xd=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new Do;return i.issues.length?{success:!1,error:new(e??k0)(i.issues.map(a=>
14sn(a,n,kr())))}:{success:!0,data:i.value}},sA=Xd(Wd),Yd=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>sn(a,n,kr())))}:{success:!0,data:i.value}},lA=Yd(Wd),cA=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Jd(e)(t,r,n)};var uA=e=>(t,r,o)=>Jd(e)(t,r,o);var dA=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Kd(e)(t,r,n)};var pA=e=>async(t,r,o)=>Kd(e)(t,r,o);var mA=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Xd(e)(t,r,n)};var fA=e=>(t,r,o)=>Xd(e)(t,r,o);var hA=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Yd(e)(t,r,n)};var gA=e=>async(t,r,o)=>Yd(e)(t,r,o);var Oo={};rn(Oo,{base64:()=>qw,base64url:()=>S0,bigint:()=>Yw,boolean:()=>e_,browserEmail:()=>HX,cidrv4:()=>Vw,cidrv6:()=>Gw,cuid:()=>zw,cuid2:()=>Aw,date:()=>Ww,datetime:()=>Kw,domain:()=>KX,duration:()=>Ow,e164:()=>Hw,email:()=>jw,emoji:()=>Uw,extendedDuration:()=>UX,guid:()=>Lw,hex:()=>XX,hostname:()=>JX,html5Email:()=>VX,idnEmail:()=>qX,integer:()=>Qw,ipv4:()=>Bw,ipv6:()=>Fw,ksuid:()=>Nw,lowercase:()=>n_,mac:()=>Zw,md5_base64:()=>QX,md5_base64url:()=>eY,md5_hex:()=>YX,nanoid:()=>Dw,null:()=>t_,number:()=>I0,rfc5322Email:()=>GX,sha1_base64:()=>rY,sha1_base64url:()=>nY,sha1_hex:()=>tY,sha256_base64:()=>iY,sha256_base64url:()=>aY,sha256_hex:()=>oY,sha384_base64:()=>lY,sha384_base64url:()=>cY,sha384_hex:()=>sY,sha512_base64:()=>dY,sha512_base64url:()=>pY,sha512_hex:()=>uY,string:()=>Xw,time:()=>Jw,ulid:()=>Mw,undefined:()=>r_,unicodeEmail:()=>vA,uppercase:()=>o_,uuid:()=>Es,uuid4:()=>BX,uuid6:()=>FX,uuid7:()=>ZX,xid:()=>Rw});var zw=/^[cC][^\s-]{8,}$/,Aw=/^[0-9a-z]+$/,Mw=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Rw=/^[0-9a-vA-V]{20}$/,Nw=/^[A-Za-z0-9]{27}$/,Dw=/^[a-zA-Z0-9_-]{21}$/,Ow=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,UX=/^[-+]?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)?)??$/,Lw=/^([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})$/,Es=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)$/,BX=Es(4),FX=Es(6),ZX=Es(7),jw=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,VX=/^[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])?)*$/,GX=/^(([^<>()\[\]\\.,;:\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,}))$/,vA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,qX=vA,HX=/^[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])?)*$/,WX="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Uw(){return new RegExp(WX,"u")}var Bw=/^(?:(?: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])$/,Fw=/^(([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}|:))$/,Zw=e=>{let t=Gn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Vw=/^((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])$/,Gw=/^(([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])$/,qw=/^$|^(?:[0-9a-zA-Z+/]{4}
vendor: 31,577 bytes, lines 14-50
14)*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,S0=/^[A-Za-z0-9_-]*$/,JX=/^(?=.{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])?)*\.?$/,KX=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Hw=/^\+[1-9]\d{6,14}$/,yA="(?:(?:\\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])))",Ww=new RegExp(`^${yA}$`);function bA(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 Jw(e){return new RegExp(`^${bA(e)}$`)}function Kw(e){let t=bA({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${yA}T(?:${o})$`)}var Xw=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yw=/^-?\d+n?$/,Qw=/^-?\d+$/,I0=/^-?\d+(?:\.\d+)?$/,e_=/^(?:true|false)$/i,t_=/^null$/i;var r_=/^undefined$/i;var n_=/^[^A-Z]*$/,o_=/^[^a-z]*$/,XX=/^[0-9a-fA-F]*$/;function Qd(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ep(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var YX=/^[0-9a-fA-F]{32}$/,QX=Qd(22,"=="),eY=ep(22),tY=/^[0-9a-fA-F]{40}$/,rY=Qd(27,"="),nY=ep(27),oY=/^[0-9a-fA-F]{64}$/,iY=Qd(43,"="),aY=ep(43),sY=/^[0-9a-fA-F]{96}$/,lY=Qd(64,""),cY=ep(64),uY=/^[0-9a-fA-F]{128}$/,dY=Qd(86,"=="),pY=ep(86);var Rt=U("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),wA={number:"number",bigint:"bigint",object:"date"},i_=U("$ZodCheckLessThan",(e,t)=>{Rt.init(e,t);let r=wA[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),a_=U("$ZodCheckGreaterThan",(e,t)=>{Rt.init(e,t);let r=wA[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_A=U("$ZodCheckMultipleOf",(e,t)=>{Rt.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.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):xw(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})}}),kA=U("$ZodCheckNumberFormat",(e,t)=>{Rt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=Iw[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Qw)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),SA=U("$ZodCheckBigIntFormat",(e,t)=>{Rt.init(e,t);let[r,o]=Tw[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),IA=U("$ZodCheckMaxSize",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:qd(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),TA=U("$ZodCheckMinSize",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:qd(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),$A=U("$ZodCheckSizeEquals",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:qd(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),PA=U("$ZodCheckMaxLength",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=Hd(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),CA=U("$ZodCheckMinLength",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=Hd(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),EA=U("$ZodCheckLengthEquals",(e,t)=>{var r;Rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!va(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=Hd(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),tp=U("$ZodCheckStringFormat",(e,t)=>{var r,o;Rt.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.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})}):(o=e._zod).check??(o.check=()=>{})}),zA=U("$ZodCheckRegex",(e,t)=>{tp.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})}}),AA=U("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=n_),tp.init(e,t)}),MA=U("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=o_),tp.init(e,t)}),RA=U("$ZodCheckIncludes",(e,t)=>{Rt.init(e,t);let r=Gn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),NA=U("$ZodCheckStartsWith",(e,t)=>{Rt.init(e,t);let r=new RegExp(`^${Gn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),DA=U("$ZodCheckEndsWith",(e,t)=>{Rt.init(e,t);let r=new RegExp(`.*${Gn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function xA(e,t,r){e.issues.length&&t.issues.push(..._n(r,e.issues))}var OA=U("$ZodCheckProperty",(e,t)=>{Rt.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>xA(n,r,t.property));xA(o,r,t.property)}}),LA=U("$ZodCheckMimeType",(e,t)=>{Rt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),jA=U("$ZodCheckOverwrite",(e,t)=>{Rt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var T0=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 o=t.split(` 15`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(` 16`))}};var BA={major:4,minor:3,patch:6};var Ve=U("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=BA;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=xa(a),p;for(let m of s){if(m._zod.def.when){if(!m._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,g=m._zod.check(a);if(g instanceof Promise&&c?.async===!1)throw new Do;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,a.issues.length!==h&&(u||(u=xa(a,h)))});else{if(a.issues.length===h)continue;u||(u=xa(a,h))}}return p?p.then(()=>a):a},i=(a,s,c)=>{if(xa(a))return a.aborted=!0,a;let u=n(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Do;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(p=>i(p,a,s)):i(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new Do;return c.then(u=>n(u,o,s))}return n(c,o,s)}}nt(e,"~standard",()=>({validate:n=>{try{let i=sA(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return lA(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Xl=U("$ZodString",(e,t)=>{Ve.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Xw(e._zod.bag),e._zod.parse=(r,o)=>{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}}),Pt=U("$ZodStringFormat",(e,t)=>{tp.init(e,t),Xl.init(e,t)}),QA=U("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Lw),Pt.init(e,t)}),eM=U("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Es(o))}else t.pattern??(t.pattern=Es());Pt.init(e,t)}),tM=U("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=jw),Pt.init(e,t)}),rM=U("$ZodURL",(e,t)=>{Pt.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);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=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),nM=U("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Uw()),Pt.init(e,t)}),oM=U("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Dw),Pt.init(e,t)}),iM=U("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=zw),Pt.init(e,t)}),aM=U("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Aw),Pt.init(e,t)}),sM=U("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Mw),Pt.init(e,t)}),lM=U("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Rw),Pt.init(e,t)}),cM=U("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Nw),Pt.init(e,t)}),uM=U("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Kw(t)),Pt.init(e,t)}),dM=U("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Ww),Pt.init(e,t)}),pM=U("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Jw(t)),Pt.init(e,t)}),mM=U("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Ow),Pt.init(e,t)}),fM=U("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Bw),Pt.init(e,t),e._zod.bag.format="ipv4"}),hM=U("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Fw),Pt.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})}}}),gM=U("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Zw(t.delimiter)),Pt.init(e,t),e._zod.bag.format="mac"}),vM=U("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Vw),Pt.init(e,t)}),yM=U("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Gw),Pt.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>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 bM(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var xM=U("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=qw),Pt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{bM(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function mY(e){if(!S0.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return bM(r)}var wM=U("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=S0),Pt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{mY(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),_M=U("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hw),Pt.init(e,t)});function fY(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var kM=U("$ZodJWT",(e,t)=>{Pt.init(e,t),e._zod.check=r=>{fY(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),SM=U("$ZodCustomStringFormat",(e,t)=>{Pt.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})}}),l_=U("$ZodNumber",(e,t)=>{Ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??I0,e._zod.parse=(r,o)=>{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 i=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,...i?{received:i}:{}}),r}}),IM=U("$ZodNumberFormat",(e,t)=>{kA.init(e,t),l_.init(e,t)}),A0=U("$ZodBoolean",(e,t)=>{Ve.init(e,t),e._zod.pattern=e_,e._zod.parse=(r,o)=>{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}}),c_=U("$ZodBigInt",(e,t)=>{Ve.init(e,t),e._zod.pattern=Yw,e._zod.parse=(r,o)=>{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}}),TM=U("$ZodBigIntFormat",(e,t)=>{SA.init(e,t),c_.init(e,t)}),$M=U("$ZodSymbol",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),PM=U("$ZodUndefined",(e,t)=>{Ve.init(e,t),e._zod.pattern=r_,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),CM=U("$ZodNull",(e,t)=>{Ve.init(e,t),e._zod.pattern=t_,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),EM=U("$ZodAny",(e,t)=>{Ve.init(e,t),e._zod.parse=r=>r}),zM=U("$ZodUnknown",(e,t)=>{Ve.init(e,t),e._zod.parse=r=>r}),AM=U("$ZodNever",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),MM=U("$ZodVoid",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),RM=U("$ZodDate",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function FA(e,t,r){e.issues.length&&t.issues.push(..._n(r,e.issues)),t.value[r]=e.value}var NM=U("$ZodArray",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{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 i=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(u=>FA(u,r,a))):FA(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function z0(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(..._n(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function DM(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Sw(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function OM(e,t,r,o,n,i){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,p=c.optout==="optional";for(let m in t){if(s.has(m))continue;if(u==="never"){a.push(m);continue}let h=c.run({value:t[m],issues:[]},o);h instanceof Promise?e.push(h.then(g=>z0(g,r,m,t,p))):z0(h,r,m,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var hY=U("$ZodObject",(e,t)=>{if(Ve.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=Jl(()=>DM(t));nt(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let p=s[u]._zod;if(p.values){c[u]??(c[u]=new Set);for(let m of p.values)c[u].add(m)}}return c});let n=Cs,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let p=[],m=a.shape;for(let h of a.keys){let g=m[h],b=g._zod.optout==="optional",T=g._zod.run({value:u[h],issues:[]},c);T instanceof Promise?p.push(T.then(I=>z0(I,s,h,u,b))):z0(T,s,h,u,b)}return i?OM(p,u,s,c,o.value,e):p.length?Promise.all(p).then(()=>s):s}}),LM=U("$ZodObjectJIT",(e,t)=>{hY.init(e,t);let r=e._zod.parse,o=Jl(()=>DM(t)),n=h=>{let g=new T0(["shape","payload","ctx"]),b=o.value,T=k=>{let A=w0(k);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};g.write("const input = payload.value;");let I=Object.create(null),P=0;for(let k of b.keys)I[k]=`key_${P++}`;g.write("const newResult = {};");for(let k of b.keys){let A=I[k],z=w0(k),B=h[k]?._zod?.optout==="optional";g.write(`const ${A} = ${T(k)};`),B?g.write(` 17 if (${A}.issues.length) { 18 if (${z} in input) { 19 payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ 20 ...iss, 21 path: iss.path ? [${z}, ...iss.path] : [${z}] 22 }))); 23 } 24 } 25 26 if (${A}.value === undefined) { 27 if (${z} in input) { 28 newResult[${z}] = undefined; 29 } 30 } else { 31 newResult[${z}] = ${A}.value; 32 } 33 34 `):g.write(` 35 if (${A}.issues.length) { 36 payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ 37 ...iss, 38 path: iss.path ? [${z}, ...iss.path] : [${z}] 39 }))); 40 } 41 42 if (${A}.value === undefined) { 43 if (${z} in input) { 44 newResult[${z}] = undefined; 45 } 46 } else { 47 newResult[${z}] = ${A}.value; 48 } 49 50 `)}g.write("payload.value = newResult;"),g.write("return payload;");let C=g.compile();return(k,A)=>C(h,k,A)},i,a=Cs,s=!x0.jitless,u=s&&_w.value,p=t.catchall,m;e._zod.parse=(h,g)=>{m??(m=o.value);let b=h.value;return a(b)?s&&u&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),h=i(h,g),p?OM([],b,h,g,m,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function ZA(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!xa(i));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(i=>i.issues.map(a=>sn(a,o,kr())))}),t)}var M0=U("$ZodUnion",(e,t)=>{Ve.init(e,t),nt(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),nt(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),nt(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),nt(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Vd(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(c=>ZA(c,n,e,i)):ZA(s,n,e,i)}});function VA(e,t,r,o){let n=e.filter(i=>i.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(i=>i.issues.map(a=>sn(a,o,kr())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var jM=U("$ZodXor",(e,t)=>{M0.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(c=>VA(c,n,e,i)):VA(s,n,e,i)}}),UM=U("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,M0.init(e,t);let r=e._zod.parse;nt(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let o=Jl(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Cs(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),BM=U("$ZodIntersection",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,u])=>GA(r,c,u)):GA(r,i,a)}});function s_(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(ba(e)&&ba(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=s_(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.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 o=0;o<e.length;o++){let n=e[o],i=t[o],a=s_(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function GA(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),xa(e))return e;let a=s_(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var u_=U("$ZodTuple",(e,t)=>{Ve.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),c=s===-1?0:r.length-s;if(!t.rest){let p=i.length>r.length,m=i.length<c-1;if(p||m)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let p of r){if(u++,u>=i.length&&u>=c)continue;let m=p._zod.run({value:i[u],issues:[]},n);m instanceof Promise?a.push(m.then(h=>$0(h,o,u))):$0(m,o,u)}if(t.rest){let p=i.slice(r.length);for(let m of p){u++;let h=t.rest._zod.run({value:m,issues:[]},n);h instanceof Promise?a.push(h.then(g=>$0(g,o,u))):$0(h,o,u)}}return a.length?Promise.all(a).then(()=>o):o}});function $0(e,t,r){e.issues.length&&t.issues.push(..._n(r,e.issues)),t.value[r]=e.value}var FM=U("$ZodRecord",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!ba(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(..._n(u,m.issues)),r.value[u]=m.value})):(p.issues.length&&r.issues.push(..._n(u,p.issues)),r.value[u]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&I0.test(s)&&c.issues.length){let m=t.keyType._zod.run({value:Number(s),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>sn(m,o,kr())),input:s,path:[s],inst:e});continue}let p=t.valueType._zod.run({value:n[s],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(..._n(s,m.issues)),r.value[c.value]=m.value})):(p.issues.length&&r.issues.push(..._n(s,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),ZM=U("$ZodMap",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([p,m])=>{qA(p,m,r,a,n,e,o)})):qA(c,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function qA(e,t,r,o,n,i,a){e.issues.length&&(Gd.has(typeof o)?r.issues.push(..._n(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>sn(s,a,kr()))})),t.issues.length&&(Gd.has(typeof o)?r.issues.push(..._n(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>sn(s,a,kr()))})),r.value.set(e.value,t.value)}var VM=U("$ZodSet",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(c=>HA(c,r))):HA(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function HA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var GM=U("$ZodEnum",(e,t)=>{Ve.init(e,t);let r=Zd(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Gd.has(typeof n)).map(n=>typeof n=="string"?Gn(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),qM=U("$ZodLiteral",(e,t)=>{if(Ve.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(o=>
50typeof o=="string"?Gn(o):o?Gn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),HM=U("$ZodFile",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),WM=U("$ZodTransform",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ps(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new Do;return r.value=n,r}});function WA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var d_=U("$ZodOptional",(e,t)=>{Ve.init(e,t),e._zod.optin="optional",e._zod.optout="optional",nt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),nt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Vd(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>WA(i,r.value)):WA(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),JM=U("$ZodExactOptional",(e,t)=>{d_.init(e,t),nt(e._zod,"values",()=>t.innerType._zod.values),nt(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),KM=U("$ZodNullable",(e,t)=>{Ve.init(e,t),nt(e._zod,"optin",()=>t.innerType._zod.optin),nt(e._zod,"optout",()=>t.innerType._zod.optout),nt(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Vd(r.source)}|null)$`):void 0}),nt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),XM=U("$ZodDefault",(e,t)=>{Ve.init(e,t),e._zod.optin="optional",nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>JA(i,t)):JA(n,t)}});function JA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var YM=U("$ZodPrefault",(e,t)=>{Ve.init(e,t),e._zod.optin="optional",nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),QM=U("$ZodNonOptional",(e,t)=>{Ve.init(e,t),nt(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>KA(i,e)):KA(n,e)}});function KA(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 eR=U("$ZodSuccess",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ps("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),tR=U("$ZodCatch",(e,t)=>{Ve.init(e,t),nt(e._zod,"optin",()=>t.innerType._zod.optin),nt(e._zod,"optout",()=>t.innerType._zod.optout),nt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>sn(a,o,kr()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>sn(i,o,kr()))},input:r.value}),r.issues=[]),r)}}),rR=U("$ZodNaN",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),nR=U("$ZodPipe",(e,t)=>{Ve.init(e,t),nt(e._zod,"values",()=>t.in._zod.values),nt(e._zod,"optin",()=>t.in._zod.optin),nt(e._zod,"optout",()=>t.out._zod.optout),nt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>P0(a,t.in,o)):P0(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>P0(i,t.out,o)):P0(n,t.out,o)}});function P0(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var R0=U("$ZodCodec",(e,t)=>{Ve.init(e,t),nt(e._zod,"values",()=>t.in._zod.values),nt(e._zod,"optin",()=>t.in._zod.optin),nt(e._zod,"optout",()=>t.out._zod.optout),nt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>C0(a,t,o)):C0(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>C0(a,t,o)):C0(i,t,o)}}});function C0(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(i=>E0(e,i,t.out,r)):E0(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>E0(e,i,t.in,r)):E0(e,n,t.in,r)}}function E0(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var oR=U("$ZodReadonly",(e,t)=>{Ve.init(e,t),nt(e._zod,"propValues",()=>t.innerType._zod.propValues),nt(e._zod,"values",()=>t.innerType._zod.values),nt(e._zod,"optin",()=>t.innerType?._zod?.optin),nt(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(XA):XA(n)}});function XA(e){return e.value=Object.freeze(e.value),e}var iR=U("$ZodTemplateLiteral",(e,t)=>{Ve.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||kw.has(typeof o))r.push(Gn(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),aR=U("$ZodFunction",(e,t)=>(Ve.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(...o){let n=e._def.input?Cw(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Cw(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Ew(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ew(e._def.output,i):i}},e._zod.parse=(r,o)=>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 o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new u_({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),sR=U("$ZodPromise",(e,t)=>{Ve.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),lR=U("$ZodLazy",(e,t)=>{Ve.init(e,t),nt(e._zod,"innerType",()=>t.getter()),nt(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),nt(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),nt(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),nt(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),cR=U("$ZodCustom",(e,t)=>{Rt.init(e,t),Ve.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>YA(i,r,o,e));YA(n,r,o,e)}});function YA(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Kl(n))}}var vY=()=>{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"},o={nan:"NaN"};return n=>
vendor: 41,958 bytes, lines 50-52
50{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=Oe(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Ne(n.values[0])}`:`Invalid option: expected one of ${Re(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.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":""}: ${Re(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 p_(){return{localeError:vY()}}var dR;var m_=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(r)??{}};delete o.id;let n={...o,...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 pR(){return new m_}(dR=globalThis).__zod_globalRegistry??(dR.__zod_globalRegistry=pR());var ln=globalThis.__zod_globalRegistry;function mR(e,t){return new e({type:"string",...ye(t)})}function f_(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ye(t)})}function N0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ye(t)})}function h_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ye(t)})}function g_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ye(t)})}function v_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ye(t)})}function y_(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ye(t)})}function D0(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ye(t)})}function b_(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ye(t)})}function x_(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ye(t)})}function w_(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ye(t)})}function __(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ye(t)})}function k_(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ye(t)})}function S_(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ye(t)})}function I_(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ye(t)})}function T_(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ye(t)})}function $_(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ye(t)})}function fR(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ye(t)})}function P_(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ye(t)})}function C_(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ye(t)})}function E_(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ye(t)})}function z_(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ye(t)})}function A_(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ye(t)})}function M_(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ye(t)})}function hR(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ye(t)})}function gR(e,t){return new e({type:"string",format:"date",check:"string_format",...ye(t)})}function vR(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ye(t)})}function yR(e,t){return new e({type:"string",format:"duration",check:"string_format",...ye(t)})}function bR(e,t){return new e({type:"number",checks:[],...ye(t)})}function xR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ye(t)})}function wR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ye(t)})}function _R(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ye(t)})}function kR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ye(t)})}function SR(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ye(t)})}function IR(e,t){return new e({type:"boolean",...ye(t)})}function TR(e,t){return new e({type:"bigint",...ye(t)})}function $R(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ye(t)})}function PR(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ye(t)})}function CR(e,t){return new e({type:"symbol",...ye(t)})}function ER(e,t){return new e({type:"undefined",...ye(t)})}function zR(e,t){return new e({type:"null",...ye(t)})}function AR(e){return new e({type:"any"})}function MR(e){return new e({type:"unknown"})}function RR(e,t){return new e({type:"never",...ye(t)})}function NR(e,t){return new e({type:"void",...ye(t)})}function DR(e,t){return new e({type:"date",...ye(t)})}function OR(e,t){return new e({type:"nan",...ye(t)})}function wa(e,t){return new i_({check:"less_than",...ye(t),value:e,inclusive:!1})}function uo(e,t){return new i_({check:"less_than",...ye(t),value:e,inclusive:!0})}function _a(e,t){return new a_({check:"greater_than",...ye(t),value:e,inclusive:!1})}function kn(e,t){return new a_({check:"greater_than",...ye(t),value:e,inclusive:!0})}function LR(e){return _a(0,e)}function jR(e){return wa(0,e)}function UR(e){return uo(0,e)}function BR(e){return kn(0,e)}function Yl(e,t){return new _A({check:"multiple_of",...ye(t),value:e})}function Ql(e,t){return new IA({check:"max_size",...ye(t),maximum:e})}function ka(e,t){return new TA({check:"min_size",...ye(t),minimum:e})}function rp(e,t){return new $A({check:"size_equals",...ye(t),size:e})}function np(e,t){return new PA({check:"max_length",...ye(t),maximum:e})}function zs(e,t){return new CA({check:"min_length",...ye(t),minimum:e})}function op(e,t){return new EA({check:"length_equals",...ye(t),length:e})}function O0(e,t){return new zA({check:"string_format",format:"regex",...ye(t),pattern:e})}function L0(e){return new AA({check:"string_format",format:"lowercase",...ye(e)})}function j0(e){return new MA({check:"string_format",format:"uppercase",...ye(e)})}function U0(e,t){return new RA({check:"string_format",format:"includes",...ye(t),includes:e})}function B0(e,t){return new NA({check:"string_format",format:"starts_with",...ye(t),prefix:e})}function F0(e,t){return new DA({check:"string_format",format:"ends_with",...ye(t),suffix:e})}function FR(e,t,r){return new OA({check:"property",property:e,schema:t,...ye(r)})}function Z0(e,t){return new LA({check:"mime_type",mime:e,...ye(t)})}function vi(e){return new jA({check:"overwrite",tx:e})}function V0(e){return vi(t=>t.normalize(e))}function G0(){return vi(e=>e.trim())}function q0(){return vi(e=>e.toLowerCase())}function H0(){return vi(e=>e.toUpperCase())}function W0(){return vi(e=>ww(e))}function ZR(e,t,r){return new e({type:"array",element:t,...ye(r)})}function VR(e,t){return new e({type:"file",...ye(t)})}function GR(e,t,r){let o=ye(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function qR(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ye(r)})}function HR(e){let t=wY(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Kl(o,r.value,t._zod.def));else{let n=o;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(Kl(n))}},e(r.value,r)));return t}function wY(e,t){let r=new Rt({check:"custom",...ye(t)});return r._zod.check=e,r}function WR(e){let t=new Rt({check:"describe"});return t._zod.onattach=[r=>{let o=ln.get(r)??{};ln.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function JR(e){let t=new Rt({check:"meta"});return t._zod.onattach=[r=>{let o=ln.get(r)??{};ln.add(r,{...o,...e})}],t._zod.check=()=>{},t}function KR(e,t){let r=ye(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),s=e.Codec??R0,c=e.Boolean??A0,u=e.String??Xl,p=new u({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),h=new s({type:"pipe",in:p,out:m,transform:((g,b)=>{let T=g;return r.case!=="sensitive"&&(T=T.toLowerCase()),i.has(T)?!0:a.has(T)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:h,continue:!1}),{})}),reverseTransform:((g,b)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return h}function ip(e,t,r,o={}){let n=ye(o),i={...ye(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function ec(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??ln,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 It(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let h=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,p)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),It(m,t,p),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Zr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function tc(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,h=e.external.uri??(b=>b);if(m)return{ref:h(m)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${h("__shared")}#/${s}/${g}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let p=s.schema;for(let m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 51 52Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function rc(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,u={...c},p=s.ref;if(s.ref=null,p){o(p);let h=e.seen.get(p),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(g)):Object.assign(c,g),Object.assign(c,u),a._zod.parent===p)for(let T in c)T==="$ref"||T==="allOf"||T in u||delete c[T];if(g.$ref&&h.def)for(let T in c)T==="$ref"||T==="allOf"||T in h.def&&JSON.stringify(c[T])===JSON.stringify(h.def[T])&&delete c[T]}let m=a._zod.parent;if(m&&m!==p){o(m);let h=e.seen.get(m);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let g in c)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(c[g])===JSON.stringify(h.def[g])&&delete c[g]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[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 a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:ap(t,"input",e.processors),output:ap(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}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 o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Zr(o.element,r);if(o.type==="set")return Zr(o.valueType,r);if(o.type==="lazy")return Zr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Zr(o.innerType,r);if(o.type==="intersection")return Zr(o.left,r)||Zr(o.right,r);if(o.type==="record"||o.type==="map")return Zr(o.keyType,r)||Zr(o.valueType,r);if(o.type==="pipe")return Zr(o.in,r)||Zr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Zr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Zr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Zr(n,r))return!0;return!!(o.rest&&Zr(o.rest,r))}return!1}var XR=(e,t={})=>r=>{let o=ec({...r,processors:t});return It(e,o),tc(o,e),rc(o,e)},ap=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=ec({...n??{},target:i,io:t,processors:r});return It(e,a),tc(a,e),rc(a,e)};var _Y={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},N_=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=_Y[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},D_=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof a=="number"&&(n.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},O_=(e,t,r,o)=>{r.type="boolean"},L_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},j_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},U_=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},B_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},F_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Z_=(e,t,r,o)=>{r.not={}},V_=(e,t,r,o)=>{},G_=(e,t,r,o)=>{},q_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},H_=(e,t,r,o)=>{let n=e._zod.def,i=Zd(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},W_=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},J_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},K_=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},X_=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,i)},Y_=(e,t,r,o)=>{r.type="boolean"},Q_=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},e4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},t4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},r4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},n4=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},o4=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=It(i.element,t,{...o,path:[...o.path,"items"]})},i4=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=It(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=It(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},J0=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,c)=>It(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},a4=(e,t,r,o)=>{let n=e._zod.def,i=It(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=It(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},s4=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,g)=>It(h,t,{...o,path:[...o.path,a,g]})),u=i.rest?It(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:p,maximum:m}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof m=="number"&&(n.maxItems=m)},l4=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=It(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let m of c)n.patternProperties[m.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=It(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=It(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let p=[...u].filter(m=>typeof m=="string"||typeof m=="number");p.length>0&&(n.required=p)}},c4=(e,t,r,o)=>{let n=e._zod.def,i=It(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},u4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},d4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},p4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},m4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},f4=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;It(i,t,o);let a=t.seen.get(e);a.ref=i},h4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},g4=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},K0=(e,t,r,o)=>{let n=e._zod.def;It(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},v4=(e,t,r,o)=>{let n=e._zod.innerType;It(n,t,o);let i=t.seen.get(e);i.ref=n},R_={string:N_,number:D_,boolean:O_,bigint:L_,symbol:j_,null:U_,undefined:B_,void:F_,never:Z_,any:V_,unknown:G_,date:q_,enum:H_,literal:W_,nan:J_,template_literal:K_,file:X_,success:Y_,custom:Q_,function:e4,transform:t4,map:r4,set:n4,array:o4,object:i4,union:J0,intersection:a4,tuple:s4,record:l4,nullable:c4,nonoptional:u4,default:d4,prefault:p4,catch:m4,pipe:f4,readonly:h4,promise:g4,optional:K0,lazy:v4};function X0(e,t){if("_idmap"in e){let o=e,n=ec({...t,processors:R_}),i={};for(let c of o._idmap.entries()){let[u,p]=c;It(p,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let c of o._idmap.entries()){let[u,p]=c;tc(n,p),a[u]=rc(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=ec({...t,processors:R_});return It(e,r),tc(r,e),rc(r,e)}var lp={};rn(lp,{ZodAny:()=>vN,ZodArray:()=>wN,ZodBase64:()=>B4,ZodBase64URL:()=>F4,ZodBigInt:()=>lg,ZodBigIntFormat:()=>G4,ZodBoolean:()=>sg,ZodCIDRv4:()=>j4,ZodCIDRv6:()=>U4,ZodCUID:()=>A4,ZodCUID2:()=>M4,ZodCatch:()=>ZN,ZodCodec:()=>e2,ZodCustom:()=>mg,ZodCustomStringFormat:()=>up,ZodDate:()=>H4,ZodDefault:()=>ON,ZodDiscriminatedUnion:()=>kN,ZodE164:()=>Z4,ZodEmail:()=>C4,ZodEmoji:()=>E4,ZodEnum:()=>cp,ZodExactOptional:()=>RN,ZodFile:()=>AN,ZodFunction:()=>YN,ZodGUID:()=>eg,ZodIPv4:()=>O4,ZodIPv6:()=>L4,ZodIntersection:()=>SN,ZodJWT:()=>V4,ZodKSUID:()=>D4,ZodLazy:()=>JN,ZodLiteral:()=>zN,ZodMAC:()=>uN,ZodMap:()=>CN,ZodNaN:()=>GN,ZodNanoID:()=>z4,ZodNever:()=>bN,ZodNonOptional:()=>Y4,ZodNull:()=>hN,ZodNullable:()=>DN,ZodNumber:()=>ag,ZodNumberFormat:()=>oc,ZodObject:()=>ug,ZodOptional:()=>X4,ZodPipe:()=>Q4,ZodPrefault:()=>jN,ZodPromise:()=>XN,ZodReadonly:()=>qN,ZodRecord:()=>pg,ZodSet:()=>EN,ZodString:()=>og,ZodStringFormat:()=>Ct,ZodSuccess:()=>FN,ZodSymbol:()=>mN,ZodTemplateLiteral:()=>WN,ZodTransform:()=>MN,ZodTuple:()=>TN,ZodType:()=>Ye,ZodULID:()=>R4,ZodURL:()=>ig,ZodUUID:()=>yi,ZodUndefined:()=>fN,ZodUnion:()=>dg,ZodUnknown:()=>yN,ZodVoid:()=>xN,ZodXID:()=>N4,ZodXor:()=>_N,_ZodString:()=>P4,_default:()=>LN,_function:()=>EQ,any:()=>lQ,array:()=>cg,base64:()=>GY,base64url:()=>qY,bigint:()=>nQ,boolean:()=>pN,catch:()=>VN,check:()=>zQ,cidrv4:()=>ZY,cidrv6:()=>VY,codec:()=>$Q,cuid:()=>NY,cuid2:()=>DY,custom:()=>AQ,date:()=>uQ,describe:()=>MQ,discriminatedUnion:()=>gQ,e164:()=>HY,email:()=>IY,emoji:()=>MY,enum:()=>J4,exactOptional:()=>NN,file:()=>kQ,float32:()=>QY,float64:()=>eQ,function:()=>EQ,guid:()=>TY,hash:()=>YY,hex:()=>XY,hostname:()=>KY,httpUrl:()=>AY,instanceof:()=>NQ,int:()=>$4,int32:()=>tQ,int64:()=>oQ,intersection:()=>IN,ipv4:()=>UY,ipv6:()=>FY,json:()=>OQ,jwt:()=>WY,keyof:()=>dQ,ksuid:()=>jY,lazy:()=>KN,literal:()=>_Q,looseObject:()=>fQ,looseRecord:()=>yQ,mac:()=>BY,map:()=>bQ,meta:()=>RQ,nan:()=>TQ,nanoid:()=>RY,nativeEnum:()=>wQ,never:()=>q4,nonoptional:()=>BN,null:()=>gN,nullable:()=>rg,nullish:()=>SQ,number:()=>dN,object:()=>pQ,optional:()=>tg,partialRecord:()=>vQ,pipe:()=>ng,prefault:()=>UN,preprocess:()=>LQ,promise:()=>CQ,readonly:()=>HN,record:()=>PN,refine:()=>QN,set:()=>xQ,strictObject:()=>mQ,string:()=>T4,stringFormat:()=>JY,stringbool:()=>DQ,success:()=>IQ,superRefine:()=>eD,symbol:()=>aQ,templateLiteral:()=>PQ,transform:()=>K4,tuple:()=>$N,uint32:()=>rQ,uint64:()=>iQ,ulid:()=>OY,undefined:()=>sQ,union:()=>W4,unknown:()=>nc,url:()=>zY,uuid:()=>$Y,uuidv4:()=>PY,uuidv6:()=>CY,uuidv7:()=>EY,void:()=>cQ,xid:()=>LY,xor:()=>hQ});var Y0={};rn(Y0,{endsWith:()=>F0,gt:()=>_a,gte:()=>kn,includes:()=>U0,length:()=>op,lowercase:()=>L0,lt:()=>wa,lte:()=>uo,maxLength:()=>np,maxSize:()=>Ql,mime:()=>Z0,minLength:()=>zs,minSize:()=>ka,multipleOf:()=>Yl,negative:()=>jR,nonnegative:()=>BR,nonpositive:()=>UR,normalize:()=>V0,overwrite:()=>vi,positive:()=>LR,property:()=>FR,regex:()=>O0,size:()=>rp,slugify:()=>W0,startsWith:()=>B0,toLowerCase:()=>q0,toUpperCase:()=>H0,trim:()=>G0,uppercase:()=>j0});var sp={};rn(sp,{ZodISODate:()=>x4,ZodISODateTime:()=>y4,ZodISODuration:()=>S4,ZodISOTime:()=>_4,date:()=>w4,datetime:()=>b4,duration:()=>I4,time:()=>k4});var y4=U("ZodISODateTime",(e,t)=>{uM.init(e,t),Ct.init(e,t)});function b4(e){return hR(y4,e)}var x4=U("ZodISODate",(e,t)=>{dM.init(e,t),Ct.init(e,t)});function w4(e){return gR(x4,e)}var _4=U("ZodISOTime",(e,t)=>{pM.init(e,t),Ct.init(e,t)});function k4(e){return vR(_4,e)}var S4=U("ZodISODuration",(e,t)=>{mM.init(e,t),Ct.init(e,t)});function I4(e){return yR(S4,e)}var YR=(e,t)=>{k0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Pw(e,r)},flatten:{value:r=>$w(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Wl,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Wl,2)}},isEmpty:{get(){return e.issues.length===0}}})},z8e=U("ZodError",YR),Sn=U("ZodError",YR,{Parent:Error});var QR=Jd(Sn),eN=Kd(Sn),tN=Xd(Sn),Q0=Yd(Sn),rN=cA(Sn),nN=uA(Sn),oN=dA(Sn),iN=pA(Sn),aN=mA(Sn),sN=fA(Sn),lN=hA(Sn),cN=gA(Sn);var Ye=U("ZodType",(e,t)=>(Ve.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:ap(e,"input"),output:ap(e,"output")}}),e.toJSONSchema=XR(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(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>wn(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>QR(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>tN(e,r,o),e.parseAsync=async(r,o)=>eN(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Q0(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>rN(e,r,o),e.decode=(r,o)=>nN(e,r,o),e.encodeAsync=async(r,o)=>oN(e,r,o),e.decodeAsync=async(r,o)=>iN(e,r,o),e.safeEncode=(r,o)=>aN(e,r,o),e.safeDecode=(r,o)=>sN(e,r,o),e.safeEncodeAsync=async(r,o)=>lN(e,r,o),e.safeDecodeAsync=async(r,o)=>cN(e,r,o),e.refine=(r,o)=>e.check(QN(r,o)),e.superRefine=r=>e.check(eD(r)),e.overwrite=r=>e.check(vi(r)),e.optional=()=>tg(e),e.exactOptional=()=>NN(e),e.nullable=()=>rg(e),e.nullish=()=>tg(rg(e)),e.nonoptional=r=>BN(e,r),e.array=()=>cg(e),e.or=r=>W4([e,r]),e.and=r=>IN(e,r),e.transform=r=>ng(e,K4(r)),e.default=r=>LN(e,r),e.prefault=r=>UN(e,r),e.catch=r=>VN(e,r),e.pipe=r=>ng(e,r),e.readonly=()=>HN(e),e.describe=r=>{let o=e.clone();return ln.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return ln.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ln.get(e);let o=e.clone();return ln.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),P4=U("_ZodString",(e,t)=>{Xl.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(o,n,i)=>N_(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(O0(...o)),e.includes=(...o)=>e.check(U0(...o)),e.startsWith=(...o)=>e.check(B0(...o)),e.endsWith=(...o)=>e.check(F0(...o)),e.min=(...o)=>e.check(zs(...o)),e.max=(...o)=>e.check(np(...o)),e.length=(...o)=>e.check(op(...o)),e.nonempty=(...o)=>e.check(zs(1,...o)),e.lowercase=o=>e.check(L0(o)),e.uppercase=o=>e.check(j0(o)),e.trim=()=>e.check(G0()),e.normalize=(...o)=>e.check(V0(...o)),e.toLowerCase=()=>e.check(q0()),e.toUpperCase=()=>e.check(H0()),e.slugify=()=>e.check(W0())}),og=U("ZodString",(e,t)=>{Xl.init(e,t),P4.init(e,t),e.email=r=>e.check(f_(C4,r)),e.url=r=>e.check(D0(ig,r)),e.jwt=r=>e.check(M_(V4,r)),e.emoji=r=>e.check(b_(E4,r)),e.guid=r=>e.check(N0(eg,r)),e.uuid=r=>e.check(h_(yi,r)),e.uuidv4=r=>e.check(g_(yi,r)),e.uuidv6=r=>e.check(v_(yi,r)),e.uuidv7=r=>e.check(y_(yi,r)),e.nanoid=r=>e.check(x_(z4,r)),e.guid=r=>e.check(N0(eg,r)),e.cuid=r=>e.check(w_(A4,r)),e.cuid2=r=>e.check(__(M4,r)),e.ulid=r=>e.check(k_(R4,r)),e.base64=r=>e.check(E_(B4,r)),e.base64url=r=>e.check(z_(F4,r)),e.xid=r=>e.check(S_(N4,r)),e.ksuid=r=>e.check(I_(D4,r)),e.ipv4=r=>e.check(T_(O4,r)),e.ipv6=r=>e.check($_(L4,r)),e.cidrv4=r=>e.check(P_(j4,r)),e.cidrv6=r=>e.check(C_(U4,r)),e.e164=r=>e.check(A_(Z4,r)),e.datetime=r=>e.check(b4(r)),e.date=r=>e.check(w4(r)),e.time=r=>e.check(k4(r)),e.duration=r=>e.check(I4(r))});function T4(e){return mR(og,e)}var Ct=U("ZodStringFormat",(e,t)=>{Pt.init(e,t),P4.init(e,t)}),C4=U("ZodEmail",(e,t)=>{tM.init(e,t),Ct.init(e,t)});function IY(e){return f_(C4,e)}var eg=U("ZodGUID",(e,t)=>{QA.init(e,t),Ct.init(e,t)});function TY(e){return N0(eg,e)}var yi=U("ZodUUID",(e,t)=>{eM.init(e,t),Ct.init(e,t)});function $Y(e){return h_(yi,e)}function PY(e){return g_(yi,e)}function CY(e){return v_(yi,e)}function EY(e){return y_(yi,e)}var ig=U("ZodURL",(e,t)=>{rM.init(e,t),Ct.init(e,t)});function zY(e){return D0(ig,e)}function AY(e){return D0(ig,{protocol:/^https?$/,hostname:Oo.domain,...ne.normalizeParams(e)})}var E4=U("ZodEmoji",(e,t)=>{nM.init(e,t),Ct.init(e,t)});function MY(e){return b_(E4,e)}var z4=U("ZodNanoID",(e,t)=>{oM.init(e,t),Ct.init(e,t)});function RY(e){return x_(z4,e)}var A4=U("ZodCUID",(e,t)=>{iM.init(e,t),Ct.init(e,t)});function NY(e){return w_(A4,e)}var M4=U("ZodCUID2",(e,t)=>{aM.init(e,t),Ct.init(e,t)});function DY(e){return __(M4,e)}var R4=U("ZodULID",(e,t)=>{sM.init(e,t),Ct.init(e,t)});function OY(e){return k_(R4,e)}var N4=U("ZodXID",(e,t)=>{lM.init(e,t),Ct.init(e,t)});function LY(e){return S_(N4,e)}var D4=U("ZodKSUID",(e,t)=>{cM.init(e,t),Ct.init(e,t)});function jY(e){return I_(D4,e)}var O4=U("ZodIPv4",(e,t)=>{fM.init(e,t),Ct.init(e,t)});function UY(e){return T_(O4,e)}var uN=U("ZodMAC",(e,t)=>{gM.init(e,t),Ct.init(e,t)});function BY(e){return fR(uN,e)}var L4=U("ZodIPv6",(e,t)=>{hM.init(e,t),Ct.init(e,t)});function FY(e){return $_(L4,e)}var j4=U("ZodCIDRv4",(e,t)=>{vM.init(e,t),Ct.init(e,t)});function ZY(e){return P_(j4,e)}var U4=U("ZodCIDRv6",(e,t)=>{yM.init(e,t),Ct.init(e,t)});function VY(e){return C_(U4,e)}var B4=U("ZodBase64",(e,t)=>{xM.init(e,t),Ct.init(e,t)});function GY(e){return E_(B4,e)}var F4=U("ZodBase64URL",(e,t)=>{wM.init(e,t),Ct.init(e,t)});function qY(e){return z_(F4,e)}var Z4=U("ZodE164",(e,t)=>{_M.init(e,t),Ct.init(e,t)});function HY(e){return A_(Z4,e)}var V4=U("ZodJWT",(e,t)=>{kM.init(e,t),Ct.init(e,t)});function WY(e){return M_(V4,e)}var up=U("ZodCustomStringFormat",(e,t)=>{SM.init(e,t),Ct.init(e,t)});function JY(e,t,r={}){return ip(up,e,t,r)}function KY(e){return ip(up,"hostname",Oo.hostname,e)}function XY(e){return ip(up,"hex",Oo.hex,e)}function YY(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Oo[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ip(up,o,n,t)}var ag=U("ZodNumber",(e,t)=>{l_.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(o,n,i)=>D_(e,o,n,i),e.gt=(o,n)=>e.check(_a(o,n)),e.gte=(o,n)=>e.check(kn(o,n)),e.min=(o,n)=>e.check(kn(o,n)),e.lt=(o,n)=>e.check(wa(o,n)),e.lte=(o,n)=>e.check(uo(o,n)),e.max=(o,n)=>e.check(uo(o,n)),e.int=o=>e.check($4(o)),e.safe=o=>e.check($4(o)),e.positive=o=>e.check(_a(0,o)),e.nonnegative=o=>e.check(kn(0,o)),e.negative=o=>e.check(wa(0,o)),e.nonpositive=o=>e.check(uo(0,o)),e.multipleOf=(o,n)=>e.check(Yl(o,n)),e.step=(o,n)=>e.check(Yl(o,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 dN(e){return bR(ag,e)}var oc=U("ZodNumberFormat",(e,t)=>{IM.init(e,t),ag.init(e,t)});function $4(e){return xR(oc,e)}function QY(e){return wR(oc,e)}function eQ(e){return _R(oc,e)}function tQ(e){return kR(oc,e)}function rQ(e){return SR(oc,e)}var sg=U("ZodBoolean",(e,t)=>{A0.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>O_(e,r,o,n)});function pN(e){return IR(sg,e)}var lg=U("ZodBigInt",(e,t)=>{c_.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(o,n,i)=>L_(e,o,n,i),e.gte=(o,n)=>e.check(kn(o,n)),e.min=(o,n)=>e.check(kn(o,n)),e.gt=(o,n)=>e.check(_a(o,n)),e.gte=(o,n)=>e.check(kn(o,n)),e.min=(o,n)=>e.check(kn(o,n)),e.lt=(o,n)=>e.check(wa(o,n)),e.lte=(o,n)=>e.check(uo(o,n)),e.max=(o,n)=>e.check(uo(o,n)),e.positive=o=>e.check(_a(BigInt(0),o)),e.negative=o=>e.check(wa(BigInt(0),o)),e.nonpositive=o=>e.check(uo(BigInt(0),o)),e.nonnegative=o=>e.check(kn(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Yl(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function nQ(e){return TR(lg,e)}var G4=U("ZodBigIntFormat",(e,t)=>{TM.init(e,t),lg.init(e,t)});function oQ(e){return $R(G4,e)}function iQ(e){return PR(G4,e)}var mN=U("ZodSymbol",(e,t)=>{$M.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>j_(e,r,o,n)});function aQ(e){return CR(mN,e)}var fN=U("ZodUndefined",(e,t)=>{PM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>B_(e,r,o,n)});function sQ(e){return ER(fN,e)}var hN=U("ZodNull",(e,t)=>{CM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>U_(e,r,o,n)});function gN(e){return zR(hN,e)}var vN=U("ZodAny",(e,t)=>{EM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>V_(e,r,o,n)});function lQ(){return AR(vN)}var yN=U("ZodUnknown",(e,t)=>{zM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>G_(e,r,o,n)});function nc(){return MR(yN)}var bN=U("ZodNever",(e,t)=>{AM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Z_(e,r,o,n)});function q4(e){return RR(bN,e)}var xN=U("ZodVoid",(e,t)=>{MM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>F_(e,r,o,n)});function cQ(e){return NR(xN,e)}var H4=U("ZodDate",(e,t)=>{RM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(o,n,i)=>q_(e,o,n,i),e.min=(o,n)=>e.check(kn(o,n)),e.max=(o,n)=>e.check(uo(o,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 uQ(e){return DR(H4,e)}var wN=U("ZodArray",(e,t)=>{NM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>o4(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(zs(r,o)),e.nonempty=r=>e.check(zs(1,r)),e.max=(r,o)=>e.check(np(r,o)),e.length=(r,o)=>e.check(op(r,o)),e.unwrap=()=>e.element});function cg(e,t){return ZR(wN,e,t)}function dQ(e){let t=e._zod.def.shape;return J4(Object.keys(t))}var ug=U("ZodObject",(e,t)=>{LM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>i4(e,r,o,n),ne.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>J4(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nc()}),e.loose=()=>e.clone({...e._zod.def,catchall:nc()}),e.strict=()=>e.clone({...e._zod.def,catchall:q4()}),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(X4,e,r[0]),e.required=(...r)=>ne.required(Y4,e,r[0])});function pQ(e,t){let r={type:"object",shape:e??{},...ne.normalizeParams(t)};return new ug(r)}function mQ(e,t){return new ug({type:"object",shape:e,catchall:q4(),...ne.normalizeParams(t)})}function fQ(e,t){return new ug({type:"object",shape:e,catchall:nc(),...ne.normalizeParams(t)})}var dg=U("ZodUnion",(e,t)=>{M0.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J0(e,r,o,n),e.options=t.options});function W4(e,t){return new dg({type:"union",options:e,...ne.normalizeParams(t)})}var _N=U("ZodXor",(e,t)=>{dg.init(e,t),jM.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J0(e,r,o,n),e.options=t.options});function hQ(e,t){return new _N({type:"union",options:e,inclusive:!1,...ne.normalizeParams(t)})}var kN=U("ZodDiscriminatedUnion",(e,t)=>{dg.init(e,t),UM.init(e,t)});function gQ(e,t,r){return new kN({type:"union",options:t,discriminator:e,...ne.normalizeParams(r)})}var SN=U("ZodIntersection",(e,t)=>{BM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>a4(e,r,o,n)});function IN(e,t){return new SN({type:"intersection",left:e,right:t})}var TN=U("ZodTuple",(e,t)=>{u_.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>s4(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function $N(e,t,r){let o=t instanceof Ve,n=o?r:t,i=o?t:null;return new TN({type:"tuple",items:e,rest:i,...ne.normalizeParams(n)})}var pg=U("ZodRecord",(e,t)=>{FM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>l4(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function PN(e,t,r){return new pg({type:"record",keyType:e,valueType:t,...ne.normalizeParams(r)})}function vQ(e,t,r){let o=wn(e);return o._zod.values=void 0,new pg({type:"record",keyType:o,valueType:t,...ne.normalizeParams(r)})}function yQ(e,t,r){return new pg({type:"record",keyType:e,valueType:t,mode:"loose",...ne.normalizeParams(r)})}var CN=U("ZodMap",(e,t)=>{ZM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>r4(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(ka(...r)),e.nonempty=r=>e.check(ka(1,r)),e.max=(...r)=>e.check(Ql(...r)),e.size=(...r)=>e.check(rp(...r))});function bQ(e,t,r){return new CN({type:"map",keyType:e,valueType:t,...ne.normalizeParams(r)})}var EN=U("ZodSet",(e,t)=>{VM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>n4(e,r,o,n),e.min=(...r)=>e.check(ka(...r)),e.nonempty=r=>e.check(ka(1,r)),e.max=(...r)=>e.check(Ql(...r)),e.size=(...r)=>e.check(rp(...r))});function xQ(e,t){return new EN({type:"set",valueType:e,...ne.normalizeParams(t)})}var cp=U("ZodEnum",(e,t)=>{GM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(o,n,i)=>H_(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new cp({...t,checks:[],...ne.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new cp({...t,checks:[],...ne.normalizeParams(n),entries:i})}});function J4(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new cp({type:"enum",entries:r,...ne.normalizeParams(t)})}function wQ(e,t){return new cp({type:"enum",entries:e,...ne.normalizeParams(t)})}var zN=U("ZodLiteral",(e,t)=>{qM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>W_(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if
52(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function _Q(e,t){return new zN({type:"literal",values:Array.isArray(e)?e:[e],...ne.normalizeParams(t)})}var AN=U("ZodFile",(e,t)=>{HM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>X_(e,r,o,n),e.min=(r,o)=>e.check(ka(r,o)),e.max=(r,o)=>e.check(Ql(r,o)),e.mime=(r,o)=>e.check(Z0(Array.isArray(r)?r:[r],o))});function kQ(e){return VR(AN,e)}var MN=U("ZodTransform",(e,t)=>{WM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>t4(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ps(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(ne.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(ne.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function K4(e){return new MN({type:"transform",transform:e})}var X4=U("ZodOptional",(e,t)=>{d_.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function tg(e){return new X4({type:"optional",innerType:e})}var RN=U("ZodExactOptional",(e,t)=>{JM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function NN(e){return new RN({type:"optional",innerType:e})}var DN=U("ZodNullable",(e,t)=>{KM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>c4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rg(e){return new DN({type:"nullable",innerType:e})}function SQ(e){return tg(rg(e))}var ON=U("ZodDefault",(e,t)=>{XM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function LN(e,t){return new ON({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var jN=U("ZodPrefault",(e,t)=>{YM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>p4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function UN(e,t){return new jN({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ne.shallowClone(t)}})}var Y4=U("ZodNonOptional",(e,t)=>{QM.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function BN(e,t){return new Y4({type:"nonoptional",innerType:e,...ne.normalizeParams(t)})}var FN=U("ZodSuccess",(e,t)=>{eR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Y_(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function IQ(e){return new FN({type:"success",innerType:e})}var ZN=U("ZodCatch",(e,t)=>{tR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>m4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function VN(e,t){return new ZN({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var GN=U("ZodNaN",(e,t)=>{rR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>J_(e,r,o,n)});function TQ(e){return OR(GN,e)}var Q4=U("ZodPipe",(e,t)=>{nR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>f4(e,r,o,n),e.in=t.in,e.out=t.out});function ng(e,t){return new Q4({type:"pipe",in:e,out:t})}var e2=U("ZodCodec",(e,t)=>{Q4.init(e,t),R0.init(e,t)});function $Q(e,t,r){return new e2({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var qN=U("ZodReadonly",(e,t)=>{oR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>h4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function HN(e){return new qN({type:"readonly",innerType:e})}var WN=U("ZodTemplateLiteral",(e,t)=>{iR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>K_(e,r,o,n)});function PQ(e,t){return new WN({type:"template_literal",parts:e,...ne.normalizeParams(t)})}var JN=U("ZodLazy",(e,t)=>{lR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>v4(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function KN(e){return new JN({type:"lazy",getter:e})}var XN=U("ZodPromise",(e,t)=>{sR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>g4(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function CQ(e){return new XN({type:"promise",innerType:e})}var YN=U("ZodFunction",(e,t)=>{aR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>e4(e,r,o,n)});function EQ(e){return new YN({type:"function",input:Array.isArray(e?.input)?$N(e?.input):e?.input??cg(nc()),output:e?.output??nc()})}var mg=U("ZodCustom",(e,t)=>{cR.init(e,t),Ye.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Q_(e,r,o,n)});function zQ(e){let t=new Rt({check:"custom"});return t._zod.check=e,t}function AQ(e,t){return GR(mg,e??(()=>!0),t)}function QN(e,t={}){return qR(mg,e,t)}function eD(e){return HR(e)}var MQ=WR,RQ=JR;function NQ(e,t={}){let r=new mg({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...ne.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var DQ=(...e)=>KR({Codec:e2,Boolean:sg,String:og},...e);function OQ(e){let t=KN(()=>W4([T4(e),dN(),pN(),gN(),cg(t),PN(T4(),t)]));return t}function LQ(e,t){return ng(K4(e),t)}var tD;tD||(tD={});var j8e={...lp,...Y0,iso:sp};kr(p_());var ut;(function(e){e.assertEqual=n=>{};function t(n){}e.assertIs=t;function r(n){throw new Error}e.assertNever=r,e.arrayToEnum=n=>{let i={};for(let a of n)i[a]=a;return i},e.getValidEnumValues=n=>{let i=e.objectKeys(n).filter(s=>typeof n[n[s]]!="number"),a={};for(let s of i)a[s]=n[s];return e.objectValues(a)},e.objectValues=n=>e.objectKeys(n).map(function(i){return n[i]}),e.objectKeys=typeof Object.keys=="function"?n=>Object.keys(n):n=>{let i=[];for(let a in n)Object.prototype.hasOwnProperty.call(n,a)&&i.push(a);return i},e.find=(n,i)=>{for(let a of n)if(i(a))return a}
vendor: 1,146 bytes, line 52
52,e.isInteger=typeof Number.isInteger=="function"?n=>Number.isInteger(n):n=>typeof n=="number"&&Number.isFinite(n)&&Math.floor(n)===n;function o(n,i=" | "){return n.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=o,e.jsonStringifyReplacer=(n,i)=>typeof i=="bigint"?i.toString():i})(ut||(ut={}));var rD;(function(e){e.mergeShapes=(t,r)=>({...t,...r})})(rD||(rD={}));var Se=ut.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bi=e=>{switch(typeof e){case"undefined":return Se.undefined;case"string":return Se.string;case"number":return Number.isNaN(e)?Se.nan:Se.number;case"boolean":return Se.boolean;case"function":return Se.function;case"bigint":return Se.bigint;case"symbol":return Se.symbol;case"object":return Array.isArray(e)?Se.array:e===null?Se.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Se.promise:typeof Map<"u"&&e instanceof Map?Se.map:typeof Set<"u"&&e instanceof Set?Se.set:typeof Date<"u"&&e instanceof Date?Se.date:Se.object;default:return Se.unknown}};
vendor: 5,698 bytes, line 52
52var Q=ut.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 In=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};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(i){return i.message},o={_errors:[]},n=i=>{for(let a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(n);else if(a.code==="invalid_return_type")n(a.returnTypeError);else if(a.code==="invalid_arguments")n(a.argumentsError);else if(a.path.length===0)o._errors.push(r(a));else{let s=o,c=0;for(;c<a.path.length;){let u=a.path[c];c===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(r(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}};return n(this),o}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,ut.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=r=>r.message){let r=Object.create(null),o=[];for(let n of this.issues)if(n.path.length>0){let i=n.path[0];r[i]=r[i]||[],r[i].push(t(n))}else o.push(t(n));return{formErrors:o,fieldErrors:r}}get formErrors(){return this.flatten()}};In.create=e=>new In(e);var ZQ=(e,t)=>{let r;switch(e.code){case Q.invalid_type:e.received===Se.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case Q.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,ut.jsonStringifyReplacer)}`;break;case Q.unrecognized_keys:r=`Unrecognized key(s) in object: ${ut.joinValues(e.keys,", ")}`;break;case Q.invalid_union:r="Invalid input";break;case Q.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${ut.joinValues(e.options)}`;break;case Q.invalid_enum_value:r=`Invalid enum value. Expected ${ut.joinValues(e.options)}, received '${e.received}'`;break;case Q.invalid_arguments:r="Invalid function arguments";break;case Q.invalid_return_type:r="Invalid function return type";break;case Q.invalid_date:r="Invalid date";break;case Q.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}"`:ut.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case Q.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 Q.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 Q.custom:r="Invalid input";break;case Q.invalid_intersection_types:r="Intersection results could not be merged";break;case Q.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case Q.not_finite:r="Number must be finite";break;default:r=t.defaultError,ut.assertNever(e)}return{message:r}},Sa=ZQ;var VQ=Sa;function dp(){return VQ}var fg=e=>{let{data:t,path:r,errorMaps:o,issueData:n}=e,i=[...r,...n.path||[]],a={...n,path:i};if(n.message!==void 0)return{...n,path:i,message:n.message};let s="",c=o.filter(u=>!!u).slice().reverse();for(let u of c)s=u(a,{data:t,defaultError:s}).message;return{...n,path:i,message:s}};function he(e,t){let r=dp(),o=fg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Sa?void 0:Sa].filter(n=>!!n)});e.common.issues.push(o)}var Mr=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 o=[];for(let n of r){if(n.status==="aborted")return Le;n.status==="dirty"&&t.dirty(),o.push(n.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,r){let o=[];for(let n of r){let i=await n.key,a=await n.value;o.push({key:i,value:a})}return e.mergeObjectSync(t,o)}static mergeObjectSync(t,r){let o={};for(let n of r){let{key:i,value:a}=n;
vendor: 48,609 bytes, line 52
52if(i.status==="aborted"||a.status==="aborted")return Le;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||n.alwaysSet)&&(o[i.value]=a.value)}return{status:t.value,value:o}}},Le=Object.freeze({status:"aborted"}),ic=e=>({status:"dirty",value:e}),Vr=e=>({status:"valid",value:e}),t2=e=>e.status==="aborted",r2=e=>e.status==="dirty",Ms=e=>e.status==="valid",pp=e=>typeof Promise<"u"&&e instanceof Promise;var Pe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Pe||(Pe={}));var qn=class{constructor(t,r,o,n){this._cachedPath=[],this.parent=t,this.data=r,this._path=o,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}},nD=(e,t)=>{if(Ms(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 In(e.common.issues);return this._error=r,this._error}}};function Ke(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:o,description:n}=e;if(t&&(r||o))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:(a,s)=>{let{message:c}=e;return a.code==="invalid_enum_value"?{message:c??s.defaultError}:typeof s.data>"u"?{message:c??o??s.defaultError}:a.code!=="invalid_type"?{message:s.defaultError}:{message:c??r??s.defaultError}},description:n}}var st=class{get description(){return this._def.description}_getType(t){return bi(t.data)}_getOrReturnCtx(t,r){return r||{common:t.parent.common,data:t.data,parsedType:bi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Mr,ctx:{common:t.parent.common,data:t.data,parsedType:bi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let r=this._parse(t);if(pp(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 o=this.safeParse(t,r);if(o.success)return o.data;throw o.error}safeParse(t,r){let o={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)},n=this._parseSync({data:t,path:o.path,parent:o});return nD(o,n)}"~validate"(t){let r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)};if(!this["~standard"].async)try{let o=this._parseSync({data:t,path:[],parent:r});return Ms(o)?{value:o.value}:{issues:r.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(o=>Ms(o)?{value:o.value}:{issues:r.common.issues})}async parseAsync(t,r){let o=await this.safeParseAsync(t,r);if(o.success)return o.data;throw o.error}async safeParseAsync(t,r){let o={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:bi(t)},n=this._parse({data:t,path:o.path,parent:o}),i=await(pp(n)?n:Promise.resolve(n));return nD(o,i)}refine(t,r){let o=n=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(n):r;return this._refinement((n,i)=>{let a=t(n),s=()=>i.addIssue({code:Q.custom,...o(n)});return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(s(),!1)):a?!0:(s(),!1)})}refinement(t,r){return this._refinement((o,n)=>t(o)?!0:(n.addIssue(typeof r=="function"?r(o,n):r),!1))}_refinement(t){return new mo({schema:this,typeName:oe.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 po.create(this,this._def)}nullable(){return _i.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ta.create(this)}promise(){return Rs.create(this,this._def)}or(t){return uc.create([this,t],this._def)}and(t){return dc.create(this,t,this._def)}transform(t){return new mo({...Ke(this._def),schema:this,typeName:oe.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let r=typeof t=="function"?t:()=>t;return new gc({...Ke(this._def),innerType:this,defaultValue:r,typeName:oe.ZodDefault})}brand(){return new hg({typeName:oe.ZodBranded,type:this,...Ke(this._def)})}catch(t){let r=typeof t=="function"?t:()=>t;return new vc({...Ke(this._def),innerType:this,catchValue:r,typeName:oe.ZodCatch})}describe(t){let r=this.constructor;return new r({...this._def,description:t})}pipe(t){return gg.create(this,t)}readonly(){return yc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},GQ=/^c[^\s-]{8,}$/i,qQ=/^[0-9a-z]+$/,HQ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,WQ=/^[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,JQ=/^[a-z0-9_-]{21}$/i,KQ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,XQ=/^[-+]?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)?)??$/,YQ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,QQ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",n2,eee=/^(?:(?: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])$/,tee=/^(?:(?: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])$/,ree=/^(([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]))$/,nee=/^(([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])$/,oee=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iee=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,oD="((\\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])))",aee=new RegExp(`^${oD}$`);function iD(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 see(e){return new RegExp(`^${iD(e)}$`)}function lee(e){let t=`${oD}T${iD(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 cee(e,t){return!!((t==="v4"||!t)&&eee.test(e)||(t==="v6"||!t)&&ree.test(e))}function uee(e,t){if(!KQ.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let o=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(o));return!(typeof n!="object"||n===null||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)}catch{return!1}}function dee(e,t){return!!((t==="v4"||!t)&&tee.test(e)||(t==="v6"||!t)&&nee.test(e))}var sc=class e extends st{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Se.string){let i=this._getOrReturnCtx(t);return he(i,{code:Q.invalid_type,expected:Se.string,received:i.parsedType}),Le}let o=new Mr,n;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(n=this._getOrReturnCtx(t,n),he(n,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="max")t.data.length>i.value&&(n=this._getOrReturnCtx(t,n),he(n,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if(i.kind==="length"){let a=t.data.length>i.value,s=t.data.length<i.value;(a||s)&&(n=this._getOrReturnCtx(t,n),a?he(n,{code:Q.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):s&&he(n,{code:Q.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if(i.kind==="email")YQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"email",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="emoji")n2||(n2=new RegExp(QQ,"u")),n2.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"emoji",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="uuid")WQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"uuid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="nanoid")JQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"nanoid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid")GQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"cuid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="cuid2")qQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"cuid2",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="ulid")HQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"ulid",code:Q.invalid_string,message:i.message}),o.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),he(n,{validation:"url",code:Q.invalid_string,message:i.message}),o.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"regex",code:Q.invalid_string,message:i.message}),o.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):i.kind==="datetime"?lee(i).test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:"datetime",message:i.message}),o.dirty()):i.kind==="date"?aee.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:"date",message:i.message}),o.dirty()):i.kind==="time"?see(i).test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{code:Q.invalid_string,validation:"time",message:i.message}),o.dirty()):i.kind==="duration"?XQ.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"duration",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="ip"?cee(t.data,i.version)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"ip",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="jwt"?uee(t.data,i.alg)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"jwt",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="cidr"?dee(t.data,i.version)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"cidr",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="base64"?oee.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"base64",code:Q.invalid_string,message:i.message}),o.dirty()):i.kind==="base64url"?iee.test(t.data)||(n=this._getOrReturnCtx(t,n),he(n,{validation:"base64url",code:Q.invalid_string,message:i.message}),o.dirty()):ut.assertNever(i);return{status:o.value,value:t.data}}_regex(t,r,o){return this.refinement(n=>t.test(n),{validation:r,code:Q.invalid_string,...Pe.errToObj(o)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Pe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Pe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Pe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Pe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Pe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Pe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Pe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Pe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Pe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Pe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Pe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Pe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Pe.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,...Pe.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,...Pe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Pe.errToObj(t)})}regex(t,r){return this._addCheck({kind:"regex",regex:t,...Pe.errToObj(r)})}includes(t,r){return this._addCheck({kind:"includes",value:t,position:r?.position,...Pe.errToObj(r?.message)})}startsWith(t,r){return this._addCheck({kind:"startsWith",value:t,...Pe.errToObj(r)})}endsWith(t,r){return this._addCheck({kind:"endsWith",value:t,...Pe.errToObj(r)})}min(t,r){return this._addCheck({kind:"min",value:t,...Pe.errToObj(r)})}max(t,r){return this._addCheck({kind:"max",value:t,...Pe.errToObj(r)})}length(t,r){return this._addCheck({kind:"length",value:t,...Pe.errToObj(r)})}nonempty(t){return this.min(1,Pe.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}};sc.create=e=>new sc({checks:[],typeName:oe.ZodString,coerce:e?.coerce??!1,...Ke(e)});function pee(e,t){let r=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,n=r>o?r:o,i=Number.parseInt(e.toFixed(n).replace(".","")),a=Number.parseInt(t.toFixed(n).replace(".",""));return i%a/10**n}var mp=class e extends st{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)!==Se.number){let i=this._getOrReturnCtx(t);return he(i,{code:Q.invalid_type,expected:Se.number,received:i.parsedType}),Le}let o,n=new Mr;for(let i of this._def.checks)i.kind==="int"?ut.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{code:Q.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):i.kind==="multipleOf"?pee(t.data,i.value)!==0&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),he(o,{code:Q.not_finite,message:i.message}),n.dirty()):ut.assertNever(i);return{status:n.value,value:t.data}}gte(t,r){return this.setLimit("min",t,!0,Pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Pe.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:Pe.toString(n)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Pe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Pe.toString(r)})}finite(t){return this._addCheck({kind:"finite",message:Pe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Pe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Pe.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"&&ut.isInteger(t.value))}get isFinite(){let t=null,r=null;for(let o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(r===null||o.value>r)&&(r=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(r)&&Number.isFinite(t)}};mp.create=e=>new mp({checks:[],typeName:oe.ZodNumber,coerce:e?.coerce||!1,...Ke(e)});var fp=class e extends st{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)!==Se.bigint)return this._getInvalidInput(t);let o,n=new Mr;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),he(o,{code:Q.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):ut.assertNever(i);return{status:n.value,value:t.data}}_getInvalidInput(t){let r=this._getOrReturnCtx(t);return he(r,{code:Q.invalid_type,expected:Se.bigint,received:r.parsedType}),Le}gte(t,r){return this.setLimit("min",t,!0,Pe.toString(r))}gt(t,r){return this.setLimit("min",t,!1,Pe.toString(r))}lte(t,r){return this.setLimit("max",t,!0,Pe.toString(r))}lt(t,r){return this.setLimit("max",t,!1,Pe.toString(r))}setLimit(t,r,o,n){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:r,inclusive:o,message:Pe.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:Pe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Pe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Pe.toString(t)})}multipleOf(t,r){return this._addCheck({kind:"multipleOf",value:t,message:Pe.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}};fp.create=e=>new fp({checks:[],typeName:oe.ZodBigInt,coerce:e?.coerce??!1,...Ke(e)});var hp=class extends st{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Se.boolean){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.boolean,received:o.parsedType}),Le}return Vr(t.data)}};hp.create=e=>new hp({typeName:oe.ZodBoolean,coerce:e?.coerce||!1,...Ke(e)});var gp=class e extends st{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Se.date){let i=this._getOrReturnCtx(t);return he(i,{code:Q.invalid_type,expected:Se.date,received:i.parsedType}),Le}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return he(i,{code:Q.invalid_date}),Le}let o=new Mr,n;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(n=this._getOrReturnCtx(t,n),he(n,{code:Q.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),o.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(n=this._getOrReturnCtx(t,n),he(n,{code:Q.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),o.dirty()):ut.assertNever(i);return{status:o.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:Pe.toString(r)})}max(t,r){return this._addCheck({kind:"max",value:t.getTime(),message:Pe.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}};gp.create=e=>new gp({checks:[],coerce:e?.coerce||!1,typeName:oe.ZodDate,...Ke(e)});var vp=class extends st{_parse(t){if(this._getType(t)!==Se.symbol){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.symbol,received:o.parsedType}),Le}return Vr(t.data)}};vp.create=e=>new vp({typeName:oe.ZodSymbol,...Ke(e)});var lc=class extends st{_parse(t){if(this._getType(t)!==Se.undefined){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.undefined,received:o.parsedType}),Le}return Vr(t.data)}};lc.create=e=>new lc({typeName:oe.ZodUndefined,...Ke(e)});var cc=class extends st{_parse(t){if(this._getType(t)!==Se.null){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.null,received:o.parsedType}),Le}return Vr(t.data)}};cc.create=e=>new cc({typeName:oe.ZodNull,...Ke(e)});var yp=class extends st{constructor(){super(...arguments),this._any=!0}_parse(t){return Vr(t.data)}};yp.create=e=>new yp({typeName:oe.ZodAny,...Ke(e)});var Ia=class extends st{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Vr(t.data)}};Ia.create=e=>new Ia({typeName:oe.ZodUnknown,...Ke(e)});var Lo=class extends st{_parse(t){let r=this._getOrReturnCtx(t);return he(r,{code:Q.invalid_type,expected:Se.never,received:r.parsedType}),Le}};Lo.create=e=>new Lo({typeName:oe.ZodNever,...Ke(e)});var bp=class extends st{_parse(t){if(this._getType(t)!==Se.undefined){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.void,received:o.parsedType}),Le}return Vr(t.data)}};bp.create=e=>new bp({typeName:oe.ZodVoid,...Ke(e)});var Ta=class e extends st{_parse(t){let{ctx:r,status:o}=this._processInputParams(t),n=this._def;if(r.parsedType!==Se.array)return he(r,{code:Q.invalid_type,expected:Se.array,received:r.parsedType}),Le;if(n.exactLength!==null){let a=r.data.length>n.exactLength.value,s=r.data.length<n.exactLength.value;(a||s)&&(he(r,{code:a?Q.too_big:Q.too_small,minimum:s?n.exactLength.value:void 0,maximum:a?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),o.dirty())}if(n.minLength!==null&&r.data.length<n.minLength.value&&(he(r,{code:Q.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),o.dirty()),n.maxLength!==null&&r.data.length>n.maxLength.value&&(he(r,{code:Q.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),o.dirty()),r.common.async)return Promise.all([...r.data].map((a,s)=>n.type._parseAsync(new qn(r,a,r.path,s)))).then(a=>Mr.mergeArray(o,a));let i=[...r.data].map((a,s)=>n.type._parseSync(new qn(r,a,r.path,s)));return Mr.mergeArray(o,i)}get element(){return this._def.type}min(t,r){return new e({...this._def,minLength:{value:t,message:Pe.toString(r)}})}max(t,r){return new e({...this._def,maxLength:{value:t,message:Pe.toString(r)}})}length(t,r){return new e({...this._def,exactLength:{value:t,message:Pe.toString(r)}})}nonempty(t){return this.min(1,t)}};Ta.create=(e,t)=>new Ta({type:e,minLength:null,maxLength:null,exactLength:null,typeName:oe.ZodArray,...Ke(t)});function ac(e){if(e instanceof Tn){let t={};for(let r in e.shape){let o=e.shape[r];t[r]=po.create(ac(o))}return new Tn({...e._def,shape:()=>t})}else return e instanceof Ta?new Ta({...e._def,type:ac(e.element)}):e instanceof po?po.create(ac(e.unwrap())):e instanceof _i?_i.create(ac(e.unwrap())):e instanceof wi?wi.create(e.items.map(t=>ac(t))):e}var Tn=class e extends st{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=ut.objectKeys(t);return this._cached={shape:t,keys:r},this._cached}_parse(t){if(this._getType(t)!==Se.object){let u=this._getOrReturnCtx(t);return he(u,{code:Q.invalid_type,expected:Se.object,received:u.parsedType}),Le}let{status:o,ctx:n}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof Lo&&this._def.unknownKeys==="strip"))for(let u in n.data)a.includes(u)||s.push(u);let c=[];for(let u of a){let p=i[u],m=n.data[u];c.push({key:{status:"valid",value:u},value:p._parse(new qn(n,m,n.path,u)),alwaysSet:u in n.data})}if(this._def.catchall instanceof Lo){let u=this._def.unknownKeys;if(u==="passthrough")for(let p of s)c.push({key:{status:"valid",value:p},value:{status:"valid",value:n.data[p]}});else if(u==="strict")s.length>0&&(he(n,{code:Q.unrecognized_keys,keys:s}),o.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let p of s){let m=n.data[p];c.push({key:{status:"valid",value:p},value:u._parse(new qn(n,m,n.path,p)),alwaysSet:p in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let u=[];for(let p of c){let m=await p.key,h=await p.value;u.push({key:m,value:h,alwaysSet:p.alwaysSet})}return u}).then(u=>Mr.mergeObjectSync(o,u)):Mr.mergeObjectSync(o,c)}get shape(){return this._def.shape()}strict(t){return Pe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(r,o)=>{let n=this._def.errorMap?.(r,o).message??o.defaultError;return r.code==="unrecognized_keys"?{message:Pe.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:oe.ZodObject})}setKey(t,r){return this.augment({[t]:r})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let r={};for(let o of ut.objectKeys(t))t[o]&&this.shape[o]&&(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}omit(t){let r={};for(let o of ut.objectKeys(this.shape))t[o]||(r[o]=this.shape[o]);return new e({...this._def,shape:()=>r})}deepPartial(){return ac(this)}partial(t){let r={};for(let o of ut.objectKeys(this.shape)){let n=this.shape[o];t&&!t[o]?r[o]=n:r[o]=n.optional()}return new e({...this._def,shape:()=>r})}required(t){let r={};for(let o of ut.objectKeys(this.shape))if(t&&!t[o])r[o]=this.shape[o];else{let i=this.shape[o];for(;i instanceof po;)i=i._def.innerType;r[o]=i}return new e({...this._def,shape:()=>r})}keyof(){return aD(ut.objectKeys(this.shape))}};Tn.create=(e,t)=>new Tn({shape:()=>e,unknownKeys:"strip",catchall:Lo.create(),typeName:oe.ZodObject,...Ke(t)});Tn.strictCreate=(e,t)=>new Tn({shape:()=>e,unknownKeys:"strict",catchall:Lo.create(),typeName:oe.ZodObject,...Ke(t)});Tn.lazycreate=(e,t)=>new Tn({shape:e,unknownKeys:"strip",catchall:Lo.create(),typeName:oe.ZodObject,...Ke(t)});var uc=class extends st{_parse(t){let{ctx:r}=this._processInputParams(t),o=this._def.options;function n(i){for(let s of i)if(s.result.status==="valid")return s.result;for(let s of i)if(s.result.status==="dirty")return r.common.issues.push(...s.ctx.common.issues),s.result;let a=i.map(s=>new In(s.ctx.common.issues));return he(r,{code:Q.invalid_union,unionErrors:a}),Le}if(r.common.async)return Promise.all(o.map(async i=>{let a={...r,common:{...r.common,issues:[]},parent:null};return{result:await i._parseAsync({data:r.data,path:r.path,parent:a}),ctx:a}})).then(n);{let i,a=[];for(let c of o){let u={...r,common:{...r.common,issues:[]},parent:null},p=c._parseSync({data:r.data,path:r.path,parent:u});if(p.status==="valid")return p;p.status==="dirty"&&!i&&(i={result:p,ctx:u}),u.common.issues.length&&a.push(u.common.issues)}if(i)return r.common.issues.push(...i.ctx.common.issues),i.result;let s=a.map(c=>new In(c));return he(r,{code:Q.invalid_union,unionErrors:s}),Le}}get options(){return this._def.options}};uc.create=(e,t)=>new uc({options:e,typeName:oe.ZodUnion,...Ke(t)});var xi=e=>e instanceof pc?xi(e.schema):e instanceof mo?xi(e.innerType()):e instanceof mc?[e.value]:e instanceof fc?e.options:e instanceof hc?ut.objectValues(e.enum):e instanceof gc?xi(e._def.innerType):e instanceof lc?[void 0]:e instanceof cc?[null]:e instanceof po?[void 0,...xi(e.unwrap())]:e instanceof _i?[null,...xi(e.unwrap())]:e instanceof hg||e instanceof yc?xi(e.unwrap()):e instanceof vc?xi(e._def.innerType):[],o2=class e extends st{_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.object)return he(r,{code:Q.invalid_type,expected:Se.object,received:r.parsedType}),Le;let o=this.discriminator,n=r.data[o],i=this.optionsMap.get(n);return i?r.common.async?i._parseAsync({data:r.data,path:r.path,parent:r}):i._parseSync({data:r.data,path:r.path,parent:r}):(he(r,{code:Q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),Le)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,r,o){let n=new Map;for(let i of r){let a=xi(i.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let s of a){if(n.has(s))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(s)}`);n.set(s,i)}}return new e({typeName:oe.ZodDiscriminatedUnion,discriminator:t,options:r,optionsMap:n,...Ke(o)})}};function i2(e,t){let r=bi(e),o=bi(t);if(e===t)return{valid:!0,data:e};if(r===Se.object&&o===Se.object){let n=ut.objectKeys(t),i=ut.objectKeys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(let s of i){let c=i2(e[s],t[s]);if(!c.valid)return{valid:!1};a[s]=c.data}return{valid:!0,data:a}}else if(r===Se.array&&o===Se.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let i=0;i<e.length;i++){let a=e[i],s=t[i],c=i2(a,s);if(!c.valid)return{valid:!1};n.push(c.data)}return{valid:!0,data:n}}else return r===Se.date&&o===Se.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var dc=class extends st{_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=(i,a)=>{if(t2(i)||t2(a))return Le;let s=i2(i.value,a.value);return s.valid?((r2(i)||r2(a))&&r.dirty(),{status:r.value,value:s.data}):(he(o,{code:Q.invalid_intersection_types}),Le)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([i,a])=>n(i,a)):n(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}};dc.create=(e,t,r)=>new dc({left:e,right:t,typeName:oe.ZodIntersection,...Ke(r)});var wi=class e extends st{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==Se.array)return he(o,{code:Q.invalid_type,expected:Se.array,received:o.parsedType}),Le;if(o.data.length<this._def.items.length)return he(o,{code:Q.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Le;!this._def.rest&&o.data.length>this._def.items.length&&(he(o,{code:Q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());let i=[...o.data].map((a,s)=>{let c=this._def.items[s]||this._def.rest;return c?c._parse(new qn(o,a,o.path,s)):null}).filter(a=>!!a);return o.common.async?Promise.all(i).then(a=>Mr.mergeArray(r,a)):Mr.mergeArray(r,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};wi.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new wi({items:e,typeName:oe.ZodTuple,rest:null,...Ke(t)})};var a2=class e extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==Se.object)return he(o,{code:Q.invalid_type,expected:Se.object,received:o.parsedType}),Le;let n=[],i=this._def.keyType,a=this._def.valueType;for(let s in o.data)n.push({key:i._parse(new qn(o,s,o.path,s)),value:a._parse(new qn(o,o.data[s],o.path,s)),alwaysSet:s in o.data});return o.common.async?Mr.mergeObjectAsync(r,n):Mr.mergeObjectSync(r,n)}get element(){return this._def.valueType}static create(t,r,o){return r instanceof st?new e({keyType:t,valueType:r,typeName:oe.ZodRecord,...Ke(o)}):new e({keyType:sc.create(),valueType:t,typeName:oe.ZodRecord,...Ke(r)})}},xp=class extends st{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==Se.map)return he(o,{code:Q.invalid_type,expected:Se.map,received:o.parsedType}),Le;let n=this._def.keyType,i=this._def.valueType,a=[...o.data.entries()].map(([s,c],u)=>({key:n._parse(new qn(o,s,o.path,[u,"key"])),value:i._parse(new qn(o,c,o.path,[u,"value"]))}));if(o.common.async){let s=new Map;return Promise.resolve().then(async()=>{for(let c of a){let u=await c.key,p=await c.value;if(u.status==="aborted"||p.status==="aborted")return Le;(u.status==="dirty"||p.status==="dirty")&&r.dirty(),s.set(u.value,p.value)}return{status:r.value,value:s}})}else{let s=new Map;for(let c of a){let u=c.key,p=c.value;if(u.status==="aborted"||p.status==="aborted")return Le;(u.status==="dirty"||p.status==="dirty")&&r.dirty(),s.set(u.value,p.value)}return{status:r.value,value:s}}}};xp.create=(e,t,r)=>new xp({valueType:t,keyType:e,typeName:oe.ZodMap,...Ke(r)});var wp=class e extends st{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.parsedType!==Se.set)return he(o,{code:Q.invalid_type,expected:Se.set,received:o.parsedType}),Le;let n=this._def;n.minSize!==null&&o.data.size<n.minSize.value&&(he(o,{code:Q.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),r.dirty()),n.maxSize!==null&&o.data.size>n.maxSize.value&&(he(o,{code:Q.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),r.dirty());let i=this._def.valueType;function a(c){let u=new Set;for(let p of c){if(p.status==="aborted")return Le;p.status==="dirty"&&r.dirty(),u.add(p.value)}return{status:r.value,value:u}}let s=[...o.data.values()].map((c,u)=>i._parse(new qn(o,c,o.path,u)));return o.common.async?Promise.all(s).then(c=>a(c)):a(s)}min(t,r){return new e({...this._def,minSize:{value:t,message:Pe.toString(r)}})}max(t,r){return new e({...this._def,maxSize:{value:t,message:Pe.toString(r)}})}size(t,r){return this.min(t,r).max(t,r)}nonempty(t){return this.min(1,t)}};wp.create=(e,t)=>new wp({valueType:e,minSize:null,maxSize:null,typeName:oe.ZodSet,...Ke(t)});var s2=class e extends st{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.function)return he(r,{code:Q.invalid_type,expected:Se.function,received:r.parsedType}),Le;function o(s,c){return fg({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,dp(),Sa].filter(u=>!!u),issueData:{code:Q.invalid_arguments,argumentsError:c}})}function n(s,c){return fg({data:s,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,dp(),Sa].filter(u=>!!u),issueData:{code:Q.invalid_return_type,returnTypeError:c}})}let i={errorMap:r.common.contextualErrorMap},a=r.data;if(this._def.returns instanceof Rs){let s=this;return Vr(async function(...c){let u=new In([]),p=await s._def.args.parseAsync(c,i).catch(g=>{throw u.addIssue(o(c,g)),u}),m=await Reflect.apply(a,this,p);return await s._def.returns._def.type.parseAsync(m,i).catch(g=>{throw u.addIssue(n(m,g)),u})})}else{let s=this;return Vr(function(...c){let u=s._def.args.safeParse(c,i);if(!u.success)throw new In([o(c,u.error)]);let p=Reflect.apply(a,this,u.data),m=s._def.returns.safeParse(p,i);if(!m.success)throw new In([n(p,m.error)]);return m.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:wi.create(t).rest(Ia.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,o){return new e({args:t||wi.create([]).rest(Ia.create()),returns:r||Ia.create(),typeName:oe.ZodFunction,...Ke(o)})}},pc=class extends st{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})}};pc.create=(e,t)=>new pc({getter:e,typeName:oe.ZodLazy,...Ke(t)});var mc=class extends st{_parse(t){if(t.data!==this._def.value){let r=this._getOrReturnCtx(t);return he(r,{received:r.data,code:Q.invalid_literal,expected:this._def.value}),Le}return{status:"valid",value:t.data}}get value(){return this._def.value}};mc.create=(e,t)=>new mc({value:e,typeName:oe.ZodLiteral,...Ke(t)});function aD(e,t){return new fc({values:e,typeName:oe.ZodEnum,...Ke(t)})}var fc=class e extends st{_parse(t){if(typeof t.data!="string"){let r=this._getOrReturnCtx(t),o=this._def.values;return he(r,{expected:ut.joinValues(o),received:r.parsedType,code:Q.invalid_type}),Le}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let r=this._getOrReturnCtx(t),o=this._def.values;return he(r,{received:r.data,code:Q.invalid_enum_value,options:o}),Le}return Vr(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(o=>!t.includes(o)),{...this._def,...r})}};fc.create=aD;var hc=class extends st{_parse(t){let r=ut.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==Se.string&&o.parsedType!==Se.number){let n=ut.objectValues(r);return he(o,{expected:ut.joinValues(n),received:o.parsedType,code:Q.invalid_type}),Le}if(this._cache||(this._cache=new Set(ut.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let n=ut.objectValues(r);return he(o,{received:o.data,code:Q.invalid_enum_value,options:n}),Le}return Vr(t.data)}get enum(){return this._def.values}};hc.create=(e,t)=>new hc({values:e,typeName:oe.ZodNativeEnum,...Ke(t)});var Rs=class extends st{unwrap(){return this._def.type}_parse(t){let{ctx:r}=this._processInputParams(t);if(r.parsedType!==Se.promise&&r.common.async===!1)return he(r,{code:Q.invalid_type,expected:Se.promise,received:r.parsedType}),Le;let o=r.parsedType===Se.promise?r.data:Promise.resolve(r.data);return Vr(o.then(n=>this._def.type.parseAsync(n,{path:r.path,errorMap:r.common.contextualErrorMap})))}};Rs.create=(e,t)=>new Rs({type:e,typeName:oe.ZodPromise,...Ke(t)});var mo=class extends st{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:r,ctx:o}=this._processInputParams(t),n=this._def.effect||null,i={addIssue:a=>{he(o,a),a.fatal?r.abort():r.dirty()},get path(){return o.path}};if(i.addIssue=i.addIssue.bind(i),n.type==="preprocess"){let a=n.transform(o.data,i);if(o.common.async)return Promise.resolve(a).then(async s=>{if(r.value==="aborted")return Le;let c=await this._def.schema._parseAsync({data:s,path:o.path,parent:o});return c.status==="aborted"?Le:c.status==="dirty"?ic(c.value):r.value==="dirty"?ic(c.value):c});{if(r.value==="aborted")return Le;let s=this._def.schema._parseSync({data:a,path:o.path,parent:o});return s.status==="aborted"?Le:s.status==="dirty"?ic(s.value):r.value==="dirty"?ic(s.value):s}}if(n.type==="refinement"){let a=s=>{let c=n.refinement(s,i);if(o.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return s};if(o.common.async===!1){let s=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Le:(s.status==="dirty"&&r.dirty(),a(s.value),{status:r.value,value:s.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(s=>s.status==="aborted"?Le:(s.status==="dirty"&&r.dirty(),a(s.value).then(()=>({status:r.value,value:s.value}))))}if(n.type==="transform")if(o.common.async===!1){let a=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!Ms(a))return Le;let s=n.transform(a.value,i);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:o.data,path:o.path,parent:o}).then(a=>Ms(a)?Promise.resolve(n.transform(a.value,i)).then(s=>({status:r.value,value:s})):Le);ut.assertNever(n)}};mo.create=(e,t,r)=>new mo({schema:e,typeName:oe.ZodEffects,effect:t,...Ke(r)});mo.createWithPreprocess=(e,t,r)=>new mo({schema:t,effect:{type:"preprocess",transform:e},typeName:oe.ZodEffects,...Ke(r)});var po=class extends st{_parse(t){return this._getType(t)===Se.undefined?Vr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};po.create=(e,t)=>new po({innerType:e,typeName:oe.ZodOptional,...Ke(t)});var _i=class extends st{_parse(t){return this._getType(t)===Se.null?Vr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};_i.create=(e,t)=>new _i({innerType:e,typeName:oe.ZodNullable,...Ke(t)});var gc=class extends st{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return r.parsedType===Se.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:r.path,parent:r})}removeDefault(){return this._def.innerType}};gc.create=(e,t)=>new gc({innerType:e,typeName:oe.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ke(t)});var vc=class extends st{_parse(t){let{ctx:r}=this._processInputParams(t),o={...r,common:{...r.common,issues:[]}},n=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return pp(n)?n.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new In(o.common.issues)},input:o.data})})):{status:"valid",value:n.status==="valid"?n.value:this._def.catchValue({get error(){return new In(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}};vc.create=(e,t)=>new vc({innerType:e,typeName:oe.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ke(t)});var _p=class extends st{_parse(t){if(this._getType(t)!==Se.nan){let o=this._getOrReturnCtx(t);return he(o,{code:Q.invalid_type,expected:Se.nan,received:o.parsedType}),Le}return{status:"valid",value:t.data}}};_p.create=e=>new _p({typeName:oe.ZodNaN,...Ke(e)});var hg=class extends st{_parse(t){let{ctx:r}=this._processInputParams(t),o=r.data;return this._def.type._parse({data:o,path:r.path,parent:r})}unwrap(){return this._def.type}},gg=class e extends st{_parse(t){let{status:r,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return i.status==="aborted"?Le:i.status==="dirty"?(r.dirty(),ic(i.value)):this._def.out._parseAsync({data:i.value,path:o.path,parent:o})})();{let n=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return n.status==="aborted"?Le:n.status==="dirty"?(r.dirty(),{status:"dirty",value:n.value}):this._def.out._parseSync({data:n.value,path:o.path,parent:o})}}static create(t,r){return new e({in:t,out:r,typeName:oe.ZodPipeline})}},yc=class extends st{_parse(t){let r=this._def.innerType._parse(t),o=n=>(Ms(n)&&(n.value=Object.freeze(n.value)),n);return pp(r)?r.then(n=>o(n)):o(r)}unwrap(){return this._def.innerType}};yc.create=(e,t)=>
52new yc({innerType:e,typeName:oe.ZodReadonly,...Ke(t)});var z9e={object:Tn.lazycreate},oe;(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"})(oe||(oe={}));var A9e=sc.create,M9e=mp.create,R9e=_p.create,N9e=fp.create,D9e=hp.create,O9e=gp.create,L9e=vp.create,j9e=lc.create,U9e=cc.create,B9e=yp.create,F9e=Ia.create,Z9e=Lo.create,V9e=bp.create,G9e=Ta.create,q9e=Tn.create,H9e=Tn.strictCreate,W9e=uc.create,J9e=o2.create,K9e=dc.create,X9e=wi.create,Y9e=a2.create,Q9e=xp.create,ePe=wp.create,tPe=s2.create,rPe=pc.create,nPe=mc.create,oPe=fc.create,iPe=hc.create,aPe=Rs.create,sPe=mo.create,lPe=po.create,cPe=_i.create,uPe=mo.createWithPreprocess,dPe=gg.create;var kp=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}},sD=10,fee=13,Ns=32;function l2(e){}function uD(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=l2,onError:r=l2,onRetry:o=l2,onComment:n,maxBufferSize:i}=e,a=[],s=0,c=!0,u,p="",m=0,h,g=!1;function b(z){if(g)throw new Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(c&&(c=!1,z.charCodeAt(0)===239&&z.charCodeAt(1)===187&&z.charCodeAt(2)===191&&(z=z.slice(3))),a.length===0){let G=I(z);G!==""&&(a.push(G),s=G.length),T();return}if(z.indexOf(` 53`)===-1&&z.indexOf("\r")===-1){a.push(z),s+=z.length,T();return}a.push(z);let N=a.join("");a.length=0,s=0;let B=I(N);B!==""&&(a.push(B),s=B.length),T()}function T(){i!==void 0&&(s+p.length<=i||(g=!0,a.length=0,s=0,u=void 0,p="",m=0,h=void 0,r(new kp(`Buffered data exceeded max buffer size of ${i} characters`,{type:"max-buffer-size-exceeded"}))))}function I(z){let N=0;if(z.indexOf("\r")===-1){let B=z.indexOf(` 54`,N);for(;B!==-1;){if(N===B){m>0&&t({id:u,event:h,data:p}),u=void 0,p="",m=0,h=void 0,N=B+1,B=z.indexOf(` 55`,N);continue}let G=z.charCodeAt(N);if(lD(z,N,G)){let F=z.charCodeAt(N+5)===Ns?N+6:N+5,W=z.slice(F,B);if(m===0&&z.charCodeAt(B+1)===sD){t({id:u,event:h,data:W}),u=void 0,p="",h=void 0,N=B+2,B=z.indexOf(` 56`,N);continue}p=m===0?W:`${p} 57${W}`,m++}else cD(z,N,G)?h=z.slice(z.charCodeAt(N+6)===Ns?N+7:N+6,B)||void 0:P(z,N,B);N=B+1,B=z.indexOf(` 58`,N)}return z.slice(N)}for(;N<z.length;){let B=z.indexOf("\r",N),G=z.indexOf(` 59`,N),F=-1;if(B!==-1&&G!==-1?F=B<G?B:G:B!==-1?B===z.length-1?F=-1:F=B:G!==-1&&(F=G),F===-1)break;P(z,N,F),N=F+1,z.charCodeAt(N-1)===fee&&z.charCodeAt(N)===sD&&N++}return z.slice(N)}function P(z,N,B){if(N===B){k();return}let G=z.charCodeAt(N);if(lD(z,N,G)){let $e=z.charCodeAt(N+5)===Ns?N+6:N+5,Fe=z.slice($e,B);p=m===0?Fe:`${p} 60${Fe}`,m++;return}if(cD(z,N,G)){h=z.slice(z.charCodeAt(N+6)===Ns?N+7:N+6,B)||void 0;return}if(G===105&&z.charCodeAt(N+1)===100&&z.charCodeAt(N+2)===58){let $e=z.slice(z.charCodeAt(N+3)===Ns?N+4:N+3,B);u=$e.includes("\0")?void 0:$e;return}if(G===58){if(n){let $e=z.slice(N,B);n($e.slice(z.charCodeAt(N+1)===Ns?2:1))}return}let F=z.slice(N,B),W=F.indexOf(":");if(W===-1){C(F,"",F);return}let ue=F.slice(0,W),de=F.charCodeAt(W+1)===Ns?2:1,ft=F.slice(W+de);C(ue,ft,F)}function C(z,N,B){switch(z){case"event":h=N||void 0;break;case"data":p=m===0?N:`${p} 61${N}`,m++;break;case"id":u=N.includes("\0")?void 0:N;break;case"retry":/^\d+$/.test(N)?o(parseInt(N,10)):r(new kp(`Invalid \`retry\` value: "${N}"`,{type:"invalid-retry",value:N,line:B}));break;default:r(new kp(`Unknown field "${z.length>20?`${z.slice(0,20)}\u2026`:z}"`,{type:"unknown-field",field:z,value:N,line:B}));break}}function k(){m>0&&t({id:u,event:h,data:p}),u=void 0,p="",m=0,h=void 0}function A(z={}){if(z.consume&&a.length>0){let N=a.join("");
61P(N,0,N.length)}c=!0,u=void 0,p="",m=0,h=void 0,a.length=0,s=0,g=!1}return{feed:b,reset:A}}function lD(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 cD(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 vg=class extends TransformStream{constructor({onError:t,onRetry:r,onComment:o,maxBufferSize:n}={}){let i;super({start(a){i=uD({onEvent:s=>{a.enqueue(s)},onError(s){typeof t=="function"&&t(s),(t==="terminate"||s.type==="max-buffer-size-exceeded")&&a.error(s)},onRetry:r,onComment:o,maxBufferSize:n})},transform(a){i.feed(a)}})}};var{btoa:SPe,atob:IPe}=globalThis;async function yg(e){var t;try{await((t=e.body)==null?void 0:t.cancel())}catch{}}var gD="AI_DownloadError",vD=`vercel.ai.error.${gD}`,hee=Symbol.for(vD),dD,pD,cn=class extends(pD=dt,dD=hee,pD){constructor({url:e,statusCode:t,statusText:r,cause:o,message:n=o==null?`Failed to download ${e}: ${t} ${r}`:`Failed to download ${e}: ${o}`}){super({name:gD,message:n,cause:o}),this[dD]=!0,this.url=e,this.statusCode=t,this.statusText=r}static isInstance(e){return dt.hasMarker(e,vD)}};function gee(e=globalThis){return e.window!=null}function vee(e){let t;try{t=new URL(e)}catch{throw new cn({url:e,message:`Invalid URL: ${e}`})}if(t.protocol==="data:")return;if(t.protocol!=="http:"&&t.protocol!=="https:")throw new cn({url:e,message:`URL scheme must be http, https, or data, got ${t.protocol}`});let r=t.hostname.toLowerCase().replace(/\.+$/,"");if(!r)throw new cn({url:e,message:"URL must have a hostname"});if(r==="localhost"||r.endsWith(".local")||r.endsWith(".localhost"))throw new cn({url:e,message:`URL with hostname ${r} is not allowed`});if(r.startsWith("[")&&r.endsWith("]")){let o=r.slice(1,-1);if(bee(o))throw new cn({url:e,message:`URL with IPv6 address ${r} is not allowed`});return}if(yD(r)){if(bD(r))throw new cn({url:e,message:`URL with IP address ${r} is not allowed`});return}}function yD(e){let t=e.split(".");return t.length!==4?!1:t.every(r=>{let o=Number(r);return Number.isInteger(o)&&o>=0&&o<=255&&String(o)===r})}function bD(e){let t=e.split(".").map(Number),[r,o,n]=t;return r===0||r===10||r===100&&o>=64&&o<=127||r===127||r===169&&o===254||r===172&&o>=16&&o<=31||r===192&&o===0&&n===0||r===192&&o===168||r===198&&(o===18||o===19)||r>=240}function yee(e){let t=e.toLowerCase(),r=t.indexOf("%");
61r!==-1&&(t=t.slice(0,r));let o=t.split("::");if(o.length>2)return null;let n=a=>{if(a==="")return[];let s=[],c=a.split(":");for(let u=0;u<c.length;u++){let p=c[u];if(p.includes(".")){if(u!==c.length-1||!yD(p))return null;let[m,h,g,b]=p.split(".").map(Number);s.push(m<<8|h,g<<8|b);continue}if(!/^[0-9a-f]{1,4}$/.test(p))return null;s.push(parseInt(p,16))}return s},i=n(o[0]);if(i===null)return null;if(o.length===2){let a=n(o[1]);if(a===null)return null;let s=8-i.length-a.length;return s<0?null:[...i,...new Array(s).fill(0),...a]}return i.length===8?i:null}function bee(e){let t=yee(e);if(t===null)return!0;let r=n=>t.slice(0,n).every(i=>i===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,i=t[6]&255,a=t[7]>>8&255,s=t[7]&255;return bD(`${n}.${i}.${a}.${s}`)}return!1}var xee=10;async function xD({url:e,headers:t,abortSignal:r,maxRedirects:o=xee}){let n={signal:r};t!==void 0&&(n.headers=t);let i=e;for(let a=0;a<=o;a++){vee(i);let s=await fetch(i,{...n,redirect:"manual"});if(s.type==="opaqueredirect"){if(!gee())throw new cn({url:e,message:`Redirect from ${i} could not be validated and was blocked`});return await fetch(i,{...n,redirect:"follow"})}let c=s.headers.get("location");if(s.status>=300&&s.status<400&&c){await yg(s),i=new URL(c,i).toString();continue}return s}throw new cn({url:e,message:`Too many redirects (max ${o})`})}var m2=2*1024*1024*1024;async function wD({response:e,url:t,maxBytes:r=m2}){let o=e.headers.get("content-length");if(o!=null){let p=parseInt(o,10);if(!isNaN(p)&&p>r)throw await yg(e),new cn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes (Content-Length: ${p}).`})}let n=e.body;if(n==null)return new Uint8Array(0);let i=n.getReader(),a=[],s=0;try{for(;;){let{done:p,value:m}=await i.read();if(p)break;if(s+=m.length,s>r)throw new cn({url:t,message:`Download of ${t} exceeded maximum size of ${r} bytes.`});a.push(m)}}finally{try{await i.cancel()}finally{i.releaseLock()}}let c=new Uint8Array(s),u=0;for(let p of a)c.set(p,u),u+=p.length;return c}var ki=({prefix:e,size:t=16,alphabet:r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:o="-"}={})=>{let n=()=>{let i=r.length,a=new Array(t);for(let s=0;s<t;s++)a[s]=r[Math.random()*i|0];return a.join("")};if(e==null)return n;if(r.includes(o))throw new Nz({argument:"separator",message:`The separator "${o}" must not be part of the alphabet "${r}".`});return()=>`${e}${o}${n()}`},_D=ki();function kD(e=globalThis){var t,r,o;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(o=(r=e.process)==null?void 0:r.versions)!=null&&o.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function $a(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((r,o)=>{t[o.toLowerCase()]=r});else{Array.isArray(e)||(e=Object.entries(e));for(let[r,o]of e)o!=null&&(t[r.toLowerCase()]=o)}return t}function bg(e,...t){let r=new Headers($a(e)),o=r.get("user-agent")||"";return r.set("user-agent",[o,...t].filter(Boolean).join(" ")),Object.fromEntries(r.entries())}var wee=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,_ee=/"(?: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 mD(e){let t=JSON.parse(e);return t===null||typeof t!="object"||wee.test(e)===!1&&_ee.test(e)===!1?t:kee(t)}function kee(e){let t=[e];for(;t.length;){let r=t;t=[];for(let o of r){if(Object.prototype.hasOwnProperty.call(o,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(o,"constructor")&&o.constructor!==null&&typeof o.constructor=="object"&&Object.prototype.hasOwnProperty.call(o.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let n in o){let i=o[n];i&&typeof i=="object"&&t.push(i)}}}return e}function See(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return mD(e)}try{return mD(e)}finally{Error.stackTraceLimit=t}}function f2(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 o of Object.keys(r))r[o]=Ds(r[o])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(Ds):Ds(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(Ds)),e.allOf!=null&&(e.allOf=e.allOf.map(Ds)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(Ds));let{definitions:t}=e;if(t!=null)for(let r of Object.keys(t))t[r]=Ds(t[r]);return e}function Ds(e){return typeof e=="boolean"?e:f2(e)}var Iee=Symbol("Let zodToJsonSchema decide on which parser to use"),fD={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"},Tee=e=>typeof e=="string"?{...fD,name:e}:{...fD,...e};function $n(){return{}}function $ee(e,t){var r,o,n;let i={type:"array"};return(r=e.type)!=null&&r._def&&((n=(o=e.type)==null?void 0:o._def)==null?void 0:n.typeName)!==oe.ZodAny&&(i.items=kt(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(i.minItems=e.minLength.value),e.maxLength&&(i.maxItems=e.maxLength.value),e.exactLength&&(i.minItems=e.exactLength.value,i.maxItems=e.exactLength.value),i}function Pee(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 Cee(){return{type:"boolean"}}function SD(e,t){return kt(e.type._def,t)}var Eee=(e,t)=>
61kt(e.innerType._def,t);function ID(e,t,r){let o=r??t.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((n,i)=>ID(e,t,n))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return zee(e)}}var zee=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 Aee(e,t){return{...kt(e.innerType._def,t),default:e.defaultValue()}}function Mee(e,t){return t.effectStrategy==="input"?kt(e.schema._def,t):$n()}function Ree(e){return{type:"string",enum:Array.from(e.values)}}var Nee=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function Dee(e,t){let r=[kt(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),kt(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(n=>!!n),o=[];return r.forEach(n=>{if(Nee(n))o.push(...n.allOf);else{let i=n;if("additionalProperties"in n&&n.additionalProperties===!1){let{additionalProperties:a,...s}=n;i=s}o.push(i)}}),o.length?{allOf:o}:void 0}function Oee(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 c2=void 0,fo={cuid:/^[cC][^\s-]{8,}$/,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:()=>(c2===void 0&&(c2=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),c2),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 TD(e,t){let r={type:"string"};if(e.checks)for(let o of e.checks)switch(o.kind){case"min":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value;break;case"max":r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"email":switch(t.emailStrategy){case"format:email":ho(r,"email",o.message,t);break;case"format:idn-email":ho(r,"idn-email",o.message,t);break;case"pattern:zod":Gr(r,fo.email,o.message,t);break}break;case"url":ho(r,"uri",o.message,t);break;case"uuid":ho(r,"uuid",o.message,t);break;case"regex":Gr(r,o.regex,o.message,t);break;case"cuid":Gr(r,fo.cuid,o.message,t);break;case"cuid2":Gr(r,fo.cuid2,o.message,t);break;case"startsWith":Gr(r,RegExp(`^${u2(o.value,t)}`),o.message,t);break;case"endsWith":Gr(r,RegExp(`${u2(o.value,t)}$`),o.message,t);break;case"datetime":ho(r,"date-time",o.message,t);break;case"date":ho(r,"date",o.message,t);break;case"time":ho(r,"time",o.message,t);break;case"duration":ho(r,"duration",o.message,t);break;case"length":r.minLength=typeof r.minLength=="number"?Math.max(r.minLength,o.value):o.value,r.maxLength=typeof r.maxLength=="number"?Math.min(r.maxLength,o.value):o.value;break;case"includes":{Gr(r,RegExp(u2(o.value,t)),o.message,t);break}case"ip":{o.version!=="v6"&&ho(r,"ipv4",o.message,t),o.version!=="v4"&&ho(r,"ipv6",o.message,t);break}case"base64url":Gr(r,fo.base64url,o.message,t);break;case"jwt":Gr(r,fo.jwt,o.message,t);break;case"cidr":{o.version!=="v6"&&Gr(r,fo.ipv4Cidr,o.message,t),o.version!=="v4"&&Gr(r,fo.ipv6Cidr,o.message,t);break}case"emoji":Gr(r,fo.emoji(),o.message,t);break;case"ulid":{Gr(r,fo.ulid,o.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{ho(r,"binary",o.message,t);break}case"contentEncoding:base64":{r.contentEncoding="base64";break}case"pattern:zod":{Gr(r,fo.base64,o.message,t);break}}break}case"nanoid":Gr(r,fo.nanoid,o.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return r}function u2(e,t){return t.patternStrategy==="escape"?jee(e):e}var Lee=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function jee(e){let t="";for(let r=0;r<e.length;r++)Lee.has(e[r])||(t+="\\"),t+=e[r];return t}function ho(e,t,r,o){var n;e.format||(n=e.anyOf)!=null&&n.some(i=>i.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...r&&o.errorMessages&&{errorMessage:{format:r}}})):e.format=t}function Gr(e,t,r,o){var n;e.pattern||(n=e.allOf)!=null&&n.some(i=>i.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:hD(t,o),...r&&o.errorMessages&&{errorMessage:{pattern:r}}})):e.pattern=hD(t,o)}function hD(e,t){var r;
vendor: 4,961 bytes, lines 61-65
61if(!t.applyRegexFlags||!e.flags)return e.source;let o={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},n=o.i?e.source.toLowerCase():e.source,i="",a=!1,s=!1,c=!1;for(let u=0;u<n.length;u++){if(a){i+=n[u],a=!1;continue}if(o.i){if(s){if(n[u].match(/[a-z]/)){c?(i+=n[u],i+=`${n[u-2]}-${n[u]}`.toUpperCase(),c=!1):n[u+1]==="-"&&((r=n[u+2])!=null&&r.match(/[a-z]/))?(i+=n[u],c=!0):i+=`${n[u]}${n[u].toUpperCase()}`;continue}}else if(n[u].match(/[a-z]/)){i+=`[${n[u]}${n[u].toUpperCase()}]`;continue}}if(o.m){if(n[u]==="^"){i+=`(^|(?<=[\r 62]))`;continue}else if(n[u]==="$"){i+=`($|(?=[\r 63]))`;continue}}if(o.s&&n[u]==="."){i+=s?`${n[u]}\r 64`:`[${n[u]}\r 65]`;continue}i+=n[u],n[u]==="\\"?a=!0:s&&n[u]==="]"?s=!1:!s&&n[u]==="["&&(s=!0)}try{new RegExp(i)}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 i}function $D(e,t){var r,o,n,i,a,s;let c={type:"object",additionalProperties:(r=kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?r:t.allowedAdditionalProperties};if(((o=e.keyType)==null?void 0:o._def.typeName)===oe.ZodString&&((n=e.keyType._def.checks)!=null&&n.length)){let{type:u,...p}=TD(e.keyType._def,t);return{...c,propertyNames:p}}else{if(((i=e.keyType)==null?void 0:i._def.typeName)===oe.ZodEnum)return{...c,propertyNames:{enum:e.keyType._def.values}};if(((a=e.keyType)==null?void 0:a._def.typeName)===oe.ZodBranded&&e.keyType._def.type._def.typeName===oe.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){let{type:u,...p}=SD(e.keyType._def,t);return{...c,propertyNames:p}}}return c}function Uee(e,t){if(t.mapStrategy==="record")return $D(e,t);let r=kt(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||$n(),o=kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||$n();return{type:"array",maxItems:125,items:{type:"array",items:[r,o],minItems:2,maxItems:2}}}function Bee(e){let t=e.values,o=Object.keys(e.values).filter(i=>typeof t[t[i]]!="number").map(i=>t[i]),n=Array.from(new Set(o.map(i=>typeof i)));return{type:n.length===1?n[0]==="string"?"string":"number":["string","number"],enum:o}}function Fee(){return{not:$n()}}function Zee(){return{type:"null"}}var d2={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function Vee(e,t){let r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(o=>o._def.typeName in d2&&(!o._def.checks||!o._def.checks.length))){let o=r.reduce((n,i)=>{let a=d2[i._def.typeName];return a&&!n.includes(a)?[...n,a]:n},[]);return{type:o.length>1?o:o[0]}}else if(r.every(o=>o._def.typeName==="ZodLiteral"&&!o.description)){let o=r.reduce((n,i)=>{let a=typeof i._def.value;switch(a){case"string":case"number":case"boolean":return[...n,a];case"bigint":return[...n,"integer"];case"object":if(i._def.value===null)return[...n,"null"];default:return n}},[]);if(o.length===r.length){let n=o.filter((i,a,s)=>s.indexOf(i)===a);return{type:n.length>1?n:n[0],enum:r.reduce((i,a)=>i.includes(a._def.value)?i:[...i,a._def.value],[])}}}else if(r.every(o=>o._def.typeName==="ZodEnum"))return{type:"string",enum:r.reduce((o,n)=>[...o,...n._def.values.filter(i=>!o.includes(i))],[])};return Gee(e,t)}var Gee=(e,t)=>{let r=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((o,n)=>kt(o._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(o=>!!o&&(!t.strictUnions||typeof o=="object"&&Object.keys(o).length>0));return r.length?{anyOf:r}:void 0};function qee(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[d2[e.innerType._def.typeName],"null"]};let r=kt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return r&&{anyOf:[r,{type:"null"}]}}function Hee(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 Wee(e,t){let r={type:"object",properties:{}},o=[],n=e.shape();for(let a in n){let s=n[a];if(s===void 0||s._def===void 0)continue;let c=Kee(s),u=kt(s._def,{...t,currentPath:[...t.currentPath,"properties",a],propertyPath:[...t.currentPath,"properties",a]});u!==void 0&&(r.properties[a]=u,c||o.push(a))}o.length&&(r.required=o);let i=Jee(e,t);return i!==void 0&&(r.additionalProperties=i),r}function Jee(e,t){if(e.catchall._def.typeName!=="ZodNever")return kt(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;
65case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function Kee(e){try{return e.isOptional()}catch{return!0}}var Xee=(e,t)=>{var r;if(t.currentPath.toString()===((r=t.propertyPath)==null?void 0:r.toString()))return kt(e.innerType._def,t);let o=kt(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return o?{anyOf:[{not:$n()},o]}:$n()},Yee=(e,t)=>{if(t.pipeStrategy==="input")return kt(e.in._def,t);if(t.pipeStrategy==="output")return kt(e.out._def,t);let r=kt(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),o=kt(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",r?"1":"0"]});return{allOf:[r,o].filter(n=>n!==void 0)}};function Qee(e,t){return kt(e.type._def,t)}function ete(e,t){let o={type:"array",uniqueItems:!0,items:kt(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(o.minItems=e.minSize.value),e.maxSize&&(o.maxItems=e.maxSize.value),o}function tte(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((r,o)=>kt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[]),additionalItems:kt(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((r,o)=>kt(r._def,{...t,currentPath:[...t.currentPath,"items",`${o}`]})).reduce((r,o)=>o===void 0?r:[...r,o],[])}}function rte(){return{not:$n()}}function nte(){return $n()}var ote=(e,t)=>kt(e.innerType._def,t),ite=(e,t,r)=>{switch(t){case oe.ZodString:return TD(e,r);case oe.ZodNumber:return Hee(e);case oe.ZodObject:return Wee(e,r);case oe.ZodBigInt:return Pee(e);case oe.ZodBoolean:return Cee();case oe.ZodDate:return ID(e,r);case oe.ZodUndefined:return rte();case oe.ZodNull:return Zee();case oe.ZodArray:return $ee(e,r);case oe.ZodUnion:case oe.ZodDiscriminatedUnion:return Vee(e,r);case oe.ZodIntersection:return Dee(e,r);case oe.ZodTuple:return tte(e,r);case oe.ZodRecord:return $D(e,r);case oe.ZodLiteral:return Oee(e);case oe.ZodEnum:return Ree(e);case oe.ZodNativeEnum:return Bee(e);case oe.ZodNullable:return qee(e,r);case oe.ZodOptional:return Xee(e,r);case oe.ZodMap:return Uee(e,r);case oe.ZodSet:return ete(e,r);case oe.ZodLazy:return()=>e.getter()._def;case oe.ZodPromise:return Qee(e,r);case oe.ZodNaN:case oe.ZodNever:return Fee();case oe.ZodEffects:return Mee(e,r);case oe.ZodAny:return $n();case oe.ZodUnknown:return nte();case oe.ZodDefault:return Aee(e,r);case oe.ZodBranded:return SD(e,r);case oe.ZodReadonly:return ote(e,r);case oe.ZodCatch:return Eee(e,r);case oe.ZodPipeline:return Yee(e,r);case oe.ZodFunction:case oe.ZodVoid:case oe.ZodSymbol:return;default:return(o=>{})(t)}},ate=(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 kt(e,t,r=!1){var o;let n=t.seen.get(e);if(t.override){let c=(o=t.override)==null?void 0:o.call(t,e,t,n,r);if(c!==Iee)return c}if(n&&!r){let c=ste(n,t);if(c!==void 0)return c}let i={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,i);let a=ite(e,e.typeName,t),s=typeof a=="function"?kt(a(),t):a;if(s&<e(e,t,s),t.postProcess){let c=t.postProcess(s,e,t);return i.jsonSchema=s,c}return i.jsonSchema=s,s}var ste=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ate(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((r,o)=>t.currentPath[o]===r)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),$n()):t.$refStrategy==="seen"?$n():void 0}},lte=(e,t,r)=>(e.description&&(r.description=e.description),r),cte=e=>{let t=Tee(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(([o,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,o],jsonSchema:void 0}]))}},ute=(e,t)=>{var r;let o=cte(t),n=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[p,m])=>{var h;return{...u,[p]:(h=kt(m._def,{...o,currentPath:[...o.basePath,o.definitionPath,p]},!0))!=null?h:$n()}},{}):void 0,i=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,a=(r=kt(e._def,i===void 0?o:{...o,currentPath:[...o.basePath,o.definitionPath,i]}
65,!1))!=null?r:$n(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(a.title=s);let c=i===void 0?n?{...a,[o.definitionPath]:n}:a:{$ref:[...o.$refStrategy==="relative"?[]:o.basePath,o.definitionPath,i].join("/"),[o.definitionPath]:{...n,[i]:a}};return c.$schema="http://json-schema.org/draft-07/schema#",c},p2=Symbol.for("vercel.ai.schema");function xg(e){let t;return()=>(t==null&&(t=e()),t)}function wg(e,{validate:t}={}){return{[p2]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function dte(e){return typeof e=="object"&&e!==null&&p2 in e&&e[p2]===!0&&"jsonSchema"in e&&"validate"in e}function _g(e){return e==null?wg({properties:{},additionalProperties:!1}):dte(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Sp(e):pte(e):e()}function pte(e){return wg(()=>f2(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 No({value:t,cause:r.issues})}}})}function mte(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return wg(()=>ute(e,{$refStrategy:o?"root":"none"}),{validate:async n=>{let i=await e.safeParseAsync(n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function fte(e,t){var r;let o=(r=t?.useReferences)!=null?r:!1;return wg(()=>f2(X0(e,{target:"draft-7",io:"input",reused:o?"ref":"inline"})),{validate:async n=>{let i=await Q0(e,n);return i.success?{success:!0,value:i.data}:{success:!1,error:i.error}}})}function hte(e){return"_zod"in e}function Sp(e,t){return hte(e)?fte(e,t):mte(e,t)}async function kg({value:e,schema:t,context:r}){let o=await bc({value:e,schema:t,context:r});if(!o.success)throw No.wrap({value:e,cause:o.error,context:r});return o.value}async function bc({value:e,schema:t,context:r}){let o=_g(t);try{if(o.validate==null)return{success:!0,value:e,rawValue:e};let n=await o.validate(e);return n.success?{success:!0,value:n.value,rawValue:e}:{success:!1,error:No.wrap({value:e,cause:n.error,context:r}),rawValue:e}}catch(n){return{success:!1,error:No.wrap({value:e,cause:n,context:r}),rawValue:e}}}async function Si({text:e,schema:t}){try{let r=See(e);return t==null?{success:!0,value:r,rawValue:r}:await bc({value:r,schema:t})}catch(r){return{success:!1,error:vw.isInstance(r)?r:new vw({text:e,cause:r}),rawValue:void 0}}}function PD({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new vg).pipeThrough(new TransformStream({async transform({data:r},o){r!=="[DONE]"&&o.enqueue(await Si({text:r,schema:t}))}}))}async function jo(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var NPe=new TextDecoder;var _={};rn(_,{$brand:()=>Sg,$input:()=>R6,$output:()=>M6,NEVER:()=>h2,TimePrecision:()=>L6,ZodAny:()=>$5,ZodArray:()=>z5,ZodBase64:()=>Xv,ZodBase64URL:()=>Yv,ZodBigInt:()=>Jc,ZodBigIntFormat:()=>ty,ZodBoolean:()=>Wc,ZodCIDRv4:()=>Jv,ZodCIDRv6:()=>Kv,ZodCUID:()=>Fv,ZodCUID2:()=>Zv,ZodCatch:()=>Q5,ZodCodec:()=>cy,ZodCustom:()=>rm,ZodCustomStringFormat:()=>qc,ZodDate:()=>Xp,ZodDefault:()=>H5,ZodDiscriminatedUnion:()=>M5,ZodE164:()=>Qv,ZodEmail:()=>jv,ZodEmoji:()=>Uv,ZodEnum:()=>Vc,ZodError:()=>Zne,ZodExactOptional:()=>V5,ZodFile:()=>F5,ZodFirstPartyTypeKind:()=>d3,ZodFunction:()=>l3,ZodGUID:()=>qp,ZodIPv4:()=>Hv,ZodIPv6:()=>Wv,ZodISODate:()=>Mv,ZodISODateTime:()=>Av,ZodISODuration:()=>Nv,ZodISOTime:()=>Rv,ZodIntersection:()=>R5,ZodIssueCode:()=>Gne,ZodJWT:()=>ey,ZodKSUID:()=>qv,ZodLazy:()=>i3,ZodLiteral:()=>B5,ZodMAC:()=>x5,ZodMap:()=>j5,ZodNaN:()=>t3,ZodNanoID:()=>Bv,ZodNever:()=>C5,ZodNonOptional:()=>sy,ZodNull:()=>I5,ZodNullable:()=>q5,ZodNumber:()=>Hc,ZodNumberFormat:()=>Vs,ZodObject:()=>Qp,ZodOptional:()=>ay,ZodPipe:()=>ly,ZodPrefault:()=>J5,ZodPromise:()=>s3,ZodReadonly:()=>r3,ZodRealError:()=>pn,ZodRecord:()=>tm,ZodSet:()=>U5,ZodString:()=>Gc,ZodStringFormat:()=>$t,ZodSuccess:()=>Y5,ZodSymbol:()=>k5,ZodTemplateLiteral:()=>o3,ZodTransform:()=>Z5,ZodTuple:()=>D5,ZodType:()=>Xe,ZodULID:()=>Vv,ZodURL:()=>Kp,ZodUUID:()=>Zo,ZodUndefined:()=>S5,ZodUnion:()=>em,ZodUnknown:()=>P5,ZodVoid:()=>E5,ZodXID:()=>Gv,ZodXor:()=>A5,_ZodString:()=>Lv,_default:()=>W5,_function:()=>sj,any:()=>jL,array:()=>Yp,base64:()=>_L,base64url:()=>kL,bigint:()=>RL,boolean:()=>_5,catch:()=>e3,check:()=>lj,cidrv4:()=>xL,cidrv6:()=>wL,clone:()=>qr,codec:()=>oj,coerce:()=>p3,config:()=>Yt,core:()=>$i,cuid:()=>pL,cuid2:()=>mL,custom:()=>cj,date:()=>BL,decode:()=>m5,decodeAsync:()=>h5,describe:()=>uj,discriminatedUnion:()=>HL,e164:()=>SL,email:()=>rL,emoji:()=>uL,encode:()=>p5,encodeAsync:()=>f5,endsWith:()=>Rc,enum:()=>oy,exactOptional:()=>G5,file:()=>ej,flattenError:()=>Mp,float32:()=>EL,float64:()=>zL,formatError:()=>Rp,fromJSONSchema:()=>vj,function:()=>sj,getErrorMap:()=>Hne,globalRegistry:()=>Pr,gt:()=>Bo,gte:()=>Hr,guid:()=>nL,hash:()=>CL,hex:()=>PL,hostname:()=>$L,httpUrl:()=>cL,includes:()=>Ac,instanceof:()=>pj,int:()=>Ov,int32:()=>AL,int64:()=>NL,intersection:()=>N5,ipv4:()=>vL,ipv6:()=>bL,iso:()=>Zc,json:()=>fj,jwt:()=>IL,keyof:()=>FL,ksuid:()=>gL,lazy:()=>a3,length:()=>Fs,literal:()=>QL,locales:()=>Fp,looseObject:()=>GL,looseRecord:()=>JL,lowercase:()=>Ec,lt:()=>Uo,lte:()=>Cn,mac:()=>yL,map:()=>KL,maxLength:()=>Bs,maxSize:()=>Ra,meta:()=>dj,mime:()=>Nc,minLength:()=>Ti,minSize:()=>Fo,multipleOf:()=>Ma,nan:()=>nj,nanoid:()=>dL,nativeEnum:()=>YL,negative:()=>_v,never:()=>ry,nonnegative:()=>Sv,nonoptional:()=>X5,nonpositive:()=>kv,normalize:()=>Dc,null:()=>T5,nullable:()=>Wp,nullish:()=>tj,number:()=>w5,object:()=>ZL,optional:()=>Hp,overwrite:()=>vo,parse:()=>l5,parseAsync:()=>c5,partialRecord:()=>WL,pipe:()=>Jp,positive:()=>wv,prefault:()=>K5,preprocess:()=>hj,prettifyError:()=>$2,promise:()=>aj,property:()=>Iv,readonly:()=>n3,record:()=>L5,refine:()=>c3,regex:()=>Cc,regexes:()=>Wn,registry:()=>ev,safeDecode:()=>v5,safeDecodeAsync:()=>b5,safeEncode:()=>g5,safeEncodeAsync:()=>y5,safeParse:()=>u5,safeParseAsync:()=>d5,set:()=>XL,setErrorMap:()=>qne,size:()=>Us,slugify:()=>Uc,startsWith:()=>Mc,strictObject:()=>VL,string:()=>Dv,stringFormat:()=>TL,stringbool:()=>mj,success:()=>rj,superRefine:()=>u3,symbol:()=>
65OL,templateLiteral:()=>ij,toJSONSchema:()=>Cv,toLowerCase:()=>Lc,toUpperCase:()=>jc,transform:()=>iy,treeifyError:()=>T2,trim:()=>Oc,tuple:()=>O5,uint32:()=>ML,uint64:()=>DL,ulid:()=>fL,undefined:()=>LL,union:()=>ny,unknown:()=>Zs,uppercase:()=>zc,url:()=>lL,util:()=>te,uuid:()=>oL,uuidv4:()=>iL,uuidv6:()=>aL,uuidv7:()=>sL,void:()=>UL,xid:()=>hL,xor:()=>qL});var $i={};rn($i,{$ZodAny:()=>t6,$ZodArray:()=>a6,$ZodAsyncError:()=>go,$ZodBase64:()=>Gk,$ZodBase64URL:()=>qk,$ZodBigInt:()=>Hg,$ZodBigIntFormat:()=>Xk,$ZodBoolean:()=>Lp,$ZodCIDRv4:()=>Fk,$ZodCIDRv6:()=>Zk,$ZodCUID:()=>Ek,$ZodCUID2:()=>zk,$ZodCatch:()=>S6,$ZodCheck:()=>Et,$ZodCheckBigIntFormat:()=>ak,$ZodCheckEndsWith:()=>yk,$ZodCheckGreaterThan:()=>Ug,$ZodCheckIncludes:()=>gk,$ZodCheckLengthEquals:()=>pk,$ZodCheckLessThan:()=>jg,$ZodCheckLowerCase:()=>fk,$ZodCheckMaxLength:()=>uk,$ZodCheckMaxSize:()=>sk,$ZodCheckMimeType:()=>xk,$ZodCheckMinLength:()=>dk,$ZodCheckMinSize:()=>lk,$ZodCheckMultipleOf:()=>ok,$ZodCheckNumberFormat:()=>ik,$ZodCheckOverwrite:()=>wk,$ZodCheckProperty:()=>bk,$ZodCheckRegex:()=>mk,$ZodCheckSizeEquals:()=>ck,$ZodCheckStartsWith:()=>vk,$ZodCheckStringFormat:()=>$c,$ZodCheckUpperCase:()=>hk,$ZodCodec:()=>Up,$ZodCustom:()=>A6,$ZodCustomStringFormat:()=>Jk,$ZodDate:()=>i6,$ZodDefault:()=>x6,$ZodDiscriminatedUnion:()=>c6,$ZodE164:()=>Hk,$ZodEmail:()=>Tk,$ZodEmoji:()=>Pk,$ZodEncodeError:()=>Pa,$ZodEnum:()=>f6,$ZodError:()=>Ap,$ZodExactOptional:()=>y6,$ZodFile:()=>g6,$ZodFunction:()=>C6,$ZodGUID:()=>Sk,$ZodIPv4:()=>jk,$ZodIPv6:()=>Uk,$ZodISODate:()=>Dk,$ZodISODateTime:()=>Nk,$ZodISODuration:()=>Lk,$ZodISOTime:()=>Ok,$ZodIntersection:()=>u6,$ZodJWT:()=>Wk,$ZodKSUID:()=>Rk,$ZodLazy:()=>z6,$ZodLiteral:()=>h6,$ZodMAC:()=>Bk,$ZodMap:()=>p6,$ZodNaN:()=>I6,$ZodNanoID:()=>Ck,$ZodNever:()=>n6,$ZodNonOptional:()=>_6,$ZodNull:()=>e6,$ZodNullable:()=>b6,$ZodNumber:()=>qg,$ZodNumberFormat:()=>Kk,$ZodObject:()=>tO,$ZodObjectJIT:()=>s6,$ZodOptional:()=>Jg,$ZodPipe:()=>T6,$ZodPrefault:()=>w6,$ZodPromise:()=>E6,$ZodReadonly:()=>$6,$ZodRealError:()=>dn,$ZodRecord:()=>d6,$ZodRegistry:()=>Qg,$ZodSet:()=>m6,$ZodString:()=>js,$ZodStringFormat:()=>Tt,$ZodSuccess:()=>k6,$ZodSymbol:()=>Yk,$ZodTemplateLiteral:()=>P6,$ZodTransform:()=>v6,$ZodTuple:()=>Wg,$ZodType:()=>Be,$ZodULID:()=>Ak,$ZodURL:()=>$k,$ZodUUID:()=>Ik,$ZodUndefined:()=>Qk,$ZodUnion:()=>jp,$ZodUnknown:()=>r6,$ZodVoid:()=>o6,$ZodXID:()=>Mk,$ZodXor:()=>l6,$brand:()=>Sg,$constructor:()=>j,$input:()=>R6,$output:()=>M6,Doc:()=>Op,JSONSchema:()=>eL,JSONSchemaGenerator:()=>Ev,NEVER:()=>h2,TimePrecision:()=>L6,_any:()=>iS,_array:()=>pS,_base64:()=>vv,_base64url:()=>yv,_bigint:()=>Y6,_boolean:()=>K6,_catch:()=>Nne,_check:()=>QO,_cidrv4:()=>hv,_cidrv6:()=>gv,_coercedBigint:()=>Q6,_coercedBoolean:()=>X6,_coercedDate:()=>uS,_coercedNumber:()=>V6,_coercedString:()=>D6,_cuid:()=>lv,_cuid2:()=>cv,_custom:()=>fS,_date:()=>cS,_decode:()=>Eg,_decodeAsync:()=>Ag,_default:()=>Ane,_discriminatedUnion:()=>xne,_e164:()=>bv,_email:()=>tv,_emoji:()=>av,_encode:()=>Cg,_encodeAsync:()=>zg,_endsWith:()=>Rc,_enum:()=>Tne,_file:()=>mS,_float32:()=>q6,_float64:()=>H6,_gt:()=>Bo,_gte:()=>Hr,_guid:()=>Zp,_includes:()=>Ac,_int:()=>G6,_int32:()=>W6,_int64:()=>eS,_intersection:()=>wne,_ipv4:()=>mv,_ipv6:()=>fv,_isoDate:()=>U6,_isoDateTime:()=>j6,_isoDuration:()=>F6,_isoTime:()=>B6,_jwt:()=>xv,_ksuid:()=>pv,_lazy:()=>jne,_length:()=>Fs,_literal:()=>Pne,_lowercase:()=>Ec,_lt:()=>Uo,_lte:()=>Cn,_mac:()=>O6,_map:()=>Sne,_max:()=>Cn,_maxLength:()=>Bs,_maxSize:()=>Ra,_mime:()=>Nc,_min:()=>Hr,_minLength:()=>Ti,_minSize:()=>Fo,_multipleOf:()=>Ma,_nan:()=>dS,_nanoid:()=>sv,_nativeEnum:()=>$ne,_negative:()=>_v,_never:()=>sS,_nonnegative:()=>Sv,_nonoptional:()=>Mne,_nonpositive:()=>kv,_normalize:()=>Dc,_null:()=>oS,_nullable:()=>zne,_number:()=>Z6,_optional:()=>Ene,_overwrite:()=>vo,_parse:()=>kc,_parseAsync:()=>Sc,_pipe:()=>Dne,_positive:()=>wv,_promise:()=>Une,_property:()=>Iv,_readonly:()=>One,_record:()=>kne,_refine:()=>hS,_regex:()=>Cc,_safeDecode:()=>Rg,_safeDecodeAsync:()=>Dg,_safeEncode:()=>Mg,_safeEncodeAsync:()=>Ng,_safeParse:()=>Ic,_safeParseAsync:()=>Tc,_set:()=>Ine,_size:()=>Us,_slugify:()=>Uc,_startsWith:()=>Mc,_string:()=>N6,_stringFormat:()=>Bc,_stringbool:()=>bS,_success:()=>Rne,_superRefine:()=>gS,_symbol:()=>
vendor: 9,301 bytes, line 65
65rS,_templateLiteral:()=>Lne,_toLowerCase:()=>Lc,_toUpperCase:()=>jc,_transform:()=>Cne,_trim:()=>Oc,_tuple:()=>_ne,_uint32:()=>J6,_uint64:()=>tS,_ulid:()=>uv,_undefined:()=>nS,_union:()=>yne,_unknown:()=>aS,_uppercase:()=>zc,_url:()=>Vp,_uuid:()=>rv,_uuidv4:()=>nv,_uuidv6:()=>ov,_uuidv7:()=>iv,_void:()=>lS,_xid:()=>dv,_xor:()=>bne,clone:()=>qr,config:()=>Yt,createStandardJSONSchemaMethod:()=>Fc,createToJSONSchemaMethod:()=>xS,decode:()=>Zte,decodeAsync:()=>Gte,describe:()=>vS,encode:()=>Fte,encodeAsync:()=>Vte,extractDefs:()=>Da,finalize:()=>Oa,flattenError:()=>Mp,formatError:()=>Rp,globalConfig:()=>Ip,globalRegistry:()=>Pr,initializeContext:()=>Na,isValidBase64:()=>Vk,isValidBase64URL:()=>XD,isValidJWT:()=>YD,locales:()=>Fp,meta:()=>yS,parse:()=>$g,parseAsync:()=>Pg,prettifyError:()=>$2,process:()=>xt,regexes:()=>Wn,registry:()=>ev,safeDecode:()=>Hte,safeDecodeAsync:()=>Jte,safeEncode:()=>qte,safeEncodeAsync:()=>Wte,safeParse:()=>P2,safeParseAsync:()=>C2,toDotPath:()=>MD,toJSONSchema:()=>Cv,treeifyError:()=>T2,util:()=>te,version:()=>_k});var h2=Object.freeze({status:"aborted"});function j(e,t,r){function o(s,c){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,c);let u=a.prototype,p=Object.keys(u);for(let m=0;m<p.length;m++){let h=p[m];h in s||(s[h]=u[h].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var c;let u=r?.Parent?new i:this;o(u,s),(c=u._zod).deferred??(c.deferred=[]);for(let p of u._zod.deferred)p();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Sg=Symbol("zod_brand"),go=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Pa=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Ip={};function Yt(e){return e&&Object.assign(Ip,e),Ip}var te={};rn(te,{BIGINT_FORMAT_RANGES:()=>I2,Class:()=>v2,NUMBER_FORMAT_RANGES:()=>S2,aborted:()=>Aa,allowsEval:()=>x2,assert:()=>xte,assertEqual:()=>gte,assertIs:()=>yte,assertNever:()=>bte,assertNotEqual:()=>vte,assignProp:()=>Ea,base64ToUint8Array:()=>ED,base64urlToUint8Array:()=>Ote,cached:()=>wc,captureStackTrace:()=>Tg,cleanEnum:()=>Dte,cleanRegex:()=>Pp,clone:()=>qr,cloneDef:()=>_te,createTransparentProxy:()=>Pte,defineLazy:()=>ot,esc:()=>Ig,escapeRegex:()=>Hn,extend:()=>zte,finalizeIssue:()=>un,floatSafeRemainder:()=>y2,getElementAtPath:()=>kte,getEnumValues:()=>$p,getLengthableOrigin:()=>zp,getParsedType:()=>$te,getSizableOrigin:()=>Ep,hexToUint8Array:()=>jte,isObject:()=>Os,isPlainObject:()=>za,issue:()=>_c,joinValues:()=>H,jsonStringifyReplacer:()=>xc,merge:()=>Mte,mergeDefs:()=>Ii,normalizeParams:()=>ae,nullish:()=>Ca,numKeys:()=>Tte,objectClone:()=>wte,omit:()=>Ete,optionalKeys:()=>k2,parsedType:()=>ee,partial:()=>Rte,pick:()=>Cte,prefixIssues:()=>Pn,primitiveTypes:()=>_2,promiseAllObject:()=>Ste,propertyKeyTypes:()=>Cp,randomString:()=>Ite,required:()=>Nte,safeExtend:()=>Ate,shallowClone:()=>w2,slugify:()=>b2,stringifyPrimitive:()=>Y,uint8ArrayToBase64:()=>zD,uint8ArrayToBase64url:()=>Lte,uint8ArrayToHex:()=>Ute,unwrapMessage:()=>Tp});function gte(e){return e}function vte(e){return e}function yte(e){}function bte(e){throw new Error("Unexpected value in exhaustive check")}function xte(e){}function $p(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function H(e,t="|"){return e.map(r=>Y(r)).join(t)}function xc(e,t){return typeof t=="bigint"?t.toString():t}function wc(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function Ca(e){return e==null}function Pp(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function y2(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let c=o.match(/\d?e-(\d?)/);c?.[1]&&(n=Number.parseInt(c[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}var CD=Symbol("evaluating");function ot(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==CD)return o===void 0&&(o=CD,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function wte(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Ea(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ii(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function _te(e){return Ii(e._zod.def)}function kte(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function Ste(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function Ite(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Ig(e){return JSON.stringify(e)}function b2(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Tg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Os(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var x2=wc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function za(e){if(Os(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Os(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function w2(e){return za(e)?{...e}:Array.isArray(e)?[...e]:e}function Tte(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var $te=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}`)}},Cp=new Set(["string","number","symbol"]),_2=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Hn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qr(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function ae(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 Pte(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function Y(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function k2(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var S2={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]},I2={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Cte(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Ii(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return Ea(this,"shape",a),a},checks:[]});return qr(e,i)}function Ete(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Ii(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return Ea(this,"shape",a),a},checks:[]});return qr(e,i)}function zte(e,t){if(!za(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot over
65write keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Ii(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return Ea(this,"shape",i),i}});return qr(e,n)}function Ate(e,t){if(!za(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Ii(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Ea(this,"shape",o),o}});return qr(e,r)}function Mte(e,t){let r=Ii(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return Ea(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return qr(e,r)}function Rte(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 a=Ii(t._zod.def,{get shape(){let s=t._zod.def.shape,c={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(c[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)c[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return Ea(this,"shape",c),c},checks:[]});return qr(t,a)}function Nte(e,t,r){let o=Ii(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return Ea(this,"shape",i),i}});return qr(t,o)}function Aa(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 Pn(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Tp(e){return typeof e=="string"?e:e?.message}function un(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Tp(e.inst?._zod.def?.error?.(e))??Tp(t?.error?.(e))??Tp(r.customError?.(e))??Tp(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Ep(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function zp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ee(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 _c(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function Dte(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function ED(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function zD(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function Ote(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return ED(t+r)}function Lte(e){return zD(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function jte(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 o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function Ute(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var v2=class{constructor(...t){}};var AD=(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,xc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ap=j("$ZodError",AD),dn=j("$ZodError",AD,{Parent:Error});function Mp(e,t=r=>r.message){let r={},o=[];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))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Rp(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let c=i.path[s];s===i.path.length-1?(a[c]=a[c]||{_errors:[]},a[c]._errors.push(t(i))):a[c]=a[c]||{_errors:[]},a=a[c],s++}}};return o(e),r}function T2(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let c of n.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>o({issues:u},c.path));else if(c.code==="invalid_key")o({issues:c.issues},c.path);else if(c.code==="invalid_element")o({issues:c.issues},c.path);else{let u=[...i,...c.path];if(u.length===0){r.errors.push(t(c));continue}let p=r,m=0;for(;m<u.length;){let h=u[m],g=m===u.length-1;typeof h=="string"?(p.properties??(p.properties={}),(a=p.properties)[h]??(a[h]={errors:[]}),p=p.properties[h]):(p.items??(p.items=[]),(s=p.items)[h]??(s[h]={errors:[]}),p=p.items[h]),g&&p.errors.push(t(c)),m++}}};return o(e),r}function MD(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);
vendor: 67,323 bytes, lines 65-102
65for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function $2(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${MD(o.path)}`);return t.join(` 66`)}var kc=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new go;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>un(c,i,Yt())));throw Tg(s,n?.callee),s}return a.value},$g=kc(dn),Sc=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(c=>un(c,i,Yt())));throw Tg(s,n?.callee),s}return a.value},Pg=Sc(dn),Ic=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new go;return i.issues.length?{success:!1,error:new(e??Ap)(i.issues.map(a=>un(a,n,Yt())))}:{success:!0,data:i.value}},P2=Ic(dn),Tc=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>un(a,n,Yt())))}:{success:!0,data:i.value}},C2=Tc(dn),Cg=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return kc(e)(t,r,n)},Fte=Cg(dn),Eg=e=>(t,r,o)=>kc(e)(t,r,o),Zte=Eg(dn),zg=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Sc(e)(t,r,n)},Vte=zg(dn),Ag=e=>async(t,r,o)=>Sc(e)(t,r,o),Gte=Ag(dn),Mg=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ic(e)(t,r,n)},qte=Mg(dn),Rg=e=>(t,r,o)=>Ic(e)(t,r,o),Hte=Rg(dn),Ng=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Tc(e)(t,r,n)},Wte=Ng(dn),Dg=e=>async(t,r,o)=>Tc(e)(t,r,o),Jte=Dg(dn);var Wn={};rn(Wn,{base64:()=>G2,base64url:()=>Og,bigint:()=>X2,boolean:()=>Q2,browserEmail:()=>nre,cidrv4:()=>Z2,cidrv6:()=>V2,cuid:()=>E2,cuid2:()=>z2,date:()=>H2,datetime:()=>J2,domain:()=>are,duration:()=>D2,e164:()=>q2,email:()=>L2,emoji:()=>j2,extendedDuration:()=>Kte,guid:()=>O2,hex:()=>sre,hostname:()=>ire,html5Email:()=>ere,idnEmail:()=>rre,integer:()=>Y2,ipv4:()=>U2,ipv6:()=>B2,ksuid:()=>R2,lowercase:()=>rk,mac:()=>F2,md5_base64:()=>cre,md5_base64url:()=>ure,md5_hex:()=>lre,nanoid:()=>N2,null:()=>ek,number:()=>Lg,rfc5322Email:()=>tre,sha1_base64:()=>pre,sha1_base64url:()=>mre,sha1_hex:()=>dre,sha256_base64:()=>hre,sha256_base64url:()=>gre,sha256_hex:()=>fre,sha384_base64:()=>yre,sha384_base64url:()=>bre,sha384_hex:()=>vre,sha512_base64:()=>wre,sha512_base64url:()=>_re,sha512_hex:()=>xre,string:()=>K2,time:()=>W2,ulid:()=>A2,undefined:()=>tk,unicodeEmail:()=>RD,uppercase:()=>nk,uuid:()=>Ls,uuid4:()=>Xte,uuid6:()=>Yte,uuid7:()=>Qte,xid:()=>M2});var E2=/^[cC][^\s-]{8,}$/,z2=/^[0-9a-z]+$/,A2=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,M2=/^[0-9a-vA-V]{20}$/,R2=/^[A-Za-z0-9]{27}$/,N2=/^[a-zA-Z0-9_-]{21}$/,D2=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Kte=/^[-+]?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)?)??$/,O2=/^([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})$/,Ls=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)$/,Xte=Ls(4),Yte=Ls(6),Qte=Ls(7),L2=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ere=/^[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])?)*$/,tre=/^(([^<>()\[\]\\.,;:\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,}))$/,RD=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,rre=RD,nre=/^[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])?)*$/,ore="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function j2(){return new RegExp(ore,"u")}var U2=/^(?:(?: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])$/,B2=/^(([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}|:))$/,F2=e=>{let t=Hn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},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])\/([0-9]|[1-2][0-9]|3[0-2])$/,V2=/^(([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])$/,G2=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Og=/^[A-Za-z0-9_-]*$/,ire=/^(?=.{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])?)*\.?$/,are=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,q2=/^\+[1-9]\d{6,14}$/,ND="(?:(?:\\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])))",H2=new RegExp(`^${ND}$`);function DD(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 W2(e){return new RegExp(`^${DD(e)}$`)}function J2(e){let t=DD({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${ND}T(?:${o})$`)}var K2=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},X2=/^-?\d+n?$/,Y2=/^-?\d+$/,Lg=/^-?\d+(?:\.\d+)?$/,Q2=/^(?:true|false)$/i,ek=/^null$/i;var tk=/^undefined$/i;var rk=/^[^A-Z]*$/,nk=/^[^a-z]*$/,sre=/^[0-9a-fA-F]*$/;function Np(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Dp(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var lre=/^[0-9a-fA-F]{32}$/,cre=Np(22,"=="),ure=Dp(22),dre=/^[0-9a-fA-F]{40}$/,pre=Np(27,"="),mre=Dp(27),fre=/^[0-9a-fA-F]{64}$/,hre=Np(43,"="),gre=Dp(43),vre=/^[0-9a-fA-F]{96}$/,yre=Np(64,""),bre=Dp(64),xre=/^[0-9a-fA-F]{128}$/,wre=Np(86,"=="),_re=Dp(86);var Et=j("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),LD={number:"number",bigint:"bigint",object:"date"},jg=j("$ZodCheckLessThan",(e,t)=>{Et.init(e,t);let r=LD[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ug=j("$ZodCheckGreaterThan",(e,t)=>{Et.init(e,t);let r=LD[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ok=j("$ZodCheckMultipleOf",(e,t)=>{Et.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.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):y2(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})}}),ik=j("$ZodCheckNumberFormat",(e,t)=>{Et.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=S2[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Y2)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),ak=j("$ZodCheckBigIntFormat",(e,t)=>{Et.init(e,t);let[r,o]=I2[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),sk=j("$ZodCheckMaxSize",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Ep(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),lk=j("$ZodCheckMinSize",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Ep(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),ck=j("$ZodCheckSizeEquals",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Ep(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),uk=j("$ZodCheckMaxLength",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=zp(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),dk=j("$ZodCheckMinLength",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=zp(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),pk=j("$ZodCheckLengthEquals",(e,t)=>{var r;Et.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Ca(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=zp(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),$c=j("$ZodCheckStringFormat",(e,t)=>{var r,o;Et.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.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})}):(o=e._zod).check??(o.check=()=>{})}),mk=j("$ZodCheckRegex",(e,t)=>{$c.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})}}),fk=j("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=rk),$c.init(e,t)}),hk=j("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nk),$c.init(e,t)}),gk=j("$ZodCheckIncludes",(e,t)=>{Et.init(e,t);let r=Hn(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),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})}}),vk=j("$ZodCheckStartsWith",(e,t)=>{Et.init(e,t);let r=new RegExp(`^${Hn(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),yk=j("$ZodCheckEndsWith",(e,t)=>{Et.init(e,t);let r=new RegExp(`.*${Hn(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function OD(e,t,r){e.issues.length&&t.issues.push(...Pn(r,e.issues))}var bk=j("$ZodCheckProperty",(e,t)=>{Et.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>OD(n,r,t.property));OD(o,r,t.property)}}),xk=j("$ZodCheckMimeType",(e,t)=>{Et.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),wk=j("$ZodCheckOverwrite",(e,t)=>{Et.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Op=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 o=t.split(` 67`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(` 68`))}};var _k={major:4,minor:3,patch:6};var Be=j("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_k;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,c)=>{let u=Aa(a),p;for(let m of s){if(m._zod.def.when){if(!m._zod.def.when(a))continue}else if(u)continue;let h=a.issues.length,g=m._zod.check(a);if(g instanceof Promise&&c?.async===!1)throw new go;if(p||g instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await g,a.issues.length!==h&&(u||(u=Aa(a,h)))});else{if(a.issues.length===h)continue;u||(u=Aa(a,h))}}return p?p.then(()=>a):a},i=(a,s,c)=>{if(Aa(a))return a.aborted=!0,a;let u=n(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new go;return u.then(p=>e._zod.parse(p,c))}return e._zod.parse(u,c)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(p=>i(p,a,s)):i(u,a,s)}let c=e._zod.parse(a,s);if(c instanceof Promise){if(s.async===!1)throw new go;return c.then(u=>n(u,o,s))}return n(c,o,s)}}ot(e,"~standard",()=>({validate:n=>{try{let i=P2(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return C2(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),js=j("$ZodString",(e,t)=>{Be.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??K2(e._zod.bag),e._zod.parse=(r,o)=>{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}}),Tt=j("$ZodStringFormat",(e,t)=>{$c.init(e,t),js.init(e,t)}),Sk=j("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=O2),Tt.init(e,t)}),Ik=j("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ls(o))}else t.pattern??(t.pattern=Ls());Tt.init(e,t)}),Tk=j("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=L2),Tt.init(e,t)}),$k=j("$ZodURL",(e,t)=>{Tt.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);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=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Pk=j("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=j2()),Tt.init(e,t)}),Ck=j("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=N2),Tt.init(e,t)}),Ek=j("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=E2),Tt.init(e,t)}),zk=j("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=z2),Tt.init(e,t)}),Ak=j("$ZodULID",(e,t)=>{t.pattern??(t.pattern=A2),Tt.init(e,t)}),Mk=j("$ZodXID",(e,t)=>{t.pattern??(t.pattern=M2),Tt.init(e,t)}),Rk=j("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=R2),Tt.init(e,t)}),Nk=j("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=J2(t)),Tt.init(e,t)}),Dk=j("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=H2),Tt.init(e,t)}),Ok=j("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=W2(t)),Tt.init(e,t)}),Lk=j("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=D2),Tt.init(e,t)}),jk=j("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=U2),Tt.init(e,t),e._zod.bag.format="ipv4"}),Uk=j("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=B2),Tt.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})}}}),Bk=j("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=F2(t.delimiter)),Tt.init(e,t),e._zod.bag.format="mac"}),Fk=j("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Z2),Tt.init(e,t)}),Zk=j("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=V2),Tt.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>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 Vk(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Gk=j("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=G2),Tt.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Vk(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function XD(e){if(!Og.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Vk(r)}var qk=j("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Og),Tt.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{XD(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Hk=j("$ZodE164",(e,t)=>{t.pattern??(t.pattern=q2),Tt.init(e,t)});function YD(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Wk=j("$ZodJWT",(e,t)=>{Tt.init(e,t),e._zod.check=r=>{YD(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Jk=j("$ZodCustomStringFormat",(e,t)=>{Tt.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})}}),qg=j("$ZodNumber",(e,t)=>{Be.init(e,t),e._zod.pattern=e._zod.bag.pattern??Lg,e._zod.parse=(r,o)=>{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 i=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,...i?{received:i}:{}}),r}}),Kk=j("$ZodNumberFormat",(e,t)=>{ik.init(e,t),qg.init(e,t)}),Lp=j("$ZodBoolean",(e,t)=>{Be.init(e,t),e._zod.pattern=Q2,e._zod.parse=(r,o)=>{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}}),Hg=j("$ZodBigInt",(e,t)=>{Be.init(e,t),e._zod.pattern=X2,e._zod.parse=(r,o)=>{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}}),Xk=j("$ZodBigIntFormat",(e,t)=>{ak.init(e,t),Hg.init(e,t)}),Yk=j("$ZodSymbol",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Qk=j("$ZodUndefined",(e,t)=>{Be.init(e,t),e._zod.pattern=tk,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),e6=j("$ZodNull",(e,t)=>{Be.init(e,t),e._zod.pattern=ek,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),t6=j("$ZodAny",(e,t)=>{Be.init(e,t),e._zod.parse=r=>r}),r6=j("$ZodUnknown",(e,t)=>{Be.init(e,t),e._zod.parse=r=>r}),n6=j("$ZodNever",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),o6=j("$ZodVoid",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),i6=j("$ZodDate",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function UD(e,t,r){e.issues.length&&t.issues.push(...Pn(r,e.issues)),t.value[r]=e.value}var a6=j("$ZodArray",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{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 i=[];for(let a=0;a<n.length;a++){let s=n[a],c=t.element._zod.run({value:s,issues:[]},o);c instanceof Promise?i.push(c.then(u=>UD(u,r,a))):UD(c,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Gg(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Pn(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function QD(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=k2(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function eO(e,t,r,o,n,i){let a=[],s=n.keySet,c=n.catchall._zod,u=c.def.type,p=c.optout==="optional";for(let m in t){if(s.has(m))continue;if(u==="never"){a.push(m);continue}let h=c.run({value:t[m],issues:[]},o);h instanceof Promise?e.push(h.then(g=>Gg(g,r,m,t,p))):Gg(h,r,m,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var tO=j("$ZodObject",(e,t)=>{if(Be.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...s};return Object.defineProperty(t,"shape",{value:c}),c}})}let o=wc(()=>QD(t));ot(e._zod,"propValues",()=>{let s=t.shape,c={};for(let u in s){let p=s[u]._zod;if(p.values){c[u]??(c[u]=new Set);for(let m of p.values)c[u].add(m)}}return c});let n=Os,i=t.catchall,a;e._zod.parse=(s,c)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let p=[],m=a.shape;for(let h of a.keys){let g=m[h],b=g._zod.optout==="optional",T=g._zod.run({value:u[h],issues:[]},c);T instanceof Promise?p.push(T.then(I=>Gg(I,s,h,u,b))):Gg(T,s,h,u,b)}return i?eO(p,u,s,c,o.value,e):p.length?Promise.all(p).then(()=>s):s}}),s6=j("$ZodObjectJIT",(e,t)=>{tO.init(e,t);let r=e._zod.parse,o=wc(()=>QD(t)),n=h=>{let g=new Op(["shape","payload","ctx"]),b=o.value,T=k=>{let A=Ig(k);return`shape[${A}]._zod.run({ value: input[${A}], issues: [] }, ctx)`};g.write("const input = payload.value;");let I=Object.create(null),P=0;for(let k of b.keys)I[k]=`key_${P++}`;g.write("const newResult = {};");for(let k of b.keys){let A=I[k],z=Ig(k),B=h[k]?._zod?.optout==="optional";g.write(`const ${A} = ${T(k)};`),B?g.write(` 69 if (${A}.issues.length) { 70 if (${z} in input) { 71 payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ 72 ...iss, 73 path: iss.path ? [${z}, ...iss.path] : [${z}] 74 }))); 75 } 76 } 77 78 if (${A}.value === undefined) { 79 if (${z} in input) { 80 newResult[${z}] = undefined; 81 } 82 } else { 83 newResult[${z}] = ${A}.value; 84 } 85 86 `):g.write(` 87 if (${A}.issues.length) { 88 payload.issues = payload.issues.concat(${A}.issues.map(iss => ({ 89 ...iss, 90 path: iss.path ? [${z}, ...iss.path] : [${z}] 91 }))); 92 } 93 94 if (${A}.value === undefined) { 95 if (${z} in input) { 96 newResult[${z}] = undefined; 97 } 98 } else { 99 newResult[${z}] = ${A}.value; 100 } 101 102 `)}g.write("payload.value = newResult;"),g.write("return payload;");let C=g.compile();return(k,A)=>C(h,k,A)},i,a=Os,s=!Ip.jitless,u=s&&x2.value,p=t.catchall,m;e._zod.parse=(h,g)=>{m??(m=o.value);let b=h.value;return a(b)?s&&u&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),h=i(h,g),p?eO([],b,h,g,m,e):h):r(h,g):(h.issues.push({expected:"object",code:"invalid_type",input:b,inst:e}),h)}});function BD(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!Aa(i));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(i=>i.issues.map(a=>un(a,o,Yt())))}),t)}var jp=j("$ZodUnion",(e,t)=>{Be.init(e,t),ot(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),ot(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),ot(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),ot(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Pp(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(c=>BD(c,n,e,i)):BD(s,n,e,i)}});function FD(e,t,r,o){let n=e.filter(i=>i.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(i=>i.issues.map(a=>un(a,o,Yt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var l6=j("$ZodXor",(e,t)=>{jp.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let c of t.options){let u=c._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(c=>FD(c,n,e,i)):FD(s,n,e,i)}}),c6=j("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,jp.init(e,t);let r=e._zod.parse;ot(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,c]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of c)n[s].add(u)}}return n});let o=wc(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Os(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),u6=j("$ZodIntersection",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([c,u])=>ZD(r,c,u)):ZD(r,i,a)}});function kk(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(za(e)&&za(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=kk(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.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 o=0;o<e.length;o++){let n=e[o],i=t[o],a=kk(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function ZD(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let c of s.keys)o.has(c)||o.set(c,{}),o.get(c).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),Aa(e))return e;let a=kk(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Wg=j("$ZodTuple",(e,t)=>{Be.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),c=s===-1?0:r.length-s;if(!t.rest){let p=i.length>r.length,m=i.length<c-1;if(p||m)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let p of r){if(u++,u>=i.length&&u>=c)continue;let m=p._zod.run({value:i[u],issues:[]},n);m instanceof Promise?a.push(m.then(h=>Bg(h,o,u))):Bg(m,o,u)}if(t.rest){let p=i.slice(r.length);for(let m of p){u++;let h=t.rest._zod.run({value:m,issues:[]},n);h instanceof Promise?a.push(h.then(g=>Bg(g,o,u))):Bg(h,o,u)}}return a.length?Promise.all(a).then(()=>o):o}});function Bg(e,t,r){e.issues.length&&t.issues.push(...Pn(r,e.issues)),t.value[r]=e.value}var d6=j("$ZodRecord",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!za(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let p=t.valueType._zod.run({value:n[u],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...Pn(u,m.issues)),r.value[u]=m.value})):(p.issues.length&&r.issues.push(...Pn(u,p.issues)),r.value[u]=p.value)}let c;for(let u in n)s.has(u)||(c=c??[],c.push(u));c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:c})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let c=t.keyType._zod.run({value:s,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&Lg.test(s)&&c.issues.length){let m=t.keyType._zod.run({value:Number(s),issues:[]},o);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>un(m,o,Yt())),input:s,path:[s],inst:e});continue}let p=t.valueType._zod.run({value:n[s],issues:[]},o);p instanceof Promise?i.push(p.then(m=>{m.issues.length&&r.issues.push(...Pn(s,m.issues)),r.value[c.value]=m.value})):(p.issues.length&&r.issues.push(...Pn(s,p.issues)),r.value[c.value]=p.value)}}return i.length?Promise.all(i).then(()=>r):r}}),p6=j("$ZodMap",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let c=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);c instanceof Promise||u instanceof Promise?i.push(Promise.all([c,u]).then(([p,m])=>{VD(p,m,r,a,n,e,o)})):VD(c,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function VD(e,t,r,o,n,i,a){e.issues.length&&(Cp.has(typeof o)?r.issues.push(...Pn(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>un(s,a,Yt()))})),t.issues.length&&(Cp.has(typeof o)?r.issues.push(...Pn(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>un(s,a,Yt()))})),r.value.set(e.value,t.value)}var m6=j("$ZodSet",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(c=>GD(c,r))):GD(s,r)}return i.length?Promise.all(i).then(()=>r):r}});function GD(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var f6=j("$ZodEnum",(e,t)=>{Be.init(e,t);let r=$p(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Cp.has(typeof n)).map(n=>typeof n=="string"?Hn(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),h6=j("$ZodLiteral",(e,t)=>{if(Be.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(o=>typeof o=="string"?Hn(o):o?Hn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),g6=j("$ZodFile",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),v6=j("$ZodTransform",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Pa(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new go;return r.value=n,r}});function qD(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Jg=j("$ZodOptional",(e,t)=>{Be.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ot(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ot(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Pp(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>qD(i,r.value)):qD(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),y6=j("$ZodExactOptional",(e,t)=>{Jg.init(e,t),ot(e._zod,"values",()=>t.innerType._zod.values),ot(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),b6=j("$ZodNullable",(e,t)=>{Be.init(e,t),ot(e._zod,"optin",()=>t.innerType._zod.optin),ot(e._zod,"optout",()=>t.innerType._zod.optout),ot(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Pp(r.source)}|null)$`):void 0}),ot(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),x6=j("$ZodDefault",(e,t)=>{Be.init(e,t),e._zod.optin="optional",ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>HD(i,t)):HD(n,t)}});function HD(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var w6=j("$ZodPrefault",(e,t)=>{Be.init(e,t),e._zod.optin="optional",ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),_6=j("$ZodNonOptional",(e,t)=>{Be.init(e,t),ot(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>WD(i,e)):WD(n,e)}});function WD(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 k6=j("$ZodSuccess",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Pa("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),S6=j("$ZodCatch",(e,t)=>{Be.init(e,t),ot(e._zod,"optin",()=>t.innerType._zod.optin),ot(e._zod,"optout",()=>t.innerType._zod.optout),ot(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>un(a,o,Yt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>un(i,o,Yt()))},input:r.value}),r.issues=[]),r)}}),I6=j("$ZodNaN",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),T6=j("$ZodPipe",(e,t)=>{Be.init(e,t),ot(e._zod,"values",()=>t.in._zod.values),ot(e._zod,"optin",()=>t.in._zod.optin),ot(e._zod,"optout",()=>t.out._zod.optout),ot(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Fg(a,t.in,o)):Fg(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Fg(i,t.out,o)):Fg(n,t.out,o)}});function Fg(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Up=j("$ZodCodec",(e,t)=>{Be.init(e,t),ot(e._zod,"values",()=>t.in._zod.values),ot(e._zod,"optin",()=>t.in._zod.optin),ot(e._zod,"optout",()=>t.out._zod.optout),ot(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Zg(a,t,o)):Zg(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Zg(a,t,o)):Zg(i,t,o)}}});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(i=>Vg(e,i,t.out,r)):Vg(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Vg(e,i,t.in,r)):Vg(e,n,t.in,r)}}function Vg(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var $6=j("$ZodReadonly",(e,t)=>{Be.init(e,t),ot(e._zod,"propValues",()=>t.innerType._zod.propValues),ot(e._zod,"values",()=>t.innerType._zod.values),ot(e._zod,"optin",()=>t.innerType?._zod?.optin),ot(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(JD):JD(n)}});function JD(e){return e.value=Object.freeze(e.value),e}var P6=j("$ZodTemplateLiteral",(e,t)=>{Be.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||_2.has(typeof o))r.push(Hn(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),C6=j("$ZodFunction",(e,t)=>(Be.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(...o){let n=e._def.input?$g(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?$g(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Pg(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Pg(e._def.output,i):i}},e._zod.parse=(r,o)=>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 o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Wg({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),E6=j("$ZodPromise",(e,t)=>{Be.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),z6=j("$ZodLazy",(e,t)=>{Be.init(e,t),ot(e._zod,"innerType",()=>t.getter()),ot(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ot(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ot(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ot(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),A6=j("$ZodCustom",(e,t)=>{Et.init(e,t),Be.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>KD(i,r,o,e));KD(n,r,o,e)}});function KD(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(_c(n))}}var Fp={};rn(Fp,{ar:()=>rO,az:()=>nO,be:()=>iO,bg:()=>aO,ca:()=>sO,cs:()=>lO,da:()=>cO,de:()=>uO,en:()=>Kg,eo:()=>dO,es:()=>pO,fa:()=>mO,fi:()=>fO,fr:()=>hO,frCA:()=>gO,he:()=>vO,hu:()=>yO,hy:()=>xO,id:()=>wO,is:()=>_O,it:()=>kO,ja:()=>SO,ka:()=>IO,kh:()=>TO,km:()=>Xg,ko:()=>$O,lt:()=>CO,mk:()=>EO,ms:()=>zO,nl:()=>AO,no:()=>MO,ota:()=>RO,pl:()=>DO,ps:()=>NO,pt:()=>OO,ru:()=>jO,sl:()=>UO,sv:()=>BO,ta:()=>FO,th:()=>ZO,tr:()=>VO,ua:()=>GO,uk:()=>Yg,ur:()=>qO,uz:()=>HO,vi:()=>WO,yo:()=>XO,zhCN:()=>JO,zhTW:()=>KO});var Sre=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}\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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \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"} ${i} ${n.maximum.toString()} ${a.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"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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 ${i} ${n.minimum.toString()} ${a.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 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.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 rO(){return{localeError:Sre()}}var Ire=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${Y(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.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 nO(){return{localeError:Ire()}}function oO(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var Tre=()=>{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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=oO(s,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${n.maximum.toString()} ${c}`}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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=oO(s,a.unit.one,a.unit.few,a.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 ${a.verb} ${i}${n.minimum.toString()} ${c}`}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 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.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 iO(){return{localeError:Tre()}}var $re=()=>{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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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 ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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 ${i}${n.minimum.toString()} ${a.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 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.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,", ")}`;
102case"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 aO(){return{localeError:$re()}}var Pre=()=>{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
1027a 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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${Y(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${H(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.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 sO(){return{localeError:Pre()}}var Cre=()=>{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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${Y(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}
vendor: 22,984 bytes, line 102
102case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.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 lO(){return{localeError:Cre()}}var Ere=()=>{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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${Y(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.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 cO(){return{localeError:Ere()}}var zre=()=>{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"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${Y(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.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 uO(){return{localeError:zre()}}var Are=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(n.values[0])}`:`Invalid option: expected one of ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.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 Kg(){return{localeError:Are()}}var Mre=()=>{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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${Y(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.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 dO(){return{localeError:Mre()}}var Rre=()=>{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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${Y(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.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 ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function pO(){return{localeError:Rre()}}var Nre=()=>{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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i} \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.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 mO(){return{localeError:Nre()}}var Dre=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${Y(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.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 fO(){return{localeError:Dre()}}var Ore=()=>{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"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${Y(n.values[0])}
102 attendu`:`Option invalide : une valeur parmi ${H(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.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 hO(){return{localeError:Ore()}}var Lre=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${Y(n.values[0])}
102`:`Option invalide : attendu l'une des valeurs suivantes ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.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 gO(){return{localeError:Lre()}}var jre=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,o=u=>{let p=r(u);return p?p.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>
vendor: 33,604 bytes, line 102
102{switch(u.code){case"invalid_type":{let p=u.expected,m=c[p??""]??o(p),h=ee(u.input),g=c[h]??e[h]?.label??h;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${Y(u.values[0])}`;let p=u.values.map(g=>Y(g));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let m=p[p.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 ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let p=a(u.origin),m=n(u.origin??"value");if(u.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",T=u.inclusive?`${u.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let h=u.inclusive?"<=":"<",g=i(u.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${u.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${u.maximum.toString()}`}case"too_small":{let p=a(u.origin),m=n(u.origin??"value");if(u.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${p?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let b=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${b}`}if(u.origin==="array"||u.origin==="set"){let b=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let I=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${I}`}let T=u.inclusive?`${u.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${b} \u05DC\u05D4\u05DB\u05D9\u05DC ${T}`.trim()}let h=u.inclusive?">=":">",g=i(u.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${u.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${g} ${h}${u.minimum.toString()}`}case"invalid_format":{let p=u;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.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 ${p.pattern}`;let m=s[p.format],h=m?.label??p.format,b=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${h} \u05DC\u05D0 ${b}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${H(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function vO(){return{localeError:jre()}}var Ure=()=>{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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${Y(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.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 yO(){return{localeError:Ure()}}function bO(e,t,r){return Math.abs(e)===1?t:r}function Pc(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 Bre=()=>{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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=bO(s,a.unit.one,a.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 ${Pc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${c}`}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 ${Pc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=bO(s,a.unit.one,a.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 ${Pc(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${c}`}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 ${Pc(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.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 ${Pc(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 ${Pc(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function xO(){return{localeError:Bre()}}var Fre=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${Y(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.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 wO(){return{localeError:Fre()}}var Zre=()=>{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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${Y(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.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 _O(){return{localeError:Zre()}}var Vre=()=>{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"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${Y(n.values[0])}`:`Opzione non valida: atteso uno tra ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.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 kO(){return{localeError:Vre()}}var Gre=()=>{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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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: ${i}\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: ${Y(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 i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.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 SO(){return{localeError:Gre()}}var qre=()=>{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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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"} ${a.verb} ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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} ${a.verb} ${i}${n.minimum.toString()} ${a.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 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"-\u10D8\u10D7`:i.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 "${i.suffix}"-\u10D8\u10D7`:i.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 "${i.includes}"-\u10E1`:i.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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.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 IO(){return{localeError:qre()}}var Hre=()=>{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
102D2\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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i} \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.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"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.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,636 bytes, line 102
102case"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 Xg(){return{localeError:Hre()}}function TO(){return Xg()}var Wre=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${Y(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 i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),c=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${c} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.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 $O(){return{localeError:Wre()}}var Bp=e=>e.charAt(0).toUpperCase()+e.slice(1);function PO(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var Jre=()=>{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,i,a,s){let c=e[n]??null;return c===null?c:{unit:c.unit[i],verb:c.verb[s][a?"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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${Y(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${H(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,PO(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Bp(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Bp(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,PO(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Bp(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Bp(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.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 i=o[n.origin]??n.origin;return`${Bp(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function CO(){return{localeError:Jre()}}var Kre=()=>{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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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 ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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 ${i}${n.minimum.toString()} ${a.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 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.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
102041D\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 EO(){return{localeError:Kre()}}var Xre=()=>{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"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${Y(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.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 zO(){return{localeError:Xre()}}var Yre=()=>{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"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${Y(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${H(n.values,"|")}`;
vendor: 7,374 bytes, line 102
102case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.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 AO(){return{localeError:Yre()}}var Qre=()=>{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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${Y(n.values[0])}`:`Ugyldig valg: forventet en av ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.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 MO(){return{localeError:Qre()}}var ene=()=>{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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${Y(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.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 RO(){return{localeError:ene()}}var tne=()=>{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
102067E\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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i} \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.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 NO(){return{localeError:tne()}}var rne=()=>{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"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>
vendor: 4,459 bytes, line 102
102{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${Y(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.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 DO(){return{localeError:rne()}}var nne=()=>{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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${Y(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.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>
1021?"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 OO(){return{localeError:nne()}}function LO(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var one=()=>{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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),c=LO(s,a.unit.one,a.unit.few,a.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 ${i}${n.maximum.toString()} ${c}`}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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),c=LO(s,a.unit.one,a.unit.few,a.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 ${i}${n.minimum.toString()} ${c}`}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 ${i}${n.minimum.toString()}`}
vendor: 105,438 bytes, lines 102-104
102case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.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 jO(){return{localeError:one()}}var ine=()=>{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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${Y(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.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 UO(){return{localeError:ine()}}var ane=()=>{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"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${Y(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.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 BO(){return{localeError:ane()}}var sne=()=>{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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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"} ${i}${n.maximum.toString()} ${a.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"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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} ${i}${n.minimum.toString()} ${a.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} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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[i.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 FO(){return{localeError:sne()}}var lne=()=>{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"},o={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 i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i} \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 ${Y(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 i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.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${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.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 ZO(){return{localeError:lne()}}var cne=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${Y(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.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 VO(){return{localeError:cne()}}var une=()=>{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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\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"} ${a.verb} ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\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} ${a.verb} ${i}${n.minimum.toString()} ${a.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 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.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 Yg(){return{localeError:une()}}function GO(){return Yg()}var dne=()=>{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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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: ${i} \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: ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.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 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.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 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.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 qO(){return{localeError:dne()}}var pne=()=>{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"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${Y(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.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 HO(){return{localeError:pne()}}var mne=()=>{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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, 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 ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.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 WO(){return{localeError:mne()}}var fne=()=>{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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${Y(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.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 JO(){return{localeError:fne()}}var hne=()=>{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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${Y(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 i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.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 KO(){return{localeError:hne()}}var gne=()=>{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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=ee(n.input),s=o[a]??a;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 ${i}, \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 ${Y(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${H(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.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 XO(){return{localeError:gne()}}var YO,M6=Symbol("ZodOutput"),R6=Symbol("ZodInput"),Qg=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.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 o={...this.get(r)??{}};delete o.id;let n={...o,...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 ev(){return new Qg}(YO=globalThis).__zod_globalRegistry??(YO.__zod_globalRegistry=ev());var Pr=globalThis.__zod_globalRegistry;function N6(e,t){return new e({type:"string",...ae(t)})}function D6(e,t){return new e({type:"string",coerce:!0,...ae(t)})}function tv(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(t)})}function Zp(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(t)})}function rv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(t)})}function nv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(t)})}function ov(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(t)})}function iv(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(t)})}function Vp(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(t)})}function av(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(t)})}function sv(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(t)})}function lv(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(t)})}function cv(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(t)})}function uv(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(t)})}function dv(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(t)})}function pv(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(t)})}function mv(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(t)})}function fv(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(t)})}function O6(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...ae(t)})}function hv(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(t)})}function gv(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(t)})}function vv(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(t)})}function yv(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(t)})}function bv(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(t)})}function xv(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(t)})}var L6={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function j6(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(t)})}function U6(e,t){return new e({type:"string",format:"date",check:"string_format",...ae(t)})}function B6(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(t)})}function F6(e,t){return new e({type:"string",format:"duration",check:"string_format",...ae(t)})}function Z6(e,t){return new e({type:"number",checks:[],...ae(t)})}function V6(e,t){return new e({type:"number",coerce:!0,checks:[],...ae(t)})}function G6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ae(t)})}function q6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ae(t)})}function H6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ae(t)})}function W6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ae(t)})}function J6(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ae(t)})}function K6(e,t){return new e({type:"boolean",...ae(t)})}function X6(e,t){return new e({type:"boolean",coerce:!0,...ae(t)})}function Y6(e,t){return new e({type:"bigint",...ae(t)})}function Q6(e,t){return new e({type:"bigint",coerce:!0,...ae(t)})}function eS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ae(t)})}function tS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ae(t)})}function rS(e,t){return new e({type:"symbol",...ae(t)})}function nS(e,t){return new e({type:"undefined",...ae(t)})}function oS(e,t){return new e({type:"null",...ae(t)})}function iS(e){return new e({type:"any"})}function aS(e){return new e({type:"unknown"})}function sS(e,t){return new e({type:"never",...ae(t)})}function lS(e,t){return new e({type:"void",...ae(t)})}function cS(e,t){return new e({type:"date",...ae(t)})}function uS(e,t){return new e({type:"date",coerce:!0,...ae(t)})}function dS(e,t){return new e({type:"nan",...ae(t)})}function Uo(e,t){return new jg({check:"less_than",...ae(t),value:e,inclusive:!1})}function Cn(e,t){return new jg({check:"less_than",...ae(t),value:e,inclusive:!0})}function Bo(e,t){return new Ug({check:"greater_than",...ae(t),value:e,inclusive:!1})}function Hr(e,t){return new Ug({check:"greater_than",...ae(t),value:e,inclusive:!0})}function wv(e){return Bo(0,e)}function _v(e){return Uo(0,e)}function kv(e){return Cn(0,e)}function Sv(e){return Hr(0,e)}function Ma(e,t){return new ok({check:"multiple_of",...ae(t),value:e})}function Ra(e,t){return new sk({check:"max_size",...ae(t),maximum:e})}function Fo(e,t){return new lk({check:"min_size",...ae(t),minimum:e})}function Us(e,t){return new ck({check:"size_equals",...ae(t),size:e})}function Bs(e,t){return new uk({check:"max_length",...ae(t),maximum:e})}function Ti(e,t){return new dk({check:"min_length",...ae(t),minimum:e})}function Fs(e,t){return new pk({check:"length_equals",...ae(t),length:e})}function Cc(e,t){return new mk({check:"string_format",format:"regex",...ae(t),pattern:e})}function Ec(e){return new fk({check:"string_format",format:"lowercase",...ae(e)})}function zc(e){return new hk({check:"string_format",format:"uppercase",...ae(e)})}function Ac(e,t){return new gk({check:"string_format",format:"includes",...ae(t),includes:e})}function Mc(e,t){return new vk({check:"string_format",format:"starts_with",...ae(t),prefix:e})}function Rc(e,t){return new yk({check:"string_format",format:"ends_with",...ae(t),suffix:e})}function Iv(e,t,r){return new bk({check:"property",property:e,schema:t,...ae(r)})}function Nc(e,t){return new xk({check:"mime_type",mime:e,...ae(t)})}function vo(e){return new wk({check:"overwrite",tx:e})}function Dc(e){return vo(t=>t.normalize(e))}function Oc(){return vo(e=>e.trim())}function Lc(){return vo(e=>e.toLowerCase())}function jc(){return vo(e=>e.toUpperCase())}function Uc(){return vo(e=>b2(e))}function pS(e,t,r){return new e({type:"array",element:t,...ae(r)})}function yne(e,t,r){return new e({type:"union",options:t,...ae(r)})}function bne(e,t,r){return new e({type:"union",options:t,inclusive:!1,...ae(r)})}function xne(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...ae(o)})}function wne(e,t,r){return new e({type:"intersection",left:t,right:r})}function _ne(e,t,r,o){let n=r instanceof Be,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...ae(i)})}function kne(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...ae(o)})}function Sne(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...ae(o)})}function Ine(e,t,r){return new e({type:"set",valueType:t,...ae(r)})}function Tne(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...ae(r)})}function $ne(e,t,r){return new e({type:"enum",entries:t,...ae(r)})}function Pne(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...ae(r)})}function mS(e,t){return new e({type:"file",...ae(t)})}function Cne(e,t){return new e({type:"transform",transform:t})}function Ene(e,t){return new e({type:"optional",innerType:t})}function zne(e,t){return new e({type:"nullable",innerType:t})}function Ane(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():w2(r)}})}function Mne(e,t,r){return new e({type:"nonoptional",innerType:t,...ae(r)})}function Rne(e,t){return new e({type:"success",innerType:t})}function Nne(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function Dne(e,t,r){return new e({type:"pipe",in:t,out:r})}function One(e,t){return new e({type:"readonly",innerType:t})}function Lne(e,t,r){return new e({type:"template_literal",parts:t,...ae(r)})}function jne(e,t){return new e({type:"lazy",getter:t})}function Une(e,t){return new e({type:"promise",innerType:t})}function fS(e,t,r){let o=ae(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function hS(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ae(r)})}function gS(e){let t=QO(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(_c(o,r.value,t._zod.def));else{let n=o;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(_c(n))}},e(r.value,r)));return t}function QO(e,t){let r=new Et({check:"custom",...ae(t)});return r._zod.check=e,r}function vS(e){let t=new Et({check:"describe"});return t._zod.onattach=[r=>{let o=Pr.get(r)??{};Pr.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function yS(e){let t=new Et({check:"meta"});return t._zod.onattach=[r=>{let o=Pr.get(r)??{};Pr.add(r,{...o,...e})}],t._zod.check=()=>{},t}function bS(e,t){let r=ae(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),s=e.Codec??Up,c=e.Boolean??Lp,u=e.String??js,p=new u({type:"string",error:r.error}),m=new c({type:"boolean",error:r.error}),h=new s({type:"pipe",in:p,out:m,transform:((g,b)=>{let T=g;return r.case!=="sensitive"&&(T=T.toLowerCase()),i.has(T)?!0:a.has(T)?!1:(b.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:b.value,inst:h,continue:!1}),{})}),reverseTransform:((g,b)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return h}function Bc(e,t,r,o={}){let n=ae(o),i={...ae(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function Na(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??Pr,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 xt(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let h=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,h,p)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),xt(m,t,p),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Wr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Da(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let c=o.get(s);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,h=e.external.uri??(b=>b);if(m)return{ref:h(m)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${h("__shared")}#/${s}/${g}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:u+p}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:c,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let p=s.schema;for(let m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root> 103 104Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function Oa(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let s=e.seen.get(a);if(s.ref===null)return;let c=s.def??s.schema,u={...c},p=s.ref;if(s.ref=null,p){o(p);let h=e.seen.get(p),g=h.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(g)):Object.assign(c,g),Object.assign(c,u),a._zod.parent===p)for(let T in c)T==="$ref"||T==="allOf"||T in u||delete c[T];if(g.$ref&&h.def)for(let T in c)T==="$ref"||T==="allOf"||T in h.def&&JSON.stringify(c[T])===JSON.stringify(h.def[T])&&delete c[T]}let m=a._zod.parent;if(m&&m!==p){o(m);let h=e.seen.get(m);if(h?.schema.$ref&&(c.$ref=h.schema.$ref,h.def))for(let g in c)g==="$ref"||g==="allOf"||g in h.def&&JSON.stringify(c[g])===JSON.stringify(h.def[g])&&delete c[g]}e.override({zodSchema:a,jsonSchema:c,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[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 a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Fc(t,"input",e.processors),output:Fc(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Wr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return Wr(o.element,r);if(o.type==="set")return Wr(o.valueType,r);if(o.type==="lazy")return Wr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return Wr(o.innerType,r);if(o.type==="intersection")return Wr(o.left,r)||Wr(o.right,r);if(o.type==="record"||o.type==="map")return Wr(o.keyType,r)||Wr(o.valueType,r);if(o.type==="pipe")return Wr(o.in,r)||Wr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(Wr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(Wr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(Wr(n,r))return!0;return!!(o.rest&&Wr(o.rest,r))}return!1}var xS=(e,t={})=>r=>{let o=Na({...r,processors:t});return xt(e,o),Da(o,e),Oa(o,e)},Fc=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=Na({...n??{},target:i,io:t,processors:r});return xt(e,a),Da(a,e),Oa(a,e)};var Bne={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},wS=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=Bne[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),c&&c.size>0){let p=[...c];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},_S=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:p}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof i=="number"&&(n.minimum=i,typeof p=="number"&&t.target!=="draft-04"&&(p>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof a=="number"&&(n.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof c=="number"&&(n.multipleOf=c)},kS=(e,t,r,o)=>{r.type="boolean"},SS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},IS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},TS=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},$S=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},PS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},CS=(e,t,r,o)=>{r.not={}},ES=(e,t,r,o)=>{},zS=(e,t,r,o)=>{},AS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},MS=(e,t,r,o)=>{let n=e._zod.def,i=$p(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},RS=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},NS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},DS=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},OS=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:c}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),c?c.length===1?(i.contentMediaType=c[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(n,i)},LS=(e,t,r,o)=>{r.type="boolean"},jS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},US=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},BS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},FS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ZS=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},VS=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=xt(i.element,t,{...o,path:[...o.path,"items"]})},GS=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=xt(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),c=new Set([...s].filter(u=>{let p=i.shape[u]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));c.size>0&&(n.required=Array.from(c)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=xt(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},$v=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,c)=>xt(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",c]}));i?r.oneOf=a:r.anyOf=a},qS=(e,t,r,o)=>{let n=e._zod.def,i=xt(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=xt(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,c=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=c},HS=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((h,g)=>xt(h,t,{...o,path:[...o.path,a,g]})),u=i.rest?xt(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=c,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:c},u&&n.items.anyOf.push(u),n.minItems=c.length,u||(n.maxItems=c.length)):(n.items=c,u&&(n.additionalItems=u));let{minimum:p,maximum:m}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof m=="number"&&(n.maxItems=m)},WS=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,c=a._zod.bag?.patterns;if(i.mode==="loose"&&c&&c.size>0){let p=xt(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let m of c)n.patternProperties[m.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=xt(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=xt(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let p=[...u].filter(m=>typeof m=="string"||typeof m=="number");p.length>0&&(n.required=p)}},JS=(e,t,r,o)=>{let n=e._zod.def,i=xt(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},KS=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},XS=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},YS=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},QS=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},e5=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;xt(i,t,o);let a=t.seen.get(e);a.ref=i},t5=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},r5=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Pv=(e,t,r,o)=>{let n=e._zod.def;xt(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},n5=(e,t,r,o)=>{let n=e._zod.innerType;xt(n,t,o);let i=t.seen.get(e);i.ref=n},Tv={string:wS,number:_S,boolean:kS,bigint:SS,symbol:IS,null:TS,undefined:$S,void:PS,never:CS,any:ES,unknown:zS,date:AS,enum:MS,literal:RS,nan:NS,template_literal:DS,file:OS,success:LS,custom:jS,function:US,transform:BS,map:FS,set:ZS,array:VS,object:GS,union:$v,intersection:qS,tuple:HS,record:WS,nullable:JS,nonoptional:KS,default:XS,prefault:YS,catch:QS,pipe:e5,readonly:t5,promise:r5,optional:Pv,lazy:n5};function Cv(e,t){if("_idmap"in e){let o=e,n=Na({...t,processors:Tv}),i={};for(let c of o._idmap.entries()){let[u,p]=c;xt(p,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let c of o._idmap.entries()){let[u,p]=c;Da(n,p),a[u]=Oa(n,p)}if(Object.keys(i).length>0){let c=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:i}}return{schemas:a}}let r=Na({...t,processors:Tv});return xt(e,r),Da(r,e),Oa(r,e)}var Ev=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=Na({processors:Tv,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 xt(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)),Da(this.ctx,t);let o=Oa(this.ctx,t),{"~standard":n,...i}=o;return i}};var eL={};var Gp={};rn(Gp,{ZodAny:()=>$5,ZodArray:()=>z5,ZodBase64:()=>Xv,ZodBase64URL:()=>Yv,ZodBigInt:()=>Jc,ZodBigIntFormat:()=>ty,ZodBoolean:()=>Wc,ZodCIDRv4:()=>Jv,ZodCIDRv6:()=>Kv,ZodCUID:()=>Fv,ZodCUID2:()=>Zv,ZodCatch:()=>Q5,ZodCodec:()=>cy,ZodCustom:()=>rm,ZodCustomStringFormat:()=>qc,ZodDate:()=>Xp,ZodDefault:()=>H5,ZodDiscriminatedUnion:()=>M5,ZodE164:()=>Qv,ZodEmail:()=>jv,ZodEmoji:()=>Uv,ZodEnum:()=>Vc,ZodExactOptional:()=>V5,ZodFile:()=>F5,ZodFunction:()=>l3,ZodGUID:()=>qp,ZodIPv4:()=>Hv,ZodIPv6:()=>Wv,ZodIntersection:()=>R5,ZodJWT:()=>ey,ZodKSUID:()=>qv,ZodLazy:()=>i3,ZodLiteral:()=>B5,ZodMAC:()=>x5,ZodMap:()=>j5,ZodNaN:()=>t3,ZodNanoID:()=>Bv,ZodNever:()=>C5,ZodNonOptional:()=>sy,ZodNull:()=>I5,ZodNullable:()=>q5,ZodNumber:()=>Hc,ZodNumberFormat:()=>Vs,ZodObject:()=>Qp,ZodOptional:()=>ay,ZodPipe:()=>ly,ZodPrefault:()=>J5,ZodPromise:()=>s3,ZodReadonly:()=>r3,ZodRecord:()=>tm,ZodSet:()=>U5,ZodString:()=>Gc,ZodStringFormat:()=>$t,ZodSuccess:()=>Y5,ZodSymbol:()=>k5,ZodTemplateLiteral:()=>o3,ZodTransform:()=>Z5,ZodTuple:()=>D5,ZodType:()=>Xe,ZodULID:()=>Vv,ZodURL:()=>Kp,ZodUUID:()=>Zo,ZodUndefined:()=>S5,ZodUnion:()=>em,ZodUnknown:()=>P5,ZodVoid:()=>E5,ZodXID:()=>Gv,ZodXor:()=>A5,_ZodString:()=>Lv,_default:()=>W5,_function:()=>sj,any:()=>jL,array:()=>Yp,base64:()=>_L,base64url:()=>kL,bigint:()=>RL,boolean:()=>_5,catch:()=>e3,check:()=>lj,cidrv4:()=>xL,cidrv6:()=>wL,codec:()=>oj,cuid:()=>pL,cuid2:()=>mL,custom:()=>cj,date:()=>BL,describe:()=>uj,discriminatedUnion:()=>HL,e164:()=>SL,email:()=>rL,emoji:()=>uL,enum:()=>oy,exactOptional:()=>G5,file:()=>ej,float32:()=>EL,float64:()=>zL,function:()=>sj,guid:()=>nL,hash:()=>CL,hex:()=>PL,hostname:()=>$L,httpUrl:()=>cL,instanceof:()=>pj,int:()=>Ov,int32:()=>AL,int64:()=>NL,intersection:()=>N5,ipv4:()=>vL,ipv6:()=>bL,json:()=>fj,jwt:()=>IL,keyof:()=>FL,ksuid:()=>gL,lazy:()=>a3,literal:()=>QL,looseObject:()=>GL,looseRecord:()=>JL,mac:()=>yL,map:()=>KL,meta:()=>dj,nan:()=>nj,nanoid:()=>dL,nativeEnum:()=>YL,never:()=>ry,nonoptional:()=>X5,null:()=>T5,nullable:()=>Wp,nullish:()=>tj,number:()=>w5,object:()=>ZL,optional:()=>Hp,partialRecord:()=>WL,pipe:()=>Jp,prefault:()=>K5,preprocess:()=>hj,promise:()=>aj,readonly:()=>n3,record:()=>L5,refine:()=>c3,set:()=>XL,strictObject:()=>VL,string:()=>Dv,stringFormat:()=>TL,stringbool:()=>mj,success:()=>rj,superRefine:()=>u3,symbol:()=>OL,templateLiteral:()=>ij,transform:()=>iy,tuple:()=>O5,uint32:()=>ML,uint64:()=>DL,ulid:()=>fL,undefined:()=>LL,union:()=>ny,unknown:()=>Zs,url:()=>lL,uuid:()=>oL,uuidv4:()=>iL,uuidv6:()=>aL,uuidv7:()=>sL,void:()=>UL,xid:()=>hL,xor:()=>qL});var zv={};rn(zv,{endsWith:()=>Rc,gt:()=>Bo,gte:()=>Hr,includes:()=>Ac,length:()=>Fs,lowercase:()=>Ec,lt:()=>Uo,lte:()=>Cn,maxLength:()=>Bs,maxSize:()=>Ra,mime:()=>Nc,minLength:()=>Ti,minSize:()=>Fo,multipleOf:()=>Ma,negative:()=>_v,nonnegative:()=>Sv,nonpositive:()=>kv,normalize:()=>Dc,overwrite:()=>vo,positive:()=>wv,property:()=>Iv,regex:()=>Cc,size:()=>Us,slugify:()=>Uc,startsWith:()=>Mc,toLowerCase:()=>Lc,toUpperCase:()=>jc,trim:()=>Oc,uppercase:()=>zc});var Zc={};rn(Zc,{ZodISODate:()=>Mv,ZodISODateTime:()=>Av,ZodISODuration:()=>Nv,ZodISOTime:()=>Rv,date:()=>i5,datetime:()=>o5,duration:()=>s5,time:()=>a5});var Av=j("ZodISODateTime",(e,t)=>{Nk.init(e,t),$t.init(e,t)});function o5(e){return j6(Av,e)}var Mv=j("ZodISODate",(e,t)=>{Dk.init(e,t),$t.init(e,t)});function i5(e){return U6(Mv,e)}var Rv=j("ZodISOTime",(e,t)=>{Ok.init(e,t),$t.init(e,t)});function a5(e){return B6(Rv,e)}var Nv=j("ZodISODuration",(e,t)=>{Lk.init(e,t),$t.init(e,t)});function s5(e){return F6(Nv,e)}var tL=(e,t)=>{Ap.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Rp(e,r)},flatten:{value:r=>Mp(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,xc,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,xc,2)}},isEmpty:{get(){return e.issues.length===0}}})},Zne=j("ZodError",tL),pn=j("ZodError",tL,{Parent:Error});var l5=kc(pn),c5=Sc(pn),u5=Ic(pn),d5=Tc(pn),p5=Cg(pn),m5=Eg(pn),f5=zg(pn),h5=Ag(pn),g5=Mg(pn),v5=Rg(pn),y5=Ng(pn),b5=Dg(pn);var Xe=j("ZodType",(e,t)=>(Be.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Fc(e,"input"),output:Fc(e,"output")}}),e.toJSONSchema=xS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(te.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>qr(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>l5(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>u5(e,r,o),e.parseAsync=async(r,o)=>c5(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>d5(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>p5(e,r,o),e.decode=(r,o)=>m5(e,r,o),e.encodeAsync=async(r,o)=>f5(e,r,o),e.decodeAsync=async(r,o)=>h5(e,r,o),e.safeEncode=(r,o)=>g5(e,r,o),e.safeDecode=(r,o)=>v5(e,r,o),e.safeEncodeAsync=async(r,o)=>y5(e,r,o),e.safeDecodeAsync=async(r,o)=>b5(e,r,o),e.refine=(r,o)=>e.check(c3(r,o)),e.superRefine=r=>e.check(u3(r)),e.overwrite=r=>e.check(vo(r)),e.optional=()=>Hp(e),e.exactOptional=()=>G5(e),e.nullable=()=>Wp(e),e.nullish=()=>Hp(Wp(e)),e.nonoptional=r=>X5(e,r),e.array=()=>Yp(e),e.or=r=>ny([e,r]),e.and=r=>N5(e,r),e.transform=r=>Jp(e,iy(r)),e.default=r=>W5(e,r),e.prefault=r=>K5(e,r),e.catch=r=>e3(e,r),e.pipe=r=>Jp(e,r),e.readonly=()=>n3(e),e.describe=r=>{let o=e.clone();return Pr.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Pr.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Pr.get(e);let o=e.clone();return Pr.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),Lv=j("_ZodString",(e,t)=>{js.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>wS(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Cc(...o)),e.includes=(...o)=>e.check(Ac(...o)),e.startsWith=(...o)=>e.check(Mc(...o)),e.endsWith=(...o)=>e.check(Rc(...o)),e.min=(...o)=>e.check(Ti(...o)),e.max=(...o)=>e.check(Bs(...o)),e.length=(...o)=>e.check(Fs(...o)),e.nonempty=(...o)=>e.check(Ti(1,...o)),e.lowercase=o=>e.check(Ec(o)),e.uppercase=o=>e.check(zc(o)),e.trim=()=>e.check(Oc()),e.normalize=(...o)=>e.check(Dc(...o)),e.toLowerCase=()=>e.check(Lc()),e.toUpperCase=()=>e.check(jc()),e.slugify=()=>e.check(Uc())}),Gc=j("ZodString",(e,t)=>{js.init(e,t),Lv.init(e,t),e.email=r=>e.check(tv(jv,r)),e.url=r=>e.check(Vp(Kp,r)),e.jwt=r=>e.check(xv(ey,r)),e.emoji=r=>e.check(av(Uv,r)),e.guid=r=>e.check(Zp(qp,r)),e.uuid=r=>e.check(rv(Zo,r)),e.uuidv4=r=>e.check(nv(Zo,r)),e.uuidv6=r=>e.check(ov(Zo,r)),e.uuidv7=r=>e.check(iv(Zo,r)),e.nanoid=r=>e.check(sv(Bv,r)),e.guid=r=>e.check(Zp(qp,r)),e.cuid=r=>e.check(lv(Fv,r)),e.cuid2=r=>e.check(cv(Zv,r)),e.ulid=r=>e.check(uv(Vv,r)),e.base64=r=>e.check(vv(Xv,r)),e.base64url=r=>e.check(yv(Yv,r)),e.xid=r=>e.check(dv(Gv,r)),e.ksuid=r=>e.check(pv(qv,r)),e.ipv4=r=>e.check(mv(Hv,r)),e.ipv6=r=>e.check(fv(Wv,r)),e.cidrv4=r=>e.check(hv(Jv,r)),e.cidrv6=r=>e.check(gv(Kv,r)),e.e164=r=>e.check(bv(Qv,r)),e.datetime=r=>e.check(o5(r)),e.date=r=>e.check(i5(r)),e.time=r=>e.check(a5(r)),e.duration=r=>e.check(s5(r))});function Dv(e){return N6(Gc,e)}var $t=j("ZodStringFormat",(e,t)=>{Tt.init(e,t),Lv.init(e,t)}),jv=j("ZodEmail",(e,t)=>{Tk.init(e,t),$t.init(e,t)});function rL(e){return tv(jv,e)}var qp=j("ZodGUID",(e,t)=>{Sk.init(e,t),$t.init(e,t)});function nL(e){return Zp(qp,e)}var Zo=j("ZodUUID",(e,t)=>{Ik.init(e,t),$t.init(e,t)});function oL(e){return rv(Zo,e)}function iL(e){return nv(Zo,e)}function aL(e){return ov(Zo,e)}function sL(e){return iv(Zo,e)}var Kp=j("ZodURL",(e,t)=>{$k.init(e,t),$t.init(e,t)});function lL(e){return Vp(Kp,e)}function cL(e){return Vp(Kp,{protocol:/^https?$/,hostname:Wn.domain,...te.normalizeParams(e)})}var Uv=j("ZodEmoji",(e,t)=>{Pk.init(e,t),$t.init(e,t)});function uL(e){return av(Uv,e)}var Bv=j("ZodNanoID",(e,t)=>{Ck.init(e,t),$t.init(e,t)});function dL(e){return sv(Bv,e)}var Fv=j("ZodCUID",(e,t)=>{Ek.init(e,t),$t.init(e,t)});function pL(e){return lv(Fv,e)}var Zv=j("ZodCUID2",(e,t)=>{zk.init(e,t),$t.init(e,t)});function mL(e){return cv(Zv,e)}var Vv=j("ZodULID",(e,t)=>{Ak.init(e,t),$t.init(e,t)});function fL(e){return uv(Vv,e)}var Gv=j("ZodXID",(e,t)=>{Mk.init(e,t),$t.init(e,t)});function hL(e){return dv(Gv,e)}var qv=j("ZodKSUID",(e,t)=>{Rk.init(e,t),$t.init(e,t)});function gL(e){return pv(qv,e)}var Hv=j("ZodIPv4",(e,t)=>{jk.init(e,t),$t.init(e,t)});function vL(e){return mv(Hv,e)}var x5=j("ZodMAC",(e,t)=>{Bk.init(e,t),$t.init(e,t)});function yL(e){return O6(x5,e)}var Wv=j("ZodIPv6",(e,t)=>{Uk.init(e,t),$t.init(e,t)});function bL(e){return fv(Wv,e)}var Jv=j("ZodCIDRv4",(e,t)=>{Fk.init(e,t),$t.init(e,t)});function xL(e){return hv(Jv,e)}var Kv=j("ZodCIDRv6",(e,t)=>{Zk.init(e,t),$t.init(e,t)});function wL(e){return gv(Kv,e)}var Xv=j("ZodBase64",(e,t)=>{Gk.init(e,t),$t.init(e,t)});function _L(e){return vv(Xv,e)}var Yv=j("ZodBase64URL",(e,t)=>{qk.init(e,t),$t.init(e,t)});function kL(e){return yv(Yv,e)}var Qv=j("ZodE164",(e,t)=>{Hk.init(e,t),$t.init(e,t)});function SL(e){return bv(Qv,e)}var ey=j("ZodJWT",(e,t)=>{Wk.init(e,t),$t.init(e,t)});function IL(e){return xv(ey,e)}var qc=j("ZodCustomStringFormat",(e,t)=>{Jk.init(e,t),$t.init(e,t)});function TL(e,t,r={}){return Bc(qc,e,t,r)}function $L(e){return Bc(qc,"hostname",Wn.hostname,e)}function PL(e){return Bc(qc,"hex",Wn.hex,e)}function CL(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Wn[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Bc(qc,o,n,t)}var Hc=j("ZodNumber",(e,t)=>{qg.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>_S(e,o,n,i),e.gt=(o,n)=>e.check(Bo(o,n)),e.gte=(o,n)=>e.check(Hr(o,n)),e.min=(o,n)=>e.check(Hr(o,n)),e.lt=(o,n)=>e.check(Uo(o,n)),e.lte=(o,n)=>e.check(Cn(o,n)),e.max=(o,n)=>e.check(Cn(o,n)),e.int=o=>e.check(Ov(o)),e.safe=o=>e.check(Ov(o)),e.positive=o=>e.check(Bo(0,o)),e.nonnegative=o=>e.check(Hr(0,o)),e.negative=o=>e.check(Uo(0,o)),e.nonpositive=o=>e.check(Cn(0,o)),e.multipleOf=(o,n)=>e.check(Ma(o,n)),e.step=(o,n)=>e.check(Ma(o,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 w5(e){return Z6(Hc,e)}var Vs=j("ZodNumberFormat",(e,t)=>{Kk.init(e,t),Hc.init(e,t)});function Ov(e){return G6(Vs,e)}function EL(e){return q6(Vs,e)}function zL(e){return H6(Vs,e)}function AL(e){return W6(Vs,e)}function ML(e){return J6(Vs,e)}var Wc=j("ZodBoolean",(e,t)=>{Lp.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>kS(e,r,o,n)});function _5(e){return K6(Wc,e)}var Jc=j("ZodBigInt",(e,t)=>{Hg.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>SS(e,o,n,i),e.gte=(o,n)=>e.check(Hr(o,n)),e.min=(o,n)=>e.check(Hr(o,n)),e.gt=(o,n)=>e.check(Bo(o,n)),e.gte=(o,n)=>e.check(Hr(o,n)),e.min=(o,n)=>e.check(Hr(o,n)),e.lt=(o,n)=>e.check(Uo(o,n)),e.lte=(o,n)=>e.check(Cn(o,n)),e.max=(o,n)=>e.check(Cn(o,n)),e.positive=o=>e.check(Bo(BigInt(0),o)),e.negative=o=>e.check(Uo(BigInt(0),o)),e.nonpositive=o=>e.check(Cn(BigInt(0),o)),e.nonnegative=o=>e.check(Hr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(Ma(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function RL(e){return Y6(Jc,e)}var ty=j("ZodBigIntFormat",(e,t)=>{Xk.init(e,t),Jc.init(e,t)});function NL(e){return eS(ty,e)}function DL(e){return tS(ty,e)}var k5=j("ZodSymbol",(e,t)=>{Yk.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>IS(e,r,o,n)});function OL(e){return rS(k5,e)}var S5=j("ZodUndefined",(e,t)=>{Qk.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$S(e,r,o,n)});function LL(e){return nS(S5,e)}var I5=j("ZodNull",(e,t)=>{e6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>TS(e,r,o,n)});function T5(e){return oS(I5,e)}var $5=j("ZodAny",(e,t)=>{t6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ES(e,r,o,n)});function jL(){return iS($5)}var P5=j("ZodUnknown",(e,t)=>{r6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zS(e,r,o,n)});function Zs(){return aS(P5)}var C5=j("ZodNever",(e,t)=>{n6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>CS(e,r,o,n)});function ry(e){return sS(C5,e)}var E5=j("ZodVoid",(e,t)=>{o6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>PS(e,r,o,n)});function UL(e){return lS(E5,e)}var Xp=j("ZodDate",(e,t)=>{i6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>AS(e,o,n,i),e.min=(o,n)=>e.check(Hr(o,n)),e.max=(o,n)=>e.check(Cn(o,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 BL(e){return cS(Xp,e)}var z5=j("ZodArray",(e,t)=>{a6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>VS(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(Ti(r,o)),e.nonempty=r=>e.check(Ti(1,r)),e.max=(r,o)=>e.check(Bs(r,o)),e.length=(r,o)=>e.check(Fs(r,o)),e.unwrap=()=>e.element});function Yp(e,t){return pS(z5,e,t)}function FL(e){let t=e._zod.def.shape;return oy(Object.keys(t))}var Qp=j("ZodObject",(e,t)=>{s6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>GS(e,r,o,n),te.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>oy(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Zs()}),e.loose=()=>e.clone({...e._zod.def,catchall:Zs()}),e.strict=()=>e.clone({...e._zod.def,catchall:ry()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>te.extend(e,r),e.safeExtend=r=>te.safeExtend(e,r),e.merge=r=>te.merge(e,r),e.pick=r=>te.pick(e,r),e.omit=r=>te.omit(e,r),e.partial=(...r)=>te.partial(ay,e,r[0]),e.required=(...r)=>te.required(sy,e,r[0])});function ZL(e,t){let r={type:"object",shape:e??{},...te.normalizeParams(t)};return new Qp(r)}function VL(e,t){return new Qp({type:"object",shape:e,catchall:ry(),...te.normalizeParams(t)})}function GL(e,t){return new Qp({type:"object",shape:e,catchall:Zs(),...te.normalizeParams(t)})}var em=j("ZodUnion",(e,t)=>{jp.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$v(e,r,o,n),e.options=t.options});function ny(e,t){return new em({type:"union",options:e,...te.normalizeParams(t)})}var A5=j("ZodXor",(e,t)=>{em.init(e,t),l6.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$v(e,r,o,n),e.options=t.options});function qL(e,t){return new A5({type:"union",options:e,inclusive:!1,...te.normalizeParams(t)})}var M5=j("ZodDiscriminatedUnion",(e,t)=>{em.init(e,t),c6.init(e,t)});function HL(e,t,r){return new M5({type:"union",options:t,discriminator:e,...te.normalizeParams(r)})}var R5=j("ZodIntersection",(e,t)=>{u6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qS(e,r,o,n)});function N5(e,t){return new R5({type:"intersection",left:e,right:t})}var D5=j("ZodTuple",(e,t)=>{Wg.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>HS(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function O5(e,t,r){let o=t instanceof Be,n=o?r:t,i=o?t:null;return new D5({type:"tuple",items:e,rest:i,...te.normalizeParams(n)})}var tm=j("ZodRecord",(e,t)=>{d6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>WS(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function L5(e,t,r){return new tm({type:"record",keyType:e,valueType:t,...te.normalizeParams(r)})}function WL(e,t,r){let o=qr(e);return o._zod.values=void 0,new tm({type:"record",keyType:o,valueType:t,...te.normalizeParams(r)})}function JL(e,t,r){return new tm({type:"record",keyType:e,valueType:t,mode:"loose",...te.normalizeParams(r)})}var j5=j("ZodMap",(e,t)=>{p6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>FS(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Fo(...r)),e.nonempty=r=>e.check(Fo(1,r)),e.max=(...r)=>e.check(Ra(...r)),e.size=(...r)=>e.check(Us(...r))});function KL(e,t,r){return new j5({type:"map",keyType:e,valueType:t,...te.normalizeParams(r)})}var U5=j("ZodSet",(e,t)=>{m6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ZS(e,r,o,n),e.min=(...r)=>e.check(Fo(...r)),e.nonempty=r=>e.check(Fo(1,r)),e.max=(...r)=>e.check(Ra(...r)),e.size=(...r)=>e.check(Us(...r))});function XL(e,t){return new U5({type:"set",valueType:e,...te.normalizeParams(t)})}var Vc=j("ZodEnum",(e,t)=>{f6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(o,n,i)=>MS(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Vc({...t,checks:[],...te.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new Vc({...t,checks:[],...te.normalizeParams(n),entries:i})}});function oy(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Vc({type:"enum",entries:r,...te.normalizeParams(t)})}function YL(e,t){return new Vc({type:"enum",entries:e,...te.normalizeParams(t)})}var B5=j("ZodLiteral",(e,t)=>{h6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>RS(e,r,o,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 QL(e,t){return new B5({type:"literal",values:Array.isArray(e)?e:[e],...te.normalizeParams(t)})}var F5=j("ZodFile",(e,t)=>{g6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>OS(e,r,o,n),e.min=(r,o)=>e.check(Fo(r,o)),e.max=(r,o)=>e.check(Ra(r,o)),e.mime=(r,o)=>e.check(Nc(Array.isArray(r)?r:[r],o))});function ej(e){return mS(F5,e)}var Z5=j("ZodTransform",(e,t)=>{v6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>BS(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Pa(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(te.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(te.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});function iy(e){return new Z5({type:"transform",transform:e})}var ay=j("ZodOptional",(e,t)=>{Jg.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Hp(e){return new ay({type:"optional",innerType:e})}var V5=j("ZodExactOptional",(e,t)=>{y6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function G5(e){return new V5({type:"optional",innerType:e})}var q5=j("ZodNullable",(e,t)=>{b6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>JS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Wp(e){return new q5({type:"nullable",innerType:e})}function tj(e){return Hp(Wp(e))}var H5=j("ZodDefault",(e,t)=>{x6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>XS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W5(e,t){return new H5({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():te.shallowClone(t)}})}var J5=j("ZodPrefault",(e,t)=>{w6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>YS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function K5(e,t){return new J5({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():te.shallowClone(t)}})}var sy=j("ZodNonOptional",(e,t)=>{_6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>KS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function X5(e,t){return new sy({type:"nonoptional",innerType:e,...te.normalizeParams(t)})}var Y5=j("ZodSuccess",(e,t)=>{k6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>LS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function rj(e){return new Y5({type:"success",innerType:e})}var Q5=j("ZodCatch",(e,t)=>{S6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>QS(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function e3(e,t){return new Q5({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var t3=j("ZodNaN",(e,t)=>{I6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>NS(e,r,o,n)});function nj(e){return dS(t3,e)}var ly=j("ZodPipe",(e,t)=>{T6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>e5(e,r,o,n),e.in=t.in,e.out=t.out});function Jp(e,t){return new ly({type:"pipe",in:e,out:t})}var cy=j("ZodCodec",(e,t)=>{ly.init(e,t),Up.init(e,t)});function oj(e,t,r){return new cy({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}var r3=j("ZodReadonly",(e,t)=>{$6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>t5(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function n3(e){return new r3({type:"readonly",innerType:e})}var o3=j("ZodTemplateLiteral",(e,t)=>{P6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>DS(e,r,o,n)});function ij(e,t){return new o3({type:"template_literal",parts:e,...te.normalizeParams(t)})}var i3=j("ZodLazy",(e,t)=>{z6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>n5(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function a3(e){return new i3({type:"lazy",getter:e})}var s3=j("ZodPromise",(e,t)=>{E6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>r5(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function aj(e){return new s3({type:"promise",innerType:e})}var l3=j("ZodFunction",(e,t)=>{C6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>US(e,r,o,n)});function sj(e){return new l3({type:"function",input:Array.isArray(e?.input)?O5(e?.input):e?.input??Yp(Zs()),output:e?.output??Zs()})}var rm=j("ZodCustom",(e,t)=>{A6.init(e,t),Xe.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jS(e,r,o,n)});function lj(e){let t=new Et({check:"custom"});return t._zod.check=e,t}function cj(e,t){return fS(rm,e??(()=>!0),t)}function c3(e,t={}){return hS(rm,e,t)}function u3(e){return gS(e)}var uj=vS,dj=yS;function pj(e,t={}){let r=new rm({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...te.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var mj=(...e)=>bS({Codec:cy,Boolean:Wc,String:Gc},...e);function fj(e){let t=a3(()=>ny([Dv(e),w5(),_5(),T5(),Yp(t),L5(Dv(),t)]));return t}function hj(e,t){return Jp(iy(e),t)}var Gne={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 qne(e){Yt({customError:e})}function Hne(){return Yt().customError}var d3;d3||(d3={});var ge={...Gp,...zv,iso:Zc},Wne=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 Jne(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 Kne(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 o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){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 gj(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ge.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 ge.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=Kne(n,t),a=Rr(i,t);return t.refs.set(n,a),t.processing.delete(n),a}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 ge.null();if(n.length===0)return ge.never();if(n.length===1)return ge.literal(n[0]);if(n.every(a=>typeof a=="string"))return ge.enum(n);let i=n.map(a=>ge.literal(a));return i.length<2?i[0]:ge.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return ge.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return gj(a,t)});return n.length===0?ge.never():n.length===1?n[0]:ge.union(n)}if(!r)return ge.any();let o;switch(r){case"string":{let n=ge.string();if(e.format){let i=e.format;i==="email"?n=n.check(ge.email()):i==="uri"||i==="uri-reference"?n=n.check(ge.url()):i==="uuid"||i==="guid"?n=n.check(ge.uuid()):i==="date-time"?n=n.check(ge.iso.datetime()):i==="date"?n=n.check(ge.iso.date()):i==="time"?n=n.check(ge.iso.time()):i==="duration"?n=n.check(ge.iso.duration()):i==="ipv4"?n=n.check(ge.ipv4()):i==="ipv6"?n=n.check(ge.ipv6()):i==="mac"?n=n.check(ge.mac()):i==="cidr"?n=n.check(ge.cidrv4()):i==="cidr-v6"?n=n.check(ge.cidrv6()):i==="base64"?n=n.check(ge.base64()):i==="base64url"?n=n.check(ge.base64url()):i==="e164"?n=n.check(ge.e164()):i==="jwt"?n=n.check(ge.jwt()):i==="emoji"?n=n.check(ge.emoji()):i==="nanoid"?n=n.check(ge.nanoid()):i==="cuid"?n=n.check(ge.cuid()):i==="cuid2"?n=n.check(ge.cuid2()):i==="ulid"?n=n.check(ge.ulid()):i==="xid"?n=n.check(ge.xid()):i==="ksuid"&&(n=n.check(ge.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))),o=n;break}case"number":case"integer":{let n=r==="integer"?ge.number().int():ge.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)),o=n;break}case"boolean":{o=ge.boolean();break}case"null":{o=ge.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(i)){let p=Rr(u,t);n[c]=a.has(c)?p:p.optional()}if(e.propertyNames){let c=Rr(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Rr(e.additionalProperties,t):ge.any();if(Object.keys(n).length===0){o=ge.record(c,u);break}let p=ge.object(n).passthrough(),m=ge.looseRecord(c,u);o=ge.intersection(p,m);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),p=[];for(let h of u){let g=Rr(c[h],t),b=ge.string().regex(new RegExp(h));p.push(ge.looseRecord(b,g))}let m=[];
104if(Object.keys(n).length>0&&m.push(ge.object(n).passthrough()),m.push(...p),m.length===0)o=ge.object({}).passthrough();else if(m.length===1)o=m[0];else{let h=ge.intersection(m[0],m[1]);for(let g=2;g<m.length;g++)h=ge.intersection(h,m[g]);o=h}break}let s=ge.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(Rr(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(c=>Rr(c,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?Rr(i,t):void 0;s?o=ge.tuple(a).rest(s):o=ge.tuple(a),typeof e.minItems=="number"&&(o=o.check(ge.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ge.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(c=>Rr(c,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Rr(e.additionalItems,t):void 0;s?o=ge.tuple(a).rest(s):o=ge.tuple(a),typeof e.minItems=="number"&&(o=o.check(ge.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(ge.maxLength(e.maxItems)))}else if(i!==void 0){let a=Rr(i,t),s=ge.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=ge.array(ge.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function Rr(e,t){if(typeof e=="boolean")return e?ge.any():ge.never();let r=gj(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Rr(u,t)),c=ge.union(s);r=o?ge.intersection(r,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Rr(u,t)),c=ge.xor(s);r=o?ge.intersection(r,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:ge.any();else{let s=o?r:Rr(e.allOf[0],t),c=o?0:1;for(let u=c;u<e.allOf.length;u++)s=ge.intersection(s,Rr(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=ge.nullable(r)),e.readOnly===!0&&(r=ge.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))Wne.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function vj(e,t){if(typeof e=="boolean")return e?ge.any():ge.never();let r=Jne(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Pr};return Rr(e,n)}var p3={};rn(p3,{bigint:()=>eoe,boolean:()=>Qne,date:()=>toe,number:()=>Yne,string:()=>Xne});function Xne(e){return D6(Gc,e)}function Yne(e){return V6(Hc,e)}function Qne(e){return X6(Wc,e)}function eoe(e){return Q6(Jc,e)}function toe(e){return uS(Xp,e)}Yt(Kg());var noe=Object.defineProperty,ooe=(e,t)=>{for(var r in t)noe(e,r,{get:t[r],enumerable:!0})},ioe="AI_InvalidArgumentError",aoe=`vercel.ai.error.${ioe}`,soe=Symbol.for(aoe),loe;loe=soe;var coe="AI_InvalidStreamPartError",uoe=`vercel.ai.error.${coe}`,doe=Symbol.for(uoe),poe;poe=doe;var moe="AI_InvalidToolApprovalError",foe=`vercel.ai.error.${moe}`,hoe=Symbol.for(foe),goe;goe=hoe;var voe="AI_InvalidToolApprovalSignatureError",yoe=`vercel.ai.error.${voe}`,boe=Symbol.for(yoe),xoe;xoe=boe;var woe="AI_InvalidToolInputError",_oe=`vercel.ai.error.${woe}`,koe=Symbol.for(_oe),Soe;Soe=koe;var Ioe="AI_ToolCallNotFoundForApprovalError",Toe=`vercel.ai.error.${Ioe}`,$oe=Symbol.for(Toe),Poe;Poe=$oe;var Coe="AI_MissingToolResultsError",Eoe=`vercel.ai.error.${Coe}`,zoe=Symbol.for(Eoe),Aoe;Aoe=zoe;var Moe="AI_NoImageGeneratedError",Roe=`vercel.ai.error.${Moe}`,Noe=Symbol.for(Roe),Doe;Doe=Noe;var yj="AI_NoObjectGeneratedError",bj=`vercel.ai.error.${yj}`,Ooe=Symbol.for(bj),xj,La=class extends dt{constructor({message:e="No object generated.",cause:t,text:r,response:o,usage:n,finishReason:i}){super({name:yj,message:e,cause:t}),this[xj]=!0,this.text=r,this.response=o,this.usage=n,this.finishReason=i}static isInstance(e){return dt.hasMarker(e,bj)}};xj=Ooe;var Loe="AI_NoOutputGeneratedError",joe=`vercel.ai.error.${Loe}`,Uoe=Symbol.for(joe),Boe;Boe=Uoe;var Foe="AI_NoSpeechGeneratedError",Zoe=`vercel.ai.error.${Foe}`,Voe=Symbol.for(Zoe),Goe;Goe=Voe;var qoe="AI_NoTranscriptGeneratedError",Hoe=`vercel.ai.error.${qoe}`,Woe=Symbol.for(Hoe),Joe;Joe=Woe;var Koe="AI_NoVideoGeneratedError",Xoe=`vercel.ai.error.${Koe}`,Yoe=Symbol.for(Xoe),Qoe;Qoe=Yoe;var eie="AI_NoSuchToolError",tie=`vercel.ai.error.${eie}`,rie=Symbol.for(tie),nie;nie=rie;var oie="AI_ToolCallRepairError",iie=`vercel.ai.error.${oie}`,aie=Symbol.for(iie),sie;sie=aie;var wj="AI_UIMessageStreamError",_j=`vercel.ai.error.${wj}`,lie=Symbol.for(_j),kj,Kc=class extends dt{constructor({chunkType:e,chunkId:t,message:r}){super({name:wj,message:r}),this[kj]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return dt.hasMarker(e,_j)}};kj=lie;var cie="AI_InvalidDataContentError",uie=`vercel.ai.error.${cie}`,die=Symbol.for(uie),pie;pie=die;var mie="AI_InvalidMessageRoleError",fie=`vercel.ai.error.${mie}`,hie=Symbol.for(fie),gie;gie=hie;var vie="AI_MessageConversionError",yie=`vercel.ai.error.${vie}`,bie=Symbol.for(yie),xie;xie=bie;var wie="AI_RetryError",_ie=`vercel.ai.error.${wie}`,kie=Symbol.for(_ie),Sie;Sie=kie;var Iie="6.0.218",Tie=async({url:e,maxBytes:t,abortSignal:r})=>{var o;let n=e.toString();try{let i=bg({},`ai-sdk/${Iie}`,kD()),a=await xD({url:n,headers:i,abortSignal:r});if(!a.ok)throw await yg(a),new cn({url:n,statusCode:a.status,statusText:a.statusText});return{data:await wD({response:a,url:n,maxBytes:t??m2}),mediaType:(o=a.headers.get("content-type"))!=null?o:void 0}}catch(i){throw cn.isInstance(i)?i:new cn({url:n,cause:i})}};var Sj=_.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 Gs=_.lazy(()=>_.union([_.null(),_.string(),_.number(),_.boolean(),_.record(_.string(),Gs.optional()),_.array(Gs)])),Ce=_.record(_.string(),_.record(_.string(),Gs.optional())),Ij=_.object({type:_.literal("text"),text:_.string(),providerOptions:Ce.optional()}),$ie=_.object({type:_.literal("image"),image:_.union([Sj,_.instanceof(URL)]),mediaType:_.string().optional(),providerOptions:Ce.optional()}),Tj=_.object({type:_.literal("file"),data:_.union([Sj,_.instanceof(URL)]),filename:_.string().optional(),mediaType:_.string(),providerOptions:Ce.optional()}),Pie=_.object({type:_.literal("reasoning"),text:_.string(),providerOptions:Ce.optional()}),Cie=_.object({type:_.literal("tool-call"),toolCallId:_.string(),toolName:_.string(),input
104:_.unknown(),providerOptions:Ce.optional(),providerExecuted:_.boolean().optional()}),Eie=_.discriminatedUnion("type",[_.object({type:_.literal("text"),value:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("json"),value:Gs,providerOptions:Ce.optional()}),_.object({type:_.literal("execution-denied"),reason:_.string().optional(),providerOptions:Ce.optional()}),_.object({type:_.literal("error-text"),value:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("error-json"),value:Gs,providerOptions:Ce.optional()}),_.object({type:_.literal("content"),value:_.array(_.union([_.object({type:_.literal("text"),text:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("media"),data:_.string(),mediaType:_.string()}),_.object({type:_.literal("file-data"),data:_.string(),mediaType:_.string(),filename:_.string().optional(),providerOptions:Ce.optional()}),_.object({type:_.literal("file-url"),url:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Ce.optional()}),_.object({type:_.literal("image-data"),data:_.string(),mediaType:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("image-url"),url:_.string(),providerOptions:Ce.optional()}),_.object({type:_.literal("image-file-id"),fileId:_.union([_.string(),_.record(_.string(),_.string())]),providerOptions:Ce.optional()}),_.object({type:_.literal("custom"),providerOptions:Ce.optional()})]))})]),$j=_.object({type:_.literal("tool-result"),toolCallId:_.string(),toolName:_.string(),output:Eie,providerOptions:Ce.optional()}),zie=_.object({type:_.literal("tool-approval-request"),approvalId:_.string(),toolCallId:_.string()}),Aie=_.object({type:_.literal("tool-approval-response"),approvalId:_.string(),approved:_.boolean(),reason:_.string().optional()}),Mie=_.object({role:_.literal("system"),content:_.string(),providerOptions:Ce.optional()}),Rie=_.object({role:_.literal("user"),content:_.union([_.string(),_.array(_.union([Ij,$ie,Tj]))]),providerOptions:Ce.optional()}),Nie=_.object({role:_.literal("assistant"),content:_.union([_.string(),_.array(_.union([Ij,Tj,Pie,Cie,$j,zie]))]),providerOptions:Ce.optional()}),Die=_.object({role:_.literal("tool"),content:_.array(_.union([$j,Aie])),providerOptions:Ce.optional()}),Zze=_.union([Mie,Rie,Nie,Die]);function Pj(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 o in t)if(!(o==="__proto__"||o==="constructor"||o==="prototype")&&Object.prototype.hasOwnProperty.call(t,o)){let n=t[o];if(n===void 0)continue;let i=o in e?e[o]:void 0,a=n!==null&&typeof n=="object"&&!Array.isArray(n)&&!(n instanceof Date)&&!(n instanceof RegExp),s=i!=null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp);a&&s?r[o]=Pj(i,n):r[o]=n}return r}var Vze=new TextEncoder;var Oie={};ooe(Oie,{array:()=>Bie,choice:()=>Fie,json:()=>Zie,object:()=>Uie,text:()=>jie});function Lie(e){let t=["ROOT"],r=-1,o=null,n=0;function i(p){return p>="0"&&p<="9"||p>="A"&&p<="F"||p>="a"&&p<="f"}function a(p,m,h){switch(p){case'"':{r=m,t.pop(),t.push(h),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{r=m,o=m,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=m,t.pop(),t.push(h),t.push("INSIDE_NUMBER");break}case"{":{r=m,t.pop(),t.push(h),t.push("INSIDE_OBJECT_START");break}case"[":{r=m,t.pop(),t.push(h),t.push("INSIDE_ARRAY_START");break}}}function s(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{r=m,t.pop();break}}}function c(p,m){switch(p){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=m,t.pop();break}}}for(let p=0;p<e.length;p++){let m=e[p];switch(t[t.length-1]){case"ROOT":a(m,p,"FINISH");break;case"INSIDE_OBJECT_START":{switch(m){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{r=p,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{m==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{m==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{m===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{a(m,p,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{s(m,p);break}case"INSIDE_STRING":{switch(m){case'"':{t.pop(),r=p;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:r=p}break}case"INSIDE_ARRAY_START":{m==="]"?(r=p,t.pop()):(r=p,a(m,p,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(m){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{r=p,t.pop();break}default:{r=p;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{a(m,p,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),m==="u"?(n=0,t.push("INSIDE_STRING_UNICODE_ESCAPE")):r=p;break}case"INSIDE_STRING_UNICODE_ESCAPE":{i(m)&&(n++,n===4&&(t.pop(),r=p));break}case"INSIDE_NUMBER":{switch(m){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{r=p;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&s(m,p);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let g=e.substring(o,p+1);!"false".startsWith(g)&&!"true".startsWith(g)&&!"null".startsWith(g)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?s(m,p):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&c(m,p)):r=p;break}}}let u=e.slice(0,r+1);for(let p=t.length-1;p>=0;p--)switch(t[p]){case"INSIDE_STRING":{u+='"';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":{u+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{u+="]";break}case"INSIDE_LITERAL":{let h=e.substring(o,e.length);"true".startsWith(h)?u+="true".slice(h.length):"false".startsWith(h)?u+="false".slice(h.length):"null".startsWith(h)&&(u+="null".slice(h.length))}}return u}async function im(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Si({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Si({text:Lie(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var jie=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),Uie=({schema:e,name:t,description:r})=>{let o=_g(e);return{name:"object",responseFormat:jo(o.jsonSchema).then(n=>({type:"json",schema:n,...t!=null&&{name:t},...r!=null&&{description:r}})),async parseCompleteOutput({text:n},i){let a=await Si({text:n});if(!a.success)throw new La({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let s=await bc({value:a.value,schema:o});if(!s.success)throw new La({message:"No object generated: response did not match sc
104hema.",cause:s.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});return s.value},async parsePartialOutput({text:n}){let i=await im(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:i.value}}},createElementStreamTransform(){}}},Bie=({element:e,name:t,description:r})=>{let o=_g(e);return{name:"array",responseFormat:jo(o.jsonSchema).then(n=>{let{$schema:i,...a}=n;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:a}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...r!=null&&{description:r}}}),async parseCompleteOutput({text:n},i){let a=await Si({text:n});if(!a.success)throw new La({message:"No object generated: could not parse the response.",cause:a.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});let s=a.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new La({message:"No object generated: response did not match schema.",cause:new No({value:s,cause:"response must be an object with an elements array"}),text:n,response:i.response,usage:i.usage,finishReason:i.finishReason});for(let c of s.elements){let u=await bc({value:c,schema:o});if(!u.success)throw new La({message:"No object generated: response did not match schema.",cause:u.error,text:n,response:i.response,usage:i.usage,finishReason:i.finishReason})}return s.elements},async parsePartialOutput({text:n}){let i=await im(n);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let a=i.value;if(a==null||typeof a!="object"||!("elements"in a)||!Array.isArray(a.elements))return;let s=i.state==="repaired-parse"&&a.elements.length>0?a.elements.slice(0,-1):a.elements,c=[];for(let u of s){let p=await bc({value:u,schema:o});p.success&&c.push(p.value)}return{partial:c}}}},createElementStreamTransform(){let n=0;return new TransformStream({transform({partialOutput:i},a){if(i!=null)for(;n<i.length;n++)a.enqueue(i[n])}})}}},Fie=({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:o},n){let i=await Si({text:o});if(!i.success)throw new La({message:"No object generated: could not parse the response.",cause:i.error,text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});let a=i.value;if(a==null||typeof a!="object"||!("result"in a)||typeof a.result!="string"||!e.includes(a.result))throw new La({message:"No object generated: response did not match schema.",cause:new No({value:a,cause:"response must be an object that contains a choice value."}),text:o,response:n.response,usage:n.usage,finishReason:n.finishReason});return a.result},async parsePartialOutput({text:o}){let n=await im(o);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=n.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string")return;let a=e.filter(s=>s.startsWith(i.result));return n.state==="successful-parse"?a.includes(i.result)?{partial:i.result}:void 0:a.length===1?{partial:a[0]}:void 0}}},createElementStreamTransform(){}}),Zie=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:r},o){let n=await Si({text:r});if(!n.success)throw new La({message:"No object generated: could not parse the response.",cause:n.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return n.value},async parsePartialOutput({text:r}){let o=await im(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return o.value===void 0?void 0:{partial:o.value}}},createElementStreamTransform(){}});var Wze=ki({prefix:"aitxt",size:24});var Kze=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 105 106`)},flush(e){e.enqueue(`data: [DONE] 107 108`)}})}};var nm=_.record(_.string(),Gs.optional()),Vie=xg(()=>Sp(_.union([_.strictObject({type:_.literal("text-start"),id:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("text-delta"),id:_.string(),delta:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("text-end"),id:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("error"),errorText:_.string()}),_.strictObject({type:_.literal("tool-input-start"),toolCallId:_.string(),toolName:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Ce.optional(),toolMetadata:nm.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
108:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Ce.optional(),toolMetadata:nm.optional(),dynamic:_.boolean().optional(),title:_.string().optional()}),_.strictObject({type:_.literal("tool-input-error"),toolCallId:_.string(),toolName:_.string(),input:_.unknown(),providerExecuted:_.boolean().optional(),providerMetadata:Ce.optional(),toolMetadata:nm.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:Ce.optional(),toolMetadata:nm.optional(),dynamic:_.boolean().optional(),preliminary:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-error"),toolCallId:_.string(),errorText:_.string(),providerExecuted:_.boolean().optional(),providerMetadata:Ce.optional(),toolMetadata:nm.optional(),dynamic:_.boolean().optional()}),_.strictObject({type:_.literal("tool-output-denied"),toolCallId:_.string()}),_.strictObject({type:_.literal("reasoning-start"),id:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("reasoning-delta"),id:_.string(),delta:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("reasoning-end"),id:_.string(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Ce.optional()}),_.strictObject({type:_.literal("file"),url:_.string(),mediaType:_.string(),providerMetadata:Ce.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 Gie(e){return e.type.startsWith("data-")}function om(){return Object.create(null)}function m3(e){return e.type.startsWith("tool-")}function Cj(e){return e.type==="dynamic-tool"}function yo(e){return m3(e)||Cj(e)}function f3(e){return e.type.split("-").slice(1).join("-")}function Ej(e){return Cj(e)?e.toolName:f3(e)}function qie({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:om(),activeReasoningParts:om(),partialToolCalls:om()}}function Hie({stream:e,messageMetadataSchema:t,dataPartSchemas:r,runUpdateMessageJob:o,onError:n,onToolCall:i,onData:a}){return e.pipeThrough(new TransformStream({async transform(s,c){await o(async({state:u,write:p})=>{var m,h,g,b;function T(k){let z=u.message.parts.filter(yo).find(N=>N.toolCallId===k);if(z==null)throw new Kc({chunkType:"tool-invocation",chunkId:k,message:`No tool invocation found for tool call ID "${k}".`});return z}function I(k){var A;let z=u.message.parts.find(G=>m3(G)&&G.toolCallId===k.toolCallId),N=k,B=z;if(z!=null){z.state=k.state,B.input=N.input,B.output=N.output,B.errorText=N.errorText,B.rawInput=N.rawInput,B.preliminary=N.preliminary,k.title!==void 0&&(B.title=k.title),k.toolMetadata!==void 0&&(B.toolMetadata=k.toolMetadata),B.providerExecuted=(A=N.providerExecuted)!=null?A:z.providerExecuted;let G=N.providerMetadata;if(G!=null)if(k.state==="output-available"||k.state==="output-error"){let F=z;F.resultProviderMetadata=G}else z.callProviderMetadata=G}else u.message.parts.push({type:`tool-${k.toolName}`,toolCallId:k.toolCallId,state:k.state,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},input:N.input,output:N.output,rawInput:N.rawInput,errorText:N.errorText,providerExecuted:N.providerExecuted,preliminary:N.preliminary,...N.providerMetadata!=null&&(k.state==="output-available"||
108k.state==="output-error")?{resultProviderMetadata:N.providerMetadata}:{},...N.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{callProviderMetadata:N.providerMetadata}:{}})}function P(k){var A,z;let N=u.message.parts.find(F=>F.type==="dynamic-tool"&&F.toolCallId===k.toolCallId),B=k,G=N;if(N!=null){N.state=k.state,G.toolName=k.toolName,G.input=B.input,G.output=B.output,G.errorText=B.errorText,G.rawInput=(A=B.rawInput)!=null?A:G.rawInput,G.preliminary=B.preliminary,k.title!==void 0&&(G.title=k.title),k.toolMetadata!==void 0&&(G.toolMetadata=k.toolMetadata),G.providerExecuted=(z=B.providerExecuted)!=null?z:N.providerExecuted;let F=B.providerMetadata;if(F!=null)if(k.state==="output-available"||k.state==="output-error"){let W=N;W.resultProviderMetadata=F}else N.callProviderMetadata=F}else u.message.parts.push({type:"dynamic-tool",toolName:k.toolName,toolCallId:k.toolCallId,state:k.state,input:B.input,output:B.output,errorText:B.errorText,preliminary:B.preliminary,providerExecuted:B.providerExecuted,title:k.title,...k.toolMetadata!==void 0?{toolMetadata:k.toolMetadata}:{},...B.providerMetadata!=null&&(k.state==="output-available"||k.state==="output-error")?{resultProviderMetadata:B.providerMetadata}:{},...B.providerMetadata!=null&&!(k.state==="output-available"||k.state==="output-error")?{c
vendor: 7,286 bytes, line 108
108allProviderMetadata:B.providerMetadata}:{}})}async function C(k){if(k!=null){let A=u.message.metadata!=null?Pj(u.message.metadata,k):k;t!=null&&await kg({value:A,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=A}}switch(s.type){case"text-start":{let k={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=k,u.message.parts.push(k),p();break}case"text-delta":{let k=u.activeTextParts[s.id];if(k==null)throw new Kc({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=(m=s.providerMetadata)!=null?m:k.providerMetadata,p();break}case"text-end":{let k=u.activeTextParts[s.id];if(k==null)throw new Kc({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 u.activeTextParts[s.id],p();break}case"reasoning-start":{let k={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=k,u.message.parts.push(k),p();break}case"reasoning-delta":{let k=u.activeReasoningParts[s.id];if(k==null)throw new Kc({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,p();break}case"reasoning-end":{let k=u.activeReasoningParts[s.id];if(k==null)throw new Kc({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=(b=s.providerMetadata)!=null?b:k.providerMetadata,k.state="done",delete u.activeReasoningParts[s.id],p();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),p();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),p();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),p();break}case"tool-input-start":{let k=u.message.parts.filter(m3);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:k.length,dynamic:s.dynamic,title:s.title,toolMetadata:s.toolMetadata},s.dynamic?P({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}):I({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,toolMetadata:s.toolMetadata,providerMetadata:s.providerMetadata}),p();break}case"tool-input-delta":{let k=u.partialToolCalls[s.toolCallId];if(k==null)throw new Kc({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:A}=await im(k.text);k.dynamic?P({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:A,title:k.title,toolMetadata:k.toolMetadata}):I({toolCallId:s.toolCallId,toolName:k.toolName,state:"input-streaming",input:A,title:k.title,toolMetadata:k.toolMetadata}),p();break}case"tool-input-available":{s.dynamic?P({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}):I({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title,toolMetadata:s.toolMetadata}),p(),i&&!s.providerExecuted&&await i({toolCall:s});break}case"tool-input-error":{let k=u.message.parts.filter(yo).find(z=>z.toolCallId===s.toolCallId);(k!=null?k.type==="dynamic-tool":!!s.dynamic)?P({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,toolMetadata:s.toolMetadata}):I({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}),p();break}case"tool-approval-request":{let k=T(s.toolCallId);k.state="approval-requested",k.approval={id:s.approvalId,...s.signature!=null?{signature:s.signature}:{}},p();break}case"tool-output-denied":{let k=T(s.toolCallId);k.state="output-denied",p();break}case"tool-output-available":{let k=T(s.toolCallId);k.type==="dynamic-tool"?P({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}):I({toolCallId:s.toolCallId,toolName:f3(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}),p();break}case"tool-output-error":{let k=T(s.toolCallId);k.type==="dynamic-tool"?P({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}):I({toolCallId:s.toolCallId,toolName:f3(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}),p();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts=om(),u.activeReasoningParts=om();break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await C(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&p();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await C(s.messageMetadata),s.messageMetadata!=null&&p();break}case"message-metadata":{await C(s.messageMetadata),s.messageMetadata!=null&&p();break}case"error":{n?.(new Error(s.errorText));break}default:if(Gie(s)){if(r?.[s.type]!=null){let z=u.message.parts.findIndex(B=>"id"in B&&"data"in B&&B.id===s.id&&B.type===s.type),N=z>=0?z:u.message.parts.length;await kg({value:s.data,schema:r[s.type],context:{field:`message.parts[${N}].data`,entityName:s.type,entityId:s.id}})}let k=s;if(k.transient){a?.(k);break}let A=k.id!=null?u.message.parts.find(z=>k.type===z.type&&k.id===z.id):void 0;A!=null?A.data=k.data:u.message.parts.push(k),a?.(k),p()}}c.enqueue(s)})}}))}
108async function Wie({stream:e,onError:t}){let r=e.getReader();try{for(;;){let{done:o}=await r.read();if(o)break}}catch(o){t?.(o)}finally{r.releaseLock()}}var eAe=ki({prefix:"aitxt",size:24});var mn=_.record(_.string(),Gs.optional()),nAe=xg(()=>Sp(_.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:Ce.optional()}),_.object({type:_.literal("reasoning"),text:_.string(),state:_.enum(["streaming","done"]).optional(),providerMetadata:Ce.optional()}),_.object({type:_.literal("source-url"),sourceId:_.string(),url:_.string(),title:_.string().optional(),providerMetadata:Ce.optional()}),_.object({type:_.literal("source-document"),sourceId:_.string(),mediaType:_.string(),title:_.string(),filename:_.string().optional(),providerMetadata:Ce.optional()}),_.object({type:_.literal("file"),mediaType:_.string(),filename:_.string().optional(),url:_.string(),providerMetadata:Ce.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:mn.optional(),state:_.literal("input-streaming"),input:_.unknown().optional(),providerExecuted:_.boolean().optional(),callProviderMetadata:Ce.optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("input-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.never().optional()}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.literal("dynamic-tool"),toolName:_.string(),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("output-available"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),resultProviderMetadata:Ce.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:mn.optional(),state:_.literal("output-error"),input:_.unknown().optional(),rawInput:_.unknown().optional(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Ce.optional(),resultProviderMetadata:Ce.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:mn.optional(),state:_.literal("output-denied"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.literal(!1),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("input-streaming"),providerExecuted:_.boolean().optional(),callProviderMetadata:Ce.optional(),input
108:_.unknown().optional(),output:_.never().optional(),errorText:_.never().optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("input-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.never().optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("approval-requested"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.never().optional(),reason:_.never().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("approval-responded"),input:_.unknown(),providerExecuted:_.boolean().optional(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.boolean(),reason:_.string().optional(),signature:_.string().optional()})}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("output-available"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.unknown(),errorText:_.never().optional(),callProviderMetadata:Ce.optional(),resultProviderMetadata:Ce.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:mn.optional(),state:_.literal("output-error"),providerExecuted:_.boolean().optional(),input:_.unknown().optional(),rawInput:_.unknown().optional(),output:_.never().optional(),errorText:_.string(),callProviderMetadata:Ce.optional(),resultProviderMetadata:Ce.optional(),approval:_.object({id:_.string(),approved:_.literal(!0),reason:_.string().optional(),signature:_.string().optional()}).optional()}),_.object({type:_.string().startsWith("tool-"),toolCallId:_.string(),toolMetadata:mn.optional(),state:_.literal("output-denied"),providerExecuted:_.boolean().optional(),input:_.unknown(),output:_.never().optional(),errorText:_.never().optional(),callProviderMetadata:Ce.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 iAe=ki({prefix:"aiobj",size:24});function zj(e){return({url:t,abortSignal:r})=>Tie({url:t,maxBytes:e?.maxBytes,abortSignal:r})}var Jie=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(o){r(o)}}),this.processQueue()})}};var sAe=ki({prefix:"aiobj",size:24});var lAe=zj();var Kie="AI_NoSuchProviderError",Xie=`vercel.ai.error.${Kie}`,Yie=Symbol.for(Xie),Qie;Qie=Yie;var cAe=zj();async function eae(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:o}=t,n=await new Promise((i,a)=>{let s=new FileReader;s.onload=c=>{var u;i((u=c.target)==null?void 0:u.result)},s.onerror=c=>a(c),s.readAsDataURL(t)});return{type:"file",mediaType:o,filename:r,url:n}}))}var tae=class{constructor({api:e="/api/chat",credentials:t,headers:r,body:o,fetch:n,prepareSendMessagesRequest:i,prepareReconnectToStreamRequest:a}){this.api=e,this.credentials=t,this.headers=r,this.body=o,this.fetch=n,this.prepareSendMessagesRequest=i,this.prepareReconnectToStreamRequest=a}async sendMessages({abortSignal:e,...t}){var r,o,n,i,a;let s=await jo(this.body),c=await jo(this.headers),u=await jo(this.credentials),p={...$a(c),...$a(t.headers)},m=await((r=this.prepareSendMessagesRequest)==null?void 0:r.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:p,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),h=(o=m?.api)!=null?o:this.api,g=m?.headers!==void 0?$a(m.headers):p,b=m?.body!==void 0?m.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},T=(n=m?.credentials)!=null?n:u,P=await((i=this.fetch)!=null?i:globalThis.fetch)(h,{method:"POST",headers:{"Content-Type":"application/json",...g},body:JSON.stringify(b),credentials:T,signal:e});if(!P.ok)throw new Error((a=await P.text())!=null?a:"Failed to fetch the chat response.");if(!P.body)throw new Error("The response body is empty.");return this.processResponseStream(P.body)}async reconnectToStream(e){var t,r,o,n,i;let a=await jo(this.body),s=await jo(this.headers),c=await jo(this.credentials),u={...$a(s),...$a(e.headers)},p=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...a,...e.body},headers:u,credentials:c,requestMetadata:e.metadata})),m=(r=p?.api)!=null?r:`${this.api}/${e.chatId}/stream`,h=p?.headers!==void 0?$a(p.headers):u,g=(o=p?.credentials)!=null?o:c,T=await((n=this.fetch)!=null?n:globalThis.fetch)(m,{method:"GET",headers:h,credentials:g});if(T.status===204)return null;if(!T.ok)throw new Error((i=await T.text())!=null?i:"Failed to fetch the chat response.");if(!T.body)throw new Error("The response body is empty.");return this.processResponseStream(T.body)}},h3=class extends tae{constructor(e={}){super(e)}processResponseStream(e){return PD({stream:e,schema:Vie}).pipeThrough(new TransformStream({async transform(t,r){if(!t.success)throw t.error;r.enqueue(t.value)}}))}},Aj=class{constructor({generateId:e=_D,id:t=e(),transport:r=new h3,messageMetadataSchema:o,dataPartSchemas:n,state:i,onError:a,onToolCall:s,onFinish:c,onData:u,sendAutomaticallyWhen:p}){this.activeResponse=void 0,this.jobExecutor=new Jie,this.sendMessage=async(m,h)=>{var g,b,T,I;
vendor: 4,819 bytes, line 108
108if(m==null){await this.makeRequest({trigger:"submit-message",messageId:(g=this.lastMessage)==null?void 0:g.id,...h});return}let P;if("text"in m||"files"in m?P={parts:[...Array.isArray(m.files)?m.files:await eae(m.files),..."text"in m&&m.text!=null?[{type:"text",text:m.text}]:[]]}:P=m,m.messageId!=null){let C=this.state.messages.findIndex(k=>k.id===m.messageId);if(C===-1)throw new Error(`message with id ${m.messageId} not found`);if(this.state.messages[C].role!=="user")throw new Error(`message with id ${m.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,C+1),this.state.replaceMessage(C,{...P,id:m.messageId,role:(b=P.role)!=null?b:"user",metadata:m.metadata})}else this.state.pushMessage({...P,id:(T=P.id)!=null?T:this.generateId(),role:(I=P.role)!=null?I:"user",metadata:m.metadata});await this.makeRequest({trigger:"submit-message",messageId:m.messageId,...h})},this.regenerate=async({messageId:m,...h}={})=>{let g=m==null?this.state.messages.length-1:this.state.messages.findIndex(b=>b.id===m);if(g===-1)throw new Error(`message ${m} 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:m,...h})},this.resumeStream=async(m={})=>{await this.makeRequest({trigger:"resume-stream",...m})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:m,approved:h,reason:g,options:b})=>this.jobExecutor.run(async()=>{let T=this.state.messages,I=T[T.length-1],P=C=>yo(C)&&C.state==="approval-requested"&&C.approval.id===m?{...C,state:"approval-responded",approval:{id:m,approved:h,reason:g}}:C;this.state.replaceMessage(T.length-1,{...I,parts:I.parts.map(P)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(P)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(C=>{var k;C&&this.makeRequest({trigger:"submit-message",messageId:(k=this.lastMessage)==null?void 0:k.id,...b})})}),this.addToolOutput=async({state:m="output-available",toolCallId:h,output:g,errorText:b,options:T})=>this.jobExecutor.run(async()=>{let I=this.state.messages,P=I[I.length-1],C=k=>yo(k)&&k.toolCallId===h?{...k,state:m,output:g,errorText:b}:k;this.state.replaceMessage(I.length-1,{...P,parts:P.parts.map(C)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(C)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(k=>{var A;k&&this.makeRequest({trigger:"submit-message",messageId:(A=this.lastMessage)==null?void 0:A.id,...T})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var m;this.status!=="streaming"&&this.status!=="submitted"||(m=this.activeResponse)!=null&&m.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=r,this.generateId=e,this.messageMetadataSchema=o,this.dataPartSchemas=n,this.state=i,this.onError=a,this.onToolCall=s,this.onFinish=c,this.onData=u,this.sendAutomaticallyWhen=p}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}async makeRequest({trigger:e,metadata:t,headers:r,body:o,messageId:n}){var i,a,s;let c;if(e==="resume-stream")try{let g=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:r,body:o});if(g==null)return;c=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 u=this.lastMessage,p=!1,m=!1,h=!1;try{let g={state:qie({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};g.abortController.signal.addEventListener("abort",()=>{p=!0}),this.activeResponse=g;let b;e==="resume-stream"?b=c:b=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:g.abortController.signal,metadata:t,headers:r,body:o,trigger:e,messageId:n});let T=I=>this.jobExecutor.run(()=>I({state:g.state,write:()=>{var P;this.setStatus({status:"streaming"}),g.state.message.id===((P=this.lastMessage)==null?void 0:P.id)?this.state.replaceMessage(this.state.messages.length-1,g.state.message):this.state.pushMessage(g.state.message)}}));
108await Wie({stream:Hie({stream:b,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:T,onError:I=>{throw I}}),onError:I=>{throw I}}),this.setStatus({status:"ready"})}catch(g){if(p||g.name==="AbortError")return p=!0,this.setStatus({status:"ready"}),null;h=!0,g instanceof TypeError&&(g.message.toLowerCase().includes("fetch")||g.message.toLowerCase().includes("network"))&&(m=!0),this.onError&&g instanceof Error&&this.onError(g),this.setStatus({status:"error",error:g})}finally{try{(a=this.onFinish)==null||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:p,isDisconnect:m,isError:h,finishReason:(i=this.activeResponse)==null?void 0:i.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:o})}};function Mj({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(yo);return o.filter(n=>n.state==="approval-responded").length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error"||n.state==="approval-responded")}function Rj({messages:e}){let t=e[e.length-1];if(!t||t.role!=="assistant")return!1;let r=t.parts.reduce((n,i,a)=>i.type==="step-start"?a:n,-1),o=t.parts.slice(r+1).filter(yo).filter(n=>!n.providerExecuted);return o.length>0&&o.every(n=>n.state==="output-available"||n.state==="output-error")}var Lj=Z(xe());var Cr=Z(xe(),1);var rae={damping:.7,stiffness:.05,mass:1.25},nae=70,oae=1e3/60,iae=350,uy=!1;globalThis.document?.addEventListener("mousedown",()=>{uy=!0});globalThis.document?.addEventListener("mouseup",()=>{uy=!1});globalThis.document?.addEventListener("click",()=>{uy=!1});var Dj=(e={})=>{let[t,r]=(0,Cr.useState)(!1),[o,n]=(0,Cr.useState)(e.initial!==!1),[i,a]=(0,Cr.useState)(!1),s=(0,Cr.useRef)(null);s.current=e;let c=(0,Cr.useCallback)(()=>{if(!uy)return!1;let C=window.getSelection();if(!C||!C.rangeCount)return!1;let k=C.getRangeAt(0);return k.commonAncestorContainer.contains(I.current)||I.current?.contains(k.commonAncestorContainer)},[]),u=(0,Cr.useCallback)(C=>{m.isAtBottom=C,n(C)},[]),p=(0,Cr.useCallback)(C=>{m.escapedFromLock=C,r(C)},[]),m=(0,Cr.useMemo)(()=>{let C;return{escapedFromLock:t,isAtBottom:o,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){return I.current?.scrollTop??0},set scrollTop(k){I.current&&(I.current.scrollTop=k,m.ignoreScrollToTop=I.current.scrollTop)},get targetScrollTop(){return!I.current||!P.current?0:I.current.scrollHeight-1-I.current.clientHeight},get calculatedTargetScrollTop(){if(!I.current||!P.current)return 0;let{targetScrollTop:k}=this;if(!e.targetScrollTop)return k;if(C?.targetScrollTop===k)return C.calculatedScrollTop;let A=Math.max(Math.min(e.targetScrollTop(k,{scrollElement:I.current,contentElement:P.current}),k),0);return C={targetScrollTop:k,calculatedScrollTop:A},requestAnimationFrame(()=>{C=void 0}),A},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=nae}}},[]),h=(0,Cr.useCallback)((C={})=>{typeof C=="string"&&(C={animation:C}),C.preserveScrollPosition||u(!0);let k=Date.now()+(Number(C.wait)||0),A=v3(s.current,C.animation),{ignoreEscapes:z=!1}=C,N,B=m.calculatedTargetScrollTop;C.duration instanceof Promise?C.duration.finally(()=>{N=Date.now()}):N=k+(C.duration??0);let G=async()=>{let F=new Promise(requestAnimationFrame).then(()=>{if(!m.isAtBottom)return m.animation=void 0,!1;let{scrollTop:W}=m,ue=performance.now(),de=(ue-(m.lastTick??ue))/oae;if(m.animation||(m.animation={behavior:A,promise:F,ignoreEscapes:z}),m.animation.behavior===A&&(m.lastTick=ue),c()||k>Date.now())return G();if(W<Math.min(B,m.calculatedTargetScrollTop)){if(m.animation?.behavior===A){if(A==="instant")return m.scrollTop=m.calculatedTargetScrollTop,G();m.velocity=(A.damping*m.velocity+A.stiffness*m.scrollDifference)/A.mass,m.accumulated+=m.velocity
108*de,m.scrollTop+=m.accumulated,m.scrollTop!==W&&(m.accumulated=0)}return G()}return N>Date.now()?(B=m.calculatedTargetScrollTop,G()):(m.animation=void 0,m.scrollTop<m.calculatedTargetScrollTop?h({animation:v3(s.current,s.current.resize),ignoreEscapes:z,duration:Math.max(0,N-Date.now())||void 0}):m.isAtBottom)});return F.then(W=>(requestAnimationFrame(()=>{m.animation||(m.lastTick=void 0,m.velocity=0)}),W))};return C.wait!==!0&&(m.animation=void 0),m.animation?.behavior===A?m.animation.promise:G()},[u,c,m]),g=(0,Cr.useCallback)(()=>{p(!0),u(!1)},[p,u]),b=(0,Cr.useCallback)(({target:C})=>{if(C!==I.current)return;let{scrollTop:k,ignoreScrollToTop:A}=m,{lastScrollTop:z=k}=m;m.lastScrollTop=k,m.ignoreScrollToTop=void 0,A&&A>k&&(z=A),a(m.isNearBottom),setTimeout(()=>{if(m.resizeDifference||k===A)return;if(c()){p(!0),u(!1);return}let N=k>z,B=k<z;if(m.animation?.ignoreEscapes){m.scrollTop=z;return}B&&(p(!0),u(!1)),N&&p(!1),!m.escapedFromLock&&m.isNearBottom&&u(!0)},1)},[p,u,c,m]),T=(0,Cr.useCallback)(({target:C,deltaY:k})=>{let A=C;for(;!["scroll","auto"].includes(getComputedStyle(A).overflow);){if(!A.parentElement)return;A=A.parentElement}A===I.current&&k<0&&I.current.scrollHeight>I.current.clientHeight&&!m.animation?.ignoreEscapes&&(p(!0),u(!1))},[p,u,m]),I=Nj(C=>{I.current?.removeEventListener("scroll",b),I.current?.removeEventListener("wheel",T),C?.addEventListener("scroll",b,{passive:!0}),C?.addEventListener("wheel",T,{passive:!0})},[]),P=Nj(C=>{if(m.resizeObserver?.disconnect(),!C)return;let k;m.resizeObserver=new ResizeObserver(([A])=>{let{height:z}=A.contentRect,N=z-(k??z);if(m.resizeDifference=N,m.scrollTop>m.targetScrollTop&&(m.scrollTop=m.targetScrollTop),a(m.isNearBottom),N>=0){let B=v3(s.current,k?s.current.resize:s.current.initial);h({animation:B,wait:!0,preserveScrollPosition:!0,duration:B==="instant"?void 0:iae})}else m.isNearBottom&&(p(!1),u(!0));k=z,requestAnimationFrame(()=>{setTimeout(()=>{m.resizeDifference===N&&(m.resizeDifference=0)},1)})}),m.resizeObserver?.observe(C)},[]);return{contentRef:P,scrollRef:I,scrollToBottom:h,stopScroll:g,isAtBottom:o||i,isNearBottom:i,escapedFromLock:t,state:m}};function Nj(e,t){let r=(0,Cr.useCallback)(o=>(r.current=o,e(o)),t);return r}var g3=new Map;function v3(...e){let t={...rae},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 o=JSON.stringify(t);return g3.has(o)||g3.set(o,Object.freeze(t)),r?"instant":g3.get(o)}var qs=Z(xe(),1),fn=Z(xe(),1);var Oj=(0,fn.createContext)(null),aae=typeof window<"u"?fn.useLayoutEffect:fn.useEffect;function am({instance:e,children:t,resize:r,initial:o,mass:n,damping:i,stiffness:a,targetScrollTop:s,contextRef:c,...u}){let p=(0,fn.useRef)(null),m=qs.useCallback((z,N)=>(A?.targetScrollTop??s)?.(z,N)??z,[s]),h=Dj({mass:n,damping:i,stiffness:a,resize:r,initial:o,targetScrollTop:m}),{scrollRef:g,contentRef:b,scrollToBottom:T,stopScroll:I,isAtBottom:P,escapedFromLock:C,state:k}=e??h,A=(0,fn.useMemo)(()=>({scrollToBottom:T,stopScroll:I,scrollRef:g,isAtBottom:P,escapedFromLock:C,contentRef:b,state:k,get targetScrollTop(){return p.current},set targetScrollTop(z){p.current=z}}),[T,P,b,g,I,C,k]);return(0,fn.useImperativeHandle)(c,()=>A,[A]),aae(()=>{g.current&&getComputedStyle(g.current).overflow==="visible"&&(g.current.style.overflow="auto")},[]),qs.createElement(Oj.Provider,{value:A},qs.createElement("div",{...u},typeof t=="function"?t(A):t))}(function(e){function t({children:r,scrollClassName:o,...n}){let i=y3();return qs.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:o},qs.createElement("div",{...n,ref:i.contentRef},typeof r=="function"?r(i):r))}e.Content=t})(am||(am={}));function y3(){let e=(0,fn.useContext)(Oj);if(!e)throw new Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}var hn=Z(se()),jj=({className:e,...t})=>(0,hn.jsx)(am,{className:Te("relative min-h-0 flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),Uj=({className:e,...t})=>(0,hn.jsx)(am.Content,{className:Te("flex flex-col gap-8 p-4",e),...t}),Bj=({className:e,title:t="No messages yet",description:r="Start a conversation to see messages here",icon:o,children:n,...i})=>(0,hn.jsx)("div",{className:Te("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...i,children:n??(0,hn.jsxs)(hn.Fragment,{children:[o&&(0,hn.jsx)("div",{className:"text-muted-foreground",children:o}),(0,hn.jsxs)("div",{className:"space-y-1",children:[(0,hn.jsx)("h3",{className:"text-sm font-medium",children:t}),r&&(0,hn.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]})]})}),Fj=({className:e,...t})=>{let{isAtBottom:r,scrollToBottom:o}=y3(),n=(0,Lj.useCallback)(()=>{o()},[o]);return!r&&(0,hn.jsx)(Lt,{className:Te("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,hn.jsx)(A7,{className:"size-4"})})};var EAe=Z(xe());var sae=Z(se());var lae=Z(se()),DAe=ls("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 LAe=Z(xe());var Zj=Z(se());var Er={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 Vo={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 En={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"};
vendor: 6,705 bytes, line 108
108var dy=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,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],py=[12288,12288,65281,65376,65504,65510],my=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],fy=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],sm=[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 Xc=(e,t)=>{let r=0,o=Math.floor(e.length/2)-1;for(;r<=o;){let n=Math.floor((r+o)/2),i=n*2;if(t<e[i])o=n-1;else if(t>e[i+1])r=n+1;else return!0}return!1};var cae=dy[0],uae=dy.at(-1),dae=py[0],pae=py.at(-1),mae=my[0],fae=my.at(-1),hae=fy[0],gae=fy.at(-1),vae=sm[0],yae=sm.at(-1),Vj=19968,[bae,xae]=wae(sm);function wae(e){let t=e[0],r=e[1];for(let o=0;o<e.length;o+=2){let n=e[o],i=e[o+1];if(Vj>=n&&Vj<=i)return[n,i];i-n>r-t&&(t=n,r=i)}return[t,r]}var Gj=e=>e<cae||e>uae?!1:Xc(dy,e),qj=e=>e<dae||e>pae?!1:Xc(py,e),_ae=e=>e<mae||e>fae?!1:Xc(my,e),kae=e=>e<hae||e>gae?!1:Xc(fy,e),Hj=e=>e>=bae&&e<=xae?!0:e<vae||e>yae?!1:Xc(sm,e);function Wj(e){return Gj(e)?"ambiguous":qj(e)?"fullwidth":_ae(e)?"halfwidth":kae(e)?"narrow":Hj(e)?"wide":"neutral"}function Sae(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Jj(e){return Sae(e),Wj(e)}function Iae(e){return/^\p{Emoji_Presentation}/u.test(String.fromCodePoint(e))}function Kj(e){if(!e||e<4352)return!1;switch(Jj(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!Iae(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 Xj(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function Yj(e){return e!==null&&e>=65024&&e<=65038}var Qj=tU(/\p{P}|\p{S}/u),eU=tU(/\s/);function tU(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function Pi(e){return!!(e&Vo.characterGroupWhitespace)}function Hs(e){return(e&Jr.cjkPunctuation)===Vo.characterGroupPunctuation}function Yc(e){return!!(e&Jr.cjk)}function x3(e){return e===Jr.ivs}function w3(e){return!!(e&Jr.cjkOrIvs)}function _3(e){return e===Jr.nonEmojiGeneralUseVS}function hy(e){return!!(e&Jr.spaceOrPunctuation)}var Jr;(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})(Jr||(Jr={}));function Ci(e){if(e===Er.eof||a$(e)||eU(e))return Vo.characterGroupWhitespace;let t=0;if(e>=4352){if(Yj(e))return Jr.nonEmojiGeneralUseVS;switch(Kj(e)){case null:return Jr.ivs;case!0:t|=Jr.cjk;break}}return Qj(e)&&(t|=Vo.characterGroupPunctuation),t}function lm(e,t,r){if(!_3(e))return e;let o=t(),n=Ci(o);return!o||Pi(n)?e:Xj(o,r)?Jr.cjkPunctuation:Tae(n)}function Tae(e){return e&~Jr.ivs}function cm(e){return!!(e&&e>=55296&&e<=56319)}function um(e){return!!(e&&e>=56320&&e<=57343)}function dm(e,t,r){if(t._bufferIndex<2)return e;let o=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return o&&o>=65536?o:e}function rU(e,t,r){let o=e>=65536?2:1;if(t._bufferIndex<1+o)return null;let n=t._bufferIndex-o-2,i=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-o}}),a=i.charCodeAt(i.length-1);if(Number.isNaN(a))return null;if(i.length<2||a<56320||57343<a)return a;let s=i.codePointAt(0);return s&&s>=65536?s:a}var pm=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=rU(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};
vendor: 10,292 bytes, line 108
108function mm(e,t,r){let o=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return o&&o>=65536?o:e}var gy={name:"attention",resolveAll:$ae,tokenize:Pae};function $ae(e,t){let r=-1,o,n,i,a,s,c,u,p;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(o=r;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;c=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;let m={...e[o][1].end},h={...e[r][1].start};nU(m,-c),nU(h,c),a={type:c>1?En.strongSequence:En.emphasisSequence,start:m,end:{...e[o][1].end}},s={type:c>1?En.strongSequence:En.emphasisSequence,start:{...e[r][1].start},end:h},i={type:c>1?En.strongText:En.emphasisText,start:{...e[o][1].end},end:{...e[r][1].start}},n={type:c>1?En.strong:En.emphasis,start:{...a.start},end:{...s.end}},e[o][1].end={...a.start},e[r][1].start={...s.end},u=[],e[o][1].end.offset-e[o][1].start.offset&&(u=yl(u,[["enter",e[o][1],t],["exit",e[o][1],t]])),u=yl(u,[["enter",n,t],["enter",a,t],["exit",a,t],["enter",i,t]]),t.parser.constructs.insideSpan.null,u=yl(u,If(t.parser.constructs.insideSpan.null,e.slice(o+1,r),t)),u=yl(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(p=2,u=yl(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):p=0,vl(e,o-1,r-o+3,u),r=o+u.length-p-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function Pae(e,t){let r=this.parser.constructs.attentionMarkers.null,{now:o,sliceSerialize:n,previous:i}=this,a=um(i)?dm(i,o(),n):i,s=Ci(a),c=new pm(a,o(),n),u=lm(s,c.value.bind(c),a),p;return m;function m(g){return g===Er.asterisk||Er.underscore,p=g,e.enter("attentionSequence"),h(g)}function h(g){if(g===p)return e.consume(g),h;let b=e.exit("attentionSequence"),T=Ci(cm(g)?mm(g,o(),n):g);let I=Hs(u),P=I||Pi(u),C=Hs(T),k=C||Pi(T),A=w3(u),z=!k||C&&(P||A)||r.includes(g),N=!P||I&&(k||Yc(T))||r.includes(a);return b._open=!!(p===Er.asterisk?z:z&&(hy(u)||!N)),b._close=!!(p===Er.asterisk?N:N&&(hy(T)||!z)),t(g)}}function nU(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function oU(){return{text:{[Er.asterisk]:gy,[Er.underscore]:gy},insideSpan:{null:[gy]}}}function iU(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(oU())}function k3(e){let t=(e||{}).singleTilde,r={name:"strikethrough",tokenize:n,resolveAll:o};return t==null&&(t=!0),{text:{[Er.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[Er.tilde]}};function o(i,a){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let c=s;for(;c--;)if(i[c][0]==="exit"&&i[c][1].type==="strikethroughSequenceTemporary"&&i[c][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[c][1].end.offset-i[c][1].start.offset){i[s][1].type="strikethroughSequence",i[c][1].type="strikethroughSequence";let u={type:"strikethrough",start:Object.assign({},i[c][1].start),end:Object.assign({},i[s][1].end)},p={type:"strikethroughText",start:Object.assign({},i[c][1].end),end:Object.assign({},i[s][1].start)},m=[["enter",u,a],["enter",i[c][1],a],["exit",i[c][1],a],["enter",p,a]],h=a.parser.constructs.insideSpan.null;h&&vl(m,m.length,0,If(h,i.slice(c+1,s),a)),vl(m,m.length,0,[["exit",p,a],["enter",i[s][1],a],["exit",i[s][1],a],["exit",u,a]]),vl(i,c-1,s-c+3,m),s=c+m.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type=En.data);return i}function n(i,a,s){let{now:c,sliceSerialize:u,previous:p}=this,m=um(p)?dm(p,c(),u):p,h=Ci(m),g=new pm(m,c(),u),b=lm(h,g.value.bind(g),m),T=this.events,I=0;return P;function P(k){return Er.tilde,m===Er.tilde&&T[T.length-1][1].type!==En.characterEscape?s(k):(i.enter("strikethroughSequenceTemporary"),C(k))}function C(k){let A=Ci(m);if(k===Er.tilde)return I>1?s(k):(i.consume(k),I++,C);if(I<2&&!t)return s(k);let z=i.exit("strikethroughSequenceTemporary"),N=Ci(cm(k)?mm(k,c(),u):k),B=Hs(b)||Pi(b),G=Hs(N)||Pi(N),F=Yc(b)||x3(A);return z._open=!G||N===Vo.attentionSideAfter&&(B||F),z._close=!B||A===Vo.attentionSideAfter&&(G||Yc(N)),a(k)}}}function aU(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(k3(e))}var Cae=new Set(["\u3002","\uFF0E","\uFF0C","\u3001","\uFF1F","\uFF01","\uFF1A","\uFF1B","\uFF08","\uFF09","\u3010","\u3011","\u300C","\u300D","\u300E","\u300F","\u3008","\u3009","\u300A","\u300B"]),Eae=/^(https?:\/\/|mailto:|www\.)/i,zae=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},Aae=e=>{let t=0;for(let r of e){if(Cae.has(r))return t;t+=r.length}return null},Mae=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),Rae=e=>({type:"text",value:e}),Nae=()=>e=>{u$(e,"link",(t,r,o)=>{if(!o||typeof r!="number"||!zae(t)||!Eae.test(t.url))return;let n=Aae(t.url);if(n===null||n===0)return;let i=t.url.slice(0,n),a=t.url.slice(n),s=Mae(i,t),c=Rae(a);return o.children.splice(r,1,s,c),r+1})};function Dae(){let e=[iU],t=[Nae,aU],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var sU=Dae();var zt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Oae(e){return M3(e)}function M3(e){return Array.isArray(e)?Lae(e):e instanceof RegExp?e:typeof e=="object"?jae(e):e}function Lae(e){let t=[];for(let r=0,o=e.length;r<o;r++)t[r]=M3(e[r]);return t}function jae(e){let t={};for(let r in e)t[r]=M3(e[r]);return t}function gU(e,...t){return t.forEach(r=>{for(let o in r)e[o]=r[o]}),e}function vU(e){let t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?vU(e.substring(0,e.length-1)):e.substr(~t+1)}var S3=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,vy=class{static hasCaptures(e){return e===null?!1:(S3.lastIndex=0,S3.test(e))}static replaceCaptures(e,t,r){return e.replace(S3,(o,n,i,a)=>{let s=r[parseInt(n||i,10)];if(s){let c=t.substring(s.start,s.end);for(;c[0]===".";)c=c.substring(1);switch(a){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return o})}};function yU(e,t){return e<t?-1:e>t?1:0}function bU(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let r=e.length,o=t.length;if(r===o){for(let n=0;n<r;n++){let i=yU(e[n],t[n]);if(i!==0)return i}return 0}return r-o}function lU(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 xU(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var wU=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}},gm=class{constructor(e,t,r){this._colorMap=e,this._defaults=t,this._root=r}static createFromRawTheme(e,t){return this.createFromParsedTheme(Fae(e),t)}static createFromParsedTheme(e,t){return Vae(e,t)}_cachedMatchRoot=new wU(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,o=this._cachedMatchRoot.get(t).find(n=>Uae(e.parent,n.parentScopes));return o?new _U(o.fontStyle,o.foreground,o.background):null}},I3=class yy{constructor(t,r){this.parent=t,this.scopeName=r}static push(t,r){for(let o of r)t=new yy(t,o);return t}static from(...t){let r=null;for(let o=0;o<t.length;o++)r=new yy(r,t[o]);return r}push(t){return new yy(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=[],o=this;for(;o&&o!==t;)r.push(o.scopeName),o=o.parent;return o===t?r.reverse():void 0}};function Uae(e,t){if(t.length===0)return!0;for(let r=0;r<t.length;r++){let o=t[r],n=!1;if(o===">"){if(r===t.length-1)return!1;o=t[++r],n=!0}for(;e&&!Bae(e.scopeName,o);){if(n)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Bae(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var _U=class{constructor(e,t,r){this.fontStyle=e,this.foregroundId=t,this.backgroundId=r}};function Fae(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,r=[],o=0;for(let n=0,i=t.length;n<i;n++){let a=t[n];if(!a.settings)continue;let s;if(typeof a.scope=="string"){let m=a.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),s=m.split(",")}else Array.isArray(a.scope)?s=a.scope:s=[""];let c=-1;if(typeof a.settings.fontStyle=="string"){c=0;let m=a.settings.fontStyle.split(" ");for(let h=0,g=m.length;h<g;h++)switch(m[h]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let u=null;typeof a.settings.foreground=="string"&&lU(a.settings.foreground)&&(u=a.settings.foreground);let p=null;typeof a.settings.background=="string"&&lU(a.settings.background)&&(p=a.settings.background);for(let m=0,h=s.length;m<h;m++){let b=s[m].trim().split(" "),T=b[b.length-1],I=null;b.length>1&&(I=b.slice(0,b.length-1),I.reverse()),r[o++]=new Zae(T,I,n,c,u,p)}}return r}var Zae=class{constructor(e,t,r,o,n,i){this.scope=e,this.parentScopes=t,this.index=r,this.fontStyle=o,this.foreground=n,this.background=i}},zr=(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))(zr||{});function Vae(e,t){e.sort((c,u)=>{let p=yU(c.scope,u.scope);return p!==0||(p=bU(c.parentScopes,u.parentScopes),p!==0)?p:c.index-u.index});let r=0,o="#000000",n="#ffffff";for(;e.length>=1&&e[0].scope==="";){let c=e.shift();c.fontStyle!==-1&&(r=c.fontStyle),c.foreground!==null&&(o=c.foreground),c.background!==null&&(n=c.background)}let i=new Gae(t),a=new _U(r,i.getId(o),i.getId(n)),s=new Hae(new $3(0,null,-1,0,0),[]);for(let c=0,u=e.length;c<u;c++){let p=e[c];s.insert(0,p.scope,p.parentScopes,p.fontStyle,i.getId(p.foreground),i.getId(p.background))}return new gm(i,a,s)}var Gae=class{_isFrozen;_lastColorId;
vendor: 34,272 bytes, lines 108-110
108_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)}},qae=Object.freeze([]),$3=class kU{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,r,o,n,i){this.scopeDepth=t,this.parentScopes=r||qae,this.fontStyle=o,this.foreground=n,this.background=i}clone(){return new kU(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let r=[];for(let o=0,n=t.length;o<n;o++)r[o]=t[o].clone();return r}acceptOverwrite(t,r,o,n){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,r!==-1&&(this.fontStyle=r),o!==0&&(this.foreground=o),n!==0&&(this.background=n)}},Hae=class P3{constructor(t,r=[],o={}){this._mainRule=t,this._children=o,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(t,r){if(t.scopeDepth!==r.scopeDepth)return r.scopeDepth-t.scopeDepth;let o=0,n=0;for(;t.parentScopes[o]===">"&&o++,r.parentScopes[n]===">"&&n++,!(o>=t.parentScopes.length||n>=r.parentScopes.length);){let i=r.parentScopes[n].length-t.parentScopes[o].length;if(i!==0)return i;o++,n++}return r.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let o=t.indexOf("."),n,i;if(o===-1?(n=t,i=""):(n=t.substring(0,o),i=t.substring(o+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}let r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(P3._cmpBySpecificity),r}insert(t,r,o,n,i,a){if(r===""){this._doInsertHere(t,o,n,i,a);return}let s=r.indexOf("."),c,u;s===-1?(c=r,u=""):(c=r.substring(0,s),u=r.substring(s+1));let p;this._children.hasOwnProperty(c)?p=this._children[c]:(p=new P3(this._mainRule.clone(),$3.cloneArr(this._rulesWithParentScopes)),this._children[c]=p),p.insert(t+1,u,o,n,i,a)}_doInsertHere(t,r,o,n,i){if(r===null){this._mainRule.acceptOverwrite(t,o,n,i);return}for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let c=this._rulesWithParentScopes[a];if(bU(c.parentScopes,r)===0){c.acceptOverwrite(t,o,n,i);return}}o===-1&&(o=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new $3(t,r,o,n,i))}},Js=class Jn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){let r=Jn.getLanguageId(t),o=Jn.getTokenType(t),n=Jn.getFontStyle(t),i=Jn.getForeground(t),a=Jn.getBackground(t);console.log({languageId:r,tokenType:o,fontStyle:n,foreground:i,background:a})}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,o,n,i,a,s){let c=Jn.getLanguageId(t),u=Jn.getTokenType(t),p=Jn.containsBalancedBrackets(t)?1:0,m=Jn.getFontStyle(t),h=Jn.getForeground(t),g=Jn.getBackground(t);return r!==0&&(c=r),o!==8&&(u=o),n!==null&&(p=n?1:0),i!==-1&&(m=i),a!==0&&(h=a),s!==0&&(g=s),(c<<0|u<<8|p<<10|m<<11|h<<15|g<<24)>>>0}};function xy(e,t){let r=[],o=Wae(e),n=o.next();for(;n!==null;){let c=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=o.next()}let u=a();if(r.push({matcher:u,priority:c}),n!==",")break;n=o.next()}return r;function i(){if(n==="-"){n=o.next();let c=i();return u=>!!c&&!c(u)}if(n==="("){n=o.next();let c=s();return n===")"&&(n=o.next()),c}if(cU(n)){let c=[];do c.push(n),n=o.next();while(cU(n));return u=>t(c,u)}return null}function a(){let c=[],u=i();for(;u;)c.push(u),u=i();return p=>c.every(m=>m(p))}function s(){let c=[],u=a();for(;u&&(c.push(u),n==="|"||n===",");){do n=o.next();while(n==="|"||n===",");u=a()}return p=>c.some(m=>m(p))}}function cU(e){return!!e&&!!e.match(/[\w\.:]+/)}function Wae(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=t.exec(e);return{next:()=>{if(!r)return null;let o=r[0];return r=t.exec(e),o}}}function SU(e){typeof e.dispose=="function"&&e.dispose()}var vm=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Jae=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Kae=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))}},Xae=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new vm(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Kae;for(let r of e)Yae(r,this.initialScopeName,this.repo,t);for(let r of t.references)if(r instanceof vm){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 Yae(e,t,r,o){let n=r.lookup(e.scopeName);if(!n){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}let i=r.lookup(t);e instanceof vm?by({baseGrammar:i,selfGrammar:n},o):C3(e.ruleName,{baseGrammar:i,selfGrammar:n,repository:n.repository},o);let a=r.injections(e.scopeName);if(a)for(let s of a)o.add(new vm(s))}function C3(e,t,r){if(t.repository&&t.repository[e]){let o=t.repository[e];wy([o],t,r)}}function by(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&wy(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&wy(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function wy(e,t,r){for(let o of e){if(r.visitedRule.has(o))continue;r.visitedRule.add(o);let n=o.repository?gU({},t.repository,o.repository):t.repository;Array.isArray(o.patterns)&&wy(o.patterns,{...t,repository:n},r);let i=o.include;if(!i)continue;let a=IU(i);switch(a.kind){case 0:by({...t,selfGrammar:t.baseGrammar},r);break;case 1:by(t,r);break;case 2:C3(a.ruleName,{...t,repository:n},r);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let c={baseGrammar:t.baseGrammar,selfGrammar:s,repository:n};a.kind===4?C3(a.ruleName,c,r):by(c,r)}else a.kind===4?r.add(new Jae(a.scopeName,a.ruleName)):r.add(new vm(a.scopeName));break}}}var Qae=class{kind=0},ese=class{kind=1},tse=class{constructor(e){this.ruleName=e}kind=2},rse=class{constructor(e){this.scopeName=e}kind=3},nse=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function IU(e){if(e==="$base")return new Qae;if(e==="$self")return new ese;let t=e.indexOf("#");if(t===-1)return new rse(e);if(t===0)return new tse(e.substring(1));{let r=e.substring(0,t),o=e.substring(t+1);return new nse(r,o)}}var ose=/\\(\d+)/,uU=/\\(\d+)/g;var ise=-1,TU=-2;var xm=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,r,o){this.$location=e,this.id=t,this._name=r||null,this._nameIsCapturing=vy.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=vy.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${vU(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:vy.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:vy.replaceCaptures(this._contentName,e,t)}},ase=class extends xm{retokenizeCapturedWithRuleId;constructor(e,t,r,o,n){super(e,t,r,o),this.retokenizeCapturedWithRuleId=n}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,o){throw new Error("Not supported!")}},sse=class extends xm{_match;captures;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,null),this._match=new ym(o,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,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new bm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dU=class extends xm{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n){super(e,t,r,o),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,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new bm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},E3=class extends xm{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,r,o,n,i,a,s,c,u){super(e,t,r,o),this._begin=new ym(n,this.id),this.beginCaptures=i,this._end=new ym(a||"\uFFFF",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,o){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,o)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new bm;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}},_y=class extends xm{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,r,o,n,i,a,s,c){super(e,t,r,o),this._begin=new ym(n,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new ym(a,TU),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.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,o){return this._getCachedCompiledPatterns(e).compileAG(e,r,o)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new bm;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,o){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,o)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new bm,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"\uFFFF"),this._cachedCompiledWhilePatterns}},$U=class Nr{static createCaptureRule(t,r,o,n,i){return t.registerRule(a=>new ase(r,a,o,n,i))}static getCompiledRuleId(t,r,o){return t.id||r.registerRule(n=>{if(t.id=n,t.match)return new sse(t.$vscodeTextmateLocation,t.id,t.name,t.match,Nr._compileCaptures(t.captures,r,o));if(typeof t.begin>"u"){t.repository&&(o=gU({},o,t.repository));let i=t.patterns;return typeof i>"u"&&t.include&&(i=[{include:t.include}]),new dU(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Nr._compilePatterns(i,r,o))}return t.while?new _y(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Nr._compileCaptures(t.beginCaptures||t.captures,r,o),t.while,Nr._compileCaptures(t.whileCaptures||t.captures,r,o),Nr._compilePatterns(t.patterns,r,o)):new E3(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Nr._compileCaptures(t.beginCaptures||t.captures,r,o),t.end,Nr._compileCaptures(t.endCaptures||t.captures,r,o),t.applyEndPatternLast,Nr._compilePatterns(t.patterns,r,o))}),t.id}static _compileCaptures(t,r,o){let n=[];if(t){let i=0;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10);s>i&&(i=s)}for(let a=0;a<=i;a++)n[a]=null;for(let a in t){if(a==="$vscodeTextmateLocation")continue;let s=parseInt(a,10),c=0;t[a].patterns&&(c=Nr.getCompiledRuleId(t[a],r,o)),n[s]=Nr.createCaptureRule(r,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,c)}}return n}static _compilePatterns(t,r,o){let n=[];if(t)for(let i=0,a=t.length;i<a;i++){let s=t[i],c=-1;if(s.include){let u=IU(s.include);switch(u.kind){case 0:case 1:c=Nr.getCompiledRuleId(o[s.include],r,o);break;case 2:let p=o[u.ruleName];p&&(c=Nr.getCompiledRuleId(p,r,o));break;case 3:case 4:let m=u.scopeName,h=u.kind===4?u.ruleName:null,g=r.getExternalGrammar(m,o);if(g)if(h){let b=g.repository[h];b&&(c=Nr.getCompiledRuleId(b,r,g.repository))}else c=Nr.getCompiledRuleId(g.repository.$self,r,g.repository);break}}else c=Nr.getCompiledRuleId(s,r,o);if(c!==-1){let u=r.getRule(c),p=!1;if((u instanceof dU||u instanceof E3||u instanceof _y)&&u.hasMissingPatterns&&u.patterns.length===0&&(p=!0),p)continue;n.push(c)}}return{patterns:n,hasMissingPatterns:(t?t.length:0)!==n.length}}},ym=class PU{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,r){if(t&&typeof t=="string"){let o=t.length,n=0,i=[],a=!1;for(let s=0;s<o;s++)if(t.charAt(s)==="\\"&&s+1<o){let u=t.charAt(s+1);u==="z"?(i.push(t.substring(n,s)),i.push("$(?!\\n)(?<!\\n)"),n=s+2):(u==="A"||u==="G")&&(a=!0),s++}this.hasAnchor=a,n===0?this.source=t:(i.push(t.substring(n,o)),this.source=i.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=ose.test(this.source):this.hasBackReferences=!1}clone(){return new PU(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 o=r.map(n=>t.substring(n.start,n.end));return uU.lastIndex=0,this.source.replace(uU,(n,i)=>xU(o[parseInt(i,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=[],o=[],n=[],i,a,s,c;for(i=0,a=this.source.length;i<a;i++)s=this.source.charAt(i),t[i]=s,r[i]=s,o[i]=s,n[i]=s,s==="\\"&&i+1<a&&(c=this.source.charAt(i+1),c==="A"?(t[i+1]="\uFFFF",r[i+1]="\uFFFF",o[i+1]="A",n[i+1]="A"):c==="G"?(t[i+1]="\uFFFF",r[i+1]="G",o[i+1]="\uFFFF",n[i+1]="G"):(t[i+1]=c,r[i+1]=c,o[i+1]=c,n[i+1]=c),i++);return{A0_G0:t.join(""),A0_G1:r.join(""),A1_G0:o.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}},bm=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 pU(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 o=this._items.map(n=>n.resolveAnchors(t,r));return new pU(e,o,this._items.map(n=>n.ruleId))}},pU=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(` 109`)}findNextMatchSync(e,t,r){let o=this.scanner.findNextMatchSync(e,t,r);return o?{ruleId:this.rules[o.index],captureIndices:o.captureIndices}:null}},T3=class{constructor(e,t){this.languageId=e,this.tokenType=t}},lse=class z3{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,r){this._defaultAttributes=new T3(t,8),this._embeddedLanguagesMatcher=new cse(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?z3._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new T3(0,0);_getBasicScopeAttributes=new wU(t=>{let r=this._scopeToLanguage(t),o=this._toStandardTokenType(t);return new T3(r,o)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){let r=t.match(z3.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/},cse=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,o])=>xU(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])}},FMe={InDebugMode:typeof process<"u"&&!!__PROCESS_ENV.VSCODE_TEXTMATE_DEBUG},CU=!1,mU=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function EU(e,t,r,o,n,i,a,s){let c=t.content.length,u=!1,p=-1;if(a){let g=use(e,t,r,o,n,i);n=g.stack,o=g.linePos,r=g.isFirstLine,p=g.anchorPosition}let m=Date.now();for(;!u;){if(s!==0&&Date.now()-m>s)return new mU(n,!0);h()}return new mU(n,!1);function h(){let g=dse(e,t,r,o,n,p);if(!g){i.produce(n,c),u=!0;return}let b=g.captureIndices,T=g.matchedRuleId,I=b&&b.length>0?b[0].end>o:!1;if(T===ise){let P=n.getRule(e);i.produce(n,b[0].start),n=n.withContentNameScopesList(n.nameScopesList),fm(e,t,r,n,i,P.endCaptures,b),i.produce(n,b[0].end);let C=n;if(n=n.parent,p=C.getAnchorPos(),!I&&C.getEnterPos()===o){n=C,i.produce(n,c),u=!0;return}}else{let P=e.getRule(T);i.produce(n,b[0].start);let C=n,k=P.getName(t.content,b),A=n.contentNameScopesList.pushAttributed(k,e);if(n=n.push(T,o,p,b[0].end===c,null,A,A),P instanceof E3){let z=P;fm(e,t,r,n,i,z.beginCaptures,b),i.produce(n,b[0].end),p=b[0].end;let N=z.getContentName(t.content,b),B=A.pushAttributed(N,e);if(n=n.withContentNameScopesList(B),z.endHasBackReferences&&(n=n.withEndRule(z.getEndWithResolvedBackReferences(t.content,b))),!I&&C.hasSameRuleAs(n)){n=n.pop(),i.produce(n,c),u=!0;return}}else if(P instanceof _y){let z=P;fm(e,t,r,n,i,z.beginCaptures,b),i.produce(n,b[0].end),p=b[0].end;let N=z.getContentName(t.content,b),B=A.pushAttributed(N,e);if(n=n.withContentNameScopesList(B),z.whileHasBackReferences&&(n=n.withEndRule(z.getWhileWithResolvedBackReferences(t.content,b))),!I&&C.hasSameRuleAs(n)){n=n.pop(),i.produce(n,c),u=!0;return}}else if(fm(e,t,r,n,i,P.captures,b),i.produce(n,b[0].end),n=n.pop(),!I){n=n.safePop(),i.produce(n,c),u=!0;return}}b[0].end>o&&(o=b[0].end,r=!1)}}function use(e,t,r,o,n,i){let a=n.beginRuleCapturedEOL?0:-1,s=[];for(let c=n;c;c=c.pop()){let u=c.getRule(e);u instanceof _y&&s.push({rule:u,stack:c})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:u,findOptions:p}=fse(c.rule,e,c.stack.endRule,r,o===a),m=u.findNextMatchSync(t,o,p);if(m){if(m.ruleId!==TU){n=c.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(i.produce(c.stack,m.captureIndices[0].start),fm(e,t,r,c.stack,i,c.rule.whileCaptures,m.captureIndices),i.produce(c.stack,m.captureIndices[0].end),a=m.captureIndices[0].end,m.captureIndices[0].end>o&&(o=m.captureIndices[0].end,r=!1))}else{n=c.stack.pop();break}}return{stack:n,linePos:o,anchorPosition:a,isFirstLine:r}}function dse(e,t,r,o,n,i){let a=pse(e,t,r,o,n,i),s=e.getInjections();if(s.length===0)return a;let c=mse(s,e,t,r,o,n,i);if(!c)return a;if(!a)return c;let u=a.captureIndices[0].start,p=c.captureIndices[0].start;return p<u||c.priorityMatch&&p===u?c:a}function pse(e,t,r,o,n,i){let a=n.getRule(e),{ruleScanner:s,findOptions:c}=zU(a,e,n.endRule,r,o===i),u=s.findNextMatchSync(t,o,c);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function mse(e,t,r,o,n,i,a){let s=Number.MAX_VALUE,c=null,u,p=0,m=i.contentNameScopesList.getScopeNames();for(let h=0,g=e.length;h<g;h++){let b=e[h];if(!b.matcher(m))continue;let T=t.getRule(b.ruleId),{ruleScanner:I,findOptions:P}=zU(T,t,null,o,n===a),C=I.findNextMatchSync(r,n,P);if(!C)continue;let k=C.captureIndices[0].start;if(!(k>=s)&&(s=k,c=C.captureIndices,u=C.ruleId,p=b.priority,s===n))break}return c?{priorityMatch:p===-1,captureIndices:c,matchedRuleId:u}:null}function zU(e,t,r,o,n){if(CU){let a=e.compile(t,r),s=AU(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileAG(t,r,o,n),findOptions:0}}function fse(e,t,r,o,n){if(CU){let a=e.compileWhile(t,r),s=AU(o,n);return{ruleScanner:a,findOptions:s}}return{ruleScanner:e.compileWhileAG(t,r,o,n),findOptions:0}}function AU(e,t){let r=0;return e||(r|=1),t||(r|=4),r}function fm(e,t,r,o,n,i,a){if(i.length===0)return;let s=t.content,c=Math.min(i.length,a.length),u=[],p=a[0].end;for(let m=0;m<c;m++){let h=i[m];if(h===null)continue;let g=a[m];if(g.length===0)continue;if(g.start>p)break;for(;u.length>0&&u[u.length-1].endPos<=g.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,g.start):n.produce(o,g.start),h.retokenizeCapturedWithRuleId){let T=h.getName(s,a),I=o.contentNameScopesList.pushAttributed(T,e),P=h.getContentName(s,a),C=I.pushAttributed(P,e),k=o.push(h.retokenizeCapturedWithRuleId,g.start,-1,!1,null,I,C),A=e.createOnigString(s.substring(0,g.end));EU(e,A,r&&g.start===0,g.start,k,n,!1,0),SU(A);continue}let b=h.getName(s,a);if(b!==null){let I=(u.length>0?u[u.length-1].scopes:o.contentNameScopesList).pushAttributed(b,e);u.push(new hse(I,g.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var hse=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function gse(e,t,r,o,n,i,a,s){return new yse(e,t,r,o,n,i,a,s)}function fU(e,t,r,o,n){let i=xy(t,ky),a=$U.getCompiledRuleId(r,o,n.repository);for(let s of i)e.push({debugSelector:t,matcher:s.matcher,ruleId:a,grammar:n,priority:s.priority})}function ky(e,t){if(t.length<e.length)return!1;let r=0;return e.every(o=>{for(let n=r;n<t.length;n++)if(vse(t[n],o))return r=n+1,!0;return!1})}function vse(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 yse=class{constructor(e,t,r,o,n,i,a,s){if(this._rootScopeName=e,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new lse(r,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=hU(t,null),this._injections=null,this._tokenTypeMatchers=[],n)for(let c of Object.keys(n)){let u=xy(c,ky);for(let p of u)this._tokenTypeMatchers.push({matcher:p.matcher,type:n[c]})}}_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,o=e.lookup(r);if(o){let n=o.injections;if(n)for(let a in n)fU(t,a,n[a],this,o);let i=this._grammarRepository.injections(r);i&&i.forEach(a=>{let s=this.getExternalGrammar(a);if(s){let c=s.injectionSelector;c&&fU(t,c,s,this,s)}})}return t.sort((n,i)=>n.priority-i.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]=hU(r,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,r=0){let o=this._tokenize(e,t,!1,r);return{tokens:o.lineTokens.getResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}tokenizeLine2(e,t,r=0){let o=this._tokenize(e,t,!0,r);return{tokens:o.lineTokens.getBinaryResult(o.ruleStack,o.lineLength),ruleStack:o.ruleStack,stoppedEarly:o.stoppedEarly}}_tokenize(e,t,r,o){this._rootId===-1&&(this._rootId=$U.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!t||t===A3.NULL){n=!0;let u=this._basicScopeAttributesProvider.getDefaultAttributes(),p=this.themeProvider.getDefaults(),m=Js.set(0,u.languageId,u.tokenType,null,p.fontStyle,p.foregroundId,p.backgroundId),h=this.getRule(this._rootId).getName(null,null),g;h?g=hm.createRootAndLookUpScopeName(h,m,this):g=hm.createRoot("unknown",m),t=new A3(null,this._rootId,-1,-1,!1,null,g,g)}else n=!1,t.reset();e=e+` 110`;let i=this.createOnigString(e),a=i.content.length,s=new xse(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=EU(this,i,n,0,t,s,!0,o);return SU(i),{lineLength:a,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function hU(e,t){return e=Oae(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 hm=class Go{constructor(t,r,o){this.parent=t,this.scopePath=r,this.tokenAttributes=o}static fromExtension(t,r){let o=t,n=t?.scopePath??null;for(let i of r)n=I3.push(n,i.scopeNames),o=new Go(o,n,i.encodedTokenAttributes);return o}static createRoot(t,r){return new Go(null,new I3(null,t),r)}static createRootAndLookUpScopeName(t,r,o){let n=o.getMetadataForScope(t),i=new I3(null,t),a=o.themeProvider.themeMatch(i),s=Go.mergeAttributes(r,n,a);return new Go(null,i,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Go.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,o){let n=-1,i=0,a=0;return o!==null&&(n=o.fontStyle,i=o.foregroundId,a=o.backgroundId),Js.set(t,r.languageId,r.tokenType,null,n,i,a)}pushAttributed(t,r){if(t===null)return this;if(t.indexOf(" ")===-1)return Go._pushAttributed(this,t,r);let o=t.split(/ /g),n=this;for(let i of o)n=Go._pushAttributed(n,i,r);return n}static _pushAttributed(t,r,o){let n=o.getMetadataForScope(r),i=t.scopePath.push(r),a=o.themeProvider.themeMatch(i),s=Go.mergeAttributes(t.tokenAttributes,n,a);return new Go(t,i,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){let r=[],o=this;for(;o&&o!==t;)r.push({encodedTokenAttributes:o.tokenAttributes,scopeNames:o.scopePath.getExtensionIfDefined(o.parent?.scopePath??null)}),o=o.parent;return o===t?r.reverse():void 0}},A3=class Ws{constructor(t,r,o,n,i,a,s,c){this.parent=t,this.ruleId=r,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=o,this._anchorPos=n}_stackElementBrand=void 0;static NULL=new Ws(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:Ws._equals(this,t)}static _equals(t,r){return t===r?!0:this._structuralEquals(t,r)?hm.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(){Ws._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,r,o,n,i,a,s){return new Ws(this,t,r,o,n,i,a,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 Ws(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 o=hm.fromExtension(t?.nameScopesList??null,r.nameScopesList);return new Ws(t,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,o,hm.fromExtension(o,r.contentNameScopesList))}},bse=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):xy(r,ky).map(o=>o.matcher)),this.unbalancedBracketScopes=t.flatMap(r=>xy(r,ky).map(o=>o.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}},xse=class{constructor(e,t,r,o){this.balancedBracketSelectors=o,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 o=e?.tokenAttributes??0,n=!1;if(this.balancedBracketSelectors?.matchesAlways&&(n=!0),this._tokenTypeOverrides.length>
vendor: 18,486 bytes, line 110
1100||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let i=e?.getScopeNames()??[];for(let a of this._tokenTypeOverrides)a.matcher(i)&&(o=Js.set(o,0,a.type,null,-1,0,0));this.balancedBracketSelectors&&(n=this.balancedBracketSelectors.match(i))}if(n&&(o=Js.set(o,0,8,n,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===o){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(o),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 o=0,n=this._binaryTokens.length;o<n;o++)r[o]=this._binaryTokens[o];return r}},wse=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,o,n){if(!this._grammars.has(e)){let i=this._rawGrammars.get(e);if(!i)return null;this._grammars.set(e,gse(e,i,t,r,o,n,this,this._onigLib))}return this._grammars.get(e)}},MU=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new wse(gm.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(gm.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 bse(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,o,n){let i=new Xae(this._syncRegistry,e);for(;i.Q.length>0;)i.Q.map(a=>this._loadSingleGrammar(a.scopeName)),i.processQueue();return this._grammarForScopeName(e,t,r,o,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,o=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,o)}_grammarForScopeName(e,t=0,r=null,o=null,n=null){return this._syncRegistry.grammarForScopeName(e,t,r,o,n)}},Sy=A3.NULL;function _m(e,t){let r=typeof e=="string"?{}:{...e.colorReplacements},o=typeof e=="string"?e:e.name;for(let[n,i]of Object.entries(t?.colorReplacements||{}))typeof i=="string"?r[n]=i:n===o&&Object.assign(r,i);return r}function Ei(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function LU(e){return Array.isArray(e)?e:[e]}async function R3(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function km(e){return!e||["plaintext","txt","text","plain"].includes(e)}function jU(e){return e==="ansi"||km(e)}function Sm(e){return e==="none"}function UU(e){return Sm(e)}function Qc(e,t=!1){if(e.length===0)return[["",0]];let r=e.split(/(\r?\n)/g),o=0,n=[];for(let i=0;i<r.length;i+=2){let a=t?r[i]+(r[i+1]||""):r[i];n.push([a,o]),o+=r[i].length,o+=r[i+1]?.length||0}return n}var RU={light:"#333333",dark:"#bbbbbb"},NU={light:"#fffffe",dark:"#1e1e1e"},DU="__shiki_resolved";function Iy(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:o}=t;if(!r||!o){let s=t.settings?t.settings.find(c=>!c.name&&!c.scope):void 0;s?.settings?.foreground&&(o=s.settings.foreground),s?.settings?.background&&(r=s.settings.background),!o&&t?.colors?.["editor.foreground"]&&(o=t.colors["editor.foreground"]),!r&&t?.colors?.["editor.background"]&&(r=t.colors["editor.background"]),o||(o=t.type==="light"?RU.light:RU.dark),r||(r=t.type==="light"?NU.light:NU.dark),t.fg=o,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,i=new Map;function a(s){if(i.has(s))return i.get(s);n+=1;let c=`#${n.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${c}`]?a(s):(i.set(s,c),c)}t.settings=t.settings.map(s=>{let c=s.settings?.foreground&&!s.settings.foreground.startsWith("#"),u=s.settings?.background&&!s.settings.background.startsWith("#");if(!c&&!u)return s;let p={...s,settings:{...s.settings}};if(c){let m=a(s.settings.foreground);t.colorReplacements[m]=s.settings.foreground,p.settings.foreground=m}if(u){let m=a(s.settings.background);t.colorReplacements[m]=s.settings.background,p.settings.background=m}return p});for(let s of Object.keys(t.colors||{}))if((s==="editor.foreground"||s==="editor.background"||s.startsWith("terminal.ansi"))&&!t.colors[s]?.startsWith("#")){let c=a(t.colors[s]);t.colorReplacements[c]=t.colors[s],t.colors[s]=c}return Object.defineProperty(t,DU,{enumerable:!1,writable:!1,value:!0}),t}async function BU(e){return Array.from(new Set((await Promise.all(e.filter(t=>!jU(t)).map(async t=>await R3(t).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function FU(e){return(await Promise.all(e.map(async t=>UU(t)?null:Iy(await R3(t))))).filter(t=>!!t)}function ZU(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 zt(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var _se=class extends MU{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,r,o={}){super(e),this._resolver=e,this._themes=t,this._langs=r,this._alias=o,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=Iy(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=gm.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=ZU(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 o=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(o.name=e.name,this._resolvedGrammars.set(e.name,o),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 o of e)this.resolveEmbeddedLanguages(o);let t=Array.from(this._langGraph.entries()),r=t.filter(([o,n])=>!n);if(r.length){let o=t.filter(([n,i])=>i?(i.embeddedLanguages||i.embeddedLangs)?.some(a=>r.map(([s])=>s).includes(a)):!1).filter(n=>!r.includes(n));throw new zt(`Missing languages ${r.map(([n])=>`\`${n}\``).join(", ")}, required by ${o.map(([n])=>`\`${n}\``).join(", ")}`)}for(let[o,n]of t)this._resolver.addLanguage(n);for(let[o,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))}},kse=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 o=1;o<=t.length;o++){let n=t.slice(0,o).join(".");r=[...r,...this._injections.get(n)||[]]}return r}},wm=0;function N3(e){wm+=1,e.warnings!==!1&&wm>=10&&wm%10===0&&console.warn(`[Shiki] ${wm} 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 zt("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),o=(e.themes||[]).flat(1).map(Iy),n=new _se(new kse(e.engine,r),o,r,e.langAlias),i;function a(C){return ZU(C,e.langAlias)}function s(C){I();let k=n.getGrammar(typeof C=="string"?C:C.name);if(!k)throw new zt(`Language \`${C}\` not found, you may need to load it first`);return k}function c(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};I();let k=n.getTheme(C);if(!k)throw new zt(`Theme \`${C}\` not found, you may need to load it first`);return k}function u(C){I();let k=c(C);return i!==C&&(n.setTheme(k),i=C),{theme:k,colorMap:n.getColorMap()}}function p(){return I(),n.getLoadedThemes()}function m(){return I(),n.getLoadedLanguages()}function h(...C){I(),n.loadLanguages(C.flat(1))}async function g(...C){return h(await BU(C))}function b(...C){I();for(let k of C.flat(1))n.loadTheme(k)}async function T(...C){return I(),b(await FU(C))}function I(){if(t)throw new zt("Shiki instance has been disposed")}function P(){t||(t=!0,n.dispose(),wm-=1)}return{setTheme:u,getTheme:c,getLanguage:s,getLoadedThemes:p,getLoadedLanguages:m,resolveLangAlias:a,loadLanguage:g,loadLanguageSync:h,loadTheme:T,loadThemeSync:b,dispose:P,[Symbol.dispose]:P}}async function D3(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,r,o]=await Promise.all([FU(e.themes||[]),BU(e.langs||[]),e.engine]);return N3({...e,themes:t,langs:r,engine:o})}var VU=new WeakMap;function Im(e,t){VU.set(e,t)}function eu(e){return VU.get(e)}var Ty=class GU{_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 GU(Object.fromEntries(LU(r).map(o=>[o,Sy])),t)}constructor(...t){if(t.length===2){let[r,o]=t;this.lang=o,this._stacks=r}else{let[r,o,n]=t;this.lang=o,this._stacks={[n]:r}}}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return Sse(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Sse(e){let t=[],r=new Set;function o(n){if(r.has(n))return;r.add(n);let i=n?.nameScopesList?.scopeName;i&&t.push(i),n.parent&&o(n.parent)}return o(e),t}function Ise(e,t){if(!(e instanceof Ty))throw new zt("Invalid grammar state");return e.getInternalStack(t)}function O3(e,t,r={}){let{theme:o=e.getLoadedThemes()[0]}=r;if(km(e.resolveLangAlias(r.lang||"text"))||Sm(o))return Qc(t).map(s=>[{content:s[0],offset:s[1]}]);let{theme:n,colorMap:i}=e.setTheme(o),a=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==a.name)throw new zt(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${a.name}"`);if(!r.grammarState.themes.includes(n.name))throw new zt(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${n.name}"`)}return HU(t,a,n,i,r)}function qU(...e){if(e.length===2)return eu(e[1]);let[t,r,o={}]=e,{lang:n="text",theme:i=t.getLoadedThemes()[0]}=o;if(km(n)||Sm(i))throw new zt("Plain language does not have grammar state");if(n==="ansi")throw new zt("ANSI language does not have grammar state");let{theme:a,colorMap:s}=t.setTheme(i),c=t.getLanguage(n);return new Ty(L3(r,c,a,s,o).stateStack,c.name,a.name)}function HU(e,t,r,o,n){let i=L3(e,t,r,o,n),a=new Ty(i.stateStack,t.name,r.name);return Im(i.tokens,a),i.tokens}function L3(e,t,r,o,n){let i=_m(r,n),{tokenizeMaxLineLength:a=0,tokenizeTimeLimit:s=500}=n,c=Qc(e),u=n.grammarState?Ise(n.grammarState,r.name)??Sy:n.grammarContextCode!=null?L3(n.grammarContextCode,t,r,o,{...n,grammarState:void 0,grammarContextCode:void 0}).stateStack:Sy,p=[],m=[];for(let h=0,g=c.length;h<g;h++){let[b,T]=c[h];if(b===""){p=[],m.push([]);continue}if(a>0&&b.length>=a){p=[],m.push([{content:b,offset:T,color:"",fontStyle:0}]);continue}let I,P,C;n.includeExplanation&&(I=t.tokenizeLine(b,u,s),P=I.tokens,C=0);let k=t.tokenizeLine2(b,u,s),A=k.tokens.length/2;for(let z=0;z<A;z++){let N=k.tokens[2*z],B=z+1<A?k.tokens[2*z+2]:b.length;if(N===B)continue;let G=k.tokens[2*z+1],F=Ei(o[Js.getForeground(G)],i),W=Js.getFontStyle(G),ue={content:b.substring(N,B),offset:T+N,color:F,fontStyle:W};if(n.includeExplanation){let de=[];if(n.includeExplanation!=="scopeName")for(let $e of r.settings){let Fe;switch(typeof $e.scope){case"string":Fe=$e.scope.split(/,/).map(pe=>pe.trim());break;case"object":Fe=$e.scope;break;default:continue}de.push({settings:$e,selectors:Fe.map(pe=>pe.split(/ /))})}ue.explanation=[];let ft=0;for(;N+ft<B;){let $e=P[C],Fe=b.substring($e.startIndex,$e.endIndex);ft+=Fe.length,ue.explanation.push({content:Fe,scopes:n.includeExplanation==="scopeName"?Tse($e.scopes):$se(de,$e.scopes)}),C+=1}}p.push(ue)}m.push(p),p=[],u=k.ruleStack}return{tokens:m,stateStack:u}}function Tse(e){return e.map(t=>({scopeName:t}))}function $se(e,t){let r=[];for(let o=0,n=t.length;o<n;o++){let i=t[o];r[o]={scopeName:i,themeMatches:Cse(e,i,t.slice(0,o))}}return r}function OU(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Pse(e,t,r){if(!OU(e[e.length-1],t))return!1;let o=e.length-2,n=r.length-1;for(;o>=0&&n>=0;)OU(e[o],r[n])&&(o-=1),n-=1;return o===-1}function Cse(e,t,r){let o=[];for(let{selectors:n,settings:i}of e)for(let a of n)if(Pse(a,t,r)){o.push(i);break}return o}function $y(e,t,r,o=O3){let n=Object.entries(r.themes).filter(u=>u[1]).map(u=>({color:u[0],theme:u[1]})),i=n.map(u=>{let p=o(e,t,{...r,theme:u.theme});return{tokens:p,state:eu(p),theme:typeof u.theme=="string"?u.theme:u.theme.name}}),a=Ese(...i.map(u=>u.tokens)),s=a[0].map((u,p)=>u.map((m,h)=>{let g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in r&&r.includeExplanation&&(g.explanation=m.explanation),a.forEach((b,T)=>{let{content:I,explanation:P,offset:C,...k}=b[p][h];g.variants[n[T].color]=k}),g})),c=i[0].state?new Ty(Object.fromEntries(i.map(u=>[u.theme,u.state?.getInternalStack(u.theme)])),i[0].state.lang):void 0;return c&&Im(s,c),s}function Ese(...e){let t=e.map(()=>[]),r=e.length;for(let o=0;o<e[0].length;o++){let n=e.map(c=>c[o]),i=t.map(()=>[]);t.forEach((c,u)=>c.push(i[u]));let a=n.map(()=>0),s=n.map(c=>c[0]);for(;s.every(c=>c);){let c=Math.min(...s.map(u=>u.content.length));for(let u=0;u<r;u++){let p=s[u];p.content.length===c?(i[u].push(p),a[u]+=1,s[u]=n[u][a[u]]):(i[u].push({...p,content:p.content.slice(0,c)}),s[u]={...p,content:p.content.slice(c),offset:p.offset+c})}}}return t}var zse=/["&'<>`]/g,Ase=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Mse=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Rse=/[|\\{}()[\]^$+*?.]/g,WU=new WeakMap;function JU(e,t){if(e=e.replace(t.subset?Nse(t.subset):zse,o),t.subset||t.escapeOnly)return e;return e.replace(Ase,r).replace(Mse,o);function r(n,i,a){return t.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,a.charCodeAt(i+2),t)}function o(n,i,a){return t.format(n.charCodeAt(0),a.charCodeAt(i+1),t)}}function Nse(e){let t=WU.get(e);return t||(t=Dse(e),WU.set(e,t)),t}function Dse(e){let t=[],r=-1;for(;++r<e.length;)t.push(e[r].replace(Rse,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}var Ose=/[\dA-Fa-f]/;function KU(e,t,r){let o="&#x"+e.toString(16).toUpperCase();return r&&t&&!Ose.test(String.fromCharCode(t))?o:o+";"}var Lse=/\d/;function XU(e,t,r){let o="&#"+String(e);return r&&t&&!Lse.test(String.fromCharCode(t))?o:o+";"}var YU=["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
110h","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 Py={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 QU=["cent","copy","divide","gt","lt","not","para","times"];var eB={}.hasOwnProperty,j3={},Cy;for(Cy in Py)eB.call(Py,Cy)&&(j3[Py[Cy]]=Cy);var jse=/[^\dA-Za-z]/;function tB(e,t,r,o){let n=String.fromCharCode(e);if(eB.call(j3,n)){let i=j3[n],a="&"+i;return r&&YU.includes(i)&&!QU.includes(i)&&(!o||t&&t!==61&&jse.test(String.fromCharCode(t)))?a:a+";"}return""}function rB(e,t,r){let o=KU(e,t,r.omitOptionalSemicolons),n;if((r.useNamedReferences||r.useShortestReferences)&&(n=tB(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!n)&&r.useShortestReferences){let i=XU(e,t,r.omitOptionalSemicolons);i.length<o.length&&(o=i)}return n&&(!r.useShortestReferences||n.length<o.length)?n:o}function zi(e,t){return JU(e,Object.assign({format:rB},t))}var Use=/^>|^->|<!--|-->|--!>|<!-$/g,Bse=[">"],Fse=["<",">"];function nB(e,t,r,o){return o.settings.bogusComments?"<?"+zi(e.value,Object.assign({},o.settings.characterReferences,{subset:Bse}))+">":"<!--"+e.value.replace(Use,n)+"-->";function n(i){return zi(i,Object.assign({},o.settings.characterReferences,{subset:Fse}))}}function oB(e,t,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}
vendor: 6,188 bytes, lines 110-118
110var rr=iB(1),U3=iB(-1),Zse=[];function iB(e){return t;function t(r,o,n){let i=r?r.children:Zse,a=(o||0)+e,s=i[a];if(!n)for(;s&&bl(s);)a+=e,s=i[a];return s}}var Vse={}.hasOwnProperty;function Ey(e){return t;function t(r,o,n){return Vse.call(e,r.tagName)&&e[r.tagName](r,o,n)}}var Tm=Ey({body:qse,caption:B3,colgroup:B3,dd:Kse,dt:Jse,head:B3,html:Gse,li:Wse,optgroup:Xse,option:Yse,p:Hse,rp:aB,rt:aB,tbody:ele,td:sB,tfoot:tle,th:sB,thead:Qse,tr:rle});function B3(e,t,r){let o=rr(r,t,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&bl(o.value.charAt(0)))}function Gse(e,t,r){let o=rr(r,t);return!o||o.type!=="comment"}function qse(e,t,r){let o=rr(r,t);return!o||o.type!=="comment"}function Hse(e,t,r){let o=rr(r,t);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.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 Wse(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&o.tagName==="li"}function Jse(e,t,r){let o=rr(r,t);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Kse(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function aB(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Xse(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&o.tagName==="optgroup"}function Yse(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Qse(e,t,r){let o=rr(r,t);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function ele(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function tle(e,t,r){return!rr(r,t)}function rle(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&o.tagName==="tr"}function sB(e,t,r){let o=rr(r,t);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}var lB=Ey({body:ile,colgroup:ale,head:ole,html:nle,tbody:sle});function nle(e){let t=rr(e,-1);return!t||t.type!=="comment"}function ole(e){let t=new Set;for(let o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(t.has(o.tagName))return!1;t.add(o.tagName)}let r=e.children[0];return!r||r.type==="element"}function ile(e){let t=rr(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&bl(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function ale(e,t,r){let o=U3(r,t),n=rr(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Tm(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function sle(e,t,r){let o=U3(r,t),n=rr(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Tm(o,r.children.indexOf(o),r)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}var zy={name:[[` 111\f\r &/=>`.split(""),` 112\f\r "&'/=>\``.split("")],[`\0 113\f\r "&'/<=>`.split(""),`\0 114\f\r "&'/<=>\``.split("")]],unquoted:[[` 115\f\r &>`.split(""),`\0 116\f\r "&'<=>\``.split("")],[`\0 117\f\r "&'<=>\``.split(""),`\0 118\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function cB(e,t,r,o){let n=o.schema,i=n.space==="svg"?!1:o.settings.omitOptionalTags,a=n.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;n.space==="html"&&e.tagName==="svg"&&(o.schema=Tf);let u=lle(o,e.properties),p=o.all(n.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=n,p&&(a=!1),(u||!i||!lB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),a&&(n.space==="svg"||o.settings.closeSelfClosing)&&(c=u.charAt(u.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(p),!a&&(!i||!Tm(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function lle(e,t){let r=[],o=-1,n;if(t){for(n in t)if(t[n]!==null&&t[n]!==void 0){let i=cle(e,n,t[n]);i&&r.push(i)}}for(;++o<r.length;){let i=e.settings.tightAttributes?r[o].charAt(r[o].length-1):void 0;o!==r.length-1&&i!=='"'&&i!=="'"&&(r[o]+=" ")}return r.join("")}function cle(e,t,r){let o=p$(e.schema,t),n=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,i=e.settings.allowDangerousCharacters?0:1,a=e.quote,s;if(o.overloadedBoolean&&(r===o.attribute||r==="")?r=!0:(o.boolean||o.overloadedBoolean)&&(typeof r!="string"||r===o.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";let c=zi(o.attribute,Object.assign({},e.settings.characterReferences,{subset:zy.name[n][i]}));return r===!0||(r=Array.isArray(r)?(o.commaSeparated?h$:g$)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?c:(e.settings.preferUnquoted&&(s=zi(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:zy.unquoted[n][i]}))),s!==r&&(e.settings.quoteSmart&&b1(r,a)>b1(r,e.alternative)&&(a=e.alternative),s=a+zi(r,Object.assign({},e.settings.characterReferences,{subset:(a==="'"?zy.single:zy.double)[n][i],attribute:!0}))+a),c+(s&&"="+s))}var ule=["<","&"];function Ay(e,t,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:zi(e.value,Object.assign({},o.settings.characterReferences,{subset:ule}))}function uB(e,t,r,o){return o.settings.allowDangerousHtml?e.value:Ay(e,t,r,o)}function dB(e,t,r,o){return o.all(e)}var pB=f$("type",{invalid:dle,unknown:ple,handlers:{comment:nB,doctype:
vendor: 9,610 bytes, line 118
118oB,element:cB,raw:uB,root:dB,text:Ay}});function dle(e){throw new Error("Expected node, not `"+e+"`")}function ple(e){let t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}var mle={},fle={},hle=[];function F3(e,t){let r=t||mle,o=r.quote||'"',n=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:gle,all:vle,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||d$,characterReferences:r.characterReferences||fle,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?Tf:m$,quote:o,alternative:n}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function gle(e,t,r){return pB(e,t,r,this)}function vle(e){let t=[],r=e&&e.children||hle,o=-1;for(;++o<r.length;)t[o]=this.one(r[o],o,e);return t.join("")}function hB(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 o of r)o&&!e.properties.class.includes(o)&&e.properties.class.push(o);return e}function yle(e){let t=Qc(e,!0).map(([n])=>n);function r(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=n,a=0;for(let s of t){if(i<s.length)break;i-=s.length,a++}return{line:a,character:i}}function o(n,i){let a=0;for(let s=0;s<n;s++)a+=t[s].length;return a+=i,a}return{lines:t,indexToPos:r,posToIndex:o}}var q3="light-dark()",ble=["color","background-color"];function xle(e,t){let r=0,o=[];for(let n of t)n>r&&o.push({...e,content:e.content.slice(r,n),offset:e.offset+r}),r=n;return r<e.content.length&&o.push({...e,content:e.content.slice(r),offset:e.offset+r}),o}function wle(e,t){let r=Array.from(t instanceof Set?t:new Set(t)).sort((o,n)=>o-n);return r.length?e.map(o=>o.flatMap(n=>{let i=r.filter(a=>n.offset<a&&a<n.offset+n.content.length).map(a=>a-n.offset).sort((a,s)=>a-s);return i.length?xle(n,i):n})):e}function _le(e,t,r,o,n="css-vars"){let i={content:e.content,explanation:e.explanation,offset:e.offset},a=t.map(p=>My(e.variants[p])),s=new Set(a.flatMap(p=>Object.keys(p))),c={},u=(p,m)=>{let h=m==="color"?"":m==="background-color"?"-bg":`-${m}`;return r+t[p]+(m==="color"?"":h)};return a.forEach((p,m)=>{for(let h of s){let g=p[h]||"inherit";if(m===0&&o&&ble.includes(h))if(o===q3&&a.length>1){let b=t.findIndex(I=>I==="light"),T=t.findIndex(I=>I==="dark");if(b===-1||T===-1)throw new zt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[h]=`light-dark(${a[b][h]||"inherit"}, ${a[T][h]||"inherit"})`,n==="css-vars"&&(c[u(m,h)]=g)}else c[h]=g;else n==="css-vars"&&(c[u(m,h)]=g)}}),i.htmlStyle=c,i}function My(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zr.Italic&&(t["font-style"]="italic"),e.fontStyle&zr.Bold&&(t["font-weight"]="bold");let r=[];e.fontStyle&zr.Underline&&r.push("underline"),e.fontStyle&zr.Strikethrough&&r.push("line-through"),r.length&&(t["text-decoration"]=r.join(" "))}return t}function V3(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r}`).join(";")}function kle(){let e=new WeakMap;function t(r){if(!e.has(r.meta)){let i=function(s){if(typeof s=="number"){if(s<0||s>r.source.length)throw new zt(`Invalid decoration offset: ${s}. Code length: ${r.source.length}`);return{...n.indexToPos(s),offset:s}}else{let c=n.lines[s.line];if(c===void 0)throw new zt(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${n.lines.length}`);let u=s.character;if(u<0&&(u=c.length+u),u<0||u>c.length)throw new zt(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${c.length}`);return{...s,character:u,offset:n.posToIndex(s.line,u)}}};var o=i;let n=yle(r.source),a=(r.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));Sle(a),e.set(r.meta,{decorations:a,converter:n,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return wle(r,t(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]))},code(r){if(!this.options.decorations?.length)return;let o=t(this),n=Array.from(r.children).filter(p=>p.type==="element"&&p.tagName==="span");if(n.length!==o.converter.lines.length)throw new zt(`Number of lines in code element (${n.length}) does not match the number of lines in the source (${o.converter.lines.length}). Failed to apply decorations.`);function i(p,m,h,g){let b=n[p],T="",I=-1,P=-1;if(m===0&&(I=0),h===0&&(P=0),h===Number.POSITIVE_INFINITY&&(P=b.children.length),I===-1||P===-1)for(let k=0;k<b.children.length;k++)T+=gB(b.children[k]),I===-1&&T.length===m&&(I=k+1),P===-1&&T.length===h&&(P=k+1);if(I===-1)throw new zt(`Failed to find start index for decoration ${JSON.stringify(g.start)}`);if(P===-1)throw new zt(`Failed to find end index for decoration ${JSON.stringify(g.end)}`);let C=b.children.slice(I,P);if(!g.alwaysWrap&&C.length===b.children.length)s(b,g,"line");else if(!g.alwaysWrap&&C.length===1&&C[0].type==="element")s(C[0],g,"token");else{let k={type:"element",tagName:"span",properties:{},children:C};s(k,g,"wrapper"),b.children.splice(I,C.length,k)}}function a(p,m){n[p]=s(n[p],m,"line")}function s(p,m,h){let g=m.properties||{},b=m.transform||(T=>T);return p.tagName=m.tagName||"span",p.properties={...p.properties,...g,class:p.properties.class},m.properties?.class&&hB(p,m.properties.class),p=b(p,h)||p,p}let c=[],u=o.decorations.sort((p,m)=>m.start.offset-p.start.offset||p.end.offset-m.end.offset);for(let p of u){let{start:m,end:h}=p;if(m.line===h.line)i(m.line,m.character,h.character,p);else if(m.line<h.line){i(m.line,m.character,Number.POSITIVE_INFINITY,p);for(let g=m.line+1;g<h.line;g++)c.unshift(()=>a(g,p));i(h.line,0,h.character,p)}}c.forEach(p=>p())}}}function Sle(e){for(let t=0;t<e.length;t++){let r=e[t];if(r.start.offset>r.end.offset)throw new zt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let o=t+1;o<e.length;o++){let n=e[o],i=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=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,c=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset;if(i||a||s||c){if(i&&a||s&&c||s&&r.start.offset===r.end.offset||a&&n.start.offset===n.end.offset)continue;throw new zt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(n.start)} intersect.`)}}}}function gB(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(gB).join(""):""}var Ile=[kle()];function Ry(e){let t=Tle(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Ile]}function Tle(e){let t=[],r=[],o=[];for(let n of e)switch(n.enforce){case"pre":t.push(n);break;case"post":r.push(n);break;default:o.push(n)}return{pre:t,post:r,normal:o}}var Ks=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Z3={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function $le(e,t){let r=e.indexOf("\x1B",t);if(r!==-1&&e[r+1]==="["){let o=e.indexOf("m",r);if(o!==-1)return{sequence:e.substring(r+2,o).split(";"),startPosition:r,position:o+1}}return{position:e.length}}function mB(e){let t=e.shift();if(t==="2"){let r=e.splice(0,3).map(o=>Number.parseInt(o));return r.length!==3||r.some(o=>Number.isNaN(o))?void 0:{type:"rgb",rgb:r}}else if(t==="5"){let r=e.shift();if(r)return{type:"table",index:Number(r)}}}function Ple(e){let t=[];for(;e.length>0;){let r=e.shift();if(!r)continue;let o=Number.parseInt(r);if(!Number.isNaN(o))if(o===0)t.push({type:"resetAll"});else if(o<=9)Z3[o]&&t.push({type:"setDecoration",value:Z3[o]});else if(o<=29){let n=Z3[o-20];n&&(t.push({type:"resetDecoration",value:n}),n==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(o<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ks[o-30]}});else if(o===38){let n=mB(e);n&&t.push({type:"setForegroundColor",value:n})}else if(o===39)t.push({type:"resetForegroundColor"});else if(o<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ks[o-40]}});else if(o===48){let n=mB(e);n&&t.push({type:"setBackgroundColor",value:n})}else o===49?t.push({type:"resetBackgroundColor"}):o===53?t.push({type:"setDecoration",value:"overline"}):o===55?t.push({type:"resetDecoration",value:"overline"}):o>=90&&o<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ks[o-90+8]}}):o>=100&&o<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ks[o-100+8]}})}return t}function Cle(){let e=null,t=null,r=new Set;return{parse(o){let n=[],i=0;do{let a=$le(o,i),s=a.sequence?o.substring(i,a.startPosition):o.substring(i);if(s.length>0&&n.push({value:s,foreground:e,background:t,decorations:new Set(r)}),a.sequence){let c=Ple(a.sequence);for(let u of c)u.type==="resetAll"?(e=null,t=null,r.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroun
118dColor"?t=null:u.type==="resetDecoration"&&r.delete(u.value);for(let u of c)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&r.add(u.value)}i=a.position}while(i<o.length);return n}}}var Ele={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 zle(e=Ele){function t(s){return e[s]}function r(s){return`#${s.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let o;function n(){if(o)return o;o=[];for(let u=0;u<Ks.length;u++)o.push(t(Ks[u]));let s=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let p=0;p<6;p++)for(let m=0;m<6;m++)o.push(r([s[u],s[p],s[m]]));let c=8;for(let u=0;u<24;u++,c+=10)o.push(r([c,c,c]));return o}function i(s){return n()[s]}function a(s){switch(s.type){case"named":return t(s.name);case"rgb":return r(s.rgb);case"table":return i(s.index)}}return{value:a}}var Ale={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 Mle(e,t,r){let o=_m(e,r),n=Qc(t),i=zle(Object.fromEntries(Ks.map(s=>{let c=`terminal.ansi${s[0].toUpperCase()}${s.substring(1)}`;return[s,e.colors?.[c]||Ale[s]]}))),a=Cle();return n.map(s=>a.parse(s[0]).map(c=>{let u,p;c.decorations.has("reverse")?(u=c.background?i.value(c.background):e.bg,p=c.foreground?i.value(c.foreground):e.fg):(u=c.foreground?i.value(c.foreground):e.fg,p=c.background?i.value(c.background):void 0),u=Ei(u,o),p=Ei(p,o),c.decorations.has("dim")&&(u=Rle(u));let m=zr.None;return c.decorations.has("bold")&&(m|=zr.Bold),c.decorations.has("italic")&&(m|=zr.Italic),c.decorations.has("underline")&&(m|=zr.Underline),c.decorations.has("strikethrough")&&(m|=zr.Strikethrough),{content:c.value,offset:s[1],color:u,bgColor:p,fontStyle:m}}))}function Rle(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let o=t[1];if(o.length===8){let n=Math.round(Number.parseInt(o.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${o.slice(0,6)}${n}`}else{if(o.length===6)return`#${o}80`;if(o.length===4){let n=o[0],i=o[1],a=o[2],s=o[3];return`#${n}${n}${i}${i}${a}${a}${Math.round(Number.parseInt(`${s}${s}`,16)/2).toString(16).padStart(2,"0")}`}else if(o.length===3){let n=o[0],i=o[1],a=o[2];return`#${n}${n}${i}${i}${a}${a}80`}}}let r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function G3(e,t,r={}){let o=e.resolveLangAlias(r.lang||"text"),{theme:n=e.getLoadedThemes()[0]}=r;if(!km(o)&&!Sm(n)&&o==="ansi"){let{theme:i}=e.setTheme(n);return Mle(i,t,r)}return O3(e,t,r)}function Ny(e,t,r){let o,n,i,a,s,c;if("themes"in r){let{defaultColor:u="light",cssVariablePrefix:p="--shiki-",colorsRendering:m="css-vars"}=r,h=Object.entries(r.themes).filter(P=>P[1]).map(P=>({color:P[0],theme:P[1]})).sort((P,C)=>P.color===u?-1:C.color===u?1:0);if(h.length===0)throw new zt("`themes` option must not be empty");let g=$y(e,t,r,G3);if(c=eu(g),u&&q3!==u&&!h.find(P=>P.color===u))throw new zt(`\`themes\` option must contain the defaultColor key \`${u}\``);let b=h.map(P=>e.getTheme(P.theme)),T=h.map(P=>P.color);i=g.map(P=>P.map(C=>_le(C,T,p,u,m))),c&&Im(i,c);let I=h.map(P=>_m(P.theme,r));n=fB(h,b,I,p,u,"fg",m),o=fB(h,b,I,p,u,"bg",m),a=`shiki-themes ${b.map(P=>P.name).join(" ")}`,s=u?void 0:[n,o].join(";")}else if("theme"in r){let u=_m(r.theme,r);i=G3(e,t,r);let p=e.getTheme(r.theme);o=Ei(p.bg,u),n=Ei(p.fg,u),a=p.name,c=eu(i)}else throw new zt("Invalid options, either `theme` or `themes` must be provided");return{tokens:i,fg:n,bg:o,themeName:a,rootStyle:s,grammarState:c}}function fB(e,t,r,o,n,i,a){return e.map((s,c)=>{let u=Ei(t[c][i],r[c])||"inherit",p=`${o+s.color}${i==="bg"?"-bg":""}:${u}`;if(c===0&&n){if(n===q3&&e.length>1){let m=e.findIndex(g=>g.color==="light"),h=e.findIndex(g=>g.color==="dark");if(m===-1||h===-1)throw new zt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Ei(t[m][i],r[m])||"inherit"}, ${Ei(t[h][i],r[h])||"inherit"});${p}`}return u}return a==="css-vars"?p:null}).filter(s=>!!s).join(";")}function Dy(e,t,r,o={meta:{},options:r,codeToHast:(n,i)=>
vendor: 4,421 bytes, lines 118-119
118Dy(e,n,i),codeToTokens:(n,i)=>Ny(e,n,i)}){let n=t;for(let b of Ry(r))n=b.preprocess?.call(o,n,r)||n;let{tokens:i,fg:a,bg:s,themeName:c,rootStyle:u,grammarState:p}=Ny(e,n,r),{mergeWhitespaces:m=!0,mergeSameStyleTokens:h=!1}=r;m===!0?i=Dle(i):m==="never"&&(i=Ole(i)),h&&(i=Lle(i));let g={...o,get source(){return n}};for(let b of Ry(r))i=b.tokens?.call(g,i)||i;return Nle(i,{...r,fg:a,bg:s,themeName:c,rootStyle:r.rootStyle===!1?!1:r.rootStyle??u},g,p)}function Nle(e,t,r,o=eu(e)){let n=Ry(t),i=[],a={type:"root",children:[]},{structure:s="classic",tabindex:c="0"}=t,u={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?u.style=t.rootStyle:u.style=`background-color:${t.bg};color:${t.fg}`),c!==!1&&c!=null&&(u.tabindex=c.toString());for(let[T,I]of Object.entries(t.meta||{}))T.startsWith("_")||(u[T]=I);let p={type:"element",tagName:"pre",properties:u,children:[],data:t.data},m={type:"element",tagName:"code",properties:{},children:i},h=[],g={...r,structure:s,addClassToHast:hB,get source(){return r.source},get tokens(){return e},get options(){return t},get root(){return a},get pre(){return p},get code(){return m},get lines(){return h}};if(e.forEach((T,I)=>{I&&(s==="inline"?a.children.push({type:"element",tagName:"br",properties:{},children:[]}):s==="classic"&&i.push({type:"text",value:` 119`}));let P={type:"element",tagName:"span",properties:{class:"line"},children:[]},C=0;for(let k of T){let A={type:"element",tagName:"span",properties:{...k.htmlAttrs},children:[{type:"text",value:k.content}]},z=V3(k.htmlStyle||My(k));z&&(A.properties.style=z);for(let N of n)A=N?.span?.call(g,A,I+1,C,P,k)||A;s==="inline"?a.children.push(A):s==="classic"&&P.children.push(A),C+=k.content.length}if(s==="classic"){for(let k of n)P=k?.line?.call(g,P,I+1)||P;h.push(P),i.push(P)}else s==="inline"&&h.push(P)}),s==="classic"){for(let T of n)m=T?.code?.call(g,m)||m;p.children.push(m);for(let T of n)p=T?.pre?.call(g,p)||p;a.children.push(p)}else if(s==="inline"){let T=[],I={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let C of a.children)C.type==="element"&&C.tagName==="br"?(T.push(I),I={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(C.type==="element"||C.type==="text")&&I.children.push(C);T.push(I);let P={type:"element",tagName:"code",properties:{},children:T};for(let C of n)P=C?.code?.call(g,P)||P;a.children=[];for(let C=0;C<P.children.length;C++){C>0&&a.children.push({type:"element",tagName:"br",properties:{},children:[]});let k=P.children[C];k.type==="element"&&a.children.push(...k.children)}}let b=a;for(let T of n)b=T?.root?.call(g,b)||b;return o&&Im(b,o),b}function Dle(e){return e.map(t=>{let r=[],o="",n;return t.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&zr.Underline||i.fontStyle&zr.Strikethrough));s&&i.content.match(/^\s+$/)&&t[a+1]?(n===void 0&&(n=i.offset),o+=i.content):o?(s?r.push({...i,offset:n,content:o+i.content}):r.push({content:o,offset:n},i),n=void 0,o=""):r.push(i)}),r})}function Ole(e){return e.map(t=>t.flatMap(r=>{if(r.content.match(/^\s+$/))return r;let o=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!o)return r;let[,n,i,a]=o;if(!n&&!a)return r;let s=[{...r,offset:r.offset+n.length,content:i}];return n&&s.unshift({content:n,offset:r.offset}),a&&s.push({content:a,offset:r.offset+n.length+i.length}),s}))}function Lle(e){return e.map(t=>{let r=[];for(let o of t){if(r.length===0){r.push({...o});continue}let n=r[r.length-1],i=V3(n.htmlStyle||My(n)),a=V3(o.htmlStyle||My(o)),s=n.fontStyle&&(n.fontStyle&zr.Underline||n.fontStyle&zr.Strikethrough),c=o.fontStyle&&(o.fontStyle&zr.Underline||o.fontStyle&zr.Strikethrough);!s&&!c&&i===a?n.content+=o.content:r.push({...o})}return r})}var jle=F3;function Ule(e,t,r){let o={meta:{},options:r,codeToHast:(i,a)=>Dy(e,i,a),codeToTokens:(i,a)=>Ny(e,i,a)},n=jle(Dy(e,t,r,o));for(let i of Ry(r))n=i.postprocess?.call(o,n,r)||n;return n}async function vB(e){let t=await D3(e);return{getLastGrammarState:(...r)=>qU(t,...r),codeToTokensBase:(r,o)=>G3(t,r,o),codeToTokensWithThemes:(r,o)=>$y(t,r,o),codeToTokens:(r,o)=>Ny(t,r,o),codeToHast:(r,o)=>Dy(t,r,o),codeToHtml:(r,o)=>Ule(t,r,o),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var yB=class{regexps;constructor(e,t={}){this.patterns=e,this.options=t;let{forgiving:r=!1,cache:o,regexConstructor:n}=t;if(!n)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(i=>
119{if(typeof i!="string")return i;let a=o?.get(i);if(a){if(a instanceof RegExp)return a;if(r)return null;throw a}try{let s=n(i);return o?.set(i,s),s}catch(s){if(o?.set(i,s),r)return null;throw s}})}findNextMatchSync(e,t,r){let o=typeof e=="string"?e:e.content,n=[];function i(a,s,c=0){return{index:a,captureIndices:s.indices.map(u=>u==null?{start:4294967295,end:4294967295,length:0}:{start:u[0]+c,end:u[1]+c,length:u[1]-u[0]})}}for(let a=0;a<this.regexps.length;a++){let s=this.regexps[a];if(s)try{s.lastIndex=t;let c=s.exec(o);if(!c)continue;if(c.index===t)return i(a,c,0);n.push([a,c,0])}catch(c){if(this.options.forgiving)continue;throw c}}if(n.length){let a=Math.min(...n.map(s=>s[1].index));for(let[s,c,u]of n)if(c.index===a)return i(s,c,u)}return null}};function ja(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function bB(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}var $m=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),lr=String.raw;function Ai(e,t){if(e==null)throw new Error(t??"Value expected");return e}var IB=lr`\[\^?`,TB=`c.? | C(?:-.?)?|${lr`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${lr`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${lr`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${lr`o\{[^\}]*\}?`}|${lr`\d{1,3}`}`,W3=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Oy=new RegExp(lr` 120 \\ (?: 121 ${TB} 122 | [gk]<[^>]*>? 123 | [gk]'[^']*'? 124 | . 125 ) 126 | \( (?: 127 \? (?: 128 [:=!>({] 129 | <[=!] 130 | <[^>]*> 131 | '[^']*' 132 | ~\|? 133 | #(?:[^)\\]|\\.?)* 134 | [^:)]*[:)] 135 )? 136 | \*[^\)]*\)? 137 )? 138 | (?:${W3.source})+ 139 | ${IB} 140 | . 141`.replace(/\s+/g,""),"gsu"),H3=new RegExp(lr` 142 \\ (?: 143 ${TB} 144 | . 145 ) 146 | \[:(?:\^?\p{Alpha}+|\^):\] 147 | ${IB} 148 | && 149 | . 150`.replace(/\s+/g,""),"gsu");function $B(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 o=ice(r.flags),n=[o.extended],i={captureGroup:r.rules.captureGroup,getCurrentModX(){return n.at(-1)},numOpenGroups:0,popModX(){n.pop()},pushModX(m){n.push(m)},replaceCurrentModX(m){n[n.length-1]=m},singleline:r.rules.singleline},a=[],s;for(Oy.lastIndex=0;s=Oy.exec(e);){let m=Ble(i,e,s[0],Oy.lastIndex);m.tokens?a.push(...m.tokens):m.token&&a.push(m.token),m.lastIndex!==void 0&&(Oy.lastIndex=m.lastIndex)}let c=[],u=0;a.filter(m=>m.type==="GroupOpen").forEach(m=>{m.kind==="capturing"?m.number=++u:m.raw==="("&&c.push(m)}),u||c.forEach((m,h)=>{m.kind="capturing",m.number=h+1});let p=u||c.length;return{tokens:a.map(m=>m.type==="EscapedNumber"?sce(m,p):m).flat(),flags:o}}function Ble(e,t,r,o){let[n,i]=r;if(r==="["||r==="[^"){let a=Fle(t,r,o);return{tokens:a.tokens,lastIndex:a.lastIndex}}if(n==="\\"){if("AbBGyYzZ".includes(i))return{token:xB(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:Yle(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:CB(r)}}if(i==="K")return{token:EB("keep",r)};if(i==="N"||i==="R")return{token:Xs("newline",r,{negate:i==="N"})};if(i==="O")return{token:Xs("any",r)};if(i==="X")return{token:Xs("text_segment",r)};let a=PB(r,{inCharClass:!1});return Array.isArray(a)?{tokens:a}:{token:a}}if(n==="("){if(i==="*")return{token:rce(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(t[o]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:o+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:tce(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:tu("group",r)};if(r==="(?>")return{token:tu("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:tu(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:tu("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:tu("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:Jle(r)}}if(e.getCurrentModX()){if(r==="#"){let a=t.indexOf(` 151`,o);return{lastIndex:a===-1?t.length:a}}if(/^\s$/.test(r)){let a=/\s+/y;return a.lastIndex=o,{lastIndex:a.exec(t)?a.lastIndex:o}}}if(r===".")return{token:Xs("dot",r)};if(r==="^"||r==="$"){let a=e.singleline?{"^":lr`\A`,$:lr`\Z`}[r]:r;return{token:xB(a,r)}}return r==="|"?{token:Vle(r)}:W3.test(r)?{tokens:lce(r)}:{token:Mi(ja(r),r)}}function Fle(e,t,r){let o=[wB(t[1]==="^",t)],n=1,i;for(H3.lastIndex=r;i=H3.exec(e);){let a=i[0];if(a[0]==="["&&a[1]!==":")n++,o.push(wB(a[1]==="^",a));else if(a==="]"){if(o.at(-1).type==="CharacterClassOpen")o.push(Mi(93,a));else if(n--,o.push(Gle(a)),!n)break}else{let s=Zle(a);Array.isArray(s)?o.push(...s):o.push(s)}}return{tokens:o,lastIndex:H3.lastIndex||e.length}}function Zle(e){if(e[0]==="\\")return PB(e,{inCharClass:!0});if(e[0]==="["){let t=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!t||!$m.has(t.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Xs("posix",e,{value:t.groups.name,negate:!!t.groups.negate})}return e==="-"?qle(e):e==="&&"?Hle(e):Mi(ja(e),e)}function PB(e,{inCharClass:t}){let r=e[1];
vendor: 18,166 bytes, line 151
151if(r==="c"||r==="C")return ece(e);if("dDhHsSwW".includes(r))return nce(e);if(e.startsWith(lr`\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 oce(e)}if(/^\\x[89A-Fa-f]\p{AHex}/u.test(e))try{let o=e.split(/\\x/).slice(1).map(a=>parseInt(a,16)),n=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(o)),i=new TextEncoder;return[...n].map(a=>{let s=[...i.encode(a)].map(c=>`\\x${c.toString(16)}`).join("");return Mi(ja(a),s)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Mi(ace(e),e);if(_B.has(r))return Mi(_B.get(r),e);if(/\d/.test(r))return Wle(t,e);if(e==="\\")throw new Error(lr`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Mi(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function Vle(e){return{type:"Alternator",raw:e}}function xB(e,t){return{type:"Assertion",kind:e,raw:t}}function CB(e){return{type:"Backreference",raw:e}}function Mi(e,t){return{type:"Character",value:e,raw:t}}function Gle(e){return{type:"CharacterClassClose",raw:e}}function qle(e){return{type:"CharacterClassHyphen",raw:e}}function Hle(e){return{type:"CharacterClassIntersector",raw:e}}function wB(e,t){return{type:"CharacterClassOpen",negate:e,raw:t}}function Xs(e,t,r={}){return{type:"CharacterSet",kind:e,...r,raw:t}}function EB(e,t,r={}){return e==="keep"?{type:"Directive",kind:e,raw:t}:{type:"Directive",kind:e,flags:Ai(r.flags),raw:t}}function Wle(e,t){return{type:"EscapedNumber",inCharClass:e,raw:t}}function Jle(e){return{type:"GroupClose",raw:e}}function tu(e,t,r={}){return{type:"GroupOpen",kind:e,...r,raw:t}}function Kle(e,t,r,o){return{type:"NamedCallout",kind:e,tag:t,arguments:r,raw:o}}function Xle(e,t,r,o){return{type:"Quantifier",kind:e,min:t,max:r,raw:o}}function Yle(e){return{type:"Subroutine",raw:e}}var Qle=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),_B=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function ece(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 Mi(ja(t.toUpperCase())-64,e)}function tce(e,t){let{on:r,off:o}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;o??="";let n=(t.getCurrentModX()||r.includes("x"))&&!o.includes("x"),i=SB(r),a=SB(o),s={};if(i&&(s.enable=i),a&&(s.disable=a),e.endsWith(")"))return t.replaceCurrentModX(n),EB("flags",e,{flags:s});if(e.endsWith(":"))return t.pushModX(n),t.numOpenGroups++,tu("group",e,{...(i||a)&&{flags:s}});throw new Error(`Unexpected flag modifier "${e}"`)}function rce(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:o,args:n}=t.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(o==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);let i=n?n.split(",").filter(p=>p!=="").map(p=>/^[+-]?\d+$/.test(p)?+p:p):[],[a,s,c]=i,u=Qle.has(r)?r.toLowerCase():"custom";switch(u){case"fail":case"mismatch":case"skip":if(i.length>0)throw new Error(`Named callout arguments not allowed "${i}"`);break;case"error":if(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(typeof a=="string")throw new Error(`Named callout argument must be a number "${a}"`);break;case"max":if(!i.length||i.length>2)throw new Error(`Named callout must have one or two arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(i.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(i.length>1)throw new Error(`Named callout allows only one argument "${i}"`);if(i.length===1&&(typeof a=="number"||!/^[<>X]$/.test(a)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${a}"`);break;case"cmp":if(i.length!==3)throw new Error(`Named callout must have three arguments "${i}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument one must be a tag or number "${a}"`);if(typeof s=="number"||!/^(?:[<>!=]=|[<>])$/.test(s))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${s}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument three must be a tag or number "${c}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${u}"`)}return Kle(u,o??null,n?.split(",")??null,e)}function kB(e){let t=null,r,o;if(e[0]==="{"){let{minStr:n,maxStr:i}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,a=1e5;if(+n>a||i&&+i>a)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+n,o=i===void 0?+n:i===""?1/0:+i,r>o&&(t="possessive",[r,o]=[o,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,o=e[0]==="?"?1:1/0,t=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return Xle(t,r,o,e)}function nce(e){let t=e[1].toLowerCase();return Xs({d:"digit",h:"hex",s:"space",w:"word"}[t],e,{negate:e[1]!==t})}function oce(e){let{p:t,neg:r,value:o}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Xs("property",e,{value:o,negate:t==="P"&&!r||t==="p"&&!!r})}function SB(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 ice(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 o=e[r];if(!"imxDPSWy".includes(o))throw new Error(`Invalid flag "${o}"`);if(o==="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"}[o]]=!0}return t}function ace(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 sce(e,t){let{raw:r,inCharClass:o}=e,n=r.slice(1);if(!o&&(n!=="0"&&n.length===1||n[0]!=="0"&&+n<=t))return[CB(r)];let i=[],a=n.match(/^[0-7]+|\d/g);for(let s=0;s<a.length;s++){let c=a[s],u;if(s===0&&c!=="8"&&c!=="9"){if(u=parseInt(c,8),u>127)throw new Error(lr`Octal encoded byte above 177 unsupported "${r}"`)}else u=ja(c);i.push(Mi(u,(s===0?"\\":"")+c))}return i}function lce(e){let t=[],r=new RegExp(W3,"gy"),o;for(;o=r.exec(e);){let n=o[0];if(n[0]==="{"){let i=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(n);if(i){let{min:a,max:s}=i.groups;if(+a>+s&&n.endsWith("?")){r.lastIndex--,t.push(kB(n.slice(0,-1)));continue}}}t.push(kB(n))}return t}function Ly(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(o=>t[o]===r[o])}function zB(e){return cce.has(e.type)}var cce=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Uy(e,t={}){let r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t,rules:{captureGroup:!1,singleline:!1,...t.rules}},o=$B(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),n=(h,g)=>{let b=o.tokens[i.nextIndex];switch(i.parent=h,i.nextIndex++,b.type){case"Alternator":return Ri();case"Assertion":return uce(b);case"Backreference":return dce(b,i);case"Character":return ru(b.value,{useLastValid:!!g.isCheckingRangeEnd});case"CharacterClassHyphen":return pce(b,i,g);case"CharacterClassOpen":return mce(b,i,g);case"CharacterSet":return fce(b,i);case"Directive":return xce(b.kind,{flags:b.flags});case"GroupOpen":return hce(b,i,g);case"NamedCallout":return _ce(b.kind,b.tag,b.arguments);case"Quantifier":return gce(b,i);case"Subroutine":return vce(b,i);default:throw new Error(`Unexpected token type "${b.type}"`)}},i={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:o.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:n},a=Sce(wce(o.flags)),s=a.body[0];for(;i.nextIndex<o.tokens.length;){let h=n(s,{});h.type==="Alternative"?(a.body.push(h),s=h):s.body.push(h)}let{capturingGroups:c,hasNumberedRef:u,namedGroupsByName:p,subroutines:m}=i;if(u&&p.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(let{ref:h}of m)if(typeof h=="number"){if(h>c.length)throw new Error("Subroutine uses a group number that's not defined");h&&(c[h-1].isSubroutined=!0)}else if(p.has(h)){if(p.get(h).length>1)throw new Error(lr`Subroutine uses a duplicate group name "\g<${h}>"`);p.get(h)[0].isSubroutined=!0}else throw new Error(lr`Subroutine uses a group name that's not defined "\g<${h}>"`);return a}function uce({kind:e}){return By(Ai({"^":"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===lr`\B`||e===lr`\Y`})}function dce({raw:e},t){let r=/^\\k[<']/.test(e),o=r?e.slice(3,-1):e.slice(1),n=(i,a=!1)=>{let s=t.capturingGroups.length,c=!1;if(i>s)if(t.skipBackrefValidation)c=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return t.hasNumberedRef=!0,jy(a?s+1-i:i,{orphan:c})};if(r){let i=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(o);if(i)return n(+i.groups.num,!!i.groups.sign);if(/[-+]/.test(o))throw new Error(`Invalid backref name "${e}"`);if(!t.namedGroupsByName.has(o))throw new Error(`Group name not defined to the left "${e}"`);return jy(o)}return n(+o)}function pce(e,t,r){let{tokens:o,walk:n}=t,i=t.parent,a=i.body.at(-1),s=o[t.nextIndex];if(!r.isCheckingRangeEnd&&a&&a.type!=="CharacterClass"&&a.type!=="CharacterClassRange"&&s&&s.type!=="CharacterClassOpen"&&s.type!=="CharacterClassClose"&&s.type!=="CharacterClassIntersector"){let c=n(i,{...r,isCheckingRangeEnd:!0});if(a.type==="Character"&&c.type==="Character")return i.body.pop(),bce(a,c);throw new Error("Invalid character class range")}return ru(ja("-"))}function mce({negate:e},t,r){let{tokens:o,walk:n}=t,i=o[t.nextIndex],a=[Pm()],s=RB(i);for(;s.type!=="CharacterClassClose";){if(s.type==="CharacterClassIntersector")a.push(Pm()),t.nextIndex++;else{let u=a.at(-1);u.body.push(n(u,r))}s=RB(o[t.nextIndex],i)}let c=Pm({negate:e});return a.length===1?c.body=a[0].body:(c.kind="intersection",c.body=a.map(u=>u.body.length===1?u.body[0]:u)),t.nextIndex++,c}function fce({kind:e,negate:t,value:r},o){let{normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a}=o;if(e==="property"){let s=nu(r);if($m.has(s)&&!a?.has(s))e="posix",r=s;else return Ys(r,{negate:t,normalizeUnknownPropertyNames:n,skipPropertyNameValidation:i,unicodePropertyMap:a})}return e==="posix"?kce(r,{negate:t}):Fy(e,{negate:t})}function hce(e,t,r){let{tokens:o,capturingGroups:n,namedGroupsByName:i,skipLookbehindValidation:a,walk:s}=t,c=Ice(e),u=c.type==="AbsenceFunction",p=MB(c),m=p&&c.negate;if(c.type==="CapturingGroup"&&(n.push(c),c.name&&bB(i,c.name,[]).push(c)),u&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let h=NB(o[t.nextIndex]);for(;h.type!=="GroupClose";){if(h.type==="Alternator")c.body.push(Ri()),t.nextIndex++;else{let g=c.body.at(-1),b=s(g,{...r,isInAbsenceFunction:r.isInAbsenceFunction||u,isInLookbehind:r.isInLookbehind||p,isInNegLookbehind:r.isInNegLookbehind||m});if(g.body.push(b),(p||r.isInLookbehind)&&!a){let T="Lookbehind includes a pattern not allowed by Oniguruma";if(m||r.isInNegLookbehind){if(AB(b)||b.type==="CapturingGroup")throw new Error(T)}else if(AB(b)||MB(b)&&b.negate)throw new Error(T)}}h=NB(o[t.nextIndex])}return t.nextIndex++,c}function gce({kind:e,min:t,max:r},o){let n=o.parent,i=n.body.at(-1);if(!i||!zB(i))throw new Error("Quantifier requires a repeatable token");let a=K3(e,t,r,i);return n.body.pop(),a}function vce({raw:e},t){let{capturingGroups:r,subroutines:o}=t,n=e.slice(3,-1),i=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(n);if(i){let s=+i.groups.num,c=r.length;if(t.hasNumberedRef=!0,n={"":s,"+":c+s,"-":c+1-s}[i.groups.sign],n<1)throw new Error("Invalid subroutine number")}else n==="0"&&(n=0);let a=X3(n);return o.push(a),a}function yce(e,t){if(e!=="repeater")throw new Error(`Unexpected absence function kind "${e}"`);return{type:"AbsenceFunction",kind:e,body:Cm(t?.body)}}function Ri(e){return{type:"Alternative",body:DB(e?.body)}}function By(e,t){let r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!t?.negate),r}function jy(e,t){let r=!!t?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function J3(e,t){let r={name:void 0,isSubroutined:!1,...t};if(r.name!==void 0&&!Tce(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:Cm(t?.body)}}function ru(e,t){let r={useLastValid:!1,...t};if(e>1114111){let o=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${o}}"`):new Error(`Invalid code point out of range in JS "\\x{${o}}"`)}return{type:"Character",value:e}}function Pm(e){let t={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:t.kind,negate:t.negate,body:DB(e?.body)}}function bce(e,t){if(t.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:t}}function Fy(e,t){let r=!!t?.negate,o={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(o.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(o.variableLength=!0),o}function xce(e,t={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Ai(t.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function wce(e){return{type:"Flags",...e}}function zn(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:Cm(e?.body)}}function Ua(e){let t={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:t.behind?"lookbehind":"lookahead",negate:t.negate,body:Cm(e?.body)}}function _ce(e,t,r){return{type:"NamedCallout",kind:e,tag:t,arguments:r}}function kce(e,t){let r=!!t?.negate;if(!$m.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function K3(e,t,r,o){if(t>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:t,max:r,body:o}}function Sce(e,t){return{type:"Regex",body:Cm(t?.body),flags:e}}function X3(e){return{type:"Subroutine",ref:e}}function Ys(e,t){let r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...t},o=r.unicodePropertyMap?.get(nu(e));if(!o){if(r.normalizeUnknownPropertyNames)o=$ce(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(lr`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:o??e,negate:r.negate}}function Ice({flags:e,kind:t,name:r,negate:o,number:n}){switch(t){case"absence_repeater":return yce("repeater");case"atomic":return zn({atomic:!0});case"capturing":return J3(n,{name:r});case"group":return zn({flags:e});case"lookahead":case"lookbehind":return Ua({behind:t==="lookbehind",negate:o});default:throw new Error(`Unexpected group kind "${t}"`)}}function Cm(e){if(e===void 0)e=[Ri()];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 AB(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function MB(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function Tce(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function $ce(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 nu(e){return e.replace(/[- _]+/g,"").toLowerCase()}function RB(e,t){return Ai(e,`${t?.type==="Character"&&t.value===93?"Empty":"Unclosed"} character class`)}function NB(e){return Ai(e,"Unclosed group")}function Qs(e,t,r=null){function o(i,a){for(let s=0;s<i.length;s++){let c=n(i[s],a,s,i);s=Math.max(-1,s+c)}}function n(i,a=null,s=null,c=null){let u=0,p=!1,m={node:i,parent:a,key:s,container:c,root:e,remove(){Zy(c).splice(Math.max(0,ou(s)+u),1),u--,p=!0},removeAllNextSiblings(){return Zy(c).splice(ou(s)+1)},removeAllPrevSiblings(){let P=ou(s)+u;return u-=P,Zy(c).splice(0,Math.max(0,P))},replaceWith(P,C={}){let k=!!C.traverse;c?c[Math.max(0,ou(s)+u)]=P:Ai(a,"Can't replace root node")[s]=P,k&&n(P,a,s,c),p=!0},replaceWithMultiple(P,C={}){let k=!!C.traverse;if(Zy(c).splice(Math.max(0,ou(s)+u),1,...P),u+=P.length-1,k){let A=0;for(let z=0;z<P.length;z++)A+=n(P[z],a,ou(s)+z+A,c)}p=!0},skip(){p=!0}
vendor: 6,068 bytes, lines 151-166
151},{type:h}=i,g=t["*"],b=t[h],T=typeof g=="function"?g:g?.enter,I=typeof b=="function"?b:b?.enter;if(T?.(m,r),I?.(m,r),!p)switch(h){case"AbsenceFunction":case"CapturingGroup":case"Group":o(i.body,i);break;case"Alternative":case"CharacterClass":o(i.body,i);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":n(i.min,i,"min"),n(i.max,i,"max");break;case"LookaroundAssertion":o(i.body,i);break;case"Quantifier":n(i.body,i,"body");break;case"Regex":o(i.body,i),n(i.flags,i,"flags");break;default:throw new Error(`Unexpected node type "${h}"`)}return b?.exit?.(m,r),g?.exit?.(m,r),u}return n(e),e}function Zy(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function ou(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}var OB=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function LB(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function jB(e,t,r,o){return e.slice(0,t)+o+e.slice(t+r.length)}var gn=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Em(e,t,r,o){let n=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),i=[!1],a=0,s="";for(let c of e.matchAll(n)){let{0:u,groups:{$skip:p}}=c;if(!p&&(!o||o===gn.DEFAULT==!a)){r instanceof Function?s+=r(c,{context:a?gn.CHAR_CLASS:gn.DEFAULT,negated:i[i.length-1]}):s+=r;continue}u[0]==="["?(a++,i.push(u[1]==="^")):u==="]"&&a&&(a--,i.pop()),s+=u}return s}function Y3(e,t,r,o){Em(e,t,r,o)}function Pce(e,t,r=0,o){if(!new RegExp(t,"su").test(e))return null;let n=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");n.lastIndex=r;let i=0,a;for(;a=n.exec(e);){let{0:s,groups:{$skip:c}}=a;if(!c&&(!o||o===gn.DEFAULT==!i))return a;s==="["?i++:s==="]"&&i&&i--,n.lastIndex==a.index&&n.lastIndex++}return null}function zm(e,t,r){return!!Pce(e,t,0,r)}function UB(e,t){let r=/\\?./gsu;r.lastIndex=t;let o=e.length,n=0,i=1,a;for(;a=r.exec(e);){let[s]=a;if(s==="[")n++;else if(n)s==="]"&&n--;else if(s==="(")i++;else if(s===")"&&(i--,!i)){o=a.index;break}}return e.slice(t,o)}var BB=new RegExp(String.raw`(?<noncapturingStart>${OB})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function eI(e,t){let r=t?.hiddenCaptures??[],o=t?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:r};let n="(?>",i="(?:(?=(",a=[0],s=[],c=0,u=0,p=NaN,m;do{m=!1;let h=0,g=0,b=!1,T;for(BB.lastIndex=Number.isNaN(p)?0:p+i.length;T=BB.exec(e);){let{0:I,index:P,groups:{capturingStart:C,noncapturingStart:k}}=T;if(I==="[")h++;else if(h)I==="]"&&h--;else if(I===n&&!b)p=P,b=!0;else if(b&&k)g++;else if(C)b?g++:(c++,a.push(c+u));else if(I===")"&&b){if(!g){u++;let A=c+u;if(e=`${e.slice(0,p)}${i}${e.slice(p+n.length,P)}))<$$${A}>)${e.slice(P+1)}`,m=!0,s.push(A),LB(r,A),o.size){let z=new Map;o.forEach((N,B)=>{z.set(B>=A?B+1:B,N.map(G=>G>=A?G+1:G))}),o=z}break}g--}}}while(m);return r.push(...s),e=Em(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:h,groups:{backrefNum:g,wrappedBackrefNum:b}})=>{if(g){let T=+g;if(T>a.length-1)throw new Error(`Backref "${h}" greater than number of captures`);return`\\${a[T]}`}return`\\${b}`},gn.DEFAULT),{pattern:e,captureTransfers:o,hiddenCaptures:r}}var FB=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Q3=new RegExp(String.raw` 152\\(?: \d+ 153 | c[A-Za-z] 154 | [gk]<[^>]+> 155 | [pPu]\{[^\}]+\} 156 | u[A-Fa-f\d]{4} 157 | x[A-Fa-f\d]{2} 158 ) 159| \((?: \? (?: [:=!>] 160 | <(?:[=!]|[^>]+>) 161 | [A-Za-z\-]+: 162 | \(DEFINE\) 163 ))? 164| (?<qBase>${FB})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?) 165| \\?. 166`.replace(/\s+/g,""),"gsu");function tI(e){if(!new RegExp(`${FB}\\+`).test(e))return{pattern:e};let t=[],r=null,o=null,n="",i=0,a;for(Q3.lastIndex=0;a=Q3.exec(e);){let{0:s,index:c,groups:{qBase:u,qMod:p,invalidQ:m}}=a;if(s==="[")i||(o=c),i++;else if(s==="]")i?i--:o=null;else if(!i)if(p==="+"&&n&&!n.startsWith("(")){if(m)throw new Error(`Invalid quantifier "${s}"`);let h=-1;if(/^\{\d+\}$/.test(u))e=jB(e,c+u.length,p,"");else{if(n===")"||n==="]"){let g=n===")"?r:o;if(g===null)throw new Error(`Invalid unmatched "${n}"`);e=`${e.slice(0,g)}(?>${e.slice(g,c)}${u})${e.slice(c+s.length)}`}else e=`${e.slice(0,c-n.length)}(?>${n}${u})${e.slice(c+s.length)}`;h+=4}Q3.lastIndex+=h}else s[0]==="("?t.push(c):s===")"&&(r=t.length?t.pop():null);n=s}return{pattern:e}}var Kn=String.raw,Cce=Kn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,nI=Kn`\(\?R=(?<rDepth>[^\)]+)\)|${Cce}`,Vy=Kn`\(\?<(?![=!])(?<captureName>[^>]+)>`,HB=Kn`${Vy}|(?<unnamed>\()(?!\?)`,el=new RegExp(Kn`${Vy}|${nI}|\(\?|\\?.`,"gsu"),rI="Cannot use multiple overlapping recursions";function WB(e,t){let{hiddenCaptures:r,mode:o}={hiddenCaptures:[],mode:"plugin",...t},n=t?.captureTransfers??new Map;if(!new RegExp(nI,"su").test(e))return{pattern:e,captureTransfers:n,hiddenCaptures:r};if(o==="plugin"&&zm(e,Kn`\(\?\(DEFINE\)`,gn.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");let i=[],a=zm(e,Kn`\\[1-9]`,gn.DEFAULT),s=new Map,c=[],u=!1,p=0,m=0,h;for(el.lastIndex=0;h=el.exec(e);){let{0:g,groups:{captureName:b,rDepth:T,gRNameOrNum:I,gRDepth:P}}=h;if(g==="[")p++;else if(p)g==="]"&&p--;else if(T){if(ZB(T),u)throw new Error(rI);if(a)throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);let C=e.slice(0,h.index),k=e.slice(el.lastIndex);if(zm(k,nI,gn.DEFAULT))throw new Error(rI);let A=+T-1;e=VB(C,k,A,!1,r,i,m),n=qB(n,C,A,i.length,0,m);break}else if(I){ZB(P);let C=!1;for(let de of c)if(de.name===I||de.num===+I){if(C=!0,de.hasRecursedWithin)throw new Error(rI);break}if(!C)throw new Error(Kn`Recursive \g cannot be used outside the referenced group "${o==="external"?I:Kn`\g<${I}&R=${P}>`}"`);let k=s.get(I),A=UB(e,k);if(a&&zm(A,Kn`${Vy}|\((?!\?)`,gn.DEFAULT))throw new Error(`${o==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);let z=e.slice(k,h.index),N=A.slice(z.length+g.length),B=i.length,G=+P-1,F=VB(z,N,G,!0,r,i,m);n=qB(n,z,G,i.length-B,B,m);let W=e.slice(0,k),ue=e.slice(k+A.length);e=`${W}${F}${ue}
166`,el.lastIndex+=F.length-g.length-z.length-N.length,c.forEach(de=>de.hasRecursedWithin=!0),u=!0}else if(b)m++,s.set(String(m),el.lastIndex),s.set(b,el.lastIndex),c.push({num:m,name:b});else if(g[0]==="("){let C=g==="(";C&&(m++,s.set(String(m),el.lastIndex)),c.push(C?{num:m}:{})}else g===")"&&c.pop()}return r.push(...i),{pattern:e,captureTransfers:n,hiddenCaptures:r}}function ZB(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 VB(e,t,r,o,n,i,a){let s=new Set;o&&Y3(e+t,Vy,({groups:{captureName:u}})=>{s.add(u)},gn.DEFAULT);let c=[r,o?s:null,n,i,a];return`${e}${GB(`(?:${e}`,"forward",...c)}(?:)${GB(`${t})`,"backward",...c)}${t}`}function GB(e,t,r,o,n,i,a){let c=p=>t==="forward"?p+2:r-p+2-1,u="";for(let p=0;p<r;p++){let m=c(p);u+=Em(e,Kn`${HB}|\\k<(?<backref>[^>]+)>`,({0:h,groups:{captureName:g,unnamed:b,backref:T}})=>{if(T&&o&&!o.has(T))return h;let I=`_$${m}`;if(b||g){let P=a+i.length+1;return i.push(P),Ece(n,P),b?h:`(?<${g}${I}>`}return Kn`\k<${T}${I}>`},gn.DEFAULT)}return u}function Ece(e,t){for(let r=0;r<e.length;r++)e[r]>=t&&e[r]++}function qB(e,t,r,o,n,i){if(e.size&&o){let a=0;Y3(t,HB,()=>a++,gn.DEFAULT);let s=i-a+n,c=new Map;return e.forEach((u,p)=>{let m=(o-a*r)/r,h=a*r,g=p>s+a?p+o:p,b=[];for(let T of u)if(T<=s)b.push(T);else if(T>s+a+m)b.push(T+o);else if(T<=s+a)for(let I=0;I<=r;I++)b.push(T+a*I);else for(let I=0;I<=r;I++)b.push(T+h+m*I);c.set(g,b)}),c}return e}var gr=String.fromCodePoint,qe=String.raw,bo={},qy=globalThis.RegExp;bo.flagGroups=(()=>{try{new qy("(?i:)")}catch{return!1}return!0})();bo.unicodeSets=(()=>{try{new qy("[[]]","v")}catch{return!1}return!0})();bo.bugFlagVLiteralHyphenIsRange=bo.unicodeSets?(()=>{try{new qy(qe`[\d\-a]`,"v")}catch{return!0}return!1})():!1;bo.bugNestedClassIgnoresNegation=bo.unicodeSets&&new qy("[[^a]]","v").test("a");function Gy(e,{enable:t,disable:r}){return{dotAll:!r?.dotAll&&!!(t?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(t?.ignoreCase||e.ignoreCase)}}function Am(e,t,r){return e.has(t)||e.set(t,r),e.get(t)}function lI(e,t){return JB[e]>=JB[t]}function zce(e,t){if(e==null)throw new Error(t??"Value expected");return e}var JB={ES2025:2025,ES2024:2024,ES2018:2018},Ace={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function eF(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");
vendor: 2,281 bytes, lines 166-248
166if(e.target!==void 0&&!Ace[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=bo.flagGroups?"ES2025":bo.unicodeSets?"ES2024":"ES2018"),t}var Mce="[ -\r ]",Rce=new Set([gr(304),gr(305)]),Ni=qe`[\p{L}\p{M}\p{N}\p{Pc}]`;function tF(e){if(Rce.has(e))return[e];let t=new Set,r=e.toLowerCase(),o=r.toUpperCase(),n=Oce.get(r),i=Nce.get(r),a=Dce.get(r);return[...o].length===1&&t.add(o),a&&t.add(a),n&&t.add(n),t.add(r),i&&t.add(i),[...t]}var uI=new Map(`C Other 167Cc Control cntrl 168Cf Format 169Cn Unassigned 170Co Private_Use 171Cs Surrogate 172L Letter 173LC Cased_Letter 174Ll Lowercase_Letter 175Lm Modifier_Letter 176Lo Other_Letter 177Lt Titlecase_Letter 178Lu Uppercase_Letter 179M Mark Combining_Mark 180Mc Spacing_Mark 181Me Enclosing_Mark 182Mn Nonspacing_Mark 183N Number 184Nd Decimal_Number digit 185Nl Letter_Number 186No Other_Number 187P Punctuation punct 188Pc Connector_Punctuation 189Pd Dash_Punctuation 190Pe Close_Punctuation 191Pf Final_Punctuation 192Pi Initial_Punctuation 193Po Other_Punctuation 194Ps Open_Punctuation 195S Symbol 196Sc Currency_Symbol 197Sk Modifier_Symbol 198Sm Math_Symbol 199So Other_Symbol 200Z Separator 201Zl Line_Separator 202Zp Paragraph_Separator 203Zs Space_Separator 204ASCII 205ASCII_Hex_Digit AHex 206Alphabetic Alpha 207Any 208Assigned 209Bidi_Control Bidi_C 210Bidi_Mirrored Bidi_M 211Case_Ignorable CI 212Cased 213Changes_When_Casefolded CWCF 214Changes_When_Casemapped CWCM 215Changes_When_Lowercased CWL 216Changes_When_NFKC_Casefolded CWKCF 217Changes_When_Titlecased CWT 218Changes_When_Uppercased CWU 219Dash 220Default_Ignorable_Code_Point DI 221Deprecated Dep 222Diacritic Dia 223Emoji 224Emoji_Component EComp 225Emoji_Modifier EMod 226Emoji_Modifier_Base EBase 227Emoji_Presentation EPres 228Extended_Pictographic ExtPict 229Extender Ext 230Grapheme_Base Gr_Base 231Grapheme_Extend Gr_Ext 232Hex_Digit Hex 233IDS_Binary_Operator IDSB 234IDS_Trinary_Operator IDST 235ID_Continue IDC 236ID_Start IDS 237Ideographic Ideo 238Join_Control Join_C 239Logical_Order_Exception LOE 240Lowercase Lower 241Math 242Noncharacter_Code_Point NChar 243Pattern_Syntax Pat_Syn 244Pattern_White_Space Pat_WS 245Quotation_Mark QMark 246Radical 247Regional_Indicator RI 248Sentence_Terminal STerm
249Soft_Dotted SD 250Terminal_Punctuation Term 251Unified_Ideograph UIdeo 252Uppercase Upper 253Variation_Selector VS 254White_Space space 255XID_Continue XIDC 256XID_Start XIDS`.split(/\s/).map(e=>[nu(e),e])),Nce=new Map([["s",gr(383)],[gr(383),"s"]]),Dce=new Map([[gr(223),gr(7838)],[gr(107),gr(8490)],[gr(229),gr(8491)],[gr(969),gr(8486)]]),Oce=new Map([Ba(453),Ba(456),Ba(459),Ba(498),...oI(8072,8079),...oI(8088,8095),...oI(8104,8111),Ba(8124),Ba(8140),Ba(8188)]),Lce=new Map([["alnum",qe`[\p{Alpha}\p{Nd}]`],["alpha",qe`\p{Alpha}`],["ascii",qe`\p{ASCII}`],["blank",qe`[\p{Zs}\t]`],["cntrl",qe`\p{Cc}`],["digit",qe`\p{Nd}`],["graph",qe`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",qe`\p{Lower}`],["print",qe`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",qe`[\p{P}\p{S}]`],["space",qe`\p{space}`],["upper",qe`\p{Upper}`],["word",qe`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",qe`\p{AHex}`]]);function jce(e,t){let r=[];for(let o=e;o<=t;o++)r.push(o);return r}function Ba(e){let t=gr(e);return[t.toLowerCase(),t]}function oI(e,t){return jce(e,t).map(r=>Ba(r))}var rF=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Uce(e,t){let r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...t};nF(e);let o={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:lI(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};Qs(e,Bce,o);let n={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},i={currentFlags:n,prevFlags:null,globalFlags:n,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:o.subroutineRefMap};Qs(e,Fce,i);let a={groupsByName:i.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:i.reffedNodesByReferencer};return Qs(e,Zce,a),e._originMap=i.groupOriginByCopy,e._strategy=o.strategy,e}var Bce={AbsenceFunction({node:e,parent:t,replaceWith:r}){let{body:o,kind:n}=e;if(n==="repeater"){let i=zn();i.body[0].body.push(Ua({negate:!0,body:o}),Ys("Any"));let a=zn();a.body[0].body.push(K3("greedy",0,1/0,i)),r(nr(a,t),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:t,key:r},{flagDirectivesByAlt:o}){let n=e.body.filter(i=>i.kind==="flags");for(let i=r+1;i<t.body.length;i++){let a=t.body[i];Am(o,a,[]).push(...n)}},exit({node:e},{flagDirectivesByAlt:t}){if(t.get(e)?.length){let r=iF(t.get(e));if(r){let o=zn({flags:r});o.body[0].body=e.body,e.body=[nr(o,e)]}}}},Assertion({node:e,parent:t,key:r,container:o,root:n,remove:i,replaceWith:a},s){let{kind:c,negate:u}=e,{asciiWordBoundaries:p,avoidSubclass:m,supportedGNodes:h,wordIsAscii:g}=s;if(c==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${u?"Y":"y"}"`);if(c==="line_end")a(nr(Ua({body:[Ri({body:[By("string_end")]}),Ri({body:[ru(10)]})]}),t));else if(c==="line_start")a(nr(Di(qe`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),t));else if(c==="search_start")if(h.has(e))n.flags.sticky=!0,i();else{let b=o[r-1];if(b&&Jce(b))a(nr(Ua({negate:!0}),t));else{if(m)throw new Error(qe`Uses "\G" in a way that requires a subclass`);a(Fa(By("string_start"),t)),s.strategy="clip_search"}}else if(!(c==="string_end"||c==="string_start"))if(c==="string_end_newline")a(nr(Di(qe`(?=\n?\z)`),t));else if(c==="word_boundary"){if(!g&&!p){let b=`(?:(?<=${Ni})(?!${Ni})|(?<!${Ni})(?=${Ni}))`,T=`(?:(?<=${Ni})(?=${Ni})|(?<!${Ni})(?!${Ni}))`;a(nr(Di(u?T:b),t))}}else throw new Error(`Unexpected assertion kind "${c}"`)},Backreference({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!aI(r)&&(r=iI(r,t),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:t,subroutineRefMap:r}){let{name:o}=e;o&&!aI(o)&&(o=iI(o,t),e.name=o),r.set(e.number,e),o&&r.set(o,e)},CharacterClassRange({node:e,parent:t,replaceWith:r}){if(t.kind==="intersection"){let o=Pm({body:[e]});r(nr(o,t),{traverse:!0})}},CharacterSet({node:e,parent:t,replaceWith:r},{accuracy:o,minTargetEs2024:n,digitIsAscii:i,spaceIsAscii:a,wordIsAscii:s}){let{kind:c,negate:u,value:p}=e;if(i&&(c==="digit"||p==="digit")){r(Fa(Fy("digit",{negate:u}),t));return}if(a&&(c==="space"||p==="space")){r(nr(sI(Di(Mce),u),t));return}if(s&&(c==="word"||p==="word")){r(Fa(Fy("word",{negate:u}),t));return}if(c==="any")r(Fa(Ys("Any"),t));else if(c==="digit")r(Fa(Ys("Nd",{negate:u}),t));
vendor: 17,131 bytes, lines 256-259
256else if(c!=="dot")if(c==="text_segment"){if(o==="strict")throw new Error(qe`Use of "\X" requires non-strict accuracy`);let m="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",h=qe`\p{RI}{2}|${m}(?:\u200D${m})*`;r(nr(Di(qe`(?>\r\n|${n?qe`\p{RGI_Emoji}`:h}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),t))}else if(c==="hex")r(Fa(Ys("AHex",{negate:u}),t));else if(c==="newline")r(nr(Di(u?`[^ 257]`:`(?>\r 258?|[ 259\v\f\x85\u2028\u2029])`),t));else if(c==="posix")if(!n&&(p==="graph"||p==="print")){if(o==="strict")throw new Error(`POSIX class "${p}" requires min target ES2024 or non-strict accuracy`);let m={graph:"!-~",print:" -~"}[p];u&&(m=`\0-${gr(m.codePointAt(0)-1)}${gr(m.codePointAt(2)+1)}-\u{10FFFF}`),r(nr(Di(`[${m}]`),t))}else r(nr(sI(Di(Lce.get(p)),u),t));else if(c==="property")uI.has(nu(p))||(e.key="sc");else if(c==="space")r(Fa(Ys("space",{negate:u}),t));else if(c==="word")r(nr(sI(Di(Ni),u),t));else throw new Error(`Unexpected character set kind "${c}"`)},Directive({node:e,parent:t,root:r,remove:o,replaceWith:n,removeAllPrevSiblings:i,removeAllNextSiblings:a}){let{kind:s,flags:c}=e;if(s==="flags")if(!c.enable&&!c.disable)o();else{let u=zn({flags:c});u.body[0].body=a(),n(nr(u,t),{traverse:!0})}else if(s==="keep"){let u=r.body[0],m=r.body.length===1&&Ly(u,{type:"Group"})&&u.body[0].body.length===1?u.body[0]:r;if(t.parent!==m||m.body.length>1)throw new Error(qe`Uses "\K" in a way that's unsupported`);let h=Ua({behind:!0});h.body[0].body=i(),n(nr(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:o}=e;if(o==="fail")r(nr(Ua({negate:!0}),t));else throw new Error(`Unsupported named callout "(*${o.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){let t=zn();t.body[0].body.push(e.body),e.body=nr(t,e)}},Regex:{enter({node:e},{supportedGNodes:t}){let r=[],o=!1,n=!1;for(let i of e.body)if(i.body.length===1&&i.body[0].kind==="search_start")i.body.pop();else{let a=sF(i.body);a?(o=!0,Array.isArray(a)?r.push(...a):r.push(a)):n=!0}o&&!n&&r.forEach(i=>t.add(i))},exit(e,{accuracy:t,passedLookbehind:r,strategy:o}){if(t==="strict"&&r&&o)throw new Error(qe`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:t}){let{ref:r}=e;typeof r=="string"&&!aI(r)&&(r=iI(r,t),e.ref=r)}},Fce={Backreference({node:e},{multiplexCapturesToLeftByRef:t,reffedNodesByReferencer:r}){let{orphan:o,ref:n}=e;o||r.set(e,[...t.get(n).map(({node:i})=>i)])},CapturingGroup:{enter({node:e,parent:t,replaceWith:r,skip:o},{groupOriginByCopy:n,groupsByName:i,multiplexCapturesToLeftByRef:a,openRefs:s,reffedNodesByReferencer:c}){let u=n.get(e);if(u&&s.has(e.number)){let m=Fa(KB(e.number),t);c.set(m,s.get(e.number)),r(m);return}s.set(e.number,e),a.set(e.number,[]),e.name&&Am(a,e.name,[]);let p=a.get(e.name??e.number);for(let m=0;m<p.length;m++){let h=p[m];if(u===h.node||u&&u===h.origin||e===h.origin){p.splice(m,1);break}}if(a.get(e.number).push({node:e,origin:u}),e.name&&a.get(e.name).push({node:e,origin:u}),e.name){let m=Am(i,e.name,new Map),h=!1;if(u)h=!0;else for(let g of m.values())if(!g.hasDuplicateNameToRemove){h=!0;break}i.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=Gy(t.currentFlags,e.flags))},exit(e,t){t.currentFlags=t.prevFlags}},Subroutine({node:e,parent:t,replaceWith:r},o){let{isRecursive:n,ref:i}=e;if(n){let p=t;for(;(p=p.parent)&&!(p.type==="CapturingGroup"&&(p.name===i||p.number===i)););o.reffedNodesByReferencer.set(e,p);return}let a=o.subroutineRefMap.get(i),s=i===0,c=s?KB(0):oF(a,o.groupOriginByCopy,null),u=c;if(!s){let p=iF(qce(a,h=>h.type==="Group"&&!!h.flags)),m=p?Gy(o.globalFlags,p):o.globalFlags;Vce(m,o.currentFlags)||(u=zn({flags:Hce(m)}),u.body[0].body.push(c))}r(nr(u,t),{traverse:!s})}},Zce={Backreference({node:e,parent:t,replaceWith:r},o){if(e.orphan){o.highestOrphanBackref=Math.max(o.highestOrphanBackref,e.ref);return}let i=o.reffedNodesByReferencer.get(e).filter(a=>Gce(a,e));if(!i.length)r(nr(Ua({negate:!0}),t));else if(i.length>1){let a=zn({atomic:!0,body:i.reverse().map(s=>Ri({body:[jy(s.number)]}))});r(nr(a,t))}else e.ref=i[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 o=0;o<r;o++){let n=J3();e.body.at(-1).body.push(n)}}},Subroutine({node:e},t){!e.isRecursive||e.ref===0||(e.ref=t.reffedNodesByReferencer.get(e).number)}};function nF(e){Qs(e,{"*"({node:t,parent:r}){t.parent=r}})}function Vce(e,t){return e.dotAll===t.dotAll&&e.ignoreCase===t.ignoreCase}function Gce(e,t){let r=t;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;let o=aF(r.parent);for(let n of o){if(n===r)break;if(n===e||lF(n,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function oF(e,t,r,o){let n=Array.isArray(e)?[]:{};for(let[i,a]of Object.entries(e))i==="parent"?n.parent=Array.isArray(r)?o:r:a&&typeof a=="object"?n[i]=oF(a,t,n,r):(i==="type"&&a==="CapturingGroup"&&t.set(n,t.get(e)??e),n[i]=a);return n}function KB(e){let t=X3(e);return t.isRecursive=!0,t}function qce(e,t){let r=[];for(;e=e.parent;)(!t||t(e))&&r.push(e);return r}function iI(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 iF(e){let t=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:o})=>{t.forEach(n=>{o.enable?.[n]&&(delete r.disable[n],r.enable[n]=!0),o.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 Hce({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 aF(e){if(!e)throw new Error("Node expected");let{body:t}=e;return Array.isArray(t)?t:t?[t]:null}function sF(e){let t=e.find(r=>r.kind==="search_start"||Kce(r,{negate:!1})||!Wce(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 o of t.body){let n=sF(o.body);if(!n)return null;Array.isArray(n)?r.push(...n):r.push(n)}return r}return null}function lF(e,t){let r=aF(e)??[];for(let o of r)if(o===t||lF(o,t))return!0;return!1}function Wce({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function Jce(e){let t=["Character","CharacterClass","CharacterSet"];return t.includes(e.type)||e.type==="Quantifier"&&e.min&&t.includes(e.body.type)}function Kce(e,t){let r={negate:null,...t};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&Ly(e.body[0],{type:"Assertion",kind:"search_start"})}function aI(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function Di(e,t){let o=Uy(e,{...t,unicodePropertyMap:uI}).body;return o.length>1||o[0].body.length>1?zn({body:o}):o[0].body[0]}function sI(e,t){return e.negate=t,e}function Fa(e,t){return e.parent=t,e}function nr(e,t){return nF(e),e.parent=t,e}function Xce(e,t){let r=eF(t),o=lI(r.target,"ES2024"),n=lI(r.target,"ES2025"),i=r.rules.recursionLimit;if(!Number.isInteger(i)||i<2||i>20)throw new Error("Invalid recursionLimit; use 2-20");let a=null,s=null;if(!n){let g=[e.flags.ignoreCase];Qs(e,Yce,{getCurrentModI:()=>g.at(-1),popModI(){g.pop()},pushModI(b){g.push(b)},setHasCasedChar(){g.at(-1)?a=!0:s=!0}})}let c={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||a)&&!s)},u=e,p={accuracy:r.accuracy,appliedGlobalFlags:c,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:u,originMap:e._originMap,recursionLimit:i,useAppliedIgnoreCase:!!(!n&&a&&s),useFlagMods:n,useFlagV:o,verbose:r.verbose};function m(g){return p.lastNode=u,u=g,zce(Qce[g.type],`Unexpected node type "${g.type}"`)(g,p,m)}let h={pattern:e.body.map(m).join("|"),flags:m(e.flags),options:{...e.options}};return o||(delete h.options.force.v,h.options.disable.v=!0,h.options.unicodeSetsPlugin=null),h._captureTransfers=new Map,h._hiddenCaptures=[],p.captureMap.forEach((g,b)=>{g.hidden&&h._hiddenCaptures.push(b),g.transferTo&&Am(h._captureTransfers,g.transferTo,[]).push(b)}),h}var Yce={"*":{enter({node:e},t){if(YB(e)){let r=t.getCurrentModI();t.pushModI(e.flags?Gy({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},t){YB(e)&&t.popModI()}},Backreference(e,t){t.setHasCasedChar()},Character({node:e},t){dI(gr(e.value))&&t.setHasCasedChar()},CharacterClassRange({node:e,skip:t},r){t(),cF(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},t){e.kind==="property"&&rF.has(e.value)&&t.setHasCasedChar()}},Qce={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?qe`\B`:qe`\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:o,name:n,number:i}=e,a={ignoreCase:t.currentFlags.ignoreCase},s=t.originMap.get(e);return s&&(a.hidden=!0,i>s.number&&(a.transferTo=s.number)),t.captureMap.set(i,a),`(${n?`?<${n}>`:""}${o.map(r).join("|")})`},Character({value:e},t){let r=gr(e),o=iu(e,{escDigit:t.lastNode.type==="Backreference",inCharClass:t.inCharClass,useFlagV:t.useFlagV});if(o!==r)return o;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase&&dI(r)){let n=tF(r);return t.inCharClass?n.join(""):n.length>1?`[${n.join("")}]`:n[0]}return r},CharacterClass(e,t,r){let{kind:o,negate:n,parent:i}=e,{body:a}=e;if(o==="intersection"&&!t.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");bo.bugFlagVLiteralHyphenIsRange&&t.useFlagV&&a.some(QB)&&(a=[ru(45),...a.filter(u=>!QB(u))]);let s=()=>`[${n?"^":""}${a.map(r).join(o==="intersection"?"&&":"")}]`;if(!t.inCharClass){if((!t.useFlagV||bo.bugNestedClassIgnoresNegation)&&!n){let p=a.filter(m=>m.type==="CharacterClass"&&m.kind==="union"&&m.negate);if(p.length){let m=zn(),h=m.body[0];return m.parent=i,h.parent=m,a=a.filter(g=>!p.includes(g)),e.body=a,a.length?(e.parent=h,h.body.push(e)):m.body.pop(),p.forEach(g=>{let b=Ri({body:[g]});g.parent=b,b.parent=m,m.body.push(b)}),r(m)}}t.inCharClass=!0;let u=s();return t.inCharClass=!1,u}let c=a[0];if(o==="union"&&!n&&c&&((!t.useFlagV||!t.verbose)&&i.kind==="union"&&!(bo.bugFlagVLiteralHyphenIsRange&&t.useFlagV)||!t.verbose&&i.kind==="intersection"&&a.length===1&&c.type!=="CharacterClassRange"))return a.map(r).join("");if(!t.useFlagV&&i.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,o=e.max.value,n={escDigit:!1,inCharClass:!0,useFlagV:t.useFlagV},i=iu(r,n),a=iu(o,n),s=new Set;if(t.useAppliedIgnoreCase&&t.currentFlags.ignoreCase){let c=cF(e);oue(c).forEach(p=>{s.add(Array.isArray(p)?`${iu(p[0],n)}-${iu(p[1],n)}`:iu(p,n))})}return`${i}-${a}${[...s].join("")}`},CharacterSet({kind:e,negate:t,value:r,key:o},n){if(e==="dot")return n.currentFlags.dotAll?n.appliedGlobalFlags.dotAll||n.useFlagMods?".":"[^]":qe`[^\n]`;if(e==="digit")return t?qe`\D`:qe`\d`;if(e==="property"){if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&rF.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${t?qe`\P`:qe`\p`}{${o?`${o}=`:""}${r}}`}if(e==="word")return t?qe`\W`:qe`\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:o},n,i){let a=n.currentFlags;r&&(n.currentFlags=Gy(a,r));let s=t.map(i).join("|"),c=!n.verbose&&t.length===1&&o.type!=="Quantifier"&&!e&&(!n.useFlagMods||!r)?s:`(?${iue(e,r,n.useFlagMods)}${s})`;return n.currentFlags=a,c},LookaroundAssertion({body:e,kind:t,negate:r},o,n){return`(?${`${t==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(n).join("|")})`},Quantifier(e,t,r){return r(e.body)+aue(e)},Subroutine({isRecursive:e,ref:t},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");let o=r.recursionLimit;return t===0?`(?R=${o})`:qe`\g<${t}&R=${o}>`}},eue=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),tue=new Set(["-","\\","]","^","["]),rue=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),XB=new Map([[9,qe`\t`],[10,qe`\n`],[11,qe`\v`],[12,qe`\f`],[13,qe`\r`],[8232,qe`\u2028`],[8233,qe`\u2029`],[65279,qe`\uFEFF`]]),nue=/^\p{Cased}$/u;function dI(e){return nue.test(e)}function cF(e,t){let r=!!t?.firstOnly,o=e.min.value,n=e.max.value,i=[];if(o<65&&(n===65535||n>=131071)||o===65536&&n>=131071)return i;for(let a=o;a<=n;a++){let s=gr(a);if(!dI(s))continue;let c=tF(s).filter(u=>{let p=u.codePointAt(0);return p<o||p>n});if(c.length&&(i.push(...c),r))break}return i}function iu(e,{escDigit:t,inCharClass:r,useFlagV:o}){if(XB.has(e))return XB.get(e);if(e<32||e>126&&e<160||e>262143||t&&sue(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;let n=r?o?rue:tue:eue,i=gr(e);return(n.has(i)?"\\":"")+i}function oue(e){let t=e.map(n=>n.codePointAt(0)).sort((n,i)=>n-i),r=[],o=null;for(let n=0;n<t.length;n++)t[n+1]===t[n]+1?o??=t[n]:o===null?r.push(t[n]):(r.push([o,t[n]]),o=null);return r}function iue(e,t,r){if(e)return">";let o="";if(t&&r){let{enable:n,disable:i}=t;o=(n?.ignoreCase?"i":"")+(n?.dotAll?"s":"")+(i?"-":"")+(i?.ignoreCase?"i":"")+(i?.dotAll?"s":"")}return`${o}:`}function aue({kind:e,max:t,min:r}){let o;return!r&&t===1?o="?":!r&&t===1/0?o="*":r===1&&t===1/0?o="+":r===t?o=`{${r}}`:o=`{${r},${t===1/0?"":t}}`,o+{greedy:"",lazy:"?",possessive:"+"}[e]}function YB({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function sue(e){return e>47&&e<58}function QB({type:e,value:t}){return e==="Character"&&t===45}var lue=class cI extends RegExp{#t=new Map;#e=null;#n;#r=null;#o=null;rawOptions={};get source(){return this.#n||"(?:)"}constructor(t,r,o){let n=!!o?.lazyCompile;if(t instanceof RegExp){if(o)throw new Error("Cannot provide options when copying a regexp");let i=t;super(i,r),this.#n=i.source,i instanceof cI&&(this.#t=i.#t,this.#r=i.#r,this.#o=i.#o,this.rawOptions=i.rawOptions)}else{let i={hiddenCaptures:[],strategy:null,transfers:[],...o};super(n?"":t,r),this.#n=t,this.#t=uue(i.hiddenCaptures,i.transfers),this.#o=i.strategy,this.rawOptions=o??{}}n||(this.#e=this)}exec(t){if(!this.#e){let{lazyCompile:n,...i}=this.rawOptions;this.#e=new cI(this.#n,this.flags,i)}let r=this.global||this.sticky,o=this.lastIndex;if(this.#o==="clip_search"&&r&&o){this.lastIndex=0;let n=this.#i(t.slice(o));return n&&(cue(n,o,t,this.hasIndices),this.lastIndex+=o),n}return this.#i(t)}#i(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 o=[...r];r.length=1;let n;this.hasIndices&&(n=[...r.indices],r.indices.length=1);let i=[0];for(let a=1;a<o.length;a++){let{hidden:s,transferTo:c}=this.#t.get(a)??{};if(s?i.push(null):(i.push(r.length),r.push(o[a]),this.hasIndices&&r.indices.push(n[a])),c&&o[a]!==void 0){let u=i[c];if(!u)throw new Error(`Invalid capture transfer to "${u}"`);if(r[u]=o[a],this.hasIndices&&(r.indices[u]=n[a]),r.groups){this.#r||(this.#r=due(this.source));let p=this.#r.get(c);p&&(r.groups[p]=o[a],this.hasIndices&&(r.indices.groups[p]=n[a]))}}}return r}};function cue(e,t,r,o){if(e.index+=t,e.input=r,o){let n=e.indices;for(let a=0;a<n.length;a++){let s=n[a];s&&(n[a]=[s[0]+t,s[1]+t])}let i=n.groups;
vendor: 2,008 bytes, line 259
259i&&Object.keys(i).forEach(a=>{let s=i[a];s&&(i[a]=[s[0]+t,s[1]+t])})}}function uue(e,t){let r=new Map;for(let o of e)r.set(o,{hidden:!0});for(let[o,n]of t)for(let i of n)Am(r,i,{}).transferTo=o;return r}function due(e){let t=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map,o=0,n=0,i;for(;i=t.exec(e);){let{0:a,groups:{capture:s,name:c}}=i;a==="["?o++:o?a==="]"&&o--:s&&(n++,c&&r.set(n,c))}return r}function uF(e,t){let r=pue(e,t);return r.options?new lue(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function pue(e,t){let r=eF(t),o=Uy(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:uI}),n=Uce(o,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),i=Xce(n,r),a=WB(i.pattern,{captureTransfers:i._captureTransfers,hiddenCaptures:i._hiddenCaptures,mode:"external"}),s=tI(a.pattern),c=eI(s.pattern,{captureTransfers:a.captureTransfers,hiddenCaptures:a.hiddenCaptures}),u={pattern:c.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${i.flags}${i.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{let p=c.hiddenCaptures.sort((b,T)=>b-T),m=Array.from(c.captureTransfers),h=n._strategy,g=u.pattern.length>=r.lazyCompileLength;(p.length||m.length||h||g)&&(u.options={...p.length&&{hiddenCaptures:p},...m.length&&{transfers:m},...h&&{strategy:h},...g&&{lazyCompile:g}})}return u}function dF(e,t){return uF(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...t})}function pI(e={}){let t=Object.assign({target:"auto",cache:new Map},e);return t.regexConstructor||=r=>dF(r,{target:t.target}),{createScanner(r){return new yB(r,t)},createString(r){return{content:r}}}}var pF
vendor: 11,376 bytes, line 259
259=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.focusForeground":"#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.selectionHighlightBackground":"#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.matchHighlightBackground":"#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"}'));
259var mF=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.focusForeground":"#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.findMatchHighlightBackgroun
259d":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#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
259d":"#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 mue="https://esm.sh/@shikijs/[email protected]/",mI=null;function fue(){return mI||(mI=vB({themes:[mF,pF],langs:[],engine:pI()})),mI}var fF=new Set,fI=new Map;async function hue(e,t){if(fF.has(t))return;let r=fI.get(t);if(r)return r;let o=(async()=>{try{let n=await import(`${mue}${t}.mjs`);await e.loadLanguage(n.default??n)}catch{}finally{fF.add(t),fI.delete(t)}})();return fI.set(t,o),o}async function hF(e){let t=await fue();return await hue(t,e),t}var gF=["github-light","github-dark"],vF=new Map,au=new Map;function gue(e,t,r){let o=e.slice(0,100),n=e.length>100?e.slice(-100):"";return`${t}:${r[0]}:${r[1]}:${e.length}:${o}:${n}`}function vue(e){let t=r=>typeof r=="string"?r:r?.name??"custom";return[t(e[0]),t(e[1])]}
259var yF={name:"shiki",type:"code-highlighter",supportsLanguage(e){return!0},getSupportedLanguages(){return[]},getThemes(){return[gF[0],gF[1]]},highlight(e,t){let{code:r,language:o}=e,n=vue(e.themes),i=gue(r,o,n),a=vF.get(i);return a||(t&&(au.has(i)||au.set(i,new Set),au.get(i).add(t)),hF(o).then(s=>{let c=s.getLoadedLanguages().includes(o)?o:"text",u=s.codeToTokens(r,{lang:c,themes:{light:n[0],dark:n[1]}}),p={bg:u.bg??void 0,fg:u.fg??void 0,tokens:u.tokens};vF.set(i,p);let m=au.get(i);if(m){for(let h of m)h(p);au.delete(i)}}).catch(s=>{console.error("[streamdown-code] Failed to highlight:",s),au.delete(i)}),null)}};function hI(e,t){return xF(e,t||{})||{type:"root",children:[]}}function xF(e,t){let r=yue(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function yue(e,t){switch(e.nodeType){case 1:return _ue(e,t);case 3:return xue(e);case 8:return wue(e);case 9:return bF(e,t);case 10:return bue();case 11:return bF(e,t);default:return}}function bF(e,t){return{type:"root",children:wF(e,t)}}function bue(){return{type:"doctype"}}function xue(e){return{type:"text",value:e.nodeValue||""}}function wue(e){return{type:"comment",value:e.nodeValue||""}}function _ue(e,t){let r=e.namespaceURI,o=r===$f.svg?y$:v$,n=r===$f.html?e.tagName.toLowerCase():e.tagName,i=r===$f.html&&n==="template"?e.content:e,a=e.getAttributeNames(),s={},c=-1;for(;++c<a.length;)s[a[c]]=e.getAttribute(a[c])||"";return o(n,s,wF(i,t))}function wF(e,t){let r=e.childNodes,o=[],n=-1;for(;++n<r.length;){let i=xF(r[n],t);i!==void 0&&o.push(i)}return o}var kue=new DOMParser;function _F(e,t){let r=t?.fragment?Sue(e):kue.parseFromString(e,"text/html");return hI(r)}function Sue(e){let t=document.createElement("template");return t.innerHTML=e,t.content}var Hy=(function(e,t,r){let o=s$(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(o(e.children[t],t,e))return e.children[t]});var Oi=(function(e){if(e==null)return $ue;if(typeof e=="string")return Tue(e);if(typeof e=="object")return Iue(e);if(typeof e=="function")return gI(e);throw new Error("Expected function, string, or array as `test`")});function Iue(e){let t=[],r=-1;for(;++r<e.length;)t[r]=Oi(e[r]);return gI(o);function o(...n){let i=-1;for(;++i<t.length;)if(t[i].apply(this,n))return!0;return!1}}function Tue(e){return gI(t);function t(r){return r.tagName===e}}function gI(e){return t;function t(r,o,n){return!!(Pue(r)&&e.call(this,r,typeof o=="number"?o:void 0,n||void 0))}}function $ue(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Pue(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}var kF=/\n/g,SF=/[\t ]+/g,vI=Oi("br"),IF=Oi(Nue),Cue=Oi("p"),TF=Oi("tr"),Eue=Oi(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Rue,Due]),$F=Oi(["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 yI(e,t){let r=t||{},o="children"in e?e.children:[],n=$F(e),i=EF(e,{whitespace:r.whitespace||"normal",breakBefore:!1,breakAfter:!1}),a=[];(e.type==="text"||e.type==="comment")&&a.push(...CF(e,{whitespace:i,breakBefore:!0,breakAfter:!0}));let s=-1;for(;++s<o.length;)a.push(...PF(o[s],e,{whitespace:i,breakBefore:s?void 0:n,breakAfter:s<o.length-1?vI(o[s+1]):n}));let c=[],u;for(s=-1;++s<a.length;){let p=a[s];typeof p=="number"?u!==void 0&&p>u&&(u=p):p&&(u!==void 0&&u>-1&&c.push(` 260`.repeat(u)||" "),u=-1,c.push(p))}return c.join("")}function PF(e,t,r){return e.type==="element"?zue(e,t,r):e.type==="text"?r.whitespace==="normal"?CF(e,r):Aue(e):[]}function zue(e,t,r){let o=EF(e,r),n=e.children||[],i=-1,a=[];if(Eue(e))return a;let s,c;for(vI(e)||TF(e)&&Hy(t,e,TF)?c=` 261`:Cue(e)?(s=2,c=2):$F(e)&&(s=1,c=1);++i<n.length;)a=a.concat(PF(n[i],e,{whitespace:o,breakBefore:i?void 0:s,breakAfter:i<n.length-1?vI(n[i+1]):c}));
261return IF(e)&&Hy(t,e,IF)&&a.push(" "),s&&a.unshift(s),c&&a.push(c),a}function CF(e,t){let r=String(e.value),o=[],n=[],i=0;for(;i<=r.length;){kF.lastIndex=i;let c=kF.exec(r),u=c&&"index"in c?c.index:r.length;o.push(Mue(r.slice(i,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),i===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),i=u+1}let a=-1,s;for(;++a<o.length;)o[a].charCodeAt(o[a].length-1)===8203||a<o.length-1&&o[a+1].charCodeAt(0)===8203?(n.push(o[a]),s=void 0):o[a]?(typeof s=="number"&&n.push(s),n.push(o[a]),s=0):(a===0||a===o.length-1)&&n.push(0);return n}function Aue(e){return[String(e.value)]}function Mue(e,t,r){let o=[],n=0,i;for(;n<e.length;){SF.lastIndex=n;let a=SF.exec(e);i=a?a.index:e.length,!n&&!i&&a&&!t&&o.push(""),n!==i&&o.push(e.slice(n,i)),n=a?i+a[0].length:i}return n!==i&&!r&&o.push(""),o.join(" ")}function EF(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 Rue(e){return!!(e.properties||{}).hidden}function Nue(e){return e.tagName==="td"||e.tagName==="th"}function Due(e){return e.tagName==="dialog"&&!(e.properties||{}).open}var ie=class e extends Error{constructor(t,r){var o="KaTeX parse error: "+t,n,i,a=r&&r.loc;if(a&&a.start<=a.end){var s=a.lexer.input;n=a.start,i=a.end,n===s.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var c=s.slice(n,i).replace(/[^]/g,"$&\u0332"),u;n>15?u="\u2026"+s.slice(n-15,n):u=s.slice(0,n);var p;i+15<s.length?p=s.slice(i,i+15)+"\u2026":p=s.slice(i),o+=u+c+p}super(o),this.name="ParseError",Object.setPrototypeOf(this,e.prototype),this.position=n,n!=null&&i!=null&&(this.length=i-n),this.rawMessage=t}},Oue=/([A-Z])/g,JI=e=>e.replace(Oue,"-$1").toLowerCase(),Lue={"&":"&",">":">","<":"<",'"':""","'":"'"},jue=/[&><"']/g,Or=e=>String(e).replace(jue,t=>Lue[t]),ib=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?ib(e.body[0]):e:e.type==="font"?ib(e.body):e,Uue=new Set(["mathord","textord","atom"]),Bi=e=>Uue.has(ib(e).type),Bue=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"},MI={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 Fue(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 Om=class{constructor(t){t===void 0&&(t={}),t=t||{};for(var r of Object.keys(MI)){var o=MI[r],n=t[r];this[r]=n!==void 0?o.processor?o.processor(n):n:Fue(o)}}reportNonstrict(t,r,o){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,o)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new ie("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),o);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,o){var n=this.strict;if(typeof n=="function")try{n=n(t,r,o)}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=Bue(t.url);if(r==null)return!1;t.protocol=r}var o=typeof this.trust=="function"?this.trust(t):this.trust;return!!o}},qo=class{constructor(t,r,o){this.id=t,this.size=r,this.cramped=o}sup(){return Ho[Zue[this.id]]}sub(){return Ho[Vue[this.id]]}fracNum(){return Ho[Gue[this.id]]}fracDen(){return Ho[que[this.id]]}cramp(){return Ho[Hue[this.id]]}text(){return Ho[Wue[this.id]]}isTight(){return this.size>=2}},KI=0,sb=1,lu=2,Ui=3,Lm=4,Xn=5,cu=6,Xr=7,Ho=[new qo(KI,0,!1),new qo(sb,0,!0),new qo(lu,1,!1),new qo(Ui,1,!0),new qo(Lm,2,!1),new qo(Xn,2,!0),new qo(cu,3,!1),new qo(Xr,3,!0)],Zue=[Lm,Xn,Lm,Xn,cu,Xr,cu,Xr],Vue=[Xn,Xn,Xn,Xn,Xr,Xr,Xr,Xr],Gue=[lu,Ui,Lm,Xn,cu,Xr,cu,Xr],que=[Ui,Ui,Xn,Xn,Xr,Xr,Xr,Xr],Hue=[sb,sb,Ui,Ui,Xn,Xn,Xr,Xr],Wue=[KI,sb,lu,Ui,lu,Ui,lu,Ui],Ze={DISPLAY:Ho[KI],TEXT:Ho[lu],SCRIPT:Ho[Lm],SCRIPTSCRIPT:Ho[cu]},RI=[{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 Jue(e){for(var t=0;t<RI.length;t++)for(var r=RI[t],o=0;o<r.blocks.length;o++){var n=r.blocks[o];if(e>=n[0]&&e<=n[1])return r.name}return null}var ab=[];
vendor: 4,440 bytes, lines 261-312
261RI.forEach(e=>e.blocks.forEach(t=>ab.push(...t)));function aZ(e){for(var t=0;t<ab.length;t+=2)if(e>=ab[t]&&e<=ab[t+1])return!0;return!1}var su=80,Kue=function(t,r){return"M95,"+(622+t+r)+` 262c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 263c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 264c44.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 265s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 266c69,-144,104.5,-217.7,106.5,-221 267l`+t/2.075+" -"+t+` 268c5.3,-9.3,12,-14,20,-14 269H400000v`+(40+t)+`H845.2724 270s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 271c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z 272M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Xue=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119 273c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 274c340,-704.7,510.7,-1060.3,512,-1067 275l`+t/2.084+" -"+t+` 276c4.7,-7.3,11,-11,19,-11 277H40000v`+(40+t)+`H1012.3 278s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 279c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 280s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 281c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z 282M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Yue=function(t,r){return"M983 "+(10+t+r)+` 283l`+t/3.13+" -"+t+` 284c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` 285H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 286s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 287c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 288c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 289c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 290c53.7,-170.3,84.5,-266.8,92.5,-289.5z 291M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},Que=function(t,r){return"M424,"+(2398+t+r)+` 292c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 293c0,-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 294s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 295s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 296l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 297v`+(40+t)+`H1014.6 298s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 299c-2,6,-10,9,-24,9 300c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+` 301h400000v`+(40+t)+"h-400000z"},ede=function(t,r){return"M473,"+(2713+t+r)+` 302c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` 303c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 304s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 305c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 306c0,-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 307s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 308606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},tde=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},rde=function(t,r,o){var n=o-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+` 309H742v`+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 310h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 311c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 312219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},nde=function(t,r,o){r=1e3*r;var n="";switch(t){case"sqrtMain":n=Kue(r,su);break;case"sqrtSize1":n=Xue(r,su);break;case"sqrtSize2":n=Yue(r,su);break;case"sqrtSize3":n=Que(r,su);break;case"sqrtSize4":n=ede(r,su);break;case"sqrtTall":n=rde(r,su,o)}return n},ode=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""}},zF
vendor: 10,493 bytes, lines 312-433
312={doubleleftarrow:`M262 157 313l10-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 314 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 315 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 316c2 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 317 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 318-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 319-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z 320m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l 321-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 322 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 323-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 324-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 325-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 326c-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 327-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 328 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 329-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 330c-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 331 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 332 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 333 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 334-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 335 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 336 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 337 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 338-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 339H435C64 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 340 435 0h399565z`,leftgroupunder:`M400000 262 341H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 342 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 343-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 344-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 345-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 346 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 347-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 348-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z 349m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 350 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 351 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 352-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 353 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 354-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 355v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 356-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 357-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 358 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z 359M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftbracketunder:`M0 0 h120 V290 H399995 v120 H0z 360M0 0 h120 V290 H399995 v120 H0z`,leftbracketover:`M0 440 h120 V150 H399995 v-120 H0z 361M0 440 h120 V150 H399995 v-120 H0z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z 362M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 363-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 364c28.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 365 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z 366M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 367c-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 368-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 369 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 370 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 371c100.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 372 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 373 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 374-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 375-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 376m368.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 37760.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 378-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z 379m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 380c0 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 381-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 382m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 38385.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 384-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z 385m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 386c0 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 387-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 388 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 389 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 390-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 391-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 392 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l 393-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 394s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 395c124.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 396 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 397-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 398 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 399 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 400-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 401-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 402 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 403-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 404 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 405m0 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 406 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 407-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 408-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 409 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 410 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 411-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 412m0-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 413 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 414-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 415 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 416M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightbracketunder:`M399995 0 h-120 V290 H0 v120 H400000z 417M399995 0 h-120 V290 H0 v120 H400000z`,rightbracketover:`M399995 440 h-120 V150 H0 v-120 H399995z 418M399995 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 419 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 420-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 421-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 422 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 423-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 424-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 425-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 426 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 427c-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 428 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 429 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 430-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 431 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 432-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 433 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 433-491
4336.525 0 434 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 435-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 436-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 437 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 438c1 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 439 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 440-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 441 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 442 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 443 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 444-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 445 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 446 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 447 -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 4483.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 44910.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 450-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 451-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 452H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 453c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 454c-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 455-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 456-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 457-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, 458-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, 459-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, 460-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, 461-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 462c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 463c-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 464s-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 465121.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 466s2.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 467c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z 468M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 469-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 47013.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 471-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 472-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 473-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 474151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 475c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 476c2,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 477c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 478c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z 479M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 480c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 481-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 482c-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 483M0 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 484c1.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, 4851c0,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, 486-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 487M93 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 488c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, 489-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 490c-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 491M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
vendor: 5,938 bytes, lines 491-519
491ide=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84 492H403z 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 493M347 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 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";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15 496c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 497c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z 498M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15 499c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15 500c-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 501MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z 502MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z 503M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z 504M347 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 505c-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, 506-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, 507949.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 508c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, 509-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 510l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, 511-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, 51263,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 513c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+` 514c-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 515c-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 516c0,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 517c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 518l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 519-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.")}},Ga=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("")}},NI={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},ade={ex:!0,em:!0,mu:!0},sZ=function(t){return typeof t!="string"&&(t=t.unit),t in NI||t in ade||t==="ex"},Kt=function(t,r){var o;if(t.unit in NI)o=NI[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")o=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")o=n.fontMetrics().xHeight;else if(t.unit==="em")o=n.fontMetrics().quad;else throw new ie("Invalid unit: '"+t.unit+"'");n!==r&&(o*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*o,r.maxSize)},le=function(t){return+t.toFixed(4)+"em"},qa=function(t){return t.filter(r=>r).join(" ")},lZ=function(t,r,o){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=o||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},cZ=function(t){var r=document.createElement(t);r.className=qa(this.classes);for(var o of Object.keys(this.style))r.style[o]=this.style[o];for(var n of Object.keys(this.attributes))r.setAttribute(n,this.attributes[n]);for(var i=0;i<this.children.length;i++)r.appendChild(this.children[i].toNode());return r},sde=/[\s"'>/=\x00-\x1f]/,uZ=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Or(qa(this.classes))+'"');var o="";for(var n of Object.keys(this.style))o+=JI(n)+":"+this.style[n]+";";o&&(r+=' style="'+Or(o)+'"');for(var i of Object.keys(this.attributes)){if(sde.test(i))throw new ie("Invalid attribute name '"+i+"'");r+=" "+i+'="'+Or(this.attributes[i])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+t+">",r},Ha=class{constructor(t,r,o,n){lZ.call(this,t,o,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return cZ.call(this,"span")}toMarkup(){return uZ.call(this,"span")}},uu=class{constructor(t,r,o,n){lZ.call(this,r,n),this.children=o||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return cZ.call(this,"a")}toMarkup(){return uZ.call(this,"a")}},DI=class{constructor(t,r,o){this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=o}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="'+Or(this.src)+'"'+(' alt="'+Or(this.alt)+'"'),r="";for(var o of Object.keys(this.style))r+=JI(o)+":"+this.style[o]+";";return r&&(t+=' style="'+Or(r)+'"'),t+="'/>",t}},lde={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"}
vendor: 2,585 bytes, line 519
519,Yr=class{constructor(t,r,o,n,i,a,s,c){this.text=t,this.height=r||0,this.depth=o||0,this.italic=n||0,this.skew=i||0,this.width=a||0,this.classes=s||[],this.style=c||{},this.maxFontSize=0;var u=Jue(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïÃì]/.test(this.text)&&(this.text=lde[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=le(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=qa(this.classes));for(var o of Object.keys(this.style))r=r||document.createElement("span"),r.style[o]=this.style[o];return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Or(qa(this.classes)),r+='"');var o="";this.italic>0&&(o+="margin-right:"+le(this.italic)+";");for(var n of Object.keys(this.style))o+=JI(n)+":"+this.style[n]+";";o&&(t=!0,r+=' style="'+Or(o)+'"');var i=Or(this.text);return t?(r+=">",r+=i,r+="</span>",r):i}},xo=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 o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);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+'="'+Or(this.attributes[r])+'"';t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</svg>",t}},Jo=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",zF[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Or(this.alternate)+'"/>':'<path d="'+Or(zF[this.pathName])+'"/>'}},jm=class{constructor(t){this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var o of Object.keys(this.attributes))r.setAttribute(o,this.attributes[o]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Or(this.attributes[r])+'"';return t+="/>",t}};function cde(e){if(e instanceof Yr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function ude(e){if(e instanceof Ha)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var dde=e=>e instanceof Ha||e instanceof uu||e instanceof Ga,Wo
vendor: 57,629 bytes, line 519
519={"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 519
519Wy={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]},AF={\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 pde(e,t){Wo[e]=t}function XI(e,t,r){if(!Wo[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),n=Wo[t][o];if(!n&&e[0]in AF&&(o=AF[e[0]].charCodeAt(0),n=Wo[t][o]),!n&&r==="text"&&aZ(o)&&(n=Wo[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var bI={};function mde(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!bI[t]){var r=bI[t]={cssEmPerMu:Wy.quad[t]/18};for(var o in Wy)Wy.hasOwnProperty(o)&&(r[o]=Wy[o][t])}return bI[t]}var fde={bin:1,close:1,inner:1,open:1,punct:1,rel:1},hde={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ft={math:{},text:{}};function y(e,t,r,o,n,i){Ft[e][n]={font:t,group:r,replace:o},i&&o&&(Ft[e][o]=Ft[e][n])}var x="math",K="text",S="main",M="ams",Zt="accent-token",Ie="bin",Qr="close",mu="inner",Me="mathord",ur="op-token",Mn="open",Bm="punct",R="rel",Fi="spacing",O="textord";y(x,S,R,"\u2261","\\equiv",!0);y(x,S,R,"\u227A","\\prec",!0);y(x,S,R,"\u227B","\\succ",!0);y(x,S,R,"\u223C","\\sim",!0);y(x,S,R,"\u22A5","\\perp");y(x,S,R,"\u2AAF","\\preceq",!0);y(x,S,R,"\u2AB0","\\succeq",!0);y(x,S,R,"\u2243","\\simeq",!0);y(x,S,R,"\u2223","\\mid",!0);y(x,S,R,"\u226A","\\ll",!0);y(x,S,R,"\u226B","\\gg",!0);y(x,S,R,"\u224D","\\asymp",!0);y(x,S,R,"\u2225","\\parallel");y(x,S,R,"\u22C8","\\bowtie",!0);y(x,S,R,"\u2323","\\smile",!0);y(x,S,R,"\u2291","\\sqsubseteq",!0);y(x,S,R,"\u2292","\\sqsupseteq",!0);y(x,S,R,"\u2250","\\doteq",!0);y(x,S,R,"\u2322","\\frown",!0);
519y(x,S,R,"\u220B","\\ni",!0);y(x,S,R,"\u221D","\\propto",!0);y(x,S,R,"\u22A2","\\vdash",!0);y(x,S,R,"\u22A3","\\dashv",!0);y(x,S,R,"\u220B","\\owns");y(x,S,Bm,".","\\ldotp");y(x,S,Bm,"\u22C5","\\cdotp");y(x,S,Bm,"\u22C5","\xB7");y(K,S,O,"\u22C5","\xB7");y(x,S,O,"#","\\#");y(K,S,O,"#","\\#");y(x,S,O,"&","\\&");y(K,S,O,"&","\\&");y(x,S,O,"\u2135","\\aleph",!0);y(x,S,O,"\u2200","\\forall",!0);y(x,S,O,"\u210F","\\hbar",!0);y(x,S,O,"\u2203","\\exists",!0);y(x,S,O,"\u2207","\\nabla",!0);y(x,S,O,"\u266D","\\flat",!0);y(x,S,O,"\u2113","\\ell",!0);y(x,S,O,"\u266E","\\natural",!0);y(x,S,O,"\u2663","\\clubsuit",!0);y(x,S,O,"\u2118","\\wp",!0);y(x,S,O,"\u266F","\\sharp",!0);y(x,S,O,"\u2662","\\diamondsuit",!0);y(x,S,O,"\u211C","\\Re",!0);y(x,S,O,"\u2661","\\heartsuit",!0);y(x,S,O,"\u2111","\\Im",!0);y(x,S,O,"\u2660","\\spadesuit",!0);y(x,S,O,"\xA7","\\S",!0);y(K,S,O,"\xA7","\\S");y(x,S,O,"\xB6","\\P",!0);y(K,S,O,"\xB6","\\P");y(x,S,O,"\u2020","\\dag");y(K,S,O,"\u2020","\\dag");y(K,S,O,"\u2020","\\textdagger");y(x,S,O,"\u2021","\\ddag");y(K,S,O,"\u2021","\\ddag");y(K,S,O,"\u2021","\\textdaggerdbl");y(x,S,Qr,"\u23B1","\\rmoustache",!0);y(x,S,Mn,"\u23B0","\\lmoustache",!0);y(x,S,Qr,"\u27EF","\\rgroup",!0);y(x,S,Mn,"\u27EE","\\lgroup",!0);y(x,S,Ie,"\u2213","\\mp",!0);y(x,S,Ie,"\u2296","\\ominus",!0);y(x,S,Ie,"\u228E","\\uplus",!0);y(x,S,Ie,"\u2293","\\sqcap",!0);y(x,S,Ie,"\u2217","\\ast");y(x,S,Ie,"\u2294","\\sqcup",!0);y(x,S,Ie,"\u25EF","\\bigcirc",!0);y(x,S,Ie,"\u2219","\\bullet",!0);y(x,S,Ie,"\u2021","\\ddagger");y(x,S,Ie,"\u2240","\\wr",!0);y(x,S,Ie,"\u2A3F","\\amalg");y(x,S,Ie,"&","\\And");y(x,S,R,"\u27F5","\\longleftarrow",!0);y(x,S,R,"\u21D0","\\Leftarrow",!0);y(x,S,R,"\u27F8","\\Longleftarrow",!0);y(x,S,R,"\u27F6","\\longrightarrow",!0);y(x,S,R,"\u21D2","\\Rightarrow",!0);y(x,S,R,"\u27F9","\\Longrightarrow",!0);y(x,S,R,"\u2194","\\leftrightarrow",!0);y(x,S,R,"\u27F7","\\longleftrightarrow",!0);y(x,S,R,"\u21D4","\\Leftrightarrow",!0);y(x,S,R,"\u27FA","\\Longleftrightarrow",!0);y(x,S,R,"\u21A6","\\mapsto",!0);y(x,S,R,"\u27FC","\\longmapsto",!0);y(x,S,R,"\u2197","\\nearrow",!0);y(x,S,R,"\u21A9","\\hookleftarrow",!0);y(x,S,R,"\u21AA","\\hookrightarrow",!0);y(x,S,R,"\u2198","\\searrow",!0);y(x,S,R,"\u21BC","\\leftharpoonup",!0);y(x,S,R,"\u21C0","\\rightharpoonup",!0);y(x,S,R,"\u2199","\\swarrow",!0);y(x,S,R,"\u21BD","\\leftharpoondown",!0);y(x,S,R,"\u21C1","\\rightharpoondown",!0);y(x,S,R,"\u2196","\\nwarrow",!0);y(x,S,R,"\u21CC","\\rightleftharpoons",!0);y(x,M,R,"\u226E","\\nless",!0);y(x,M,R,"\uE010","\\@nleqslant");y(x,M,R,"\uE011","\\@nleqq");y(x,M,R,"\u2A87","\\lneq",!0);y(x,M,R,"\u2268","\\lneqq",!0);y(x,M,R,"\uE00C","\\@lvertneqq");y(x,M,R,"\u22E6","\\lnsim",!0);y(x,M,R,"\u2A89","\\lnapprox",!0);y(x,M,R,"\u2280","\\nprec",!0);y(x,M,R,"\u22E0","\\npreceq",!0);y(x,M,R,"\u22E8","\\precnsim",!0);y(x,M,R,"\u2AB9","\\precnapprox",!0);y(x,M,R,"\u2241","\\nsim",!0);y(x,M,R,"\uE006","\\@nshortmid");y(x,M,R,"\u2224","\\nmid",!0);y(x,M,R,"\u22AC","\\nvdash",!0);y(x,M,R,"\u22AD","\\nvDash",!0);y(x,M,R,"\u22EA","\\ntriangleleft");y(x,M,R,"\u22EC","\\ntrianglelefteq",!0);y(x,M,R,"\u228A","\\subsetneq",!0);y(x,M,R,"\uE01A","\\@varsubsetneq");y(x,M,R,"\u2ACB","\\subsetneqq",!0);y(x,M,R,"\uE017","\\@varsubsetneqq");y(x,M,R,"\u226F","\\ngtr",!0);y(x,M,R,"\uE00F","\\@ngeqslant");y(x,M,R,"\uE00E","\\@ngeqq");y(x,M,R,"\u2A88","\\gneq",!0);y(x,M,R,"\u2269","\\gneqq",!0);y(x,M,R,"\uE00D","\\@gvertneqq");y(x,M,R,"\u22E7","\\gnsim",!0);y(x,M,R,"\u2A8A","\\gnapprox",!0);y(x,M,R,"\u2281","\\nsucc",!0);y(x,M,R,"\u22E1","\\nsucceq",!0);y(x,M,R,"\u22E9","\\succnsim",!0);y(x,M,R,"\u2ABA","\\succnapprox",!0);y(x,M,R,"\u2246","\\ncong",!0);y(x,M,R,"\uE007","\\@nshortparallel");y(x,M,R,"\u2226","\\nparallel",!0);y(x,M,R,"\u22AF","\\nVDash",!0);y(x,M,R,"\u22EB","\\ntriangleright");y(x,M,R,"\u22ED","\\ntrianglerighteq",!0);y(x,M,R,"\uE018","\\@nsupseteqq");y(x,M,R,"\u228B","\\supsetneq",!0);y(x,M,R,"\uE01B","\\@varsupsetneq");y(x,M,R,"\u2ACC","\\supsetneqq",!0);y(x,M,R,"\uE019","\\@varsupsetneqq");y(x,M,R,"\u22AE","\\nVdash",!0);y(x,M,R,"\u2AB5","\\precneqq",!0);y(x,M,R,"\u2AB6","\\succneqq",!0);
519y(x,M,R,"\uE016","\\@nsubseteqq");y(x,M,Ie,"\u22B4","\\unlhd");y(x,M,Ie,"\u22B5","\\unrhd");y(x,M,R,"\u219A","\\nleftarrow",!0);y(x,M,R,"\u219B","\\nrightarrow",!0);y(x,M,R,"\u21CD","\\nLeftarrow",!0);y(x,M,R,"\u21CF","\\nRightarrow",!0);y(x,M,R,"\u21AE","\\nleftrightarrow",!0);y(x,M,R,"\u21CE","\\nLeftrightarrow",!0);y(x,M,R,"\u25B3","\\vartriangle");y(x,M,O,"\u210F","\\hslash");y(x,M,O,"\u25BD","\\triangledown");y(x,M,O,"\u25CA","\\lozenge");y(x,M,O,"\u24C8","\\circledS");y(x,M,O,"\xAE","\\circledR");y(K,M,O,"\xAE","\\circledR");y(x,M,O,"\u2221","\\measuredangle",!0);y(x,M,O,"\u2204","\\nexists");y(x,M,O,"\u2127","\\mho");y(x,M,O,"\u2132","\\Finv",!0);y(x,M,O,"\u2141","\\Game",!0);y(x,M,O,"\u2035","\\backprime");y(x,M,O,"\u25B2","\\blacktriangle");y(x,M,O,"\u25BC","\\blacktriangledown");y(x,M,O,"\u25A0","\\blacksquare");y(x,M,O,"\u29EB","\\blacklozenge");y(x,M,O,"\u2605","\\bigstar");y(x,M,O,"\u2222","\\sphericalangle",!0);y(x,M,O,"\u2201","\\complement",!0);y(x,M,O,"\xF0","\\eth",!0);y(K,S,O,"\xF0","\xF0");y(x,M,O,"\u2571","\\diagup");y(x,M,O,"\u2572","\\diagdown");y(x,M,O,"\u25A1","\\square");y(x,M,O,"\u25A1","\\Box");y(x,M,O,"\u25CA","\\Diamond");y(x,M,O,"\xA5","\\yen",!0);y(K,M,O,"\xA5","\\yen",!0);y(x,M,O,"\u2713","\\checkmark",!0);y(K,M,O,"\u2713","\\checkmark");y(x,M,O,"\u2136","\\beth",!0);y(x,M,O,"\u2138","\\daleth",!0);y(x,M,O,"\u2137","\\gimel",!0);y(x,M,O,"\u03DD","\\digamma",!0);y(x,M,O,"\u03F0","\\varkappa");y(x,M,Mn,"\u250C","\\@ulcorner",!0);y(x,M,Qr,"\u2510","\\@urcorner",!0);y(x,M,Mn,"\u2514","\\@llcorner",!0);y(x,M,Qr,"\u2518","\\@lrcorner",!0);y(x,M,R,"\u2266","\\leqq",!0);y(x,M,R,"\u2A7D","\\leqslant",!0);y(x,M,R,"\u2A95","\\eqslantless",!0);y(x,M,R,"\u2272","\\lesssim",!0);y(x,M,R,"\u2A85","\\lessapprox",!0);y(x,M,R,"\u224A","\\approxeq",!0);y(x,M,Ie,"\u22D6","\\lessdot");y(x,M,R,"\u22D8","\\lll",!0);y(x,M,R,"\u2276","\\lessgtr",!0);y(x,M,R,"\u22DA","\\lesseqgtr",!0);y(x,M,R,"\u2A8B","\\lesseqqgtr",!0);y(x,M,R,"\u2251","\\doteqdot");y(x,M,R,"\u2253","\\risingdotseq",!0);y(x,M,R,"\u2252","\\fallingdotseq",!0);y(x,M,R,"\u223D","\\backsim",!0);y(x,M,R,"\u22CD","\\backsimeq",!0);y(x,M,R,"\u2AC5","\\subseteqq",!0);y(x,M,R,"\u22D0","\\Subset",!0);y(x,M,R,"\u228F","\\sqsubset",!0);y(x,M,R,"\u227C","\\preccurlyeq",!0);y(x,M,R,"\u22DE","\\curlyeqprec",!0);y(x,M,R,"\u227E","\\precsim",!0);y(x,M,R,"\u2AB7","\\precapprox",!0);y(x,M,R,"\u22B2","\\vartriangleleft");y(x,M,R,"\u22B4","\\trianglelefteq");y(x,M,R,"\u22A8","\\vDash",!0);y(x,M,R,"\u22AA","\\Vvdash",!0);y(x,M,R,"\u2323","\\smallsmile");y(x,M,R,"\u2322","\\smallfrown");y(x,M,R,"\u224F","\\bumpeq",!0);y(x,M,R,"\u224E","\\Bumpeq",!0);y(x,M,R,"\u2267","\\geqq",!0);y(x,M,R,"\u2A7E","\\geqslant",!0);y(x,M,R,"\u2A96","\\eqslantgtr",!0);y(x,M,R,"\u2273","\\gtrsim",!0);y(x,M,R,"\u2A86","\\gtrapprox",!0);y(x,M,Ie,"\u22D7","\\gtrdot");y(x,M,R,"\u22D9","\\ggg",!0);y(x,M,R,"\u2277","\\gtrless",!0);y(x,M,R,"\u22DB","\\gtreqless",!0);y(x,M,R,"\u2A8C","\\gtreqqless",!0);y(x,M,R,"\u2256","\\eqcirc",!0);y(x,M,R,"\u2257","\\circeq",!0);y(x,M,R,"\u225C","\\triangleq",!0);y(x,M,R,"\u223C","\\thicksim");y(x,M,R,"\u2248","\\thickapprox");y(x,M,R,"\u2AC6","\\supseteqq",!0);y(x,M,R,"\u22D1","\\Supset",!0);y(x,M,R,"\u2290","\\sqsupset",!0);y(x,M,R,"\u227D","\\succcurlyeq",!0);y(x,M,R,"\u22DF","\\curlyeqsucc",!0);y(x,M,R,"\u227F","\\succsim",!0);y(x,M,R,"\u2AB8","\\succapprox",!0);y(x,M,R,"\u22B3","\\vartriangleright");y(x,M,R,"\u22B5","\\trianglerighteq");y(x,M,R,"\u22A9","\\Vdash",!0);y(x,M,R,"\u2223","\\shortmid");y(x,M,R,"\u2225","\\shortparallel");y(x,M,R,"\u226C","\\between",!0);y(x,M,R,"\u22D4","\\pitchfork",!0);y(x,M,R,"\u221D","\\varpropto");y(x,M,R,"\u25C0","\\blacktriangleleft");y(x,M,R,"\u2234","\\therefore",!0);y(x,M,R,"\u220D","\\backepsilon");y(x,M,R,"\u25B6","\\blacktriangleright");y(x,M,R,"\u2235","\\because",!0);y(x,M,R,"\u22D8","\\llless");y(x,M,R,"\u22D9","\\gggtr");y(x,M,Ie,"\u22B2","\\lhd");y(x,M,Ie,"\u22B3","\\rhd");y(x,M,R,"\u2242","\\eqsim",!0);y(x,S,R,"\u22C8","\\Join");y(x,M,R,"\u2251","\\Doteq",!0);y(x,M,Ie,"\u2214","\\dotplus",!0);y(x,M,Ie,"\u2216","\\smallsetminus");y(x,M,Ie,"\u22D2","\\Cap",!0);y(x,M,Ie,"\u22D3","\\Cup",!0);y(x,M,Ie,"\u2A5E","\\doublebarwedge",!0);y(x,M,Ie,"\u229F","\\boxminus",!0);y(x,M,Ie,"\u229E","\\boxplus",!0);
519y(x,M,Ie,"\u22C7","\\divideontimes",!0);y(x,M,Ie,"\u22C9","\\ltimes",!0);y(x,M,Ie,"\u22CA","\\rtimes",!0);y(x,M,Ie,"\u22CB","\\leftthreetimes",!0);y(x,M,Ie,"\u22CC","\\rightthreetimes",!0);y(x,M,Ie,"\u22CF","\\curlywedge",!0);y(x,M,Ie,"\u22CE","\\curlyvee",!0);y(x,M,Ie,"\u229D","\\circleddash",!0);y(x,M,Ie,"\u229B","\\circledast",!0);y(x,M,Ie,"\u22C5","\\centerdot");y(x,M,Ie,"\u22BA","\\intercal",!0);y(x,M,Ie,"\u22D2","\\doublecap");y(x,M,Ie,"\u22D3","\\doublecup");y(x,M,Ie,"\u22A0","\\boxtimes",!0);y(x,M,R,"\u21E2","\\dashrightarrow",!0);y(x,M,R,"\u21E0","\\dashleftarrow",!0);y(x,M,R,"\u21C7","\\leftleftarrows",!0);y(x,M,R,"\u21C6","\\leftrightarrows",!0);y(x,M,R,"\u21DA","\\Lleftarrow",!0);y(x,M,R,"\u219E","\\twoheadleftarrow",!0);y(x,M,R,"\u21A2","\\leftarrowtail",!0);y(x,M,R,"\u21AB","\\looparrowleft",!0);y(x,M,R,"\u21CB","\\leftrightharpoons",!0);y(x,M,R,"\u21B6","\\curvearrowleft",!0);y(x,M,R,"\u21BA","\\circlearrowleft",!0);y(x,M,R,"\u21B0","\\Lsh",!0);y(x,M,R,"\u21C8","\\upuparrows",!0);y(x,M,R,"\u21BF","\\upharpoonleft",!0);y(x,M,R,"\u21C3","\\downharpoonleft",!0);y(x,S,R,"\u22B6","\\origof",!0);y(x,S,R,"\u22B7","\\imageof",!0);y(x,M,R,"\u22B8","\\multimap",!0);y(x,M,R,"\u21AD","\\leftrightsquigarrow",!0);y(x,M,R,"\u21C9","\\rightrightarrows",!0);y(x,M,R,"\u21C4","\\rightleftarrows",!0);y(x,M,R,"\u21A0","\\twoheadrightarrow",!0);y(x,M,R,"\u21A3","\\rightarrowtail",!0);y(x,M,R,"\u21AC","\\looparrowright",!0);y(x,M,R,"\u21B7","\\curvearrowright",!0);y(x,M,R,"\u21BB","\\circlearrowright",!0);y(x,M,R,"\u21B1","\\Rsh",!0);y(x,M,R,"\u21CA","\\downdownarrows",!0);y(x,M,R,"\u21BE","\\upharpoonright",!0);y(x,M,R,"\u21C2","\\downharpoonright",!0);y(x,M,R,"\u21DD","\\rightsquigarrow",!0);y(x,M,R,"\u21DD","\\leadsto");y(x,M,R,"\u21DB","\\Rrightarrow",!0);y(x,M,R,"\u21BE","\\restriction");y(x,S,O,"\u2018","`");y(x,S,O,"$","\\$");y(K,S,O,"$","\\$");y(K,S,O,"$","\\textdollar");y(x,S,O,"%","\\%");y(K,S,O,"%","\\%");y(x,S,O,"_","\\_");y(K,S,O,"_","\\_");y(K,S,O,"_","\\textunderscore");y(x,S,O,"\u2220","\\angle",!0);y(x,S,O,"\u221E","\\infty",!0);y(x,S,O,"\u2032","\\prime");y(x,S,O,"\u25B3","\\triangle");y(x,S,O,"\u0393","\\Gamma",!0);y(x,S,O,"\u0394","\\Delta",!0);y(x,S,O,"\u0398","\\Theta",!0);y(x,S,O,"\u039B","\\Lambda",!0);y(x,S,O,"\u039E","\\Xi",!0);y(x,S,O,"\u03A0","\\Pi",!0);y(x,S,O,"\u03A3","\\Sigma",!0);y(x,S,O,"\u03A5","\\Upsilon",!0);y(x,S,O,"\u03A6","\\Phi",!0);y(x,S,O,"\u03A8","\\Psi",!0);y(x,S,O,"\u03A9","\\Omega",!0);y(x,S,O,"A","\u0391");y(x,S,O,"B","\u0392");y(x,S,O,"E","\u0395");y(x,S,O,"Z","\u0396");y(x,S,O,"H","\u0397");y(x,S,O,"I","\u0399");y(x,S,O,"K","\u039A");y(x,S,O,"M","\u039C");y(x,S,O,"N","\u039D");y(x,S,O,"O","\u039F");y(x,S,O,"P","\u03A1");y(x,S,O,"T","\u03A4");y(x,S,O,"X","\u03A7");y(x,S,O,"\xAC","\\neg",!0);y(x,S,O,"\xAC","\\lnot");y(x,S,O,"\u22A4","\\top");y(x,S,O,"\u22A5","\\bot");y(x,S,O,"\u2205","\\emptyset");y(x,M,O,"\u2205","\\varnothing");y(x,S,Me,"\u03B1","\\alpha",!0);y(x,S,Me,"\u03B2","\\beta",!0);y(x,S,Me,"\u03B3","\\gamma",!0);y(x,S,Me,"\u03B4","\\delta",!0);y(x,S,Me,"\u03F5","\\epsilon",!0);y(x,S,Me,"\u03B6","\\zeta",!0);y(x,S,Me,"\u03B7","\\eta",!0);y(x,S,Me,"\u03B8","\\theta",!0);y(x,S,Me,"\u03B9","\\iota",!0);y(x,S,Me,"\u03BA","\\kappa",!0);y(x,S,Me,"\u03BB","\\lambda",!0);y(x,S,Me,"\u03BC","\\mu",!0);y(x,S,Me,"\u03BD","\\nu",!0);y(x,S,Me,"\u03BE","\\xi",!0);y(x,S,Me,"\u03BF","\\omicron",!0);y(x,S,Me,"\u03C0","\\pi",!0);y(x,S,Me,"\u03C1","\\rho",!0);y(x,S,Me,"\u03C3","\\sigma",!0);y(x,S,Me,"\u03C4","\\tau",!0);y(x,S,Me,"\u03C5","\\upsilon",!0);y(x,S,Me,"\u03D5","\\phi",!0);y(x,S,Me,"\u03C7","\\chi",!0);y(x,S,Me,"\u03C8","\\psi",!0);y(x,S,Me,"\u03C9","\\omega",!0);y(x,S,Me,"\u03B5","\\varepsilon",!0);y(x,S,Me,"\u03D1","\\vartheta",!0);y(x,S,Me,"\u03D6","\\varpi",!0);y(x,S,Me,"\u03F1","\\varrho",!0);y(x,S,Me,"\u03C2","\\varsigma",!0);y(x,S,Me,"\u03C6","\\varphi",!0);y(x,S,Ie,"\u2217","*",!0);y(x,S,Ie,"+","+");y(x,S,Ie,"\u2212","-",!0);y(x,S,Ie,"\u22C5","\\cdot",!0);y(x,S,Ie,"\u2218","\\circ",!0);y(x,S,Ie,"\xF7","\\div",!0);y(x,S,Ie,"\xB1","\\pm",!0);y(x,S,Ie,"\xD7","\\times",!0);y(x,S,Ie,"\u2229","\\cap",!0);y(x,S,Ie,"\u222A","\\cup",!0);y(x,S,Ie,"\u2216","\\setminus",!0);y(x,S,Ie,"\u2227","\\land");y(x,S,Ie,"\u2228","\\lor");y(x,S,Ie,"\u2227","\\wedge",!0);y(x,S,Ie,"\u2228","\\vee",!0);y(x,S,O,"\u221A","\\surd");y(x,S,Mn,"\u27E8","\\langle",!0);y(x,S,Mn,"\u2223","\\lvert");y(x,S,Mn,"\u2225","\\lVert");y(x,S,Qr,"?","?");y(x,S,Qr,"!","!");y(x,S,Qr,"\u27E9","\\rangle",!0);y(x,S,Qr,"\u2223","\\rvert");y(x,S,Qr,"\u2225","\\rVert");y(x,S,R,"=","=");y(x,S,R,":",":");y(x,S,R,"\u2248","\\approx",!0);y(x,S,R,"\u2245","\\cong",!0);y(x,S,R,"\u2265","\\ge");y(x,S,R,"\u2265","\\geq",!0);y(x,S,R,"\u2190","\\gets");y(x,S,R,">","\\gt",!0);y(x,S,R,"\u2208","\\in",!0);y(x,S,R,"\uE020","\\@not");y(x,S,R,"\u2282","\\subset",!0);y(x,S,R,"\u2283","\\supset",!0);y(x,S,R,"\u2286","\\subseteq",!0);y(x,S,R,"\u2287","\\supseteq",!0);y(x,M,R,"\u2288","\\nsubseteq",!0);y(x,M,R,"\u2289","\\nsupseteq",!0);y(x,S,R,"\u22A8","\\models");y(x,S,R,"\u2190","\\leftarrow",!0);y(x,S,R,"\u2264","\\le");y(x,S,R,"\u2264","\\leq",!0);y(x,S,R,"<","\\lt",!0);y(x,S,R,"\u2192","\\rightarrow",!0);y(x,S,R,"\u2192","\\to");y(x,M,R,"\u2271","\\ngeq",!0);y(x,M,R,"\u2270","\\nleq",!0);y(x,S,Fi,"\xA0","\\ ");y(x,S,Fi,"\xA0","\\space");y(x,S,Fi,"\xA0","\\nobreakspace");y(K,S,Fi,"\xA0","\\ ");y(K,S,Fi,"\xA0"," ");y(K,S,Fi,"\xA0","\\space");y(K,S,Fi,"\xA0","\\nobreakspace");y(x,S,Fi,null,"\\nobreak");y(x,S,Fi,null,"\\allowbreak");y(x,S,Bm,",",",");y(x,S,Bm,";",";");y(x,M,Ie,"\u22BC","\\barwedge",!0);y(x,M,Ie,"\u22BB","\\veebar",!0);y(x,S,Ie,"\u2299","\\odot",!0);y(x,S,Ie,"\u2295","\\oplus",!0);y(x,S,Ie,"\u2297","\\otimes",!0);y(x,S,O,"\u2202","\\partial",!0);y(x,S,Ie,"\u2298","\\oslash",!0);y(x,M,Ie,"\u229A","\\circledcirc",!0);y(x,M,Ie,"\u22A1","\\boxdot",!0);
vendor: 11,041 bytes, line 519
519y(x,S,Ie,"\u25B3","\\bigtriangleup");y(x,S,Ie,"\u25BD","\\bigtriangledown");y(x,S,Ie,"\u2020","\\dagger");y(x,S,Ie,"\u22C4","\\diamond");y(x,S,Ie,"\u22C6","\\star");y(x,S,Ie,"\u25C3","\\triangleleft");y(x,S,Ie,"\u25B9","\\triangleright");y(x,S,Mn,"{","\\{");y(K,S,O,"{","\\{");y(K,S,O,"{","\\textbraceleft");y(x,S,Qr,"}","\\}");y(K,S,O,"}","\\}");y(K,S,O,"}","\\textbraceright");y(x,S,Mn,"{","\\lbrace");y(x,S,Qr,"}","\\rbrace");y(x,S,Mn,"[","\\lbrack",!0);y(K,S,O,"[","\\lbrack",!0);y(x,S,Qr,"]","\\rbrack",!0);y(K,S,O,"]","\\rbrack",!0);y(x,S,Mn,"(","\\lparen",!0);y(x,S,Qr,")","\\rparen",!0);y(K,S,O,"<","\\textless",!0);y(K,S,O,">","\\textgreater",!0);y(x,S,Mn,"\u230A","\\lfloor",!0);y(x,S,Qr,"\u230B","\\rfloor",!0);y(x,S,Mn,"\u2308","\\lceil",!0);y(x,S,Qr,"\u2309","\\rceil",!0);y(x,S,O,"\\","\\backslash");y(x,S,O,"\u2223","|");y(x,S,O,"\u2223","\\vert");y(K,S,O,"|","\\textbar",!0);y(x,S,O,"\u2225","\\|");y(x,S,O,"\u2225","\\Vert");y(K,S,O,"\u2225","\\textbardbl");y(K,S,O,"~","\\textasciitilde");y(K,S,O,"\\","\\textbackslash");y(K,S,O,"^","\\textasciicircum");y(x,S,R,"\u2191","\\uparrow",!0);y(x,S,R,"\u21D1","\\Uparrow",!0);y(x,S,R,"\u2193","\\downarrow",!0);y(x,S,R,"\u21D3","\\Downarrow",!0);y(x,S,R,"\u2195","\\updownarrow",!0);y(x,S,R,"\u21D5","\\Updownarrow",!0);y(x,S,ur,"\u2210","\\coprod");y(x,S,ur,"\u22C1","\\bigvee");y(x,S,ur,"\u22C0","\\bigwedge");y(x,S,ur,"\u2A04","\\biguplus");y(x,S,ur,"\u22C2","\\bigcap");y(x,S,ur,"\u22C3","\\bigcup");y(x,S,ur,"\u222B","\\int");y(x,S,ur,"\u222B","\\intop");y(x,S,ur,"\u222C","\\iint");y(x,S,ur,"\u222D","\\iiint");y(x,S,ur,"\u220F","\\prod");y(x,S,ur,"\u2211","\\sum");y(x,S,ur,"\u2A02","\\bigotimes");y(x,S,ur,"\u2A01","\\bigoplus");y(x,S,ur,"\u2A00","\\bigodot");y(x,S,ur,"\u222E","\\oint");y(x,S,ur,"\u222F","\\oiint");y(x,S,ur,"\u2230","\\oiiint");y(x,S,ur,"\u2A06","\\bigsqcup");y(x,S,ur,"\u222B","\\smallint");y(K,S,mu,"\u2026","\\textellipsis");y(x,S,mu,"\u2026","\\mathellipsis");y(K,S,mu,"\u2026","\\ldots",!0);y(x,S,mu,"\u2026","\\ldots",!0);y(x,S,mu,"\u22EF","\\@cdots",!0);y(x,S,mu,"\u22F1","\\ddots",!0);y(x,S,O,"\u22EE","\\varvdots");y(K,S,O,"\u22EE","\\varvdots");y(x,S,Zt,"\u02CA","\\acute");y(x,S,Zt,"\u02CB","\\grave");y(x,S,Zt,"\xA8","\\ddot");y(x,S,Zt,"~","\\tilde");y(x,S,Zt,"\u02C9","\\bar");y(x,S,Zt,"\u02D8","\\breve");y(x,S,Zt,"\u02C7","\\check");y(x,S,Zt,"^","\\hat");y(x,S,Zt,"\u20D7","\\vec");y(x,S,Zt,"\u02D9","\\dot");y(x,S,Zt,"\u02DA","\\mathring");y(x,S,Me,"\uE131","\\@imath");y(x,S,Me,"\uE237","\\@jmath");y(x,S,O,"\u0131","\u0131");y(x,S,O,"\u0237","\u0237");y(K,S,O,"\u0131","\\i",!0);y(K,S,O,"\u0237","\\j",!0);y(K,S,O,"\xDF","\\ss",!0);y(K,S,O,"\xE6","\\ae",!0);y(K,S,O,"\u0153","\\oe",!0);y(K,S,O,"\xF8","\\o",!0);y(K,S,O,"\xC6","\\AE",!0);y(K,S,O,"\u0152","\\OE",!0);y(K,S,O,"\xD8","\\O",!0);y(K,S,Zt,"\u02CA","\\'");y(K,S,Zt,"\u02CB","\\`");y(K,S,Zt,"\u02C6","\\^");y(K,S,Zt,"\u02DC","\\~");y(K,S,Zt,"\u02C9","\\=");y(K,S,Zt,"\u02D8","\\u");y(K,S,Zt,"\u02D9","\\.");y(K,S,Zt,"\xB8","\\c");y(K,S,Zt,"\u02DA","\\r");y(K,S,Zt,"\u02C7","\\v");y(K,S,Zt,"\xA8",'\\"');y(K,S,Zt,"\u02DD","\\H");y(K,S,Zt,"\u25EF","\\textcircled");var dZ={"--":!0,"---":!0,"``":!0,"''":!0};y(K,S,O,"\u2013","--",!0);y(K,S,O,"\u2013","\\textendash");y(K,S,O,"\u2014","---",!0);y(K,S,O,"\u2014","\\textemdash");y(K,S,O,"\u2018","`",!0);y(K,S,O,"\u2018","\\textquoteleft");y(K,S,O,"\u2019","'",!0);y(K,S,O,"\u2019","\\textquoteright");y(K,S,O,"\u201C","``",!0);y(K,S,O,"\u201C","\\textquotedblleft");y(K,S,O,"\u201D","''",!0);y(K,S,O,"\u201D","\\textquotedblright");y(x,S,O,"\xB0","\\degree",!0);y(K,S,O,"\xB0","\\degree");y(K,S,O,"\xB0","\\textdegree",!0);y(x,S,O,"\xA3","\\pounds");y(x,S,O,"\xA3","\\mathsterling",!0);y(K,S,O,"\xA3","\\pounds");y(K,S,O,"\xA3","\\textsterling",!0);y(x,M,O,"\u2720","\\maltese");y(K,M,O,"\u2720","\\maltese");var MF='0123456789/@."';for(Jy=0;Jy<MF.length;Jy++)xI=MF.charAt(Jy),y(x,S,O,xI,xI);var xI,Jy,RF='0123456789!@*()-=+";:?/.,';for(Ky=0;Ky<RF.length;Ky++)wI=RF.charAt(Ky),y(K,S,O,wI,wI);var wI,Ky,lb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(Xy=0;Xy<lb.length;Xy++)Mm=lb.charAt(Xy),y(x,S,Me,Mm,Mm),y(K,S,O,Mm,Mm);var Mm,Xy;y(x,M,O,"C","\u2102");y(K,M,O,"C","\u2102");y(x,M,O,"H","\u210D");y(K,M,O,"H","\u210D");y(x,M,O,"N","\u2115");y(K,M,O,"N","\u2115");y(x,M,O,"P","\u2119");y(K,M,O,"P","\u2119");y(x,M,O,"Q","\u211A");y(K,M,O,"Q","\u211A");y(x,M,O,"R","\u211D");y(K,M,O,"R","\u211D");y(x,M,O,"Z","\u2124");y(K,M,O,"Z","\u2124");y(x,S,Me,"h","\u210E");y(K,S,Me,"h","\u210E");var je="";for(Dr=0;Dr<lb.length;Dr++)Wt=lb.charAt(Dr),je=String.fromCharCode(55349,56320+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56372+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56424+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56580+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56684+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56736+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56788+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56840+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56944+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),Dr<26&&(je=String.fromCharCode(55349,56632+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je),je=String.fromCharCode(55349,56476+Dr),y(x,S,Me,Wt,je),y(K,S,O,Wt,je));var Wt,Dr;je="\u{1D55C}";y(x,S,Me,"k",je);y(K,S,O,"k",je);for(Za=0;Za<10;Za++)Li=Za.toString(),je=String.fromCharCode(55349,57294+Za),y(x,S,Me,Li,je),y(K,S,O,Li,je),je=String.fromCharCode(55349,57314+Za),y(x,S,Me,Li,je),y(K,S,O,Li,je),je=String.fromCharCode(55349,57324+Za),y(x,S,Me,Li,je),y(K,S,O,Li,je),je=String.fromCharCode(55349,57334+Za),y(x,S,Me,Li,je),y(K,S,O,Li,je);var Li,Za,OI="\xD0\xDE\xFE";for(Yy=0;Yy<OI.length;Yy++)Rm=OI.charAt(Yy),y(x,S,Me,Rm,Rm),y(K,S,O,Rm,Rm);var Rm,Yy,Qy=[["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"]],NF=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],gde=(e,t)=>{var r=e.charCodeAt(0),o=e.charCodeAt(1),n=(r-55296)*1024+(o-56320)+65536,i=t==="math"?0:1;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return[Qy[a][2],Qy[a][i]]}else if(120782<=n&&n<=120831){var s=Math.floor((n-120782)/10);return[NF[s][2],NF[s][i]]}else{if(n===120485||n===120486)return[Qy[0][2],Qy[0][i]];if(120486<n&&n<120782)return["",""];throw new ie("Unsupported character: "+e)}},gb=function(t,r,o){if(Ft[o][t]){var n=Ft[o][t].replace;n&&(t=n)}return{value:t,metrics:XI(t,r,o)}},Kr=function(t,r,o,n,i){var a=gb(t,r,o),s=a.metrics;t=a.value;var c;if(s){var u=s.italic;(o==="text"||n&&n.font==="mathit")&&(u=0),c=new Yr(t,s.height,s.depth,u,s.skew,s.width,i)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+o+"'")),c=new Yr(t,0,0,0,0,0,i);if(n){c.maxFontSize=n.sizeMultiplier,n.style.isTight()&&c.classes.push("mtight");var p=n.getColor();p&&(c.style.color=p)}return c},YI=function(t,r,o,n){return n===void 0&&(n=[]),o.font==="boldsymbol"&&gb(t,"Main-Bold",r).metrics?Kr(t,"Main-Bold",r,o,n.concat(["mathbf"])):t==="\\"||Ft[r][t].font==="main"?Kr(t,"Main-Regular",r,o,n):Kr(t,"AMS-Regular",r,o,n.concat(["amsrm"]))},vde=function(t,r,o,n,i){return i!=="textord"&&gb(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},vb=function(t,r,o){var n=t.mode,i=t.text,a=["mord"],s=n==="math"||n==="text"&&r.font,c=s?r.font:r.fontFamily,u="",p="";if(i.charCodeAt(0)===55349&&([u,p]=gde(i,n)),u.length>0)return Kr(i,u,n,r,a.concat(p));if(c){var m,h;if(c==="boldsymbol"){var g=vde(i,n,r,a,o);m=g.fontName,h=[g.fontClass]}else s?(m=LI[c].fontName,h=[c]):(m=eb(c,r.fontWeight,r.fontShape),h=[c,r.fontWeight,r.fontShape]);if(gb(i,m,n).metrics)return Kr(i,m,n,r,a.concat(h));if(dZ.hasOwnProperty(i)&&m.slice(0,10)==="Typewriter"){for(var b=[],T=0;T<i.length;T++)b.push(Kr(i[T],m,n,r,a.concat(h)));return Zi(b)}}if(o==="mathord")return Kr(i,"Math-Italic",n,r,a.concat(["mathnormal"]));if(o==="textord"){var I=Ft[n][i]&&Ft[n][i].font;if(I==="ams"){var P=eb("amsrm",r.fontWeight,r.fontShape);return Kr(i,P,n,r,a.concat("amsrm",r.fontWeight,r.fontShape))}else if(I==="main"||!I){var C=eb("textrm",r.fontWeight,r.fontShape);return Kr(i,C,n,r,a.concat(r.fontWeight,r.fontShape))}else{var k=eb(I,r.fontWeight,r.fontShape);return Kr(i,k,n,r,a.concat(k,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+o+" in makeOrd")},yde=(e,t)=>{if(qa(e.classes)!==qa(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 o of Object.keys(e.style))if(e.style[o]!==t.style[o])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},pZ=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],o=e[t+1];r instanceof Yr&&o instanceof Yr&&yde(r,o)&&(r.text+=o.text,r.height=Math.max(r.height,o.height),r.depth=Math.max(r.depth,o.depth),r.italic=o.italic,e.splice(t+1,1),t--)}return e},QI=function(t){for(var r=0,o=0,n=0,i=0;i<t.children.length;i++){var a=t.children[i];a.height>r&&(r=a.height),a.depth>o&&(o=a.depth),a.maxFontSize>n&&(n=a.maxFontSize)}t.height=r,t.depth=o,t.maxFontSize=n},X=function(t,r,o,n){var i=new Ha(t,r,o,n);return QI(i),i},Wa=(e,t,r,o)=>new Ha(e,t,r,o),du=function(t,r,o){var n=X([t],[],r);return n.height=Math.max(o||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=le(n.height),n.maxFontSize=1,n},bde=function(t,r,o,n){var i=new uu(t,r,o,n);return QI(i),i},Zi=function(t){var r=new Ga(t);return QI(r),r},pu=function(t,r){return t instanceof Ga?X([],[t],r):t},xde=function(t){if(t.positionType==="individualShift"){for(var r=t.children,o=[r[0]],n=-r[0].shift-r[0].elem.depth,i=n,a=1;a<r.length;a++){var s=-r[a].shift-i-r[a].elem.depth,c=s-(r[a-1].elem.height+r[a-1].elem.depth);i=i+s,o.push({type:"kern",size:c}),o.push(r[a])}return{children:o,depth:n}}var u;if(t.positionType==="top"){for(var p=t.positionData,m=0;m<t.children.length;m++){var h=t.children[m];
vendor: 2,633 bytes, line 519
519p-=h.type==="kern"?h.size:h.elem.height+h.elem.depth}u=p}else if(t.positionType==="bottom")u=-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")u=-g.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-g.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},vt=function(t,r){for(var{children:o,depth:n}=xde(t),i=0,a=0;a<o.length;a++){var s=o[a];if(s.type==="elem"){var c=s.elem;i=Math.max(i,c.maxFontSize,c.height)}}i+=2;var u=X(["pstrut"],[]);u.style.height=le(i);for(var p=[],m=n,h=n,g=n,b=0;b<o.length;b++){var T=o[b];if(T.type==="kern")g+=T.size;else{var I=T.elem,P=T.wrapperClasses||[],C=T.wrapperStyle||{},k=X(P,[u,I],void 0,C);k.style.top=le(-i-g-I.depth),T.marginLeft&&(k.style.marginLeft=T.marginLeft),T.marginRight&&(k.style.marginRight=T.marginRight),p.push(k),g+=I.height+I.depth}m=Math.min(m,g),h=Math.max(h,g)}var A=X(["vlist"],p);A.style.height=le(h);var z;if(m<0){var N=X([],[]),B=X(["vlist"],[N]);B.style.height=le(-m);var G=X(["vlist-s"],[new Yr("\u200B")]);z=[X(["vlist-r"],[A,G]),X(["vlist-r"],[B])]}else z=[X(["vlist-r"],[A])];var F=X(["vlist-t"],z);return z.length===2&&F.classes.push("vlist-t2"),F.height=h,F.depth=-m,F},mZ=(e,t)=>{var r=X(["mspace"],[],t),o=Kt(e,t);return r.style.marginRight=le(o),r},eb=function(t,r,o){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 i;return r==="textbf"&&o==="textit"?i="BoldItalic":r==="textbf"?i="Bold":r==="textit"?i="Italic":i="Regular",n+"-"+i},LI={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"}},fZ={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},hZ=function(t,r){var[o,n,i]=fZ[t],a=new Jo(o),s=new xo([a],{width:le(n),height:le(i),style:"width:"+le(n),viewB
vendor: 4,410 bytes, line 519
519ox:"0 0 "+1e3*n+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=Wa(["overlay"],[s],r);return c.height=i,c.style.height=le(i),c.style.width=le(n),c},Jt={number:3,unit:"mu"},tl={number:4,unit:"mu"},ji={number:5,unit:"mu"},wde={mord:{mop:Jt,mbin:tl,mrel:ji,minner:Jt},mop:{mord:Jt,mop:Jt,mrel:ji,minner:Jt},mbin:{mord:tl,mop:tl,mopen:tl,minner:tl},mrel:{mord:ji,mop:ji,mopen:ji,minner:ji},mopen:{},mclose:{mop:Jt,mbin:tl,mrel:ji,minner:Jt},mpunct:{mord:Jt,mop:Jt,mrel:ji,mopen:Jt,mclose:Jt,mpunct:Jt,minner:Jt},minner:{mord:Jt,mop:Jt,mbin:tl,mrel:ji,mopen:Jt,mpunct:Jt,minner:Jt}},_de={mord:{mop:Jt},mop:{mord:Jt,mop:Jt},mbin:{},mrel:{},mopen:{},mclose:{mop:Jt},mpunct:{},minner:{mop:Jt}},gZ={},cb={},ub={};function we(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:a}=e,s={type:t,numArgs:o.numArgs,argTypes:o.argTypes,allowedInArgument:!!o.allowedInArgument,allowedInText:!!o.allowedInText,allowedInMath:o.allowedInMath===void 0?!0:o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,primitive:!!o.primitive,handler:n},c=0;c<r.length;++c)gZ[r[c]]=s;t&&(i&&(cb[t]=i),a&&(ub[t]=a))}function rl(e){var{type:t,htmlBuilder:r,mathmlBuilder:o}=e;we({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:o})}var db=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},cr=function(t){return t.type==="ordgroup"?t.body:[t]},kde=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),Sde=new Set(["rightmost","mrel","mclose","mpunct"]),Ide={display:Ze.DISPLAY,text:Ze.TEXT,script:Ze.SCRIPT,scriptscript:Ze.SCRIPTSCRIPT},Tde={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},vr=function(t,r,o,n){n===void 0&&(n=[null,null]);for(var i=[],a=0;a<t.length;a++){var s=yt(t[a],r);if(s instanceof Ga){var c=s.children;i.push(...c)}else i.push(s)}if(pZ(i),!o)return i;var u=r;if(t.length===1){var p=t[0];p.type==="sizing"?u=r.havingSize(p.size):p.type==="styling"&&(u=r.havingStyle(Ide[p.style]))}var m=X([n[0]||"leftmost"],[],r),h=X([n[1]||"rightmost"],[],r),g=o==="root";return jI(i,(b,T)=>{var I=T.classes[0],P=b.classes[0];I==="mbin"&&Sde.has(P)?T.classes[0]="mord":P==="mbin"&&kde.has(I)&&(b.classes[0]="mord")},{node:m},h,g),jI(i,(b,T)=>{var I,P,C=BI(T),k=BI(b),A=C&&k?b.hasClass("mtight")?(I=_de[C])==null?void 0:I[k]:(P=wde[C])==null?void 0:P[k]:null;if(A)return mZ(A,u)},{node:m},h,g),i},jI=function(t,r,o,n,i){n&&t.push(n);for(var a=0;a<t.length;a++){var s=t[a],c=vZ(s);if(c){jI(c.children,r,o,null,i);continue}var u=!s.hasClass("mspace");if(u){var p=r(s,o.node);p&&(o.insertAfter?o.insertAfter(p):(t.unshift(p),a++))}u?o.node=s:i&&s.hasClass("newline")&&(o.node=X(["leftmost"])),o.insertAfter=(m=>h=>{t.splice(m+1,0,h),a++})(a)}n&&t.pop()},vZ=function(t){return t instanceof Ga||t instanceof uu||t instanceof Ha&&t.hasClass("enclosing")?t:null},UI=function(t,r){var o=vZ(t);if(o){var n=o.children;if(n.length){if(r==="right")return UI(n[n.length-1],"right");if(r==="left")return UI(n[0],"left")}}return t},BI=function(t,r){if(!t)return null;r&&(t=UI(t,r));var o=t.classes[0];return Tde[o]||null},Um=function(t,r){var o=["nulldelimiter"].concat(t.baseSizingClasses());return X(r.concat(o))},yt=function(t,r,o){if(!t)return X();if(cb[t.type]){var n=cb[t.type](t,r);if(o&&r.size!==o.size){n=X(r.sizingClasses(o),[n],r);var i=r.sizeMultiplier/o.sizeMultiplier;n.height*=i,n.depth*=i}return n}else throw new ie("Got group of unknown type: '"+t.type+"'")};function tb(e,t){var r=X(["base"],e,t),o=X(["strut"]);return o.style.height=le(r.height+r.depth),r.depth&&(o.style.verticalAlign=le(-r.depth)),r.children.unshift(o),r}function FI(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var o=vr(e,t,"root"),n;o.length===2&&o[1].hasClass("tag")&&(n=o.pop());for(var i=[],a=[],s=0;s<o.length;s++)if(a.push(o[s]),o[s].hasClass("mbin")||o[s].hasClass("mrel")||o[s].hasClass("allowbreak")){for(var c=!1;s<o.length-1&&o[s+1].hasClass("mspace")&&!o[s+1].hasClass("newline");)s++,a.push(o[s]),o[s].hasClass("nobreak")&&(c=!0);c||(i.push(tb(a,t)),a=[])}else o[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(tb(a,t)),a=[]),i.push(o[s]));a.length>0&&i.push(tb(a,t));var u;r?(u=tb(vr(r,t,!0),t),u.classes=["tag"],i.push(u)):n&&i.push(n);var p=X(["katex-html"],i);if(p.setAttribute("aria-hidden","true"),u){var m=u.children[0];
vendor: 4,611 bytes, line 519
519m.style.height=le(p.height+p.depth),p.depth&&(m.style.verticalAlign=le(-p.depth))}return p}function yZ(e){return new Ga(e)}var re=class{constructor(t,r,o){this.type=t,this.attributes={},this.children=r||[],this.classes=o||[]}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=qa(this.classes));for(var o=0;o<this.children.length;o++)if(this.children[o]instanceof Qt&&this.children[o+1]instanceof Qt){for(var n=this.children[o].toText()+this.children[++o].toText();this.children[o+1]instanceof Qt;)n+=this.children[++o].toText();t.appendChild(new Qt(n).toNode())}else t.appendChild(this.children[o].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Or(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Or(qa(this.classes))+'"'),t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}},Qt=class{constructor(t){this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Or(this.toText())}toText(){return this.text}},pb=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",le(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+le(this.width)+'"/>'}toText(){return this.character?this.character:" "}},$de=new Set(["\\imath","\\jmath"]),Pde=new Set(["mrow","mtable"]),Yn=function(t,r,o){return Ft[r][t]&&Ft[r][t].replace&&t.charCodeAt(0)!==55349&&!(dZ.hasOwnProperty(t)&&o&&(o.fontFamily&&o.fontFamily.slice(4,6)==="tt"||o.font&&o.font.slice(4,6)==="tt"))&&(t=Ft[r][t].replace),new Qt(t)},eT=function(t){return t.length===1?t[0]:new re("mrow",t)},tT=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 o=r.font;if(!o||o==="mathnormal")return null;var n=t.mode;if(o==="mathit")return"italic";if(o==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(o==="mathbf")return"bold";if(o==="mathbb")return"double-struck";if(o==="mathsfit")return"sans-serif-italic";if(o==="mathfrak")return"fraktur";if(o==="mathscr"||o==="mathcal")return"script";if(o==="mathsf")return"sans-serif";if(o==="mathtt")return"monospace";var i=t.text;if($de.has(i))return null;if(Ft[n][i]){var a=Ft[n][i].replace;a&&(i=a)}var s=LI[o].fontName;return XI(i,s,n)?LI[o].variant:null};function _I(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Qt&&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 Qt&&r.text===","}else return!1}var Rn=function(t,r,o){if(t.length===1){var n=At(t[0],r);return o&&n instanceof re&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var i=[],a,s=0;s<t.length;s++){var c=At(t[s],r);if(c instanceof re&&a instanceof re){if(c.type==="mtext"&&a.type==="mtext"&&c.getAttribute("mathvariant")===a.getAttribute("mathvariant")){a.children.push(...c.children);continue}else if(c.type==="mn"&&a.type==="mn"){a.children.push(...c.children);continue}else if(_I(c)&&a.type==="mn"){a.children.push(...c.children);continue}else if(c.type==="mn"&&_I(a))c.children=[...a.children,...c.children],i.pop();else if((c.type==="msup"||c.type==="msub")&&c.children.length>
vendor: 8,409 bytes, line 519
519=1&&(a.type==="mn"||_I(a))){var u=c.children[0];u instanceof re&&u.type==="mn"&&(u.children=[...a.children,...u.children],i.pop())}else if(a.type==="mi"&&a.children.length===1){var p=a.children[0];if(p instanceof Qt&&p.text==="\u0338"&&(c.type==="mo"||c.type==="mi"||c.type==="mn")){var m=c.children[0];m instanceof Qt&&m.text.length>0&&(m.text=m.text.slice(0,1)+"\u0338"+m.text.slice(1),i.pop())}}}i.push(c),a=c}return i},Ja=function(t,r,o){return eT(Rn(t,r,o))},At=function(t,r){if(!t)return new re("mrow");if(ub[t.type]){var o=ub[t.type](t,r);return o}else throw new ie("Got group of unknown type: '"+t.type+"'")};function DF(e,t,r,o,n){var i=Rn(e,r),a;i.length===1&&i[0]instanceof re&&Pde.has(i[0].type)?a=i[0]:a=new re("mrow",i);var s=new re("annotation",[new Qt(t)]);s.setAttribute("encoding","application/x-tex");var c=new re("semantics",[a,s]),u=new re("math",[c]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&u.setAttribute("display","block");var p=n?"katex":"katex-mathml";return X([p],[u])}var Cde=[[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]],OF=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],LF=function(t,r){return r.size<2?t:Cde[t-1][r.size-1]},mb=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=OF[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:LF(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:OF[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=LF(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=mde(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};mb.BASESIZE=6;var bZ=function(t){return new mb({style:t.displayMode?Ze.DISPLAY:Ze.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},xZ=function(t,r){if(r.displayMode){var o=["katex-display"];r.leqno&&o.push("leqno"),r.fleqn&&o.push("fleqn"),t=X(o,[t])}return t},Ede=function(t,r,o){var n=bZ(o),i;if(o.output==="mathml")return DF(t,r,n,o.displayMode,!0);if(o.output==="html"){var a=FI(t,n);i=X(["katex"],[a])}else{var s=DF(t,r,n,o.displayMode,!1),c=FI(t,n);i=X(["katex"],[s,c])}return xZ(i,o)},zde=function(t,r,o){var n=bZ(o),i=FI(t,n),a=X(["katex"],[i]);return xZ(a,o)},Ade={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":"="},yb=function(t){var r=new re("mo",[new Qt(Ade[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},Mde={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]},Rde=new Set(["widehat","widecheck","widetilde","utilde"]),bb=function(t,r){function o(){var s=4e5,c=t.label.slice(1);if(Rde.has(c)){var u=t,p=u.base.type==="ordgroup"?u.base.body.length:1,m,h,g;if(p>5)c==="widehat"||c==="widecheck"?(m=420,s=2364,g=.42,h=c+"4"):(m=312,s=2340,g=.34,h="tilde4");else{var b=[1,1,2,2,3,3][p];c==="widehat"||c==="widecheck"?(s=[0,1062,2364,2364,2364][b],m=[0,239,300,360,420][b],g=[0,.24,.3,.3,.36,.42][b],h=c+b):(s=[0,600,1033,2339,2340][b],m=[0,260,286,306,312][b],g=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var T=new Jo(h),I=new xo([T],{width:"100%",height:le(g),viewBox:"0 0 "+s+" "+m,preserveAspectRatio:"none"});return{span:Wa([],[I],r),minWidth:0,height:g}}else{var P=[],C=Mde[c],[k,A,z]=C,N=z/1e3,B=k.length,G,F;if(B===1){var W=C[3];G=["hide-tail"],F=[W]}else if(B===2)G=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(B===3)G=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to supp
519ort 520 `+B+" children.");for(var ue=0;ue<B;ue++){var de=new Jo(k[ue]),ft=new xo([de],{width:"400em",height:le(N),viewBox:"0 0 "+s+" "+z,preserveAspectRatio:F[ue]+" slice"}),$e=Wa([G[ue]],[ft],r);if(B===1)return{span:$e,minWidth:A,height:N};$e.style.height=le(N),P.push($e)}return{span:X(["stretchy"],P,r),minWidth:A,height:N}}}var{span:n,minWidth:i,height:a}=o();return n.height=a,n.style.height=le(a),i>0&&(n.style.minWidth=le(i)),n},Nde=function(t,r,o,n,i){var a,s=t.height+t.depth+o+n;if(/fbox|color|angl/.test(r)){if(a=X(["stretchy",r],[],i),r==="fbox"){var c=i.color&&i.getColor();c&&(a.style.borderColor=c)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new jm({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new jm({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var p=new xo(u,{width:"100%",height:le(s)});a=Wa([],[p],i)}return a.height=s,a.style.height=le(s),a};function Qe(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 xb(e){var t=wb(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 wb(e){return e&&(e.type==="atom"||hde.hasOwnProperty(e.type))?e:null}var wZ=e=>{if(e instanceof Yr)return e;if(dde(e)&&e.children.length===1)return wZ(e.children[0])},rT=(e,t)=>{var r,o,n;e&&e.type==="supsub"?(o=Qe(e.base,"accent"),r=o.base,e.base=r,n=ude(yt(e,t)),e.base=o):(o=Qe(e,"accent"),r=o.base);var i=yt(r,t.havingCrampedStyle()),a=o.isShifty&&Bi(r),s=0;if(a){var c,u;s=(c=(u=wZ(i))==null?void 0:u.skew)!=null?c:0}var p=o.label==="\\c",m=p?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight),h;if(o.isStretchy)h=bb(o,t),h=vt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:s>0?{width:"calc(100% - "+le(2*s)+")",marginLeft:le(2*s)}:void 0}]});else{var g,b;o.label==="\\vec"?(g=hZ("vec",t),b=fZ.vec[1]):(g=vb({type:"textord",mode:o.mode,text:o.label},t,"textord"),g=cde(g),g.italic=0,b=g.width,p&&(m+=g.depth)),h=X(["accent-body"],[g]);var T=o.label==="\\textcircled";T&&(h.classes.push("accent-full"),m=i.height);var I=s;T||(I-=b/2),h.style.left=le(I),o.label==="\\textcircled"&&(h.style.top=".2em"),h=vt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-m},{type:"elem",elem:h}]})}var P=X(["mord","accent"],[h],t);return n?(n.children[0]=P,n.height=Math.max(P.height,n.height),n.classes[0]="mord",n):P},_Z=(e,t)=>{var r=e.isStretchy?yb(e.label):new re("mo",[Yn(e.label,e.mode)]),o=new re("mover",[At(e.base,t),r]);return o.setAttribute("accent","true"),o},Dde=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));we({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=db(t[0]),o=!Dde.test(e.funcName),n=!o||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:o,isShifty:n,base:r}},htmlBuilder:rT,mathmlBuilder:_Z});we({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],o=e.parser.mode;return o==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),o="text"),{type:"accent",mode:o,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:rT,mathmlBuilder:_Z});we({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:o,base:n}},htmlBuilder:(e,t)=>{var r=yt(e.base,t),o=bb(e,t),n=e.label==="\\utilde"?.12:0,i=vt({positionType:"top",positionData:r.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return X(["mord","accentunder"],[i],t)},mathmlBuilder:(e,t)=>{var r=yb(e.label),o=new re("munder",[At(e.base,t),r]);return o.setAttribute("accentunder","true"),o}});var rb=e=>{var t=new re("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};we({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:o,funcName:n}=e;return{type:"xArrow",mode:o.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,o=t.havingStyle(r.sup()),n=pu(yt(e.body,o,t),t),i=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(i+"-arrow-pad");var a;e.below&&(o=t.havingStyle(r.sub()),a=pu(yt(e.below,o,t),t),a.classes.push(i+"-arrow-pad"));var s=bb(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(u-=n.depth);var p;if(a){var m=-t.fontMetrics().axisHeight+a.height+.5*s.height+.111;p=vt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:c},{type:"elem",elem:a,shift:m}]})}else p=vt({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:s,shift:c}]});return p.children[0].children[0].children[1].classes.push("svg-align"),X(["mrel","x-arrow"],[p],t)},mathmlBuilder(e,t){var r=yb(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var o;if(e.body){var n=rb(At(e.body,t));if(e.below){var i=rb(At(e.below,t));o=new re("munderover",[r,i,n])}else o=new re("mover",[r,n])}else if(e.below){var a=rb(At(e.below,t));o=new re("munder",[r,a])}else o=rb(),o=new re("mover",[r,o]);return o}});function kZ(e,t){var r=vr(e.body,t,!0);return X([e.mclass],r,t)}function SZ(e,t){var r,o=Rn(e.body,t);return e.mclass==="minner"?r=new re("mpadded",o):e.mclass==="mord"?e.isCharacterBox?(r=o[0],r.type="mi"):r=new re("mi",o):(e.isCharacterBox?(r=o[0],r.type="mo"):r=new re("mo",o),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}we({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+o.slice(5),body:cr(n),isCharacterBox:Bi(n)}},htmlBuilder:kZ,mathmlBuilder:SZ});var _b=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"};we({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:_b(t[0]),body:cr(t[1]),isCharacterBox:Bi(t[1])}}});we({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:o}=e,n=t[1],i=t[0],a;o!=="\\stackrel"?a=_b(n):a="mrel";var s={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:o!=="\\stackrel",body:cr(n)},c={type:"supsub",mode:i.mode,base:s,sup:o==="\\underset"?null:i,sub:o==="\\underset"?i:null};return{type:"mclass",mode:r.mode,mclass:a,body:[c],isCharacterBox:Bi(c)}},htmlBuilder:kZ,mathmlBuilder:SZ});we({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:_b(t[0]),body:cr(t[0])}},htmlBuilder(e,t){var r=vr(e.body,t,!0),o=X([e.mclass],r,t);return o.style.textShadow="0.02em 0.01em 0.04px",o},mathmlBuilder(e,t){var r=Rn(e.body,t),o=new re("mstyle",r);return o.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),o}});var Ode={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},jF=()=>({type:"styling",body:[],mode:"math",style:"display"}),UF=e=>e.type==="textord"&&e.text==="@",Lde=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;
vendor: 4,525 bytes, line 520
520function jde(e,t,r){var o=Ode[e];switch(o){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(o,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),i={type:"atom",text:o,mode:"math",family:"rel"},a=r.callFunction("\\Big",[i],[]),s=r.callFunction("\\\\cdright",[t[1]],[]),c={type:"ordgroup",mode:"math",body:[n,a,s]};return r.callFunction("\\\\cdparent",[c],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Ude(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 ie("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var o=[],n=[o],i=0;i<t.length;i++){for(var a=t[i],s=jF(),c=0;c<a.length;c++)if(!UF(a[c]))s.body.push(a[c]);else{o.push(s),c+=1;var u=xb(a[c]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var m=0;m<2;m++){for(var h=!0,g=c+1;g<a.length;g++){if(Lde(a[g],u)){h=!1,c=g;break}if(UF(a[g]))throw new ie("Missing a "+u+" character to complete a CD arrow.",a[g]);p[m].body.push(a[g])}if(h)throw new ie("Missing a "+u+" character to complete a CD arrow.",a[c])}else throw new ie('Expected one of "<>AV=|." after @',a[c]);var b=jde(u,p,e),T={type:"styling",body:[b],mode:"math",style:"display"};o.push(T),s=jF()}i%2===0?o.push(s):o.shift(),o=[],n.push(o)}e.gullet.endGroup(),e.gullet.endGroup();var I=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:I,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}we({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"cdlabel",mode:r.mode,side:o.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),o=pu(yt(e.label,r,t),t);return o.classes.push("cd-label-"+e.side),o.style.bottom=le(.8-o.depth),o.height=0,o.depth=0,o},mathmlBuilder(e,t){var r=new re("mrow",[At(e.label,t)]);return r=new re("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new re("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});we({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=pu(yt(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new re("mrow",[At(e.fragment,t)])}});we({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,o=Qe(t[0],"ordgroup"),n=o.body,i="",a=0;a<n.length;a++){var s=Qe(n[a],"textord");i+=s.text}var c=parseInt(i),u;if(isNaN(c))throw new ie("\\@char has non-numeric argument "+i);if(c<0||c>=1114111)throw new ie("\\@char with invalid code point "+i);return c<=65535?u=String.fromCharCode(c):(c-=65536,u=String.fromCharCode((c>>10)+55296,(c&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var IZ=(e,t)=>{var r=vr(e.body,t.withColor(e.color),!1);return Zi(r)},TZ=(e,t)=>{var r=Rn(e.body,t.withColor(e.color)),o=new re("mstyle",r);return o.setAttribute("mathcolor",e.color),o};we({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,o=Qe(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:o,body:cr(n)}},htmlBuilder:IZ,mathmlBuilder:TZ});we({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:o}=e,n=Qe(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var i=r.parseExpression(!0,o);return{type:"color",mode:r.mode,color:n,body:i}},htmlBuilder:IZ,mathmlBuilder:TZ});we({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:o}=e,n=o.gullet.future().text==="["?o.parseSizeGroup(!0):null,i=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTe
520X, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:o.mode,newLine:i,size:n&&Qe(n,"size").value}},htmlBuilder(e,t){var r=X(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=le(Kt(e.size,t)))),r},mathmlBuilder(e,t){var r=new re("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",le(Kt(e.size,t)))),r}});var ZI={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},$Z=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ie("Expected a control sequence",e);return t},Bde=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},PZ=(e,t,r,o)=>{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,o)};we({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var o=t.fetch();if(ZI[o.text])return(r==="\\global"||r==="\\\\globallong")&&(o.text=ZI[o.text]),Qe(t.parseFunction(),"internal");throw new ie("Invalid token after macro prefix",o)}});we({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=t.gullet.popToken(),n=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new ie("Expected a control sequence",o);for(var i=0,a,s=[[]];t.gullet.future().text!=="{";)if(o=t.gullet.popToken(),o.text==="#"){if(t.gullet.future().text==="{"){a=t.gullet.future(),s[i].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new ie('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==i+1)throw new ie('Argument number "'+o.text+'" out of order');i++,s.push([])}else{if(o.text==="EOF")throw new ie("Expected a macro definition");s[i].push(o.text)}var{tokens:c}=t.gullet.consumeArg();return a&&c.unshift(a),(r==="\\edef"||r==="\\xdef")&&(c=t.gullet.expandTokens(c),c.reverse()),t.gullet.macros.set(n,{tokens:c,numArgs:i,delimiters:s},r===ZI[r]),{type:"internal",mode:t.mode}}});we({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=$Z(t.gullet.popToken());t.gullet.consumeSpaces();var n=Bde(t);return PZ(t,o,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});we({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,o=$Z(t.gullet.popToken()),n=t.gullet.popToken(),i=t.gullet.popToken();return PZ(t,o,i,r==="\\\\globalfuture"),t.gullet.pushToken(i),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var Nm=function(t,r,o){var n=Ft.math[t]&&Ft.math[t].replace,i=XI(n||t,r,o);if(!i)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return i},nT=function(t,r,o,n){var i=o.havingBaseStyle(r),a=X(n.concat(i.sizingClasses(o)),[t],o),s=i.sizeMultiplier/o.sizeMultiplier;return a.height*=s,a.depth*=s,a.maxFontSize=i.sizeMultiplier,a},CZ=function(t,r,o){var n=r.havingBaseStyle(o),i=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=le(i),t.height-=i,t.depth+=i},Fde=function(t,r,o,n,i,a){var s=Kr(t,"Main-Regular",i,n),c=nT(s,r,n,a);return o&&CZ(c,n,r),c},Zde=function(t,r,o,n){return Kr(t,"Size"+r+"-Regular",o,n)},EZ=function(t,r,o,n,i,a){var s=Zde(t,r,i,n),c=nT(X(["delimsizing","size"+r],[s],n),Ze.TEXT,n,a);return o&&CZ(c,n,Ze.TEXT),c},kI=function(t,r,o){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var i=X(["delimsizinginner",n],[X([],[Kr(t,r,o)])]);return{type:"elem",elem:i}},SI=function(t,r,o){var n=Wo["Size4-Regular"][t.charCodeAt(0)]?Wo["Size4-Regular"][t.charCodeAt(0)][4]:Wo["Size1-Regular"][t.charCodeAt(0)][4],i=new Jo("inner",ode(t,Math.round(1e3*r))),a=new xo([i],{width:le(n),height:le(r),style:"width:"+le(n),viewB
vendor: 14,724 bytes, line 520
520ox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),s=Wa([],[a],o);return s.height=r,s.style.height=le(r),s.style.width=le(n),{type:"elem",elem:s}},VI=.008,nb={type:"kern",size:-1*VI},Vde=new Set(["|","\\lvert","\\rvert","\\vert"]),Gde=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),zZ=function(t,r,o,n,i,a){var s,c,u,p,m="",h=0;s=u=p=t,c=null;var g="Size1-Regular";t==="\\uparrow"?u=p="\u23D0":t==="\\Uparrow"?u=p="\u2016":t==="\\downarrow"?s=u="\u23D0":t==="\\Downarrow"?s=u="\u2016":t==="\\updownarrow"?(s="\\uparrow",u="\u23D0",p="\\downarrow"):t==="\\Updownarrow"?(s="\\Uparrow",u="\u2016",p="\\Downarrow"):Vde.has(t)?(u="\u2223",m="vert",h=333):Gde.has(t)?(u="\u2225",m="doublevert",h=556):t==="["||t==="\\lbrack"?(s="\u23A1",u="\u23A2",p="\u23A3",g="Size4-Regular",m="lbrack",h=667):t==="]"||t==="\\rbrack"?(s="\u23A4",u="\u23A5",p="\u23A6",g="Size4-Regular",m="rbrack",h=667):t==="\\lfloor"||t==="\u230A"?(u=s="\u23A2",p="\u23A3",g="Size4-Regular",m="lfloor",h=667):t==="\\lceil"||t==="\u2308"?(s="\u23A1",u=p="\u23A2",g="Size4-Regular",m="lceil",h=667):t==="\\rfloor"||t==="\u230B"?(u=s="\u23A5",p="\u23A6",g="Size4-Regular",m="rfloor",h=667):t==="\\rceil"||t==="\u2309"?(s="\u23A4",u=p="\u23A5",g="Size4-Regular",m="rceil",h=667):t==="("||t==="\\lparen"?(s="\u239B",u="\u239C",p="\u239D",g="Size4-Regular",m="lparen",h=875):t===")"||t==="\\rparen"?(s="\u239E",u="\u239F",p="\u23A0",g="Size4-Regular",m="rparen",h=875):t==="\\{"||t==="\\lbrace"?(s="\u23A7",c="\u23A8",p="\u23A9",u="\u23AA",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(s="\u23AB",c="\u23AC",p="\u23AD",u="\u23AA",g="Size4-Regular"):t==="\\lgroup"||t==="\u27EE"?(s="\u23A7",p="\u23A9",u="\u23AA",g="Size4-Regular"):t==="\\rgroup"||t==="\u27EF"?(s="\u23AB",p="\u23AD",u="\u23AA",g="Size4-Regular"):t==="\\lmoustache"||t==="\u23B0"?(s="\u23A7",p="\u23AD",u="\u23AA",g="Size4-Regular"):(t==="\\rmoustache"||t==="\u23B1")&&(s="\u23AB",p="\u23A9",u="\u23AA",g="Size4-Regular");var b=Nm(s,g,i),T=b.height+b.depth,I=Nm(u,g,i),P=I.height+I.depth,C=Nm(p,g,i),k=C.height+C.depth,A=0,z=1;if(c!==null){var N=Nm(c,g,i);A=N.height+N.depth,z=2}var B=T+k+A,G=Math.max(0,Math.ceil((r-B)/(z*P))),F=B+G*z*P,W=n.fontMetrics().axisHeight;o&&(W*=n.sizeMultiplier);var ue=F/2-W,de=[];if(m.length>0){var ft=F-T-k,$e=Math.round(F*1e3),Fe=ide(m,Math.round(ft*1e3)),pe=new Jo(m,Fe),en=le(h/1e3),me=le($e/1e3),ce=new xo([pe],{width:en,height:me,viewBox:"0 0 "+h+" "+$e}),et=Wa([],[ce],n);et.height=$e/1e3,et.style.width=en,et.style.height=me,de.push({type:"elem",elem:et})}else{if(de.push(kI(p,g,i)),de.push(nb),c===null){var tt=F-T-k+2*VI;de.push(SI(u,tt,n))}else{var be=(F-T-k-A)/2+2*VI;de.push(SI(u,be,n)),de.push(nb),de.push(kI(c,g,i)),de.push(nb),de.push(SI(u,be,n))}de.push(nb),de.push(kI(s,g,i))}var ve=n.havingBaseStyle(Ze.TEXT),fe=vt({positionType:"bottom",positionData:ue,children:de});return nT(X(["delimsizing","mult"],[fe],ve),Ze.TEXT,n,a)},II=80,TI=.08,$I=function(t,r,o,n,i){var a=nde(t,n,o),s=new Jo(t,a),c=new xo([s],{width:"400em",height:le(r),viewBox:"0 0 400000 "+o,preserveAspectRatio:"xMinYMin slice"});return Wa(["hide-tail"],[c],i)},qde=function(t,r){var o=r.havingBaseSizing(),n=DZ("\\surd",t*o.sizeMultiplier,NZ,o),i=o.sizeMultiplier,a=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),s,c=0,u=0,p=0,m;return n.type==="small"?(p=1e3+1e3*a+II,t<1?i=1:t<1.4&&(i=.7),c=(1+a+TI)/i,u=(1+a)/i,s=$I("sqrtMain",c,p,a,r),s.style.minWidth="0.853em",m=.833/i):n.type==="large"?(p=(1e3+II)*Dm[n.size],u=(Dm[n.size]+a)/i,c=(Dm[n.size]+a+TI)/i,s=$I("sqrtSize"+n.size,c,p,a,r),s.style.minWidth="1.02em",m=1/i):(c=t+a+TI,u=t+a,p=Math.floor(1e3*t+a)+II,s=$I("sqrtTall",c,p,a,r),s.style.minWidth="0.742em",m=1.056),s.height=u,s.style.height=le(c),{span:s,advanceWidth:m,ruleWidth:(r.fontMetrics().sqrtRuleThickness+a)*i}},AZ=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"]),Hde=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"]),MZ=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Dm=[0,1.2,1.8,2.4,3],RZ=function(t,r,o,n,i){if(t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle"),AZ.has(t)||MZ.has(t))return EZ(t,r,!1,o,n,i);if(Hde.has(t))return zZ(t,Dm[r],!1,o,n,i);throw new ie("Illegal delimiter: '"+t+"'")},Wde=[{type:"small",style:Ze.SCRIPTSCRIPT},{type:"small",style:Ze.SCRIPT},{type:"small",style:Ze.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Jde=[{type:"small",style:Ze.SCRIPTSCRIPT},{type:"small",style:Ze.SCRIPT},{type:"small",style:Ze.TEXT},{type:"stack"}],NZ=[{type:"small",style:Ze.SCRIPTSCRIPT},{type:"small",style:Ze.SCRIPT},{type:"small",style:Ze.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Kde=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.")},DZ=function(t,r,o,n){for(var i=Math.min(2,3-n.style.size),a=i;a<o.length;a++){var s=o[a];if(s.type==="stack")break;var c=Nm(t,Kde(s),"math"),u=c.height+c.depth;if(s.type==="small"){var p=n.havingBaseStyle(s.style);u*=p.sizeMultiplier}if(u>r)return s}return o[o.length-1]},GI=function(t,r,o,n,i,a){t==="<"||t==="\\lt"||t==="\u27E8"?t="\\langle":(t===">"||t==="\\gt"||t==="\u27E9")&&(t="\\rangle");var s;MZ.has(t)?s=Wde:AZ.has(t)?s=NZ:s=Jde;var c=DZ(t,r,s,n);return c.type==="small"?Fde(t,c.style,o,n,i,a):c.type==="large"?EZ(t,c.size,o,n,i,a):zZ(t,r,o,n,i,a)},PI=function(t,r,o,n,i,a){var s=n.fontMetrics().axisHeight*n.sizeMultiplier,c=901,u=5/n.fontMetrics().ptPerEm,p=Math.max(r-s,o+s),m=Math.max(p/500*c,2*p-u);return GI(t,m,!0,n,i,a)},BF={"\\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}},Xde=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 kb(e,t){var r=wb(e);if(r&&Xde.has(r.text))return r;throw r?new ie("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new ie("Invalid delimiter type '"+e.type+"'",e)}we({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=kb(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:BF[e.funcName].size,mclass:BF[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?X([e.mclass]):RZ(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Yn(e.delim,e.mode));var r=new re("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var o=le(Dm[e.size]);return r.setAttribute("minsize",o),r.setAttribute("maxsize",o),r}});function FF(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}we({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 ie("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:kb(t[0],e).text,color:r}}});we({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kb(t[0],e),o=e.parser;++o.leftrightDepth;var n=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=Qe(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:n,left:r.text,right:i.delim,rightColor:i.color}},htmlBuilder:(e,t)=>{FF(e);for(var r=vr(e.body,t,!0,["mopen","mclose"]),o=0,n=0,i=!1,a=0;a<r.length;a++)r[a].isMiddle?i=!0:(o=Math.max(r[a].height,o),n=Math.max(r[a].depth,n));o*=t.sizeMultiplier,n*=t.sizeMultiplier;var s;if(e.left==="."?s=Um(t,["mopen"]):s=PI(e.left,o,n,t,e.mode,["mopen"]),r.unshift(s),i)for(var c=1;c<r.length;c++){var u=r[c],p=u.isMiddle;p&&(r[c]=PI(p.delim,o,n,p.options,e.mode,[]))}var m;if(e.right===".")m=Um(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;m=PI(e.right,o,n,h,e.mode,["mclose"])}return r.push(m),X(["minner"],r,t)},mathmlBuilder:(e,t)=>{FF(e);var r=Rn(e.body,t);if(e.left!=="."){var o=new re("mo",[Yn(e.left,e.mode)]);o.setAttribute("fence","true"),r.unshift(o)}if(e.right!=="."){var n=new re("mo",[Yn(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return eT(r)}});we({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=kb(t[0],e);if(!e.parser.leftrightDepth)throw new ie("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=Um(t,[]);else{r=RZ(e.delim,1,t,e.mode,[]);var o={delim:e.delim,options:t};r.isMiddle=o}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?Yn("|","text"):Yn(e.delim,e.mode),o=new re("mo",[r]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var Sb=(e,t)=>{var r=pu(yt(e.body,t),t),o=e.label.slice(1),n=t.sizeMultiplier,i,a=0,s=Bi(e.body);if(o==="sout")i=X(["stretchy","sout"]),i.height=t.fontMetrics().defaultRuleThickness/n,a=-.5*t.fontMetrics().xHeight;else if(o==="phase"){var c=Kt({number:.6,unit:"pt"},t),u=Kt({number:.35,unit:"ex"},t),p=t.havingBaseSizing();n=n/p.sizeMultiplier;var m=r.height+r.depth+c+u;r.style.paddingLeft=le(m/2+c);var h=Math.floor(1e3*m*n),g=tde(h),b=new xo([new Jo("phase",g)],{width:"400em",height:le(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});i=Wa(["hide-tail"],[b],t),i.style.height=le(m),a=r.depth+c+u}else{/cancel/.test(o)?s||r.classes.push("cancel-pad"):o==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var T=0,I=0,P=0;/box/.test(o)?(P=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),T=t.fontMetrics().fboxsep+(o==="colorbox"?0:P),I=T):o==="angl"?(P=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),T=4*P,I=Math.max(0,.25-r.depth)):(T=s?.2:0,I=T),i=Nde(r,o,T,I,t),/fbox|boxed|fcolorbox/.test(o)?(i.style.borderStyle="solid",i.style.borderWidth=le(P)):o==="angl"&&P!==.049&&(i.style.borderTopWidth=le(P),i.style.borderRightWidth=le(P)),a=r.depth+I,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}var C;if(e.backgroundColor)C=vt({positionType:"individualShift",children:[{type:"elem",elem:i,shift:a},{type:"elem",elem:r,shift:0}]});else{var k=/cancel|phase/.test(o)?["svg-align"]:[];C=vt({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:i,shift:a,wrapperClasses:k}]})}return/cancel/.test(o)&&(C.height=r.height,C.depth=r.depth),/cancel/.test(o)&&!s?X(["mord","cancel-lap"],[C],t):X(["mord"],[C],t)},Ib=(e,t)=>{var r=0,o=new re(e.label.includes("colorbox")?"mpadded":"menclose",[At(e.body,t)]);switch(e.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\phase":o.setAttribute("notation","phasorangle");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\angl":o.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*r+"pt"),o.setAttribute("height","+"+2*r+"pt"),o.setAttribute("lspace",r+"pt"),o.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);o.setAttribute("style","border: "+le(n)+" solid "+e.borderColor)}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};we({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Qe(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:n,backgroundColor:i,body:a}},htmlBuilder:Sb,mathmlBuilder:Ib});we({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:o,funcName:n}=e,i=Qe(t[0],"color-token").color,a=Qe(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:o.mode,label:n,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:Sb,mathmlBuilder:Ib});we({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]}}});we({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];return{type:"enclose",mode:r.mode,label:o,body:n}},htmlBuilder:Sb,mathmlBuilder:Ib});we({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=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:o,body:n}},htmlBuilder:Sb,mathmlBuilder:Ib});we({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 OZ={};function Ko(e){for(var{type:t,names:r,props:o,handler:n,htmlBuilder:i,mathmlBuilder:
vendor: 2,738 bytes, line 520
520a}=e,s={type:t,numArgs:o.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},c=0;c<r.length;++c)OZ[r[c]]=s;i&&(cb[t]=i),a&&(ub[t]=a)}var LZ={};function E(e,t){LZ[e]=t}var vn=class e{constructor(t,r,o){this.lexer=t,this.start=r,this.end=o}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}},An=class e{constructor(t,r){this.text=t,this.loc=r}range(t,r){return new e(r,vn.range(this,t))}};function ZF(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 Tb=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ie("{"+e.envName+"} can be used only in display mode.")},Yde=new Set(["gather","gather*"]);function oT(e){if(!e.includes("ed"))return!e.includes("*")}function Ka(e,t,r){var{hskipBeforeAndAfter:o,addJot:n,cols:i,arraystretch:a,colSeparationType:s,autoTag:c,singleRow:u,emptySingleRow:p,maxNumCols:m,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!a){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)a=1;else if(a=parseFloat(g),!a||a<0)throw new ie("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var b=[],T=[b],I=[],P=[],C=c!=null?[]:void 0;function k(){c&&e.gullet.macros.set("\\@eqnsw","1",!0)}function A(){C&&(e.gullet.macros.get("\\df@tag")?(C.push(e.subparse([new An("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):C.push(!!c&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),P.push(ZF(e));;){var z=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var N={type:"ordgroup",mode:e.mode,body:z};r&&(N={type:"styling",mode:e.mode,style:r,body:[N]}),b.push(N);var B=e.fetch().text;if(B==="&"){if(m&&b.length===m){if(u||s)throw new ie("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(B==="\\end"){A(),b.length===1&&N.type==="styling"&&N.body.length===1&&N.body[0].type==="ordgroup"&&N.body[0].body.length===0&&(T.length>1||!p)&&T.pop(),P.length<T.length+1&&P.push([]);break}else if(B==="\\\\"){e.consume();var G=void 0;e.gullet.future().text!==" "&&(G=e.parseSizeGroup(!0)),I.push(G?G.value:null),A(),P.push(ZF(e)),b=[],T.push(b),k()}else throw new ie("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:a,body:T,cols:i,rowGaps:I,hskipBeforeAndAfter:o,hLinesBeforeRow:P,colSeparationType:s,tags:C,leqno:h}}function iT(e){return e.slice(0,1)==="d"?"display":"text"}
vendor: 49,664 bytes, lines 520-524
520var Xo=function(t,r){var o,n,i=t.body.length,a=t.hLinesBeforeRow,s=0,c=new Array(i),u=[],p=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),m=1/r.fontMetrics().ptPerEm,h=5*m;if(t.colSeparationType&&t.colSeparationType==="small"){var g=r.havingStyle(Ze.SCRIPT).sizeMultiplier;h=.2778*(g/r.sizeMultiplier)}var b=t.colSeparationType==="CD"?Kt({number:3,unit:"ex"},r):12*m,T=3*m,I=t.arraystretch*b,P=.7*I,C=.3*I,k=0;function A(ts){for(var rs=0;rs<ts.length;++rs)rs>0&&(k+=.25),u.push({pos:k,isDashed:ts[rs]})}for(A(a[0]),o=0;o<t.body.length;++o){var z=t.body[o],N=P,B=C;s<z.length&&(s=z.length);var G=new Array(z.length);for(n=0;n<z.length;++n){var F=yt(z[n],r);B<F.depth&&(B=F.depth),N<F.height&&(N=F.height),G[n]=F}var W=t.rowGaps[o],ue=0;W&&(ue=Kt(W,r),ue>0&&(ue+=C,B<ue&&(B=ue),ue=0)),t.addJot&&o<t.body.length-1&&(B+=T),G.height=N,G.depth=B,k+=N,G.pos=k,k+=B+ue,c[o]=G,A(a[o+1])}var de=k/2+r.fontMetrics().axisHeight,ft=t.cols||[],$e=[],Fe,pe,en=[];if(t.tags&&t.tags.some(ts=>ts))for(o=0;o<i;++o){var me=c[o],ce=me.pos-de,et=t.tags[o],tt=void 0;et===!0?tt=X(["eqn-num"],[],r):et===!1?tt=X([],[],r):tt=X([],vr(et,r,!0),r),tt.depth=me.depth,tt.height=me.height,en.push({type:"elem",elem:tt,shift:ce})}for(n=0,pe=0;n<s||pe<ft.length;++n,++pe){for(var be,ve=ft[pe],fe=!0;((at=ve)==null?void 0:at.type)==="separator";){var at;if(fe||(Fe=X(["arraycolsep"],[]),Fe.style.width=le(r.fontMetrics().doubleRuleSep),$e.push(Fe)),ve.separator==="|"||ve.separator===":"){var wt=ve.separator==="|"?"solid":"dashed",mt=X(["vertical-separator"],[],r);mt.style.height=le(k),mt.style.borderRightWidth=le(p),mt.style.borderRightStyle=wt,mt.style.margin="0 "+le(-p/2);var Nt=k-de;Nt&&(mt.style.verticalAlign=le(-Nt)),$e.push(mt)}else throw new ie("Invalid separator type: "+ve.separator);pe++,ve=ft[pe],fe=!1}if(!(n>=s)){var Sr=void 0;if(n>0||t.hskipBeforeAndAfter){var Lr,_o;Sr=(Lr=(_o=ve)==null?void 0:_o.pregap)!=null?Lr:h,Sr!==0&&(Fe=X(["arraycolsep"],[]),Fe.style.width=le(Sr),$e.push(Fe))}var Qm=[];for(o=0;o<i;++o){var Ya=c[o],Qa=Ya[n];if(Qa){var xu=Ya.pos-de;Qa.depth=Ya.depth,Qa.height=Ya.height,Qm.push({type:"elem",elem:Qa,shift:xu})}}var nl=vt({positionType:"individualShift",children:Qm}),Nb=X(["col-align-"+(((be=ve)==null?void 0:be.align)||"c")],[nl]);if($e.push(Nb),n<s-1||t.hskipBeforeAndAfter){var wu,ol;Sr=(wu=(ol=ve)==null?void 0:ol.postgap)!=null?wu:h,Sr!==0&&(Fe=X(["arraycolsep"],[]),Fe.style.width=le(Sr),$e.push(Fe))}}}var es=X(["mtable"],$e);if(u.length>0){for(var ef=du("hline",r,p),Db=du("hdashline",r,p),_u=[{type:"elem",elem:es,shift:0}];u.length>0;){var il=u.pop(),ku=il.pos-de;il.isDashed?_u.push({type:"elem",elem:Db,shift:ku}):_u.push({type:"elem",elem:ef,shift:ku})}es=vt({positionType:"individualShift",children:_u})}if(en.length===0)return X(["mord"],[es],r);var tf=vt({positionType:"individualShift",children:en}),Ob=X(["tag"],[tf],r);return Zi([es,Ob])},Qde={c:"center ",l:"left ",r:"right "},Yo=function(t,r){for(var o=[],n=new re("mtd",[],["mtr-glue"]),i=new re("mtd",[],["mml-eqn-num"]),a=0;a<t.body.length;a++){for(var s=t.body[a],c=[],u=0;u<s.length;u++)c.push(new re("mtd",[At(s[u],r)]));t.tags&&t.tags[a]&&(c.unshift(n),c.push(n),t.leqno?c.unshift(i):c.push(i)),o.push(new re("mtr",c))}var p=new re("mtable",o),m=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);p.setAttribute("rowspacing",le(m));var h="",g="";if(t.cols&&t.cols.length>0){var b=t.cols,T="",I=!1,P=0,C=b.length;b[0].type==="separator"&&(h+="top ",P=1),b[b.length-1].type==="separator"&&(h+="bottom ",C-=1);for(var k=P;k<C;k++){var A=b[k];A.type==="align"?(g+=Qde[A.align],I&&(T+="none "),I=!0):A.type==="separator"&&I&&(T+=A.separator==="|"?"solid ":"dashed ",I=!1)}p.setAttribute("columnalign",g.trim()),/[sd]/.test(T)&&p.setAttribute("columnlines",T.trim())}if(t.colSeparationType==="align"){for(var z=t.cols||[],N="",B=1;B<z.length;B++)N+=B%2?"0em ":"1em ";p.setAttribute("columnspacing",N.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?p.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?p.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?p.setAttribute("columnspacing","0.5em"):p.setAttribute("columnspacing","1em");var G="",F=t.hLinesBeforeRow;h+=F[0].length>0?"left ":"",h+=F[F.length-1].length>0?"right ":"";for(var W=1;W<F.length-1;W++)G+=F[W].length===0?"none ":F[W][0]?"dashed ":"solid ";return/[sd]/.test(G)&&p.setAttribute("rowlines",G.trim()),h!==""&&(p=new re("menclose",[p]),p.setAttribute("notation",h.trim())),t.arraystretch&&t.arraystretch<1&&(p=new re("mstyle",[p]),p.setAttribute("scriptlevel","1")),p},jZ=function(t,r){t.envName.includes("ed")||Tb(t);var o=[],n=t.envName.includes("at")?"alignat":"align",i=t.envName==="split",a=Ka(t.parser,{cols:o,addJot:!0,autoTag:i?void 0:oT(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:i?2:void 0,leqno:t.parser.settings.leqno},"display"),s=0,c=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var p="",m=0;m<r[0].body.length;m++){var h=Qe(r[0].body[m],"textord");p+=h.text}s=Number(p),c=s*2}var g=!c;a.body.forEach(function(P){for(var C=1;C<P.length;C+=2){var k=Qe(P[C],"styling"),A=Qe(k.body[0],"ordgroup");A.body.unshift(u)}if(g)c<P.length&&(c=P.length);else{var z=P.length/2;if(s<z)throw new ie("Too many math in a row: "+("expected "+s+", but got "+z),P[0])}});for(var b=0;b<c;++b){var T="r",I=0;b%2===1?T="l":b>0&&g&&(I=1),o[b]={type:"align",align:T,pregap:I,postgap:0}}return a.colSeparationType=g?"align":"alignat",a};Ko({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=wb(t[0]),o=r?[t[0]]:Qe(t[0],"ordgroup").body,n=o.map(function(a){var s=xb(a),c=s.text;if("lcr".includes(c))return{type:"align",align:c};if(c==="|")return{type:"separator",separator:"|"};if(c===":")return{type:"separator",separator:":"};throw new ie("Unknown column alignment: "+c,a)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Ka(e.parser,i,iT(e.envName))},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({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",o={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 ie("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),o.cols=[{type:"align",align:r}]}}var i=Ka(e.parser,o,iT(e.envName)),a=Math.max(0,...i.body.map(s=>s.length));return i.cols=new Array(a).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[i],left:t[0],right:t[1],rightColor:void 0}:i},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=Ka(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=wb(t[0]),o=r?[t[0]]:Qe(t[0],"ordgroup").body,n=o.map(function(s){var c=xb(s),u=c.text;if("lc".includes(u))return{type:"align",align:u};throw new ie("Unknown column alignment: "+u,s)});if(n.length>1)throw new ie("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},a=Ka(e.parser,i,"script");if(a.body.length>0&&a.body[0].length>1)throw new ie("{subarray} can contain only one column");return a},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({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=Ka(e.parser,t,iT(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:jZ,htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Yde.has(e.envName)&&Tb(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:oT(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Ka(e.parser,t,"display")},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:jZ,htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Tb(e);var t={autoTag:oT(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Ka(e.parser,t,"display")},htmlBuilder:Xo,mathmlBuilder:Yo});Ko({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Tb(e),Ude(e.parser)},htmlBuilder:Xo,mathmlBuilder:Yo});E("\\nonumber","\\gdef\\@eqnsw{0}");E("\\notag","\\nonumber");we({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new ie(e.funcName+" valid only within array environment")}});var VF=OZ;we({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:o}=e,n=t[0];if(n.type!=="ordgroup")throw new ie("Invalid environment name",n);for(var i="",a=0;a<n.body.length;++a)i+=Qe(n.body[a],"textord").text;if(o==="\\begin"){if(!VF.hasOwnProperty(i))throw new ie("No such environment: "+i,n);var s=VF[i],{args:c,optArgs:u}=r.parseArguments("\\begin{"+i+"}",s),p={mode:r.mode,envName:i,parser:r},m=s.handler(p,c,u);r.expect("\\end",!1);var h=r.nextToken,g=Qe(r.parseFunction(),"environment");if(g.name!==i)throw new ie("Mismatch: \\begin{"+i+"} matched by \\end{"+g.name+"}",h);return m}return{type:"environment",mode:r.mode,name:i,nameGroup:n}}});var UZ=(e,t)=>{var r=e.font,o=t.withFont(r);return yt(e.body,o)},BZ=(e,t)=>{var r=e.font,o=t.withFont(r);return At(e.body,o)},GF={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};we({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:o}=e,n=db(t[0]),i=o;return i in GF&&(i=GF[i]),{type:"font",mode:r.mode,font:i.slice(1),body:n}},htmlBuilder:UZ,mathmlBuilder:BZ});we({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"mclass",mode:r.mode,mclass:_b(o),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:o}],isCharacterBox:Bi(o)}}});we({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,breakOnTokenText:n}=e,{mode:i}=r,a=r.parseExpression(!0,n),s="math"+o.slice(1);return{type:"font",mode:i,font:s,body:{type:"ordgroup",mode:r.mode,body:a}}},htmlBuilder:UZ,mathmlBuilder:BZ});var epe=(e,t)=>{var r=t.style,o=r.fracNum(),n=r.fracDen(),i;i=t.havingStyle(o);var a=yt(e.numer,i,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<c?c:a.depth}i=t.havingStyle(n);var u=yt(e.denom,i,t),p,m,h;e.hasBarLine?(e.barSize?(m=Kt(e.barSize,t),p=du("frac-line",t,m)):p=du("frac-line",t),m=p.height,h=p.height):(p=null,m=0,h=t.fontMetrics().defaultRuleThickness);var g,b,T;r.size===Ze.DISPLAY.size?(g=t.fontMetrics().num1,m>0?b=3*h:b=7*h,T=t.fontMetrics().denom1):(m>0?(g=t.fontMetrics().num2,b=h):(g=t.fontMetrics().num3,b=3*h),T=t.fontMetrics().denom2);var I;if(p){var C=t.fontMetrics().axisHeight;g-a.depth-(C+.5*m)<b&&(g+=b-(g-a.depth-(C+.5*m))),C-.5*m-(u.height-T)<b&&(T+=b-(C-.5*m-(u.height-T)));var k=-(C-.5*m);I=vt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:T},{type:"elem",elem:p,shift:k},{type:"elem",elem:a,shift:-g}]})}else{var P=g-a.depth-(u.height-T);P<b&&(g+=.5*(b-P),T+=.5*(b-P)),I=vt({positionType:"individualShift",children:[{type:"elem",elem:u,shift:T},{type:"elem",elem:a,shift:-g}]})}i=t.havingStyle(r),I.height*=i.sizeMultiplier/t.sizeMultiplier,I.depth*=i.sizeMultiplier/t.sizeMultiplier;var A;r.size===Ze.DISPLAY.size?A=t.fontMetrics().delim1:r.size===Ze.SCRIPTSCRIPT.size?A=t.havingStyle(Ze.SCRIPT).fontMetrics().delim2:A=t.fontMetrics().delim2;var z,N;return e.leftDelim==null?z=Um(t,["mopen"]):z=GI(e.leftDelim,A,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?N=X([]):e.rightDelim==null?N=Um(t,["mclose"]):N=GI(e.rightDelim,A,!0,t.havingStyle(r),e.mode,["mclose"]),X(["mord"].concat(i.sizingClasses(t)),[z,X(["mfrac"],[I]),N],t)},tpe=(e,t)=>{var r=new re("mfrac",[At(e.numer,t),At(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var o=Kt(e.barSize,t);r.setAttribute("linethickness",le(o))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var i=new re("mo",[new Qt(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),n.push(i)}if(n.push(r),e.rightDelim!=null){var a=new re("mo",[new Qt(e.rightDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}return eT(n)}return r},FZ=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};we({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:o}=e,n=t[0],i=t[1],a,s=null,c=null;switch(o){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":a=!0;break;case"\\\\atopfrac":a=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a=!1,s="(",c=")";break;case"\\\\bracefrac":a=!1,s="\\{",c="\\}";break;case"\\\\brackfrac":a=!1,s="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}var u=o==="\\cfrac",p=null;return u||o.startsWith("\\d")?p="display":o.startsWith("\\t")&&(p="text"),FZ({type:"genfrac",mode:r.mode,numer:n,denom:i,continued:u,hasBarLine:a,leftDelim:s,rightDelim:c,barSize:null},p)},htmlBuilder:epe,mathmlBuilder:tpe});we({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:o}=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:o}}});var qF=["display","text","script","scriptscript"],HF=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};we({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,o=t[4],n=t[5],i=db(t[0]),a=i.type==="atom"&&i.family==="open"?HF(i.text):null,s=db(t[1]),c=s.type==="atom"&&s.family==="close"?HF(s.text):null,u=Qe(t[2],"size"),p,m=null;u.isBlank?p=!0:(m=u.value,p=m.number>0);var h=null,g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var b=Qe(g.body[0],"textord");h=qF[Number(b.text)]}}else g=Qe(g,"textord"),h=qF[Number(g.text)];return FZ({type:"genfrac",mode:r.mode,numer:o,denom:n,continued:!1,hasBarLine:p,barSize:m,leftDelim:a,rightDelim:c},h)}});we({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:o,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Qe(t[0],"size").value,token:n}}});we({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0],i=Qe(t[1],"infix").size;if(!i)throw new Error("\\\\abovefrac expected size, but got "+String(i));var a=t[2],s=i.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:a,continued:!1,hasBarLine:s,barSize:i,leftDelim:null,rightDelim:null}}});var ZZ=(e,t)=>{var r=t.style,o,n;e.type==="supsub"?(o=e.sup?yt(e.sup,t.havingStyle(r.sup()),t):yt(e.sub,t.havingStyle(r.sub()),t),n=Qe(e.base,"horizBrace")):n=Qe(e,"horizBrace");var i=yt(n.base,t.havingBaseStyle(Ze.DISPLAY)),a=bb(n,t),s;if(n.isOver?(s=vt({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:a}]}),s.children[0].children[0].children[1].classes.push("svg-align")):(s=vt({positionType:"bottom",positionData:i.depth+.1+a.height,children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:i}]}),s.children[0].children[0].children[0].classes.push("svg-align")),o){var c=X(["minner",n.isOver?"mover":"munder"],[s],t);n.isOver?s=vt({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:o}]}):s=vt({positionType:"bottom",positionData:c.depth+.2+o.height+o.depth,children:[{type:"elem",elem:o},{type:"kern",size:.2},{type:"elem",elem:c}]})}return X(["minner",n.isOver?"mover":"munder"],[s],t)},rpe=(e,t)=>{var r=yb(e.label);return new re(e.isOver?"mover":"munder",[At(e.base,t),r])};we({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:o}=e;return{type:"horizBrace",mode:r.mode,label:o,isOver:o.includes("\\over"),base:t[0]}},htmlBuilder:ZZ,mathmlBuilder:rpe});we({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[1],n=Qe(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:cr(o)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=vr(e.body,t,!1);return bde(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Ja(e.body,t);return r instanceof re||(r=new re("mrow",[r])),r.setAttribute("href",e.href),r}});we({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=Qe(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:o}))return r.formatUnsupportedCmd("\\url");for(var n=[],i=0;i<o.length;i++){var a=o[i];a==="~"&&(a="\\textasciitilde"),n.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:o,body:cr(s)}}});we({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:cr(t[0])}},htmlBuilder(e,t){var r=vr(e.body,t,!1);return Zi(r)},mathmlBuilder(e,t){return new re("mrow",Rn(e.body,t))}});we({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o,token:n}=e,i=Qe(t[0],"raw").string,a=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var s,c={};switch(o){case"\\htmlClass":c.class=i,s={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,s={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,s={command:"\\htmlStyle",style:i};break;case"\\htmlData":{for(var u=i.split(","),p=0;p<u.length;p++){var m=u[p],h=m.indexOf("=");if(h<0)throw new ie("\\htmlData key/value '"+m+"' missing equals sign");var g=m.slice(0,h),b=m.slice(h+1);c["data-"+g.trim()]=b}s={command:"\\htmlData",attributes:c};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(s)?{type:"html",mode:r.mode,attributes:c,body:cr(a)}:r.formatUnsupportedCmd(o)},htmlBuilder:(e,t)=>{var r=vr(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push(...e.attributes.class.trim().split(/\s+/));var n=X(o,r,t);for(var i in e.attributes)i!=="class"&&e.attributes.hasOwnProperty(i)&&n.setAttribute(i,e.attributes[i]);return n},mathmlBuilder:(e,t)=>Ja(e.body,t)});we({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:cr(t[0]),mathml:cr(t[1])}},htmlBuilder:(e,t)=>{var r=vr(e.html,t,!1);return Zi(r)},mathmlBuilder:(e,t)=>Ja(e.mathml,t)});var CI=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 ie("Invalid size: '"+t+"' in \\includegraphics");var o={number:+(r[1]+r[2]),unit:r[3]};if(!sZ(o))throw new ie("Invalid unit: '"+o.unit+"' in \\includegraphics.");return o};we({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:o}=e,n={number:0,unit:"em"},i={number:.9,unit:"em"},a={number:0,unit:"em"},s="";if(r[0])for(var c=Qe(r[0],"raw").string,u=c.split(","),p=0;p<u.length;p++){var m=u[p].split("=");if(m.length===2){var h=m[1].trim();switch(m[0].trim()){case"alt":s=h;break;case"width":n=CI(h);break;case"height":i=CI(h);break;case"totalheight":a=CI(h);break;default:throw new ie("Invalid key: '"+m[0]+"' in \\includegraphics.")}}}var g=Qe(t[0],"url").url;return s===""&&(s=g,s=s.replace(/^.*[\\/]/,""),s=s.substring(0,s.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:g})?{type:"includegraphics",mode:o.mode,alt:s,width:n,height:i,totalheight:a,src:g}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Kt(e.height,t),o=0;e.totalheight.number>0&&(o=Kt(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=Kt(e.width,t));var i={height:le(r+o)};n>0&&(i.width=le(n)),o>0&&(i.verticalAlign=le(-o));var a=new DI(e.src,e.alt,i);return a.height=r,a.depth=o,a},mathmlBuilder:(e,t)=>{var r=new re("mglyph",[]);r.setAttribute("alt",e.alt);var o=Kt(e.height,t),n=0;if(e.totalheight.number>0&&(n=Kt(e.totalheight,t)-o,r.setAttribute("valign",le(-n))),r.setAttribute("height",le(o+n)),e.width.number>0){var i=Kt(e.width,t);r.setAttribute("width",le(i))}return r.setAttribute("src",e.src),r}});we({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:o}=e,n=Qe(t[0],"size");if(r.settings.strict){var i=o[1]==="m",a=n.value.unit==="mu";i?(a||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):a&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return mZ(e.dimension,t)},mathmlBuilder(e,t){var r=Kt(e.dimension,t);return new pb(r)}});we({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:o.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=X([],[yt(e.body,t)]),r=X(["inner"],[r],t)):r=X(["inner"],[yt(e.body,t)]);var o=X(["fix"],[]),n=X([e.alignment],[r,o],t),i=X(["strut"]);return i.style.height=le(n.height+n.depth),n.depth&&(i.style.verticalAlign=le(-n.depth)),n.children.unshift(i),n=X(["thinbox"],[n],t),X(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new re("mpadded",[At(e.body,t)]);if(e.alignment!=="rlap"){var o=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",o+"width")}return r.setAttribute("width","0px"),r}});we({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:o}=e,n=o.mode;o.switchMode("math");var i=r==="\\("?"\\)":"$",a=o.parseExpression(!1,i);return o.expect(i),o.switchMode(n),{type:"styling",mode:o.mode,style:"text",body:a}}});we({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ie("Mismatched "+e.funcName)}});var WF=(e,t)=>{switch(t.style.size){case Ze.DISPLAY.size:return e.display;case Ze.TEXT.size:return e.text;case Ze.SCRIPT.size:return e.script;case Ze.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};we({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:cr(t[0]),text:cr(t[1]),script:cr(t[2]),scriptscript:cr(t[3])}},htmlBuilder:(e,t)=>{var r=WF(e,t),o=vr(r,t,!1);return Zi(o)},mathmlBuilder:(e,t)=>{var r=WF(e,t);return Ja(r,t)}});var VZ=(e,t,r,o,n,i,a)=>{e=X([],[e]);var s=r&&Bi(r),c,u;if(t){var p=yt(t,o.havingStyle(n.sup()),o);u={elem:p,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-p.depth)}}if(r){var m=yt(r,o.havingStyle(n.sub()),o);c={elem:m,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-m.height)}}var h;if(u&&c){var g=o.fontMetrics().bigOpSpacing5+c.elem.height+c.elem.depth+c.kern+e.depth+a;h=vt({positionType:"bottom",positionData:g,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:le(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:le(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else if(c){var b=e.height-a;h=vt({positionType:"top",positionData:b,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:c.elem,marginLeft:le(-i)},{type:"kern",size:c.kern},{type:"elem",elem:e}]})}else if(u){var T=e.depth+a;h=vt({positionType:"bottom",positionData:T,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:le(i)},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]})}else return e;var I=[h];if(c&&i!==0&&!s){var P=X(["mspace"],[],o);P.style.marginRight=le(i),I.unshift(P)}return X(["mop","op-limits"],I,o)},GZ=new Set(["\\smallint"]),fu=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Qe(e.base,"op"),n=!0):i=Qe(e,"op");var a=t.style,s=!1;a.size===Ze.DISPLAY.size&&i.symbol&&!GZ.has(i.name)&&(s=!0);var c;if(i.symbol){var u=s?"Size2-Regular":"Size1-Regular",p="";if((i.name==="\\oiint"||i.name==="\\oiiint")&&(p=i.name.slice(1),i.name=p==="oiint"?"\\iint":"\\iiint"),c=Kr(i.name,u,"math",t,["mop","op-symbol",s?"large-op":"small-op"]),p.length>0){var m=c.italic,h=hZ(p+"Size"+(s?"2":"1"),t);c=vt({positionType:"individualShift",children:[{type:"elem",elem:c,shift:0},{type:"elem",elem:h,shift:s?.08:0}]}),i.name="\\"+p,c.classes.unshift("mop"),c.italic=m}}else if(i.body){var g=vr(i.body,t,!0);g.length===1&&g[0]instanceof Yr?(c=g[0],c.classes[0]="mop"):c=X(["mop"],g,t)}else{for(var b=[],T=1;T<i.name.length;T++)b.push(YI(i.name[T],i.mode,t));c=X(["mop"],b,t)}var I=0,P=0;return(c instanceof Yr||i.name==="\\oiint"||i.name==="\\oiiint")&&!i.suppressBaseShift&&(I=(c.height-c.depth)/2-t.fontMetrics().axisHeight,P=c.italic||0),n?VZ(c,r,o,t,a,P,I):(I&&(c.style.position="relative",c.style.top=le(I)),c)},Fm=(e,t)=>{var r;if(e.symbol)r=new re("mo",[Yn(e.name,e.mode)]),GZ.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new re("mo",Rn(e.body,t));else{r=new re("mi",[new Qt(e.name.slice(1))]);var o=new re("mo",[Yn("\u2061","text")]);e.parentIsSupSub?r=new re("mrow",[r,o]):r=yZ([r,o])}return r},npe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};we({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:o}=e,n=o;return n.length===1&&(n=npe[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:fu,mathmlBuilder:Fm});we({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:cr(o)}},htmlBuilder:fu,mathmlBuilder:Fm});var ope={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};we({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:fu,mathmlBuilder:Fm});we({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:fu,mathmlBuilder:Fm});we({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,o=r;return o.length===1&&(o=ope[o]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:fu,mathmlBuilder:Fm});var qZ=(e,t)=>{var r,o,n=!1,i;e.type==="supsub"?(r=e.sup,o=e.sub,i=Qe(e.base,"operatorname"),n=!0):i=Qe(e,"operatorname");var a;if(i.body.length>0){for(var s=i.body.map(m=>{var h="text"in m?m.text:void 0;return typeof h=="string"?{type:"textord",mode:m.mode,text:h}:m}),c=vr(s,t.withFont("mathrm"),!0),u=0;u<c.length;u++){var p=c[u];p instanceof Yr&&(p.text=p.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}a=X(["mop"],c,t)}else a=X(["mop"],[],t);return n?VZ(a,r,o,t,t.style,0,0):a},ipe=(e,t)=>{for(var r=Rn(e.body,t.withFont("mathrm")),o=!0,n=0;n<r.length;n++){var i=r[n];if(!(i instanceof pb))if(i instanceof re)switch(i.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var a=i.children[0];i.children.length===1&&a instanceof Qt?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break}default:o=!1}else o=!1}if(o){var s=r.map(p=>p.toText()).join("");r=[new Qt(s)]}var c=new re("mi",r);c.setAttribute("mathvariant","normal");var u=new re("mo",[Yn("\u2061","text")]);return e.parentIsSupSub?new re("mrow",[c,u]):yZ([c,u])};we({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:o}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:cr(n),alwaysHandleSupSub:o==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:qZ,mathmlBuilder:ipe});E("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");rl({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Zi(vr(e.body,t,!1)):X(["mord"],vr(e.body,t,!0),t)},mathmlBuilder(e,t){return Ja(e.body,t,!0)}});we({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,o=t[0];return{type:"overline",mode:r.mode,body:o}},htmlBuilder(e,t){var r=yt(e.body,t.havingCrampedStyle()),o=du("overline-line",t),n=t.fontMetrics().defaultRuleThickness,i=vt({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:o},{type:"kern",size:n}]});return X(["mord","overline"],[i],t)},mathmlBuilder(e,t){var r=new re("mo",[new Qt("\u203E")]);r.setAttribute("stretchy","true");var o=new re("mover",[At(e.body,t),r]);return o.setAttribute("accent","true"),o}});we({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"phantom",mode:r.mode,body:cr(o)}},htmlBuilder:(e,t)=>{var r=vr(e.body,t.withPhantom(),!1);return Zi(r)},mathmlBuilder:(e,t)=>{var r=Rn(e.body,t);return new re("mphantom",r)}});E("\\hphantom","\\smash{\\phantom{#1}}");we({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,o=t[0];return{type:"vphantom",mode:r.mode,body:o}},htmlBuilder:(e,t)=>{var r=X(["inner"],[yt(e.body,t.withPhantom())]),o=X(["fix"],[]);return X(["mord","rlap"],[r,o],t)},mathmlBuilder:(e,t)=>{var r=Rn(cr(e.body),t),o=new re("mphantom",r),n=new re("mpadded",[o]);return n.setAttribute("width","0px"),n}});we({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,o=Qe(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:o,body:n}},htmlBuilder(e,t){var r=yt(e.body,t),o=Kt(e.dy,t);return vt({positionType:"shift",positionData:-o,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new re("mpadded",[At(e.body,t)]),o=e.dy.number+e.dy.unit;return r.setAttribute("voffset",o),r}});we({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});we({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:o}=e,n=r[0],i=Qe(t[0],"size"),a=Qe(t[1],"size");return{type:"rule",mode:o.mode,shift:n&&Qe(n,"size").value,width:i.value,height:a.value}},htmlBuilder(e,t){var r=X(["mord","rule"],[],t),o=Kt(e.width,t),n=Kt(e.height,t),i=e.shift?Kt(e.shift,t):0;return r.style.borderRightWidth=le(o),r.style.borderTopWidth=le(n),r.style.bottom=le(i),r.width=o,r.height=n+i,r.depth=-i,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Kt(e.width,t),o=Kt(e.height,t),n=e.shift?Kt(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new re("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",le(r)),a.setAttribute("height",le(o));var s=new re("mpadded",[a]);return n>=0?s.setAttribute("height",le(n)):(s.setAttribute("height",le(n)),s.setAttribute("depth",le(-n))),s.setAttribute("voffset",le(n)),s}});function HZ(e,t,r){for(var o=vr(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,i=0;i<o.length;i++){var a=o[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(o[i].classes,t.sizingClasses(r)):o[i].classes[a+1]==="reset-size"+t.size&&(o[i].classes[a+1]="reset-size"+r.size),o[i].height*=n,o[i].depth*=n}return Zi(o)}var JF=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],ape=(e,t)=>{var r=t.havingSize(e.size);return HZ(e.body,r,t)};we({type:"sizing",names:JF,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:JF.indexOf(o)+1,body:i}},htmlBuilder:ape,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),o=Rn(e.body,r),n=new re("mstyle",o);return n.setAttribute("mathsize",le(r.sizeMultiplier)),n}});we({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:o}=e,n=!1,i=!1,a=r[0]&&Qe(r[0],"ordgroup");if(a)for(var s="",c=0;c<a.body.length;++c){var u=a.body[c];if(s=xb(u).text,s==="t")n=!0;else if(s==="b")i=!0;else{n=!1,i=!1;break}}else n=!0,i=!0;var p=t[0];return{type:"smash",mode:o.mode,body:p,smashHeight:n,smashDepth:i}},htmlBuilder:(e,t)=>{var r=X([],[yt(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 X(["mord","smash"],[r],t);if(r.children)for(var o=0;o<r.children.length;o++)e.smashHeight&&(r.children[o].height=0),e.smashDepth&&(r.children[o].depth=0);var n=vt({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return X(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new re("mpadded",[At(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});we({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:o}=e,n=r[0],i=t[0];return{type:"sqrt",mode:o.mode,body:i,index:n}},htmlBuilder(e,t){var r=yt(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=pu(r,t);var o=t.fontMetrics(),n=o.defaultRuleThickness,i=n;t.style.id<Ze.TEXT.id&&(i=t.fontMetrics().xHeight);var a=n+i/4,s=r.height+r.depth+a+n,{span:c,ruleWidth:u,advanceWidth:p}=qde(s,t),m=c.height-u;m>r.height+r.depth+a&&(a=(a+m-r.height-r.depth)/2);var h=c.height-r.height-a-u;r.style.paddingLeft=le(p);var g=vt({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+h)},{type:"elem",elem:c},{type:"kern",size:u}]});if(e.index){var b=t.havingStyle(Ze.SCRIPTSCRIPT),T=yt(e.index,b,t),I=.6*(g.height-g.depth),P=vt({positionType:"shift",positionData:-I,children:[{type:"elem",elem:T}]}),C=X(["root"],[P]);return X(["mord","sqrt"],[C,g],t)}else return X(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:r,index:o}=e;return o?new re("mroot",[At(r,t),At(o,t)]):new re("msqrt",[At(r,t)])}});var KF={display:Ze.DISPLAY,text:Ze.TEXT,script:Ze.SCRIPT,scriptscript:Ze.SCRIPTSCRIPT};we({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:o,parser:n}=e,i=n.parseExpression(!0,r),a=o.slice(1,o.length-5);return{type:"styling",mode:n.mode,style:a,body:i}},htmlBuilder(e,t){var r=KF[e.style],o=t.havingStyle(r).withFont("");return HZ(e.body,o,t)},mathmlBuilder(e,t){var r=KF[e.style],o=t.havingStyle(r),n=Rn(e.body,o),i=new re("mstyle",n),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},s=a[e.style];return i.setAttribute("scriptlevel",s[0]),i.setAttribute("displaystyle",s[1]),i}});var spe=function(t,r){var o=t.base;if(o)if(o.type==="op"){var n=o.limits&&(r.style.size===Ze.DISPLAY.size||o.alwaysHandleSupSub);return n?fu:null}else if(o.type==="operatorname"){var i=o.alwaysHandleSupSub&&(r.style.size===Ze.DISPLAY.size||o.limits);return i?qZ:null}else{if(o.type==="accent")return Bi(o.base)?rT:null;if(o.type==="horizBrace"){var a=!t.sub;return a===o.isOver?ZZ:null}else return null}else return null};rl({type:"supsub",htmlBuilder(e,t){var r=spe(e,t);if(r)return r(e,t);var{base:o,sup:n,sub:i}=e,a=yt(o,t),s,c,u=t.fontMetrics(),p=0,m=0,h=o&&Bi(o);if(n){var g=t.havingStyle(t.style.sup());s=yt(n,g,t),h||(p=a.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(i){var b=t.havingStyle(t.style.sub());c=yt(i,b,t),h||(m=a.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var T;t.style===Ze.DISPLAY?T=u.sup1:t.style.cramped?T=u.sup3:T=u.sup2;var I=t.sizeMultiplier,P=le(.5/u.ptPerEm/I),C=null;if(c){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(a instanceof Yr||k)&&(C=le(-a.italic))}var A;if(s&&c){p=Math.max(p,T,s.depth+.25*u.xHeight),m=Math.max(m,u.sub2);var z=u.defaultRuleThickness,N=4*z;if(p-s.depth-(c.height-m)<N){m=N-(p-s.depth)+c.height;var B=.8*u.xHeight-(p-s.depth);B>0&&(p+=B,m-=B)}var G=[{type:"elem",elem:c,shift:m,marginRight:P,marginLeft:C},{type:"elem",elem:s,shift:-p,marginRight:P}];A=vt({positionType:"individualShift",children:G})}else if(c){m=Math.max(m,u.sub1,c.height-.8*u.xHeight);var F=[{type:"elem",elem:c,marginLeft:C,marginRight:P}];A=vt({positionType:"shift",positionData:m,children:F})}else if(s)p=Math.max(p,T,s.depth+.25*u.xHeight),A=vt({positionType:"shift",positionData:-p,children:[{type:"elem",elem:s,marginRight:P}]});else throw new Error("supsub must have either sup or sub.");var W=BI(a,"right")||"mord";return X([W],[a,X(["msupsub"],[A])],t)},mathmlBuilder(e,t){var r=!1,o,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,o=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var i=[At(e.base,t)];e.sub&&i.push(At(e.sub,t)),e.sup&&i.push(At(e.sup,t));var a;if(r)a=o?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ze.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ze.DISPLAY||u.limits)?a="munderover":a="msubsup"}else{var c=e.base;c&&c.type==="op"&&c.limits&&(t.style===Ze.DISPLAY||c.alwaysHandleSupSub)||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(c.limits||t.style===Ze.DISPLAY)?a="munder":a="msub"}else{var s=e.base;s&&s.type==="op"&&s.limits&&(t.style===Ze.DISPLAY||s.alwaysHandleSupSub)||s&&s.type==="operatorname"&&s.alwaysHandleSupSub&&(s.limits||t.style===Ze.DISPLAY)?a="mover":a="msup"}return new re(a,i)}});rl({type:"atom",htmlBuilder(e,t){return YI(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new re("mo",[Yn(e.text,e.mode)]);if(e.family==="bin"){var o=tT(e,t);o==="bold-italic"&&r.setAttribute("mathvariant",o)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var WZ={mi:"italic",mn:"normal",mtext:"normal"};rl({type:"mathord",htmlBuilder(e,t){return vb(e,t,"mathord")},mathmlBuilder(e,t){var r=new re("mi",[Yn(e.text,e.mode,t)]),o=tT(e,t)||"italic";return o!==WZ[r.type]&&r.setAttribute("mathvariant",o),r}});rl({type:"textord",htmlBuilder(e,t){return vb(e,t,"textord")},mathmlBuilder(e,t){var r=Yn(e.text,e.mode,t),o=tT(e,t)||"normal",n;return e.mode==="text"?n=new re("mtext",[r]):/[0-9]/.test(e.text)?n=new re("mn",[r]):e.text==="\\prime"?n=new re("mo",[r]):n=new re("mi",[r]),o!==WZ[n.type]&&n.setAttribute("mathvariant",o),n}});var EI={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},zI={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};rl({type:"spacing",htmlBuilder(e,t){if(zI.hasOwnProperty(e.text)){var r=zI[e.text].className||"";if(e.mode==="text"){var o=vb(e,t,"textord");return o.classes.push(r),o}else return X(["mspace",r],[YI(e.text,e.mode,t)],t)}else{if(EI.hasOwnProperty(e.text))return X(["mspace",EI[e.text]],[],t);throw new ie('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(zI.hasOwnProperty(e.text))r=new re("mtext",[new Qt("\xA0")]);else{if(EI.hasOwnProperty(e.text))return new re("mspace");throw new ie('Unknown type of space "'+e.text+'"')}return r}});var XF=()=>{var e=new re("mtd",[]);return e.setAttribute("width","50%"),e};rl({type:"tag",mathmlBuilder(e,t){var r=new re("mtable",[new re("mtr",[XF(),new re("mtd",[Ja(e.body,t)]),XF(),new re("mtd",[Ja(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var YF={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},QF={"\\textbf":"textbf","\\textmd":"textmd"},lpe={"\\textit":"textit","\\textup":"textup"},eZ=(e,t)=>{var r=e.font;if(r){if(YF[r])return t.withTextFontFamily(YF[r]);if(QF[r])return t.withTextFontWeight(QF[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(lpe[r])};we({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:o}=e,n=t[0];return{type:"text",mode:r.mode,body:cr(n),font:o}},htmlBuilder(e,t){var r=eZ(e,t),o=vr(e.body,r,!0);return X(["mord","text"],o,r)},mathmlBuilder(e,t){var r=eZ(e,t);return Ja(e.body,r)}});we({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=yt(e.body,t),o=du("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=vt({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:o},{type:"kern",size:3*n},{type:"elem",elem:r}]});return X(["mord","underline"],[i],t)},mathmlBuilder(e,t){var r=new re("mo",[new Qt("\u203E")]);r.setAttribute("stretchy","true");var o=new re("munder",[At(e.body,t),r]);return o.setAttribute("accentunder","true"),o}});we({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=yt(e.body,t),o=t.fontMetrics().axisHeight,n=.5*(r.height-o-(r.depth+o));return vt({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){return new re("mpadded",[At(e.body,t)],["vcenter"])}});we({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new ie("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=tZ(e),o=[],n=t.havingStyle(t.style.text()),i=0;i<r.length;i++){var a=r[i];a==="~"&&(a="\\textasciitilde"),o.push(Kr(a,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return X(["mord","text"].concat(n.sizingClasses(t)),pZ(o),n)},mathmlBuilder(e,t){var r=new Qt(tZ(e)),o=new re("mtext",[r]);return o.setAttribute("mathvariant","monospace"),o}});var tZ=e=>e.body.replace(/ /g,e.star?"\u2423":"\xA0"),Va=gZ,JZ=`[ \r 521 ]`,cpe="\\\\[a-zA-Z@]+",upe="\\\\[^\uD800-\uDFFF]",dpe="("+cpe+")"+JZ+"*",ppe=`\\\\( 522|[ \r ]+ 523?)[ \r ]*`,qI="[\u0300-\u036F]",mpe=new RegExp(qI+"+$"),fpe="("+JZ+"+)|"+(ppe+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(qI+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(qI+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+dpe)+("|"+upe+")"),fb=class{constructor(t,r){this.input=t,this.settings=r,this.tokenRegex=new RegExp(fpe,"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 An("EOF",new vn(this,r,r));var o=this.tokenRegex.exec(t);if(o===null||o.index!==r)throw new ie("Unexpected character: '"+t[r]+"'",new An(t[r],new vn(this,r,r+1)));var n=o[6]||o[3]||(o[2]?"\\ ":" ");if(this.catcodes[n]===14){var i=t.indexOf(` 524`,this.tokenRegex.lastIndex);return i===-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=i+1,this.lex()}return new An(n,new vn(this,r,this.tokenRegex.lastIndex))}},HI=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 ie("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,o){if(o===void 0&&(o=!1),o){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 i=this.undefStack[this.undefStack.length-1];i&&!i.hasOwnProperty(t)&&(i[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}},hpe=LZ;E("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});E("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});E("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});E("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});E("\\@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}});E("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");E("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var rZ={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};E("\\char",function(e){var t=e.popToken(),r,o=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]==="\\")o=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new ie("\\char` missing argument");o=t.text.charCodeAt(0)}else r=10;if(r){if(o=rZ[t.text],o==null||o>=r)throw new ie("Invalid base-"+r+" digit "+t.text);for(var n;(n=rZ[e.future().text])!=null&&n<r;)o*=r,o+=n,e.popToken()}return"\\@char{"+o+"}"});var aT=(e,t,r,o)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new ie("\\newcommand's first argument must be a macro name");var i=n[0].text,a=e.isDefined(i);if(a&&!t)throw new ie("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!r)throw new ie("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var c="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)c+=u.text,u=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new ie("Invalid number of arguments: "+c);s=parseInt(c),n=e.consumeArg().tokens}return a&&o||e.macros.set(i,{tokens:n,numArgs:s}),""};E("\\newcommand",e=>aT(e,!1,!0,!1));E("\\renewcommand",e=>aT(e,!0,!1,!1));E("\\providecommand",e=>aT(e,!0,!0,!0));E("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});E("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});E("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Va[r],Ft.math[r],Ft.text[r]),""});E("\\bgroup","{");E("\\egroup","}");
524E("~","\\nobreakspace");E("\\lq","`");E("\\rq","'");E("\\aa","\\r a");E("\\AA","\\r A");E("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");E("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");E("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");E("\u212C","\\mathscr{B}");E("\u2130","\\mathscr{E}");E("\u2131","\\mathscr{F}");E("\u210B","\\mathscr{H}");E("\u2110","\\mathscr{I}");E("\u2112","\\mathscr{L}");E("\u2133","\\mathscr{M}");E("\u211B","\\mathscr{R}");E("\u212D","\\mathfrak{C}");E("\u210C","\\mathfrak{H}");E("\u2128","\\mathfrak{Z}");E("\\Bbbk","\\Bbb{k}");E("\\llap","\\mathllap{\\textrm{#1}}");E("\\rlap","\\mathrlap{\\textrm{#1}}");E("\\clap","\\mathclap{\\textrm{#1}}");E("\\mathstrut","\\vphantom{(}");E("\\underbar","\\underline{\\text{#1}}");E("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');E("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");E("\\ne","\\neq");E("\u2260","\\neq");E("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");
vendor: 4,972 bytes, line 524
524E("\u2209","\\notin");E("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");E("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");E("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");E("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");E("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");E("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");E("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");E("\u27C2","\\perp");E("\u203C","\\mathclose{!\\mkern-0.8mu!}");E("\u220C","\\notni");E("\u231C","\\ulcorner");E("\u231D","\\urcorner");E("\u231E","\\llcorner");E("\u231F","\\lrcorner");E("\xA9","\\copyright");E("\xAE","\\textregistered");E("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');E("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');E("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');E("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');E("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");E("\u22EE","\\vdots");E("\\varGamma","\\mathit{\\Gamma}");E("\\varDelta","\\mathit{\\Delta}");E("\\varTheta","\\mathit{\\Theta}");E("\\varLambda","\\mathit{\\Lambda}");E("\\varXi","\\mathit{\\Xi}");E("\\varPi","\\mathit{\\Pi}");E("\\varSigma","\\mathit{\\Sigma}");E("\\varUpsilon","\\mathit{\\Upsilon}");E("\\varPhi","\\mathit{\\Phi}");E("\\varPsi","\\mathit{\\Psi}");E("\\varOmega","\\mathit{\\Omega}");E("\\substack","\\begin{subarray}{c}#1\\end{subarray}");E("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");E("\\boxed","\\fbox{$\\displaystyle{#1}$}");E("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");E("\\implies","\\DOTSB\\;\\Longrightarrow\\;");E("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");E("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");E("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var nZ={",":"\\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"},gpe=new Set(["bin","rel"]);E("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in nZ?t=nZ[r]:(r.slice(0,4)==="\\not"||r in Ft.math&&gpe.has(Ft.math[r].group))&&(t="\\dotsb"),t});var sT={")":!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};E("\\dotso",function(e){var t=e.future().text;return t in sT?"\\ldots\\,":"\\ldots"});E("\\dotsc",function(e){var t=e.future().text;return t in sT&&t!==","?"\\ldots\\,":"\\ldots"});E("\\cdots",function(e){var t=e.future().text;return t in sT?"\\@cdots\\,":"\\@cdots"});E("\\dotsb","\\cdots");E("\\dotsm","\\cdots");E("\\dotsi","\\!\\cdots");E("\\dotsx","\\ldots\\,");E("\\DOTSI","\\relax");E("\\DOTSB","\\relax");E("\\DOTSX","\\relax");E("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");E("\\,","\\tmspace+{3mu}{.1667em}");E("\\thinspace","\\,");E("\\>","\\mskip{4mu}");E("\\:","\\tmspace+{4mu}{.2222em}");E("\\medspace","\\:");E("\\;","\\tmspace+{5mu}{.2777em}");E("\\thickspace","\\;");E("\\!","\\tmspace-{3mu}{.1667em}");E("\\negthinspace","\\!");E("\\negmedspace","\\tmspace-{4mu}{.2222em}");E("\\negthickspace","\\tmspace-{5mu}{.277em}");E("\\enspace","\\kern.5em ");E("\\enskip","\\hskip.5em\\relax");E("\\quad","\\hskip1em\\relax");E("\\qquad","\\hskip2em\\relax");E("\\tag","\\@ifstar\\tag@literal\\tag@paren");E("\\tag@paren","\\tag@literal{({#1})}");E("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ie("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});E("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");E("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");
524E("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");E("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");E("\\newline","\\\\\\relax");E("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var KZ=le(Wo["Main-Regular"][84][1]-.7*Wo["Main-Regular"][65][1]);E("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+KZ+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");E("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+KZ+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");E("\\hspace","\\@ifstar\\@hspacer\\@hspace");E("\\@hspace","\\hskip #1\\relax");E("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");E("\\ordinarycolon",":");E("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");E("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');E("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');E("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');E("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');E("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');E("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');E("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');E("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');E("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');E("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');E("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');E("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');E("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');E("\u2237","\\dblcolon");E("\u2239","\\eqcolon");E("\u2254","\\coloneqq");E("\u2255","\\eqqcolon");E("\u2A74","\\Coloneqq");E("\\ratio","\\vcentcolon");E("\\coloncolon","\\dblcolon");E("\\colonequals","\\coloneqq");E("\\coloncolonequals","\\Coloneqq");E("\\equalscolon","\\eqqcolon");E("\\equalscoloncolon","\\Eqqcolon");E("\\colonminus","\\coloneq");E("\\coloncolonminus","\\Coloneq");E("\\minuscolon","\\eqcolon");E("\\minuscoloncolon","\\Eqcolon");E("\\coloncolonapprox","\\Colonapprox");E("\\coloncolonsim","\\Colonsim");E("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");E("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");E("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");E("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");E("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");E("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");E("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");E("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");E("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");E("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");E("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");E("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");E("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");E("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");E("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");E("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");E("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");E("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");E("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");E("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");E("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");E("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");E("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");E("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");
vendor: 4,365 bytes, line 524
524E("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");E("\\imath","\\html@mathml{\\@imath}{\u0131}");E("\\jmath","\\html@mathml{\\@jmath}{\u0237}");E("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");E("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");E("\u27E6","\\llbracket");E("\u27E7","\\rrbracket");E("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");E("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");E("\u2983","\\lBrace");E("\u2984","\\rBrace");E("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");E("\u29B5","\\minuso");E("\\darr","\\downarrow");E("\\dArr","\\Downarrow");E("\\Darr","\\Downarrow");E("\\lang","\\langle");E("\\rang","\\rangle");E("\\uarr","\\uparrow");E("\\uArr","\\Uparrow");E("\\Uarr","\\Uparrow");E("\\N","\\mathbb{N}");E("\\R","\\mathbb{R}");E("\\Z","\\mathbb{Z}");E("\\alef","\\aleph");E("\\alefsym","\\aleph");E("\\Alpha","\\mathrm{A}");E("\\Beta","\\mathrm{B}");E("\\bull","\\bullet");E("\\Chi","\\mathrm{X}");E("\\clubs","\\clubsuit");E("\\cnums","\\mathbb{C}");E("\\Complex","\\mathbb{C}");E("\\Dagger","\\ddagger");E("\\diamonds","\\diamondsuit");E("\\empty","\\emptyset");E("\\Epsilon","\\mathrm{E}");E("\\Eta","\\mathrm{H}");E("\\exist","\\exists");E("\\harr","\\leftrightarrow");E("\\hArr","\\Leftrightarrow");E("\\Harr","\\Leftrightarrow");E("\\hearts","\\heartsuit");E("\\image","\\Im");E("\\infin","\\infty");E("\\Iota","\\mathrm{I}");E("\\isin","\\in");E("\\Kappa","\\mathrm{K}");E("\\larr","\\leftarrow");E("\\lArr","\\Leftarrow");E("\\Larr","\\Leftarrow");E("\\lrarr","\\leftrightarrow");E("\\lrArr","\\Leftrightarrow");E("\\Lrarr","\\Leftrightarrow");E("\\Mu","\\mathrm{M}");E("\\natnums","\\mathbb{N}");E("\\Nu","\\mathrm{N}");E("\\Omicron","\\mathrm{O}");E("\\plusmn","\\pm");E("\\rarr","\\rightarrow");E("\\rArr","\\Rightarrow");E("\\Rarr","\\Rightarrow");E("\\real","\\Re");E("\\reals","\\mathbb{R}");E("\\Reals","\\mathbb{R}");E("\\Rho","\\mathrm{P}");E("\\sdot","\\cdot");E("\\sect","\\S");E("\\spades","\\spadesuit");E("\\sub","\\subset");E("\\sube","\\subseteq");E("\\supe","\\supseteq");E("\\Tau","\\mathrm{T}");E("\\thetasym","\\vartheta");E("\\weierp","\\wp");E("\\Zeta","\\mathrm{Z}");E("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");E("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");E("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");E("\\bra","\\mathinner{\\langle{#1}|}");E("\\ket","\\mathinner{|{#1}\\rangle}");E("\\braket","\\mathinner{\\langle{#1}\\rangle}");E("\\Bra","\\left\\langle#1\\right|");E("\\Ket","\\left|#1\\right\\rangle");var XZ=e=>t=>{var r=t.consumeArg().tokens,o=t.consumeArg().tokens,n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.macros.get("|"),s=t.macros.get("\\|");t.macros.beginGroup();var c=m=>h=>{e&&(h.macros.set("|",a),n.length&&h.macros.set("\\|",s));var g=m;if(!m&&n.length){var b=h.future();b.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?n:o,numArgs:0}};t.macros.set("|",c(!1)),n.length&&t.macros.set("\\|",c(!0));var u=t.consumeArg().tokens,p=t.expandTokens([...i,...u,...r]);return t.macros.endGroup(),{tokens:p.reverse(),numArgs:0}};E("\\bra@ket",XZ(!1));E("\\bra@set",XZ(!0));E("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");E("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");E("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");E("\\angln","{\\angl n}");E("\\blue","\\textcolor{##6495ed}{#1}");E("\\orange","\\textcolor{##ffa500}{#1}");E("\\pink","\\textcolor{##ff00af}{#1}");E("\\red","\\textcolor{##df0030}{#1}");E("\\green","\\textcolor{##28ae7b}{#1}");E("\\gray","\\textcolor{gray}{#1}");E("\\purple","\\textcolor{##9d38bd}{#1}");E("\\blueA","\\textcolor{##ccfaff}{#1}");E("\\blueB","\\textcolor{##80f6ff}{#1}");E("\\blueC","\\textcolor{##63d9ea}{#1}");E("\\blueD","\\textcolor{##11accd}{#1}");E("\\blueE","\\textcolor{##0c7f99}{#1}");E("\\tealA","\\textcolor{##94fff5}{#1}");E("\\tealB","\\textcolor{##26edd5}{#1}");E("\\tealC","\\textcolor{##01d1c1}{#1}");E("\\tealD","\\textcolor{##01a995}{#1}");E("\\tealE","\\textcolor{##208170}{#1}");E("\\greenA","\\textcolor{##b6ffb0}{#1}");
vendor: 13,090 bytes, line 524
524E("\\greenB","\\textcolor{##8af281}{#1}");E("\\greenC","\\textcolor{##74cf70}{#1}");E("\\greenD","\\textcolor{##1fab54}{#1}");E("\\greenE","\\textcolor{##0d923f}{#1}");E("\\goldA","\\textcolor{##ffd0a9}{#1}");E("\\goldB","\\textcolor{##ffbb71}{#1}");E("\\goldC","\\textcolor{##ff9c39}{#1}");E("\\goldD","\\textcolor{##e07d10}{#1}");E("\\goldE","\\textcolor{##a75a05}{#1}");E("\\redA","\\textcolor{##fca9a9}{#1}");E("\\redB","\\textcolor{##ff8482}{#1}");E("\\redC","\\textcolor{##f9685d}{#1}");E("\\redD","\\textcolor{##e84d39}{#1}");E("\\redE","\\textcolor{##bc2612}{#1}");E("\\maroonA","\\textcolor{##ffbde0}{#1}");E("\\maroonB","\\textcolor{##ff92c6}{#1}");E("\\maroonC","\\textcolor{##ed5fa6}{#1}");E("\\maroonD","\\textcolor{##ca337c}{#1}");E("\\maroonE","\\textcolor{##9e034e}{#1}");E("\\purpleA","\\textcolor{##ddd7ff}{#1}");E("\\purpleB","\\textcolor{##c6b9fc}{#1}");E("\\purpleC","\\textcolor{##aa87ff}{#1}");E("\\purpleD","\\textcolor{##7854ab}{#1}");E("\\purpleE","\\textcolor{##543b78}{#1}");E("\\mintA","\\textcolor{##f5f9e8}{#1}");E("\\mintB","\\textcolor{##edf2df}{#1}");E("\\mintC","\\textcolor{##e0e5cc}{#1}");E("\\grayA","\\textcolor{##f6f7f7}{#1}");E("\\grayB","\\textcolor{##f0f1f2}{#1}");E("\\grayC","\\textcolor{##e3e5e6}{#1}");E("\\grayD","\\textcolor{##d6d8da}{#1}");E("\\grayE","\\textcolor{##babec2}{#1}");E("\\grayF","\\textcolor{##888d93}{#1}");E("\\grayG","\\textcolor{##626569}{#1}");E("\\grayH","\\textcolor{##3b3e40}{#1}");E("\\grayI","\\textcolor{##21242c}{#1}");E("\\kaBlue","\\textcolor{##314453}{#1}");E("\\kaGreen","\\textcolor{##71B307}{#1}");var YZ={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},WI=class{constructor(t,r,o){this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new HI(hpe,r.macros),this.mode=o,this.stack=[]}feed(t){this.lexer=new fb(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,o,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:o}=this.consumeArg(["]"])}else({tokens:n,start:r,end:o}=this.consumeArg());return this.pushToken(new An("EOF",o.loc)),this.pushTokens(n),new An("",vn.range(r,o))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],o=t&&t.length>0;o||this.consumeSpaces();var n=this.future(),i,a=0,s=0;do{if(i=this.popToken(),r.push(i),i.text==="{")++a;else if(i.text==="}"){if(--a,a===-1)throw new ie("Extra }",i)}else if(i.text==="EOF")throw new ie("Unexpected end of input in a macro argument, expected '"+(t&&o?t[s]:"}")+"'",i);if(t&&o)if((a===0||a===1&&t[s]==="{")&&i.text===t[s]){if(++s,s===t.length){r.splice(-s,s);break}}else s=0}while(a!==0||o);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:i}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new ie("The length of delimiters doesn't match the number of args!");for(var o=r[0],n=0;n<o.length;n++){var i=this.popToken();if(o[n]!==i.text)throw new ie("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<t;s++)a.push(this.consumeArg(r&&r[s+1]).tokens);return a}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new ie("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),o=r.text,n=r.noexpand?null:this._getExpansion(o);if(n==null||t&&n.unexpandable){if(t&&n==null&&o[0]==="\\"&&!this.isDefined(o))throw new ie("Undefined control sequence: "+o);return this.pushToken(r),!1}this.countExpansion(1);var i=n.tokens,a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){i=i.slice();for(var s=i.length-1;s>=0;--s){var c=i[s];if(c.text==="#"){if(s===0)throw new ie("Incomplete placeholder at end of macro body",c);if(c=i[--s],c.text==="#")i.splice(s+1,1);else if(/^[1-9]$/.test(c.text))i.splice(s,2,...a[+c.text-1]);else throw new ie("Not a valid argument number",c)}}}return this.pushTokens(i),i.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 An(t)]):void 0}expandTokens(t){var r=[],o=this.stack.length;for(this.pushTokens(t);this.stack.length>o;)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(o=>o.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var o=this.lexer.catcodes[t];if(o!=null&&o!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var i=0;if(n.includes("#"))for(var a=n.replace(/##/g,"");a.includes("#"+(i+1));)++i;for(var s=new fb(n,this.settings),c=[],u=s.lex();u.text!=="EOF";)c.push(u),u=s.lex();c.reverse();var p={tokens:c,numArgs:i};return p}return n}isDefined(t){return this.macros.has(t)||Va.hasOwnProperty(t)||Ft.math.hasOwnProperty(t)||Ft.text.hasOwnProperty(t)||YZ.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Va.hasOwnProperty(t)&&!Va[t].primitive}},oZ=/^[âââââââââââ
âââââââᵢⱼââââââáµ£ââᵤᵥâᵦᵧᵨᵩᵪ]/,ob=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"}),AI={"\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"}},iZ={\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
5240302",\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"},hb=class e{constructor(t,r){this.mode="math",this.gullet=new WI(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 ie("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 An("}")),this.gullet.pushTokens(t);var o=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,o}parseExpression(t,r){for(var o=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(e.endOfExpression.has(n.text)||r&&n.text===r||t&&Va[n.text]&&Va[n.text].infix)break;var i=this.parseAtom(r);if(i){if(i.type==="internal")continue}else break;o.push(i)}return this.mode==="text"&&this.formLigatures(o),this.handleInfixNodes(o)}handleInfixNodes(t){for(var r=-1,o,n=0;n<t.length;n++){var i=t[n];if(i.type==="infix"){if(r!==-1)throw new ie("only one infix operator per group",i.token);r=n,o=i.replaceWith}}if(r!==-1&&o){var a,s,c=t.slice(0,r),u=t.slice(r+1);c.length===1&&c[0].type==="ordgroup"?a=c[0]:a={type:"ordgroup",mode:this.mode,body:c},u.length===1&&u[0].type==="ordgroup"?s=u[0]:s={type:"ordgroup",mode:this.mode,body:u};var p;return o==="\\\\abovefrac"?p=this.callFunction(o,[a,t[r],s],[]):p=this.callFunction(o,[a,s],[]),[p]}else return t}handleSupSubscript(t){var r=this.fetch(),o=r.text;this.consume(),this.consumeSpaces();var n;do{var i;n=this.parseGroup(t)}while(((i=n)==null?void 0:i.type)==="internal");if(!n)throw new ie("Expected group after '"+o+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],o=0;o<t.length;o++)r.push({type:"textord",mode:"text",text:t[o]});var n={type:"text",mode:this.mode,body:r},i={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return i}parseAtom(t){var r=this.parseGroup("atom",t);if(r?.type==="internal"||this.mode==="text")return r;for(var o,n;;){this.consumeSpaces();var i=this.fetch();if(i.text==="\\limits"||i.text==="\\nolimits"){if(r&&r.type==="op"){var a=i.text==="\\limits";r.limits=a,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=i.text==="\\limits");else throw new ie("Limit controls must follow a math operator",i);this.consume()}else if(i.text==="^"){if(o)throw new ie("Double superscript",i);o=this.handleSupSubscript("superscript")}else if(i.text==="_"){if(n)throw new ie("Double subscript",i);n=this.handleSupSubscript("subscript")}else if(i.text==="'"){if(o)throw new ie("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},c=[s];for(this.consume();this.fetch().text==="'";)c.push(s),this.consume();this.fetch().text==="^"&&c.push(this.handleSupSubscript("superscript")),o={type:"ordgroup",mode:this.mode,body:c}}else if(ob[i.text]){var u=oZ.test(i.text),p=[];for(p.push(new An(ob[i.text])),this.consume();;){var m=this.fetch().text;if(!ob[m]||oZ.test(m)!==u)break;p.unshift(new An(ob[m])),this.consume()}var h=this.subparse(p);u?n={type:"ordgroup",mode:"math",body:h}:o={type:"ordgroup",mode:"math",body:h}}else break}return o||n?{type:"supsub",mode:this.mode,base:r,sup:o,sub:n}:r}parseFunction(t,r){var o=this.fetch(),n=o.text,i=Va[n];if(!i)return null;if(this.consume(),r&&r!=="atom"&&!i.allowedInArgument)throw new ie("Got function '"+n+"' with no arguments"+(r?" as "+r:""),o);if(this.mode==="text"&&!i.allowedInText)throw new ie("Can't use function '"+n+"' in text mode",o);if(this.mode==="math"&&i.allowedInMath===!1)throw new ie("Can't use function '"+n+"' in math mode",o);var{args:a,optArgs:s}=this.parseArguments(n,i);return this.callFunction(n,a,s,o,t)}callFunction(t,r,o,n,i){var a={funcName:t,parser:this,token:n,breakOnTokenText:i},s=Va[t];if(s&&s.handler)return s.handler(a,r,o);throw new ie("No function handler for "+t)}parseArguments(t,r){var o=r.numArgs+r.numOptionalArgs;if(o===0)return{args:[],optArgs:[]};for(var n=[],i=[],a=0;a<o;a++){var s=r.argTypes&&r.argTypes[a],c=a<r.numOptionalArgs;("primitive"in r&&r.primitive&&s==null||r.type==="sqrt"&&a===1&&i[0]==null)&&(s="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",s,c);if(c)i.push(u);else if(u!=null)n.push(u);else throw new ie("Null argument, please report this as a bug")}return{args:n,optArgs:i}}parseGroupOfType(t,r,o){switch(r){case"color":return this.parseColorGroup(o);case"size":return this.parseSizeGroup(o);case"url":return this.parseUrlGroup(o);case"math":case"text":return this.parseArgumentGroup(o,r);case"hbox":{var n=this.parseArgumentGroup(o,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text"}:null}case"raw":{var i=this.parseStringGroup("raw",o);return i!=null?{type:"raw",mode:"text",string:i.text}:null}case"primitive":{if(o)throw new ie("A primitive argument cannot be optional");var a=this.parseGroup(t);
vendor: 6,343 bytes, lines 524-525
524if(a==null)throw new ie("Expected group as "+t,this.fetch());return a}case"original":case null:case void 0:return this.parseArgumentGroup(o);default:throw new ie("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var o=this.gullet.scanArgument(r);if(o==null)return null;for(var n="",i;(i=this.fetch()).text!=="EOF";)n+=i.text,this.consume();return this.consume(),o.text=n,o}parseRegexGroup(t,r){for(var o=this.fetch(),n=o,i="",a;(a=this.fetch()).text!=="EOF"&&t.test(i+a.text);)n=a,i+=n.text,this.consume();if(i==="")throw new ie("Invalid "+r+": '"+o.text+"'",o);return o.range(n,i)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var o=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!o)throw new ie("Invalid color: '"+r.text+"'",r);var n=o[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,o=!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",o=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new ie("Invalid size: '"+r.text+"'",r);var i={number:+(n[1]+n[2]),unit:n[3]};if(!sZ(i))throw new ie("Invalid unit: '"+i.unit+"'",r);return{type:"size",mode:this.mode,value:i,isBlank:o}}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 o=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}}parseArgumentGroup(t,r){var o=this.gullet.scanArgument(t);if(o==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var i=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var a={type:"ordgroup",mode:this.mode,loc:o.loc,body:i};return r&&this.switchMode(n),a}parseGroup(t,r){var o=this.fetch(),n=o.text,i;if(n==="{"||n==="\\begingroup"){this.consume();var a=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),c=this.fetch();this.expect(a),this.gullet.endGroup(),i={type:"ordgroup",mode:this.mode,loc:vn.range(o,c),body:s,semisimple:n==="\\begingroup"||void 0}}else if(i=this.parseFunction(r,t)||this.parseSymbol(),i==null&&n[0]==="\\"&&!YZ.hasOwnProperty(n)){if(this.settings.throwOnError)throw new ie("Undefined control sequence: "+n,o);i=this.formatUnsupportedCmd(n),this.consume()}return i}formLigatures(t){for(var r=t.length-1,o=0;o<r;++o){var n=t[o];if(n.type==="textord"){var i=n.text,a=t[o+1];if(!(!a||a.type!=="textord")){if(i==="-"&&a.text==="-"){var s=t[o+2];o+1<r&&s&&s.type==="textord"&&s.text==="-"?(t.splice(o,3,{type:"textord",mode:"text",loc:vn.range(n,s),text:"---"}),r-=2):(t.splice(o,2,{type:"textord",mode:"text",loc:vn.range(n,a),text:"--"}),r-=1)}(i==="'"||i==="`")&&a.text===i&&(t.splice(o,2,{type:"textord",mode:"text",loc:vn.range(n,a),text:i+i}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var o=r.slice(5),n=o.charAt(0)==="*";if(n&&(o=o.slice(1)),o.length<2||o.charAt(0)!==o.slice(-1))throw new ie(`\\verb assertion failed -- 525 please report what input caused this bug`);return o=o.slice(1,-1),{type:"verb",mode:"text",body:o,star:n}}iZ.hasOwnProperty(r[0])&&!Ft[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=iZ[r[0]]+r.slice(1));var i=mpe.exec(r);i&&(r=r.substring(0,i.index),r==="i"?r="\u0131":r==="j"&&(r="\u0237"));var a;if(Ft[this.mode][r]){this.settings.strict&&this.mode==="math"&&OI.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var s=Ft[this.mode][r].group,c=vn.range(t),u;if(fde.hasOwnProperty(s)){var p=s;u={type:"atom",mode:this.mode,family:p,loc:c,text:r}}else u={type:s,mode:this.mode,loc:c,text:r};a=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(aZ(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)),a={type:"textord",mode:"text",loc:vn.range(t),text:r};else return null;if(this.consume(),i)for(var m=0;m<i[0].length;m++){var h=i[0][m];if(!AI[h])throw new ie("Unknown accent ' "+h+"'",t);var g=AI[h][this.mode]||AI[h].text;if(!g)throw new ie("Accent "+h+" unsupported in "+this.mode+" mode",t);a={type:"accent",mode:this.mode,loc:vn.range(t),label:g,isStretchy:!1,isShifty:!0,base:a}}return a}};hb.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var lT=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var o=new hb(t,r);delete o.gullet.macros.current["\\df@tag"];var n=o.parse();if(delete o.gullet.macros.current["\\current@color"],delete o.gullet.macros.current["\\color"],o.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new ie("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:o.subparse([new An("\\df@tag")])}]}return n},QZ=function(t,r,o){r.textContent="";var n=cT(t,o).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."),QZ=function(){throw new ie("KaTeX doesn't work in quirks mode.")});var vpe=function(t,r){var o=cT(t,r).toMarkup();return o},ype=function(t,r){var o=new Om(r);return lT(t,o)},eV=function(t,r,o){if(o.throwOnError||!(t instanceof ie))throw t;var n=X(["katex-error"],[new Yr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+o.errorColor),n},cT=function(t,r){var o=new Om(r);try{var n=lT(t,o);return Ede(n,t,o)}catch(i){return eV(i,t,o)}},bpe=function(t,r){var o=new Om(r);try{var n=lT(t,o);return zde(n,t,o)}catch(i){return eV(i,t,o)}}
vendor: 4,550 bytes, lines 525-529
525,xpe="0.16.44",wpe={Span:Ha,Anchor:uu,SymbolNode:Yr,SvgNode:xo,PathNode:Jo,LineNode:jm},uT={version:xpe,render:QZ,renderToString:vpe,ParseError:ie,SETTINGS_SCHEMA:MI,__parse:ype,__renderToDomTree:cT,__renderToHTMLTree:bpe,__setFontMetrics:pde,__defineSymbol:y,__defineFunction:we,__defineMacro:E,__domTree:wpe};var _pe={},kpe=[];function $b(e){let t=e||_pe;return function(r,o){c$(r,"element",function(n,i){let a=Array.isArray(n.properties.className)?n.properties.className:kpe,s=a.includes("language-math"),c=a.includes("math-display"),u=a.includes("math-inline"),p=c;if(!s&&!c&&!u)return;let m=i[i.length-1],h=n;if(n.tagName==="code"&&s&&m&&m.type==="element"&&m.tagName==="pre"&&(h=m,m=i[i.length-2],p=!0),!m)return;let g=yI(h,{whitespace:"pre"}),b;try{b=uT.renderToString(g,{...t,displayMode:p,throwOnError:!0})}catch(I){let P=I,C=P.name.toLowerCase();o.message("Could not render math with KaTeX",{ancestors:[...i,n],cause:P,place:n.position,ruleId:C,source:"rehype-katex"});try{b=uT.renderToString(g,{...t,displayMode:p,strict:"ignore",throwOnError:!1})}catch{b=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(I)},children:[{type:"text",value:g}]}]}}typeof b=="string"&&(b=_F(b,{fragment:!0}).children);let T=m.children.indexOf(h);return m.children.splice(T,1,...b),l$})}}function dT(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:i},exit:{mathFlow:n,mathFlowFence:o,mathFlowFenceMeta:r,mathFlowValue:s,mathText:a,mathTextData:s}};function e(c){let u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},c)}function t(){this.buffer()}function r(){let c=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=c}function o(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(c){let u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=u;let m=p.data.hChildren[0];m.type,m.tagName,m.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function i(c){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},c),this.buffer()}function a(c){let u=this.resume(),p=this.stack[this.stack.length-1];p.type,this.exit(c),p.value=u,p.data.hChildren.push({type:"text",value:u})}function s(c){this.config.enter.data.call(this,c),this.config.exit.data.call(this,c)}}function pT(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),o.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` 526`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:o}};function r(i,a,s,c){let u=i.value||"",p=s.createTracker(c),m="$".repeat(Math.max(b$(u,"$")+1,2)),h=s.enter("mathFlow"),g=p.move(m);if(i.meta){let b=s.enter("mathFlowMeta");g+=p.move(s.safe(i.meta,{after:` 527`,before:g,encode:["$"],...p.current()})),b()}return g+=p.move(` 528`),u&&(g+=p.move(u+` 529`)),g+=p.move(m),h(),g}function o(i,a,s){let c=i.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(c);)u++;let p="$".repeat(u);/[^ \r\n]/.test(c)&&(/^[ \r\n]/.test(c)&&/[ \r\n]$/.test(c)||/^\$|\$$/.test(c))&&(c=" "+c+" ");let m=-1;for(;++m<s.unsafe.length;){let h=s.unsafe[m];if(!h.atBreak)continue;let g=s.compilePattern(h),b;for(;b=g.exec(c);){let T=b.index;c.codePointAt(T)===10&&c.codePointAt(T-1)===13&&T--,c=c.slice(0,T)+" "+c.slice(b.index+1)}}return p+c+p}function n(){return"$"}}var rV={tokenize:Spe,concrete:!0,name:"mathFlow"},tV={tokenize:Ipe,partial:!0};function Spe(e,t,r){let o=this,n=o.events[o.events.length-1],i=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,a=0;return s;function s(C){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),c(C)}function c(C){return C===36?(e.consume(C),a++,c):a<2?r(C):(e.exit("mathFlowFenceSequence"),ju(e,u,"whitespace")(C))}function u(C){return C===null||ii(C)?m(C):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(C))}function p(C){return C===null||ii(C)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),m(C)):C===36?r(C):(e.consume(C),p)}function m(C){return e.exit("mathFlowFence"),o.interrupt?t(C):e.attempt(tV,h,I)(C)}function h(C){return e.attempt({tokenize:P,partial:!0},I,g)(C)}
529function g(C){return(i?ju(e,b,"linePrefix",i+1):b)(C)}function b(C){return C===null?I(C):ii(C)?e.attempt(tV,h,I)(C):(e.enter("mathFlowValue"),T(C))}function T(C){return C===null||ii(C)?(e.exit("mathFlowValue"),b(C)):(e.consume(C),T)}function I(C){return e.exit("mathFlow"),t(C)}function P(C,k,A){let z=0;return ju(C,N,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function N(F){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),B(F)}function B(F){return F===36?(z++,C.consume(F),B):z<a?A(F):(C.exit("mathFlowFenceSequence"),ju(C,G,"whitespace")(F))}function G(F){return F===null||ii(F)?(C.exit("mathFlowFence"),k(F)):A(F)}}}function Ipe(e,t,r){let o=this;return n;function n(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i)}function i(a){return o.parser.lazy[o.now().line]?r(a):t(a)}}function nV(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:o,resolve:Tpe,previous:$pe,name:"mathText"};function o(n,i,a){let s=this,c=0,u,p;return m;function m(I){return n.enter("mathText"),n.enter("mathTextSequence"),h(I)}function h(I){return I===36?(n.consume(I),c++,h):c<2&&!r?a(I):(n.exit("mathTextSequence"),g(I))}function g(I){return I===null?a(I):I===36?(p=n.enter("mathTextSequence"),u=0,T(I)):I===32?(n.enter("space"),n.consume(I),n.exit("space"),g):ii(I)?(n.enter("lineEnding"),n.consume(I),n.exit("lineEnding"),g):(n.enter("mathTextData"),b(I))}function b(I){return I===null||I===32||I===36||ii(I)?(n.exit("mathTextData"),g(I)):(n.consume(I),b)}function T(I){return I===36?(n.consume(I),u++,T):u===c?(n.exit("mathTextSequence"),n.exit("mathText"),i(I)):(p.type="mathTextData",b(I))}}}function Tpe(e){let t=e.length-4,r=3,o,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=r;++o<t;)if(e[o][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(o=r-1,t++;++o<=t;)n===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(n=o):(o===t||e[o][1].type==="lineEnding")&&(e[n][1].type="mathTextData",o!==n+2&&(e[n][1].end=e[o-1][1].end,e.splice(n+2,o-n-2),t-=o-n-2,o=n+2),n=void 0);return e}function $pe(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function mT(e){return{flow:{36:rV},text:{36:nV(e)}}}var Ppe={};function Pb(e){let t=this,r=e||Ppe,o=t.data(),n=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),a=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);n.push(mT(r)),i.push(dT()),a.push(pT(r))}function Cpe(e={}){var t,r;let o=[Pb,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[$b,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:o,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}var oV=Cpe();var Epe="11.14.0",zpe=`https://esm.sh/mermaid@${Epe}`,Ape={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0},fT=null,hT=!1;function Mpe(){return fT||(fT=import(zpe)),fT}var iV={name:"mermaid",type:"diagram",language:"mermaid",getMermaid(e){let t={...Ape,...e};return{initialize(r){Object.assign(t,r),hT=!1},async render(r,o){let i=(await Mpe()).default;return hT||(i.initialize(t),hT=!0),i.render(r,o)}}}};var Vi=Z(xe());var Zm=Z(se()),aV=({className:e,from:t,...r})=>(0,Zm.jsx)("div",{className:Te("group flex w-full max-w-[95%] flex-col gap-2",t==="user"?"is-user ml-auto justify-end":"is-assistant",e),...r}),sV=({children:e,className:t,...r})=>(0,Zm.jsx)("div",{className:Te("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 vLe=(0,Vi.createContext)(null);var Ope={cjk:sU,code:yF,math:oV,mermaid:iV},Cb=(0,Vi.memo)(({className:e,...t})=>(0,Zm.jsx)(x1,{className:Te("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),plugins:Ope,...t}),(e,t)=>e.children===t.children&&t.isAnimating===e.isAnimating);Cb.displayName="MessageResponse";var lV="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var gT=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=lV[r[e]&63];return t};var Ge=Z(xe());var ELe=Z(xe());var _Le=Z(xe());var cV=Z(se());var uV=Z(se());var RLe=Z(xe());var Lpe=Z(se());var OLe=Z(xe());var Vm=Z(se());function dV({className:e,...t}){return(0,Vm.jsx)("div",{"data-slot":"input-group",role:"group",className:Te("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 jpe=ls("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>
529svg: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 pV({className:e,align:t="inline-start",...r}){return(0,Vm.jsx)("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:Te(jpe({align:t}),e),onClick:o=>{o.target.closest("button")||o.currentTarget.parentElement?.querySelector("input")?.focus()},...r})}var Upe=ls("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 mV({className:e,type:t="button",variant:r="ghost",size:o="xs",...n}){return(0,Vm.jsx)(Lt,{type:t,"data-size":o,variant:r,className:Te(Upe({size:o}),e),...n})}function fV({className:e,...t}){return(0,Vm.jsx)(y1,{"data-slot":"input-group-control",className:Te("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}var yr=Z(se()),Bpe=async e=>{try{let r=await(await fetch(e)).blob();return new Promise(o=>{let n=new FileReader;n.onloadend=()=>o(n.result),n.onerror=()=>o(null),n.readAsDataURL(r)})}catch{return null}};var Fpe=(0,Ge.createContext)(null),Zpe=(0,Ge.createContext)(null);var hV=()=>(0,Ge.useContext)(Fpe);var Vpe=()=>(0,Ge.useContext)(Zpe);var gV=(0,Ge.createContext)(null),Gpe=()=>{let e=Vpe(),r=(0,Ge.useContext)(gV)??e;if(!r)throw new Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return r},qpe=(0,Ge.createContext)(null);var vV=({className:e,accept:t,multiple:r,globalDrop:o,syncHiddenInput:n,maxFiles:i,maxFileSize:a,onError:s,onSubmit:c,children:u,...p})=>{let m=hV(),h=!!m,g=(0,Ge.useRef)(null),b=(0,Ge.useRef)(null),[T,I]=(0,Ge.useState)([]),P=h?m.attachments.files:T,[C,k]=(0,Ge.useState)([]),A=(0,Ge.useRef)(P);(0,Ge.useEffect)(()=>{A.current=P},[P]);let z=(0,Ge.useCallback)(()=>{g.current?.click()},[]),N=(0,Ge.useCallback)(be=>!t||t.trim()===""?!0:t.split(",").map(fe=>fe.trim()).filter(Boolean).some(fe=>{if(fe.endsWith("/*")){let at=fe.slice(0,-1);return be.type.startsWith(at)}return be.type===fe}),[t]),B=(0,Ge.useCallback)(be=>{let ve=[...be],fe=ve.filter(mt=>N(mt));if(ve.length&&fe.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let at=mt=>a?mt.size<=a:!0,wt=fe.filter(at);if(fe.length>0&&wt.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}I(mt=>{let Nt=typeof i=="number"?Math.max(0,i-mt.length):void 0,Sr=typeof Nt=="number"?wt.slice(0,Nt):wt;typeof Nt=="number"&&wt.length>Nt&&s?.({code:"max_files",message:"Too many files. Some were not added."});let Lr=[];for(let _o of Sr)Lr.push({filename:_o.name,id:gT(),mediaType:_o.type,type:"file",url:URL.createObjectURL(_o)});return[...mt,...Lr]})},[N,i,a,s]),G=(0,Ge.useCallback)(be=>I(ve=>{let fe=ve.find(at=>at.id===be);return fe?.url&&URL.revokeObjectURL(fe.url),ve.filter(at=>at.id!==be)}),[]),F=(0,Ge.useCallback)(be=>{let ve=[...be],fe=ve.filter(Lr=>N(Lr));if(ve.length&&fe.length===0){s?.({code:"accept",message:"No files match the accepted types."});return}let at=Lr=>a?Lr.size<=a:!0,wt=fe.filter(at);if(fe.length>0&&wt.length===0){s?.({code:"max_file_size",message:"All files exceed the maximum size."});return}let mt=P.length,Nt=typeof i=="number"?Math.max(0,i-mt):void 0,Sr=typeof Nt=="number"?wt.slice(0,Nt):wt;typeof Nt=="number"&&wt.length>Nt&&s?.({code:"max_files",message:"Too many files. Some were not added."}),Sr.length>0&&m?.attachments.add(Sr)},[N,a,i,s,P.length,m]),W=(0,Ge.useCallback)(()=>h?m?.attachments.clear():I(be=>{for(let ve of be)ve.url&&URL.revokeObjectURL(ve.url);return[]}),[h,m]),ue=(0,Ge.useCallback)(()=>k([]),[]),de=h?F:B,ft=h?m.attachments.remove:G,$e=h?m.attachments.openFileDialog:z,Fe=(0,Ge.useCallback)(()=>{W(),ue()},[W,ue]);(0,Ge.useEffect)(()=>{h&&m.__registerFileInput(g,()=>g.current?.click())},[h,m]),(0,Ge.useEffect)(()=>{n&&g.current&&P.length===0&&(g.current.value="")},[P,n]),(0,Ge.useEffect)(()=>{let be=b.current;if(!be||o)return;let ve=at=>{at.dataTransfer?.types?.includes("Files")&&at.preventDefault()},fe=at=>{at.dataTransfer?.types?.includes("Files")&&at.preventDefault(),at.dataTransfer?.files&&at.dataTransfer.files.length>0&&de(at.dataTransfer.files)};return be.addEventListener("dragover",ve),be.addEventListener("drop",fe),()=>{be.removeEventListener("dragover",ve),be.removeEventListener("drop",fe)}},[de,o]),(0,Ge.useEffect)(()=>
529{if(!o)return;let be=fe=>{fe.dataTransfer?.types?.includes("Files")&&fe.preventDefault()},ve=fe=>{fe.dataTransfer?.types?.includes("Files")&&fe.preventDefault(),fe.dataTransfer?.files&&fe.dataTransfer.files.length>0&&de(fe.dataTransfer.files)};return document.addEventListener("dragover",be),document.addEventListener("drop",ve),()=>{document.removeEventListener("dragover",be),document.removeEventListener("drop",ve)}},[de,o]),(0,Ge.useEffect)(()=>()=>{if(!h)for(let be of A.current)be.url&&URL.revokeObjectURL(be.url)},[h]);let pe=(0,Ge.useCallback)(be=>{let ve=be.currentTarget;ve.files&&de(ve.files),ve.value=""},[de]),en=(0,Ge.useMemo)(()=>({add:de,clear:W,fileInputRef:g,files:P.map(be=>({...be,id:be.id})),openFileDialog:$e,remove:ft}),[P,de,ft,W,$e]),me=(0,Ge.useMemo)(()=>({add:be=>{let ve=Array.isArray(be)?be:[be];k(fe=>[...fe,...ve.map(at=>({...at,id:gT()}))])},clear:ue,remove:be=>{k(ve=>ve.filter(fe=>fe.id!==be))},sources:C}),[C,ue]),ce=(0,Ge.useCallback)(async be=>{be.preventDefault();let ve=be.currentTarget,fe=h?m.textInput.value:new FormData(ve).get("message")||"";h||ve.reset();try{let at=await Promise.all(P.map(async({id:mt,...Nt})=>{if(Nt.url?.startsWith("blob:")){let Sr=await Bpe(Nt.url);return{...Nt,url:Sr??Nt.url}}return Nt})),wt=c({files:at,text:fe},be);if(wt instanceof Promise)try{await wt,Fe(),h&&m.textInput.clear()}catch{}else Fe(),h&&m.textInput.clear()}catch{}},[h,m,P,c,Fe]),et=(0,yr.jsxs)(yr.Fragment,{children:[(0,yr.jsx)("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:r,onChange:pe,ref:g,title:"Upload files",type:"file"}),(0,yr.jsx)("form",{className:Te("w-full",e),onSubmit:ce,ref:b,...p,children:(0,yr.jsx)(dV,{className:"overflow-hidden",children:u})})]}),tt=(0,yr.jsx)(qpe.Provider,{value:me,children:et});return(0,yr.jsx)(gV.Provider,{value:en,children:tt})},yV=({className:e,...t})=>(0,yr.jsx)("div",{className:Te("contents",e),...t}),bV=({onChange:e,onKeyDown:t,className:r,placeholder:o="What would you like to know?",...n})=>{let i=hV(),a=Gpe(),[s,c]=(0,Ge.useState)(!1),u=(0,Ge.useCallback)(b=>{if(t?.(b),!b.defaultPrevented){if(b.key==="Enter"){if(s||b.nativeEvent.isComposing||b.shiftKey)return;b.preventDefault();let{form:T}=b.currentTarget;if(T?.querySelector('button[type="submit"]')?.disabled)return;T?.requestSubmit()}if(b.key==="Backspace"&&b.currentTarget.value===""&&a.files.length>0){b.preventDefault();let T=a.files.at(-1);T&&a.remove(T.id)}}},[t,s,a]),p=(0,Ge.useCallback)(b=>{let T=b.clipboardData?.items;if(!T)return;let I=[];for(let P of T)if(P.kind==="file"){let C=P.getAsFile();C&&I.push(C)}I.length>0&&(b.preventDefault(),a.add(I))},[a]),m=(0,Ge.useCallback)(()=>c(!1),[]),h=(0,Ge.useCallback)(()=>c(!0),[]),g=i?{onChange:b=>{i.textInput.setInput(b.currentTarget.value),e?.(b)},value:i.textInput.value}:{onChange:e};return(0,yr.jsx)(fV,{className:Te("field-sizing-content max-h-48 min-h-16 resize-y",r),name:"message",onCompositionEnd:m,onCompositionStart:h,onKeyDown:u,onPaste:p,placeholder:o,...n,...g})};var xV=({className:e,...t})=>(0,yr.jsx)(pV,{align:"block-end",className:Te("justify-between gap-1",e),...t}),wV=({className:e,...t})=>(0,yr.jsx)("div",{className:Te("flex min-w-0 items-center gap-1",e),...t});var _V=({className:e,variant:t="default",size:r="icon-sm",status:o,onStop:n,onClick:i,children:a,...s})=>{let c=o==="submitted"||o==="streaming",u=(0,yr.jsx)(O7,{className:"size-4"});o==="submitted"?u=(0,yr.jsx)(hw,{}):o==="streaming"?u=(0,yr.jsx)(V7,{className:"size-4"}):o==="error"&&(u=(0,yr.jsx)(hl,{className:"size-4"}));let p=(0,Ge.useCallback)(m=>{if(c&&n){m.preventDefault(),n();return}i?.(m)},[c,n,i]);return(0,yr.jsx)(mV,{"aria-label":c?"Stop":"Submit",className:Te(e),onClick:p,size:r,type:c&&n?"button":"submit",variant:t,...s,children:a??u})};var kV=Z(xe()),hu=Z(se()),SV=({className:e,children:t,...r})=>(0,hu.jsxs)(fw,{className:"w-full overflow-x-auto whitespace-nowrap",...r,children:[(0,hu.jsx)("div",{className:Te("flex w-max flex-nowrap items-center gap-2",e),children:t}),(0,hu.jsx)(y0,{className:"hidden",orientation:"horizontal"})]}),IV=({suggestion:e,onClick:t,className:r,variant:o="outline",size:n="sm",children:i,...a})=>{let s=(0,kV.useCallback)(()=>{t?.(e)},[t,e]);return(0,hu.jsx)(Lt,{className:Te("cursor-pointer rounded-full px-4",r),onClick:s,size:n,type:"button",variant:o,...a,children:i||e})};var bt=Z(se()),TV=["What can you help me with?","Give me a quick overview","Summarize what I have here","What should I look at first?"];function Hpe(e){return e.parts.filter(t=>t.type==="text").map(t=>t.text).join("")}function Wpe(e){return e.parts.some(t=>yo(t))}var Jpe={"input-streaming":"Working on it...","input-available":"Working on it...","a
529pproval-requested":"Needs your approval","approval-responded":"Working on it...","output-available":"Done","output-error":"Something went wrong","output-denied":"Skipped"};function Kpe(e){return Ej(e).split(/[_\s-]+/).filter(Boolean).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")}function vT({messages:e,onSend:t,busy:r=!1,status:o,onStop:n,onApprove:i,errorMessage:a,suggestions:s=TV,title:c="Assistant",placeholder:u="Ask me anything\u2026",emptyTitle:p="How can I help?",emptyDescription:m="Ask a question or pick a starter below.",className:h}){let g=e.length===0,b=o??(r?"submitted":void 0),T=I=>{let P=I.text.trim();if(!(!P||r))return t(P)};return(0,bt.jsxs)(oi,{className:Te("bg-card text-card-foreground flex h-full min-h-0 flex-col overflow-hidden",h),children:[(0,bt.jsxs)("div",{className:"flex items-center gap-2 border-b px-4 py-3",children:[(0,bt.jsx)(Ou,{className:"text-muted-foreground size-4","aria-hidden":!0}),(0,bt.jsx)("span",{className:"text-foreground text-sm font-semibold",children:c})]}),(0,bt.jsxs)(jj,{children:[(0,bt.jsx)(Uj,{children:g?(0,bt.jsx)(Bj,{title:p,description:m,icon:(0,bt.jsx)(Ou,{className:"size-6","aria-hidden":!0})}):e.map(I=>(0,bt.jsx)(aV,{from:I.role,children:(0,bt.jsx)(sV,{children:Wpe(I)?I.parts.map((P,C)=>P.type==="text"?(0,bt.jsx)(Cb,{children:P.text},C):yo(P)?(0,bt.jsxs)("div",{className:"text-muted-foreground my-1 flex flex-wrap items-center gap-2 text-xs",children:[(0,bt.jsxs)("span",{className:"italic",children:[Kpe(P)," \xB7 ",Jpe[P.state]]}),P.state==="approval-requested"&&P.approval!=null&&i!=null?(0,bt.jsxs)("span",{className:"flex gap-1.5",children:[(0,bt.jsx)(Lt,{type:"button",size:"sm",onClick:()=>i(P.approval.id,!0),children:"Approve"}),(0,bt.jsx)(Lt,{type:"button",size:"sm",variant:"outline",onClick:()=>i(P.approval.id,!1),children:"Deny"})]}):null]},C):null):(0,bt.jsx)(Cb,{children:Hpe(I)})})},I.id))}),(0,bt.jsx)(Fj,{})]}),a!=null&&a!==""?(0,bt.jsx)("p",{className:"text-destructive px-4 pb-2 text-xs",role:"alert",children:a}):null,s.length>0?(0,bt.jsx)("div",{className:"px-4 pb-2",children:(0,bt.jsx)(SV,{children:s.map(I=>(0,bt.jsx)(IV,{suggestion:I,onClick:t,disabled:r},I))})}):null,(0,bt.jsx)("div",{className:"p-4 pt-0",children:(0,bt.jsxs)(vV,{onSubmit:T,children:[(0,bt.jsx)(yV,{children:(0,bt.jsx)(bV,{placeholder:u,disabled:r})}),(0,bt.jsxs)(xV,{children:[(0,bt.jsx)(wV,{}),(0,bt.jsx)(_V,{status:b,onStop:n})]})]})})]})}var eo=Z(xe(),1);var EV=Z(PV(),1);var Wm=Z(xe(),1);var Mb=Z(xe(),1);var CV=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Dt=(e,t,r)=>(CV(e,t,"read from private field"),r?r.call(e):t.get(e)),Qo=(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)},Xa=(e,t,r,o)=>(CV(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);function Ype(e,t){return t!=null?(0,EV.default)(e,t):e}var Qn,Eb,zb,Gm,qm,Hm,gu,yT,bT,Qpe=class{constructor(e=[]){Qo(this,Qn,void 0),Qo(this,Eb,"ready"),Qo(this,zb,void 0),Qo(this,Gm,new Set),Qo(this,qm,new Set),Qo(this,Hm,new Set),this.pushMessage=t=>{Xa(this,Qn,Dt(this,Qn).concat(t)),Dt(this,gu).call(this)},this.popMessage=()=>{Xa(this,Qn,Dt(this,Qn).slice(0,-1)),Dt(this,gu).call(this)},this.replaceMessage=(t,r)=>{Xa(this,Qn,[...Dt(this,Qn).slice(0,t),this.snapshot(r),...Dt(this,Qn).slice(t+1)]),Dt(this,gu).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,r)=>{let o=r?Ype(t,r):t;return Dt(this,Gm).add(o),()=>{Dt(this,Gm).delete(o)}},this["~registerStatusCallback"]=t=>(Dt(this,qm).add(t),()=>{Dt(this,qm).delete(t)}),this["~registerErrorCallback"]=t=>(Dt(this,Hm).add(t),()=>{Dt(this,Hm).delete(t)}),Qo(this,gu,()=>{Dt(this,Gm).forEach(t=>t())}),Qo(this,yT,()=>{Dt(this,qm).forEach(t=>t())}),Qo(this,bT,()=>{Dt(this,Hm).forEach(t=>t())}),Xa(this,Qn,e)}get status(){return Dt(this,Eb)}set status(e){Xa(this,Eb,e),Dt(this,yT).call(this)}get error(){return Dt(this,zb)}set error(e){Xa(this,zb,e),Dt(this,bT).call(this)}get messages(){return Dt(this,Qn)}set messages(e){Xa(this,Qn,[...e]),Dt(this,gu).call(this)}};Qn=new WeakMap;
529Eb=new WeakMap;zb=new WeakMap;Gm=new WeakMap;qm=new WeakMap;Hm=new WeakMap;gu=new WeakMap;yT=new WeakMap;bT=new WeakMap;var vu,Ab=class extends Aj{constructor({messages:e,...t}){let r=new Qpe(e);super({...t,state:r}),Qo(this,vu,void 0),this["~registerMessagesCallback"]=(o,n)=>Dt(this,vu)["~registerMessagesCallback"](o,n),this["~registerStatusCallback"]=o=>Dt(this,vu)["~registerStatusCallback"](o),this["~registerErrorCallback"]=o=>Dt(this,vu)["~registerErrorCallback"](o),Xa(this,vu,r)}};vu=new WeakMap;function zV({experimental_throttle:e,resume:t=!1,...r}={}){let o=(0,eo.useRef)("chat"in r?{}:{onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});"chat"in r||(o.current={onToolCall:r.onToolCall,onData:r.onData,onFinish:r.onFinish,onError:r.onError,sendAutomaticallyWhen:r.sendAutomaticallyWhen});let n={...r,onToolCall:h=>{var g,b;return(b=(g=o.current).onToolCall)==null?void 0:b.call(g,h)},onData:h=>{var g,b;return(b=(g=o.current).onData)==null?void 0:b.call(g,h)},onFinish:h=>{var g,b;return(b=(g=o.current).onFinish)==null?void 0:b.call(g,h)},onError:h=>{var g,b;return(b=(g=o.current).onError)==null?void 0:b.call(g,h)},sendAutomaticallyWhen:h=>{var g,b,T;return(T=(b=(g=o.current).sendAutomaticallyWhen)==null?void 0:b.call(g,h))!=null?T:!1}},i=(0,eo.useRef)("chat"in r?r.chat:new Ab(n));("chat"in r&&r.chat!==i.current||"id"in r&&i.current.id!==r.id)&&(i.current="chat"in r?r.chat:new Ab(n));let s=(0,eo.useCallback)(h=>i.current["~registerMessagesCallback"](h,e),[e,i.current.id]),c=(0,eo.useSyncExternalStore)(s,()=>i.current.messages,()=>i.current.messages),u=(0,eo.useSyncExternalStore)(i.current["~registerStatusCallback"],()=>i.current.status,()=>i.current.status),p=(0,eo.useSyncExternalStore)(i.current["~registerErrorCallback"],()=>i.current.error,()=>i.current.error),m=(0,eo.useCallback)(h=>{typeof h=="function"&&(h=h(i.current.messages)),i.current.messages=h},[i]);return(0,eo.useEffect)(()=>{t&&i.current.resumeStream()},[t,i]),{id:i.current.id,messages:c,setMessages:m,sendMessage:i.current.sendMessage,regenerate:i.current.regenerate,clearError:i.current.clearError,stop:i.current.stop,error:p,resumeStream:i.current.resumeStream,status:u,addToolResult:i.current.addToolOutput,addToolOutput:i.current.addToolOutput,addToolApprovalResponse:i.current.addToolApprovalResponse}}var qi=Z(xe());function Jm(e){if(!yu(e))throw new Error("Parameter was not an error")}function yu(e){return!!e&&typeof e=="object"&&eme(e)==="[object Error]"||e instanceof Error}function eme(e){return Object.prototype.toString.call(e)}var tme="Layerr",rme=tme;function xT(){return rme}function AV(e){let t,r="";if(e.length===0)t={};else if(yu(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 Gi=class e extends Error{constructor(t,r){let o=[...arguments],{options:n,shortMessage:i}=AV(o),a=i;if(n.cause&&(a=`${a}: ${n.cause.message}`),super(a),this.message=a,n.name&&typeof n.name=="string"?this.name=n.name:this.name=xT(),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 Jm(t),t._cause&&yu(t._cause)?t._cause:null}static fullStack(t){Jm(t);let r=e.cause(t);return r?`${t.stack} 530caused by: ${e.fullStack(r)}`:t.stack??""}static info(t){Jm(t);let r={},o=e.cause(t);return o&&Object.assign(r,e.info(o)),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 RV="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Xm=32,MV=0xffffffffffff,nme=10,ome=16,Km=Object.freeze({source:"ulid"});function ime(e){let t=e||ame(),r=t&&(t.crypto||t.msCrypto)||null;if(typeof r?.getRandomValues=="function")return()=>{let o=new Uint8Array(1);return r.getRandomValues(o),o[0]/255};if(typeof r?.randomBytes=="function")return()=>r.randomBytes(1).readUInt8()/255;throw new Gi({info:{code:"PRNG_DETECT",...Km}},"Failed to find a reliable PRNG")}function ame(){return cme()?self:typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:null}function sme(e,t){let r="";for(;e>0;e--)r=ume(t)+r;return r}function lme(e,t){if(isNaN(e))throw new Gi({info:{code:"ENC_TIME_NAN",...Km}},`Time must be a number: ${e}`);if(e>MV)throw new Gi({info:{code:"ENC_TIME_SIZE_EXCEED",...Km}},`Cannot encode a time larger than ${MV}: ${e}`);if(e<0)throw new Gi({info:{code:"ENC_TIME_NEG",...Km}},`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Gi({info:{code:"ENC_TIME_TYPE",...Km}},`Time must be an integer: ${e}`);let r,o="";for(let n=t;n>0;n--)r=e%Xm,o=RV.charAt(r)+o,e=(e-r)/Xm;return o}function cme(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function ume(e){let t=Math.floor(e()*Xm);return t===Xm&&(t=Xm-1),RV.charAt(t)}function Rb(e,t){let r=t||ime(),o=isNaN(e)?Date.now():e;
530return lme(o,nme)+sme(ome,r)}function dme(e){return e==null||e.trim().length===0}async function wT(e,t){if(dme(e))throw new Error("Agent ID cannot be empty");let o=`${t?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations`,n=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"}}),i=n.headers.get("content-type")||"",a=await n.text().catch(()=>"");if(!n.ok)throw new Error(`Failed to create conversation: ${n.status} ${a||"Unknown error"}`);if(!i.includes("application/json"))throw new Error(`Invalid response format: expected JSON, got ${i}. Response: ${a.substring(0,100)}`);try{return JSON.parse(a)}catch(s){throw new Error(`Failed to parse JSON response: ${s instanceof Error?s.message:"Unknown error"}. Response: ${a.substring(0,200)}`)}}function pme(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 i=n[n.length-1];if(i!=null&&yo(i)&&(i.state==="output-available"||i.state==="output-error"))return{history:e.slice(0,t),messages:[r]}}}return{history:e.slice(0,t),messages:[r]}}var mme=6;function _T(e,t,r){let n=`${r?.baseUrl??""}/api/taskade/agents/${encodeURIComponent(e)}/public-conversations/${encodeURIComponent(t)}/chat`,i=new Ab({messages:[],transport:new h3({api:n,prepareSendMessagesRequest:a=>{let{history:s,messages:c}=pme(a.messages),u=Math.max(0,mme-c.length),p=u===0?[]:s.slice(-u);return{body:{messages:c,history:p}}}}),id:t,generateId:Rb,sendAutomaticallyWhen:a=>!(!(Rj(a)||Mj(a))||i.error!=null)});return i}var Ot=Z(se()),fme={1:"bg-chart-1",2:"bg-chart-2",3:"bg-chart-3",4:"bg-chart-4",5:"bg-chart-5"};function kT({agentId:e,publicAgentId:t,title:r="Assistant",accent:o,suggestions:n,placeholder:i,defaultOpen:a=!1,className:s}){let[c,u]=(0,qi.useState)(a),[p,m]=(0,qi.useState)(null),[h,g]=(0,qi.useState)(!1),[b,T]=(0,qi.useState)(!1),I=e!=null&&e!=="",P=t!=null&&t!==""?`https://www.taskade.com/a/${encodeURIComponent(t)}`:null,C=(0,qi.useCallback)(async()=>{if(!(!I||p!=null||b)){T(!0);try{let{conversationId:A}=await wT(e);m(_T(e,A)),g(!1)}catch{g(!0)}finally{T(!1)}}},[I,p,b,e]);if((0,qi.useEffect)(()=>{c&&I&&p==null&&!h&&!b&&C()},[c,I,p,h,b,C]),!I&&P==null)return null;let k=()=>{u(!0),C()};return(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)(Xx,{children:c?(0,Ot.jsxs)(Ot.Fragment,{children:[(0,Ot.jsx)("div",{className:"bg-foreground
530/20 fixed inset-0 z-40 sm:hidden",onClick:()=>u(!1),"aria-hidden":!0}),(0,Ot.jsx)(aw.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},exit:{opacity:0,y:16},className:Te("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,Ot.jsxs)("div",{className:"bg-card text-card-foreground flex h-full flex-col overflow-hidden border shadow-lg sm:rounded-xl",children:[(0,Ot.jsxs)("div",{className:"flex items-center justify-between border-b px-4 py-3",children:[(0,Ot.jsx)("span",{className:"text-foreground text-sm font-semibold",children:r}),(0,Ot.jsx)(Lt,{variant:"ghost",size:"icon",onClick:()=>u(!1),"aria-label":"Close chat",children:(0,Ot.jsx)(hl,{className:"size-4","aria-hidden":!0})})]}),I&&p!=null?(0,Ot.jsx)(hme,{chat:p,title:r,suggestions:n,placeholder:i}):I&&h?(0,Ot.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 p-6 text-center",children:[(0,Ot.jsx)("p",{className:"text-muted-foreground text-sm",children:"The assistant is warming up - try again."}),(0,Ot.jsx)(Lt,{onClick:()=>{C()},disabled:b,children:"Try again"}),P!=null?(0,Ot.jsx)("a",{href:P,target:"_blank",rel:"noreferrer",className:"text-muted-foreground text-xs underline",children:"Open hosted chat"}):null]}):I?(0,Ot.jsx)("div",{className:"text-muted-foreground flex flex-1 items-center justify-center text-sm",children:"Connecting..."}):P!=null?(0,Ot.jsx)("iframe",{src:P,title:r,allow:"clipboard-read; clipboard-write",className:"h-full w-full flex-1 border-0"}):null]})})]}):null}),c?null:(0,Ot.jsx)(Lt,{onClick:k,"aria-label":`Open ${r}`,className:Te("fixed bottom-6 right-6 z-50 size-14 rounded-full shadow-lg",o!=null?fme[o]:"bg-primary text-primary-foreground"),children:(0,Ot.jsx)(F7,{className:"size-6","aria-hidden":!0})})]})}function hme({chat:e,title:t,suggestions:r,placeholder:o}){let{messages:n,status:i,stop:a,error:s,addToolApprovalResponse:c}=zV({chat:e,id:e.id});return(0,Ot.jsx)(vT,{messages:n,onSend:async m=>{try{await e.sendMessage({id:Rb(),role:"user",parts:[{type:"text",text:m}]})}catch{}},busy:i==="submitted"||i==="streaming",status:i,onStop:a,errorMessage:s!=null?"Something went wrong - please try again.":void 0,onApprove:(m,h)=>c({id:m,approved:h}),title:t,suggestions:r,placeholder:o,className:"rounded-none border-0"})}var Ym=Z(xe());var mUe=Z(xe());var NV=Z(se());var gUe=Z(xe());var gme=Z(se());var DV=Z(se());var ST=Z(se());var tBe=Z(xe());var ZUe=Z(xe());var vme=Z(se());var qUe=Z(xe());var yme=Z(se());var OV=Z(se());var it=Z(se()),bme=(0,wo.lazy)(()=>import("/chunks/Landing-OKCUPU5P.js")),xme=(0,wo.lazy)(()=>import("/chunks/Dashboard-GIW3NGI7.js")),wme=(0,wo.lazy)(()=>import("/chunks/Library-Z7H2DYFU.js")),_me=(0,wo.lazy)(()=>import("/chunks/Upload-NM6S2XAZ.js")),kme=(0,wo.lazy)(()=>import("/chunks/Quiz-KOSYPBYJ.js")),Sme=(0,wo.lazy)(()=>import("/chunks/Flashcards-CSX5KGUQ.js")),Ime=(0,wo.lazy)(()=>import("/chunks/Progress-TEYVGB5E.js")),Tme=(0,wo.lazy)(()=>import("/chunks/Premium-L2OEC24L.js"));function $me(){return(0,it.jsxs)("div",{className:"min-h-screen bg-background",children:[(0,it.jsx)(W$,{}),(0,it.jsxs)("div",{className:"md:pl-64",children:[(0,it.jsx)(o9,{}),(0,it.jsx)("main",{className:"p-4 sm:p-6 lg:p-8",children:(0,it.jsxs)(m1,{children:[(0,it.jsx)(no,{path:"/dashboard",element:(0,it.jsx)(ai,{name:"Dashboard",children:(0,it.jsx)(xme,{})})}),(0,it.jsx)(no,{path:"/library",element:(0,it.jsx)(ai,{name:"Library",children:(0,it.jsx)(wme,{})})}),(0,it.jsx)(no,{path:"/upload",element:(0,it.jsx)(ai,{name:"Upload",children:(0,it.jsx)(_me,{})})}),(0,it.jsx)(no,{path:"/quiz",element:(0,it.jsx)(ai,{name:"Quiz",children:(0,it.jsx)(kme,{})})}),(0,it.jsx)(no,{path:"/flashcards",element:(0,it.jsx)(ai,{name:"Flashcards",children:(0,it.jsx)(Sme,{})})}),(0,it.jsx)(no,{path:"/progress",element:(0,it.jsx)(ai,{name:"Progress",children:(0,it.jsx)(Ime,{})})}),(0,it.jsx)(no,{path:"/premium",element:(0,it.jsx)(ai,{name:"Premium",children:(0,it.jsx)(Tme,{})})}),(0,it.jsx)(no,{path:"*",element:(0,it.jsx)(E7,{to:"/dashboard",replace:!0})})]})})]}),(0,it.jsx)(kT,{agentId:G$,publicAgentId:q$,title:"StudyForge Tutor"})]})}function IT(){return(0,wo.useEffect)(()=>{document.title="StudyForge - AI-Powered Study Platform"},[]),(0,it.jsx)(z7,{children:(0,it.jsx)(N$,{children:(0,it.jsxs)(m1,{children:[(0,it.jsx)(no,{path:"/",element:(0,it.jsx)(ai,{name:"Landing",children:(0,it.jsx)(bme,{})})}),(0,it.jsx)(no,{path:"/*",element:(0,it.jsx)($me,{})})]})})})}var LV="taskade-theme-overrides";function Pme(e){let t=e.trim().split(/\s+/);if(t.length<3)return null;let r=parseFloat(t[0]),o=parseFloat(t[1]),n=parseFloat(t[2]);return isNaN(r)||isNaN(o)||isNaN(n)?null:{h:r,s:o,l:n}}function Cme(e,t){let r=Pme(t);if(r==null)return t;let{h:o,s:n,l:i}=r;if(e==="--radius")return t;let a,s=n;return["--background","--card","--popover"].includes(e)?a=Math.max(3,Math.min(8,100-i)):["--foreground","--card-foreground","--popover-foreground"].includes(e)?a=Math.min(95,Math.max(85,100-i)):e==="--primary"?a=i<=50?Math.min(98,100-i):Math.max(2,100-i):e==="--primary-foreground"?a=i>50?Math.max(2,100-i):Math.min(98,100-i):["--accent","--muted","--border","--input","--ring"].includes(e)?(a=Math.max(10,Math.min(20,100-i)),s=Math.min(n,50)):e==="--accent-foreground"||e==="--muted-foreground"?a=Math.min(98,Math.max(55,100-i)):e==="--secondary"||e==="--secondary-foreground"?a=i>50?Math.max(8,100-i):Math.min(98,100-i):e==="--destructive"?(a=Math.max(25,i*.65),s=Math.min(n,70)):e==="--destructive-foreground"?a=Math.min(98,Math.max(90,100-i)):a=100-i,`${o} ${s}% ${Math.round(a)}%`}function jV(e,t){let r=Object.entries(t).map(([o,n])=>` ${o}: ${n};`).join(` 531`);return`${e} { 532${r} 533}`}function UV(){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 o=new Set(e),n={},i={};e.clear();for(let[s,c]of Object.entries(r))c!==""&&(n[s]=c,i[s]=Cme(s,c),e.add(s));for(let s of o)document.documentElement.style.removeProperty(s);let a=document.getElementById(LV);Object.keys(n).length===0?a?.remove():(a==null&&(a=document.createElement("style"),a.id=LV,document.head.appendChild(a)),a.textContent=[jV(":root",n),jV(".dark",i)].join(` 534 535`)),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 o=getComputedStyle(document.documentElement),n={};for(let i of r){let a=o.getPropertyValue(i).trim();a&&(n[i]=a)}window.parent.postMessage({type:"TASKADE_THEME_CURRENT",data:{vars:n}},"*");return}}})}var Hi=Z(se());UV();var FV=document.getElementById("root");function Eme(){for(let e of FV.querySelectorAll("script:not([src])")){let t=e.textContent??"";if(t.includes("documentElement")&&t.includes("localStorage"))return!0}return!1}function zme(){try{let e=document.cookie.match(/(?:^|;\s*)director-preview-access-token=([^;
535]+)/),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("."),o=r.length===3?r[1]:null;if(o!=null){let n=JSON.parse(atob(o.replace(/-/g,"+").replace(/_/g,"/")));if(n!=null&&n.appId!=null)return`theme:${n.spaceId}:${n.appId}`}}}catch{}return"theme"}var Ame=zme();function Mme({children:e}){let[t,r]=(0,bu.useState)(!1);return(0,bu.useLayoutEffect)(()=>{Eme()||r(!0)},[]),t?(0,Hi.jsx)(A$,{attribute:"class",defaultTheme:"dark",enableSystem:!1,disableTransitionOnChange:!0,storageKey:Ame,children:e}):(0,Hi.jsx)(Hi.Fragment,{children:e})}(0,BV.createRoot)(FV).render((0,Hi.jsx)(bu.StrictMode,{children:(0,Hi.jsx)(V$,{children:(0,Hi.jsx)(Mme,{children:(0,Hi.jsx)(IT,{})})})})); 536/*! Bundled license information: 537 538leaflet/dist/leaflet-src.js: 539 (* @preserve 540 * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com 541 * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade 542 *) 543 544use-stick-to-bottom/dist/useStickToBottom.js: 545use-stick-to-bottom/dist/StickToBottom.js: 546 (*!--------------------------------------------------------------------------------------------- 547 * Copyright (c) StackBlitz. All rights reserved. 548 * Licensed under the MIT License. See License.txt in the project root for license information. 549 *--------------------------------------------------------------------------------------------*) 550*/
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.