92 lines
1.5 MiB
JavaScript
92 lines
1.5 MiB
JavaScript
|
|
var VP=Object.defineProperty,HP=Object.defineProperties;var FP=Object.getOwnPropertyDescriptors;var lb=Object.getOwnPropertySymbols;var WP=Object.prototype.hasOwnProperty,UP=Object.prototype.propertyIsEnumerable;var ub=(e,t,n)=>t in e?VP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Be=(e,t)=>{for(var n in t||(t={}))WP.call(t,n)&&ub(e,n,t[n]);if(lb)for(var n of lb(t))UP.call(t,n)&&ub(e,n,t[n]);return e},st=(e,t)=>HP(e,FP(t));function x0(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return t?a=>!!n[a.toLowerCase()]:a=>!!n[a]}const GP="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",jP=x0(GP),qP="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",KP=x0(qP);function O9(e){return!!e||e===""}function Te(e){if(Ge(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=it(r)?ZP(r):Te(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(it(e))return e;if(Ct(e))return e}}const YP=/;(?![^(]*\))/g,XP=/:(.+)/;function ZP(e){const t={};return e.split(YP).forEach(n=>{if(n){const r=n.split(XP);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function he(e){let t="";if(it(e))t=e;else if(Ge(e))for(let n=0;n<e.length;n++){const r=he(e[n]);r&&(t+=r+" ")}else if(Ct(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Ms(e){if(!e)return null;let{class:t,style:n}=e;return t&&!it(t)&&(e.class=he(t)),n&&(e.style=Te(n)),e}function QP(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=no(e[r],t[r]);return n}function no(e,t){if(e===t)return!0;let n=cb(e),r=cb(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ge(e),r=Ge(t),n||r)return n&&r?QP(e,t):!1;if(n=Ct(e),r=Ct(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!no(e[o],t[o]))return!1}}return String(e)===String(t)}function D0(e,t){return e.findIndex(n=>no(n,t))}const we=e=>e==null?"":Ge(e)||Ct(e)&&(e.toString===R9||!tt(e.toString))?JSON.stringify(e,z9,2):String(e),z9=(e,t)=>t&&t.__v_isRef?z9(e,t.value):xl(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Bs(t)?{[`Set(${t.size})`]:[...t.values()]}:Ct(t)&&!Ge(t)&&!B9(t)?String(t):t,Vt={},El=[],_t=()=>{},JP=()=>!1,eI=/^on[^a-z]/,Xd=e=>eI.test(e),jy=e=>e.startsWith("onUpdate:"),ln=Object.assign,qy=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},tI=Object.prototype.hasOwnProperty,rt=(e,t)=>tI.call(e,t),Ge=Array.isArray,xl=e=>Zd(e)==="[object Map]",Bs=e=>Zd(e)==="[object Set]",cb=e=>e instanceof Date,tt=e=>typeof e=="function",it=e=>typeof e=="string",Ky=e=>typeof e=="symbol",Ct=e=>e!==null&&typeof e=="object",Ts=e=>Ct(e)&&tt(e.then)&&tt(e.catch),R9=Object.prototype.toString,Zd=e=>R9.call(e),zc=e=>Zd(e).slice(8,-1),B9=e=>Zd(e)==="[object Object]",Yy=e=>it(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rc=x0(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),L0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nI=/-(\w)/g,Yn=L0(e=>e.replace(nI,(t,n)=>n?n.toUpperCase():"")),rI=/\B([A-Z])/g,la=L0(e=>e.replace(rI,"-$1").toLowerCase()),ir=L0(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bc=L0(e=>e?`on${ir(e)}`:""),hd=(e,t)=>!Object.is(e,t),Dl=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},wv=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ro=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let db;const aI=()=>db||(db=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ea;const Af=[];class Xy{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ea&&(this.parent=Ea,this.index=(Ea.scopes||(Ea.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active
|
||
|
|
`),a]);else{const i=[`[Vue warn]: ${e}`,...t];a.length&&i.push(`
|
||
|
|
`,...BO(a)),console.warn(...i)}ho()}function RO(){let e=Hc[Hc.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}function BO(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
||
|
|
`],...NO(n))}),t}function NO({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,a=` at <${Ik(e.component,e.type,r)}`,i=">"+n;return e.props?[a,...VO(e.props),i]:[a+i]}function VO(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Ok(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Ok(e,t,n){return it(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:on(t)?(t=Ok(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):tt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}function Ra(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Vs(i,t,n)}return a}function wr(e,t,n,r){if(tt(e)){const i=Ra(e,t,n,r);return i&&Ts(i)&&i.catch(o=>{Vs(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(wr(e[i],t,n,r));return a}function Vs(e,t,n,r=!0){const a=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,o,s)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Ra(l,null,10,[e,o,s]);return}}HO(e,n,a,r)}function HO(e,t,n,r=!0){console.error(e)}let Tv=!1,Vg=!1;const mr=[];let oi=0;const Fc=[];let kc=null,yl=0;const Wc=[];let Vi=null,_l=0;const zk=Promise.resolve();let b4=null,Hg=null;function Ie(e){const t=b4||zk;return e?t.then(this?e.bind(this):e):t}function FO(e){let t=oi+1,n=mr.length;for(;t<n;){const r=t+n>>>1;bd(mr[r])<e?t=r+1:n=r}return t}function w4(e){(!mr.length||!mr.includes(e,Tv&&e.allowRecurse?oi+1:oi))&&e!==Hg&&(e.id==null?mr.push(e):mr.splice(FO(e.id),0,e),Rk())}function Rk(){!Tv&&!Vg&&(Vg=!0,b4=zk.then(Nk))}function WO(e){const t=mr.indexOf(e);t>oi&&mr.splice(t,1)}function Bk(e,t,n,r){Ge(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),Rk()}function UO(e){Bk(e,kc,Fc,yl)}function $4(e){Bk(e,Vi,Wc,_l)}function C4(e,t=null){if(Fc.length){for(Hg=t,kc=[...new Set(Fc)],Fc.length=0,yl=0;yl<kc.length;yl++)kc[yl]();kc=null,yl=0,Hg=null,C4(e,t)}}function Av(e){if(Wc.length){const t=[...new Set(Wc)];if(Wc.length=0,Vi){Vi.push(...t);return}for(Vi=t,Vi.sort((n,r)=>bd(n)-bd(r)),_l=0;_l<Vi.length;_l++)Vi[_l]();Vi=null,_l=0}}const bd=e=>e.id==null?1/0:e.id;function Nk(e){Vg=!1,Tv=!0,C4(e),mr.sort((n,r)=>bd(n)-bd(r));const t=_t;try{for(oi=0;oi<mr.length;oi++){const n=mr[oi];n&&n.active!==!1&&Ra(n,null,14)}}finally{oi=0,mr.length=0,Av(),Tv=!1,b4=null,(mr.length||Fc.length||Wc.length)&&Nk(e)}}function ua(e,t){return tf(e,null,t)}function Vk(e,t){return tf(e,null,{flush:"post"})}function Hk(e,t){return tf(e,null,{flush:"sync"})}const Eb={};function _e(e,t,n){return tf(e,t,n)}function tf(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Vt){const s=bn;let l,u=!1,c=!1;if(on(e)?(l=()=>e.value,u=!!e._shallow):ms(e)?(l=()=>e,r=!0):Ge(e)?(c=!0,u=e.some(ms),l=()=>e.map(m=>{if(on(m))return m.value;if(ms(m))return ss(m);if(tt(m))return Ra(m,s,2)})):tt(e)?t?l=()=>Ra(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return d&&d(),wr(e,s,3,[f])}:l=_t,t&&r){const m=l;l=()=>ss(m())}let d,f=m=>{d=p.onStop=()=>{Ra(m,s,4)}};if(_d)return f=_t,t?n&&wr(t,s,3,[l(),c?[]:void 0,f]):l(),_t;let h=c?[]:Eb;const v=()=>{if(!!p.active)if(t){const m=p.run();(r||u||(c?m.some((y,_)=>hd(y,h[_])):hd(m,h)))&&(d&&d(),wr(t,s,3,[m,h===Eb?void 0:h,f]),h=m)}else p.run()};v.allowRecurse=!!t;let g;a==="sync"?g=v:a==="post"?g=()=>An(v,s&&s.suspense):g=()=>{!s||s.isMounted?UO(v):v()};const p=new Qd(l,g);return t?n?v():h=p.run():a==="post"?An(p.run.bind(p),s&&s.suspense):p.run(),()=>{p.stop(),s&&s.scope&&qy(s.scope.effects,p)}}function GO(e,t,n){const r=this.proxy,a=it(e)?e.includes(".")?Fk(r,e):()=>r[e]:e.bind(r,r);let i;tt(t)?i=t:(i=t.handler,n=t);const o=bn;oo(this);const s=tf(a,i.bind(r),n);return o?oo(o):Xi(),s}function Fk(e,t){const n=t.split(".");return()=>{let r=e;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function ss(e,t){if(!Ct(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),on(e))ss(e.value,t);else if(Ge(e))for(let n=0;n<e.length;n++)ss(e[n],t);else if(Bs(e)||xl(e))e.forEach(n=>{ss(n,t)});else if(B9(e))for(const n in e
|
||
|
|
* vuex v4.0.2
|
||
|
|
* (c) 2021 Evan You
|
||
|
|
* @license MIT
|
||
|
|
*/var dM="store";function JZe(e){return e===void 0&&(e=null),Pe(e!==null?e:dM)}function Tu(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function eR(e){return e!==null&&typeof e=="object"}function tR(e){return e&&typeof e.then=="function"}function nR(e,t){return function(){return e(t)}}function fM(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function hM(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;G0(e,n,[],e._modules.root,!0),S4(e,n,t)}function S4(e,t,n){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,i={};Tu(a,function(o,s){i[s]=nR(o,e),Object.defineProperty(e.getters,s,{get:function(){return i[s]()},enumerable:!0})}),e._state=kt({data:t}),e.strict&&sR(e),r&&n&&e._withCommit(function(){r.data=null})}function G0(e,t,n,r,a){var i=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!i&&!a){var s=k4(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var u=r.context=rR(e,o,n);r.forEachMutation(function(c,d){var f=o+d;aR(e,f,c,u)}),r.forEachAction(function(c,d){var f=c.root?d:o+d,h=c.handler||c;iR(e,f,h,u)}),r.forEachGetter(function(c,d){var f=o+d;oR(e,f,c,u)}),r.forEachChild(function(c,d){G0(e,t,n.concat(d),c,a)})}function rR(e,t,n){var r=t==="",a={dispatch:r?e.dispatch:function(i,o,s){var l=xv(i,o,s),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(i,o,s){var l=xv(i,o,s),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return vM(e,t)}},state:{get:function(){return k4(e.state,n)}}}),a}function vM(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,r)===t){var i=a.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function aR(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(o){n.call(e,r.state,o)})}function iR(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(o){var s=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},o);return tR(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function oR(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(i){return n(r.state,r.getters,i.state,i.getters)})}function sR(e){_e(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function k4(e,t){return t.reduce(function(n,r){return n[r]},e)}function xv(e,t,n){return eR(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var lR="vuex bindings",qb="vuex:mutations",x2="vuex:actions",Ks="vuex",uR=0;function cR(e,t){Jz({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[lR]},function(n){n.addTimelineLayer({id:qb,label:"Vuex Mutations",color:Kb}),n.addTimelineLayer({id:x2,label:"Vuex Actions",color:Kb}),n.addInspector({id:Ks,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ks)if(r.filter){var a=[];yM(a,t._modules.root,r.filter,""),r.rootNodes=a}else r.rootNodes=[mM(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ks){var a=r.nodeId;vM(t,a),r.state=hR(pR(t._modules,a),a==="root"?t.getters:t._makeLocalGettersCache,a)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ks){var a=r.nodeId,i=r.path;a!=="root"&&(i=a.split("/").filter(Boolean).concat(i)),t._withCommit(function(){r.set(t._state.data,i,r.state.value)})}}),t.subscribe(f
|
||
|
|
`),function(s){if(i=s.indexOf(":"),r=D2.trim(s.substr(0,i)).toLowerCase(),a=D2.trim(s.substr(i+1)),r){if(n[r]&&jR.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([a]):n[r]=n[r]?n[r]+", "+a:a}}),n},Xb=kr,KR=Xb.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function a(i){var o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){var s=Xb.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function x4(e){this.message=e}x4.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};x4.prototype.__CANCEL__=!0;var q0=x4,Nf=kr,YR=NR,XR=VR,ZR=SM,QR=GR,JR=qR,eB=KR,L2=MM,tB=Y0,nB=q0,Zb=function(t){return new Promise(function(r,a){var i=t.data,o=t.headers,s=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}Nf.isFormData(i)&&delete o["Content-Type"];var c=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(d+":"+f)}var h=QR(t.baseURL,t.url);c.open(t.method.toUpperCase(),ZR(h,t.params,t.paramsSerializer),!0),c.timeout=t.timeout;function v(){if(!!c){var p="getAllResponseHeaders"in c?JR(c.getAllResponseHeaders()):null,m=!s||s==="text"||s==="json"?c.responseText:c.response,y={data:m,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};YR(function(b){r(b),u()},function(b){a(b),u()},y),c=null}}if("onloadend"in c?c.onloadend=v:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(v)},c.onabort=function(){!c||(a(L2("Request aborted",t,"ECONNABORTED",c)),c=null)},c.onerror=function(){a(L2("Network Error",t,null,c)),c=null},c.ontimeout=function(){var m=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",y=t.transitional||tB.transitional;t.timeoutErrorMessage&&(m=t.timeoutErrorMessage),a(L2(m,t,y.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",c)),c=null},Nf.isStandardBrowserEnv()){var g=(t.withCredentials||eB(h))&&t.xsrfCookieName?XR.read(t.xsrfCookieName):void 0;g&&(o[t.xsrfHeaderName]=g)}"setRequestHeader"in c&&Nf.forEach(o,function(m,y){typeof i=="undefined"&&y.toLowerCase()==="content-type"?delete o[y]:c.setRequestHeader(y,m)}),Nf.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&s!=="json"&&(c.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&c.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(p){!c||(a(!p||p&&p.type?new nB("canceled"):p),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),i||(i=null),c.send(i)})},xn=kr,Qb=zR,rB=kM,aB={"Content-Type":"application/x-www-form-urlencoded"};function Jb(e,t){!xn.isUndefined(e)&&xn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function iB(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Zb),e}function oB(e,t,n){if(xn.isString(e))try{return(t||JSON.parse)(e),xn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var K0={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:iB(),transformRequest:[function(t,n){return Qb(n,"Accept"),Qb(n,"Content-Type"),xn.isFormData(t)||xn.isArrayBuffer(t)||xn.isBuffer(t)||xn.isStream(t)||xn.isFile(t)||xn.isBlob(t)?t:xn.isArrayBufferView(t)?t.buffer:xn.isURLSearchParams(t)
|
||
|
|
* Checks if an event is supported in the current execution environment.
|
||
|
|
*
|
||
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
|
* `reset`, `load`, `error`, and `select`.
|
||
|
|
*
|
||
|
|
* Borrows from Modernizr.
|
||
|
|
*
|
||
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
|
* @return {boolean} True if the event is supported.
|
||
|
|
* @internal
|
||
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
|
*/const yq=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=mq(r);t&&t.apply(this,[r,a])};nT()?e.addEventListener("DOMMouseScroll",n):e.onmousewheel=n}},_q={beforeMount(e,t){yq(e,t.value)}},bq=function(e){for(const t of e){const n=t.target.__resizeListeners__||[];n.length&&n.forEach(r=>{r()})}},_o=function(e,t){Et||!e||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new ResizeObserver(bq),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},bo=function(e,t){var n;!e||!e.__resizeListeners__||(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(n=e.__ro__)==null||n.disconnect())},wq={beforeMount(e,t){e._handleResize=()=>{var n;e&&((n=t.value)==null||n.call(t,e))},_o(e,e._handleResize)},beforeUnmount(e){bo(e,e._handleResize)}},$q="template";var tr=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(tr||{});const a_=e=>Zt(e)&&e.type===De,WT=e=>e.type===Ln,Cq=e=>e.type===$q;function lw(e,t){if(!WT(e))return a_(e)||Cq(e)?t>0?i_(e.children,t-1):void 0:e}const Sq=e=>Zt(e)&&!a_(e)&&!WT(e),i_=(e,t=3)=>Array.isArray(e)?lw(e[0],t):lw(e,t);function kq(e,t,n,r,a,i){return e?Mq(t,n,r,a,i):ee("v-if",!0)}function Mq(e,t,n,r,a){return S(),de(e,t,n,r,a)}const Tq=e=>{if(!Zt(e))return;const t=e.props||{},n=e.type.props||{},r={};return Object.keys(n).forEach(a=>{rt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[Yn(a)]=t[a]}),r},Aq=e=>{e.preventDefault(),e.stopPropagation()},Eq=()=>{qt==null||qt.doOnModalClick()};let dm=!1,Mc;const uw=function(){if(Et)return;let e=qt.modalDom;return e?dm=!0:(dm=!1,e=document.createElement("div"),qt.modalDom=e,bt(e,"touchmove",Aq),bt(e,"click",Eq)),e},Uf={},qt={modalFade:!0,modalDom:void 0,zIndex:Mc,getInstance(e){return Uf[e]},register(e,t){e&&t&&(Uf[e]=t)},deregister(e){e&&(Uf[e]=null,delete Uf[e])},nextZIndex(){return++qt.zIndex},modalStack:[],doOnModalClick(){const e=qt.modalStack[qt.modalStack.length-1];if(!e)return;const t=qt.getInstance(e.id);t&&t.closeOnClickModal.value&&t.close()},openModal(e,t,n,r,a){if(Et||!e||t===void 0)return;this.modalFade=a;const i=this.modalStack;for(let s=0,l=i.length;s<l;s++)if(i[s].id===e)return;const o=uw();kn(o,"v-modal"),this.modalFade&&!dm&&kn(o,"v-modal-enter"),r&&r.trim().split(/\s+/).forEach(l=>kn(o,l)),setTimeout(()=>{yn(o,"v-modal-enter")},200),n&&n.parentNode&&n.parentNode.nodeType!==11?n.parentNode.appendChild(o):document.body.appendChild(o),t&&(o.style.zIndex=String(t)),o.tabIndex=0,o.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})},closeModal(e){const t=this.modalStack,n=uw();if(t.length>0){const r=t[t.length-1];if(r.id===e)r.modalClass&&r.modalClass.trim().split(/\s+/).forEach(i=>yn(n,i)),t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex);else for(let a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}t.length===0&&(this.modalFade&&kn(n,"v-modal-leave"),setTimeout(()=>{t.length===0&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",qt.modalDom=void 0),yn(n,"v-modal-leave")},200))}};Object.defineProperty(qt,"zIndex",{configurable:!0,get(){return Mc===void 0&&(Mc=TB("zIndex")||2e3),Mc},set(e){Mc=e}});const xq=function(){if(!Et&&qt.modalStack.length>0){const e=qt.modalStack[qt.modalStack.length-1];return e?qt.getInstance(e.id):void 0}};Et||bt(window,"keydown",function(e){if(e.code===Le.esc){const t=xq();t&&t.closeOnPressEscape.value&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}});const Dq=(e,t,n)=>{const r=i=>{n(i)&&i.stopImmediatePropagation()};let a;_e(()=>e.value,i=>{i?a=Mn(document,t,r,!0):a==null||a()},{immediate:!0})},UT=(e,t)=>{let n;_e(()=>e.value,r=>{var a,i;r?(n=document.activeElement,on(t)&&((i=(a=t.value).focus)==null||i
|
||
|
|
height:0 !important;
|
||
|
|
visibility:hidden !important;
|
||
|
|
overflow:hidden !important;
|
||
|
|
position:absolute !important;
|
||
|
|
z-index:-1000 !important;
|
||
|
|
top:0 !important;
|
||
|
|
right:0 !important;
|
||
|
|
`,zbe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Rbe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),a=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:zbe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function hw(e,t=1,n){var r;ea||(ea=document.createElement("textarea"),document.body.appendChild(ea));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Rbe(e);ea.setAttribute("style",`${s};${Obe}`),ea.value=e.value||e.placeholder||"";let l=ea.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),ea.value="";const c=ea.scrollHeight-a;if($t(t)){let d=c*t;o==="border-box"&&(d=d+a+i),l=Math.max(d,l),u.minHeight=`${d}px`}if($t(n)){let d=c*n;o==="border-box"&&(d=d+a+i),l=Math.min(d,l)}return u.height=`${l}px`,(r=ea.parentNode)==null||r.removeChild(ea),ea=void 0,u}const Bbe=Ze({size:rp,disabled:Boolean,modelValue:{type:Re(void 0),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Re([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Re([String,Object]),default:""},prefixIcon:{type:Re([String,Object]),default:""},label:{type:String},tabindex:{type:[Number,String]},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Re([Object,Array,String]),default:()=>dn({})}}),Nbe={[Qe]:e=>it(e),input:e=>it(e),change:e=>it(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof KeyboardEvent,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Vbe={suffix:"append",prefix:"prepend"};var p_=R({name:"ElInput",components:{ElIcon:et,CircleClose:jr,IconView:lA},inheritAttrs:!1,props:Bbe,emits:Nbe,setup(e,{slots:t,emit:n,attrs:r}){const a=qe(),i=L4(),{form:o,formItem:s}=ap(),l=Pn(),u=of(),c=V(),d=V(),f=V(!1),h=V(!1),v=V(!1),g=V(!1),p=mn(e.inputStyle),m=P(()=>c.value||d.value),y=P(()=>{var N;return(N=o==null?void 0:o.statusIcon)!=null?N:!1}),_=P(()=>(s==null?void 0:s.validateState)||""),b=P(()=>ibe[_.value]),$=P(()=>r.style),w=P(()=>[e.inputStyle,p.value,{resize:e.resize}]),C=P(()=>e.modelValue===null||e.modelValue===void 0?"":String(e.modelValue)),k=P(()=>e.clearable&&!u.value&&!e.readonly&&!!C.value&&(f.value||h.value)),E=P(()=>e.showPassword&&!u.value&&!e.readonly&&(!!C.value||f.value)),D=P(()=>e.showWordLimit&&!!i.value.maxlength&&(e.type==="text"||e.type==="textarea")&&!u.value&&!e.readonly&&!e.showPassword),A=P(()=>Array.from(C.value).length),T=P(()=>!!D.value&&A.value>Number(i.value.maxlength)),L=()=>{const{type:N,autosize:U}=e;if(!(Et||N!=="textarea"))if(U){const W=Ct(U)?U.minRows:void 0,Y=Ct(U)?U.maxRows:void 0;p.value=Be({},hw(d.value,W,Y))}else p.value={minHeight:hw(d.value).minHeight}},O=()=>{const N=m.value;!N||N.value===C.value||(N.value=C.value)},I=N=>{const{el:U}=a.vnode;if(!U)return;const Y=Array.from(U.querySelectorAll(`.el-input__${N}`)).find(ge=>ge.parentNode===U);if(!Y)return;const le=Vbe[N];t[le]?Y.style.transform=`translateX(${N==="suffix"?"-":""}${U.querySelector(`.el-input-group__${le}`).offsetWidth}px)`:Y.removeAttribute("style")},z=()=>{I("prefix"),I("suffix")},B=N=>{const{value:U}=N.target;v.value||U!==C.value&&(n(Qe,U),n("input",U),Ie(O))},H=N=>{n("change",N.target.value)},F=()=>{Ie(()=>{var N;(N=m.value)==null||N.focus()})},G=()=>{var N;
|
||
|
|
Add an empty element to avoid render label,
|
||
|
|
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
|
|
`),s5e]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(S(),de(u,{key:2,class:"el-cascader-node__prefix"},{default:J(()=>[X(l)]),_:1})):ee("v-if",!0),ee(" content "),X(c),ee(" postfix "),e.isLeaf?ee("v-if",!0):(S(),x(De,{key:3},[e.node.loading?(S(),de(u,{key:0,class:"is-loading el-cascader-node__postfix"},{default:J(()=>[X(d)]),_:1})):(S(),de(u,{key:1,class:"arrow-right el-cascader-node__postfix"},{default:J(()=>[X(f)]),_:1}))],2112))],42,o5e)}L_.render=l5e;L_.__file="packages/components/cascader-panel/src/node.vue";var P_=R({name:"ElCascaderMenu",components:{ElScrollbar:So,ElCascaderNode:L_},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=qe(),{t:n}=xt(),r=ou();let a=null,i=null;const o=Pe(D_),s=V(null),l=P(()=>!e.nodes.length),u=P(()=>`cascader-menu-${r}-${e.index}`),c=v=>{a=v.target},d=v=>{if(!(!o.isHoverMenu||!a||!s.value))if(a.contains(v.target)){f();const g=t.vnode.el,{left:p}=g.getBoundingClientRect(),{offsetWidth:m,offsetHeight:y}=g,_=v.clientX-p,b=a.offsetTop,$=b+a.offsetHeight;s.value.innerHTML=`
|
||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${_} ${b} L${m} 0 V${b} Z" />
|
||
|
|
<path style="pointer-events: auto;" fill="transparent" d="M${_} ${$} L${m} ${y} V${$} Z" />
|
||
|
|
`}else i||(i=window.setTimeout(h,o.config.hoverThreshold))},f=()=>{!i||(clearTimeout(i),i=null)},h=()=>{!s.value||(s.value.innerHTML="",f())};return{panel:o,hoverZone:s,isEmpty:l,menuId:u,t:n,handleExpand:c,handleMouseMove:d,clearHoverZone:h}}});const u5e={key:0,class:"el-cascader-menu__empty-text"},c5e={key:1,ref:"hoverZone",class:"el-cascader-menu__hover-zone"};function d5e(e,t,n,r,a,i){const o=te("el-cascader-node"),s=te("el-scrollbar");return S(),de(s,{key:e.menuId,tag:"ul",role:"menu",class:"el-cascader-menu","wrap-class":"el-cascader-menu__wrap","view-class":["el-cascader-menu__list",e.isEmpty&&"is-empty"],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:J(()=>{var l;return[(S(!0),x(De,null,dt(e.nodes,u=>(S(),de(o,{key:u.uid,node:u,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isEmpty?(S(),x("div",u5e,we(e.t("el.cascader.noData")),1)):((l=e.panel)==null?void 0:l.isHoverMenu)?(S(),x("svg",c5e,null,512)):ee("v-if",!0)]}),_:1},8,["view-class","onMousemove","onMouseleave"])}P_.render=d5e;P_.__file="packages/components/cascader-panel/src/menu.vue";var I_=(e=>(e.CLICK="click",e.HOVER="hover",e))(I_||{});let f5e=0;const h5e=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};class vu{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=f5e++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=h5e(this);this.level=a?0:r?r.level+1:1,this.value=t[i],this.label=t[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new vu(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Cd(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(tt(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=tt(o)?o(t,this):t[o];return rT(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new vu(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${ir(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${ir(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}}const gm=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(gm(r.children,t))),n),[]);class Mw{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new vu(a,this.config));this.nodes=r,this.allNodes=gm(r,!1),this.leafNodes=gm(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new vu(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).filter(a=>Na(a.value,t)||Na(a.pathValues,t))[0]||null}getSameNode(t){return t&&this.getFlattedNodes(!1).filter(({value:r,level:a})=>Na(t.value,r)&&t.level===a)[0]||null}}const NA={modelValue:[Number,String,Array],options:{type:Array,default:()=>[]},props:{type:Object,default:()=>({})}},v5e={expandTrigger:I_.CLICK,
|
||
|
|
M 50 50
|
||
|
|
m 0 ${m?"":"-"}${p}
|
||
|
|
a ${p} ${p} 0 1 1 0 ${m?"-":""}${p*2}
|
||
|
|
a ${p} ${p} 0 1 1 0 ${m?"":"-"}${p*2}
|
||
|
|
`}),i=P(()=>2*Math.PI*r.value),o=P(()=>e.type==="dashboard"?.75:1),s=P(()=>`${-1*i.value*(1-o.value)/2}px`),l=P(()=>({strokeDasharray:`${i.value*o.value}px, ${i.value}px`,strokeDashoffset:s.value})),u=P(()=>({strokeDasharray:`${i.value*o.value*(e.percentage/100)}px, ${i.value}px`,strokeDashoffset:s.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease"})),c=P(()=>{let p;if(e.color)p=v(e.percentage);else switch(e.status){case"success":p="#13ce66";break;case"exception":p="#ff4949";break;case"warning":p="#e6a23c";break;default:p="#20a0ff"}return p}),d=P(()=>e.status==="warning"?hu:e.type==="line"?e.status==="success"?Td:jr:e.status==="success"?Is:qr),f=P(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),h=P(()=>e.format(e.percentage)),v=p=>{var m;const{color:y}=e;if(typeof y=="function")return y(p);if(typeof y=="string")return y;{const _=100/y.length,$=y.map((w,C)=>typeof w=="string"?{color:w,percentage:(C+1)*_}:w).sort((w,C)=>w.percentage-C.percentage);for(const w of $)if(w.percentage>p)return w.color;return(m=$[$.length-1])==null?void 0:m.color}},g=P(()=>({percentage:e.percentage}));return{barStyle:t,relativeStrokeWidth:n,radius:r,trackPath:a,perimeter:i,rate:o,strokeDashoffset:s,trailPathStyle:l,circlePathStyle:u,stroke:c,statusIcon:d,progressTextSize:f,content:h,slotData:g}}});const pEe=["aria-valuenow"],gEe={key:0,class:"el-progress-bar"},mEe={key:0,class:"el-progress-bar__innerText"},yEe={viewBox:"0 0 100 100"},_Ee=["d","stroke-width"],bEe=["d","stroke","stroke-linecap","stroke-width"],wEe={key:0};function $Ee(e,t,n,r,a,i){const o=te("el-icon");return S(),x("div",{class:he(["el-progress",[`el-progress--${e.type}`,e.status?`is-${e.status}`:"",{"el-progress--without-text":!e.showText,"el-progress--text-inside":e.textInside}]]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(S(),x("div",gEe,[M("div",{class:"el-progress-bar__outer",style:Te({height:`${e.strokeWidth}px`})},[M("div",{class:he(["el-progress-bar__inner",{"el-progress-bar__inner--indeterminate":e.indeterminate}]),style:Te(e.barStyle)},[(e.showText||e.$slots.default)&&e.textInside?(S(),x("div",mEe,[Ce(e.$slots,"default",Ms(xs(e.slotData)),()=>[M("span",null,we(e.content),1)])])):ee("v-if",!0)],6)],4)])):(S(),x("div",{key:1,class:"el-progress-circle",style:Te({height:`${e.width}px`,width:`${e.width}px`})},[(S(),x("svg",yEe,[M("path",{class:"el-progress-circle__track",d:e.trackPath,stroke:"#e5e9f2","stroke-width":e.relativeStrokeWidth,fill:"none",style:Te(e.trailPathStyle)},null,12,_Ee),M("path",{class:"el-progress-circle__path",d:e.trackPath,stroke:e.stroke,fill:"none","stroke-linecap":e.strokeLinecap,"stroke-width":e.percentage?e.relativeStrokeWidth:0,style:Te(e.circlePathStyle)},null,12,bEe)]))],4)),(e.showText||e.$slots.default)&&!e.textInside?(S(),x("div",{key:2,class:"el-progress__text",style:Te({fontSize:`${e.progressTextSize}px`})},[Ce(e.$slots,"default",Ms(xs(e.slotData)),()=>[e.status?(S(),de(o,{key:1},{default:J(()=>[(S(),de(ht(e.statusIcon)))]),_:1})):(S(),x("span",wEe,we(e.content),1))])],4)):ee("v-if",!0)],10,pEe)}b3.render=$Ee;b3.__file="packages/components/progress/src/progress.vue";const dE=ot(b3),CEe=Ze({modelValue:{type:Number,default:0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Re([Array,Object]),default:()=>dn(["#F7BA2A","#F7BA2A","#F7BA2A"])},voidColor:{type:String,default:"#C6D1DE"},disabledVoidColor:{type:String,default:"#EFF2F7"},icons:{type:Re([Array,Object]),default:()=>[Cl,Cl,Cl]},voidIcon:{type:Re([String,Object]),default:()=>d_},disabledvoidIcon:{type:Re([String,Object]),default:()=>Cl},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},showText:{type:Boolean,default:!1},showScore:{type:Boolean,default:!1},textColor:{type:String,default:"#1f2d3d"},texts:{type:Re([Array]),default:()=>dn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"}}),SEe={change:e=>typeof e=="number",[Qe]:e=>typeof e=="n
|
||
|
|
* vue-router v4.0.12
|
||
|
|
* (c) 2021 Eduardo San Martin Morote
|
||
|
|
* @license MIT
|
||
|
|
*/const u7=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",zu=e=>u7?Symbol(e):"_vr_"+e,MRe=zu("rvlm"),_$=zu("rvd"),Gp=zu("r"),X3=zu("rl"),Vm=zu("rvl"),bl=typeof window!="undefined";function TRe(e){return e.__esModule||u7&&e[Symbol.toStringTag]==="Module"}const Gt=Object.assign;function r1(e,t){const n={};for(const r in t){const a=t[r];n[r]=Array.isArray(a)?a.map(e):e(a)}return n}const Qc=()=>{},ARe=/\/$/,ERe=e=>e.replace(ARe,"");function a1(e,t,n="/"){let r,a={},i="",o="";const s=t.indexOf("?"),l=t.indexOf("#",s>-1?s:0);return s>-1&&(r=t.slice(0,s),i=t.slice(s+1,l>-1?l:t.length),a=e(i)),l>-1&&(r=r||t.slice(0,l),o=t.slice(l,t.length)),r=PRe(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function xRe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function b$(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function DRe(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&mu(t.matched[r],n.matched[a])&&c7(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function mu(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function c7(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!LRe(e[n],t[n]))return!1;return!0}function LRe(e,t){return Array.isArray(e)?w$(e,t):Array.isArray(t)?w$(t,e):e===t}function w$(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function PRe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let a=n.length-1,i,o;for(i=0;i<r.length;i++)if(o=r[i],!(a===1||o==="."))if(o==="..")a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Od;(function(e){e.pop="pop",e.push="push"})(Od||(Od={}));var Jc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jc||(Jc={}));function IRe(e){if(!e)if(bl){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ERe(e)}const ORe=/^[^#]+#/;function zRe(e,t){return e.replace(ORe,"#")+t}function RRe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const jp=()=>({left:window.pageXOffset,top:window.pageYOffset});function BRe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;t=RRe(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function $$(e,t){return(history.state?history.state.position-t:-1)+e}const Hm=new Map;function NRe(e,t){Hm.set(e,t)}function VRe(e){const t=Hm.get(e);return Hm.delete(e),t}let HRe=()=>location.protocol+"//"+location.host;function d7(e,t){const{pathname:n,search:r,hash:a}=t,i=e.indexOf("#");if(i>-1){let s=a.includes(e.slice(i))?e.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),b$(l,"")}return b$(n,e)+r+a}function FRe(e,t,n,r){let a=[],i=[],o=null;const s=({state:f})=>{const h=d7(e,location),v=n.value,g=t.value;let p=0;if(f){if(n.value=h,t.value=f,o&&o===v){o=null;return}p=g?f.position-g.position:0}else r(h);a.forEach(m=>{m(n.value,v,{delta:p,type:Od.pop,direction:p?p>0?Jc.forward:Jc.back:Jc.unknown})})};function l(){o=n.value}function u(f){a.push(f);const h=()=>{const v=a.indexOf(f);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:f}=window;!f.state||f.replaceState(Gt({},f.state,{scroll:jp()}),"")}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function C$(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?jp():null}}function WRe(
|
||
|
|
* @license MIT */(function(e,t){(function(n,r){e.exports=r()})(jn,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(v){var g,p;for(g in v)p=v[g],p!==void 0&&v.hasOwnProperty(g)&&(r[g]=p);return this},n.status=null,n.set=function(v){var g=n.isStarted();v=a(v,r.minimum,1),n.status=v===1?null:v;var p=n.render(!g),m=p.querySelector(r.barSelector),y=r.speed,_=r.easing;return p.offsetWidth,s(function(b){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),l(m,o(v,y,_)),v===1?(l(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){l(p,{transition:"all "+y+"ms linear",opacity:0}),setTimeout(function(){n.remove(),b()},y)},y)):setTimeout(b,y)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var v=function(){setTimeout(function(){!n.status||(n.trickle(),v())},r.trickleSpeed)};return r.trickle&&v(),this},n.done=function(v){return!v&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(v){var g=n.status;return g?(typeof v!="number"&&(v=(1-g)*a(Math.random()*g,.1,.95)),g=a(g+v,0,.994),n.set(g)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var v=0,g=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(g===0&&n.start(),v++,g++,p.always(function(){g--,g===0?(v=0,n.done()):n.set((v-g)/v)}),this)}}(),n.render=function(v){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var g=document.createElement("div");g.id="nprogress",g.innerHTML=r.template;var p=g.querySelector(r.barSelector),m=v?"-100":i(n.status||0),y=document.querySelector(r.parent),_;return l(p,{transition:"all 0 linear",transform:"translate3d("+m+"%,0,0)"}),r.showSpinner||(_=g.querySelector(r.spinnerSelector),_&&h(_)),y!=document.body&&c(y,"nprogress-custom-parent"),y.appendChild(g),g},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&h(v)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var v=document.body.style,g="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return g+"Perspective"in v?"translate3d":g+"Transform"in v?"translate":"margin"};function a(v,g,p){return v<g?g:v>p?p:v}function i(v){return(-1+v)*100}function o(v,g,p){var m;return r.positionUsing==="translate3d"?m={transform:"translate3d("+i(v)+"%,0,0)"}:r.positionUsing==="translate"?m={transform:"translate("+i(v)+"%,0)"}:m={"margin-left":i(v)+"%"},m.transition="all "+g+"ms "+p,m}var s=function(){var v=[];function g(){var p=v.shift();p&&p(g)}return function(p){v.push(p),v.length==1&&g()}}(),l=function(){var v=["Webkit","O","Moz","ms"],g={};function p(b){return b.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function($,w){return w.toUpperCase()})}function m(b){var $=document.body.style;if(b in $)return b;for(var w=v.length,C=b.charAt(0).toUpperCase()+b.slice(1),k;w--;)if(k=v[w]+C,k in $)return k;return b}function y(b){return b=p(b),g[b]||(g[b]=m(b))}function _(b,$,w){$=y($),b.style[$]=w}return function(b,$){var w=arguments,C,k;if(w.length==2)for(C in $)k=$[C],k!==void 0&&$.hasOwnProperty(C)&&_(b,C,k);else _(b,w[1],w[2])}}();function u(v,g){var p=typeof v=="string"?v:f(v);return p.indexOf(" "+g+" ")>=0}function c(v,g){var p=f(v),m=p+g;u(p,g)||(v.className=m.substring(1))}function d(v,g){var p=f(v),m;!u(v,g)||(m=p.replace(" "+g+" "," "),v.className=m.substring(1,m.length-1))}function f(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function h(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return n})})(_7);var uQe=_7.exports,cQe={name:"
|
||
|
|
Copyright (c) Microsoft Corporation.
|
||
|
|
|
||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
|
purpose with or without fee is hereby granted.
|
||
|
|
|
||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
|
***************************************************************************** */var Wm=function(e,t){return Wm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Wm(e,t)};function Fe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wm(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Um=function(){return Um=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Um.apply(this,arguments)};function ABe(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||t)}var EBe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),xBe=function(){function e(){this.browser=new EBe,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1}return e}(),Ta=new xBe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ta.wxa=!0,Ta.canvasSupported=!0,Ta.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?(Ta.worker=!0,Ta.canvasSupported=!0):typeof navigator=="undefined"?(Ta.node=!0,Ta.canvasSupported=!0,Ta.svgSupported=!0):DBe(navigator.userAgent,Ta);function DBe(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.canvasSupported=!!document.createElement("canvas").getContext,t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var mt=Ta,b7={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},w7={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},vf=Object.prototype.toString,qp=Array.prototype,LBe=qp.forEach,PBe=qp.filter,Q3=qp.slice,IBe=qp.map,P$=function(){}.constructor,Yf=P$?P$.prototype:null,J3="__proto__",$7={},OBe=2311;function C7(){return OBe++}function Kl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,e)}function Dt(e){if(e==null||typeof e!="object")return e;var t=e,n=vf.call(e);if(n==="[object Array]"){if(!td(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=Dt(e[r])}}else if(w7[n]){if(!td(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var r=0,a=e.length;r<a;r++)t[r]=Dt(e[r])}}}else if(!b7[n]&&!td(e)&&!Zv(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==J3&&(t[o]=Dt(e[o]))}return t}function Ft(e,t,n){if(!at(t)||!at(e))return n?Dt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==J3){var a=e[r],i=t[r];at(i)&&at(a)&&!Ye(i)&&!Ye(a)&&!Zv(i)&&!Zv(a)&&!I$(i)&&!I$(a)&&!td(i)&&!td(a)?Ft(a,i,n):(n||!(r in e))&&(e[r]=Dt(t[r]))}return e}function He(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==J3&&(e[n]=t[n]);ret
|
||
|
|
`),i=a.length;if(i===1)return aC(a[0],t,n,r);for(var o=new Pt(0,0,0,0),s=0;s<a.length;s++){var l=aC(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function Dc(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function $l(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function s6(e){return $r("\u56FD",e)}function mi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function r0(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=mi(r[0],n.width),u+=mi(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=a,u+=s,c="right",d="middle";break;case"right":l+=a+o,u+=s,d="middle";break;case"top":l+=o/2,u-=a,c="center",d="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=a,u+=s,d="middle";break;case"insideRight":l+=o-a,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",d="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,d="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var $1="__zr_normal__",C1=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],YNe={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},al={},XNe=new Pt(0,0,0,0),l6=function(){function e(t){this.id=C7(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=XNe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(al,r,c):r0(al,r,c),i.x=al.x,i.y=al.y,o=al.align,s=al.verticalAlign;var d=r.origin;if(d&&r.rotation!=null){var f=void 0,h=void 0;d==="center"?(f=c.width*.5,h=c.height*.5):(f=mi(d[0],c.width),h=mi(d[1],c.height)),u=!0,i.originX=-i.x+f+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var v=r.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;g&&this.canBeInsideText()?(m=r.insideFill,y=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,y=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==p.fill||y!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=y,p.autoStroke=_,p.align=o,p.verticalAlign=s,n.setDefaultTextStyle(p)),n.__dirty|=yr,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?sy:oy},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ga(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]
|
||
|
|
* ZRender, a high performance 2d drawing library.
|
||
|
|
*
|
||
|
|
* Copyright (c) 2013, Baidu Inc.
|
||
|
|
* All rights reserved.
|
||
|
|
*
|
||
|
|
* LICENSE
|
||
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
|
|
*/var JNe=!mt.canvasSupported,Lc={},H7={};function eVe(e){delete H7[e]}function tVe(e){if(!e)return!1;if(typeof e=="string")return e0(e,1)<iy;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=e0(t[a].color,1);return n/=r,n<iy}return!1}var nVe=function(){function e(t,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=t;var i=new mNe,o=r.renderer||"canvas";if(JNe)throw new Error("IE8 support has been dropped since 5.0");if(Lc[o]||(o=tn(Lc)[0]),!Lc[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Lc[o](n,i,r,t);this.storage=i,this.painter=s;var l=!mt.node&&!mt.worker?new HNe(s.getViewportRoot(),s.root):null;this.handler=new fNe(i,s,l,s.root),this.animation=new PNe({stage:{update:function(){return a._flush(!0)}}}),this.animation.start()}return e.prototype.add=function(t){!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh()},e.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=tVe(t)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(t){var n,r=new Date().getTime();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=new Date().getTime();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.addHover=function(t){},e.prototype.removeHover=function(t){},e.prototype.clearHover=function(){},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.pathToImage=function(t,n){if(this.painter.pathToImage)return this.painter.pathToImage(t,n)},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Xt&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,eVe(this.id)},e}();function iC(e,t){var n=new nVe(C7(),e,t);return H7[n.id]=n,n}function rVe(e,t){Lc[e]=t}var oC=1e-4,F7=20;function aVe(e){return e.replace(/^\s+|\s+$/g,"")}function ii(e,t,n,r){var a=t[0],i=t[1],o=n[0],s=n[1],
|
||
|
|
`);a=tx(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=nx(i[o],a);return i.join(`
|
||
|
|
`)}function tx(e,t,n,r){r=r||{};var a=He({},r);a.font=t,n=Lt(n,"..."),a.maxIterations=Lt(r.maxIterations,2);var i=a.minChar=Lt(r.minChar,0);a.cnCharWidth=$r("\u56FD",t);var o=a.ascCharWidth=$r("a",t);a.placeholder=Lt(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=$r(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function nx(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=$r(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?VVe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=$r(e,r)}return e===""&&(e=t.placeholder),e}function VVe(e,t,n,r){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}function HVe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=s6(a),s=Lt(t.lineHeight,o),l=t.lineOverflow==="truncate",u=t.width,c;u!=null&&n==="break"||n==="breakAll"?c=e?rx(e,t.font,u,n==="breakAll",0).lines:[]:c=e?e.split(`
|
||
|
|
`):[];var d=c.length*s,f=Lt(t.height,d);if(d>f&&l){var h=Math.floor(f/s);c=c.slice(0,h)}var v=f,g=u;if(r&&(v+=r[0]+r[2],g!=null&&(g+=r[1]+r[3])),e&&i&&g!=null)for(var p=tx(u,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),m=0;m<c.length;m++)c[m]=nx(c[m],p);if(u==null){for(var y=0,m=0;m<c.length;m++)y=Math.max($r(c[m],a),y);u=y}return{lines:c,height:f,outerHeight:v,lineHeight:s,calculatedLineHeight:o,contentHeight:d,width:u}}var FVe=function(){function e(){}return e}(),uC=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),WVe=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function UVe(e,t){var n=new WVe;if(e!=null&&(e+=""),!e)return n;for(var r=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,s=T1.lastIndex=0,l;(l=T1.exec(e))!=null;){var u=l.index;u>s&&A1(n,e.substring(s,u),t,o),A1(n,l[2],t,o,l[1]),s=T1.lastIndex}s<e.length&&A1(n,e.substring(s,e.length),t,o);var c=[],d=0,f=0,h=t.padding,v=i==="truncate",g=t.lineOverflow==="truncate";function p(H,F,G){H.width=F,H.lineHeight=G,d+=G,f=Math.max(f,F)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],_=0,b=0,$=0;$<y.tokens.length;$++){var w=y.tokens[$],C=w.styleName&&t.rich[w.styleName]||{},k=w.textPadding=C.padding,E=k?k[1]+k[3]:0,D=w.font=C.font||t.font;w.contentHeight=s6(D);var A=Lt(C.height,w.contentHeight);if(w.innerHeight=A,k&&(A+=k[0]+k[2]),w.height=A,w.lineHeight=ed(C.lineHeight,t.lineHeight,A),w.align=C&&C.align||t.align,w.verticalAlign=C&&C.verticalAlign||"middle",g&&a!=null&&d+w.lineHeight>a){$>0?(y.tokens=y.tokens.slice(0,$),p(y,b,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var T=C.width,L=T==null||T==="auto";if(typeof T=="string"&&T.charAt(T.length-1)==="%")w.percentWidth=T,c.push(w),w.contentWidth=$r(w.text,D);else{if(L){var O=C.backgroundColor,I=O&&O.image;I&&(I=RVe(I),Jp(I)&&(w.width=Math.max(w.width,I.width*A/I.height)))}var z=v&&r!=null?r-b:null;z!=null&&z<w.width?!L||z<E?(w.text="",w.width=w.contentWidth=0):(w.text=NVe(w.text,z-E,D,t.ellipsis,{minChar:t.truncateMinChar}),w.width=w.contentWidth=$r(w.text,D)):w.contentWidth=$r(w.text,D)}w.width+=E,b+=w.width,C&&(_=Math.max(_,w.lineHeight))}p(y,b,_)}n.outerWidth=n.width=Lt(r,f),n.outerHeight=n.height=Lt(a,d),n.contentHeight=d,n.contentWidth=f,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var w=c[m],B=w.percentWidth;w.width=parseInt(B,10)/100*n.width}return n}function A1(e,t,n,r,a){var i=t==="",o=a&&n.rich[a]||{},s=e.lines,l=o.font||n.font,u=!1,c,d;if(r){var f=o.padding,h=f?f[1]+f[3]:0;if(o.width!=null&&o.width!=="auto"){var v=mi(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
|
||
|
|
`),u=!0),r.accumWidth=v}else{var g=rx(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+h,d=g.linesWidths,c=g.lines}}else c=t.split(`
|
||
|
|
`);for(var p=0;p<c.length;p++){var m=c[p],y=new FVe;if(y.styleName=a,y.text=m,y.isLineHolder=!m&&!i,typeof o.width=="number"?y.width=o.width:y.width=d?d[p]:$r(m,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new uC)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||i)&&_.push(y)}else s.push(new uC([y]))}}function GVe(e){var t=e.charCodeAt(0);return t>=33&&t<=255}var jVe=zd(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function qVe(e){return GVe(e)?!!jVe[e]:!0}function rx(e,t,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
|
||
|
|
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=$r(f,t),v=r?!1:!qVe(f);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,c+=u,l="",u=0),i.push(s),o.push(c),s=f,c=h)):v?(i.push(l),o.push(u),l=f,u=h):(i.push(f),o.push(h));continue}c+=h,v?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var cy="__zr_style_"+Math.round(Math.random()*10),$s={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},e2={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$s[cy]=!0;var cC=["z","z2","invisible"],KVe=["invisible"],YVe=function(e){Fe(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=tn(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):e.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&XVe(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Pt(0,0,0,0)),r?Pt.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Pt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:He(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=xc,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&xc)},t.prototype.styleUpdated=function(){this.__dirty&=~xc},t.prototype.createStyle=function(n){return pf($s,n)},t.prototype.useStyle=function(n){n[cy]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[cy]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,cC)},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=th
|
||
|
|
`,`
|
||
|
|
|
||
|
|
`,`
|
||
|
|
|
||
|
|
|
||
|
|
`];function Gd(e,t){return t.type=e,t}function B6(e){return pa(S5,e.type)&&S5[e.type]}var S5={section:{planLayout:function(e){var t=e.blocks.length,n=t>1||t>0&&!e.noHeader,r=0;ne(e.blocks,function(a){B6(a).planLayout(a);var i=a.__gapLevelBetweenSubBlocks;i>=r&&(r=i+(n&&(!i||a.type==="section"&&!a.noHeader)?1:0))}),e.__gapLevelBetweenSubBlocks=r},build:function(e,t,n,r){var a=t.noHeader,i=VD(t),o=CUe(e,t,a?n:i.html,r);if(a)return o;var s=ph(t.header,"ordinal",e.useUTC),l=C5(r,e.renderMode).nameStyle;return e.renderMode==="richText"?M5(e,s,l)+i.richText+o:Cy('<div style="'+l+";"+ND+';">'+Nr(s)+"</div>"+o,n)}},nameValue:{planLayout:function(e){e.__gapLevelBetweenSubBlocks=0},build:function(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=t.value,c=e.useUTC;if(!(i&&o)){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),f=i?"":ph(l,"ordinal",c),h=t.valueType,v=o?[]:Ye(u)?lt(u,function(b,$){return ph(b,Ye(h)?h[$]:h,c)}):[ph(u,Ye(h)?h[0]:h,c)],g=!s||!i,p=!s&&i,m=C5(r,a),y=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":d)+(i?"":M5(e,f,y))+(o?"":MUe(e,v,g,p,_)):Cy((s?"":d)+(i?"":SUe(f,!s,y))+(o?"":kUe(v,g,p,_)),n)}}}};function CUe(e,t,n,r){var a=[],i=t.blocks||[];Ua(!i||Ye(i)),i=i||[];var o=e.orderMode;if(t.sortBlocks&&o){i=i.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(pa(s,o)){var l=new sUe(s[o],null);i.sort(function(c,d){return l.evaluate(c.sortParam,d.sortParam)})}else o==="seriesDesc"&&i.reverse()}var u=VD(t);if(ne(i,function(c,d){var f=B6(c).build(e,c,d>0?u.html:0,r);f!=null&&a.push(f)}),!!a.length)return e.renderMode==="richText"?a.join(u.richText):Cy(a.join(""),n)}function k5(e,t,n,r,a,i){if(!!e){var o=B6(e);o.planLayout(e);var s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t};return o.build(s,e,0,i)}}function VD(e){var t=e.__gapLevelBetweenSubBlocks;return{html:wUe[t],richText:$Ue[t]}}function Cy(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+ND+';">'+e+n+"</div>"}function SUe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Nr(e)+"</span>"}function kUe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return'<span style="'+i+";"+r+'">'+lt(e,function(o){return Nr(o)}).join(" ")+"</span>"}function M5(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function MUe(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(t.join(" "),i)}function TUe(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return zs(r)}function HD(e,t){var n=e.get("padding");return n!=null?n:t==="richText"?[8,10]:10}var Y1=function(){function e(){this.richTextStyles={},this._nextStyleNameId=j7()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var a=r==="richText"?this._generateStyleName():null,i=pWe({color:n,type:t,renderMode:r,markerId:a});return Ot(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Ye(n)?ne(n,function(i){return He(r,i)}):He(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function AUe(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=Ye(s),u=TUe(t,n),c,d,f,h;if(o>1||l&&!o){var v=EUe(s,t,n,i,u);c=v.inlineValues,d=v.inlineValueTypes,f=v.blocks,h=v.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);h=c=Su(a,n,i[0]),d=g.type}else h=c=l?s[0]:s;var p=u6(t),m=p&&t.name||"",y=a.getName(n),_=r?m:y;return Gd("section",{header:m,noHeader:r||!p,sortParam:h,blocks:[Gd("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Us(_),value:c,valueType:d})].concat(f||[])})}function EUe(e,t,n,r,a){var i=t.getData(),o=zd(e,function(d,f,h){var v=i.getDimensionInfo(h);return d=d||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?ne(r,function(d){c(Su(i,n,d),d)}):ne(e,c);function c(d
|
||
|
|
`+p.message)}var a=new Xt;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,d=void 0,f=void 0;if(i!=null?(u=0,d=i):s&&(u=s.x,d=s.width),o!=null?(c=0,f=o):s&&(c=s.y,f=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,d=h.width),c==null&&(c=h.y,f=h.height)}l=this._boundingRect=new Pt(u,c,d,f)}if(s){var v=oL(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new sn({shape:l.plain()}));var g=[];return ne(n.named,function(p){ZGe.get(p.svgNodeTagLower)!=null&&(g.push(p),JGe(p.el))}),{root:a,boundingRect:l,named:g}},e.prototype.useGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,r),r)},e.prototype.freeGraphic=function(t){var n=this._usedGraphicMap,r=n.get(t);r&&(n.removeKey(t),this._freedGraphics.push(r))},e}();function JGe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function eje(e){var t=[],n=pt();return ne(e,function(r){if(r.namedFrom==null){var a=new XGe(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}function tje(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);for(var r=t.features,a=0;a<r.length;a++){var i=r[a],o=i.geometry;if(o.type==="Polygon")for(var s=o.coordinates,l=0;l<s.length;l++)s[l]=lS(s[l],o.encodeOffsets[l],n);else if(o.type==="MultiPolygon")for(var s=o.coordinates,l=0;l<s.length;l++)for(var u=s[l],c=0;c<u.length;c++)u[c]=lS(u[c],o.encodeOffsets[l][c],n)}return t.UTF8Encoding=!1,t}function lS(e,t,n){for(var r=[],a=t[0],i=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function nje(e,t){return e=tje(e),lt(Rn(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];if(a.type==="Polygon"){var o=a.coordinates;i.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if(a.type==="MultiPolygon"){var o=a.coordinates;ne(o,function(u){u[0]&&i.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})})}var s=new lL(r[t||"name"],i,r.cp);return s.properties=r,s})}var Ay=[126,25],uS="\u5357\u6D77\u8BF8\u5C9B",rs=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Yo=0;Yo<rs.length;Yo++)for(var fl=0;fl<rs[Yo].length;fl++)rs[Yo][fl][0]/=10.5,rs[Yo][fl][1]/=-10.5/.75,rs[Yo][fl][0]+=Ay[0],rs[Yo][fl][1]+=Ay[1];function rje(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===uS)return;t.push(new lL(uS,lt(rs,function(r){return{type:"polygon",exterior:r}}),Ay))}}var aje={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function ije(e,t){if(e==="china"){var n=aje[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var oje={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function sje(e,t){if(e==="world"){var n=oje[t.name];if(n){var r=[n[0],n[1]];t.setCenter(r)}}}var lje=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function uje(e,t){e==="china"&&t.name==="\u53F0\u6E7E"&&t.geometries.push({type:"polygon",exterior:lje[0]})}var cje="name",dje=function(){function e(t,n,r){this.type="geoJS
|
||
|
|
`+i.message)}return rje(n,a),ne(a,function(i){var o=i.name;ije(n,i),sje(n,i),uje(n,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function fje(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function hje(e){return Ot(e)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var dc=pt(),vje={registerMap:function(e,t,n){if(t.svg){var r=new QGe(e,t.svg);dc.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new dje(e,a,n);dc.set(e,r)}},getGeoResource:function(e){return dc.get(e)},getMapForUser:function(e){var t=dc.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=dc.get(e);if(!!r)return r.load(t,n)}},pje=new Za,aa=pje,gje=typeof window!="undefined",mje=1,yje=800,_je=900,bje=1e3,wje=2e3,$je=5e3,uL=1e3,Cje=1100,F6=2e3,cL=3e3,Sje=4e3,y2=4500,kje=4600,Mje=5e3,Tje=6e3,dL=7e3,Aje={PROCESSOR:{FILTER:bje,SERIES_FILTER:yje,STATISTIC:$je},VISUAL:{LAYOUT:uL,PROGRESSIVE_LAYOUT:Cje,GLOBAL:F6,CHART:cL,POST_CHART_LAYOUT:kje,COMPONENT:Sje,BRUSH:Mje,CHART_ITEM:y2,ARIA:Tje,DECAL:dL}},Ma="__flagInMainProcess",Er="__pendingUpdate",J1="__needsUpdateStatus",cS=/^[a-zA-Z0-9_]+$/,eg="__connectUpdateStatus",dS=0,Eje=1,xje=2;function fL(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return vL(this,e,t)}}function hL(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return vL(this,e,t)}}function vL(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Za.prototype[t].apply(e,n)}var pL=function(e){Fe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Za),gL=pL.prototype;gL.on=hL("on");gL.off=hL("off");var hl,tg,$h,Oi,ng,rg,ag,fc,hc,fS,hS,vc,ig,vS,Ch,pS,mL,xr,gS,yL=function(e){Fe(t,e);function t(n,r,a){var i=e.call(this,new aGe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},typeof r=="string"&&(r=_L[r]),i._dom=n;var o="canvas",s=!1,l=i._zr=iC(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,useDirtyRect:a.useDirtyRect==null?s:a.useDirtyRect});i._throttledZrFlush=kf(en(l.flush,l),17),r=Dt(r),r&&ED(r,!0),i._theme=r,i._locale=oWe(a.locale||oD),i._coordSysMgr=new P6;var u=i._api=pS(i);function c(d,f){return d.__prio-f.__prio}return Qm(k0,c),Qm(Ey,c),i._scheduler=new KD(i,u,Ey,k0),i._messageCenter=new pL,i._initEvents(),i.resize=en(i.resize,i),l.animation.on("frame",i._onframe,i),fS(l,i),hS(l,i),qm(i),i}return t.prototype._onframe=function(){if(!this._disposed){gS(this);var n=this._scheduler;if(this[Er]){var r=this[Er].silent;this[Ma]=!0,hl(this),Oi.update.call(this,null,this[Er].updateParams),this._zr.flush(),this[Ma]=!1,this[Er]=null,fc.call(this,r),hc.call(this,r)}else if(n.unfinished){var a=mje,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),rg(this,i),n.performVisualTasks(i),Ch(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.setOption=function(n,r,a){if(this._disposed){this.id;return}var i,o,s;if(at(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ma]=!0,!this._model||r){var l=new FWe(this._api),u=this._theme,c=this._model=new MD;c.scheduler=this._scheduler,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},xy);var d={seriesTransition:s,optionChanged:!0};a?(this[Er]={silent:i,updateParams:d},this[Ma]=!1,this.getZr().wakeUp()):(hl(this),Oi.update.call(this,null,d),this._zr.flush(),this[Er]=null,this[Ma]=!1,fc.call(this,i),hc.call(this,i))},t.prototype.setTheme=function(){conso
|
||
|
|
|
||
|
|
`:"<br/>",m=d.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=It(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,d=o.dataType,f=u.getData(d),h=this._renderMode,v=n.positionDefault,g=Fh([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(c,d),y=new Y1;m.marker=y.makeTooltipMarker("item",zs(m.color),h);var _=y5(u.formatTooltip(c,!1,d)),b=g.get("order"),$=_.markupFragment?k5(_.markupFragment,y,h,b,i.get("useUTC"),g.get("textStyle")):_.markupText,w="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,$,m,w,n.offsetX,n.offsetY,n.position,n.target,y)}),a({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=It(r),o=i.tooltipConfig,s=o.option||{};if(Ot(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var d=n.positionDefault,f=Fh(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),v=Math.random()+"",g=new Y1;this._showOrMove(f,function(){var p=Dt(f.get("formatterParams")||{});this._showTooltipContent(f,h,p,v,n.offsetX,n.offsetY,n.position,r,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var d=this._tooltipContent,f=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),g=v.color;if(f)if(Ot(f)){var p=n.ecModel.get("useUTC"),m=Ye(a)?a[0]:a,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=f,y&&(h=s2(m.axisValue,h,p)),h=yD(h,a,!0)}else if(gn(f)){var _=Sg(function(b,$){b===this._ticket&&(d.setContent($,c,n,g,l),this._updatePosition(n,l,o,s,d,a,u))},this);this._ticket=i,h=f(a,i,_)}else h=f;d.setContent(h,c,n,g,l),d.show(n,g),this._updatePosition(n,l,o,s,d,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Ye(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ye(r))return{color:i||r.color||r.borderColor}},t.prototype._doUpdatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var d=o.getSize(),f=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),gn(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:d.slice()})),Ye(r))a=E9(r[0],u),i=E9(r[1],c);else if(at(r)){var g=r;g.width=d[0],g.height=d[1];var p=$u(g,{width:u,height:c});a=p.x,i=p.y,f=null,h=null}else if(Ot(r)&&l){var m=PZe(r,v,d,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=DZe(a,i,o,u,c,f?null:20,h?null:20);a=m[0],i=m[1]}if(f&&(a-=D9(f)?d[0]/2:f==="right"?d[0]:0),h&&(i-=D9(h)?d[1]/2:h==="bottom"?d[1]:0),LP(n)){var m=LZe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&wc(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},d=c.dataByAxis||[];o=o&&u.length===d.length,o&&wc(u,function(f,h){var v=d[h]||{},g=f.seriesDataIndices||[],p=v.seriesDataIndices||[];o=o&&f.value===v.value&&f.axisType===v.axisType&&f.axisId===v.axisId&&g.length===p.length,o&&wc(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&ne(f.seriesDataIndices,function(m){var y=m.seriesIndex,_=r[y],b=i[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){mt.node||(this._tooltipContent.dispose(),Hy("itemTooltip",r))},t.type="tooltip",t}($i);function Fh(e,t,n){
|
||
|
|
`)){var p=new Wh;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!c.get(g))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),$=y.getVisual("style"),w=this._createItem(m,g,v,h,r,n,_,$,b,d);w.on("click",pl(L9,g,null,i,f)).on("mouseover",pl(Uy,m.name,null,i,f)).on("mouseout",pl(Gy,m.name,null,i,f)),c.set(g,!0)}else a.eachRawSeries(function(C){if(!c.get(g)&&C.legendVisualProvider){var k=C.legendVisualProvider;if(!k.containName(g))return;var E=k.indexOfName(g),D=k.getItemVisual(E,"style"),A=k.getItemVisual(E,"legendIcon"),T=Ga(D.fill);T&&T[3]===0&&(T[3]=.2,D.fill=mf(T,"rgba"));var L=this._createItem(C,g,v,h,r,n,{},D,A,d);L.on("click",pl(L9,null,g,i,f)).on("mouseover",pl(Uy,null,g,i,f)).on("mouseout",pl(Gy,null,g,i,f)),c.set(g,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},t.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();Wy(n,function(u){var c=u.type,d=new wn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(d);var f=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Cf(d,{normal:f,emphasis:h},{defaultText:u.title}),_i(d)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,d){var f=n.visualDrawType,h=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),p=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),y=i.get("icon");c=y||c||"roundRect";var _=HZe(c,i,l,u,f,g),b=new Wh,$=i.getModel("textStyle");if(typeof n.getLegendIcon=="function"&&(!y||y==="inherit"))b.add(n.getLegendIcon({itemWidth:h,itemHeight:v,icon:c,iconRotate:p,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var w=y==="inherit"&&n.getData().getVisual("symbol")?p==="inherit"?n.getData().getVisual("symbolRotate"):p:0;b.add(FZe({itemWidth:h,itemHeight:v,icon:c,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?h+5:-5,k=s,E=o.get("formatter"),D=r;typeof E=="string"&&E?D=E.replace("{name}",r!=null?r:""):typeof E=="function"&&(D=E(r));var A=i.get("inactiveColor");b.add(new wn({style:da($,{text:D,x:C,y:v/2,fill:g?$.getTextColor():A,align:k,verticalAlign:"middle"})}));var T=new sn({shape:b.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&S6({el:T,componentModel:o,itemName:r,itemTooltipOption:L.option}),b.add(T),b.eachChild(function(O){O.silent=!0}),T.silent=!d,this.getContentGroup().add(b),_i(b),b.__legendDataIndex=a,b},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ld(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),d=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ld("horizontal",u,n.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],v=n.get("selectorButtonGap",!0),g=n.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?h[g]+=c[p]+v:d[g]+=f[p]+v,h[1-g]+=c[m]/2-f[m]/2,u.x=h[0],u.y=h[1],l.x=d[0],l.y=d[1];var _={x:0,y:0};return _[p]=c[p]+v+f[p],_[m]=Math.max(c[m],f[m]),_[y]=Math.min(0,f[y]+h[1-g]),_}else return l.x=d[0],l.y=d[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}($i);function HZe(e,t,n,r,a,i){function o(v,g){v.lineWidth==="auto"&&(v.lineWidth=g.lineWidth>0?2:0),Wy(v,function(p,m){v[m]==="inherit"&&(v[m]=g[m])})}var s=t.getModel("itemStyle"),l=s.getItemStyle(),u=e.lastIndexOf("empty",0)===0?"fill":"stroke";l.decal=r.decal,l.fill==="inherit"&&(l.fill=r[a]),l.stroke==="inherit"&&(l.stroke=r[u]),l.opacity==="inherit"&&(l.opacity=(a==="fill"?r:n).opacity),o(l,r);var c=t.getModel("lineStyle"),d=c.getLineStyle();if(o(d,n),l.fill==="auto"&&(l.fill=r.fill),l.stroke==="auto"&&(l.stroke=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),!i){var f=t.get("inactiveBorderWidth"),h=l[u];l.lineWidth=f==="auto"?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),d.stroke=c.get("inactiveC
|
||
|
|
`||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function UZe(e){e.registerAction("legendToggleSelect","legendselectchanged",fn($c,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",fn($c,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",fn($c,"inverseSelect")),e.registerAction("legendSelect","legendselected",fn($c,"select")),e.registerAction("legendUnSelect","legendunselected",fn($c,"unSelect"))}function BP(e){e.registerComponentModel(Fy),e.registerComponentView(RP),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,WZe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),UZe(e)}var GZe=function(e){Fe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var i=h2(n);e.prototype.init.call(this,n,r,a),P9(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),P9(this,this.option,n)},t.type="legend.scroll",t.defaultOption=iD(Fy.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Fy);function P9(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,Cu(t,n,{type:"box",ignoreSize:!!a})}var jZe=GZe,I9=Xt,kg=["width","height"],Mg=["x","y"],qZe=function(e){Fe(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new I9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new I9)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,d=r.get("pageIconSize",!0),f=Ye(d)?d:[d,d];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new wn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,p){var m=g+"DataIndex",y=C6(r.get("pageIcons",!0)[r.getOrient().name][p],{onclick:en(u._pageGo,u,m,r,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});y.name=g,c.add(y)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=kg[u],d=Mg[u],f=kg[1-u],h=Mg[1-u];o&&ld("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=Dt(a);o&&(m[c]=a[c]-g[c]-v);var y=this._layoutContentAndController(n,i,m,u,c,f,h,d);if(o){if(s==="end")p[u]+=y[c]+v;else{var _=g[c]+v;p[u]-=_,y[d]-=_}y[c]+=g[c]+v,p[1-u]+=y[h]+y[f]/2-g[f]/2,y[f]=Math.max(y[f],g[f]),y[h]=Math.min(y[h],g[h]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;ld(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),ld("horizontal",f,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=f.getBoundingRect(),g=this._showController=h[o]>a[o],p=[-h.x,-h.y];r||(p[i]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=Lt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var b=n.get("pageButtonPosition",!0);b==="end"?y[i]+=a[o]-v[o]:m[i]+=v[o]+_}y[1-i]+=h[s]/2-v[s]/2,c.setPosition(p),d.setPosition(m),f.setPosition(y);var $={x:0,y:0};if($[o]=g?a[o]:h[o],$[s]=Math.max(h[s],v[s]),$[l]=Math.min(0,v[l]+y[1-i]),d.__rectSize=a[o],g){var w={x:0,y:0};w[o]
|
||
|
|
* clipboard.js v2.0.8
|
||
|
|
* https://clipboardjs.com/
|
||
|
|
*
|
||
|
|
* Licensed MIT © Zeno Rocha
|
||
|
|
*/(function(e,t){(function(r,a){e.exports=a()})(jn,function(){return function(){var n={134:function(i,o,s){s.d(o,{default:function(){return B}});var l=s(279),u=s.n(l),c=s(370),d=s.n(c),f=s(817),h=s.n(f);function v(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(G){return typeof G}:v=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},v(H)}function g(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as a function")}function p(H,F){for(var G=0;G<F.length;G++){var re=F[G];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(H,re.key,re)}}function m(H,F,G){return F&&p(H.prototype,F),G&&p(H,G),H}var y=function(){function H(F){g(this,H),this.resolveOptions(F),this.initSelection()}return m(H,[{key:"resolveOptions",value:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=G.action,this.container=G.container,this.emitter=G.emitter,this.target=G.target,this.text=G.text,this.trigger=G.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var G=document.documentElement.getAttribute("dir")==="rtl";this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[G?"right":"left"]="-9999px";var re=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(re,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var G=this,re=this.createFakeElement();this.fakeHandlerCallback=function(){return G.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(re),this.selectedText=h()(re),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=h()(this.target),this.copyText()}},{key:"copyText",value:function(){var G;try{G=document.execCommand(this.action)}catch{G=!1}this.handleResult(G)}},{key:"handleResult",value:function(G){this.emitter.emit(G?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=G,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(G){if(G!==void 0)if(G&&v(G)==="object"&&G.nodeType===1){if(this.action==="copy"&&G.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(G.hasAttribute("readonly")||G.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=G}else throw new Error('Invalid "target" value, use a valid Element')},get:function(){return this._target}}]),H}(),_=y;function b(H){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b=function(G){return typeof G}:b=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},b(H)}function $(H,F){if(!(H instanceof F))throw new TypeError("Cannot call a class as
|