8 lines
1.3 MiB
JavaScript
8 lines
1.3 MiB
JavaScript
|
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(w(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=z(o)?a(o):r(o);if(i)for(const e in i)t[e]=i[e]}return t}return z(e)||R(e)?e:void 0}const o=/;(?![^(]*\))/g,i=/:(.+)/;function a(e){const t={};return e.split(o).forEach((e=>{if(e){const n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(z(e))t=e;else if(w(e))for(let n=0;n<e.length;n++){const r=l(e[n]);r&&(t+=r+" ")}else if(R(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const s=e=>null==e?"":w(e)||R(e)&&(e.toString===T||!k(e.toString))?JSON.stringify(e,d,2):String(e),d=(e,t)=>t&&t.__v_isRef?d(e,t.value):C(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:S(t)?{[`Set(${t.size})`]:[...t.values()]}:!R(t)||w(t)||F(t)?t:String(t),c={},u=[],p=()=>{},h=()=>!1,f=/^on[^a-z]/,v=e=>f.test(e),g=e=>e.startsWith("onUpdate:"),m=Object.assign,b=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},y=Object.prototype.hasOwnProperty,x=(e,t)=>y.call(e,t),w=Array.isArray,C=e=>"[object Map]"===O(e),S=e=>"[object Set]"===O(e),k=e=>"function"==typeof e,z=e=>"string"==typeof e,P=e=>"symbol"==typeof e,R=e=>null!==e&&"object"==typeof e,$=e=>R(e)&&k(e.then)&&k(e.catch),T=Object.prototype.toString,O=e=>T.call(e),F=e=>"[object Object]"===O(e),M=e=>z(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,B=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),A=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},I=/-(\w)/g,D=A((e=>e.replace(I,((e,t)=>t?t.toUpperCase():"")))),E=/\B([A-Z])/g,N=A((e=>e.replace(E,"-$1").toLowerCase())),_=A((e=>e.charAt(0).toUpperCase()+e.slice(1))),L=A((e=>e?`on${_(e)}`:"")),j=(e,t)=>!Object.is(e,t),H=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},U=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},V=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let W;const q=[];class K{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&W&&(this.parent=W,this.index=(W.scopes||(W.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(q.push(this),W=this)}off(){this.active&&(q.pop(),W=q[q.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const Y=e=>{const t=new Set(e);return t.w=0,t.n=0,t},G=e=>(e.w&J)>0,X=e=>(e.n&J)>0,Z=new WeakMap;let Q=0,J=1;const ee=[];let te;const ne=Symbol(""),re=Symbol("");class oe{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||W)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!ee.includes(this))try{return ee.push(te=this),le.push(ae),ae=!0,J=1<<++Q,Q<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=J})(this):ie(this),this.fn()}finally{Q<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];G(o)&&!X(o)?o.delete(e):t[n++]=o,o.w&=~J,o.n&=~J}t.length=n}})(this),J=1<<--Q,de(),ee.pop();const e=ee.length;te=e>0?ee[e-1]:void 0}}stop(){this.active&&(ie(this),this.onStop&&this.onStop(),this.active=!1)}}function ie(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ae=!0;const le=[];function se(){le.push(ae),ae=!1}function de(){const e=le.pop();ae=void 0===e||e}function ce(e,t,n){if(!ue())return;let r=Z.get(e);r||Z.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Y()),pe(o)}function ue(){return ae&&void 0!==te}function pe(e,t){let n=!1;Q<=30?X(e)||(e.n|=J,n=!G(e)):n=!e.has(te),n&&(e.add(te),te.deps.push(e))}function he(e,t,n,r,o,i){const a=Z.get(e);if(!
|
||
|
/*!
|
||
|
* vue-router v4.2.5
|
||
|
* (c) 2023 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/
|
||
|
const wN="undefined"!=typeof window;const CN=Object.assign;function SN(e,t){const n={};for(const r in t){const o=t[r];n[r]=zN(o)?o.map(e):e(o)}return n}const kN=()=>{},zN=Array.isArray,PN=/\/$/;function RN(e,t,n="/"){let r,o={},i="",a="";const l=t.indexOf("#");let s=t.indexOf("?");return l<s&&l>=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),o=e(i)),l>-1&&(r=r||t.slice(0,l),a=t.slice(l,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];".."!==o&&"."!==o||r.push("");let i,a,l=n.length-1;for(i=0;i<r.length;i++)if(a=r[i],"."!==a){if(".."!==a)break;l>1&&l--}return n.slice(0,l).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(i&&"?")+i+a,path:r,query:o,hash:a}}function $N(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function TN(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ON(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!FN(e[n],t[n]))return!1;return!0}function FN(e,t){return zN(e)?MN(e,t):zN(t)?MN(t,e):e===t}function MN(e,t){return zN(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var BN,AN,IN,DN;function EN(e){if(!e)if(wN){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(PN,"")}(AN=BN||(BN={})).pop="pop",AN.push="push",(DN=IN||(IN={})).back="back",DN.forward="forward",DN.unknown="";const NN=/^[^#]+#/;function _N(e,t){return e.replace(NN,"#")+t}const LN=()=>({left:window.pageXOffset,top:window.pageYOffset});function jN(e){let t;if("el"in e){const n=e.el,r="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;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)}}(o,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 HN(e,t){return(history.state?history.state.position-t:-1)+e}const UN=new Map;function VN(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),$N(n,"")}return $N(n,e)+r+o}function WN(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?LN():null}}function qN(e){const{history:t,location:n}=window,r={value:VN(e,n)},o={value:t.state};function i(r,i,a){const l=e.indexOf("#"),s=l>-1?(n.host&&document.querySelector("base")?e:e.slice(l))+r:location.protocol+"//"+location.host+e+r;try{t[a?"replaceState":"pushState"](i,"",s),o.value=i}catch(d){console.error(d),n[a?"replace":"assign"](s)}}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=CN({},o.value,t.state,{forward:e,scroll:LN()});i(a.current,a,!0),i(e,CN({},WN(r.value,e,null),{position:a.position+1},n),!1),r.value=e},replace:function(e,n){i(e,CN({},t.state,WN(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function KN(e){const t=qN(e=EN(e)),n=function(e,t,n,r){let o=[],i=[],a=null;const l=({state:i})=>{const l=VN(e,location),s=n.value,d=t.value;let c=0;if(i){if(n.value=l,t.value=i,a&&a===s)return void(a=null);c=d?i.position-d.position:0}else r(l);o.forEach((e=>{e(n.value,s,{delta:c,type:BN.pop,direction:c?c>0?IN.forward:IN.back:IN.unknown})}))};function s(){const{history:e}=window;e.state&&e.replaceState(CN({},e.state,{scroll:LN()}),"")}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",s,{passive:!0}),{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(
|