function e(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}const t=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function n(e){return!!e||""===e}function r(e){if(C(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=$(o)?s(o):r(o);if(i)for(const e in i)t[e]=i[e]}return t}return $(e)||I(e)?e:void 0}const i=/;(?![^(]*\))/g,a=/:(.+)/;function s(e){const t={};return e.split(i).forEach((e=>{if(e){const n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if($(e))t=e;else if(C(e))for(let n=0;n<e.length;n++){const r=l(e[n]);r&&(t+=r+" ")}else if(I(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const c=e("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot"),u=e("svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistanceLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view"),d=e=>$(e)?e:null==e?"":C(e)||I(e)&&(e.toString===A||!E(e.toString))?JSON.stringify(e,p,2):String(e),p=(e,t)=>t&&t.__v_isRef?p(e,t.value):O(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!I(t)||C(t)||R(t)?t:String(t),f=Object.freeze({}),h=Object.freeze([]),g=()=>{},v=()=>!1,y=/^on[^a-z]/,b=e=>y.test(e),_=e=>e.startsWith("onUpdate:"),w=Object.assign,x=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},S=Object.prototype.hasOwnProperty,k=(e,t)=>S.call(e,t),C=Array.isArray,O=e=>"[object Map]"===N(e),P=e=>"[object Set]"===N(e),E=e=>"function"==typeof e,$=e=>"string"==typeof e,T=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,j=e=>I(e)&&E(e.then)&&E(e.catch),A=Object.prototype.toString,N=e=>A.call(e),D=e=>N(e).slice(8,-1),R=e=>"[object Object]"===N(e),L=e=>$(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,M=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),F=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},z=/-(\w)/g,U=F((e=>e.replace(z,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,W=F((e=>e.replace(H,"-$1").toLowerCase())),V=F((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=F((e=>e?`on${V(e)}`:"")),K=(e,t)=>!Object.is(e,t),J=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},G=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Y=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let X;const Z=()=>X||(X="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let Q;class ee{constructor(e=!1){this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Q,!e&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}run(e){if(this.active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){Q=this}off(){Q=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this.active=!1}}}function te(e){return new ee(e)}const ne=e=>{const t=new Set(e);return t.w=0,t.n=0,t},re=e=>(e.w&se)>0,oe=e=>(e.n&se)>0,ie=new WeakMap;let ae=0,se=1;let le;const ce=Symbol("iterate"),ue=Symbol("Map key iterate");class de{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Q){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=le,t=fe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=le,le=this,fe=!0,se=1<<++ae,ae<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=se})(this):pe(this),this.fn()}finally{ae<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];re(o)&&!oe(o)?o.delete(e):t[n++]=o,o.w&=~se,o.n&=~se}t.length=n}})(this),se=1<<--ae,le=this.parent,fe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){le===this?this.deferStop=!0:this.active&&(pe(this),this.onStop&&this.onStop(),this.active=!1)}}function pe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let fe=!0;const he=[];function ge(){he.push(fe),fe=!1}function ve(){const e=he.pop();fe=void 0===e||e}function me(e,t,n){if(fe&&le){let r=ie.get(e);r||ie.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=ne());ye(o,{effect:le,target:e,type:t,key:n})}}function ye(e,t){let n=!1;ae<=30?oe(e)||(e.n|=se,n=!re(e)):n=!e.has(le),n&&(e.add(le),le.deps.push(e),le.onTrack&&le.onTrack(Object.assign({effect:le},t)))}function be(e,t,n,r,o,i){const a=ie.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&C(e))a.forEach(((e,t)=>{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(a.get(n)),t){case"add":C(e)?L(n)&&s.push(a.get("length")):(s.push(a.get(ce)),O(e)&&s.push(a.get(ue)));break;case"delete":C(e)||(s.push(a.get(ce)),O(e)&&s.push(a.get(ue)));break;case"set":O(e)&&s.push(a.get(ce))}const l={target:e,type:t,key:n,newValue:r,oldValue:o,oldTarget:i};if(1===s.length)s[0]&&_e(s[0],l);else{const e=[];for(const t of s)t&&e.push(...t);_e(ne(e),l)}}function _e(e,t){const n=C(e)?e:[...e];for(const r of n)r.computed&&we(r,t);for(const r of n)r.computed||we(r,t)}function we(e,t){(e!==le||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(w({effect:e},t)),e.scheduler?e.scheduler():e.run())}const xe=e("__proto__,__v_isRef,__isVue"),Se=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(T)),ke=Te(),Ce=Te(!1,!0),Oe=Te(!0),Pe=Te(!0,!0),Ee=$e();function $e(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=mt(this);for(let t=0,o=this.length;t<o;t++)me(n,"get",t+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(mt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ge();const n=mt(this)[t].apply(this,e);return ve(),n}})),e}function Te(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?lt:st:t?at:it).get(n))return n;const i=C(n);if(!e&&i&&k(Ee,r))return Reflect.get(Ee,r,o);const a=Reflect.get(n,r,o);return(T(r)?Se.has(r):xe(r))?a:(e||me(n,"get",r),t?a:St(a)?i&&L(r)?a:a.value:I(a)?e?ut(a):ct(a):a)}}function Ie(e=!1){return function(t,n,r,o){let i=t[n];if(ht(i)&&St(i)&&!St(r))return!1;if(!e&&(gt(r)||ht(r)||(i=mt(i),r=mt(r)),!C(t)&&St(i)&&!St(r)))return i.value=r,!0;const a=C(t)&&L(n)?Number(n)<t.length:k(t,n),s=Reflect.set(t,n,r,o);return t===mt(o)&&(a?K(r,i)&&be(t,"set",n,r,i):be(t,"add",n,r)),s}}const je={get:ke,set:Ie(),deleteProperty:function(e,t){const n=k(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&be(e,"delete",t,void 0,r),o},has:function(e,t){const n=Reflect.has(e,t);return T(t)&&Se.has(t)||me(e,"has",t),n},ownKeys:function(e){return me(e,"iterate",C(e)?"length":ce),Reflect.ownKeys(e)}},Ae={get:Oe,set:(e,t)=>(String(t),!0),deleteProperty:(e,t)=>(String(t),!0)},Ne=w({},je,{get:Ce,set:Ie(!0)}),De=w({},Ae,{get:Pe}),Re=e=>e,Le=e=>Reflect.getPrototypeOf(e);function Me(e,t,n=!1,r=!1){const o=mt(e=e.__v_raw),i=mt(t);n||(t!==i&&me(o,"get",t),me(o,"get",i));const{has:a}=Le(o),s=r?Re:n?_t:bt;return a.call(o,t)?s(e.get(t)):a.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Be(e,t=!1){const n=this.__v_raw,r=mt(n),o=mt(e);return t||(e!==o&&me(r,"has",e),me(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Fe(e,t=!1){return e=e.__v_raw,!t&&me(mt(e),"iterate",ce),Reflect.get(e,"size",e)}function ze(e){e=mt(e);const t=mt(this);return Le(t).has.call(t,e)||(t.add(e),be(t,"add",e,e)),this}function Ue(e,t){t=mt(t);const n=mt(this),{has:r,get:o}=Le(n);let i=r.call(n,e);i?ot(n,r,e):(e=mt(e),i=r.call(n,e));const a=o.call(n,e);return n.set(e,t),i?K(t,a)&&be(n,"set",e,t,a):be(n,"add",e,t),this}function He(e){const t=mt(this),{has:n,get:r}=Le(t);let o=n.call(t,e);o?ot(t,n,e):(e=mt(e),o=n.call(t,e));const i=r?r.call(t,e):void 0,a=t.delete(e);return o&&be(t,"delete",e,void 0,i),a}function We(){const e=mt(this),t=0!==e.size,n=O(e)?new Map(e):new Set(e),r=e.clear();return t&&be(e,"clear",void 0,void 0,n),r}function Ve(e,t){return function(n,r){const o=this,i=o.__v_raw,a=mt(i),s=t?Re:e?_t:bt;return!e&&me(a,"iterate",ce),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function qe(e,t,n){return function(...r){const o=this.__v_raw,i=mt(o),a=O(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=n?Re:t?_t:bt;return!t&&me(i,"iterate",l?ue:ce),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Ke(e){return function(...t){t[0]&&t[0];return"delete"!==e&&this}}function Je(){const e={get(e){return Me(this,e)},get size(){return Fe(this)},has:Be,add:ze,set:Ue,delete:He,clear:We,forEach:Ve(!1,!1)},t={get(e){return Me(this,e,!1,!0)},get size(){return Fe(this)},has:Be,add:ze,set:Ue,delete:He,clear:We,forEach:Ve(!1,!0)},n={get(e){return Me(this,e,!0)},get size(){return Fe(this,!0)},has(e){return Be.call(this,e,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Ve(!0,!1)},r={get(e){return Me(this,e,!0,!0)},get size(){return Fe(this,!0)},has(e){return Be.call(this,e,!0)},add:Ke("add"),set:Ke("set"),delete:Ke("delete"),clear:Ke("clear"),forEach:Ve(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=qe(o,!1,!1),n[o]=qe(o,!0,!1),t[o]=qe(o,!1,!0),r[o]=qe(o,!0,!0)})),[e,n,t,r]}const[Ge,Ye,Xe,Ze]=Je();function Qe(e,t){const n=t?e?Ze:Xe:e?Ye:Ge;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(k(n,r)&&r in t?n:t,r,o)}const et={get:Qe(!1,!1)},tt={get:Qe(!1,!0)},nt={get:Qe(!0,!1)},rt={get:Qe(!0,!0)};function ot(e,t,n){const r=mt(n);if(r!==n&&t.call(e,r)){D(e)}}const it=new WeakMap,at=new WeakMap,st=new WeakMap,lt=new WeakMap;function ct(e){return ht(e)?e:pt(e,!1,je,et,it)}function ut(e){return pt(e,!0,Ae,nt,st)}function dt(e){return pt(e,!0,De,rt,lt)}function pt(e,t,n,r,o){if(!I(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const a=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(D(s));var s;if(0===a)return e;const l=new Proxy(e,2===a?r:n);return o.set(e,l),l}function ft(e){return ht(e)?ft(e.__v_raw):!(!e||!e.__v_isReactive)}function ht(e){return!(!e||!e.__v_isReadonly)}function gt(e){return!(!e||!e.__v_isShallow)}function vt(e){return ft(e)||ht(e)}function mt(e){const t=e&&e.__v_raw;return t?mt(t):e}function yt(e){return G(e,"__v_skip",!0),e}const bt=e=>I(e)?ct(e):e,_t=e=>I(e)?ut(e):e;function wt(e){fe&&le&&ye((e=mt(e)).dep||(e.dep=ne()),{target:e,type:"get",key:"value"})}function xt(e,t){(e=mt(e)).dep&&_e(e.dep,{target:e,type:"set",key:"value",newValue:t})}function St(e){return!(!e||!0!==e.__v_isRef)}function kt(e){return Ot(e,!1)}function Ct(e){return Ot(e,!0)}function Ot(e,t){return St(e)?e:new Pt(e,t)}class Pt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:mt(e),this._value=t?e:bt(e)}get value(){return wt(this),this._value}set value(e){const t=this.__v_isShallow||gt(e)||ht(e);e=t?e:mt(e),K(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:bt(e),xt(this,e))}}function Et(e){return St(e)?e.value:e}const $t={get:(e,t,n)=>Et(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return St(o)&&!St(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Tt(e){return ft(e)?e:new Proxy(e,$t)}function It(e){vt(e);const t=C(e)?new Array(e.length):{};for(const n in e)t[n]=At(e,n);return t}class jt{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function At(e,t,n){const r=e[t];return St(r)?r:new jt(e,t,n)}var Nt;class Dt{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Nt]=!1,this._dirty=!0,this.effect=new de(e,(()=>{this._dirty||(this._dirty=!0,xt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=mt(this);return wt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}Nt="__v_isReadonly";const Rt=[];function Lt(e){Rt.push(e)}function Mt(){Rt.pop()}function Bt(e,...t){ge();const n=Rt.length?Rt[Rt.length-1].component:null,r=n&&n.appContext.config.warnHandler,o=function(){let e=Rt[Rt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)Ht(r,n,11,[e+t.join(""),n&&n.proxy,o.map((({vnode:e})=>`at <${Di(n,e.type)}>`)).join("\n"),o]);else{const n=[`[Vue warn]: ${e}`,...t];o.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${Di(e.component,e.type,r)}`,i=">"+n;return e.props?[o,...Ft(e.props),i]:[o+i]}(e))})),t}(o))}ve()}function Ft(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...zt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function zt(e,t,n){return $(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:St(t)?(t=zt(e,mt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):E(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=mt(t),n?t:[`${e}=`,t])}const Ut={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ht(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){Vt(i,t,n)}return o}function Wt(e,t,n,r){if(E(e)){const o=Ht(e,t,n,r);return o&&j(o)&&o.catch((e=>{Vt(e,t,n)})),o}const o=[];for(let i=0;i<e.length;i++)o.push(Wt(e[i],t,n,r));return o}function Vt(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=Ut[n];for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,i))return;r=r.parent}const a=t.appContext.config.errorHandler;if(a)return void Ht(a,null,10,[e,o,i])}!function(e,t,n,r=!0){{const o=Ut[t];if(n&&Lt(n),Bt("Unhandled error"+(o?` during execution of ${o}`:"")),n&&Mt(),r)throw e}}(e,n,o,r)}let qt=!1,Kt=!1;const Jt=[];let Gt=0;const Yt=[];let Xt=null,Zt=0;const Qt=Promise.resolve();let en=null;function tn(e){const t=en||Qt;return e?t.then(this?e.bind(this):e):t}function nn(e){Jt.length&&Jt.includes(e,qt&&e.allowRecurse?Gt+1:Gt)||(null==e.id?Jt.push(e):Jt.splice(function(e){let t=Gt+1,n=Jt.length;for(;t<n;){const r=t+n>>>1;ln(Jt[r])<e?t=r+1:n=r}return t}(e.id),0,e),rn())}function rn(){qt||Kt||(Kt=!0,en=Qt.then(un))}function on(e){C(e)?Yt.push(...e):Xt&&Xt.includes(e,e.allowRecurse?Zt+1:Zt)||Yt.push(e),rn()}function an(e,t=(qt?Gt+1:0)){for(e=e||new Map;t<Jt.length;t++){const n=Jt[t];if(n&&n.pre){if(dn(e,n))continue;Jt.splice(t,1),t--,n()}}}function sn(e){if(Yt.length){const t=[...new Set(Yt)];if(Yt.length=0,Xt)return void Xt.push(...t);for(Xt=t,e=e||new Map,Xt.sort(((e,t)=>ln(e)-ln(t))),Zt=0;Zt<Xt.length;Zt++)dn(e,Xt[Zt])||Xt[Zt]();Xt=null,Zt=0}}const ln=e=>null==e.id?1/0:e.id,cn=(e,t)=>{const n=ln(e)-ln(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function un(e){Kt=!1,qt=!0,e=e||new Map,Jt.sort(cn);const t=t=>dn(e,t);try{for(Gt=0;Gt<Jt.length;Gt++){const e=Jt[Gt];if(e&&!1!==e.active){if(t(e))continue;Ht(e,null,14)}}}finally{Gt=0,Jt.length=0,sn(e),qt=!1,en=null,(Jt.length||Yt.length)&&un(e)}}function dn(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&Ni(e.type);return Bt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}let pn=!1;const fn=new Set;Z().__VUE_HMR_RUNTIME__={createRecord:yn(gn),rerender:yn((function(e,t){const n=hn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,vn(e.type).render=t),e.renderCache=[],pn=!0,e.update(),pn=!1}))})),reload:yn((function(e,t){const n=hn.get(e);if(!n)return;t=vn(t),mn(n.initialDef,t);const r=[...n.instances];for(const o of r){const e=vn(o.type);fn.has(e)||(e!==n.initialDef&&mn(e,t),fn.add(e)),o.appContext.optionsCache.delete(o.type),o.ceReload?(fn.add(e),o.ceReload(t.styles),fn.delete(e)):o.parent?(nn(o.parent.update),o.parent.type.__asyncLoader&&o.parent.ceReload&&o.parent.ceReload(t.styles)):o.appContext.reload?o.appContext.reload():"undefined"!=typeof window&&window.location.reload()}on((()=>{for(const e of r)fn.delete(vn(e.type))}))}))};const hn=new Map;function gn(e,t){return!hn.has(e)&&(hn.set(e,{initialDef:vn(t),instances:new Set}),!0)}function vn(e){return Ri(e)?e.__vccOpts:e}function mn(e,t){w(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function yn(e){return(t,n)=>{try{return e(t,n)}catch(r){}}}let bn,_n=[],wn=!1;function xn(e,...t){bn?bn.emit(e,...t):wn||_n.push({event:e,args:t})}function Sn(e,t){var n,r;if(bn=e,bn)bn.enabled=!0,_n.forEach((({event:e,args:t})=>bn.emit(e,...t))),_n=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))){(t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Sn(e,t)})),setTimeout((()=>{bn||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,wn=!0,_n=[])}),3e3)}else wn=!0,_n=[]}const kn=Pn("component:added"),Cn=Pn("component:updated"),On=Pn("component:removed");function Pn(e){return t=>{xn(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const En=Tn("perf:start"),$n=Tn("perf:end");function Tn(e){return(t,n,r)=>{xn(e,t.appContext.app,t.uid,t,n,r)}}function In(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||f;{const{emitsOptions:r,propsOptions:[o]}=e;if(r)if(t in r){const e=r[t];if(E(e)){e(...n)||Bt(`Invalid event arguments: event validation failed for event "${t}".`)}}else o&&q(t)in o||Bt(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${q(t)}" prop.`)}let o=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:i}=r[e]||f;i&&(o=n.map((e=>e.trim()))),t&&(o=n.map(Y))}!function(e,t,n){xn("component:emit",e.appContext.app,e,t,n)}(e,t,o);{const n=t.toLowerCase();n!==t&&r[q(n)]&&Bt(`Event "${n}" is emitted in component ${Di(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${W(t)}" instead of "${t}".`)}let s,l=r[s=q(t)]||r[s=q(U(t))];!l&&i&&(l=r[s=q(W(t))]),l&&Wt(l,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,Wt(c,e,6,o)}}function jn(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const i=e.emits;let a={},s=!1;if(!E(e)){const r=e=>{const n=jn(e,t,!0);n&&(s=!0,w(a,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||s?(C(i)?i.forEach((e=>a[e]=null)):w(a,i),I(e)&&r.set(e,a),a):(I(e)&&r.set(e,null),null)}function An(e,t){return!(!e||!b(t))&&(t=t.slice(2).replace(/Once$/,""),k(e,t[0].toLowerCase()+t.slice(1))||k(e,W(t))||k(e,t))}let Nn=null,Dn=null;function Rn(e){const t=Nn;return Nn=e,Dn=e&&e.type.__scopeId||null,t}function Ln(e){Dn=e}function Mn(){Dn=null}function Bn(e,t=Nn,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Xo(-1);const o=Rn(t);let i;try{i=e(...n)}finally{Rn(o),r._d&&Xo(1)}return Cn(t),i};return r._n=!0,r._c=!0,r._d=!0,r}let Fn=!1;function zn(){Fn=!0}function Un(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:p,setupState:f,ctx:h,inheritAttrs:g}=e;let v,m;const y=Rn(e);Fn=!1;try{if(4&n.shapeFlag){const e=o||r;v=fi(u.call(e,e,d,i,f,p,h)),m=l}else{const e=t;l===i&&zn(),v=fi(e.length>1?e(i,{get attrs(){return zn(),l},slots:s,emit:c}):e(i,null)),m=t.props?l:Vn(l)}}catch(S){Ko.length=0,Vt(S,e,1),v=si(Vo)}let w,x=v;if(v.patchFlag>0&&2048&v.patchFlag&&([x,w]=Hn(v)),m&&!1!==g){const e=Object.keys(m),{shapeFlag:t}=x;if(e.length)if(7&t)a&&e.some(_)&&(m=qn(m,a)),x=li(x,m);else if(!Fn&&x.type!==Vo){const e=Object.keys(l),t=[],n=[];for(let r=0,o=e.length;r<o;r++){const o=e[r];b(o)?_(o)||t.push(o[2].toLowerCase()+o.slice(3)):n.push(o)}n.length&&Bt(`Extraneous non-props attributes (${n.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),t.length&&Bt(`Extraneous non-emits event listeners (${t.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}return n.dirs&&(Kn(x)||Bt("Runtime directive used on component with non-element root node. The directives will not function as intended."),x=li(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(Kn(x)||Bt("Component inside <Transition> renders non-element root node that cannot be animated."),x.transition=n.transition),w?w(x):v=x,Rn(y),v}const Hn=e=>{const t=e.children,n=e.dynamicChildren,r=Wn(t);if(!r)return[e,void 0];const o=t.indexOf(r),i=n?n.indexOf(r):-1;return[fi(r),r=>{t[o]=r,n&&(i>-1?n[i]=r:r.patchFlag>0&&(e.dynamicChildren=[...n,r]))}]};function Wn(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(!ti(r))return;if(r.type!==Vo||"v-if"===r.children){if(t)return;t=r}}return t}const Vn=e=>{let t;for(const n in e)("class"===n||"style"===n||b(n))&&((t||(t={}))[n]=e[n]);return t},qn=(e,t)=>{const n={};for(const r in e)_(r)&&r.slice(9)in t||(n[r]=e[r]);return n},Kn=e=>7&e.shapeFlag||e.type===Vo;function Jn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o<r.length;o++){const i=r[o];if(t[i]!==e[i]&&!An(n,i))return!0}return!1}function Gn(e,t){if(_i){let n=_i.provides;const r=_i.parent&&_i.parent.provides;r===n&&(n=_i.provides=Object.create(r)),n[e]=t}else Bt("provide() can only be used inside setup().")}function Yn(e,t,n=!1){const r=_i||Nn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&E(t)?t.call(r.proxy):t;Bt(`injection "${String(e)}" not found.`)}else Bt("inject() can only be used inside setup() or functional components.")}function Xn(e,t){return er(e,null,t)}const Zn={};function Qn(e,t,n){return E(t)||Bt("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),er(e,t,n)}function er(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:a}=f){t||(void 0!==n&&Bt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==r&&Bt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const s=e=>{Bt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},l=_i;let c,u,d=!1,p=!1;if(St(e)?(c=()=>e.value,d=gt(e)):ft(e)?(c=()=>e,r=!0):C(e)?(p=!0,d=e.some((e=>ft(e)||gt(e))),c=()=>e.map((e=>St(e)?e.value:ft(e)?rr(e):E(e)?Ht(e,l,2):void s(e)))):E(e)?c=t?()=>Ht(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),Wt(e,l,3,[h])}:(c=g,s(e)),t&&r){const e=c;c=()=>rr(e())}let h=e=>{u=b.onStop=()=>{Ht(e,l,4)}};if(Pi)return h=g,t?n&&Wt(t,l,3,[c(),p?[]:void 0,h]):c(),g;let v=p?[]:Zn;const m=()=>{if(b.active)if(t){const e=b.run();(r||d||(p?e.some(((e,t)=>K(e,v[t]))):K(e,v)))&&(u&&u(),Wt(t,l,3,[e,v===Zn?void 0:v,h]),v=e)}else b.run()};let y;m.allowRecurse=!!t,"sync"===o?y=m:"post"===o?y=()=>No(m,l&&l.suspense):(m.pre=!0,l&&(m.id=l.uid),y=()=>nn(m));const b=new de(c,y);return b.onTrack=i,b.onTrigger=a,t?n?m():v=b.run():"post"===o?No(b.run.bind(b),l&&l.suspense):b.run(),()=>{b.stop(),l&&l.scope&&x(l.scope.effects,b)}}function tr(e,t,n){const r=this.proxy,o=$(e)?e.includes(".")?nr(r,e):()=>r[e]:e.bind(r,r);let i;E(t)?i=t:(i=t.handler,n=t);const a=_i;xi(this);const s=er(o,i.bind(r),n);return a?xi(a):Si(),s}function nr(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function rr(e,t){if(!I(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),St(e))rr(e.value,t);else if(C(e))for(let n=0;n<e.length;n++)rr(e[n],t);else if(P(e)||O(e))e.forEach((e=>{rr(e,t)}));else if(R(e))for(const n in e)rr(e[n],t);return e}function or(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Sr((()=>{e.isMounted=!0})),Or((()=>{e.isUnmounting=!0})),e}const ir=[Function,Array],ar={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ir,onEnter:ir,onAfterEnter:ir,onEnterCancelled:ir,onBeforeLeave:ir,onLeave:ir,onAfterLeave:ir,onLeaveCancelled:ir,onBeforeAppear:ir,onAppear:ir,onAfterAppear:ir,onAppearCancelled:ir},setup(e,{slots:t}){const n=wi(),r=or();let o;return()=>{const i=t.default&&pr(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){let e=!1;for(const t of i)if(t.type!==Vo){if(e){Bt("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}a=t,e=!0}}const s=mt(e),{mode:l}=s;if(l&&"in-out"!==l&&"out-in"!==l&&"default"!==l&&Bt(`invalid <transition> mode: ${l}`),r.isLeaving)return cr(a);const c=ur(a);if(!c)return cr(a);const u=lr(c,s,r,n);dr(c,u);const d=n.subTree,p=d&&ur(d);let f=!1;const{getTransitionKey:h}=c.type;if(h){const e=h();void 0===o?o=e:e!==o&&(o=e,f=!0)}if(p&&p.type!==Vo&&(!ni(c,p)||f)){const e=lr(p,s,r,n);if(dr(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},cr(a);"in-out"===l&&c.type!==Vo&&(e.delayLeave=(e,t,n)=>{sr(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return a}}};function sr(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function lr(e,t,n,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:h,onBeforeAppear:g,onAppear:v,onAfterAppear:m,onAppearCancelled:y}=t,b=String(e.key),_=sr(n,e),w=(e,t)=>{e&&Wt(e,r,9,t)},x=(e,t)=>{const n=t[1];w(e,t),C(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:i,persisted:a,beforeEnter(t){let r=s;if(!n.isMounted){if(!o)return;r=g||s}t._leaveCb&&t._leaveCb(!0);const i=_[b];i&&ni(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(r,[t])},enter(e){let t=l,r=c,i=u;if(!n.isMounted){if(!o)return;t=v||l,r=m||c,i=y||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?i:r,[e]),S.delayedLeave&&S.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,s]):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(d,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,r(),w(n?h:f,[t]),t._leaveCb=void 0,_[o]===e&&delete _[o])};_[o]=e,p?x(p,[t,a]):a()},clone:e=>lr(e,t,n,r)};return S}function cr(e){if(gr(e))return(e=li(e)).children=null,e}function ur(e){return gr(e)?e.children?e.children[0]:void 0:e}function dr(e,t){6&e.shapeFlag&&e.component?dr(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function pr(e,t=!1,n){let r=[],o=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===Ho?(128&a.patchFlag&&o++,r=r.concat(pr(a.children,t,s))):(t||a.type!==Vo)&&r.push(null!=s?li(a,{key:s}):a)}if(o>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function fr(e){return E(e)?{setup:e,name:e.name}:e}const hr=e=>!!e.type.__asyncLoader,gr=e=>e.type.__isKeepAlive;function vr(e,t){yr(e,"a",t)}function mr(e,t){yr(e,"da",t)}function yr(e,t,n=_i){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(_r(t,r,n),n){let e=n.parent;for(;e&&e.parent;)gr(e.parent.vnode)&&br(r,t,n,e),e=e.parent}}function br(e,t,n,r){const o=_r(t,e,r,!0);Pr((()=>{x(r[t],o)}),n)}function _r(e,t,n=_i,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;ge(),xi(n);const o=Wt(t,n,e,r);return Si(),ve(),o});return r?o.unshift(i):o.push(i),i}Bt(`${q(Ut[e].replace(/ hook$/,""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}const wr=e=>(t,n=_i)=>(!Pi||"sp"===e)&&_r(e,((...e)=>t(...e)),n),xr=wr("bm"),Sr=wr("m"),kr=wr("bu"),Cr=wr("u"),Or=wr("bum"),Pr=wr("um"),Er=wr("sp"),$r=wr("rtg"),Tr=wr("rtc");function Ir(e,t=_i){_r("ec",e,t)}function jr(e){B(e)&&Bt("Do not use built-in directive ids as custom directive id: "+e)}function Ar(e,t){const n=Nn;if(null===n)return Bt("withDirectives can only be used inside render functions."),e;const r=ji(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,n,a,s=f]=t[i];E(e)&&(e={mounted:e,updated:e}),e.deep&&rr(n),o.push({dir:e,instance:r,value:n,oldValue:void 0,arg:a,modifiers:s})}return e}function Nr(e,t,n,r){const o=e.dirs,i=t&&t.dirs;for(let a=0;a<o.length;a++){const s=o[a];i&&(s.oldValue=i[a].value);let l=s.dir[r];l&&(ge(),Wt(l,n,8,[e.el,s,e,t]),ve())}}function Dr(e,t){return Mr("components",e,!0,t)||e}const Rr=Symbol();function Lr(e){return Mr("directives",e)}function Mr(e,t,n=!0,r=!1){const o=Nn||_i;if(o){const i=o.type;if("components"===e){const e=Ni(i,!1);if(e&&(e===t||e===U(t)||e===V(U(t))))return i}const a=Br(o[e]||i[e],t)||Br(o.appContext[e],t);if(!a&&r)return i;if(n&&!a){const n="components"===e?"\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.":"";Bt(`Failed to resolve ${e.slice(0,-1)}: ${t}${n}`)}return a}Bt(`resolve${V(e.slice(0,-1))} can only be used in render() or setup().`)}function Br(e,t){return e&&(e[t]||e[U(t)]||e[V(U(t))])}function Fr(e,t,n,r){let o;const i=n&&n[r];if(C(e)||$(e)){o=new Array(e.length);for(let n=0,r=e.length;n<r;n++)o[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){Number.isInteger(e)||Bt(`The v-for range expect an integer value but got ${e}.`),o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,i&&i[n])}else if(I(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,a=n.length;r<a;r++){const a=n[r];o[r]=t(e[a],a,r,i&&i[r])}}else o=[];return n&&(n[r]=o),o}function zr(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(C(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{const t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Ur(e,t,n={},r,o){if(Nn.isCE||Nn.parent&&hr(Nn.parent)&&Nn.parent.isCE)return si("slot","default"===t?null:{name:t},r&&r());let i=e[t];i&&i.length>1&&(Bt("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),i=()=>[]),i&&i._c&&(i._d=!1),Go();const a=i&&Hr(i(n)),s=ei(Ho,{key:n.key||a&&a.key||`_${t}`},a||(r?r():[]),a&&1===e._?64:-2);return!o&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Hr(e){return e.some((e=>!ti(e)||e.type!==Vo&&!(e.type===Ho&&!Hr(e.children))))?e:null}const Wr=e=>e?Oi(e)?ji(e)||e.proxy:Wr(e.parent):null,Vr=w(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>dt(e.props),$attrs:e=>dt(e.attrs),$slots:e=>dt(e.slots),$refs:e=>dt(e.refs),$parent:e=>Wr(e.parent),$root:e=>Wr(e.root),$emit:e=>e.emit,$options:e=>Zr(e),$forceUpdate:e=>e.f||(e.f=()=>nn(e.update)),$nextTick:e=>e.n||(e.n=tn.bind(e.proxy)),$watch:e=>tr.bind(e)}),qr=e=>"_"===e||"$"===e,Kr={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:a,type:s,appContext:l}=e;if("__isVue"===t)return!0;if(r!==f&&r.__isScriptSetup&&k(r,t))return r[t];let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(r!==f&&k(r,t))return a[t]=1,r[t];if(o!==f&&k(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&k(c,t))return a[t]=3,i[t];if(n!==f&&k(n,t))return a[t]=4,n[t];Jr&&(a[t]=0)}}const u=Vr[t];let d,p;return u?("$attrs"===t&&(me(e,"get",t),zn()),u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==f&&k(n,t)?(a[t]=4,n[t]):(p=l.config.globalProperties,k(p,t)?p[t]:void(!Nn||$(t)&&0===t.indexOf("__v")||(o!==f&&qr(t[0])&&k(o,t)?Bt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Nn&&Bt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return o!==f&&k(o,t)?(o[t]=n,!0):r!==f&&k(r,t)?(r[t]=n,!0):k(e.props,t)?(Bt(`Attempting to mutate prop "${t}". Props are readonly.`,e),!1):"$"===t[0]&&t.slice(1)in e?(Bt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`,e),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},a){let s;return!!n[a]||e!==f&&k(e,a)||t!==f&&k(t,a)||(s=i[0])&&k(s,a)||k(r,a)||k(Vr,a)||k(o.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:k(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};Kr.ownKeys=e=>(Bt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));let Jr=!0;function Gr(e){const t=Zr(e),n=e.proxy,r=e.ctx;Jr=!1,t.beforeCreate&&Yr(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:f,updated:h,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:w,render:x,renderTracked:S,renderTriggered:k,errorCaptured:O,serverPrefetch:P,expose:$,inheritAttrs:T,components:A,directives:N,filters:D}=t,R=function(){const e=Object.create(null);return(t,n)=>{e[n]?Bt(`${t} property "${n}" is already defined in ${e[n]}.`):e[n]=t}}();{const[t]=e.propsOptions;if(t)for(const e in t)R("Props",e)}if(c&&function(e,t,n=g,r=!1){C(e)&&(e=no(e));for(const o in e){const i=e[o];let a;a=I(i)?"default"in i?Yn(i.from||o,i.default,!0):Yn(i.from||o):Yn(i),St(a)?r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}):(Bt(`injected property "${o}" is a ref and will be auto-unwrapped and no longer needs \`.value\` in the next minor release. To opt-in to the new behavior now, set \`app.config.unwrapInjectedRef = true\` (this config is temporary and will not be needed in the future.)`),t[o]=a):t[o]=a,n("Inject",o)}}(c,r,R,e.appContext.config.unwrapInjectedRef),a)for(const g in a){const e=a[g];E(e)?(Object.defineProperty(r,g,{value:e.bind(n),configurable:!0,enumerable:!0,writable:!0}),R("Methods",g)):Bt(`Method "${g}" has type "${typeof e}" in the component definition. Did you reference the function correctly?`)}if(o){E(o)||Bt("The data option must be a function. Plain object usage is no longer supported.");const t=o.call(n,n);if(j(t)&&Bt("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),I(t)){e.data=ct(t);for(const e in t)R("Data",e),qr(e[0])||Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:()=>t[e],set:g})}else Bt("data() should return an object.")}if(Jr=!0,i)for(const C in i){const e=i[C],t=E(e)?e.bind(n,n):E(e.get)?e.get.bind(n,n):g;t===g&&Bt(`Computed property "${C}" has no getter.`);const o=!E(e)&&E(e.set)?e.set.bind(n):()=>{Bt(`Write operation failed: computed property "${C}" is readonly.`)},a=Li({get:t,set:o});Object.defineProperty(r,C,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e}),R("Computed",C)}if(s)for(const g in s)Xr(s[g],r,n,g);if(l){const e=E(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Gn(t,e[t])}))}function L(e,t){C(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(u&&Yr(u,e,"c"),L(xr,d),L(Sr,p),L(kr,f),L(Cr,h),L(vr,v),L(mr,m),L(Ir,O),L(Tr,S),L($r,k),L(Or,b),L(Pr,w),L(Er,P),C($))if($.length){const t=e.exposed||(e.exposed={});$.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===g&&(e.render=x),null!=T&&(e.inheritAttrs=T),A&&(e.components=A),N&&(e.directives=N)}function Yr(e,t,n){Wt(C(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Xr(e,t,n,r){const o=r.includes(".")?nr(n,r):()=>n[r];if($(e)){const n=t[e];E(n)?Qn(o,n):Bt(`Invalid watch handler specified by key "${e}"`,n)}else if(E(e))Qn(o,e.bind(n));else if(I(e))if(C(e))e.forEach((e=>Xr(e,t,n,r)));else{const r=E(e.handler)?e.handler.bind(n):t[e.handler];E(r)?Qn(o,r,e):Bt(`Invalid watch handler specified by key "${e.handler}"`,r)}else Bt(`Invalid watch option: "${r}"`,e)}function Zr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>Qr(l,e,a,!0))),Qr(l,t,a)):l=t,I(t)&&i.set(t,l),l}function Qr(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&Qr(e,i,n,!0),o&&o.forEach((t=>Qr(e,t,n,!0)));for(const a in t)if(r&&"expose"===a)Bt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const r=eo[a]||n&&n[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const eo={data:to,props:oo,emits:oo,methods:oo,computed:oo,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:oo,directives:oo,watch:function(e,t){if(!e)return t;if(!t)return e;const n=w(Object.create(null),e);for(const r in t)n[r]=ro(e[r],t[r]);return n},provide:to,inject:function(e,t){return oo(no(e),no(t))}};function to(e,t){return t?e?function(){return w(E(e)?e.call(this,this):e,E(t)?t.call(this,this):t)}:t:e}function no(e){if(C(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ro(e,t){return e?[...new Set([].concat(e,t))]:t}function oo(e,t){return e?w(w(Object.create(null),e),t):t}function io(e,t,n,r=!1){const o={},i={};G(i,ri,1),e.propsDefaults=Object.create(null),ao(e,t,o,i);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);ho(t||{},o,e),n?e.props=r?o:pt(o,!1,Ne,tt,at):e.type.props?e.props=o:e.props=i,e.attrs=i}function ao(e,t,n,r){const[o,i]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(M(l))continue;const c=t[l];let u;o&&k(o,u=U(l))?i&&i.includes(u)?(a||(a={}))[u]=c:n[u]=c:An(e.emitsOptions,l)||l in r&&c===r[l]||(r[l]=c,s=!0)}if(i){const t=mt(n),r=a||f;for(let a=0;a<i.length;a++){const s=i[a];n[s]=so(o,t,s,r[s],e,!k(r,s))}}return s}function so(e,t,n,r,o,i){const a=e[n];if(null!=a){const e=k(a,"default");if(e&&void 0===r){const e=a.default;if(a.type!==Function&&E(e)){const{propsDefaults:i}=o;n in i?r=i[n]:(xi(o),r=i[n]=e.call(null,t),Si())}else r=e}a[0]&&(i&&!e?r=!1:!a[1]||""!==r&&r!==W(n)||(r=!0))}return r}function lo(e,t,n=!1){const r=t.propsCache,o=r.get(e);if(o)return o;const i=e.props,a={},s=[];let l=!1;if(!E(e)){const r=e=>{l=!0;const[n,r]=lo(e,t,!0);w(a,n),r&&s.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!l)return I(e)&&r.set(e,h),h;if(C(i))for(let u=0;u<i.length;u++){$(i[u])||Bt("props must be strings when using array syntax.",i[u]);const e=U(i[u]);co(e)&&(a[e]=f)}else if(i){I(i)||Bt("invalid props options",i);for(const e in i){const t=U(e);if(co(t)){const n=i[e],r=a[t]=C(n)||E(n)?{type:n}:n;if(r){const e=fo(Boolean,r.type),n=fo(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||k(r,"default"))&&s.push(t)}}}}const c=[a,s];return I(e)&&r.set(e,c),c}function co(e){return"$"!==e[0]||(Bt(`Invalid prop name: "${e}" is a reserved property.`),!1)}function uo(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function po(e,t){return uo(e)===uo(t)}function fo(e,t){return C(t)?t.findIndex((t=>po(t,e))):E(t)&&po(t,e)?0:-1}function ho(e,t,n){const r=mt(t),o=n.propsOptions[0];for(const i in o){let t=o[i];null!=t&&go(i,r[i],t,!k(e,i)&&!k(e,W(i)))}}function go(e,t,n,r){const{type:o,required:i,validator:a}=n;if(i&&r)Bt('Missing required prop: "'+e+'"');else if(null!=t||n.required){if(null!=o&&!0!==o){let n=!1;const r=C(o)?o:[o],i=[];for(let e=0;e<r.length&&!n;e++){const{valid:o,expectedType:a}=mo(t,r[e]);i.push(a||""),n=o}if(!n)return void Bt(function(e,t,n){let r=`Invalid prop: type check failed for prop "${e}". Expected ${n.map(V).join(" | ")}`;const o=n[0],i=D(t),a=yo(t,o),s=yo(t,i);1===n.length&&bo(o)&&!function(...e){return e.some((e=>"boolean"===e.toLowerCase()))}(o,i)&&(r+=` with value ${a}`);r+=`, got ${i} `,bo(i)&&(r+=`with value ${s}.`);return r}(e,t,i))}a&&!a(t)&&Bt('Invalid prop: custom validator check failed for prop "'+e+'".')}}const vo=e("String,Number,Boolean,Function,Symbol,BigInt");function mo(e,t){let n;const r=uo(t);if(vo(r)){const o=typeof e;n=o===r.toLowerCase(),n||"object"!==o||(n=e instanceof t)}else n="Object"===r?I(e):"Array"===r?C(e):"null"===r?null===e:e instanceof t;return{valid:n,expectedType:r}}function yo(e,t){return"String"===t?`"${e}"`:"Number"===t?`${Number(e)}`:`${e}`}function bo(e){return["string","number","boolean"].some((t=>e.toLowerCase()===t))}const _o=e=>"_"===e[0]||"$stable"===e,wo=e=>C(e)?e.map(fi):[fi(e)],xo=(e,t,n)=>{if(t._n)return t;const r=Bn(((...n)=>(_i&&Bt(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),wo(t(...n)))),n);return r._c=!1,r},So=(e,t,n)=>{const r=e._ctx;for(const o in e){if(_o(o))continue;const n=e[o];if(E(n))t[o]=xo(o,n,r);else if(null!=n){Bt(`Non-function value encountered for slot "${o}". Prefer function slots for better performance.`);const e=wo(n);t[o]=()=>e}}},ko=(e,t)=>{gr(e.vnode)||Bt("Non-function value encountered for default slot. Prefer function slots for better performance.");const n=wo(t);e.slots.default=()=>n};function Co(){return{app:null,config:{isNativeTag:v,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Oo,Po,Eo=0;function $o(e,t){return function(n,r=null){E(n)||(n=Object.assign({},n)),null==r||I(r)||(Bt("root props passed to app.mount() must be an object."),r=null);const o=Co(),i=new Set;let a=!1;const s=o.app={_uid:Eo++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:zi,get config(){return o.config},set config(e){Bt("app.config cannot be replaced. Modify individual options instead.")},use:(e,...t)=>(i.has(e)?Bt("Plugin has already been applied to target app."):e&&E(e.install)?(i.add(e),e.install(s,...t)):E(e)?(i.add(e),e(s,...t)):Bt('A plugin must either be a function or an object with an "install" function.'),s),mixin:e=>(o.mixins.includes(e)?Bt("Mixin has already been applied to target app"+(e.name?`: ${e.name}`:"")):o.mixins.push(e),s),component:(e,t)=>(Ci(e,o.config),t?(o.components[e]&&Bt(`Component "${e}" has already been registered in target app.`),o.components[e]=t,s):o.components[e]),directive:(e,t)=>(jr(e),t?(o.directives[e]&&Bt(`Directive "${e}" has already been registered in target app.`),o.directives[e]=t,s):o.directives[e]),mount(i,l,c){if(!a){i.__vue_app__&&Bt("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const u=si(n,r);return u.appContext=o,o.reload=()=>{e(li(u),i,c)},l&&t?t(u,i):e(u,i,c),a=!0,s._container=i,i.__vue_app__=s,s._instance=u.component,function(e,t){xn("app:init",e,t,{Fragment:Ho,Text:Wo,Comment:Vo,Static:qo})}(s,zi),ji(u.component)||u.component.proxy}Bt("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`")},unmount(){a?(e(null,s._container),s._instance=null,function(e){xn("app:unmount",e)}(s),delete s._container.__vue_app__):Bt("Cannot unmount an app that is not mounted.")},provide:(e,t)=>(e in o.provides&&Bt(`App already provides property with key "${String(e)}". It will be overwritten with the new value.`),o.provides[e]=t,s)};return s}}function To(e,t,n,r,o=!1){if(C(e))return void e.forEach(((e,i)=>To(e,t&&(C(t)?t[i]:t),n,r,o)));if(hr(r)&&!o)return;const i=4&r.shapeFlag?ji(r.component)||r.component.proxy:r.el,a=o?null:i,{i:s,r:l}=e;if(!s)return void Bt("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");const c=t&&t.r,u=s.refs===f?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==l&&($(c)?(u[c]=null,k(d,c)&&(d[c]=null)):St(c)&&(c.value=null)),E(l))Ht(l,s,12,[a,u]);else{const t=$(l),r=St(l);if(t||r){const s=()=>{if(e.f){const n=t?k(d,l)?d[l]:u[l]:l.value;o?C(n)&&x(n,i):C(n)?n.includes(i)||n.push(i):t?(u[l]=[i],k(d,l)&&(d[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,k(d,l)&&(d[l]=a)):r?(l.value=a,e.k&&(u[e.k]=a)):Bt("Invalid template ref type:",l,`(${typeof l})`)};a?(s.id=-1,No(s,n)):s()}else Bt("Invalid template ref type:",l,`(${typeof l})`)}}function Io(e,t){e.appContext.config.performance&&Ao()&&Po.mark(`vue-${t}-${e.uid}`),En(e,t,Ao()?Po.now():Date.now())}function jo(e,t){if(e.appContext.config.performance&&Ao()){const n=`vue-${t}-${e.uid}`,r=n+":end";Po.mark(r),Po.measure(`<${Di(e,e.type)}> ${t}`,n,r),Po.clearMarks(n),Po.clearMarks(r)}$n(e,t,Ao()?Po.now():Date.now())}function Ao(){return void 0!==Oo||("undefined"!=typeof window&&window.performance?(Oo=!0,Po=window.performance):Oo=!1),Oo}const No=function(e,t){t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):on(e)};function Do(e){return function(e,t){const n=Z();n.__VUE__=!0,Sn(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:r,remove:o,patchProp:i,createElement:a,createText:s,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:v=g,insertStaticContent:m}=e,y=(e,t,n,r=null,o=null,i=null,a=!1,s=null,l=!pn&&!!t.dynamicChildren)=>{if(e===t)return;e&&!ni(e,t)&&(r=re(e),Y(e,o,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Wo:b(e,t,n,r);break;case Vo:_(e,t,n,r);break;case qo:null==e?x(t,n,r,a):S(e,t,n,a);break;case Ho:D(e,t,n,r,o,i,a,s,l);break;default:1&d?P(e,t,n,r,o,i,a,s,l):6&d?R(e,t,n,r,o,i,a,s,l):64&d||128&d?c.process(e,t,n,r,o,i,a,s,l,ie):Bt("Invalid VNode type:",c,`(${typeof c})`)}null!=u&&o&&To(u,e&&e.ref,i,t||e,!t)},b=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},_=(e,t,n,o)=>{null==e?r(t.el=l(t.children||""),n,o):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=m(e.children,t,n,r,e.el,e.anchor)},S=(e,t,n,r)=>{if(t.children!==e.children){const o=p(e.anchor);O(e),[t.el,t.anchor]=m(t.children,n,o,r)}else t.el=e.el,t.anchor=e.anchor},C=({el:e,anchor:t},n,o)=>{let i;for(;e&&e!==t;)i=p(e),r(e,n,o),e=i;r(t,n,o)},O=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),o(e),e=n;o(t)},P=(e,t,n,r,o,i,a,s,l)=>{a=a||"svg"===t.type,null==e?E(t,n,r,o,i,a,s,l):I(e,t,o,i,a,s,l)},E=(e,t,n,o,s,l,c,d)=>{let p,f;const{type:h,props:g,shapeFlag:v,transition:m,dirs:y}=e;if(p=e.el=a(e.type,l,g&&g.is,g),8&v?u(p,e.children):16&v&&T(e.children,p,null,o,s,l&&"foreignObject"!==h,c,d),y&&Nr(e,null,o,"created"),g){for(const t in g)"value"===t||M(t)||i(p,t,null,g[t],l,e.children,o,s,ne);"value"in g&&i(p,"value",null,g.value),(f=g.onVnodeBeforeMount)&&mi(f,o,e)}$(p,e,e.scopeId,c,o),Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:o,enumerable:!1}),y&&Nr(e,null,o,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&m&&!m.persisted;b&&m.beforeEnter(p),r(p,t,n),((f=g&&g.onVnodeMounted)||b||y)&&No((()=>{f&&mi(f,o,e),b&&m.enter(p),y&&Nr(e,null,o,"mounted")}),s)},$=(e,t,n,r,o)=>{if(n&&v(e,n),r)for(let i=0;i<r.length;i++)v(e,r[i]);if(o){let n=o.subTree;if(n.patchFlag>0&&2048&n.patchFlag&&(n=Wn(n.children)||n),t===n){const t=o.vnode;$(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},T=(e,t,n,r,o,i,a,s,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=s?hi(e[c]):fi(e[c]);y(null,l,t,n,r,o,i,a,s)}},I=(e,t,n,r,o,a,s)=>{const l=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||f,g=t.props||f;let v;n&&Ro(n,!1),(v=g.onVnodeBeforeUpdate)&&mi(v,n,t,e),p&&Nr(t,e,n,"beforeUpdate"),n&&Ro(n,!0),pn&&(c=0,s=!1,d=null);const m=o&&"foreignObject"!==t.type;if(d?(A(e.dynamicChildren,d,l,n,r,m,a),n&&n.type.__hmrId&&Lo(e,t)):s||H(e,t,l,null,n,r,m,a,!1),c>0){if(16&c)N(l,t,h,g,n,r,o);else if(2&c&&h.class!==g.class&&i(l,"class",null,g.class,o),4&c&&i(l,"style",h.style,g.style,o),8&c){const a=t.dynamicProps;for(let t=0;t<a.length;t++){const s=a[t],c=h[s],u=g[s];u===c&&"value"!==s||i(l,s,c,u,o,e.children,n,r,ne)}}1&c&&e.children!==t.children&&u(l,t.children)}else s||null!=d||N(l,t,h,g,n,r,o);((v=g.onVnodeUpdated)||p)&&No((()=>{v&&mi(v,n,t,e),p&&Nr(t,e,n,"updated")}),r)},A=(e,t,n,r,o,i,a)=>{for(let s=0;s<t.length;s++){const l=e[s],c=t[s],u=l.el&&(l.type===Ho||!ni(l,c)||70&l.shapeFlag)?d(l.el):n;y(l,c,u,null,r,o,i,a,!0)}},N=(e,t,n,r,o,a,s)=>{if(n!==r){if(n!==f)for(const l in n)M(l)||l in r||i(e,l,n[l],null,s,t.children,o,a,ne);for(const l in r){if(M(l))continue;const c=r[l],u=n[l];c!==u&&"value"!==l&&i(e,l,u,c,s,t.children,o,a,ne)}"value"in r&&i(e,"value",n.value,r.value)}},D=(e,t,n,o,i,a,l,c,u)=>{const d=t.el=e?e.el:s(""),p=t.anchor=e?e.anchor:s("");let{patchFlag:f,dynamicChildren:h,slotScopeIds:g}=t;(pn||2048&f)&&(f=0,u=!1,h=null),g&&(c=c?c.concat(g):g),null==e?(r(d,n,o),r(p,n,o),T(t.children,n,p,i,a,l,c,u)):f>0&&64&f&&h&&e.dynamicChildren?(A(e.dynamicChildren,h,n,i,a,l,c),i&&i.type.__hmrId?Lo(e,t):(null!=t.key||i&&t===i.subTree)&&Lo(e,t,!0)):H(e,t,n,p,i,a,l,c,u)},R=(e,t,n,r,o,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,a,l):L(t,n,r,o,i,a,l):B(e,t,l)},L=(e,t,n,r,o,i,a)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||yi,i={uid:bi++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:lo(r,o),emitsOptions:jn(r,o),emit:null,emitted:null,propsDefaults:f,inheritAttrs:r.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx=function(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(Vr).forEach((n=>{Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:()=>Vr[n](e),set:g})})),t}(i),i.root=t?t.root:i,i.emit=In.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(s.type.__hmrId&&function(e){const t=e.type.__hmrId;let n=hn.get(t);n||(gn(t,e.type),n=hn.get(t)),n.instances.add(e)}(s),Lt(e),Io(s,"mount"),gr(e)&&(s.ctx.renderer=ie),Io(s,"init"),function(e,t=!1){Pi=t;const{props:n,children:r}=e.vnode,o=Oi(e);io(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=mt(t),G(t,"_",n)):So(t,e.slots={})}else e.slots={},t&&ko(e,t);G(e.slots,ri,1)})(e,r);const i=o?function(e,t){var n;const r=e.type;r.name&&Ci(r.name,e.appContext.config);if(r.components){const t=Object.keys(r.components);for(let n=0;n<t.length;n++)Ci(t[n],e.appContext.config)}if(r.directives){const e=Object.keys(r.directives);for(let t=0;t<e.length;t++)jr(e[t])}r.compilerOptions&&$i()&&Bt('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.');e.accessCache=Object.create(null),e.proxy=yt(new Proxy(e.ctx,Kr)),function(e){const{ctx:t,propsOptions:[n]}=e;n&&Object.keys(n).forEach((n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e.props[n],set:g})}))}(e);const{setup:o}=r;if(o){const i=e.setupContext=o.length>1?Ii(e):null;xi(e),ge();const a=Ht(o,e,0,[dt(e.props),i]);if(ve(),Si(),j(a)){if(a.then(Si,Si),t)return a.then((n=>{Ei(e,n,t)})).catch((t=>{Vt(t,e,0)}));if(e.asyncDep=a,!e.suspense){Bt(`Component <${null!==(n=r.name)&&void 0!==n?n:"Anonymous"}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Ei(e,a,t)}else Ti(e,t)}(e,t):void 0;Pi=!1}(s),jo(s,"init"),s.asyncDep){if(o&&o.registerDep(s,F),!e.el){const e=s.subTree=si(Vo);_(null,e,t,n)}}else F(s,e,t,n,o,i,a),Mt(),jo(s,"mount")},B=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:a,children:s,patchFlag:l}=t,c=i.emitsOptions;if((o||s)&&pn)return!0;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||Jn(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?Jn(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==r[n]&&!An(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return Lt(t),z(r,t,n),void Mt();r.next=t,function(e){const t=Jt.indexOf(e);t>Gt&&Jt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},F=(e,t,n,r,o,i,a)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:l,vnode:c}=e,u=n;Lt(n||e.vnode),Ro(e,!1),n?(n.el=c.el,z(e,n,a)):n=c,r&&J(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&mi(t,l,n,c),Ro(e,!0),Io(e,"render");const p=Un(e);jo(e,"render");const f=e.subTree;e.subTree=p,Io(e,"patch"),y(f,p,d(f.el),re(f),e,o,i),jo(e,"patch"),n.el=p.el,null===u&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,p.el),s&&No(s,o),(t=n.props&&n.props.onVnodeUpdated)&&No((()=>mi(t,l,n,c)),o),Cn(e),Mt()}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=hr(t);if(Ro(e,!1),c&&J(c),!p&&(a=l&&l.onVnodeBeforeMount)&&mi(a,d,t),Ro(e,!0),s&&se){const n=()=>{Io(e,"render"),e.subTree=Un(e),jo(e,"render"),Io(e,"hydrate"),se(s,e.subTree,e,o,null),jo(e,"hydrate")};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{Io(e,"render");const a=e.subTree=Un(e);jo(e,"render"),Io(e,"patch"),y(null,a,n,r,e,o,i),jo(e,"patch"),t.el=a.el}if(u&&No(u,o),!p&&(a=l&&l.onVnodeMounted)){const e=t;No((()=>mi(a,d,e)),o)}(256&t.shapeFlag||d&&hr(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&No(e.a,o),e.isMounted=!0,kn(e),t=n=r=null}},l=e.effect=new de(s,(()=>nn(c)),e.scope),c=e.update=()=>l.run();c.id=e.uid,Ro(e,!0),l.onTrack=e.rtc?t=>J(e.rtc,t):void 0,l.onTrigger=e.rtg?t=>J(e.rtg,t):void 0,c.ownerInstance=e,c()},z=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:a}}=e,s=mt(o),[l]=e.propsOptions;let c=!1;if(function(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}(e)||!(r||a>0)||16&a){let r;ao(e,t,o,i)&&(c=!0);for(const i in s)t&&(k(t,i)||(r=W(i))!==i&&k(t,r))||(l?!n||void 0===n[i]&&void 0===n[r]||(o[i]=so(l,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&k(t,e)||(delete i[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(An(e.emitsOptions,a))continue;const u=t[a];if(l)if(k(i,a))u!==i[a]&&(i[a]=u,c=!0);else{const t=U(a);o[t]=so(l,s,t,u,e,!1)}else u!==i[a]&&(i[a]=u,c=!0)}}c&&be(e,"set","$attrs"),ho(t||{},o,e)}(e,t.props,r,n),((e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,a=f;if(32&r.shapeFlag){const e=t._;e?pn?w(o,t):n&&1===e?i=!1:(w(o,t),n||1!==e||delete o._):(i=!t.$stable,So(t,o)),a=t}else t&&(ko(e,t),a={default:1});if(i)for(const s in o)_o(s)||s in a||delete o[s]})(e,t.children,n),ge(),an(),ve()},H=(e,t,n,r,o,i,a,s,l=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:f,shapeFlag:h}=t;if(f>0){if(128&f)return void q(c,p,n,r,o,i,a,s,l);if(256&f)return void V(c,p,n,r,o,i,a,s,l)}8&h?(16&d&&ne(c,o,i),p!==c&&u(n,p)):16&d?16&h?q(c,p,n,r,o,i,a,s,l):ne(c,o,i,!0):(8&d&&u(n,""),16&h&&T(p,n,r,o,i,a,s,l))},V=(e,t,n,r,o,i,a,s,l)=>{t=t||h;const c=(e=e||h).length,u=t.length,d=Math.min(c,u);let p;for(p=0;p<d;p++){const r=t[p]=l?hi(t[p]):fi(t[p]);y(e[p],r,n,null,o,i,a,s,l)}c>u?ne(e,o,i,!0,!1,d):T(t,n,r,o,i,a,s,l,d)},q=(e,t,n,r,o,i,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const r=e[c],u=t[c]=l?hi(t[c]):fi(t[c]);if(!ni(r,u))break;y(r,u,n,null,o,i,a,s,l),c++}for(;c<=d&&c<=p;){const r=e[d],c=t[p]=l?hi(t[p]):fi(t[p]);if(!ni(r,c))break;y(r,c,n,null,o,i,a,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=e<u?t[e].el:r;for(;c<=p;)y(null,t[c]=l?hi(t[c]):fi(t[c]),n,d,o,i,a,s,l),c++}}else if(c>p)for(;c<=d;)Y(e[c],o,i,!0),c++;else{const f=c,g=c,v=new Map;for(c=g;c<=p;c++){const e=t[c]=l?hi(t[c]):fi(t[c]);null!=e.key&&(v.has(e.key)&&Bt("Duplicate keys found during update:",JSON.stringify(e.key),"Make sure keys are unique."),v.set(e.key,c))}let m,b=0;const _=p-g+1;let w=!1,x=0;const S=new Array(_);for(c=0;c<_;c++)S[c]=0;for(c=f;c<=d;c++){const r=e[c];if(b>=_){Y(r,o,i,!0);continue}let u;if(null!=r.key)u=v.get(r.key);else for(m=g;m<=p;m++)if(0===S[m-g]&&ni(r,t[m])){u=m;break}void 0===u?Y(r,o,i,!0):(S[u-g]=c+1,u>=x?x=u:w=!0,y(r,t[u],n,null,o,i,a,s,l),b++)}const k=w?function(e){const t=e.slice(),n=[0];let r,o,i,a,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(o=n[n.length-1],e[o]<l){t[r]=o,n.push(r);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<l?i=s+1:a=s;l<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(S):h;for(m=k.length-1,c=_-1;c>=0;c--){const e=g+c,d=t[e],p=e+1<u?t[e+1].el:r;0===S[c]?y(null,d,n,p,o,i,a,s,l):w&&(m<0||c!==k[m]?K(d,n,p,2):m--)}}},K=(e,t,n,o,i=null)=>{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,n,o);if(128&u)return void e.suspense.move(t,n,o);if(64&u)return void s.move(e,t,n,ie);if(s===Ho){r(a,t,n);for(let e=0;e<c.length;e++)K(c[e],t,n,o);return void r(e.anchor,t,n)}if(s===qo)return void C(e,t,n);if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(a),r(a,t,n),No((()=>l.enter(a)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=l,s=()=>r(a,t,n),c=()=>{e(a,(()=>{s(),i&&i()}))};o?o(a,s,c):c()}else r(a,t,n)},Y=(e,t,n,r=!1,o=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&To(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const f=1&u&&p,h=!hr(e);let g;if(h&&(g=a&&a.onVnodeBeforeUnmount)&&mi(g,t,e),6&u)te(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);f&&Nr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,ie,r):c&&(i!==Ho||d>0&&64&d)?ne(c,t,n,!1,!0):(i===Ho&&384&d||!o&&16&u)&&ne(l,t,n),r&&X(e)}(h&&(g=a&&a.onVnodeUnmounted)||f)&&No((()=>{g&&mi(g,t,e),f&&Nr(e,null,t,"unmounted")}),n)},X=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Ho)return void(e.patchFlag>0&&2048&e.patchFlag&&i&&!i.persisted?e.children.forEach((e=>{e.type===Vo?o(e.el):X(e)})):Q(n,r));if(t===qo)return void O(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},Q=(e,t)=>{let n;for(;e!==t;)n=p(e),o(e),e=n;o(t)},te=(e,t,n)=>{e.type.__hmrId&&function(e){hn.get(e.type.__hmrId).instances.delete(e)}(e);const{bum:r,scope:o,update:i,subTree:a,um:s}=e;var l;r&&J(r),o.stop(),i&&(i.active=!1,Y(a,e,t,n)),s&&No(s,t),No((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),l=e,bn&&"function"==typeof bn.cleanupBuffer&&!bn.cleanupBuffer(l)&&On(l)},ne=(e,t,n,r=!1,o=!1,i=0)=>{for(let a=i;a<e.length;a++)Y(e[a],t,n,r,o)},re=e=>6&e.shapeFlag?re(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),oe=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),an(),sn(),t._vnode=e},ie={p:y,um:Y,m:K,r:X,mt:L,mc:T,pc:H,pbc:A,n:re,o:e};let ae,se;t&&([ae,se]=t(ie));return{render:oe,hydrate:ae,createApp:$o(oe,ae)}}(e)}function Ro({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lo(e,t,n=!1){const r=e.children,o=t.children;if(C(r)&&C(o))for(let i=0;i<r.length;i++){const e=r[i];let t=o[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[i]=hi(o[i]),t.el=e.el),n||Lo(e,t)),t.type!==Vo||t.el||(t.el=e.el)}}const Mo=e=>e&&(e.disabled||""===e.disabled),Bo=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,Fo=(e,t)=>{const n=e&&e.to;if($(n)){if(t){const e=t(n);return e||Bt(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),e}return Bt("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null}return n||Mo(e)||Bt(`Invalid Teleport target: ${n}`),n};function zo(e,t,n,{o:{insert:r},m:o},i=2){0===i&&r(e.targetAnchor,t,n);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===i;if(d&&r(a,t,n),(!d||Mo(u))&&16&l)for(let p=0;p<c.length;p++)o(c[p],t,n,2);d&&r(s,t,n)}const Uo={__isTeleport:!0,process(e,t,n,r,o,i,a,s,l,c){const{mc:u,pc:d,pbc:p,o:{insert:f,querySelector:h,createText:g,createComment:v}}=c,m=Mo(t.props);let{shapeFlag:y,children:b,dynamicChildren:_}=t;if(pn&&(l=!1,_=null),null==e){const e=t.el=v("teleport start"),c=t.anchor=v("teleport end");f(e,n,r),f(c,n,r);const d=t.target=Fo(t.props,h),p=t.targetAnchor=g("");d?(f(p,d),a=a||Bo(d)):m||Bt("Invalid Teleport target on mount:",d,`(${typeof d})`);const _=(e,t)=>{16&y&&u(b,e,t,o,i,a,s,l)};m?_(n,c):d&&_(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,f=t.targetAnchor=e.targetAnchor,g=Mo(e.props),v=g?n:u,y=g?r:f;if(a=a||Bo(u),_?(p(e.dynamicChildren,_,v,o,i,a,s),Lo(e,t,!0)):l||d(e,t,v,y,o,i,a,s,!1),m)g||zo(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Fo(t.props,h);e?zo(t,e,null,c,0):Bt("Invalid Teleport target on update:",u,`(${typeof u})`)}else g&&zo(t,u,f,c,1)}},remove(e,t,n,r,{um:o,o:{remove:i}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&i(u),(a||!Mo(p))&&(i(c),16&s))for(let f=0;f<l.length;f++){const e=l[f];o(e,t,n,!0,!!e.dynamicChildren)}},move:zo,hydrate:function(e,t,n,r,o,i,{o:{nextSibling:a,parentNode:s,querySelector:l}},c){const u=t.target=Fo(t.props,l);if(u){const l=u._lpa||u.firstChild;if(16&t.shapeFlag)if(Mo(t.props))t.anchor=c(a(e),t,s(e),n,r,o,i),t.targetAnchor=l;else{t.anchor=a(e);let s=l;for(;s;)if(s=a(s),s&&8===s.nodeType&&"teleport anchor"===s.data){t.targetAnchor=s,u._lpa=t.targetAnchor&&a(t.targetAnchor);break}c(l,t,u,n,r,o,i)}}return t.anchor&&a(t.anchor)}},Ho=Symbol("Fragment"),Wo=Symbol("Text"),Vo=Symbol("Comment"),qo=Symbol("Static"),Ko=[];let Jo=null;function Go(e=!1){Ko.push(Jo=e?null:[])}let Yo=1;function Xo(e){Yo+=e}function Zo(e){return e.dynamicChildren=Yo>0?Jo||h:null,Ko.pop(),Jo=Ko[Ko.length-1]||null,Yo>0&&Jo&&Jo.push(e),e}function Qo(e,t,n,r,o,i){return Zo(ai(e,t,n,r,o,i,!0))}function ei(e,t,n,r,o){return Zo(si(e,t,n,r,o,!0))}function ti(e){return!!e&&!0===e.__v_isVNode}function ni(e,t){return!(6&t.shapeFlag&&fn.has(t.type))&&(e.type===t.type&&e.key===t.key)}const ri="__vInternal",oi=({key:e})=>null!=e?e:null,ii=({ref:e,ref_key:t,ref_for:n})=>null!=e?$(e)||St(e)||E(e)?{i:Nn,r:e,k:t,f:!!n}:e:null;function ai(e,t=null,n=null,r=0,o=null,i=(e===Ho?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oi(t),ref:t&&ii(t),scopeId:Dn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(gi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=$(n)?8:16),l.key!=l.key&&Bt("VNode created with invalid key (NaN). VNode type:",l.type),Yo>0&&!a&&Jo&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Jo.push(l),l}const si=(...e)=>function(e,t=null,n=null,o=0,i=null,a=!1){e&&e!==Rr||(e||Bt(`Invalid vnode type when creating vnode: ${e}.`),e=Vo);if(ti(e)){const r=li(e,t,!0);return n&&gi(r,n),Yo>0&&!a&&Jo&&(6&r.shapeFlag?Jo[Jo.indexOf(e)]=r:Jo.push(r)),r.patchFlag|=-2,r}Ri(e)&&(e=e.__vccOpts);if(t){t=function(e){return e?vt(e)||ri in e?w({},e):e:null}(t);let{class:e,style:n}=t;e&&!$(e)&&(t.class=l(e)),I(n)&&(vt(n)&&!C(n)&&(n=w({},n)),t.style=r(n))}const s=$(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:I(e)?4:E(e)?2:0;4&s&&vt(e)&&Bt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=mt(e));return ai(e,t,n,o,i,s,a,!0)}(...e);function li(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:a}=e,s=t?vi(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&oi(s),ref:t&&t.ref?n&&o?C(o)?o.concat(ii(t)):[o,ii(t)]:ii(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:-1===i&&C(a)?a.map(ci):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ho?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&li(e.ssContent),ssFallback:e.ssFallback&&li(e.ssFallback),el:e.el,anchor:e.anchor}}function ci(e){const t=li(e);return C(e.children)&&(t.children=e.children.map(ci)),t}function ui(e=" ",t=0){return si(Wo,null,e,t)}function di(e,t){const n=si(qo,null,e);return n.staticCount=t,n}function pi(e="",t=!1){return t?(Go(),ei(Vo,null,e)):si(Vo,null,e)}function fi(e){return null==e||"boolean"==typeof e?si(Vo):C(e)?si(Ho,null,e.slice()):"object"==typeof e?hi(e):si(Wo,null,String(e))}function hi(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:li(e)}function gi(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(C(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),gi(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||ri in t?3===r&&Nn&&(1===Nn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Nn}}else E(t)?(t={default:t,_ctx:Nn},n=32):(t=String(t),64&r?(n=16,t=[ui(t)]):n=8);e.children=t,e.shapeFlag|=n}function vi(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=l([t.class,o.class]));else if("style"===e)t.style=r([t.style,o.style]);else if(b(e)){const n=t[e],r=o[e];!r||n===r||C(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}function mi(e,t,n,r=null){Wt(e,t,7,[n,r])}const yi=Co();let bi=0;let _i=null;const wi=()=>_i||Nn,xi=e=>{_i=e,e.scope.on()},Si=()=>{_i&&_i.scope.off(),_i=null},ki=e("slot,component");function Ci(e,t){const n=t.isNativeTag||v;(ki(e)||n(e))&&Bt("Do not use built-in or reserved HTML elements as component id: "+e)}function Oi(e){return 4&e.vnode.shapeFlag}let Pi=!1;function Ei(e,t,n){E(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:I(t)?(ti(t)&&Bt("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=Tt(t),function(e){const{ctx:t,setupState:n}=e;Object.keys(mt(n)).forEach((e=>{if(!n.__isScriptSetup){if(qr(e[0]))return void Bt(`setup() return property ${JSON.stringify(e)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:()=>n[e],set:g})}}))}(e)):void 0!==t&&Bt("setup() should return an object. Received: "+(null===t?"null":typeof t)),Ti(e,n)}const $i=()=>!0;function Ti(e,t,n){const r=e.type;e.render||(e.render=r.render||g),xi(e),ge(),Gr(e),ve(),Si(),r.render||e.render!==g||t||(r.template?Bt('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Bt("Component is missing template or render function."))}function Ii(e){const t=t=>{e.exposed&&Bt("expose() should be called only once per setup()."),e.exposed=t||{}};let n;return Object.freeze({get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(zn(),me(e,"get","$attrs"),t[n]),set:()=>(Bt("setupContext.attrs is readonly."),!1),deleteProperty:()=>(Bt("setupContext.attrs is readonly."),!1)})}(e))},get slots(){return dt(e.slots)},get emit(){return(t,...n)=>e.emit(t,...n)},expose:t})}function ji(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Tt(yt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Vr?Vr[n](e):void 0}))}const Ai=/(?:^|[-_])(\w)/g;function Ni(e,t=!0){return E(e)?e.displayName||e.name:e.name||t&&e.__name}function Di(e,t,n=!1){let r=Ni(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(Ai,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}function Ri(e){return E(e)&&"__vccOpts"in e}const Li=(e,t)=>function(e,t,n=!1){let r,o;const i=E(e);i?(r=e,o=()=>{}):(r=e.get,o=e.set);const a=new Dt(r,o,i||!o,n);return t&&!n&&(a.effect.onTrack=t.onTrack,a.effect.onTrigger=t.onTrigger),a}(e,t,Pi);function Mi(){return function(){const e=wi();e||Bt("useContext() called without active instance.");return e.setupContext||(e.setupContext=Ii(e))}().slots}function Bi(e,t,n){const r=arguments.length;return 2===r?I(t)&&!C(t)?ti(t)?si(e,null,[t]):si(e,t):si(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&ti(n)&&(n=[n]),si(e,t,n))}function Fi(e){return!(!e||!e.__v_isShallow)}const zi="3.2.41",Ui="undefined"!=typeof document?document:null,Hi=Ui&&Ui.createElement("template"),Wi={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Ui.createElementNS("http://www.w3.org/2000/svg",e):Ui.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ui.createTextNode(e),createComment:e=>Ui.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ui.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const a=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{Hi.innerHTML=r?`<svg>${e}</svg>`:e;const o=Hi.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Vi=/\s*!important$/;function qi(e,t,n){if(C(n))n.forEach((n=>qi(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Ji[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return Ji[t]=r;r=V(r);for(let o=0;o<Ki.length;o++){const n=Ki[o]+r;if(n in e)return Ji[t]=n}return t}(e,t);Vi.test(n)?e.setProperty(W(r),n.replace(Vi,""),"important"):e[r]=n}}const Ki=["Webkit","Moz","ms"],Ji={};const Gi="http://www.w3.org/1999/xlink";function Yi(e,t,n,r){e.addEventListener(t,n,r)}function Xi(e,t,n,r,o=null){const i=e._vei||(e._vei={}),a=i[t];if(r&&a)a.value=r;else{const[n,s]=function(e){let t;if(Zi.test(e)){let n;for(t={};n=e.match(Zi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):W(e.slice(2)),t]}(t);if(r){const a=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();Wt(function(e,t){if(C(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=(()=>Qi||(ea.then((()=>Qi=0)),Qi=Date.now()))(),n}(r,o);Yi(e,n,a,s)}else a&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,a,s),i[t]=void 0)}}const Zi=/(?:Once|Passive|Capture)$/;let Qi=0;const ea=Promise.resolve();const ta=/^on[a-z]/;function na(e){const t=wi();if(!t)return void Bt("useCssVars is called without current active component instance.");const n=()=>ra(t.subTree,e(t.proxy));var r;er(n,null,Object.assign(Object.assign({},r),{flush:"post"})),Sr((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),Pr((()=>e.disconnect()))}))}function ra(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{ra(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)oa(e.el,t);else if(e.type===Ho)e.children.forEach((e=>ra(e,t)));else if(e.type===qo){let{el:n,anchor:r}=e;for(;n&&(oa(n,t),n!==r);)n=n.nextSibling}}function oa(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const ia=(e,{slots:t})=>Bi(ar,ua(e),t);ia.displayName="Transition";const aa={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},sa=ia.props=w({},ar.props,aa),la=(e,t=[])=>{C(e)?e.forEach((e=>e(...t))):e&&e(...t)},ca=e=>!!e&&(C(e)?e.some((e=>e.length>1)):e.length>1);function ua(e){const t={};for(const w in e)w in aa||(t[w]=e[w]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(I(e))return[da(e.enter),da(e.leave)];{const t=da(e);return[t,t]}}(o),g=h&&h[0],v=h&&h[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:x,onBeforeAppear:S=m,onAppear:k=y,onAppearCancelled:C=b}=t,O=(e,t,n)=>{fa(e,t?u:s),fa(e,t?c:a),n&&n()},P=(e,t)=>{e._isLeaving=!1,fa(e,d),fa(e,f),fa(e,p),t&&t()},E=e=>(t,n)=>{const o=e?k:y,a=()=>O(t,e,n);la(o,[t,a]),ha((()=>{fa(t,e?l:i),pa(t,e?u:s),ca(o)||va(t,r,g,a)}))};return w(t,{onBeforeEnter(e){la(m,[e]),pa(e,i),pa(e,a)},onBeforeAppear(e){la(S,[e]),pa(e,l),pa(e,c)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>P(e,t);pa(e,d),_a(),pa(e,p),ha((()=>{e._isLeaving&&(fa(e,d),pa(e,f),ca(_)||va(e,r,v,n))})),la(_,[e,n])},onEnterCancelled(e){O(e,!1),la(b,[e])},onAppearCancelled(e){O(e,!0),la(C,[e])},onLeaveCancelled(e){P(e),la(x,[e])}})}function da(e){const t=Y(e);return function(e){"number"!=typeof e?Bt(`<transition> explicit duration is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Bt("<transition> explicit duration is NaN - the duration expression might be incorrect.")}(t),t}function pa(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function fa(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ha(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ga=0;function va(e,t,n,r){const o=e._endId=++ga,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=ma(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),i()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),s+1),e.addEventListener(c,p)}function ma(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),i=r("transitionDuration"),a=ya(o,i),s=r("animationDelay"),l=r("animationDuration"),c=ya(s,l);let u=null,d=0,p=0;"transition"===t?a>0&&(u="transition",d=a,p=i.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?"transition":"animation":null,p=u?"transition"===u?i.length:l.length:0);return{type:u,timeout:d,propCount:p,hasTransform:"transition"===u&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function ya(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>ba(t)+ba(e[n]))))}function ba(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function _a(){return document.body.offsetHeight}const wa=new WeakMap,xa=new WeakMap,Sa={name:"TransitionGroup",props:w({},sa,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=wi(),r=or();let o,i;return Cr((()=>{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:i}=ma(r);return o.removeChild(r),i}(o[0].el,n.vnode.el,t))return;o.forEach(ka),o.forEach(Ca);const r=o.filter(Oa);_a(),r.forEach((e=>{const n=e.el,r=n.style;pa(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,fa(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const a=mt(e),s=ua(a);let l=a.tag||Ho;o=i,i=t.default?pr(t.default()):[];for(let e=0;e<i.length;e++){const t=i[e];null!=t.key?dr(t,lr(t,s,r,n)):Bt("<TransitionGroup> children must be keyed.")}if(o)for(let e=0;e<o.length;e++){const t=o[e];dr(t,lr(t,s,r,n)),wa.set(t,t.el.getBoundingClientRect())}return si(l,null,i)}}};function ka(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Ca(e){xa.set(e,e.el.getBoundingClientRect())}function Oa(e){const t=wa.get(e),n=xa.get(e),r=t.left-n.left,o=t.top-n.top;if(r||o){const t=e.el.style;return t.transform=t.webkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s",e}}const Pa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return C(t)?e=>J(t,e):t};function Ea(e){e.target.composing=!0}function $a(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ta={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=Pa(o);const i=r||o.props&&"number"===o.props.type;Yi(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=Y(r)),e._assign(r)})),n&&Yi(e,"change",(()=>{e.value=e.value.trim()})),t||(Yi(e,"compositionstart",Ea),Yi(e,"compositionend",$a),Yi(e,"change",$a))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=Pa(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((o||"number"===e.type)&&Y(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},Ia=["ctrl","shift","alt","meta"],ja={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Ia.some((n=>e[`${n}Key`]&&!t.includes(n)))},Aa=(e,t)=>(n,...r)=>{for(let e=0;e<t.length;e++){const r=ja[t[e]];if(r&&r(n,t))return}return e(n,...r)},Na={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Da={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ra(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ra(e,!0),r.enter(e)):r.leave(e,(()=>{Ra(e,!1)})):Ra(e,t))},beforeUnmount(e,{value:t}){Ra(e,t)}};function Ra(e,t){e.style.display=t?e._vod:"none"}const La=w({patchProp:(e,r,o,i,a=!1,s,l,c,u)=>{"class"===r?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,a):"style"===r?function(e,t,n){const r=e.style,o=$(n);if(n&&!o){for(const e in n)qi(r,e,n[e]);if(t&&!$(t))for(const e in t)null==n[e]&&qi(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,o,i):b(r)?_(r)||Xi(e,r,0,i,l):("."===r[0]?(r=r.slice(1),1):"^"===r[0]?(r=r.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&ta.test(t)&&E(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(ta.test(t)&&$(n))return!1;return t in e}(e,r,i,a))?function(e,t,r,o,i,a,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,i,a),void(e[t]=null==r?"":r);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=r;const n=null==r?"":r;return e.value===n&&"OPTION"!==e.tagName||(e.value=n),void(null==r&&e.removeAttribute(t))}let l=!1;if(""===r||null==r){const o=typeof e[t];"boolean"===o?r=n(r):null==r&&"string"===o?(r="",l=!0):"number"===o&&(r=0,l=!0)}try{e[t]=r}catch(c){l||Bt(`Failed setting prop "${t}" on <${e.tagName.toLowerCase()}>: value ${r} is invalid.`,c)}l&&e.removeAttribute(t)}(e,r,i,s,l,c,u):("true-value"===r?e._trueValue=i:"false-value"===r&&(e._falseValue=i),function(e,r,o,i,a){if(i&&r.startsWith("xlink:"))null==o?e.removeAttributeNS(Gi,r.slice(6,r.length)):e.setAttributeNS(Gi,r,o);else{const i=t(r);null==o||i&&!n(o)?e.removeAttribute(r):e.setAttribute(r,i?"":o)}}(e,r,i,a))}},Wi);let Ma;const Ba=(...e)=>{const t=(Ma||(Ma=Do(La))).createApp(...e);!function(e){Object.defineProperty(e.config,"isNativeTag",{value:e=>c(e)||u(e),writable:!1})}(t),function(e){{const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get:()=>t,set(){Bt("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const n=e.config.compilerOptions,r='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-dom';Object.defineProperty(e.config,"compilerOptions",{get:()=>(Bt(r),n),set(){Bt(r)}})}}(t);const{mount:n}=t;return t.mount=e=>{const r=function(e){if($(e)){const t=document.querySelector(e);return t||Bt(`Failed to mount app: mount target selector "${e}" returned null.`),t}window.ShadowRoot&&e instanceof window.ShadowRoot&&"closed"===e.mode&&Bt('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs');return e}(e);if(!r)return;const o=t._component;E(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Fa(e,t,n){var r,o,i,a,s;function l(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o),i=o=null))}null==t&&(t=100);var c=function(){i=this,o=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o),i=o=null),s};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(s=e.apply(i,o),i=o=null,clearTimeout(r),r=null)},c}!function(){if("undefined"==typeof window)return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},n={style:"color:#b62e24"},r={style:"color:#9d288c"},o={header:t=>I(t)?t.__isVue?["div",e,"VueInstance"]:St(t)?["div",{},["span",e,u(t)],"<",s(t.value),">"]:ft(t)?["div",{},["span",e,Fi(t)?"ShallowReactive":"Reactive"],"<",s(t),">"+(ht(t)?" (readonly)":"")]:ht(t)?["div",{},["span",e,Fi(t)?"ShallowReadonly":"Readonly"],"<",s(t),">"]:null:null,hasBody:e=>e&&e.__isVue,body(e){if(e&&e.__isVue)return["div",{},...i(e.$)]}};function i(e){const t=[];e.type.props&&e.props&&t.push(a("props",mt(e.props))),e.setupState!==f&&t.push(a("setup",e.setupState)),e.data!==f&&t.push(a("data",mt(e.data)));const n=l(e,"computed");n&&t.push(a("computed",n));const o=l(e,"inject");return o&&t.push(a("injected",o)),t.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:e}]]),t}function a(e,t){return t=w({},t),Object.keys(t).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},e],["div",{style:"padding-left:1.25em"},...Object.keys(t).map((e=>["div",{},["span",r,e+": "],s(t[e],!1)]))]]:["span",{}]}function s(e,o=!0){return"number"==typeof e?["span",t,e]:"string"==typeof e?["span",n,JSON.stringify(e)]:"boolean"==typeof e?["span",r,e]:I(e)?["object",{object:o?mt(e):e}]:["span",n,String(e)]}function l(e,t){const n=e.type;if(E(n))return;const r={};for(const o in e.ctx)c(n,o,t)&&(r[o]=e.ctx[o]);return r}function c(e,t,n){const r=e[n];return!!(C(r)&&r.includes(t)||I(r)&&t in r)||!(!e.extends||!c(e.extends,t,n))||!(!e.mixins||!e.mixins.some((e=>c(e,t,n))))||void 0}function u(e){return Fi(e)?"ShallowRef":e.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(o):window.devtoolsFormatters=[o]}(),Fa.debounce=Fa;var za=Fa;function Ua(e,t){if("undefined"==typeof window||!window)return;return function(e,t,n){St(e)?Qn(e,((e,r)=>{null==r||r.removeEventListener(t,n),null==e||e.addEventListener(t,n)})):Sr((()=>{e.addEventListener(t,n)})),Or((()=>{var r;null===(r=Et(e))||void 0===r||r.removeEventListener(t,n)}))}(window,"pointerdown",(n=>{const r=Et(e);r&&(r===n.target||n.composedPath().includes(r)||t(n))}))}function Ha(e,t){var n=e.getBoundingClientRect();return{width:n.width/1,height:n.height/1,top:n.top/1,right:n.right/1,bottom:n.bottom/1,left:n.left/1,x:n.left/1,y:n.top/1}}function Wa(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Va(e){var t=Wa(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qa(e){return e instanceof Wa(e).Element||e instanceof Element}function Ka(e){return e instanceof Wa(e).HTMLElement||e instanceof HTMLElement}function Ja(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wa(e).ShadowRoot||e instanceof ShadowRoot)}function Ga(e){return e?(e.nodeName||"").toLowerCase():null}function Ya(e){return((qa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Xa(e){return Ha(Ya(e)).left+Va(e).scrollLeft}function Za(e){return Wa(e).getComputedStyle(e)}function Qa(e){var t=Za(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function es(e,t,n){void 0===n&&(n=!1);var r=Ka(t);Ka(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1}(t);var o,i,a=Ya(t),s=Ha(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ga(t)||Qa(a))&&(l=(o=t)!==Wa(o)&&Ka(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:Va(o)),Ka(t)?((c=Ha(t)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Xa(a))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function ts(e){var t=Ha(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ns(e){return"html"===Ga(e)?e:e.assignedSlot||e.parentNode||(Ja(e)?e.host:null)||Ya(e)}function rs(e){return["html","body","#document"].indexOf(Ga(e))>=0?e.ownerDocument.body:Ka(e)&&Qa(e)?e:rs(ns(e))}function os(e,t){var n;void 0===t&&(t=[]);var r=rs(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Wa(r),a=o?[i].concat(i.visualViewport||[],Qa(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(os(ns(a)))}function is(e){return["table","td","th"].indexOf(Ga(e))>=0}function as(e){return Ka(e)&&"fixed"!==Za(e).position?e.offsetParent:null}function ss(e){for(var t=Wa(e),n=as(e);n&&is(n)&&"static"===Za(n).position;)n=as(n);return n&&("html"===Ga(n)||"body"===Ga(n)&&"static"===Za(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ka(e)&&"fixed"===Za(e).position)return null;for(var n=ns(e);Ka(n)&&["html","body"].indexOf(Ga(n))<0;){var r=Za(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var ls="top",cs="bottom",us="right",ds="left",ps=[ls,cs,us,ds],fs=ps.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),hs=[].concat(ps,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),gs=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vs(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function ms(e){return e.split("-")[0]}var ys=Math.max,bs=Math.min,_s=Math.round;function ws(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Ja(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function xs(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ss(e,t){return"viewport"===t?xs(function(e){var t=Wa(e),n=Ya(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Xa(e),y:s}}(e)):Ka(t)?function(e){var t=Ha(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):xs(function(e){var t,n=Ya(e),r=Va(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=ys(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ys(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Xa(e),l=-r.scrollTop;return"rtl"===Za(o||n).direction&&(s+=ys(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(Ya(e)))}function ks(e,t,n){var r="clippingParents"===t?function(e){var t=os(ns(e)),n=["absolute","fixed"].indexOf(Za(e).position)>=0&&Ka(e)?ss(e):e;return qa(n)?t.filter((function(e){return qa(e)&&ws(e,n)&&"body"!==Ga(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ss(e,n);return t.top=ys(r.top,t.top),t.right=bs(r.right,t.right),t.bottom=bs(r.bottom,t.bottom),t.left=ys(r.left,t.left),t}),Ss(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Cs(e){return e.split("-")[1]}function Os(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ps(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ms(o):null,a=o?Cs(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case ls:t={x:s,y:n.y-r.height};break;case cs:t={x:s,y:n.y+n.height};break;case us:t={x:n.x+n.width,y:l};break;case ds:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Os(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case"start":t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Es(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function $s(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ts(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,l=void 0===s?"viewport":s,c=n.elementContext,u=void 0===c?"popper":c,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,h=void 0===f?0:f,g=Es("number"!=typeof h?h:$s(h,ps)),v="popper"===u?"reference":"popper",m=e.rects.popper,y=e.elements[p?v:u],b=ks(qa(y)?y:y.contextElement||Ya(e.elements.popper),a,l),_=Ha(e.elements.reference),w=Ps({reference:_,element:m,strategy:"absolute",placement:o}),x=xs(Object.assign({},m,w)),S="popper"===u?x:_,k={top:b.top-S.top+g.top,bottom:S.bottom-b.bottom+g.bottom,left:b.left-S.left+g.left,right:S.right-b.right+g.right},C=e.modifiersData.offset;if("popper"===u&&C){var O=C[o];Object.keys(k).forEach((function(e){var t=[us,cs].indexOf(e)>=0?1:-1,n=[ls,cs].indexOf(e)>=0?"y":"x";k[e]+=O[n]*t}))}return k}var Is={placement:"bottom",modifiers:[],strategy:"absolute"};function js(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function As(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Is:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Is,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:qa(e)?os(e):e.contextElement?os(e.contextElement):[],popper:os(t)};var a,c,p=function(e){var t=vs(e);return gs.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=p.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};l.push(i||a)}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(js(t,n)){s.rects={reference:es(t,ss(n),"fixed"===s.options.strategy),popper:ts(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,d=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!js(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Ns={passive:!0};var Ds={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rs(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:_s(_s(t*r)/r)||0,y:_s(_s(n*r)/r)||0}}(a):"function"==typeof u?u(a):a,p=d.x,f=void 0===p?0:p,h=d.y,g=void 0===h?0:h,v=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),y=ds,b=ls,_=window;if(c){var w=ss(n),x="clientHeight",S="clientWidth";w===Wa(n)&&"static"!==Za(w=Ya(n)).position&&"absolute"===s&&(x="scrollHeight",S="scrollWidth"),o!==ls&&(o!==ds&&o!==us||"end"!==i)||(b=cs,g-=w[x]-r.height,g*=l?1:-1),o!==ds&&(o!==ls&&o!==cs||"end"!==i)||(y=us,f-=w[S]-r.width,f*=l?1:-1)}var k,C=Object.assign({position:s},c&&Ds);return l?Object.assign({},C,((k={})[b]=m?"0":"",k[y]=v?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",k)):Object.assign({},C,((t={})[b]=m?g+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Ls=As({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Wa(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ns)})),s&&l.addEventListener("resize",n.update,Ns),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ns)})),s&&l.removeEventListener("resize",n.update,Ns)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ps({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:ms(t.placement),variation:Cs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Rs(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rs(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Ka(o)&&Ga(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Ka(r)&&Ga(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});function Ms(e,t,n){return ys(e,bs(t,n))}var Bs={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,g=void 0===h?0:h,v=Ts(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=ms(t.placement),y=Cs(t.placement),b=!y,_=Os(m),w="x"===_?"y":"x",x=t.modifiersData.popperOffsets,S=t.rects.reference,k=t.rects.popper,C="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,O={x:0,y:0};if(x){if(i||s){var P="y"===_?ls:ds,E="y"===_?cs:us,$="y"===_?"height":"width",T=x[_],I=x[_]+v[P],j=x[_]-v[E],A=f?-k[$]/2:0,N="start"===y?S[$]:k[$],D="start"===y?-k[$]:-S[$],R=t.elements.arrow,L=f&&R?ts(R):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=M[P],F=M[E],z=Ms(0,S[$],L[$]),U=b?S[$]/2-A-z-B-C:N-z-B-C,H=b?-S[$]/2+A+z+F+C:D+z+F+C,W=t.elements.arrow&&ss(t.elements.arrow),V=W?"y"===_?W.clientTop||0:W.clientLeft||0:0,q=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,K=x[_]+U-q-V,J=x[_]+H-q;if(i){var G=Ms(f?bs(I,K):I,T,f?ys(j,J):j);x[_]=G,O[_]=G-T}if(s){var Y="x"===_?ls:ds,X="x"===_?cs:us,Z=x[w],Q=Z+v[Y],ee=Z-v[X],te=Ms(f?bs(Q,K):Q,Z,f?ys(ee,J):ee);x[w]=te,O[w]=te-Z}}t.modifiersData[r]=O}},requiresIfExists:["offset"]},Fs={left:"right",right:"left",bottom:"top",top:"bottom"};function zs(e){return e.replace(/left|right|bottom|top/g,(function(e){return Fs[e]}))}var Us={start:"end",end:"start"};function Hs(e){return e.replace(/start|end/g,(function(e){return Us[e]}))}var Ws={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,g=n.allowedAutoPlacements,v=t.options.placement,m=ms(v),y=l||(m===v||!h?[zs(v)]:function(e){if("auto"===ms(e))return[];var t=zs(e);return[Hs(e),t,Hs(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat("auto"===ms(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?hs:l,u=Cs(r),d=u?s?fs:fs.filter((function(e){return Cs(e)===u})):ps,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Ts(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ms(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),_=t.rects.reference,w=t.rects.popper,x=new Map,S=!0,k=b[0],C=0;C<b.length;C++){var O=b[C],P=ms(O),E="start"===Cs(O),$=[ls,cs].indexOf(P)>=0,T=$?"width":"height",I=Ts(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),j=$?E?us:ds:E?cs:ls;_[T]>w[T]&&(j=zs(j));var A=zs(j),N=[];if(i&&N.push(I[P]<=0),s&&N.push(I[j]<=0,I[A]<=0),N.every((function(e){return e}))){k=O,S=!1;break}x.set(O,N)}if(S)for(var D=function(e){var t=b.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},R=h?3:1;R>0;R--){if("break"===D(R))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};var Vs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=hs.reduce((function(e,n){return e[n]=function(e,t,n){var r=ms(e),o=[ds,ls].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ds,us].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var qs={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ms(n.placement),l=Os(s),c=[ds,us].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Es("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:$s(e,ps))}(o.padding,n),d=ts(i),p="y"===l?ls:ds,f="y"===l?cs:us,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],g=a[l]-n.rects.reference[l],v=ss(i),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-g/2,b=u[p],_=m-d[c]-u[f],w=m/2-d[c]/2+y,x=Ms(b,w,_),S=l;n.modifiersData[r]=((t={})[S]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ws(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};const Ks=e=>parseInt(e,10);function Js({arrowPadding:e,emit:t,locked:n,offsetDistance:r,offsetSkid:o,placement:i,popperNode:a,triggerNode:s}){const l=ct({isOpen:!1,popperInstance:null}),c=e=>{var t;null===(t=l.popperInstance)||void 0===t||t.setOptions((t=>({...t,modifiers:[...t.modifiers,{name:"eventListeners",enabled:e}]})))};Qn([()=>l.isOpen,i],(async([e])=>{e?(await u(),c(!0)):c(!1)}));const u=async()=>{await tn(),l.popperInstance=Ls(s.value,a.value,{placement:i.value,modifiers:[Bs,Ws,{name:"flip",enabled:!n.value},qs,{name:"arrow",options:{padding:Ks(e.value)}},Vs,{name:"offset",options:{offset:[Ks(o.value),Ks(r.value)]}}]}),l.popperInstance.update()};return Or((()=>{var e;null===(e=l.popperInstance)||void 0===e||e.destroy()})),{...It(l),open:()=>{l.isOpen||(l.isOpen=!0,t("open:popper"))},close:()=>{l.isOpen&&(l.isOpen=!1,t("close:popper"))}}}const Gs={id:"arrow","data-popper-arrow":""};function Ys(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}Ys('\n#arrow[data-v-20b7fd4a],\n  #arrow[data-v-20b7fd4a]::before {\n    transition: background 250ms ease-in-out;\n    position: absolute;\n    width: calc(10px - var(--popper-theme-border-width, 0px));\n    height: calc(10px - var(--popper-theme-border-width, 0px));\n    box-sizing: border-box;\n    background: var(--popper-theme-background-color);\n}\n#arrow[data-v-20b7fd4a] {\n    visibility: hidden;\n}\n#arrow[data-v-20b7fd4a]::before {\n    visibility: visible;\n    content: "";\n    transform: rotate(45deg);\n}\n\n  /* Top arrow */\n.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a] {\n    bottom: -5px;\n}\n.popper[data-popper-placement^="top"] > #arrow[data-v-20b7fd4a]::before {\n    border-right: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n    border-bottom: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n  /* Bottom arrow */\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a] {\n    top: -5px;\n}\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-20b7fd4a]::before {\n    border-left: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n    border-top: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n  /* Left arrow */\n.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a] {\n    right: -5px;\n}\n.popper[data-popper-placement^="left"] > #arrow[data-v-20b7fd4a]::before {\n    border-right: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n    border-top: var(--popper-theme-border-width)\n      var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n  /* Right arrow */\n.popper[data-popper-placement^="right"] > #arrow[data-v-20b7fd4a] {\n    left: -5px;\n}\n');const Xs={render:function(e,t){return Go(),Qo("div",Gs)},__scopeId:"data-v-20b7fd4a"};var Zs=Xs;const Qs=["onKeyup"];var el={props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetSkid:{type:String,default:"0"},offsetDistance:{type:String,default:"12"},hover:{type:Boolean,default:!1},show:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:9999},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"},interactive:{type:Boolean,default:!0},locked:{type:Boolean,default:!1},content:{type:String,default:null}},emits:["open:popper","close:popper"],setup(e,{emit:t}){const n=e;na((t=>({c81fc0a4:e.zIndex})));const o=Mi(),i=kt(null),a=kt(null),s=kt(null),l=kt(!1);Sr((()=>{const e=o.default();e&&e.length}));const{arrowPadding:c,closeDelay:u,content:p,disableClickAway:f,disabled:h,interactive:g,locked:v,offsetDistance:m,offsetSkid:y,openDelay:b,placement:_,show:w}=It(n),{isOpen:x,open:S,close:k}=Js({arrowPadding:c,emit:t,locked:v,offsetDistance:m,offsetSkid:y,placement:_,popperNode:a,triggerNode:s}),{hasContent:C}=function(e,t,n){let r=null;const o=kt(!1);Sr((()=>{(void 0!==e.content||n.value)&&(o.value=!0),r=new MutationObserver(i),r.observe(t.value,{childList:!0,subtree:!0})})),Or((()=>r.disconnect())),Qn(n,(e=>{o.value=!!e}));const i=()=>{e.content?o.value=!0:o.value=!1};return{hasContent:o}}(o,a,p),O=Li((()=>null!==w.value)),P=Li((()=>h.value||!C.value)),E=Li((()=>x.value&&!P.value)),$=Li((()=>!f.value&&!O.value)),T=Li((()=>g.value?`border: ${m.value}px solid transparent; margin: -${m.value}px;`:null)),I=za.debounce(S,b.value),j=za.debounce(k,u.value),A=async()=>{P.value||O.value||(j.clear(),I())},N=async()=>{O.value||(I.clear(),j())},D=()=>{x.value?N():A()};return Qn([C,h],(([e,t])=>{!x.value||e&&!t||k()})),Qn(x,(e=>{e?l.value=!0:za.debounce((()=>{l.value=!1}),200)})),Xn((()=>{O.value&&(w.value?I():j())})),Xn((()=>{$.value&&Ua(i,N)})),(t,n)=>{return Go(),Qo("div",{class:"inline-block",style:r(Et(T)),onMouseleave:n[2]||(n[2]=t=>e.hover&&N()),ref:(e,t)=>{t.popperContainerNode=e,i.value=e}},[ai("div",{ref:(e,t)=>{t.triggerNode=e,s.value=e},onMouseover:n[0]||(n[0]=t=>e.hover&&A()),onClick:D,onFocus:A,onKeyup:(o=N,c=["esc"],e=>{if(!("key"in e))return;const t=W(e.key);return c.some((e=>e===t||Na[e]===t))?o(e):void 0})},[Ur(t.$slots,"default")],40,Qs),si(ia,{name:"fade"},{default:Bn((()=>[Ar(ai("div",{onClick:n[1]||(n[1]=e=>!Et(g)&&N()),class:"popper",ref:(e,t)=>{t.popperNode=e,a.value=e}},[Ur(t.$slots,"content",{close:Et(k),isOpen:l.value},(()=>[ui(d(Et(p)),1)])),e.arrow?(Go(),ei(Zs,{key:0})):pi("",!0)],512),[[Da,Et(E)]])])),_:3})],36);var o,c}}};Ys("\n.inline-block[data-v-5784ed69] {\n    display: inline-block;\n}\n.popper[data-v-5784ed69] {\n    transition: background 250ms ease-in-out;\n    background: var(--popper-theme-background-color);\n    padding: var(--popper-theme-padding);\n    color: var(--popper-theme-text-color);\n    border-radius: var(--popper-theme-border-radius);\n    border-width: var(--popper-theme-border-width);\n    border-style: var(--popper-theme-border-style);\n    border-color: var(--popper-theme-border-color);\n    box-shadow: var(--popper-theme-box-shadow);\n    z-index: var(--c81fc0a4);\n}\n.popper[data-v-5784ed69]:hover,\n  .popper:hover > #arrow[data-v-5784ed69]::before {\n    background: var(--popper-theme-background-color-hover);\n}\n.inline-block[data-v-5784ed69] {\n    display: inline-block;\n}\n.fade-enter-active[data-v-5784ed69],\n  .fade-leave-active[data-v-5784ed69] {\n    transition: opacity 0.2s ease;\n}\n.fade-enter-from[data-v-5784ed69],\n  .fade-leave-to[data-v-5784ed69] {\n    opacity: 0;\n}\n"),el.__scopeId="data-v-5784ed69";var tl,nl=(()=>{const e=el;return e.install=t=>{t.component("Popper",e)},e})();const rl="undefined"!=typeof window,ol=()=>{};function il(e){return"function"==typeof e?e():Et(e)}function al(e,t){return function(...n){e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})}}function sl(e){return!!Q&&(function(e){Q&&Q.cleanups.push(e)}(e),!0)}function ll(e,t=200,n={}){return al(function(e,t={}){let n,r;return o=>{const i=il(e),a=il(t.maxWait);if(n&&clearTimeout(n),i<=0||void 0!==a&&a<=0)return r&&(clearTimeout(r),r=null),o();a&&!r&&(r=setTimeout((()=>{n&&clearTimeout(n),r=null,o()}),a)),n=setTimeout((()=>{r&&clearTimeout(r),r=null,o()}),i)}}(t,n),e)}function cl(e,t=200,n=!1,r=!0){return al(function(e,t=!0,n=!0){let r,o=0,i=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return s=>{const l=il(e),c=Date.now()-o;if(a(),l<=0)return o=Date.now(),s();c>l&&(n||!i)?(o=Date.now(),s()):t&&(r=setTimeout((()=>{o=Date.now(),i=!0,a(),s()}),l-c)),n||r||(r=setTimeout((()=>i=!0),l)),i=!1}}(t,n,r),e)}function ul(e,t=!0){wi()?Sr(e):t?e():tn(e)}function dl(e){var t;const n=il(e);return null!=(t=null==n?void 0:n.$el)?t:n}rl&&(null==(tl=null==window?void 0:window.navigator)?void 0:tl.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const pl=rl?window:void 0;function fl(...e){let t,n,r,o;if("string"==typeof e[0]?([n,r,o]=e,t=pl):[t,n,r,o]=e,!t)return ol;let i=ol;const a=Qn((()=>dl(t)),(e=>{i(),e&&(e.addEventListener(n,r,o),i=()=>{e.removeEventListener(n,r,o),i=ol})}),{immediate:!0,flush:"post"}),s=()=>{a(),i()};return sl(s),s}function hl(e,t=!1){const n=kt(),r=()=>n.value=Boolean(e());return r(),ul(r,t),n}function gl(e,t={}){const{window:n=pl}=t,r=hl((()=>n&&"matchMedia"in n&&"function"==typeof n.matchMedia));let o;const i=kt(!1),a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},s=()=>{var t;r.value&&(a(),o=n.matchMedia((t=e,"function"==typeof t?Li(t):kt(t)).value),i.value=o.matches,"addEventListener"in o?o.addEventListener("change",s):o.addListener(s))};return Xn(s),sl((()=>a())),i}rl&&window.document,rl&&window.navigator,rl&&window.location;var vl=Object.defineProperty,ml=Object.getOwnPropertySymbols,yl=Object.prototype.hasOwnProperty,bl=Object.prototype.propertyIsEnumerable,_l=(e,t,n)=>t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function wl(e,t={}){function n(t,n){let r=e[t];return null!=n&&(r=function(e,t){var n;if("number"==typeof e)return e+t;const r=(null==(n=e.match(/^-?[0-9]+\.?[0-9]*/))?void 0:n[0])||"",o=e.slice(r.length),i=parseFloat(r)+t;return Number.isNaN(i)?e:i+o}(r,n)),"number"==typeof r&&(r=`${r}px`),r}const{window:r=pl}=t;function o(e){return!!r&&r.matchMedia(e).matches}const i=e=>gl(`(min-width: ${n(e)})`,t),a=Object.keys(e).reduce(((e,t)=>(Object.defineProperty(e,t,{get:()=>i(t),enumerable:!0,configurable:!0}),e)),{});return((e,t)=>{for(var n in t||(t={}))yl.call(t,n)&&_l(e,n,t[n]);if(ml)for(var n of ml(t))bl.call(t,n)&&_l(e,n,t[n]);return e})({greater:e=>gl(`(min-width: ${n(e,.1)})`,t),greaterOrEqual:i,smaller:e=>gl(`(max-width: ${n(e,-.1)})`,t),smallerOrEqual:e=>gl(`(max-width: ${n(e)})`,t),between:(e,r)=>gl(`(min-width: ${n(e)}) and (max-width: ${n(r,-.1)})`,t),isGreater:e=>o(`(min-width: ${n(e,.1)})`),isGreaterOrEqual:e=>o(`(min-width: ${n(e)})`),isSmaller:e=>o(`(max-width: ${n(e,-.1)})`),isSmallerOrEqual:e=>o(`(max-width: ${n(e)})`),isInBetween:(e,t)=>o(`(min-width: ${n(e)}) and (max-width: ${n(t,-.1)})`)},a)}function xl({window:e=pl}={}){const t=t=>{const{state:n,length:r}=(null==e?void 0:e.history)||{},{hash:o,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:p}=(null==e?void 0:e.location)||{};return{trigger:t,state:n,length:r,hash:o,host:i,hostname:a,href:s,origin:l,pathname:c,port:u,protocol:d,search:p}},n=kt(t("load"));return e&&(fl(e,"popstate",(()=>n.value=t("popstate")),{passive:!0}),fl(e,"hashchange",(()=>n.value=t("hashchange")),{passive:!0})),n}const Sl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},kl="__vueuse_ssr_handlers__";Sl[kl]=Sl[kl]||{},Sl[kl];var Cl=Object.getOwnPropertySymbols,Ol=Object.prototype.hasOwnProperty,Pl=Object.prototype.propertyIsEnumerable;function El(e,t,n={}){const r=n,{window:o=pl}=r,i=((e,t)=>{var n={};for(var r in e)Ol.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Cl)for(var r of Cl(e))t.indexOf(r)<0&&Pl.call(e,r)&&(n[r]=e[r]);return n})(r,["window"]);let a;const s=hl((()=>o&&"ResizeObserver"in o)),l=()=>{a&&(a.disconnect(),a=void 0)},c=Qn((()=>dl(e)),(e=>{l(),s.value&&o&&e&&(a=new ResizeObserver(t),a.observe(e,i))}),{immediate:!0,flush:"post"}),u=()=>{l(),c()};return sl(u),{isSupported:s,stop:u}}function $l(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:o=!0,immediate:i=!0}=t,a=kt(0),s=kt(0),l=kt(0),c=kt(0),u=kt(0),d=kt(0),p=kt(0),f=kt(0);function h(){const t=dl(e);if(!t)return void(n&&(a.value=0,s.value=0,l.value=0,c.value=0,u.value=0,d.value=0,p.value=0,f.value=0));const r=t.getBoundingClientRect();a.value=r.height,s.value=r.bottom,l.value=r.left,c.value=r.right,u.value=r.top,d.value=r.width,p.value=r.x,f.value=r.y}return El(e,h),Qn((()=>dl(e)),(e=>!e&&h())),o&&fl("scroll",h,{passive:!0}),r&&fl("resize",h,{passive:!0}),ul((()=>{i&&h()})),{height:a,bottom:s,left:l,right:c,top:u,width:d,x:p,y:f,update:h}}function Tl(e,t={width:0,height:0},n={}){const{box:r="content-box"}=n,o=kt(t.width),i=kt(t.height);return El(e,(([e])=>{const t="border-box"===r?e.borderBoxSize:"content-box"===r?e.contentBoxSize:e.devicePixelContentBoxSize;t?(o.value=t.reduce(((e,{inlineSize:t})=>e+t),0),i.value=t.reduce(((e,{blockSize:t})=>e+t),0)):(o.value=e.contentRect.width,i.value=e.contentRect.height)}),n),Qn((()=>dl(e)),(e=>{o.value=e?t.width:0,i.value=e?t.height:0})),{width:o,height:i}}function Il(e,t={}){const{throttle:n=0,idle:r=200,onStop:o=ol,onScroll:i=ol,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto"}=t,c=kt(0),u=kt(0),d=Li({get:()=>c.value,set(e){f(e,void 0)}}),p=Li({get:()=>u.value,set(e){f(void 0,e)}});function f(t,n){var r,o,i;const a=il(e);a&&(null==(i=a instanceof Document?document.body:a)||i.scrollTo({top:null!=(r=il(n))?r:p.value,left:null!=(o=il(t))?o:d.value,behavior:il(l)}))}const h=kt(!1),g=ct({left:!0,right:!1,top:!0,bottom:!1}),v=ct({left:!1,right:!1,top:!1,bottom:!1}),m=ll((e=>{h.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,o(e)}),n+r),y=e=>{const t=e.target===document?e.target.documentElement:e.target,n=t.scrollLeft;v.left=n<c.value,v.right=n>u.value,g.left=n<=0+(a.left||0),g.right=n+t.clientWidth>=t.scrollWidth-(a.right||0)-1,c.value=n;let r=t.scrollTop;e.target!==document||r||(r=document.body.scrollTop),v.top=r<u.value,v.bottom=r>u.value,g.top=r<=0+(a.top||0),g.bottom=r+t.clientHeight>=t.scrollHeight-(a.bottom||0)-1,u.value=r,h.value=!0,m(e),i(e)};return fl(e,"scroll",n?cl(y,n):y,s),{x:d,y:p,isScrolling:h,arrivedState:g,directions:v}}const jl=(e={})=>{const{window:t=pl}=e,n=null==t?void 0:t.navigator,r=hl((()=>n&&"language"in n)),o=kt(null==n?void 0:n.language);return fl(t,"languagechange",(()=>{n&&(o.value=n.language)})),{isSupported:r,language:o}};var Al,Nl;(Nl=Al||(Al={})).UP="UP",Nl.RIGHT="RIGHT",Nl.DOWN="DOWN",Nl.LEFT="LEFT",Nl.NONE="NONE";var Dl=Object.defineProperty,Rl=Object.getOwnPropertySymbols,Ll=Object.prototype.hasOwnProperty,Ml=Object.prototype.propertyIsEnumerable,Bl=(e,t,n)=>t in e?Dl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Fl(e={}){const{window:t=pl,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:o=!0,includeScrollbar:i=!0}=e,a=kt(n),s=kt(r),l=()=>{t&&(i?(a.value=t.innerWidth,s.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),ul(l),fl("resize",l,{passive:!0}),o&&fl("orientationchange",l,{passive:!0}),{width:a,height:s}}function zl(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}((e,t)=>{for(var n in t||(t={}))Ll.call(t,n)&&Bl(e,n,t[n]);if(Rl)for(var n of Rl(t))Ml.call(t,n)&&Bl(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Ul="function"==typeof Proxy;let Hl,Wl;function Vl(){return void 0!==Hl||("undefined"!=typeof window&&window.performance?(Hl=!0,Wl=window.performance):"undefined"!=typeof global&&(null===(e=global.perf_hooks)||void 0===e?void 0:e.performance)?(Hl=!0,Wl=global.perf_hooks.performance):Hl=!1),Hl?Wl.now():Date.now();var e}class ql{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const a in e.settings){const t=e.settings[a];n[a]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(o,t)}catch(i){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(i){}o=e},now:()=>Vl()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function Kl(e,t){const n=e,r=zl(),o=zl().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=Ul&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const e=i?new ql(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}
/*!
  * vue-router v4.1.6
  * (c) 2022 Eduardo San Martin Morote
  * @license MIT
  */const Jl="undefined"!=typeof window;const Gl=Object.assign;function Yl(e,t){const n={};for(const r in t){const o=t[r];n[r]=Zl(o)?o.map(e):e(o)}return n}const Xl=()=>{},Zl=Array.isArray;function Ql(e){Array.from(arguments).slice(1)}const ec=/\/$/;function tc(e,t,n="/"){let r,o={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),o=e(i)),s>-1&&(r=r||t.slice(0,s),a=t.slice(s,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return Ql(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,i,a=n.length-1;for(o=0;o<r.length;o++)if(i=r[o],"."!==i){if(".."!==i)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function nc(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function rc(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&oc(t.matched[r],n.matched[o])&&ic(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function oc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ic(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ac(e[n],t[n]))return!1;return!0}function ac(e,t){return Zl(e)?sc(e,t):Zl(t)?sc(t,e):e===t}function sc(e,t){return Zl(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var lc,cc,uc,dc;function pc(e){if(!e)if(Jl){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ec,"")}(cc=lc||(lc={})).pop="pop",cc.push="push",(dc=uc||(uc={})).back="back",dc.forward="forward",dc.unknown="";const fc=/^[^#]+#/;function hc(e,t){return e.replace(fc,"#")+t}const gc=()=>({left:window.pageXOffset,top:window.pageYOffset});function vc(e){let t;if("el"in e){const r=e.el,o="string"==typeof r&&r.startsWith("#");if(!("string"!=typeof e.el||o&&document.getElementById(e.el.slice(1))))try{const t=document.querySelector(e.el);if(o&&t)return void Ql(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`)}catch(n){return void Ql(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`)}const i="string"==typeof r?o?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return void Ql(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);t=function(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)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function mc(e,t){return(history.state?history.state.position-t:-1)+e}const yc=new Map;function bc(e,t){const{pathname:n,search:r,hash:o}=t,i=e.indexOf("#");if(i>-1){let t=o.includes(e.slice(i))?e.slice(i).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),nc(n,"")}return nc(n,e)+r+o}function _c(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?gc():null}}function wc(e){const{history:t,location:n}=window,r={value:bc(e,n)},o={value:t.state};function i(r,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:location.protocol+"//"+location.host+e+r;try{t[a?"replaceState":"pushState"](i,"",l),o.value=i}catch(c){Ql("Error with push/replace State",c),n[a?"replace":"assign"](l)}}return o.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:o,push:function(e,n){const a=Gl({},o.value,t.state,{forward:e,scroll:gc()});t.state||Ql("history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:\n\nhistory.replaceState(history.state, '', url)\n\nYou can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state."),i(a.current,a,!0),i(e,Gl({},_c(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){i(e,Gl({},t.state,_c(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function xc(e){const t=wc(e=pc(e)),n=function(e,t,n,r){let o=[],i=[],a=null;const s=({state:i})=>{const s=bc(e,location),l=n.value,c=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);u=c?i.position-c.position:0}else r(s);o.forEach((e=>{e(n.value,l,{delta:u,type:lc.pop,direction:u?u>0?uc.forward:uc.back:uc.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Gl({},e.state,{scroll:gc()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const r=Gl({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:hc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Sc(e){return"string"==typeof e||"symbol"==typeof e}const kc={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Cc=Symbol("navigation failure");var Oc,Pc;(Pc=Oc||(Oc={}))[Pc.aborted=4]="aborted",Pc[Pc.cancelled=8]="cancelled",Pc[Pc.duplicated=16]="duplicated";const Ec={1:({location:e,currentLocation:t})=>`No match for\n ${JSON.stringify(e)}${t?"\nwhile being at\n"+JSON.stringify(t):""}`,2:({from:e,to:t})=>`Redirected from "${e.fullPath}" to "${function(e){if("string"==typeof e)return e;if("path"in e)return e.path;const t={};for(const n of Ic)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}(t)}" via a navigation guard.`,4:({from:e,to:t})=>`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`,8:({from:e,to:t})=>`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`,16:({from:e,to:t})=>`Avoided redundant navigation to current location: "${e.fullPath}".`};function $c(e,t){return Gl(new Error(Ec[e](t)),{type:e,[Cc]:!0},t)}function Tc(e,t){return e instanceof Error&&Cc in e&&(null==t||!!(e.type&t))}const Ic=["params","query","hash"];const jc={sensitive:!1,strict:!1,start:!0,end:!0},Ac=/[.+*?^${}()[\]/\\]/g;function Nc(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Dc(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const e=Nc(r[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-r.length)){if(Rc(r))return 1;if(Rc(o))return-1}return o.length-r.length}function Rc(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Lc={type:0,value:""},Mc=/[a-zA-Z0-9_]/;function Bc(e,t,n){const r=function(e,t){const n=Gl({},jc,t),r=[];let o=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const r=l[t];let a=40+(n.sensitive?.25:0);if(0===r.type)t||(o+="/"),o+=r.value.replace(Ac,"\\$&"),a+=40;else if(1===r.type){const{value:e,repeatable:n,optional:c,regexp:u}=r;i.push({name:e,repeatable:n,optional:c});const d=u||"[^/]+?";if("[^/]+?"!==d){a+=10;try{new RegExp(`(${d})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+s.message)}}let p=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(p=c&&l.length<2?`(?:/${p})`:"/"+p),c&&(p+="?"),o+=p,a+=20,c&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");return{re:a,score:r,keys:i,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",o=i[r-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",r=!1;for(const o of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:a,optional:s}=e,l=i in t?t[i]:"";if(Zl(l)&&!a)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const c=Zl(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${i}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[Lc]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,r=n;const o=[];let i;function a(){i&&o.push(i),i=[]}let s,l=0,c="",u="";function d(){c&&(0===n?i.push({type:0,value:c}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function p(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&d(),a()):":"===s?(d(),n=1):p();break;case 4:p(),n=r;break;case 1:"("===s?n=2:Mc.test(s)?p():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else r=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),o}(e.path),n);{const t=new Set;for(const n of r.keys)t.has(n.name)&&Ql(`Found duplicated params with name "${n.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),t.add(n.name)}const o=Gl(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Fc(e,t){const n=[],r=new Map;function o(e,n,r){const s=!r,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Uc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);!function(e,t){t&&t.record.name&&!e.name&&!e.path&&Ql(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}(l,n),l.aliasOf=r&&r.record;const c=Vc(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Gl({},l,{components:r?r.record.components:l.components,path:e,aliasOf:r?r.record:l}))}let d,p;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&r+u)}if("*"===t.path)throw new Error('Catch all routes ("*") must now be defined using a param with a custom regexp.\nSee more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.');if(d=Bc(t,n,c),n&&"/"===u[0]&&Jc(d,n),r?(r.alias.push(d),Kc(r,d)):(p=p||d,p!==d&&p.alias.push(d),s&&e.name&&!Hc(d)&&i(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],d,r&&r.children[t])}r=r||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&a(d)}return p?()=>{i(p)}:Xl}function i(e){if(Sc(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t<n.length&&Dc(e,n[t])>=0&&(e.record.path!==n[t].record.path||!Gc(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Hc(e)&&r.set(e.record.name,e)}return t=Vc({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,i,a,s={};if("name"in e&&e.name){if(o=r.get(e.name),!o)throw $c(1,{location:e});{const t=Object.keys(e.params||{}).filter((e=>!o.keys.find((t=>t.name===e))));t.length&&Ql(`Discarded invalid param(s) "${t.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}a=o.record.name,s=Gl(zc(t.params,o.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&zc(e.params,o.keys.map((e=>e.name)))),i=o.stringify(s)}else if("path"in e)i=e.path,i.startsWith("/")||Ql(`The Matcher cannot resolve relative paths but received "${i}". Unless you directly called \`matcher.resolve("${i}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`),o=n.find((e=>e.re.test(i))),o&&(s=o.parse(i),a=o.record.name);else{if(o=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw $c(1,{location:e,currentLocation:t});a=o.record.name,s=Gl({},t.params,e.params),i=o.stringify(s)}const l=[];let c=o;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:i,params:s,matched:l,meta:Wc(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return r.get(e)}}}function zc(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Uc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="boolean"==typeof n?n:n[r];return t}function Hc(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wc(e){return e.reduce(((e,t)=>Gl(e,t.meta)),{})}function Vc(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function qc(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function Kc(e,t){for(const n of e.keys)if(!n.optional&&!t.keys.find(qc.bind(null,n)))return Ql(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);for(const n of t.keys)if(!n.optional&&!e.keys.find(qc.bind(null,n)))return Ql(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`)}function Jc(e,t){for(const n of t.keys)if(!e.keys.find(qc.bind(null,n)))return Ql(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`)}function Gc(e,t){return t.children.some((t=>t===e||Gc(e,t)))}const Yc=/#/g,Xc=/&/g,Zc=/\//g,Qc=/=/g,eu=/\?/g,tu=/\+/g,nu=/%5B/g,ru=/%5D/g,ou=/%5E/g,iu=/%60/g,au=/%7B/g,su=/%7C/g,lu=/%7D/g,cu=/%20/g;function uu(e){return encodeURI(""+e).replace(su,"|").replace(nu,"[").replace(ru,"]")}function du(e){return uu(e).replace(tu,"%2B").replace(cu,"+").replace(Yc,"%23").replace(Xc,"%26").replace(iu,"`").replace(au,"{").replace(lu,"}").replace(ou,"^")}function pu(e){return null==e?"":function(e){return uu(e).replace(Yc,"%23").replace(eu,"%3F")}(e).replace(Zc,"%2F")}function fu(e){try{return decodeURIComponent(""+e)}catch(t){Ql(`Error decoding "${e}". Using original value`)}return""+e}function hu(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(tu," "),o=e.indexOf("="),i=fu(o<0?e:e.slice(0,o)),a=o<0?null:fu(e.slice(o+1));if(i in t){let e=t[i];Zl(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}function gu(e){let t="";for(let n in e){const r=e[n];if(n=du(n).replace(Qc,"%3D"),null==r){void 0!==r&&(t+=(t.length?"&":"")+n);continue}(Zl(r)?r.map((e=>e&&du(e))):[r&&du(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function vu(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=Zl(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const mu=Symbol("router view location matched"),yu=Symbol("router view depth"),bu=Symbol("router"),_u=Symbol("route location"),wu=Symbol("router view location");function xu(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function Su(e,t,n,r,o){const i=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise(((a,s)=>{const l=e=>{var l;!1===e?s($c(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s($c(2,{from:t,to:e})):(i&&r.enterCallbacks[o]===i&&"function"==typeof e&&i.push(e),a())},c=e.call(r&&r.instances[o],t,n,function(e,t,n){let r=0;return function(){1==r++&&Ql(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,1===r&&e.apply(null,arguments)}}(l,t,n));let u=Promise.resolve(c);if(e.length<3&&(u=u.then(l)),e.length>2){const t=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:\n${e.toString()}\n. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if("object"==typeof c&&"then"in c)u=u.then((e=>l._called?e:(Ql(t),Promise.reject(new Error("Invalid navigation guard")))));else if(void 0!==c&&!l._called)return Ql(t),void s(new Error("Invalid navigation guard"))}u.catch((e=>s(e)))}))}function ku(e,t,n,r){const o=[];for(const a of e){a.components||a.children.length||Ql(`Record with path "${a.path}" is either missing a "component(s)" or "children" property.`);for(const e in a.components){let s=a.components[e];if(!s||"object"!=typeof s&&"function"!=typeof s)throw Ql(`Component "${e}" in record with path "${a.path}" is not a valid component. Received "${String(s)}".`),new Error("Invalid route component");if("then"in s){Ql(`Component "${e}" in record with path "${a.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const t=s;s=()=>t}else s.__asyncLoader&&!s.__warnedDefineAsync&&(s.__warnedDefineAsync=!0,Ql(`Component "${e}" in record with path "${a.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(s.__vccOpts||s)[t];i&&o.push(Su(i,n,r,a,e))}else{let i=s();"catch"in i||(Ql(`Component "${e}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),i=Promise.resolve(i)),o.push((()=>i.then((o=>{if(!o)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=(s=o).__esModule||"Module"===s[Symbol.toStringTag]?o.default:o;var s;a.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&Su(l,n,r,a,e)()}))))}}}var i;return o}function Cu(e){const t=Yn(bu),n=Yn(_u),r=Li((()=>t.resolve(Et(e.to)))),o=Li((()=>{const{matched:e}=r.value,{length:t}=e,o=e[t-1],i=n.matched;if(!o||!i.length)return-1;const a=i.findIndex(oc.bind(null,o));if(a>-1)return a;const s=Pu(e[t-2]);return t>1&&Pu(o)===s&&i[i.length-1].path!==s?i.findIndex(oc.bind(null,e[t-2])):a})),i=Li((()=>o.value>-1&&function(e,t){for(const n in t){const r=t[n],o=e[n];if("string"==typeof r){if(r!==o)return!1}else if(!Zl(o)||o.length!==r.length||r.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,r.value.params))),a=Li((()=>o.value>-1&&o.value===n.matched.length-1&&ic(n.params,r.value.params)));if(Jl){const e=wi();if(e){const t={route:r.value,isActive:i.value,isExactActive:a.value};e.__vrl_devtools=e.__vrl_devtools||[],e.__vrl_devtools.push(t),Xn((()=>{t.route=r.value,t.isActive=i.value,t.isExactActive=a.value}),{flush:"post"})}}return{route:r,href:Li((()=>r.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Et(e.replace)?"replace":"push"](Et(e.to)).catch(Xl):Promise.resolve()}}}const Ou=fr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Cu,setup(e,{slots:t}){const n=ct(Cu(e)),{options:r}=Yn(bu),o=Li((()=>({[Eu(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Eu(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&t.default(n);return e.custom?r:Bi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}});function Pu(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Eu=(e,t,n)=>null!=e?e:null!=t?t:n;function $u(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Tu=fr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){!function(){const e=wi(),t=e.parent&&e.parent.type.name;if(t&&("KeepAlive"===t||t.includes("Transition"))){const e="KeepAlive"===t?"keep-alive":"transition";Ql(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.\nUse slot props instead:\n\n<router-view v-slot="{ Component }">\n  <${e}>\n    <component :is="Component" />\n  </${e}>\n</router-view>`)}}();const r=Yn(wu),o=Li((()=>e.route||r.value)),i=Yn(yu,0),a=Li((()=>{let e=Et(i);const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=Li((()=>o.value.matched[a.value]));Gn(yu,Li((()=>a.value+1))),Gn(mu,s),Gn(wu,o);const l=kt();return Qn((()=>[l.value,s.value,e.name]),(([e,t,n],[r,o,i])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&oc(t,o)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=o.value,i=e.name,c=s.value,u=c&&c.components[i];if(!u)return $u(n.default,{Component:u,route:r});const d=c.props[i],p=d?!0===d?r.params:"function"==typeof d?d(r):d:null,f=Bi(u,Gl({},p,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(c.instances[i]=null)},ref:l}));if(Jl&&f.ref){const e={depth:a.value,name:c.name,path:c.path,meta:c.meta};(Zl(f.ref)?f.ref.map((e=>e.i)):[f.ref.i]).forEach((t=>{t.__vrv_devtools=e}))}return $u(n.default,{Component:f,route:r})||f}}});function Iu(e,t){const n=Gl({},e,{matched:e.matched.map((e=>function(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}(e,["instances","children","aliasOf"])))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:n}}}function ju(e){return{_custom:{display:e}}}let Au=0;function Nu(e,t,n){if(t.__hasDevtools)return;t.__hasDevtools=!0;const r=Au++;Kl({id:"org.vuejs.router"+(r?"."+r:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},(o=>{o.now,o.on.inspectComponent(((e,n)=>{e.instanceData&&e.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:Iu(t.currentRoute.value,"Current Route")})})),o.on.visitComponentTree((({treeNode:e,componentInstance:t})=>{if(t.__vrv_devtools){const n=t.__vrv_devtools;e.tags.push({label:(n.name?`${n.name.toString()}: `:"")+n.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:Ru})}Zl(t.__vrl_devtools)&&(t.__devtoolsApi=o,t.__vrl_devtools.forEach((t=>{let n=Bu,r="";t.isExactActive?(n=Mu,r="This is exactly active"):t.isActive&&(n=Lu,r="This link is active"),e.tags.push({label:t.route.path,textColor:0,tooltip:r,backgroundColor:n})})))})),Qn(t.currentRoute,(()=>{l(),o.notifyComponentUpdate(),o.sendInspectorTree(s),o.sendInspectorState(s)}));const i="router:navigations:"+r;o.addTimelineLayer({id:i,label:`Router${r?" "+r:""} Navigations`,color:4237508}),t.onError(((e,t)=>{o.addTimelineEvent({layerId:i,event:{title:"Error during Navigation",subtitle:t.fullPath,logType:"error",time:o.now(),data:{error:e},groupId:t.meta.__navigationId}})}));let a=0;t.beforeEach(((e,t)=>{const n={guard:ju("beforeEach"),from:Iu(t,"Current Location during this navigation"),to:Iu(e,"Target location")};Object.defineProperty(e.meta,"__navigationId",{value:a++}),o.addTimelineEvent({layerId:i,event:{time:o.now(),title:"Start of navigation",subtitle:e.fullPath,data:n,groupId:e.meta.__navigationId}})})),t.afterEach(((e,t,n)=>{const r={guard:ju("afterEach")};n?(r.failure={_custom:{type:Error,readOnly:!0,display:n?n.message:"",tooltip:"Navigation Failure",value:n}},r.status=ju("❌")):r.status=ju("✅"),r.from=Iu(t,"Current Location during this navigation"),r.to=Iu(e,"Target location"),o.addTimelineEvent({layerId:i,event:{title:"End of navigation",subtitle:e.fullPath,time:o.now(),data:r,logType:n?"warning":"default",groupId:e.meta.__navigationId}})}));const s="router-inspector:"+r;function l(){if(!c)return;const e=c;let r=n.getRoutes().filter((e=>!e.parent));r.forEach(Wu),e.filter&&(r=r.filter((t=>Vu(t,e.filter.toLowerCase())))),r.forEach((e=>Hu(e,t.currentRoute.value))),e.rootNodes=r.map(Fu)}let c;o.addInspector({id:s,label:"Routes"+(r?" "+r:""),icon:"book",treeFilterPlaceholder:"Search routes"}),o.on.getInspectorTree((t=>{c=t,t.app===e&&t.inspectorId===s&&l()})),o.on.getInspectorState((t=>{if(t.app===e&&t.inspectorId===s){const e=n.getRoutes().find((e=>e.record.__vd_id===t.nodeId));e&&(t.state={options:Du(e)})}})),o.sendInspectorTree(s),o.sendInspectorState(s)}))}function Du(e){const{record:t}=e,n=[{editable:!1,key:"path",value:t.path}];return null!=t.name&&n.push({editable:!1,key:"name",value:t.name}),n.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&n.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map((e=>`${e.name}${function(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}(e)}`)).join(" "),tooltip:"Param keys",value:e.keys}}}),null!=t.redirect&&n.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&n.push({editable:!1,key:"aliases",value:e.alias.map((e=>e.record.path))}),Object.keys(e.record.meta).length&&n.push({editable:!1,key:"meta",value:e.record.meta}),n.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map((e=>e.join(", "))).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),n}const Ru=15485081,Lu=2450411,Mu=8702998,Bu=16486972;function Fu(e){const t=[],{record:n}=e;null!=n.name&&t.push({label:String(n.name),textColor:0,backgroundColor:2282478}),n.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Bu}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:Ru}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:Mu}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:Lu}),n.redirect&&t.push({label:"string"==typeof n.redirect?`redirect: ${n.redirect}`:"redirects",textColor:16777215,backgroundColor:6710886});let r=n.__vd_id;return null==r&&(r=String(zu++),n.__vd_id=r),{id:r,label:n.path,tags:t,children:e.children.map(Fu)}}let zu=0;const Uu=/^\/(.*)\/([a-z]*)$/;function Hu(e,t){const n=t.matched.length&&oc(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=n,n||(e.__vd_active=t.matched.some((t=>oc(t,e.record)))),e.children.forEach((e=>Hu(e,t)))}function Wu(e){e.__vd_match=!1,e.children.forEach(Wu)}function Vu(e,t){const n=String(e.re).match(Uu);if(e.__vd_match=!1,!n||n.length<3)return!1;if(new RegExp(n[1].replace(/\$$/,""),n[2]).test(t))return e.children.forEach((e=>Vu(e,t))),("/"!==e.record.path||"/"===t)&&(e.__vd_match=e.re.test(t),!0);const r=e.record.path.toLowerCase(),o=fu(r);return!(t.startsWith("/")||!o.includes(t)&&!r.includes(t))||(!(!o.startsWith(t)&&!r.startsWith(t))||(!(!e.record.name||!String(e.record.name).includes(t))||e.children.some((e=>Vu(e,t)))))}function qu(e){const t=Fc(e.routes,e),n=e.parseQuery||hu,r=e.stringifyQuery||gu,o=e.history;if(!o)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const i=xu(),a=xu(),s=xu(),l=Ct(kc);let c=kc;Jl&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Yl.bind(null,(e=>""+e)),d=Yl.bind(null,pu),p=Yl.bind(null,fu);function f(e,i){if(i=Gl({},i||l.value),"string"==typeof e){const r=tc(n,e,i.path),a=t.resolve({path:r.path},i),s=o.createHref(r.fullPath);return s.startsWith("//")?Ql(`Location "${e}" resolved to "${s}". A resolved location cannot start with multiple slashes.`):a.matched.length||Ql(`No match found for location with path "${e}"`),Gl(r,a,{params:p(a.params),hash:fu(r.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)"params"in e&&!("name"in e)&&Object.keys(e.params).length&&Ql(`Path "${e.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),a=Gl({},e,{path:tc(n,e.path,i.path).path});else{const t=Gl({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Gl({},e,{params:d(e.params)}),i.params=d(i.params)}const s=t.resolve(a,i),c=e.hash||"";c&&!c.startsWith("#")&&Ql(`A \`hash\` should always start with the character "#". Replace "${c}" with "#${c}".`),s.params=u(p(s.params));const f=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(r,Gl({},e,{hash:(h=c,uu(h).replace(au,"{").replace(lu,"}").replace(ou,"^")),path:s.path}));var h;const g=o.createHref(f);return g.startsWith("//")?Ql(`Location "${e}" resolved to "${g}". A resolved location cannot start with multiple slashes.`):s.matched.length||Ql(`No match found for location with path "${"path"in e?e.path:e}"`),Gl({fullPath:f,hash:c,query:r===gu?vu(e.query):e.query||{}},s,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?tc(n,e,l.value.path):Gl({},e)}function g(e,t){if(c!==e)return $c(8,{from:t,to:e})}function v(e){return y(e)}function m(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let r="function"==typeof n?n(e):n;if("string"==typeof r&&(r=r.includes("?")||r.includes("#")?r=h(r):{path:r},r.params={}),!("path"in r)&&!("name"in r))throw Ql(`Invalid redirect found:\n${JSON.stringify(r,null,2)}\n when navigating to "${e.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return Gl({query:e.query,hash:e.hash,params:"path"in r?{}:e.params},r)}}function y(e,t){const n=c=f(e),o=l.value,i=e.state,a=e.force,s=!0===e.replace,u=m(n);if(u)return y(Gl(h(u),{state:"object"==typeof u?Gl({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&rc(r,o,n)&&(p=$c(16,{to:d,from:o}),T(o,o,!0,!1)),(p?Promise.resolve(p):_(d,o)).catch((e=>Tc(e)?Tc(e,2)?e:$(e):E(e,d,o))).then((e=>{if(e){if(Tc(e,2))return rc(r,f(e.to),d)&&t&&(t._count=t._count?t._count+1:1)>10?(Ql(`Detected an infinite redirection in a navigation guard when going from "${o.fullPath}" to "${d.fullPath}". Aborting to avoid a Stack Overflow. This will break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):y(Gl({replace:s},h(e.to),{state:"object"==typeof e.to?Gl({},i,e.to.state):i,force:a}),t||d)}else e=x(d,o,!0,s,i);return w(d,o,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e,t){let n;const[r,o,s]=function(e,t){const n=[],r=[],o=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const i=t.matched[a];i&&(e.matched.find((e=>oc(e,i)))?r.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>oc(e,s)))||o.push(s))}return[n,r,o]}(e,t);n=ku(r.reverse(),"beforeRouteLeave",e,t);for(const i of r)i.leaveGuards.forEach((r=>{n.push(Su(r,e,t))}));const l=b.bind(null,e,t);return n.push(l),Ku(n).then((()=>{n=[];for(const r of i.list())n.push(Su(r,e,t));return n.push(l),Ku(n)})).then((()=>{n=ku(o,"beforeRouteUpdate",e,t);for(const r of o)r.updateGuards.forEach((r=>{n.push(Su(r,e,t))}));return n.push(l),Ku(n)})).then((()=>{n=[];for(const r of e.matched)if(r.beforeEnter&&!t.matched.includes(r))if(Zl(r.beforeEnter))for(const o of r.beforeEnter)n.push(Su(o,e,t));else n.push(Su(r.beforeEnter,e,t));return n.push(l),Ku(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ku(s,"beforeRouteEnter",e,t),n.push(l),Ku(n)))).then((()=>{n=[];for(const r of a.list())n.push(Su(r,e,t));return n.push(l),Ku(n)})).catch((e=>Tc(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const r of s.list())r(e,t,n)}function x(e,t,n,r,i){const a=g(e,t);if(a)return a;const s=t===kc,c=Jl?history.state:{};n&&(r||s?o.replace(e.fullPath,Gl({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),l.value=e,T(e,t,n,s),$()}let S;function k(){S||(S=o.listen(((e,t,n)=>{if(!N.listening)return;const r=f(e),i=m(r);if(i)return void y(Gl(i,{replace:!0}),r).catch(Xl);c=r;const a=l.value;var s,u;Jl&&(s=mc(a.fullPath,n.delta),u=gc(),yc.set(s,u)),_(r,a).catch((e=>Tc(e,12)?e:Tc(e,2)?(y(e.to,r).then((e=>{Tc(e,20)&&!n.delta&&n.type===lc.pop&&o.go(-1,!1)})).catch(Xl),Promise.reject()):(n.delta&&o.go(-n.delta,!1),E(e,r,a)))).then((e=>{(e=e||x(r,a,!1))&&(n.delta&&!Tc(e,8)?o.go(-n.delta,!1):n.type===lc.pop&&Tc(e,20)&&o.go(-1,!1)),w(r,a,e)})).catch(Xl)})))}let C,O=xu(),P=xu();function E(e,t,n){$(e);const r=P.list();return r.length?r.forEach((r=>r(e,t,n))):Ql("uncaught error during route navigation:"),Promise.reject(e)}function $(e){return C||(C=!e,k(),O.list().forEach((([t,n])=>e?n(e):t())),O.reset()),e}function T(t,n,r,o){const{scrollBehavior:i}=e;if(!Jl||!i)return Promise.resolve();const a=!r&&function(e){const t=yc.get(e);return yc.delete(e),t}(mc(t.fullPath,0))||(o||!r)&&history.state&&history.state.scroll||null;return tn().then((()=>i(t,n,a))).then((e=>e&&vc(e))).catch((e=>E(e,t,n)))}const I=e=>o.go(e);let j;const A=new Set,N={currentRoute:l,listening:!0,addRoute:function(e,n){let r,o;return Sc(e)?(r=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,r)},removeRoute:function(e){const n=t.getRecordMatcher(e);n?t.removeRoute(n):Ql(`Cannot remove non-existent route "${String(e)}"`)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:f,options:e,push:v,replace:function(e){return v(Gl(h(e),{replace:!0}))},go:I,back:()=>I(-1),forward:()=>I(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:P.add,isReady:function(){return C&&l.value!==kc?Promise.resolve():new Promise(((e,t)=>{O.add([e,t])}))},install(e){const n=this;e.component("RouterLink",Ou),e.component("RouterView",Tu),e.config.globalProperties.$router=n,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Et(l)}),Jl&&!j&&l.value===kc&&(j=!0,v(o.location).catch((e=>{Ql("Unexpected error when starting the router:",e)})));const r={};for(const t in kc)r[t]=Li((()=>l.value[t]));e.provide(bu,n),e.provide(_u,ct(r)),e.provide(wu,l);const i=e.unmount;A.add(e),e.unmount=function(){A.delete(e),A.size<1&&(c=kc,S&&S(),S=null,l.value=kc,j=!1,C=!1),i()},Jl&&Nu(e,n,t)}};return N}function Ku(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function Ju(){return Yn(bu)}function Gu(){return Yn(_u)}const Yu={},Xu=function(e,t,n){if(!t||0===t.length)return e();const r=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/"+e}(e))in Yu)return;Yu[e]=!0;const t=e.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!n)for(let n=r.length-1;n>=0;n--){const o=r[n];if(o.href===e&&(!t||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${e}"]${o}`))return;const i=document.createElement("link");return i.rel=t?"stylesheet":"modulepreload",t||(i.as="script",i.crossOrigin=""),i.href=e,document.head.appendChild(i),t?new Promise(((t,n)=>{i.addEventListener("load",t),i.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e()))},Zu="undefined"!=typeof window;let Qu,ed;{const e=Zu&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(Qu=t=>e.mark(t),ed=(t,n,r)=>{e.measure(t,n,r),e.clearMarks(n),e.clearMarks(r)})}const td=/\{([0-9a-zA-Z]+)\}/g;function nd(e,...t){return 1===t.length&&_d(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(td,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}const rd="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,od=e=>rd?Symbol(e):e,id=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ad=e=>"number"==typeof e&&isFinite(e),sd=e=>"[object RegExp]"===xd(e),ld=e=>Sd(e)&&0===Object.keys(e).length;function cd(e,t){}const ud=Object.assign;let dd;const pd=()=>dd||(dd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function fd(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hd=Object.prototype.hasOwnProperty;function gd(e,t){return hd.call(e,t)}const vd=Array.isArray,md=e=>"function"==typeof e,yd=e=>"string"==typeof e,bd=e=>"boolean"==typeof e,_d=e=>null!==e&&"object"==typeof e,wd=Object.prototype.toString,xd=e=>wd.call(e),Sd=e=>"[object Object]"===xd(e);function kd(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}
/*!
  * message-compiler v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Cd=15,Od={[1]:"Expected token: '{0}'",[2]:"Invalid token in placeholder: '{0}'",[3]:"Unterminated single quote in placeholder",[4]:"Unknown escape sequence: \\{0}",[5]:"Invalid unicode escape sequence: {0}",[6]:"Unbalanced closing brace",[7]:"Unterminated closing brace",[8]:"Empty placeholder",[9]:"Not allowed nest placeholder",[10]:"Invalid linked format",[11]:"Plural must have messages",[12]:"Unexpected empty linked modifier",[13]:"Unexpected empty linked key",[14]:"Unexpected lexical analysis in token: '{0}'"};function Pd(e,t,n={}){const{domain:r,messages:o,args:i}=n,a=nd((o||Od)[e]||"",...i||[]),s=new SyntaxError(String(a));return s.code=e,t&&(s.location=t),s.domain=r,s}
/*!
  * devtools-if v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Ed="i18n:init",$d="function:translate",Td=[];
/*!
  * core-base v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */Td[0]={w:[0],i:[3,0],"[":[4],o:[7]},Td[1]={w:[1],".":[2],"[":[4],o:[7]},Td[2]={w:[2],i:[3,0],0:[3,0]},Td[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Td[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Td[5]={"'":[4,0],o:8,l:[5,0]},Td[6]={'"':[4,0],o:8,l:[6,0]};const Id=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function jd(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ad(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Id.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const Nd=new Map;function Dd(e,t){return _d(e)?e[t]:null}const Rd=e=>e,Ld=e=>"",Md=e=>0===e.length?"":e.join(""),Bd=e=>null==e?"":vd(e)||Sd(e)&&e.toString===wd?JSON.stringify(e,null,2):String(e);function Fd(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function zd(e={}){const t=e.locale,n=function(e){const t=ad(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ad(e.named.count)||ad(e.named.n))?ad(e.named.count)?e.named.count:ad(e.named.n)?e.named.n:t:t}(e),r=_d(e.pluralRules)&&yd(t)&&md(e.pluralRules[t])?e.pluralRules[t]:Fd,o=_d(e.pluralRules)&&yd(t)&&md(e.pluralRules[t])?Fd:void 0,i=e.list||[],a=e.named||{};ad(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function s(t){const n=md(e.messages)?e.messages(t):!!_d(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Ld)}const l=Sd(e.processor)&&md(e.processor.normalize)?e.processor.normalize:Md,c=Sd(e.processor)&&md(e.processor.interpolate)?e.processor.interpolate:Bd,u={list:e=>i[e],named:e=>a[e],plural:e=>e[r(n,e.length,o)],linked:(t,...n)=>{const[r,o]=n;let i="text",a="";1===n.length?_d(r)?(a=r.modifier||a,i=r.type||i):yd(r)&&(a=r||a):2===n.length&&(yd(r)&&(a=r||a),yd(o)&&(i=o||i));let l=s(t)(u);return"vnode"===i&&vd(l)&&a&&(l=l[0]),a?(c=a,e.modifiers?e.modifiers[c]:Rd)(l,i):l;var c},message:s,type:Sd(e.processor)&&yd(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return u}let Ud=null;const Hd=Wd($d);function Wd(e){return t=>Ud&&Ud.emit(e,t)}const Vd=1,qd=2,Kd=3,Jd=4,Gd=5,Yd=6,Xd=7,Zd={[Vd]:"Not found '{key}' key in '{locale}' locale messages.",[qd]:"Fall back to translate '{key}' key with '{target}' locale.",[Kd]:"Cannot format a number value due to not supported Intl.NumberFormat.",[Jd]:"Fall back to number format '{key}' key with '{target}' locale.",[Gd]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[Yd]:"Fall back to datetime format '{key}' key with '{target}' locale."};function Qd(e,...t){return nd(Zd[e],...t)}function ep(e,t,n){return[...new Set([n,...vd(t)?t:_d(t)?Object.keys(t):yd(t)?[t]:[n]])]}function tp(e,t,n){const r=yd(n)?n:ip,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(r);if(!i){i=[];let e=[n];for(;vd(e);)e=np(i,e,t);const a=vd(t)||!Sd(t)?t:t.default?t.default:null;e=yd(a)?[a]:a,vd(e)&&np(i,e,!1),o.__localeChainCache.set(r,i)}return i}function np(e,t,n){let r=!0;for(let o=0;o<t.length&&bd(r);o++){const i=t[o];yd(i)&&(r=rp(e,t[o],n))}return r}function rp(e,t,n){let r;const o=t.split("-");do{r=op(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===r);return r}function op(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(vd(n)||Sd(n))&&n[o]&&(r=n[o])}return r}const ip="en-US",ap=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let sp,lp;let cp=null;const up=e=>{cp=e};let dp=null;const pp=e=>{dp=e};let fp=0;function hp(e={}){const t=yd(e.version)?e.version:"9.2.2",n=yd(e.locale)?e.locale:ip,r=vd(e.fallbackLocale)||Sd(e.fallbackLocale)||yd(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=Sd(e.messages)?e.messages:{[n]:{}},i=Sd(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=Sd(e.numberFormats)?e.numberFormats:{[n]:{}},s=ud({},e.modifiers||{},{upper:(e,t)=>"text"===t&&yd(e)?e.toUpperCase():"vnode"===t&&_d(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&yd(e)?e.toLowerCase():"vnode"===t&&_d(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&yd(e)?ap(e):"vnode"===t&&_d(e)&&"__v_isVNode"in e?ap(e.children):e}),l=e.pluralRules||{},c=md(e.missing)?e.missing:null,u=!bd(e.missingWarn)&&!sd(e.missingWarn)||e.missingWarn,d=!bd(e.fallbackWarn)&&!sd(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,f=!!e.unresolving,h=md(e.postTranslation)?e.postTranslation:null,g=Sd(e.processor)?e.processor:null,v=!bd(e.warnHtmlMessage)||e.warnHtmlMessage,m=!!e.escapeParameter,y=md(e.messageCompiler)?e.messageCompiler:undefined,b=md(e.messageResolver)?e.messageResolver:sp||Dd,_=md(e.localeFallbacker)?e.localeFallbacker:lp||ep,w=_d(e.fallbackContext)?e.fallbackContext:void 0,x=md(e.onWarn)?e.onWarn:cd,S=e,k=_d(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,C=_d(S.__numberFormatters)?S.__numberFormatters:new Map,O=_d(S.__meta)?S.__meta:{};fp++;const P={version:t,cid:fp,locale:n,fallbackLocale:r,messages:o,modifiers:s,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:p,unresolving:f,postTranslation:h,processor:g,warnHtmlMessage:v,escapeParameter:m,messageCompiler:y,messageResolver:b,localeFallbacker:_,fallbackContext:w,onWarn:x,__meta:O};return P.datetimeFormats=i,P.numberFormats=a,P.__datetimeFormatters=k,P.__numberFormatters=C,P.__v_emitter=null!=S.__v_emitter?S.__v_emitter:void 0,function(e,t,n){Ud&&Ud.emit(Ed,{timestamp:Date.now(),i18n:e,version:t,meta:n})}(P,t,O),P}function gp(e,t){return e instanceof RegExp?e.test(t):e}function vp(e,t){return e instanceof RegExp?e.test(t):e}function mp(e,t,n,r,o){const{missing:i,onWarn:a}=e;{const r=e.__v_emitter;r&&r.emit("missing",{locale:n,key:t,type:o,groupId:`${o}:${t}`})}if(null!==i){const r=i(e,n,t,o);return yd(r)?r:t}return vp(r,t)&&a(Qd(Vd,{key:t,locale:n})),t}function yp(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let bp=Cd;const _p=()=>++bp,wp={INVALID_ARGUMENT:bp,INVALID_DATE_ARGUMENT:_p(),INVALID_ISO_DATE_ARGUMENT:_p(),__EXTEND_POINT__:_p()};function xp(e){return Pd(e,null,{messages:Sp})}const Sp={[wp.INVALID_ARGUMENT]:"Invalid arguments",[wp.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[wp.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string"},kp=()=>"",Cp=e=>md(e);function Op(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:i,fallbackLocale:a,messages:s}=e,[l,c]=$p(...t),u=bd(c.missingWarn)?c.missingWarn:e.missingWarn,d=bd(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=bd(c.escapeParameter)?c.escapeParameter:e.escapeParameter,f=!!c.resolvedMessage,h=yd(c.default)||bd(c.default)?bd(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",g=n||""!==h,v=yd(c.locale)?c.locale:e.locale;p&&function(e){vd(e.list)?e.list=e.list.map((e=>yd(e)?fd(e):e)):_d(e.named)&&Object.keys(e.named).forEach((t=>{yd(e.named[t])&&(e.named[t]=fd(e.named[t]))}))}(c);let[m,y,b]=f?[l,v,s[v]||{}]:Pp(e,l,v,a,d,u),_=m,w=l;if(f||yd(_)||Cp(_)||g&&(_=h,w=_),!(f||(yd(_)||Cp(_))&&yd(y)))return o?-1:l;if(yd(_)&&null==e.messageCompiler)return l;let x=!1;const S=Cp(_)?_:Ep(e,l,y,_,w,(()=>{x=!0}));if(x)return _;const k=function(e,t,n,r){const{modifiers:o,pluralRules:i,messageResolver:a,fallbackLocale:s,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,d=r=>{let o=a(n,r);if(null==o&&u){const[,,e]=Pp(u,r,t,s,l,c);o=a(e,r)}if(yd(o)){let n=!1;const i=Ep(e,r,t,o,r,(()=>{n=!0}));return n?kp:i}return Cp(o)?o:kp},p={locale:t,modifiers:o,pluralRules:i,messages:d};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);ad(r.plural)&&(p.pluralIndex=r.plural);return p}(e,y,b,c),C=function(e,t,n){let r,o,i=null;Zu&&(i=window.performance.now(),r="intlify-message-evaluation-start",o="intlify-message-evaluation-end",Qu&&Qu(r));const a=t(n);if(Zu){const n=window.performance.now(),s=e.__v_emitter;s&&i&&s.emit("message-evaluation",{type:"message-evaluation",value:a,time:n-i,groupId:`translate:${t.key}`}),r&&o&&Qu&&ed&&(Qu(o),ed("intlify message evaluation",r,o))}return a}(e,S,zd(k)),O=r?r(C,l):C;{const t={timestamp:Date.now(),key:yd(l)?l:Cp(_)?_.key:"",locale:y||(Cp(_)?_.locale:""),format:yd(_)?_:Cp(_)?_.source:"",message:O};t.meta=ud({},e.__meta,cp||{}),Hd(t)}return O}function Pp(e,t,n,r,o,i){const{messages:a,onWarn:s,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let d,p={},f=null,h=n,g=null;const v="translate";for(let m=0;m<u.length;m++){if(d=g=u[m],n!==d&&gp(o,t)&&s(Qd(qd,{key:t,target:d})),n!==d){const n=e.__v_emitter;n&&n.emit("fallback",{type:v,key:t,from:h,to:g,groupId:`${v}:${t}`})}p=a[d]||{};let r,c,y=null;if(Zu&&(y=window.performance.now(),r="intlify-message-resolve-start",c="intlify-message-resolve-end",Qu&&Qu(r)),null===(f=l(p,t))&&(f=p[t]),Zu){const n=window.performance.now(),o=e.__v_emitter;o&&y&&f&&o.emit("message-resolve",{type:"message-resolve",key:t,message:f,time:n-y,groupId:`${v}:${t}`}),r&&c&&Qu&&ed&&(Qu(c),ed("intlify message resolve",r,c))}if(yd(f)||md(f))break;const b=mp(e,t,d,i,v);b!==t&&(f=b),h=g}return[f,d,p]}function Ep(e,t,n,r,o,i){const{messageCompiler:a,warnHtmlMessage:s}=e;if(Cp(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==a){const e=()=>r;return e.locale=n,e.key=t,e}let l,c,u=null;Zu&&(u=window.performance.now(),l="intlify-message-compilation-start",c="intlify-message-compilation-end",Qu&&Qu(l));const d=a(r,function(e,t,n,r,o,i){return{warnHtmlMessage:o,onError:t=>{i&&i(t);{t.message,t.location&&function(e,t=0,n=e.length){const r=e.split(/\r?\n/);let o=0;const i=[];for(let a=0;a<r.length;a++)if(o+=r[a].length+1,o>=t){for(let e=a-2;e<=a+2||n>o;e++){if(e<0||e>=r.length)continue;const s=e+1;i.push(`${s}${" ".repeat(3-String(s).length)}|  ${r[e]}`);const l=r[e].length;if(e===a){const e=t-(o-l)+1,r=Math.max(1,n>o?l-e:n-t);i.push("   |  "+" ".repeat(e)+"^".repeat(r))}else if(e>a){if(n>o){const e=Math.max(Math.min(n-o,l),1);i.push("   |  "+"^".repeat(e))}o+=l+1}}break}i.join("\n")}(r,t.location.start.offset,t.location.end.offset);const o=e.__v_emitter;o&&o.emit("compile-error",{message:r,error:t.message,start:t.location&&t.location.start.offset,end:t.location&&t.location.end.offset,groupId:`translate:${n}`})}},onCacheKey:e=>((e,t,n)=>id({l:e,k:t,s:n}))(t,n,e)}}(e,n,o,r,s,i));if(Zu){const n=window.performance.now(),o=e.__v_emitter;o&&u&&o.emit("message-compilation",{type:"message-compilation",message:r,time:n-u,groupId:`translate:${t}`}),l&&c&&Qu&&ed&&(Qu(c),ed("intlify message compilation",l,c))}return d.locale=n,d.key=t,d.source=r,d}function $p(...e){const[t,n,r]=e,o={};if(!yd(t)&&!ad(t)&&!Cp(t))throw xp(wp.INVALID_ARGUMENT);const i=ad(t)?String(t):(Cp(t),t);return ad(n)?o.plural=n:yd(n)?o.default=n:Sd(n)&&!ld(n)?o.named=n:vd(n)&&(o.list=n),ad(r)?o.plural=r:yd(r)?o.default=r:Sd(r)&&ud(o,r),[i,o]}const Tp="undefined"!=typeof Intl,Ip=Tp&&void 0!==Intl.DateTimeFormat,jp=Tp&&void 0!==Intl.NumberFormat;function Ap(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__datetimeFormatters:s}=e;if(!Ip)return i(Qd(Gd)),"";const[l,c,u,d]=Dp(...t),p=bd(u.missingWarn)?u.missingWarn:e.missingWarn,f=bd(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=!!u.part,g=yd(u.locale)?u.locale:e.locale,v=a(e,o,g);if(!yd(l)||""===l)return new Intl.DateTimeFormat(g,d).format(c);let m,y={},b=null,_=g,w=null;const x="datetime format";for(let C=0;C<v.length;C++){if(m=w=v[C],g!==m&&gp(f,l)&&i(Qd(Yd,{key:l,target:m})),g!==m){const t=e.__v_emitter;t&&t.emit("fallback",{type:x,key:l,from:_,to:w,groupId:`${x}:${l}`})}if(y=n[m]||{},b=y[l],Sd(b))break;mp(e,l,m,p,x),_=w}if(!Sd(b)||!yd(m))return r?-1:l;let S=`${m}__${l}`;ld(d)||(S=`${S}__${JSON.stringify(d)}`);let k=s.get(S);return k||(k=new Intl.DateTimeFormat(m,ud({},b,d)),s.set(S,k)),h?k.formatToParts(c):k.format(c)}const Np=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Dp(...e){const[t,n,r,o]=e,i={};let a,s={};if(yd(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw xp(wp.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch(l){throw xp(wp.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===xd(t)){if(isNaN(t.getTime()))throw xp(wp.INVALID_DATE_ARGUMENT);a=t}else{if(!ad(t))throw xp(wp.INVALID_ARGUMENT);a=t}return yd(n)?i.key=n:Sd(n)&&Object.keys(n).forEach((e=>{Np.includes(e)?s[e]=n[e]:i[e]=n[e]})),yd(r)?i.locale=r:Sd(r)&&(s=r),Sd(o)&&(s=o),[i.key||"",a,i,s]}function Rp(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Lp(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:i,localeFallbacker:a}=e,{__numberFormatters:s}=e;if(!jp)return i(Qd(Kd)),"";const[l,c,u,d]=Bp(...t),p=bd(u.missingWarn)?u.missingWarn:e.missingWarn,f=bd(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=!!u.part,g=yd(u.locale)?u.locale:e.locale,v=a(e,o,g);if(!yd(l)||""===l)return new Intl.NumberFormat(g,d).format(c);let m,y={},b=null,_=g,w=null;const x="number format";for(let C=0;C<v.length;C++){if(m=w=v[C],g!==m&&gp(f,l)&&i(Qd(Jd,{key:l,target:m})),g!==m){const t=e.__v_emitter;t&&t.emit("fallback",{type:x,key:l,from:_,to:w,groupId:`${x}:${l}`})}if(y=n[m]||{},b=y[l],Sd(b))break;mp(e,l,m,p,x),_=w}if(!Sd(b)||!yd(m))return r?-1:l;let S=`${m}__${l}`;ld(d)||(S=`${S}__${JSON.stringify(d)}`);let k=s.get(S);return k||(k=new Intl.NumberFormat(m,ud({},b,d)),s.set(S,k)),h?k.formatToParts(c):k.format(c)}const Mp=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Bp(...e){const[t,n,r,o]=e,i={};let a={};if(!ad(t))throw xp(wp.INVALID_ARGUMENT);const s=t;return yd(n)?i.key=n:Sd(n)&&Object.keys(n).forEach((e=>{Mp.includes(e)?a[e]=n[e]:i[e]=n[e]})),yd(r)?i.locale=r:Sd(r)&&(a=r),Sd(o)&&(a=o),[i.key||"",s,i,a]}function Fp(e,t,n){const r=e;for(const o in n){const e=`${t}__${o}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(pd().__INTLIFY_PROD_DEVTOOLS__=!1);
/*!
  * vue-devtools v9.2.2
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */
const zp={"vue-devtools-plugin-vue-i18n":"Vue I18n devtools","vue-i18n-resource-inspector":"I18n Resources","vue-i18n-timeline":"Vue I18n"},Up={"vue-i18n-resource-inspector":"Search for scopes ..."},Hp={"vue-i18n-timeline":16764185};let Wp=Xd;const Vp=()=>++Wp,qp={FALLBACK_TO_ROOT:Wp,NOT_SUPPORTED_PRESERVE:Vp(),NOT_SUPPORTED_FORMATTER:Vp(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Vp(),NOT_SUPPORTED_GET_CHOICE_INDEX:Vp(),COMPONENT_NAME_LEGACY_COMPATIBLE:Vp(),NOT_FOUND_PARENT_SCOPE:Vp()},Kp={[qp.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[qp.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[qp.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[qp.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[qp.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[qp.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[qp.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function Jp(e,...t){return nd(Kp[e],...t)}let Gp=Cd;const Yp=()=>++Gp,Xp={UNEXPECTED_RETURN_TYPE:Gp,INVALID_ARGUMENT:Yp(),MUST_BE_CALL_SETUP_TOP:Yp(),NOT_INSLALLED:Yp(),NOT_AVAILABLE_IN_LEGACY_MODE:Yp(),REQUIRED_VALUE:Yp(),INVALID_VALUE:Yp(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Yp(),NOT_INSLALLED_WITH_PROVIDE:Yp(),UNEXPECTED_ERROR:Yp(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Yp(),BRIDGE_SUPPORT_VUE_2_ONLY:Yp(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Yp(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Yp(),__EXTEND_POINT__:Yp()};function Zp(e,...t){return Pd(e,null,{messages:Qp,args:t})}const Qp={[Xp.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[Xp.INVALID_ARGUMENT]:"Invalid argument",[Xp.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[Xp.NOT_INSLALLED]:"Need to install with `app.use` function",[Xp.UNEXPECTED_ERROR]:"Unexpected error",[Xp.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[Xp.REQUIRED_VALUE]:"Required in value: {0}",[Xp.INVALID_VALUE]:"Invalid value",[Xp.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[Xp.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[Xp.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[Xp.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[Xp.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define ‘i18n’ option or custom block in Composition API with using local scope in Legacy API mode",[Xp.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},ef=od("__transrateVNode"),tf=od("__datetimeParts"),nf=od("__numberParts"),rf=od("__enableEmitter"),of=od("__disableEmitter"),af=od("__setPluralRules");od("__intlifyMeta");const sf=od("__injectWithOption");function lf(e){if(!_d(e))return e;for(const t in e)if(gd(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let o=e;for(let e=0;e<r;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[r]]=e[t],delete e[t],_d(o[n[r]])&&lf(o[n[r]])}else _d(e[t])&&lf(e[t]);return e}function cf(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:i}=t,a=Sd(n)?n:vd(r)?{}:{[e]:{}};if(vd(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(a[t]=a[t]||{},df(n,a[t])):df(n,a)}else yd(e)&&df(JSON.parse(e),a)})),null==o&&i)for(const s in a)gd(a,s)&&lf(a[s]);return a}const uf=e=>!_d(e)||vd(e);function df(e,t){if(uf(e)||uf(t))throw Zp(Xp.INVALID_VALUE);for(const n in e)gd(e,n)&&(uf(e[n])||uf(t[n])?t[n]=e[n]:df(e[n],t[n]))}function pf(e){return e.type}function ff(e){return si(Wo,null,e,0)}let hf=0;function gf(e){return(t,n,r,o)=>e(n,r,wi()||void 0,o)}function vf(e={},t){const{__root:n}=e,r=void 0===n;let o=!bd(e.inheritLocale)||e.inheritLocale;const i=kt(n&&o?n.locale.value:yd(e.locale)?e.locale:ip),a=kt(n&&o?n.fallbackLocale.value:yd(e.fallbackLocale)||vd(e.fallbackLocale)||Sd(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),s=kt(cf(i.value,e)),l=kt(Sd(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),c=kt(Sd(e.numberFormats)?e.numberFormats:{[i.value]:{}});let u=n?n.missingWarn:!bd(e.missingWarn)&&!sd(e.missingWarn)||e.missingWarn,d=n?n.fallbackWarn:!bd(e.fallbackWarn)&&!sd(e.fallbackWarn)||e.fallbackWarn,p=n?n.fallbackRoot:!bd(e.fallbackRoot)||e.fallbackRoot,f=!!e.fallbackFormat,h=md(e.missing)?e.missing:null,g=md(e.missing)?gf(e.missing):null,v=md(e.postTranslation)?e.postTranslation:null,m=n?n.warnHtmlMessage:!bd(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const b=n?n.modifiers:Sd(e.modifiers)?e.modifiers:{};let _,w=e.pluralRules||n&&n.pluralRules;_=(()=>{r&&pp(null);const t={version:"9.2.2",locale:i.value,fallbackLocale:a.value,messages:s.value,modifiers:b,pluralRules:w,missing:null===g?void 0:g,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:!0,postTranslation:null===v?void 0:v,warnHtmlMessage:m,escapeParameter:y,messageResolver:e.messageResolver,__meta:{framework:"vue"}};t.datetimeFormats=l.value,t.numberFormats=c.value,t.__datetimeFormatters=Sd(_)?_.__datetimeFormatters:void 0,t.__numberFormatters=Sd(_)?_.__numberFormatters:void 0,t.__v_emitter=Sd(_)?_.__v_emitter:void 0;const n=hp(t);return r&&pp(n),n})(),yp(_,i.value,a.value);const x=Li({get:()=>i.value,set:e=>{i.value=e,_.locale=i.value}}),S=Li({get:()=>a.value,set:e=>{a.value=e,_.fallbackLocale=a.value,yp(_,i.value,e)}}),k=Li((()=>s.value)),C=Li((()=>l.value)),O=Li((()=>c.value));const P=(e,t,o,f,h,g)=>{let v;i.value,a.value,s.value,l.value,c.value;try{up((()=>{const e=wi();let t=null;return e&&(t=pf(e).__INTLIFY_META__)?{__INTLIFY_META__:t}:null})()),r||(_.fallbackContext=n?dp:void 0),v=e(_)}finally{up(null),r||(_.fallbackContext=void 0)}if(ad(v)&&-1===v){const[e,r]=t();if(n&&yd(e)&&(m=r,"translate"!==o||!m.resolvedMessage)){p&&(gp(d,e)||vp(u,e))&&Jp(qp.FALLBACK_TO_ROOT,{key:e,type:o});{const{__v_emitter:t}=_;t&&p&&t.emit("fallback",{type:o,key:e,to:"global",groupId:`${o}:${e}`})}}return n&&p?f(n):h(e)}if(g(v))return v;throw Zp(Xp.UNEXPECTED_RETURN_TYPE);var m};function E(...e){return P((t=>Reflect.apply(Op,null,[t,...e])),(()=>$p(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>yd(e)))}const $={normalize:function(e){return e.map((e=>yd(e)||ad(e)||bd(e)?ff(String(e)):e))},interpolate:e=>e,type:"vnode"};function T(e){return s.value[e]||{}}hf++,n&&Zu&&(Qn(n.locale,(e=>{o&&(i.value=e,_.locale=e,yp(_,i.value,a.value))})),Qn(n.fallbackLocale,(e=>{o&&(a.value=e,_.fallbackLocale=e,yp(_,i.value,a.value))})));const I={id:hf,locale:x,fallbackLocale:S,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&n&&(i.value=n.locale.value,a.value=n.fallbackLocale.value,yp(_,i.value,a.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:k,get modifiers(){return b},get pluralRules(){return w||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn(e){u=e,_.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(e){d=e,_.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return f},set fallbackFormat(e){f=e,_.fallbackFormat=f},get warnHtmlMessage(){return m},set warnHtmlMessage(e){m=e,_.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,_.escapeParameter=e},t:E,getLocaleMessage:T,setLocaleMessage:function(e,t){s.value[e]=t,_.messages=s.value},mergeLocaleMessage:function(e,t){s.value[e]=s.value[e]||{},df(t,s.value[e]),_.messages=s.value},getPostTranslationHandler:function(){return md(v)?v:null},setPostTranslationHandler:function(e){v=e,_.postTranslation=e},getMissingHandler:function(){return h},setMissingHandler:function(e){null!==e&&(g=gf(e)),h=e,_.missing=g},[af]:function(e){w=e,_.pluralRules=w}};return I.datetimeFormats=C,I.numberFormats=O,I.rt=function(...e){const[t,n,r]=e;if(r&&!_d(r))throw Zp(Xp.INVALID_ARGUMENT);return E(t,n,ud({resolvedMessage:!0},r||{}))},I.te=function(e,t){const n=T(yd(t)?t:i.value);return null!==_.messageResolver(n,e)},I.tm=function(e){const t=function(e){let t=null;const n=tp(_,a.value,i.value);for(let r=0;r<n.length;r++){const o=s.value[n[r]]||{},i=_.messageResolver(o,e);if(null!=i){t=i;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},I.d=function(...e){return P((t=>Reflect.apply(Ap,null,[t,...e])),(()=>Dp(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>yd(e)))},I.n=function(...e){return P((t=>Reflect.apply(Lp,null,[t,...e])),(()=>Bp(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>yd(e)))},I.getDateTimeFormat=function(e){return l.value[e]||{}},I.setDateTimeFormat=function(e,t){l.value[e]=t,_.datetimeFormats=l.value,Rp(_,e,t)},I.mergeDateTimeFormat=function(e,t){l.value[e]=ud(l.value[e]||{},t),_.datetimeFormats=l.value,Rp(_,e,t)},I.getNumberFormat=function(e){return c.value[e]||{}},I.setNumberFormat=function(e,t){c.value[e]=t,_.numberFormats=c.value,Fp(_,e,t)},I.mergeNumberFormat=function(e,t){c.value[e]=ud(c.value[e]||{},t),_.numberFormats=c.value,Fp(_,e,t)},I[sf]=e.__injectWithOption,I[ef]=function(...e){return P((t=>{let n;const r=t;try{r.processor=$,n=Reflect.apply(Op,null,[r,...e])}finally{r.processor=null}return n}),(()=>$p(...e)),"translate",(t=>t[ef](...e)),(e=>[ff(e)]),(e=>vd(e)))},I[tf]=function(...e){return P((t=>Reflect.apply(Ap,null,[t,...e])),(()=>Dp(...e)),"datetime format",(t=>t[tf](...e)),(()=>[]),(e=>yd(e)||vd(e)))},I[nf]=function(...e){return P((t=>Reflect.apply(Lp,null,[t,...e])),(()=>Bp(...e)),"number format",(t=>t[nf](...e)),(()=>[]),(e=>yd(e)||vd(e)))},I[rf]=e=>{_.__v_emitter=e},I[of]=()=>{_.__v_emitter=void 0},I}const mf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function yf(e){return Ho}const bf={name:"i18n-t",props:ud({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>ad(e)||!isNaN(e)}},mf),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Mf({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter((e=>"_"!==e)),a={};e.locale&&(a.locale=e.locale),void 0!==e.plural&&(a.plural=yd(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...vd(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,i),l=o[ef](e.keypath,s,a),c=ud({},r);return Bi(yd(e.tag)||_d(e.tag)?e.tag:yf(),c,l)}}};function _f(e,t,n,r){const{slots:o,attrs:i}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),yd(e.format)?t.key=e.format:_d(e.format)&&(yd(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?ud({},t,{[r]:e.format[r]}):t),{}));const s=r(e.value,t,a);let l=[t.key];vd(s)?l=s.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];var i;return vd(i=r)&&!yd(i[0])&&(r[0].key=`${e.type}-${t}`),r})):yd(s)&&(l=[s]);const c=ud({},i);return Bi(yd(e.tag)||_d(e.tag)?e.tag:yf(),c,l)}}const wf={name:"i18n-n",props:ud({value:{type:Number,required:!0},format:{type:[String,Object]}},mf),setup(e,t){const n=e.i18n||Mf({useScope:"parent",__useComponent:!0});return _f(e,t,Mp,((...e)=>n[nf](...e)))}},xf={name:"i18n-d",props:ud({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},mf),setup(e,t){const n=e.i18n||Mf({useScope:"parent",__useComponent:!0});return _f(e,t,Np,((...e)=>n[tf](...e)))}};function Sf(e){if(yd(e))return{path:e};if(Sd(e)){if(!("path"in e))throw Zp(Xp.REQUIRED_VALUE,"path");return e}throw Zp(Xp.INVALID_VALUE)}function kf(e){const{path:t,locale:n,args:r,choice:o,plural:i}=e,a={},s=r||{};return yd(n)&&(a.locale=n),ad(o)&&(a.plural=o),ad(i)&&(a.plural=i),[t,s,a]}function Cf(e,t,...n){const r=Sd(n[0])?n[0]:{},o=!!r.useI18nComponentName,i=!bd(r.globalInstall)||r.globalInstall;i&&o&&Jp(qp.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:bf.name}),i&&(e.component(o?"i18n":bf.name,bf),e.component(wf.name,wf),e.component(xf.name,xf)),e.directive("t",function(e){const t=t=>{const{instance:n,modifiers:r,value:o}=t;if(!n||!n.$)throw Zp(Xp.UNEXPECTED_ERROR);const i=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$);r.preserve&&Jp(qp.NOT_SUPPORTED_PRESERVE);const a=Sf(o);return[Reflect.apply(i.t,i,[...kf(a)]),i]};return{created:(n,r)=>{const[o,i]=t(r);Zu&&e.global===i&&(n.__i18nWatcher=Qn(i.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=i,n.textContent=o},unmounted:e=>{Zu&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Sf(t);e.textContent=Reflect.apply(n.t,n,[...kf(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}(t))}let Of;async function Pf(e,t){return new Promise(((n,r)=>{try{Kl({id:"vue-devtools-plugin-vue-i18n",label:zp["vue-devtools-plugin-vue-i18n"],packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:["vue-i18n: composer properties"],app:e},(r=>{Of=r,r.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{!function(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n={label:`i18n (${Ef(e)} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)})),r.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el&&e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&$f(n,e.vnode.el.__VUE_I18N__):$f(n,e.vnode.el.__VUE_I18N__))})),r.addInspector({id:"vue-i18n-resource-inspector",label:zp["vue-i18n-resource-inspector"],icon:"language",treeFilterPlaceholder:Up["vue-i18n-resource-inspector"]}),r.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,o]of t.__instances){const i="composition"===t.mode?o:o.__composer;n!==i&&e.rootNodes.push({id:i.id.toString(),label:`${Ef(r)} Scope`})}}(n,t)}));const o=new Map;r.on.getInspectorState((async n=>{if(n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId)if(r.unhighlightElement(),function(e,t){const n=Nf(e.nodeId,t);n&&(e.state=function(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const o="Locale messages info",i=[{type:o,key:"messages",editable:!1,value:Tf(e.messages.value)}];t[o]=i;{const n="Datetime formats info",r=[{type:n,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[n]=r;const o="Datetime formats info",i=[{type:o,key:"numberFormats",editable:!1,value:e.numberFormats.value}];t[o]=i}return t}(n))}(n,t),"global"===n.nodeId){if(!o.has(n.app)){const[e]=await r.getComponentInstances(n.app);o.set(n.app,e)}r.highlightElement(o.get(n.app))}else{const e=function(e,t){let n=null;if("global"!==e)for(const[r,o]of t.__instances.entries())if(o.id.toString()===e){n=r;break}return n}(n.nodeId,t);e&&r.highlightElement(e)}})),r.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=Nf(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&yd(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(yd(e.state.value)||vd(e.state.value)||_d(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&bd(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)})),r.addTimelineLayer({id:"vue-i18n-timeline",label:zp["vue-i18n-timeline"],color:Hp["vue-i18n-timeline"]}),n(!0)}))}catch(o){r(!1)}}))}function Ef(e){return e.type.name||e.type.displayName||e.type.__file||"Anonymous"}function $f(e,t){const n="vue-i18n: composer properties";e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:Tf(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function Tf(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];var o;md(r)&&"source"in r?t[n]={_custom:{type:"function",display:"<span>ƒ</span> "+((o=r).source?`("${jf(o.source)}")`:"(?)")}}:_d(r)?t[n]=Tf(r):t[n]=r})),t}const If={"<":"&lt;",">":"&gt;",'"':"&quot;","&":"&amp;"};function jf(e){return e.replace(/[<>"&]/g,Af)}function Af(e){return If[e]||e}function Nf(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function Df(e,t){if(Of){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),Of.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}const Rf=od("global-vue-i18n");function Lf(e={},t){const n=!bd(e.globalInjection)||e.globalInjection,r=new Map,[o,i]=function(e,t,n){const r=te();{const t=r.run((()=>vf(e)));if(null==t)throw Zp(Xp.UNEXPECTED_ERROR);return[r,t]}}(e),a=od("vue-i18n");{const e={get mode(){return"composition"},get allowComposition(){return true},async install(t,...r){t.__VUE_I18N__=e,t.__VUE_I18N_SYMBOL__=a,t.provide(t.__VUE_I18N_SYMBOL__,e),n&&function(e,t){const n=Object.create(null);Bf.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Zp(Xp.UNEXPECTED_ERROR);const o=St(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,Ff.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Zp(Xp.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}(t,e.global),Cf(t,e,...r);const o=t.unmount;t.unmount=()=>{e.dispose(),o()};{if(!(await Pf(t,e)))throw Zp(Xp.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN);const n=kd();{const e=i;e[rf]&&e[rf](n)}n.on("*",Df)}},get global(){return i},dispose(){o.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return e}}function Mf(e={}){const t=wi();if(null==t)throw Zp(Xp.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Zp(Xp.NOT_INSLALLED);const n=function(e){{const t=Yn(e.isCE?Rf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Zp(e.isCE?Xp.NOT_INSLALLED_WITH_PROVIDE:Xp.UNEXPECTED_ERROR);return t}}(t),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(n),o=pf(t),i=function(e,t){return ld(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===i)return function(e,t,n){let r=_d(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=cf(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);if(o.length&&o.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),_d(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(_d(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(r,e,o),r;if("parent"===i){let o=function(e,t,n=!1){let r=null;const o=t.root;let i=t.parent;for(;null!=i;){const t=e;if("composition"===e.mode&&(r=t.__getInstance(i)),null!=r)break;if(o===i)break;i=i.parent}return r}(n,t,e.__useComponent);return null==o&&(Jp(qp.NOT_FOUND_PARENT_SCOPE),o=r),o}const a=n;let s=a.__getInstance(t);if(null==s){const n=ud({},e);"__i18n"in o&&(n.__i18n=o.__i18n),r&&(n.__root=r),s=vf(n),function(e,t,n){let r=null;Sr((()=>{if(t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=kd();const e=n;e[rf]&&e[rf](r),r.on("*",Df)}}),t),Pr((()=>{if(t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",Df);const e=n;e[of]&&e[of](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)}),t)}(a,t,s),a.__setInstance(t,s)}return s}const Bf=["locale","fallbackLocale","availableLocales"],Ff=["t","rt","d","n","tm"];var zf;sp=function(e,t){if(!_d(e))return null;let n=Nd.get(t);if(n||(n=function(e){const t=[];let n,r,o,i,a,s,l,c=-1,u=0,d=0;const p=[];function f(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===r)return!1;if(r=Ad(r),!1===r)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!f()){if(i=jd(n),l=Td[u],a=l[i]||l.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(s=p[a[1]],s&&(o=n,!1===s())))return;if(7===u)return t}}(t),n&&Nd.set(t,n)),!n)return null;const r=n.length;let o=e,i=0;for(;i<r;){const e=o[n[i]];if(void 0===e)return null;o=e,i++}return o},lp=tp,"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(pd().__INTLIFY_PROD_DEVTOOLS__=!1);{const e=pd();e.__INTLIFY__=!0,zf=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,Ud=zf}function Uf(e,t,n){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,n),n):(e[t]=n,n)}function Hf(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}
/*!
  * pinia v2.0.23
  * (c) 2022 Eduardo San Martin Morote
  * @license MIT
  */let Wf;const Vf=e=>Wf=e,qf=Symbol("pinia");function Kf(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var Jf,Gf;(Gf=Jf||(Jf={})).direct="direct",Gf.patchObject="patch object",Gf.patchFunction="patch function";const Yf="undefined"!=typeof window,Xf=Yf,Zf=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function Qf(e,t,n){const r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){oh(r.response,t,n)},r.onerror=function(){},r.send()}function eh(e){const t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(n){}return t.status>=200&&t.status<=299}function th(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(t){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const nh="object"==typeof navigator?navigator:{userAgent:""},rh=(()=>/Macintosh/.test(nh.userAgent)&&/AppleWebKit/.test(nh.userAgent)&&!/Safari/.test(nh.userAgent))(),oh=Yf?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!rh?function(e,t="download",n){const r=document.createElement("a");r.download=t,r.rel="noopener","string"==typeof e?(r.href=e,r.origin!==location.origin?eh(r.href)?Qf(e,t,n):(r.target="_blank",th(r)):th(r)):(r.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(r.href)}),4e4),setTimeout((function(){th(r)}),0))}:"msSaveOrOpenBlob"in nh?function(e,t="download",n){if("string"==typeof e)if(eh(e))Qf(e,t,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout((function(){th(t)}))}else navigator.msSaveOrOpenBlob(function(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,r){(r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading...");if("string"==typeof e)return Qf(e,t,n);const o="application/octet-stream"===e.type,i=/constructor/i.test(String(Zf.HTMLElement))||"safari"in Zf,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||o&&i||rh)&&"undefined"!=typeof FileReader){const t=new FileReader;t.onloadend=function(){let e=t.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=a?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{const t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout((function(){URL.revokeObjectURL(t)}),4e4)}}:()=>{};function ih(e,t){"function"==typeof __VUE_DEVTOOLS_TOAST__&&__VUE_DEVTOOLS_TOAST__("🍍 "+e,t)}function ah(e){return"_a"in e&&"install"in e}function sh(){if(!("clipboard"in navigator))return ih("Your browser doesn't support the Clipboard API","error"),!0}function lh(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(ih('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}let ch;async function uh(e){try{const t=await(ch||(ch=document.createElement("input"),ch.type="file",ch.accept=".json"),function(){return new Promise(((e,t)=>{ch.onchange=async()=>{const t=ch.files;if(!t)return e(null);const n=t.item(0);return e(n?{text:await n.text(),file:n}:null)},ch.oncancel=()=>e(null),ch.onerror=t,ch.click()}))}),n=await t();if(!n)return;const{text:r,file:o}=n;e.state.value=JSON.parse(r),ih(`Global state imported from "${o.name}".`)}catch(t){ih("Failed to export the state as JSON. Check the console for more details.","error")}}function dh(e){return{_custom:{display:e}}}function ph(e){return ah(e)?{id:"_root",label:"🍍 Pinia (root)"}:{id:e.$id,label:e.$id}}function fh(e){return e?Array.isArray(e)?e.reduce(((e,t)=>(e.keys.push(t.key),e.operations.push(t.type),e.oldValue[t.key]=t.oldValue,e.newValue[t.key]=t.newValue,e)),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:dh(e.type),key:dh(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function hh(e){switch(e){case Jf.direct:return"mutation";case Jf.patchFunction:case Jf.patchObject:return"$patch";default:return"unknown"}}let gh=!0;const vh=[],mh=e=>"🍍 "+e;function yh(e,t){Kl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vh,app:e},(n=>{"function"!=typeof n.now&&ih("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:"pinia:mutations",label:"Pinia 🍍",color:15064968}),n.addInspector({id:"pinia",label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!async function(e){if(!sh())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),ih("Global state copied to clipboard.")}catch(t){if(lh(t))return;ih("Failed to serialize the state. Check the console for more details.","error")}}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await async function(e){if(!sh())try{e.state.value=JSON.parse(await navigator.clipboard.readText()),ih("Global state pasted from clipboard.")}catch(t){if(lh(t))return;ih("Failed to deserialize the state from clipboard. Check the console for more details.","error")}}(t),n.sendInspectorTree("pinia"),n.sendInspectorState("pinia")},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!async function(e){try{oh(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){ih("Failed to export the state as JSON. Check the console for more details.","error")}}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await uh(t),n.sendInspectorTree("pinia"),n.sendInspectorState("pinia")},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:"Reset the state (option store only)",action:e=>{const n=t._s.get(e);n?n._isOptionsAPI?(n.$reset(),ih(`Store "${e}" reset.`)):ih(`Cannot reset "${e}" store because it's a setup store.`,"warn"):ih(`Cannot reset "${e}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent(((e,t)=>{const n=e.componentInstance&&e.componentInstance.proxy;if(n&&n._pStores){const t=e.componentInstance.proxy._pStores;Object.values(t).forEach((t=>{e.instanceData.state.push({type:mh(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:mt(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce(((e,n)=>(e[n]=t.$state[n],e)),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:mh(t.$id),key:"getters",editable:!1,value:t._getters.reduce(((e,n)=>{try{e[n]=t[n]}catch(r){e[n]=r}return e}),{})})}))}})),n.on.getInspectorTree((n=>{if(n.app===e&&"pinia"===n.inspectorId){let e=[t];e=e.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?e.filter((e=>"$id"in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):"🍍 Pinia (root)".toLowerCase().includes(n.filter.toLowerCase()))):e).map(ph)}})),n.on.getInspectorState((n=>{if(n.app===e&&"pinia"===n.inspectorId){const e="_root"===n.nodeId?t:t._s.get(n.nodeId);if(!e)return;e&&(n.state=function(e){if(ah(e)){const t=Array.from(e._s.keys()),n=e._s;return{state:t.map((t=>({editable:!0,key:t,value:e.state.value[t]}))),getters:t.filter((e=>n.get(e)._getters)).map((e=>{const t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce(((e,n)=>(e[n]=t[n],e)),{})}}))}}const t={state:Object.keys(e.$state).map((t=>({editable:!0,key:t,value:e.$state[t]})))};return e._getters&&e._getters.length&&(t.getters=e._getters.map((t=>({editable:!1,key:t,value:e[t]})))),e._customProperties.size&&(t.customProperties=Array.from(e._customProperties).map((t=>({editable:!0,key:t,value:e[t]})))),t}(e))}})),n.on.editInspectorState(((n,r)=>{if(n.app===e&&"pinia"===n.inspectorId){const e="_root"===n.nodeId?t:t._s.get(n.nodeId);if(!e)return ih(`store "${n.nodeId}" not found`,"error");const{path:r}=n;ah(e)?r.unshift("state"):1===r.length&&e._customProperties.has(r[0])&&!(r[0]in e.$state)||r.unshift("$state"),gh=!1,n.set(e,r,n.state.value),gh=!0}})),n.on.editComponentState((e=>{if(e.type.startsWith("🍍")){const n=e.type.replace(/^🍍\s*/,""),r=t._s.get(n);if(!r)return ih(`store "${n}" not found`,"error");const{path:o}=e;if("state"!==o[0])return ih(`Invalid path for store "${n}":\n${o}\nOnly state can be modified.`);o[0]="$state",gh=!1,e.set(r,o,e.state.value),gh=!0}}))}))}let bh,_h=0;function wh(e,t){const n=t.reduce(((t,n)=>(t[n]=mt(e)[n],t)),{});for(const r in n)e[r]=function(){const t=_h,o=new Proxy(e,{get:(...e)=>(bh=t,Reflect.get(...e)),set:(...e)=>(bh=t,Reflect.set(...e))});return n[r].apply(o,arguments)}}function xh({app:e,store:t,options:n}){if(!t.$id.startsWith("__hot:")){if(n.state&&(t._isOptionsAPI=!0),"function"==typeof n.state){wh(t,Object.keys(n.actions));const e=t._hotUpdate;mt(t)._hotUpdate=function(n){e.apply(this,arguments),wh(t,Object.keys(n._hmrPayload.actions))}}!function(e,t){vh.includes(mh(t.$id))||vh.push(mh(t.$id)),Kl({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:vh,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(e=>{const n="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction((({after:r,onError:o,name:i,args:a})=>{const s=_h++;e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🛫 "+i,subtitle:"start",data:{store:dh(t.$id),action:dh(i),args:a},groupId:s}}),r((r=>{bh=void 0,e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🛬 "+i,subtitle:"end",data:{store:dh(t.$id),action:dh(i),args:a,result:r},groupId:s}})})),o((r=>{bh=void 0,e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),logType:"error",title:"💥 "+i,subtitle:"end",data:{store:dh(t.$id),action:dh(i),args:a,error:r},groupId:s}})}))}),!0),t._customProperties.forEach((r=>{Qn((()=>Et(t[r])),((t,o)=>{e.notifyComponentUpdate(),e.sendInspectorState("pinia"),gh&&e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"Change",subtitle:r,data:{newValue:t,oldValue:o},groupId:bh}})}),{deep:!0})})),t.$subscribe((({events:r,type:o},i)=>{if(e.notifyComponentUpdate(),e.sendInspectorState("pinia"),!gh)return;const a={time:n(),title:hh(o),data:{store:dh(t.$id),...fh(r)},groupId:bh};bh=void 0,o===Jf.patchFunction?a.subtitle="⤵️":o===Jf.patchObject?a.subtitle="🧩":r&&!Array.isArray(r)&&(a.subtitle=r.type),r&&(a.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:r}}),e.addTimelineEvent({layerId:"pinia:mutations",event:a})}),{detached:!0,flush:"sync"});const r=t._hotUpdate;t._hotUpdate=yt((o=>{r(o),e.addTimelineEvent({layerId:"pinia:mutations",event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:dh(t.$id),info:dh("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia")}));const{$dispose:o}=t;t.$dispose=()=>{o(),e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia"),e.getSettings().logStoreChanges&&ih(`Disposed "${t.$id}" store 🗑`)},e.notifyComponentUpdate(),e.sendInspectorTree("pinia"),e.sendInspectorState("pinia"),e.getSettings().logStoreChanges&&ih(`"${t.$id}" store installed 🆕`)}))}(e,t)}}function Sh(){const e=te(!0),t=e.run((()=>kt({})));let n=[],r=[];const o=yt({install(e){Vf(o),o._a=e,e.provide(qf,o),e.config.globalProperties.$pinia=o,Xf&&yh(e,o),r.forEach((e=>n.push(e))),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return Xf&&"undefined"!=typeof Proxy&&o.use(xh),o}function kh(e,t){for(const n in t){const r=t[n];if(!(n in e))continue;const o=e[n];Kf(o)&&Kf(r)&&!St(r)&&!ft(r)?e[n]=kh(o,r):e[n]=r}return e}const Ch=()=>{};function Oh(e,t,n,r=Ch){e.push(t);const o=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&wi()&&Pr(o),o}function Ph(e,...t){e.slice().forEach((e=>{e(...t)}))}function Eh(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),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],o=e[n];Kf(o)&&Kf(r)&&e.hasOwnProperty(n)&&!St(r)&&!ft(r)?e[n]=Eh(o,r):e[n]=r}return e}const $h=Symbol("pinia:skipHydration");const{assign:Th}=Object;function Ih(e){return!(!St(e)||!e.effect)}function jh(e,t,n,r){const{state:o,actions:i,getters:a}=t,s=n.state.value[e];let l;return l=Ah(e,(function(){s||r||(n.state.value[e]=o?o():{});const t=It(r?kt(o?o():{}).value:n.state.value[e]);return Th(t,i,Object.keys(a||{}).reduce(((t,r)=>(t[r]=yt(Li((()=>{Vf(n);const t=n._s.get(e);return a[r].call(t,t)}))),t)),{}))}),t,n,r,!0),l.$reset=function(){const e=o?o():{};this.$patch((t=>{Th(t,e)}))},l}function Ah(e,t,n={},r,o,i){let a;const s=Th({actions:{}},n);if(!r._e.active)throw new Error("Pinia destroyed");const l={deep:!0};let c,u;l.onTrigger=e=>{c?d=e:0!=c||w._hotUpdating||Array.isArray(d)&&d.push(e)};let d,p=yt([]),f=yt([]);const h=r.state.value[e];i||h||o||(r.state.value[e]={});const g=kt({});let v;function m(t){let n;c=u=!1,d=[],"function"==typeof t?(t(r.state.value[e]),n={type:Jf.patchFunction,storeId:e,events:d}):(Eh(r.state.value[e],t),n={type:Jf.patchObject,payload:t,storeId:e,events:d});const o=v=Symbol();tn().then((()=>{v===o&&(c=!0)})),u=!0,Ph(p,n,r.state.value[e])}function y(t,n){return function(){Vf(r);const o=Array.from(arguments),i=[],a=[];function s(e){i.push(e)}function l(e){a.push(e)}let c;Ph(f,{args:o,name:t,store:w,after:s,onError:l});try{c=n.apply(this&&this.$id===e?this:w,o)}catch(u){throw Ph(a,u),u}return c instanceof Promise?c.then((e=>(Ph(i,e),e))).catch((e=>(Ph(a,e),Promise.reject(e)))):(Ph(i,c),c)}}const b=yt({actions:{},getters:{},state:[],hotState:g}),_={_p:r,$id:e,$onAction:Oh.bind(null,f),$patch:m,$reset:()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)},$subscribe(t,n={}){const o=Oh(p,t,n.detached,(()=>i())),i=a.run((()=>Qn((()=>r.state.value[e]),(r=>{("sync"===n.flush?u:c)&&t({storeId:e,type:Jf.direct,events:d},r)}),Th({},l,n))));return o},$dispose:function(){a.stop(),p=[],f=[],r._s.delete(e)}},w=ct(Th({_hmrPayload:b,_customProperties:yt(new Set)},_));r._s.set(e,w);const x=r._e.run((()=>(a=te(),a.run((()=>t())))));for(const k in x){const t=x[k];if(St(t)&&!Ih(t)||ft(t))o?Uf(g.value,k,At(x,k)):i||(!h||Kf(S=t)&&S.hasOwnProperty($h)||(St(t)?t.value=h[k]:Eh(t,h[k])),r.state.value[e][k]=t),b.state.push(k);else if("function"==typeof t){const e=o?t:y(k,t);x[k]=e,b.actions[k]=t,s.actions[k]=t}else if(Ih(t)&&(b.getters[k]=i?n.getters[k]:t,Yf)){(x._getters||(x._getters=yt([]))).push(k)}}var S;if(Th(w,x),Th(mt(w),x),Object.defineProperty(w,"$state",{get:()=>o?g.value:r.state.value[e],set:e=>{if(o)throw new Error("cannot set hotState");m((t=>{Th(t,e)}))}}),w._hotUpdate=yt((t=>{w._hotUpdating=!0,t._hmrPayload.state.forEach((e=>{if(e in w.$state){const n=t.$state[e],r=w.$state[e];"object"==typeof n&&Kf(n)&&Kf(r)?kh(n,r):t.$state[e]=r}Uf(w,e,At(t.$state,e))})),Object.keys(w.$state).forEach((e=>{e in t.$state||Hf(w,e)})),c=!1,u=!1,r.state.value[e]=At(t._hmrPayload,"hotState"),u=!0,tn().then((()=>{c=!0}));for(const e in t._hmrPayload.actions){const n=t[e];Uf(w,e,y(e,n))}for(const e in t._hmrPayload.getters){const n=t._hmrPayload.getters[e],o=i?Li((()=>(Vf(r),n.call(w,w)))):n;Uf(w,e,o)}Object.keys(w._hmrPayload.getters).forEach((e=>{e in t._hmrPayload.getters||Hf(w,e)})),Object.keys(w._hmrPayload.actions).forEach((e=>{e in t._hmrPayload.actions||Hf(w,e)})),w._hmrPayload=t._hmrPayload,w._getters=t._getters,w._hotUpdating=!1})),Xf){const e={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((t=>{Object.defineProperty(w,t,{value:w[t],...e})}))}return r._p.forEach((e=>{if(Xf){const t=a.run((()=>e({store:w,app:r._a,pinia:r,options:s})));Object.keys(t||{}).forEach((e=>w._customProperties.add(e))),Th(w,t)}else Th(w,a.run((()=>e({store:w,app:r._a,pinia:r,options:s}))))})),w.$state&&"object"==typeof w.$state&&"function"==typeof w.$state.constructor&&w.$state.constructor.toString().includes("[native code]"),h&&i&&n.hydrate&&n.hydrate(w.$state,h),c=!0,u=!0,w}function Nh(e,t,n){let r,o;const i="function"==typeof t;function a(e,n){const s=wi();if((e=e||s&&Yn(qf))&&Vf(e),!Wf)throw new Error("[🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia?\n\tconst pinia = createPinia()\n\tapp.use(pinia)\nThis will fail in production.");(e=Wf)._s.has(r)||(i?Ah(r,t,o,e):jh(r,o,e),a._pinia=e);const l=e._s.get(r);if(n){const a="__hot:"+r,s=i?Ah(a,t,o,e,!0):jh(a,Th({},o),e,!0);n._hotUpdate(s),delete e.state.value[a],e._s.delete(a)}if(Yf&&s&&s.proxy&&!n){const e=s.proxy;("_pStores"in e?e._pStores:e._pStores={})[r]=l}return l}return"string"==typeof e?(r=e,o=i?n:t):(o=e,r=e.id),a.$id=r,a}function Dh(e,t){return function(){return e.apply(t,arguments)}}const{toString:Rh}=Object.prototype,{getPrototypeOf:Lh}=Object,Mh=(Bh=Object.create(null),e=>{const t=Rh.call(e);return Bh[t]||(Bh[t]=t.slice(8,-1).toLowerCase())});var Bh;const Fh=e=>(e=e.toLowerCase(),t=>Mh(t)===e),zh=e=>t=>typeof t===e,{isArray:Uh}=Array,Hh=zh("undefined");const Wh=Fh("ArrayBuffer");const Vh=zh("string"),qh=zh("function"),Kh=zh("number"),Jh=e=>null!==e&&"object"==typeof e,Gh=e=>{if("object"!==Mh(e))return!1;const t=Lh(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Yh=Fh("Date"),Xh=Fh("File"),Zh=Fh("Blob"),Qh=Fh("FileList"),eg=Fh("URLSearchParams");function tg(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Uh(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}const ng=(rg="undefined"!=typeof Uint8Array&&Lh(Uint8Array),e=>rg&&e instanceof rg);var rg;const og=Fh("HTMLFormElement"),ig=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ag=Fh("RegExp"),sg=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};tg(n,((n,o)=>{!1!==t(n,o,e)&&(r[o]=n)})),Object.defineProperties(e,r)},lg={isArray:Uh,isArrayBuffer:Wh,isBuffer:function(e){return null!==e&&!Hh(e)&&null!==e.constructor&&!Hh(e.constructor)&&qh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{const t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||Rh.call(e)===t||qh(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Wh(e.buffer),t},isString:Vh,isNumber:Kh,isBoolean:e=>!0===e||!1===e,isObject:Jh,isPlainObject:Gh,isUndefined:Hh,isDate:Yh,isFile:Xh,isBlob:Zh,isRegExp:ag,isFunction:qh,isStream:e=>Jh(e)&&qh(e.pipe),isURLSearchParams:eg,isTypedArray:ng,isFileList:Qh,forEach:tg,merge:function e(){const t={},n=(n,r)=>{Gh(t[r])&&Gh(n)?t[r]=e(t[r],n):Gh(n)?t[r]=e({},n):Uh(n)?t[r]=n.slice():t[r]=n};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&tg(arguments[r],n);return t},extend:(e,t,n,{allOwnKeys:r}={})=>(tg(t,((t,r)=>{n&&qh(t)?e[r]=Dh(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Lh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Mh,kindOfTest:Fh,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Uh(e))return e;let t=e.length;if(!Kh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:og,hasOwnProperty:ig,hasOwnProp:ig,reduceDescriptors:sg,freezeMethods:e=>{sg(e,((t,n)=>{const r=e[n];qh(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Uh(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t)};function cg(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}lg.inherits(cg,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ug=cg.prototype,dg={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{dg[e]={value:e}})),Object.defineProperties(cg,dg),Object.defineProperty(ug,"isAxiosError",{value:!0}),cg.from=(e,t,n,r,o,i)=>{const a=Object.create(ug);return lg.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),cg.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var pg="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function fg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hg(e){var t=e.default;if("function"==typeof t){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var gg="object"==typeof self?self.FormData:window.FormData;function vg(e){return lg.isPlainObject(e)||lg.isArray(e)}function mg(e){return lg.endsWith(e,"[]")?e.slice(0,-2):e}function yg(e,t,n){return e?e.concat(t).map((function(e,t){return e=mg(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const bg=lg.toFlatObject(lg,{},null,(function(e){return/^is[A-Z]/.test(e)}));function _g(e,t,n){if(!lg.isObject(e))throw new TypeError("target must be an object");t=t||new(gg||FormData);const r=(n=lg.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!lg.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&((l=t)&&lg.isFunction(l.append)&&"FormData"===l[Symbol.toStringTag]&&l[Symbol.iterator]);var l;if(!lg.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(lg.isDate(e))return e.toISOString();if(!s&&lg.isBlob(e))throw new cg("Blob is not supported. Use a Buffer instead.");return lg.isArrayBuffer(e)||lg.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(lg.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(lg.isArray(e)&&function(e){return lg.isArray(e)&&!e.some(vg)}(e)||lg.isFileList(e)||lg.endsWith(n,"[]")&&(s=lg.toArray(e)))return n=mg(n),s.forEach((function(e,r){!lg.isUndefined(e)&&null!==e&&t.append(!0===a?yg([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!vg(e)||(t.append(yg(o,n,i),c(e)),!1)}const d=[],p=Object.assign(bg,{defaultVisitor:u,convertValue:c,isVisitable:vg});if(!lg.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!lg.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),lg.forEach(n,(function(n,i){!0===(!(lg.isUndefined(n)||null===n)&&o.call(t,n,lg.isString(i)?i.trim():i,r,p))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function wg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function xg(e,t){this._pairs=[],e&&_g(e,this,t)}const Sg=xg.prototype;function kg(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cg(e,t,n){if(!t)return e;const r=n&&n.encode||kg,o=n&&n.serialize;let i;if(i=o?o(t,n):lg.isURLSearchParams(t)?t.toString():new xg(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}Sg.append=function(e,t){this._pairs.push([e,t])},Sg.toString=function(e){const t=e?function(t){return e.call(this,t,wg)}:wg;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Og{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){lg.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Pg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Eg="undefined"!=typeof URLSearchParams?URLSearchParams:xg,$g=FormData,Tg=(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),Ig={isBrowser:!0,classes:{URLSearchParams:Eg,FormData:$g,Blob:Blob},isStandardBrowserEnv:Tg,protocols:["http","https","file","blob","url","data"]};function jg(e){function t(e,n,r,o){let i=e[o++];const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&lg.isArray(r)?r.length:i,s)return lg.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&lg.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&lg.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(lg.isFormData(e)&&lg.isFunction(e.entries)){const n={};return lg.forEachEntry(e,((e,r)=>{t(function(e){return lg.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Ag=Ig.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const a=[];a.push(e+"="+encodeURIComponent(t)),lg.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),lg.isString(r)&&a.push("path="+r),lg.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ng(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Dg=Ig.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=lg.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Rg(e,t,n){cg.call(this,null==e?"canceled":e,cg.ERR_CANCELED,t,n),this.name="CanceledError"}lg.inherits(Rg,cg,{__CANCEL__:!0});const Lg=lg.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Mg=Symbol("internals"),Bg=Symbol("defaults");function Fg(e){return e&&String(e).trim().toLowerCase()}function zg(e){return!1===e||null==e?e:lg.isArray(e)?e.map(zg):String(e)}function Ug(e,t,n,r){return lg.isFunction(r)?r.call(this,t,n):lg.isString(t)?lg.isString(r)?-1!==t.indexOf(r):lg.isRegExp(r)?r.test(t):void 0:void 0}function Hg(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}function Wg(e,t){e&&this.set(e),this[Bg]=t||null}function Vg(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s);n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0};c[t?"download":"upload"]=!0,e(c)}}function qg(e){return new Promise((function(t,n){let r=e.data;const o=Wg.from(e.headers).normalize(),i=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}lg.isFormData(r)&&Ig.isStandardBrowserEnv&&o.setContentType(!1);let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const c=Ng(e.baseURL,e.url);function u(){if(!l)return;const r=Wg.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new cg("Request failed with status code "+n.status,[cg.ERR_BAD_REQUEST,cg.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:i&&"text"!==i&&"json"!==i?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:r,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),Cg(c,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(u)},l.onabort=function(){l&&(n(new cg("Request aborted",cg.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new cg("Network Error",cg.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Pg;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new cg(t,r.clarifyTimeoutError?cg.ETIMEDOUT:cg.ECONNABORTED,e,l)),l=null},Ig.isStandardBrowserEnv){const t=(e.withCredentials||Dg(c))&&e.xsrfCookieName&&Ag.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in l&&lg.forEach(o.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),lg.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&"json"!==i&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",Vg(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",Vg(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{l&&(n(!t||t.type?new Rg(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const d=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c);d&&-1===Ig.protocols.indexOf(d)?n(new cg("Unsupported protocol "+d+":",cg.ERR_BAD_REQUEST,e)):l.send(r||null)}))}Object.assign(Wg.prototype,{set:function(e,t,n){const r=this;function o(e,t,n){const o=Fg(t);if(!o)throw new Error("header name must be a non-empty string");const i=Hg(r,o);(!i||!0===n||!1!==r[i]&&!1!==n)&&(r[i||t]=zg(e))}return lg.isPlainObject(e)?lg.forEach(e,((e,n)=>{o(e,n,t)})):o(t,e,n),this},get:function(e,t){if(!(e=Fg(e)))return;const n=Hg(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(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}(e);if(lg.isFunction(t))return t.call(this,e,n);if(lg.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}},has:function(e,t){if(e=Fg(e)){const n=Hg(this,e);return!(!n||t&&!Ug(0,this[n],n,t))}return!1},delete:function(e,t){const n=this;let r=!1;function o(e){if(e=Fg(e)){const o=Hg(n,e);!o||t&&!Ug(0,n[o],o,t)||(delete n[o],r=!0)}}return lg.isArray(e)?e.forEach(o):o(e),r},clear:function(){return Object.keys(this).forEach(this.delete.bind(this))},normalize:function(e){const t=this,n={};return lg.forEach(this,((r,o)=>{const i=Hg(n,o);if(i)return t[i]=zg(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=zg(r),n[a]=!0})),this},toJSON:function(e){const t=Object.create(null);return lg.forEach(Object.assign({},this[Bg]||null,this),((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&lg.isArray(n)?n.join(", "):n)})),t}}),Object.assign(Wg,{from:function(e){return lg.isString(e)?new this((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Lg[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e)):e instanceof this?e:new this(e)},accessor:function(e){const t=(this[Mg]=this[Mg]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Fg(e);t[r]||(!function(e,t){const n=lg.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return lg.isArray(e)?e.forEach(r):r(e),this}}),Wg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]),lg.freezeMethods(Wg.prototype),lg.freezeMethods(Wg);const Kg={http:qg,xhr:qg},Jg=e=>{if(lg.isString(e)){const t=Kg[e];if(!e)throw Error(lg.hasOwnProp(e)?`Adapter '${e}' is not available in the build`:`Can not resolve adapter '${e}'`);return t}if(!lg.isFunction(e))throw new TypeError("adapter is not a function");return e},Gg={"Content-Type":"application/x-www-form-urlencoded"};const Yg={transitional:Pg,adapter:function(){let e;return"undefined"!=typeof XMLHttpRequest?e=Jg("xhr"):"undefined"!=typeof process&&"process"===lg.kindOf(process)&&(e=Jg("http")),e}(),transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=lg.isObject(e);o&&lg.isHTMLForm(e)&&(e=new FormData(e));if(lg.isFormData(e))return r&&r?JSON.stringify(jg(e)):e;if(lg.isArrayBuffer(e)||lg.isBuffer(e)||lg.isStream(e)||lg.isFile(e)||lg.isBlob(e))return e;if(lg.isArrayBufferView(e))return e.buffer;if(lg.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _g(e,new Ig.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ig.isNode&&lg.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=lg.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _g(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(lg.isString(e))try{return(t||JSON.parse)(e),lg.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Yg.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&lg.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(n){if("SyntaxError"===o.name)throw cg.from(o,cg.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ig.classes.FormData,Blob:Ig.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};function Xg(e,t){const n=this||Yg,r=t||n,o=Wg.from(r.headers);let i=r.data;return lg.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Zg(e){return!(!e||!e.__CANCEL__)}function Qg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rg}function ev(e){Qg(e),e.headers=Wg.from(e.headers),e.data=Xg.call(e,e.transformRequest);return(e.adapter||Yg.adapter)(e).then((function(t){return Qg(e),t.data=Xg.call(e,e.transformResponse,t),t.headers=Wg.from(t.headers),t}),(function(t){return Zg(t)||(Qg(e),t&&t.response&&(t.response.data=Xg.call(e,e.transformResponse,t.response),t.response.headers=Wg.from(t.response.headers))),Promise.reject(t)}))}function tv(e,t){t=t||{};const n={};function r(e,t){return lg.isPlainObject(e)&&lg.isPlainObject(t)?lg.merge(e,t):lg.isPlainObject(t)?lg.merge({},t):lg.isArray(t)?t.slice():t}function o(n){return lg.isUndefined(t[n])?lg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function i(e){if(!lg.isUndefined(t[e]))return r(void 0,t[e])}function a(n){return lg.isUndefined(t[n])?lg.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function s(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s};return lg.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){const t=l[e]||o,r=t(e);lg.isUndefined(r)&&t!==s||(n[e]=r)})),n}lg.forEach(["delete","get","head"],(function(e){Yg.headers[e]={}})),lg.forEach(["post","put","patch"],(function(e){Yg.headers[e]=lg.merge(Gg)}));const nv={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{nv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rv={};nv.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new cg(function(e,t){return"[Axios v1.1.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),cg.ERR_DEPRECATED);return t&&!rv[o]&&(rv[o]=!0),!e||e(r,o,i)}};const ov={assertOptions:function(e,t,n){if("object"!=typeof e)throw new cg("options must be an object",cg.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new cg("option "+i+" must be "+n,cg.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new cg("Unknown option "+i,cg.ERR_BAD_OPTION)}},validators:nv},iv=ov.validators;class av{constructor(e){this.defaults=e,this.interceptors={request:new Og,response:new Og}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tv(this.defaults,t);const{transitional:n,paramsSerializer:r}=t;void 0!==n&&ov.assertOptions(n,{silentJSONParsing:iv.transitional(iv.boolean),forcedJSONParsing:iv.transitional(iv.boolean),clarifyTimeoutError:iv.transitional(iv.boolean)},!1),void 0!==r&&ov.assertOptions(r,{encode:iv.function,serialize:iv.function},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();const o=t.headers&&lg.merge(t.headers.common,t.headers[t.method]);o&&lg.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),t.headers=new Wg(t.headers,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const s=[];let l;this.interceptors.response.forEach((function(e){s.push(e.fulfilled,e.rejected)}));let c,u=0;if(!a){const e=[ev.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,s),c=e.length,l=Promise.resolve(t);u<c;)l=l.then(e[u++],e[u++]);return l}c=i.length;let d=t;for(u=0;u<c;){const e=i[u++],t=i[u++];try{d=e(d)}catch(p){t.call(this,p);break}}try{l=ev.call(this,d)}catch(p){return Promise.reject(p)}for(u=0,c=s.length;u<c;)l=l.then(s[u++],s[u++]);return l}getUri(e){return Cg(Ng((e=tv(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}lg.forEach(["delete","get","head","options"],(function(e){av.prototype[e]=function(t,n){return this.request(tv(n||{},{method:e,url:t,data:(n||{}).data}))}})),lg.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(tv(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}av.prototype[e]=t(),av.prototype[e+"Form"]=t(!0)}));class sv{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Rg(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new sv((function(t){e=t})),cancel:e}}}const lv=function e(t){const n=new av(t),r=Dh(av.prototype.request,n);return lg.extend(r,av.prototype,n,{allOwnKeys:!0}),lg.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(tv(t,n))},r}(Yg);lv.Axios=av,lv.CanceledError=Rg,lv.CancelToken=sv,lv.isCancel=Zg,lv.VERSION="1.1.3",lv.toFormData=_g,lv.AxiosError=cg,lv.Cancel=lv.CanceledError,lv.all=function(e){return Promise.all(e)},lv.spread=function(e){return function(t){return e.apply(null,t)}},lv.isAxiosError=function(e){return lg.isObject(e)&&!0===e.isAxiosError},lv.formToJSON=e=>jg(lg.isHTMLForm(e)?new FormData(e):e);let cv=[];const uv=new WeakMap;function dv(){cv.forEach((e=>e(...uv.get(e)))),cv=[]}function pv(e,t){let{target:n}=e;for(;n;){if(n.dataset&&void 0!==n.dataset[t])return!0;n=n.parentElement}return!1}function fv(e){return e.composedPath()[0]||null}function hv(e){return"string"==typeof e?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function gv(e){if(null!=e)return"number"==typeof e?`${e}px`:e.endsWith("px")?e:`${e}px`}const vv={black:"#000",silver:"#C0C0C0",gray:"#808080",white:"#FFF",maroon:"#800000",red:"#F00",purple:"#800080",fuchsia:"#F0F",green:"#008000",lime:"#0F0",olive:"#808000",yellow:"#FF0",navy:"#000080",blue:"#00F",teal:"#008080",aqua:"#0FF",transparent:"#0000"},mv="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",yv="([0-9A-Fa-f])",bv="([0-9A-Fa-f]{2})",_v=new RegExp(`^\\s*rgb\\s*\\(${mv},${mv},${mv}\\)\\s*$`),wv=new RegExp(`^\\s*rgba\\s*\\(${mv},${mv},${mv},${mv}\\)\\s*$`),xv=new RegExp(`^\\s*#${yv}${yv}${yv}\\s*$`),Sv=new RegExp(`^\\s*#${bv}${bv}${bv}\\s*$`),kv=new RegExp(`^\\s*#${yv}${yv}${yv}${yv}\\s*$`),Cv=new RegExp(`^\\s*#${bv}${bv}${bv}${bv}\\s*$`);function Ov(e){return parseInt(e,16)}function Pv(e){try{let t;if(t=Sv.exec(e))return[Ov(t[1]),Ov(t[2]),Ov(t[3]),1];if(t=_v.exec(e))return[Nv(t[1]),Nv(t[5]),Nv(t[9]),1];if(t=wv.exec(e))return[Nv(t[1]),Nv(t[5]),Nv(t[9]),Av(t[13])];if(t=xv.exec(e))return[Ov(t[1]+t[1]),Ov(t[2]+t[2]),Ov(t[3]+t[3]),1];if(t=Cv.exec(e))return[Ov(t[1]),Ov(t[2]),Ov(t[3]),Av(Ov(t[4])/255)];if(t=kv.exec(e))return[Ov(t[1]+t[1]),Ov(t[2]+t[2]),Ov(t[3]+t[3]),Av(Ov(t[4]+t[4])/255)];if(e in vv)return Pv(vv[e]);throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function Ev(e,t,n,r){return`rgba(${Nv(e)}, ${Nv(t)}, ${Nv(n)}, ${o=r,o>1?1:o<0?0:o})`;var o}function $v(e,t,n,r,o){return Nv((e*t*(1-r)+n*r)/o)}function Tv(e,t){Array.isArray(e)||(e=Pv(e)),Array.isArray(t)||(t=Pv(t));const n=e[3],r=t[3],o=Av(n+r-n*r);return Ev($v(e[0],n,t[0],r,o),$v(e[1],n,t[1],r,o),$v(e[2],n,t[2],r,o),o)}function Iv(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Pv(e);return t.alpha?Ev(n,r,o,t.alpha):Ev(n,r,o,i)}function jv(e,t){const[n,r,o,i=1]=Array.isArray(e)?e:Pv(e),{lightness:a=1,alpha:s=1}=t;return function(e){const[t,n,r]=e;if(3 in e)return`rgba(${Nv(t)}, ${Nv(n)}, ${Nv(r)}, ${Av(e[3])})`;return`rgba(${Nv(t)}, ${Nv(n)}, ${Nv(r)}, 1)`}([n*a,r*a,o*a,i*s])}function Av(e){const t=Math.round(100*Number(e))/100;return t>1?1:t<0?0:t}function Nv(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function Dv(e=8){return Math.random().toString(16).slice(2,2+e)}function Rv(e,t=[],n){const r={};return t.forEach((t=>{r[t]=e[t]})),Object.assign(r,n)}function Lv(e,t=!0,n=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))Lv(e,t,n);else if(e.type===Ho){if(null===e.children)return;Array.isArray(e.children)&&Lv(e.children,t,n)}else e.type!==Vo&&n.push(e);else"string"!=typeof e&&"number"!=typeof e||n.push(ui(String(e)))})),n}function Mv(e,...t){if(!Array.isArray(e))return e(...t);e.forEach((e=>Mv(e,...t)))}const Bv=(e,...t)=>"function"==typeof e?e(...t):"string"==typeof e?ui(e):"number"==typeof e?ui(String(e)):null,Fv=new Set;function zv(e,t){const n=`[naive/${e}]: ${t}`;Fv.has(n)||Fv.add(n)}function Uv(e,t){throw new Error(`[naive/${e}]: ${t}`)}function Hv(e,t="default",n){const r=e[t];if(!r)return null;const o=Lv(r(n));return 1===o.length?o[0]:null}function Wv(e){return t=>{e.value=t?t.$el:null}}function Vv(e){return e.some((e=>!ti(e)||e.type!==Vo&&!(e.type===Ho&&!Vv(e.children))))?e:null}function qv(e,t,n){return e&&Vv(e(t))||n(t)}function Kv(e,t){return t(e&&Vv(e())||null)}function Jv(e){return!(e&&Vv(e()))}const Gv=fr({render(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}}),Yv=/^(\d|\.)+$/,Xv=/(\d|\.)+/;function Zv(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if("number"==typeof e){const r=(e+n)*t;return 0===r?"0":`${r}px`}if("string"==typeof e){if(Yv.test(e)){const o=(Number(e)+n)*t;return r?0===o?"0":`${o}px`:`${o}`}{const r=Xv.exec(e);return r?e.replace(Xv,String((Number(r[0])+n)*t)):e}}return e}function Qv(e){return e.replace(/#|\(|\)|,|\s/g,"_")}const em=/\s*,(?![^(]*\))\s*/g,tm=/\s+/g;function nm(e){let t=[""];return e.forEach((e=>{(e=e&&e.trim())&&(t=e.includes("&")?function(e,t){const n=[];return t.split(em).forEach((t=>{let r=function(e){let t=0;for(let n=0;n<e.length;++n)"&"===e[n]&&++t;return t}(t);if(!r)return void e.forEach((e=>{n.push((e&&e+" ")+t)}));if(1===r)return void e.forEach((e=>{n.push(t.replace("&",e))}));let o=[t];for(;r--;){const t=[];o.forEach((n=>{e.forEach((e=>{t.push(n.replace("&",e))}))})),o=t}o.forEach((e=>n.push(e)))})),n}(t,e):function(e,t){const n=[];return t.split(em).forEach((t=>{e.forEach((e=>{n.push((e&&e+" ")+t)}))})),n}(t,e))})),t.join(", ").replace(tm," ")}function rm(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function om(e){return document.querySelector(`style[cssr-id="${e}"]`)}function im(e){return!!e&&/^\s*@(s|m)/.test(e)}const am=/[A-Z]/g;function sm(e){return e.replace(am,(e=>"-"+e.toLowerCase()))}function lm(e,t,n,r){if(!t)return"";const o=function(e,t,n){return"function"==typeof e?e({context:t.context,props:n}):e}(t,n,r);if(!o)return"";if("string"==typeof o)return`${e} {\n${o}\n}`;const i=Object.keys(o);if(0===i.length)return n.config.keepEmptyBlock?e+" {\n}":"";const a=e?[e+" {"]:[];return i.forEach((e=>{const t=o[e];"raw"!==e?(e=sm(e),null!=t&&a.push(`  ${e}${function(e,t="  "){return"object"==typeof e&&null!==e?" {\n"+Object.entries(e).map((e=>t+`  ${sm(e[0])}: ${e[1]};`)).join("\n")+"\n"+t+"}":`: ${e};`}(t)}`)):a.push("\n"+t+"\n")})),e&&a.push("}"),a.join("\n")}function cm(e,t,n){e&&e.forEach((e=>{if(Array.isArray(e))cm(e,t,n);else if("function"==typeof e){const r=e(t);Array.isArray(r)?cm(r,t,n):r&&n(r)}else e&&n(e)}))}function um(e,t,n,r,o,i){const a=e.$;let s="";if(a&&"string"!=typeof a)if("function"==typeof a){const e=a({context:r.context,props:o});im(e)?s=e:t.push(e)}else if(a.before&&a.before(r.context),a.$&&"string"!=typeof a.$){if(a.$){const e=a.$({context:r.context,props:o});im(e)?s=e:t.push(e)}}else im(a.$)?s=a.$:t.push(a.$);else im(a)?s=a:t.push(a);const l=nm(t),c=lm(l,e.props,r,o);s?(n.push(`${s} {`),i&&c&&i.insertRule(`${s} {\n${c}\n}\n`)):(i&&c&&i.insertRule(c),!i&&c.length&&n.push(c)),e.children&&cm(e.children,{context:r.context,props:o},(e=>{if("string"==typeof e){const t=lm(l,{raw:e},r,o);i?i.insertRule(t):n.push(t)}else um(e,t,n,r,o,i)})),t.pop(),s&&n.push("}"),a&&a.after&&a.after(r.context)}function dm(e,t,n,r=!1){const o=[];return um(e,[],o,t,n,r?e.instance.__styleSheet:void 0),r?"":o.join("\n\n")}function pm(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}function fm(e,t){e.push(t)}function hm(e,t,n,r,o,i,a,s,l){if(i&&!l){if(void 0===n)return;const o=window.__cssrContext;return void(o[n]||(o[n]=!0,dm(t,e,r,i)))}let c;if(void 0===n&&(c=t.render(r),n=pm(c)),l)return void l.adapter(n,null!=c?c:t.render(r));const u=om(n);if(null!==u&&!a)return u;const d=null!=u?u:function(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}(n);if(void 0===c&&(c=t.render(r)),d.textContent=c,null!==u)return u;if(s){const e=document.head.querySelector(`meta[name="${s}"]`);if(e)return document.head.insertBefore(d,e),fm(t.els,d),d}return o?document.head.insertBefore(d,document.head.querySelector("style, link")):document.head.appendChild(d),fm(t.els,d),d}function gm(e){return dm(this,this.instance,e)}function vm(e={}){const{id:t,ssr:n,props:r,head:o=!1,silent:i=!1,force:a=!1,anchorMetaName:s}=e;return hm(this.instance,this,t,r,o,i,a,s,n)}function mm(e={}){const{id:t}=e;!function(e,t,n){const{els:r}=t;if(void 0===n)r.forEach(rm),t.els=[];else{const e=om(n);e&&r.includes(e)&&(rm(e),t.els=r.filter((t=>t!==e)))}}(this.instance,this,t)}"undefined"!=typeof window&&(window.__cssrContext={});const ym=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:gm,mount:vm,unmount:mm}};function bm(e={}){let t=null;const n={c:(...e)=>function(e,t,n,r){return Array.isArray(t)?ym(e,{$:null},null,t):Array.isArray(n)?ym(e,t,null,n):Array.isArray(r)?ym(e,t,n,r):ym(e,t,n,null)}(n,...e),use:(e,...t)=>e.install(n,...t),find:om,context:{},config:e,get __styleSheet(){if(!t){const e=document.createElement("style");return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}function _m(e,t){return e+("default"===t?"":t.replace(/^[a-z]/,(e=>e.toUpperCase())))}_m("abc","def");const wm=bm(),xm=function(e){let t,n=".",r="__",o="--";if(e){let t=e.blockPrefix;t&&(n=t),t=e.elementPrefix,t&&(r=t),t=e.modifierPrefix,t&&(o=t)}const i={install(e){t=e.c;const n=e.context;n.bem={},n.bem.b=null,n.bem.els=null}};return Object.assign(i,{cB:(...e)=>t(function(e){let t,r;return{before(e){t=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=t,e.bem.els=r},$:({context:t,props:r})=>(e="string"==typeof e?e:e({context:t,props:r}),t.bem.b=e,`${(null==r?void 0:r.bPrefix)||n}${t.bem.b}`)}}(e[0]),e[1],e[2]),cE:(...e)=>t(function(e){let t;return{before(e){t=e.bem.els},after(e){e.bem.els=t},$:({context:t,props:o})=>(e="string"==typeof e?e:e({context:t,props:o}),t.bem.els=e.split(",").map((e=>e.trim())),t.bem.els.map((e=>`${(null==o?void 0:o.bPrefix)||n}${t.bem.b}${r}${e}`)).join(", "))}}(e[0]),e[1],e[2]),cM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){const a=(i="string"==typeof i?i:i({context:e,props:t})).split(",").map((e=>e.trim()));function s(i){return a.map((a=>`&${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${void 0!==i?`${r}${i}`:""}${o}${a}`)).join(", ")}const l=e.bem.els;if(null!==l){if(l.length>=2)throw Error(`[css-render/plugin-bem]: m(${i}) is invalid, using modifier inside multiple elements is not allowed`);return s(l[0])}return s()}}),e[1],e[2]);var i},cNotM:(...e)=>{return t((i=e[0],{$({context:e,props:t}){i="string"==typeof i?i:i({context:e,props:t});const a=e.bem.els;if(null!==a&&a.length>=2)throw Error(`[css-render/plugin-bem]: notM(${i}) is invalid, using modifier inside multiple elements is not allowed`);return`&:not(${(null==t?void 0:t.bPrefix)||n}${e.bem.b}${null!==a&&a.length>0?`${r}${a[0]}`:""}${o}${i})`}}),e[1],e[2]);var i}}),i}({blockPrefix:".n-",elementPrefix:"__",modifierPrefix:"--"});wm.use(xm);const{c:Sm,find:km}=wm,{cB:Cm,cE:Om,cM:Pm,cNotM:Em}=xm,$m=(...e)=>Sm(">",[Cm(...e)]);let Tm;const Im="undefined"!=typeof document&&"undefined"!=typeof window,jm=new WeakSet;function Am(e){const t=kt(!!e.value);if(t.value)return ut(t);const n=Qn(e,(e=>{e&&(t.value=!0,n())}));return ut(t)}function Nm(e){const t=Li(e),n=kt(t.value);return Qn(t,(e=>{n.value=e})),"function"==typeof e?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}const Dm="undefined"!=typeof window;let Rm,Lm;var Mm,Bm;function Fm(e){return e.composedPath()[0]}Rm=Dm?null===(Bm=null===(Mm=document)||void 0===Mm?void 0:Mm.fonts)||void 0===Bm?void 0:Bm.ready:void 0,Lm=!1,void 0!==Rm?Rm.then((()=>{Lm=!0})):Lm=!0;const zm={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function Um(e,t,n){const r=zm[e];let o=r.get(t);void 0===o&&r.set(t,o=new WeakMap);let i=o.get(n);return void 0===i&&o.set(n,i=function(e,t,n){if("mousemoveoutside"===e){const e=e=>{t.contains(Fm(e))||n(e)};return{mousemove:e,touchstart:e}}if("clickoutside"===e){let e=!1;const r=n=>{e=!t.contains(Fm(n))},o=r=>{e&&(t.contains(Fm(r))||n(r))};return{mousedown:r,mouseup:o,touchstart:r,touchend:o}}return{}}(e,t,n)),i}const{on:Hm,off:Wm}=function(){if("undefined"==typeof window)return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function o(e,t,n){const r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function i(e,t){e[t]=Event.prototype[t]}const a=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function l(){var e;return null!==(e=a.get(this))&&void 0!==e?e:null}function c(e,t){void 0!==s&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:null!=t?t:s.get})}const u={bubble:{},capture:{}},d={},p=function(){const s=function(s){const{type:d,eventPhase:p,bubbles:f}=s,h=Fm(s);if(2===p)return;const g=1===p?"capture":"bubble";let v=h;const m=[];for(;null===v&&(v=window),m.push(v),v!==window;)v=v.parentNode||null;const y=u.capture[d],b=u.bubble[d];if(o(s,"stopPropagation",n),o(s,"stopImmediatePropagation",r),c(s,l),"capture"===g){if(void 0===y)return;for(let n=m.length-1;n>=0&&!e.has(s);--n){const e=m[n],r=y.get(e);if(void 0!==r){a.set(s,e);for(const e of r){if(t.has(s))break;e(s)}}if(0===n&&!f&&void 0!==b){const n=b.get(e);if(void 0!==n)for(const e of n){if(t.has(s))break;e(s)}}}}else if("bubble"===g){if(void 0===b)return;for(let n=0;n<m.length&&!e.has(s);++n){const e=m[n],r=b.get(e);if(void 0!==r){a.set(s,e);for(const e of r){if(t.has(s))break;e(s)}}}}i(s,"stopPropagation"),i(s,"stopImmediatePropagation"),c(s)};return s.displayName="evtdUnifiedHandler",s}(),f=function(){const e=function(e){const{type:t,eventPhase:n}=e;if(2!==n)return;const r=d[t];void 0!==r&&r.forEach((t=>t(e)))};return e.displayName="evtdUnifiedWindowEventHandler",e}();function h(e,t){const n=u[e];return void 0===n[t]&&(n[t]=new Map,window.addEventListener(t,p,"capture"===e)),n[t]}function g(e,t){let n=e.get(t);return void 0===n&&e.set(t,n=new Set),n}function v(e,t,n,r){const o=function(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=Um(e,t,n);return Object.keys(o).forEach((e=>{Wm(e,document,o[e],r)})),!0}return!1}(e,t,n,r);if(o)return;const i=!0===r||"object"==typeof r&&!0===r.capture,a=i?"capture":"bubble",s=h(a,e),l=g(s,t);if(t===window){if(!function(e,t,n,r){const o=u[t][n];if(void 0!==o){const t=o.get(e);if(void 0!==t&&t.has(r))return!0}return!1}(t,i?"bubble":"capture",e,n)&&function(e,t){const n=d[e];return!(void 0===n||!n.has(t))}(e,n)){const t=d[e];t.delete(n),0===t.size&&(window.removeEventListener(e,f),d[e]=void 0)}}l.has(n)&&l.delete(n),0===l.size&&s.delete(t),0===s.size&&(window.removeEventListener(e,p,"capture"===a),u[a][e]=void 0)}return{on:function(e,t,n,r){let o;o="object"==typeof r&&!0===r.once?i=>{v(e,t,o,r),n(i)}:n;const i=function(e,t,n,r){if("mousemoveoutside"===e||"clickoutside"===e){const o=Um(e,t,n);return Object.keys(o).forEach((e=>{Hm(e,document,o[e],r)})),!0}return!1}(e,t,o,r);if(i)return;const a=g(h(!0===r||"object"==typeof r&&!0===r.capture?"capture":"bubble",e),t);if(a.has(o)||a.add(o),t===window){const t=function(e){return void 0===d[e]&&(d[e]=new Set,window.addEventListener(e,f)),d[e]}(e);t.has(o)||t.add(o)}},off:v}}();function Vm(e,t){return Qn(e,(e=>{void 0!==e&&(t.value=e)})),Li((()=>void 0===e.value?t.value:e.value))}function qm(){const e=kt(!1);return Sr((()=>{e.value=!0})),ut(e)}function Km(e,t){return Li((()=>{for(const n of t)if(void 0!==e[n])return e[n];return e[t[t.length-1]]}))}const Jm="undefined"!=typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;function Gm(e={},t){const n=ct({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:r,keyup:o}=e,i=e=>{switch(e.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0}void 0!==r&&Object.keys(r).forEach((t=>{if(t!==e.key)return;const n=r[t];if("function"==typeof n)n(e);else{const{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}}))},a=e=>{switch(e.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1}void 0!==o&&Object.keys(o).forEach((t=>{if(t!==e.key)return;const n=o[t];if("function"==typeof n)n(e);else{const{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}}))},s=()=>{(void 0===t||t.value)&&(Hm("keydown",document,i),Hm("keyup",document,a)),void 0!==t&&Qn(t,(e=>{e?(Hm("keydown",document,i),Hm("keyup",document,a)):(Wm("keydown",document,i),Wm("keyup",document,a))}))};return null!==wi()?(xr(s),Or((()=>{(void 0===t||t.value)&&(Wm("keydown",document,i),Wm("keyup",document,a))}))):s(),ut(n)}function Ym(e){const t=Yn("n-modal-body",null),n=Yn("n-drawer-body",null),r=Yn("n-popover-body",null),o=Yn("n-internal-select-menu-body",null),i=kt();if("undefined"!=typeof document){i.value=document.fullscreenElement;const e=()=>{i.value=document.fullscreenElement};Sr((()=>{Hm("fullscreenchange",document,e)})),Or((()=>{Wm("fullscreenchange",document,e)}))}return Nm((()=>{var a;const{to:s}=e;return void 0!==s?!1===s?"__disabled__":!0===s?i.value||"body":s:(null==t?void 0:t.value)?null!==(a=t.value.$el)&&void 0!==a?a:t.value:(null==n?void 0:n.value)?n.value:(null==r?void 0:r.value)?r.value:(null==o?void 0:o.value)?o.value:null!=s?s:i.value||"body"}))}Ym.tdkey="__disabled__",Ym.propTo={type:[String,Object,Boolean],default:void 0};let Xm=!1;function Zm(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function Qm(e,t=!0,n=[]){return e.forEach((e=>{if(null!==e)if("object"==typeof e)if(Array.isArray(e))Qm(e,t,n);else if(e.type===Ho){if(null===e.children)return;Array.isArray(e.children)&&Qm(e.children,t,n)}else e.type!==Vo&&n.push(e);else"string"!=typeof e&&"number"!=typeof e||n.push(ui(String(e)))})),n}function ey(e,t,n="default"){const r=t[n];if(void 0===r)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);const o=Qm(r());if(1===o.length)return o[0];throw new Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}let ty=null;function ny(){if(null===ty&&(ty=document.getElementById("v-binder-view-measurer"),null===ty)){ty=document.createElement("div"),ty.id="v-binder-view-measurer";const{style:e}=ty;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(ty)}return ty.getBoundingClientRect()}function ry(e){const t=e.getBoundingClientRect(),n=ny();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function oy(e){if(null===e)return null;const t=function(e){return 9===e.nodeType?null:e.parentNode}(e);if(null===t)return null;if(9===t.nodeType)return document;if(1===t.nodeType){const{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return oy(t)}const iy=fr({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;Gn("VBinder",null===(t=wi())||void 0===t?void 0:t.proxy);const n=Yn("VBinder",null),r=kt(null);let o=[];const i=()=>{for(const e of o)Wm("scroll",e,s,!0);o=[]},a=new Set,s=()=>{!function(e,...t){uv.set(e,t),cv.includes(e)||1===cv.push(e)&&requestAnimationFrame(dv)}(l)},l=()=>{a.forEach((e=>e()))},c=new Set,u=()=>{c.forEach((e=>e()))};return Or((()=>{Wm("resize",window,u),i()})),{targetRef:r,setTargetRef:t=>{r.value=t,n&&e.syncTargetWithParent&&n.setTargetRef(t)},addScrollListener:e=>{0===a.size&&(()=>{let e=r.value;for(;e=oy(e),null!==e;)o.push(e);for(const t of o)Hm("scroll",t,s,!0)})(),a.has(e)||a.add(e)},removeScrollListener:e=>{a.has(e)&&a.delete(e),0===a.size&&i()},addResizeListener:e=>{0===c.size&&Hm("resize",window,u),c.has(e)||c.add(e)},removeResizeListener:e=>{c.has(e)&&c.delete(e),0===c.size&&Wm("resize",window,u)}}},render(){return Zm("binder",this.$slots)}}),ay=iy,sy=fr({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Yn("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?Ar(ey("follower",this.$slots),[[t]]):ey("follower",this.$slots)}}),ly="@@mmoContext",cy={mounted(e,{value:t}){e[ly]={handler:void 0},"function"==typeof t&&(e[ly].handler=t,Hm("mousemoveoutside",e,t))},updated(e,{value:t}){const n=e[ly];"function"==typeof t?n.handler?n.handler!==t&&(Wm("mousemoveoutside",e,n.handler),n.handler=t,Hm("mousemoveoutside",e,t)):(e[ly].handler=t,Hm("mousemoveoutside",e,t)):n.handler&&(Wm("mousemoveoutside",e,n.handler),n.handler=void 0)},unmounted(e){const{handler:t}=e[ly];t&&Wm("mousemoveoutside",e,t),e[ly].handler=void 0}},uy="@@coContext",dy={mounted(e,{value:t,modifiers:n}){e[uy]={handler:void 0},"function"==typeof t&&(e[uy].handler=t,Hm("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[uy];"function"==typeof t?r.handler?r.handler!==t&&(Wm("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,Hm("clickoutside",e,t,{capture:n.capture})):(e[uy].handler=t,Hm("clickoutside",e,t,{capture:n.capture})):r.handler&&(Wm("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[uy];n&&Wm("clickoutside",e,n,{capture:t.capture}),e[uy].handler=void 0}};const py=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){const{elementZIndex:n}=this;if(void 0!==t)return e.style.zIndex=`${t}`,void n.delete(e);const{nextZIndex:r}=this;if(n.has(e)){if(n.get(e)+1===this.nextZIndex)return}e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState()}unregister(e,t){const{elementZIndex:n}=this;n.has(e)&&n.delete(e),this.squashState()}squashState(){const{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){const e=Array.from(this.elementZIndex.entries());e.sort(((e,t)=>e[1]-t[1])),this.nextZIndex=2e3,e.forEach((e=>{const t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)}))}},fy="@@ziContext",hy={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n;e[fy]={enabled:!!o,initialized:!1},o&&(py.ensureZIndex(e,r),e[fy].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:o}=n,i=e[fy].enabled;o&&!i&&(py.ensureZIndex(e,r),e[fy].initialized=!0),e[fy].enabled=!!o},unmounted(e,t){if(!e[fy].initialized)return;const{value:n={}}=t,{zIndex:r}=n;py.unregister(e,r)}},gy=Symbol("@css-render/vue3-ssr");function vy(e,t){const n=Yn(gy,null);if(null===n)return;const{styles:r,ids:o}=n;o.has(e)||null!==r&&(o.add(e),r.push(function(e,t){return`<style cssr-id="${e}">\n${t}\n</style>`}(e,t)))}const my="undefined"!=typeof document;function yy(){if(my)return;const e=Yn(gy,null);return null!==e?{adapter:vy,context:e}:void 0}const{c:by}=bm();function _y(e){return"string"==typeof e?document.querySelector(e):e()}const wy=fr({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup:e=>({showTeleport:Am(At(e,"show")),mergedTo:Li((()=>{const{to:t}=e;return null!=t?t:"body"}))}),render(){return this.showTeleport?this.disabled?Zm("lazy-teleport",this.$slots):Bi(Uo,{disabled:this.disabled,to:this.mergedTo},Zm("lazy-teleport",this.$slots)):null}}),xy={top:"bottom",bottom:"top",left:"right",right:"left"},Sy={start:"end",center:"center",end:"start"},ky={top:"height",bottom:"height",left:"width",right:"width"},Cy={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},Oy={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Py={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},Ey={top:!0,bottom:!1,left:!0,right:!1},$y={top:"end",bottom:"start",left:"end",right:"start"};const Ty=by([by(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),by(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[by("> *",{pointerEvents:"all"})])]),Iy=fr({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=Yn("VBinder"),n=Nm((()=>void 0!==e.enabled?e.enabled:e.show)),r=kt(null),o=kt(null),i=()=>{const{syncTrigger:n}=e;n.includes("scroll")&&t.addScrollListener(l),n.includes("resize")&&t.addResizeListener(l)},a=()=>{t.removeScrollListener(l),t.removeResizeListener(l)};Sr((()=>{n.value&&(l(),i())}));const s=yy();Ty.mount({id:"vueuc/binder",head:!0,anchorMetaName:"vueuc-style",ssr:s}),Or((()=>{a()})),function(e){if(Lm)return;let t=!1;Sr((()=>{Lm||null==Rm||Rm.then((()=>{t||e()}))})),Or((()=>{t=!0}))}((()=>{n.value&&l()}));const l=()=>{if(!n.value)return;const i=r.value;if(null===i)return;const a=t.targetRef,{x:s,y:l,overlap:c}=e,u=void 0!==s&&void 0!==l?function(e,t){const n=ny();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}(s,l):ry(a);i.style.setProperty("--v-target-width",`${Math.round(u.width)}px`),i.style.setProperty("--v-target-height",`${Math.round(u.height)}px`);const{width:d,minWidth:p,placement:f,internalShift:h,flip:g}=e;i.setAttribute("v-placement",f),c?i.setAttribute("v-overlap",""):i.removeAttribute("v-overlap");const{style:v}=i;v.width="target"===d?`${u.width}px`:void 0!==d?d:"",v.minWidth="target"===p?`${u.width}px`:void 0!==p?p:"";const m=ry(i),y=ry(o.value),{left:b,top:_,placement:w}=function(e,t,n,r,o,i){if(!o||i)return{placement:e,top:0,left:0};const[a,s]=e.split("-");let l=null!=s?s:"center",c={top:0,left:0};const u=(e,o,i)=>{let a=0,s=0;const l=n[e]-t[o]-t[e];return l>0&&r&&(i?s=Ey[o]?l:-l:a=Ey[o]?l:-l),{left:a,top:s}},d="left"===a||"right"===a;if("center"!==l){const r=Py[e],o=xy[r],i=ky[r];if(n[i]>t[i]){if(t[r]+t[i]<n[i]){const e=(n[i]-t[i])/2;t[r]<e||t[o]<e?t[r]<t[o]?(l=Sy[s],c=u(i,o,d)):c=u(i,r,d):l="center"}}else n[i]<t[i]&&t[o]<0&&t[r]>t[o]&&(l=Sy[s])}else{const e="bottom"===a||"top"===a?"left":"top",r=xy[e],o=ky[e],i=(n[o]-t[o])/2;(t[e]<i||t[r]<i)&&(t[e]>t[r]?(l=$y[e],c=u(o,e,d)):(l=$y[r],c=u(o,r,d)))}let p=a;return t[a]<n[ky[a]]&&t[a]<t[xy[a]]&&(p=xy[a]),{placement:"center"!==l?`${p}-${l}`:p,left:c.left,top:c.top}}(f,u,m,h,g,c),x=function(e,t){return t?Oy[e]:Cy[e]}(w,c),{left:S,top:k,transform:C}=function(e,t,n,r,o,i){if(i)switch(e){case"bottom-start":case"left-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":case"right-end":return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":case"left-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left)}px`,transform:""};case"top-end":case"right-start":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%)"};case"top":return{top:`${Math.round(n.top-t.top)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2)}px`,left:`${Math.round(n.left-t.left)}px`,transform:"translateY(-50%)"};default:return{top:`${Math.round(n.top-t.top+n.height)}px`,left:`${Math.round(n.left-t.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-t.top+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+n.width+o)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-t.top+n.height/2+r)}px`,left:`${Math.round(n.left-t.left+o)}px`,transform:"translateY(-50%) translateX(-100%)"};default:return{top:`${Math.round(n.top-t.top+n.height+r)}px`,left:`${Math.round(n.left-t.left+n.width/2+o)}px`,transform:"translateX(-50%)"}}}(w,y,u,_,b,c);i.setAttribute("v-placement",w),i.style.setProperty("--v-offset-left",`${Math.round(b)}px`),i.style.setProperty("--v-offset-top",`${Math.round(_)}px`),i.style.transform=`translateX(${S}) translateY(${k}) ${C}`,i.style.setProperty("--v-transform-origin",x),i.style.transformOrigin=x};Qn(n,(e=>{e?(i(),c()):a()}));const c=()=>{tn().then(l).catch((e=>{}))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach((t=>{Qn(At(e,t),l)})),["teleportDisabled"].forEach((t=>{Qn(At(e,t),c)})),Qn(At(e,"syncTrigger"),(e=>{e.includes("resize")?t.addResizeListener(l):t.removeResizeListener(l),e.includes("scroll")?t.addScrollListener(l):t.removeScrollListener(l)}));const u=qm(),d=Nm((()=>{const{to:t}=e;if(void 0!==t)return t;u.value}));return{VBinder:t,mergedEnabled:n,offsetContainerRef:o,followerRef:r,mergedTo:d,syncPosition:l}},render(){return Bi(wy,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const n=Bi("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[Bi("div",{class:"v-binder-follower-content",ref:"followerRef"},null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))]);return this.zindexable?Ar(n,[[hy,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}});var jy,Ay,Ny=[],Dy="ResizeObserver loop completed with undelivered notifications.";(Ay=jy||(jy={})).BORDER_BOX="border-box",Ay.CONTENT_BOX="content-box",Ay.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box";var Ry,Ly=function(e){return Object.freeze(e)},My=function(e,t){this.inlineSize=e,this.blockSize=t,Ly(this)},By=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ly(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Fy=function(e){return e instanceof SVGElement&&"getBBox"in e},zy=function(e){if(Fy(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Uy=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Hy="undefined"!=typeof window?window:{},Wy=new WeakMap,Vy=/auto|scroll/,qy=/^tb|vertical/,Ky=/msie|trident/i.test(Hy.navigator&&Hy.navigator.userAgent),Jy=function(e){return parseFloat(e||"0")},Gy=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new My((n?t:e)||0,(n?e:t)||0)},Yy=Ly({devicePixelContentBoxSize:Gy(),borderBoxSize:Gy(),contentBoxSize:Gy(),contentRect:new By(0,0,0,0)}),Xy=function(e,t){if(void 0===t&&(t=!1),Wy.has(e)&&!t)return Wy.get(e);if(zy(e))return Wy.set(e,Yy),Yy;var n=getComputedStyle(e),r=Fy(e)&&e.ownerSVGElement&&e.getBBox(),o=!Ky&&"border-box"===n.boxSizing,i=qy.test(n.writingMode||""),a=!r&&Vy.test(n.overflowY||""),s=!r&&Vy.test(n.overflowX||""),l=r?0:Jy(n.paddingTop),c=r?0:Jy(n.paddingRight),u=r?0:Jy(n.paddingBottom),d=r?0:Jy(n.paddingLeft),p=r?0:Jy(n.borderTopWidth),f=r?0:Jy(n.borderRightWidth),h=r?0:Jy(n.borderBottomWidth),g=d+c,v=l+u,m=(r?0:Jy(n.borderLeftWidth))+f,y=p+h,b=s?e.offsetHeight-y-e.clientHeight:0,_=a?e.offsetWidth-m-e.clientWidth:0,w=o?g+m:0,x=o?v+y:0,S=r?r.width:Jy(n.width)-w-_,k=r?r.height:Jy(n.height)-x-b,C=S+g+_+m,O=k+v+b+y,P=Ly({devicePixelContentBoxSize:Gy(Math.round(S*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:Gy(C,O,i),contentBoxSize:Gy(S,k,i),contentRect:new By(d,l,S,k)});return Wy.set(e,P),P},Zy=function(e,t,n){var r=Xy(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case jy.DEVICE_PIXEL_CONTENT_BOX:return a;case jy.BORDER_BOX:return o;default:return i}},Qy=function(e){var t=Xy(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Ly([t.borderBoxSize]),this.contentBoxSize=Ly([t.contentBoxSize]),this.devicePixelContentBoxSize=Ly([t.devicePixelContentBoxSize])},eb=function(e){if(zy(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},tb=function(){var e=1/0,t=[];Ny.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new Qy(t.target),o=eb(t.target);r.push(n),t.lastReportedSize=Zy(t.target,t.observedBox),o<e&&(e=o)})),t.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=t;n<r.length;n++){(0,r[n])()}return e},nb=function(e){Ny.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(eb(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},rb=function(){var e,t=0;for(nb(t);Ny.some((function(e){return e.activeTargets.length>0}));)t=tb(),nb(t);return Ny.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Dy}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Dy),window.dispatchEvent(e)),t>0},ob=[],ib=function(e){if(!Ry){var t=0,n=document.createTextNode("");new MutationObserver((function(){return ob.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Ry=function(){n.textContent="".concat(t?t--:t++)}}ob.push(e),Ry()},ab=0,sb={attributes:!0,characterData:!0,childList:!0,subtree:!0},lb=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],cb=function(e){return void 0===e&&(e=0),Date.now()+e},ub=!1,db=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!ub){ub=!0;var n,r=cb(e);n=function(){var n=!1;try{n=rb()}finally{if(ub=!1,e=r-cb(),!ab)return;n?t.run(1e3):e>0?t.run(e):t.start()}},ib((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,sb)};document.body?t():Hy.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),lb.forEach((function(t){return Hy.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),lb.forEach((function(t){return Hy.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),pb=function(e){!ab&&e>0&&db.start(),!(ab+=e)&&db.stop()},fb=function(){function e(e,t){this.target=e,this.observedBox=t||jy.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=Zy(this.target,this.observedBox,!0);return e=this.target,Fy(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),hb=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},gb=new WeakMap,vb=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},mb=function(){function e(){}return e.connect=function(e,t){var n=new hb(e,t);gb.set(e,n)},e.observe=function(e,t,n){var r=gb.get(e),o=0===r.observationTargets.length;vb(r.observationTargets,t)<0&&(o&&Ny.push(r),r.observationTargets.push(new fb(t,n&&n.box)),pb(1),db.schedule())},e.unobserve=function(e,t){var n=gb.get(e),r=vb(n.observationTargets,t),o=1===n.observationTargets.length;r>=0&&(o&&Ny.splice(Ny.indexOf(n),1),n.observationTargets.splice(r,1),pb(-1))},e.disconnect=function(e){var t=this,n=gb.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),yb=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");mb.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Uy(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");mb.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Uy(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");mb.unobserve(this,e)},e.prototype.disconnect=function(){mb.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const bb=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new("undefined"!=typeof window&&window.ResizeObserver||yb)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(const t of e){const e=this.elHandlersMap.get(t.target);void 0!==e&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},_b=fr({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=wi().proxy;function r(t){const{onResize:n}=e;void 0!==n&&n(t)}Sr((()=>{const e=n.$el;void 0!==e&&(e.nextElementSibling!==e.nextSibling&&3===e.nodeType&&""!==e.nodeValue||null!==e.nextElementSibling&&(bb.registerHandler(e.nextElementSibling,r),t=!0))})),Or((()=>{t&&bb.unregisterHandler(n.$el.nextElementSibling)}))},render(){return Ur(this.$slots,"default")}});function wb(e){return e instanceof HTMLElement}function xb(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(wb(n)&&(kb(n)||xb(n)))return!0}return!1}function Sb(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(wb(n)&&(kb(n)||Sb(n)))return!0}return!1}function kb(e){if(!function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}let Cb=[];const Ob=fr({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Dv(),n=kt(null),r=kt(null);let o=!1,i=!1;const a="undefined"==typeof document?null:document.activeElement;function s(){return Cb[Cb.length-1]===t}function l(t){var n;"Escape"===t.code&&s()&&(null===(n=e.onEsc)||void 0===n||n.call(e,t))}function c(e){if(!i&&s()){const t=u();if(null===t)return;if(t.contains(fv(e)))return;p("first")}}function u(){const e=n.value;if(null===e)return null;let t=e;for(;!(t=t.nextSibling,null===t||t instanceof Element&&"DIV"===t.tagName););return t}function d(){var n;if(e.disabled)return;if(document.removeEventListener("focus",c,!0),Cb=Cb.filter((e=>e!==t)),s())return;const{finalFocusTo:r}=e;void 0!==r?null===(n=_y(r))||void 0===n||n.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function p(t){if(s()&&e.active){const e=n.value,o=r.value;if(null!==e&&null!==o){const n=u();if(null==n||n===o)return i=!0,e.focus({preventScroll:!0}),void(i=!1);i=!0;const r="first"===t?xb(n):Sb(n);i=!1,r||(i=!0,e.focus({preventScroll:!0}),i=!1)}}}return Sr((()=>{Qn((()=>e.active),(n=>{n?(!function(){var n;if(e.disabled)return;if(Cb.push(t),e.autoFocus){const{initialFocusTo:t}=e;void 0===t?p("first"):null===(n=_y(t))||void 0===n||n.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",c,!0)}(),Hm("keydown",document,l)):(Wm("keydown",document,l),o&&d())}),{immediate:!0})})),Or((()=>{Wm("keydown",document,l),o&&d()})),{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:function(e){if(i)return;const t=u();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?p("last"):p("first"))},handleEndFocus:function(e){i||(null!==e.relatedTarget&&e.relatedTarget===n.value?p("last"):p("first"))}}},render(){const{default:e}=this.$slots;if(void 0===e)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return Bi(Ho,null,[Bi("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),Bi("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});let Pb=0,Eb="",$b="",Tb="",Ib="";const jb=kt("0px");const Ab=kt(!1),Nb=()=>{Ab.value=!0},Db=()=>{Ab.value=!1};let Rb=0;const Lb="object"==typeof global&&global&&global.Object===Object&&global;var Mb="object"==typeof self&&self&&self.Object===Object&&self;const Bb=Lb||Mb||Function("return this")();const Fb=Bb.Symbol;var zb=Object.prototype,Ub=zb.hasOwnProperty,Hb=zb.toString,Wb=Fb?Fb.toStringTag:void 0;var Vb=Object.prototype.toString;var qb=Fb?Fb.toStringTag:void 0;function Kb(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":qb&&qb in Object(e)?function(e){var t=Ub.call(e,Wb),n=e[Wb];try{e[Wb]=void 0;var r=!0}catch(i){}var o=Hb.call(e);return r&&(t?e[Wb]=n:delete e[Wb]),o}(e):function(e){return Vb.call(e)}(e)}function Jb(e){return null!=e&&"object"==typeof e}function Gb(e){return"symbol"==typeof e||Jb(e)&&"[object Symbol]"==Kb(e)}function Yb(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}const Xb=Array.isArray;var Zb=Fb?Fb.prototype:void 0,Qb=Zb?Zb.toString:void 0;function e_(e){if("string"==typeof e)return e;if(Xb(e))return Yb(e,e_)+"";if(Gb(e))return Qb?Qb.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var t_=/\s/;var n_=/^\s+/;function r_(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&t_.test(e.charAt(t)););return t}(e)+1).replace(n_,""):e}function o_(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var i_=/^[-+]0x[0-9a-f]+$/i,a_=/^0b[01]+$/i,s_=/^0o[0-7]+$/i,l_=parseInt;function c_(e){if("number"==typeof e)return e;if(Gb(e))return NaN;if(o_(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o_(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r_(e);var n=a_.test(e);return n||s_.test(e)?l_(e.slice(2),n?2:8):i_.test(e)?NaN:+e}function u_(e){return e}function d_(e){if(!o_(e))return!1;var t=Kb(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}const p_=Bb["__core-js_shared__"];var f_,h_=(f_=/[^.]+$/.exec(p_&&p_.keys&&p_.keys.IE_PROTO||""))?"Symbol(src)_1."+f_:"";var g_=Function.prototype.toString;function v_(e){if(null!=e){try{return g_.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var m_=/^\[object .+?Constructor\]$/,y_=Function.prototype,b_=Object.prototype,__=y_.toString,w_=b_.hasOwnProperty,x_=RegExp("^"+__.call(w_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S_(e){return!(!o_(e)||(t=e,h_&&h_ in t))&&(d_(e)?x_:m_).test(v_(e));var t}function k_(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S_(n)?n:void 0}const C_=k_(Bb,"WeakMap");var O_=Object.create;const P_=function(){function e(){}return function(t){if(!o_(t))return{};if(O_)return O_(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function E_(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var $_=Date.now;var T_=function(){try{var e=k_(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const I_=T_;var j_=I_?function(e,t){return I_(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:u_;var A_,N_,D_;const R_=(A_=j_,N_=0,D_=0,function(){var e=$_(),t=16-(e-D_);if(D_=e,t>0){if(++N_>=800)return arguments[0]}else N_=0;return A_.apply(void 0,arguments)});var L_=/^(?:0|[1-9]\d*)$/;function M_(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&L_.test(e))&&e>-1&&e%1==0&&e<t}function B_(e,t,n){"__proto__"==t&&I_?I_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function F_(e,t){return e===t||e!=e&&t!=t}var z_=Object.prototype.hasOwnProperty;function U_(e,t,n){var r=e[t];z_.call(e,t)&&F_(r,n)&&(void 0!==n||t in e)||B_(e,t,n)}var H_=Math.max;function W_(e,t){return R_(function(e,t,n){return t=H_(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=H_(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),E_(e,this,s)}}(e,t,u_),e+"")}function V_(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function q_(e){return null!=e&&V_(e.length)&&!d_(e)}var K_=Object.prototype;function J_(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||K_)}function G_(e){return Jb(e)&&"[object Arguments]"==Kb(e)}var Y_=Object.prototype,X_=Y_.hasOwnProperty,Z_=Y_.propertyIsEnumerable;const Q_=G_(function(){return arguments}())?G_:function(e){return Jb(e)&&X_.call(e,"callee")&&!Z_.call(e,"callee")};var ew="object"==typeof exports&&exports&&!exports.nodeType&&exports,tw=ew&&"object"==typeof module&&module&&!module.nodeType&&module,nw=tw&&tw.exports===ew?Bb.Buffer:void 0;const rw=(nw?nw.isBuffer:void 0)||function(){return!1};var ow={};ow["[object Float32Array]"]=ow["[object Float64Array]"]=ow["[object Int8Array]"]=ow["[object Int16Array]"]=ow["[object Int32Array]"]=ow["[object Uint8Array]"]=ow["[object Uint8ClampedArray]"]=ow["[object Uint16Array]"]=ow["[object Uint32Array]"]=!0,ow["[object Arguments]"]=ow["[object Array]"]=ow["[object ArrayBuffer]"]=ow["[object Boolean]"]=ow["[object DataView]"]=ow["[object Date]"]=ow["[object Error]"]=ow["[object Function]"]=ow["[object Map]"]=ow["[object Number]"]=ow["[object Object]"]=ow["[object RegExp]"]=ow["[object Set]"]=ow["[object String]"]=ow["[object WeakMap]"]=!1;var iw="object"==typeof exports&&exports&&!exports.nodeType&&exports,aw=iw&&"object"==typeof module&&module&&!module.nodeType&&module,sw=aw&&aw.exports===iw&&Lb.process,lw=function(){try{var e=aw&&aw.require&&aw.require("util").types;return e||sw&&sw.binding&&sw.binding("util")}catch(t){}}();var cw=lw&&lw.isTypedArray,uw=cw?function(e){return function(t){return e(t)}}(cw):function(e){return Jb(e)&&V_(e.length)&&!!ow[Kb(e)]};const dw=uw;var pw=Object.prototype.hasOwnProperty;function fw(e,t){var n=Xb(e),r=!n&&Q_(e),o=!n&&!r&&rw(e),i=!n&&!r&&!o&&dw(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!pw.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||M_(c,l))||s.push(c);return s}function hw(e,t){return function(n){return e(t(n))}}const gw=hw(Object.keys,Object);var vw=Object.prototype.hasOwnProperty;function mw(e){return q_(e)?fw(e):function(e){if(!J_(e))return gw(e);var t=[];for(var n in Object(e))vw.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var yw=Object.prototype.hasOwnProperty;function bw(e){if(!o_(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=J_(e),n=[];for(var r in e)("constructor"!=r||!t&&yw.call(e,r))&&n.push(r);return n}function _w(e){return q_(e)?fw(e,!0):bw(e)}var ww=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xw=/^\w*$/;function Sw(e,t){if(Xb(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Gb(e))||(xw.test(e)||!ww.test(e)||null!=t&&e in Object(t))}const kw=k_(Object,"create");var Cw=Object.prototype.hasOwnProperty;var Ow=Object.prototype.hasOwnProperty;function Pw(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ew(e,t){for(var n=e.length;n--;)if(F_(e[n][0],t))return n;return-1}Pw.prototype.clear=function(){this.__data__=kw?kw(null):{},this.size=0},Pw.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Pw.prototype.get=function(e){var t=this.__data__;if(kw){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Cw.call(t,e)?t[e]:void 0},Pw.prototype.has=function(e){var t=this.__data__;return kw?void 0!==t[e]:Ow.call(t,e)},Pw.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kw&&void 0===t?"__lodash_hash_undefined__":t,this};var $w=Array.prototype.splice;function Tw(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Tw.prototype.clear=function(){this.__data__=[],this.size=0},Tw.prototype.delete=function(e){var t=this.__data__,n=Ew(t,e);return!(n<0)&&(n==t.length-1?t.pop():$w.call(t,n,1),--this.size,!0)},Tw.prototype.get=function(e){var t=this.__data__,n=Ew(t,e);return n<0?void 0:t[n][1]},Tw.prototype.has=function(e){return Ew(this.__data__,e)>-1},Tw.prototype.set=function(e,t){var n=this.__data__,r=Ew(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const Iw=k_(Bb,"Map");function jw(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Aw(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Aw.prototype.clear=function(){this.size=0,this.__data__={hash:new Pw,map:new(Iw||Tw),string:new Pw}},Aw.prototype.delete=function(e){var t=jw(this,e).delete(e);return this.size-=t?1:0,t},Aw.prototype.get=function(e){return jw(this,e).get(e)},Aw.prototype.has=function(e){return jw(this,e).has(e)},Aw.prototype.set=function(e,t){var n=jw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Nw(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Nw.Cache||Aw),n}Nw.Cache=Aw;var Dw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Rw=/\\(\\)?/g,Lw=function(e){var t=Nw(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Dw,(function(e,n,r,o){t.push(r?o.replace(Rw,"$1"):n||e)})),t}));const Mw=Lw;function Bw(e){return null==e?"":e_(e)}function Fw(e,t){return Xb(e)?e:Sw(e,t)?[e]:Mw(Bw(e))}function zw(e){if("string"==typeof e||Gb(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}function Uw(e,t){for(var n=0,r=(t=Fw(t,e)).length;null!=e&&n<r;)e=e[zw(t[n++])];return n&&n==r?e:void 0}const Hw=hw(Object.getPrototypeOf,Object);var Ww=Function.prototype,Vw=Object.prototype,qw=Ww.toString,Kw=Vw.hasOwnProperty,Jw=qw.call(Object);function Gw(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}(e,t,n)}var Yw=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");function Xw(e){return Yw.test(e)}var Zw,Qw="[\\ud800-\\udfff]",ex="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tx="\\ud83c[\\udffb-\\udfff]",nx="[^\\ud800-\\udfff]",rx="(?:\\ud83c[\\udde6-\\uddff]){2}",ox="[\\ud800-\\udbff][\\udc00-\\udfff]",ix="(?:"+ex+"|"+tx+")"+"?",ax="[\\ufe0e\\ufe0f]?"+ix+("(?:\\u200d(?:"+[nx,rx,ox].join("|")+")[\\ufe0e\\ufe0f]?"+ix+")*"),sx="(?:"+[nx+ex+"?",ex,rx,ox,Qw].join("|")+")",lx=RegExp(tx+"(?="+tx+")|"+sx+ax,"g");function cx(e){return Xw(e)?function(e){return e.match(lx)||[]}(e):function(e){return e.split("")}(e)}const ux=(Zw="toUpperCase",function(e){var t=Xw(e=Bw(e))?cx(e):void 0,n=t?t[0]:e.charAt(0),r=t?Gw(t,1).join(""):e.slice(1);return n[Zw]()+r});function dx(e){var t=this.__data__=new Tw(e);this.size=t.size}dx.prototype.clear=function(){this.__data__=new Tw,this.size=0},dx.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},dx.prototype.get=function(e){return this.__data__.get(e)},dx.prototype.has=function(e){return this.__data__.has(e)},dx.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Tw){var r=n.__data__;if(!Iw||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Aw(r)}return n.set(e,t),this.size=n.size,this};var px="object"==typeof exports&&exports&&!exports.nodeType&&exports,fx=px&&"object"==typeof module&&module&&!module.nodeType&&module,hx=fx&&fx.exports===px?Bb.Buffer:void 0,gx=hx?hx.allocUnsafe:void 0;var vx=Object.prototype.propertyIsEnumerable,mx=Object.getOwnPropertySymbols;const yx=mx?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}(mx(e),(function(t){return vx.call(e,t)})))}:function(){return[]};function bx(e){return function(e,t,n){var r=t(e);return Xb(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,mw,yx)}const _x=k_(Bb,"DataView");const wx=k_(Bb,"Promise");const xx=k_(Bb,"Set");var Sx=v_(_x),kx=v_(Iw),Cx=v_(wx),Ox=v_(xx),Px=v_(C_),Ex=Kb;(_x&&"[object DataView]"!=Ex(new _x(new ArrayBuffer(1)))||Iw&&"[object Map]"!=Ex(new Iw)||wx&&"[object Promise]"!=Ex(wx.resolve())||xx&&"[object Set]"!=Ex(new xx)||C_&&"[object WeakMap]"!=Ex(new C_))&&(Ex=function(e){var t=Kb(e),n="[object Object]"==t?e.constructor:void 0,r=n?v_(n):"";if(r)switch(r){case Sx:return"[object DataView]";case kx:return"[object Map]";case Cx:return"[object Promise]";case Ox:return"[object Set]";case Px:return"[object WeakMap]"}return t});const $x=Ex;const Tx=Bb.Uint8Array;function Ix(e,t){var n,r,o=t?(n=e.buffer,r=new n.constructor(n.byteLength),new Tx(r).set(new Tx(n)),r):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function jx(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Aw;++t<n;)this.add(e[t])}function Ax(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Nx(e,t){return e.has(t)}jx.prototype.add=jx.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},jx.prototype.has=function(e){return this.__data__.has(e)};function Dx(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new jx:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var v=a?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(void 0!==v){if(v)continue;p=!1;break}if(f){if(!Ax(t,(function(e,t){if(!Nx(f,t)&&(h===e||o(h,e,n,r,i)))return f.push(t)}))){p=!1;break}}else if(h!==g&&!o(h,g,n,r,i)){p=!1;break}}return i.delete(e),i.delete(t),p}function Rx(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Lx(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Mx=Fb?Fb.prototype:void 0,Bx=Mx?Mx.valueOf:void 0;var Fx=Object.prototype.hasOwnProperty;var zx="[object Object]",Ux=Object.prototype.hasOwnProperty;function Hx(e,t,n,r,o,i){var a=Xb(e),s=Xb(t),l=a?"[object Array]":$x(e),c=s?"[object Array]":$x(t),u=(l="[object Arguments]"==l?zx:l)==zx,d=(c="[object Arguments]"==c?zx:c)==zx,p=l==c;if(p&&rw(e)){if(!rw(t))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new dx),a||dw(e)?Dx(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!i(new Tx(e),new Tx(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F_(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Rx;case"[object Set]":var l=1&r;if(s||(s=Lx),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Dx(s(e),s(t),r,o,i,a);return a.delete(e),u;case"[object Symbol]":if(Bx)return Bx.call(e)==Bx.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var f=u&&Ux.call(e,"__wrapped__"),h=d&&Ux.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,v=h?t.value():t;return i||(i=new dx),o(g,v,n,r,i)}}return!!p&&(i||(i=new dx),function(e,t,n,r,o,i){var a=1&n,s=bx(e),l=s.length;if(l!=bx(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Fx.call(t,u)))return!1}var d=i.get(e),p=i.get(t);if(d&&p)return d==t&&p==e;var f=!0;i.set(e,t),i.set(t,e);for(var h=a;++c<l;){var g=e[u=s[c]],v=t[u];if(r)var m=a?r(v,g,u,t,e,i):r(g,v,u,e,t,i);if(!(void 0===m?g===v||o(g,v,n,r,i):m)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(f=!1)}return i.delete(e),i.delete(t),f}(e,t,n,r,o,i))}function Wx(e,t,n,r,o){return e===t||(null==e||null==t||!Jb(e)&&!Jb(t)?e!=e&&t!=t:Hx(e,t,n,r,Wx,o))}function Vx(e){return e==e&&!o_(e)}function qx(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}function Kx(e){var t=function(e){for(var t=mw(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Vx(o)]}return t}(e);return 1==t.length&&t[0][2]?qx(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=Object(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new dx;if(r)var p=r(c,u,l,e,t,d);if(!(void 0===p?Wx(u,c,3,r,d):p))return!1}}return!0}(n,e,t)}}function Jx(e,t){return null!=e&&t in Object(e)}function Gx(e,t){return null!=e&&function(e,t,n){for(var r=-1,o=(t=Fw(t,e)).length,i=!1;++r<o;){var a=zw(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&V_(o)&&M_(a,o)&&(Xb(e)||Q_(e))}(e,t,Jx)}function Yx(e,t){return Sw(e)&&Vx(t)?qx(zw(e),t):function(n){var r=function(e,t,n){var r=null==e?void 0:Uw(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?Gx(n,e):Wx(t,r,3)}}function Xx(e){return Sw(e)?(t=zw(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Uw(t,e)}}(e);var t}function Zx(e){return"function"==typeof e?e:null==e?u_:"object"==typeof e?Xb(e)?Yx(e[0],e[1]):Kx(e):Xx(e)}function Qx(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}var eS,tS=function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[eS?a:++r];if(!1===t(o[s],s,o))break}return e};const nS=tS;var rS=function(e,t){return function(n,r){if(null==n)return n;if(!q_(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Object(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}((function(e,t){return e&&nS(e,t,mw)}));const oS=rS;function iS(e,t,n,r){return oS(e,(function(e,o,i){t(r,e,n(e),i)})),r}const aS=function(){return Bb.Date.now()};var sS=Math.max,lS=Math.min;function cS(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function h(e){return c=e,s=setTimeout(v,t),u?f(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function v(){var e=aS();if(g(e))return m(e);s=setTimeout(v,function(e){var n=t-(e-l);return d?lS(n,i-(e-c)):n}(e))}function m(e){return s=void 0,p&&r?f(e):(r=o=void 0,a)}function y(){var e=aS(),n=g(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return h(l);if(d)return clearTimeout(s),s=setTimeout(v,t),f(l)}return void 0===s&&(s=setTimeout(v,t)),a}return t=c_(t)||0,o_(n)&&(u=!!n.leading,i=(d="maxWait"in n)?sS(c_(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:m(aS())},y}function uS(e,t,n){(void 0!==n&&!F_(e[t],n)||void 0===n&&!(t in e))&&B_(e,t,n)}function dS(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function pS(e){return function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?B_(n,s,l):U_(n,s,l)}return n}(e,_w(e))}function fS(e,t,n,r,o,i,a){var s=dS(e,n),l=dS(t,n),c=a.get(l);if(c)uS(e,n,c);else{var u,d=i?i(s,l,n+"",e,t,a):void 0,p=void 0===d;if(p){var f=Xb(l),h=!f&&rw(l),g=!f&&!h&&dw(l);d=l,f||h||g?Xb(s)?d=s:Jb(u=s)&&q_(u)?d=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):h?(p=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=gx?gx(n):new e.constructor(n);return e.copy(r),r}(l,!0)):g?(p=!1,d=Ix(l,!0)):d=[]:function(e){if(!Jb(e)||"[object Object]"!=Kb(e))return!1;var t=Hw(e);if(null===t)return!0;var n=Kw.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&qw.call(n)==Jw}(l)||Q_(l)?(d=s,Q_(s)?d=pS(s):o_(s)&&!d_(s)||(d=function(e){return"function"!=typeof e.constructor||J_(e)?{}:P_(Hw(e))}(l))):p=!1}p&&(a.set(l,d),o(d,l,r,i,a),a.delete(l)),uS(e,n,d)}}function hS(e,t,n,r,o){e!==t&&nS(t,(function(i,a){if(o||(o=new dx),o_(i))fS(e,t,a,n,hS,r,o);else{var s=r?r(dS(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),uS(e,a,s)}}),_w)}function gS(e,t){var n=-1,r=q_(e)?Array(e.length):[];return oS(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}var vS,mS,yS=Object.prototype.hasOwnProperty,bS=(vS=function(e,t,n){yS.call(e,n)?e[n].push(t):B_(e,n,[t])},function(e,t){var n=Xb(e)?Qx:iS,r=mS?mS():{};return n(e,vS,Zx(t),r)});const _S=bS;var wS;const xS=(wS=function(e,t,n){hS(e,t,n)},W_((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=wS.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!o_(n))return!1;var r=typeof t;return!!("number"==r?q_(n)&&M_(t,n.length):"string"==r&&t in n)&&F_(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&wS(e,a,n,o)}return e}))),SS={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:kS,fontFamily:CS,lineHeight:OS}=SS,PS=Sm("body",`\n margin: 0;\n font-size: ${kS};\n font-family: ${CS};\n line-height: ${OS};\n -webkit-text-size-adjust: 100%;\n -webkit-tap-highlight-color: transparent;\n`,[Sm("input","\n font-family: inherit;\n font-size: inherit;\n ")]);function ES(e,t,n,r,o,i){const a=yy(),s=Yn("n-config-provider",null);if(n){const e=()=>{const e=null==i?void 0:i.value;n.mount({id:void 0===e?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:"naive-ui-style",ssr:a}),(null==s?void 0:s.preflightStyleDisabled)||PS.mount({id:"n-global",head:!0,anchorMetaName:"naive-ui-style",ssr:a})};a?e():xr(e)}const l=Li((()=>{var t;const{theme:{common:n,self:i,peers:a={}}={},themeOverrides:l={},builtinThemeOverrides:c={}}=o,{common:u,peers:d}=l,{common:p,[e]:{common:f,self:h,peers:g={}}={}}=(null==s?void 0:s.mergedThemeRef.value)||{},{common:v,[e]:m={}}=(null==s?void 0:s.mergedThemeOverridesRef.value)||{},{common:y,peers:b={}}=m,_=xS({},n||f||p||r.common,v,y,u);return{common:_,self:xS(null===(t=i||h||r.self)||void 0===t?void 0:t(_),c,m,l),peers:xS({},r.peers,g,a),peerOverrides:xS({},c.peers,b,d)}}));return l}ES.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};function $S(e={},t={defaultBordered:!0}){const n=Yn("n-config-provider",null);return{inlineThemeDisabled:null==n?void 0:n.inlineThemeDisabled,mergedRtlRef:null==n?void 0:n.mergedRtlRef,mergedComponentPropsRef:null==n?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:null==n?void 0:n.mergedBreakpointsRef,mergedBorderedRef:Li((()=>{var r,o;const{bordered:i}=e;return void 0!==i?i:null===(o=null!==(r=null==n?void 0:n.mergedBorderedRef.value)&&void 0!==r?r:t.defaultBordered)||void 0===o||o})),mergedClsPrefixRef:n?n.mergedClsPrefixRef:Ct("n"),namespaceRef:Li((()=>null==n?void 0:n.mergedNamespaceRef.value))}}function TS(e,t,n){if(!t)return void Uv("use-style","No style is specified.");const r=yy(),o=Yn("n-config-provider",null),i=()=>{const i=n.value;t.mount({id:void 0===i?e:i+e,head:!0,anchorMetaName:"naive-ui-style",props:{bPrefix:i?`.${i}-`:void 0},ssr:r}),(null==o?void 0:o.preflightStyleDisabled)||PS.mount({id:"n-global",head:!0,anchorMetaName:"naive-ui-style",ssr:r})};r?i():xr(i)}function IS(e,t,n,r){var o;n||Uv("useThemeClass","cssVarsRef is not passed");const i=null===(o=Yn("n-config-provider",null))||void 0===o?void 0:o.mergedThemeHashRef,a=kt(""),s=yy();let l;const c=`__${e}`;return Xn((()=>{(()=>{let e=c;const o=t?t.value:void 0,u=null==i?void 0:i.value;u&&(e+="-"+u),o&&(e+="-"+o);const{themeOverrides:d,builtinThemeOverrides:p}=r;d&&(e+="-"+pm(JSON.stringify(d))),p&&(e+="-"+pm(JSON.stringify(p))),a.value=e,l=()=>{const t=n.value;let r="";for(const e in t)r+=`${e}: ${t[e]};`;Sm(`.${e}`,r).mount({id:e,ssr:s}),l=void 0}})()})),{themeClass:a,onRender:()=>{null==l||l()}}}function jS(e,t,n){if(!t)return;const r=yy(),o=Li((()=>{const{value:n}=t;if(!n)return;const r=n[e];return r||void 0})),i=()=>{Xn((()=>{const{value:t}=n,i=`${t}${e}Rtl`;if(function(e,t){if(void 0===e)return!1;if(t){const{context:{ids:n}}=t;return n.has(e)}return null!==om(e)}(i,r))return;const{value:a}=o;a&&a.style.mount({id:i,head:!0,anchorMetaName:"naive-ui-style",props:{bPrefix:t?`.${t}-`:void 0},ssr:r})}))};return r?i():xr(i),o}function AS(e,t){return fr({name:ux(e),setup(){var n;const r=null===(n=Yn("n-config-provider",null))||void 0===n?void 0:n.mergedIconsRef;return()=>{var n;const o=null===(n=null==r?void 0:r.value)||void 0===n?void 0:n[e];return o?o():t}}})}const NS=fr({name:"ChevronLeft",render:()=>Bi("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bi("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}),DS=fr({name:"ChevronRight",render:()=>Bi("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bi("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}),RS=AS("close",Bi("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},Bi("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},Bi("g",{fill:"currentColor","fill-rule":"nonzero"},Bi("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),LS=AS("error",Bi("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Bi("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Bi("g",{"fill-rule":"nonzero"},Bi("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),MS=AS("info",Bi("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Bi("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Bi("g",{"fill-rule":"nonzero"},Bi("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),BS=AS("success",Bi("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Bi("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Bi("g",{"fill-rule":"nonzero"},Bi("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),FS=AS("warning",Bi("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Bi("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},Bi("g",{"fill-rule":"nonzero"},Bi("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),zS=fr({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const n=qm();return()=>Bi(ia,{name:"icon-switch-transition",appear:n.value},t)}}),US=fr({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth="0":t.style.maxHeight="0",t.offsetWidth;const{onLeave:n}=e;n&&n()}function o(t){e.width?t.style.maxWidth="":t.style.maxHeight="";const{onAfterLeave:n}=e;n&&n()}function i(t){if(t.style.transition="none",e.width){const e=t.offsetWidth;t.style.maxWidth="0",t.offsetWidth,t.style.transition="",t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition="",t.style.maxHeight="0";else{const e=t.offsetHeight;t.style.maxHeight="0",t.offsetWidth,t.style.transition="",t.style.maxHeight=`${e}px`}t.offsetWidth}function a(t){var n;e.width?t.style.maxWidth="":e.reverse||(t.style.maxHeight=""),null===(n=e.onAfterEnter)||void 0===n||n.call(e)}return()=>{const{group:s,width:l,appear:c,mode:u}=e,d=s?Sa:ia,p={name:l?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:a,onBeforeLeave:n,onLeave:r,onAfterLeave:o};return s||(p.mode=u),Bi(d,p,t)}}}),HS=Cm("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[Sm("svg","\n height: 1em;\n width: 1em;\n ")]),WS=fr({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){TS("-base-icon",HS,At(e,"clsPrefix"))},render(){return Bi("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),VS=Cm("base-close","\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n background-color: transparent;\n color: var(--n-close-icon-color);\n border-radius: var(--n-close-border-radius);\n height: var(--n-close-size);\n width: var(--n-close-size);\n font-size: var(--n-close-icon-size);\n outline: none;\n border: none;\n position: relative;\n padding: 0;\n",[Pm("absolute","\n height: var(--n-close-icon-size);\n width: var(--n-close-icon-size);\n "),Sm("&::before",'\n content: "";\n position: absolute;\n width: var(--n-close-size);\n height: var(--n-close-size);\n left: 50%;\n top: 50%;\n transform: translateY(-50%) translateX(-50%);\n transition: inherit;\n border-radius: inherit;\n '),Em("disabled",[Sm("&:hover","\n color: var(--n-close-icon-color-hover);\n "),Sm("&:hover::before","\n background-color: var(--n-close-color-hover);\n "),Sm("&:focus::before","\n background-color: var(--n-close-color-hover);\n "),Sm("&:active","\n color: var(--n-close-icon-color-pressed);\n "),Sm("&:active::before","\n background-color: var(--n-close-color-pressed);\n ")]),Pm("disabled","\n cursor: not-allowed;\n color: var(--n-close-icon-color-disabled);\n background-color: transparent;\n "),Pm("round",[Sm("&::before","\n border-radius: 50%;\n ")])]),qS=fr({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup:e=>(TS("-base-close",VS,At(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:n,absolute:r,round:o,isButtonTag:i}=e;return Bi(i?"button":"div",{type:i?"button":void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:i?void 0:"button",disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,o&&`${t}-base-close--round`],onMousedown:t=>{e.focusable||t.preventDefault()},onClick:e.onClick},Bi(WS,{clsPrefix:t},{default:()=>Bi(RS,null)}))})}),{cubicBezierEaseInOut:KS}=SS;function JS({originalTransform:e="",left:t=0,top:n=0,transition:r=`all .3s ${KS} !important`}={}){return[Sm("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:e+" scale(0.75)",left:t,top:n,opacity:0}),Sm("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),Sm("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:n,transition:r})]}const GS=Sm([Sm("@keyframes loading-container-rotate","\n to {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n "),Sm("@keyframes loading-layer-rotate","\n 12.5% {\n -webkit-transform: rotate(135deg);\n transform: rotate(135deg);\n }\n 25% {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n }\n 37.5% {\n -webkit-transform: rotate(405deg);\n transform: rotate(405deg);\n }\n 50% {\n -webkit-transform: rotate(540deg);\n transform: rotate(540deg);\n }\n 62.5% {\n -webkit-transform: rotate(675deg);\n transform: rotate(675deg);\n }\n 75% {\n -webkit-transform: rotate(810deg);\n transform: rotate(810deg);\n }\n 87.5% {\n -webkit-transform: rotate(945deg);\n transform: rotate(945deg);\n }\n 100% {\n -webkit-transform: rotate(1080deg);\n transform: rotate(1080deg);\n } \n "),Sm("@keyframes loading-left-spin","\n from {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n 50% {\n -webkit-transform: rotate(130deg);\n transform: rotate(130deg);\n }\n to {\n -webkit-transform: rotate(265deg);\n transform: rotate(265deg);\n }\n "),Sm("@keyframes loading-right-spin","\n from {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n 50% {\n -webkit-transform: rotate(-130deg);\n transform: rotate(-130deg);\n }\n to {\n -webkit-transform: rotate(-265deg);\n transform: rotate(-265deg);\n }\n "),Cm("base-loading","\n position: relative;\n line-height: 0;\n width: 1em;\n height: 1em;\n ",[Om("transition-wrapper","\n position: absolute;\n width: 100%;\n height: 100%;\n ",[JS()]),Om("container","\n display: inline-flex;\n position: relative;\n direction: ltr;\n line-height: 0;\n animation: loading-container-rotate 1568.2352941176ms linear infinite;\n font-size: 0;\n letter-spacing: 0;\n white-space: nowrap;\n opacity: 1;\n width: 100%;\n height: 100%;\n ",[Om("svg","\n stroke: var(--n-text-color);\n fill: transparent;\n position: absolute;\n height: 100%;\n overflow: hidden;\n "),Om("container-layer","\n position: absolute;\n width: 100%;\n height: 100%;\n animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n ",[Om("container-layer-left","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[Om("svg","\n animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n width: 200%;\n ")]),Om("container-layer-patch","\n position: absolute;\n top: 0;\n left: 47.5%;\n box-sizing: border-box;\n width: 5%;\n height: 100%;\n overflow: hidden;\n ",[Om("svg","\n left: -900%;\n width: 2000%;\n transform: rotate(180deg);\n ")]),Om("container-layer-right","\n display: inline-flex;\n position: relative;\n width: 50%;\n height: 100%;\n overflow: hidden;\n ",[Om("svg","\n animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;\n left: -100%;\n width: 200%;\n ")])])]),Om("placeholder","\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translateX(-50%) translateY(-50%);\n ",[JS({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]),YS={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},XS=fr({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},YS),setup(e){TS("-base-loading",GS,At(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:o}=this,i=t/o;return Bi("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},Bi(zS,null,{default:()=>this.show?Bi("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},Bi("div",{class:`${e}-base-loading__container`},Bi("div",{class:`${e}-base-loading__container-layer`},Bi("div",{class:`${e}-base-loading__container-layer-left`},Bi("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},Bi("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),Bi("div",{class:`${e}-base-loading__container-layer-patch`},Bi("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},Bi("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t}))),Bi("div",{class:`${e}-base-loading__container-layer-right`},Bi("svg",{class:`${e}-base-loading__svg`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},Bi("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:i,cy:i,r:t-n/2,"stroke-dasharray":4.91*t,"stroke-dashoffset":2.46*t})))))):Bi("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}});function ZS(e){return Array.isArray(e)?e:[e]}const QS="STOP";function ek(e,t){const n=t(e);void 0!==e.children&&n!==QS&&e.children.forEach((e=>ek(e,t)))}function tk(e){return e.children}function nk(e){return e.key}function rk(){return!1}function ok(e){return!0===e.disabled}function ik(e){var t;return null==e?[]:Array.isArray(e)?e:null!==(t=e.checkedKeys)&&void 0!==t?t:[]}function ak(e){var t;return null==e||Array.isArray(e)?[]:null!==(t=e.indeterminateKeys)&&void 0!==t?t:[]}function sk(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)||n.add(e)})),Array.from(n)}function lk(e,t){const n=new Set(e);return t.forEach((e=>{n.has(e)&&n.delete(e)})),Array.from(n)}function ck(e){return"group"===(null==e?void 0:e.type)}class uk extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function dk(e,t,n,r){const o=fk(t,n,r,!1),i=fk(e,n,r,!0),a=function(e,t){const n=new Set;return e.forEach((e=>{const r=t.treeNodeMap.get(e);if(void 0!==r){let e=r.parent;for(;null!==e&&!e.disabled&&!n.has(e.key);)n.add(e.key),e=e.parent}})),n}(e,n),s=[];return o.forEach((e=>{(i.has(e)||a.has(e))&&s.push(e)})),s.forEach((e=>o.delete(e))),o}function pk(e,t){const{checkedKeys:n,keysToCheck:r,keysToUncheck:o,indeterminateKeys:i,cascade:a,leafOnly:s,checkStrategy:l,allowNotLoaded:c}=e;if(!a)return void 0!==r?{checkedKeys:sk(n,r),indeterminateKeys:Array.from(i)}:void 0!==o?{checkedKeys:lk(n,o),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:u}=t;let d;d=void 0!==o?dk(o,n,t,c):void 0!==r?function(e,t,n,r){return fk(t.concat(e),n,r,!1)}(r,n,t,c):fk(n,t,c,!1);const p="parent"===l,f="child"===l||s,h=d,g=new Set;for(let v=Math.max.apply(null,Array.from(u.keys()));v>=0;v-=1){const e=0===v,t=u.get(v);for(const n of t){if(n.isLeaf)continue;const{key:t,shallowLoaded:r}=n;if(f&&r&&n.children.forEach((e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&h.has(e.key)&&h.delete(e.key)})),n.disabled||!r)continue;let o=!0,i=!1,a=!0;for(const e of n.children){const t=e.key;if(!e.disabled)if(a&&(a=!1),h.has(t))i=!0;else{if(g.has(t)){i=!0,o=!1;break}if(o=!1,i)break}}o&&!a?(p&&n.children.forEach((e=>{!e.disabled&&h.has(e.key)&&h.delete(e.key)})),h.add(t)):i&&g.add(t),e&&f&&h.has(t)&&h.delete(t)}}return{checkedKeys:Array.from(h),indeterminateKeys:Array.from(g)}}function fk(e,t,n,r){const{treeNodeMap:o,getChildren:i}=t,a=new Set,s=new Set(e);return e.forEach((e=>{const t=o.get(e);void 0!==t&&ek(t,(e=>{if(e.disabled)return QS;const{key:t}=e;if(!a.has(t)&&(a.add(t),s.add(t),function(e,t){return!1===e.isLeaf&&!Array.isArray(t(e))}(e.rawNode,i))){if(r)return QS;if(!n)throw new uk}}))})),s}function hk(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o+1)%r]:o===n.length-1?null:n[o+1]}function gk(e,t,{loop:n=!1,includeDisabled:r=!1}={}){const o="prev"===t?vk:hk,i={reverse:"prev"===t};let a=!1,s=null;return function t(l){if(null!==l){if(l===e)if(a){if(!e.disabled&&!e.isGroup)return void(s=e)}else a=!0;else if((!l.disabled||r)&&!l.ignored&&!l.isGroup)return void(s=l);if(l.isGroup){const e=mk(l,i);null!==e?s=e:t(o(l,n))}else{const e=o(l,!1);if(null!==e)t(e);else{const e=function(e){return e.parent}(l);(null==e?void 0:e.isGroup)?t(o(e,n)):n&&t(o(l,!0))}}}}(e),s}function vk(e,t){const n=e.siblings,r=n.length,{index:o}=e;return t?n[(o-1+r)%r]:0===o?null:n[o-1]}function mk(e,t={}){const{reverse:n=!1}=t,{children:r}=e;if(r){const{length:e}=r,o=n?-1:e,i=n?-1:1;for(let a=n?e-1:0;a!==o;a+=i){const e=r[a];if(!e.disabled&&!e.ignored){if(!e.isGroup)return e;{const n=mk(e,t);if(null!==n)return n}}}}return null}const yk={getChild(){return this.ignored?null:mk(this)},getParent(){const{parent:e}=this;return(null==e?void 0:e.isGroup)?e.getParent():e},getNext(e={}){return gk(this,"next",e)},getPrev(e={}){return gk(this,"prev",e)}};function bk(e,t,n,r,o,i=null,a=0){const s=[];return e.forEach(((l,c)=>{var u;!function(e,t){if(!0===e.isLeaf){const n=t(e);if(Array.isArray(n)&&n.length>0)return!0}}(l,o);const d=Object.create(r);if(d.rawNode=l,d.siblings=s,d.level=a,d.index=c,d.isFirstChild=0===c,d.isLastChild=c+1===e.length,d.parent=i,!d.ignored){const e=o(l);Array.isArray(e)&&(d.children=bk(e,t,n,r,o,d,a+1))}s.push(d),t.set(d.key,d),n.has(a)||n.set(a,[]),null===(u=n.get(a))||void 0===u||u.push(d)})),s}function _k(e,t={}){var n;const r=new Map,o=new Map,{getDisabled:i=ok,getIgnored:a=rk,getIsGroup:s=ck,getKey:l=nk}=t,c=null!==(n=t.getChildren)&&void 0!==n?n:tk,u=t.ignoreEmptyChildren?e=>{const t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,d=Object.assign({get key(){return l(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return s(this.rawNode)},get isLeaf(){return function(e,t){const{isLeaf:n}=e;return void 0!==n?n:!t(e)}(this.rawNode,u)},get shallowLoaded(){return function(e,t){const{isLeaf:n}=e;return!(!1===n&&!Array.isArray(t(e)))}(this.rawNode,u)},get ignored(){return a(this.rawNode)},contains(e){return function(e,t){const n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}(this,e)}},yk),p=bk(e,r,o,d,u);function f(e){if(null==e)return null;const t=r.get(e);return t&&!t.ignored?t:null}const h={treeNodes:p,treeNodeMap:r,levelTreeNodeMap:o,maxLevel:Math.max(...o.keys()),getChildren:u,getFlattenedNodes:e=>function(e,t){const n=t?new Set(t):void 0,r=[];return function e(t){t.forEach((t=>{r.push(t),t.isLeaf||!t.children||t.ignored||(t.isGroup||void 0===n||n.has(t.key))&&e(t.children)}))}(e),r}(p,e),getNode:function(e){if(null==e)return null;const t=r.get(e);return!t||t.isGroup||t.ignored?null:t},getPrev:function(e,t){const n=f(e);return n?n.getPrev(t):null},getNext:function(e,t){const n=f(e);return n?n.getNext(t):null},getParent:function(e){const t=f(e);return t?t.getParent():null},getChild:function(e){const t=f(e);return t?t.getChild():null},getFirstAvailableNode:()=>function(e){if(0===e.length)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}(p),getPath:(e,t={})=>function(e,{includeGroup:t=!1,includeSelf:n=!0},r){var o;const i=r.treeNodeMap;let a=null==e?null:null!==(o=i.get(e))&&void 0!==o?o:null;const s={keyPath:[],treeNodePath:[],treeNode:a};if(null==a?void 0:a.ignored)return s.treeNode=null,s;for(;a;)a.ignored||!t&&a.isGroup||s.treeNodePath.push(a),a=a.parent;return s.treeNodePath.reverse(),n||s.treeNodePath.pop(),s.keyPath=s.treeNodePath.map((e=>e.key)),s}(e,t,h),getCheckedKeys(e,t={}){const{cascade:n=!0,leafOnly:r=!1,checkStrategy:o="all",allowNotLoaded:i=!1}=t;return pk({checkedKeys:ik(e),indeterminateKeys:ak(e),cascade:n,leafOnly:r,checkStrategy:o,allowNotLoaded:i},h)},check(e,t,n={}){const{cascade:r=!0,leafOnly:o=!1,checkStrategy:i="all",allowNotLoaded:a=!1}=n;return pk({checkedKeys:ik(t),indeterminateKeys:ak(t),keysToCheck:null==e?[]:ZS(e),cascade:r,leafOnly:o,checkStrategy:i,allowNotLoaded:a},h)},uncheck(e,t,n={}){const{cascade:r=!0,leafOnly:o=!1,checkStrategy:i="all",allowNotLoaded:a=!1}=n;return pk({checkedKeys:ik(t),indeterminateKeys:ak(t),keysToUncheck:null==e?[]:ZS(e),cascade:r,leafOnly:o,checkStrategy:i,allowNotLoaded:a},h)},getNonLeafKeys:(e={})=>function(e,t={}){const{preserveGroup:n=!1}=t,r=[],o=n?e=>{e.isLeaf||(r.push(e.key),i(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),i(e.children))};function i(e){e.forEach(o)}return i(e),r}(p,e)};return h}const wk="#FFF",xk="#000",Sk="#000",kk="#fff",Ck="#fff",Ok="#fff",Pk="#fff",Ek="0.82",$k="0.72",Tk="0.38",Ik="0.24",jk="0.18",Ak="0.6",Nk="0.5",Dk="0.2",Rk=".08",Lk="0",Mk="0.25",Bk="0.4",Fk="#36ad6a",zk="#18a058",Uk="#0c7a43",Hk="#36ad6a",Wk="#4098fc",Vk="#2080f0",qk="#1060c9",Kk="#4098fc",Jk="#de576d",Gk="#d03050",Yk="#ab1f3f",Xk="#de576d",Zk="#fcb040",Qk="#f0a020",eC="#c97c10",tC="#fcb040",nC="#36ad6a",rC="#18a058",oC="#0c7a43",iC="#36ad6a",aC=Pv(wk),sC=Pv(xk),lC="rgba("+sC.slice(0,3).join(", ")+", ";function cC(e){return lC+String(e)+")"}function uC(e){const t=Array.from(sC);return t[3]=Number(e),Tv(aC,t)}const dC=Object.assign(Object.assign({name:"common"},SS),{baseColor:wk,primaryColor:zk,primaryColorHover:Fk,primaryColorPressed:Uk,primaryColorSuppl:Hk,infoColor:Vk,infoColorHover:Wk,infoColorPressed:qk,infoColorSuppl:Kk,successColor:rC,successColorHover:nC,successColorPressed:oC,successColorSuppl:iC,warningColor:Qk,warningColorHover:Zk,warningColorPressed:eC,warningColorSuppl:tC,errorColor:Gk,errorColorHover:Jk,errorColorPressed:Yk,errorColorSuppl:Xk,textColorBase:Sk,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:uC(Ik),placeholderColor:uC(Ik),placeholderColorDisabled:uC(jk),iconColor:uC(Ik),iconColorHover:jv(uC(Ik),{lightness:.75}),iconColorPressed:jv(uC(Ik),{lightness:.9}),iconColorDisabled:uC(jk),opacity1:Ek,opacity2:$k,opacity3:Tk,opacity4:Ik,opacity5:jk,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:uC(Number(Ak)),closeIconColorHover:uC(Number(Ak)),closeIconColorPressed:uC(Number(Ak)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:uC(Ik),clearColorHover:jv(uC(Ik),{lightness:.75}),clearColorPressed:jv(uC(Ik),{lightness:.9}),scrollbarColor:cC(Mk),scrollbarColorHover:cC(Bk),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:uC(Rk),railColor:"rgb(219, 219, 223)",popoverColor:kk,tableColor:Ck,cardColor:Ck,modalColor:Ok,bodyColor:Pk,tagColor:"#eee",avatarColor:uC(Dk),invertedColor:"rgb(0, 20, 40)",inputColor:uC(Lk),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Nk,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),pC={name:"Scrollbar",common:dC,self:e=>{const{scrollbarColor:t,scrollbarColorHover:n}=e;return{color:t,colorHover:n}}},{cubicBezierEaseInOut:fC}=SS;function hC({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=fC,leaveCubicBezier:o=fC}={}){return[Sm(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),Sm(`&.${e}-transition-leave-active`,{transition:`all ${n} ${o}!important`}),Sm(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Sm(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const gC=Cm("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[Sm(">",[Cm("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n min-height: inherit;\n max-height: inherit;\n scrollbar-width: none;\n ",[Sm("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),Sm(">",[Cm("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),Sm(">, +",[Cm("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[Pm("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[Sm(">",[Om("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),Pm("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[Sm(">",[Om("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),Pm("disabled",[Sm(">",[Om("scrollbar",{pointerEvents:"none"})])]),Sm(">",[Om("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[hC(),Sm("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),vC=fr({name:"Scrollbar",props:Object.assign(Object.assign({},ES.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=$S(e),o=jS("Scrollbar",r,t),i=kt(null),a=kt(null),s=kt(null),l=kt(null),c=kt(null),u=kt(null),d=kt(null),p=kt(null),f=kt(null),h=kt(null),g=kt(null),v=kt(0),m=kt(0),y=kt(!1),b=kt(!1);let _,w,x=!1,S=!1,k=0,C=0,O=0,P=0;const E=Jm,$=Li((()=>{const{value:t}=p,{value:n}=u,{value:r}=h;return null===t||null===n||null===r?0:Math.min(t,r*t/n+1.5*e.size)})),T=Li((()=>`${$.value}px`)),I=Li((()=>{const{value:t}=f,{value:n}=d,{value:r}=g;return null===t||null===n||null===r?0:r*t/n+1.5*e.size})),j=Li((()=>`${I.value}px`)),A=Li((()=>{const{value:e}=p,{value:t}=v,{value:n}=u,{value:r}=h;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-$.value):0}})),N=Li((()=>`${A.value}px`)),D=Li((()=>{const{value:e}=f,{value:t}=m,{value:n}=d,{value:r}=g;if(null===e||null===n||null===r)return 0;{const o=n-e;return o?t/o*(r-I.value):0}})),R=Li((()=>`${D.value}px`)),L=Li((()=>{const{value:e}=p,{value:t}=u;return null!==e&&null!==t&&t>e})),M=Li((()=>{const{value:e}=f,{value:t}=d;return null!==e&&null!==t&&t>e})),B=Li((()=>{const{trigger:t}=e;return"none"===t||y.value})),F=Li((()=>{const{trigger:t}=e;return"none"===t||b.value})),z=Li((()=>{const{container:t}=e;return t?t():a.value})),U=Li((()=>{const{content:t}=e;return t?t():s.value})),H=function(e){const t={isDeactivated:!1};let n=!1;return vr((()=>{t.isDeactivated=!1,n?e():n=!0})),mr((()=>{t.isDeactivated=!0,n||(n=!0)})),t}((()=>{e.container||W({top:v.value,left:m.value})})),W=(t,n)=>{if(!e.scrollable)return;if("number"==typeof t)return void V(null!=n?n:0,t,0,!1,"auto");const{left:r,top:o,index:i,elSize:a,position:s,behavior:l,el:c,debounce:u=!0}=t;void 0===r&&void 0===o||V(null!=r?r:0,null!=o?o:0,0,!1,l),void 0!==c?V(0,c.offsetTop,c.offsetHeight,u,l):void 0!==i&&void 0!==a?V(0,i*a,a,u,l):"bottom"===s?V(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===s&&V(0,0,0,!1,l)};function V(e,t,n,r,o){const{value:i}=z;if(i){if(r){const{scrollTop:r,offsetHeight:a}=i;if(t>r)return void(t+n<=r+a||i.scrollTo({left:e,top:t+n-a,behavior:o}))}i.scrollTo({left:e,top:t,behavior:o})}}function q(){!function(){void 0!==w&&window.clearTimeout(w);w=window.setTimeout((()=>{b.value=!1}),e.duration)}(),function(){void 0!==_&&window.clearTimeout(_);_=window.setTimeout((()=>{y.value=!1}),e.duration)}()}function K(){const{value:e}=z;e&&(v.value=e.scrollTop,m.value=e.scrollLeft*((null==o?void 0:o.value)?-1:1))}function J(){const{value:e}=z;e&&(v.value=e.scrollTop,m.value=e.scrollLeft*((null==o?void 0:o.value)?-1:1),p.value=e.offsetHeight,f.value=e.offsetWidth,u.value=e.scrollHeight,d.value=e.scrollWidth);const{value:t}=c,{value:n}=l;t&&(g.value=t.offsetWidth),n&&(h.value=n.offsetHeight)}function G(){e.scrollable&&(e.useUnifiedContainer?J():(!function(){const{value:e}=U;e&&(u.value=e.offsetHeight,d.value=e.offsetWidth);const{value:t}=z;t&&(p.value=t.offsetHeight,f.value=t.offsetWidth);const{value:n}=c,{value:r}=l;n&&(g.value=n.offsetWidth),r&&(h.value=r.offsetHeight)}(),K()))}function Y(e){var t;return!(null===(t=i.value)||void 0===t?void 0:t.contains(fv(e)))}function X(t){if(!S)return;void 0!==_&&window.clearTimeout(_),void 0!==w&&window.clearTimeout(w);const{value:n}=f,{value:r}=d,{value:i}=I;if(null===n||null===r)return;const a=(null==o?void 0:o.value)?window.innerWidth-t.clientX-O:t.clientX-O,s=r-n;let l=C+a*(r-n)/(n-i);l=Math.min(s,l),l=Math.max(l,0);const{value:c}=z;if(c){c.scrollLeft=l*((null==o?void 0:o.value)?-1:1);const{internalOnUpdateScrollLeft:t}=e;t&&t(l)}}function Z(e){e.preventDefault(),e.stopPropagation(),Wm("mousemove",window,X,!0),Wm("mouseup",window,Z,!0),S=!1,G(),Y(e)&&q()}function Q(e){if(!x)return;void 0!==_&&window.clearTimeout(_),void 0!==w&&window.clearTimeout(w);const{value:t}=p,{value:n}=u,{value:r}=$;if(null===t||null===n)return;const o=e.clientY-P,i=n-t;let a=k+o*(n-t)/(t-r);a=Math.min(i,a),a=Math.max(a,0);const{value:s}=z;s&&(s.scrollTop=a)}function ee(e){e.preventDefault(),e.stopPropagation(),Wm("mousemove",window,Q,!0),Wm("mouseup",window,ee,!0),x=!1,G(),Y(e)&&q()}Xn((()=>{const{value:e}=M,{value:n}=L,{value:r}=t,{value:o}=c,{value:i}=l;o&&(e?o.classList.remove(`${r}-scrollbar-rail--disabled`):o.classList.add(`${r}-scrollbar-rail--disabled`)),i&&(n?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`))})),Sr((()=>{e.container||G()})),Or((()=>{void 0!==_&&window.clearTimeout(_),void 0!==w&&window.clearTimeout(w),Wm("mousemove",window,Q,!0),Wm("mouseup",window,ee,!0)}));const te=ES("Scrollbar","-scrollbar",gC,pC,e,t),ne=Li((()=>{const{common:{cubicBezierEaseInOut:e,scrollbarBorderRadius:t,scrollbarHeight:n,scrollbarWidth:r},self:{color:o,colorHover:i}}=te.value;return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":o,"--n-scrollbar-color-hover":i,"--n-scrollbar-border-radius":t,"--n-scrollbar-width":r,"--n-scrollbar-height":n}})),re=n?IS("scrollbar",void 0,ne,e):void 0,oe={scrollTo:W,scrollBy:(t,n)=>{if(!e.scrollable)return;const{value:r}=z;r&&("object"==typeof t?r.scrollBy(t):r.scrollBy(t,n||0))},sync:G,syncUnifiedContainer:J,handleMouseEnterWrapper:function(){!function(){void 0!==_&&window.clearTimeout(_);y.value=!0}(),function(){void 0!==w&&window.clearTimeout(w);b.value=!0}(),G()},handleMouseLeaveWrapper:function(){q()}};return Object.assign(Object.assign({},oe),{mergedClsPrefix:t,rtlEnabled:o,containerScrollTop:v,wrapperRef:i,containerRef:a,contentRef:s,yRailRef:l,xRailRef:c,needYBar:L,needXBar:M,yBarSizePx:T,xBarSizePx:j,yBarTopPx:N,xBarLeftPx:R,isShowXBar:B,isShowYBar:F,isIos:E,handleScroll:function(t){const{onScroll:n}=e;n&&n(t),K()},handleContentResize:()=>{H.isDeactivated||G()},handleContainerResize:t=>{if(H.isDeactivated)return;const{onResize:n}=e;n&&n(t),G()},handleYScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),x=!0,Hm("mousemove",window,Q,!0),Hm("mouseup",window,ee,!0),k=v.value,P=e.clientY},handleXScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),S=!0,Hm("mousemove",window,X,!0),Hm("mouseup",window,Z,!0),C=m.value,O=(null==o?void 0:o.value)?window.innerWidth-e.clientX:e.clientX},cssVars:n?void 0:ne,themeClass:null==re?void 0:re.themeClass,onRender:null==re?void 0:re.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:o,internalHoistYRail:i}=this;if(!this.scrollable)return null===(e=t.default)||void 0===e?void 0:e.call(t);const a="none"===this.trigger,s=e=>Bi("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:[e||"",this.verticalRailStyle],"aria-hiddens":!0},Bi(a?Gv:ia,a?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?Bi("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),l=()=>{var e,l;return null===(e=this.onRender)||void 0===e||e.call(this),Bi("div",vi(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,o&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?null===(l=t.default)||void 0===l?void 0:l.call(t):Bi("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},Bi(_b,{onResize:this.handleContentResize},{default:()=>Bi("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:s(void 0),this.xScrollable&&Bi("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},Bi(a?Gv:ia,a?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?Bi("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:o?this.xBarLeftPx:void 0,left:o?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},c=this.container?l():Bi(_b,{onResize:this.handleContainerResize},{default:l});return i?Bi(Ho,null,c,s(this.cssVars)):c}}),mC=vC,{cubicBezierEaseIn:yC,cubicBezierEaseOut:bC}=SS;const _C=Cm("base-wave","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n border-radius: inherit;\n"),wC=fr({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){TS("-base-wave",_C,At(e,"clsPrefix"));const t=kt(null),n=kt(!1);let r=null;return Or((()=>{null!==r&&window.clearTimeout(r)})),{active:n,selfRef:t,play(){null!==r&&(window.clearTimeout(r),n.value=!1,r=null),tn((()=>{var e;null===(e=t.value)||void 0===e||e.offsetHeight,n.value=!0,r=window.setTimeout((()=>{n.value=!1,r=null}),1e3)}))}}},render(){const{clsPrefix:e}=this;return Bi("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),xC={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},SC={name:"Popover",common:dC,self:e=>{const{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:o,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},xC),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}},kC={top:"bottom",bottom:"top",left:"right",right:"left"},CC="var(--n-arrow-height) * 1.414",OC=Sm([Cm("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[Sm(">",[Cm("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),Em("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[Em("scrollable",[Em("show-header-or-footer","padding: var(--n-padding);")])]),Om("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Om("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Pm("scrollable, show-header-or-footer",[Om("content","\n padding: var(--n-padding);\n ")])]),Cm("popover-shared","\n transform-origin: inherit;\n ",[Cm("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[Cm("popover-arrow",`\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(${CC});\n height: calc(${CC});\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n `)]),Sm("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),Sm("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),Sm("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),Sm("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),TC("top-start",`\n top: calc(${CC} / -2);\n left: calc(${$C("top-start")} - var(--v-offset-left));\n `),TC("top",`\n top: calc(${CC} / -2);\n transform: translateX(calc(${CC} / -2)) rotate(45deg);\n left: 50%;\n `),TC("top-end",`\n top: calc(${CC} / -2);\n right: calc(${$C("top-end")} + var(--v-offset-left));\n `),TC("bottom-start",`\n bottom: calc(${CC} / -2);\n left: calc(${$C("bottom-start")} - var(--v-offset-left));\n `),TC("bottom",`\n bottom: calc(${CC} / -2);\n transform: translateX(calc(${CC} / -2)) rotate(45deg);\n left: 50%;\n `),TC("bottom-end",`\n bottom: calc(${CC} / -2);\n right: calc(${$C("bottom-end")} + var(--v-offset-left));\n `),TC("left-start",`\n left: calc(${CC} / -2);\n top: calc(${$C("left-start")} - var(--v-offset-top));\n `),TC("left",`\n left: calc(${CC} / -2);\n transform: translateY(calc(${CC} / -2)) rotate(45deg);\n top: 50%;\n `),TC("left-end",`\n left: calc(${CC} / -2);\n bottom: calc(${$C("left-end")} + var(--v-offset-top));\n `),TC("right-start",`\n right: calc(${CC} / -2);\n top: calc(${$C("right-start")} - var(--v-offset-top));\n `),TC("right",`\n right: calc(${CC} / -2);\n transform: translateY(calc(${CC} / -2)) rotate(45deg);\n top: 50%;\n `),TC("right-end",`\n right: calc(${CC} / -2);\n bottom: calc(${$C("right-end")} + var(--v-offset-top));\n `),...(PC={top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},EC=(e,t)=>{const n=["right","left"].includes(t),r=n?"width":"height";return e.map((e=>{const o="end"===e.split("-")[1],i=`calc((var(--v-target-${r}, 0px) - ${CC}) / 2)`,a=$C(e);return Sm(`[v-placement="${e}"] >`,[Cm("popover-shared",[Pm("center-arrow",[Cm("popover-arrow",`${t}: calc(max(${i}, ${a}) ${o?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])}))},(Xb(PC)?Yb:gS)(PC,Zx(EC)))]);var PC,EC;function $C(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function TC(e,t){const n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Sm(`[v-placement="${e}"] >`,[Cm("popover-shared",`\n margin-${kC[n]}: var(--n-space);\n `,[Pm("show-arrow",`\n margin-${kC[n]}: var(--n-space-arrow);\n `),Pm("overlap","\n margin: 0;\n "),$m("popover-arrow-wrapper",`\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ${n}: 100%;\n ${kC[n]}: auto;\n ${r}\n `,[Cm("popover-arrow",t)])])])}const IC=Object.assign(Object.assign({},ES.props),{to:Ym.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),jC=({arrowStyle:e,clsPrefix:t})=>Bi("div",{key:"__popover-arrow__",class:`${t}-popover-arrow-wrapper`},Bi("div",{class:`${t}-popover-arrow`,style:e})),AC=fr({name:"PopoverBody",inheritAttrs:!1,props:IC,setup(e,{slots:t,attrs:n}){const{namespaceRef:r,mergedClsPrefixRef:o,inlineThemeDisabled:i}=$S(e),a=ES("Popover","-popover",OC,SC,e,o),s=kt(null),l=Yn("NPopover"),c=kt(null),u=kt(e.show),d=kt(!1);Xn((()=>{const{show:t}=e;!t||(void 0===Tm&&(Tm=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Tm)||e.internalDeactivateImmediately||(d.value=!0)}));const p=Li((()=>{const{trigger:t,onClickoutside:n}=e,r=[],{positionManuallyRef:{value:o}}=l;return o||("click"!==t||n||r.push([dy,b,void 0,{capture:!0}]),"hover"===t&&r.push([cy,y])),n&&r.push([dy,b,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&d.value)&&r.push([Da,e.show]),r})),f=Li((()=>{const t="trigger"===e.width?void 0:Zv(e.width),n=[];t&&n.push({width:t});const{maxWidth:r,minWidth:o}=e;return r&&n.push({maxWidth:Zv(r)}),o&&n.push({maxWidth:Zv(o)}),i||n.push(h.value),n})),h=Li((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:o,padding:i,fontSize:s,textColor:l,dividerColor:c,color:u,boxShadow:d,borderRadius:p,arrowHeight:f,arrowOffset:h,arrowOffsetVertical:g}}=a.value;return{"--n-box-shadow":d,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":s,"--n-text-color":l,"--n-color":u,"--n-divider-color":c,"--n-border-radius":p,"--n-arrow-height":f,"--n-arrow-offset":h,"--n-arrow-offset-vertical":g,"--n-padding":i,"--n-space":r,"--n-space-arrow":o}})),g=i?IS("popover",void 0,h,e):void 0;function v(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&l.handleMouseEnter(t)}function m(t){"hover"===e.trigger&&e.keepAliveOnHover&&l.handleMouseLeave(t)}function y(t){"hover"!==e.trigger||_().contains(fv(t))||l.handleMouseMoveOutside(t)}function b(t){("click"===e.trigger&&!_().contains(fv(t))||e.onClickoutside)&&l.handleClickOutside(t)}function _(){return l.getTriggerElement()}return l.setBodyInstance({syncPosition:function(){var e;null===(e=s.value)||void 0===e||e.syncPosition()}}),Or((()=>{l.setBodyInstance(null)})),Qn(At(e,"show"),(t=>{e.animated||(u.value=!!t)})),Gn("n-popover-body",c),Gn("n-drawer-body",null),Gn("n-modal-body",null),{displayed:d,namespace:r,isMounted:l.isMountedRef,zIndex:l.zIndexRef,followerRef:s,adjustedTo:Ym(e),followerEnabled:u,renderContentNode:function(){if(null==g||g.onRender(),!("show"===e.displayDirective||e.show||e.animated&&d.value))return null;let r;const i=l.internalRenderBodyRef.value,{value:a}=o;if(i)r=i([`${a}-popover-shared`,null==g?void 0:g.themeClass.value,e.overlap&&`${a}-popover-shared--overlap`,e.showArrow&&`${a}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${a}-popover-shared--center-arrow`],c,f.value,v,m);else{const{value:o}=l.extraClassRef,{internalTrapFocus:i}=e,s=!Jv(t.header)||!Jv(t.footer),u=()=>{var n;const r=s?Bi(Ho,null,Kv(t.header,(t=>t?Bi("div",{class:`${a}-popover__header`,style:e.headerStyle},t):null)),Kv(t.default,(n=>n?Bi("div",{class:`${a}-popover__content`,style:e.contentStyle},t):null)),Kv(t.footer,(t=>t?Bi("div",{class:`${a}-popover__footer`,style:e.footerStyle},t):null))):e.scrollable?null===(n=t.default)||void 0===n?void 0:n.call(t):Bi("div",{class:`${a}-popover__content`,style:e.contentStyle},t);return[e.scrollable?Bi(mC,{contentClass:s?void 0:`${a}-popover__content`,contentStyle:s?void 0:e.contentStyle},{default:()=>r}):r,e.showArrow?jC({arrowStyle:e.arrowStyle,clsPrefix:a}):null]};r=Bi("div",vi({class:[`${a}-popover`,`${a}-popover-shared`,null==g?void 0:g.themeClass.value,o.map((e=>`${a}-${e}`)),{[`${a}-popover--scrollable`]:e.scrollable,[`${a}-popover--show-header-or-footer`]:s,[`${a}-popover--raw`]:e.raw,[`${a}-popover-shared--overlap`]:e.overlap,[`${a}-popover-shared--show-arrow`]:e.showArrow,[`${a}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:c,style:f.value,onKeydown:l.handleKeydown,onMouseenter:v,onMouseleave:m},n),i?Bi(Ob,{active:e.show,autoFocus:!0},{default:u}):u())}return Ar(r,p.value)}}},render(){return Bi(Iy,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===Ym.tdkey},{default:()=>this.animated?Bi(ia,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;null===(e=this.internalOnAfterLeave)||void 0===e||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),NC=Object.keys(IC),DC={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};const RC={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Ym.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},LC=fr({name:"Popover",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},ES.props),RC),{internalOnAfterLeave:Function,internalRenderBody:Function}),__popover__:!0,setup(e){Xn((()=>{void 0!==e.maxWidth&&zv("popover","`max-width` is deprecated, please use `style` instead."),void 0!==e.minWidth&&zv("popover","`min-width` is deprecated, please use `style` instead."),void 0!==e.arrow&&zv("popover","`arrow` is deprecated, please use `showArrow` instead."),void 0!==e.onHide&&zv("popover","`on-hide` is deprecated, please use `on-update:show` instead."),void 0!==e.onShow&&zv("popover","`on-show` is deprecated, please use `on-update:show` instead.")}));const t=qm(),n=kt(null),r=Li((()=>e.show)),o=kt(e.defaultShow),i=Vm(r,o),a=Nm((()=>!e.disabled&&i.value)),s=()=>{if(e.disabled)return!0;const{getDisabled:t}=e;return!!(null==t?void 0:t())},l=()=>!s()&&i.value,c=Km(e,["arrow","showArrow"]),u=Li((()=>!e.overlap&&c.value));let d=null;const p=kt(null),f=kt(null),h=Nm((()=>void 0!==e.x&&void 0!==e.y));function g(t){const{"onUpdate:show":n,onUpdateShow:r,onShow:i,onHide:a}=e;o.value=t,n&&Mv(n,t),r&&Mv(r,t),t&&i&&Mv(i,!0),t&&a&&Mv(a,!1)}function v(){const{value:e}=p;e&&(window.clearTimeout(e),p.value=null)}function m(){const{value:e}=f;e&&(window.clearTimeout(e),f.value=null)}function y(){const t=s();if("hover"===e.trigger&&!t){if(m(),null!==p.value)return;if(l())return;const t=()=>{g(!0),p.value=null},{delay:n}=e;0===n?t():p.value=window.setTimeout(t,n)}}function b(){const t=s();if("hover"===e.trigger&&!t){if(v(),null!==f.value)return;if(!l())return;const t=()=>{g(!1),f.value=null},{duration:n}=e;0===n?t():f.value=window.setTimeout(t,n)}}Gn("NPopover",{getTriggerElement:function(){var e;return null===(e=n.value)||void 0===e?void 0:e.targetRef},handleKeydown:function(t){e.internalTrapFocus&&"Escape"===t.key&&(v(),m(),g(!1))},handleMouseEnter:y,handleMouseLeave:b,handleClickOutside:function(t){var n;l()&&("click"===e.trigger&&(v(),m(),g(!1)),null===(n=e.onClickoutside)||void 0===n||n.call(e,t))},handleMouseMoveOutside:function(){b()},setBodyInstance:function(e){d=e},positionManuallyRef:h,isMountedRef:t,zIndexRef:At(e,"zIndex"),extraClassRef:At(e,"internalExtraClass"),internalRenderBodyRef:At(e,"internalRenderBody")}),Xn((()=>{i.value&&s()&&g(!1)}));return{binderInstRef:n,positionManually:h,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:u,getMergedShow:l,setShow:function(e){o.value=e},handleClick:function(){if("click"===e.trigger&&!s()){v(),m();g(!l())}},handleMouseEnter:y,handleMouseLeave:b,handleFocus:function(){const t=s();if("focus"===e.trigger&&!t){if(l())return;g(!0)}},handleBlur:function(){const t=s();if("focus"===e.trigger&&!t){if(!l())return;g(!1)}},syncPosition:function(){d&&d.syncPosition()}}},render(){var e;const{positionManually:t,$slots:n}=this;let r,o=!1;if(!t&&(r=n.activator?Hv(n,"activator"):Hv(n,"trigger"),r)){r=li(r),r=r.type===Wo?Bi("span",[r]):r;const n={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=r.type)||void 0===e?void 0:e.__popover__)o=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[n,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[n];else{const{internalInheritedEventHandlers:e}=this,o=[n,...e],l={onBlur:e=>{o.forEach((t=>{t.onBlur(e)}))},onFocus:e=>{o.forEach((t=>{t.onFocus(e)}))},onClick:e=>{o.forEach((t=>{t.onClick(e)}))},onMouseenter:e=>{o.forEach((t=>{t.onMouseenter(e)}))},onMouseleave:e=>{o.forEach((t=>{t.onMouseleave(e)}))}};i=r,a=e?"nested":t?"manual":this.trigger,s=l,DC[a].forEach((e=>{i.props?i.props=Object.assign({},i.props):i.props={};const t=i.props[e],n=s[e];i.props[e]=t?(...e)=>{t(...e),n(...e)}:n}))}}var i,a,s;return Bi(ay,{ref:"binderInstRef",syncTarget:!o,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const e=this.getMergedShow();return[this.internalTrapFocus&&e?Ar(Bi("div",{style:{position:"fixed",inset:0}}),[[hy,{enabled:e,zIndex:this.zIndex}]]):null,t?null:Bi(sy,null,{default:()=>r}),Bi(AC,Rv(this.$props,NC,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)},header:()=>{var e,t;return null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e)},footer:()=>{var e,t;return null===(t=(e=this.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}}),{cubicBezierEaseInOut:MC}=SS;const{cubicBezierEaseInOut:BC,cubicBezierEaseOut:FC,cubicBezierEaseIn:zC}=SS;function UC({overflow:e="hidden",duration:t=".3s",originalTransition:n="",leavingDelay:r="0s",foldPadding:o=!1,enterToProps:i,leaveToProps:a,reverse:s=!1}={}){const l=s?"leave":"enter",c=s?"enter":"leave";return[Sm(`&.fade-in-height-expand-transition-${c}-from,\n &.fade-in-height-expand-transition-${l}-to`,Object.assign(Object.assign({},i),{opacity:1})),Sm(`&.fade-in-height-expand-transition-${c}-to,\n &.fade-in-height-expand-transition-${l}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:o?"0 !important":void 0,paddingBottom:o?"0 !important":void 0})),Sm(`&.fade-in-height-expand-transition-${c}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${BC} ${r},\n opacity ${t} ${FC} ${r},\n margin-top ${t} ${BC} ${r},\n margin-bottom ${t} ${BC} ${r},\n padding-top ${t} ${BC} ${r},\n padding-bottom ${t} ${BC} ${r}\n ${n?","+n:""}\n `),Sm(`&.fade-in-height-expand-transition-${l}-active`,`\n overflow: ${e};\n transition:\n max-height ${t} ${BC},\n opacity ${t} ${zC},\n margin-top ${t} ${BC},\n margin-bottom ${t} ${BC},\n padding-top ${t} ${BC},\n padding-bottom ${t} ${BC}\n ${n?","+n:""}\n `)]}const HC=Im&&"chrome"in window;Im&&navigator.userAgent.includes("Firefox");const WC=Im&&navigator.userAgent.includes("Safari")&&!HC;function VC(e){return Tv(e,[255,255,255,.16])}function qC(e){return Tv(e,[0,0,0,.12])}const KC={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"},JC={name:"Button",common:dC,self:e=>{const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadius:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,textColor2:d,textColor3:p,primaryColorHover:f,primaryColorPressed:h,borderColor:g,primaryColor:v,baseColor:m,infoColor:y,infoColorHover:b,infoColorPressed:_,successColor:w,successColorHover:x,successColorPressed:S,warningColor:k,warningColorHover:C,warningColorPressed:O,errorColor:P,errorColorHover:E,errorColorPressed:$,fontWeight:T,buttonColor2:I,buttonColor2Hover:j,buttonColor2Pressed:A,fontWeightStrong:N}=e;return Object.assign(Object.assign({},KC),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:o,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:c,opacityDisabled:u,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:I,colorSecondaryHover:j,colorSecondaryPressed:A,colorTertiary:I,colorTertiaryHover:j,colorTertiaryPressed:A,colorQuaternary:"#0000",colorQuaternaryHover:j,colorQuaternaryPressed:A,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:d,textColorTertiary:p,textColorHover:f,textColorPressed:h,textColorFocus:f,textColorDisabled:d,textColorText:d,textColorTextHover:f,textColorTextPressed:h,textColorTextFocus:f,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:f,textColorGhostPressed:h,textColorGhostFocus:f,textColorGhostDisabled:d,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${h}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:v,colorPrimary:v,colorHoverPrimary:f,colorPressedPrimary:h,colorFocusPrimary:f,colorDisabledPrimary:v,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:v,textColorTextHoverPrimary:f,textColorTextPressedPrimary:h,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:d,textColorGhostPrimary:v,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:h,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:v,borderPrimary:`1px solid ${v}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${h}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${v}`,rippleColorPrimary:v,colorInfo:y,colorHoverInfo:b,colorPressedInfo:_,colorFocusInfo:b,colorDisabledInfo:y,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:y,textColorTextHoverInfo:b,textColorTextPressedInfo:_,textColorTextFocusInfo:b,textColorTextDisabledInfo:d,textColorGhostInfo:y,textColorGhostHoverInfo:b,textColorGhostPressedInfo:_,textColorGhostFocusInfo:b,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${b}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${b}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:w,colorHoverSuccess:x,colorPressedSuccess:S,colorFocusSuccess:x,colorDisabledSuccess:w,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:w,textColorTextHoverSuccess:x,textColorTextPressedSuccess:S,textColorTextFocusSuccess:x,textColorTextDisabledSuccess:d,textColorGhostSuccess:w,textColorGhostHoverSuccess:x,textColorGhostPressedSuccess:S,textColorGhostFocusSuccess:x,textColorGhostDisabledSuccess:w,borderSuccess:`1px solid ${w}`,borderHoverSuccess:`1px solid ${x}`,borderPressedSuccess:`1px solid ${S}`,borderFocusSuccess:`1px solid ${x}`,borderDisabledSuccess:`1px solid ${w}`,rippleColorSuccess:w,colorWarning:k,colorHoverWarning:C,colorPressedWarning:O,colorFocusWarning:C,colorDisabledWarning:k,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:k,textColorTextHoverWarning:C,textColorTextPressedWarning:O,textColorTextFocusWarning:C,textColorTextDisabledWarning:d,textColorGhostWarning:k,textColorGhostHoverWarning:C,textColorGhostPressedWarning:O,textColorGhostFocusWarning:C,textColorGhostDisabledWarning:k,borderWarning:`1px solid ${k}`,borderHoverWarning:`1px solid ${C}`,borderPressedWarning:`1px solid ${O}`,borderFocusWarning:`1px solid ${C}`,borderDisabledWarning:`1px solid ${k}`,rippleColorWarning:k,colorError:P,colorHoverError:E,colorPressedError:$,colorFocusError:E,colorDisabledError:P,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:P,textColorTextHoverError:E,textColorTextPressedError:$,textColorTextFocusError:E,textColorTextDisabledError:d,textColorGhostError:P,textColorGhostHoverError:E,textColorGhostPressedError:$,textColorGhostFocusError:E,textColorGhostDisabledError:P,borderError:`1px solid ${P}`,borderHoverError:`1px solid ${E}`,borderPressedError:`1px solid ${$}`,borderFocusError:`1px solid ${E}`,borderDisabledError:`1px solid ${P}`,rippleColorError:P,waveOpacity:"0.6",fontWeight:T,fontWeightStrong:N})}},GC=Sm([Cm("button","\n margin: 0;\n font-weight: var(--n-font-weight);\n line-height: 1;\n font-family: inherit;\n padding: var(--n-padding);\n height: var(--n-height);\n font-size: var(--n-font-size);\n border-radius: var(--n-border-radius);\n color: var(--n-text-color);\n background-color: var(--n-color);\n width: var(--n-width);\n white-space: nowrap;\n outline: none;\n position: relative;\n z-index: auto;\n border: none;\n display: inline-flex;\n flex-wrap: nowrap;\n flex-shrink: 0;\n align-items: center;\n justify-content: center;\n user-select: none;\n -webkit-user-select: none;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n transition:\n color .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n ",[Pm("color",[Om("border",{borderColor:"var(--n-border-color)"}),Pm("disabled",[Om("border",{borderColor:"var(--n-border-color-disabled)"})]),Em("disabled",[Sm("&:focus",[Om("state-border",{borderColor:"var(--n-border-color-focus)"})]),Sm("&:hover",[Om("state-border",{borderColor:"var(--n-border-color-hover)"})]),Sm("&:active",[Om("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Pm("pressed",[Om("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Pm("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[Om("border",{border:"var(--n-border-disabled)"})]),Em("disabled",[Sm("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[Om("state-border",{border:"var(--n-border-focus)"})]),Sm("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[Om("state-border",{border:"var(--n-border-hover)"})]),Sm("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Om("state-border",{border:"var(--n-border-pressed)"})]),Pm("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[Om("state-border",{border:"var(--n-border-pressed)"})])]),Pm("loading","cursor: wait;"),Cm("base-wave","\n pointer-events: none;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n animation-iteration-count: 1;\n animation-duration: var(--n-ripple-duration);\n animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);\n ",[Pm("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),Im&&"MozBoxSizing"in document.createElement("div").style?Sm("&::moz-focus-inner",{border:0}):null,Om("border, state-border","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n border-radius: inherit;\n transition: border-color .3s var(--n-bezier);\n pointer-events: none;\n "),Om("border",{border:"var(--n-border)"}),Om("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),Om("icon","\n margin: var(--n-icon-margin);\n margin-left: 0;\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n max-width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n position: relative;\n flex-shrink: 0;\n ",[Cm("icon-slot","\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n justify-content: center;\n ",[JS({top:"50%",originalTransform:"translateY(-50%)"})]),function({duration:e=".2s",delay:t=".1s"}={}){return[Sm("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),Sm("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from","\n opacity: 0!important;\n margin-left: 0!important;\n margin-right: 0!important;\n "),Sm("&.fade-in-width-expand-transition-leave-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${MC},\n max-width ${e} ${MC} ${t},\n margin-left ${e} ${MC} ${t},\n margin-right ${e} ${MC} ${t};\n `),Sm("&.fade-in-width-expand-transition-enter-active",`\n overflow: hidden;\n transition:\n opacity ${e} ${MC} ${t},\n max-width ${e} ${MC},\n margin-left ${e} ${MC},\n margin-right ${e} ${MC};\n `)]}()]),Om("content","\n display: flex;\n align-items: center;\n flex-wrap: nowrap;\n min-width: 0;\n ",[Sm("~",[Om("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Pm("block","\n display: flex;\n width: 100%;\n "),Pm("dashed",[Om("border, state-border",{borderStyle:"dashed !important"})]),Pm("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),Sm("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),Sm("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),YC=fr({name:"Button",props:Object.assign(Object.assign({},ES.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!WC}}),setup(e){Xn((()=>{const{dashed:t,ghost:n,text:r,secondary:o,tertiary:i,quaternary:a}=e;(t||n||r)&&(o||i||a)&&zv("button","`dashed`, `ghost` and `text` props can't be used along with `secondary`, `tertiary` and `quaternary` props.")}));const t=kt(null),n=kt(null),r=kt(!1),o=Nm((()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered)),i=Yn("n-button-group",{}),{mergedSizeRef:a}=function(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const o=Yn("n-form-item",null);Gn("n-form-item",null);const i=Li(n?()=>n(o):()=>{const{size:n}=e;if(n)return n;if(o){const{mergedSize:e}=o;if(void 0!==e.value)return e.value}return t}),a=Li(r?()=>r(o):()=>{const{disabled:t}=e;return void 0!==t?t:!!o&&o.disabled.value}),s=Li((()=>{const{status:t}=e;return t||(null==o?void 0:o.mergedValidationStatus.value)}));return Or((()=>{o&&o.restoreValidation()})),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:s,nTriggerFormBlur(){o&&o.handleContentBlur()},nTriggerFormChange(){o&&o.handleContentChange()},nTriggerFormFocus(){o&&o.handleContentFocus()},nTriggerFormInput(){o&&o.handleContentInput()}}}({},{defaultSize:"medium",mergedSize:t=>{const{size:n}=e;if(n)return n;const{size:r}=i;if(r)return r;const{mergedSize:o}=t||{};return o?o.value:"medium"}}),s=Li((()=>e.focusable&&!e.disabled)),{inlineThemeDisabled:l,mergedClsPrefixRef:c,mergedRtlRef:u}=$S(e),d=ES("Button","-button",GC,JC,e,c),p=jS("Button",u,c),f=Li((()=>{const t=d.value,{common:{cubicBezierEaseInOut:n,cubicBezierEaseOut:r},self:o}=t,{rippleDuration:i,opacityDisabled:s,fontWeight:l,fontWeightStrong:c}=o,u=a.value,{dashed:p,type:f,ghost:h,text:g,color:v,round:m,circle:y,textColor:b,secondary:_,tertiary:w,quaternary:x,strong:S}=e,k={"font-weight":S?c:l};let C={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const O="tertiary"===f,P="default"===f,E=O?"default":f;if(g){const e=b||v;C={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":e||o[_m("textColorText",E)],"--n-text-color-hover":e?VC(e):o[_m("textColorTextHover",E)],"--n-text-color-pressed":e?qC(e):o[_m("textColorTextPressed",E)],"--n-text-color-focus":e?VC(e):o[_m("textColorTextHover",E)],"--n-text-color-disabled":e||o[_m("textColorTextDisabled",E)]}}else if(h||p){const e=b||v;C={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":v||o[_m("rippleColor",E)],"--n-text-color":e||o[_m("textColorGhost",E)],"--n-text-color-hover":e?VC(e):o[_m("textColorGhostHover",E)],"--n-text-color-pressed":e?qC(e):o[_m("textColorGhostPressed",E)],"--n-text-color-focus":e?VC(e):o[_m("textColorGhostHover",E)],"--n-text-color-disabled":e||o[_m("textColorGhostDisabled",E)]}}else if(_){const e=P?o.textColor:O?o.textColorTertiary:o[_m("color",E)],t=v||e,n="default"!==f&&"tertiary"!==f;C={"--n-color":n?Iv(t,{alpha:Number(o.colorOpacitySecondary)}):o.colorSecondary,"--n-color-hover":n?Iv(t,{alpha:Number(o.colorOpacitySecondaryHover)}):o.colorSecondaryHover,"--n-color-pressed":n?Iv(t,{alpha:Number(o.colorOpacitySecondaryPressed)}):o.colorSecondaryPressed,"--n-color-focus":n?Iv(t,{alpha:Number(o.colorOpacitySecondaryHover)}):o.colorSecondaryHover,"--n-color-disabled":o.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(w||x){const e=P?o.textColor:O?o.textColorTertiary:o[_m("color",E)],t=v||e;w?(C["--n-color"]=o.colorTertiary,C["--n-color-hover"]=o.colorTertiaryHover,C["--n-color-pressed"]=o.colorTertiaryPressed,C["--n-color-focus"]=o.colorSecondaryHover,C["--n-color-disabled"]=o.colorTertiary):(C["--n-color"]=o.colorQuaternary,C["--n-color-hover"]=o.colorQuaternaryHover,C["--n-color-pressed"]=o.colorQuaternaryPressed,C["--n-color-focus"]=o.colorQuaternaryHover,C["--n-color-disabled"]=o.colorQuaternary),C["--n-ripple-color"]="#0000",C["--n-text-color"]=t,C["--n-text-color-hover"]=t,C["--n-text-color-pressed"]=t,C["--n-text-color-focus"]=t,C["--n-text-color-disabled"]=t}else C={"--n-color":v||o[_m("color",E)],"--n-color-hover":v?VC(v):o[_m("colorHover",E)],"--n-color-pressed":v?qC(v):o[_m("colorPressed",E)],"--n-color-focus":v?VC(v):o[_m("colorFocus",E)],"--n-color-disabled":v||o[_m("colorDisabled",E)],"--n-ripple-color":v||o[_m("rippleColor",E)],"--n-text-color":b||(v?o.textColorPrimary:O?o.textColorTertiary:o[_m("textColor",E)]),"--n-text-color-hover":b||(v?o.textColorHoverPrimary:o[_m("textColorHover",E)]),"--n-text-color-pressed":b||(v?o.textColorPressedPrimary:o[_m("textColorPressed",E)]),"--n-text-color-focus":b||(v?o.textColorFocusPrimary:o[_m("textColorFocus",E)]),"--n-text-color-disabled":b||(v?o.textColorDisabledPrimary:o[_m("textColorDisabled",E)])};let $={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};$=g?{"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:{"--n-border":o[_m("border",E)],"--n-border-hover":o[_m("borderHover",E)],"--n-border-pressed":o[_m("borderPressed",E)],"--n-border-focus":o[_m("borderFocus",E)],"--n-border-disabled":o[_m("borderDisabled",E)]};const{[_m("height",u)]:T,[_m("fontSize",u)]:I,[_m("padding",u)]:j,[_m("paddingRound",u)]:A,[_m("iconSize",u)]:N,[_m("borderRadius",u)]:D,[_m("iconMargin",u)]:R,waveOpacity:L}=o,M={"--n-width":y&&!g?T:"initial","--n-height":g?"initial":T,"--n-font-size":I,"--n-padding":y||g?"initial":m?A:j,"--n-icon-size":N,"--n-icon-margin":R,"--n-border-radius":g?"initial":y||m?T:D};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":n,"--n-bezier-ease-out":r,"--n-ripple-duration":i,"--n-opacity-disabled":s,"--n-wave-opacity":L},k),C),$),M)})),h=l?IS("button",Li((()=>{let t="";const{dashed:n,type:r,ghost:o,text:i,color:s,round:l,circle:c,textColor:u,secondary:d,tertiary:p,quaternary:f,strong:h}=e;n&&(t+="a"),o&&(t+="b"),i&&(t+="c"),l&&(t+="d"),c&&(t+="e"),d&&(t+="f"),p&&(t+="g"),f&&(t+="h"),h&&(t+="i"),s&&(t+="j"+Qv(s)),u&&(t+="k"+Qv(u));const{value:g}=a;return t+="l"+g[0],t+="m"+r[0],t})),f,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:c,mergedFocusable:s,mergedSize:a,showBorder:o,enterPressed:r,rtlEnabled:p,handleMousedown:n=>{var r;s.value||n.preventDefault(),e.nativeFocusBehavior||(n.preventDefault(),e.disabled||s.value&&(null===(r=t.value)||void 0===r||r.focus({preventScroll:!0})))},handleKeydown:t=>{if("Enter"===t.key){if(!e.keyboard||e.loading)return void t.preventDefault();r.value=!0}},handleBlur:()=>{r.value=!1},handleKeyup:t=>{if("Enter"===t.key){if(!e.keyboard)return;r.value=!1}},handleClick:t=>{var r;if(!e.disabled&&!e.loading){const{onClick:o}=e;o&&Mv(o,t),e.text||null===(r=n.value)||void 0===r||r.play()}},customColorCssVars:Li((()=>{const{color:t}=e;if(!t)return null;const n=VC(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":qC(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}})),cssVars:l?void 0:f,themeClass:null==h?void 0:h.themeClass,onRender:null==h?void 0:h.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;null==n||n();const r=Kv(this.$slots.default,(t=>t&&Bi("span",{class:`${e}-button__content`},t)));return Bi(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},"right"===this.iconPlacement&&r,Bi(US,{width:!0},{default:()=>Kv(this.$slots.icon,(t=>(this.loading||this.renderIcon||t)&&Bi("span",{class:`${e}-button__icon`,style:{margin:Jv(this.$slots.default)?"0":""}},Bi(zS,null,{default:()=>this.loading?Bi(XS,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):Bi("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():t)}))))}),"left"===this.iconPlacement&&r,this.text?null:Bi(wC,{ref:"waveElRef",clsPrefix:e}),this.showBorder?Bi("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?Bi("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),XC=YC,ZC={name:"Collapse",common:dC,self:e=>{const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:o,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:o,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:o,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}},QC=Cm("collapse","width: 100%;",[Cm("collapse-item","\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n transition:\n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier);\n margin: var(--n-item-margin);\n ",[Pm("disabled",[Om("header","cursor: not-allowed;",[Om("header-main","\n color: var(--n-title-text-color-disabled);\n "),Cm("collapse-item-arrow","\n color: var(--n-arrow-color-disabled);\n ")])]),Cm("collapse-item","margin-left: 32px;"),Sm("&:first-child","margin-top: 0;"),Sm("&:first-child >",[Om("header","padding-top: 0;")]),Pm("left-arrow-placement",[Om("header",[Cm("collapse-item-arrow","margin-right: 4px;")])]),Pm("right-arrow-placement",[Om("header",[Cm("collapse-item-arrow","margin-left: 4px;")])]),Om("content-wrapper",[Om("content-inner","padding-top: 16px;"),UC({duration:"0.15s"})]),Pm("active",[Om("header",[Pm("active",[Cm("collapse-item-arrow","transform: rotate(90deg);")])])]),Sm("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),Om("header","\n font-size: var(--n-title-font-size);\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n transition: color .3s var(--n-bezier);\n position: relative;\n padding: var(--n-title-padding);\n color: var(--n-title-text-color);\n cursor: pointer;\n ",[Om("header-main","\n display: flex;\n flex-wrap: nowrap;\n align-items: center;\n font-weight: var(--n-title-font-weight);\n transition: color .3s var(--n-bezier);\n flex: 1;\n color: var(--n-title-text-color);\n "),Om("header-extra","\n display: flex;\n align-items: center;\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n "),Cm("collapse-item-arrow","\n display: flex;\n transition:\n transform .15s var(--n-bezier),\n color .3s var(--n-bezier);\n font-size: 18px;\n color: var(--n-arrow-color);\n ")])])]),eO=Object.assign(Object.assign({},ES.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),tO=fr({name:"Collapse",props:eO,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=$S(e),i=kt(e.defaultExpandedNames),a=Vm(Li((()=>e.expandedNames)),i),s=ES("Collapse","-collapse",QC,ZC,e,n);function l(t){const{"onUpdate:expandedNames":n,onUpdateExpandedNames:r,onExpandedNamesChange:o}=e;r&&Mv(r,t),n&&Mv(n,t),o&&Mv(o,t),i.value=t}function c(t){const{onItemHeaderClick:n}=e;n&&Mv(n,t)}Gn("n-collapse",{props:e,mergedClsPrefixRef:n,expandedNamesRef:a,slots:t,toggleItem:function(t,n,r){const{accordion:o}=e,{value:i}=a;if(o)t?(l([n]),c({name:n,expanded:!0,event:r})):(l([]),c({name:n,expanded:!1,event:r}));else if(Array.isArray(i)){const e=i.slice(),t=e.findIndex((e=>n===e));~t?(e.splice(t,1),l(e),c({name:n,expanded:!1,event:r})):(e.push(n),l(e),c({name:n,expanded:!0,event:r}))}else l([n]),c({name:n,expanded:!0,event:r})}});const u=jS("Collapse",o,n),d=Li((()=>{const{common:{cubicBezierEaseInOut:e},self:{titleFontWeight:t,dividerColor:n,titlePadding:r,titleTextColor:o,titleTextColorDisabled:i,textColor:a,arrowColor:l,fontSize:c,titleFontSize:u,arrowColorDisabled:d,itemMargin:p}}=s.value;return{"--n-font-size":c,"--n-bezier":e,"--n-text-color":a,"--n-divider-color":n,"--n-title-padding":r,"--n-title-font-size":u,"--n-title-text-color":o,"--n-title-text-color-disabled":i,"--n-title-font-weight":t,"--n-arrow-color":l,"--n-arrow-color-disabled":d,"--n-item-margin":p}})),p=r?IS("collapse",void 0,d,e):void 0;return{rtlEnabled:u,mergedTheme:s,mergedClsPrefix:n,cssVars:r?void 0:d,themeClass:null==p?void 0:p.themeClass,onRender:null==p?void 0:p.onRender}},render(){var e;return null===(e=this.onRender)||void 0===e||e.call(this),Bi("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),nO=fr({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup:e=>({onceTrue:Am(At(e,"show"))}),render(){return Bi(US,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,o="show"===t&&n,i=Bi("div",{class:`${r}-collapse-item__content-wrapper`},Bi("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return o?Ar(i,[[Da,e]]):e?i:null}})}}),rO=fr({name:"CollapseItem",props:{title:String,name:[String,Number],disabled:Boolean,displayDirective:String},setup(e){const{mergedRtlRef:t}=$S(e),n=Dv(),r=Nm((()=>{var t;return null!==(t=e.name)&&void 0!==t?t:n})),o=Yn("n-collapse");o||Uv("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:s,slots:l}=o,c=Li((()=>{const{value:e}=i;if(Array.isArray(e)){const{value:t}=r;return!~e.findIndex((e=>e===t))}if(e){const{value:t}=r;return t!==e}return!0}));return{rtlEnabled:jS("Collapse",t,s),collapseSlots:l,randomName:n,mergedClsPrefix:s,collapsed:c,mergedDisplayDirective:Li((()=>{const{displayDirective:t}=e;return t||a.displayDirective})),arrowPlacement:Li((()=>a.arrowPlacement)),handleClick(t){o&&!e.disabled&&o.toggleItem(c.value,r.value,t)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:o,mergedClsPrefix:i,disabled:a}=this,s=qv(t.header,{collapsed:r},(()=>[this.title])),l=t["header-extra"]||e["header-extra"],c=t.arrow||e.arrow;return Bi("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`]},Bi("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},Bi("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},"right"===n&&s,Bi("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1},qv(c,{collapsed:r},(()=>{var t;return[Bi(WS,{clsPrefix:i},{default:null!==(t=e.expandIcon)&&void 0!==t?t:()=>this.rtlEnabled?Bi(NS,null):Bi(DS,null)})]}))),"left"===n&&s),(d={collapsed:r},(e=>Bi("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick},e))((u=l)&&Vv(u(d))||null))),Bi(nO,{clsPrefix:i,displayDirective:o,show:!r},t));var u,d}}),oO={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"},iO={name:"Dropdown",common:dC,peers:{Popover:SC},self:e=>{const{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:o,popoverColor:i,invertedColor:a,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,heightSmall:p,heightMedium:f,heightLarge:h,heightHuge:g,textColor3:v,opacityDisabled:m}=e;return Object.assign(Object.assign({},oO),{optionHeightSmall:p,optionHeightMedium:f,optionHeightLarge:h,optionHeightHuge:g,borderRadius:s,fontSizeSmall:l,fontSizeMedium:c,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:o,optionColorActive:Iv(t,{alpha:.1}),groupHeaderTextColor:v,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})}},aO=fr({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return Bi("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),sO={name:"Icon",common:dC,self:e=>{const{textColorBase:t,opacity1:n,opacity2:r,opacity3:o,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:o,opacity4Depth:i,opacity5Depth:a}}},lO=Cm("icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[Pm("color-transition",{transition:"color .3s var(--n-bezier)"}),Pm("depth",{color:"var(--n-color)"},[Sm("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),Sm("svg",{height:"1em",width:"1em"})]),cO=fr({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Object.assign(Object.assign({},ES.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=$S(e),r=ES("Icon","-icon",lO,sO,e,t),o=Li((()=>{const{depth:t}=e,{common:{cubicBezierEaseInOut:n},self:o}=r.value;if(void 0!==t){const{color:e,[`opacity${t}Depth`]:r}=o;return{"--n-bezier":n,"--n-color":e,"--n-opacity":r}}return{"--n-bezier":n,"--n-color":"","--n-opacity":""}})),i=n?IS("icon",Li((()=>`${e.depth||"d"}`)),o,e):void 0;return{mergedClsPrefix:t,mergedStyle:Li((()=>{const{size:t,color:n}=e;return{fontSize:Zv(t),color:n}})),cssVars:n?void 0:o,themeClass:null==i?void 0:i.themeClass,onRender:null==i?void 0:i.onRender}},render(){var e;const{$parent:t,depth:n,mergedClsPrefix:r,component:o,onRender:i,themeClass:a}=this;return null===(e=null==t?void 0:t.$options)||void 0===e||e._n_icon__,null==i||i(),Bi("i",vi(this.$attrs,{role:"img",class:[`${r}-icon`,a,{[`${r}-icon--depth`]:n,[`${r}-icon--color-transition`]:void 0!==n}],style:[this.cssVars,this.mergedStyle]}),o?Bi(o):this.$slots)}});function uO(e,t){return"submenu"===e.type||void 0===e.type&&void 0!==e[t]}function dO(e){return"divider"===e.type}const pO=fr({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=Yn("n-dropdown"),{hoverKeyRef:n,keyboardKeyRef:r,lastToggledSubmenuKeyRef:o,pendingKeyPathRef:i,activeKeyPathRef:a,animatedRef:s,mergedShowRef:l,renderLabelRef:c,renderIconRef:u,labelFieldRef:d,childrenFieldRef:p,renderOptionRef:f,nodePropsRef:h,menuPropsRef:g}=t,v=Yn("n-dropdown-option",null),m=Yn("n-dropdown-menu"),y=Yn("n-popover-body"),b=Li((()=>e.tmNode.rawNode)),_=Li((()=>{const{value:t}=p;return uO(e.tmNode.rawNode,t)})),w=Li((()=>{const{disabled:t}=e.tmNode;return t})),x=function(e,t,n){if(!t)return e;const r=kt(e.value);let o=null;return Qn(e,(e=>{null!==o&&window.clearTimeout(o),!0===e?n&&!n.value?r.value=!0:o=window.setTimeout((()=>{r.value=!0}),t):r.value=!1})),r}(Li((()=>{if(!_.value)return!1;const{key:t,disabled:a}=e.tmNode;if(a)return!1;const{value:s}=n,{value:l}=r,{value:c}=o,{value:u}=i;return null!==s?u.includes(t):null!==l?u.includes(t)&&u[u.length-1]!==t:null!==c&&u.includes(t)})),300,Li((()=>null===r.value&&!s.value))),S=Li((()=>!!(null==v?void 0:v.enteringSubmenuRef.value))),k=kt(!1);function C(){const{parentKey:t,tmNode:i}=e;i.disabled||l.value&&(o.value=t,r.value=null,n.value=i.key)}return Gn("n-dropdown-option",{enteringSubmenuRef:k}),{labelField:d,renderLabel:c,renderIcon:u,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:g,popoverBody:y,animated:s,mergedShowSubmenu:Li((()=>x.value&&!S.value)),rawNode:b,hasSubmenu:_,pending:Nm((()=>{const{value:t}=i,{key:n}=e.tmNode;return t.includes(n)})),childActive:Nm((()=>{const{value:t}=a,{key:n}=e.tmNode,r=t.findIndex((e=>n===e));return-1!==r&&r<t.length-1})),active:Nm((()=>{const{value:t}=a,{key:n}=e.tmNode,r=t.findIndex((e=>n===e));return-1!==r&&r===t.length-1})),mergedDisabled:w,renderOption:f,nodeProps:h,handleClick:function(){const{value:n}=_,{tmNode:r}=e;l.value&&(n||r.disabled||(t.doSelect(r.key,r.rawNode),t.doUpdateShow(!1)))},handleMouseMove:function(){const{tmNode:t}=e;t.disabled||l.value&&n.value!==t.key&&C()},handleMouseEnter:C,handleMouseLeave:function(t){if(e.tmNode.disabled)return;if(!l.value)return;const{relatedTarget:r}=t;!r||pv({target:r},"dropdownOption")||pv({target:r},"scrollbarRail")||(n.value=null)},handleSubmenuBeforeEnter:function(){k.value=!0},handleSubmenuAfterEnter:function(){k.value=!1}}},render(){var e,t;const{animated:n,rawNode:r,mergedShowSubmenu:o,clsPrefix:i,siblingHasIcon:a,siblingHasSubmenu:s,renderLabel:l,renderIcon:c,renderOption:u,nodeProps:d,props:p,scrollable:f}=this;let h=null;if(o){const t=null===(e=this.menuProps)||void 0===e?void 0:e.call(this,r,r.children);h=Bi(vO,Object.assign({},t,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},v=null==d?void 0:d(r),m=Bi("div",Object.assign({class:[`${i}-dropdown-option`,null==v?void 0:v.class],"data-dropdown-option":!0},v),Bi("div",vi(g,p),[Bi("div",{class:[`${i}-dropdown-option-body__prefix`,a&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(r):Bv(r.icon)]),Bi("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},l?l(r):Bv(null!==(t=r[this.labelField])&&void 0!==t?t:r.title)),Bi("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,s&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?Bi(cO,null,{default:()=>Bi(DS,null)}):null)]),this.hasSubmenu?Bi(ay,null,{default:()=>[Bi(sy,null,{default:()=>Bi("div",{class:`${i}-dropdown-offset-container`},Bi(Iy,{show:this.mergedShowSubmenu,placement:this.placement,to:f&&this.popoverBody||void 0,teleportDisabled:!f},{default:()=>Bi("div",{class:`${i}-dropdown-menu-wrapper`},n?Bi(ia,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>h}):h)}))})]}):null);return u?u({node:m,option:r}):m}}),fO=fr({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=Yn("n-dropdown-menu"),{renderLabelRef:n,labelFieldRef:r,nodePropsRef:o,renderOptionRef:i}=Yn("n-dropdown");return{labelField:r,showIcon:e,hasSubmenu:t,renderLabel:n,nodeProps:o,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:n,showIcon:r,nodeProps:o,renderLabel:i,renderOption:a}=this,{rawNode:s}=this.tmNode,l=Bi("div",Object.assign({class:`${t}-dropdown-option`},null==o?void 0:o(s)),Bi("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},Bi("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,r&&`${t}-dropdown-option-body__prefix--show-icon`]},Bv(s.icon)),Bi("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(s):Bv(null!==(e=s.title)&&void 0!==e?e:s[this.labelField])),Bi("div",{class:[`${t}-dropdown-option-body__suffix`,n&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return a?a({node:l,option:s}):l}}),hO=fr({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:n}=this,{children:r}=e;return Bi(Ho,null,Bi(fO,{clsPrefix:n,tmNode:e,key:e.key}),null==r?void 0:r.map((e=>{const{rawNode:r}=e;return!1===r.show?null:dO(r)?Bi(aO,{clsPrefix:n,key:e.key}):e.isGroup?null:Bi(pO,{clsPrefix:n,tmNode:e,parentKey:t,key:e.key})})))}}),gO=fr({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return Bi("div",t,[null==e?void 0:e()])}}),vO=fr({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:n}=Yn("n-dropdown");Gn("n-dropdown-menu",{showIconRef:Li((()=>{const n=t.value;return e.tmNodes.some((e=>{var t;if(e.isGroup)return null===(t=e.children)||void 0===t?void 0:t.some((({rawNode:e})=>n?n(e):e.icon));const{rawNode:r}=e;return n?n(r):r.icon}))})),hasSubmenuRef:Li((()=>{const{value:t}=n;return e.tmNodes.some((e=>{var n;if(e.isGroup)return null===(n=e.children)||void 0===n?void 0:n.some((({rawNode:e})=>uO(e,t)));const{rawNode:r}=e;return uO(r,t)}))}))});const r=kt(null);return Gn("n-modal-body",null),Gn("n-drawer-body",null),Gn("n-popover-body",r),{bodyRef:r}},render(){const{parentKey:e,clsPrefix:t,scrollable:n}=this,r=this.tmNodes.map((r=>{const{rawNode:o}=r;return!1===o.show?null:function(e){return"render"===e.type}(o)?Bi(gO,{tmNode:r,key:r.key}):dO(o)?Bi(aO,{clsPrefix:t,key:r.key}):function(e){return"group"===e.type}(o)?Bi(hO,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):Bi(pO,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:o.props,scrollable:n})}));return Bi("div",{class:[`${t}-dropdown-menu`,n&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},n?Bi(mC,{contentClass:`${t}-dropdown-menu__content`},{default:()=>r}):r,this.showArrow?jC({clsPrefix:t,arrowStyle:this.arrowStyle}):null)}}),mO=Cm("dropdown-menu","\n transform-origin: var(--v-transform-origin);\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n box-shadow: var(--n-box-shadow);\n position: relative;\n transition:\n background-color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier);\n",[function({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:o=""}={}){return[Sm("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${yC}, transform ${t} ${yC} ${o&&","+o}`}),Sm("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${bC}, transform ${t} ${bC} ${o&&","+o}`}),Sm("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),Sm("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}(),Cm("dropdown-option","\n position: relative;\n ",[Sm("a","\n text-decoration: none;\n color: inherit;\n outline: none;\n ",[Sm("&::before",'\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ')]),Cm("dropdown-option-body","\n display: flex;\n cursor: pointer;\n position: relative;\n height: var(--n-option-height);\n line-height: var(--n-option-height);\n font-size: var(--n-font-size);\n color: var(--n-option-text-color);\n transition: color .3s var(--n-bezier);\n ",[Sm("&::before",'\n content: "";\n position: absolute;\n top: 0;\n bottom: 0;\n left: 4px;\n right: 4px;\n transition: background-color .3s var(--n-bezier);\n border-radius: var(--n-border-radius);\n '),Em("disabled",[Pm("pending","\n color: var(--n-option-text-color-hover);\n ",[Om("prefix, suffix","\n color: var(--n-option-text-color-hover);\n "),Sm("&::before","background-color: var(--n-option-color-hover);")]),Pm("active","\n color: var(--n-option-text-color-active);\n ",[Om("prefix, suffix","\n color: var(--n-option-text-color-active);\n "),Sm("&::before","background-color: var(--n-option-color-active);")]),Pm("child-active","\n color: var(--n-option-text-color-child-active);\n ",[Om("prefix, suffix","\n color: var(--n-option-text-color-child-active);\n ")])]),Pm("disabled","\n cursor: not-allowed;\n opacity: var(--n-option-opacity-disabled);\n "),Pm("group","\n font-size: calc(var(--n-font-size) - 1px);\n color: var(--n-group-header-text-color);\n ",[Om("prefix","\n width: calc(var(--n-option-prefix-width) / 2);\n ",[Pm("show-icon","\n width: calc(var(--n-option-icon-prefix-width) / 2);\n ")])]),Om("prefix","\n width: var(--n-option-prefix-width);\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--n-prefix-color);\n transition: color .3s var(--n-bezier);\n z-index: 1;\n ",[Pm("show-icon","\n width: var(--n-option-icon-prefix-width);\n "),Cm("icon","\n font-size: var(--n-option-icon-size);\n ")]),Om("label","\n white-space: nowrap;\n flex: 1;\n z-index: 1;\n "),Om("suffix","\n box-sizing: border-box;\n flex-grow: 0;\n flex-shrink: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n min-width: var(--n-option-suffix-width);\n padding: 0 8px;\n transition: color .3s var(--n-bezier);\n color: var(--n-suffix-color);\n z-index: 1;\n ",[Pm("has-submenu","\n width: var(--n-option-icon-suffix-width);\n "),Cm("icon","\n font-size: var(--n-option-icon-size);\n ")]),Cm("dropdown-menu","pointer-events: all;")]),Cm("dropdown-offset-container","\n pointer-events: none;\n position: absolute;\n left: 0;\n right: 0;\n top: -4px;\n bottom: -4px;\n ")]),Cm("dropdown-divider","\n transition: background-color .3s var(--n-bezier);\n background-color: var(--n-divider-color);\n height: 1px;\n margin: 4px 0;\n "),Cm("dropdown-menu-wrapper","\n transform-origin: var(--v-transform-origin);\n width: fit-content;\n "),Sm(">",[Cm("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),Em("scrollable","\n padding: var(--n-padding);\n "),Pm("scrollable",[Om("content","\n padding: var(--n-padding);\n ")])]),yO={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},bO=Object.keys(RC),_O=fr({name:"Dropdown",inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},RC),yO),ES.props),setup(e){const t=kt(!1),n=Vm(At(e,"show"),t),r=Li((()=>{const{keyField:t,childrenField:n}=e;return _k(e.options,{getKey:e=>e[t],getDisabled:e=>!0===e.disabled,getIgnored:e=>"divider"===e.type||"render"===e.type,getChildren:e=>e[n]})})),o=Li((()=>r.value.treeNodes)),i=kt(null),a=kt(null),s=kt(null),l=Li((()=>{var e,t,n;return null!==(n=null!==(t=null!==(e=i.value)&&void 0!==e?e:a.value)&&void 0!==t?t:s.value)&&void 0!==n?n:null})),c=Li((()=>r.value.getPath(l.value).keyPath)),u=Li((()=>r.value.getPath(e.value).keyPath));Gm({keydown:{ArrowUp:{prevent:!0,handler:function(){y("up")}},ArrowRight:{prevent:!0,handler:function(){y("right")}},ArrowDown:{prevent:!0,handler:function(){y("down")}},ArrowLeft:{prevent:!0,handler:function(){y("left")}},Enter:{prevent:!0,handler:function(){const e=m();(null==e?void 0:e.isLeaf)&&n.value&&(h(e.key,e.rawNode),g(!1))}},Escape:function(){g(!1)}}},Nm((()=>e.keyboard&&n.value)));const{mergedClsPrefixRef:d,inlineThemeDisabled:p}=$S(e),f=ES("Dropdown","-dropdown",mO,iO,e,d);function h(t,n){const{onSelect:r}=e;r&&Mv(r,t,n)}function g(n){const{"onUpdate:show":r,onUpdateShow:o}=e;r&&Mv(r,n),o&&Mv(o,n),t.value=n}function v(){i.value=null,a.value=null,s.value=null}function m(){var e;const{value:t}=r,{value:n}=l;return t&&null!==n&&null!==(e=t.getNode(n))&&void 0!==e?e:null}function y(e){const{value:t}=l,{value:{getFirstAvailableNode:n}}=r;let o=null;if(null===t){const e=n();null!==e&&(o=e.key)}else{const t=m();if(t){let n;switch(e){case"down":n=t.getNext();break;case"up":n=t.getPrev();break;case"right":n=t.getChild();break;case"left":n=t.getParent()}n&&(o=n.key)}}null!==o&&(i.value=null,a.value=o)}Gn("n-dropdown",{labelFieldRef:At(e,"labelField"),childrenFieldRef:At(e,"childrenField"),renderLabelRef:At(e,"renderLabel"),renderIconRef:At(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:a,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:c,activeKeyPathRef:u,animatedRef:At(e,"animated"),mergedShowRef:n,nodePropsRef:At(e,"nodeProps"),renderOptionRef:At(e,"renderOption"),menuPropsRef:At(e,"menuProps"),doSelect:h,doUpdateShow:g}),Qn(n,(t=>{e.animated||t||v()}));const b=Li((()=>{const{size:t,inverted:n}=e,{common:{cubicBezierEaseInOut:r},self:o}=f.value,{padding:i,dividerColor:a,borderRadius:s,optionOpacityDisabled:l,[_m("optionIconSuffixWidth",t)]:c,[_m("optionSuffixWidth",t)]:u,[_m("optionIconPrefixWidth",t)]:d,[_m("optionPrefixWidth",t)]:p,[_m("fontSize",t)]:h,[_m("optionHeight",t)]:g,[_m("optionIconSize",t)]:v}=o,m={"--n-bezier":r,"--n-font-size":h,"--n-padding":i,"--n-border-radius":s,"--n-option-height":g,"--n-option-prefix-width":p,"--n-option-icon-prefix-width":d,"--n-option-suffix-width":u,"--n-option-icon-suffix-width":c,"--n-option-icon-size":v,"--n-divider-color":a,"--n-option-opacity-disabled":l};return n?(m["--n-color"]=o.colorInverted,m["--n-option-color-hover"]=o.optionColorHoverInverted,m["--n-option-color-active"]=o.optionColorActiveInverted,m["--n-option-text-color"]=o.optionTextColorInverted,m["--n-option-text-color-hover"]=o.optionTextColorHoverInverted,m["--n-option-text-color-active"]=o.optionTextColorActiveInverted,m["--n-option-text-color-child-active"]=o.optionTextColorChildActiveInverted,m["--n-prefix-color"]=o.prefixColorInverted,m["--n-suffix-color"]=o.suffixColorInverted,m["--n-group-header-text-color"]=o.groupHeaderTextColorInverted):(m["--n-color"]=o.color,m["--n-option-color-hover"]=o.optionColorHover,m["--n-option-color-active"]=o.optionColorActive,m["--n-option-text-color"]=o.optionTextColor,m["--n-option-text-color-hover"]=o.optionTextColorHover,m["--n-option-text-color-active"]=o.optionTextColorActive,m["--n-option-text-color-child-active"]=o.optionTextColorChildActive,m["--n-prefix-color"]=o.prefixColor,m["--n-suffix-color"]=o.suffixColor,m["--n-group-header-text-color"]=o.groupHeaderTextColor),m})),_=p?IS("dropdown",Li((()=>`${e.size[0]}${e.inverted?"i":""}`)),b,e):void 0;return{mergedClsPrefix:d,mergedTheme:f,tmNodes:o,mergedShow:n,handleAfterLeave:()=>{e.animated&&v()},doUpdateShow:g,cssVars:p?void 0:b,themeClass:null==_?void 0:_.themeClass,onRender:null==_?void 0:_.onRender}},render(){const{mergedTheme:e}=this,t={show:this.mergedShow,theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:(e,t,n,r,o)=>{var i;const{mergedClsPrefix:a,menuProps:s}=this;null===(i=this.onRender)||void 0===i||i.call(this);const l=(null==s?void 0:s(void 0,this.tmNodes.map((e=>e.rawNode))))||{},c={ref:Wv(t),class:[e,`${a}-dropdown`,this.themeClass],clsPrefix:a,tmNodes:this.tmNodes,style:[n,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:r,onMouseleave:o};return Bi(vO,vi(this.$attrs,c,l))},onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return Bi(LC,Object.assign({},Rv(this.$props,bO),t),{trigger:()=>{var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}})}}),wO={name:"Drawer",common:dC,peers:{Scrollbar:pC},self:e=>{const{modalColor:t,textColor1:n,textColor2:r,boxShadow3:o,lineHeight:i,fontWeightStrong:a,dividerColor:s,closeColorHover:l,closeColorPressed:c,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:p,borderRadius:f,primaryColorHover:h}=e;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:n,titleFontSize:"18px",titleFontWeight:a,boxShadow:o,lineHeight:i,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:p,closeSize:"22px",closeIconSize:"18px",closeColorHover:l,closeColorPressed:c,closeBorderRadius:f,resizableTriggerColorHover:h}}},xO=fr({name:"NDrawerContent",inheritAttrs:!1,props:{blockScroll:Boolean,show:{type:Boolean,default:void 0},displayDirective:{type:String,required:!0},placement:{type:String,required:!0},contentStyle:[Object,String],nativeScrollbar:{type:Boolean,required:!0},scrollbarProps:Object,trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},showMask:{type:[Boolean,String],required:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,onClickoutside:Function,onAfterLeave:Function,onAfterEnter:Function,onEsc:Function},setup(e){const t=kt(!!e.show),n=kt(null),r=Yn("n-drawer");let o=0,i="",a=null;const s=kt(!1),l=kt(!1),c=Li((()=>"top"===e.placement||"bottom"===e.placement)),{mergedClsPrefixRef:u,mergedRtlRef:d}=$S(e),p=jS("Drawer",d,u),{doUpdateHeight:f,doUpdateWidth:h}=r,g=t=>{var r,i;if(l.value)if(c.value){let i=(null===(r=n.value)||void 0===r?void 0:r.offsetHeight)||0;const a=o-t.clientY;i+="bottom"===e.placement?a:-a,i=(t=>{const{maxHeight:n}=e;if(n&&t>n)return n;const{minHeight:r}=e;return r&&t<r?r:t})(i),f(i),o=t.clientY}else{let r=(null===(i=n.value)||void 0===i?void 0:i.offsetWidth)||0;const a=o-t.clientX;r+="right"===e.placement?a:-a,r=(t=>{const{maxWidth:n}=e;if(n&&t>n)return n;const{minWidth:r}=e;return r&&t<r?r:t})(r),h(r),o=t.clientX}},v=()=>{l.value&&(o=0,l.value=!1,document.body.style.cursor=i,document.body.removeEventListener("mousemove",g),document.body.removeEventListener("mouseup",v),document.body.removeEventListener("mouseleave",m))},m=v;Xn((()=>{e.show&&(t.value=!0)})),Qn((()=>e.show),(e=>{e||v()})),Or((()=>{v()}));const y=Li((()=>{const{show:t}=e,n=[[Da,t]];return e.showMask||n.push([dy,e.onClickoutside,void 0,{capture:!0}]),n}));return function(e){if("undefined"==typeof document)return;const t=document.documentElement;let n,r=!1;const o=()=>{t.style.marginRight=Eb,t.style.overflow=$b,t.style.overflowX=Tb,t.style.overflowY=Ib,jb.value="0px"};Sr((()=>{n=Qn(e,(e=>{if(e){if(!Pb){const e=window.innerWidth-t.offsetWidth;e>0&&(Eb=t.style.marginRight,t.style.marginRight=`${e}px`,jb.value=`${e}px`),$b=t.style.overflow,Tb=t.style.overflowX,Ib=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Pb++}else Pb--,Pb||o(),r=!1}),{immediate:!0})})),Or((()=>{null==n||n(),r&&(Pb--,Pb||o(),r=!1)}))}(Li((()=>e.blockScroll&&t.value))),Gn("n-drawer-body",n),Gn("n-popover-body",null),Gn("n-modal-body",null),{bodyRef:n,rtlEnabled:p,mergedClsPrefix:r.mergedClsPrefixRef,isMounted:r.isMountedRef,mergedTheme:r.mergedThemeRef,displayed:t,transitionName:Li((()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"}[e.placement]))),handleAfterLeave:function(){var n;t.value=!1,null===(n=e.onAfterLeave)||void 0===n||n.call(e)},bodyDirectives:y,handleMousedownResizeTrigger:e=>{l.value=!0,o=c.value?e.clientY:e.clientX,i=document.body.style.cursor,document.body.style.cursor=c.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",g),document.body.addEventListener("mouseleave",m),document.body.addEventListener("mouseup",v)},handleMouseenterResizeTrigger:()=>{null!==a&&(window.clearTimeout(a),a=null),l.value?s.value=!0:a=window.setTimeout((()=>{s.value=!0}),300)},handleMouseleaveResizeTrigger:()=>{null!==a&&(window.clearTimeout(a),a=null),s.value=!1},isDragging:l,isHoverOnResizeTrigger:s}},render(){const{$slots:e,mergedClsPrefix:t}=this;return"show"===this.displayDirective||this.displayed||this.show?Ar(Bi("div",{role:"none"},Bi(Ob,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>Bi(ia,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>Ar(Bi("div",vi(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${t}-drawer`,this.rtlEnabled&&`${t}-drawer--rtl`,`${t}-drawer--${this.placement}-placement`,this.isDragging&&`${t}-drawer--unselectable`,this.nativeScrollbar&&`${t}-drawer--native-scrollbar`]}),[this.resizable?Bi("div",{class:[`${t}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${t}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?Bi("div",{class:`${t}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},e):Bi(vC,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${t}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),e)]),this.bodyDirectives)})})),[[Da,"if"===this.displayDirective||this.displayed||this.show]]):null}}),{cubicBezierEaseIn:SO,cubicBezierEaseOut:kO}=SS;const{cubicBezierEaseIn:CO,cubicBezierEaseOut:OO}=SS;const{cubicBezierEaseIn:PO,cubicBezierEaseOut:EO}=SS;const{cubicBezierEaseIn:$O,cubicBezierEaseOut:TO}=SS;const IO=Sm([Cm("drawer","\n word-break: break-word;\n line-height: var(--n-line-height);\n position: absolute;\n pointer-events: all;\n box-shadow: var(--n-box-shadow);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n background-color: var(--n-color);\n color: var(--n-text-color);\n box-sizing: border-box;\n ",[function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-right"}={}){return[Sm(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${SO}`}),Sm(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${kO}`}),Sm(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),Sm(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),Sm(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),Sm(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-left"}={}){return[Sm(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${CO}`}),Sm(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${OO}`}),Sm(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),Sm(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),Sm(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),Sm(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-top"}={}){return[Sm(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${PO}`}),Sm(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${EO}`}),Sm(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),Sm(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),Sm(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),Sm(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}(),function({duration:e="0.3s",leaveDuration:t="0.2s",name:n="slide-in-from-bottom"}={}){return[Sm(`&.${n}-transition-leave-active`,{transition:`transform ${t} ${$O}`}),Sm(`&.${n}-transition-enter-active`,{transition:`transform ${e} ${TO}`}),Sm(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),Sm(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),Sm(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),Sm(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}(),Pm("unselectable","\n user-select: none; \n -webkit-user-select: none;\n "),Pm("native-scrollbar",[Cm("drawer-content-wrapper","\n overflow: auto;\n height: 100%;\n ")]),Om("resize-trigger","\n position: absolute;\n background-color: #0000;\n transition: background-color .3s var(--n-bezier);\n ",[Pm("hover","\n background-color: var(--n-resize-trigger-color-hover);\n ")]),Cm("drawer-content-wrapper","\n box-sizing: border-box;\n "),Cm("drawer-content","\n height: 100%;\n display: flex;\n flex-direction: column;\n ",[Pm("native-scrollbar",[Cm("drawer-body-content-wrapper","\n height: 100%;\n overflow: auto;\n ")]),Cm("drawer-body","\n flex: 1 0 0;\n overflow: hidden;\n "),Cm("drawer-body-content-wrapper","\n box-sizing: border-box;\n padding: var(--n-body-padding);\n "),Cm("drawer-header","\n font-weight: var(--n-title-font-weight);\n line-height: 1;\n font-size: var(--n-title-font-size);\n color: var(--n-title-text-color);\n padding: var(--n-header-padding);\n transition: border .3s var(--n-bezier);\n border-bottom: 1px solid var(--n-divider-color);\n border-bottom: var(--n-header-border-bottom);\n display: flex;\n justify-content: space-between;\n align-items: center;\n ",[Om("close","\n margin-left: 6px;\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n ")]),Cm("drawer-footer","\n display: flex;\n justify-content: flex-end;\n border-top: var(--n-footer-border-top);\n transition: border .3s var(--n-bezier);\n padding: var(--n-footer-padding);\n ")]),Pm("right-placement","\n top: 0;\n bottom: 0;\n right: 0;\n ",[Om("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n left: 0;\n transform: translateX(-1.5px);\n cursor: ew-resize;\n ")]),Pm("left-placement","\n top: 0;\n bottom: 0;\n left: 0;\n ",[Om("resize-trigger","\n width: 3px;\n height: 100%;\n top: 0;\n right: 0;\n transform: translateX(1.5px);\n cursor: ew-resize;\n ")]),Pm("top-placement","\n top: 0;\n left: 0;\n right: 0;\n ",[Om("resize-trigger","\n width: 100%;\n height: 3px;\n bottom: 0;\n left: 0;\n transform: translateY(1.5px);\n cursor: ns-resize;\n ")]),Pm("bottom-placement","\n left: 0;\n bottom: 0;\n right: 0;\n ",[Om("resize-trigger","\n width: 100%;\n height: 3px;\n top: 0;\n left: 0;\n transform: translateY(-1.5px);\n cursor: ns-resize;\n ")])]),Sm("body",[Sm(">",[Cm("drawer-container",{position:"fixed"})])]),Cm("drawer-container","\n position: relative;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n ",[Sm("> *",{pointerEvents:"all"})]),Cm("drawer-mask","\n background-color: rgba(0, 0, 0, .3);\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n ",[Pm("invisible","\n background-color: rgba(0, 0, 0, 0)\n "),hC({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]),jO=fr({name:"Drawer",inheritAttrs:!1,props:Object.assign(Object.assign({},ES.props),{show:Boolean,width:[Number,String],height:[Number,String],placement:{type:String,default:"right"},maskClosable:{type:Boolean,default:!0},showMask:{type:[Boolean,String],default:!0},to:[String,Object],displayDirective:{type:String,default:"if"},nativeScrollbar:{type:Boolean,default:!0},zIndex:Number,onMaskClick:Function,scrollbarProps:Object,contentStyle:[Object,String],trapFocus:{type:Boolean,default:!0},onEsc:Function,autoFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0},maxWidth:Number,maxHeight:Number,minWidth:Number,minHeight:Number,resizable:Boolean,defaultWidth:{type:[Number,String],default:251},defaultHeight:{type:[Number,String],default:251},onUpdateWidth:[Function,Array],onUpdateHeight:[Function,Array],"onUpdate:width":[Function,Array],"onUpdate:height":[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,drawerStyle:[String,Object],drawerClass:String,target:null,onShow:Function,onHide:Function}),setup(e){Xn((()=>{void 0!==e.drawerStyle&&zv("drawer","`drawer-style` is deprecated, please use `style` instead."),void 0!==e.drawerClass&&zv("drawer","`drawer-class` is deprecated, please use `class` instead."),void 0!==e.target&&zv("drawer","`target` is deprecated, please use `to` instead."),void 0!==e.onShow&&zv("drawer","`on-show` is deprecated, please use `on-update:show` instead."),void 0!==e.onHide&&zv("drawer","`on-hide` is deprecated, please use `on-update:show` instead.")}));const{mergedClsPrefixRef:t,namespaceRef:n,inlineThemeDisabled:r}=$S(e),o=qm(),i=ES("Drawer","-drawer",IO,wO,e,t),a=kt(e.defaultWidth),s=kt(e.defaultHeight),l=Vm(At(e,"width"),a),c=Vm(At(e,"height"),s),u=Li((()=>{const{placement:t}=e;return"top"===t||"bottom"===t?"":Zv(l.value)})),d=Li((()=>{const{placement:t}=e;return"left"===t||"right"===t?"":Zv(c.value)})),p=Li((()=>[{width:u.value,height:d.value},e.drawerStyle||""]));const f=(Im&&(xr((()=>{Rb||(window.addEventListener("compositionstart",Nb),window.addEventListener("compositionend",Db)),Rb++})),Or((()=>{Rb<=1?(window.removeEventListener("compositionstart",Nb),window.removeEventListener("compositionend",Db),Rb=0):Rb--}))),Ab);function h(t){const{onHide:n,onUpdateShow:r,"onUpdate:show":o}=e;r&&Mv(r,t),o&&Mv(o,t),n&&!t&&Mv(n,t)}Gn("n-drawer",{isMountedRef:o,mergedThemeRef:i,mergedClsPrefixRef:t,doUpdateShow:h,doUpdateHeight:t=>{const{onUpdateHeight:n,"onUpdate:width":r}=e;n&&Mv(n,t),r&&Mv(r,t),s.value=t},doUpdateWidth:t=>{const{onUpdateWidth:n,"onUpdate:width":r}=e;n&&Mv(n,t),r&&Mv(r,t),a.value=t}});const g=Li((()=>{const{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{color:r,textColor:o,boxShadow:a,lineHeight:s,headerPadding:l,footerPadding:c,bodyPadding:u,titleFontSize:d,titleTextColor:p,titleFontWeight:f,headerBorderBottom:h,footerBorderTop:g,closeIconColor:v,closeIconColorHover:m,closeIconColorPressed:y,closeColorHover:b,closeColorPressed:_,closeIconSize:w,closeSize:x,closeBorderRadius:S,resizableTriggerColorHover:k}}=i.value;return{"--n-line-height":s,"--n-color":r,"--n-text-color":o,"--n-box-shadow":a,"--n-bezier":e,"--n-bezier-out":n,"--n-bezier-in":t,"--n-header-padding":l,"--n-body-padding":u,"--n-footer-padding":c,"--n-title-text-color":p,"--n-title-font-size":d,"--n-title-font-weight":f,"--n-header-border-bottom":h,"--n-footer-border-top":g,"--n-close-icon-color":v,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":y,"--n-close-size":x,"--n-close-color-hover":b,"--n-close-color-pressed":_,"--n-close-icon-size":w,"--n-close-border-radius":S,"--n-resize-trigger-color-hover":k}})),v=r?IS("drawer",void 0,g,e):void 0;return{mergedClsPrefix:t,namespace:n,mergedBodyStyle:p,handleMaskClick:function(t){const{onMaskClick:n,maskClosable:r}=e;r&&h(!1),n&&n(t)},handleEsc:function(t){var n,r;null===(n=e.onEsc)||void 0===n||n.call(e),e.show&&e.closeOnEsc&&(r=t,!jm.has(r))&&!f.value&&h(!1)},mergedTheme:i,cssVars:r?void 0:g,themeClass:null==v?void 0:v.themeClass,onRender:null==v?void 0:v.onRender,isMounted:o}},render(){const{mergedClsPrefix:e}=this;return Bi(wy,{to:this.to,show:this.show},{default:()=>{var t;return null===(t=this.onRender)||void 0===t||t.call(this),Ar(Bi("div",{class:[`${e}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?Bi(ia,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?Bi("div",{"aria-hidden":!0,class:[`${e}-drawer-mask`,"transparent"===this.showMask&&`${e}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,Bi(xO,Object.assign({},this.$attrs,{class:[this.drawerClass,this.$attrs.class],style:[this.mergedBodyStyle,this.$attrs.style],blockScroll:this.blockScroll,contentStyle:this.contentStyle,placement:this.placement,scrollbarProps:this.scrollbarProps,show:this.show,displayDirective:this.displayDirective,nativeScrollbar:this.nativeScrollbar,onAfterEnter:this.onAfterEnter,onAfterLeave:this.onAfterLeave,trapFocus:this.trapFocus,autoFocus:this.autoFocus,resizable:this.resizable,maxHeight:this.maxHeight,minHeight:this.minHeight,maxWidth:this.maxWidth,minWidth:this.minWidth,showMask:this.showMask,onEsc:this.handleEsc,onClickoutside:this.handleMaskClick}),this.$slots)),[[hy,{zIndex:this.zIndex,enabled:this.show}]])}})}}),AO=fr({name:"DrawerContent",props:{title:{type:String},headerStyle:[Object,String],footerStyle:[Object,String],bodyStyle:[Object,String],bodyContentStyle:[Object,String],nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,closable:Boolean},setup(){const e=Yn("n-drawer",null);e||Uv("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:t}=e;return{handleCloseClick:function(){t(!1)},mergedTheme:e.mergedThemeRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{title:e,mergedClsPrefix:t,nativeScrollbar:n,mergedTheme:r,bodyStyle:o,bodyContentStyle:i,headerStyle:a,footerStyle:s,scrollbarProps:l,closable:c,$slots:u}=this;return Bi("div",{role:"none",class:[`${t}-drawer-content`,n&&`${t}-drawer-content--native-scrollbar`]},u.header||e||c?Bi("div",{class:`${t}-drawer-header`,style:a,role:"none"},Bi("div",{class:`${t}-drawer-header__main`,role:"heading","aria-level":"1"},void 0!==u.header?u.header():e),c&&Bi(qS,{onClick:this.handleCloseClick,clsPrefix:t,class:`${t}-drawer-header__close`,absolute:!0})):null,n?Bi("div",{class:`${t}-drawer-body`,style:o,role:"none"},Bi("div",{class:`${t}-drawer-body-content-wrapper`,style:i,role:"none"},u)):Bi(vC,Object.assign({themeOverrides:r.peerOverrides.Scrollbar,theme:r.peers.Scrollbar},l,{class:`${t}-drawer-body`,contentClass:`${t}-drawer-body-content-wrapper`,contentStyle:i}),u),u.footer?Bi("div",{class:`${t}-drawer-footer`,style:s,role:"none"},u.footer()):null)}}),NO={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},DO={name:"Space",self:()=>NO};let RO;const LO=()=>{if(!Im)return!0;if(void 0===RO){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=1===e.scrollHeight;return document.body.removeChild(e),RO=t}return RO},MO=fr({name:"Space",props:Object.assign(Object.assign({},ES.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=$S(e),r=ES("Space","-space",void 0,DO,e,t),o=jS("Space",n,t);return{useGap:LO(),rtlEnabled:o,mergedClsPrefix:t,margin:Li((()=>{const{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if("number"==typeof t)return{horizontal:t,vertical:t};const{self:{[_m("gap",t)]:n}}=r.value,{row:o,col:i}=function(e,t){const[n,r]=e.split(" ");return t?"row"===t?n:r:{row:n,col:r||n}}(n);return{horizontal:hv(i),vertical:hv(o)}}))}},render(){const{vertical:e,align:t,inline:n,justify:r,itemStyle:o,margin:i,wrap:a,mergedClsPrefix:s,rtlEnabled:l,useGap:c,wrapItem:u,internalUseGap:d}=this,p=Lv(function(e,t="default",n=[]){const r=e.$slots[t];return void 0===r?n:r()}(this));if(!p.length)return null;const f=`${i.horizontal}px`,h=i.horizontal/2+"px",g=`${i.vertical}px`,v=i.vertical/2+"px",m=p.length-1,y=r.startsWith("space-");return Bi("div",{role:"none",class:[`${s}-space`,l&&`${s}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:e?"column":"row",justifyContent:["start","end"].includes(r)?"flex-"+r:r,flexWrap:!a||e?"nowrap":"wrap",marginTop:c||e?"":`-${v}`,marginBottom:c||e?"":`-${v}`,alignItems:t,gap:c?`${i.vertical}px ${i.horizontal}px`:""}},u||!c&&!d?p.map(((t,n)=>Bi("div",{role:"none",style:[o,{maxWidth:"100%"},c?"":e?{marginBottom:n!==m?g:""}:l?{marginLeft:y?"space-between"===r&&n===m?"":h:n!==m?f:"",marginRight:y?"space-between"===r&&0===n?"":h:"",paddingTop:v,paddingBottom:v}:{marginRight:y?"space-between"===r&&n===m?"":h:n!==m?f:"",marginLeft:y?"space-between"===r&&0===n?"":h:"",paddingTop:v,paddingBottom:v}]},t))):p)}}),BO={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"},FO={name:"Message",common:dC,self:e=>{const{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,infoColor:i,successColor:a,errorColor:s,warningColor:l,popoverColor:c,boxShadow2:u,primaryColor:d,lineHeight:p,borderRadius:f,closeColorHover:h,closeColorPressed:g}=e;return Object.assign(Object.assign({},BO),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:c,colorInfo:c,colorSuccess:c,colorError:c,colorWarning:c,colorLoading:c,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:l,iconColorError:s,iconColorLoading:d,closeColorHover:h,closeColorPressed:g,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:o,closeColorHoverInfo:h,closeColorPressedInfo:g,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:o,closeColorHoverSuccess:h,closeColorPressedSuccess:g,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:o,closeColorHoverError:h,closeColorPressedError:g,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:o,closeColorHoverWarning:h,closeColorPressedWarning:g,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:o,closeColorHoverLoading:h,closeColorPressedLoading:g,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:o,loadingColor:d,lineHeight:p,borderRadius:f})}},zO={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"},UO={name:"Typography",common:dC,self:e=>{const{primaryColor:t,textColor2:n,borderColor:r,lineHeight:o,fontSize:i,borderRadiusSmall:a,dividerColor:s,fontWeightStrong:l,textColor1:c,textColor3:u,infoColor:d,warningColor:p,errorColor:f,successColor:h,codeColor:g}=e;return Object.assign(Object.assign({},zO),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:o,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:n,liLineHeight:o,liFontSize:i,hrColor:s,headerFontWeight:l,headerTextColor:c,pTextColor:n,pTextColor1Depth:c,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:o,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:f,headerBarColorWarning:p,headerBarColorSuccess:h,textColor:n,textColor1Depth:c,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:h,textColorWarning:p,textColorError:f,codeTextColor:n,codeColor:g,codeBorder:"1px solid #0000"})}},HO={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},WO=Sm([Cm("message-wrapper","\n margin: var(--n-margin);\n z-index: 0;\n transform-origin: top center;\n display: flex;\n ",[UC({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),Cm("message","\n box-sizing: border-box;\n display: flex;\n align-items: center;\n transition:\n color .3s var(--n-bezier),\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n opacity .3s var(--n-bezier),\n transform .3s var(--n-bezier),\n margin-bottom .3s var(--n-bezier);\n padding: var(--n-padding);\n border-radius: var(--n-border-radius);\n flex-wrap: nowrap;\n overflow: hidden;\n max-width: var(--n-max-width);\n color: var(--n-text-color);\n background-color: var(--n-color);\n box-shadow: var(--n-box-shadow);\n ",[Om("content","\n display: inline-block;\n line-height: var(--n-line-height);\n font-size: var(--n-font-size);\n "),Om("icon","\n position: relative;\n margin: var(--n-icon-margin);\n height: var(--n-icon-size);\n width: var(--n-icon-size);\n font-size: var(--n-icon-size);\n flex-shrink: 0;\n ",[["default","info","success","warning","error","loading"].map((e=>Pm(`${e}-type`,[Sm("> *",`\n color: var(--n-icon-color-${e});\n transition: color .3s var(--n-bezier);\n `)]))),Sm("> *","\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n ",[JS()])]),Om("close","\n margin: var(--n-close-margin);\n transition:\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n flex-shrink: 0;\n ",[Sm("&:hover","\n color: var(--n-close-icon-color-hover);\n "),Sm("&:active","\n color: var(--n-close-icon-color-pressed);\n ")])]),Cm("message-container","\n z-index: 6000;\n position: fixed;\n height: 0;\n overflow: visible;\n display: flex;\n flex-direction: column;\n align-items: center;\n ",[Pm("top","\n top: 12px;\n left: 0;\n right: 0;\n "),Pm("top-left","\n top: 12px;\n left: 12px;\n right: 0;\n align-items: flex-start;\n "),Pm("top-right","\n top: 12px;\n left: 0;\n right: 12px;\n align-items: flex-end;\n "),Pm("bottom","\n bottom: 4px;\n left: 0;\n right: 0;\n justify-content: flex-end;\n "),Pm("bottom-left","\n bottom: 4px;\n left: 12px;\n right: 0;\n justify-content: flex-end;\n align-items: flex-start;\n "),Pm("bottom-right","\n bottom: 4px;\n left: 0;\n right: 12px;\n justify-content: flex-end;\n align-items: flex-end;\n ")])]),VO={info:()=>Bi(MS,null),success:()=>Bi(BS,null),warning:()=>Bi(FS,null),error:()=>Bi(LS,null),default:()=>null},qO=fr({name:"Message",props:Object.assign(Object.assign({},HO),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:n}=$S(e),{props:r,mergedClsPrefixRef:o}=Yn("n-message-provider"),i=jS("Message",n,o),a=ES("Message","-message",WO,FO,r,o),s=Li((()=>{const{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:o,maxWidth:i,iconMargin:s,closeMargin:l,closeSize:c,iconSize:u,fontSize:d,lineHeight:p,borderRadius:f,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:v,iconColorError:m,iconColorLoading:y,closeIconSize:b,closeBorderRadius:_,[_m("textColor",t)]:w,[_m("boxShadow",t)]:x,[_m("color",t)]:S,[_m("closeColorHover",t)]:k,[_m("closeColorPressed",t)]:C,[_m("closeIconColor",t)]:O,[_m("closeIconColorPressed",t)]:P,[_m("closeIconColorHover",t)]:E}}=a.value;return{"--n-bezier":n,"--n-margin":o,"--n-padding":r,"--n-max-width":i,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":_,"--n-close-size":c,"--n-close-margin":l,"--n-text-color":w,"--n-color":S,"--n-box-shadow":x,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":v,"--n-icon-color-error":m,"--n-icon-color-loading":y,"--n-close-color-hover":k,"--n-close-color-pressed":C,"--n-close-icon-color":O,"--n-close-icon-color-pressed":P,"--n-close-icon-color-hover":E,"--n-line-height":p,"--n-border-radius":f}})),l=t?IS("message",Li((()=>e.type[0])),s,{}):void 0;return{mergedClsPrefix:o,rtlEnabled:i,messageProviderProps:r,handleClose(){var t;null===(t=e.onClose)||void 0===t||t.call(e)},cssVars:t?void 0:s,themeClass:null==l?void 0:l.themeClass,onRender:null==l?void 0:l.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:n,content:r,mergedClsPrefix:o,cssVars:i,themeClass:a,onRender:s,icon:l,handleClose:c,showIcon:u}=this;let d;return null==s||s(),Bi("div",{class:[`${o}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):Bi("div",{class:[`${o}-message ${o}-message--${t}-type`,this.rtlEnabled&&`${o}-message--rtl`]},(d=function(e,t,n){if("function"==typeof e)return e();{const e="loading"===t?Bi(XS,{clsPrefix:n,strokeWidth:24,scale:.85}):VO[t]();return e?Bi(WS,{clsPrefix:n,key:t},{default:()=>e}):null}}(l,t,o))&&u?Bi("div",{class:`${o}-message__icon ${o}-message__icon--${t}-type`},Bi(zS,null,{default:()=>d})):null,Bi("div",{class:`${o}-message__content`},Bv(r)),n?Bi(qS,{clsPrefix:o,class:`${o}-message__close`,onClick:c,absolute:!0}):null))}});const KO=fr({name:"MessageEnvironment",props:Object.assign(Object.assign({},HO),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const n=kt(!0);function r(){const{duration:n}=e;n&&(t=window.setTimeout(o,n))}function o(){const{onHide:r}=e;n.value=!1,t&&(window.clearTimeout(t),t=null),r&&r()}return Sr((()=>{r()})),{show:n,hide:o,handleClose:function(){const{onClose:t}=e;t&&t(),o()},handleAfterLeave:function(){const{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:o}=e;t&&t(),n&&n(o),r&&r()},handleMouseleave:function(e){e.currentTarget===e.target&&r()},handleMouseenter:function(e){e.currentTarget===e.target&&null!==t&&(window.clearTimeout(t),t=null)},deactivate:function(){o()}}},render(){return Bi(US,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?Bi(qO,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),JO=fr({name:"MessageProvider",props:Object.assign(Object.assign({},ES.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]}),setup(e){const{mergedClsPrefixRef:t}=$S(e),n=kt([]),r=kt({}),o={create:(e,t)=>i(e,Object.assign({type:"default"},t)),info:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"info"})),success:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"success"})),warning:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"warning"})),error:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"error"})),loading:(e,t)=>i(e,Object.assign(Object.assign({},t),{type:"loading"})),destroyAll:function(){Object.values(r.value).forEach((e=>{e.hide()}))}};function i(t,o){const i=Dv(),a=ct(Object.assign(Object.assign({},o),{content:t,key:i,destroy:()=>{var e;null===(e=r.value[i])||void 0===e||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(a),a}return Gn("n-message-provider",{props:e,mergedClsPrefixRef:t}),Gn("n-message-api",o),Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:function(e){n.value.splice(n.value.findIndex((t=>t.key===e)),1),delete r.value[e]}},o)},render(){var e,t,n;return Bi(Ho,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),this.messageList.length?Bi(Uo,{to:null!==(n=this.to)&&void 0!==n?n:"body"},Bi("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map((e=>Bi(KO,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},function(e,t=[],n){const r={};return Object.getOwnPropertyNames(e).forEach((n=>{t.includes(n)||(r[n]=e[n])})),Object.assign(r,n)}(e,["destroy"],void 0),{duration:void 0===e.duration?this.duration:e.duration,keepAliveOnHover:void 0===e.keepAliveOnHover?this.keepAliveOnHover:e.keepAliveOnHover,closable:void 0===e.closable?this.closable:e.closable})))))):null)}});function GO(){const e=Yn("n-message-api",null);return null===e&&Uv("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const YO={name:"Skeleton",common:dC,self:e=>{const{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:o}=e;return{color:"#eee",colorEnd:"#ddd",borderRadius:o,heightSmall:t,heightMedium:n,heightLarge:r}}},XO=Sm([Cm("skeleton","\n height: 1em;\n width: 100%;\n transition: background-color .3s var(--n-bezier);\n transition:\n --n-color-start .3s var(--n-bezier),\n --n-color-end .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n animation: 2s skeleton-loading infinite cubic-bezier(0.36, 0, 0.64, 1);\n background-color: var(--n-color-start);\n "),Sm("@keyframes skeleton-loading","\n 0% {\n background: var(--n-color-start);\n }\n 40% {\n background: var(--n-color-end);\n }\n 80% {\n background: var(--n-color-start);\n }\n 100% {\n background: var(--n-color-start);\n }\n ")]),ZO=fr({name:"Skeleton",inheritAttrs:!1,props:Object.assign(Object.assign({},ES.props),{text:Boolean,round:Boolean,circle:Boolean,height:[String,Number],width:[String,Number],size:String,repeat:{type:Number,default:1},animated:{type:Boolean,default:!0},sharp:{type:Boolean,default:!0}}),setup(e){!function(){if(Im&&window.CSS&&!Xm&&(Xm=!0,"registerProperty"in(null===window||void 0===window?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch(e){}}();const{mergedClsPrefixRef:t}=$S(e),n=ES("Skeleton","-skeleton",XO,YO,e,t);return{mergedClsPrefix:t,style:Li((()=>{var t,r;const o=n.value,{common:{cubicBezierEaseInOut:i}}=o,a=o.self,{color:s,colorEnd:l,borderRadius:c}=a;let u;const{circle:d,sharp:p,round:f,width:h,height:g,size:v,text:m,animated:y}=e;void 0!==v&&(u=a[_m("height",v)]);const b=d?null!==(t=null!=h?h:g)&&void 0!==t?t:u:h,_=null!==(r=d&&null!=h?h:g)&&void 0!==r?r:u;return{display:m?"inline-block":"",verticalAlign:m?"-0.125em":"",borderRadius:d?"50%":f?"4096px":p?"":c,width:"number"==typeof b?gv(b):b,height:"number"==typeof _?gv(_):_,animation:y?"":"none","--n-bezier":i,"--n-color-start":s,"--n-color-end":l}}))}},render(){const{repeat:e,style:t,mergedClsPrefix:n,$attrs:r}=this,o=Bi("div",vi({class:`${n}-skeleton`,style:t},r));return e>1?Bi(Ho,null,Array.apply(null,{length:e}).map((e=>[o,"\n"]))):o}}),QO=Cm("text","\n transition: color .3s var(--n-bezier);\n color: var(--n-text-color);\n",[Pm("strong","\n font-weight: var(--n-font-weight-strong);\n "),Pm("italic",{fontStyle:"italic"}),Pm("underline",{textDecoration:"underline"}),Pm("code","\n line-height: 1.4;\n display: inline-block;\n font-family: var(--n-font-famliy-mono);\n transition: \n color .3s var(--n-bezier),\n border-color .3s var(--n-bezier),\n background-color .3s var(--n-bezier);\n box-sizing: border-box;\n padding: .05em .35em 0 .35em;\n border-radius: var(--n-code-border-radius);\n font-size: .9em;\n color: var(--n-code-text-color);\n background-color: var(--n-code-color);\n border: var(--n-code-border);\n ")]),eP=fr({name:"Text",props:Object.assign(Object.assign({},ES.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=$S(e),r=ES("Typography","-text",QO,UO,e,t),o=Li((()=>{const{depth:t,type:n}=e,o="default"===n?void 0===t?"textColor":`textColor${t}Depth`:_m("textColor",n),{common:{fontWeightStrong:i,fontFamilyMono:a,cubicBezierEaseInOut:s},self:{codeTextColor:l,codeBorderRadius:c,codeColor:u,codeBorder:d,[o]:p}}=r.value;return{"--n-bezier":s,"--n-text-color":p,"--n-font-weight-strong":i,"--n-font-famliy-mono":a,"--n-code-border-radius":c,"--n-code-text-color":l,"--n-code-color":u,"--n-code-border":d}})),i=n?IS("text",Li((()=>`${e.type[0]}${e.depth||""}`)),o,e):void 0;return{mergedClsPrefix:t,compitableTag:Km(e,["as","tag"]),cssVars:n?void 0:o,themeClass:null==i?void 0:i.themeClass,onRender:null==i?void 0:i.onRender}},render(){var e,t,n;const{mergedClsPrefix:r}=this;null===(e=this.onRender)||void 0===e||e.call(this);const o=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=null===(n=(t=this.$slots).default)||void 0===n?void 0:n.call(t);return this.code?Bi("code",{class:o,style:this.cssVars},this.delete?Bi("del",null,i):i):this.delete?Bi("del",{class:o,style:this.cssVars},i):Bi(this.compitableTag||"span",{class:o,style:this.cssVars},i)}});var tP={exports:{}};const nP=tP.exports=function(){function e(e){if(!e)return!1;var t=Object.prototype.toString.call(e);return"[object Function]"==t||"[object AsyncFunction]"==t}function t(){return Date.now&&e(Date.now)?Date.now():(new Date).getTime()}function n(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)}function r(){if("function"==typeof Uint32Array){var e="";if("undefined"!=typeof crypto?e=crypto:"undefined"!=typeof msCrypto&&(e=msCrypto),n(e)&&e.getRandomValues){var t=new Uint32Array(1);return e.getRandomValues(t)[0]/Math.pow(2,32)}}return On(1e19)/1e19}function i(e){var t=null;try{t=JSON.parse(e)}catch(n){}return t}function a(e,t){this.lockGetPrefix=e||"lock-get-prefix",this.lockSetPrefix=t||"lock-set-prefix"}function s(e){return"function"==typeof e||!(!e||"object"!=typeof e)&&s(e.listener)}function l(){this._events={}}function c(e){var t=e;try{t=decodeURIComponent(e)}catch(n){t=e}return t}function u(e){for(var t={},n=(e=e||"").substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].indexOf("=");if(-1!==o){var i=n[r].substring(0,o),a=n[r].substring(o+1);i=c(i),a=c(a),t[i]=a}}return t}function d(e){return"[object String]"==Object.prototype.toString.call(e)}function p(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function f(e){var t=function(e){this._fields={Username:4,Password:5,Port:7,Protocol:2,Host:6,Path:8,URL:0,QueryString:9,Fragment:10},this._values={},this._regex=/^((\w+):\/\/)?((\w+):?(\w+)?@)?([^\/\?:]+):?(\d+)?(\/?[^\?#]+)?\??([^#]+)?#?(\w*)/,void 0!==e&&this._parse(e)};return t.prototype.setUrl=function(e){this._parse(e)},t.prototype._initValues=function(){for(var e in this._fields)this._values[e]=""},t.prototype.addQueryString=function(e){if("object"!=typeof e)return!1;var t=this._values.QueryString||"";for(var n in e)t=new RegExp(n+"[^&]+").test(t)?t.replace(new RegExp(n+"[^&]+"),n+"="+e[n]):"&"===t.slice(-1)?t+n+"="+e[n]:""===t?n+"="+e[n]:t+"&"+n+"="+e[n];this._values.QueryString=t},t.prototype.getUrl=function(){var e="";return e+=this._values.Origin,e+=this._values.Port?":"+this._values.Port:"",e+=this._values.Path,(e+=this._values.QueryString?"?"+this._values.QueryString:"")+(this._values.Fragment?"#"+this._values.Fragment:"")},t.prototype._parse=function(e){this._initValues();var t=this._regex.exec(e);t||kn.log("URLParser::_parse -> Invalid URL");var n=e.split("#"),r=n[0],o=n.slice(1).join("#");for(var i in t=this._regex.exec(r),this._fields)void 0!==t[this._fields[i]]&&(this._values[i]=t[this._fields[i]]);this._values.Hostname=this._values.Host.replace(/:\d+$/,""),this._values.Origin=this._values.Protocol+"://"+this._values.Hostname,this._values.Fragment=o},new t(e)}function h(e){var t,n={},r=function(){try{return"http://modernizr.com/"===new URL("http://modernizr.com/").href}catch(e){return!1}};if("function"==typeof window.URL&&r())(n=new URL(e)).searchParams||(n.searchParams=(t=u(n.search),{get:function(e){return t[e]}}));else{if(d(e)||(e=String(e)),e=p(e),!1===/^https?:\/\/.+/.test(e))return void kn.log("Invalid URL");var o=f(e);n.hash=o._values.Fragment,n.host=o._values.Host?o._values.Host+(o._values.Port?":"+o._values.Port:""):"",n.href=o._values.URL,n.password=o._values.Password,n.pathname=o._values.Path,n.port=o._values.Port,n.search=o._values.QueryString?"?"+o._values.QueryString:"",n.username=o._values.Username,n.hostname=o._values.Hostname,n.protocol=o._values.Protocol?o._values.Protocol+":":"",n.origin=o._values.Origin?o._values.Origin+(o._values.Port?":"+o._values.Port:""):"",n.searchParams=function(){var e=u("?"+o._values.QueryString);return{get:function(t){return e[t]}}}()}return n}function g(e){return!(!e||1!==e.nodeType)}function v(e){return void 0===e}function y(t){return Array.isArray&&e(y)?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function b(e){return new En(e)}function _(e,t,n,r){function o(e){return e&&(e.preventDefault=o.preventDefault,e.stopPropagation=o.stopPropagation,e._getPath=o._getPath),e}function i(e,t,n,r){return function(i){if(i=i||o(window.event)){i.target=i.srcElement;var a,s,l=!0;return"function"==typeof n&&(a=n(i)),s=t.call(e,i),"beforeunload"!==r?(!1!==a&&!1!==s||(l=!1),l):void 0}}}o._getPath=function(){var e=this;return this.path||this.composedPath&&this.composedPath()||b(e.target).getParents()},o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0},function(e,t,n){if(void 0===r&&"click"===t&&(r=!0),e&&e.addEventListener)e.addEventListener(t,(function(e){e._getPath=o._getPath,n.call(this,e)}),r);else{var a="on"+t,s=e[a];e[a]=i(e,n,s,t)}}.apply(null,arguments)}function w(e){var t="pushState"in window.history?"popstate":"hashchange";_(window,t,e)}function x(e){if(e)return void 0!==window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest?new XMLHttpRequest:"undefined"!=typeof XDomainRequest?new XDomainRequest:null;if(void 0!==window.XMLHttpRequest)return new XMLHttpRequest;if(window.ActiveXObject)try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(wn){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){kn.log(t)}}}function S(e,t,n){if(null==e)return!1;if(Tn&&e.forEach===Tn)e.forEach(t,n);else if(y(e))for(var r=0,o=e.length;r<o;r++)r in e&&t.call(n,e[r],r,e);else for(var i in e)In.call(e,i)&&t.call(n,e[i],i,e)}function k(e){return S(Array.prototype.slice.call(arguments,1),(function(t){for(var n in t)jn.call(t,n)&&void 0!==t[n]&&(e[n]=t[n])})),e}function C(e){function t(e){if(!e)return"";try{return JSON.parse(e)}catch(t){return{}}}function r(){try{o&&"object"==typeof o&&o.abort&&o.abort()}catch(t){kn.log(t)}i&&(clearTimeout(i),i=null,e.error&&e.error(),o.onreadystatechange=null,o.onload=null,o.onerror=null)}e.timeout=e.timeout||2e4,e.credentials=void 0===e.credentials||e.credentials;var o=x(e.cors);if(!o)return!1;e.type||(e.type=e.data?"POST":"GET");var i,a=(e=k({success:function(){},error:function(){}},e)).success,s=e.error;e.success=function(e){a(e),i&&(clearTimeout(i),i=null)},e.error=function(e){s(e),i&&(clearTimeout(i),i=null)},i=setTimeout((function(){r()}),e.timeout),"undefined"!=typeof XDomainRequest&&o instanceof XDomainRequest&&(o.onload=function(){e.success&&e.success(t(o.responseText)),o.onreadystatechange=null,o.onload=null,o.onerror=null},o.onerror=function(){e.error&&e.error(t(o.responseText),o.status),o.onreadystatechange=null,o.onerror=null,o.onload=null}),o.onreadystatechange=function(){try{4==o.readyState&&(o.status>=200&&o.status<300||304==o.status?e.success(t(o.responseText)):e.error(t(o.responseText),o.status),o.onreadystatechange=null,o.onload=null)}catch(n){o.onreadystatechange=null,o.onload=null}},o.open(e.type,e.url,!0);try{e.credentials&&(o.withCredentials=!0),n(e.header)&&S(e.header,(function(e,t){o.setRequestHeader&&o.setRequestHeader(t,e)})),e.data&&(e.cors||o.setRequestHeader&&o.setRequestHeader("X-Requested-With","XMLHttpRequest"),"application/json"===e.contentType?o.setRequestHeader&&o.setRequestHeader("Content-type","application/json; charset=UTF-8"):o.setRequestHeader&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"))}catch(l){kn.log(l)}o.send(e.data||null)}function O(e,t){var n=[];return null==e?n:Array.prototype.map&&e.map===Array.prototype.map?e.map(t):(S(e,(function(e,r,o){n.push(t(e,r,o))})),n)}function P(e){var t=[];try{t=O(atob(e).split(""),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}))}catch(n){t=[]}try{return decodeURIComponent(t.join(""))}catch(n){return t.join("")}}function E(e){var t="";try{t=btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode("0x"+t)})))}catch(n){t=e}return t}function $(e,t){t=t||window;var n=!1,r=!0,o=t.document,i=o.documentElement,a=o.addEventListener,s=a?"addEventListener":"attachEvent",l=a?"removeEventListener":"detachEvent",c=a?"":"on",u=function(r){"readystatechange"==r.type&&"complete"!=o.readyState||(("load"==r.type?t:o)[l](c+r.type,u,!1),!n&&(n=!0)&&e.call(t,r.type||r))},d=function(){try{i.doScroll("left")}catch(e){return void setTimeout(d,50)}u("poll")};if("complete"==o.readyState)e.call(t,"lazy");else{if(!a&&i.doScroll){try{r=!t.frameElement}catch(p){kn.log(p)}r&&d()}o[s](c+"DOMContentLoaded",u,!1),o[s](c+"readystatechange",u,!1),t[s](c+"load",u,!1)}}function T(e){return S(Array.prototype.slice.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&void 0===e[n]&&(e[n]=t[n])})),e}function I(e){var t=e;try{t=decodeURI(e)}catch(n){t=e}return t}function j(e){var t="t6KJCZa5pDdQ9khoEM3Tj70fbP2eLSyc4BrsYugARqFIw1mzlGNVXOHiWvxUn8",n=t.length-1,r={},o=0;for(o=0;o<t.length;o++)r[t.charAt(o)]=t.charAt(n-o);var i="";for(o=0;o<e.length;o++)i+=e.charAt(o)in r?r[e.charAt(o)]:e.charAt(o);return i}function A(e){return"[object Date]"==Object.prototype.toString.call(e)}function N(e){function t(e){return e<10?"0"+e:e}return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+"."+t(e.getMilliseconds())}function D(e){return S(e,(function(t,r){A(t)?e[r]=N(t):n(t)&&(e[r]=D(t))})),e}function R(e){return S(Array.prototype.slice.call(arguments,1),(function(t){for(var r in t)void 0!==t[r]&&(n(t[r])&&n(e[r])?k(e[r],t[r]):e[r]=t[r])})),e}function L(e,t,n){var r=Object.prototype.hasOwnProperty;if(e.filter)return e.filter(t);for(var o=[],i=0;i<e.length;i++)if(r.call(e,i)){var a=e[i];t.call(n,a,i,e)&&o.push(a)}return o}function M(e){try{return JSON.stringify(e,null,"  ")}catch(wn){return JSON.stringify(e)}}function B(e){return"string"==typeof e&&e.match(/^[a-zA-Z0-9\u4e00-\u9fa5\-\.]+$/)?e:""}function F(e,t){t=t||"domain_test";var n=B(e=e||location.hostname),r=n.split(".");if(y(r)&&r.length>=2&&!/^(\d+\.)+\d+$/.test(n))for(var o="."+r.splice(r.length-1,1);r.length>0;)if(o="."+r.splice(r.length-1,1)+o,document.cookie=t+"=true; path=/; domain="+o,-1!==document.cookie.indexOf(t+"=true")){var i=new Date;return i.setTime(i.getTime()-1e3),document.cookie=t+"=true; expires="+i.toGMTString()+"; path=/; SameSite=Lax; domain="+o,o}return""}function z(e){function t(e,t){var n;if("body"===(e=p(e)))return document.getElementsByTagName("body")[0];if(0===e.indexOf("#"))e=e.slice(1),n=document.getElementById(e);else if(e.indexOf(":nth-of-type")>-1){var r=e.split(":nth-of-type");if(!r[0]||!r[1])return null;var o=r[0],i=r[1].match(/\(([0-9]+)\)/);if(!i||!i[1])return null;var a=Number(i[1]);if(!(g(t)&&t.children&&t.children.length>0))return null;for(var s=t.children,l=0;l<s.length;l++)if(g(s[l])&&s[l].tagName.toLowerCase()===o&&0==--a){n=s[l];break}if(a>0)return null}return n||null}function n(e){var o,i=r.shift();if(!i)return e;try{o=t(i,e)}catch(a){kn.log(a)}return o&&g(o)?n(o):null}if(!d(e))return null;var r=e.split(">"),o=null;return(o=n())&&g(o)?o:null}function U(e,t){var n="",r="";return e.textContent?n=p(e.textContent):e.innerText&&(n=p(e.innerText)),n&&(n=n.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)),r=n||"","input"!==t&&"INPUT"!==t||(r=e.value||""),r}function H(e,t){t&&"string"==typeof t||(t="hostname解析异常");var n=null;try{n=h(e).hostname}catch(r){kn.log("getHostname传入的url参数不合法!")}return n||t}function W(){try{var e=navigator.appVersion.match(/OS (\d+)[._](\d+)[._]?(\d+)?/);return e&&e[1]?Number.parseInt(e[1],10):""}catch(wn){return""}}function V(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),e=c(e);var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null===n||n&&"string"!=typeof n[1]&&n[1].length?"":c(n[1])}function q(e){var t={},n=e.split("?")[1]||"";return n&&(t=u("?"+n)),t}function K(){return void 0!==window.matchMedia||void 0!==window.msMatchMedia}function J(){var e=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,t="未取到值";if(e)t=e.indexOf("landscape")>-1?"landscape":"portrait";else if(K()){var n=window.matchMedia||window.msMatchMedia;n("(orientation: landscape)").matches?t="landscape":n("(orientation: portrait)").matches&&(t="portrait")}return t}function G(){var e,t={},n=navigator.userAgent.toLowerCase();return(e=n.match(/ qq\/([\d.]+)/))?t.qqBuildinBrowser=Number(e[1].split(".")[0]):(e=n.match(/mqqbrowser\/([\d.]+)/))?t.qqBrowser=Number(e[1].split(".")[0]):(e=n.match(/opera.([\d.]+)/))?t.opera=Number(e[1].split(".")[0]):(e=n.match(/msie ([\d.]+)/))?t.ie=Number(e[1].split(".")[0]):(e=n.match(/edge.([\d.]+)/))?t.edge=Number(e[1].split(".")[0]):(e=n.match(/firefox\/([\d.]+)/))?t.firefox=Number(e[1].split(".")[0]):(e=n.match(/chrome\/([\d.]+)/))?t.chrome=Number(e[1].split(".")[0]):(e=n.match(/version\/([\d.]+).*safari/))?t.safari=Number(e[1].match(/^\d*.\d*/)):(e=n.match(/trident\/([\d.]+)/))&&(t.ie=11),t}function Y(e){return d(e)?I(e=p(e)):I(location.href)}function X(e){return d(e)?I(e=p(e)):I(location.pathname)}function Z(e,t){return e.hasAttribute?e.hasAttribute(t):e.attributes?!(!e.attributes[t]||!e.attributes[t].specified):void 0}function Q(e,t){if("string"==typeof t)return Z(e,t);if(y(t)){for(var n=!1,r=0;r<t.length;r++)if(Z(e,t[r])){n=!0;break}return n}}function ee(e){if("string"!=typeof e)return 0;var t=0;if(0==e.length)return t;for(var n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t}function te(e){var t=9007199254740992,n=-9007199254740992,r=31,o=0;if(e.length>0)for(var i=e.split(""),a=0;a<i.length;a++){var s=i[a].charCodeAt(),l=r*o+s;if(l>t)for(o=n+o;(l=r*o+s)<n;)o=o/2+s;if(l<n)for(o=t+o;(l=r*o+s)>t;)o=o/2+s;o=r*o+s}return o}function ne(e,t){var n=e.indexOf;if(n)return n.call(e,t);for(var r=0;r<e.length;r++)if(t===e[r])return r;return-1}function re(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e}function oe(e){return!(!e||!Nn.call(e,"callee"))}function ie(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function ae(e){if(n(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}function se(e){return"string"==typeof e&&(!1!==/^https?:\/\/.+/.test(e)||(kn.log("Invalid URL"),!1))}function le(){return!!navigator.userAgent.match(/iPhone|iPad|iPod/i)}function ce(e){try{JSON.parse(e)}catch(wn){return!1}return!0}function ue(e){return"[object Number]"==Object.prototype.toString.call(e)&&/[\d\.]+/.test(String(e))}function de(){var e=!1;if("object"!=typeof navigator||"function"!=typeof navigator.sendBeacon)return e;var t=G(),n=navigator.userAgent.toLowerCase();if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){var r=/os [\d._]*/gi,o=(n.match(r)+"").replace(/[^0-9|_.]/gi,"").replace(/_/gi,".").split(".");void 0===t.safari&&(t.safari=o[0]),o[0]&&(t.qqBuildinBrowser||t.qqBrowser)?e=!1:o[0]&&o[0]<13?(t.chrome>41||t.firefox>30||t.opera>25||t.safari>12)&&(e=!0):(t.chrome>41||t.firefox>30||t.opera>25||t.safari>11.3)&&(e=!0)}else(t.chrome>38||t.edge>13||t.firefox>30||t.opera>25||t.safari>11)&&(e=!0);return e}function pe(){return void 0!==window.XMLHttpRequest&&("withCredentials"in new XMLHttpRequest||"undefined"!=typeof XDomainRequest)}function fe(t){if(!n(t)||!d(t.callbackName))return kn.log("JSONP 请求缺少 callbackName"),!1;t.success=e(t.success)?t.success:function(){},t.error=e(t.error)?t.error:function(){},t.data=t.data||"";var r=document.createElement("script"),o=document.getElementsByTagName("head")[0],i=null,a=!1;if(o.appendChild(r),ue(t.timeout)&&(i=setTimeout((function(){return!a&&(t.error("timeout"),window[t.callbackName]=function(){kn.log("call jsonp error")},i=null,o.removeChild(r),void(a=!0))}),t.timeout)),window[t.callbackName]=function(){clearTimeout(i),i=null,t.success.apply(null,arguments),window[t.callbackName]=function(){kn.log("call jsonp error")},o.removeChild(r)},t.url.indexOf("?")>-1?t.url+="&callbackName="+t.callbackName:t.url+="?callbackName="+t.callbackName,n(t.data)){var s=[];S(t.data,(function(e,t){s.push(t+"="+e)})),t.data=s.join("&"),t.url+="&"+t.data}r.onerror=function(e){return!a&&(window[t.callbackName]=function(){kn.log("call jsonp error")},clearTimeout(i),i=null,o.removeChild(r),t.error(e),void(a=!0))},r.src=t.url}function he(t){({visibleHandler:e(t.visible)?t.visible:function(){},hiddenHandler:e(t.hidden)?t.hidden:function(){},visibilityChange:null,hidden:null,isSupport:function(){return void 0!==document[this.hidden]},init:function(){void 0!==document.hidden?(this.hidden="hidden",this.visibilityChange="visibilitychange"):void 0!==document.mozHidden?(this.hidden="mozHidden",this.visibilityChange="mozvisibilitychange"):void 0!==document.msHidden?(this.hidden="msHidden",this.visibilityChange="msvisibilitychange"):void 0!==document.webkitHidden&&(this.hidden="webkitHidden",this.visibilityChange="webkitvisibilitychange"),this.listen()},listen:function(){if(this.isSupport()){var e=this;_(document,this.visibilityChange,(function(){document[e.hidden]?e.hiddenHandler():e.visibleHandler()}),1)}else _(window,"focus",this.visibleHandler),_(window,"blur",this.hiddenHandler)}}).init()}function ge(e){e=k({success:function(){},error:function(){},appendCall:function(e){document.getElementsByTagName("head")[0].appendChild(e)}},e);var t=null;"css"===e.type&&((t=document.createElement("link")).rel="stylesheet",t.href=e.url),"js"===e.type&&((t=document.createElement("script")).async="async",t.setAttribute("charset","UTF-8"),t.src=e.url,t.type="text/javascript"),t.onload=t.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(e.success(),t.onload=t.onreadystatechange=null)},t.onerror=function(){e.error(),t.onerror=null},e.appendCall(t)}function ve(e){if("string"!=typeof e)return"";for(var t=/^\s*javascript/i;t.test(e);)e=e.replace(t,"");return e}function me(e,t){t="number"==typeof t?t:13;for(var n=126,r=(e=String(e)).split(""),o=0,i=r.length;o<i;o++)r[o].charCodeAt(0)<n&&(r[o]=String.fromCharCode((r[o].charCodeAt(0)+t)%n));return r.join("")}function ye(e){var t=13,n=126;return me(e=String(e),n-t)}function be(e){n(e)&&S(e,(function(t,r){n(t)?be(e[r]):A(t)&&(e[r]=N(t))}))}function _e(e){var t=document.createElement("style");t.type="text/css";try{t.appendChild(document.createTextNode(e))}catch(o){t.styleSheet.cssText=e}var n=document.getElementsByTagName("head")[0],r=document.getElementsByTagName("script")[0];n?n.children.length?n.insertBefore(t,n.children[0]):n.appendChild(t):r.parentNode.insertBefore(t,r)}function we(e){if("string"!=typeof e)return kn.log("转换unicode错误",e),e;for(var t="",n=0;n<e.length;n++)t+="\\"+e.charCodeAt(n).toString(16);return t}function xe(e,n,r){var o,i,a,s=null,l=0;r||(r={});var c=function(){l=!1===r.leading?0:t(),s=null,a=e.apply(o,i),s||(o=i=null)};return function(){var u=t();l||!1!==r.leading||(l=u);var d=n-(u-l);return o=this,i=arguments,d<=0||d>n?(s&&(clearTimeout(s),s=null),l=u,a=e.apply(o,i),s||(o=i=null)):s||!1===r.trailing||(s=setTimeout(c,d)),a}}function Se(e){var t=[];return null==e||S(e,(function(e){t[t.length]=e})),t}function ke(e){return e?e.toArray?e.toArray():y(e)||oe(e)?Array.prototype.slice.call(e):Se(e):[]}function Ce(e){for(var t,n=[],r={},o=0;o<e.length;o++)(t=e[o])in r||(r[t]=!0,n.push(t));return n}function Oe(){if((Dn.isSupport()&&"true"===sessionStorage.getItem("sensorsdata_jssdk_debug")||Bn.show_log)&&(!n(arguments[0])||!0!==Bn.show_log&&"string"!==Bn.show_log&&!1!==Bn.show_log||(arguments[0]=M(arguments[0])),"object"==typeof console&&console.log))try{return}catch(zr){}}function Pe(e){return 0===e.indexOf(zn)?e=ye(e=e.substring(zn.length)):0===e.indexOf(Un)&&(e=j(e=e.substring(Un.length))),e}function Ee(e){return!d(e)||0!==e.indexOf(zn)&&0!==e.indexOf(Un)||(e=Pe(e)),e}function $e(e){return Un+j(e)}function Te(t){var r=t.properties,o=JSON.parse(JSON.stringify(t));n(r)&&S(r,(function(t,n){if(e(t))try{r[n]=t(o),e(r[n])&&(Oe("您的属性- "+n+" 格式不满足要求,我们已经将其删除"),delete r[n])}catch(i){delete r[n],Oe("您的属性- "+n+" 抛出了异常,我们已经将其删除")}}))}function Ie(e){if("object"==typeof e&&e.$option){var t=e.$option;return delete e.$option,t}return{}}function je(e){var t={};return S(e,(function(e,n){null!=e&&(t[n]=e)})),t}function Ae(e){var t=Bn.current_domain;switch(typeof t){case"function":var n=t();return""===n||""===p(n)?"url解析失败":-1!==n.indexOf(".")?n:"url解析失败";case"string":return""===t||""===p(t)?"url解析失败":-1!==t.indexOf(".")?t:"url解析失败";default:var r=F(null,qn);return""===e||""===r?"url解析失败":r}}function Ne(e){if(!e.target)return!1;var t=e.target,n=t.tagName.toLowerCase(),r={};return r.$element_type=n,r.$element_name=t.getAttribute("name"),r.$element_id=t.getAttribute("id"),r.$element_class_name="string"==typeof t.className?t.className:null,r.$element_target_url=t.getAttribute("href"),r.$element_content=Ve(t,n),(r=je(r)).$url=Y(),r.$url_path=X(),r.$title=document.title,r}function De(){var e=document.referrer,t="baidu.com";if(!e)return!1;try{var n=h(e).hostname;return n&&n.substring(n.length-t.length)===t}catch(r){return!1}}function Re(){var e=q(document.referrer);return ae(e)||!e.eqid?Pn().replace(/-/g,""):e.eqid}function Le(){var e=q(document.referrer);if(ae(e)||!e.eqid){var t=q(location.href);return e.ck||t.utm_source?"baidu_sem_keyword_id":"baidu_other_keyword_id"}return"baidu_seo_keyword_id"}function Me(e){return""===(e=e||document.referrer)||F(H(e),qn)!==F(null,qn)}function Be(e,t){return"string"!=typeof(e=e||document.referrer)?"取值异常_referrer异常_"+String(e):(0!==(e=I(e=p(e))).indexOf("https://www.baidu.com/")||t||(e=e.split("?")[0]),"string"==typeof(e=e.slice(0,Bn.max_referrer_string_length))?e:"")}function Fe(e){var t=H(e);if(!t||"hostname解析异常"===t)return"";var n={baidu:[/^.*\.baidu\.com$/],bing:[/^.*\.bing\.com$/],google:[/^www\.google\.com$/,/^www\.google\.com\.[a-z]{2}$/,/^www\.google\.[a-z]{2}$/],sm:[/^m\.sm\.cn$/],so:[/^.+\.so\.com$/],sogou:[/^.*\.sogou\.com$/],yahoo:[/^.*\.yahoo\.com$/]};for(var r in n)for(var o=n[r],i=0,a=o.length;i<a;i++)if(o[i].test(t))return r;return"未知搜索引擎"}function ze(e,t){e=e||document.referrer;var n=Bn.source_type.keyword;if(document&&"string"==typeof e){if(0===e.indexOf("http")){var r=Fe(e),o=q(e);if(ae(o))return Bn.preset_properties.search_keyword_baidu&&De()?void 0:"未取到值";var i=null;for(var a in n)if(r===a&&"object"==typeof o)if(y(i=n[a]))for(a=0;a<i.length;a++){var s=o[i[a]];if(s)return t?{active:s}:s}else if(o[i])return t?{active:o[i]}:o[i];return Bn.preset_properties.search_keyword_baidu&&De()?void 0:"未取到值"}return""===e?"未取到值_直接打开":"未取到值_非http的url"}return"取值异常_referrer异常_"+String(e)}function Ue(e){var t=V(e,"gdt_vid"),n=V(e,"hash_key"),r=V(e,"callbacks"),o={click_id:"",hash_key:"",callbacks:""};return d(t)&&t.length&&(o.click_id=16==t.length||18==t.length?t:"参数解析不合法",d(n)&&n.length&&(o.hash_key=n),d(r)&&r.length&&(o.callbacks=r)),o}function He(){function e(e,t){for(var n=0;n<e.length;n++)if(-1!==t.split("?")[0].indexOf(e[n]))return!0}var t="("+Bn.source_type.utm.join("|")+")\\=[^&]+",n=Bn.source_type.search,r=Bn.source_type.social,o=document.referrer||"",i=Gn.pageProp.url;if(i){var a=i.match(new RegExp(t));return a&&a[0]?"付费广告流量":e(n,o)?"自然搜索流量":e(r,o)?"社交网站流量":""===o?"直接流量":"引荐流量"}return"获取url异常"}function We(e){var t=Bn.heatmap&&"function"==typeof Bn.heatmap.collect_input&&Bn.heatmap.collect_input(e);return("button"===e.type||"submit"===e.type||t)&&e.value||""}function Ve(e,t){return d(t)&&"input"===t.toLowerCase()?We(e):U(e,t)}function qe(e){return Hn.protocol.ajax(e.url),C(e)}function Ke(e,t,r){var o=!(!n(Bn.heatmap)||!Bn.heatmap.useCapture);return n(Bn.heatmap)&&void 0===Bn.heatmap.useCapture&&"click"===t&&(o=!0),_(e,t,r,o)}function Je(){var e=location.protocol;return"http:"===e||"https:"===e?e:"http:"}function Ge(e,t){var n="";if(t=t||location.href,!1===Bn.cross_subdomain){try{n=h(t).hostname}catch(r){Oe(r)}n="string"==typeof n&&""!==n?"sajssdk_2015_"+Bn.sdk_id+e+"_"+n.replace(/\./g,"_"):"sajssdk_2015_root_"+Bn.sdk_id+e}else n="sajssdk_2015_cross_"+Bn.sdk_id+e;return n}function Ye(){var e="new_user";return Yn.isSupport()?null!==Yn.get("sensorsdata_is_new_user")||null!==Yn.get(Ge(e)):null!==Xn.get(Xn.getNewUserFlagMemoryKey(e))}function Xe(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!nr.check(n,e[n],t))return!1;return!0}function Ze(e){return rr.stage.process("addCustomProps",e)}function Qe(e){return rr.stage.process("formatData",e)}function et(t){var n,r=location.href,o=window.history.pushState,i=window.history.replaceState;e(window.history.pushState)&&(window.history.pushState=function(){o.apply(window.history,arguments),t(r),r=location.href}),e(window.history.replaceState)&&(window.history.replaceState=function(){i.apply(window.history,arguments),t(r),r=location.href}),n=window.document.documentMode?"hashchange":o?"popstate":"hashchange",_(window,n,(function(){t(r),r=location.href}))}function tt(e,t){var n=[];"string"==typeof e&&e in ur.EVENT_LIST&&(n=ur.EVENT_LIST[e],ur[n[0]].on(n[1],t))}function nt(e){var t=!e.type||"profile"!==e.type.slice(0,7),r="取值异常";n(e.properties)&&(e.properties.$first_referrer&&(e.properties.$first_referrer_host=H(e.properties.$first_referrer,r)),t&&("$referrer"in e.properties&&(e.properties.$referrer_host=""===e.properties.$referrer?"":H(e.properties.$referrer,r)),xn.para.preset_properties.latest_referrer&&xn.para.preset_properties.latest_referrer_host&&(e.properties.$latest_referrer_host=""===e.properties.$latest_referrer?"":H(e.properties.$latest_referrer,r))))}function rt(e){var t=!e.type||"profile"!==e.type.slice(0,7),n=xn.para.preset_properties&&t;n&&xn.para.preset_properties.url&&void 0===e.properties.$url&&(e.properties.$url=Y()),n&&xn.para.preset_properties.title&&void 0===e.properties.$title&&(e.properties.$title=document.title)}function ot(e){k(Bn,e||xn.para||{}),xn.para=Bn;var t,r={};if(n(xn.para.is_track_latest))for(var o in xn.para.is_track_latest)r["latest_"+o]=xn.para.is_track_latest[o];for(t in xn.para.preset_properties=k({},xn.para_default.preset_properties,r,xn.para.preset_properties||{}),xn.para_default)void 0===xn.para[t]&&(xn.para[t]=xn.para_default[t]);"string"==typeof xn.para.server_url&&(xn.para.server_url=p(xn.para.server_url),xn.para.server_url&&("://"===xn.para.server_url.slice(0,3)?xn.para.server_url=location.protocol.slice(0,-1)+xn.para.server_url:"//"===xn.para.server_url.slice(0,2)?xn.para.server_url=location.protocol+xn.para.server_url:"http"!==xn.para.server_url.slice(0,4)&&(xn.para.server_url=""))),"string"!=typeof xn.para.web_url||"://"!==xn.para.web_url.slice(0,3)&&"//"!==xn.para.web_url.slice(0,2)||("://"===xn.para.web_url.slice(0,3)?xn.para.web_url=location.protocol.slice(0,-1)+xn.para.web_url:xn.para.web_url=location.protocol+xn.para.web_url),"image"!==xn.para.send_type&&"ajax"!==xn.para.send_type&&"beacon"!==xn.para.send_type&&(xn.para.send_type="image"),xn.debug.protocol.serverUrl(),xn.bridge.initPara();var i={datasend_timeout:6e3,send_interval:6e3};Cn.isSupport()&&pe()&&"object"==typeof localStorage?!0===xn.para.batch_send?xn.para.batch_send=k({},i):"object"==typeof xn.para.batch_send&&(xn.para.batch_send=k({},i,xn.para.batch_send)):xn.para.batch_send=!1;var a=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],s=["www.baidu.","m.baidu.","m.sm.cn","so.com","sogou.com","youdao.com","google.","yahoo.com/","bing.com/","ask.com/"],l=["weibo.com","renren.com","kaixin001.com","douban.com","qzone.qq.com","zhihu.com","tieba.baidu.com","weixin.qq.com"],c={baidu:["wd","word","kw","keyword"],google:"q",bing:"q",yahoo:"p",sogou:["query","keyword"],so:"q",sm:"q"};"object"==typeof xn.para.source_type&&(xn.para.source_type.utm=y(xn.para.source_type.utm)?xn.para.source_type.utm.concat(a):a,xn.para.source_type.search=y(xn.para.source_type.search)?xn.para.source_type.search.concat(s):s,xn.para.source_type.social=y(xn.para.source_type.social)?xn.para.source_type.social.concat(l):l,xn.para.source_type.keyword=n(xn.para.source_type.keyword)?k(c,xn.para.source_type.keyword):c);var u={div:!1},d=["mark","/mark","strong","b","em","i","u","abbr","ins","del","s","sup"];if(xn.para.heatmap&&!n(xn.para.heatmap)&&(xn.para.heatmap={}),n(xn.para.heatmap)){xn.para.heatmap.clickmap=xn.para.heatmap.clickmap||"default",xn.para.heatmap.scroll_notice_map=xn.para.heatmap.scroll_notice_map||"default",xn.para.heatmap.scroll_delay_time=xn.para.heatmap.scroll_delay_time||4e3,xn.para.heatmap.scroll_event_duration=xn.para.heatmap.scroll_event_duration||18e3,xn.para.heatmap.renderRefreshTime=xn.para.heatmap.renderRefreshTime||1e3,xn.para.heatmap.loadTimeout=xn.para.heatmap.loadTimeout||1e3,!0!==xn.para.heatmap.get_vtrack_config&&(xn.para.heatmap.get_vtrack_config=!1);var f=y(xn.para.heatmap.track_attr)?L(xn.para.heatmap.track_attr,(function(e){return e&&"string"==typeof e})):[];f.push("data-sensors-click"),xn.para.heatmap.track_attr=f,n(xn.para.heatmap.collect_tags)?!0===xn.para.heatmap.collect_tags.div?xn.para.heatmap.collect_tags.div={ignore_tags:d,max_level:1}:n(xn.para.heatmap.collect_tags.div)?(xn.para.heatmap.collect_tags.div.ignore_tags?y(xn.para.heatmap.collect_tags.div.ignore_tags)||(xn.log("ignore_tags 参数必须是数组格式"),xn.para.heatmap.collect_tags.div.ignore_tags=d):xn.para.heatmap.collect_tags.div.ignore_tags=d,xn.para.heatmap.collect_tags.div.max_level&&-1===ne([1,2,3],xn.para.heatmap.collect_tags.div.max_level)&&(xn.para.heatmap.collect_tags.div.max_level=1)):xn.para.heatmap.collect_tags.div=!1:xn.para.heatmap.collect_tags=u}if(y(xn.para.server_url)&&xn.para.server_url.length)for(t=0;t<xn.para.server_url.length;t++)/sa\.gif[^\/]*$/.test(xn.para.server_url[t])||(xn.para.server_url[t]=xn.para.server_url[t].replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));else/sa\.gif[^\/]*$/.test(xn.para.server_url)||"string"!=typeof xn.para.server_url||(xn.para.server_url=xn.para.server_url.replace(/\/sa$/,"/sa.gif").replace(/(\/sa)(\?[^\/]+)$/,"/sa.gif$2"));"string"==typeof xn.para.server_url&&(xn.para.debug_mode_url=xn.para.debug_mode_url||xn.para.server_url.replace("sa.gif","debug")),!0===xn.para.noCache?xn.para.noCache="?"+(new Date).getTime():xn.para.noCache="",xn.para.callback_timeout>xn.para.datasend_timeout&&(xn.para.datasend_timeout=xn.para.callback_timeout),xn.para.heatmap&&xn.para.heatmap.collect_tags&&n(xn.para.heatmap.collect_tags)&&S(xn.para.heatmap.collect_tags,(function(e,t){"div"!==t&&e&&xn.heatmap.otherTags.push(t)})),xn.para.heatmap&&"default"===xn.para.heatmap.clickmap&&xn.heatmap.initUnlimitedTags()}function it(e){var t={};for(var n in e)t[n]=e[n];xn.store._state.identities=t,xn.store.save()}function at(){xn._t=xn._t||1*new Date,xn.lib_version=Vn,xn.is_first_visitor=!1,xn.source_channel_standard=Wn}function st(){if(Dn.isSupport())try{sessionStorage.setItem("sensorsdata_jssdk_debug","true")}catch(zr){xn.log("enableLocalLog error: "+zr.message)}}function lt(){Dn.isSupport()&&sessionStorage.removeItem("sensorsdata_jssdk_debug")}function ct(){var e=Array.prototype.slice.call(arguments),t=e[0],n=e.slice(1);return"string"==typeof t&&sr[t]?sr[t].apply(sr,n):void("function"==typeof t?t.apply(xn,n):xn.log("quick方法中没有这个功能"+e[0]))}function ut(t,r){return d(t)?n(window.SensorsDataWebJSSDKPlugin)&&n(window.SensorsDataWebJSSDKPlugin[t])&&e(window.SensorsDataWebJSSDKPlugin[t].init)?(window.SensorsDataWebJSSDKPlugin[t].init(xn,r),window.SensorsDataWebJSSDKPlugin[t]):n(xn.modules)&&n(xn.modules[t])&&e(xn.modules[t].init)?(xn.modules[t].init(xn,r),xn.modules[t]):void xn.log(t+"没有获取到,请查阅文档,调整"+t+"的引入顺序!"):(xn.log("use插件名称必须是字符串!"),!1)}function dt(e,t,n){or.check({event:e,properties:t})&&or.send({type:"track",event:e,properties:t},n)}function pt(e,t){return!!or.check({bindKey:e,bindValue:t})&&(xn.store._state.identities[e]=t,xn.store.save(),void or.send({type:"track_id_bind",event:"$BindID",properties:{}}))}function ft(e,t){if(!or.check({unbindKey:e,bindValue:t}))return!1;if(n(xn.store._state.identities)&&xn.store._state.identities.hasOwnProperty(e)&&xn.store._state.identities[e]===t){var r=xn.store.getUnionId().login_id;r&&e+"+"+t===r&&(xn.store._state.distinct_id=xn.store._state.first_id,xn.store._state.first_id="",xn.store.set("history_login_id",{name:"",value:""})),"$identity_cookie_id"!==e&&(delete xn.store._state.identities[e],xn.store.save())}var o={};o[e]=t,or.send({identities:o,type:"track_id_unbind",event:"$UnbindID",properties:{}})}function ht(e,t,n){function r(e,t,n){function r(e){function r(){i||(i=!0,location.href=o.href)}e.stopPropagation(),e.preventDefault();var i=!1;setTimeout(r,1e3),xn.track(t,n,r)}var o=null;return(e=e||{}).ele&&(o=e.ele),e.event&&(o=e.target?e.target:e.event.target),n=n||{},!(!o||"object"!=typeof o)&&(!o.href||/^javascript/.test(o.href)||o.target||o.download||o.onclick?(xn.track(t,n),!1):(e.event&&r(e.event),void(e.ele&&Ke(e.ele,"click",(function(e){r(e)})))))}"object"==typeof e&&e.tagName?r({ele:e},t,n):"object"==typeof e&&e.target&&e.event&&r(e,t,n)}function gt(e,t,n){return n=n||{},!(!e||"object"!=typeof e)&&!(!e.href||/^javascript/.test(e.href)||e.target)&&void Ke(e,"click",(function(r){function o(){i||(i=!0,location.href=e.href)}r.preventDefault();var i=!1;setTimeout(o,1e3),xn.track(t,n,o)}))}function vt(e,t,n){or.check({item_type:e,item_id:t,properties:n})&&or.sendItem({type:"item_set",item_type:e,item_id:t,properties:n||{}})}function mt(e,t){or.check({item_type:e,item_id:t})&&or.sendItem({type:"item_delete",item_type:e,item_id:t})}function yt(e,t){or.check({propertiesMust:e})&&or.send({type:"profile_set",properties:e},t)}function bt(e,t){or.check({propertiesMust:e})&&or.send({type:"profile_set_once",properties:e},t)}function _t(e,t){or.check({propertiesMust:e})&&(S(e,(function(t,n){d(t)?e[n]=[t]:y(t)?e[n]=t:(delete e[n],xn.log("appendProfile属性的值必须是字符串或者数组"))})),ae(e)||or.send({type:"profile_append",properties:e},t))}function wt(e,t){function n(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&!/-*\d+/.test(String(e[t])))return!1;return!0}var r=e;d(e)&&((e={})[r]=1),or.check({propertiesMust:e})&&(n(e)?or.send({type:"profile_increment",properties:e},t):xn.log("profile_increment的值只能是数字"))}function xt(e){or.send({type:"profile_delete"},e),Qn.set("distinct_id",Pn()),Qn.set("first_id","")}function St(e,t){var n=e,r={};d(e)&&(e=[]).push(n),y(e)?(S(e,(function(e){d(e)?r[e]=!0:xn.log("profile_unset给的数组里面的值必须时string,已经过滤掉",e)})),or.send({type:"profile_unset",properties:r},t)):xn.log("profile_unset的参数是数组")}function kt(e,t){function n(e){xn.store._state.identities.$identity_anonymous_id=e,xn.store.save()}"number"==typeof e&&(e=String(e));var r=Qn.getFirstId();if(void 0===e){var o=Pn();r?Qn.set("first_id",o):Qn.set("distinct_id",o),n(o)}else or.check({distinct_id:e})&&(!0===t?r?Qn.set("first_id",e):Qn.set("distinct_id",e):r?Qn.change("first_id",e):Qn.change("distinct_id",e),n(e))}function Ct(e,t,n,r){var o=Qn.getFirstId()||Qn.getDistinctId();Qn.set("distinct_id",e),or.send({original_id:o,distinct_id:xn.store.getDistinctId(),type:"track_signup",event:t,properties:n},r)}function Ot(e,t,n,r){"number"==typeof e&&(e=String(e)),or.check({distinct_id:e,event:t,properties:n})&&Ct(e,t,n,r)}function Pt(e){or.check({properties:e})?k(Gn.currentProps,e):xn.log("register输入的参数有误")}function Et(e){Qn.clearAllProps(e)}function $t(e){var t;if(y(e)&&e.length>0)for(t=0;t<e.length;t++)d(e[t])&&e[t]in Gn.currentProps&&delete Gn.currentProps[e[t]];else if(!0===e)for(t in Gn.currentProps)delete Gn.currentProps[t]}function Tt(e){or.check({properties:e})?Qn.setProps(e):xn.log("register输入的参数有误")}function It(e){or.check({properties:e})?Qn.setPropsOnce(e):xn.log("registerOnce输入的参数有误")}function jt(e){or.check({properties:e})?Qn.setSessionProps(e):xn.log("registerSession输入的参数有误")}function At(e){or.check({properties:e})?Qn.setSessionPropsOnce(e):xn.log("registerSessionOnce输入的参数有误")}function Nt(e){var t=e.id,r=e.callback,o=e.name,i=Qn.getFirstId(),a=Qn.getOriginDistinctId();if(!or.check({distinct_id:t}))return xn.log("login id is invalid"),!1;if(t===xn.store.getOriginDistinctId()&&!i)return xn.log("login id is equal to distinct_id"),!1;if(n(xn.store._state.identities)&&xn.store._state.identities.hasOwnProperty(o)&&t===xn.store._state.first_id)return!1;if(xn.store._state.history_login_id.name!==o||t!==xn.store._state.history_login_id.value){xn.store._state.identities[o]=t,xn.store.set("history_login_id",{name:o,value:t}),i||Qn.set("first_id",a),Ct(t,"$SignUp",{},r);var s={$identity_cookie_id:xn.store._state.identities.$identity_cookie_id};return s[o]=t,it(s),!0}return!1}function Dt(t,n){"number"==typeof t&&(t=String(t)),!Nt({id:t,callback:n,name:Kn.LOGIN})&&e(n)&&n()}function Rt(e,t){return"number"==typeof t&&(t=String(t)),"number"==typeof e&&(e=String(e)),!!or.check({loginIdKey:e})&&(Kn.LOGIN===e?(Dt(t),!1):void Nt({id:t,callback:null,name:e}))}function Lt(e){var t=Qn.getFirstId();if(t)if(Qn.set("first_id",""),!0===e){var n=Pn();Qn.set("distinct_id",n)}else Qn.set("distinct_id",t);it({$identity_cookie_id:xn.store._state.identities.$identity_cookie_id}),xn.store.set("history_login_id",{name:"",value:""})}function Mt(){function e(){var e=Gn.campaignParams(),t={};return S(e,(function(e,n,r){-1!==(" "+xn.source_channel_standard+" ").indexOf(" "+n+" ")?t["$"+n]=r[n]:t[n]=r[n]})),t}var t={$is_first_day:Ye(),$is_first_time:Zn.is_page_first_visited,$referrer:Gn.pageProp.referrer||"",$referrer_host:Gn.pageProp.referrer?H(Gn.pageProp.referrer):"",$url:Y(),$url_path:X(),$title:document.title||"",_distinct_id:Qn.getDistinctId(),identities:JSON.parse(JSON.stringify(Qn._state.identities))},n=k({},Gn.properties(),xn.store.getProps(),e(),t);return xn.para.preset_properties.latest_referrer&&xn.para.preset_properties.latest_referrer_host&&(n.$latest_referrer_host=""===n.$latest_referrer?"":H(n.$latest_referrer)),n}function Bt(){var e="",t=" { cursor: pointer; -webkit-tap-highlight-color: rgba(0,0,0,0); }";xn.heatmap&&y(xn.heatmap.otherTags)&&S(xn.heatmap.otherTags,(function(n){e+=n+t})),le()&&W()&&W()<13&&(xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div&&_e("div, [data-sensors-click]"+t),xn.para.heatmap&&xn.para.heatmap.track_attr&&_e("["+xn.para.heatmap.track_attr.join("], [")+"]"+t),""!==e&&_e(e))}function Ft(){return hr.stage&&hr.stage.process("getUtmData")}function zt(e,t){var n=gr.encodeTrackData(t);return-1!==e.indexOf("?")?e+"&"+n:e+"?"+n}function Ut(e){return gr.encodeTrackData(e)}function Ht(e){var t=["image","ajax","beacon"],n=t[0];return"beacon"===(n=e.config&&ne(t,e.config.send_type)>-1?e.config.send_type:xn.para.send_type)&&!1===de()&&(n="image"),"ajax"===n&&!1===pe()&&(n="image"),n}function Wt(e){switch(Ht(e)){case"image":default:return new vr(e);case"ajax":return new mr(e);case"beacon":return new yr(e)}}function Vt(e){var t=Wt(e),n=t.start;return t.start=function(){var e=this;n.apply(this,arguments),setTimeout((function(){e.isEnd(!0)}),xn.para.callback_timeout)},t.end=function(){this.callback&&this.callback();var e=this;setTimeout((function(){e.lastClear&&e.lastClear()}),xn.para.datasend_timeout-xn.para.callback_timeout)},t.isEnd=function(){this.received||(this.received=!0,this.end())},t}function qt(){this.sendTimeStamp=0,this.timer=null,this.serverUrl="",this.hasTabStorage=!1}function Kt(e){var t=this;this.type=e,this.resultCbs={},this.timeoutCbs={},this.timerId=null,this.appCallJsCallback=null,window.sensorsdata_app_call_js||(window.sensorsdata_app_call_js=function(e,t){if(e in window.sensorsdata_app_call_js.modules)return window.sensorsdata_app_call_js.modules[e](t)}),window.sensorsdata_app_call_js.modules=window.sensorsdata_app_call_js.modules||{},window.sensorsdata_app_call_js.modules[this.type]=function(e){try{var n=P(e)||e;try{n=JSON.parse(n)}catch(i){}var r=n&&n.message_id;if(r&&t.resultCbs[r]){if(e=n,t.timeoutCbs[r]&&t.timeoutCbs[r].isTimeout)return void(t.resultCbs[r].callbacks.length=0);if(t.resultCbs[r])for(var o in t.resultCbs[r].result=e,clearTimeout(t.timerId),t.timeoutCbs[r].callbacks.length=0,t.resultCbs[r].callbacks)t.resultCbs[r].callbacks[o].call(null,e),t.resultCbs[r].callbacks.splice(o,1);return}return t.appCallJsCallback&&t.appCallJsCallback.call(null,e)}catch(a){}}}function Jt(t){try{if(xn.bridge.activeBridge&&e(xn.bridge.activeBridge.handleCommand))return xn.bridge.activeBridge.handleCommand(t)}catch(n){xn.log("Error: handle command exception:"+n)}return xn.log("数据发往App失败,App没有暴露bridge,type:"+t.callType),!1}function Gt(e){function t(e){var t={hostname:"",project:""};try{e=h(e),t.hostname=e.hostname,t.project=e.searchParams.get("project")||"default"}catch(n){xn.log(n)}return t}var n=t(e),r=t(xn.para.server_url);if(n.hostname===r.hostname&&n.project===r.project)return!0;if(y(xn.para.app_js_bridge.white_list))for(var o=0;o<xn.para.app_js_bridge.white_list.length;o++){var i=t(xn.para.app_js_bridge.white_list[o]);if(i.hostname===n.hostname&&i.project===n.project)return!0}return!1}function Yt(e){this.bridge=new Kt(e.type)}function Xt(e){var t=null;try{var n=JSON.parse(window.name);t=n[e]?c(n[e]):null}catch(r){t=null}return null===t&&(t=V(location.href,e)||null),t}function Zt(e){function t(){var e=[];r.touch_app_bridge||e.push(xn.debug.defineMode("1")),n(xn.para.app_js_bridge)||(e.push(xn.debug.defineMode("2")),r.verify_success=!1),n(xn.para.heatmap)&&"default"==xn.para.heatmap.clickmap||e.push(xn.debug.defineMode("3")),"fail"===r.verify_success&&e.push(xn.debug.defineMode("4")),new xn.SDKJSBridge("app_alert").notifyApp({data:e})}var r=xn.bridge.bridge_info;if(xn.bridge.hasVisualModeBridge())if(n(xn.para.heatmap)&&"default"==xn.para.heatmap.clickmap)if(n(xn.para.app_js_bridge)&&"success"===r.verify_success)if(e)sa_jssdk_app_define_mode(xn,e);else{var o=location.protocol;ge({success:function(){setTimeout((function(){"undefined"!=typeof sa_jssdk_app_define_mode&&sa_jssdk_app_define_mode(xn,e)}),0)},error:function(){},type:"js",url:(o=ne(["http:","https:"],o)>-1?o:"https:")+"//static.sensorsdata.cn/sdk/"+xn.lib_version+"/vapph5define.min.js"})}else t();else t()}function Qt(){xn.para.is_track_single_page&&lr.on("switch",(function(e){var t=function(t){t=t||{},e!==location.href&&(Gn.pageProp.referrer=Y(e),xn.quick("autoTrack",k({$url:Y(),$referrer:Y(e)},t)))};if("boolean"==typeof xn.para.is_track_single_page)t();else if("function"==typeof xn.para.is_track_single_page){var r=xn.para.is_track_single_page();n(r)?t(r):!0===r&&t()}}))}function en(){xn._q&&y(xn._q)&&xn._q.length>0&&S(xn._q,(function(e){xn[e[0]].apply(xn,Array.prototype.slice.call(e[1]))})),n(xn.para.heatmap)&&(ar.initHeatmap(),ar.initScrollmap())}function tn(){xn.readyState.setState(3),new xn.SDKJSBridge("visualized").onAppNotify((function(){Zt("undefined"!=typeof sa_jssdk_app_define_mode)})),Zt(!1),xn.bridge.app_js_bridge_v1(),Gn.initPage(),Qt(),!xn.para.app_js_bridge&&xn.para.batch_send&&Cn.isSupport()&&xn.batchSend.batchInterval(),xn.store.init(),xn.vtrackBase.init(),xn.readyState.setState(4),en()}function nn(){Tr.isSeachHasKeyword()?Tr.hasKeywordHandle():window.parent!==self&&Ir.isSearchHasKeyword()?Ir.verifyVtrackMode():Tr.isWindowNameHasKeyword()?Tr.windowNameHasKeywordHandle():Tr.isStorageHasKeyword()?Tr.storageHasKeywordHandle():window.parent!==self&&Ir.isStorageHasKeyword()?Ir.verifyVtrackMode():(tn(),Ir.notifyUser())}function rn(){S(jr,(function(e){var t=xn[e];xn[e]=function(){return xn.readyState.state<3?(y(xn._q)||(xn._q=[]),xn._q.push([e,arguments]),!1):xn.readyState.getState()?t.apply(xn,arguments):void 0}}))}function on(e){this.cancel=function(){e=!0},this.getCanceled=function(){return e||!1}}function an(e,t,n){var r=null;try{r=JSON.parse(JSON.stringify(e||null))}catch(o){Oe(o)}this.getOriginalData=function(){return r},this.getPosition=function(){return t},this.cancellationToken=new on,this.sensors=n}function sn(e){if(!n(e))throw"error: Stage constructor requires arguments.";this.processDef=e,this.registeredInterceptors={}}function ln(e){e&&e.dataStage&&Nr.registerStageImplementation(e.dataStage),e&&e.businessStage&&Rr.registerStageImplementation(e.businessStage),e&&e.sendStage&&Dr.registerStageImplementation(e.sendStage)}function cn(e,t){Lr[e]&&Lr[e](t)}function un(e){e.kit=gr,e.saEvent=or,this.dataStage=rr,this.sendStage=br,this.businessStage=hr}function dn(t){return n(t)?(S(t,(function(n,r){if(y(n)){var o=[];S(n,(function(e){d(e)?o.push(e):Oe("您的数据-",r,n,"的数组里的值必须是字符串,已经将其删除")})),t[r]=o}d(n)||ue(n)||A(n)||ie(n)||y(n)||e(n)||"$option"===r||(Oe("您的数据-",r,n,"-格式不满足要求,我们已经将其删除"),delete t[r])})),t):t}function pn(e,t){return ue(t)&&e.length>t?(Oe("字符串长度超过限制,已经做截取--"+e),e.slice(0,t)):e}function fn(e){var t=["distinct_id","user_id","id","date","datetime","event","events","first_id","original_id","device_id","properties","second_id","time","users"];n(e)&&S(t,(function(t,n){t in e&&(n<3?(delete e[t],Oe("您的属性- "+t+"是保留字段,我们已经将其删除")):Oe("您的属性- "+t+"是保留字段,请避免其作为属性名"))}))}function hn(e){var t=["$element_selector","$element_path"],r=["sensorsdata_app_visual_properties"];n(e)&&S(e,(function(o,i){if(n(o))hn(e[i]);else if(d(o)){if(ne(r,i)>-1)return;e[i]=pn(o,ne(t,i)>-1?1024:Bn.max_string_length)}}))}function gn(e){void 0!==e.properties.$project&&(e.project=e.properties.$project,delete e.properties.$project),void 0!==e.properties.$token&&(e.token=e.properties.$token,delete e.properties.$token)}function vn(e){"item_type"in e&&Xe({item_type:e.item_type},(function(t){return t||delete e.item_type,!0})),"item_id"in e&&Xe({item_id:e.item_id},(function(t,n,r){return t||"string"!==r||delete e.item_id,!0}))}function mn(e){S(e,(function(t,n){Xe({propertyKey:n},(function(t,r,o){return t||"keyLength"===o||delete e[n],!0}))}))}function yn(e){var t=e.properties;n(t)?(dn(t),fn(t),gn(e),mn(t),hn(t)):"properties"in e&&(e.properties={}),be(e),vn(e)}function bn(){this.dataStage=Mr}function _n(e){e&&(kn.setup(Oe),xn._=k(Mn,fr),xn.ee=ur,xn.sendState=_r,xn.events=new xn._.EventEmitterSa,xn.batchSend=Sr,xn.bridge=kr,xn.SDKJSBridge=Kt,xn.JSBridge=Yt,xn.store=Qn,xn.vtrackBase=Cr,xn.unlimitedDiv=Or,xn.customProp=Pr,xn.vtrackcollect=Er,xn.vapph5collect=$r,xn.heatmap=ar,xn.detectMode=nn,xn.registerFeature=ln,xn.registerInterceptor=cn,ln(new un(xn)),ln(new bn));var t=e?dr:Ar;for(var n in t)xn[n]=t[n];xn.on=tt,xn.ee=ur,xn.use=ut}var wn,xn={};(function(){function e(r,o){function i(e,t){try{e()}catch(n){t&&t()}}function a(e){if(null!=a[e])return a[e];var t;if("bug-string-char-index"==e)t="a"!="a"[0];else if("json"==e)t=a("json-stringify")&&a("date-serialization")&&a("json-parse");else if("date-serialization"==e){if(t=a("json-stringify")&&_){var n=o.stringify;i((function(){t='"-271821-04-20T00:00:00.000Z"'==n(new d(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==n(new d(864e13))&&'"-000001-01-01T00:00:00.000Z"'==n(new d(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==n(new d(-1))}))}}else{var r,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var u="function"==typeof(n=o.stringify);u&&((r=function(){return 1}).toJSON=r,i((function(){u="0"===n(0)&&"0"===n(new l)&&'""'==n(new c)&&n(y)===v&&n(v)===v&&n()===v&&"1"===n(r)&&"[1]"==n([r])&&"[null]"==n([v])&&"null"==n(null)&&"[null,null,null]"==n([v,y,null])&&n({a:[r,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===n(null,r)&&"[\n 1,\n 2\n]"==n([1,2],null,1)}),(function(){u=!1}))),t=u}if("json-parse"==e){var p,f=o.parse;"function"==typeof f&&i((function(){0!==f("0")||f(!1)||(r=f(s),(p=5==r.a.length&&1===r.a[0])&&(i((function(){p=!f('"\t"')})),p&&i((function(){p=1!==f("01")})),p&&i((function(){p=1!==f("1.")}))))}),(function(){p=!1})),t=p}}return a[e]=!!t}function s(e){return j(this)}r||(r=n.Object()),o||(o=n.Object());var l=r.Number||n.Number,c=r.String||n.String,u=r.Object||n.Object,d=r.Date||n.Date,p=r.SyntaxError||n.SyntaxError,f=r.TypeError||n.TypeError,h=r.Math||n.Math,g=r.JSON||n.JSON;if("object"==typeof g&&g)return o.stringify=g.stringify,o.parse=g.parse,o.runInContext=e,o;var v,m=u.prototype,y=m.toString,b=m.hasOwnProperty,_=new d(-0xc782b5b800cec);if(i((function(){_=-109252==_.getUTCFullYear()&&0===_.getUTCMonth()&&1===_.getUTCDate()&&10==_.getUTCHours()&&37==_.getUTCMinutes()&&6==_.getUTCSeconds()&&708==_.getUTCMilliseconds()})),a["bug-string-char-index"]=a["date-serialization"]=a.json=a["json-stringify"]=a["json-parse"]=null,!a("json")){var w="[object Function]",x="[object Date]",S="[object Number]",k="[object String]",C="[object Array]",O="[object Boolean]",P=a("bug-string-char-index"),E=function(e,n){var r,o,i,a=0;for(i in(r=function(){this.valueOf=0}).prototype.valueOf=0,o=new r)b.call(o,i)&&a++;return r=o=null,a?E=function(e,t){var n,r,o=y.call(e)==w;for(n in e)o&&"prototype"==n||!b.call(e,n)||(r="constructor"===n)||t(n);(r||b.call(e,n="constructor"))&&t(n)}:(o=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],E=function(e,n){var r,i,a=y.call(e)==w,s=!a&&"function"!=typeof e.constructor&&t[typeof e.hasOwnProperty]&&e.hasOwnProperty||b;for(r in e)a&&"prototype"==r||!s.call(e,r)||n(r);for(i=o.length;r=o[--i];)s.call(e,r)&&n(r)}),E(e,n)};if(!a("json-stringify")&&!a("date-serialization")){var $={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},T="000000",I=function(e,t){return(T+(t||0)).slice(-e)},j=function(e){var t,n,r,o,i,a,s,l,c;if(_)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),l=e.getUTCSeconds(),c=e.getUTCMilliseconds()};else{var u=h.floor,d=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(e,t){return d[t]+365*(e-1970)+u((e-1969+(t=+(t>1)))/4)-u((e-1901+t)/100)+u((e-1601+t)/400)};t=function(e){for(o=u(e/864e5),n=u(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=u((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),a=u((i=(e%864e5+864e5)%864e5)/36e5)%24,s=u(i/6e4)%60,l=u(i/1e3)%60,c=i%1e3}}return(j=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+I(6,n<0?-n:n):I(4,n))+"-"+I(2,r+1)+"-"+I(2,o)+"T"+I(2,a)+":"+I(2,s)+":"+I(2,l)+"."+I(3,c)+"Z",n=r=o=a=s=l=c=null):e=null,e})(e)};if(a("json-stringify")&&!a("date-serialization")){var A=o.stringify;o.stringify=function(e,t,n){var r=d.prototype.toJSON;d.prototype.toJSON=s;var o=A(e,t,n);return d.prototype.toJSON=r,o}}else{var N="\\u00",D=function(e){var t=e.charCodeAt(0),n=$[t];return n||N+I(2,t.toString(16))},R=/[\x00-\x1f\x22\x5c]/g,L=function(e){return R.lastIndex=0,'"'+(R.test(e)?e.replace(R,D):e)+'"'},M=function(e,t,n,r,o,a,s){var l,c,u,p,h,g,m,b,_;if(i((function(){l=t[e]})),"object"==typeof l&&l&&(l.getUTCFullYear&&y.call(l)==x&&l.toJSON===d.prototype.toJSON?l=j(l):"function"==typeof l.toJSON&&(l=l.toJSON(e))),n&&(l=n.call(t,e,l)),l==v)return l===v?l:"null";switch("object"==(c=typeof l)&&(u=y.call(l)),u||c){case"boolean":case O:return""+l;case"number":case S:return l>-1/0&&l<1/0?""+l:"null";case"string":case k:return L(""+l)}if("object"==typeof l){for(m=s.length;m--;)if(s[m]===l)throw f();if(s.push(l),p=[],b=a,a+=o,u==C){for(g=0,m=l.length;g<m;g++)h=M(g,l,n,r,o,a,s),p.push(h===v?"null":h);_=p.length?o?"[\n"+a+p.join(",\n"+a)+"\n"+b+"]":"["+p.join(",")+"]":"[]"}else E(r||l,(function(e){var t=M(e,l,n,r,o,a,s);t!==v&&p.push(L(e)+":"+(o?" ":"")+t)})),_=p.length?o?"{\n"+a+p.join(",\n"+a)+"\n"+b+"}":"{"+p.join(",")+"}":"{}";return s.pop(),_}};o.stringify=function(e,n,r){var o,i,a,s;if(t[typeof n]&&n)if((s=y.call(n))==w)i=n;else if(s==C){a={};for(var l,c=0,u=n.length;c<u;)l=n[c++],"[object String]"!=(s=y.call(l))&&"[object Number]"!=s||(a[l]=1)}if(r)if((s=y.call(r))==S){if((r-=r%1)>0)for(r>10&&(r=10),o="";o.length<r;)o+=" "}else s==k&&(o=r.length<=10?r:r.slice(0,10));return M("",((l={})[""]=e,l),i,a,o,"",[])}}}if(!a("json-parse")){var B,F,z=c.fromCharCode,U={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},H=function(){throw B=F=null,p()},W=function(){for(var e,t,n,r,o,i=F,a=i.length;B<a;)switch(o=i.charCodeAt(B)){case 9:case 10:case 13:case 32:B++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=P?i.charAt(B):i[B],B++,e;case 34:for(e="@",B++;B<a;)if((o=i.charCodeAt(B))<32)H();else if(92==o)switch(o=i.charCodeAt(++B)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=U[o],B++;break;case 117:for(t=++B,n=B+4;B<n;B++)(o=i.charCodeAt(B))>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||H();e+=z("0x"+i.slice(t,B));break;default:H()}else{if(34==o)break;for(o=i.charCodeAt(B),t=B;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++B);e+=i.slice(t,B)}if(34==i.charCodeAt(B))return B++,e;H();default:if(t=B,45==o&&(r=!0,o=i.charCodeAt(++B)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(B+1))>=48&&o<=57&&H(),r=!1;B<a&&(o=i.charCodeAt(B))>=48&&o<=57;B++);if(46==i.charCodeAt(B)){for(n=++B;n<a&&!((o=i.charCodeAt(n))<48||o>57);n++);n==B&&H(),B=n}if(101==(o=i.charCodeAt(B))||69==o){for(43!=(o=i.charCodeAt(++B))&&45!=o||B++,n=B;n<a&&!((o=i.charCodeAt(n))<48||o>57);n++);n==B&&H(),B=n}return+i.slice(t,B)}r&&H();var s=i.slice(B,B+4);if("true"==s)return B+=4,!0;if("fals"==s&&101==i.charCodeAt(B+4))return B+=5,!1;if("null"==s)return B+=4,null;H()}return"$"},V=function(e){var t,n;if("$"==e&&H(),"string"==typeof e){if("@"==(P?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=W());)n?","==e?"]"==(e=W())&&H():H():n=!0,","==e&&H(),t.push(V(e));return t}if("{"==e){for(t={};"}"!=(e=W());)n?","==e?"}"==(e=W())&&H():H():n=!0,","!=e&&"string"==typeof e&&"@"==(P?e.charAt(0):e[0])&&":"==W()||H(),t[e.slice(1)]=V(W());return t}H()}return e},q=function(e,t,n){var r=K(e,t,n);r===v?delete e[t]:e[t]=r},K=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if(y.call(o)==C)for(r=o.length;r--;)q(y,E,o,r,n);else E(o,(function(e){q(o,e,n)}));return n.call(e,t,o)};o.parse=function(e,t){var n,r;return B=0,F=""+e,n=V(W()),"$"!=W()&&H(),B=F=null,t&&y.call(t)==w?K(((r={})[""]=n,r),"",t):n}}}return o.runInContext=e,o}var t={function:!0,object:!0},n=t[typeof window]&&window||this,r=n.JSON,o=n.JSON3,i=!1,a=e(n,n.JSON3={noConflict:function(){return i||(i=!0,n.JSON=r,n.JSON3=o,r=o=null),a}});n.JSON={parse:a.parse,stringify:a.stringify}}).call(window),wn=function(e){if(e.atob)try{e.atob(" ")}catch(wn){e.atob=(r=e.atob,(o=function(e){return r(String(e).replace(/[\t\n\f\r ]+/g,""))}).original=r,o)}else{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;e.btoa=function(e){for(var n,r,o,i,a="",s=0,l=(e=String(e)).length%3;s<e.length;){if((r=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255||(i=e.charCodeAt(s++))>255)return"";n=r<<16|o<<8|i,a+=t.charAt(n>>18&63)+t.charAt(n>>12&63)+t.charAt(n>>6&63)+t.charAt(63&n)}return l?a.slice(0,l-3)+"===".substring(l):a},e.atob=function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!n.test(e))return"";e+="==".slice(2-(3&e.length));for(var r,o,i,a="",s=0;s<e.length;)r=t.indexOf(e.charAt(s++))<<18|t.indexOf(e.charAt(s++))<<12|(o=t.indexOf(e.charAt(s++)))<<6|(i=t.indexOf(e.charAt(s++))),a+=64===o?String.fromCharCode(r>>16&255):64===i?String.fromCharCode(r>>16&255,r>>8&255):String.fromCharCode(r>>16&255,r>>8&255,255&r);return a}}var r,o},wn(window);var Sn,kn={setup:function(e){Sn=e},log:function(){(Sn||console&&console.log||function(){}).apply(null,arguments)}},Cn={get:function(e){return window.localStorage.getItem(e)},parse:function(e){var t;try{t=JSON.parse(Cn.get(e))||null}catch(n){kn.log(n)}return t},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(n){kn.log(n)}},remove:function(e){window.localStorage.removeItem(e)},isSupport:function(){var e=!0;try{var t="__local_store_support__",n="testIsSupportStorage";Cn.set(t,n),Cn.get(t)!==n&&(e=!1),Cn.remove(t)}catch(r){e=!1}return e}},On=function(){function e(){return(t=(9301*t+49297)%233280)/233280}var t=(new Date).getTime();return function(t){return Math.ceil(e()*t)}}();a.prototype.get=function(e,n,o,a){if(!e)throw new Error("key is must");n=n||1e4,o=o||1e3,a=a||function(){};var s=this.lockGetPrefix+e,l=Cn.get(s),c=String(r());return l&&(l=i(l)||{randomNum:0,expireTime:0}).expireTime>t()?a(null):(Cn.set(s,JSON.stringify({randomNum:c,expireTime:t()+n})),void setTimeout((function(){(l=i(Cn.get(s))||{randomNum:0,expireTime:0})&&l.randomNum===c?(a(Cn.get(e)),Cn.remove(e),Cn.remove(s)):a(null)}),o))},a.prototype.set=function(e,n,o,a,s){if(!e||!n)throw new Error("key and val is must");o=o||1e4,a=a||1e3,s=s||function(){};var l=this.lockSetPrefix+e,c=Cn.get(l),u=String(r());return c&&(c=i(c)||{randomNum:0,expireTime:0}).expireTime>t()?s({status:"fail",reason:"This key is locked"}):(Cn.set(l,JSON.stringify({randomNum:u,expireTime:t()+o})),void setTimeout((function(){(c=i(Cn.get(l))||{randomNum:0,expireTime:0}).randomNum===u?Cn.set(e,n)&&s({status:"success"}):s({status:"fail",reason:"This key is locked"})}),a))},l.prototype.on=function(e,t){if(!e||!t)return!1;if(!s(t))throw new Error("listener must be a function");this._events[e]=this._events[e]||[];var n="object"==typeof t;return this._events[e].push(n?t:{listener:t,once:!1}),this},l.prototype.prepend=function(e,t){if(!e||!t)return!1;if(!s(t))throw new Error("listener must be a function");this._events[e]=this._events[e]||[];var n="object"==typeof t;return this._events[e].unshift(n?t:{listener:t,once:!1}),this},l.prototype.prependOnce=function(e,t){return this.prepend(e,{listener:t,once:!0})},l.prototype.once=function(e,t){return this.on(e,{listener:t,once:!0})},l.prototype.off=function(e,t){var n=this._events[e];if(!n)return!1;if("number"==typeof t)n.splice(t,1);else if("function"==typeof t)for(var r=0,o=n.length;r<o;r++)n[r]&&n[r].listener===t&&n.splice(r,1);return this},l.prototype.emit=function(e,t){var n=this._events[e];if(!n)return!1;for(var r=0;r<n.length;r++){var o=n[r];o&&(o.listener.call(this,t||{}),o.once&&this.off(e,r))}return this},l.prototype.removeAllListeners=function(e){e&&this._events[e]?this._events[e]=[]:this._events={}},l.prototype.listeners=function(e){return e&&"string"==typeof e?this._events[e]:this._events};var Pn=function(){var e=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)},t=function(){return r().toString(16).replace(".","")},n=function(){function e(e,t){var n,r=0;for(n=0;n<t.length;n++)r|=o[n]<<8*n;return e^r}var t,n,r=navigator.userAgent,o=[],i=0;for(t=0;t<r.length;t++)n=r.charCodeAt(t),o.unshift(255&n),o.length>=4&&(i=e(i,o),o=[]);return o.length>0&&(i=e(i,o)),i.toString(16)};return function(){var o=String(screen.height*screen.width);o=o&&/\d{5,}/.test(o)?o.toString(16):String(31242*r()).replace(".","").slice(0,8);var i=e()+"-"+t()+"-"+n()+"-"+o+"-"+e();return i||(String(r())+String(r())+String(r())).slice(2,15)}}(),En=function(e){this.ele=e},$n=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n};En.prototype={addClass:function(e){return-1===(" "+this.ele.className+" ").indexOf(" "+e+" ")&&(this.ele.className=this.ele.className+(""===this.ele.className?"":" ")+e),this},removeClass:function(e){var t=" "+this.ele.className+" ";return-1!==t.indexOf(" "+e+" ")&&(this.ele.className=t.replace(" "+e+" "," ").slice(1,-1)),this},hasClass:function(e){return-1!==(" "+this.ele.className+" ").indexOf(" "+e+" ")},attr:function(e,t){return"string"==typeof e&&v(t)?this.ele.getAttribute(e):("string"==typeof e&&(t=String(t),this.ele.setAttribute(e,t)),this)},offset:function(){var e=this.ele.getBoundingClientRect();if(e.width||e.height){var t=this.ele.ownerDocument.documentElement;return{top:e.top+window.pageYOffset-t.clientTop,left:e.left+window.pageXOffset-t.clientLeft}}return{top:0,left:0}},getSize:function(){if(!window.getComputedStyle)return{width:this.ele.offsetWidth,height:this.ele.offsetHeight};try{var e=this.ele.getBoundingClientRect();return{width:e.width,height:e.height}}catch(wn){return{width:0,height:0}}},getStyle:function(e){return this.ele.currentStyle?this.ele.currentStyle[e]:this.ele.ownerDocument.defaultView.getComputedStyle(this.ele,null).getPropertyValue(e)},wrap:function(e){var t=document.createElement(e);return this.ele.parentNode.insertBefore(t,this.ele),t.appendChild(this.ele),b(t)},getCssStyle:function(e){var t=this.ele.style.getPropertyValue(e);if(t)return t;var n=null;if("function"==typeof window.getMatchedCSSRules&&(n=window.getMatchedCSSRules(this.ele)),!n||!y(n))return null;for(var r=n.length-1;r>=0;r--)if(t=n[r].style.getPropertyValue(e))return t},sibling:function(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e},next:function(){return this.sibling(this.ele,"nextSibling")},prev:function(){return this.sibling(this.ele,"previousSibling")},siblings:function(){return $n((this.ele.parentNode||{}).firstChild,this.ele)},children:function(){return $n(this.ele.firstChild)},parent:function(){var e=this.ele.parentNode;return b(e=e&&11!==e.nodeType?e:null)},previousElementSibling:function(){var e=this.ele;if("previousElementSibling"in document.documentElement)return b(e.previousElementSibling);for(;e=e.previousSibling;)if(1===e.nodeType)return b(e);return b(null)},getSameTypeSiblings:function(){for(var e=this.ele,t=e.parentNode,n=e.tagName.toLowerCase(),r=[],o=0;o<t.children.length;o++){var i=t.children[o];1===i.nodeType&&i.tagName.toLowerCase()===n&&r.push(t.children[o])}return r},getParents:function(){try{var e=this.ele;if(!g(e))return[];var t=[e];if(null===e||null===e.parentElement)return[];for(;null!==e.parentElement;)e=e.parentElement,t.push(e);return t}catch(n){return[]}}};var Tn=Array.prototype.forEach,In=Object.prototype.hasOwnProperty,jn=Object.prototype.hasOwnProperty,An={get:function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return c(o.substring(t.length,o.length))}return null},set:function(e,t,n,r,o,i,a){function s(e){return!!e&&e.replace(/\r\n/g,"")}var l=a,c="",u="",p="";if(0!==(n=null==n?73e3:n)){var f=new Date;"s"===String(n).slice(-1)?f.setTime(f.getTime()+1e3*Number(String(n).slice(0,-1))):f.setTime(f.getTime()+24*n*60*60*1e3),c="; expires="+f.toGMTString()}d(o)&&""!==o&&(p="; SameSite="+o),i&&(u="; secure");var h="",g="",v="";e&&(h=s(e)),t&&(g=s(t)),l&&(v=s(l)),h&&g&&(document.cookie=h+"="+encodeURIComponent(g)+c+"; path=/"+v+p+u)},remove:function(e,t){this.set(e,"1",-1,t)},isSupport:function(e,t){function n(){return r.set(e,t),r.get(e)===t&&(r.remove(e),!0)}e=e||"cookie_support_test",t=t||"1";var r=this;return navigator.cookieEnabled&&n()}},Nn=Object.prototype.hasOwnProperty,Dn={isSupport:function(){var e=!0,t="__session_storage_support__",n="testIsSupportStorage";try{sessionStorage&&sessionStorage.setItem?(sessionStorage.setItem(t,n),sessionStorage.removeItem(t,n),e=!0):e=!1}catch(r){e=!1}return e}},Rn={"+":"-","/":"_","=":"."},Ln={"-":"+",_:"/",".":"="},Mn={__proto__:null,ConcurrentStorage:a,EventEmitter:l,URL:h,UUID:Pn,addEvent:_,addHashEvent:w,ajax:C,base64Decode:P,base64Encode:E,bindReady:$,cookie:An,coverExtend:T,decodeURI:I,decodeURIComponent:c,dfmapping:j,each:S,encodeDates:D,extend:k,extend2Lev:R,filter:L,formatDate:N,formatJsonString:M,getCookieTopLevelDomain:F,getDomBySelector:z,getElementContent:U,getHostname:H,getIOSVersion:W,getQueryParam:V,getQueryParamsFromUrl:q,getRandom:r,getRandomBasic:On,getScreenOrientation:J,getUA:G,getURL:Y,getURLPath:X,getURLSearchParams:u,hasAttribute:Z,hasAttributes:Q,hashCode:ee,hashCode53:te,indexOf:ne,inherit:re,isArguments:oe,isArray:y,isBoolean:ie,isDate:A,isElement:g,isEmptyObject:ae,isFunction:e,isHttpUrl:se,isIOS:le,isJSONString:ce,isNumber:ue,isObject:n,isString:d,isSupportBeaconSend:de,isSupportCors:pe,isUndefined:v,jsonp:fe,listenPageState:he,loadScript:ge,localStorage:Cn,logger:kn,map:O,mediaQueriesSupported:K,now:t,removeScriptProtocol:ve,rot13defs:ye,rot13obfs:me,ry:b,safeJSONParse:i,searchObjDate:be,sessionStorage:Dn,setCssStyle:_e,strToUnicode:we,throttle:xe,toArray:ke,trim:p,unique:Ce,urlParse:f,urlSafeBase64:{encode:function(e){return e.replace(/[+\/=]/g,(function(e){return Rn[e]}))},decode:function(e){return e.replace(/[-_.]/g,(function(e){return Ln[e]}))},trim:function(e){return e.replace(/[.=]{1,2}$/,"")},isBase64:function(e){return/^[A-Za-z0-9+\/]*[=]{0,2}$/.test(e)},isUrlSafeBase64:function(e){return/^[A-Za-z0-9_-]*[.]{0,2}$/.test(e)}},values:Se,xhr:x},Bn={},Fn={preset_properties:{search_keyword_baidu:!1,latest_utm:!0,latest_traffic_source_type:!0,latest_search_keyword:!0,latest_referrer:!0,latest_referrer_host:!1,latest_landing_page:!1,latest_wx_ad_click_id:void 0,url:!0,title:!0},encrypt_cookie:!1,enc_cookie:!1,img_use_crossorigin:!1,name:"sa",max_referrer_string_length:200,max_string_length:500,max_id_length:255,max_key_length:100,cross_subdomain:!0,show_log:!1,is_debug:!1,debug_mode:!1,debug_mode_upload:!1,source_channel:[],sdk_id:"",send_type:"image",vtrack_ignore:{},auto_init:!0,is_track_single_page:!1,is_single_page:!1,batch_send:!1,source_type:{},callback_timeout:200,datasend_timeout:8e3,is_track_device_id:!1,ignore_oom:!0,app_js_bridge:!1},zn="data:enc;",Un="dfm-enc-",Hn={distinct_id:function(){},jssdkDebug:function(){},_sendDebug:function(e){},apph5:function(e){var t="app_h5打通失败-",r={1:t+"use_app_track为false",2:t+"Android或者iOS,没有暴露相应方法",3.1:t+"Android校验server_url失败",3.2:t+"iOS校验server_url失败",4.1:t+"H5 校验 iOS server_url 失败",4.2:t+"H5 校验 Android server_url 失败"},o=e.output,i=e.step,a=e.data||"";"all"!==o&&"console"!==o||Oe(r[i]),("all"===o||"code"===o)&&n(Bn.is_debug)&&Bn.is_debug.apph5&&(a.type&&"profile"===a.type.slice(0,7)||(a.properties._jssdk_debug_info="apph5-"+String(i)))},defineMode:function(e){var t={1:{title:"当前页面无法进行可视化全埋点",message:"App SDK 与 Web JS SDK 没有进行打通,请联系贵方技术人员修正 App SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"},2:{title:"当前页面无法进行可视化全埋点",message:"App SDK 与 Web JS SDK 没有进行打通,请联系贵方技术人员修正 Web JS SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"},3:{title:"当前页面无法进行可视化全埋点",message:"Web JS SDK 没有开启全埋点配置,请联系贵方工作人员修正 SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_web_all-1573964.html"},4:{title:"当前页面无法进行可视化全埋点",message:"Web JS SDK 配置的数据校验地址与 App SDK 配置的数据校验地址不一致,请联系贵方工作人员修正 SDK 的配置,详细信息请查看文档。",link_text:"配置文档",link_url:"https://manual.sensorsdata.cn/sa/latest/tech_sdk_client_link-1573913.html"}};return!(!e||!t[e])&&t[e]},protocol:{protocolIsSame:function(e,t){try{if(h(e).protocol!==h(t).protocol)return!1}catch(n){return Oe("不支持 _.URL 方法"),!1}return!0},serverUrl:function(){d(Bn.server_url)&&""!==Bn.server_url&&!this.protocolIsSame(Bn.server_url,location.href)&&Oe("SDK 检测到您的数据发送地址和当前页面地址的协议不一致,建议您修改成一致的协议。\n因为:1、https 下面发送 http 的图片请求会失败。2、http 页面使用 https + ajax 方式发数据,在 ie9 及以下会丢失数据。")},ajax:function(e){return e!==Bn.server_url&&void(d(e)&&""!==e&&!this.protocolIsSame(e,location.href)&&Oe("SDK 检测到您的数据发送地址和当前页面地址的协议不一致,建议您修改成一致的协议。因为 http 页面使用 https + ajax 方式发数据,在 ie9 及以下会丢失数据。"))}}},Wn="utm_source utm_medium utm_campaign utm_content utm_term",Vn="1.23.5",qn="sensorsdata_domain_test",Kn={EMAIL:"$identity_email",MOBILE:"$identity_mobile",LOGIN:"$identity_login_id"},Jn={data:{},id:function(){return this.data.id||(this.data.id=Re()),this.data.id},type:function(){return this.data.type||(this.data.type=Le()),this.data.type}},Gn={initPage:function(){var e=Be(),t=Y(),n=Ae(t);n||Hn.jssdkDebug("url_domain异常_"+t+"_"+n),this.pageProp={referrer:e,referrer_host:e?H(e):"",url:t,url_host:H(t,"url_host取值异常"),url_domain:n}},pageProp:{},campaignParams:function(){return xn.kit.getUtmData()},campaignParamsStandard:function(e,t){e=e||"",t=t||"";var n=Gn.campaignParams(),r={},o={};return S(n,(function(n,i,a){-1!==(" "+Wn+" ").indexOf(" "+i+" ")?r[e+i]=a[i]:o[t+i]=a[i]})),{$utms:r,otherUtms:o}},properties:function(){var e=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0,t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;return{$timezone_offset:(new Date).getTimezoneOffset(),$screen_height:Number(screen.height)||0,$screen_width:Number(screen.width)||0,$viewport_height:e,$viewport_width:t,$lib:"js",$lib_version:Vn}},currentProps:{},register:function(e){k(Gn.currentProps,e)}},Yn={get:function(e){return An.get(e)},set:function(e,t,n,r){var o="";if(r=void 0===r?Bn.cross_subdomain:r){var i=Ae(location.href);"url解析失败"===i&&(i=""),o=i?"; domain="+i:""}return An.set(e,t,n,r,Bn.set_cookie_samesite,Bn.is_secure_cookie,o)},remove:function(e,t){return t=void 0===t?Bn.cross_subdomain:t,An.remove(e,t)},isSupport:function(e,t){return e=e||"sajssdk_2015_cookie_access_test",t=t||"1",An.isSupport(e,t)}};Yn.getNewUser=Ye;var Xn={data:{},get:function(e){var t=this.data[e];return void 0===t?null:void 0!==t._expirationTimestamp_?(new Date).getTime()>t._expirationTimestamp_?null:t.value:t},set:function(e,t,n){if(n){var r=new Date;t={value:t,_expirationTimestamp_:"s"===String(n).slice(-1)?r.getTime()+1e3*Number(String(n).slice(0,-1)):r.getTime()+24*n*60*60*1e3}}this.data[e]=t},getNewUserFlagMemoryKey:function(e){return"sajssdk_2015_"+Bn.sdk_id+e}},Zn={checkIsAddSign:function(e){"track"===e.type&&(Ye()?e.properties.$is_first_day=!0:e.properties.$is_first_day=!1)},is_first_visit_time:!1,is_page_first_visited:!1,checkIsFirstTime:function(e){"track"===e.type&&"$pageview"===e.event&&(this.is_first_visit_time?(e.properties.$is_first_time=!0,this.is_first_visit_time=!1):e.properties.$is_first_time=!1)},setDeviceId:function(e){var t=null,n=Yn.get("sensorsdata2015jssdkcross"+xn.para.sdk_id),r={};null!=(n=Ee(n))&&ce(n)&&(r=JSON.parse(n)).$device_id&&(t=r.$device_id),t=t||e,!0===xn.para.cross_subdomain?xn.store.set("$device_id",t):(r.$device_id=t,r=JSON.stringify(r),xn.para.encrypt_cookie&&(r=$e(r)),Yn.set("sensorsdata2015jssdkcross"+xn.para.sdk_id,r,null,!0)),xn.para.is_track_device_id&&(Gn.currentProps.$device_id=t)},storeInitCheck:function(){if(xn.is_first_visitor){var e=new Date,t={h:23-e.getHours(),m:59-e.getMinutes(),s:59-e.getSeconds()};Yn.isSupport()?Yn.set(Ge("new_user"),"1",3600*t.h+60*t.m+t.s+"s"):Xn.set(Xn.getNewUserFlagMemoryKey("new_user"),"1",3600*t.h+60*t.m+t.s+"s"),this.is_first_visit_time=!0,this.is_page_first_visited=!0}else Ye()||(this.checkIsAddSign=function(e){"track"===e.type&&(e.properties.$is_first_day=!1)}),this.checkIsFirstTime=function(e){"track"===e.type&&"$pageview"===e.event&&(e.properties.$is_first_time=!1)}},checkIsFirstLatest:function(){var e=Gn.pageProp.url_domain,t={};""===e&&(e="url解析失败");var r=ze(document.referrer,!0);if(xn.para.preset_properties.search_keyword_baidu?Me(document.referrer)&&(!De()||n(r)&&r.active?xn.store._state&&xn.store._state.props&&(xn.store._state.props.$search_keyword_id&&delete xn.store._state.props.$search_keyword_id,xn.store._state.props.$search_keyword_id_type&&delete xn.store._state.props.$search_keyword_id_type,xn.store._state.props.$search_keyword_id_hash&&delete xn.store._state.props.$search_keyword_id_hash):(t.$search_keyword_id=Jn.id(),t.$search_keyword_id_type=Jn.type(),t.$search_keyword_id_hash=te(t.$search_keyword_id))):xn.store._state&&xn.store._state.props&&(xn.store._state.props.$search_keyword_id&&delete xn.store._state.props.$search_keyword_id,xn.store._state.props.$search_keyword_id_type&&delete xn.store._state.props.$search_keyword_id_type,xn.store._state.props.$search_keyword_id_hash&&delete xn.store._state.props.$search_keyword_id_hash),xn.store.save(),S(xn.para.preset_properties,(function(r,o){if(-1===o.indexOf("latest_"))return!1;if(o=o.slice(7),r){if("wx_ad_click_id"===o&&"not_collect"===r)return!1;if("utm"!==o&&"url解析失败"===e)"wx_ad_click_id"===o?(t._latest_wx_ad_click_id="url的domain解析失败",t._latest_wx_ad_hash_key="url的domain解析失败",t._latest_wx_ad_callbacks="url的domain解析失败"):t["$latest_"+o]="url的domain解析失败";else if(Me(document.referrer))switch(o){case"traffic_source_type":t.$latest_traffic_source_type=He();break;case"referrer":t.$latest_referrer=Gn.pageProp.referrer;break;case"search_keyword":ze()?t.$latest_search_keyword=ze():n(xn.store._state)&&n(xn.store._state.props)&&xn.store._state.props.$latest_search_keyword&&delete xn.store._state.props.$latest_search_keyword;break;case"landing_page":t.$latest_landing_page=Y();break;case"wx_ad_click_id":var i=Ue(location.href);t._latest_wx_ad_click_id=i.click_id,t._latest_wx_ad_hash_key=i.hash_key,t._latest_wx_ad_callbacks=i.callbacks}}else if("utm"===o&&xn.store._state&&xn.store._state.props)for(var a in xn.store._state.props)(0===a.indexOf("$latest_utm")||0===a.indexOf("_latest_")&&a.indexOf("_latest_wx_ad_")<0)&&delete xn.store._state.props[a];else xn.store._state&&xn.store._state.props&&"$latest_"+o in xn.store._state.props?delete xn.store._state.props["$latest_"+o]:"wx_ad_click_id"==o&&xn.store._state&&xn.store._state.props&&!1===r&&S(["_latest_wx_ad_click_id","_latest_wx_ad_hash_key","_latest_wx_ad_callbacks"],(function(e){e in xn.store._state.props&&delete xn.store._state.props[e]}))})),xn.register(t),xn.para.preset_properties.latest_utm){var o=Gn.campaignParamsStandard("$latest_","_latest_"),i=o.$utms,a=o.otherUtms;ae(i)||xn.register(i),ae(a)||xn.register(a)}}},Qn={requests:[],_sessionState:{},_state:{distinct_id:"",first_id:"",props:{},identities:{}},getProps:function(){return this._state.props||{}},getSessionProps:function(){return this._sessionState},getOriginDistinctId:function(){return this._state._distinct_id||this._state.distinct_id},getOriginUnionId:function(e){var t={},n=(e=e||this._state)._first_id||e.first_id,r=e._distinct_id||e.distinct_id;return n&&r?(t.login_id=r,t.anonymous_id=n):t.anonymous_id=r,t},getDistinctId:function(){var e=this.getUnionId();return e.login_id||e.anonymous_id},getUnionId:function(e){var t=this.getOriginUnionId(e);return t.login_id&&this._state.history_login_id&&this._state.history_login_id.name&&this._state.history_login_id.name!==xn.IDENTITY_KEY.LOGIN&&(t.login_id=this._state.history_login_id.name+"+"+t.login_id),t},getFirstId:function(){return this._state._first_id||this._state.first_id},initSessionState:function(){var e=Yn.get("sensorsdata2015session"),t=null;null!==(e=Ee(e))&&"object"==typeof(t=i(e))&&(this._sessionState=t||{})},setOnce:function(e,t){e in this._state||this.set(e,t)},set:function(e,t){this._state=this._state||{};var n=this._state.distinct_id;this._state[e]=t,"first_id"===e?delete this._state._first_id:"distinct_id"===e&&delete this._state._distinct_id,this.save(),"distinct_id"===e&&n&&xn.events.tempAdd("changeDistinctId",t)},change:function(e,t){this._state["_"+e]=t},setSessionProps:function(e){var t=this._sessionState;k(t,e),this.sessionSave(t)},setSessionPropsOnce:function(e){var t=this._sessionState;T(t,e),this.sessionSave(t)},setProps:function(e,t){var n={};for(var r in n=t?e:k(this._state.props||{},e))"string"==typeof n[r]&&(n[r]=n[r].slice(0,xn.para.max_referrer_string_length));this.set("props",n)},setPropsOnce:function(e){var t=this._state.props||{};T(t,e),this.set("props",t)},clearAllProps:function(e){var t;if(this._sessionState={},y(e)&&e.length>0)for(t=0;t<e.length;t++)d(e[t])&&-1===e[t].indexOf("latest_")&&n(this._state.props)&&e[t]in this._state.props&&delete this._state.props[e[t]];else if(n(this._state.props))for(t in this._state.props)1!==t.indexOf("latest_")&&delete this._state.props[t];this.sessionSave({}),this.save()},sessionSave:function(e){this._sessionState=e;var t=JSON.stringify(this._sessionState);xn.para.encrypt_cookie&&(t=$e(t)),Yn.set("sensorsdata2015session",t,0)},save:function(){var e=JSON.parse(JSON.stringify(this._state));delete e._first_id,delete e._distinct_id,e.identities&&(e.identities=E(JSON.stringify(e.identities)));var t=JSON.stringify(e);xn.para.encrypt_cookie&&(t=$e(t)),Yn.set(this.getCookieName(),t,73e3,xn.para.cross_subdomain)},getCookieName:function(){var e="";if(!1===xn.para.cross_subdomain){try{e=h(location.href).hostname}catch(wn){xn.log(wn)}e="string"==typeof e&&""!==e?"sa_jssdk_2015_"+xn.para.sdk_id+e.replace(/\./g,"_"):"sa_jssdk_2015_root"+xn.para.sdk_id}else e="sensorsdata2015jssdkcross"+xn.para.sdk_id;return e},init:function(){function e(e){var t;e.identities&&(0===e.identities.indexOf("\n/")?e.identities=i(ye(e.identities)):e.identities=i(P(e.identities)));var r=Qn.getOriginUnionId(e);e.identities&&n(e.identities)&&!ae(e.identities)?e.identities.$identity_anonymous_id&&e.identities.$identity_anonymous_id!==r.anonymous_id&&(e.identities.$identity_anonymous_id=r.anonymous_id):(e.identities={},e.identities.$identity_anonymous_id=r.anonymous_id,e.identities.$identity_cookie_id=Pn()),e.history_login_id=e.history_login_id||{};var o=e.history_login_id.name;if(r.login_id)if(o&&e.identities.hasOwnProperty(o)){if(e.identities[o]!==r.login_id){for(t in e.identities[o]=r.login_id,e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&t!==o&&delete e.identities[t];e.history_login_id.value=r.login_id}}else{var a=o||xn.IDENTITY_KEY.LOGIN;for(t in e.identities[a]=r.login_id,e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&t!==a&&delete e.identities[t];e.history_login_id={name:a,value:r.login_id}}else{if(e.identities.hasOwnProperty("$identity_login_id")||e.identities.hasOwnProperty(o))for(t in e.identities)e.identities.hasOwnProperty(t)&&"$identity_cookie_id"!==t&&"$identity_anonymous_id"!==t&&delete e.identities[t];e.history_login_id={name:"",value:""}}return e}function t(e){xn.store.set("distinct_id",e),xn.store.set("identities",{$identity_cookie_id:e}),xn.store.set("history_login_id",{name:"",value:""})}this.initSessionState();var r,o,a=Pn();Yn.isSupport()&&(o=i(r=Ee(r=Yn.get(this.getCookieName())))),Yn.isSupport()&&null!==r&&ce(r)&&n(o)&&(!n(o)||o.distinct_id)?(xn.store._state=k(e(o)),xn.store.save()):(xn.is_first_visitor=!0,t(a)),Zn.setDeviceId(a),Zn.storeInitCheck(),Zn.checkIsFirstLatest()},saveObjectVal:function(e,t){d(t)||(t=JSON.stringify(t)),1==xn.para.encrypt_cookie&&(t=$e(t)),Cn.set(e,t)},readObjectVal:function(e){var t=Cn.get(e);return t?i(t=Ee(t)):null}},er={string:function(e){Oe(e+" must be string")},emptyString:function(e){Oe(e+"'s is empty")},regexTest:function(e){Oe(e+" is invalid")},idLength:function(e){Oe(e+" length is longer than "+Bn.max_id_length)},keyLength:function(e){Oe(e+" length is longer than "+Bn.max_key_length)},stringLength:function(e){Oe(e+" length is longer than "+Bn.max_string_length)},voidZero:function(e){Oe(e+"'s is undefined")},reservedLoginId:function(e){Oe(e+" is invalid")},reservedBind:function(e){Oe(e+" is invalid")},reservedUnbind:function(e){Oe(e+" is invalid")}},tr={regName:/^((?!^distinct_id$|^original_id$|^time$|^properties$|^id$|^first_id$|^second_id$|^users$|^events$|^event$|^user_id$|^date$|^datetime$|^user_tag.*|^user_group.*)[a-zA-Z_$][a-zA-Z\d_$]*)$/i,loginIDReservedNames:["$identity_anonymous_id","$identity_cookie_id"],bindReservedNames:["$identity_login_id","$identity_anonymous_id","$identity_cookie_id"],unbindReservedNames:["$identity_anonymous_id",Kn.LOGIN],string:function(e){return!!d(e)},emptyString:function(e){return!(!d(e)||0===p(e).length)},regexTest:function(e){return!(!d(e)||!this.regName.test(e))},idLength:function(e){return!(!d(e)||e.length>Bn.max_id_length)},keyLength:function(e){return!(!d(e)||e.length>Bn.max_key_length)},stringLength:function(e){return!(!d(e)||e.length>Bn.max_string_length)},voidZero:function(e){return void 0!==e},reservedLoginId:function(e){return!(ne(this.loginIDReservedNames,e)>-1)},reservedUnbind:function(e){return!(ne(this.unbindReservedNames,e)>-1)},reservedBind:function(e){var t=Qn._state.history_login_id;return!(t&&t.name&&t.name===e||ne(this.bindReservedNames,e)>-1)}},nr={distinct_id:{rules:["string","emptyString","idLength"],onComplete:function(t,n,r){return!t&&("emptyString"===r&&(n="Id"),e(er[r])&&er[r](n),"idLength"===r)||t}},event:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(t,n,r){return t||("emptyString"===r&&(n="eventName"),e(er[r])&&er[r](n)),!0}},propertyKey:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(t,n,r){return t||("emptyString"===r&&(n="Property key"),e(er[r])&&er[r](n)),!0}},propertyValue:{rules:["voidZero"],onComplete:function(t,n,r){return t||(n="Property Value",e(er[r])&&er[r](n)),!0}},properties:function(t){return n(t)?S(t,(function(t,n){Xe({propertyKey:n}),Xe({propertyValue:t},(function(t,r,o){return t||(r=n+"'s Value",e(er[o])&&er[o](r)),!0}))})):tr.voidZero(t)&&Oe("properties可以没有,但有的话必须是对象"),!0},propertiesMust:function(e){return void 0!==e&&n(e)&&!ae(e)?this.properties.call(this,e):Oe("properties必须是对象"),!0},item_type:{rules:["string","emptyString","keyLength","regexTest"],onComplete:function(t,n,r){return t||("emptyString"===r&&(n="item_type"),e(er[r])&&er[r](n)),!0}},item_id:{rules:["string","emptyString","stringLength"],onComplete:function(t,n,r){return t||("emptyString"===r&&(n="item_id"),e(er[r])&&er[r](n)),!0}},loginIdKey:{rules:["string","emptyString","keyLength","regexTest","reservedLoginId"],onComplete:function(t,n,r){return!t&&("emptyString"===r&&(n="login_id_key"),e(er[r])&&er[r](n),"keyLength"===r)||t}},bindKey:{rules:["string","emptyString","keyLength","regexTest","reservedBind"],onComplete:function(t,n,r){return!t&&("emptyString"===r&&(n="Key"),e(er[r])&&er[r](n),"keyLength"===r)||t}},unbindKey:{rules:["string","emptyString","keyLength","regexTest","reservedUnbind"],onComplete:function(t,n,r){return!t&&("emptyString"===r&&(n="Key"),e(er[r])&&er[r](n),"keyLength"===r)||t}},bindValue:{rules:["string","emptyString","idLength"],onComplete:function(t,n,r){return!t&&("emptyString"===r&&(n="Value"),e(er[r])&&er[r](n),"idLength"===r)||t}},check:function(t,n,r){var o=this[t];if(e(o))return o.call(this,n);if(!o)return!1;for(var i=0;i<o.rules.length;i++){var a=o.rules[i],s=tr[a](n),l=e(r)?r(s,n,a):o.onComplete(s,n,a);if(!s)return l}return!0}},rr={stage:null,init:function(e){this.stage=e}},or={};or.check=Xe,or.sendItem=function(e){var t={lib:{$lib:"js",$lib_method:"code",$lib_version:String(xn.lib_version)},time:1*new Date};k(t,e),rr.stage.process("formatData",t),xn.sendState.getSendCall(t)},or.send=function(e,t){var n=xn.kit.buildData(e);xn.kit.sendData(n,t)},or.debugPath=function(e){var t=e;qe({url:-1!==xn.para.debug_mode_url.indexOf("?")?xn.para.debug_mode_url+"&"+xn.kit.encodeTrackData(e):xn.para.debug_mode_url+"?"+xn.kit.encodeTrackData(e),type:"GET",cors:!0,header:{"Dry-Run":String(xn.para.debug_mode_upload)},success:function(e){!0===ae(e)?alert("debug数据发送成功"+t):alert("debug失败 错误原因"+JSON.stringify(e))}})};var ir={label:!1,li:!1,a:!0,button:!0},ar={otherTags:[],initUnlimitedTags:function(){S(ar.otherTags,(function(e){e in ir&&(ir[e]=!0)}))},isUnlimitedTag:function(e){if(!e||1!==e.nodeType)return!1;var t=e.nodeName.toLowerCase();return ir[t]||Q(e,xn.para.heatmap.track_attr)},getTargetElement:function(e,t){var n=this,r=e;if("object"!=typeof r)return null;if("string"!=typeof r.tagName)return null;var o=r.tagName.toLowerCase();if("body"===o.toLowerCase()||"html"===o.toLowerCase())return null;if(!r||!r.parentNode||!r.parentNode.children)return null;var i=r.parentNode,a=n.otherTags;if("a"===o||"button"===o||"input"===o||"textarea"===o)return r;if(ne(a,o)>-1)return r;if("area"===o&&"map"===i.tagName.toLowerCase()&&b(i).prev().tagName&&"img"===b(i).prev().tagName.toLowerCase())return b(i).prev();if("div"===o&&xn.para.heatmap.collect_tags.div&&n.isDivLevelValid(r)&&((xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div&&xn.para.heatmap.collect_tags.div.max_level||1)>1||n.isCollectableDiv(r)))return r;if(n.isStyleTag(o)&&xn.para.heatmap.collect_tags.div){var s=n.getCollectableParent(r);if(s&&n.isDivLevelValid(s))return s}return n.hasElement({event:t&&t.originalEvent||t,element:e},(function(e){return n.isUnlimitedTag(e)}))||null},getDivLevels:function(e,t){var n=ar.getElementPath(e,!0,t).split(" > "),r=0;return S(n,(function(e){"div"===e&&r++})),r},isDivLevelValid:function(e){for(var t=xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div&&xn.para.heatmap.collect_tags.div.max_level||1,n=e.getElementsByTagName("div"),r=n.length-1;r>=0;r--)if(ar.getDivLevels(n[r],e)>t)return!1;return!0},getElementPath:function(e,t,n){for(var r=[];e.parentNode;){if(e.id&&!t&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.id)){r.unshift(e.tagName.toLowerCase()+"#"+e.id);break}if(n&&e===n){r.unshift(e.tagName.toLowerCase());break}if(e===document.body){r.unshift("body");break}r.unshift(e.tagName.toLowerCase()),e=e.parentNode}return r.join(" > ")},getClosestLi:function(e){return function(e,t){for(;e&&e!==document&&1===e.nodeType;e=e.parentNode)if(e.tagName.toLowerCase()===t)return e;return null}(e,"li")},getElementPosition:function(e,t,n){function r(e){if(!e.parentNode)return"";if(1===b(e).getSameTypeSiblings().length)return 0;for(var t=0,n=e;b(n).previousElementSibling().ele;n=b(n).previousElementSibling().ele,t++);return t}var o=xn.heatmap.getClosestLi(e);if(!o)return null;var i=e.tagName.toLowerCase(),a=o.getElementsByTagName(i),s=a.length,l=[];if(s>1){for(var c=0;c<s;c++)xn.heatmap.getElementPath(a[c],n)===t&&l.push(a[c]);if(l.length>1)return ne(l,e)}return r(o)},setNotice:function(e){xn.is_heatmap_render_mode=!0,xn.para.heatmap||(xn.errorMsg="您SDK没有配置开启点击图,可能没有数据!"),e&&"http:"===e.slice(0,5)&&"https:"===location.protocol&&(xn.errorMsg="您的当前页面是https的地址,神策分析环境也必须是https!"),xn.para.heatmap_url||(xn.para.heatmap_url=Je()+"//static.sensorsdata.cn/sdk/"+xn.lib_version+"/heatmap.min.js")},getDomIndex:function(e){if(!e.parentNode)return-1;for(var t=0,n=e.tagName,r=e.parentNode.children,o=0;o<r.length;o++)if(r[o].tagName===n){if(e===r[o])return t;t++}return-1},selector:function(e,t){var n=e.parentNode&&9==e.parentNode.nodeType?-1:this.getDomIndex(e);return e.getAttribute&&e.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.getAttribute("id"))&&(!xn.para.heatmap||xn.para.heatmap&&"not_use_id"!==xn.para.heatmap.element_selector)&&!t?"#"+e.getAttribute("id"):e.tagName.toLowerCase()+(~n?":nth-of-type("+(n+1)+")":"")},getDomSelector:function(e,t,n){if(!e||!e.parentNode||!e.parentNode.children)return!1;t=t&&t.join?t:[];var r=e.nodeName.toLowerCase();return e&&"body"!==r&&1==e.nodeType?(t.unshift(this.selector(e,n)),e.getAttribute&&e.getAttribute("id")&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(e.getAttribute("id"))&&xn.para.heatmap&&"not_use_id"!==xn.para.heatmap.element_selector&&!n?t.join(" > "):this.getDomSelector(e.parentNode,t,n)):(t.unshift("body"),t.join(" > "))},na:function(){var e=document.documentElement.scrollLeft||window.pageXOffset;return parseInt(isNaN(e)?0:e,10)},i:function(){var e=0;try{e=o.documentElement&&o.documentElement.scrollTop||m.pageYOffset,e=isNaN(e)?0:e}catch(wn){e=0}return parseInt(e,10)},getBrowserWidth:function(){var e=window.innerWidth||document.body.clientWidth;return isNaN(e)?0:parseInt(e,10)},getBrowserHeight:function(){var e=window.innerHeight||document.body.clientHeight;return isNaN(e)?0:parseInt(e,10)},getScrollWidth:function(){var e=parseInt(document.body.scrollWidth,10);return isNaN(e)?0:e},getEleDetail:function(e){var t=this.getDomSelector(e),n=Ne({target:e});n.$element_selector=t||"",n.$element_path=xn.heatmap.getElementPath(e,xn.para.heatmap&&"not_use_id"===xn.para.heatmap.element_selector);var r=xn.heatmap.getElementPosition(e,n.$element_path,xn.para.heatmap&&"not_use_id"===xn.para.heatmap.element_selector);return ue(r)&&(n.$element_position=r),n},getPointerEventProp:function(e,t){function n(){return{scrollLeft:document.body.scrollLeft||document.documentElement.scrollLeft||0,scrollTop:document.body.scrollTop||document.documentElement.scrollTop||0}}function r(e){if(document.documentElement.getBoundingClientRect){var t=e.getBoundingClientRect();return{targetEleX:t.left+n().scrollLeft||0,targetEleY:t.top+n().scrollTop||0}}}function o(e){return Number(Number(e).toFixed(3))}function i(e){var i=e.pageX||e.clientX+n().scrollLeft||e.offsetX+r(t).targetEleX||0,a=e.pageY||e.clientY+n().scrollTop||e.offsetY+r(t).targetEleY||0;return{$page_x:o(i),$page_y:o(a)}}return e?i(e):{}},start:function(t,r,o,i,a){var s=n(i)?i:{},l=e(a)?a:e(i)?i:void 0;if(xn.para.heatmap&&xn.para.heatmap.collect_element&&!xn.para.heatmap.collect_element(r))return!1;var c=this.getEleDetail(r);if(xn.para.heatmap&&xn.para.heatmap.custom_property){var u=xn.para.heatmap.custom_property(r);n(u)&&(c=k(c,u))}c=k(c,this.getPointerEventProp(t,r),s),"a"===o&&xn.para.heatmap&&!0===xn.para.heatmap.isTrackLink?xn.trackLink({event:t,target:r},"$WebClick",c):xn.track("$WebClick",c,l)},hasElement:function(e,t){var n;if(e.event){var r=e.event;n=r.path||r._getPath&&r._getPath()}else e.element&&(n=b(e.element).getParents());if(n&&y(n)&&n.length>0)for(var o=0;o<n.length;o++)if("object"==typeof n[o]&&1===n[o].nodeType&&t(n[o]))return n[o]},isStyleTag:function(e,t){var r=["mark","/mark","strong","b","em","i","u","abbr","ins","del","s","sup"];return!(ne(["a","div","input","button","textarea"],e)>-1)&&(!t||xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div?!!(n(xn.para.heatmap)&&n(xn.para.heatmap.collect_tags)&&n(xn.para.heatmap.collect_tags.div)&&y(xn.para.heatmap.collect_tags.div.ignore_tags)&&ne(xn.para.heatmap.collect_tags.div.ignore_tags,e)>-1):ne(r,e)>-1)},isCollectableDiv:function(e,t){try{if(0===e.children.length)return!0;for(var n=0;n<e.children.length;n++)if(1===e.children[n].nodeType){var r=e.children[n].tagName.toLowerCase(),o=xn.para&&xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div&&xn.para.heatmap.collect_tags.div.max_level;if(!("div"===r&&o>1||this.isStyleTag(r,t)))return!1;if(!this.isCollectableDiv(e.children[n],t))return!1}return!0}catch(i){xn.log(i)}return!1},getCollectableParent:function(e,t){try{var n=e.parentNode,r=n?n.tagName.toLowerCase():"";if("body"===r)return!1;var o=xn.para&&xn.para.heatmap&&xn.para.heatmap.collect_tags&&xn.para.heatmap.collect_tags.div&&xn.para.heatmap.collect_tags.div.max_level;if(r&&"div"===r&&(o>1||this.isCollectableDiv(n,t)))return n;if(n&&this.isStyleTag(r,t))return this.getCollectableParent(n,t)}catch(i){xn.log(i)}return!1},listenUrlChange:function(e){e(),xn.ee.spa.on("switch",(function(){e()}))},initScrollmap:function(){if(!n(xn.para.heatmap)||"default"!==xn.para.heatmap.scroll_notice_map)return!1;var t=!0;xn.para.scrollmap&&e(xn.para.scrollmap.collect_url)&&this.listenUrlChange((function(){t=!!xn.para.scrollmap.collect_url()}));var r=function(e){var t={};return t.timeout=e.timeout||1e3,t.func=e.func,t.hasInit=!1,t.inter=null,t.main=function(e,t){this.func(e,t),this.inter=null},t.go=function(e){var n={};this.inter||(n.$viewport_position=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop||0,n.$viewport_position=Math.round(n.$viewport_position)||0,e?t.main(n,!0):this.inter=setTimeout((function(){t.main(n)}),this.timeout))},t}({timeout:1e3,func:function(e,t){var n=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop||0,r=new Date,o=r-this.current_time;(o>xn.para.heatmap.scroll_delay_time&&n-e.$viewport_position!=0||t)&&(e.$url=Y(),e.$title=document.title,e.$url_path=X(),e.event_duration=Math.min(xn.para.heatmap.scroll_event_duration,parseInt(o)/1e3),e.event_duration=e.event_duration<0?0:e.event_duration,xn.track("$WebStay",e)),this.current_time=r}});r.current_time=new Date,Ke(window,"scroll",(function(){return!!t&&void r.go()})),Ke(window,"unload",(function(){return!!t&&void r.go("notime")}))},initHeatmap:function(){var t=this,r=!0;return!(!n(xn.para.heatmap)||"default"!==xn.para.heatmap.clickmap)&&(e(xn.para.heatmap.collect_url)&&this.listenUrlChange((function(){r=!!xn.para.heatmap.collect_url()})),"all"===xn.para.heatmap.collect_elements?xn.para.heatmap.collect_elements="all":xn.para.heatmap.collect_elements="interact",void("all"===xn.para.heatmap.collect_elements?Ke(document,"click",(function(e){if(!r)return!1;var n=e||window.event;if(!n)return!1;var o=n.target||n.srcElement;if("object"!=typeof o)return!1;if("string"!=typeof o.tagName)return!1;var i=o.tagName.toLowerCase();if("body"===i||"html"===i)return!1;if(!o||!o.parentNode||!o.parentNode.children)return!1;var a=o.parentNode.tagName.toLowerCase();"a"===a||"button"===a?t.start(n,o.parentNode,a):t.start(n,o,i)})):Ke(document,"click",(function(e){if(!r)return!1;var o=e||window.event;if(!o)return!1;var i=o.target||o.srcElement,a=xn.heatmap.getTargetElement(i,e);a?t.start(o,a,a.tagName.toLowerCase()):g(i)&&"div"===i.tagName.toLowerCase()&&n(xn.para.heatmap)&&xn.para.heatmap.get_vtrack_config&&xn.unlimitedDiv.events.length>0&&xn.unlimitedDiv.isTargetEle(i)&&t.start(o,i,i.tagName.toLowerCase(),{$lib_method:"vtrack"})}))))}},sr={setOnlineState:function(e){if(!0===e&&n(xn.para.jsapp)&&"function"==typeof xn.para.jsapp.getData){xn.para.jsapp.isOnline=!0;var t=xn.para.jsapp.getData();y(t)&&t.length>0&&S(t,(function(e){ce(e)&&xn.sendState.realtimeSend(JSON.parse(e))}))}else xn.para.jsapp.isOnline=!1},autoTrackIsUsed:!1,isReady:function(e){e()},getUtm:function(){return Gn.campaignParams()},getStayTime:function(){return(new Date-xn._t)/1e3},setProfileLocal:function(e){if(!Cn.isSupport())return xn.setProfile(e),!1;if(!n(e)||ae(e))return!1;var t=xn.store.readObjectVal("sensorsdata_2015_jssdk_profile"),r=!1;if(n(t)&&!ae(t)){for(var o in e)(!(o in t)||t[o]===e[o])&&o in t||(t[o]=e[o],r=!0);r&&(xn.store.saveObjectVal("sensorsdata_2015_jssdk_profile",t),xn.setProfile(e))}else xn.store.saveObjectVal("sensorsdata_2015_jssdk_profile",e),xn.setProfile(e)},setInitReferrer:function(){var e=Be();xn.setOnceProfile({_init_referrer:e,_init_referrer_host:Gn.pageProp.referrer_host})},setSessionReferrer:function(){var e=Be();xn.store.setSessionPropsOnce({_session_referrer:e,_session_referrer_host:Gn.pageProp.referrer_host})},setDefaultAttr:function(){Gn.register({_current_url:location.href,_referrer:Be(),_referring_host:Gn.pageProp.referrer_host})},trackHeatMap:function(e,t,n){if("object"==typeof e&&e.tagName){var r=e.tagName.toLowerCase(),o=e.parentNode.tagName.toLowerCase(),i=xn.para.heatmap&&xn.para.heatmap.track_attr?xn.para.heatmap.track_attr:["data-sensors-click"];"button"===r||"a"===r||"a"===o||"button"===o||"input"===r||"textarea"===r||Q(e,i)||ar.start(null,e,r,t,n)}},trackAllHeatMap:function(e,t,n){if("object"==typeof e&&e.tagName){var r=e.tagName.toLowerCase();ar.start(null,e,r,t,n)}},autoTrackSinglePage:function(e,t){function r(){var e=Gn.campaignParams(),t={};return S(e,(function(e,n,r){-1!==(" "+xn.source_channel_standard+" ").indexOf(" "+n+" ")?t["$"+n]=r[n]:t[n]=r[n]})),t}function o(e,t){xn.track("$pageview",k({$referrer:i,$url:Y(),$url_path:X(),$title:document.title},e,r()),t),i=Y()}var i;i=this.autoTrackIsUsed?Gn.pageProp.url:Gn.pageProp.referrer;var a=!(e=n(e)?e:{}).not_set_profile;if(e.not_set_profile&&delete e.not_set_profile,o(e,t),this.autoTrackSinglePage=o,xn.is_first_visitor&&a){var s={};xn.para.preset_properties.search_keyword_baidu&&Me(document.referrer)&&De()&&(s.$search_keyword_id=Jn.id(),s.$search_keyword_id_type=Jn.type(),s.$search_keyword_id_hash=te(s.$search_keyword_id)),xn.setOnceProfile(k({$first_visit_time:new Date,$first_referrer:Be(),$first_browser_language:d(navigator.language)?navigator.language.toLowerCase():"取值异常",$first_browser_charset:"string"==typeof document.charset?document.charset.toUpperCase():"取值异常",$first_traffic_source_type:He(),$first_search_keyword:ze()},r(),s)),xn.is_first_visitor=!1}},autoTrackWithoutProfile:function(e,t){e=n(e)?e:{},this.autoTrack(k(e,{not_set_profile:!0}),t)},autoTrack:function(e,t){e=n(e)?e:{};var r=Gn.campaignParams(),o={};S(r,(function(e,t,n){-1!==(" "+xn.source_channel_standard+" ").indexOf(" "+t+" ")?o["$"+t]=n[t]:o[t]=n[t]}));var i=!e.not_set_profile;e.not_set_profile&&delete e.not_set_profile;var a=location.href;if(xn.para.is_single_page&&w((function(){var n=Be(a,!0);xn.track("$pageview",k({$referrer:n,$url:Y(),$url_path:X(),$title:document.title},o,e),t),a=Y()})),xn.track("$pageview",k({$referrer:Be(null,!0),$url:Y(),$url_path:X(),$title:document.title},o,e),t),xn.is_first_visitor&&i){var s={};xn.para.preset_properties.search_keyword_baidu&&Me(document.referrer)&&De()&&(s.$search_keyword_id=Jn.id(),s.$search_keyword_id_type=Jn.type(),s.$search_keyword_id_hash=te(s.$search_keyword_id)),xn.setOnceProfile(k({$first_visit_time:new Date,$first_referrer:Be(null,!0),$first_browser_language:d(navigator.language)?navigator.language.toLowerCase():"取值异常",$first_browser_charset:"string"==typeof document.charset?document.charset.toUpperCase():"取值异常",$first_traffic_source_type:He(),$first_search_keyword:ze()},o,s)),xn.is_first_visitor=!1}this.autoTrackIsUsed=!0},getAnonymousID:function(){return ae(xn.store._state)?"请先初始化SDK":xn.store._state._first_id||xn.store._state.first_id||xn.store._state._distinct_id||xn.store._state.distinct_id},setPlugin:function(t){return!!n(t)&&void S(t,(function(t,r){e(t)&&(n(window.SensorsDataWebJSSDKPlugin)&&window.SensorsDataWebJSSDKPlugin[r]?t(window.SensorsDataWebJSSDKPlugin[r]):xn.log(r+"没有获取到,请查阅文档,调整"+r+"的引入顺序!"))}))},useModulePlugin:function(){xn.use.apply(xn,arguments)},useAppPlugin:function(){this.setPlugin.apply(this,arguments)}},lr=new l,cr=new l,ur={};ur.spa=lr,ur.sdk=cr,ur.initSystemEvent=function(){et((function(e){lr.emit("switch",e)}))},ur.EVENT_LIST={spaSwitch:["spa","switch"],sdkAfterInitPara:["sdk","afterInitPara"],sdkBeforeInit:["sdk","beforeInit"],sdkAfterInit:["sdk","afterInit"]};var dr={__proto__:null,addReferrerHost:nt,addPropsHook:rt,initPara:ot,setInitVar:at,enableLocalLog:st,disableLocalLog:lt,quick:ct,use:ut,track:dt,bind:pt,unbind:ft,trackLink:ht,trackLinks:gt,setItem:vt,deleteItem:mt,setProfile:yt,setOnceProfile:bt,appendProfile:_t,incrementProfile:wt,deleteProfile:xt,unsetProfile:St,identify:kt,trackSignup:Ot,registerPage:Pt,clearAllRegister:Et,clearPageRegister:$t,register:Tt,registerOnce:It,registerSession:jt,registerSessionOnce:At,login:Dt,loginWithKey:Rt,logout:Lt,getPresetProperties:Mt,iOSWebClickPolyfill:Bt,readyState:{state:0,historyState:[],stateType:{1:"1-init未开始",2:"2-init开始",3:"3-store完成"},getState:function(){return this.historyState.join("\n")},setState:function(e){String(e)in this.stateType&&(this.state=e),this.historyState.push(this.stateType[e])}},para_default:Fn,log:Oe,debug:Hn,IDENTITY_KEY:Kn,on:tt},pr=function(){this._events=[],this.pendingEvents=[]};pr.prototype={emit:function(e){var t=[].slice.call(arguments,1);S(this._events,(function(n){n.type===e&&n.callback.apply(n.context,t)})),this.pendingEvents.push({type:e,data:t}),this.pendingEvents.length>20&&this.pendingEvents.shift()},on:function(e,t,n,r){"function"==typeof t&&(this._events.push({type:e,callback:t,context:n||this}),r=!1!==r,this.pendingEvents.length>0&&r&&S(this.pendingEvents,(function(r){r.type===e&&t.apply(n,r.data)})))},tempAdd:function(e,t){if(t&&e)return this.emit(e,t)},isReady:function(){}};var fr={__proto__:null,parseSuperProperties:Te,searchConfigData:Ie,strip_empty_properties:je,getCurrentDomain:Ae,getEleInfo:Ne,isBaiduTraffic:De,getReferrerEqid:Re,getReferrerEqidType:Le,getBaiduKeyword:Jn,isReferralTraffic:Me,getReferrer:Be,getKeywordFromReferrer:ze,getWxAdIdFromUrl:Ue,getReferSearchEngine:Fe,getSourceFromReferrer:He,info:Gn,ajax:qe,getElementContent:Ve,cookie:Yn,addEvent:Ke,EventEmitterSa:pr,encrypt:$e,decryptIfNeeded:Ee},hr={stage:null,init:function(e){this.stage=e}},gr={buildData:function(e){var t={identities:{},distinct_id:xn.store.getDistinctId(),lib:{$lib:"js",$lib_method:"code",$lib_version:String(xn.lib_version)},properties:{}};return n(e)&&n(e.identities)&&!ae(e.identities)?k(t.identities,e.identities):k(t.identities,Qn._state.identities),n(e)&&n(e.properties)&&!ae(e.properties)&&(e.properties.$lib_detail&&(t.lib.$lib_detail=e.properties.$lib_detail,delete e.properties.$lib_detail),e.properties.$lib_method&&(t.lib.$lib_method=e.properties.$lib_method,delete e.properties.$lib_method)),k(t,xn.store.getUnionId(),e),Ze(t),n(e.properties)&&!ae(e.properties)&&k(t.properties,e.properties),e.type&&"profile"===e.type.slice(0,7)||(t.properties=k({},Gn.properties(),Qn.getProps(),Qn.getSessionProps(),Gn.currentProps,t.properties),xn.para.preset_properties.latest_referrer&&!d(t.properties.$latest_referrer)&&(t.properties.$latest_referrer="取值异常"),xn.para.preset_properties.latest_search_keyword&&!d(t.properties.$latest_search_keyword)&&(xn.para.preset_properties.search_keyword_baidu&&d(t.properties.$search_keyword_id)&&ue(t.properties.$search_keyword_id_hash)&&d(t.properties.$search_keyword_id_type)||(t.properties.$latest_search_keyword="取值异常")),xn.para.preset_properties.latest_traffic_source_type&&!d(t.properties.$latest_traffic_source_type)&&(t.properties.$latest_traffic_source_type="取值异常"),xn.para.preset_properties.latest_landing_page&&!d(t.properties.$latest_landing_page)&&(t.properties.$latest_landing_page="取值异常"),"not_collect"===xn.para.preset_properties.latest_wx_ad_click_id?(delete t.properties._latest_wx_ad_click_id,delete t.properties._latest_wx_ad_hash_key,delete t.properties._latest_wx_ad_callbacks):xn.para.preset_properties.latest_wx_ad_click_id&&!d(t.properties._latest_wx_ad_click_id)&&(t.properties._latest_wx_ad_click_id="取值异常",t.properties._latest_wx_ad_hash_key="取值异常",t.properties._latest_wx_ad_callbacks="取值异常"),d(t.properties._latest_wx_ad_click_id)&&(t.properties.$url=Y())),t.properties.$time&&A(t.properties.$time)?(t.time=1*t.properties.$time,delete t.properties.$time):t.time=1*new Date,xn.vtrackBase.addCustomProps(t),Te(t),Zn.checkIsAddSign(t),Zn.checkIsFirstTime(t),xn.addReferrerHost(t),xn.addPropsHook(t),Qe(t),t},sendData:function(e,t){var n=Ie(e.properties);!0===xn.para.debug_mode?(xn.log(e),xn.saEvent.debugPath(JSON.stringify(e),t)):xn.sendState.getSendCall(e,n,t)},encodeTrackData:function(e){var t=E(e),n="crc="+ee(t);return"data="+encodeURIComponent(t)+"&ext="+encodeURIComponent(n)},getUtmData:function(){return Ft()}},vr=function(e){this.callback=e.callback,this.img=document.createElement("img"),this.img.width=1,this.img.height=1,xn.para.img_use_crossorigin&&(this.img.crossOrigin="anonymous"),this.data=e.data,this.server_url=zt(e.server_url,e.data)};vr.prototype.start=function(){var e=this;xn.para.ignore_oom&&(this.img.onload=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()},this.img.onerror=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()},this.img.onabort=function(){this.onload=null,this.onerror=null,this.onabort=null,e.isEnd()}),this.img.src=this.server_url},vr.prototype.lastClear=function(){void 0!==G().ie?this.img.src="about:blank":this.img.src=""};var mr=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=Ut(e.data)};mr.prototype.start=function(){var e=this;qe({url:this.server_url,type:"POST",data:this.data,credentials:!1,timeout:xn.para.datasend_timeout,cors:!0,success:function(){e.isEnd()},error:function(){e.isEnd()}})};var yr=function(e){this.callback=e.callback,this.server_url=e.server_url,this.data=Ut(e.data)};yr.prototype.start=function(){var e=this;"object"==typeof navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(this.server_url,this.data),setTimeout((function(){e.isEnd()}),40)};var br={stage:null,init:function(e){this.stage=e},interceptor:{send:{entry:function(e,t){var n=t.sensors,r=e.callback;return n.para.app_js_bridge?n.para.app_js_bridge.is_mui?n.para.app_js_bridge.is_mui?window.plus&&window.plus.SDAnalytics&&window.plus.SDAnalytics.trackH5Event?(window.plus.SDAnalytics.trackH5Event(e),n._.isFunction(r)&&r(),e):!0===n.para.app_js_bridge.is_send?(n.sendState.prepareServerUrl(e),e):(n._.isFunction(r)&&r(),e):void 0:!0===n.para.app_js_bridge.is_send?(n.debug.apph5({data:e.data,step:"2",output:"all"}),n.sendState.prepareServerUrl(e),e):(n._.isFunction(r)&&r(),e):(n.debug.apph5({data:e.data,step:"1",output:"code"}),n.sendState.prepareServerUrl(e),e)}}}},_r={getSendCall:function(e,t,n){if(xn.is_heatmap_render_mode)return!1;if(xn.readyState.state<3)return xn.log("初始化没有完成"),!1;e._track_id=Number(String(r()).slice(2,5)+String(r()).slice(2,4)+String((new Date).getTime()).slice(-4)),e._flush_time=(new Date).getTime();var o=e;e=JSON.stringify(e);var i={data:o,config:t,callback:n};return xn.events.tempAdd("send",o),!xn.para.app_js_bridge&&xn.para.batch_send&&Cn.isSupport()&&localStorage.length<100?(xn.log(o),xn.batchSend.add(i.data),!1):("item_set"===o.type||"item_delete"===o.type?this.prepareServerUrl(i):br.stage.process("beforeSend",i),void xn.log(o))},prepareServerUrl:function(e){if("object"==typeof e.config&&e.config.server_url)this.sendCall(e,e.config.server_url,e.callback);else if(y(xn.para.server_url)&&xn.para.server_url.length)for(var t=0;t<xn.para.server_url.length;t++)this.sendCall(e,xn.para.server_url[t]);else"string"==typeof xn.para.server_url&&""!==xn.para.server_url?this.sendCall(e,xn.para.server_url,e.callback):xn.log("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!")},sendCall:function(e,t,r){var o={server_url:t,data:JSON.stringify(e.data),callback:r,config:e.config};n(xn.para.jsapp)&&!xn.para.jsapp.isOnline&&"function"==typeof xn.para.jsapp.setData?(delete o.callback,o=JSON.stringify(o),xn.para.jsapp.setData(o)):this.realtimeSend(o)},realtimeSend:function(e){Vt(e).start()}},wr="sawebjssdk-",xr="tab-sawebjssdk-";qt.prototype={batchInterval:function(){""===this.serverUrl&&this.getServerUrl(),this.hasTabStorage||(this.generateTabStorage(),this.hasTabStorage=!0);var e=this;e.timer=setTimeout((function(){e.updateExpireTime(),e.recycle(),e.send(),clearTimeout(e.timer),e.batchInterval()}),xn.para.batch_send.send_interval)},getServerUrl:function(){return d(xn.para.server_url)&&""!==xn.para.server_url||y(xn.para.server_url)&&xn.para.server_url.length?void(this.serverUrl=y(xn.para.server_url)?xn.para.server_url[0]:xn.para.server_url):xn.log("当前 server_url 为空或不正确,只在控制台打印日志,network 中不会发数据,请配置正确的 server_url!")},send:function(){if(!(this.sendTimeStamp&&t()-this.sendTimeStamp<xn.para.batch_send.datasend_timeout)){var e=Cn.get(this.tabKey);if(e&&(this.sendTimeStamp=t(),(e=i(e)||this.generateTabStorageVal()).data.length)){for(var n=[],r=0;r<e.data.length;r++)n.push(xn.store.readObjectVal(e.data[r]));this.request(n,e.data)}}},updateExpireTime:function(){var e=Cn.get(this.tabKey);e&&((e=i(e)||this.generateTabStorageVal()).expireTime=t()+2*xn.para.batch_send.send_interval,e.serverUrl=this.serverUrl,Cn.set(this.tabKey,JSON.stringify(e)))},request:function(e,t){var n=this;C({url:this.serverUrl,type:"POST",data:"data_list="+encodeURIComponent(E(JSON.stringify(e))),credentials:!1,timeout:xn.para.batch_send.datasend_timeout,cors:!0,success:function(){n.remove(t),n.sendTimeStamp=0},error:function(){n.sendTimeStamp=0}})},remove:function(e){var t=Cn.get(this.tabKey);if(t){for(var n=(i(t)||this.generateTabStorageVal()).data,r=0;r<e.length;r++){var o=ne(n,e[r]);o>-1&&n.splice(o,1),Cn.remove(e[r])}Cn.set(this.tabKey,JSON.stringify(this.generateTabStorageVal(n)))}},add:function(e){var n=wr+String(r()),o=Cn.get(this.tabKey);null===o?(this.tabKey=xr+String(r()),o=this.generateTabStorageVal()):o=i(o)||this.generateTabStorageVal(),o.data.push(n),o.expireTime=t()+2*xn.para.batch_send.send_interval,Cn.set(this.tabKey,JSON.stringify(o)),xn.store.saveObjectVal(n,e),"track_signup"!==e.type&&"$pageview"!==e.event||this.sendImmediately()},generateTabStorage:function(){this.tabKey=xr+String(r()),Cn.set(this.tabKey,JSON.stringify(this.generateTabStorageVal()))},generateTabStorageVal:function(e){return{data:e=e||[],expireTime:t()+2*xn.para.batch_send.send_interval,serverUrl:this.serverUrl}},sendImmediately:function(){this.send()},recycle:function(){for(var e={},n=1e4,r="sajssdk-lock-get-",o=0;o<localStorage.length;o++){var s=localStorage.key(o),l=this;if(0===s.indexOf(xr)){for(var c=i(Cn.get(s))||this.generateTabStorageVal(),u=0;u<c.data.length;u++)e[c.data[u]]=!0;t()>c.expireTime&&this.serverUrl===c.serverUrl&&new a(r).get(s,n,1e3,(function(e){if(e){null===Cn.get(l.tabKey)&&l.generateTabStorage();var t=i(e)||l.generateTabStorageVal();Cn.set(l.tabKey,JSON.stringify(l.generateTabStorageVal((i(Cn.get(l.tabKey))||this.generateTabStorageVal()).data.concat(t.data))))}}))}else if(0===s.indexOf(r)){var d=i(Cn.get(s))||{expireTime:0};t()-d.expireTime>n&&Cn.remove(s)}}for(var p=0;p<localStorage.length;p++){var f=localStorage.key(p);0!==f.indexOf(wr)||e[f]||Cn.remove(f)}}};var Sr=new qt,kr={bridge_info:{touch_app_bridge:!1,verify_success:!1,platform:"",support_two_way_call:!1},is_verify_success:!1,initPara:function(){var e={is_send:!1!==xn.para.use_app_track_is_send&&"only"!==xn.para.use_app_track,white_list:[],is_mui:"mui"===xn.para.use_app_track};"object"==typeof xn.para.app_js_bridge?xn.para.app_js_bridge=k({},e,xn.para.app_js_bridge):!0!==xn.para.use_app_track&&!0!==xn.para.app_js_bridge&&"only"!==xn.para.use_app_track&&"mui"!==xn.para.use_app_track||(xn.para.app_js_bridge=k({},e)),!1===xn.para.app_js_bridge.is_send&&xn.log("设置了 is_send:false,如果打通失败,数据将被丢弃!")},app_js_bridge_v1:function(){function e(e){ce(r=e)&&(r=JSON.parse(r)),o&&(o(r),o=null,r=null)}function t(){"object"==typeof window.SensorsData_APP_JS_Bridge&&window.SensorsData_APP_JS_Bridge.sensorsdata_call_app&&ce(r=SensorsData_APP_JS_Bridge.sensorsdata_call_app())&&(r=JSON.parse(r))}function n(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var e=document.createElement("iframe");e.setAttribute("src","sensorsanalytics://getAppInfo"),document.documentElement.appendChild(e),e.parentNode.removeChild(e),e=null}}var r=null,o=null;window.sensorsdata_app_js_bridge_call_js=function(t){e(t)},xn.getAppStatus=function(e){return n(),t(),e?void(null===r?o=e:(e(r),r=null)):r}},hasVisualModeBridge:function(){var e=window.SensorsData_App_Visual_Bridge,t="sensorsdata_visualized_mode";return n(e)&&e[t]&&(!0===e[t]||e[t]())},validateAppUrl:Gt};Kt.prototype.call=function(e,t){var n=this,o=(new Date).getTime().toString(16)+String(r()).replace(".","").slice(1,8);this.resultCbs[o]=n.resultCbs[o]||{result:null,callbacks:[]},this.timeoutCbs[o]=n.timeoutCbs[o]||{isTimeout:!1,callbacks:[]},(e=e.data?e:{data:e}).data.message_id=o;var i=k({callType:this.type},e);return t&&(this.timerId=setTimeout((function(){for(var e in n.timeoutCbs[o].isTimeout=!0,n.timeoutCbs[o].callbacks)n.timeoutCbs[o].callbacks[e].call(null),n.timeoutCbs[o].callbacks.splice(e,1)}),t)),Jt(i),{onResult:function(e){return n.resultCbs[o].result?(e(n.resultCbs[o].result),this):(!n.timeoutCbs[o].isTimeout&&n.resultCbs[o].callbacks.push(e),this)},onTimeout:function(e){return n.timeoutCbs[o].isTimeout?(e(),this):(!n.resultCbs[o].result&&n.timeoutCbs[o].callbacks.push(e),this)}}},Kt.prototype.onAppNotify=function(e){this.appCallJsCallback=e},Kt.prototype.notifyApp=function(e,t){var n=k({callType:this.type},e);return t&&(n.message_id=t),Jt(n)},Yt.prototype={double:function(){},getAppData:function(){},hasAppBridge:function(){return xn.bridge.bridge_info.support_two_way_call},init:function(){},jsCallApp:function(){},requestToApp:function(t){this.bridge.call(t,t.timeout.time).onResult((function(n){e(t.callback)&&t.callback(n)})).onTimeout((function(){e(t.timeout.callback)&&t.timeout.callback()}))}};var Cr={initUrl:function(){var e,t,n={server_url:{project:"",host:""},page_url:{host:"",pathname:""}};if(!d(xn.para.server_url))return xn.log("----vcollect---server_url必须为字符串"),!1;try{e=h(xn.para.server_url),n.server_url.project=e.searchParams.get("project")||"default",n.server_url.host=e.host}catch(r){return xn.log("----vcollect---server_url解析异常",r),!1}try{t=h(location.href),n.page_url.host=t.hostname,n.page_url.pathname=t.pathname}catch(r){return xn.log("----vcollect---页面地址解析异常",r),!1}return n},isDiv:function(e){return!e.element_path||"div"===p(e.element_path.split(">").pop()).slice(0,3)},configIsMatchNew:function(e,t){if(d(e.$element_selector)&&d(t.element_selector)){if("element_selector"===t.element_field&&"equal"===t.function)return e.$element_selector===t.element_selector;if("element_selector"===t.element_field&&"contain"===t.function)return e.$element_selector.indexOf(t.element_selector)>-1}if(d(e.$element_path)&&d(t.element_path)){if("element_path"===t.element_field&&"equal"===t.function)return e.$element_path===t.element_path;if("element_path"===t.element_field&&"contain"===t.function)return e.$element_path.indexOf(t.element_path)>-1}return!1},configIsMatch:function(e,t){return(!t.limit_element_content||t.element_content===e.$element_content)&&(!t.limit_element_position||t.element_position===String(e.$element_position))&&(t.element_field&&t.function?Cr.configIsMatchNew(e,t):Cr.configIsMatchOldVersion(e,t))},configIsMatchOldVersion:function(e,t){if(!t.element_path)return!1;if(void 0!==e.$element_position){if(t.element_path!==e.$element_path)return!1}else if(xn.vtrackBase.isDiv({element_path:t.element_path})){if(e.$element_path.indexOf(t.element_path)<0)return!1}else if(t.element_path!==e.$element_path)return!1;return!0},filterConfig:function(e,t,r){var o=[];if(!r){var i=Cr.initUrl();if(!i)return[];r=i.page_url}return"$WebClick"===e.event&&S(t,(function(t){n(t)&&("webclick"===t.event_type||"appclick"===t.event_type)&&n(t.event)&&t.event.url_host===r.host&&t.event.url_path===r.pathname&&Cr.configIsMatch(e.properties,t.event)&&o.push(t)})),o},getPropElInLi:function(e,t){if(!(e&&g(e)&&d(t)))return null;if("li"!==e.tagName.toLowerCase())return null;var n=xn.heatmap.getDomSelector(e);if(n){var r=z(n+t);return r||null}return xn.log("----custom---获取同级属性元素失败,selector信息异常",n,t),null},getProp:function(e,t){if(!n(e))return!1;if(!(d(e.name)&&e.name.length>0))return xn.log("----vcustom----属性名不合法,属性抛弃",e.name),!1;var r,o,i={};if("content"===e.method){var a;if(d(e.element_selector)&&e.element_selector.length>0)a=z(e.element_selector);else{if(!t||!d(e.list_selector))return xn.log("----vcustom----属性配置异常,属性抛弃",e.name),!1;var s=z(t.properties.$element_selector);if(!s)return xn.log("----vcustom----点击元素获取异常,属性抛弃",e.name),!1;var l=xn.heatmap.getClosestLi(s);a=Cr.getPropElInLi(l,e.list_selector)}if(!a||!g(a))return xn.log("----vcustom----属性元素获取失败,属性抛弃",e.name),!1;if("input"===a.tagName.toLowerCase())r=a.value||"";else if("select"===a.tagName.toLowerCase()){var c=a.selectedIndex;ue(c)&&g(a[c])&&(r=Ve(a[c],"select"))}else r=Ve(a,a.tagName.toLowerCase());if(e.regular){try{o=new RegExp(e.regular).exec(r)}catch(u){return xn.log("----vcustom----正则处理失败,属性抛弃",e.name),!1}if(null===o)return xn.log("----vcustom----属性规则处理,未匹配到结果,属性抛弃",e.name),!1;if(!y(o)||!d(o[0]))return xn.log("----vcustom----正则处理异常,属性抛弃",e.name,o),!1;r=o[0]}if("STRING"===e.type)i[e.name]=r;else if("NUMBER"===e.type){if(r.length<1)return xn.log("----vcustom----未获取到数字内容,属性抛弃",e.name,r),!1;if(isNaN(Number(r)))return xn.log("----vcustom----数字类型属性转换失败,属性抛弃",e.name,r),!1;i[e.name]=Number(r)}return i}return xn.log("----vcustom----属性不支持此获取方式",e.name,e.method),!1},getAssignConfigs:function(e,t){var r=Cr.initUrl();if(!r||!r.page_url)return[];if(!n(t))return[];var o=[];return t.events=t.events||t.eventList,y(t.events)&&t.events.length>0?(S(t.events,(function(t){n(t)&&n(t.event)&&t.event.url_host===r.page_url.host&&t.event.url_path===r.page_url.pathname&&e(t)&&o.push(t)})),o):[]},addCustomProps:function(e){if("success"===xn.bridge.bridge_info.verify_success){var t=xn.vapph5collect.customProp.geth5Props(JSON.parse(JSON.stringify(e)));n(t)&&!ae(t)&&(e.properties=k(e.properties,t))}var r=xn.vtrackcollect.customProp.getVtrackProps(JSON.parse(JSON.stringify(e)));return n(r)&&!ae(r)&&(e.properties=k(e.properties,r)),e},init:function(){xn.vtrackcollect.init(),"success"===xn.bridge.bridge_info.verify_success&&xn.vapph5collect.init()}},Or={events:[],init:function(e){this.filterWebClickEvents(e)},filterWebClickEvents:function(e){this.events=xn.vtrackcollect.getAssignConfigs((function(e){return!(!n(e)||!0!==e.event.unlimited_div||"webclick"!==e.event_type)}),e)},isTargetEle:function(e){var t=xn.heatmap.getEleDetail(e);if(!n(t)||!d(t.$element_path))return!1;for(var r=0;r<this.events.length;r++)if(n(this.events[r])&&n(this.events[r].event)&&xn.vtrackcollect.configIsMatch(t,this.events[r].event))return!0;return!1}},Pr={events:[],configSwitch:!1,collectAble:function(){return this.configSwitch&&n(xn.para.heatmap)&&xn.para.heatmap.get_vtrack_config},updateEvents:function(e){this.events=xn.vtrackcollect.getAssignConfigs((function(e){return!!(n(e)&&y(e.properties)&&e.properties.length>0)}),e),this.events.length?this.configSwitch=!0:this.configSwitch=!1},getVtrackProps:function(e){var t={};return this.collectAble()?("$WebClick"===e.event&&(t=this.clickCustomPropMaker(e,this.events)),t):{}},clickCustomPropMaker:function(e,t,r){var o=this;r=r||this.filterConfig(e,t,xn.vtrackcollect.url_info.page_url);var i={};return r.length?(S(r,(function(t){y(t.properties)&&t.properties.length>0&&S(t.properties,(function(t){var r=o.getProp(t,e);n(r)&&k(i,r)}))})),i):{}},getProp:Cr.getProp,getPropElInLi:Cr.getPropElInLi,filterConfig:Cr.filterConfig},Er={unlimitedDiv:Or,config:{},storageEnable:!0,storage_name:"webjssdkvtrackcollect",para:{session_time:18e5,timeout:5e3,update_interval:18e5},url_info:{},timer:null,update_time:null,customProp:Pr,initUrl:function(){var e=Cr.initUrl();if(e){var t;try{(t=new f(xn.para.server_url))._values.Path="/config/visualized/Web.conf",e.api_url=t.getUrl()}catch(n){return xn.log("----vtrackcollect---API地址解析异常",n),!1}this.url_info=e}return e},init:function(){if(!n(xn.para.heatmap)||!xn.para.heatmap.get_vtrack_config)return!1;if(Cn.isSupport()||(this.storageEnable=!1),!this.initUrl())return xn.log("----vtrackcustom----初始化失败,url信息解析失败"),!1;if(this.storageEnable){var e=xn.store.readObjectVal(this.storage_name);if(n(e)&&n(e.data))if(this.serverUrlIsSame(e.serverUrl)){this.config=e.data,this.update_time=e.updateTime,this.updateConfig(e.data);var t=(new Date).getTime()-this.update_time;if(ue(t)&&t>0&&t<this.para.session_time){var r=this.para.update_interval-t;this.setNextFetch(r)}else this.getConfigFromServer()}else this.getConfigFromServer();else this.getConfigFromServer()}else this.getConfigFromServer();this.pageStateListenner()},serverUrlIsSame:function(e){return!!n(e)&&e.host===this.url_info.server_url.host&&e.project===this.url_info.server_url.project},getConfigFromServer:function(){var e=this,t=function(t,r){e.update_time=(new Date).getTime();var o={};200===t?r&&n(r)&&"Web"===r.os&&(o=r,e.updateConfig(o)):205===t?e.updateConfig(o):304===t?o=e.config:(xn.log("----vtrackcustom----数据异常",t),e.updateConfig(o)),e.updateStorage(o),e.setNextFetch()},r=function(t){e.update_time=(new Date).getTime(),xn.log("----vtrackcustom----配置拉取失败",t),e.setNextFetch()};this.sendRequest(t,r)},setNextFetch:function(e){var t=this;this.timer&&(clearTimeout(this.timer),this.timer=null),e=e||this.para.update_interval,this.timer=setTimeout((function(){t.getConfigFromServer()}),e)},pageStateListenner:function(){var e=this;he({visible:function(){var t=(new Date).getTime()-e.update_time;if(ue(t)&&t>0&&t<e.para.update_interval){var n=e.para.update_interval-t;e.setNextFetch(n)}else e.getConfigFromServer()},hidden:function(){e.timer&&(clearTimeout(e.timer),e.timer=null)}})},updateConfig:function(e){return!!n(e)&&(this.config=e,this.customProp.updateEvents(e),void this.unlimitedDiv.init(e))},updateStorage:function(e){if(!this.storageEnable)return!1;if(!n(e))return!1;var t;if(this.url_info.server_url)t=this.url_info.server_url;else{var r=xn.vtrackcollect.initUrl();if(!r)return!1;t=r.server_url}var o={updateTime:(new Date).getTime(),data:e,serverUrl:t};xn.store.saveObjectVal(this.storage_name,o)},sendRequest:function(e,t){var n=this,r={app_id:this.url_info.page_url.host};this.config.version&&(r.v=this.config.version),fe({url:n.url_info.api_url,callbackName:"saJSSDKVtrackCollectConfig",data:r,timeout:n.para.timeout,success:function(t,n){e(t,n)},error:function(e){t(e)}})},getAssignConfigs:Cr.getAssignConfigs,configIsMatch:Cr.configIsMatch},$r={events:[],customProp:{events:[],getAssignConfigs:Cr.getAssignConfigs,filterConfig:Cr.filterConfig,getProp:Cr.getProp,initUrl:Cr.initUrl,updateEvents:function(e){y(e)&&(this.events=e)},init:function(){this.initAppGetPropsBridge()},geth5Props:function(e){var t={},r=[],o=this;if(!this.events.length)return{};if("$WebClick"===e.event){var i=this.filterConfig(e,this.events);if(!i.length)return{};S(i,(function(i){n(i)&&(y(i.properties)&&i.properties.length>0&&S(i.properties,(function(r){if(n(r))if(!1===r.h5)y(t.sensorsdata_app_visual_properties)||(t.sensorsdata_app_visual_properties=[]),t.sensorsdata_app_visual_properties.push(r);else{var i=o.getProp(r,e);n(i)&&(t=k(t,i))}})),d(i.event_name)&&r.push(i.event_name))})),xn.bridge.hasVisualModeBridge()&&(t.sensorsdata_web_visual_eventName=r)}return t.sensorsdata_app_visual_properties&&(t.sensorsdata_app_visual_properties=E(JSON.stringify(t.sensorsdata_app_visual_properties))),t},initAppGetPropsBridge:function(){var e=this,t=new xn.SDKJSBridge("getJSVisualProperties");return t.onAppNotify((function(r){var o={};try{r=JSON.parse(P(r))}catch(s){xn.log("getJSVisualProperties data parse error!")}if(n(r)){var i=r.sensorsdata_js_visual_properties,a=e.initUrl();a&&(a=a.page_url,y(i)&&i.length>0&&S(i,(function(t){if(n(t)&&t.url_host===a.host&&t.url_path===a.pathname&&t.h5){var r=e.getProp(t);n(r)&&(o=k(o,r))}})))}return"android"===xn.bridge.bridge_info.platform&&t.notifyApp({data:o},r.message_id),o})),t}},getAssignConfigs:Cr.getAssignConfigs,initUrl:Cr.initUrl,init:function(){if(this.initUrl()){var e=this.getConfigFromApp();e&&this.updateConfigs(e),this.customProp.init(),this.initAppUpdateConfigBridge()}},initAppUpdateConfigBridge:function(){var e=this;return new xn.SDKJSBridge("updateH5VisualConfig").onAppNotify((function(t){if(t){try{t=JSON.parse(P(t))}catch(n){return void xn.log("updateH5VisualConfig result parse error!")}e.updateConfigs(t)}}))},getConfigFromApp:function(){var e=new xn.SDKJSBridge("sensorsdata_get_app_visual_config").notifyApp();if(e)try{e=JSON.parse(P(e))}catch(wn){e=null,xn.log("getAppVisualConfig result parse error!")}return e},updateConfigs:function(e){this.events=this.filterConfigs(e),this.customProp.updateEvents(this.events)},filterConfigs:function(e){return this.getAssignConfigs((function(e){return!(!n(e)||!1===e.h5)}),e)}},Tr={isSeachHasKeyword:function(){return""!==V(location.href,"sa-request-id")&&("string"==typeof sessionStorage.getItem("sensors-visual-mode")&&sessionStorage.removeItem("sensors-visual-mode"),!0)},hasKeywordHandle:function(){var e=location.href,t=V(e,"sa-request-id")||null,n=V(e,"sa-request-type")||null,r=V(e,"sa-request-url")||null;if(ar.setNotice(r),Dn.isSupport())if(null!==r&&sessionStorage.setItem("sensors_heatmap_url",r),sessionStorage.setItem("sensors_heatmap_id",t),null!==n)"1"===n||"2"===n||"3"===n?sessionStorage.setItem("sensors_heatmap_type",n):n=null;else{var o=sessionStorage.getItem("sensors_heatmap_type");n=null!==o?o:null}this.isReady(t,n)},isReady:function(e,t,n){xn.para.heatmap_url?ge({success:function(){setTimeout((function(){"undefined"!=typeof sa_jssdk_heatmap_render&&(sa_jssdk_heatmap_render(xn,e,t,n),"object"==typeof console&&"function"==typeof console.log&&xn.heatmap_version&&(xn.heatmap_version,xn.lib_version))}),0)},error:function(){},type:"js",url:xn.para.heatmap_url}):xn.log("没有指定heatmap_url的路径")},isStorageHasKeyword:function(){return Dn.isSupport()&&"string"==typeof sessionStorage.getItem("sensors_heatmap_id")},storageHasKeywordHandle:function(){ar.setNotice(),Tr.isReady(sessionStorage.getItem("sensors_heatmap_id"),sessionStorage.getItem("sensors_heatmap_type"),location.href)},isWindowNameHasKeyword:function(){try{var e=JSON.parse(window.name),t=d(e["sa-request-page-url"])?c(e["sa-request-page-url"]):null;return e["sa-request-id"]&&d(e["sa-request-id"])&&t===location.href}catch(n){return!1}},windowNameHasKeywordHandle:function(){function e(e){var n=t[e];return d(n)?c(n):null}var t=JSON.parse(window.name),n=e("sa-request-id"),r=e("sa-request-type"),o=e("sa-request-url");ar.setNotice(o),Dn.isSupport()&&(null!==o&&sessionStorage.setItem("sensors_heatmap_url",o),sessionStorage.setItem("sensors_heatmap_id",n),null!==r?"1"===r||"2"===r||"3"===r?sessionStorage.setItem("sensors_heatmap_type",r):r=null:r=null!==sessionStorage.getItem("sensors_heatmap_type")?sessionStorage.getItem("sensors_heatmap_type"):null),Tr.isReady(n,r)}},Ir={isStorageHasKeyword:function(){return Dn.isSupport()&&"string"==typeof sessionStorage.getItem("sensors-visual-mode")},isSearchHasKeyword:function(){return(!0===Xt("sa-visual-mode")||"true"===Xt("sa-visual-mode"))&&("string"==typeof sessionStorage.getItem("sensors_heatmap_id")&&sessionStorage.removeItem("sensors_heatmap_id"),!0)},loadVtrack:function(){ge({success:function(){},error:function(){},type:"js",url:xn.para.vtrack_url?xn.para.vtrack_url:Je()+"//static.sensorsdata.cn/sdk/"+xn.lib_version+"/vtrack.min.js"})},messageListener:function(e){function t(e){return se(e)?ve(e):(xn.log("可视化模式检测 URL 失败"),!1)}if("sa-fe"!==e.data.source)return!1;if("v-track-mode"===e.data.type){if(e.data.data&&e.data.data.isVtrack)if(Dn.isSupport()&&sessionStorage.setItem("sensors-visual-mode","true"),e.data.data.userURL&&location.href.match(/sa-visual-mode=true/)){var n=t(e.data.data.userURL);n&&(window.location.href=n)}else Ir.loadVtrack();window.removeEventListener("message",Ir.messageListener,!1)}},removeMessageHandle:function(){window.removeEventListener&&window.removeEventListener("message",Ir.messageListener,!1)},verifyVtrackMode:function(){window.addEventListener&&window.addEventListener("message",Ir.messageListener,!1),Ir.postMessage()},postMessage:function(){try{window.parent&&window.parent.postMessage&&window.parent.postMessage({source:"sa-web-sdk",type:"v-is-vtrack",data:{sdkversion:"1.23.5"}},"*")}catch(zr){xn.log("浏览器版本过低,不支持 postMessage API")}},notifyUser:function(){var e=function(t){return"sa-fe"===t.data.source&&void("v-track-mode"===t.data.type&&(t.data.data&&t.data.data.isVtrack&&alert("当前版本不支持,请升级部署神策数据治理"),window.removeEventListener("message",e,!1)))};window.addEventListener&&window.addEventListener("message",e,!1),Ir.postMessage()}},jr=["setItem","deleteItem","getAppStatus","track","quick","register","registerPage","registerOnce","trackSignup","setProfile","setOnceProfile","appendProfile","incrementProfile","deleteProfile","unsetProfile","identify","login","logout","trackLink","clearAllRegister","clearPageRegister","bind","unbind","loginWithKey"],Ar={track:function(e,t,n){},quick:function(e,t,n,r){},register:function(e){},registerPage:function(e){},registerOnce:function(e){},clearAllRegister:function(e){},trackSignup:function(e,t,n,r){},setProfile:function(e,t){},setOnceProfile:function(e,t){},appendProfile:function(e,t){},incrementProfile:function(e,t){},deleteProfile:function(e){},unsetProfile:function(e,t){},identify:function(e,t){},login:function(e,t){},logout:function(e){},trackLink:function(e,t,n){},deleteItem:function(e,t){},setItem:function(e,t,n){},getAppStatus:function(e){},clearPageRegister:function(e){}};sn.prototype.process=function(e,t){if(e&&e in this.processDef){var n=this.registeredInterceptors[e];if(n&&y(n)&&n.length>0)for(var r={current:0,total:n.length},o=new an(t,r,xn),i=0;i<n.length;i++)try{if(r.current=i+1,t=n[i].call(null,t,o)||t,o.cancellationToken.getCanceled())break}catch(a){Oe("interceptor error:"+a)}return this.processDef[e]&&this.processDef[e]in this.processDef&&(t=this.process(this.processDef[e],t)),t}Oe("process ["+e+"] is not supported")},sn.prototype.registerStageImplementation=function(t){t&&t.init&&e(t.init)&&(t.init(this),t.interceptor&&this.registerInterceptor(t.interceptor))},sn.prototype.registerInterceptor=function(t){if(t)for(var r in t){var o=t[r];if(o&&n(o)&&e(o.entry)){ue(o.priority)||(o.priority=Number.MAX_VALUE),this.registeredInterceptors[r]||(this.registeredInterceptors[r]=[]);var i=this.registeredInterceptors[r];o.entry.priority=o.priority,i.push(o.entry),i.sort((function(e,t){return e.priority-t.priority}))}}};var Nr=new sn({addCustomProps:null,formatData:null}),Dr=new sn({beforeSend:"send",send:"afterSend",afterSend:null}),Rr=new sn({getUtmData:null}),Lr={dataStage:function(e){e&&Nr.registerInterceptor(e)},businessStage:function(e){e&&Rr.registerInterceptor(e)},sendStage:function(e){e&&Dr.registerInterceptor(e)}},Mr={init:function(){},interceptor:{formatData:{priority:0,entry:function(e){return yn(e),e}}}},Br=window.sensors_data_pre_config,Fr=!!n(Br)&&Br.is_compliance_enabled;xn.init=function(e){return ur.sdk.emit("beforeInit"),!(xn.readyState&&xn.readyState.state&&xn.readyState.state>=2)&&(Fr&&_n(!0),ur.initSystemEvent(),xn.setInitVar(),xn.readyState.setState(2),xn.initPara(e),ur.sdk.emit("afterInitPara"),xn.detectMode(),xn.iOSWebClickPolyfill(),void ur.sdk.emit("afterInit"))},Fr?_n(!1):(_n(!0),rn());var zr,Ur=xn;try{xn.modules={},xn.modules.Amp=(zr={sd:null,init:function(e){if(this.sd)return!1;if(this.sd=e,!this.sd||!this.sd._)return!1;var t=this.sd._.cookie.get("sensors_amp_id"),n=this.sd.store._state.distinct_id;if(t&&t.length>0){var r="amp-"===t.slice(0,4);if(t!==n){if(!r)return!1;this.sd.store._state.first_id?(this.sd.identify(t,!0),this.sd.saEvent.send({original_id:t,distinct_id:n,type:"track_signup",event:"$SignUp",properties:{}},null),this.setAmpId(n)):this.sd.identify(t,!0)}}else this.setAmpId(n);this.addListener()},addListener:function(){var e=this;this.sd.events.on("changeDistinctId",(function(t){e.setAmpId(t)})),this.sd.events.isReady()},setAmpId:function(e){this.sd._.cookie.set("sensors_amp_id",e)}},window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.Amp=window.SensorsDataWebJSSDKPlugin.Amp||zr:window.SensorsDataWebJSSDKPlugin={Amp:zr},zr),xn.modules.Channel=function(){var e,t,n,r={event_list:[],latest_event_initial_time:null,max_save_time:2592e6,init:function(r){function o(){return e=t._,n=t.store,!!e.localStorage.isSupport()&&(t.para.max_string_length=1024,i.eventList.init(),i.addLatestChannelUrl(),void i.addIsChannelCallbackEvent())}if(t||!r)return!1;var i=this;(t=r).on&&t.readyState.state<3?t.on("sdkAfterInitPara",o):o()},addIsChannelCallbackEvent:function(){t.registerPage({$is_channel_callback_event:function(e){if(e.event&&"$WebClick"!==e.event&&"$pageview"!==e.event&&"$WebStay"!==e.event&&"$SignUp"!==e.event)return!r.eventList.hasEvent(e.event)&&(r.eventList.add(e.event),!0)}})},addLatestChannelUrl:function(){var n=this.getUrlDomain(),o=this.cookie.getChannel();if("url解析失败"===n)this.registerAndSave({_sa_channel_landing_url:"",_sa_channel_landing_url_error:"url的domain解析失败"});else if(e.isReferralTraffic(document.referrer)){var i=e.getQueryParam(location.href,"sat_cf");e.isString(i)&&i.length>0?(this.registerAndSave({_sa_channel_landing_url:location.href}),r.channelLinkHandler()):this.registerAndSave({_sa_channel_landing_url:""})}else o?t.registerPage(o):t.registerPage({_sa_channel_landing_url:"",_sa_channel_landing_url_error:"取值异常"})},registerAndSave:function(e){t.registerPage(e),this.cookie.saveChannel(e)},cookie:{getChannel:function(){var t=e.decryptIfNeeded(e.cookie.get("sensorsdata2015jssdkchannel"));return t=e.safeJSONParse(t),!(!e.isObject(t)||!t.prop)&&t.prop},saveChannel:function(n){var r={prop:n},o=JSON.stringify(r);t.para.encrypt_cookie&&(o=e.encrypt(o)),e.cookie.set("sensorsdata2015jssdkchannel",o)}},channelLinkHandler:function(){this.eventList.reset(),t.track("$ChannelLinkReaching")},getUrlDomain:function(){var t=e.info.pageProp.url_domain;return""===t&&(t="url解析失败"),t},eventList:{init:function(){var t=this.get(),n=(new Date).getTime();if(t&&e.isNumber(t.latest_event_initial_time)&&e.isArray(t.eventList)){var o=n-t.latest_event_initial_time;o>0&&o<r.max_save_time?(r.event_list=t.eventList,r.latest_event_initial_time=t.latest_event_initial_time):this.reset()}else this.reset()},get:function(){var e={};try{e=n.readObjectVal("sawebjssdkchannel")}catch(r){t.log(r)}return e},add:function(e){r.event_list.push(e),this.save()},save:function(){var e={latest_event_initial_time:r.latest_event_initial_time,eventList:r.event_list};n.saveObjectVal("sawebjssdkchannel",e)},reset:function(){r.event_list=[],r.latest_event_initial_time=(new Date).getTime(),this.save()},hasEvent:function(t){var n=!1;return e.each(r.event_list,(function(e){e===t&&(n=!0)})),n}}};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.SensorsChannel=window.SensorsDataWebJSSDKPlugin.SensorsChannel||r:window.SensorsDataWebJSSDKPlugin={SensorsChannel:r},r}(),xn.modules.Deeplink=function(){function e(){return void 0!==t&&document[t]}var t,n=(/micromessenger\/([\d.]+)/i.test(navigator.userAgent||""),function(){var e={};return void 0!==document.hidden?(e.hidden="hidden",e.visibilityChange="visibilitychange"):void 0!==document.msHidden?(e.hidden="msHidden",e.visibilityChange="msvisibilitychange"):void 0!==document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e});t=n().hidden;var r={android:/Android/i,iOS:/iPhone|iPad|iPod/i},o=function(){for(var e in r)if(navigator.userAgent.match(r[e]))return e;return""}(),i=function(){return r.hasOwnProperty(o)},a=function(e){return null!=e&&"[object Object]"==Object.prototype.toString.call(e)},s=function(e){var t=/\/sd\/(\w+)\/(\w+)$/;return e.match(t)},l=function(e){var t=e._.URL(e.para.server_url);return{origin:t.origin,project:t.searchParams.get("project")||"default"}},c=function(n,r,o){n.log("尝试唤起 android app");var i=r;n.log("唤起APP的地址:"+i),window.location=i,n.timer=setTimeout((function(){var r=e();return n.log("hide:"+t+":"+document[t]),r?(n.log("The page is hidden, stop navigating to download page"),!1):(n.log("App可能未安装,跳转到下载地址"),void(window.location=o))}),n.timeout)},u=function(t,n,r){t.log("尝试唤起 iOS app:"+n),window.location.href=n,t.timer=setTimeout((function(){return e()?(t.log("The page is hidden, stop navigating to download page"),!1):(t.log("App可能未安装,跳转到下载地址"),void(window.location.href=r))}),t.timeout),t.log("new timer:"+t.timer)},d={key:null,timer:null,sd:null,data:null,timeout:2500,apiURL:"{origin}/sdk/deeplink/param?key={key}&system_type=JS&project={project}",init:function(){if(this.sd)return this.log("deeplink已经初始化"),!1;if(a(sensorsDataAnalytic201505)&&(this.sd=sensorsDataAnalytic201505),this.log("init()"),null===this.sd)return this.log("神策JS SDK未成功引入"),!1;var e={};if(arguments.length>0&&(1===arguments.length&&a(arguments[0])?e=arguments[0]:arguments.length>=2&&a(arguments[1])&&(e=arguments[1])),!i())return this.log("不支持当前系统,目前只支持Android和iOS"),!1;if(a(e)&&this.sd._.isNumber(e.timeout)&&e.timeout>=2500&&(this.timeout=e.timeout),!this.sd.para.server_url)return this.log("神策JS SDK配置项server_url未正确配置"),!1;var t=l(this.sd);this.apiURL=this.apiURL.replace("{origin}",t.origin).replace("{project}",t.project);var n=this.sd._.getQueryParam(window.location.href,"deeplink");if(!n)return this.log("当前页面缺少deeplink参数"),!1;n=window.decodeURIComponent(n);var r=s(n);return r?(this.key=r[2],this.apiURL=this.apiURL.replace("{key}",window.encodeURIComponent(r[2])),this.sd._.ajax({url:this.apiURL,type:"GET",cors:!0,credentials:!1,success:function(e){return e.errorMsg?(d.log("API报错:"+e.errorMsg),!1):(d.data=e,d.log("API查询成功,数据:"+JSON.stringify(e,null,"  ")),void(this.data.app_key&&(this.data.android_info&&this.data.android_info.url_schemes&&(this.data.android_info.url_schemes+="://sensorsdata/sd/"+this.data.app_key+"/"+this.key),this.data.ios_info&&this.data.ios_info.url_schemes&&(this.data.ios_info.url_schemes+="://sensorsdata/sd/"+this.data.app_key+"/"+this.key))))}.bind(this),error:function(){d.log("API查询出错")}}),void this.addListeners()):(this.log("当前页面的deeplink参数无效"),!1)},openDeepLink:function(){if(this.log("openDeeplink()"),!this.data)return this.log("没有Deep link数据!"),!1;if("iOS"===o){this.log("当前系统是iOS");var e=this.sd&&this.sd._&&this.sd._.getIOSVersion()>=9&&this.data.ios_info.ios_wake_url?this.data.ios_info.ios_wake_url:this.data.ios_info.url_schemes;this.log("唤起APP的地址:"+e),u(this,e,this.data.ios_info.download_url)}else this.log("当前系统是 android"),c(this,this.data.android_info.url_schemes,this.data.android_info.download_url)},log:function(e){this.sd&&this.sd.log(e)},addListeners:function(){var e=n().visibilityChange;e&&document.addEventListener(e,function(){clearTimeout(this.timer),this.log("visibilitychange, clear timeout:"+this.timer)}.bind(this),!1),window.addEventListener("pagehide",function(){this.log("page hide, clear timeout:"+this.timer),clearTimeout(this.timer)}.bind(this),!1)}};return a(window.SensorsDataWebJSSDKPlugin)?(window.SensorsDataWebJSSDKPlugin.Deeplink=window.SensorsDataWebJSSDKPlugin.Deeplink||d,window.SensorsDataWebJSSDKPlugin.deeplink=window.SensorsDataWebJSSDKPlugin.deeplink||d):window.SensorsDataWebJSSDKPlugin={Deeplink:d,deeplink:d},d}(),xn.modules.Pageleave=function(){function e(){this.sd=null,this.start_time=+new Date,this.page_show_status=!0,this.page_hidden_status=!1,this._={},this.timer=null,this.current_page_url=document.referrer,this.url=location.href,this.option={},this.heartbeat_interval_time=5e3,this.heartbeat_interval_timer=null,this.page_id=null,this.storage_name="sawebjssdkpageleave"}var t=5e3;e.prototype.init=function(e,t){if(e){this.sd=e,this._=this.sd._;var n=this;if(t){this.option=t;var r=t.heartbeat_interval_time;r&&(this._.isNumber(r)||this._.isNumber(1*r))&&1*r>0&&(this.heartbeat_interval_time=1e3*r)}this.page_id=Number(String(this._.getRandom()).slice(2,5)+String(this._.getRandom()).slice(2,4)+String((new Date).getTime()).slice(-4)),n.addEventListener(),!0===document.hidden?this.page_show_status=!1:n.addHeartBeatInterval(),this.log("PageLeave初始化完毕")}else this.log("神策JS SDK未成功引入")},e.prototype.log=function(e){this.sd&&this.sd.log(e)},e.prototype.refreshPageEndTimer=function(){var e=this;this.timer&&(clearTimeout(this.timer),this.timer=null),this.timer=setTimeout((function(){e.page_hidden_status=!1}),t)},e.prototype.hiddenStatusHandler=function(){clearTimeout(this.timer),this.timer=null,this.page_hidden_status=!1},e.prototype.pageStartHandler=function(){this.start_time=+new Date,1==!document.hidden?this.page_show_status=!0:this.page_show_status=!1,this.url=location.href},e.prototype.pageEndHandler=function(){if(!0!==this.page_hidden_status){var e=this.getPageLeaveProperties();!1===this.page_show_status&&delete e.event_duration,this.page_show_status=!1,this.page_hidden_status=!0,this.isCollectUrl(this.url)&&this.sd.track("$WebPageLeave",e),this.refreshPageEndTimer(),this.delHeartBeatData()}},e.prototype.addEventListener=function(){this.addPageStartListener(),this.addPageSwitchListener(),this.addSinglePageListener(),this.addPageEndListener()},e.prototype.addPageStartListener=function(){var e=this;"onpageshow"in window&&this._.addEvent(window,"pageshow",(function(){e.pageStartHandler(),e.hiddenStatusHandler()}))},e.prototype.isCollectUrl=function(e){return"function"!=typeof this.option.isCollectUrl||"string"!=typeof e||""===e||this.option.isCollectUrl(e)},e.prototype.addSinglePageListener=function(){var e=this;this.sd.ee&&this.sd.ee.spa.prepend("switch",(function(t){t!==location.href&&(e.url=t,e.pageEndHandler(),e.stopHeartBeatInterval(),e.current_page_url=e.url,e.pageStartHandler(),e.hiddenStatusHandler(),e.startHeartBeatInterval())}))},e.prototype.addPageEndListener=function(){var e=this;this._.each(["pagehide","beforeunload","unload"],(function(t){"on"+t in window&&e._.addEvent(window,t,(function(){e.pageEndHandler(),e.stopHeartBeatInterval()}))}))},e.prototype.addPageSwitchListener=function(){var e=this;this._.listenPageState({visible:function(){e.pageStartHandler(),e.hiddenStatusHandler(),e.startHeartBeatInterval()},hidden:function(){e.url=location.href,e.pageEndHandler(),e.stopHeartBeatInterval()}})},e.prototype.addHeartBeatInterval=function(){this._.localStorage.isSupport()&&this.startHeartBeatInterval()},e.prototype.startHeartBeatInterval=function(){var e=this;this.heartbeat_interval_timer&&this.stopHeartBeatInterval();var t=!0;this.isCollectUrl(this.url)||(t=!1),this.heartbeat_interval_timer=setInterval((function(){t&&e.saveHeartBeatData()}),this.heartbeat_interval_time),t&&this.saveHeartBeatData("is_first_heartbeat"),this.reissueHeartBeatData()},e.prototype.stopHeartBeatInterval=function(){clearInterval(this.heartbeat_interval_timer),this.heartbeat_interval_timer=null},e.prototype.saveHeartBeatData=function(e){var t=this.getPageLeaveProperties(),n=new Date;t.$time=n,"is_first_heartbeat"===e&&(t.event_duration=3.14);var r=this.sd.kit.buildData({type:"track",event:"$WebPageLeave",properties:t});try{"success"===this.sd.bridge.bridge_info.verify_success&&(r.properties.$time=1*n)}catch(o){this.log(o.message)}r.heartbeat_interval_time=this.heartbeat_interval_time,this.sd.store.saveObjectVal(this.storage_name+"-"+this.page_id,r)},e.prototype.delHeartBeatData=function(e){this._.localStorage.remove(e||this.storage_name+"-"+this.page_id)},e.prototype.reissueHeartBeatData=function(){for(var e=window.localStorage.length-1;e>=0;e--){var t=window.localStorage.key(e);if(t&&t!==this.storage_name+"-"+this.page_id&&0===t.indexOf(this.storage_name+"-")){var n=this.sd.store.readObjectVal(t);this._.isObject(n)&&1*new Date-n.time>n.heartbeat_interval_time+5e3&&(delete n.heartbeat_interval_time,this.sd.kit.sendData(n),this.delHeartBeatData(t))}}},e.prototype.getPageLeaveProperties=function(){var e=(+new Date-this.start_time)/1e3;(isNaN(e)||e<0)&&(e=0),e=Number(e.toFixed(3));var t=this._.getReferrer(this.current_page_url),n=document.documentElement&&document.documentElement.scrollTop||window.pageYOffset||document.body&&document.body.scrollTop||0;n=Math.round(n)||0;var r={$title:document.title,$url:this._.getURL(this.url),$url_path:this._.getURLPath(this._.URL(this.url).pathname),$referrer_host:t?this._.getHostname(t):"",$referrer:t,$viewport_position:n};return 0!==e&&(r.event_duration=e),this._.extend(r,this.option.custom_props)};var n=new e;return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.PageLeave=window.SensorsDataWebJSSDKPlugin.PageLeave||n:window.SensorsDataWebJSSDKPlugin={PageLeave:n},n}(),xn.modules.Pageload=function(){var e={init:function(e){function t(t,n){if(t.getEntries&&"function"==typeof t.getEntries){for(var r=t.getEntries(),o=null,i=0;i<r.length;i++)"transferSize"in r[i]&&(o+=r[i].transferSize);e._.isNumber(o)&&o>=0&&o<10737418240&&(n.$page_resource_size=Number((o/1024).toFixed(3)))}}function n(){var r=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,o=0,i={$url:e._.getURL(),$title:document.title,$url_path:e._.getURLPath(),$referrer:e._.getReferrer(null,!0)};if(r&&r.timing){var a=r.timing;0===a.fetchStart||0===a.domContentLoadedEventEnd?e.log("performance 数据获取异常"):o=a.domContentLoadedEventEnd-a.fetchStart,t(r,i)}else e.log("浏览器未支持 performance API.");o>0&&(i.event_duration=Number((o/1e3).toFixed(3))),e.track("$WebPageLoad",i),window.removeEventListener?window.removeEventListener("load",n):window.detachEvent&&window.detachEvent("onload",n)}"complete"==document.readyState?n():window.addEventListener?window.addEventListener("load",n):window.attachEvent&&window.attachEvent("onload",n)}};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.PageLoad=window.SensorsDataWebJSSDKPlugin.PageLoad||e:window.SensorsDataWebJSSDKPlugin={PageLoad:e},e}(),xn.modules.RegisterProperties=function(){function e(e,t){if("track"!==e.type)return e;var n=t.sd,r=n._,o=n.saEvent.check,i=r.extend2Lev({properties:{}},e),a=t.currentProps,s=i.properties,l=i.event,c={};return r.each(a,(function(e){if(r.isObject(e))e.events.indexOf(l)>-1&&o({properties:e.properties})&&(c=r.extend(c,e.properties));else if(r.isFunction(e)){var t=e({event:l,properties:s,data:i});r.isObject(t)&&!r.isEmptyObject(t)&&o({properties:t})&&(c=r.extend(c,t))}})),e.properties=r.extend(s,c),e}function t(t){var n=this;this.sd=t.sd,this.currentProps=t.customRegister,this.interceptor={addCustomProps:{priority:0,entry:function(t){return e(t,n),t}}}}function n(e){this.dataStage=new t(e)}function r(){this.sd=null,this.log=window.console&&window.console.log||function(){},this.customRegister=[]}t.prototype.init=function(){},r.prototype.init=function(e){e?(this.sd=e,this._=e._,this.log=e.log,e.registerFeature(new n(this))):this.log("神策JS SDK未成功引入")},r.prototype.register=function(e){return this.sd?void(this._.isObject(e)&&this._.isArray(e.events)&&e.events.length>0&&this._.isObject(e.properties)&&!this._.isEmptyObject(e.properties)?this.customRegister.push(e):this.log("RegisterProperties: register 参数错误")):void this.log("神策JS SDK未成功引入")},r.prototype.hookRegister=function(e){return this.sd?void(this._.isFunction(e)?this.customRegister.push(e):this.log("RegisterProperties: hookRegister 参数错误")):void this.log("神策JS SDK未成功引入")};var o=new r;return o.__constructor__=r,window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.RegisterProperties=window.SensorsDataWebJSSDKPlugin.RegisterProperties||o:window.SensorsDataWebJSSDKPlugin={RegisterProperties:o},o}(),xn.modules.RegisterPropertyPageHeight=function(){function e(e){try{if("$pageview"!==e.event&&(!e.type||"profile"!==e.type.slice(0,7))){var o=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0,i=document.documentElement.scrollHeight||0,a={$page_height:Math.max(o,i)||0};e.properties=t._.extend(e.properties||{},a)}}catch(s){r("页面高度获取异常。")}return n.call(t.kit,e)}var t,n,r=window.console&&window.console.log||function(){},o={init:function(o){return r=(t=o)&&t.log||r,o&&o.kit&&o.kit.buildData?(n=t.kit.buildData,t.kit.buildData=e,void r("RegisterPropertyPageHeight 插件初始化完成")):void r("RegisterPropertyPageHeight 插件初始化失败,当前主sdk不支持 RegisterPropertyPageHeight 插件,请升级主sdk")}};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.RegisterPropertyPageHeight=window.SensorsDataWebJSSDKPlugin.RegisterPropertyPageHeight||o:window.SensorsDataWebJSSDKPlugin={RegisterPropertyPageHeight:o},o}(),function(){var e={getPart:function(e){var t=!1,n=this.option.length;if(n)for(var r=0;r<n;r++)if(e.indexOf(this.option[r].part_url)>-1)return!0;return t},getPartHash:function(e){var t=this.option.length,n=!1;if(t)for(var r=0;r<t;r++)if(e.indexOf(this.option[r].part_url)>-1)return this.option[r].after_hash;return!!n},getCurrenId:function(){var e=this.store.getDistinctId()||"",t=this.store.getFirstId()||"";return this._.urlSafeBase64&&this._.urlSafeBase64.encode?e=e?this._.urlSafeBase64.trim(this._.urlSafeBase64.encode(this._.base64Encode(e))):"":this._.rot13obfs&&(e=e?this._.rot13obfs(e):""),encodeURIComponent(t?"f"+e:"d"+e)},rewriteUrl:function(e,t){var n=this,r=/([^?#]+)(\?[^#]*)?(#.*)?/.exec(e),o="";if(r){var i,a=r[1]||"",s=r[2]||"",l=r[3]||"",c="_sasdk="+this.getCurrenId(),u=function(e){var t=e.split("&"),r=[];return n._.each(t,(function(e){e.indexOf("_sasdk=")>-1?r.push(c):r.push(e)})),r.join("&")};return this.getPartHash(e)?(i=l.indexOf("_sasdk"),o=l.indexOf("?")>-1?i>-1?a+s+"#"+l.substring(1,i)+u(l.substring(i,l.length)):a+s+l+"&"+c:a+s+"#"+l.substring(1)+"?"+c):(i=s.indexOf("_sasdk"),o=/^\?(\w)+/.test(s)?i>-1?a+"?"+u(s.substring(1))+l:a+s+"&"+c+l:a+"?"+c+l),t&&(t.href=o),o}},getUrlId:function(){var e=location.href.match(/_sasdk=([aufd][^\?\#\&\=]+)/);if(this._.isArray(e)&&e[1]){var t=decodeURIComponent(e[1]);return!t||"f"!==t.substring(0,1)&&"d"!==t.substring(0,1)||(this._.urlSafeBase64&&this._.urlSafeBase64.isUrlSafeBase64&&this._.urlSafeBase64.isUrlSafeBase64(t)?t=t.substring(0,1)+this._.base64Decode(this._.urlSafeBase64.decode(t.substring(1))):this._.rot13defs&&(t=t.substring(0,1)+this._.rot13defs(t.substring(1)))),t}return""},setRefferId:function(){var e=this.store.getDistinctId(),t=this.getUrlId();if(""===t)return!1;var n="a"===t.substring(0,1)||"d"===t.substring(0,1);return(t=t.substring(1))!==e&&(t&&n&&this.store.getFirstId()&&(this.sd.identify(t,!0),this.sd.saEvent.send({original_id:t,distinct_id:e,type:"track_signup",event:"$SignUp",properties:{}},null)),t&&n&&!this.store.getFirstId()&&this.sd.identify(t,!0),void(!t||n||this.store.getFirstId()||this.sd.login(t)))},addListen:function(){var e=this,t=function(t){var n,r,o=t.target,i=o.tagName.toLowerCase(),a=o.parentNode;if("a"===i&&o.href||a&&a.tagName&&"a"===a.tagName.toLowerCase()&&a.href){"a"===i&&o.href?(n=o.href,r=o):(n=a.href,r=a);var s=e._.URL(n).protocol;"http:"!==s&&"https:"!==s||e.getPart(n)&&e.rewriteUrl(n,r)}};e._.addEvent(document,"mousedown",t),window.PointerEvent&&"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>=0&&e._.addEvent(document,"pointerdown",t)},init:function(e,t){function n(t){for(var n=t.length,r=[],o=0;o<n;o++)/[A-Za-z0-9]+\./.test(t[o].part_url)&&"[object Boolean]"==Object.prototype.toString.call(t[o].after_hash)?r.push(t[o]):e.log("linker 配置的第 "+(o+1)+" 项格式不正确,请检查参数格式!");return r}return this.sd=e,this._=e._,this.store=e.store,this.para=e.para,this._.isObject(t)&&this._.isArray(t.linker)&&t.linker.length>0?(this.setRefferId(),this.addListen(),this.option=t.linker,void(this.option=n(this.option))):void e.log("请配置打通域名参数!")}};window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.SiteLinker=window.SensorsDataWebJSSDKPlugin.SiteLinker||e:window.SensorsDataWebJSSDKPlugin={SiteLinker:e}}(),xn.modules.AndroidBridge=function(){function e(e){return h&&h.call(p,JSON.stringify(e))}function t(e){return f.call(p)&&g&&g.call(p,JSON.stringify(e))}function n(e,t){return t&&"function"==typeof t[e.callType]&&t[e.callType]()}function r(){if(a=window.SensorsData_APP_New_H5_Bridge,s=a&&a.sensorsdata_track,l=s&&a.sensorsdata_get_server_url&&a.sensorsdata_get_server_url(),c&&!c.bridge.activeBridge&&l){if(c.bridge.activeBridge=m,c.para.app_js_bridge&&!c.para.app_js_bridge.is_mui&&(c.bridge.is_verify_success=l&&c.bridge.validateAppUrl(l)),c.bridge.bridge_info={touch_app_bridge:!0,platform:"android",verify_success:c.bridge.is_verify_success?"success":"fail",support_two_way_call:!!a.sensorsdata_js_call_app},!c.para.app_js_bridge)return void d("app_js_bridge is not configured, data will not be sent by android bridge.");c.registerInterceptor("sendStage",{send:{priority:0,entry:o}}),d("Android bridge inits succeed.")}}function o(e,t){if(c.para.app_js_bridge.is_mui)return e;var n=e.callback;return c.bridge.is_verify_success?(s&&s.call(a,JSON.stringify(u.extend({server_url:c.para.server_url},e.data))),u.isFunction(n)&&n(),t.cancellationToken.cancel(),e):c.para.app_js_bridge.is_send?(c.debug.apph5({data:e.data,step:"4.2",output:"all"}),e):(u.isFunction(n)&&n(),t.cancellationToken.cancel(),e)}function i(e){var t=e.callType;return t in v.commands?v.commands[t](e,a):void(a&&u.isFunction(a.sensorsdata_js_call_app)&&a.sensorsdata_js_call_app(JSON.stringify(e)))}var a,s,l,c,u,d,p=window.SensorsData_App_Visual_Bridge,f=p&&p.sensorsdata_visualized_mode,h=p&&p.sensorsdata_visualized_alert_info,g=p&&p.sensorsdata_hover_web_nodes,v={isVerify:function(){return f&&(!0===f||f.call(p))},commands:{app_alert:e,visualized_track:t,page_info:t,sensorsdata_get_app_visual_config:n}},m={init:function(e){u=(c=e)&&c._,d=c&&c.log||console&&console.log||function(){},c.on&&c.on("sdkAfterInitPara",r)},handleCommand:i};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.AndroidBridge=window.SensorsDataWebJSSDKPlugin.AndroidBridge||m:window.SensorsDataWebJSSDKPlugin={AndroidBridge:m},m}(),xn.modules.AndroidObsoleteBridge=function(){function e(e){return g&&g.call(f,JSON.stringify(e))}function t(e){return h.call(f)&&v&&v.call(f,JSON.stringify(e))}function n(e,t){return t&&"function"==typeof t[e.callType]&&t[e.callType]()}function r(){if(a=window.SensorsData_APP_JS_Bridge,s=a&&a.sensorsdata_track,l=a&&a.sensorsdata_verify,c=a&&a.sensorsdata_visual_verify,u&&!u.bridge.activeBridge&&(l||s||c)){u.bridge.activeBridge=y;var e=l||s;if(c&&(e=!!c.call(a,JSON.stringify({server_url:u.para.server_url}))),u.bridge.bridge_info={touch_app_bridge:!0,platform:"android",verify_success:e?"success":"fail"},!u.para.app_js_bridge)return void p("app_js_bridge is not configured, data will not be sent by android obsolete bridge.");u.registerInterceptor("sendStage",{send:{priority:0,entry:o}}),p("Android obsolete bridge inits succeed.")}}function o(e,t){if(u.para.app_js_bridge.is_mui)return e;var n=e.callback;return l?l&&l.call(a,JSON.stringify(d.extend({server_url:u.para.server_url},e.data)))?(d.isFunction(n)&&n(),t.cancellationToken.cancel(),e):u.para.app_js_bridge.is_send?(u.debug.apph5({data:e.data,step:"3.1",output:"all"}),e):(d.isFunction(n)&&n(),t.cancellationToken.cancel(),e):(s&&s.call(a,JSON.stringify(d.extend({server_url:u.para.server_url},e.data))),d.isFunction(n)&&n(),t.cancellationToken.cancel(),e)}function i(e){var t=e.callType;return t in m.commands?m.commands[t](e,a):a&&d.isFunction(a.sensorsdata_js_call_app)?a.sensorsdata_js_call_app(JSON.stringify(e)):void 0}var a,s,l,c,u,d,p,f=window.SensorsData_App_Visual_Bridge,h=f&&f.sensorsdata_visualized_mode,g=f&&f.sensorsdata_visualized_alert_info,v=f&&f.sensorsdata_hover_web_nodes,m={isVerify:function(){return h&&(!0===h||h.call(f))},commands:{app_alert:e,visualized_track:t,page_info:t,sensorsdata_get_app_visual_config:n}},y={init:function(e){d=(u=e)&&u._,p=u&&u.log||console&&console.log||function(){},u.on&&u.on("sdkAfterInitPara",r)},handleCommand:i};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.AndroidObsoleteBridge=window.SensorsDataWebJSSDKPlugin.AndroidObsoleteBridge||y:window.SensorsDataWebJSSDKPlugin={AndroidObsoleteBridge:y},y}(),xn.modules.IosBridge=function(){function e(){if(r=window.SensorsData_iOS_JS_Bridge&&window.SensorsData_iOS_JS_Bridge.sensorsdata_app_server_url,o=function(){return window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.sensorsdataNativeTracker},i&&!i.bridge.activeBridge&&o()&&o().postMessage){if(i.bridge.activeBridge=l,i.para.app_js_bridge&&!i.para.app_js_bridge.is_mui&&(i.bridge.is_verify_success=r&&i.bridge.validateAppUrl(r)),i.bridge.bridge_info={touch_app_bridge:!0,platform:"ios",verify_success:i.bridge.is_verify_success?"success":"fail",support_two_way_call:!0},!i.para.app_js_bridge)return void s("app_js_bridge is not configured, data will not be sent by iOS bridge.");i.registerInterceptor("sendStage",{send:{priority:0,entry:t}}),s("IOS bridge inits succeed.")}}function t(e,t){if(i.para.app_js_bridge.is_mui)return e;var n=e.callback;return i.bridge.is_verify_success?(o()&&o().postMessage(JSON.stringify({callType:"app_h5_track",data:a.extend({server_url:i.para.server_url},e.data)})),a.isFunction(n)&&n(),t.cancellationToken.cancel(),e):i.para.app_js_bridge.is_send?(i.debug.apph5({data:e.data,step:"4.1",output:"all"}),e):(a.isFunction(n)&&n(),t.cancellationToken.cancel(),e)}function n(e){var t=e.callType;return"page_info"!==t&&"visualized_track"!==t||i.bridge.hasVisualModeBridge()?"sensorsdata_get_app_visual_config"===t?a.isObject(window.SensorsData_APP_New_H5_Bridge)&&window.SensorsData_APP_New_H5_Bridge[t]:o()&&o().postMessage(JSON.stringify(e)):null}var r,o,i,a,s,l={init:function(t){a=(i=t)&&i._,s=i&&i.log||console&&console.log||function(){},i.on&&i.on("sdkAfterInitPara",e)},handleCommand:n};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.IOSBridge=window.SensorsDataWebJSSDKPlugin.IOSBridge||l:window.SensorsDataWebJSSDKPlugin={IOSBridge:l},l}(),xn.modules.IosObsoleteBridge=function(){function e(){if(o&&!o.bridge.activeBridge&&t()){if(o.bridge.activeBridge=s,o.bridge.bridge_info={touch_app_bridge:!0,platform:"ios",verify_success:n()?"success":"fail"},!o.para.app_js_bridge)return void a("app_js_bridge is not configured, data will not be sent by iOS obsolete bridge.");o.registerInterceptor("sendStage",{send:{priority:0,entry:r}}),a("IOS obsolete bridge inits succeed.")}}function t(){return(/sensors-verify/.test(navigator.userAgent)||/sa-sdk-ios/.test(navigator.userAgent))&&!window.MSStream}function n(){if(/sensors-verify/.test(navigator.userAgent)){var e=navigator.userAgent.match(/sensors-verify\/([^\s]+)/);if(e&&e[0]&&"string"==typeof e[1]&&2===e[1].split("?").length){e=e[1].split("?");var t=null,n=null;try{t=i.URL(o.para.server_url).hostname,n=i.URL(o.para.server_url).searchParams.get("project")||"default"}catch(r){o.log(r)}return!(!t||t!==e[0]||!n||n!==e[1])}return!1}return!!/sa-sdk-ios/.test(navigator.userAgent)}function r(e,t){function n(e){var t=JSON.stringify(i.extend({server_url:o.para.server_url},e));return t=t.replace(/\r\n/g,""),"sensorsanalytics://trackEvent?event="+(t=encodeURIComponent(t))}if(o.para.app_js_bridge.is_mui)return e;var r=e.callback;if(o.bridge.bridge_info.verify_success){var a=document.createElement("iframe"),s=n(e.data);return a.setAttribute("src",s),document.documentElement.appendChild(a),a.parentNode.removeChild(a),a=null,i.isFunction(r)&&r(),t.cancellationToken.cancel(),!0}return o.para.app_js_bridge.is_send?(o.debug.apph5({data:e.data,step:"3.2",output:"all"}),e):(i.isFunction(r)&&r(),t.cancellationToken.cancel(),e)}var o,i,a,s={init:function(t){i=(o=t)&&o._,a=o&&o.log||console&&console.log||function(){},o.on&&o.on("sdkAfterInitPara",e)}};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.IOSObsoleteBridge=window.SensorsDataWebJSSDKPlugin.IOSObsoleteBridge||s:window.SensorsDataWebJSSDKPlugin={IOSObsoleteBridge:s},s}(),xn.modules.Utm=function(){var e,t="utm_source utm_medium utm_campaign utm_content utm_term",n={init:function(n){function r(){var n=t.split(" "),r="",o={};return e._.isArray(e.para.source_channel)&&e.para.source_channel.length>0&&(n=n.concat(e.para.source_channel),n=e._.unique(n)),e._.each(n,(function(t){(r=e._.getQueryParam(location.href,t)).length&&(o[t]=r)})),o}n&&!e&&(e=n).on&&e.on("sdkAfterInitPara",(function(){e.registerInterceptor("businessStage",{getUtmData:{priority:0,entry:function(){return r()}}})}))}};return window.SensorsDataWebJSSDKPlugin&&"[object Object]"===Object.prototype.toString.call(window.SensorsDataWebJSSDKPlugin)?window.SensorsDataWebJSSDKPlugin.Utm=window.SensorsDataWebJSSDKPlugin.Utm||n:window.SensorsDataWebJSSDKPlugin={Utm:n},n}(),xn.use("AndroidBridge"),xn.use("IOSBridge"),xn.use("AndroidObsoleteBridge"),xn.use("IOSObsoleteBridge"),xn.use("Utm"),"string"==typeof window.sensorsDataAnalytic201505?(xn.para=window[sensorsDataAnalytic201505].para,xn._q=window[sensorsDataAnalytic201505]._q,window[sensorsDataAnalytic201505]=xn,window.sensorsDataAnalytic201505=xn,xn.init()):void 0===window.sensorsDataAnalytic201505?window.sensorsDataAnalytic201505=xn:Ur=window.sensorsDataAnalytic201505}catch(Hr){"object"==typeof console&&console.log}return Ur}();function rP(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var oP,iP;(iP=oP||(oP={}))[iP.LEFT_TO_RIGHT=0]="LEFT_TO_RIGHT",iP[iP.RIGHT_TO_LEFT=1]="RIGHT_TO_LEFT";var aP=function(e,t,n){var r,o=function(o){if(!r){var i=n.map((function(e){return"function"==typeof e?{desc:"",order:0,executor:e}:e})).sort((function(e,t){var n=e.order-t.order;return n?n>0?1:-1:0})).map((function(e){return e.executor})),a=function(e){return t(e.value)},s=function(e,t){return function(n){return t((function(t){return void 0!==t&&(n.value=t),e(n)}),n.value)}};r=e===oP.LEFT_TO_RIGHT?i.reduceRight(s,a):i.reduce(s,a)}return r({value:o})},i=o;return i.exec=o,i.add=function(r){var o;if("function"==typeof r){if((o=r(n))===n)return i}else{if(!r.length)return i;o=rP(rP([],n,!0),r,!0)}return aP(e,t,o)},i},sP=function(e,t){return aP(oP.LEFT_TO_RIGHT,e,t)},lP=function(e,t){return(lP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function cP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}lP(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var uP=function(){return uP=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},uP.apply(this,arguments)};function dP(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function pP(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function fP(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function hP(e){return"string"==typeof e}function gP(e){return"number"==typeof e}function vP(e){return"function"==typeof e}function mP(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var yP=function(e){function t(t,n){var r=e.call(this,n)||this;return r.field=t,r}return cP(t,e),t}(Error);function bP(e){var t,n=e&&e.event&&e.event.type,r=e.event;if(void 0===r)throw new yP("event","Event is missing");if(!hP(n))throw new yP("event","Event is not a string");if("track"===n&&!hP(r.event))throw new yP("event","Event is not a string");var o=null!==(t=r.properties)&&void 0!==t?t:r.traits;if("alias"!==n&&!mP(o))throw new yP("properties","properties is not an object");if(!function(e){var t,n,r;return hP(null!==(r=null!==(n=null!==(t=e.userId)&&void 0!==t?t:e.anonymousId)&&void 0!==n?n:e.groupId)&&void 0!==r?r:e.previousId)}(r))throw new yP("userId","Missing userId or anonymousId");return e}var _P={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:bP,identify:bP,page:bP,alias:bP,group:bP,screen:bP};function wP(e,t,n,r){var o,i=[e,t,n,r],a=mP(e)?e.event:e;if(!a||!hP(a))throw new Error("Event missing");var s=mP(e)?null!==(o=e.properties)&&void 0!==o?o:{}:mP(t)?t:{},l={};return vP(n)||(l=null!=n?n:{}),mP(e)&&!vP(t)&&(l=null!=t?t:{}),[a,s,l,i.find(vP)]}function xP(e,t,n,r,o){var i,a,s=null,l=null,c=[e,t,n,r,o],u=c.filter(hP);void 0!==u[0]&&void 0!==u[1]&&(s=u[0],l=u[1]),1===u.length&&(s=null,l=u[0]);var d=c.find(vP),p=c.filter((function(e){return null===l?mP(e):mP(e)||null===e})),f=null!==(i=p[0])&&void 0!==i?i:{},h=null!==(a=p[1])&&void 0!==a?a:{};return[s,l,f,h,d]}var SP=function(e){return function(){for(var t,n,r,o,i,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var l=null;l=null!==(r=null!==(t=a.find(hP))&&void 0!==t?t:null===(n=a.find(gP))||void 0===n?void 0:n.toString())&&void 0!==r?r:e.id();var c=a.filter((function(e){return null===l?mP(e):mP(e)||null===e})),u=null!==(o=c[0])&&void 0!==o?o:{},d=null!==(i=c[1])&&void 0!==i?i:{},p=a.find(vP);return[l,u,d,p]}};function kP(e,t,n,r){gP(e)&&(e=e.toString()),gP(t)&&(t=t.toString());var o=[e,t,n,r],i=o.filter(hP),a=i[0],s=void 0===a?e:a,l=i[1],c=void 0===l?null:l,u=o.filter(mP)[0];return[s,c,void 0===u?{}:u,o.find(vP)]}function CP(){return"undefined"!=typeof window}function OP(){return!CP()}function PP(){return!CP()||window.navigator.onLine}function EP(){return!PP()}var $P=function(){function e(){this.callbacks={}}return e.prototype.on=function(e,t){return this.callbacks[e]?this.callbacks[e].push(t):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this,r=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.off(e,r),t.apply(n,o)};return this.on(e,r),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter((function(e){return e!==t}));return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];var i=null!==(t=this.callbacks[e])&&void 0!==t?t:[];return i.forEach((function(e){e.apply(n,r)})),this},e}();function TP(e,t,n){t.split&&(t=t.split("."));for(var r,o,i=0,a=t.length,s=e;i<a&&"__proto__"!==(o=t[i++])&&"constructor"!==o&&"prototype"!==o;)s=s[o]=i===a?n:typeof(r=s[o])==typeof t?r:0*t[i]!=0||~(""+t[i]).indexOf(".")?{}:[]}const IP=Object.freeze(Object.defineProperty({__proto__:null,dset:TP},Symbol.toStringTag,{value:"Module"}));function jP(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function AP(e,t){return new Promise((function(n,r){var o=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(o),n(e)})).catch(r)}))}function NP(e,t,n){var r;return(r=n,new Promise((function(e){return setTimeout(e,r)}))).then((function(){return AP(function(){try{return Promise.resolve(t(e))}catch(n){return Promise.reject(n)}}(),1e3)})).catch((function(t){null==e||e.log("warn","Callback Error",{error:t}),null==e||e.stats.increment("callback_error")})).then((function(){return e}))}for(var DP,RP=function(e){function t(t,n,r){var o=e.call(this)||this;return o.future=[],o.maxAttempts=t,o.queue=n,o.seen=null!=r?r:{},o}return cP(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map((function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)}));return this.queue=this.queue.sort((function(t,n){return e.getAttempts(t)-e.getAttempts(n)})),r},t.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var n=this.updateAttempts(e);if(n>this.maxAttempts||this.includes(e))return!1;var r=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,o=e.factor,i=void 0===o?2:o,a=e.attempt,s=e.maxTimeout,l=void 0===s?1/0:s;return Math.min(t*r*Math.pow(i,a),l)}({attempt:n-1});return setTimeout((function(){t.queue.push(e),t.future=t.future.filter((function(t){return t.id!==e.id})),t.emit("onRemoveFromFuture")}),r),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find((function(t){return t.id===e.id})))||Boolean(this.future.find((function(t){return t.id===e.id})))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}($P),LP=256,MP=[];LP--;)MP[LP]=(LP+256).toString(16).substring(1);function BP(){var e,t=0,n="";if(!DP||LP+16>256){for(DP=Array(t=256);t--;)DP[t]=256*Math.random()|0;t=LP=0}for(;t<16;t++)e=DP[LP+t],n+=6==t?MP[15&e|64]:8==t?MP[63&e|128]:MP[e],1&t&&t>1&&t<11&&(n+="-");return LP++,n}var FP=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){this._logs.reduce((function(e,t){var n,r,o,i=uP(uP({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete i.time;var a=null!==(o=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==o?o:"";return e[a]&&(a="".concat(a,"-").concat(Math.random())),uP(uP({},e),((n={})[a]=i,n))}),{});console.table}else this.logs.forEach((function(e){e.level,e.message,e.extras}));this._logs=[]},e}(),zP=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!=n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){this.metrics.map((function(e){return uP(uP({},e),{tags:e.tags.join(",")})}));console.table,this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map((function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t}))},e}(),UP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cP(t,e),t.prototype.gauge=function(){},t.prototype.increment=function(){},t.prototype.flush=function(){},t.prototype.serialize=function(){return[]},t}(zP),HP=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},WP=function(){function e(e,t,n,r){void 0===t&&(t=BP()),void 0===n&&(n=new UP),void 0===r&&(r=new FP),this.attempts=0,this.event=e,this._id=t,this.logger=r,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new HP({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return TP(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}();function VP(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),r=t[e.event.type];if(void 0===r)return Promise.resolve(e);var o=function(e){return dP(this,void 0,void 0,(function(){var t;return pP(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return t=n.sent(),[2,Promise.reject(t)];case 3:return[2]}}))}))}((function(){return r.apply(t,[e])})).then((function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(n){if(n instanceof HP&&"middleware_cancellation"===n.type)throw n;return n instanceof HP?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)}));return o}function qP(e,t){return VP(e,t).then((function(t){if(t instanceof WP)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}function KP(){return"undefined"==typeof window||window.navigator.onLine}var JP=function(e){function t(t){var n=e.call(this)||this;return n.criticalTasks=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var o,i=r();return"object"==typeof(o=i)&&null!==o&&"then"in o&&"function"==typeof o.then&&(1==++n&&(e=new Promise((function(e){return t=e}))),i.finally((function(){return 0==--n&&t()}))),i}}}(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=t,n.queue.on("onRemoveFromFuture",(function(){n.scheduleFlush(0)})),n}return cP(t,e),t.prototype.register=function(e,t,n){return dP(this,void 0,void 0,(function(){var r=this;return pP(this,(function(o){switch(o.label){case 0:return[4,Promise.resolve(t.load(e,n)).then((function(){r.plugins.push(t)})).catch((function(n){if("destination"===t.type)return r.failedInitializations.push(t.name),void e.log("warn","Failed to load destination",{plugin:t.name,error:n});throw n}))];case 1:return o.sent(),[2]}}))}))},t.prototype.deregister=function(e,t,n){return dP(this,void 0,void 0,(function(){var r;return pP(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:o.sent(),o.label=2;case 2:return this.plugins=this.plugins.filter((function(e){return e.name!==t.name})),[3,4];case 3:return r=o.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}}))}))},t.prototype.dispatch=function(e){return dP(this,void 0,void 0,(function(){var t;return pP(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]}))}))},t.prototype.subscribeToDelivery=function(e){return dP(this,void 0,void 0,(function(){var t=this;return pP(this,(function(n){return[2,new Promise((function(n){var r=function(o,i){o.isSame(e)&&(t.off("flush",r),n(o))};t.on("flush",r)}))]}))}))},t.prototype.dispatchSingle=function(e){return dP(this,void 0,void 0,(function(){var t=this;return pP(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch((function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)}))]}))}))},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout((function(){t.flush().then((function(){setTimeout((function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)}),0)}))}),e))},t.prototype.deliver=function(e){return dP(this,void 0,void 0,(function(){var t,n,r,o;return pP(this,(function(i){switch(i.label){case 0:return[4,this.criticalTasks.done()];case 1:i.sent(),t=Date.now(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=i.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw r=i.sent(),o=r,e.log("error","Failed to deliver",o),this.emit("delivery_failure",e,o),e.stats.increment("delivery_failed"),r;case 5:return[2]}}))}))},t.prototype.enqueuRetry=function(e,t){return!(e instanceof HP&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return dP(this,void 0,void 0,(function(){var e,t;return pP(this,(function(n){switch(n.label){case 0:if(0===this.queue.length||!KP())return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}}))}))},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t=function(e,t){var n={};return e.forEach((function(e){var r,o=void 0;if("string"==typeof t){var i=e[t];o="string"!=typeof i?JSON.stringify(i):i}else t instanceof Function&&(o=t(e));void 0!==o&&(n[o]=fP(fP([],null!==(r=n[o])&&void 0!==r?r:[],!0),[e],!1))})),n}(this.plugins.filter((function(t){var n,r,o;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var i=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach((function(t){void 0!==e[t]&&(i=e[t])})),null!==(o=null!==(r=e[t.name])&&void 0!==r?r:i)&&void 0!==o?o:!1!==("Segment.io"===t.name||e.All)})),"type"),n=t.before,r=void 0===n?[]:n,o=t.enrichment,i=void 0===o?[]:o,a=t.destination,s=void 0===a?[]:a,l=t.after;return{before:r,enrichment:i,destinations:s,after:void 0===l?[]:l}},t.prototype.flushOne=function(e){var t,n;return dP(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,d,p,f,h,g,v;return pP(this,(function(m){switch(m.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),o=r.before,i=r.enrichment,a=0,s=o,m.label=1;case 1:return a<s.length?(l=s[a],[4,qP(e,l)]):[3,4];case 2:(p=m.sent())instanceof WP&&(e=p),this.emit("message_enriched",e,l),m.label=3;case 3:return a++,[3,1];case 4:c=0,u=i,m.label=5;case 5:return c<u.length?(d=u[c],[4,VP(e,d)]):[3,8];case 6:(p=m.sent())instanceof WP&&(e=p),this.emit("message_enriched",e,d),m.label=7;case 7:return c++,[3,5];case 8:return f=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),h=f.destinations,g=f.after,[4,new Promise((function(t,n){setTimeout((function(){var r=h.map((function(t){return VP(e,t)}));Promise.all(r).then(t).catch(n)}),0)}))];case 9:return m.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),v=g.map((function(t){return VP(e,t)})),[4,Promise.all(v)];case 10:return m.sent(),[2,e]}}))}))},t}($P);function GP(e,t,n,r){return dP(this,void 0,void 0,(function(){var o,i;return pP(this,(function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),o=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return i=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:i=a.sent(),a.label=4;case 4:return(null==r?void 0:r.callback)?[4,NP(i,r.callback,(s=o,l=r.timeout,c=Date.now()-s,Math.max((null!=l?l:300)-c,0)))]:[3,6];case 5:i=a.sent(),a.label=6;case 6:return(null==r?void 0:r.debug)&&i.flush(),[2,i]}var s,l,c}))}))}function YP(e,t){return t=t||{},new Promise((function(n,r){var o=new XMLHttpRequest,i=[],a=[],s={},l=function(){return{ok:2==(o.status/100|0),statusText:o.statusText,status:o.status,url:o.responseURL,text:function(){return Promise.resolve(o.responseText)},json:function(){return Promise.resolve(o.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([o.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in o.open(t.method||"get",e,!0),o.onload=function(){o.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(l())},o.onerror=r,o.withCredentials="include"==t.credentials,t.headers)o.setRequestHeader(c,t.headers[c]);o.send(t.body||null)}))}var XP=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:null},ZP=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=XP();return(n&&n.fetch||YP).apply(void 0,e)};
/*! js-cookie v3.0.1 | MIT */
function QP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var eE=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=QP({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(l){}}return e?r[e]:r}},remove:function(e,t){r(e,"",QP({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,QP({},this.attributes,t))},withConverter:function(t){return e(QP({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function tE(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(Mm){return e}}function nE(e){var t=function(e){try{return new URL(e)}catch(Mm){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var o=t.length-2;o>=0;--o)r.push(t.slice(o).join("."));return r}(t),r=0;r<n.length;++r){var o="__tld__",i=n[r],a={domain:"."+i};try{if(eE.set(o,"1",a),eE.get(o))return eE.remove(o,a),i}catch(s){return}}}function rE(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var o=r[n];if("constructor"!==o){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,o);i&&"function"==typeof i.value&&(e[o]=e[o].bind(e))}}return e}var oE={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},iE=function(){function e(){this.cache={}}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},Object.defineProperty(e.prototype,"type",{get:function(){return"memory"},enumerable:!1,configurable:!0}),e}(),aE=function(e){function t(n){void 0===n&&(n=t.defaults);var r=e.call(this)||this;return r.options=uP(uP({},t.defaults),n),r}return cP(t,e),t.available=function(){var e=window.navigator.cookieEnabled;return e||(eE.set("ajs:cookies","test"),e=document.cookie.includes("ajs:cookies"),eE.remove("ajs:cookies")),e},Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:nE(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(e){try{var t=eE.get(e);if(!t)return null;try{return JSON.parse(t)}catch(n){return t}}catch(n){return null}},t.prototype.set=function(e,t){"string"==typeof t?eE.set(e,t,this.opts()):null===t?eE.remove(e,this.opts()):eE.set(e,JSON.stringify(t),this.opts())},t.prototype.remove=function(e){return eE.remove(e,this.opts())},Object.defineProperty(t.prototype,"type",{get:function(){return"cookie"},enumerable:!1,configurable:!0}),t}(iE),sE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cP(t,e),t.available=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}},t.prototype.get=function(e){try{var t=localStorage.getItem(e);if(null===t)return null;try{return JSON.parse(t)}catch(n){return t}}catch(r){return null}},t.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(Mm){}},t.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){}},Object.defineProperty(t.prototype,"type",{get:function(){return"localStorage"},enumerable:!1,configurable:!0}),t}(iE),lE=function(){function e(e,t){this.storageOptions=t,this.enabledStores=e}return e.prototype.getStores=function(e){var t=this,n=[];return this.enabledStores.filter((function(t){return!e||(null==e?void 0:e.includes(t))})).forEach((function(e){var r=t.storageOptions[e];void 0!==r&&n.push(r)})),n},e.prototype.getAndSync=function(e,t){var n=this.get(e,t),r="number"==typeof n?n.toString():n;return this.set(e,r,t),r},e.prototype.get=function(e,t){for(var n=null,r=0,o=this.getStores(t);r<o.length;r++){if(n=o[r].get(e))return n}return null},e.prototype.set=function(e,t,n){for(var r=0,o=this.getStores(n);r<o.length;r++){o[r].set(e,t)}},e.prototype.clear=function(e,t){for(var n=0,r=this.getStores(t);n<r.length;n++){r[n].remove(e)}},e}();function cE(e){return{cookie:aE.available()?new aE(e):void 0,localStorage:sE.available()?new sE:void 0,memory:new iE}}var uE,dE=function(){function e(e,t){void 0===e&&(e=oE);var n,r,o,i,a=this;this.options={},this.id=function(e){if(a.options.disable)return null;var t=a.identityStore.getAndSync(a.idKey);void 0!==e&&(a.identityStore.set(a.idKey,e),e!==t&&null!==t&&null!==e&&a.anonymousId(null));var n=a.identityStore.getAndSync(a.idKey);if(n)return n;var r=a.legacyUserStore.get(oE.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(a.options.disable)return null;if(void 0===e){var r=null!==(t=a.identityStore.getAndSync(a.anonKey))&&void 0!==t?t:null===(n=a.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(a.identityStore.set(a.anonKey,null),a.identityStore.getAndSync(a.anonKey)):(a.identityStore.set(a.anonKey,null!=e?e:BP()),a.identityStore.getAndSync(a.anonKey))},this.traits=function(e){var t;if(!a.options.disable)return null===e&&(e={}),e&&a.traitsStore.set(a.traitsKey,null!=e?e:{}),null!==(t=a.traitsStore.get(a.traitsKey))&&void 0!==t?t:{}},this.options=e,this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:oE.cookie.key,this.traitsKey=null!==(i=null===(o=e.localStorage)||void 0===o?void 0:o.key)&&void 0!==i?i:oE.localStorage.key,this.anonKey="ajs_anonymous_id";var s=!0===e.disable,l=!1!==e.persist,c=s?[]:l?["localStorage","cookie","memory"]:["memory"],u=cE(t);e.localStorageFallbackDisabled&&(c=c.filter((function(e){return"localStorage"!==e}))),this.identityStore=new lE(c,u),this.legacyUserStore=new lE(c.filter((function(e){return"localStorage"!==e&&"memory"!==e})),u),this.traitsStore=new lE(c.filter((function(e){return"cookie"!==e})),u);var d=this.legacyUserStore.get(oE.cookie.oldKey);d&&"object"==typeof d&&(d.id&&this.id(d.id),d.traits&&this.traits(d.traits)),rE(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!=t?t:{};var n=this.id();null!==n&&n!==e||(t=uP(uP({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.defaults=oE,e}(),pE={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},fE=function(e){function t(t,n){void 0===t&&(t=pE);var r=e.call(this,t,n)||this;return r.anonymousId=function(e){},rE(r),r}return cP(t,e),t}(dE);function hE(e,t,n){var r=new lE(n?[]:["cookie"],cE(function(){if(uE)return uE;var e=nE(window.location.href);return uE={expires:31536e6,secure:!1,path:"/"},e&&(uE.domain=e),uE}())),o=r.get("s:context.referrer"),i=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var o=r[n].split("="),i=o[0],a=o[1];if(t[i])return{id:a,type:t[i]}}}(e);(i=null!=i?i:o)&&(t&&(t.referrer=uP(uP({},t.referrer),i)),r.set("s:context.referrer",i))}function gE(e,t,n,r){var o,i,a,s,l=e.user(),c=window.location.search;t.context=null!==(i=null!==(o=t.context)&&void 0!==o?o:t.options)&&void 0!==i?i:{};var u=t.context;delete t.options,t.writeKey=null==n?void 0:n.apiKey,u.userAgent=window.navigator.userAgent;var d=navigator.userLanguage||navigator.language;if(void 0===u.locale&&void 0!==d&&(u.locale=d),!u.library){u.library={name:"analytics.js",version:"npm:next-".concat("1.49.2")}}c&&!u.campaign&&(u.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],o=n[1],i=void 0===o?"":o;if(r.includes("utm_")&&r.length>4){var a=r.substr(4);"campaign"===a&&(a="name"),e[a]=tE(i)}return e}),{})}(c)),hE(c,u,null!==(a=e.options.disableClientPersistence)&&void 0!==a&&a),t.userId=t.userId||l.id(),t.anonymousId=t.anonymousId||l.anonymousId(),t.sentAt=new Date;var p=e.queue.failedInitializations||[];p.length>0&&(t._metadata={failedInitializations:p});var f=[],h=[];for(var g in r){var v=r[g];"Segment.io"===g&&f.push(g),"bundled"===v.bundlingStatus&&f.push(g),"unbundled"===v.bundlingStatus&&h.push(g)}for(var m=0,y=(null==n?void 0:n.unbundledIntegrations)||[];m<y.length;m++){var b=y[m];h.includes(b)||h.push(b)}var _=null!==(s=null==n?void 0:n.maybeBundledConfigIds)&&void 0!==s?s:{},w=[];f.sort().forEach((function(e){var t;(null!==(t=_[e])&&void 0!==t?t:[]).forEach((function(e){w.push(e)}))})),!1!==(null==n?void 0:n.addBundledMetadata)&&(t._metadata=uP(uP({},t._metadata),{bundled:f.sort(),unbundled:h.sort(),bundledIds:w}));var x=function(){var e=eE.get("_ga");if(e&&e.startsWith("amp"))return e}();return x&&(u.amp={id:x}),t}function vE(e){}var mE,yE=function(){function e(e){var t,n,r,o,i=this;if(this.host=null!==(t=null==e?void 0:e.host)&&void 0!==t?t:"api.segment.io/v1",this.sampleRate=null!==(n=null==e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null==e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(o=null==e?void 0:e.maxQueueSize)&&void 0!==o?o:20,this.queue=[],this.sampleRate>0){var a=!1,s=function(){a||(a=!0,i.flush().catch(vE),a=!1,setTimeout(s,i.flushTimer))};s()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var r=t.reduce((function(e,t){var n=t.split(":"),r=n[0],o=n[1];return e[r]=o,e}),{});return{type:"Counter",metric:e,value:1,tags:uP(uP({},r),{library:"analytics.js",library_version:"web"===n?"next-".concat("1.49.2"):"npm:next-".concat("1.49.2")})}}(e,t,"npm");this.queue.push(n),e.includes("error")&&this.flush().catch(vE)}},e.prototype.flush=function(){return dP(this,void 0,void 0,(function(){var e=this;return pP(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return dP(this,void 0,void 0,(function(){var e,t,n;return pP(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,ZP(n,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),bE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return cP(t,e),t.initRemoteMetrics=function(e){mE=new yE(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null==mE||mE.increment(t,null!=r?r:[])},t}(zP),_E=function(e){function t(t,n){return e.call(this,t,n,new bE)||this}return cP(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(WP),wE={exports:{}};const xE=wE.exports=function(e){var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],o=e[2],i=e[3];r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&o)+t[1]-389564586|0)<<12|i>>>20)+n|0)&n|~i&r)+t[2]+606105819|0)<<17|o>>>15)+i|0)&i|~o&n)+t[3]-1044525330|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&o)+t[5]+1200080426|0)<<12|i>>>20)+n|0)&n|~i&r)+t[6]-1473231341|0)<<17|o>>>15)+i|0)&i|~o&n)+t[7]-45705983|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&o)+t[9]-1958414417|0)<<12|i>>>20)+n|0)&n|~i&r)+t[10]-42063|0)<<17|o>>>15)+i|0)&i|~o&n)+t[11]-1990404162|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&o|~r&i)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&o)+t[13]-40341101|0)<<12|i>>>20)+n|0)&n|~i&r)+t[14]-1502002290|0)<<17|o>>>15)+i|0)&i|~o&n)+t[15]+1236535329|0)<<22|r>>>10)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[1]-165796510|0)<<5|n>>>27)+r|0)&o|r&~o)+t[6]-1069501632|0)<<9|i>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|o>>>18)+i|0)&n|i&~n)+t[0]-373897302|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[5]-701558691|0)<<5|n>>>27)+r|0)&o|r&~o)+t[10]+38016083|0)<<9|i>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|o>>>18)+i|0)&n|i&~n)+t[4]-405537848|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[9]+568446438|0)<<5|n>>>27)+r|0)&o|r&~o)+t[14]-1019803690|0)<<9|i>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|o>>>18)+i|0)&n|i&~n)+t[8]+1163531501|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r&i|o&~i)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&o|r&~o)+t[2]-51403784|0)<<9|i>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|o>>>18)+i|0)&n|i&~n)+t[12]-1926607734|0)<<20|r>>>12)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^o)+t[8]-2022574463|0)<<11|i>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|o>>>16)+i|0)^i^n)+t[14]-35309556|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^o)+t[4]+1272893353|0)<<11|i>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|o>>>16)+i|0)^i^n)+t[10]-1094730640|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^o)+t[0]-358537222|0)<<11|i>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|o>>>16)+i|0)^i^n)+t[6]+76029189|0)<<23|r>>>9)+o|0,r=((r+=((o=((o+=((i=((i+=((n=((n+=(r^o^i)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^o)+t[12]-421815835|0)<<11|i>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|o>>>16)+i|0)^i^n)+t[2]-995338651|0)<<23|r>>>9)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~o))+t[7]+1126891415|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[14]-1416354905|0)<<15|o>>>17)+i|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~o))+t[3]-1894986606|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[10]-1051523|0)<<15|o>>>17)+i|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~o))+t[15]-30611744|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[6]-1560198380|0)<<15|o>>>17)+i|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+o|0,r=((r+=((i=((i+=(r^((n=((n+=(o^(r|~i))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~o))+t[11]-1120210379|0)<<10|i>>>22)+n|0)^((o=((o+=(n^(i|~r))+t[2]+718787259|0)<<15|o>>>17)+i|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+o|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=o+e[2]|0,e[3]=i+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function o(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function i(e){var t,o,i,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,r(e.substring(t-64,t)));for(o=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<o;t+=1)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(u,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(u,i),u}function a(e){var t,r,i,a,s,l,c=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(u,o(e.subarray(t-64,t)));for(r=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)i[t>>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(n(u,i),t=0;t<16;t+=1)i[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),l=parseInt(a[1],16)||0,i[14]=s,i[15]=l,n(u,i),u}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function l(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e,t){var n,r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o);for(n=0;n<r;n+=1)i[n]=e.charCodeAt(n);return t?i:o}function d(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function p(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function f(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return l(i("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var o,i,a,s,l=this.byteLength,c=t(n,l),u=l;return r!==e&&(u=t(r,l)),c>u?new ArrayBuffer(0):(o=u-c,i=new ArrayBuffer(o),a=new Uint8Array(i),s=new Uint8Array(this,c,o),a.set(s),i)}}(),h.prototype.append=function(e){return this.appendBinary(c(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,o=this._buff.length;for(t=64;t<=o;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=f(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,o,i,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(r[2],16),i=parseInt(r[1],16)||0,e[14]=o,e[15]=i,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(c(e),t)},h.hashBinary=function(e,t){var n=l(i(e));return t?f(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=p(this._buff.buffer,e,!0),i=r.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)n(this._hash,o(r.subarray(t-64,t)));return this._buff=t-64<i?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,o=r.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<o;t+=1)i[t>>2]|=r[t]<<(t%4<<3);return this._finish(i,o),n=l(this._hash),e&&(n=f(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=d(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=u(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=l(a(new Uint8Array(e)));return t?f(n):n},h}();var SE=function(){function e(e){this.user=e}return e.prototype.track=function(e,t,n,r){return this.normalize(uP(uP({},this.baseEvent()),{event:e,type:"track",properties:t,options:uP({},n),integrations:uP({},r)}))},e.prototype.page=function(e,t,n,r,o){var i,a={type:"page",properties:uP({},n),options:uP({},r),integrations:uP({},o)};return null!==e&&(a.category=e,a.properties=null!==(i=a.properties)&&void 0!==i?i:{},a.properties.category=e),null!==t&&(a.name=t),this.normalize(uP(uP({},this.baseEvent()),a))},e.prototype.screen=function(e,t,n,r,o){var i={type:"screen",properties:uP({},n),options:uP({},r),integrations:uP({},o)};return null!==e&&(i.category=e),null!==t&&(i.name=t),this.normalize(uP(uP({},this.baseEvent()),i))},e.prototype.identify=function(e,t,n,r){return this.normalize(uP(uP({},this.baseEvent()),{type:"identify",userId:e,traits:t,options:uP({},n),integrations:uP({},r)}))},e.prototype.group=function(e,t,n,r){return this.normalize(uP(uP({},this.baseEvent()),{type:"group",traits:t,options:uP({},n),integrations:uP({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){var o={userId:e,type:"alias",options:uP({},n),integrations:uP({},r)};return null!==t&&(o.previousId=t),void 0===e?this.normalize(uP(uP({},o),this.baseEvent())):this.normalize(uP(uP({},this.baseEvent()),o))},e.prototype.baseEvent=function(){var e={integrations:{},options:{}},t=this.user;return t.id()&&(e.userId=t.id()),t.anonymousId()&&(e.anonymousId=t.anonymousId()),e},e.prototype.context=function(e){var t,n,r,o=["integrations","anonymousId","timestamp","userId"],i=null!==(t=e.options)&&void 0!==t?t:{};delete i.integrations;var a=Object.keys(i),s=null!==(r=null===(n=e.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},l={};return a.forEach((function(e){"context"!==e&&(o.includes(e)?TP(l,e,i[e]):TP(s,e,i[e]))})),[s,l]},e.prototype.normalize=function(e){var t,n,r;(null===(t=e.options)||void 0===t?void 0:t.anonymousId)&&this.user.anonymousId(e.options.anonymousId);var o=Object.keys(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce((function(t,n){var r,o;return uP(uP({},t),((r={})[n]=Boolean(null===(o=e.integrations)||void 0===o?void 0:o[n]),r))}),{}),i=uP(uP({},o),null===(r=e.options)||void 0===r?void 0:r.integrations),a=this.context(e),s=a[0],l=a[1];e.options;var c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["options"]),u=uP(uP(uP({timestamp:new Date},c),{context:s,integrations:i}),l),d="ajs-next-"+xE.hash(JSON.stringify(u)+BP());return uP(uP({},u),{messageId:d})},e}(),kE={getItem:function(){},setItem:function(){},removeItem:function(){}};try{kE=CP()&&window.localStorage?window.localStorage:kE}catch(rI){}function CE(e){var t=kE.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new _E(e.event,e.id)}))}function OE(e){var t=kE.getItem(e);return t?JSON.parse(t):{}}function PE(e){kE.removeItem(e)}function EE(e,t,n){void 0===n&&(n=0);var r,o="persisted-queue:v1:".concat(e,":lock"),i=kE.getItem(o),a=i?JSON.parse(i):null,s=null===a||(r=a,(new Date).getTime()>r);if(s)return kE.setItem(o,JSON.stringify((new Date).getTime()+50)),t(),void kE.removeItem(o);!s&&n<3&&setTimeout((function(){EE(e,t,n+1)}),50)}var $E=function(e){function t(t,n){var r=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),i="persisted-queue:v1:".concat(n,":seen"),a=[],s={};return EE(n,(function(){try{a=CE(o),s=OE(i),PE(o),PE(i),r.queue=fP(fP([],a,!0),r.queue,!0),r.seen=uP(uP({},s),r.seen)}catch(rI){}})),window.addEventListener("pagehide",(function(){if(r.todo>0){var e=fP(fP([],r.queue,!0),r.future,!0);try{EE(n,(function(){!function(e,t){var n=CE(e),r=fP(fP([],t,!0),n,!0).reduce((function(e,t){var n;return uP(uP({},e),((n={})[t.id]=t,n))}),{});kE.setItem(e,JSON.stringify(Object.values(r)))}(o,e),function(e,t){var n=OE(e);kE.setItem(e,JSON.stringify(uP(uP({},n),t)))}(i,r.seen)}))}catch(rI){}}})),r}return cP(t,e),t}(RP),TE=function(e){function t(t){return e.call(this,null!=t?t:new $E(4,"event-queue"))||this}return cP(t,e),t}(JP),IE=XP(),jE=null==IE?void 0:IE.analytics;function AE(){}var NE=function(e){function t(t,n,r,o,i){var a,s,l,c=this;(c=e.call(this)||this)._debug=!1,c.initialized=!1,c.user=function(){return c._user},c.init=c.initialize.bind(c),c.log=AE,c.addIntegrationMiddleware=AE,c.listeners=AE,c.addEventListener=AE,c.removeAllListeners=AE,c.removeListener=AE,c.removeEventListener=AE,c.hasListeners=AE,c.add=AE,c.addIntegration=AE;var u=null==n?void 0:n.cookie,d=null!==(a=null==n?void 0:n.disableClientPersistence)&&void 0!==a&&a;return c.settings=t,c.settings.timeout=null!==(s=c.settings.timeout)&&void 0!==s?s:300,c.queue=null!=r?r:function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var n=e?4:1,r=t?new RP(n,[]):new $E(n,"event-queue");return new TE(r)}(null==n?void 0:n.retryQueue,d),c._universalStorage=new lE(d?["memory"]:["localStorage","cookie","memory"],cE(u)),c._user=null!=o?o:new dE(d?uP(uP({},null==n?void 0:n.user),{persist:!1}):null==n?void 0:n.user,u).load(),c._group=null!=i?i:new fE(d?uP(uP({},null==n?void 0:n.group),{persist:!1}):null==n?void 0:n.group,u).load(),c.eventFactory=new SE(c._user),c.integrations=null!==(l=null==n?void 0:n.integrations)&&void 0!==l?l:{},c.options=null!=n?n:{},rE(c),c}return cP(t,e),Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r,o,i,a,s=this;return pP(this,(function(l){return t=wP.apply(void 0,e),n=t[0],r=t[1],o=t[2],i=t[3],a=this.eventFactory.track(n,r,o,this.integrations),[2,this._dispatch(a,i).then((function(e){return s.emit("track",n,e.event.properties,e.event.options),e}))]}))}))},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l=this;return pP(this,(function(c){return t=xP.apply(void 0,e),n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=this.eventFactory.page(n,r,o,i,this.integrations),[2,this._dispatch(s,a).then((function(e){return l.emit("page",n,r,e.event.properties,e.event.options),e}))]}))}))},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r,o,i,a,s=this;return pP(this,(function(l){return t=SP(this._user).apply(void 0,e),n=t[0],r=t[1],o=t[2],i=t[3],this._user.identify(n,r),a=this.eventFactory.identify(this._user.id(),this._user.traits(),o,this.integrations),[2,this._dispatch(a,i).then((function(e){return s.emit("identify",e.event.userId,e.event.traits,e.event.options),e}))]}))}))},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return this._group;var r=SP(this._group).apply(void 0,t),o=r[0],i=r[1],a=r[2],s=r[3];this._group.identify(o,i);var l=this._group.id(),c=this._group.traits(),u=this.eventFactory.group(l,c,a,this.integrations);return this._dispatch(u,s).then((function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t}))},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r,o,i,a,s=this;return pP(this,(function(l){return t=kP.apply(void 0,e),n=t[0],r=t[1],o=t[2],i=t[3],a=this.eventFactory.alias(n,r,o,this.integrations),[2,this._dispatch(a,i).then((function(e){return s.emit("alias",n,r,e.event.options),e}))]}))}))},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l=this;return pP(this,(function(c){return t=xP.apply(void 0,e),n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],s=this.eventFactory.screen(n,r,o,i,this.integrations),[2,this._dispatch(s,a).then((function(e){return l.emit("screen",n,r,e.event.properties,e.event.options),e}))]}))}))},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n;return pP(this,(function(r){switch(r.label){case 0:return[4,Xu((()=>import("./auto-track-d84bd3e6.js")),[])];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,fP([this],e,!1))]}}))}))},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n;return pP(this,(function(r){switch(r.label){case 0:return[4,Xu((()=>import("./auto-track-d84bd3e6.js")),[])];case 1:return t=r.sent(),[2,(n=t.link).call.apply(n,fP([this],e,!1))]}}))}))},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n;return pP(this,(function(r){switch(r.label){case 0:return[4,Xu((()=>import("./auto-track-d84bd3e6.js")),[])];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,fP([this],e,!1))]}}))}))},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n;return pP(this,(function(r){switch(r.label){case 0:return[4,Xu((()=>import("./auto-track-d84bd3e6.js")),[])];case 1:return t=r.sent(),[2,(n=t.form).call.apply(n,fP([this],e,!1))]}}))}))},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r=this;return pP(this,(function(o){switch(o.label){case 0:return t=_E.system(),n=e.map((function(e){return r.queue.register(t,e,r)})),[4,Promise.all(n)];case 1:return o.sent(),[2,t]}}))}))},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return dP(this,void 0,void 0,(function(){var t,n,r=this;return pP(this,(function(o){switch(o.label){case 0:return t=_E.system(),n=e.map((function(e){var n=r.queue.plugins.find((function(t){return t.name===e}));if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))})),[4,Promise.all(n)];case 1:return o.sent(),[2,t]}}))}))},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return dP(this,void 0,void 0,(function(){var n;return pP(this,(function(r){return n=new _E(e),EP()&&!this.options.retryQueue?[2,n]:[2,GP(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]}))}))},t.prototype.addSourceMiddleware=function(e){return dP(this,void 0,void 0,(function(){var t=this;return pP(this,(function(n){switch(n.label){case 0:return[4,this.queue.criticalTasks.run((function(){return dP(t,void 0,void 0,(function(){var t,n,r;return pP(this,(function(o){switch(o.label){case 0:return[4,Xu((()=>Promise.resolve().then((()=>jT))),void 0)];case 1:return t=o.sent().sourceMiddlewarePlugin,n={},this.queue.plugins.forEach((function(e){if("destination"===e.type)return n[e.name]=!0})),r=t(e,n),[4,this.register(r)];case 2:return o.sent(),[2]}}))}))}))];case 1:return n.sent(),[2,this]}}))}))},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.queue.plugins.filter((function(t){return t.name.toLowerCase()===e.toLowerCase()}));return r.forEach((function(e){e.addMiddleware.apply(e,t)})),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return dP(this,void 0,void 0,(function(){return pP(this,(function(t){switch(t.label){case 0:return[4,Xu((()=>import("./index-42226bbd.js")),[])];case 1:return[2,(0,t.sent().queryString)(this,e)]}}))}))},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),dP(this,void 0,void 0,(function(){return pP(this,(function(t){return[2,Promise.all(this.queue.plugins.map((function(e){return e.ready?e.ready():Promise.resolve()}))).then((function(t){return e(t),t}))]}))}))},t.prototype.noConflict=function(){return window.analytics=null!=jE?jE:this,this},t.prototype.normalize=function(e){return this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return"1.49.2"},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return dP(this,void 0,void 0,(function(){return pP(this,(function(e){return[2,Promise.resolve(this)]}))}))},t.prototype.pageview=function(e){return dP(this,void 0,void 0,(function(){return pP(this,(function(t){switch(t.label){case 0:return[4,this.page({path:e})];case 1:return t.sent(),[2,this]}}))}))},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return this.queue.plugins.filter((function(e){return"destination"===e.type})).reduce((function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var o=r.Integration;return o?(e[t.name]=o,e):(e[t.name]=r,e)}),{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}($P);function DE(){return"undefined"!=typeof process&&process.env?process.env:{}}var RE,LE=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,ME=function(){var e=function(){var e;return null!=RE?RE:null===(e=window.analytics)||void 0===e?void 0:e._cdn}();if(e)return e;var t,n=(Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(e){var n,r=null!==(n=e.getAttribute("src"))&&void 0!==n?n:"",o=LE.exec(r);o&&o[1]&&(t=o[1])})),t);return n||"https://cdn.segment.com"},BE=function(){var e=ME();return"".concat(e,"/next-integrations")};function FE(e,t){var n,r=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce((function(e,t){var n,r,o=t[0],i=t[1];return uP(uP({},e),"object"==typeof i?((n={})[o]=i,n):((r={})[o]={},r))}),{});return Object.entries(e.integrations).reduce((function(e,t){var n,o=t[0],i=t[1];return uP(uP({},e),((n={})[o]=uP(uP({},i),r[o]),n))}),{})}function zE(){var e=document.getElementsByTagName("link"),t="";return Array.prototype.slice.call(e).forEach((function(e){"canonical"===e.getAttribute("rel")&&(t=e.getAttribute("href"))})),t}function UE(){var e=zE();if(!e)return window.location.pathname;var t=document.createElement("a");return t.href=e,t.pathname.startsWith("/")?t.pathname:"/"+t.pathname}function HE(e){void 0===e&&(e="");var t=zE();if(t)return t.includes("?")?t:"".concat(t).concat(e);var n=window.location.href,r=n.indexOf("#");return-1===r?n:n.slice(0,r)}function WE(){return{path:UE(),referrer:document.referrer,search:location.search,title:document.title,url:HE(location.search)}}function VE(e){var t,n=e.event;n.context=n.context||{};var r=WE(),o=null!==(t=n.properties)&&void 0!==t?t:{};return Object.keys(r).forEach((function(e){o[e]&&(r[e]=o[e])})),n.context.page&&(r=Object.assign({},r,n.context.page)),n.context=Object.assign({},n.context,{page:r}),e.event=n,e}var qE={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:function(e){return e.event.properties=Object.assign({},WE(),e.event.properties),e.event.name&&(e.event.properties.name=e.event.name),VE(e)},alias:VE,track:VE,identify:VE,group:VE};function KE(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function JE(e,t){var n=KE(e);if(void 0!==n){var r=null==n?void 0:n.getAttribute("status");if("loaded"===r)return Promise.resolve(n);if("loading"===r)return new Promise((function(e,t){n.addEventListener("load",(function(){return e(n)})),n.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(n,r){var o,i=window.document.createElement("script");i.type="text/javascript",i.src=e,i.async=!0,i.setAttribute("status","loading");for(var a=0,s=Object.entries(null!=t?t:{});a<s.length;a++){var l=s[a],c=l[0],u=l[1];i.setAttribute(c,u)}i.onload=function(){i.onerror=i.onload=null,i.setAttribute("status","loaded"),n(i)},i.onerror=function(){i.onerror=i.onload=null,i.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var d=window.document.getElementsByTagName("script")[0];null===(o=d.parentElement)||void 0===o||o.insertBefore(i,d)}))}function GE(e){var t=KE(e);return void 0!==t&&t.remove(),Promise.resolve()}var YE={},XE={},ZE={},QE={exports:{}};!function(e){function t(e){return function(t,n,r,i){var a,s=i&&function(e){return"function"==typeof e}(i.normalizer)?i.normalizer:o;n=s(n);for(var l=!1;!l;)c();function c(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var o=t[a];return null==o?void(l=!0):n.length?void(t=o):void(l=!0)}}}a=void 0,l=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function o(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t((function(e,t){if(e.hasOwnProperty(t))return e[t]})),e.exports.find=e.exports,e.exports.replace=function(e,n,o,i){return t(r).call(this,e,n,o,i),e},e.exports.del=function(e,r,o){return t(n).call(this,e,r,null,o),e}}(QE);var e$=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ZE,"__esModule",{value:!0});var t$=e$(QE.exports);function n$(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return t$.default(n,"address."+e)||t$.default(n,e)||(t?t$.default(n,"address."+t):null)||(t?t$.default(n,t):null)||t$.default(r,"address."+e)||t$.default(r,e)||(t?t$.default(r,"address."+t):null)||(t?t$.default(r,t):null)}}ZE.default=function(e){e.zip=n$("postalCode","zip"),e.country=n$("country"),e.street=n$("street"),e.state=n$("state"),e.city=n$("city"),e.region=n$("region")};var r$={};Object.defineProperty(r$,"__esModule",{value:!0}),r$.clone=void 0,r$.clone=function e(t){if("object"!=typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t};var o$={};Object.defineProperty(o$,"__esModule",{value:!0});var i$={Salesforce:!0};o$.default=function(e){return!i$[e]};var a$={},s$=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;a$.parse=function(e){var t=[1,5,6,7,11,12],n=s$.exec(e),r=0;if(!n)return new Date(e);for(var o,i=0;o=t[i];i++)n[o]=parseInt(n[o],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0," "===n[4]?r=(new Date).getTimezoneOffset():"Z"!==n[9]&&n[10]&&(r=60*n[11]+n[12],"+"===n[10]&&(r=0-r));var a=Date.UTC(n[1],n[2],n[3],n[5],n[6]+r,n[7],n[8]);return new Date(a)},a$.is=function(e,t){return"string"==typeof e&&((!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&s$.test(e))};var l$={},c$=/\d{13}/;l$.is=function(e){return c$.test(e)},l$.parse=function(e){return e=parseInt(e,10),new Date(e)};var u$={},d$=/\d{10}/;u$.is=function(e){return d$.test(e)},u$.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)};var p$=a$,f$=l$,h$=u$,g$=Object.prototype.toString;var v$=function(e){return t=e,"[object Date]"===g$.call(t)?e:function(e){return"[object Number]"===g$.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):p$.is(e)?p$.parse(e):f$.is(e)?f$.parse(e):h$.is(e)?h$.parse(e):new Date(e);var t,n};var m$=a$,y$=b$;function b$(e,t){return void 0===t&&(t=!0),e&&"object"==typeof e?function(e,t){return Object.keys(e).forEach((function(n){e[n]=b$(e[n],t)})),e}(e,t):Array.isArray(e)?function(e,t){return e.forEach((function(n,r){e[r]=b$(n,t)})),e}(e,t):m$.is(e,t)?m$.parse(e):e}var _$=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(XE,"__esModule",{value:!0}),XE.Facade=void 0;var w$=_$(ZE),x$=r$,S$=_$(o$),k$=_$(v$),C$=_$(QE.exports),O$=_$(y$);function P$(e,t){t=t||{},this.raw=x$.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=x$.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?k$.default(e.timestamp):new Date,t.traverse&&O$.default(e),this.opts=t,this.obj=e}XE.Facade=P$;var E$=P$.prototype;function $$(e){return x$.clone(e)}E$.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"==typeof n&&(n=n.call(this)||{}),0===t.length||(n=C$.default(n,t.join("."))),this.opts.clone?$$(n):n):n},E$.field=function(e){var t=this.obj[e];return this.opts.clone?$$(t):t},P$.proxy=function(e){return function(){return this.proxy(e)}},P$.field=function(e){return function(){return this.field(e)}},P$.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?x$.clone(n):n]),n||[]}},P$.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},E$.json=function(){var e=this.opts.clone?x$.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},E$.rawEvent=function(){return this.raw},E$.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?x$.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),o=r[e]||C$.default(r,e);return"object"!=typeof o&&(o=C$.default(this.options(),e)),"object"==typeof o?o:{}}},E$.context=E$.options,E$.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!=typeof t&&(t=this.proxy("options.all")),"boolean"!=typeof t&&(t=this.proxy("integrations.all")),"boolean"!=typeof t&&(t=!0);var n=t&&S$.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var o=r[e];n="boolean"!=typeof o||o}return!!n},E$.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},E$.active=function(){var e=this.proxy("options.active");return null==e&&(e=!0),e},E$.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},E$.sessionId=E$.anonymousId,E$.groupId=P$.proxy("options.groupId"),E$.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},E$.library=function(){var e=this.proxy("options.library");return e?"string"==typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},E$.device=function(){var e=this.proxy("context.device");"object"==typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},E$.userAgent=P$.proxy("context.userAgent"),E$.timezone=P$.proxy("context.timezone"),E$.timestamp=P$.field("timestamp"),E$.channel=P$.field("channel"),E$.ip=P$.proxy("context.ip"),E$.userId=P$.field("userId"),w$.default(E$);var T$={},I$={exports:{}};"function"==typeof Object.create?I$.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:I$.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}};var j$=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(T$,"__esModule",{value:!0}),T$.Alias=void 0;var A$=j$(I$.exports),N$=XE;function D$(e,t){N$.Facade.call(this,e,t)}T$.Alias=D$,A$.default(D$,N$.Facade),D$.prototype.action=function(){return"alias"},D$.prototype.type=D$.prototype.action,D$.prototype.previousId=function(){return this.field("previousId")||this.field("from")},D$.prototype.from=D$.prototype.previousId,D$.prototype.userId=function(){return this.field("userId")||this.field("to")},D$.prototype.to=D$.prototype.userId;var R$={},L$={};Object.defineProperty(L$,"__esModule",{value:!0});var M$=/.+\@.+\..+/;L$.default=function(e){return M$.test(e)};var B$=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(R$,"__esModule",{value:!0}),R$.Group=void 0;var F$=B$(I$.exports),z$=B$(L$),U$=B$(v$),H$=XE;function W$(e,t){H$.Facade.call(this,e,t)}R$.Group=W$,F$.default(W$,H$.Facade);var V$=W$.prototype;V$.action=function(){return"group"},V$.type=V$.action,V$.groupId=H$.Facade.field("groupId"),V$.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return U$.default(e)},V$.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return z$.default(t)?t:void 0},V$.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=null==this[r]?this.proxy("traits."+r):this[r]();if(null==o)continue;t[e[r]]=o,delete t[r]}return t},V$.name=H$.Facade.proxy("traits.name"),V$.industry=H$.Facade.proxy("traits.industry"),V$.employees=H$.Facade.proxy("traits.employees"),V$.properties=function(){return this.field("traits")||this.field("properties")||{}};var q$={},K$=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(q$,"__esModule",{value:!0}),q$.Identify=void 0;var J$=XE,G$=K$(QE.exports),Y$=K$(I$.exports),X$=K$(L$),Z$=K$(v$),Q$=function(e){return e.trim()};function eT(e,t){J$.Facade.call(this,e,t)}q$.Identify=eT,Y$.default(eT,J$.Facade);var tT=eT.prototype;tT.action=function(){return"identify"},tT.type=tT.action,tT.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(t[e[r]]=o,r!==e[r]&&delete t[r])}return t},tT.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return X$.default(t)?t:void 0},tT.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return Z$.default(e)},tT.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return Z$.default(e)},tT.companyName=function(){return this.proxy("traits.company.name")},tT.name=function(){var e=this.proxy("traits.name");if("string"==typeof e)return Q$(e);var t=this.firstName(),n=this.lastName();return t&&n?Q$(t+" "+n):void 0},tT.firstName=function(){var e=this.proxy("traits.firstName");if("string"==typeof e)return Q$(e);var t=this.proxy("traits.name");return"string"==typeof t?Q$(t).split(" ")[0]:void 0},tT.lastName=function(){var e=this.proxy("traits.lastName");if("string"==typeof e)return Q$(e);var t=this.proxy("traits.name");if("string"==typeof t){var n=Q$(t).indexOf(" ");if(-1!==n)return Q$(t.substr(n+1))}},tT.uid=function(){return this.userId()||this.username()||this.email()},tT.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},tT.age=function(){var e=this.birthday(),t=G$.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},tT.avatar=function(){var e=this.traits();return G$.default(e,"avatar")||G$.default(e,"photoUrl")||G$.default(e,"avatarUrl")},tT.position=function(){var e=this.traits();return G$.default(e,"position")||G$.default(e,"jobTitle")},tT.username=J$.Facade.proxy("traits.username"),tT.website=J$.Facade.one("traits.website"),tT.websites=J$.Facade.multi("traits.website"),tT.phone=J$.Facade.one("traits.phone"),tT.phones=J$.Facade.multi("traits.phone"),tT.address=J$.Facade.proxy("traits.address"),tT.gender=J$.Facade.proxy("traits.gender"),tT.birthday=J$.Facade.proxy("traits.birthday");var nT={},rT=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nT,"__esModule",{value:!0}),nT.Track=void 0;var oT=rT(I$.exports),iT=XE,aT=q$,sT=rT(L$),lT=rT(QE.exports);function cT(e,t){iT.Facade.call(this,e,t)}nT.Track=cT,oT.default(cT,iT.Facade);var uT=cT.prototype;uT.action=function(){return"track"},uT.type=uT.action,uT.event=iT.Facade.field("event"),uT.value=iT.Facade.proxy("properties.value"),uT.category=iT.Facade.proxy("properties.category"),uT.id=iT.Facade.proxy("properties.id"),uT.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},uT.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},uT.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},uT.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},uT.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},uT.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},uT.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},uT.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},uT.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},uT.sku=iT.Facade.proxy("properties.sku"),uT.tax=iT.Facade.proxy("properties.tax"),uT.name=iT.Facade.proxy("properties.name"),uT.price=iT.Facade.proxy("properties.price"),uT.total=iT.Facade.proxy("properties.total"),uT.repeat=iT.Facade.proxy("properties.repeat"),uT.coupon=iT.Facade.proxy("properties.coupon"),uT.shipping=iT.Facade.proxy("properties.shipping"),uT.discount=iT.Facade.proxy("properties.discount"),uT.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},uT.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},uT.description=iT.Facade.proxy("properties.description"),uT.plan=iT.Facade.proxy("properties.plan"),uT.subtotal=function(){var e=lT.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},uT.products=function(){var e=this.properties(),t=lT.default(e,"products");return Array.isArray(t)?t.filter((function(e){return null!==e})):[]},uT.quantity=function(){return(this.obj.properties||{}).quantity||1},uT.currency=function(){return(this.obj.properties||{}).currency||"USD"},uT.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},uT.query=iT.Facade.proxy("options.query"),uT.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},uT.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},uT.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return sT.default(t)?t:void 0},uT.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(!e)return;if("number"==typeof e)return e;if("string"!=typeof e)return;if(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e))return e}(e)},uT.cents=function(){var e=this.revenue();return"number"!=typeof e?this.value()||0:100*e},uT.identify=function(){var e=this.json();return e.traits=this.traits(),new aT.Identify(e,this.opts)};var dT={},pT=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(dT,"__esModule",{value:!0}),dT.Page=void 0;var fT=pT(I$.exports),hT=XE,gT=nT,vT=pT(L$);function mT(e,t){hT.Facade.call(this,e,t)}dT.Page=mT,fT.default(mT,hT.Facade);var yT=mT.prototype;yT.action=function(){return"page"},yT.type=yT.action,yT.category=hT.Facade.field("category"),yT.name=hT.Facade.field("name"),yT.title=hT.Facade.proxy("properties.title"),yT.path=hT.Facade.proxy("properties.path"),yT.url=hT.Facade.proxy("properties.url"),yT.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},yT.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var o in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=null==this[o]?this.proxy("properties."+o):this[o]();if(null==i)continue;t[e[o]]=i,o!==e[o]&&delete t[o]}return t},yT.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return vT.default(t)?t:void 0},yT.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},yT.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},yT.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new gT.Track(t,this.opts)};var bT={},_T=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bT,"__esModule",{value:!0}),bT.Screen=void 0;var wT=_T(I$.exports),xT=dT,ST=nT;function kT(e,t){xT.Page.call(this,e,t)}bT.Screen=kT,wT.default(kT,xT.Page),kT.prototype.action=function(){return"screen"},kT.prototype.type=kT.prototype.action,kT.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},kT.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new ST.Track(t,this.opts)};var CT={},OT=pg&&pg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(CT,"__esModule",{value:!0}),CT.Delete=void 0;var PT=OT(I$.exports),ET=XE;function $T(e,t){ET.Facade.call(this,e,t)}function TT(e,t){var n=new YE.Facade(e,t);return"track"===e.type&&(n=new YE.Track(e,t)),"identify"===e.type&&(n=new YE.Identify(e,t)),"page"===e.type&&(n=new YE.Page(e,t)),"alias"===e.type&&(n=new YE.Alias(e,t)),"group"===e.type&&(n=new YE.Group(e,t)),"screen"===e.type&&(n=new YE.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}function IT(e,t,n){return dP(this,void 0,void 0,(function(){function r(t,n){return dP(this,void 0,void 0,(function(){var r,o,i;return pP(this,(function(a){switch(a.label){case 0:return r=!1,o=null,[4,n({payload:TT(t,{clone:!0,traverse:!1}),integration:e,next:function(e){r=!0,null===e&&(o=null),e&&(o=e.obj)}})];case 1:return a.sent(),r||null===o||(o.integrations=uP(uP({},t.integrations),((i={})[e]=!1,i))),[2,o]}}))}))}var o,i,a,s,l;return pP(this,(function(e){switch(e.label){case 0:o=TT(t,{clone:!0,traverse:!1}).rawEvent(),i=0,a=n,e.label=1;case 1:return i<a.length?(s=a[i],[4,r(o,s)]):[3,4];case 2:if(null===(l=e.sent()))return[2,null];o=l,e.label=3;case 3:return i++,[3,1];case 4:return[2,o]}}))}))}CT.Delete=$T,PT.default($T,ET.Facade),$T.prototype.type=function(){return"delete"},function(e){var t=pg&&pg.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Delete=e.Screen=e.Page=e.Track=e.Identify=e.Group=e.Alias=e.Facade=void 0;var n=XE;Object.defineProperty(e,"Facade",{enumerable:!0,get:function(){return n.Facade}});var r=T$;Object.defineProperty(e,"Alias",{enumerable:!0,get:function(){return r.Alias}});var o=R$;Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return o.Group}});var i=q$;Object.defineProperty(e,"Identify",{enumerable:!0,get:function(){return i.Identify}});var a=nT;Object.defineProperty(e,"Track",{enumerable:!0,get:function(){return a.Track}});var s=dT;Object.defineProperty(e,"Page",{enumerable:!0,get:function(){return s.Page}});var l=bT;Object.defineProperty(e,"Screen",{enumerable:!0,get:function(){return l.Screen}});var c=CT;Object.defineProperty(e,"Delete",{enumerable:!0,get:function(){return c.Delete}}),e.default=t(t({},n.Facade),{Alias:r.Alias,Group:o.Group,Identify:i.Identify,Track:a.Track,Page:s.Page,Screen:l.Screen,Delete:c.Delete})}(YE);const jT=Object.freeze(Object.defineProperty({__proto__:null,applyDestinationMiddleware:IT,sourceMiddlewarePlugin:function(e,t){function n(n){return dP(this,void 0,void 0,(function(){var r;return pP(this,(function(o){switch(o.label){case 0:return r=!1,[4,e({payload:TT(n.event,{clone:!0,traverse:!1}),integrations:null!=t?t:{},next:function(e){r=!0,e&&(n.event=e.obj)}})];case 1:if(o.sent(),!r)throw new HP({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}}))}))}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,identify:n,alias:n,group:n}}},Symbol.toStringTag,{value:"Module"}));var AT=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return dP(this,void 0,void 0,(function(){var t;return pP(this,(function(n){switch(n.label){case 0:return[4,IT(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new HP({retry:!1,reason:"dropped by destination middleware"})),[2,new _E(t)]}}))}))},e.prototype._createMethod=function(e){var t=this;return function(n){return dP(t,void 0,void 0,(function(){var t;return pP(this,(function(r){switch(r.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=r.sent(),r.label=2;case 2:return[4,this.action[e](t)];case 3:return r.sent(),[2,n]}}))}))}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},e.prototype.load=function(e,t){return this.action.load(e,t)},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function NT(e,t,n,r,o){var i,a,s;return dP(this,void 0,void 0,(function(){var l,c,u,d,p=this;return pP(this,(function(f){switch(f.label){case 0:return l=[],c=ME(),u=null!==(a=null===(i=e.middlewareSettings)||void 0===i?void 0:i.routingRules)&&void 0!==a?a:[],d=(null!==(s=e.remotePlugins)&&void 0!==s?s:[]).map((function(e){return dP(p,void 0,void 0,(function(){var i,a,s,d,p,f,h;return pP(this,(function(g){switch(g.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];g.label=1;case 1:if(g.trys.push([1,12,,13]),!r)return[3,7];i=e.url.split("/"),a=i[i.length-2],s=e.url.replace(a,btoa(a).replace(/=/g,"")),g.label=2;case 2:return g.trys.push([2,4,,6]),[4,JE(s.replace("https://cdn.segment.com",c))];case 3:return g.sent(),[3,6];case 4:return g.sent(),[4,JE(e.url.replace("https://cdn.segment.com",c))];case 5:return g.sent(),[3,6];case 6:return[3,9];case 7:return[4,JE(e.url.replace("https://cdn.segment.com",c))];case 8:g.sent(),g.label=9;case 9:return d=e.libraryName,"function"!=typeof window[d]?[3,11]:[4,(0,window[d])(uP(uP({},e.settings),n[e.name]))];case 10:p=g.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach((function(e){t.forEach((function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))}))}))}(f=Array.isArray(p)?p:[p]),h=u.filter((function(t){return t.destinationName===e.creationName})),f.forEach((function(t){var n=new AT(e.creationName,t);h.length&&o&&"destination"===t.type&&n.addMiddleware(o),l.push(n)})),g.label=11;case 11:return[3,13];case 12:return g.sent(),[3,13];case 13:return[2]}}))}))})),[4,Promise.all(d)];case 1:return f.sent(),[2,l.filter(Boolean)]}}))}))}function DT(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function RT(e,t){var n,r,o,i,a,s=[],l=!1,c=null!==(n=null==t?void 0:t.size)&&void 0!==n?n:10,u=null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:5e3;function d(t){var n;if(0!==t.length){var r=null===(n=t[0])||void 0===n?void 0:n.writeKey;return ZP("https://".concat(e,"/b"),{keepalive:l,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({batch:t,writeKey:r})})}}function p(){return dP(this,void 0,void 0,(function(){var e;return pP(this,(function(t){return s.length?(e=s,s=[],[2,d(e)]):[2]}))}))}return i=function(){if(l=!0,s.length){var e=(t=s,n=[],r=0,t.forEach((function(e){DT(n[r])>=64&&r++,n[r]?n[r].push(e):n[r]=[e]})),n).map(d);Promise.all(e).catch(console.error)}var t,n,r},a=!1,window.addEventListener("pagehide",(function(){a||(a=!0,i())})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(a)return;a=!0,i()}else a=!1})),{dispatch:function(e,t){return dP(this,void 0,void 0,(function(){var e;return pP(this,(function(n){return s.push(t),e=s.length>=c||function(e){return DT(e)>=450}(s),[2,e||l?p():void(o||(o=setTimeout((function(){o=void 0,p().catch(console.error)}),u)))]}))}))}}}var LT=function(e,t){return dP(void 0,void 0,void 0,(function(){var n;return pP(this,(function(r){return n=function(r){return dP(void 0,void 0,void 0,(function(){var o;return pP(this,(function(i){switch(i.label){case 0:return e(r)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[i.sent()])];case 2:return[2]}}))}))},[2,n(void 0)]}))}))};function MT(e,t){return dP(this,void 0,void 0,(function(){var n,r=this;return pP(this,(function(o){switch(o.label){case 0:return n=[],EP()?[2,t]:[4,LT((function(){return t.length>0&&!EP()}),(function(){return dP(r,void 0,void 0,(function(){var r,o;return pP(this,(function(i){switch(i.label){case 0:return(r=t.pop())?[4,VP(r,e)]:[2];case 1:return o=i.sent(),o instanceof _E||n.push(r),[2]}}))}))}))];case 1:return o.sent(),n.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}function BT(e,t,n,r){var o=this;e||setTimeout((function(){return dP(o,void 0,void 0,(function(){var e,o;return pP(this,(function(i){switch(i.label){case 0:return e=!0,[4,MT(n,t)];case 1:return o=i.sent(),e=!1,t.todo>0&&r(e,o,n,r),[2]}}))}))}),5e3*Math.random())}function FT(e,t,n){var r,o,i,a;window.addEventListener("pagehide",(function(){s.push.apply(s,Array.from(l)),l.clear()}));var s=e.options.disableClientPersistence?new RP(e.queue.queue.maxAttempts,[]):new $E(e.queue.queue.maxAttempts,"dest-Segment.io"),l=new Set,c=!1,u=null!==(r=null==t?void 0:t.apiHost)&&void 0!==r?r:"api.segment.io/v1",d=null!==(o=null==t?void 0:t.protocol)&&void 0!==o?o:"https",p="".concat(d,"://").concat(u),f="batching"===(null===(i=null==t?void 0:t.deliveryStrategy)||void 0===i?void 0:i.strategy)?RT(u,null===(a=null==t?void 0:t.deliveryStrategy)||void 0===a?void 0:a.config):{dispatch:function(e,t){return ZP(e,{headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}};function h(r){return dP(this,void 0,void 0,(function(){var o,i;return pP(this,(function(a){return EP()?(s.push(r),BT(c,s,g,BT),[2,r]):(l.add(r),o=r.event.type.charAt(0),i=TT(r.event).json(),"track"===r.event.type&&delete i.traits,"alias"===r.event.type&&(i=function(e,t){var n,r,o,i,a=e.user();return t.previousId=null!==(o=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==o?o:a.anonymousId(),t.userId=null!==(i=t.userId)&&void 0!==i?i:t.to,delete t.from,delete t.to,t}(e,i)),[2,f.dispatch("".concat(p,"/").concat(o),gE(e,i,t,n)).then((function(){return r})).catch((function(){return s.pushWithBackoff(r),BT(c,s,g,BT),r})).finally((function(){l.delete(r)}))])}))}))}var g={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:h,identify:h,page:h,alias:h,group:h};return s.todo&&BT(c,s,g,BT),g}var zT=function(e,t,n){n.getCalls(e).forEach((function(e){qT(t,e).catch(console.error)}))},UT=function(e,t){return dP(void 0,void 0,void 0,(function(){var n,r,o;return pP(this,(function(i){switch(i.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),i.label=1;case 1:return n<r.length?(o=r[n],[4,qT(e,o).catch(console.error)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},HT=zT.bind(globalThis,"on"),WT=zT.bind(globalThis,"setAnonymousId"),VT=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){e._value[t.method]?e._value[t.method].push(t):e._value[t.method]=[t]})),this},e.prototype.clear=function(){return this._value={},this},e}();function qT(e,t){return dP(this,void 0,void 0,(function(){var n,r;return pP(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,n=e[t.method].apply(e,t.args),"object"==typeof(i=n)&&null!==i&&"then"in i&&"function"==typeof i.then?[4,n]:[3,2]);case 1:o.sent(),o.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=o.sent(),t.reject(r),[3,4];case 4:return[2]}var i}))}))}var KT=function(){function e(e){var t=this;this._preInitBuffer=new VT,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION="1.49.2",this._promise=e(this._preInitBuffer),this._promise.then((function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r})).catch((function(){}))}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(t.instance){var i=(n=t.instance)[e].apply(n,r);return Promise.resolve(i)}return new Promise((function(n,o){t._preInitBuffer.push({method:e,args:r,resolve:n,reject:o,called:!1})}))}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.push({method:e,args:r,resolve:function(){},reject:console.error,called:!1}),t)}},e}();function JT(e){var t=e[0],n=e.slice(1);return{method:t,resolve:function(){},reject:console.error,args:n,called:!1}}var GT,YT,XT=function(){var e=window.analytics;if(!Array.isArray(e))return[];var t=e.splice(0,e.length);return t.map(JT)},ZT=null!==(GT=(YT=XP()).__SEGMENT_INSPECTOR__)&&void 0!==GT?GT:YT.__SEGMENT_INSPECTOR__={};function QT(e,t){return dP(this,void 0,void 0,(function(){return pP(this,(function(n){switch(n.label){case 0:return t.push.apply(t,XT()),[4,UT(e,t)];case 1:return n.sent(),t.push.apply(t,XT()),function(e,t){t.toArray().forEach((function(t){setTimeout((function(){qT(e,t).catch(console.error)}),0)}))}(e,t),t.clear(),[2]}}))}))}function eI(e,t,n,r,o,i){var a,s,l;return dP(this,void 0,void 0,(function(){var c,u,d,p,f,h,g,v,m,y,b=this;return pP(this,(function(_){switch(_.label){case 0:return function(e){var t,n,r;return"test"!==DE().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(e)?[4,Xu((()=>import("./index-905656ee.js")),[]).then((function(t){return t.tsubMiddleware(e.middlewareSettings.routingRules)}))]:[3,2];case 1:return u=_.sent(),[3,3];case 2:u=void 0,_.label=3;case 3:return c=u,w=e,"test"!==DE().NODE_ENV&&Object.keys(w.integrations).length>1||i.length>0?[4,Xu((()=>import("./index-5c74cc3c.js")),["static/js/index-5c74cc3c.js","static/js/is-plan-event-enabled-551121db.js"]).then((function(r){return r.ajsDestinations(e,t.integrations,n,c,i)}))]:[3,5];case 4:return p=_.sent(),[3,6];case 5:p=[],_.label=6;case 6:return d=p,e.legacyVideoPluginsEnabled?[4,Xu((()=>import("./index-f16fbde6.js")),[]).then((function(e){return e.loadLegacyVideoPlugins(t)}))]:[3,8];case 7:_.sent(),_.label=8;case 8:return(null===(a=n.plan)||void 0===a?void 0:a.track)?[4,Xu((()=>import("./index-6d4e3f23.js")),["static/js/index-6d4e3f23.js","static/js/is-plan-event-enabled-551121db.js"]).then((function(t){var r;return t.schemaFilter(null===(r=n.plan)||void 0===r?void 0:r.track,e)}))]:[3,10];case 9:return h=_.sent(),[3,11];case 10:h=void 0,_.label=11;case 11:return f=h,g=FE(e,r),[4,NT(e,t.integrations,g,r.obfuscate,c).catch((function(){return[]}))];case 12:return v=_.sent(),m=fP(fP(fP([_P,qE],o,!0),d,!0),v,!0),f&&m.push(f),!1===(null===(s=n.integrations)||void 0===s?void 0:s.All)&&!n.integrations["Segment.io"]||n.integrations&&!1===n.integrations["Segment.io"]||m.push(FT(t,g["Segment.io"],e.integrations)),[4,t.register.apply(t,m)];case 13:return y=_.sent(),Object.entries(null!==(l=e.enabledMiddleware)&&void 0!==l?l:{}).some((function(e){return e[1]}))?[4,Xu((()=>import("./index-ab26db81.js")),[]).then((function(n){var o=n.remoteMiddlewares;return dP(b,void 0,void 0,(function(){var n,i;return pP(this,(function(a){switch(a.label){case 0:return[4,o(y,e,r.obfuscate)];case 1:return n=a.sent(),i=n.map((function(e){return t.addSourceMiddleware(e)})),[2,Promise.all(i)]}}))}))}))]:[3,15];case 14:_.sent(),_.label=15;case 15:return[2,y]}var w}))}))}function tI(e,t,n){var r,o,i,a,s,l,c;return void 0===t&&(t={}),dP(this,void 0,void 0,(function(){var u,d,p,f,h,g,v,m,y,b,_;return pP(this,(function(w){switch(w.label){case 0:return e.cdnURL&&(C=e.cdnURL,window.analytics&&(window.analytics._cdn=C),RE=C),null===(r=e.cdnSettings)||void 0===r?[3,1]:(d=r,[3,3]);case 1:return[4,(x=e.writeKey,S=e.cdnURL,k=null!=S?S:ME(),ZP("".concat(k,"/v1/projects/").concat(x,"/settings")).then((function(e){return e.ok?e.json():e.text().then((function(e){throw new Error(e)}))})).catch((function(e){throw e})))];case 2:d=w.sent(),w.label=3;case 3:return p=null===(i=null===(o=(u=d).integrations["Segment.io"])||void 0===o?void 0:o.retryQueue)||void 0===i||i,f=uP({retryQueue:p},t),function(e){var t;null===(t=ZT.attach)||void 0===t||t.call(ZT,e)}(h=new NE(e,f)),g=null!==(a=e.plugins)&&void 0!==a?a:[],v=null!==(s=e.classicIntegrations)&&void 0!==s?s:[],bE.initRemoteMetrics(u.metrics),function(e,t){t.push.apply(t,XT()),WT(e,t),HT(e,t)}(h,n),[4,eI(u,h,f,t,g,v)];case 4:return m=w.sent(),y=null!==(l=window.location.search)&&void 0!==l?l:"",b=null!==(c=window.location.hash)&&void 0!==c?c:"",(_=y.length?y:b.replace(/(?=#).*(?=\?)/,"")).includes("ajs_")?[4,h.queryString(_).catch(console.error)]:[3,6];case 5:w.sent(),w.label=6;case 6:return h.initialized=!0,h.emit("initialize",e,t),t.initialPageview&&h.page().catch(console.error),[4,QT(h,n)];case 7:return w.sent(),[2,[h,m]]}var x,S,k,C}))}))}var nI=function(e){function t(){var t,n,r,o=this,i=(r=new Promise((function(e,r){t=e,n=r})),{resolve:t,reject:n,promise:r}),a=i.promise,s=i.resolve;return(o=e.call(this,(function(e){return a.then((function(t){return tI(t[0],t[1],e)}))}))||this)._resolveLoadStart=function(e,t){return s([e,t])},o}return cP(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then((function(e){return e[0]}))},t}(KT);export{Ba as $,Bn as A,na as B,nI as C,sP as D,nP as E,Ho as F,Da as G,Il as H,cS as I,di as J,r as K,Gu as L,xr as M,jl as N,Qn as O,Dr as P,Lr as Q,AO as R,jO as S,Xu as T,qu as U,xc as V,Sh as W,Sr as X,JO as Y,Lf as Z,_O as _,ai as a,nl as a0,Ju as a1,MO as a2,ZO as a3,pg as a4,tn as a5,tO as a6,eP as a7,rO as a8,_S as a9,IT as aA,YE as aB,OP as aC,FE as aD,jP as aE,LT as aF,RP as aG,$E as aH,VP as aI,PP as aJ,_E as aK,AP as aL,tE as aM,fg as aN,It as aa,Fl as ab,$l as ac,GO as ad,gl as ae,Or as af,Tl as ag,Pr as ah,Aa as ai,zr as aj,XC as ak,Bi as al,Cr as am,Gn as an,kr as ao,hg as ap,IP as aq,dP as ar,pP as as,JE as at,BE as au,GE as av,fP as aw,EP as ax,uP as ay,HP as az,Li as b,Qo as c,fr as d,Mf as e,xl as f,ct as g,si as h,pi as i,Mn as j,Fr as k,ei as l,wl as m,l as n,Go as o,Ln as p,lv as q,kt as r,Nh as s,d as t,Et as u,Ta as v,Ar as w,At as x,Ur as y,ui as z};