Files
machartaa_admin_dist/dist/assets/index-bc4edd51.js
T

121 lines
453 KiB
JavaScript
Raw Normal View History

2026-08-15 17:53:12 +03:30
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function na(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const we={},Vn=[],ht=()=>{},Vh=()=>!1,Kh=/^on[^a-z]/,ei=e=>Kh.test(e),ra=e=>e.startsWith("onUpdate:"),Te=Object.assign,sa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Wh=Object.prototype.hasOwnProperty,fe=(e,t)=>Wh.call(e,t),G=Array.isArray,Kn=e=>rs(e)==="[object Map]",rr=e=>rs(e)==="[object Set]",ll=e=>rs(e)==="[object Date]",se=e=>typeof e=="function",Se=e=>typeof e=="string",Ur=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Pu=e=>ye(e)&&se(e.then)&&se(e.catch),Au=Object.prototype.toString,rs=e=>Au.call(e),zh=e=>rs(e).slice(8,-1),ku=e=>rs(e)==="[object Object]",ia=e=>Se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cs=na(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ti=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gh=/-(\w)/g,Ct=ti(e=>e.replace(Gh,(t,n)=>n?n.toUpperCase():"")),Jh=/\B([A-Z])/g,Pn=ti(e=>e.replace(Jh,"-$1").toLowerCase()),ni=ti(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ii=ti(e=>e?`on${ni(e)}`:""),Br=(e,t)=>!Object.is(e,t),Os=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ds=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Fs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yh=e=>{const t=Se(e)?Number(e):NaN;return isNaN(t)?e:t};let cl;const co=()=>cl||(cl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ri(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Se(r)?ep(r):ri(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(Se(e))return e;if(ye(e))return e}}const Qh=/;(?![^(]*\))/g,Xh=/:([^]+)/,Zh=/\/\*[^]*?\*\//g;function ep(e){const t={};return e.replace(Zh,"").split(Qh).forEach(n=>{if(n){const r=n.split(Xh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function si(e){let t="";if(Se(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=si(e[n]);r&&(t+=r+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function uC(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Se(t)&&(e.class=si(t)),n&&(e.style=ri(n)),e}const tp="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",np=na(tp);function Ru(e){return!!e||e===""}function rp(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=On(e[r],t[r]);return n}function On(e,t){if(e===t)return!0;let n=ll(e),r=ll(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ur(e),r=Ur(t),n||r)return e===t;if(n=G(e),r=G(t),n||r)return n&&r?rp(e,t):!1;if(n=ye(e),r=ye(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const o in e){const a=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(a&&!l||!a&&l||!On(e[o],t[o]))return!1}}return String(e)===String(t)}function oa(e,t){return e.findIndex(n=>On(n,t))}const fC=e=>Se(e)?e:e==null?"":G(e)||ye(e)&&(e.toString===Au||!se(e.toString))?JSON.stringify(e,ju,2):String(e),ju=(e,t)=>t&&t.__v_isRef?ju(e,t.value):Kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:rr(t)?{[`Set(${t.size})`]:[...t.values()]}:ye(t)&&!G(t)&&!ku(t)?String(t):t;let Ze;class Iu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.clean
2026-07-13 14:00:01 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zl(e,t){return Gg(e)||Jg(e,t)||Df(e,t)||Yg()}function Qg(e){if(Array.isArray(e))return Eo(e)}function Xg(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zg(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2026-08-08 16:18:13 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vs(e){return Qg(e)||Xg(e)||Df(e)||Zg()}var ev=function(t){return t!=null&&t!==""};const tv=ev;var nv=function(t){for(var n=Object.keys(t),r={},s={},i={},o=0,a=n.length;o<a;o++){var l=n[o];Hg(l)?(r[l[2].toLowerCase()+l.slice(3)]=t[l],s[l]=t[l]):i[l]=t[l]}return{onEvents:s,events:r,extraAttrs:i}},rv=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r={},s=/;(?![^(]*\))/g,i=/:(.+)/;return Dt(t)==="object"?t:(t.split(s).forEach(function(o){if(o){var a=o.split(i);if(a.length>1){var l=n?ja(a[0].trim()):a[0].trim();r[l]=a[1].trim()}}}),r)},RC=function(t,n){return t[n]!==void 0},Ps=function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=Array.isArray(t)?t:[t],s=[];return r.forEach(function(i){Array.isArray(i)?s.push.apply(s,Vs(e(i,n))):i&&i.type===Ie?s.push.apply(s,Vs(e(i.children,n))):i&&Ot(i)?n&&!Ff(i)?s.push(i):n||s.push(i):tv(i)&&s.push(i)}),s},jC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Ot(t))return t.type===Ie?n==="default"?Ps(t.children):[]:t.children&&t.children[n]?Ps(t.children[n](r)):[];var s=t.$slots[n]&&t.$slots[n](r);return Ps(s)},IC=function(t){for(var n,r=(t==null||(n=t.vnode)===null||n===void 0?void 0:n.el)||t&&(t.$el||t);r&&!r.tagName;)r=r.nextSibling;return r},$C=function(t){var n={};if(t.$&&t.$.vnode){var r=t.$.vnode.props||{};Object.keys(t.$props).forEach(function(a){var l=t.$props[a],c=Kg(a);(l!==void 0||c in r)&&(n[a]=l)})}else if(Ot(t)&&Dt(t.type)==="object"){var s=t.props||{},i={};Object.keys(s).forEach(function(a){i[ja(a)]=s[a]});var o=t.type.props||{};Object.keys(o).forEach(function(a){var l=zg(o,i,a,i[a]);(l!==void 0||a in i)&&(n[a]=l)})}return n},MC=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=void 0;if(t.$){var o=t[n];if(o!==void 0)return typeof o=="function"&&s?o(r):o;i=t.$slots[n],i=s&&i?i(r):i}else if(Ot(t)){var a=t.props&&t.props[n];if(a!==void 0&&t.props!==null)return typeof a=="function"&&s?a(r):a;t.type===Ie?i=t.children:t.children&&t.children[n]&&(i=t.children[n],i=s&&i?i(r):i)}return Array.isArray(i)&&(i=Ps(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function LC(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=te(te({},n),e.$attrs):n=te(te({},n),e.props),nv(n)[t?"onEvents":"events"]}function NC(e){var t=(Ot(e)?e.props:e.$attrs)||{},n=t.class||{},r={};return typeof n=="string"?n.split(" ").forEach(function(s){r[s.trim()]=!0}):Array.isArray(n)?ar(n).split(" ").forEach(function(s){r[s.trim()]=!0}):r=te(te({},r),n),r}function DC(e,t){var n=(Ot(e)?e.props:e.$attrs)||{},r=n.style||{};if(typeof r=="string")r=rv(r,t);else if(t&&r){var s={};return Object.keys(r).forEach(function(i){return s[ja(i)]=r[i]}),s}return r}function FC(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Ff(e){return e&&(e.type===tt||e.type===Ie&&e.children.length===0||e.type===or&&e.children.trim()==="")}function UC(e){return e&&e.type===or}function Ia(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[];return e.forEach(function(n){Array.isArray(n)?t.push.apply(t,Vs(n)):(n==null?void 0:n.type)===Ie?t.push.apply(t,Vs(Ia(n.children))):t.push(n)}),t.filter(function(n){return!Ff(n)})}function BC(e){if(e){var t=Ia(e);return t.length?t:void 0}else return e}function HC(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&Dt(e.type)!=="symbol"}function qC(e,t){var n,r,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";return(n=t[s])!==null&&n!==void 0?n:(r=e[s])===null||r===void 0?void 0:r.call(e)}var sv=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)
* `);return c.length=0,n===!1?(Fe(u),s):u}}return s}function nt(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(s){return s!==void 0||this.default?Xn(s)||An(this,s,!0)===!0?(this.default=Qn(s)?function(){return[].concat(s)}:xn(s)?function(){return Object.assign({},s)}:s,this):(Fe(this._vueTypes_name+' - invalid default value: "'+s+'"'),this):this}}}),r=n.validator;return Xn(r)&&(n.validator=$a(r,n)),n}function Tt(e,t){var n=nt(e,t);return Object.defineProperty(n,"validate",{value:function(r){return Xn(this.validator)&&Fe(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
`+JSON.stringify(this)),this.validator=$a(r,this),this}})}function sc(e,t,n){var r,s,i=(r=t,s={},Object.getOwnPropertyNames(r).forEach(function(f){s[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},s));if(i._vueTypes_name=e,!xn(n))return i;var o,a,l=n.validator,c=Gf(n,["validator"]);if(Xn(l)){var u=i.validator;u&&(u=(a=(o=u).__original)!==null&&a!==void 0?a:o),i.validator=$a(u?function(f){return u.call(this,f)&&l.call(this,f)}:l,i)}return Object.assign(i,c)}function vi(e){return e.replace(/^(?!\s*$)/gm," ")}var vv=function(){return Tt("any",{})},yv=function(){return Tt("function",{type:Function})},bv=function(){return Tt("boolean",{type:Boolean})},_v=function(){return Tt("string",{type:String})},wv=function(){return Tt("number",{type:Number})},Ev=function(){return Tt("array",{type:Array})},Sv=function(){return Tt("object",{type:Object})},Cv=function(){return nt("integer",{type:Number,validator:function(e){return gv(e)}})},Ov=function(){return nt("symbol",{validator:function(e){return typeof e=="symbol"}})};function Tv(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return nt(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Fe(this._vueTypes_name+" - "+t),r}})}function xv(e){if(!Qn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(r,s){if(s!=null){var i=s.constructor;r.indexOf(i)===-1&&r.push(i)}return r},[]);return nt("oneOf",{type:n.length>0?n:void 0,validator:function(r){var s=e.indexOf(r)!==-1;return s||Fe(t),s}})}function Pv(e){if(!Qn(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],r=0;r<e.length;r+=1){var s=e[r];if(Xf(s)){if(Ws(s)&&s._vueTypes_name==="oneOf"){n=n.concat(s.type);continue}if(Xn(s.validator)&&(t=!0),s.type!==!0&&s.type){n=n.concat(s.type);continue}}n.push(s)}return n=n.filter(function(i,o){return n.indexOf(i)===o}),nt("oneOfType",t?{type:n,validator:function(i){var o=[],a=e.some(function(l){var c=An(Ws(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,i,!0);return typeof c=="string"&&o.push(c),c===!0});return a||Fe("oneOfType - provided value does not match any of the "+o.length+` passed-in validators:
2026-07-13 14:00:01 +03:30
`+vi(o.join(`
`))),a}}:{type:n})}function Av(e){return nt("arrayOf",{type:Array,validator:function(t){var n,r=t.every(function(s){return(n=An(e,s,!0))===!0});return r||Fe(`arrayOf - value validation error:
`+vi(n)),r}})}function kv(e){return nt("instanceOf",{type:e})}function Rv(e){return nt("objectOf",{type:Object,validator:function(t){var n,r=Object.keys(t).every(function(s){return(n=An(e,t[s],!0))===!0});return r||Fe(`objectOf - value validation error:
`+vi(n)),r}})}function jv(e){var t=Object.keys(e),n=t.filter(function(s){var i;return!!(!((i=e[s])===null||i===void 0)&&i.required)}),r=nt("shape",{type:Object,validator:function(s){var i=this;if(!xn(s))return!1;var o=Object.keys(s);if(n.length>0&&n.some(function(l){return o.indexOf(l)===-1})){var a=n.filter(function(l){return o.indexOf(l)===-1});return Fe(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(t.indexOf(l)===-1)return i._vueTypes_isLoose===!0||(Fe('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var c=An(e[l],s[l],!0);return typeof c=="string"&&Fe('shape - "'+l+`" property validation error:
2026-08-08 16:18:13 +03:30
`+vi(c)),c===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var yt=function(){function e(){}return e.extend=function(t){var n=this;if(Qn(t))return t.forEach(function(f){return n.extend(f)}),this;var r=t.name,s=t.validate,i=s!==void 0&&s,o=t.getter,a=o!==void 0&&o,l=Gf(t,["name","validate","getter"]);if(Qr(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var c,u=l.type;return Ws(u)?(delete l.type,Object.defineProperty(this,r,a?{get:function(){return sc(r,u,l)}}:{value:function(){var f,d=sc(r,u,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(c=a?{get:function(){var f=Object.assign({},l);return i?Tt(r,f):nt(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=i?Tt(r,h):nt(r,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,c))},Wf(e,null,[{key:"any",get:function(){return vv()}},{key:"func",get:function(){return yv().def(this.defaults.func)}},{key:"bool",get:function(){return bv().def(this.defaults.bool)}},{key:"string",get:function(){return _v().def(this.defaults.string)}},{key:"number",get:function(){return wv().def(this.defaults.number)}},{key:"array",get:function(){return Ev().def(this.defaults.array)}},{key:"object",get:function(){return Sv().def(this.defaults.object)}},{key:"integer",get:function(){return Cv().def(this.defaults.integer)}},{key:"symbol",get:function(){return Ov()}}]),e}();function Zf(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(n){function r(){return n.apply(this,arguments)||this}return zf(r,n),Wf(r,null,[{key:"sensibleDefaults",get:function(){return As({},this.defaults)},set:function(s){this.defaults=s!==!1?As({},s!==!0?s:e):{}}}]),r}(yt)).defaults=As({},e),t}yt.defaults={},yt.custom=Tv,yt.oneOf=xv,yt.instanceOf=kv,yt.oneOfType=Pv,yt.arrayOf=Av,yt.objectOf=Rv,yt.shape=jv,yt.utils={validate:function(e,t){return An(t,e,!0)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?Tt(e,t):nt(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return zf(t,e),t})(Zf());var ed=Zf({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});ed.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function WC(e){return e.default=void 0,e}const ic=ed;var Iv=["image","description","imageStyle","class"],td=M(dv,null,null),nd=M(hv,null,null),lr=function(t,n){var r,s=n.slots,i=s===void 0?{}:s,o=n.attrs,a=yi("empty",t),l=a.direction,c=a.prefixCls,u=c.value,f=te(te({},t),o),d=f.image,h=d===void 0?td:d,p=f.description,v=p===void 0?((r=i.description)===null||r===void 0?void 0:r.call(i))||void 0:p,b=f.imageStyle,w=f.class,y=w===void 0?"":w,E=Bf(f,Iv);return M(qf,{componentName:"Empty",children:function(N){var D,U=typeof v<"u"?v:N.description,k=typeof U=="string"?U:"empty",I=null;return typeof h=="string"?I=M("img",{alt:k,src:h},null):I=h,M("div",te({class:ar(u,y,(D={},Ft(D,"".concat(u,"-normal"),h===nd),Ft(D,"".concat(u,"-rtl"),l.value==="rtl"),D))},E),[M("div",{class:"".concat(u,"-image"),style:b},[I]),U&&M("p",{class:"".concat(u,"-description")},[U]),i.default&&M("div",{class:"".concat(u,"-footer")},[Ia(i.default())])])}},null)};lr.displayName="AEmpty";lr.PRESENTED_IMAGE_DEFAULT=td;lr.PRESENTED_IMAGE_SIMPLE=nd;lr.inheritAttrs=!1;lr.props={prefixCls:String,image:ic.any,description:ic.any,imageStyle:{type:Object,default:void 0}};const vr=Uf(lr);var $v=function(t){var n=yi("empty",t),r=n.prefixCls,s=function(o){switch(o){case"Table":case"List":return M(vr,{image:vr.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return M(vr,{image:vr.PRESENTED_IMAGE_SIMPLE,class
2026-07-13 14:00:01 +03:30
.anticon {
display: inline-block;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,bc=!1,dy=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fy;li(function(){bc||(typeof window<"u"&&window.document&&window.document.documentElement&&cy(t,{prepend:!0}),bc=!0)})},hy=["icon","primaryColor","secondaryColor"];function py(e,t){if(e==null)return{};var n=my(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function my(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Rs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){gy(e,s,n[s])})}return e}function gy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jr={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vy(e){var t=e.primaryColor,n=e.secondaryColor;jr.primaryColor=t,jr.secondaryColor=n||ud(t),jr.calculated=!!n}function yy(){return Rs({},jr)}var cr=function(t,n){var r=Rs({},t,n.attrs),s=r.icon,i=r.primaryColor,o=r.secondaryColor,a=py(r,hy),l=jr;if(i&&(l={primaryColor:i,secondaryColor:o||ud(i)}),dy(),yc(s),!yc(s))return null;var c=s;return c&&typeof c.icon=="function"&&(c=Rs({},c,{icon:c.icon(l.primaryColor,l.secondaryColor)})),Po(c.icon,"svg-".concat(c.name),Rs({},a,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};cr.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};cr.inheritAttrs=!1;cr.displayName="IconBase";cr.getTwoToneColors=yy;cr.setTwoToneColors=vy;const Ma=cr;function by(e,t){return Sy(e)||Ey(e,t)||wy(e,t)||_y()}function _y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wy(e,t){if(e){if(typeof e=="string")return _c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _c(e,t)}}function _c(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ey(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Sy(e){if(Array.isArray(e))return e}function dd(e){var t=fd(e),n=by(t,2),r=n[0],s=n[1];return Ma.setTwoToneColors({primaryColor:r,secondaryColor:s})}function Cy(){var e=Ma.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Oy=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ty(e,t){return ky(e)||Ay(e,t)||Py(e,t)||xy()}function xy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2026-08-08 16:18:13 +03:30
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Py(e,t){if(e){if(typeof e=="string")return wc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wc(e,t)}}function wc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],s=!0,i=!1,o,a;try{for(n=n.call(e);!(s=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));s=!0);}catch(l){i=!0,a=l}finally{try{!s&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function ky(e){if(Array.isArray(e))return e}function Ec(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Ao(e,s,n[s])})}return e}function Ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ry(e,t){if(e==null)return{};var n=jy(e,t),r,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)r=i[s],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jy(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}dd("#1890ff");var ur=function(t,n){var r,s=Ec({},t,n.attrs),i=s.class,o=s.icon,a=s.spin,l=s.rotate,c=s.tabindex,u=s.twoToneColor,f=s.onClick,d=Ry(s,Oy),h=(r={anticon:!0},Ao(r,"anticon-".concat(o.name),!!o.name),Ao(r,i,i),r),p=a===""||a||o.name==="loading"?"anticon-spin":"",v=c;v===void 0&&f&&(v=-1,d.tabindex=v);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,w=fd(u),y=Ty(w,2),E=y[0],C=y[1];return M("span",Ec({role:"img","aria-label":o.name},d,{onClick:f,class:h}),[M(Ma,{class:p,icon:o,primaryColor:E,secondaryColor:C,style:b},null)])};ur.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};ur.displayName="AntdIcon";ur.inheritAttrs=!1;ur.getTwoToneColor=Cy;ur.setTwoToneColor=dd;const xt=ur;function Sc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Iy(e,s,n[s])})}return e}function Iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var La=function(t,n){var r=Sc({},t,n.attrs);return M(xt,Sc({},r,{icon:Vv}),null)};La.displayName="LoadingOutlined";La.inheritAttrs=!1;const $y=La;var My={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Ly=My;function Cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable}))),r.forEach(function(s){Ny(e,s,n[s])})}return e}function Ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Na=function(t,n){var r=Cc({},t,n.attrs);return M(xt,Cc({},r,{icon:Ly}),null)};Na.displayName="ExclamationCircleFilled";Na.inheritAttrs=!1;const Dy=Na;var Fy={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusa
2026-07-13 14:00:01 +03:30
:root {
`.concat(l.join(`
`),`
}
2026-08-08 16:18:13 +03:30
`),"".concat(Bb,"-dynamic-theme")):Ub(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}var jd=Symbol("GlobalFormContextKey"),qb=function(t){Sn(jd,t)},XC=function(){return Ne(jd,{validateMessages:ie(function(){})})},Vb=function(){return{getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:{type:Object,default:void 0},input:{type:Object},autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:{type:Object,default:void 0},pageHeader:{type:Object},componentSize:{type:String},direction:{type:String},space:{type:Object},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:{type:Object,default:void 0},notUpdateGlobalConfig:Boolean}},Kb="ant";function zn(){return et.prefixCls||Kb}var Io=We({}),Id=We({}),et=We({});fi(function(){Tn(et,Io,Id),et.prefixCls=zn(),et.getPrefixCls=function(e,t){return t||(e?"".concat(et.prefixCls,"-").concat(e):et.prefixCls)},et.getRootPrefixCls=function(e,t){return e||(et.prefixCls?et.prefixCls:t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):zn())}});var zi,Wb=function(t){zi&&zi(),zi=fi(function(){Tn(Id,We(t)),Tn(et,We(t))}),t.theme&&Hb(zn(),t.theme)},zb=function(){return{getPrefixCls:function(n,r){return r||(n?"".concat(zn(),"-").concat(n):zn())},getRootPrefixCls:function(n,r){return n||(et.prefixCls?et.prefixCls:r&&r.includes("-")?r.replace(/^(.*)-[^-]*$/,"$1"):zn())}}},Ir=Ut({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:Vb(),setup:function(t,n){var r=n.slots,s=function(f,d){var h=t.prefixCls,p=h===void 0?"ant":h;return d||(f?"".concat(p,"-").concat(f):p)},i=function(f){var d=t.renderEmpty||r.renderEmpty||rd;return d(f)},o=function(f,d){var h=t.prefixCls;if(d)return d;var p=h||s("");return f?"".concat(p,"-").concat(f):p},a=We(te(te({},t),{},{getPrefixCls:o,renderEmpty:i}));Object.keys(t).forEach(function(u){Mt(function(){return t[u]},function(){a[u]=t[u]})}),t.notUpdateGlobalConfig||(Tn(Io,a),Mt(a,function(){Tn(Io,a)}));var l=ie(function(){var u={};if(t.locale){var f,d;u=((f=t.locale.Form)===null||f===void 0?void 0:f.defaultValidateMessages)||((d=Ks.Form)===null||d===void 0?void 0:d.defaultValidateMessages)||{}}return t.form&&t.form.validateMessages&&(u=te(te({},u),t.form.validateMessages)),u});qb({validateMessages:l}),Sn("configProvider",a);var c=function(f){var d;return M(Dv,{locale:t.locale||f,ANT_MARK__:So},{default:function(){return[(d=r.default)===null||d===void 0?void 0:d.call(r)]}})};return fi(function(){t.direction&&(js.config({rtl:t.direction==="rtl"}),Lb.config({rtl:t.direction==="rtl"}))}),function(){return M(qf,{children:function(f,d,h){return c(h)}},null)}}}),Gb=We({getPrefixCls:function(t,n){return n||(t?"ant-".concat(t):"ant")},renderEmpty:rd,direction:"ltr"});Ir.config=Wb;Ir.install=function(e){e.component(Ir.name,Ir)};const $d=Ir,yi=function(e,t){var n=Ne("configProvider",Gb),r=ie(function(){return n.getPrefixCls(e,t.prefixCls)}),s=ie(function(){var y;return(y=t.direction)!==null&&y!==void 0?y:n.direction}),i=ie(function(){return n.getPrefixCls()}),o=ie(function(){return n.autoInsertSpaceInButton}),a=ie(function(){return n.renderEmpty}),l=ie(function(){return n.space}),c=ie(function(){return n.pageHeader}),u=ie(function(){return n.form}),f=ie(function(){return t.getTargetContainer||n.getTargetContainer}),d=ie(function(){return t.getPopupContainer||n.getPopupContainer}),h=ie(function(){var y;return(y=t.dropdownMatchSelectWidth)!==null&&y!==void 0?y:n.dropdownMatchSelectWidth}),p=ie(function(){return(t.virtual===void 0?n.virtual!==!1:t.virtual!==!1)&&h.value!==!1}),v=ie(function(){return t.size||n.componentSize}),b=ie(function(){var y;return t.autocomplete||((y=n.input)===null||y===void 0?void 0:y.autocomplete)}),w=ie(function(){return n.csp});return{configProvider:n,prefixCls:r,direction:s,size:v,getTargetContainer:f,getPopupContainer:d,space:l,pageHeader:c,form:u,autoInsertSpaceInButton:o,renderEmpty:a,virtual:p,dropdownMatchSelectWidth:h,rootPrefixC
2026-07-13 14:00:01 +03:30
* vue-router v4.2.2
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-08-15 17:53:12 +03:30
*/const Un=typeof window<"u";function n_(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ge=Object.assign;function Gi(e,t){const n={};for(const r in t){const s=t[r];n[r]=pt(s)?s.map(e):e(s)}return n}const $r=()=>{},pt=Array.isArray,r_=/\/$/,s_=e=>e.replace(r_,"");function Ji(e,t,n="/"){let r,s={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),o=t.slice(a,t.length)),r=l_(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:s,hash:o}}function i_(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Mc(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function o_(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Zn(t.matched[r],n.matched[s])&&Ld(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Zn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ld(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!a_(e[n],t[n]))return!1;return!0}function a_(e,t){return pt(e)?Lc(e,t):pt(t)?Lc(t,e):e===t}function Lc(e,t){return pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function l_(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),s=r[r.length-1];(s===".."||s===".")&&r.push("");let i=n.length-1,o,a;for(o=0;o<r.length;o++)if(a=r[o],a!==".")if(a==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var es;(function(e){e.pop="pop",e.push="push"})(es||(es={}));var Mr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Mr||(Mr={}));function c_(e){if(!e)if(Un){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),s_(e)}const u_=/^[^#]+#/;function f_(e,t){return e.replace(u_,"#")+t}function d_(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const bi=()=>({left:window.pageXOffset,top:window.pageYOffset});function h_(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=d_(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nc(e,t){return(history.state?history.state.position-t:-1)+e}const $o=new Map;function p_(e,t){$o.set(e,t)}function m_(e){const t=$o.get(e);return $o.delete(e),t}let g_=()=>location.protocol+"//"+location.host;function Nd(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let a=s.includes(e.slice(i))?e.slice(i).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Mc(l,"")}return Mc(n,e)+r+s}function v_(e,t,n,r){let s=[],i=[],o=null;const a=({state:d})=>{const h=Nd(e,location),p=n.value,v=t.value;let b=0;if(d){if(n.value=h,t.value=d,o&&o===p){o=null;return}b=v?d.position-v.position:0}else r(h);s.forEach(w=>{w(n.value,p,{delta:b,type:es.pop,direction:b?b>0?Mr.forward:Mr.back:Mr.unknown})})};function l(){o=n.value}function c(d){s.push(d);const h=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return i.push(h),h}function u(){const{history:d}=window;d.state&&d.replaceState(ge({},d.state,{scroll:bi()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:f}}function Dc(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?bi():null}}function y_(e){const{history:t,location:n}=window,r={value:Nd(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replace
2026-07-13 14:00:01 +03:30
* pinia v2.1.3
* (c) 2023 Eduardo San Martin Morote
* @license MIT
2026-08-15 17:53:12 +03:30
*/let zd;const wi=e=>zd=e,Gd=Symbol();function No(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Lr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Lr||(Lr={}));function _0(){const e=$u(!0),t=e.run(()=>mt({}));let n=[],r=[];const s=oi({install(i){wi(s),s._a=i,i.provide(Gd,s),i.config.globalProperties.$pinia=s,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!c0?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Jd=()=>{};function Xc(e,t,n,r=Jd){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&aa()&&Mu(s),s}function In(e,...t){e.slice().forEach(n=>{n(...t)})}const w0=e=>e();function Do(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];No(s)&&No(r)&&e.hasOwnProperty(n)&&!Ce(r)&&!tn(r)?e[n]=Do(s,r):e[n]=r}return e}const E0=Symbol();function S0(e){return!No(e)||!e.hasOwnProperty(E0)}const{assign:Gt}=Object;function C0(e){return!!(Ce(e)&&e.effect)}function O0(e,t,n,r){const{state:s,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=s?s():{});const u=Dp(n.state.value[e]);return Gt(u,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=oi(ie(()=>{wi(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=Yd(e,c,t,n,r,!0),l}function Yd(e,t,n={},r,s,i){let o;const a=Gt({actions:{}},n),l={deep:!0};let c,u,f=[],d=[],h;const p=r.state.value[e];!i&&!p&&(r.state.value[e]={}),mt({});let v;function b(k){let I;c=u=!1,typeof k=="function"?(k(r.state.value[e]),I={type:Lr.patchFunction,storeId:e,events:h}):(Do(r.state.value[e],k),I={type:Lr.patchObject,payload:k,storeId:e,events:h});const J=v=Symbol();li().then(()=>{v===J&&(c=!0)}),u=!0,In(f,I,r.state.value[e])}const w=i?function(){const{state:I}=n,J=I?I():{};this.$patch(oe=>{Gt(oe,J)})}:Jd;function y(){o.stop(),f=[],d=[],r._s.delete(e)}function E(k,I){return function(){wi(r);const J=Array.from(arguments),oe=[],q=[];function ae(S){oe.push(S)}function xe(S){q.push(S)}In(d,{args:J,name:k,store:N,after:ae,onError:xe});let $;try{$=I.apply(this&&this.$id===e?this:N,J)}catch(S){throw In(q,S),S}return $ instanceof Promise?$.then(S=>(In(oe,S),S)).catch(S=>(In(q,S),Promise.reject(S))):(In(oe,$),$)}}const C={_p:r,$id:e,$onAction:Xc.bind(null,d),$patch:b,$reset:w,$subscribe(k,I={}){const J=Xc(f,k,I.detached,()=>oe()),oe=o.run(()=>Mt(()=>r.state.value[e],q=>{(I.flush==="sync"?u:c)&&k({storeId:e,type:Lr.direct,events:h},q)},Gt({},l,I)));return J},$dispose:y},N=We(C);r._s.set(e,N);const D=r._a&&r._a.runWithContext||w0,U=r._e.run(()=>(o=$u(),D(()=>o.run(t))));for(const k in U){const I=U[k];if(Ce(I)&&!C0(I)||tn(I))i||(p&&S0(I)&&(Ce(I)?I.value=p[k]:Do(I,p[k])),r.state.value[e][k]=I);else if(typeof I=="function"){const J=E(k,I);U[k]=J,a.actions[k]=I}}return Gt(N,U),Gt(ue(N),U),Object.defineProperty(N,"$state",{get:()=>r.state.value[e],set:k=>{b(I=>{Gt(I,k)})}}),r._p.forEach(k=>{Gt(N,o.run(()=>k({store:N,app:r._a,pinia:r,options:a})))}),p&&i&&n.hydrate&&n.hydrate(N.$state,p),c=!0,u=!0,N}function Qd(e,t,n){let r,s;const i=typeof t=="function";typeof e=="string"?(r=e,s=i?n:t):(s=e,r=e.id);function o(a,l){const c=Cm();return a=a||(c?Ne(Gd,null):null),a&&wi(a),a=zd,a._s.has(r)||(i?Yd(r,t,s,a):O0(r,s,a)),a._s.get(r)}return o.$id=r,o}const Xd=Qd("router",()=>({routes:mt([])}));function T0(e){const t=Xd(),n=r0({history:b_("/"),routes:t.routes,scrollBehavior:(r,s,i)=>{if(r.hash){if(r.hash==="#")return{top:0,behavior:"smooth"};const o=document.querySelector(r.hash);if(o){const a=parseFloat(getComputedStyle(o).scrollMarginTop);return o instanceof HTMLElement&&o.focus(),{el:r.hash,behavior:"smooth",top:a}}return{el:r.hash,behavior:"smooth"}}if(i)return i;if(r.path!==s.path)return{top:0}}});return e.use(n),n}function x0(e){return{router:T0(e)}}function Fo(){return localStorage.getItem("tamin_token")}async function tO(e){localStorage.setItem("tamin_token",e)}function
2026-07-13 14:00:01 +03:30
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!n||t[n]&&lE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},iu=Symbol("internals");function wr(e){return e&&String(e).trim().toLowerCase()}function Ms(e){return e===!1||e==null?e:T.isArray(e)?e.map(Ms):String(e)}function uE(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const fE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xi(e,t,n,r,s){if(T.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!T.isString(t)){if(T.isString(r))return t.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(t)}}function dE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function hE(e,t){const n=T.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,i,o){return this[r].call(this,t,s,i,o)},configurable:!0})})}class xi{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function i(a,l,c){const u=wr(l);if(!u)throw new Error("header name must be a non-empty string");const f=T.findKey(s,u);(!f||s[f]===void 0||c===!0||c===void 0&&s[f]!==!1)&&(s[f||l]=Ms(a))}const o=(a,l)=>T.forEach(a,(c,u)=>i(c,u,l));return T.isPlainObject(t)||t instanceof this.constructor?o(t,n):T.isString(t)&&(t=t.trim())&&!fE(t)?o(cE(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=wr(t),t){const r=T.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return uE(s);if(T.isFunction(n))return n.call(this,s,r);if(T.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wr(t),t){const r=T.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Xi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function i(o){if(o=wr(o),o){const a=T.findKey(r,o);a&&(!n||Xi(r,r[a],a,n))&&(delete r[a],s=!0)}}return T.isArray(t)?t.forEach(i):i(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!t||Xi(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const n=this,r={};return T.forEach(this,(s,i)=>{const o=T.findKey(r,i);if(o){n[o]=Ms(s),delete n[i];return}const a=t?dE(i):String(i).trim();a!==i&&delete n[i],n[a]=Ms(s),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return T.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
2026-08-15 17:53:12 +03:30
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[iu]=this[iu]={accessors:{}}).accessors,s=this.prototype;function i(o){const a=wr(o);r[a]||(hE(s,o),r[a]=!0)}return T.isArray(t)?t.forEach(i):i(t),this}}xi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.freezeMethods(xi.prototype);T.freezeMethods(xi);const Lt=xi;function Zi(e,t){const n=this||Qa,r=t||n,s=Lt.from(r.headers);let i=r.data;return T.forEach(e,function(a){i=a.call(n,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function ph(e){return!!(e&&e.__CANCEL__)}function os(e,t,n){de.call(this,e??"canceled",de.ERR_CANCELED,t,n),this.name="CanceledError"}T.inherits(os,de,{__CANCEL__:!0});function pE(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new de("Request failed with status code "+n.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const mE=St.isStandardBrowserEnv?function(){return{write:function(n,r,s,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(r)),T.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),T.isString(i)&&l.push("path="+i),T.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function gE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function vE(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function mh(e,t){return e&&!gE(t)?vE(e,t):t}const yE=St.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(o){const a=T.isString(o)?s(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function bE(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function _E(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];o||(o=c),n[s]=l,r[s]=c;let f=i,d=0;for(;f!==s;)d+=n[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const h=u&&c-u;return h?Math.round(d*1e3/h):void 0}}function ou(e,t){let n=0;const r=_E(50,250);return s=>{const i=s.loaded,o=s.lengthComputable?s.total:void 0,a=i-n,l=r(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:s};u[t?"download":"upload"]=!0,e(u)}}const wE=typeof XMLHttpRequest<"u",EE=wE&&function(e){return new Promise(function(n,r){let s=e.data;const i=Lt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}T.isFormData(s)&&(St.isStandardBrowserEnv||St.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const h=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const u=mh(e.baseURL,e.url);c.open(e.method.toUpperCase(),fh(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const h=Lt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};pE
2026-07-13 14:00:01 +03:30
import ws from "ws"
new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=`
2026-08-08 16:18:13 +03:30
Suggested solution: ${t.workaround}`),new Error(n)}static createWebSocket(t,n){const r=this.getWebSocketConstructor();return new r(t,n)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const sS="2.15.5",iS=`realtime-js/${sS}`,oS="1.0.0",Wo=1e4,aS=1e3,lS=100;var Nr;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Nr||(Nr={}));var ke;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ke||(ke={}));var ut;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(ut||(ut={}));var zo;(function(e){e.websocket="websocket"})(zo||(zo={}));var bn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(bn||(bn={}));class cS{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const a=r.decode(t.slice(o,o+s));o=o+s;const l=r.decode(t.slice(o,o+i));o=o+i;const c=JSON.parse(r.decode(t.slice(o,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class Ah{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var _e;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(_e||(_e={}));const hu=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((i,o)=>(i[o]=uS(o,e,t,s),i),{})},uS=(e,t,n,r)=>{const s=t.find(a=>a.name===e),i=s==null?void 0:s.type,o=n[e];return i&&!r.includes(i)?kh(i,o):Go(o)},kh=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return pS(t,n)}switch(e){case _e.bool:return fS(t);case _e.float4:case _e.float8:case _e.int2:case _e.int4:case _e.int8:case _e.numeric:case _e.oid:return dS(t);case _e.json:case _e.jsonb:return hS(t);case _e.timestamp:return mS(t);case _e.abstime:case _e.date:case _e.daterange:case _e.int4range:case _e.int8range:case _e.money:case _e.reltime:case _e.text:case _e.time:case _e.timestamptz:case _e.timetz:case _e.tsrange:case _e.tstzrange:return Go(t);default:return Go(t)}},Go=e=>e,fS=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},dS=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},hS=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},pS=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const o=e.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(a=>kh(t,a))}return e},mS=e=>typeof e=="string"?e.replace(" ","T"):e,Rh=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")+"/api/broadcast"};class to{constructor(t,n,r={},s=Wo){this.channel=t,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("ti
2026-07-13 14:00:01 +03:30
addEventListener("message", (e) => {
if (e.data.event === "start") {
setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
}
2026-08-15 17:53:12 +03:30
});`;class bS{constructor(t,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Wo,this.transport=null,this.heartbeatIntervalMs=ws.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=no,this.ref=0,this.reconnectTimer=null,this.logger=no,this.conn=null,this.sendBuffer=[],this.serializer=new cS,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>K(()=>Promise.resolve().then(()=>dr),void 0).then(({default:a})=>a(...o)).catch(a=>{throw new Error(`Failed to load @supabase/node-fetch: ${a.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${t}/${zo.websocket}`,this.httpEndpoint=Rh(t),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=rS.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const n=t.message;throw n.includes("Node.js")?new Error(`${n}
2026-07-13 14:00:01 +03:30
To use Realtime in Node.js, you need to provide a WebSocket implementation:
Option 1: Use Node.js 22+ which has native WebSocket support
Option 2: Install and provide the "ws" package:
npm install ws
import ws from "ws"
const client = new RealtimeClient(url, {
...options,
transport: ws
2026-08-15 17:53:12 +03:30
})`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:oS}))}disconnect(t,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},t?this.conn.close(t,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Nr.connecting:return bn.Connecting;case Nr.open:return bn.Open;case Nr.closing:return bn.Closing;default:return bn.Closed}}isConnected(){return this.connectionState()===bn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new nl(`realtime:${t}`,n,this);return this.channels.push(i),i}}push(t){const{topic:n,event:r,payload:s,ref:i}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(aS,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ws.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(c){this.log("error","error in heartbeat callback",c)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,a=o?`(${o})`:"",l=i.status||"";this.log("receive",`${l} ${r} ${s} ${a}`.trim(),i),this.channels.filter(c=>c._isMember(r)).forEach(c=>c._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(t){var n;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.on
\r=`.split(""),o1=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<bu.length;t+=1)e[bu[t].charCodeAt(0)]=-2;for(let t=0;t<Qs.length;t+=1)e[Qs[t].charCodeAt(0)]=t;return e})();function _u(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Qs[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(Qs[r]),t.queuedBits-=6}}function Nh(e,t,n){const r=o1[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function wu(e){const t=[],n=o=>{t.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{c1(o,r,n)};for(let o=0;o<e.length;o+=1)Nh(e.charCodeAt(o),s,i);return t.join("")}function a1(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function l1(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}a1(r,t)}}function c1(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function u1(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)Nh(e.charCodeAt(s),n,r);return new Uint8Array(t)}function f1(e){const t=[];return l1(e,n=>t.push(n)),new Uint8Array(t)}function d1(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>_u(s,n,r)),_u(null,n,r),t.join("")}function h1(e){return Math.round(Date.now()/1e3)+e}function p1(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const st=()=>typeof window<"u"&&typeof document<"u",dn={tested:!1,writable:!1},Dh=()=>{if(!st())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(dn.tested)return dn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),dn.tested=!0,dn.writable=!0}catch{dn.tested=!0,dn.writable=!1}return dn.writable};function m1(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const Fh=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>K(()=>Promise.resolve().then(()=>dr),void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},g1=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Hn=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},hn=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},Wt=async(e,t)=>{await e.removeItem(t)};class ji{constructor(){this.promise=new ji.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}ji.promiseConstructor=Promise;function oo(e){const t=e.split(".");if(t.length!==3)throw new ta("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!e1.test(t[r]))throw new ta("JWT not in base64url format");return{header:JSON.parse(wu(t[0])),payload:JSON.parse(wu(t[1])),signature:u1(t[2]),raw:{header:t[0],payload:t[1]}}}async function v1(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function y1(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await e(i);if(!t(i,null,o)
2026-07-13 14:00:01 +03:30
`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=Bh(e.address),p=u?`${u}://${r}`:r,v=e.statement?`${e.statement}
`:"",b=`${p} wants you to sign in with your Ethereum account:
${h}
${v}`;let w=`URI: ${f}
Version: ${d}
Chain ID: ${n}${o?`
Nonce: ${o}`:""}
Issued At: ${i.toISOString()}`;if(s&&(w+=`
Expiration Time: ${s.toISOString()}`),a&&(w+=`
Not Before: ${a.toISOString()}`),l&&(w+=`
Request ID: ${l}`),c){let y=`
Resources:`;for(const E of c){if(!E||typeof E!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${E}`);y+=`
- ${E}`}w+=y}return`${b}
2026-08-08 16:18:13 +03:30
${w}`}D1();const V1={url:QS,storageKey:XS,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:ZS,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Tu(e,t,n){return await n()}const Dn={};class ns{constructor(t){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ns.nextInstanceID,ns.nextInstanceID+=1,this.instanceID>0&&st()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},V1),t);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new N1({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=Fh(s.fetch),this.lock=s.lock||Tu,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:st()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=U1:this.lock=Tu,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:Dh()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Ou(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Ou(this.memoryStorage)),st()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(i){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",i)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async i=>{this._debug("received broadcast notification from other tab or client",i),await this._notifyAllSubscribers(i.data.event,i.data.session,!1)})}this.initialize()}get jwks(){var t,n;return(n=(t=Dn[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Dn[this.storageKey]=Object.assign(Object.assign({},Dn[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Dn[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Dn[this.storageKey]=Object.assign(Object.assign({},Dn[this.storageKey]),{cachedAt:t})}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${$h}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=m1(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),st()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),i1(i)){const l=(t=i.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{e
2026-08-15 17:53:12 +03:30
`);const D=await C.signMessage(new TextEncoder().encode(p),"utf8");if(!D||!(D instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=D}}try{const{data:b,error:w}=await le(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:p,signature:d1(v)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:bt});if(w)throw w;return!b||!b.session||!b.user?{data:{user:null,session:null},error:new Sr}:(b.session&&(await this._saveSession(b.session),await this._notifyAllSubscribers("SIGNED_IN",b.session)),{data:Object.assign({},b),error:w})}catch(b){if(re(b))return{data:{user:null,session:null},error:b};throw b}}async _exchangeCodeForSession(t){const n=await hn(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await le(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:bt});if(await Wt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new Sr}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(re(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=t,a=await le(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:bt}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Sr}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(re(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,s,i,o;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Mn(this.storage,this.storageKey));const{error:f}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await le(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(s=l==null?void 0:l.data)!==null&&s!==void 0?s:{},create_user:(i=l==null?void 0:l.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(o=l==null?void 0:l.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new Es("You must provide either an email or phone number.")}catch(a){if(re(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:a}=await le(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:bt});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,c=o.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(re(s