7 lines
68 KiB
JavaScript
7 lines
68 KiB
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("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),n=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function r(e){if(x(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=r(C(o)?l(o):o);if(s)for(const e in s)t[e]=s[e]}return t}if(A(e))return e}const o=/;(?![^(]*\))/g,s=/:(.+)/;function l(e){const t={};return e.split(o).forEach((e=>{if(e){const n=e.split(s);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function i(e){let t="";if(C(e))t=e;else if(x(e))for(let n=0;n<e.length;n++){const r=i(e[n]);r&&(t+=r+" ")}else if(A(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function c(e,t){if(e===t)return!0;let n=S(e),r=S(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=x(e),r=x(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=c(e[r],t[r]);return n}(e,t);if(n=A(e),r=A(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!c(e[n],t[n]))return!1}}return String(e)===String(t)}const a=e=>null==e?"":A(e)?JSON.stringify(e,u,2):String(e),u=(e,t)=>E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:k(t)?{[`Set(${t.size})`]:[...t.values()]}:!A(t)||x(t)||$(t)?t:String(t),f={},p=[],d=()=>{},h=()=>!1,m=/^on[^a-z]/,g=e=>m.test(e),v=e=>e.startsWith("onUpdate:"),y=Object.assign,b=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_=Object.prototype.hasOwnProperty,w=(e,t)=>_.call(e,t),x=Array.isArray,E=e=>"[object Map]"===j(e),k=e=>"[object Set]"===j(e),S=e=>e instanceof Date,O=e=>"function"==typeof e,C=e=>"string"==typeof e,R=e=>"symbol"==typeof e,A=e=>null!==e&&"object"==typeof e,P=e=>A(e)&&O(e.then)&&O(e.catch),F=Object.prototype.toString,j=e=>F.call(e),$=e=>"[object Object]"===j(e),M=e=>C(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),I=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},U=/-(\w)/g,V=I((e=>e.replace(U,((e,t)=>t?t.toUpperCase():"")))),N=/\B([A-Z])/g,L=I((e=>e.replace(N,"-$1").toLowerCase())),B=I((e=>e.charAt(0).toUpperCase()+e.slice(1))),D=I((e=>e?`on${B(e)}`:"")),q=(e,t)=>e!==t&&(e==e||t==t),z=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},W=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},K=e=>{const t=parseFloat(e);return isNaN(t)?e:t},G=new WeakMap,H=[];let X;const J=Symbol(""),Q=Symbol("");function Y(e,t=f){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return t.scheduler?void 0:e();if(!H.includes(n)){te(n);try{return re.push(ne),ne=!0,H.push(n),X=n,e()}finally{H.pop(),se(),X=H[H.length-1]}}};return n.id=ee++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function Z(e){e.active&&(te(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let ee=0;function te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ne=!0;const re=[];function oe(){re.push(ne),ne=!1}function se(){const e=re.pop();ne=void 0===e||e}function le(e,t,n){if(!ne||void 0===X)return;let r=G.get(e);r||G.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(X)||(o.add(X),X.deps.push(o))}function ie(e,t,n,r,o,s){const l=G.get(e);if(!l)return;const i=new Set,c=e=>{e&&e.forEach((e=>{(e!==X||e.allowRecurse)&&i.add(e)}))};if("clear"===t)l.forEach(c);else if("length"===n&&x(e))l.forEach(((e,t)=>{("length"===t||t>=r)&&c(e)}));else switch(void 0!==n&&c(l.get(n)),t){case"add":x(e)?M(n)&&c(l.get("length")):(c(l.get(J)),E(e)&&c(l.get(Q)));break;case"delete":x(e)||(c(l.get(J)),E(e)&&c(l.g
|
||
|
|
/*!
|
||
|
|
* vue-router v4.0.8
|
||
|
|
* (c) 2021 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/(e);if(!r)return;const o=t._component;O(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const s=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},t};const vo="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,yo=e=>vo?Symbol(e):"_vr_"+e,bo=yo("rvlm"),_o=yo("rvd"),wo=yo("r"),xo=yo("rl"),Eo=yo("rvl"),ko="undefined"!=typeof window;const So=Object.assign;function Oo(e,t){const n={};for(const r in t){const o=t[r];n[r]=Array.isArray(o)?o.map(e):e(o)}return n}let Co=()=>{};const Ro=/\/$/;function Ao(e,t,n="/"){let r,o={},s="",l="";const i=t.indexOf("?"),c=t.indexOf("#",i>-1?i:0);return i>-1&&(r=t.slice(0,i),s=t.slice(i+1,c>-1?c:t.length),o=e(s)),c>-1&&(r=r||t.slice(0,c),l=t.slice(c,t.length)),r=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o,s,l=n.length-1;for(o=0;o<r.length;o++)if(s=r[o],1!==l&&"."!==s){if(".."!==s)break;l--}return n.slice(0,l).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}(null!=r?r:t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:l}}function Po(e,t){return!t||e.toLowerCase().indexOf(t.toLowerCase())?e:e.slice(t.length)||"/"}function Fo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(!$o(e[n],t[n]))return!1;return!0}function $o(e,t){return Array.isArray(e)?Mo(e,t):Array.isArray(t)?Mo(t,e):e===t}function Mo(e,t){return Array.isArray(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var To,Io,Uo,Vo;function No(e){if(!e)if(ko){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ro,"")}(Io=To||(To={})).pop="pop",Io.push="push",(Vo=Uo||(Uo={})).back="back",Vo.forward="forward",Vo.unknown="";const Lo=/^[^#]+#/;function Bo(e,t){return e.replace(Lo,"#")+t}const Do=()=>({left:window.pageXOffset,top:window.pageYOffset});function qo(e){let t;if("el"in e){let n=e.el;const 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 zo(e,t){return(history.state?history.state.position-t:-1)+e}const Wo=new Map;function Ko(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let t=o.includes(e.slice(s))?e.slice(s).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),Po(n,"")}return Po(n,e)+r+o}function Go(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Do():null}}function Ho(e){const{history:t,location:n}=window;let r={value:Ko(e,n)},o={value:t.state};function s(r,s,l){const i=e.indexOf("#"),c=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+r:location.protocol+"//"+location.host+e+r;try{t[l?"replaceState":"pushState"](s,"",c),o.value=s}catch(a){console.error(a),n[l?"replace":"assign"](c)}}return o.value||s(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 l=So({},o.value,t.state,{forward:e,scroll:Do()});s(l.current,l,!0),s(e,So({},Go(r.value,e,null),{position:l.position+1},n),!1),r.value=e},replace:function(e,n){s(e,So({},t.state,Go(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),r.value=e}}}function Xo(e){const t=Ho(e=No(e)),n=function(e,t,n,r){let o=[],s=[],l=null;const i=({state:s})=>{const i=Ko(e,location),c=n.value,a=t.value;let u=0;if(s){if(n.value=i,t.value=s,l&&l===c)return void(l=null);u=a?s.position-a.position:0}else r(i);o.forEach((e=>{e(n.value,c,{delta:u,type:To.pop,direction:u?u>0?Uo.forw
|