New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@byzanteam/primitive-element

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@byzanteam/primitive-element - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

dist/multiline-text/index.js

@@ -1,1 +0,1 @@

import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,r=e||n||Function("return this")(),o=r.Symbol,i=Object.prototype,s=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;var u=Object.prototype.toString;var f=o?o.toStringTag:void 0;function l(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":f&&f in Object(t)?function(t){var e=s.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}(t):function(t){return u.call(t)}(t)}function h(t){return null!=t&&"object"==typeof t}var p=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function v(t){return t}function _(t){if(!d(t))return!1;var e=l(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var b,y=r["__core-js_shared__"],g=(b=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var m=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,O=Function.prototype,j=Object.prototype,x=O.toString,A=j.hasOwnProperty,E=RegExp("^"+x.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S(t){return!(!d(t)||(e=t,g&&g in e))&&(_(t)?E:w).test(function(t){if(null!=t){try{return m.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function T(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return S(n)?n:void 0}var z=Object.create,F=function(){function t(){}return function(e){if(!d(e))return{};if(z)return z(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function M(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var P=Date.now;var R,$,C,D=function(){try{var t=T(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),I=(R=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:v,$=0,C=0,function(){var t=P(),e=16-(t-C);if(C=t,e>0){if(++$>=800)return arguments[0]}else $=0;return R.apply(void 0,arguments)}),k=/^(?:0|[1-9]\d*)$/;function B(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&k.test(t))&&t>-1&&t%1==0&&t<e}function L(t,e,n){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function q(t,e){return t===e||t!=t&&e!=e}var H=Object.prototype.hasOwnProperty;function N(t,e,n){var r=t[e];H.call(t,e)&&q(r,n)&&(void 0!==n||e in t)||L(t,e,n)}var U=Math.max;function W(t,e){return I(function(t,e,n){return e=U(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=U(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),M(t,this,a)}}(t,e,v),t+"")}function V(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function G(t){return null!=t&&V(t.length)&&!_(t)}var X=Object.prototype;function J(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function K(t){return h(t)&&"[object Arguments]"==l(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,Z=Q.propertyIsEnumerable,tt=K(function(){return arguments}())?K:function(t){return h(t)&&Y.call(t,"callee")&&!Z.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,nt=et&&"object"==typeof module&&module&&!module.nodeType&&module,rt=nt&&nt.exports===et?r.Buffer:void 0,ot=(rt?rt.isBuffer:void 0)||function(){return!1},it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var st="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=st&&"object"==typeof module&&module&&!module.nodeType&&module,ct=at&&at.exports===st&&e.process,ut=function(){try{var t=at&&at.require&&at.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),ft=ut&&ut.isTypedArray,lt=ft?function(t){return function(e){return t(e)}}(ft):function(t){return h(t)&&V(t.length)&&!!it[l(t)]},ht=Object.prototype.hasOwnProperty;function pt(t,e){var n=p(t),r=!n&&tt(t),o=!n&&!r&&ot(t),i=!n&&!r&&!o&&lt(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!ht.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||B(u,c))||a.push(u);return a}var dt=Object.prototype.hasOwnProperty;function vt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=J(t),n=[];for(var r in t)("constructor"!=r||!e&&dt.call(t,r))&&n.push(r);return n}function _t(t){return G(t)?pt(t,!0):vt(t)}var bt=T(Object,"create");var yt=Object.prototype.hasOwnProperty;var gt=Object.prototype.hasOwnProperty;function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wt(t,e){for(var n=t.length;n--;)if(q(t[n][0],e))return n;return-1}mt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return yt.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:gt.call(e,t)},mt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ot.call(e,n,1),--this.size,!0)},jt.prototype.get=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]},jt.prototype.has=function(t){return wt(this.__data__,t)>-1},jt.prototype.set=function(t,e){var n=this.__data__,r=wt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var xt=T(r,"Map");function At(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(xt||jt),string:new mt}},Et.prototype.delete=function(t){var e=At(this,t).delete(t);return this.size-=e?1:0,e},Et.prototype.get=function(t){return At(this,t).get(t)},Et.prototype.has=function(t){return At(this,t).has(t)},Et.prototype.set=function(t,e){var n=At(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var St=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Tt=Function.prototype,zt=Object.prototype,Ft=Tt.toString,Mt=zt.hasOwnProperty,Pt=Ft.call(Object);function Rt(t){var e=this.__data__=new jt(t);this.size=e.size}Rt.prototype.clear=function(){this.__data__=new jt,this.size=0},Rt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Rt.prototype.get=function(t){return this.__data__.get(t)},Rt.prototype.has=function(t){return this.__data__.has(t)},Rt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jt){var r=n.__data__;if(!xt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Et(r)}return n.set(t,e),this.size=n.size,this};var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Dt=Ct&&Ct.exports===$t?r.Buffer:void 0,It=Dt?Dt.allocUnsafe:void 0;var kt=r.Uint8Array;function Bt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new kt(r).set(new kt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Lt,qt=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[Lt?s:++r];if(!1===e(o[a],a,o))break}return t};function Ht(t,e,n){(void 0!==n&&!q(t[e],n)||void 0===n&&!(e in t))&&L(t,e,n)}function Nt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?L(n,a,c):N(n,a,c)}return n}(t,_t(t))}function Wt(t,e,n,r,o,i,s){var a=Nt(t,n),c=Nt(e,n),u=s.get(c);if(u)Ht(t,n,u);else{var f,v=i?i(a,c,n+"",t,e,s):void 0,b=void 0===v;if(b){var y=p(c),g=!y&&ot(c),m=!y&&!g&&lt(c);v=c,y||g||m?p(a)?v=a:h(f=a)&&G(f)?v=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):g?(b=!1,v=function(t,e){if(e)return t.slice();var n=t.length,r=It?It(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(b=!1,v=Bt(c,!0)):v=[]:function(t){if(!h(t)||"[object Object]"!=l(t))return!1;var e=St(t);if(null===e)return!0;var n=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==Pt}(c)||tt(c)?(v=a,tt(a)?v=Ut(a):d(a)&&!_(a)||(v=function(t){return"function"!=typeof t.constructor||J(t)?{}:F(St(t))}(c))):b=!1}b&&(s.set(c,v),o(v,c,r,i,s),s.delete(c)),Ht(t,n,v)}}function Vt(t,e,n,r,o){t!==e&&qt(e,(function(i,s){if(o||(o=new Rt),d(i))Wt(t,e,s,n,Vt,r,o);else{var a=r?r(Nt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Ht(t,s,a)}}),_t)}function Gt(t,e,n,r,o,i){return d(t)&&d(e)&&(i.set(e,t),Vt(t,e,void 0,Gt,i),i.delete(e)),t}var Xt,Jt=(Xt=function(t,e,n,r){Vt(t,e,n,r)},W((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Xt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!d(n))return!1;var r=typeof e;return!!("number"==r?G(n)&&B(e,n.length):"string"==r&&e in n)&&q(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Xt(t,s,n,o)}return t}))),Kt=W((function(t){return t.push(void 0,Gt),M(Jt,void 0,t)})),Qt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),Yt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var ee=["top","right","bottom","left","width","height","size","weight"],ne="undefined"!=typeof MutationObserver,re=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){te(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Yt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Yt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;ee.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),oe=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ie=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Zt},se=he(0,0,0,0);function ae(t){return parseFloat(t)||0}function ce(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+ae(t["border-"+n+"-width"])}),0)}function ue(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return se;var r=ie(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=ae(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=ae(r.width),c=ae(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=ce(r,"left","right")+i),Math.round(c+s)!==n&&(c-=ce(r,"top","bottom")+s)),!function(t){return t===ie(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return he(o.left,o.top,a,c)}var fe="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ie(t).SVGGraphicsElement}:function(t){return t instanceof ie(t).SVGElement&&"function"==typeof t.getBBox};function le(t){return Yt?fe(t)?function(t){var e=t.getBBox();return he(0,0,e.width,e.height)}(t):ue(t):se}function he(t,e,n,r){return{x:t,y:e,width:n,height:r}}var pe=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=he(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=le(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),de=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),oe(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);oe(this,{target:t,contentRect:u})},ve=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Qt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new pe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new de(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_e="undefined"!=typeof WeakMap?new WeakMap:new Qt,be=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=re.getInstance(),r=new ve(e,n,this);_e.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){be.prototype[t]=function(){var e;return(e=_e.get(this))[t].apply(e,arguments)}}));var ye=void 0!==Zt.ResizeObserver?Zt.ResizeObserver:be,ge="function"==typeof Float32Array;function me(t,e){return 1-3*e+3*t}function we(t,e){return 3*e-6*t}function Oe(t){return 3*t}function je(t,e,n){return((me(e,n)*t+we(e,n))*t+Oe(e))*t}function xe(t,e,n){return 3*me(e,n)*t*t+2*we(e,n)*t+Oe(e)}function Ae(t){return t}var Ee=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Ae;for(var o=ge?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=je(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=xe(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=xe(e,n,r);if(0===i)return e;e-=(je(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=je(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:je(s(t),e,r)}};const Se="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Te="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),ze=Ee(0,0,1,1),Fe=Ee(.25,.1,.25,1),Me=Ee(.42,0,1,1),Pe=Ee(0,0,.58,1),Re=Ee(.42,0,.58,1),$e="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),Ce={delay:0,duration:250,pause:0,easingFunction:"ease"},De={linear:ze,ease:Fe,easeIn:Me,easeOut:Pe,easeInOut:Re};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:De[t]||De.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ie=(t={})=>{let e=0,n=0,r=!1;const o={...Ce,...t},i=new Map,s=()=>{const t=$e();i.forEach(e=>e.execute(t)),i.size?n=Se(s):c()},a=()=>{r=!0,Se(s)},c=()=>{r=!1,Te(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};var ke=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ie(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Kt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Kt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new ye(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$refs.wrapper),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$refs.wrapper;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$refs.wrapper.scrollTop=0,this.scroll()},updatePosition(t){this.$refs.wrapper.scrollTop=this.distance*t}}});!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".multiline-text{width:100%;height:100%;position:relative;overflow:scroll}.multiline-text--scroll{overflow:hidden}.multiline-text__content{position:absolute;scroll-behavior:smooth}");const Be=ke;var Le=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};Le._withStripped=!0;const qe=function(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}({render:Le,staticRenderFns:[]},void 0,Be,void 0,!1,void 0,!1,void 0,void 0,void 0);export default qe;export{qe as MultilineText};
import t from"vue";var e="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,r=e||n||Function("return this")(),o=r.Symbol,i=Object.prototype,s=i.hasOwnProperty,a=i.toString,c=o?o.toStringTag:void 0;var u=Object.prototype.toString;var l=o?o.toStringTag:void 0;function f(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?function(t){var e=s.call(t,c),n=t[c];try{t[c]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[c]=n:delete t[c]),o}(t):function(t){return u.call(t)}(t)}function h(t){return null!=t&&"object"==typeof t}var p=Array.isArray;function d(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function v(t){return t}function _(t){if(!d(t))return!1;var e=f(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var b,y=r["__core-js_shared__"],g=(b=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"";var m=Function.prototype.toString;var w=/^\[object .+?Constructor\]$/,O=Function.prototype,j=Object.prototype,x=O.toString,A=j.hasOwnProperty,E=RegExp("^"+x.call(A).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function S(t){return!(!d(t)||(e=t,g&&g in e))&&(_(t)?E:w).test(function(t){if(null!=t){try{return m.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function T(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return S(n)?n:void 0}var z=Object.create,F=function(){function t(){}return function(e){if(!d(e))return{};if(z)return z(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function M(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var P=Date.now;var R,$,C,D=function(){try{var t=T(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),I=(R=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:v,$=0,C=0,function(){var t=P(),e=16-(t-C);if(C=t,e>0){if(++$>=800)return arguments[0]}else $=0;return R.apply(void 0,arguments)}),k=/^(?:0|[1-9]\d*)$/;function B(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&k.test(t))&&t>-1&&t%1==0&&t<e}function L(t,e,n){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function q(t,e){return t===e||t!=t&&e!=e}var H=Object.prototype.hasOwnProperty;function N(t,e,n){var r=t[e];H.call(t,e)&&q(r,n)&&(void 0!==n||e in t)||L(t,e,n)}var U=Math.max;function W(t,e){return I(function(t,e,n){return e=U(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=U(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),M(t,this,a)}}(t,e,v),t+"")}function V(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function G(t){return null!=t&&V(t.length)&&!_(t)}var X=Object.prototype;function J(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||X)}function K(t){return h(t)&&"[object Arguments]"==f(t)}var Q=Object.prototype,Y=Q.hasOwnProperty,Z=Q.propertyIsEnumerable,tt=K(function(){return arguments}())?K:function(t){return h(t)&&Y.call(t,"callee")&&!Z.call(t,"callee")};var et="object"==typeof exports&&exports&&!exports.nodeType&&exports,nt=et&&"object"==typeof module&&module&&!module.nodeType&&module,rt=nt&&nt.exports===et?r.Buffer:void 0,ot=(rt?rt.isBuffer:void 0)||function(){return!1},it={};it["[object Float32Array]"]=it["[object Float64Array]"]=it["[object Int8Array]"]=it["[object Int16Array]"]=it["[object Int32Array]"]=it["[object Uint8Array]"]=it["[object Uint8ClampedArray]"]=it["[object Uint16Array]"]=it["[object Uint32Array]"]=!0,it["[object Arguments]"]=it["[object Array]"]=it["[object ArrayBuffer]"]=it["[object Boolean]"]=it["[object DataView]"]=it["[object Date]"]=it["[object Error]"]=it["[object Function]"]=it["[object Map]"]=it["[object Number]"]=it["[object Object]"]=it["[object RegExp]"]=it["[object Set]"]=it["[object String]"]=it["[object WeakMap]"]=!1;var st="object"==typeof exports&&exports&&!exports.nodeType&&exports,at=st&&"object"==typeof module&&module&&!module.nodeType&&module,ct=at&&at.exports===st&&e.process,ut=function(){try{var t=at&&at.require&&at.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(t){}}(),lt=ut&&ut.isTypedArray,ft=lt?function(t){return function(e){return t(e)}}(lt):function(t){return h(t)&&V(t.length)&&!!it[f(t)]},ht=Object.prototype.hasOwnProperty;function pt(t,e){var n=p(t),r=!n&&tt(t),o=!n&&!r&&ot(t),i=!n&&!r&&!o&&ft(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!ht.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||B(u,c))||a.push(u);return a}var dt=Object.prototype.hasOwnProperty;function vt(t){if(!d(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=J(t),n=[];for(var r in t)("constructor"!=r||!e&&dt.call(t,r))&&n.push(r);return n}function _t(t){return G(t)?pt(t,!0):vt(t)}var bt=T(Object,"create");var yt=Object.prototype.hasOwnProperty;var gt=Object.prototype.hasOwnProperty;function mt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function wt(t,e){for(var n=t.length;n--;)if(q(t[n][0],e))return n;return-1}mt.prototype.clear=function(){this.__data__=bt?bt(null):{},this.size=0},mt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},mt.prototype.get=function(t){var e=this.__data__;if(bt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return yt.call(e,t)?e[t]:void 0},mt.prototype.has=function(t){var e=this.__data__;return bt?void 0!==e[t]:gt.call(e,t)},mt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=bt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ot=Array.prototype.splice;function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jt.prototype.clear=function(){this.__data__=[],this.size=0},jt.prototype.delete=function(t){var e=this.__data__,n=wt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ot.call(e,n,1),--this.size,!0)},jt.prototype.get=function(t){var e=this.__data__,n=wt(e,t);return n<0?void 0:e[n][1]},jt.prototype.has=function(t){return wt(this.__data__,t)>-1},jt.prototype.set=function(t,e){var n=this.__data__,r=wt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var xt=T(r,"Map");function At(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Et(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Et.prototype.clear=function(){this.size=0,this.__data__={hash:new mt,map:new(xt||jt),string:new mt}},Et.prototype.delete=function(t){var e=At(this,t).delete(t);return this.size-=e?1:0,e},Et.prototype.get=function(t){return At(this,t).get(t)},Et.prototype.has=function(t){return At(this,t).has(t)},Et.prototype.set=function(t,e){var n=At(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var St=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Tt=Function.prototype,zt=Object.prototype,Ft=Tt.toString,Mt=zt.hasOwnProperty,Pt=Ft.call(Object);function Rt(t){var e=this.__data__=new jt(t);this.size=e.size}Rt.prototype.clear=function(){this.__data__=new jt,this.size=0},Rt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Rt.prototype.get=function(t){return this.__data__.get(t)},Rt.prototype.has=function(t){return this.__data__.has(t)},Rt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jt){var r=n.__data__;if(!xt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Et(r)}return n.set(t,e),this.size=n.size,this};var $t="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ct=$t&&"object"==typeof module&&module&&!module.nodeType&&module,Dt=Ct&&Ct.exports===$t?r.Buffer:void 0,It=Dt?Dt.allocUnsafe:void 0;var kt=r.Uint8Array;function Bt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new kt(r).set(new kt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Lt,qt=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[Lt?s:++r];if(!1===e(o[a],a,o))break}return t};function Ht(t,e,n){(void 0!==n&&!q(t[e],n)||void 0===n&&!(e in t))&&L(t,e,n)}function Nt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Ut(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?L(n,a,c):N(n,a,c)}return n}(t,_t(t))}function Wt(t,e,n,r,o,i,s){var a=Nt(t,n),c=Nt(e,n),u=s.get(c);if(u)Ht(t,n,u);else{var l,v=i?i(a,c,n+"",t,e,s):void 0,b=void 0===v;if(b){var y=p(c),g=!y&&ot(c),m=!y&&!g&&ft(c);v=c,y||g||m?p(a)?v=a:h(l=a)&&G(l)?v=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):g?(b=!1,v=function(t,e){if(e)return t.slice();var n=t.length,r=It?It(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(b=!1,v=Bt(c,!0)):v=[]:function(t){if(!h(t)||"[object Object]"!=f(t))return!1;var e=St(t);if(null===e)return!0;var n=Mt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==Pt}(c)||tt(c)?(v=a,tt(a)?v=Ut(a):d(a)&&!_(a)||(v=function(t){return"function"!=typeof t.constructor||J(t)?{}:F(St(t))}(c))):b=!1}b&&(s.set(c,v),o(v,c,r,i,s),s.delete(c)),Ht(t,n,v)}}function Vt(t,e,n,r,o){t!==e&&qt(e,(function(i,s){if(o||(o=new Rt),d(i))Wt(t,e,s,n,Vt,r,o);else{var a=r?r(Nt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Ht(t,s,a)}}),_t)}function Gt(t,e,n,r,o,i){return d(t)&&d(e)&&(i.set(e,t),Vt(t,e,void 0,Gt,i),i.delete(e)),t}var Xt,Jt=(Xt=function(t,e,n,r){Vt(t,e,n,r)},W((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Xt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!d(n))return!1;var r=typeof e;return!!("number"==r?G(n)&&B(e,n.length):"string"==r&&e in n)&&q(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Xt(t,s,n,o)}return t}))),Kt=W((function(t){return t.push(void 0,Gt),M(Jt,void 0,t)})),Qt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),Yt="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Zt="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Zt):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var ee=["top","right","bottom","left","width","height","size","weight"],ne="undefined"!=typeof MutationObserver,re=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){te(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){Yt&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ne?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){Yt&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;ee.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),oe=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ie=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||Zt},se=he(0,0,0,0);function ae(t){return parseFloat(t)||0}function ce(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+ae(t["border-"+n+"-width"])}),0)}function ue(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return se;var r=ie(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=ae(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=ae(r.width),c=ae(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=ce(r,"left","right")+i),Math.round(c+s)!==n&&(c-=ce(r,"top","bottom")+s)),!function(t){return t===ie(t).document.documentElement}(t)){var u=Math.round(a+i)-e,l=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(l)&&(c-=l)}return he(o.left,o.top,a,c)}var le="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ie(t).SVGGraphicsElement}:function(t){return t instanceof ie(t).SVGElement&&"function"==typeof t.getBBox};function fe(t){return Yt?le(t)?function(t){var e=t.getBBox();return he(0,0,e.width,e.height)}(t):ue(t):se}function he(t,e,n,r){return{x:t,y:e,width:n,height:r}}var pe=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=he(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=fe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),de=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),oe(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);oe(this,{target:t,contentRect:u})},ve=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Qt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new pe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ie(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new de(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_e="undefined"!=typeof WeakMap?new WeakMap:new Qt,be=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=re.getInstance(),r=new ve(e,n,this);_e.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){be.prototype[t]=function(){var e;return(e=_e.get(this))[t].apply(e,arguments)}}));var ye=void 0!==Zt.ResizeObserver?Zt.ResizeObserver:be,ge="function"==typeof Float32Array;function me(t,e){return 1-3*e+3*t}function we(t,e){return 3*e-6*t}function Oe(t){return 3*t}function je(t,e,n){return((me(e,n)*t+we(e,n))*t+Oe(e))*t}function xe(t,e,n){return 3*me(e,n)*t*t+2*we(e,n)*t+Oe(e)}function Ae(t){return t}var Ee=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Ae;for(var o=ge?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=je(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=xe(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=xe(e,n,r);if(0===i)return e;e-=(je(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=je(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:je(s(t),e,r)}};const Se="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Te="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),ze=Ee(0,0,1,1),Fe=Ee(.25,.1,.25,1),Me=Ee(.42,0,1,1),Pe=Ee(0,0,.58,1),Re=Ee(.42,0,.58,1),$e="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),Ce={delay:0,duration:250,pause:0,easingFunction:"ease"},De={linear:ze,ease:Fe,easeIn:Me,easeOut:Pe,easeInOut:Re};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:De[t]||De.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ie=(t={})=>{let e=0,n=0,r=!1;const o={...Ce,...t},i=new Map,s=()=>{const t=$e();i.forEach(e=>e.execute(t)),i.size?n=Se(s):c()},a=()=>{r=!0,Se(s)},c=()=>{r=!1,Te(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};var ke=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ie(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Kt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Kt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new ye(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}(".multiline-text{width:100%;height:100%;position:relative;overflow:scroll}.multiline-text--scroll{overflow:hidden}.multiline-text__content{position:absolute;scroll-behavior:smooth}");const Be=ke;var Le=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};Le._withStripped=!0;const qe=function(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const l="function"==typeof n?n.options:n;let f;if(t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(f=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=f):e&&(f=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),f)if(l.functional){const t=l.render;l.render=function(e,n){return f.call(n),t(e,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,f):[f]}return n}({render:Le,staticRenderFns:[]},void 0,Be,void 0,!1,void 0,!1,void 0,void 0,void 0);export default qe;export{qe as MultilineText};

@@ -1,1 +0,1 @@

import t from"vue";const e={borderColor:"transparent",borderWidth:0,radius:0},n=t.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){return Object.assign(Object.assign({},e),this.borderStyle)}},render(t){const{borderColor:e,borderWidth:n,radius:r}=this.normalizedStyle;return t("img",{attrs:{src:this.url},style:{width:"100%",height:"100%",display:"block",boxSizing:"border-box",borderStyle:"solid",borderColor:e,borderWidth:`${n}px`,borderRadius:`${r}px`}})}});var r="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")(),s=i.Symbol,a=Object.prototype,c=a.hasOwnProperty,u=a.toString,f=s?s.toStringTag:void 0;var l=Object.prototype.toString;var p=s?s.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,f),n=t[f];try{t[f]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[f]=n:delete t[f]),o}(t):function(t){return l.call(t)}(t)}function d(t){return null!=t&&"object"==typeof t}var v=Array.isArray;function y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function b(t){return t}function _(t){if(!y(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var g,m=i["__core-js_shared__"],w=(g=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";var O=Function.prototype.toString;var j=/^\[object .+?Constructor\]$/,x=Function.prototype,S=Object.prototype,A=x.toString,E=S.hasOwnProperty,P=RegExp("^"+A.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T(t){return!(!y(t)||(e=t,w&&w in e))&&(_(t)?P:j).test(function(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function z(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return T(n)?n:void 0}var M=Object.create,R=function(){function t(){}return function(e){if(!y(e))return{};if(M)return M(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function F(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var $=Date.now;var C,D,k,I=function(){try{var t=z(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),N=(C=I?function(t,e){return I(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:b,D=0,k=0,function(){var t=$(),e=16-(t-k);if(k=t,e>0){if(++D>=800)return arguments[0]}else D=0;return C.apply(void 0,arguments)}),W=/^(?:0|[1-9]\d*)$/;function L(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&W.test(t))&&t>-1&&t%1==0&&t<e}function q(t,e,n){"__proto__"==e&&I?I(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function H(t,e){return t===e||t!=t&&e!=e}var U=Object.prototype.hasOwnProperty;function B(t,e,n){var r=t[e];U.call(t,e)&&H(r,n)&&(void 0!==n||e in t)||q(t,e,n)}var V=Math.max;function G(t,e){return N(function(t,e,n){return e=V(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=V(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),F(t,this,a)}}(t,e,b),t+"")}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function X(t){return null!=t&&K(t.length)&&!_(t)}var J=Object.prototype;function Q(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Y(t){return d(t)&&"[object Arguments]"==h(t)}var Z=Object.prototype,tt=Z.hasOwnProperty,et=Z.propertyIsEnumerable,nt=Y(function(){return arguments}())?Y:function(t){return d(t)&&tt.call(t,"callee")&&!et.call(t,"callee")};var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=rt&&"object"==typeof module&&module&&!module.nodeType&&module,it=ot&&ot.exports===rt?i.Buffer:void 0,st=(it?it.isBuffer:void 0)||function(){return!1},at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1;var ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,ut=ct&&"object"==typeof module&&module&&!module.nodeType&&module,ft=ut&&ut.exports===ct&&r.process,lt=function(){try{var t=ut&&ut.require&&ut.require("util").types;return t||ft&&ft.binding&&ft.binding("util")}catch(t){}}(),pt=lt&&lt.isTypedArray,ht=pt?function(t){return function(e){return t(e)}}(pt):function(t){return d(t)&&K(t.length)&&!!at[h(t)]},dt=Object.prototype.hasOwnProperty;function vt(t,e){var n=v(t),r=!n&&nt(t),o=!n&&!r&&st(t),i=!n&&!r&&!o&&ht(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!dt.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||L(u,c))||a.push(u);return a}var yt=Object.prototype.hasOwnProperty;function bt(t){if(!y(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Q(t),n=[];for(var r in t)("constructor"!=r||!e&&yt.call(t,r))&&n.push(r);return n}function _t(t){return X(t)?vt(t,!0):bt(t)}var gt=z(Object,"create");var mt=Object.prototype.hasOwnProperty;var wt=Object.prototype.hasOwnProperty;function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1}Ot.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},Ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ot.prototype.get=function(t){var e=this.__data__;if(gt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mt.call(e,t)?e[t]:void 0},Ot.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:wt.call(e,t)},Ot.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function St(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}St.prototype.clear=function(){this.__data__=[],this.size=0},St.prototype.delete=function(t){var e=this.__data__,n=jt(e,t);return!(n<0)&&(n==e.length-1?e.pop():xt.call(e,n,1),--this.size,!0)},St.prototype.get=function(t){var e=this.__data__,n=jt(e,t);return n<0?void 0:e[n][1]},St.prototype.has=function(t){return jt(this.__data__,t)>-1},St.prototype.set=function(t,e){var n=this.__data__,r=jt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var At=z(i,"Map");function Et(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(At||St),string:new Ot}},Pt.prototype.delete=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return Et(this,t).get(t)},Pt.prototype.has=function(t){return Et(this,t).has(t)},Pt.prototype.set=function(t,e){var n=Et(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Tt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),zt=Function.prototype,Mt=Object.prototype,Rt=zt.toString,Ft=Mt.hasOwnProperty,$t=Rt.call(Object);function Ct(t){var e=this.__data__=new St(t);this.size=e.size}Ct.prototype.clear=function(){this.__data__=new St,this.size=0},Ct.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var n=this.__data__;if(n instanceof St){var r=n.__data__;if(!At||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pt(r)}return n.set(t,e),this.size=n.size,this};var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,kt=Dt&&"object"==typeof module&&module&&!module.nodeType&&module,It=kt&&kt.exports===Dt?i.Buffer:void 0,Nt=It?It.allocUnsafe:void 0;var Wt=i.Uint8Array;function Lt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new Wt(r).set(new Wt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var qt,Ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[qt?s:++r];if(!1===e(o[a],a,o))break}return t};function Ut(t,e,n){(void 0!==n&&!H(t[e],n)||void 0===n&&!(e in t))&&q(t,e,n)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Vt(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?q(n,a,c):B(n,a,c)}return n}(t,_t(t))}function Gt(t,e,n,r,o,i,s){var a=Bt(t,n),c=Bt(e,n),u=s.get(c);if(u)Ut(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var b=v(c),g=!b&&st(c),m=!b&&!g&&ht(c);l=c,b||g||m?v(a)?l=a:d(f=a)&&X(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):g?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=Nt?Nt(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(p=!1,l=Lt(c,!0)):l=[]:function(t){if(!d(t)||"[object Object]"!=h(t))return!1;var e=Tt(t);if(null===e)return!0;var n=Ft.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Rt.call(n)==$t}(c)||nt(c)?(l=a,nt(a)?l=Vt(a):y(a)&&!_(a)||(l=function(t){return"function"!=typeof t.constructor||Q(t)?{}:R(Tt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),Ut(t,n,l)}}function Kt(t,e,n,r,o){t!==e&&Ht(e,(function(i,s){if(o||(o=new Ct),y(i))Gt(t,e,s,n,Kt,r,o);else{var a=r?r(Bt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Ut(t,s,a)}}),_t)}function Xt(t,e,n,r,o,i){return y(t)&&y(e)&&(i.set(e,t),Kt(t,e,void 0,Xt,i),i.delete(e)),t}var Jt,Qt=(Jt=function(t,e,n,r){Kt(t,e,n,r)},G((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Jt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!y(n))return!1;var r=typeof e;return!!("number"==r?X(n)&&L(e,n.length):"string"==r&&e in n)&&H(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Jt(t,s,n,o)}return t}))),Yt=G((function(t){return t.push(void 0,Xt),F(Qt,void 0,t)})),Zt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),te="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ee="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ne="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ee):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var re=["top","right","bottom","left","width","height","size","weight"],oe="undefined"!=typeof MutationObserver,ie=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){ne(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){te&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){te&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;re.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),se=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ae=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ee},ce=de(0,0,0,0);function ue(t){return parseFloat(t)||0}function fe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+ue(t["border-"+n+"-width"])}),0)}function le(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return ce;var r=ae(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=ue(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=ue(r.width),c=ue(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=fe(r,"left","right")+i),Math.round(c+s)!==n&&(c-=fe(r,"top","bottom")+s)),!function(t){return t===ae(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return de(o.left,o.top,a,c)}var pe="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ae(t).SVGGraphicsElement}:function(t){return t instanceof ae(t).SVGElement&&"function"==typeof t.getBBox};function he(t){return te?pe(t)?function(t){var e=t.getBBox();return de(0,0,e.width,e.height)}(t):le(t):ce}function de(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ve=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=he(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),ye=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),se(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);se(this,{target:t,contentRect:u})},be=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Zt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ae(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new ve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ae(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new ye(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_e="undefined"!=typeof WeakMap?new WeakMap:new Zt,ge=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ie.getInstance(),r=new be(e,n,this);_e.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){ge.prototype[t]=function(){var e;return(e=_e.get(this))[t].apply(e,arguments)}}));var me=void 0!==ee.ResizeObserver?ee.ResizeObserver:ge,we="function"==typeof Float32Array;function Oe(t,e){return 1-3*e+3*t}function je(t,e){return 3*e-6*t}function xe(t){return 3*t}function Se(t,e,n){return((Oe(e,n)*t+je(e,n))*t+xe(e))*t}function Ae(t,e,n){return 3*Oe(e,n)*t*t+2*je(e,n)*t+xe(e)}function Ee(t){return t}var Pe=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Ee;for(var o=we?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=Se(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Ae(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Ae(e,n,r);if(0===i)return e;e-=(Se(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=Se(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:Se(s(t),e,r)}};const Te="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),ze="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Me=Pe(0,0,1,1),Re=Pe(.25,.1,.25,1),Fe=Pe(.42,0,1,1),$e=Pe(0,0,.58,1),Ce=Pe(.42,0,.58,1),De="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),ke={delay:0,duration:250,pause:0,easingFunction:"ease"},Ie={linear:Me,ease:Re,easeIn:Fe,easeOut:$e,easeInOut:Ce};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:Ie[t]||Ie.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ne=(t={})=>{let e=0,n=0,r=!1;const o={...ke,...t},i=new Map,s=()=>{const t=De();i.forEach(e=>e.execute(t)),i.size?n=Te(s):c()},a=()=>{r=!0,Te(s)},c=()=>{r=!1,ze(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};function We(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Le=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ne(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Yt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new me(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$refs.wrapper),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$refs.wrapper;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$refs.wrapper.scrollTop=0,this.scroll()},updatePosition(t){this.$refs.wrapper.scrollTop=this.distance*t}}});var qe=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};qe._withStripped=!0;const He=We({render:qe,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);function Ue(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function Be(t){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ge(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ke(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function Xe(t,e){Je(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){Je(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){Je(t,e,n)}))}function Je(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var Qe={__proto__:[]}instanceof Array;function Ye(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var Ze=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function tn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(Ze.indexOf(t)>-1)n[t]=r[t];else{var e=Object.getOwnPropertyDescriptor(r,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return Ve({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return Ye(this,e)}});var o=e.__decorators__;o&&(o.forEach((function(t){return t(n)})),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),s=i instanceof t?i.constructor:t,a=s.extend(n);return nn(a,e,s),Ke()&&Xe(a,e),a}var en={prototype:!0,arguments:!0,callee:!0,caller:!0};function nn(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!en[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i,s,a=Object.getOwnPropertyDescriptor(e,r);if(!Qe){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(i=a.value,s=Be(i),null!=i&&("object"===s||"function"===s)&&c&&c.value===a.value)return}Object.defineProperty(t,r,a)}}}))}function rn(t){return"function"==typeof t?tn(t):function(e){return tn(e,t)}}rn.registerHooks=function(t){Ze.push.apply(Ze,Ge(t))};var on="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function sn(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(on&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const an={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let cn=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},an),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};Ue([sn({default:"这是一个标题",type:String})],cn.prototype,"titleContent",void 0),Ue([sn({default:()=>({}),type:Object})],cn.prototype,"titleStyle",void 0),cn=Ue([rn],cn);const un=cn;var fn=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};fn._withStripped=!0;const ln=We({render:fn,staticRenderFns:[]},void 0,un,void 0,!1,void 0,!1,void 0,void 0,void 0);export{He as MultilineText,n as SingleImage,ln as Title};
import t from"vue";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function i(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){s(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){s(t,e,n)}))}function s(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var a={__proto__:[]}instanceof Array;function c(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var u=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function f(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r.name=r.name||e._componentTag||e.name;var s=e.prototype;Object.getOwnPropertyNames(s).forEach((function(t){if("constructor"!==t)if(u.indexOf(t)>-1)r[t]=s[t];else{var e=Object.getOwnPropertyDescriptor(s,t);void 0!==e.value?"function"==typeof e.value?(r.methods||(r.methods={}))[t]=e.value:(r.mixins||(r.mixins=[])).push({data:function(){return n({},t,e.value)}}):(e.get||e.set)&&((r.computed||(r.computed={}))[t]={get:e.get,set:e.set})}})),(r.mixins||(r.mixins=[])).push({data:function(){return c(this,e)}});var a=e.__decorators__;a&&(a.forEach((function(t){return t(r)})),delete e.__decorators__);var f=Object.getPrototypeOf(e.prototype),l=f instanceof t?f.constructor:t,h=l.extend(r);return p(h,e,l),o()&&i(h,e),h}var l={prototype:!0,arguments:!0,callee:!0,caller:!0};function p(t,n,r){Object.getOwnPropertyNames(n).forEach((function(o){if(!l[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var s,c,u=Object.getOwnPropertyDescriptor(n,o);if(!a){if("cid"===o)return;var f=Object.getOwnPropertyDescriptor(r,o);if(s=u.value,c=e(s),null!=s&&("object"===c||"function"===c)&&f&&f.value===u.value)return}Object.defineProperty(t,o,u)}}}))}function h(t){return"function"==typeof t?f(t):function(e){return f(e,t)}}h.registerHooks=function(t){u.push.apply(u,r(t))};var d="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function v(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(d&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const y={borderColor:"transparent",borderWidth:0,radius:0};function b(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const _=t.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:n}=this.borderStyle;return Object.assign(Object.assign({},y),{borderColor:t,borderWidth:e,radius:n})},imgStyle(){const{borderColor:t,borderWidth:e,radius:n}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${n}px`}}}});var g=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};g._withStripped=!0;const m=b({render:g,staticRenderFns:[]},void 0,_,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0);var w="object"==typeof global&&global&&global.Object===Object&&global,O="object"==typeof self&&self&&self.Object===Object&&self,j=w||O||Function("return this")(),x=j.Symbol,S=Object.prototype,E=S.hasOwnProperty,A=S.toString,P=x?x.toStringTag:void 0;var T=Object.prototype.toString;var M=x?x.toStringTag:void 0;function R(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":M&&M in Object(t)?function(t){var e=E.call(t,P),n=t[P];try{t[P]=void 0;var r=!0}catch(t){}var o=A.call(t);return r&&(e?t[P]=n:delete t[P]),o}(t):function(t){return T.call(t)}(t)}function z(t){return null!=t&&"object"==typeof t}var F=Array.isArray;function $(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function C(t){return t}function D(t){if(!$(t))return!1;var e=R(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var I,k=j["__core-js_shared__"],W=(I=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+I:"";var N=Function.prototype.toString;var L=/^\[object .+?Constructor\]$/,q=Function.prototype,H=Object.prototype,U=q.toString,B=H.hasOwnProperty,V=RegExp("^"+U.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function G(t){return!(!$(t)||(e=t,W&&W in e))&&(D(t)?V:L).test(function(t){if(null!=t){try{return N.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function K(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return G(n)?n:void 0}var X=Object.create,J=function(){function t(){}return function(e){if(!$(e))return{};if(X)return X(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Q(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Y=Date.now;var Z,tt,et,nt=function(){try{var t=K(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),rt=(Z=nt?function(t,e){return nt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:C,tt=0,et=0,function(){var t=Y(),e=16-(t-et);if(et=t,e>0){if(++tt>=800)return arguments[0]}else tt=0;return Z.apply(void 0,arguments)}),ot=/^(?:0|[1-9]\d*)$/;function it(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ot.test(t))&&t>-1&&t%1==0&&t<e}function st(t,e,n){"__proto__"==e&&nt?nt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function at(t,e){return t===e||t!=t&&e!=e}var ct=Object.prototype.hasOwnProperty;function ut(t,e,n){var r=t[e];ct.call(t,e)&&at(r,n)&&(void 0!==n||e in t)||st(t,e,n)}var ft=Math.max;function lt(t,e){return rt(function(t,e,n){return e=ft(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=ft(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),Q(t,this,a)}}(t,e,C),t+"")}function pt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function ht(t){return null!=t&&pt(t.length)&&!D(t)}var dt=Object.prototype;function vt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||dt)}function yt(t){return z(t)&&"[object Arguments]"==R(t)}var bt=Object.prototype,_t=bt.hasOwnProperty,gt=bt.propertyIsEnumerable,mt=yt(function(){return arguments}())?yt:function(t){return z(t)&&_t.call(t,"callee")&&!gt.call(t,"callee")};var wt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ot=wt&&"object"==typeof module&&module&&!module.nodeType&&module,jt=Ot&&Ot.exports===wt?j.Buffer:void 0,xt=(jt?jt.isBuffer:void 0)||function(){return!1},St={};St["[object Float32Array]"]=St["[object Float64Array]"]=St["[object Int8Array]"]=St["[object Int16Array]"]=St["[object Int32Array]"]=St["[object Uint8Array]"]=St["[object Uint8ClampedArray]"]=St["[object Uint16Array]"]=St["[object Uint32Array]"]=!0,St["[object Arguments]"]=St["[object Array]"]=St["[object ArrayBuffer]"]=St["[object Boolean]"]=St["[object DataView]"]=St["[object Date]"]=St["[object Error]"]=St["[object Function]"]=St["[object Map]"]=St["[object Number]"]=St["[object Object]"]=St["[object RegExp]"]=St["[object Set]"]=St["[object String]"]=St["[object WeakMap]"]=!1;var Et="object"==typeof exports&&exports&&!exports.nodeType&&exports,At=Et&&"object"==typeof module&&module&&!module.nodeType&&module,Pt=At&&At.exports===Et&&w.process,Tt=function(){try{var t=At&&At.require&&At.require("util").types;return t||Pt&&Pt.binding&&Pt.binding("util")}catch(t){}}(),Mt=Tt&&Tt.isTypedArray,Rt=Mt?function(t){return function(e){return t(e)}}(Mt):function(t){return z(t)&&pt(t.length)&&!!St[R(t)]},zt=Object.prototype.hasOwnProperty;function Ft(t,e){var n=F(t),r=!n&&mt(t),o=!n&&!r&&xt(t),i=!n&&!r&&!o&&Rt(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!zt.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||it(u,c))||a.push(u);return a}var $t=Object.prototype.hasOwnProperty;function Ct(t){if(!$(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=vt(t),n=[];for(var r in t)("constructor"!=r||!e&&$t.call(t,r))&&n.push(r);return n}function Dt(t){return ht(t)?Ft(t,!0):Ct(t)}var It=K(Object,"create");var kt=Object.prototype.hasOwnProperty;var Wt=Object.prototype.hasOwnProperty;function Nt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Lt(t,e){for(var n=t.length;n--;)if(at(t[n][0],e))return n;return-1}Nt.prototype.clear=function(){this.__data__=It?It(null):{},this.size=0},Nt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Nt.prototype.get=function(t){var e=this.__data__;if(It){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return kt.call(e,t)?e[t]:void 0},Nt.prototype.has=function(t){var e=this.__data__;return It?void 0!==e[t]:Wt.call(e,t)},Nt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=It&&void 0===e?"__lodash_hash_undefined__":e,this};var qt=Array.prototype.splice;function Ht(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ht.prototype.clear=function(){this.__data__=[],this.size=0},Ht.prototype.delete=function(t){var e=this.__data__,n=Lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():qt.call(e,n,1),--this.size,!0)},Ht.prototype.get=function(t){var e=this.__data__,n=Lt(e,t);return n<0?void 0:e[n][1]},Ht.prototype.has=function(t){return Lt(this.__data__,t)>-1},Ht.prototype.set=function(t,e){var n=this.__data__,r=Lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Ut=K(j,"Map");function Bt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Vt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=function(){this.size=0,this.__data__={hash:new Nt,map:new(Ut||Ht),string:new Nt}},Vt.prototype.delete=function(t){var e=Bt(this,t).delete(t);return this.size-=e?1:0,e},Vt.prototype.get=function(t){return Bt(this,t).get(t)},Vt.prototype.has=function(t){return Bt(this,t).has(t)},Vt.prototype.set=function(t,e){var n=Bt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Gt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Kt=Function.prototype,Xt=Object.prototype,Jt=Kt.toString,Qt=Xt.hasOwnProperty,Yt=Jt.call(Object);function Zt(t){var e=this.__data__=new Ht(t);this.size=e.size}Zt.prototype.clear=function(){this.__data__=new Ht,this.size=0},Zt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Zt.prototype.get=function(t){return this.__data__.get(t)},Zt.prototype.has=function(t){return this.__data__.has(t)},Zt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ht){var r=n.__data__;if(!Ut||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vt(r)}return n.set(t,e),this.size=n.size,this};var te="object"==typeof exports&&exports&&!exports.nodeType&&exports,ee=te&&"object"==typeof module&&module&&!module.nodeType&&module,ne=ee&&ee.exports===te?j.Buffer:void 0,re=ne?ne.allocUnsafe:void 0;var oe=j.Uint8Array;function ie(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new oe(r).set(new oe(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var se,ae=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[se?s:++r];if(!1===e(o[a],a,o))break}return t};function ce(t,e,n){(void 0!==n&&!at(t[e],n)||void 0===n&&!(e in t))&&st(t,e,n)}function ue(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function fe(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?st(n,a,c):ut(n,a,c)}return n}(t,Dt(t))}function le(t,e,n,r,o,i,s){var a=ue(t,n),c=ue(e,n),u=s.get(c);if(u)ce(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var h=F(c),d=!h&&xt(c),v=!h&&!d&&Rt(c);l=c,h||d||v?F(a)?l=a:z(f=a)&&ht(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):d?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=re?re(n):new t.constructor(n);return t.copy(r),r}(c,!0)):v?(p=!1,l=ie(c,!0)):l=[]:function(t){if(!z(t)||"[object Object]"!=R(t))return!1;var e=Gt(t);if(null===e)return!0;var n=Qt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Jt.call(n)==Yt}(c)||mt(c)?(l=a,mt(a)?l=fe(a):$(a)&&!D(a)||(l=function(t){return"function"!=typeof t.constructor||vt(t)?{}:J(Gt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),ce(t,n,l)}}function pe(t,e,n,r,o){t!==e&&ae(e,(function(i,s){if(o||(o=new Zt),$(i))le(t,e,s,n,pe,r,o);else{var a=r?r(ue(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),ce(t,s,a)}}),Dt)}function he(t,e,n,r,o,i){return $(t)&&$(e)&&(i.set(e,t),pe(t,e,void 0,he,i),i.delete(e)),t}var de,ve=(de=function(t,e,n,r){pe(t,e,n,r)},lt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=de.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!$(n))return!1;var r=typeof e;return!!("number"==r?ht(n)&&it(e,n.length):"string"==r&&e in n)&&at(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&de(t,s,n,o)}return t}))),ye=lt((function(t){return t.push(void 0,he),Q(ve,void 0,t)})),be=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),_e="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ge="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),me="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ge):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var we=["top","right","bottom","left","width","height","size","weight"],Oe="undefined"!=typeof MutationObserver,je=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){me(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){_e&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){_e&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;we.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),xe=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},Se=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ge},Ee=ze(0,0,0,0);function Ae(t){return parseFloat(t)||0}function Pe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+Ae(t["border-"+n+"-width"])}),0)}function Te(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Ee;var r=Se(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=Ae(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=Ae(r.width),c=Ae(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=Pe(r,"left","right")+i),Math.round(c+s)!==n&&(c-=Pe(r,"top","bottom")+s)),!function(t){return t===Se(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return ze(o.left,o.top,a,c)}var Me="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Se(t).SVGGraphicsElement}:function(t){return t instanceof Se(t).SVGElement&&"function"==typeof t.getBBox};function Re(t){return _e?Me(t)?function(t){var e=t.getBBox();return ze(0,0,e.width,e.height)}(t):Te(t):Ee}function ze(t,e,n,r){return{x:t,y:e,width:n,height:r}}var Fe=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ze(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=Re(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),$e=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),xe(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);xe(this,{target:t,contentRect:u})},Ce=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new be,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Se(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new Fe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Se(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new $e(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),De="undefined"!=typeof WeakMap?new WeakMap:new be,Ie=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=je.getInstance(),r=new Ce(e,n,this);De.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){Ie.prototype[t]=function(){var e;return(e=De.get(this))[t].apply(e,arguments)}}));var ke=void 0!==ge.ResizeObserver?ge.ResizeObserver:Ie,We="function"==typeof Float32Array;function Ne(t,e){return 1-3*e+3*t}function Le(t,e){return 3*e-6*t}function qe(t){return 3*t}function He(t,e,n){return((Ne(e,n)*t+Le(e,n))*t+qe(e))*t}function Ue(t,e,n){return 3*Ne(e,n)*t*t+2*Le(e,n)*t+qe(e)}function Be(t){return t}var Ve=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Be;for(var o=We?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=He(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Ue(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Ue(e,n,r);if(0===i)return e;e-=(He(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=He(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:He(s(t),e,r)}};const Ge="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Ke="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Xe=Ve(0,0,1,1),Je=Ve(.25,.1,.25,1),Qe=Ve(.42,0,1,1),Ye=Ve(0,0,.58,1),Ze=Ve(.42,0,.58,1),tn="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),en={delay:0,duration:250,pause:0,easingFunction:"ease"},nn={linear:Xe,ease:Je,easeIn:Qe,easeOut:Ye,easeInOut:Ze};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:nn[t]||nn.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const rn=(t={})=>{let e=0,n=0,r=!1;const o={...en,...t},i=new Map,s=()=>{const t=tn();i.forEach(e=>e.execute(t)),i.size?n=Ge(s):c()},a=()=>{r=!0,Ge(s)},c=()=>{r=!1,Ke(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};const on=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:rn(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=ye({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return ye({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new ke(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var sn=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};sn._withStripped=!0;const an=b({render:sn,staticRenderFns:[]},void 0,on,void 0,!1,void 0,!1,void 0,void 0,void 0);function cn(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}const un={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let fn=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},un),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};cn([v({default:"这是一个标题",type:String})],fn.prototype,"titleContent",void 0),cn([v({default:()=>({}),type:Object})],fn.prototype,"titleStyle",void 0),fn=cn([h],fn);const ln=fn;var pn=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};pn._withStripped=!0;const hn=b({render:pn,staticRenderFns:[]},void 0,ln,void 0,!1,void 0,!1,void 0,void 0,void 0);export{an as MultilineText,m as SingleImage,hn as Title};

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;const n={borderColor:"transparent",borderWidth:0,radius:0},r=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){return Object.assign(Object.assign({},n),this.borderStyle)}},render(t){const{borderColor:e,borderWidth:n,radius:r}=this.normalizedStyle;return t("img",{attrs:{src:this.url},style:{width:"100%",height:"100%",display:"block",boxSizing:"border-box",borderStyle:"solid",borderColor:e,borderWidth:`${n}px`,borderRadius:`${r}px`}})}});var o="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,s=o||i||Function("return this")(),a=s.Symbol,c=Object.prototype,u=c.hasOwnProperty,f=c.toString,l=a?a.toStringTag:void 0;var p=Object.prototype.toString;var h=a?a.toStringTag:void 0;function d(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?function(t){var e=u.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var o=f.call(t);return r&&(e?t[l]=n:delete t[l]),o}(t):function(t){return p.call(t)}(t)}function v(t){return null!=t&&"object"==typeof t}var y=Array.isArray;function b(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function _(t){return t}function g(t){if(!b(t))return!1;var e=d(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var m,w=s["__core-js_shared__"],O=(m=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";var j=Function.prototype.toString;var S=/^\[object .+?Constructor\]$/,x=Function.prototype,A=Object.prototype,E=x.toString,P=A.hasOwnProperty,T=RegExp("^"+E.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M(t){return!(!b(t)||(e=t,O&&O in e))&&(g(t)?T:S).test(function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function z(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return M(n)?n:void 0}var R=Object.create,F=function(){function t(){}return function(e){if(!b(e))return{};if(R)return R(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function $(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var C=Date.now;var D,I,k,N=function(){try{var t=z(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),W=(D=N?function(t,e){return N(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:_,I=0,k=0,function(){var t=C(),e=16-(t-k);if(k=t,e>0){if(++I>=800)return arguments[0]}else I=0;return D.apply(void 0,arguments)}),q=/^(?:0|[1-9]\d*)$/;function L(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&q.test(t))&&t>-1&&t%1==0&&t<e}function H(t,e,n){"__proto__"==e&&N?N(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function U(t,e){return t===e||t!=t&&e!=e}var B=Object.prototype.hasOwnProperty;function V(t,e,n){var r=t[e];B.call(t,e)&&U(r,n)&&(void 0!==n||e in t)||H(t,e,n)}var G=Math.max;function K(t,e){return W(function(t,e,n){return e=G(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=G(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),$(t,this,a)}}(t,e,_),t+"")}function X(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function J(t){return null!=t&&X(t.length)&&!g(t)}var Q=Object.prototype;function Y(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function Z(t){return v(t)&&"[object Arguments]"==d(t)}var tt=Object.prototype,et=tt.hasOwnProperty,nt=tt.propertyIsEnumerable,rt=Z(function(){return arguments}())?Z:function(t){return v(t)&&et.call(t,"callee")&&!nt.call(t,"callee")};var ot="object"==typeof t&&t&&!t.nodeType&&t,it=ot&&"object"==typeof module&&module&&!module.nodeType&&module,st=it&&it.exports===ot?s.Buffer:void 0,at=(st?st.isBuffer:void 0)||function(){return!1},ct={};ct["[object Float32Array]"]=ct["[object Float64Array]"]=ct["[object Int8Array]"]=ct["[object Int16Array]"]=ct["[object Int32Array]"]=ct["[object Uint8Array]"]=ct["[object Uint8ClampedArray]"]=ct["[object Uint16Array]"]=ct["[object Uint32Array]"]=!0,ct["[object Arguments]"]=ct["[object Array]"]=ct["[object ArrayBuffer]"]=ct["[object Boolean]"]=ct["[object DataView]"]=ct["[object Date]"]=ct["[object Error]"]=ct["[object Function]"]=ct["[object Map]"]=ct["[object Number]"]=ct["[object Object]"]=ct["[object RegExp]"]=ct["[object Set]"]=ct["[object String]"]=ct["[object WeakMap]"]=!1;var ut="object"==typeof t&&t&&!t.nodeType&&t,ft=ut&&"object"==typeof module&&module&&!module.nodeType&&module,lt=ft&&ft.exports===ut&&o.process,pt=function(){try{var t=ft&&ft.require&&ft.require("util").types;return t||lt&&lt.binding&&lt.binding("util")}catch(t){}}(),ht=pt&&pt.isTypedArray,dt=ht?function(t){return function(e){return t(e)}}(ht):function(t){return v(t)&&X(t.length)&&!!ct[d(t)]},vt=Object.prototype.hasOwnProperty;function yt(t,e){var n=y(t),r=!n&&rt(t),o=!n&&!r&&at(t),i=!n&&!r&&!o&&dt(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!vt.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||L(u,c))||a.push(u);return a}var bt=Object.prototype.hasOwnProperty;function _t(t){if(!b(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Y(t),n=[];for(var r in t)("constructor"!=r||!e&&bt.call(t,r))&&n.push(r);return n}function gt(t){return J(t)?yt(t,!0):_t(t)}var mt=z(Object,"create");var wt=Object.prototype.hasOwnProperty;var Ot=Object.prototype.hasOwnProperty;function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t,e){for(var n=t.length;n--;)if(U(t[n][0],e))return n;return-1}jt.prototype.clear=function(){this.__data__=mt?mt(null):{},this.size=0},jt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jt.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return wt.call(e,t)?e[t]:void 0},jt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:Ot.call(e,t)},jt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function At(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}At.prototype.clear=function(){this.__data__=[],this.size=0},At.prototype.delete=function(t){var e=this.__data__,n=St(e,t);return!(n<0)&&(n==e.length-1?e.pop():xt.call(e,n,1),--this.size,!0)},At.prototype.get=function(t){var e=this.__data__,n=St(e,t);return n<0?void 0:e[n][1]},At.prototype.has=function(t){return St(this.__data__,t)>-1},At.prototype.set=function(t,e){var n=this.__data__,r=St(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Et=z(s,"Map");function Pt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Tt.prototype.clear=function(){this.size=0,this.__data__={hash:new jt,map:new(Et||At),string:new jt}},Tt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},Tt.prototype.get=function(t){return Pt(this,t).get(t)},Tt.prototype.has=function(t){return Pt(this,t).has(t)},Tt.prototype.set=function(t,e){var n=Pt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Mt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),zt=Function.prototype,Rt=Object.prototype,Ft=zt.toString,$t=Rt.hasOwnProperty,Ct=Ft.call(Object);function Dt(t){var e=this.__data__=new At(t);this.size=e.size}Dt.prototype.clear=function(){this.__data__=new At,this.size=0},Dt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Dt.prototype.get=function(t){return this.__data__.get(t)},Dt.prototype.has=function(t){return this.__data__.has(t)},Dt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof At){var r=n.__data__;if(!Et||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Tt(r)}return n.set(t,e),this.size=n.size,this};var It="object"==typeof t&&t&&!t.nodeType&&t,kt=It&&"object"==typeof module&&module&&!module.nodeType&&module,Nt=kt&&kt.exports===It?s.Buffer:void 0,Wt=Nt?Nt.allocUnsafe:void 0;var qt=s.Uint8Array;function Lt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new qt(r).set(new qt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Ht,Ut=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[Ht?s:++r];if(!1===e(o[a],a,o))break}return t};function Bt(t,e,n){(void 0!==n&&!U(t[e],n)||void 0===n&&!(e in t))&&H(t,e,n)}function Vt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Gt(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?H(n,a,c):V(n,a,c)}return n}(t,gt(t))}function Kt(t,e,n,r,o,i,s){var a=Vt(t,n),c=Vt(e,n),u=s.get(c);if(u)Bt(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var h=y(c),_=!h&&at(c),m=!h&&!_&&dt(c);l=c,h||_||m?y(a)?l=a:v(f=a)&&J(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):_?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=Wt?Wt(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(p=!1,l=Lt(c,!0)):l=[]:function(t){if(!v(t)||"[object Object]"!=d(t))return!1;var e=Mt(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==Ct}(c)||rt(c)?(l=a,rt(a)?l=Gt(a):b(a)&&!g(a)||(l=function(t){return"function"!=typeof t.constructor||Y(t)?{}:F(Mt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),Bt(t,n,l)}}function Xt(t,e,n,r,o){t!==e&&Ut(e,(function(i,s){if(o||(o=new Dt),b(i))Kt(t,e,s,n,Xt,r,o);else{var a=r?r(Vt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Bt(t,s,a)}}),gt)}function Jt(t,e,n,r,o,i){return b(t)&&b(e)&&(i.set(e,t),Xt(t,e,void 0,Jt,i),i.delete(e)),t}var Qt,Yt=(Qt=function(t,e,n,r){Xt(t,e,n,r)},K((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Qt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!b(n))return!1;var r=typeof e;return!!("number"==r?J(n)&&L(e,n.length):"string"==r&&e in n)&&U(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Qt(t,s,n,o)}return t}))),Zt=K((function(t){return t.push(void 0,Jt),$(Yt,void 0,t)})),te=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),ee="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ne="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),re="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ne):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var oe=["top","right","bottom","left","width","height","size","weight"],ie="undefined"!=typeof MutationObserver,se=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){re(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ee&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ee&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;oe.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ae=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ce=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ne},ue=ve(0,0,0,0);function fe(t){return parseFloat(t)||0}function le(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+fe(t["border-"+n+"-width"])}),0)}function pe(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return ue;var r=ce(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=fe(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=fe(r.width),c=fe(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=le(r,"left","right")+i),Math.round(c+s)!==n&&(c-=le(r,"top","bottom")+s)),!function(t){return t===ce(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return ve(o.left,o.top,a,c)}var he="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ce(t).SVGGraphicsElement}:function(t){return t instanceof ce(t).SVGElement&&"function"==typeof t.getBBox};function de(t){return ee?he(t)?function(t){var e=t.getBBox();return ve(0,0,e.width,e.height)}(t):pe(t):ue}function ve(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ye=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ve(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=de(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),be=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),ae(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);ae(this,{target:t,contentRect:u})},_e=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new te,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ce(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new ye(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ce(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new be(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ge="undefined"!=typeof WeakMap?new WeakMap:new te,me=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=se.getInstance(),r=new _e(e,n,this);ge.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){me.prototype[t]=function(){var e;return(e=ge.get(this))[t].apply(e,arguments)}}));var we=void 0!==ne.ResizeObserver?ne.ResizeObserver:me,Oe="function"==typeof Float32Array;function je(t,e){return 1-3*e+3*t}function Se(t,e){return 3*e-6*t}function xe(t){return 3*t}function Ae(t,e,n){return((je(e,n)*t+Se(e,n))*t+xe(e))*t}function Ee(t,e,n){return 3*je(e,n)*t*t+2*Se(e,n)*t+xe(e)}function Pe(t){return t}var Te=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Pe;for(var o=Oe?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=Ae(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Ee(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Ee(e,n,r);if(0===i)return e;e-=(Ae(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=Ae(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:Ae(s(t),e,r)}};const Me="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),ze="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Re=Te(0,0,1,1),Fe=Te(.25,.1,.25,1),$e=Te(.42,0,1,1),Ce=Te(0,0,.58,1),De=Te(.42,0,.58,1),Ie="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),ke={delay:0,duration:250,pause:0,easingFunction:"ease"},Ne={linear:Re,ease:Fe,easeIn:$e,easeOut:Ce,easeInOut:De};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:Ne[t]||Ne.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const We=(t={})=>{let e=0,n=0,r=!1;const o={...ke,...t},i=new Map,s=()=>{const t=Ie();i.forEach(e=>e.execute(t)),i.size?n=Me(s):c()},a=()=>{r=!0,Me(s)},c=()=>{r=!1,ze(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};function qe(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Le=e.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:We(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Zt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Zt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new we(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$refs.wrapper),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$refs.wrapper;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$refs.wrapper.scrollTop=0,this.scroll()},updatePosition(t){this.$refs.wrapper.scrollTop=this.distance*t}}});var He=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};He._withStripped=!0;const Ue=qe({render:He,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);function Be(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function Ve(t){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Xe(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function Je(t,e){Qe(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){Qe(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){Qe(t,e,n)}))}function Qe(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var Ye={__proto__:[]}instanceof Array;function Ze(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var tn=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function en(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(tn.indexOf(t)>-1)n[t]=r[t];else{var e=Object.getOwnPropertyDescriptor(r,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return Ge({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return Ze(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(n)})),delete t.__decorators__);var i=Object.getPrototypeOf(t.prototype),s=i instanceof e?i.constructor:e,a=s.extend(n);return rn(a,t,s),Xe()&&Je(a,t),a}var nn={prototype:!0,arguments:!0,callee:!0,caller:!0};function rn(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!nn[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i,s,a=Object.getOwnPropertyDescriptor(e,r);if(!Ye){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(i=a.value,s=Ve(i),null!=i&&("object"===s||"function"===s)&&c&&c.value===a.value)return}Object.defineProperty(t,r,a)}}}))}function on(t){return"function"==typeof t?en(t):function(e){return en(e,t)}}on.registerHooks=function(t){tn.push.apply(tn,Ke(t))};var sn="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function an(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(sn&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const cn={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let un=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},cn),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};Be([an({default:"这是一个标题",type:String})],un.prototype,"titleContent",void 0),Be([an({default:()=>({}),type:Object})],un.prototype,"titleStyle",void 0),un=Be([on],un);const fn=un;var ln=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};ln._withStripped=!0;const pn=qe({render:ln,staticRenderFns:[]},void 0,fn,void 0,!1,void 0,!1,void 0,void 0,void 0);t.MultilineText=Ue,t.SingleImage=r,t.Title=pn,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function s(t,e){a(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){a(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){a(t,e,n)}))}function a(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var c={__proto__:[]}instanceof Array;function u(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||t._componentTag||t.name;var o=t.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(f.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return r({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return u(this,t)}});var a=t.__decorators__;a&&(a.forEach((function(t){return t(n)})),delete t.__decorators__);var c=Object.getPrototypeOf(t.prototype),l=c instanceof e?c.constructor:e,p=l.extend(n);return h(p,t,l),i()&&s(p,t),p}var p={prototype:!0,arguments:!0,callee:!0,caller:!0};function h(t,e,r){Object.getOwnPropertyNames(e).forEach((function(o){if(!p[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var s,a,u=Object.getOwnPropertyDescriptor(e,o);if(!c){if("cid"===o)return;var f=Object.getOwnPropertyDescriptor(r,o);if(s=u.value,a=n(s),null!=s&&("object"===a||"function"===a)&&f&&f.value===u.value)return}Object.defineProperty(t,o,u)}}}))}function d(t){return"function"==typeof t?l(t):function(e){return l(e,t)}}d.registerHooks=function(t){f.push.apply(f,o(t))};var v="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function y(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(v&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const b={borderColor:"transparent",borderWidth:0,radius:0};function _(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const g=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:t,borderWidth:e,radius:n}=this.borderStyle;return Object.assign(Object.assign({},b),{borderColor:t,borderWidth:e,radius:n})},imgStyle(){const{borderColor:t,borderWidth:e,radius:n}=this.normalizedStyle;return{borderColor:t,borderWidth:`${e}px`,borderRadius:`${n}px`}}}});var m=function(){var t=this.$createElement;return(this._self._c||t)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};m._withStripped=!0;const w=_({render:m,staticRenderFns:[]},void 0,g,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0);var O="object"==typeof global&&global&&global.Object===Object&&global,j="object"==typeof self&&self&&self.Object===Object&&self,S=O||j||Function("return this")(),x=S.Symbol,E=Object.prototype,A=E.hasOwnProperty,P=E.toString,T=x?x.toStringTag:void 0;var M=Object.prototype.toString;var R=x?x.toStringTag:void 0;function z(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=A.call(t,T),n=t[T];try{t[T]=void 0;var r=!0}catch(t){}var o=P.call(t);return r&&(e?t[T]=n:delete t[T]),o}(t):function(t){return M.call(t)}(t)}function F(t){return null!=t&&"object"==typeof t}var $=Array.isArray;function C(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function D(t){return t}function I(t){if(!C(t))return!1;var e=z(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var k,W=S["__core-js_shared__"],N=(k=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+k:"";var q=Function.prototype.toString;var L=/^\[object .+?Constructor\]$/,H=Function.prototype,U=Object.prototype,B=H.toString,V=U.hasOwnProperty,G=RegExp("^"+B.call(V).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function K(t){return!(!C(t)||(e=t,N&&N in e))&&(I(t)?G:L).test(function(t){if(null!=t){try{return q.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function X(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return K(n)?n:void 0}var J=Object.create,Q=function(){function t(){}return function(e){if(!C(e))return{};if(J)return J(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Y(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Z=Date.now;var tt,et,nt,rt=function(){try{var t=X(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),ot=(tt=rt?function(t,e){return rt(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:D,et=0,nt=0,function(){var t=Z(),e=16-(t-nt);if(nt=t,e>0){if(++et>=800)return arguments[0]}else et=0;return tt.apply(void 0,arguments)}),it=/^(?:0|[1-9]\d*)$/;function st(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&it.test(t))&&t>-1&&t%1==0&&t<e}function at(t,e,n){"__proto__"==e&&rt?rt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ct(t,e){return t===e||t!=t&&e!=e}var ut=Object.prototype.hasOwnProperty;function ft(t,e,n){var r=t[e];ut.call(t,e)&&ct(r,n)&&(void 0!==n||e in t)||at(t,e,n)}var lt=Math.max;function pt(t,e){return ot(function(t,e,n){return e=lt(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=lt(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),Y(t,this,a)}}(t,e,D),t+"")}function ht(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function dt(t){return null!=t&&ht(t.length)&&!I(t)}var vt=Object.prototype;function yt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||vt)}function bt(t){return F(t)&&"[object Arguments]"==z(t)}var _t=Object.prototype,gt=_t.hasOwnProperty,mt=_t.propertyIsEnumerable,wt=bt(function(){return arguments}())?bt:function(t){return F(t)&&gt.call(t,"callee")&&!mt.call(t,"callee")};var Ot="object"==typeof t&&t&&!t.nodeType&&t,jt=Ot&&"object"==typeof module&&module&&!module.nodeType&&module,St=jt&&jt.exports===Ot?S.Buffer:void 0,xt=(St?St.isBuffer:void 0)||function(){return!1},Et={};Et["[object Float32Array]"]=Et["[object Float64Array]"]=Et["[object Int8Array]"]=Et["[object Int16Array]"]=Et["[object Int32Array]"]=Et["[object Uint8Array]"]=Et["[object Uint8ClampedArray]"]=Et["[object Uint16Array]"]=Et["[object Uint32Array]"]=!0,Et["[object Arguments]"]=Et["[object Array]"]=Et["[object ArrayBuffer]"]=Et["[object Boolean]"]=Et["[object DataView]"]=Et["[object Date]"]=Et["[object Error]"]=Et["[object Function]"]=Et["[object Map]"]=Et["[object Number]"]=Et["[object Object]"]=Et["[object RegExp]"]=Et["[object Set]"]=Et["[object String]"]=Et["[object WeakMap]"]=!1;var At="object"==typeof t&&t&&!t.nodeType&&t,Pt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Tt=Pt&&Pt.exports===At&&O.process,Mt=function(){try{var t=Pt&&Pt.require&&Pt.require("util").types;return t||Tt&&Tt.binding&&Tt.binding("util")}catch(t){}}(),Rt=Mt&&Mt.isTypedArray,zt=Rt?function(t){return function(e){return t(e)}}(Rt):function(t){return F(t)&&ht(t.length)&&!!Et[z(t)]},Ft=Object.prototype.hasOwnProperty;function $t(t,e){var n=$(t),r=!n&&wt(t),o=!n&&!r&&xt(t),i=!n&&!r&&!o&&zt(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!Ft.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||st(u,c))||a.push(u);return a}var Ct=Object.prototype.hasOwnProperty;function Dt(t){if(!C(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=yt(t),n=[];for(var r in t)("constructor"!=r||!e&&Ct.call(t,r))&&n.push(r);return n}function It(t){return dt(t)?$t(t,!0):Dt(t)}var kt=X(Object,"create");var Wt=Object.prototype.hasOwnProperty;var Nt=Object.prototype.hasOwnProperty;function qt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Lt(t,e){for(var n=t.length;n--;)if(ct(t[n][0],e))return n;return-1}qt.prototype.clear=function(){this.__data__=kt?kt(null):{},this.size=0},qt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},qt.prototype.get=function(t){var e=this.__data__;if(kt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Wt.call(e,t)?e[t]:void 0},qt.prototype.has=function(t){var e=this.__data__;return kt?void 0!==e[t]:Nt.call(e,t)},qt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=kt&&void 0===e?"__lodash_hash_undefined__":e,this};var Ht=Array.prototype.splice;function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ut.prototype.clear=function(){this.__data__=[],this.size=0},Ut.prototype.delete=function(t){var e=this.__data__,n=Lt(e,t);return!(n<0)&&(n==e.length-1?e.pop():Ht.call(e,n,1),--this.size,!0)},Ut.prototype.get=function(t){var e=this.__data__,n=Lt(e,t);return n<0?void 0:e[n][1]},Ut.prototype.has=function(t){return Lt(this.__data__,t)>-1},Ut.prototype.set=function(t,e){var n=this.__data__,r=Lt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Bt=X(S,"Map");function Vt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Gt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Gt.prototype.clear=function(){this.size=0,this.__data__={hash:new qt,map:new(Bt||Ut),string:new qt}},Gt.prototype.delete=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e},Gt.prototype.get=function(t){return Vt(this,t).get(t)},Gt.prototype.has=function(t){return Vt(this,t).has(t)},Gt.prototype.set=function(t,e){var n=Vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Kt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Xt=Function.prototype,Jt=Object.prototype,Qt=Xt.toString,Yt=Jt.hasOwnProperty,Zt=Qt.call(Object);function te(t){var e=this.__data__=new Ut(t);this.size=e.size}te.prototype.clear=function(){this.__data__=new Ut,this.size=0},te.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},te.prototype.get=function(t){return this.__data__.get(t)},te.prototype.has=function(t){return this.__data__.has(t)},te.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ut){var r=n.__data__;if(!Bt||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gt(r)}return n.set(t,e),this.size=n.size,this};var ee="object"==typeof t&&t&&!t.nodeType&&t,ne=ee&&"object"==typeof module&&module&&!module.nodeType&&module,re=ne&&ne.exports===ee?S.Buffer:void 0,oe=re?re.allocUnsafe:void 0;var ie=S.Uint8Array;function se(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new ie(r).set(new ie(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var ae,ce=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[ae?s:++r];if(!1===e(o[a],a,o))break}return t};function ue(t,e,n){(void 0!==n&&!ct(t[e],n)||void 0===n&&!(e in t))&&at(t,e,n)}function fe(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function le(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?at(n,a,c):ft(n,a,c)}return n}(t,It(t))}function pe(t,e,n,r,o,i,s){var a=fe(t,n),c=fe(e,n),u=s.get(c);if(u)ue(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var h=$(c),d=!h&&xt(c),v=!h&&!d&&zt(c);l=c,h||d||v?$(a)?l=a:F(f=a)&&dt(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):d?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=oe?oe(n):new t.constructor(n);return t.copy(r),r}(c,!0)):v?(p=!1,l=se(c,!0)):l=[]:function(t){if(!F(t)||"[object Object]"!=z(t))return!1;var e=Kt(t);if(null===e)return!0;var n=Yt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Qt.call(n)==Zt}(c)||wt(c)?(l=a,wt(a)?l=le(a):C(a)&&!I(a)||(l=function(t){return"function"!=typeof t.constructor||yt(t)?{}:Q(Kt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),ue(t,n,l)}}function he(t,e,n,r,o){t!==e&&ce(e,(function(i,s){if(o||(o=new te),C(i))pe(t,e,s,n,he,r,o);else{var a=r?r(fe(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),ue(t,s,a)}}),It)}function de(t,e,n,r,o,i){return C(t)&&C(e)&&(i.set(e,t),he(t,e,void 0,de,i),i.delete(e)),t}var ve,ye=(ve=function(t,e,n,r){he(t,e,n,r)},pt((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=ve.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!C(n))return!1;var r=typeof e;return!!("number"==r?dt(n)&&st(e,n.length):"string"==r&&e in n)&&ct(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&ve(t,s,n,o)}return t}))),be=pt((function(t){return t.push(void 0,de),Y(ye,void 0,t)})),_e=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),ge="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,me="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),we="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(me):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var Oe=["top","right","bottom","left","width","height","size","weight"],je="undefined"!=typeof MutationObserver,Se=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){we(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ge&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),je?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ge&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;Oe.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),xe=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},Ee=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||me},Ae=Fe(0,0,0,0);function Pe(t){return parseFloat(t)||0}function Te(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+Pe(t["border-"+n+"-width"])}),0)}function Me(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Ae;var r=Ee(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=Pe(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=Pe(r.width),c=Pe(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=Te(r,"left","right")+i),Math.round(c+s)!==n&&(c-=Te(r,"top","bottom")+s)),!function(t){return t===Ee(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return Fe(o.left,o.top,a,c)}var Re="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof Ee(t).SVGGraphicsElement}:function(t){return t instanceof Ee(t).SVGElement&&"function"==typeof t.getBBox};function ze(t){return ge?Re(t)?function(t){var e=t.getBBox();return Fe(0,0,e.width,e.height)}(t):Me(t):Ae}function Fe(t,e,n,r){return{x:t,y:e,width:n,height:r}}var $e=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Fe(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=ze(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),Ce=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),xe(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);xe(this,{target:t,contentRect:u})},De=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new _e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Ee(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new $e(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof Ee(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new Ce(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Ie="undefined"!=typeof WeakMap?new WeakMap:new _e,ke=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Se.getInstance(),r=new De(e,n,this);Ie.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){ke.prototype[t]=function(){var e;return(e=Ie.get(this))[t].apply(e,arguments)}}));var We=void 0!==me.ResizeObserver?me.ResizeObserver:ke,Ne="function"==typeof Float32Array;function qe(t,e){return 1-3*e+3*t}function Le(t,e){return 3*e-6*t}function He(t){return 3*t}function Ue(t,e,n){return((qe(e,n)*t+Le(e,n))*t+He(e))*t}function Be(t,e,n){return 3*qe(e,n)*t*t+2*Le(e,n)*t+He(e)}function Ve(t){return t}var Ge=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Ve;for(var o=Ne?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=Ue(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Be(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Be(e,n,r);if(0===i)return e;e-=(Ue(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=Ue(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:Ue(s(t),e,r)}};const Ke="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),Xe="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Je=Ge(0,0,1,1),Qe=Ge(.25,.1,.25,1),Ye=Ge(.42,0,1,1),Ze=Ge(0,0,.58,1),tn=Ge(.42,0,.58,1),en="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),nn={delay:0,duration:250,pause:0,easingFunction:"ease"},rn={linear:Je,ease:Qe,easeIn:Ye,easeOut:Ze,easeInOut:tn};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:rn[t]||rn.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const on=(t={})=>{let e=0,n=0,r=!1;const o={...nn,...t},i=new Map,s=()=>{const t=en();i.forEach(e=>e.execute(t)),i.size?n=Ke(s):c()},a=()=>{r=!0,Ke(s)},c=()=>{r=!1,Xe(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};const sn=e.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:on(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=be({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return be({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new We(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$el),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},beforeDestroy(){var t;null===(t=this.observer)||void 0===t||t.disconnect(),this.unsubscribe()},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$el;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$el.scrollTop=0,this.scroll()},updatePosition(t){this.$el.scrollTop=this.distance*t}}});var an=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};an._withStripped=!0;const cn=_({render:an,staticRenderFns:[]},void 0,sn,void 0,!1,void 0,!1,void 0,void 0,void 0);function un(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}const fn={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let ln=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},fn),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};un([y({default:"这是一个标题",type:String})],ln.prototype,"titleContent",void 0),un([y({default:()=>({}),type:Object})],ln.prototype,"titleStyle",void 0),ln=un([d],ln);const pn=ln;var hn=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};hn._withStripped=!0;const dn=_({render:hn,staticRenderFns:[]},void 0,pn,void 0,!1,void 0,!1,void 0,void 0,void 0);t.MultilineText=cn,t.SingleImage=w,t.Title=dn,Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -1,1 +0,1 @@

import r from"vue";const e={borderColor:"transparent",borderWidth:0,radius:0},t=r.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){return Object.assign(Object.assign({},e),this.borderStyle)}},render(r){const{borderColor:e,borderWidth:t,radius:o}=this.normalizedStyle;return r("img",{attrs:{src:this.url},style:{width:"100%",height:"100%",display:"block",boxSizing:"border-box",borderStyle:"solid",borderColor:e,borderWidth:`${t}px`,borderRadius:`${o}px`}})}});export default t;export{t as SingleImage};
import e from"vue";const t={borderColor:"transparent",borderWidth:0,radius:0},r=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){const{borderColor:e,borderWidth:r,radius:o}=this.borderStyle;return Object.assign(Object.assign({},t),{borderColor:e,borderWidth:r,radius:o})},imgStyle(){const{borderColor:e,borderWidth:t,radius:r}=this.normalizedStyle;return{borderColor:e,borderWidth:`${t}px`,borderRadius:`${r}px`}}}});!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===r&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}('.single-image[data-v-6967a08d]{width:100%;height:100%;display:block;box-sizing:border-box;border-style:solid}.single-image[src=""][data-v-6967a08d]{visibility:hidden}');const o=r;var i=function(){var e=this.$createElement;return(this._self._c||e)("img",{staticClass:"single-image",style:this.imgStyle,attrs:{src:this.url}})};i._withStripped=!0;const n=function(e,t,r,o,i,n,d,s,a,l){"boolean"!=typeof d&&(a=s,s=d,d=!1);const c="function"==typeof r?r.options:r;let h;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),o&&(c._scopeId=o),n?(h=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,a(e)),e&&e._registeredComponents&&e._registeredComponents.add(n)},c._ssrRegister=h):t&&(h=d?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),h)if(c.functional){const e=c.render;c.render=function(t,r){return h.call(r),e(t,r)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,h):[h]}return r}({render:i,staticRenderFns:[]},void 0,o,"data-v-6967a08d",!1,void 0,!1,void 0,void 0,void 0);export default n;export{n as SingleImage};
{
"name": "@byzanteam/primitive-element",
"version": "0.1.2",
"version": "0.1.3",
"description": "Internal components of BA",

@@ -5,0 +5,0 @@ "main": "dist/primitive-element.umd.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc