1 Star 0 Fork 0

zlc1000/face2face

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
vds.js.下载 88.11 KB
一键复制 编辑 原始数据 按行查看 历史
zlc1000 提交于 2020-07-23 18:32 . face2face
!function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var d=r[a]={exports:{}};e[a][0].call(d.exports,function(t){var r=e[a][1][t];return i(r?r:t)},d,d.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(t,e,r){function n(t){I.push(t),x||(x=!0,C(o))}function i(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function o(){x=!1;var t=I;I=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var r=t.takeRecords();a(t),r.length&&(t.callback_(r,t),e=!0)}),e&&o()}function a(t){t.nodes_.forEach(function(e){var r=S.get(e);r&&r.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}function s(t,e){for(var r=t;r;r=r.parentNode){var n=S.get(r);if(n)for(var i=0;i<n.length;i++){var o=n[i],a=o.options;if(r===t||a.subtree){var s=e(a);s&&o.enqueue(s)}}}}function u(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++A}function d(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function c(t){var e=new d(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function h(t,e){return E=new d(t,e)}function l(t){return D?D:(D=c(E),D.oldValue=t,D)}function p(){E=D=void 0}function f(t){return t===D||t===E}function g(t,e){return t===e?t:D&&f(t)?D:null}function v(t,e,r){this.observer=t,this.target=e,this.options=r,this.transientObservedNodes=[]}var m=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,w=window.WeakMap;if("undefined"==typeof w){var b=Object.defineProperty,y=Date.now()%1e9;w=function(){this.name="__st"+(1e9*Math.random()>>>0)+(y++ +"__")},w.prototype={set:function(t,e){var r=t[this.name];return r&&r[0]===t?r[1]=e:b(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},"delete":function(t){var e=t[this.name];if(!e)return!1;var r=e[0]===t;return e[0]=e[1]=void 0,r},has:function(t){var e=t[this.name];return e?e[0]===t:!1}}}var S=new w,C=window.msSetImmediate;if(!C){var N=[],O=String(Math.random());window.addEventListener("message",function(t){if(t.data===O){var e=N;N=[],e.forEach(function(t){t()})}}),C=function(t){N.push(t),window.postMessage(O,"*")}}var x=!1,I=[],A=0;u.prototype={observe:function(t,e){if(t=i(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var r=S.get(t);r||S.set(t,r=[]);for(var n,o=0;o<r.length;o++)if(r[o].observer===this){n=r[o],n.removeListeners(),n.options=e;break}n||(n=new v(this,t,e),r.push(n),this.nodes_.push(t)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=S.get(t),r=0;r<e.length;r++){var n=e[r];if(n.observer===this){n.removeListeners(),e.splice(r,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}};var E,D;v.prototype={enqueue:function(t){var e=this.observer.records_,r=e.length;if(e.length>0){var i=e[r-1],o=g(i,t);if(o)return void(e[r-1]=o)}else n(this.observer);e[r]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=S.get(t);e||S.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=S.get(t),r=0;r<e.length;r++)if(e[r]===this){e.splice(r,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,r=t.relatedNode.namespaceURI,n=t.target,i=new h("attributes",n);i.attributeName=e,i.attributeNamespace=r;var o=null;("undefined"==typeof MutationEvent||t.attrChange!==MutationEvent.ADDITION)&&(o=t.prevValue),s(n,function(t){return!t.attributes||t.attributeFilter&&t.attributeFilter.length&&-1===t.attributeFilter.indexOf(e)&&-1===t.attributeFilter.indexOf(r)?void 0:t.attributeOldValue?l(o):i});break;case"DOMCharacterDataModified":var n=t.target,i=h("characterData",n),o=t.prevValue;s(n,function(t){return t.characterData?t.characterDataOldValue?l(o):i:void 0});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,u,n=t.relatedNode,d=t.target;"DOMNodeInserted"===t.type?(a=[d],u=[]):(a=[],u=[d]);var c=d.previousSibling,f=d.nextSibling,i=h("childList",n);i.addedNodes=a,i.removedNodes=u,i.previousSibling=c,i.nextSibling=f,s(n,function(t){return t.childList?i:void 0})}p()}},m||(m=u),e.exports=m},{}],2:[function(t,e,r){var n,i,o,a,s,u,d,c,h=function(t,e){return function(){return t.apply(e,arguments)}},l=[].indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(e in this&&this[e]===t)return e;return-1};c=t("./utils"),s=c.detectIE()||0/0,9>s?t("json2"):(window.MutationObserver=t("mutation-observer"),a=t("tree-mirror")),u=t("./info"),c=t("./utils"),i=t("./messaging_observer"),o=t("./server_imp_setting"),d=c.detectIOS()||0/0,n=function(){function t(){this.setPSForActionMessage=h(this.setPSForActionMessage,this),this.pageChanged=h(this.pageChanged,this),this.getDocumentReferrer=h(this.getDocumentReferrer,this)}var e,r,n,s,p,f,g,v,m,w,b,y,S,C,N,O,x,I;return s=null,N=3,f=[],r={},p={},I={tspan:1,text:1,g:1,rect:1,path:1,defs:1,clipPath:1,desc:1,title:1},v={},x=null,g=null,O=null,n=!0,e=["TEXTAREA","HTML","BODY"],S=["button","submit"],C=["A","BUTTON","INPUT","IMG"],w=["I","SPAN","EM","svg"],y=["A","BUTTON"],b=y,m=["radio","checkbox"],t.prototype.setPageGroup=function(t){return r.pg=t,this.pageLoaded&&+Date.now()-this.pageLoaded<4e3?setTimeout(function(e){return function(){var r;return e.trackPageView(3),null!=(r=e.messagingObserver)?r.sendPageLoad({pg:t}):void 0}}(this),10):void 0},t.prototype.setPS1=function(t){return r.ps1=Array.isArray(t)?t.join("##"):t},t.prototype.setPS2=function(t){return r.ps2=Array.isArray(t)?t.join("##"):t},t.prototype.setPS3=function(t){return r.ps3=Array.isArray(t)?t.join("##"):t},t.prototype.setPS4=function(t){return r.ps4=Array.isArray(t)?t.join("##"):t},t.prototype.setPS5=function(t){return r.ps5=Array.isArray(t)?t.join("##"):t},t.prototype.setPS6=function(t){return r.ps6=Array.isArray(t)?t.join("##"):t},t.prototype.setPS7=function(t){return r.ps7=Array.isArray(t)?t.join("##"):t},t.prototype.setPS8=function(t){return r.ps8=Array.isArray(t)?t.join("##"):t},t.prototype.setPS9=function(t){return r.ps9=Array.isArray(t)?t.join("##"):t},t.prototype.setPS10=function(t){return r.ps10=Array.isArray(t)?t.join("##"):t},t.prototype.trackCS1=function(t,e){return window.grcs.cs1=t+":"+e,t&&e&&this.gruser?this.gruser.hasSid()?(this.gruser.isNeedToUpdateSessionByCS(window.vds.accountId)&&(this.pageLoaded=+Date.now()),this.gruser.handleCSChanged(window.vds.accountId),setTimeout(function(t){return function(){return r=p,+Date.now()-t.pageLoaded>1e4?t.trackPageView(4):t.trackPageView()}}(this),10)):(this.pageLoaded=+Date.now(),void this.trackPageView(2)):void 0},t.prototype.registerDomObserver=function(){var t;if(window.vds.imp)return null!=s&&s.disconnect(),t={initialize:function(t){return function(e){var r,n,i,o,a;for(a={u:t.gruser.vid(),s:t.gruser.sid(),t:"imp",tm:+Date.now(),ptm:t.pageLoaded,d:window.location.host||window.vds.accountId,p:t.currentPath},t.currentQuery.length>0&&(a.q=t.currentQuery),t.setPSForActionMessage(a),n=[],i=0,o=e.length;o>i;i++)r=e[i],"use"!==r.tagName&&(n=n.concat(t.getLeafNodes(r,e.length)));return a.e=n,n.length>0?t.send([a]):void 0}}(this),applyChanged:function(t){return function(e,r,n,i){var o,a,s,u,d;if(r.length>0&&!document.body.className.match(/\bvds-entrytext\b/)){for(t.gruser.hasSid()||(t.pageLoaded=+Date.now(),t.trackPageView(2)),u={u:t.gruser.vid(),s:t.gruser.sid(),t:"imp",tm:+Date.now(),ptm:t.pageLoaded,d:window.location.host||window.vds.accountId,p:t.currentPath},t.currentQuery.length>0&&(u.q=t.currentQuery),t.setPSForActionMessage(u),o=[],a=0,s=r.length;s>a;a++)d=r[a],"use"!==d.tagName&&(o=o.concat(t.getLeafNodes(d,d.length)));if(u.e=o,o.length>0)return f.push(u),0>N?t.sendQueue():(t.queueTimeout&&clearTimeout(t.queueTimeout),t.queueTimeout=setTimeout(function(){return t.sendQueue()},3e3),t.checkingBlance())}}}(this)},s=new a.Client(document.body,t)},t.prototype.deregisterDomObserver=function(){return null!=s?s.disconnect():void 0},t.prototype.idle=function(){return this.lastSentTime=this.lastSentTime||+Date.now(),this.lastSentTime&&(+Date.now()-this.lastSentTime)/f.length>300},t.prototype.checkingBlance=function(){return this.idle()?N-=1:void 0},t.prototype.sendQueue=function(){return f.length>0&&+Date.now()-this.lastActionTime<12e4&&this.send(f),this.queueTimeout=null,this.lastSentTime=+Date.now(),f=[],N=3},t.prototype.getLeafNodes=function(t,e){var r,n,i,o,a,s,d,h,l,p,f,g,v,m,w,y,S;if(d=[],g=!0,t.leaf)1===t.nodeType&&((null!=(v=t.attributes)?v.href:void 0)||null!=t.text||null!=t.obj)&&(f=this.nodeMessage(t,!0),e>1&&(f.idx=t.idx),d.push(f));else if(t.isContainer&&(f=this.nodeMessage(t,!0),d.push(f)),0===t.childNodes.length&&-1===c.indexOf(C,t.tagName));else{for(m=t.childNodes,o=0,h=m.length;h>o;o++)n=m[o],n.leaf||(g=!1),"use"!==n.tagName&&(d=d.concat(this.getLeafNodes(n,t.childNodes.length)));if((-1!==c.indexOf(b,t.tagName)||g&&((null!=(w=t.attributes)?w.any:void 0)||t.text))&&(t.text||(i=t.dom,t.text=i?u.containerElemContent(i):c.parentOfLeafText(t)),f=this.nodeMessage(t,!1),d.push(f)),"SPAN"===t.tagName)for(y=t.childNodes,a=0,l=y.length;l>a;a++)if(n=y[a],"svg"===n.tagName)for(S=n.childNodes,s=0,p=S.length;p>s;s++)r=S[s],1===r.nodeType&&"use"===r.tagName&&c.hasAttr(r,"xlink:href")&&(t.text=r.getAttribute("xlink:href"),f=this.nodeMessage(t,!1),d.push(f))}return d},t.prototype.nodeMessage=function(t,e){var r,n,i,o;return n={x:t.path},n.v=c.processText(t.text),"A"===t.tagName&&0===(null!=(i=t.text)?i.length:void 0)&&(n.v=void 0),(null!=(o=n.v)?o.length:void 0)>50&&(n.v="A"===t.tagName?c.processText(t.text.slice(0,50)):void 0),(r=t.attributes)&&r.href&&0!==r.href.indexOf("javascript")&&(n.h=c.normalizePath(r.href.slice(0,320)),delete t.attributes.href),t.idx&&(n.idx=t.idx),t.obj&&(n.obj=t.obj),n},t.prototype.registerEventListener=function(){var t,r,i,o,a,s,d,h,l,p;s={click:"clck",change:"chng",submit:"sbmt"},t="__mutation_summary_node_map_id__",r=function(t,e,r){return t.addEventListener?t.addEventListener(e,r,!0):t.attachEvent?t.attachEvent("on"+e,r):t["on"+e]=r},l=function(t){return t.which>1||(O=+Date.now(),g===O)?void 0:(g=O,v={time:O,target:t.target||t.srcElement,x:d("x",t),y:d("y",t)},x=setTimeout(function(){return t={target:v.target,type:"click"},a(t)},600))},h=function(t){var e;return e={adx:Math.abs(d("x",t)-v.x),ady:Math.abs(d("y",t)-v.y)},e.adx>10||e.ady>10?clearTimeout(x):void 0},p=function(t){var e;return e=+Date.now()-v.time,1e3>e?clearTimeout(x):void 0},d=function(t,e){var r;return r=n?e.touches[0]:e,r["page"+t.toUpperCase()]},i=function(){var t,e,i,o,a,s,u,d,c,f,g,v,m,w;w=navigator.userAgent,o=/chrome/i.exec(w),i=/android/i.exec(w),n="ontouchstart"in window&&!(o&&!i),v=n?["touchstart"]:["mousedown"],m=n?["touchend","touchcancel"]:["mouseup","mouseleave"],f=n?["touchmove"]:["mousemove"];for(e=0,u=v.length;u>e;e++)t=v[e],r(document,t,l);for(a=0,d=f.length;d>a;a++)t=f[a],r(document,t,h);for(g=[],s=0,c=m.length;c>s;s++)t=m[s],g.push(r(document,t,p));return g},a=function(t){return function(r){var n,i,o,a,d;if(!document.body.className.match(/\bvds-entrytext\b/)){if(window.vds.ignoreClck&&"click"===r.type)return;for(t.lastActionTime=+Date.now(),d=r.target||r.srcElement;d&&1===I[d.tagName]&&d.parentNode;)d=d.parentNode;if(n=u.path(d,!0),n.isIgnore)return;if(a=d.tagName,window.vds.impCtrlDua&&(window.grImpCtrl=Date.now()),"click"===r.type){if(-1!==c.indexOf(e,a))return;if("INPUT"===a&&-1===c.indexOf(S,d.type))return;if(-1===c.indexOf(C,a)&&!u.depthInside(d,4))return}return t.gruser.hasSid()?"click"===r.type&&t.sendPVOnSidChanged():(t.pageLoaded=+Date.now(),t.trackPageView(2)),o={},o.u=t.gruser.vid(),o.s=t.gruser.sid(),o.t=s[r.type],o.tm=+Date.now(),o.ptm=t.pageLoaded,o.d=window.location.host||window.vds.accountId,o.p=t.currentPath,t.currentQuery.length>0&&(o.q=t.currentQuery),t.setPSForActionMessage(o),i=t.compute(r.type,d),i.x=n.xpath,n.obj&&(i.obj=n.obj),n.idx?i.idx=n.idx:(-1!==i.x.indexOf("/dl")||-1!==i.x.indexOf("/tr")||-1!==i.x.indexOf("/li"))&&(i.idx=u.index(d)),o.e=0===n.containerMessage.length?[i]:-1!==c.indexOf(b,n.pnode.tagName)&&u.onlyContainsChildren(n.pnode,w)?n.containerMessage:[i].concat(n.containerMessage),t.send([o])}}}(this);for(o in s)r(document,o,a);return r(document,"scroll",function(t){return window.vds.impCtrlDua?window.grImpCtrl=Date.now():void 0}),window.vds.touch?i():void 0},t.prototype.sendPVOnSidChanged=function(){var t,e,r;return t=this.gruser.currentSessionId(),r=t[0],e=t[1],this.gruser.lastSessionId!==r?(r||(r=this.gruser.guid(),this.gruser.resetUserId()),e=!1,this.gruser.updateSessionId(r,e),this.trackPageView(4)):void 0},t.prototype.visitMessage=function(){var t,e,r;e={ai:window.vds.accountId,av:window.vds.version,b:"Web",u:this.gruser.vid(),s:this.gruser.sid(),t:"vst",tm:+Date.now(),sh:window.screen.height,sw:window.screen.width,d:window.location.host||window.vds.accountId,p:this.currentPath,rf:this.getDocumentReferrer(),l:null!=(r=navigator.language||navigator.browserLanguage)?r.toLowerCase():void 0},this.currentQuery.length>0&&(e.q=this.currentQuery);for(t in window.grcs)e[t]=window.grcs[t];return e},t.prototype.trackPageView=function(t){var e,n;return null==t&&(t=0),e=[],3!==t||null!=r.pg?4===t&&(this.pageLoaded=+Date.now(),this.gruser.isSendNewVisit())?void this.trackPageView(2):(3>t&&this.gruser.isSendNewVisit()&&e.push(this.visitMessage()),null==this.pageLoaded&&(this.pageLoaded=+Date.now()),2===t&&(r=p),n=this.pageMessage(),e.push(n),this.send(e,"pv"),this.lastActionTime=+Date.now()):void 0},t.prototype.pageMessage=function(){var t,e;e={u:this.gruser.vid(),s:this.gruser.sid(),tl:document.title.slice(0,255),t:"page",tm:this.pageLoaded,pt:window.location.protocol.substring(0,window.location.protocol.length-1),d:window.location.host||window.vds.accountId,p:this.currentPath,rf:this.getDocumentReferrer()},this.currentQuery.length>0&&(e.q=this.currentQuery);for(t in window.grcs)e[t]=window.grcs[t];if(r.pg)for(t in r)e[t]=r[t],p[t]=r[t];else p={};return r={},e},t.prototype.track=function(t,e,r){return null==e&&(e={}),this._track(t,"cstm","cstm",e)},t.prototype.clickOn=function(t,e){return null==e&&(e={}),this._track(t,"clck","action",e)},t.prototype.impOn=function(t,e){return null==e&&(e={}),this._track(t,"imp","action",e)},t.prototype._track=function(t,e,r,n){var i,o,a,s,u,d,c,h,l,p,f,g,v;null==n&&(n={}),c=[],h={u:this.gruser.vid(),s:this.gruser.sid(),t:"cstm",tm:+Date.now(),ptm:this.pageLoaded,d:window.location.host||window.vds.accountId,p:this.currentPath,n:t},this.currentQuery&&this.currentQuery.trim().length>0&&(h.q=this.currentQuery),v={},i=[];for(f in n)Array.isArray(n[f])?i.push(f):v[f]=n[f];if(0===i.length)h.e=n,c.push(h);else if(1===i.length&&n[i[0]].length>0)for(g=n[i[0]],a=0,u=g.length;u>a;a++){if(o=g[a],"object"==typeof o){for(f in v)o[f]=v[f];l=Object.assign({},h),l.e=o}else p=Object.assign({},v),p[i[0]]=o,l=Object.assign({},h),l.e=p;c.push(l)}else{for(s=0,d=i.length;d>s;s++)o=i[s],v[o]=n[o].join("##");h.e=v,c.push(h)}return this.send(c,r)},t.prototype.compute=function(t,e){var r,n,i,o,a,s,d,h,l,p,f,g,v,w,y,C,N,O,x,I;if(n={},x=e.tagName,"IMG"===x?(null!=(C=e.src)?C.length:void 0)>0&&-1===e.src.indexOf("data:image")&&(n.h=e.src):c.hasAttr(e,"href")&&(i=e.getAttribute("href"),i&&0!==i.indexOf("javascript")&&(n.h=c.normalizePath(i.slice(0,320)))),c.hasAttr(e,"data-growing-title")&&e.getAttribute("data-growing-title").length>0)n.v=e.getAttribute("data-growing-title");else if(c.hasAttr(e,"title")&&e.getAttribute("title").length>0)n.v=c.processText(e.getAttribute("title"));else if("click"===t)if(u.isLeaf(e))if("IMG"===x)e.alt?n.v=e.alt:n.h&&(s=n.h.split("?")[0],a=s.split("/"),a.length>0&&(n.v=a[a.length-1]));else if("INPUT"===x&&-1!==c.indexOf(S,e.type))n.v=c.processText(e.value);else if("svg"===x)for(N=e.childNodes,o=0,w=N.length;w>o;o++)r=N[o],1===r.nodeType&&"use"===r.tagName&&c.hasAttr(r,"xlink:href")&&(n.v=r.getAttribute("xlink:href"));else I="",null!=e.textContent?I=e.textContent.replace(/[\n \t]+/g," ").trim():null!=e.innerText&&(I=e.innerText.replace(/[\n \t]+/g," ").trim()),I.length>0&&(I.length<50?n.v=c.processText(I):"A"===x&&(n.v=c.processText(I.slice(0,50))));else-1!==c.indexOf(b,x)?n.v=u.containerElemContent(e):u.isParentOfLeaf(e)&&(n.v=c.parentOfLeafText(e));else if("change"===t)"TEXTAREA"!==x&&("INPUT"===x?-1!==c.indexOf(m,e.type)?(n.v=c.processText(e.value),l=e.parentNode,"LABEL"===l.tagName?h=l:"BODY"!==l.tagName&&(l=l.parentNode,"LABEL"===l.tagName?h=l:e.id&&(v=l.getElementsByTagName("label"),function(){var t,r,n;for(n=[],t=0,r=v.length;r>t;t++)g=v[t],n.push(g["for"]===e.id);return n}()&&(h=g))),null!=h&&(p=u.containerElemContent(h),(null!=p?p.length:void 0)>0&&(n.obj=p+" ("+e.checked+")"))):"password"!==e.type&&(c.hasAttr(e,"growing-track")||c.hasAttr(e,"data-growing-track"))&&(n.v=c.processText(e.value)):"SELECT"===x&&(n.v=c.processText(e.value),1===e.selectedOptions.length&&null!=e.selectedOptions[0].label&&(n.obj=e.selectedOptions[0].label)));else if("submit"===t)for(O=e.getElementsByTagName("input"),f=0,y=O.length;y>f;f++)d=O[f],("search"===d.type||"text"===d.type&&("q"===d.id||-1!==d.id.indexOf("search")||-1!==d.className.indexOf("search")||"q"===d.name||-1!==d.name.indexOf("search")))&&(n.x=u.path(d).xpath,n.v=c.processText(d.value.trim()));return n},t.prototype.registerCircleHandler=function(){var t;try{if(!this.messagingObserver)return this.messagingObserver=new i,this.messagingObserver.sendPageLoad(p)}catch(e){t=e}},t.prototype.registerHistoryHandler=function(){var t,e;return t=window.history.pushState,e=window.history.replaceState,null!=t&&(window.history.pushState=function(e){return function(){return e.prevUrl=window.location.toString(),t.apply(window.history,arguments),setTimeout(function(){return e.pageChanged()},0)}}(this)),null!=e&&(window.history.replaceState=function(t){return function(){return t.prevUrl=window.location.toString(),e.apply(window.history,arguments),setTimeout(function(){return t.pageChanged()},0)}}(this)),null!=t&&(this.prevUrl=document.referrer,c.bind(window,"popstate",this.pageChanged,!0)),window.vds.hashtag?c.bind(window,"hashchange",this.pageChanged,!0):void 0},t.prototype.getDocumentReferrer=function(){var t,e;return e=this.prevUrl?this.prevUrl:document.referrer,(null!=(t=window.vds)?t.pathCaseSensitive:void 0)?e:e.toLowerCase()},t.prototype.pageChanged=function(){var t,e,r;return t=c.path(),e=c.query(),this.currentPath!==t||this.currentQuery!==e?(window.vds.hashtag&&(this.prevUrl=window.location.protocol+"//"+window.location.host+this.currentPath,this.currentQuery&&this.currentQuery.trim().length>0&&(this.prevUrl+="?"+this.currentQuery)),this.currentPath=t,this.currentQuery=e,this.pageLoaded=+Date.now(),this.trackPageView(1),null!=(r=this.messagingObserver)?r.sendPageLoad(p):void 0):void 0},t.prototype.domLoadedHandler=function(t){var e;if(!this.domLoadedHandler.done){if(this.domLoadedHandler.done=!0,this.registerEventListener(),null!=a&&window.vds.imp){o.initialize(),window.vds.impCtrlDua&&(window.grImpCtrl=Date.now());try{c.detectIE()&&null!=(null!=(e=window.angular)?e.version:void 0)?(window.angular.version.major>1||1===window.angular.version.major&&window.angular.version.minor>4||1===window.angular.version.major&&4===window.angular.version.minor&&window.angular.version.dot>0)&&setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500):setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500)}catch(r){t=r,setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500)}}return this.sendRegisterCircleOption()}},t.prototype.blind=function(){var t;return t=!1,window.vds.sampling&&(c.functionDeserialization(window.vds.sampling_func).call(this)||(t=!0)),window.grBlind=t,t},t.prototype.bindEvent=function(){return c.bind(window,"message",function(t){return function(e){var r,n,i,o;try{switch(r=e.data,i=r.mode||r.circleMode,"update-global-env"===i&&(window.grCircleEnv=r.add_on_grSource),i){case"gr-register-SDK-circle":return t.registerCircleHandler(),c.spreadToInnerIframes(r);case"gr-register-SDK-option":if(t.canPostRegisterMessage()&&"grcw"===window.grSource.name&&(o=window.grSource.id,l.call(r.tArr,o)<0))return r.tArr.push(window.grSource.id),parent.postMessage(r,"*");break;case"page-load":if(window.self===window.top&&null!=r.add_on_grSource)return t.loadPluginOuter(r)}}catch(a){n=a}}}(this))},t.prototype.loadPluginOuter=function(t){var e,r,n,i,o,a,s,u;for(this.pluginLoaded=!1,s=document.getElementsByTagName("script"),i=0,o=s.length;o>i;i++)if(n=s[i],u=n.getAttribute("src"),null!=u&&-1!==u.indexOf("/outer-circle-plugin.js")){this.pluginLoaded=!0;break}return this.pluginLoaded?void 0:(a=t.add_on_grSource.add_on_origin,window.grCircleEnv=t.add_on_grSource,e=document.createElement("script"),e.type="text/javascript",e.charset="UTF-8",e.src=-1===a.indexOf("http")?"//"+a+"/assets/javascripts/outer-circle-plugin.js":a+"/assets/javascripts/outer-circle-plugin.js",document.head.appendChild(e),r=document.createElement("link"),r.rel="stylesheet",r.href=-1===a.indexOf("http")?"//"+a+"/assets/stylesheets/outer-circle-plugin.css":a+"/assets/stylesheets/outer-circle-plugin.css",document.head.appendChild(r))},t.prototype.sendRegisterCircleOption=function(){var t;if(this.canPostRegisterMessage())return t={circleMode:"gr-register-SDK-option",url:window.location.toString(),ai:window.vds.accountId,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk",tArr:[window.grSource.id]},parent.postMessage(t,"*")},t.prototype.canPostRegisterMessage=function(){return"grcw-outer-iframe"===window.grSource.name?!1:c.isSpreadPostMessage()?!0:parent&&"function"==typeof parent.postMessage&&window.self!==window.top&&window.self!==window.parent},t.prototype.observe=function(t,e){var r,n,i;if(this.bindEvent(),this.send=e,this.currentPath=c.path(),this.currentQuery=c.query(),this.gruser=t,this.blind())return void this.sendRegisterCircleOption();if(window.history.pushState&&this.registerHistoryHandler(),this.trackPageView(),document.addEventListener)"interactive"===document.readyState||"complete"===document.readyState?this.domLoadedHandler():c.bind(document,"DOMContentLoaded",function(t){return function(){return t.domLoadedHandler()}}(this));else if(document.attachEvent){c.bind(document,"onreadystatechange",function(t){return function(){return t.domLoadedHandler()}}(this)),i=!1;try{i=null===window.frameElement}catch(o){n=o}document.documentElement.doScroll&&i&&(r=function(t){return function(){try{document.documentElement.doScroll("left")}catch(e){return n=e,void setTimeout(r,1)}return t.domLoadedHandler()}}(this))()}return c.bind(window,"load",function(t){return function(){return t.domLoadedHandler()}}(this)),c.bind(window,"beforeunload",function(t){return function(e){var r,n;if(t.queueTimeout&&t.sendQueue(),n=+Date.now(),window.grWaitTime)for(r=n+50;r>n;)n=+Date.now()}}(this)),d&&c.bind(window,"pagehide",function(t){return function(e){var r,n;if(t.queueTimeout&&t.sendQueue(),n=+Date.now(),window.grWaitTime)for(r=n+50;r>n;)n=+Date.now()}}(this)),c.bind(window,"unload",function(t){return function(t){var e;if(window.grWaitTime)for(;e<window.grWaitTime;)e=+Date.now()}}(this))},t.prototype.setPSForActionMessage=function(t){return p.pg?t.pg=p.pg:void 0},t}(),e.exports=n},{"./info":5,"./messaging_observer":7,"./server_imp_setting":9,"./utils":12,json2:14,"mutation-observer":1,"tree-mirror":17}],3:[function(t,e,r){var n,i;i=t("cookie"),n=function(){function t(){}return t.get=function(t){var e;try{return window.localStorage?this._readFromLocalStorage(t):this._readFromCookie(t)}catch(r){return e=r,null}},t.set=function(t,e,r){var n;null==r&&(r=864e5);try{return window.localStorage?this._setInLocalStorage(t,e,r):this._setInCookie(t,e,r/1e3)}catch(i){return n=i,null}},t._readFromCookie=function(t){return i.getItem(t)},t._setInCookie=function(t,e,r){return i.setItem(t,e,r,"/",window.location.hostname)},t._readFromLocalStorage=function(t){var e,r;return r=window.localStorage.getItem(t),r?(e=JSON.parse(r),e.expiredAt&&+e.expiredAt>=+Date.now()?e.value:null):null},t._setInLocalStorage=function(t,e,r){return window.localStorage.setItem(t,JSON.stringify({expiredAt:+Date.now()+r,value:e}))},t}(),window.GrLocalStore=n,e.exports=n},{cookie:13}],4:[function(t,e,r){var n;n=function(){var t;return t=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r,n;return r=(t+16*Math.random())%16|0,t=Math.floor(t/16),n="x"===e?r:3&r|8,n.toString(16)})},e.exports=n},{}],5:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l,p,f;u=t("./guid"),a=t("cookie"),f=t("./utils"),o=/(^| )(clear|clearfix|active|hover|enabled|hidden|display|focus|disabled|ng-|growing-)[^\. ]*/g,s=/\.?([a-zA-Z0-9\-]+\.[a-zA-Z]{2,6})$/,l=["I","SPAN","EM","svg"],d=f.detectIE()||0/0,i=function(){function t(t){var e,r,n;this.node=t,this.name=t.tagName.toLowerCase(),f.hasAttr(t,"id")&&null===t.getAttribute("id").match(/^[0-9]/)&&(this.id=t.getAttribute("id")),this.isIgnore=f.hasAttr(t,"growing-ignore")||f.hasAttr(t,"data-growing-ignore"),f.hasAttr(t,"href")&&(e=t.getAttribute("href"),e&&0!==e.indexOf("javascript")&&(this.href=f.normalizePath(e.slice(0,320)))),f.hasAttr(t,"data-growing-info")&&(this.grObj=t.getAttribute("data-growing-info")),f.hasAttr(t,"data-growing-idx")&&(this.grIdx=parseInt(t.getAttribute("data-growing-idx"))),"input"===this.name&&f.hasAttr(t,"name")&&t.getAttribute("name")?this.klass=[t.getAttribute("name")]:(r=null!=(n=f.getKlassName(t,d))?n.replace(o,"").trim():void 0,(null!=r?r.length:void 0)>0&&(this.klass=r.split(/\s+/).sort()))}return t.prototype.path=function(){var t,e,r,n,i;if(n="/"+this.name,null!=this.id&&(n+="#"+this.id),null!=this.klass)for(i=this.klass,t=0,r=i.length;r>t;t++)e=i[t],n+="."+e;return n},t.prototype.hasObj=function(){return null!=this.grObj},t.prototype.hasIdx=function(){return null!=this.grIdx},t.prototype.isContainer=function(){return f.hasAttr(this.node,"data-growing-container")},t}(),n=function(){function t(){this.userId=null,this.sessionId="",this.lastSessionId="",this.cookieDomain(),this.guid=u}return t.prototype.duration10year=31536e4,t.prototype.duration30min=1800,t.prototype.duration15min=9e5,t.prototype.duration1min=6e4,t.prototype.cookieDomain=function(){var t,e;if(!this.grCookieDomains)try{t=window.location.hostname.split("."),this.grCookieDomains=0<=(e=t[t.length-1])&&255>=e?[window.location.hostname]:["."+t.slice(-2).join("."),"."+t.slice(-3).join(".")]}catch(r){this.grCookieDomains=[window.location.hostname]}return this.grCookieDomains},t.prototype.vid=function(){return this.userId?this.userId:(this.userId=a.getItem("gr_user_id"),this.userId?a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain()):(this.userId=this.guid(),a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain())),this.userId)},t.prototype.hasSid=function(){var t,e,r,n;return e=+Date.now(),this.sessionId&&this.lastUpdated&&e-this.lastUpdated<this.duration15min?!0:(r=this.currentSessionId(),t=r[0],n=r[1],t&&(!this.lastSessionId||t===this.lastSessionId))},t.prototype.sid=function(){var t,e,r;return e=this.currentSessionId(),this.sessionId=e[0],r=e[1],t=+Date.now(),this.sessionId&&this.lastUpdated&&t-this.lastUpdated<this.duration1min?this.sessionId:(this.sessionId||(this.sessionId=this.guid(),r=!1,this.updateSessionId(this.sessionId,r)),this.lastUpdated=t,this.lastSessionId=this.sessionId,this.sessionId)},t.prototype.updateSessionId=function(t,e,r){return null==r&&(r=window.vds.accountId),t?(a.setItem("gr_session_id_"+r,t,this.duration30min,"/",this.cookieDomain()),this.lastSessionId=t,this.updateSessionIdSendStatus(e,t,r),e?void 0:this.bindCS1WithSession(t)):(console&&console.error("sid shoud not be empty!"),this.sessionId=this.guid(),void this.updateSessionId(this.sessionId,e,r))},t.prototype.updateSessionIdSendStatus=function(t,e,r){var n,i,o,s;for(null==r&&(r=window.vds.accountId),o=a.keys(),n=0,s=o.length;s>n;n++)if(i=o[n],i.match(/^gr_session_id_.*_/)&&i.slice(i.lastIndexOf("_")+1)!==e){a.removeItem(i,"/",this.cookieDomain());break}return a.setItem("gr_session_id_"+r+"_"+e,t,this.duration30min,"/",this.cookieDomain())},t.prototype.bindCS1WithSession=function(t){return null==t&&(t=this.sessionId),window.grcs.cs1?a.setItem("gr_cs1_"+t,window.grcs.cs1,this.duration30min,"/",this.cookieDomain()):void 0},t.prototype.handleCSChanged=function(t){var e;return this.isNeedToUpdateSessionByCS(t)?(this.sessionId=this.guid(),this.updateSessionId(this.sessionId,!1,t)):window.grcs.cs1&&(e=this.currentSessionId(t)[0])?a.setItem("gr_cs1_"+e,window.grcs.cs1,this.duration30min,"/",this.cookieDomain()):void 0},t.prototype.isNeedToUpdateSessionByCS=function(t){var e,r,n,i;return r=this.currentSessionId(t),i=r[0],n=r[1],e=this._currentSessionBindedCS1(i),i&&i.trim().length>0&&window.grcs.cs1&&e&&e!==window.grcs.cs1},t.prototype.currentSessionId=function(t){var e,r,n;return null==t&&(t=window.vds.accountId),n=a.getItem("gr_session_id_"+t||""),r="true"===a.getItem("gr_session_id_"+t+"_"+n),n&&n.indexOf("_")>=0&&(e=n.split("_"),n=e[0],r=e[1],r="true"===r,this.updateSessionId(n,r)),n&&"null"===n&&(n="",r=!1),[n,r]},t.prototype._currentSessionBindedCS1=function(t){return a.getItem("gr_cs1_"+t)},t.prototype.isSendNewVisit=function(){var t;return t=!1,this.hasSid()?this.getSidSendSuccess()||(t=!0):t=!0,t},t.prototype.getSidSendSuccess=function(t){var e,r,n;return null==t&&(t=window.vds.accountId),e=this.currentSessionId(t),n=e[0],r=e[1],r===!0},t.prototype.resetUserId=function(){return this.userId?a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain()):void 0},t}(),h=["TR","LI","DL"],p=["A","BUTTON"],c={user:function(){return new n},path:function(t,e){var r,n,o,a,s,u,d,c,h,l,g,v,m,w,b,y,S,C,N;if(null==e&&(e=!1),a="",g=!1,n={},h=!1,c=!1,S=void 0,s=0,y=[],o=[],t===document)return{isIgnore:!0};if(t.tagName){for(r=new i(t);"body"!==r.name&&"html"!==r.name&&(n={x:r.path(),h:r.href,v:this.containerElemContent(r.node)},y.push(n.x),m=r.path(),r.isIgnore&&(g=!0),!h&&r.hasObj()&&(h=!0,d=r.grObj),c||(r.hasIdx()?(c=!0,u=r.grIdx):(N=r.path(),(-1!==N.indexOf("/dl")||-1!==N.indexOf("/tr")||-1!==N.indexOf("/li"))&&(c=!0,u=this.index(r.node)))),b=r.node.parentNode,e&&""!==a&&(-1!==f.indexOf(p,r.node.tagName)||r.isContainer())&&(h?n.obj=d:f.hasAttr(r.node.parentNode,"data-growing-info")&&(n.obj=r.node.parentNode.getAttribute("data-growing-info")),n.x=s,o.push(n)),a=m+a,s++,b&&b.tagName);)r=new i(b),
1===s&&(S=r.node);for(y.reverse(),l=0,v=o.length;v>l;l++)w=o[l],w.x=y.slice(0,s-w.x).join(""),c&&(w.idx=u),h&&(w.obj=d);return C={xpath:a,containerMessage:o,isIgnore:g},h&&(C.obj=d),c&&(C.idx=u),S&&(C.pnode=S),C}},index:function(t){var e,r,n,i,o,a,s;for(o=t;o&&"BODY"!==o.tagName&&-1===f.indexOf(h,o.tagName);)o=o.parentNode;if(o)for(a=o.parentNode,r=1,s=a.childNodes,e=0,n=s.length;n>e;e++)if(i=s[e],i.tagName===o.tagName){if(f.hasAttr(i,"data-growing-idx")&&(r=parseInt(i.getAttribute("data-growing-idx"))),i===o)return r;r+=1}},isLeaf:function(t){var e,r,n,i;if(t.hasChildNodes()&&"svg"!==t.tagName)for(i=t.childNodes,r=0,n=i.length;n>r;r++)if(e=i[r],1===e.nodeType)return!1;return!0},isParentOfLeaf:function(t){var e,r,n,i;if(!t.childNodes)return!1;if("svg"===t.tagName)return!1;for(i=t.childNodes,r=0,n=i.length;n>r;r++)if(e=i[r],!c.isLeaf(e))return!1;return!0},depthInside:function(t,e,r){var n,i,o,a;if(null==r&&(r=1),t.hasChildNodes()){if(r>e)return!1;for(a=t.childNodes,n=0,i=a.length;i>n;n++)if(o=a[n],1===o.nodeType&&!c.depthInside(o,e,r+1))return!1}return e>=r},onlyContainsChildren:function(t,e){var r,n,i,o;if(0===!t.children.length)return!1;for(o=t.children,n=0,i=o.length;i>n;n++)if(r=o[n],-1===f.indexOf(e,r.tagName))return!1;return!0},containerElemContent:function(t){var e;if(f.hasAttr(t,"data-growing-title")&&t.getAttribute("data-growing-title").length>0)return t.getAttribute("data-growing-title");if(f.hasAttr(t,"title")&&t.title.length>0)return f.processText(t.getAttribute("title"));if("BUTTON"===t.tagName){if(t.name.length>0)return t.name;if(c.onlyContainsChildren(t,l)&&null!=t.textContent&&(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0&&e.length<50))return f.processText(e)}else if("A"===t.tagName){if(c.onlyContainsChildren(t,l)&&null!=t.textContent){if(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0)return f.processText(e.length<=50?e:e.slice(0,50))}else if(f.hasAttr(t,"href")&&t.getAttribute("href").length>0)return t.getAttribute("href")}else if("LABEL"===t.tagName&&null!=t.textContent&&(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0&&e.length<50))return f.processText(e)},isDOM:function(t){return"HTMLElement"in window?t&&t instanceof HTMLElement:!(!t||"object"!=typeof t||1!==t.nodeType||!t.nodeName)}},e.exports=c},{"./guid":4,"./utils":12,cookie:13}],6:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l,p,f,g,v,m,w,b,y=[].slice;if(t("./shim"),i=t("./tracker"),n=t("./dom_observer"),b=t("./utils"),l=t("./guid"),u=[],c=new n,w=new i(c),window._gr_support_circle_pop_out=!0,a=function(){var t,e,r;r=arguments[0],t=2<=arguments.length?y.call(arguments,1):[];try{if(null!=w[r])return w[r].apply(w,t);if(null!=c[r])return c[r].apply(c,t)}catch(n){return e=n,console&&console.error(e)}},!window.vds||!window.vds.origin){for(null==window._vds&&(window._vds=[["setAccountId","22222-22222-22222-22222"]]),g=window._vds,p=0,f=g.length;f>p;p++)s=g[p],"track"===(v=s[0])?u.push(s):a.apply(null,s);window._vds={push:function(){return arguments.length>1?a.apply(null,arguments):a.apply(null,arguments[0])},track:function(){return c.track.apply(c,arguments)},clickOn:function(){return c.clickOn.apply(c,arguments)},impOn:function(){return c.impOn.apply(c,arguments)},trackPV:function(){return c.trackPageView(4)}},o=function(){var t,e,r;for(r=[],t=0,e=u.length;e>t;t++)s=u[t],r.push(a.apply(null,s));return r},h=l(),m=b.getWindowSourceName(),m&&"grcw"===m||(m=window.top===window.self?"grcw-outer-iframe":"grcw-inner-iframe"),window.grSource={name:m,id:h},d=function(t){return function(e,r){return c.observe(e,r),t()}},-1===b.indexOf(["","localhost","127.0.0.1"],window.location.hostname)&&w.connect(d(o))}},{"./dom_observer":2,"./guid":4,"./shim":10,"./tracker":11,"./utils":12}],7:[function(t,e,r){var n,i,o,a,s=function(t,e){return function(){return t.apply(e,arguments)}},u=[].indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(e in this&&this[e]===t)return e;return-1};a=t("./utils"),o=["load-plugin","circle-mode","browse-mode"],i=["load-plugin","register-iframe","circle-mode","browse-mode","page-load","circle-load"],n=function(){function t(){this.registerInnerIframe=s(this.registerInnerIframe,this),this.sendPageLoad=s(this.sendPageLoad,this),this.isSdkEvent=s(this.isSdkEvent,this),this.allowOrigin=window.vds.origin,this.bindEvents()}return t.prototype.bindEvents=function(){return a.bind(window,"message",function(t){return function(e){var r,n,i,s;if(r=e.data,r.ai===window.vds.accountId&&(n=r.mode||r.circleMode,t.isSdkEvent(n)&&(!r.fsna||"sdk"===r.fsna))){if("grcw-inner-iframe"===r.sna&&a.isSpreadPostMessage())return void parent.postMessage(e.data,"*");if(i=r.mode,u.call(o,i)>=0)a.spreadToInnerIframes(r);else if(r.tna!==window.grSource.name&&r.tna&&r.tid&&a.isSpreadPostMessage())return void a.spreadToInnerIframes(r);if(s=r.mode,u.call(o,s)>=0||r.tna===window.grSource.name||e.origin===window.vds.origin||-1!==a.indexOf(["www.growingio.com","growingio.com"],e.origin.split("://")[1]))switch(e.origin!==window.vds.origin&&(window.vds.origin=e.origin),r.mode){case"load-plugin":return t.loadPluginInner();case"circle-mode":return t.startCircle();case"browse-mode":return t.stopCircle()}}}}(this))},t.prototype.isSdkEvent=function(t){return u.call(i,t)>=0},t.prototype.sendPageLoad=function(t){var e,r,n,i,o;null==t&&(t=null),i=(null!=(n=window.vds)?n.pathCaseSensitive:void 0)?window.location.toString():window.location.toString().toLowerCase();for(e in vds)o=vds[e],"function"==typeof o&&(vds[e]=a.functionSerialization(o));return r={circleMode:"page-load",url:i,ai:window.vds.accountId,ht:window.vds.hashtag,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk",add_on_grSource:{grSource:window.grSource,vds:window.vds,add_on_origin:this.allowOrigin}},(null!=t?t.pg:void 0)&&(r.pa=t),parent.postMessage(r,"*")},t.prototype.registerInnerIframe=function(t){var e;return null==t&&(t=null),"grcw"!==window.grSource.name?(e={circleMode:"register-iframe",url:window.location.toString(),ai:window.vds.accountId,ht:window.vds.hashtag,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk"},(null!=t?t.pg:void 0)&&(e.pa=t),parent.postMessage(e,"*")):void 0},t.prototype.loadPluginInner=function(){var t,e,r,n,i,o,s,u;for(this.pluginLoaded=!1,t=a.getCirclePluginFileName(window._gr_support_circle_pop_out),s=document.getElementsByTagName("script"),i=0,o=s.length;o>i;i++)if(n=s[i],u=n.getAttribute("src"),null!=u&&-1!==u.indexOf("/"+t+".js")){this.pluginLoaded=!0;break}return this.pluginLoaded||(e=document.createElement("script"),e.type="text/javascript",e.charset="UTF-8",e.src=-1===this.allowOrigin.indexOf("http")?"//"+this.allowOrigin+"/assets/javascripts/"+t+".js":this.allowOrigin+"/assets/javascripts/"+t+".js",document.head.appendChild(e),window._gr_support_circle_pop_out===!0)?void 0:(r=document.createElement("link"),r.rel="stylesheet",r.href=-1===this.allowOrigin.indexOf("http")?"//"+this.allowOrigin+"/assets/stylesheets/circle-plugin.css":this.allowOrigin+"/assets/stylesheets/circle-plugin.css",document.head.appendChild(r))},t.prototype.startCircle=function(){var t,e,r,n,i,o;if(t=a.getCirclePluginFileName(window._gr_support_circle_pop_out),!this.pluginLoaded)for(i=document.getElementsByTagName("script"),r=0,n=i.length;n>r;r++)if(e=i[r],o=e.getAttribute("src"),null!=o&&-1!==o.indexOf("/"+t+".js")){this.pluginLoaded=!0;break}return this.pluginLoaded?this.publishCircle():void 0},t.prototype.stopCircle=function(){return"undefined"!=typeof CircleEvents&&null!==CircleEvents?CircleEvents.publish("circle:stop"):void 0},t.prototype.publishCircle=function(){return"undefined"!=typeof CircleEvents&&null!==CircleEvents?(this.registerInnerIframe(),CircleEvents.publish("circle:start")):setTimeout(function(t){return function(){return t.publishCircle()}}(this),2e3)},t}(),e.exports=n},{"./utils":12}],8:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l=function(t,e){return function(){return t.apply(e,arguments)}};u=t("lzstring"),h=t("./utils"),a=h.detectIE()||0/0,d=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),o=d?parseInt(d[2],10):!1,s=!1,o&&22>o?n=!1:(n=!0,c=navigator.userAgent,"ArrayBufferView"in window||(-1!==c.indexOf("Android")?n=!1:-1!==c.indexOf("CPU OS ")?-1!==c.indexOf("CPU OS 6_")?n=!1:-1!==c.indexOf("CPU OS 5_")?n=!1:-1!==c.indexOf("CPU OS 4_")?n=!1:-1!==c.indexOf("CPU OS 3_")&&(n=!1):-1!==c.indexOf("CPU iPhone OS ")?-1!==c.indexOf("iPhone OS 6_")?n=!1:-1!==c.indexOf("iPhone OS 5_")?n=!1:-1!==c.indexOf("iPhone OS 4_")&&(n=!1):-1!==c.indexOf("Intel Mac OS X")&&(-1!==c.indexOf("Mac OS X 10_6")?n=!1:-1!==c.indexOf("Mac OS X 10_7")&&(n=!1)))),i=function(){function t(t,e,r){this.user=t,this.urlMap=e,this.callback=r,this.imgSendClear=l(this.imgSendClear,this),this.send=l(this.send,this)}var e,r,i;return e=[],i=[],r=[],t.prototype.connect=function(t){return s=t.isBot,"function"==typeof this.callback?this.callback(this.user,this.send):void 0},t.prototype.send=function(t,e){var r,n,i;null==e&&(e="action");try{if(window.grBlind)return;return i="pv"===e&&2===t.length?t[0].s:"",r="undefined"==typeof Uint8Array||null===Uint8Array||s?window.XMLHttpRequest&&7!==a&&!s?u.compressToUTF16(JSON.stringify(t)):u.compressToEncodedURIComponent(JSON.stringify(t)):u.compressToUint8Array(JSON.stringify(t)),this.sendRemote(r,e,i)}catch(o){n=o}},t.prototype.sendRemote=function(t,e,o){var u,d,c;return c=this.urlMap[e],window.grWaitTime=+Date.now()+300,window.XMLHttpRequest&&7!==a&&!s?(u=new XMLHttpRequest,"withCredentials"in u?(u.open("POST",c+"?stm="+ +Date.now(),!0),u.withCredentials=!0,u.onreadystatechange=function(t){return function(){return 4===u.readyState&&(t.removeAjax(u),window.grWaitTime=+Date.now()+10,o&&""!==o&&200===u.status)?t.user.updateSessionIdSendStatus(!0,o):void 0}}(this),u.send("undefined"!=typeof ArrayBuffer&&null!==ArrayBuffer?n?t:t.buffer:t),r.push(u)):"undefined"!=typeof XDomainRequest&&(u=new XDomainRequest,"http:"===document.location.protocol&&(c=c.replace("https://","http://")),u.open("POST",c+"?stm="+ +Date.now()),u.onload=function(t){return function(){return t.removeXDR(u),o&&""!==o?t.user.updateSessionIdSendStatus(!0,o):void 0}}(this),u.onerror=function(t){return function(e){return t.removeXDR(u)}}(this),u.onprogress=function(){return{}},u.ontimeout=function(){return{}},u.send(t),i.push(u))):("http:"===document.location.protocol&&(c=c.replace("https://","http://")),d=c+"?data="+t+"&stm="+ +Date.now(),d.length<=2036&&this.imgSend(d,o)),window.trackHostUrl=c},t.prototype.removeAjax=function(t){var e;return e=r.indexOf(t),-1!==e?r.splice(e,1):void 0},t.prototype.removeXDR=function(t){var e;return e=h.indexOf(i,t),-1!==e&&i.splice(e,1),window.grWaitTime=+Date.now()+10},t.prototype.imgSend=function(t,e){var r;return r=document.createElement("img"),r.width=1,r.height=1,r.onload=function(t){return function(){return t.imgSendClear(r),e&&""!==e?t.user.updateSessionIdSendStatus(!0,e):void 0}}(this),r.onerror=r.onabort=function(t){return function(){return t.imgSendClear(r)}}(this),r.src=t,i.push(r)},t.prototype.imgSendClear=function(t){return t.onload=null,t.onerror=null,t.onabort=null,this.removeXDR(t)},t}(),e.exports=i},{"./utils":12,lzstring:15}],9:[function(t,e,r){var n,i,o,a;o=t("cookie"),a=t("./utils"),n=t("./gr_local_store"),i=function(){function t(){}return t.initialize=function(){return t._checkingImpSetting()},t.impSetting=function(){return n.get("gr_imp_"+a.hashCode(window.vds.accountId))},t._checkingImpSetting=function(){return"undefined"==typeof this.impSetting()||null===this.impSetting()?t._fetchServerSetting():"false"===this.impSetting()||this.impSetting()===!1?window.vds.imp=!1:void 0},t._fetchServerSetting=function(){var t;return t=("https:"===document.location.protocol?"https://":"http://")+("tags.growingio.com/products/"+window.vds.accountId+"/web/"+window.location.hostname+"/settings/general"),a.sendRequest(t,function(t){return function(t){var e;return e=(null!=t?t.responseText:void 0)?JSON.parse(t.responseText).imp:!0,n.set("gr_imp_"+a.hashCode(window.vds.accountId),e),window.vds.imp&=e,window.vds.imp?void 0:window._vds.push(["deregisterDomObserver"])}}(this))},t}(),e.exports=i},{"./gr_local_store":3,"./utils":12,cookie:13}],10:[function(t,e,r){Date.now||(Date.now=function(){return+new Date}),String.prototype.trim||(String.prototype.trim=function(){var t,e,r;return e=/^\s+/,r=/\s+$/,t=function(){return this.replace(e,"").replace(r,"")}}()),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),"function"!=typeof Object.assign&&(Object.assign=function(t){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");t=Object(t);for(var e=1;e<arguments.length;e++){var r=arguments[e];if(null!=r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t})},{}],11:[function(t,e,r){var n,i,o,a,s=function(t,e){return function(){return t.apply(e,arguments)}};n=t("./sender"),a=t("./utils"),o=t("./info"),i=function(){function t(t){this.defaultSamplingFunc=s(this.defaultSamplingFunc,this),window.grcs={},this.user=o.user(),this.resetCS1=!1,this.observer=t}return t.prototype.version="0.7.21",t.prototype.scheme="https://",t.prototype.host="api.growingio.com",t.prototype.circleHost=("https:"===document.location.protocol?"https://":"http://")+"www.growingio.com",t.prototype.endpoint="/events",t.prototype.properties={imp:!0,hashtag:!1,touch:!1,ignoreClck:!1,bot:!0,pathCaseSensitive:!0,impCtrlDua:6e4},t.prototype.defaultSamplingFunc=function(){var t,e,r;return r=this.user.vid(),e=window.vds.sampling_ratio,t=parseInt(r.slice(-2),16)%e,0===t},t.prototype.pathCaseSensitive=function(t){return this.properties.pathCaseSensitive=!!t},t.prototype.setTrackerScheme=function(t){var e;return!t||"http"!==(e=t.toLocaleLowerCase())&&"https"!==e?void 0:this.scheme=t+"://"},t.prototype.setTrackerHost=function(t){return this.host=t},t.prototype.setAccountId=function(t){return this.properties.accountId=t,this.resetCS1?this.user.handleCSChanged(this.properties.accountId):void 0},t.prototype.setOrigin=function(t){return this.properties.origin=t},t.prototype.setImp=function(t){return this.properties.imp=t},t.prototype.setSampling=function(t,e){return null==t&&(t=4),null==e&&(e=this.defaultSamplingFunc),this.properties.sampling=!0,this.properties.sampling_ratio=t,this.properties.sampling_func=e},t.prototype.trackBot=function(t){return this.properties.bot=t},t.prototype.enableHT=function(t){return this.properties.hashtag=t},t.prototype.enableTouch=function(t){return this.properties.touch=t},t.prototype.set=function(t,e){return this.properties[t]=e},t.prototype.setUserId=function(t){return this.setCS1("user_id",t)},t.prototype.setCS1=function(t,e){return this.user&&this.user.lastUpdated?setTimeout(function(r){return function(){return r.observer.trackCS1(t,e),r.user.bindCS1WithSession()}}(this)):this.initialSettingCS1(t,e)},t.prototype.setCS2=function(t,e){return window.grcs.cs2=t+":"+e},t.prototype.setCS3=function(t,e){return window.grcs.cs3=t+":"+e},t.prototype.setCS4=function(t,e){return window.grcs.cs4=t+":"+e},t.prototype.setCS5=function(t,e){return window.grcs.cs5=t+":"+e},t.prototype.setCS6=function(t,e){return window.grcs.cs6=t+":"+e},t.prototype.setCS7=function(t,e){return window.grcs.cs7=t+":"+e},t.prototype.setCS8=function(t,e){return window.grcs.cs8=t+":"+e},t.prototype.setCS9=function(t,e){return window.grcs.cs9=t+":"+e},t.prototype.setCS10=function(t,e){return window.grcs.cs10=t+":"+e},t.prototype.setUid=function(){return a.sendRequest("https://api.growingio.com/touch")},t.prototype.setImpCtrlDua=function(t){return"number"==typeof t?this.properties.impCtrlDua=t:void 0},t.prototype.setIgnoreClck=function(t){return this.properties.ignoreClck=t},t.prototype.initialSettingCS1=function(t,e){return window.grcs.cs1=t+":"+e,t&&e?this.properties.accountId?this.user.handleCSChanged(this.properties.accountId):this.resetCS1=!0:void 0},t.prototype.getTrackerUrl=function(t){return this.scheme+this.host+t},t.prototype.getUrlMap=function(){var t,e;return e=this.scheme+this.host,t=e+"/v2/"+this.properties.accountId+"/web",{pv:t+"/pv",action:t+"/action",cstm:e+"/custom/"+this.properties.accountId+"/web/events"}},t.prototype.connect=function(t){var e,r,i,o;window.vds={origin:this.circleHost,version:this.version};for(r in this.properties)window.vds[r]=this.properties[r];if(o=window.navigator.userAgent.toLowerCase(),o.match(/(bot|crawler|spider|scrapy|jiankongbao|slurp|transcoder|networkbench|oneapm)/i)){if(!this.properties.bot)return;window.vds.imp=!1,e=!0}return i=new n(this.user,this.getUrlMap(),t),i.connect({isBot:!!e})},t}(),e.exports=i},{"./info":5,"./sender":8,"./utils":12}],12:[function(t,e,r){var n,i;n=["A","BUTTON"],i={bind:function(t,e,r,n){return null==n&&(n=!1),null!=document.addEventListener?t.addEventListener(e,r,n):null!=document.attachEvent?t.attachEvent("on"+e,function(){var e;return e=window.event,e.currentTarget=t,e.target=e.srcElement,r.call(t,e)}):t["on"+e]=r},getCirclePluginFileName:function(t){return null!=t?"inner-circle-plugin":"circle-plugin"},hasAttr:function(t,e){return t.hasAttribute?t.hasAttribute(e):!!t[e]},path:function(){var t,e,r;return e=this.normalizePath(window.location.pathname),window.vds.hashtag&&(t=window.location.hash,e+=-1!==t.indexOf("?")?t.split("?")[0]:t),(null!=(r=window.vds)?r.pathCaseSensitive:void 0)?e:e.toLowerCase()},getWindowSourceName:function(){var t,e;return e=null!=window.name?window.name:window.self.name,e&&window.nameStorage&&(t=e.split(/[:?]/),3===t.length&&"nameStorage"===t[0]&&(e=t[1])),e},getKlassName:function(t,e){return null==e&&(e=this.detectIE()||0/0),8>e?t.className:t.getAttribute("class")},normalizePath:function(t){var e;return e=t.length,e>1&&"/"===t.charAt(e-1)?t.slice(0,e-1):t},query:function(){var t,e;return t=window.location.search,t=t.length>1&&"?"===t.charAt(0)?t.slice(1):window.vds.hashtag&&-1!==window.location.hash.indexOf("?")?window.location.hash.split("?")[1]:t,(null!=(e=window.vds)?e.pathCaseSensitive:void 0)?t:t.toLowerCase()},functionSerialization:function(t){return"function"==typeof t&&(t=t.toString()),t},functionDeserialization:function(t){var e,r,n;return"string"==typeof t&&(n=/function[^\(]*\(([^\)]*)\)[^\{]*{([^\}]*)\}/,r=t.match(n))?(e=r[1].split(",").map(arg(function(){return arg.replace(/\s+/,"")})),new Function(e,r[2])):t},parentOfLeafText:function(t){var e,r,n,o,a,s;if(n="",!t.childNodes)return"";for(s=t.childNodes,o=0,a=s.length;a>o;o++)e=s[o],3===e.nodeType&&(null!=e.textContent?r=e.textContent.trim():null!=e.data&&(r=e.data.trim()),r.length>0&&(n+=r+" "));return n=n.replace(/[\n \t]+/g," ").trim(),n.length>0&&n.length<50?i.processText(n):void 0},indexOf:function(t,e){var r,n,i;if(null!=Array.prototype.indexOf)return t.indexOf(e);for(n=t.length,r=-1;++r<n;)if(i=t[r],i===e)return r;return-1},detectIE:function(){var t,e,r,n,i;return i=window.navigator.userAgent,window.ActiveXObject&&(e=i.indexOf("MSIE "),e>0)?parseInt(i.substring(e+5,i.indexOf(".",e)),10):(n=i.indexOf("Trident/"),n>0?(r=i.indexOf("rv:"),parseInt(i.substring(r+3,i.indexOf(".",r)),10)):(t=i.indexOf("Edge/"),t>0?parseInt(i.substring(t+5,i.indexOf(".",t)),10):!1))},detectIOS:function(){return!!window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)},hashCode:function(t){var e,r,n;if(null==t&&(t=""),r=0,null==t||"boolean"==typeof t||0===t.length)return r;for(n=0;n<t.length;)e=t.charCodeAt(n),r=(r<<5)-r+e,r&=r,n++;return r},sendRequest:function(t,e,r){var n;if(window.XMLHttpRequest){if(n=new XMLHttpRequest,"withCredentials"in n)return n.open("GET",t,!0),n.withCredentials=!0,n.onreadystatechange=function(){return 4===n.readyState?"function"==typeof e?e(n):void 0:"function"==typeof r?r(n):void 0},n.send();if("undefined"!=typeof XDomainRequest)return n=new XDomainRequest,"http:"===document.location.protocol&&(t=t.replace("https://","http://")),n.open("GET",t),n.onload=function(t){return function(){return"function"==typeof e?e(n):void 0}}(this),n.onerror=function(t){return function(t){return"function"==typeof r?r(n):void 0}}(this),n.onprogress=function(){return{}},n.ontimeout=function(){return{}}}},spreadToInnerIframes:function(t){var e,r,n,i,o;for(r=document.getElementsByTagName("iframe"),o=[],n=0,i=r.length;i>n;n++)e=r[n],o.push(this.spread(t,e));return o},spread:function(t,e){var r;return r=null!=e?e.contentWindow:void 0,r?r.postMessage(t,"*"):void 0},processText:function(t){return null==window.vds.textEncryptFunc?t:null!=t?i.functionDeserialization(window.vds.textEncryptFunc).call(this,t):void 0},isSpreadPostMessage:function(){var t,e;if(e=null,parent!==window)try{e=parent.location.href}catch(r){t=r,e=document.referrer}else parent===self&&(e=location.href);return/.*growingio.*\/projects\/.*\/circle\/.*/.test(e)}},e.exports=i},{}],13:[function(t,e,r){var n=/^(\.co\.|\.com\.|\.org\.|\.edu\.|\.net\.)/,i={getItem:function(t){return t?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(t,e,r,n,i,o){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var a="";if(r)switch(r.constructor){case Number:a=r===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; expires="+new Date((new Date).getTime()+1e3*r).toUTCString();break;case String:a="; expires="+r;break;case Date:a="; expires="+r.toUTCString()}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+a+(i?"; domain="+i:"")+(n?"; path="+n:"")+(o?"; secure":""),!0},removeItem:function(t,e,r){return this.hasItem(t)?(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:"")+(e?"; path="+e:""),!0):!1},hasItem:function(t){return t?new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie):!1},keys:function(){for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=t.length,r=0;e>r;r++)t[r]=decodeURIComponent(t[r]);return t}},o={getItem:i.getItem,hasItem:i.hasItem,keys:i.keys,setItem:function(t,e,r,o,a,s){for(var u=0;u<a.length;u++)if(!n.test(a[u])){i.setItem(t,e,r,o,a[u],s);break}},removeItem:function(t,e,r){for(var o=0;o<r.length;o++)if(!n.test(r[o])){i.removeItem(t,e,r[o]);break}}};e.exports=o},{}],14:[function(require,module,exports){"object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(t){return 10>t?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var r,n,i,o,a,s=gap,u=e[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(e,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,r=0;o>r;r+=1)a[r]=str(r,u)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,r=0;o>r;r+=1)"string"==typeof rep[r]&&(n=rep[r],i=str(n,u),i&&a.push(quote(n)+(gap?": ":":")+i));else for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(i=str(n,u),i&&a.push(quote(n)+(gap?": ":":")+i));return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;r>n;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var r,n,i=t[e];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n=walk(i,r),void 0!==n?i[r]=n:delete i[r]);return reviver.call(t,e,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},{}],15:[function(t,e,r){var n=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={compressToUTF16:function(e){return null==e?"":r._compress(e,15,function(e){return t(e+32)})+" "},compressToUint8Array:function(t){for(var e=r.compress(t),n=new Uint8Array(2*e.length),i=0,o=e.length;o>i;i++){var a=e.charCodeAt(i);n[2*i]=a>>>8,n[2*i+1]=a%256}return n},compressToEncodedURIComponent:function(t){return null==t?"":r._compress(t,6,function(t){return e.charAt(t)})},compress:function(e){return r._compress(e,16,function(e){return t(e)})},_compress:function(t,e,r){if(null==t)return"";var n,i,o,a={},s={},u="",d="",c="",h=2,l=3,p=2,f=[],g=0,v=0;for(o=0;o<t.length;o+=1)if(u=t.charAt(o),Object.prototype.hasOwnProperty.call(a,u)||(a[u]=l++,s[u]=!0),d=c+u,Object.prototype.hasOwnProperty.call(a,d))c=d;else{if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(n=0;p>n;n++)g<<=1,v==e-1?(v=0,f.push(r(g)),g=0):v++;for(i=c.charCodeAt(0),n=0;8>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}else{for(i=1,n=0;p>n;n++)g=g<<1|i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i=0;for(i=c.charCodeAt(0),n=0;16>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}h--,0==h&&(h=Math.pow(2,p),p++),delete s[c]}else for(i=a[c],n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;h--,0==h&&(h=Math.pow(2,p),p++),a[d]=l++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(n=0;p>n;n++)g<<=1,v==e-1?(v=0,f.push(r(g)),g=0):v++;for(i=c.charCodeAt(0),n=0;8>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}else{for(i=1,n=0;p>n;n++)g=g<<1|i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i=0;for(i=c.charCodeAt(0),n=0;16>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}h--,0==h&&(h=Math.pow(2,p),p++),delete s[c]}else for(i=a[c],n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;h--,0==h&&(h=Math.pow(2,p),p++)}for(i=2,n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;for(;;){if(g<<=1,v==e-1){f.push(r(g));break}v++}return f.join("")}};return r}();e.exports=n},{}],16:[function(t,e,r){function n(t){return'"'+t.replace(/"/,'\\"')+'"'}function i(t){if("string"!=typeof t)throw Error("Invalid request opion. attribute must be a non-zero length string.");if(t=t.trim(),!t)throw Error("Invalid request opion. attribute must be a non-zero length string.");if(!t.match(y))throw Error("Invalid request option. invalid attribute name: "+t);return t}function o(t){if(!t.trim().length)throw Error("Invalid request option: elementAttributes must contain at least one attribute.");for(var e={},r={},n=t.split(/\s+/),o=0;o<n.length;o++){var a=n[o];if(a){var a=i(a),s=a.toLowerCase();if(e[s])throw Error("Invalid request option: observing multiple case variations of the same attribute is not supported.");r[a]=!0,e[s]=!0}}return Object.keys(r)}function a(t){var e={};return t.forEach(function(t){t.qualifiers.forEach(function(t){e[t.attrName]=!0})}),Object.keys(e)}var s,u=this.__extends||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);r.prototype=e.prototype,t.prototype=new r};if(s="undefined"!=typeof WebKitMutationObserver?WebKitMutationObserver:MutationObserver,void 0===s)throw console&&console.error("DOM Mutation Observers are required."),console&&console.error("https://developer.mozilla.org/en-US/docs/DOM/MutationObserver"),Error("DOM Mutation Observers are required");var d,c=function(){function t(){this.nodes=[],this.values=[]}return t.prototype.isIndex=function(t){return+t===t>>>0},t.prototype.nodeId=function(e){var r=e[t.ID_PROP];return r||(r=e[t.ID_PROP]=t.nextId_++),r},t.prototype.set=function(t,e){var r=this.nodeId(t);this.nodes[r]=t,this.values[r]=e},t.prototype.get=function(t){var e=this.nodeId(t);return this.values[e]},t.prototype.has=function(t){return this.nodeId(t)in this.nodes},t.prototype["delete"]=function(t){var e=this.nodeId(t);delete this.nodes[e],this.values[e]=void 0},t.prototype.keys=function(){var t=[];for(var e in this.nodes)this.isIndex(e)&&t.push(this.nodes[e]);return t},t.ID_PROP="__mutation_summary_node_map_id__",t.nextId_=1,t}();!function(t){t[t.STAYED_OUT=0]="STAYED_OUT",t[t.ENTERED=1]="ENTERED",t[t.STAYED_IN=2]="STAYED_IN",t[t.REPARENTED=3]="REPARENTED",t[t.REORDERED=4]="REORDERED",t[t.EXITED=5]="EXITED"}(d||(d={}));var h=function(){function t(t,e,r,n,i,o,a,s){void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===s&&(s=null),this.node=t,this.childList=e,this.attributes=r,this.characterData=n,this.oldParentNode=i,this.added=o,this.attributeOldValues=a,this.characterDataOldValue=s,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement,this.isCaseInsensitive&&(this.isCaseInsensitive="undefined"!=typeof HTMLDocument?this.node.ownerDocument instanceof HTMLDocument:this.node.ownerDocument instanceof Document)}return t.prototype.getAttributeOldValue=function(t){return this.attributeOldValues?(this.isCaseInsensitive&&(t=t.toLowerCase()),this.attributeOldValues[t]):void 0},t.prototype.getAttributeNamesMutated=function(){var t=[];if(!this.attributeOldValues)return t;for(var e in this.attributeOldValues)t.push(e);return t},t.prototype.attributeMutated=function(t,e){this.attributes=!0,this.attributeOldValues=this.attributeOldValues||{},t in this.attributeOldValues||(this.attributeOldValues[t]=e)},t.prototype.characterDataMutated=function(t){this.characterData||(this.characterData=!0,this.characterDataOldValue=t)},t.prototype.removedFromParent=function(t){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=t},t.prototype.insertedIntoParent=function(){this.childList=!0,this.added=!0},t.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},t}(),l=function(){function t(){this.added=new c,this.removed=new c,this.maybeMoved=new c,this.oldPrevious=new c,this.moved=void 0}return t}(),p=function(t){function e(e,r){t.call(this),this.rootNode=e,this.reachableCache=void 0,this.wasReachableCache=void 0,this.anyParentsChanged=!1,this.anyAttributesChanged=!1,this.anyCharacterDataChanged=!1;for(var n=0;n<r.length;n++){var i=r[n];switch(i.type){case"childList":this.anyParentsChanged=!0;for(var o=0;o<i.removedNodes.length;o++){var a=i.removedNodes[o];this.getChange(a).removedFromParent(i.target)}for(var o=0;o<i.addedNodes.length;o++){var a=i.addedNodes[o];this.getChange(a).insertedIntoParent();
}break;case"attributes":this.anyAttributesChanged=!0;var s=this.getChange(i.target);s.attributeMutated(i.attributeName,i.oldValue);break;case"characterData":this.anyCharacterDataChanged=!0;var s=this.getChange(i.target);s.characterDataMutated(i.oldValue)}}}return u(e,t),e.prototype.getChange=function(t){var e=this.get(t);return e||(e=new h(t),this.set(t,e)),e},e.prototype.getOldParent=function(t){var e=this.get(t);return e?e.getOldParent():t.parentNode},e.prototype.getIsReachable=function(t){if(t===this.rootNode)return!0;if(!t)return!1;this.reachableCache=this.reachableCache||new c;var e=this.reachableCache.get(t);return void 0===e&&(e=this.getIsReachable(t.parentNode),this.reachableCache.set(t,e)),e},e.prototype.getWasReachable=function(t){if(t===this.rootNode)return!0;if(!t)return!1;this.wasReachableCache=this.wasReachableCache||new c;var e=this.wasReachableCache.get(t);return void 0===e&&(e=this.getWasReachable(this.getOldParent(t)),this.wasReachableCache.set(t,e)),e},e.prototype.reachabilityChange=function(t){return this.getIsReachable(t)?this.getWasReachable(t)?d.STAYED_IN:d.ENTERED:this.getWasReachable(t)?d.EXITED:d.STAYED_OUT},e}(c),f=function(){function t(t,e,r,n,i){this.rootNode=t,this.mutations=e,this.selectors=r,this.calcReordered=n,this.calcOldPreviousSibling=i,this.treeChanges=new p(t,e),this.entered=[],this.exited=[],this.stayedIn=new c,this.visited=new c,this.childListChangeMap=void 0,this.characterDataOnly=void 0,this.matchCache=void 0,this.processMutations()}return t.prototype.processMutations=function(){if(this.treeChanges.anyParentsChanged||this.treeChanges.anyAttributesChanged)for(var t=this.treeChanges.keys(),e=0;e<t.length;e++)this.visitNode(t[e],void 0)},t.prototype.visitNode=function(t,e){if(!this.visited.has(t)){this.visited.set(t,!0);var r=this.treeChanges.get(t),n=e;if((r&&r.childList||void 0==n)&&(n=this.treeChanges.reachabilityChange(t)),n!==d.STAYED_OUT){if(this.matchabilityChange(t),n===d.ENTERED)this.entered.push(t);else if(n===d.EXITED)this.exited.push(t),this.ensureHasOldPreviousSiblingIfNeeded(t);else if(n===d.STAYED_IN){var i=d.STAYED_IN;r&&r.childList&&(r.oldParentNode!==t.parentNode?(i=d.REPARENTED,this.ensureHasOldPreviousSiblingIfNeeded(t)):this.calcReordered&&this.wasReordered(t)&&(i=d.REORDERED)),this.stayedIn.set(t,i)}if(n!==d.STAYED_IN)for(var o=t.firstChild;o;o=o.nextSibling)this.visitNode(o,n)}}},t.prototype.ensureHasOldPreviousSiblingIfNeeded=function(t){if(this.calcOldPreviousSibling){this.processChildlistChanges();var e=t.parentNode,r=this.treeChanges.get(t);r&&r.oldParentNode&&(e=r.oldParentNode);var n=this.childListChangeMap.get(e);n||(n=new l,this.childListChangeMap.set(e,n)),n.oldPrevious.has(t)||n.oldPrevious.set(t,t.previousSibling)}},t.prototype.getChanged=function(t,e,r){this.selectors=e,this.characterDataOnly=r;for(var n=0;n<this.entered.length;n++){var i=this.entered[n],o=this.matchabilityChange(i);(o===d.ENTERED||o===d.STAYED_IN)&&t.added.push(i)}for(var a=this.stayedIn.keys(),n=0;n<a.length;n++){var i=a[n],o=this.matchabilityChange(i);if(o===d.ENTERED)t.added.push(i);else if(o===d.EXITED)t.removed.push(i);else if(o===d.STAYED_IN&&(t.reparented||t.reordered)){var s=this.stayedIn.get(i);t.reparented&&s===d.REPARENTED?t.reparented.push(i):t.reordered&&s===d.REORDERED&&t.reordered.push(i)}}for(var n=0;n<this.exited.length;n++){var i=this.exited[n],o=this.matchabilityChange(i);(o===d.EXITED||o===d.STAYED_IN)&&t.removed.push(i)}},t.prototype.getOldParentNode=function(t){var e=this.treeChanges.get(t);if(e&&e.childList)return e.oldParentNode?e.oldParentNode:null;var r=this.treeChanges.reachabilityChange(t);if(r===d.STAYED_OUT||r===d.ENTERED)throw Error("getOldParentNode requested on invalid node.");return t.parentNode},t.prototype.getOldPreviousSibling=function(t){var e=t.parentNode,r=this.treeChanges.get(t);r&&r.oldParentNode&&(e=r.oldParentNode);var n=this.childListChangeMap.get(e);if(!n)throw Error("getOldPreviousSibling requested on invalid node.");return n.oldPrevious.get(t)},t.prototype.getOldAttribute=function(t,e){var r=this.treeChanges.get(t);if(!r||!r.attributes)throw Error("getOldAttribute requested on invalid node.");var n=r.getAttributeOldValue(e);if(void 0===n)throw Error("getOldAttribute requested for unchanged attribute name.");return n},t.prototype.attributeChangedNodes=function(t){if(!this.treeChanges.anyAttributesChanged)return{};var e,r;if(t){e={},r={};for(var n=0;n<t.length;n++){var i=t[n];e[i]=!0,r[i.toLowerCase()]=i}}for(var o={},a=this.treeChanges.keys(),n=0;n<a.length;n++){var s=a[n],u=this.treeChanges.get(s);if(u.attributes&&d.STAYED_IN===this.treeChanges.reachabilityChange(s)&&d.STAYED_IN===this.matchabilityChange(s))for(var c=s,h=u.getAttributeNamesMutated(),l=0;l<h.length;l++){var i=h[l];if(!e||e[i]||u.isCaseInsensitive&&r[i]){var p=u.getAttributeOldValue(i);p!==c.getAttribute(i)&&(r&&u.isCaseInsensitive&&(i=r[i]),o[i]=o[i]||[],o[i].push(c))}}}return o},t.prototype.getOldCharacterData=function(t){var e=this.treeChanges.get(t);if(!e||!e.characterData)throw Error("getOldCharacterData requested on invalid node.");return e.characterDataOldValue},t.prototype.getCharacterDataChanged=function(){if(!this.treeChanges.anyCharacterDataChanged)return[];for(var t=this.treeChanges.keys(),e=[],r=0;r<t.length;r++){var n=t[r];if(d.STAYED_IN===this.treeChanges.reachabilityChange(n)){var i=this.treeChanges.get(n);i.characterData&&n.textContent!=i.characterDataOldValue&&e.push(n)}}return e},t.prototype.computeMatchabilityChange=function(t,e){this.matchCache||(this.matchCache=[]),this.matchCache[t.uid]||(this.matchCache[t.uid]=new c);var r=this.matchCache[t.uid],n=r.get(e);return void 0===n&&(n=t.matchabilityChange(e,this.treeChanges.get(e)),r.set(e,n)),n},t.prototype.matchabilityChange=function(t){var e=this;if(this.characterDataOnly)switch(t.nodeType){case Node.COMMENT_NODE:case Node.TEXT_NODE:return d.STAYED_IN;default:return d.STAYED_OUT}if(!this.selectors)return d.STAYED_IN;if(t.nodeType!==Node.ELEMENT_NODE)return d.STAYED_OUT;for(var r=t,n=this.selectors.map(function(t){return e.computeMatchabilityChange(t,r)}),i=d.STAYED_OUT,o=0;i!==d.STAYED_IN&&o<n.length;){switch(n[o]){case d.STAYED_IN:i=d.STAYED_IN;break;case d.ENTERED:i=i===d.EXITED?d.STAYED_IN:d.ENTERED;break;case d.EXITED:i=i===d.ENTERED?d.STAYED_IN:d.EXITED}o++}return i},t.prototype.getChildlistChange=function(t){var e=this.childListChangeMap.get(t);return e||(e=new l,this.childListChangeMap.set(t,e)),e},t.prototype.processChildlistChanges=function(){function t(t,e){!t||n.oldPrevious.has(t)||n.added.has(t)||n.maybeMoved.has(t)||e&&(n.added.has(e)||n.maybeMoved.has(e))||n.oldPrevious.set(t,e)}if(!this.childListChangeMap){this.childListChangeMap=new c;for(var e=0;e<this.mutations.length;e++){var r=this.mutations[e];if("childList"==r.type&&(this.treeChanges.reachabilityChange(r.target)===d.STAYED_IN||this.calcOldPreviousSibling)){for(var n=this.getChildlistChange(r.target),i=r.previousSibling,o=0;o<r.removedNodes.length;o++){var a=r.removedNodes[o];t(a,i),n.added.has(a)?n.added["delete"](a):(n.removed.set(a,!0),n.maybeMoved["delete"](a)),i=a}t(r.nextSibling,i);for(var o=0;o<r.addedNodes.length;o++){var a=r.addedNodes[o];n.removed.has(a)?(n.removed["delete"](a),n.maybeMoved.set(a,!0)):n.added.set(a,!0)}}}}},t.prototype.wasReordered=function(t){function e(t){if(!t)return!1;if(!a.maybeMoved.has(t))return!1;var e=a.moved.get(t);return void 0!==e?e:(s.has(t)?e=!0:(s.set(t,!0),e=n(t)!==r(t)),s.has(t)?(s["delete"](t),a.moved.set(t,e)):e=a.moved.get(t),e)}function r(t){var n=u.get(t);if(void 0!==n)return n;for(n=a.oldPrevious.get(t);n&&(a.removed.has(n)||e(n));)n=r(n);return void 0===n&&(n=t.previousSibling),u.set(t,n),n}function n(t){if(d.has(t))return d.get(t);for(var r=t.previousSibling;r&&(a.added.has(r)||e(r));)r=r.previousSibling;return d.set(t,r),r}if(!this.treeChanges.anyParentsChanged)return!1;this.processChildlistChanges();var i=t.parentNode,o=this.treeChanges.get(t);o&&o.oldParentNode&&(i=o.oldParentNode);var a=this.childListChangeMap.get(i);if(!a)return!1;if(a.moved)return a.moved.get(t);a.moved=new c;var s=new c,u=new c,d=new c;return a.maybeMoved.keys().forEach(e),a.moved.get(t)},t}(),g=function(){function t(t,e){var r=this;if(this.projection=t,this.added=[],this.removed=[],this.reparented=e.all||e.element||e.characterData?[]:void 0,this.reordered=e.all?[]:void 0,t.getChanged(this,e.elementFilter,e.characterData),e.all||e.attribute||e.attributeList){var n=e.attribute?[e.attribute]:e.attributeList,i=t.attributeChangedNodes(n);e.attribute?this.valueChanged=i[e.attribute]||[]:(this.attributeChanged=i,e.attributeList&&e.attributeList.forEach(function(t){r.attributeChanged.hasOwnProperty(t)||(r.attributeChanged[t]=[])}))}if(e.all||e.characterData){var o=t.getCharacterDataChanged();e.characterData?this.valueChanged=o:this.characterDataChanged=o}this.reordered&&(this.getOldPreviousSibling=t.getOldPreviousSibling.bind(t))}return t.prototype.getOldParentNode=function(t){return this.projection.getOldParentNode(t)},t.prototype.getOldAttribute=function(t,e){return this.projection.getOldAttribute(t,e)},t.prototype.getOldCharacterData=function(t){return this.projection.getOldCharacterData(t)},t.prototype.getOldPreviousSibling=function(t){return this.projection.getOldPreviousSibling(t)},t}(),v=/[a-zA-Z_]+/,m=/[a-zA-Z0-9_\-]+/,w=function(){function t(){}return t.prototype.matches=function(t){if(null===t)return!1;if(void 0===this.attrValue)return!0;if(!this.contains)return this.attrValue==t;for(var e=t.split(" "),r=0;r<e.length;r++)if(this.attrValue===e[r])return!0;return!1},t.prototype.toString=function(){return"class"===this.attrName&&this.contains?"."+this.attrValue:"id"!==this.attrName||this.contains?this.contains?"["+this.attrName+"~="+n(this.attrValue)+"]":"attrValue"in this?"["+this.attrName+"="+n(this.attrValue)+"]":"["+this.attrName+"]":"#"+this.attrValue},t}(),b=function(){function t(){this.uid=t.nextUid++,this.qualifiers=[]}return Object.defineProperty(t.prototype,"caseInsensitiveTagName",{get:function(){return this.tagName.toUpperCase()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectorString",{get:function(){return this.tagName+this.qualifiers.join("")},enumerable:!0,configurable:!0}),t.prototype.isMatching=function(e){var r=e[t.matchesSelector];if(r)return e[t.matchesSelector](this.selectorString);var n=e,i=n.parentNode||n.document,o=-1;if(null===i||"undefined"==typeof i)return!1;for(var a=i.querySelectorAll(selector);a[++o]&&a[o]!=n;);return!!a[o]},t.prototype.wasMatching=function(t,e,r){if(!e||!e.attributes)return r;var n=e.isCaseInsensitive?this.caseInsensitiveTagName:this.tagName;if("*"!==n&&n!==t.tagName)return!1;for(var i=[],o=!1,a=0;a<this.qualifiers.length;a++){var s=this.qualifiers[a],u=e.getAttributeOldValue(s.attrName);i.push(u),o=o||void 0!==u}if(!o)return r;for(var a=0;a<this.qualifiers.length;a++){var s=this.qualifiers[a],u=i[a];if(void 0===u&&(u=t.getAttribute(s.attrName)),!s.matches(u))return!1}return!0},t.prototype.matchabilityChange=function(t,e){var r=this.isMatching(t);return r?this.wasMatching(t,e,r)?d.STAYED_IN:d.ENTERED:this.wasMatching(t,e,r)?d.EXITED:d.STAYED_OUT},t.parseSelectors=function(e){function r(){i&&(o&&(i.qualifiers.push(o),o=void 0),s.push(i)),i=new t}function n(){o&&i.qualifiers.push(o),o=new w}for(var i,o,a,s=[],u=/\s/,d="Invalid or unsupported selector syntax.",c=1,h=2,l=3,p=4,f=5,g=6,b=7,y=8,S=9,C=10,N=11,O=12,x=13,I=14,A=c,E=0;E<e.length;){var D=e[E++];switch(A){case c:if(D.match(v)){r(),i.tagName=D,A=h;break}if("*"==D){r(),i.tagName="*",A=l;break}if("."==D){r(),n(),i.tagName="*",o.attrName="class",o.contains=!0,A=p;break}if("#"==D){r(),n(),i.tagName="*",o.attrName="id",A=p;break}if("["==D){r(),n(),i.tagName="*",o.attrName="",A=g;break}if(D.match(u))break;throw Error(d);case h:if(D.match(m)){i.tagName+=D;break}if("."==D){n(),o.attrName="class",o.contains=!0,A=p;break}if("#"==D){n(),o.attrName="id",A=p;break}if("["==D){n(),o.attrName="",A=g;break}if(D.match(u)){A=I;break}if(","==D){A=c;break}throw Error(d);case l:if("."==D){n(),o.attrName="class",o.contains=!0,A=p;break}if("#"==D){n(),o.attrName="id",A=p;break}if("["==D){n(),o.attrName="",A=g;break}if(D.match(u)){A=I;break}if(","==D){A=c;break}throw Error(d);case p:if(D.match(v)){o.attrValue=D,A=f;break}throw Error(d);case f:if(D.match(m)){o.attrValue+=D;break}if("."==D){n(),o.attrName="class",o.contains=!0,A=p;break}if("#"==D){n(),o.attrName="id",A=p;break}if("["==D){n(),A=g;break}if(D.match(u)){A=I;break}if(","==D){A=c;break}throw Error(d);case g:if(D.match(v)){o.attrName=D,A=b;break}if(D.match(u))break;throw Error(d);case b:if(D.match(m)){o.attrName+=D;break}if(D.match(u)){A=y;break}if("~"==D){o.contains=!0,A=S;break}if("="==D){o.attrValue="",A=N;break}if("]"==D){A=l;break}throw Error(d);case y:if("~"==D){o.contains=!0,A=S;break}if("="==D){o.attrValue="",A=N;break}if("]"==D){A=l;break}if(D.match(u))break;throw Error(d);case S:if("="==D){o.attrValue="",A=N;break}throw Error(d);case C:if("]"==D){A=l;break}if(D.match(u))break;throw Error(d);case N:if(D.match(u))break;if('"'==D||"'"==D){a=D,A=x;break}o.attrValue+=D,A=O;break;case O:if(D.match(u)){A=C;break}if("]"==D){A=l;break}if("'"==D||'"'==D)throw Error(d);o.attrValue+=D;break;case x:if(D==a){A=C;break}o.attrValue+=D;break;case I:if(D.match(u))break;if(","==D){A=c;break}throw Error(d)}}switch(A){case c:case h:case l:case f:case I:r();break;default:throw Error(d)}if(!s.length)throw Error(d);return s},t.nextUid=1,t.matchesSelector=function(){var t=document.createElement("div");return"function"==typeof t.webkitMatchesSelector?"webkitMatchesSelector":"function"==typeof t.mozMatchesSelector?"mozMatchesSelector":"function"==typeof t.msMatchesSelector?"msMatchesSelector":"matchesSelector"}(),t}(),y=/^([a-zA-Z:_]+[a-zA-Z0-9_\-:\.]*)$/,S=function(){function t(e){var r=this;this.connected=!1,this.options=t.validateOptions(e),this.observerOptions=t.createObserverOptions(this.options.queries),this.root=this.options.rootNode,this.callback=this.options.callback,this.elementFilter=Array.prototype.concat.apply([],this.options.queries.map(function(t){return t.elementFilter?t.elementFilter:[]})),this.elementFilter.length||(this.elementFilter=void 0),this.calcReordered=this.options.queries.some(function(t){return t.all}),this.queryValidators=[],t.createQueryValidator&&(this.queryValidators=this.options.queries.map(function(e){return t.createQueryValidator(r.root,e)})),this.observer=new s(function(t){r.observerCallback(t)}),this.reconnect()}return t.createObserverOptions=function(t){function e(t){if(!n.attributes||r){if(n.attributes=!0,n.attributeOldValue=!0,!t)return void(r=void 0);r=r||{},t.forEach(function(t){r[t]=!0,r[t.toLowerCase()]=!0})}}var r,n={childList:!0,subtree:!0};return t.forEach(function(t){if(t.characterData)return n.characterData=!0,void(n.characterDataOldValue=!0);if(t.all)return e(),n.characterData=!0,void(n.characterDataOldValue=!0);if(t.attribute)return void e([t.attribute.trim()]);var r=a(t.elementFilter).concat(t.attributeList||[]);r.length&&e(r)}),r&&(n.attributeFilter=Object.keys(r)),n},t.validateOptions=function(e){for(var r in e)if(!(r in t.optionKeys))throw Error("Invalid option: "+r);if("function"!=typeof e.callback)throw Error("Invalid options: callback is required and must be a function");if(!e.queries||!e.queries.length)throw Error("Invalid options: queries must contain at least one query request object.");for(var n={callback:e.callback,rootNode:e.rootNode||document,observeOwnChanges:!!e.observeOwnChanges,oldPreviousSibling:!!e.oldPreviousSibling,queries:[]},a=0;a<e.queries.length;a++){var s=e.queries[a];if(s.all){if(Object.keys(s).length>1)throw Error("Invalid request option. all has no options.");n.queries.push({all:!0})}else if("attribute"in s){var u={attribute:i(s.attribute)};if(u.elementFilter=b.parseSelectors("*["+u.attribute+"]"),Object.keys(s).length>1)throw Error("Invalid request option. attribute has no options.");n.queries.push(u)}else if("element"in s){var d=0,c=Object.keys(s);c.forEach(function(t){s.hasOwnProperty(t)&&d++});var u={element:s.element,elementFilter:b.parseSelectors(s.element)};if(s.hasOwnProperty("elementAttributes")&&(u.attributeList=o(s.elementAttributes),d--),d>1)throw Error("Invalid request option. element only allows elementAttributes option.");n.queries.push(u)}else{if(!s.characterData)throw Error("Invalid request option. Unknown query request.");if(Object.keys(s).length>1)throw Error("Invalid request option. characterData has no options.");n.queries.push({characterData:!0})}}return n},t.prototype.createSummaries=function(t){if(!t||!t.length)return[];for(var e=new f(this.root,t,this.elementFilter,this.calcReordered,this.options.oldPreviousSibling),r=[],n=0;n<this.options.queries.length;n++)r.push(new g(e,this.options.queries[n]));return r},t.prototype.checkpointQueryValidators=function(){this.queryValidators.forEach(function(t){t&&t.recordPreviousState()})},t.prototype.runQueryValidators=function(t){this.queryValidators.forEach(function(e,r){e&&e.validate(t[r])})},t.prototype.changesToReport=function(t){return t.some(function(t){var e=["added","removed","reordered","reparented","valueChanged","characterDataChanged"];if(e.some(function(e){return t[e]&&t[e].length}))return!0;if(t.attributeChanged){var r=Object.keys(t.attributeChanged),n=r.some(function(e){return!!t.attributeChanged[e].length});if(n)return!0}return!1})},t.prototype.observerCallback=function(t){this.options.observeOwnChanges||this.observer.disconnect();var e=this.createSummaries(t);this.runQueryValidators(e),this.options.observeOwnChanges&&this.checkpointQueryValidators(),this.changesToReport(e)&&this.callback(e),!this.options.observeOwnChanges&&this.connected&&(this.checkpointQueryValidators(),this.observer.observe(this.root,this.observerOptions))},t.prototype.reconnect=function(){if(this.connected)throw Error("Already connected");this.observer.observe(this.root,this.observerOptions),this.connected=!0,this.checkpointQueryValidators()},t.prototype.takeSummaries=function(){if(!this.connected)throw Error("Not connected");var t=this.createSummaries(this.observer.takeRecords());return this.changesToReport(t)?t:void 0},t.prototype.disconnect=function(){var t=this.takeSummaries();return this.observer.disconnect(),this.connected=!1,t},t.NodeMap=c,t.parseElementFilter=b.parseSelectors,t.optionKeys={callback:!0,queries:!0,rootNode:!0,oldPreviousSibling:!0,observeOwnChanges:!0},t}();e.exports=S},{}],17:[function(t,e,r){MutationSummary=t("mutation-summary");var n={SCRIPT:1,STYLE:1,NOSCRIPT:1,IFRAME:1,BR:1,FONT:1,tspan:1,text:1,g:1,rect:1,path:1,defs:1,clipPath:1,desc:1,title:1,math:1},i=["TR","LI","DL"],o=/^(clear|clearfix|active|hover|enabled|hidden|display|focus|disabled|ng-|growing-)/,a=["button","submit"],s=["I","SPAN","EM","svg"],u=["A","BUTTON"],d=function(){function t(t,e,r){if(t){var n=this;if(this.target=t,this.mirror=e,!window.vds.impCtrlDua||window.vds.impCtrlDua&&Date.now()-window.grImpCtrl<=window.vds.impCtrlDua){for(var i=[],o=t.firstChild;o;o=o.nextSibling){var a=this.serializeNode(o);null!==a&&i.push(a)}setTimeout(function(){n.mirror.initialize(i)},0)}var s=[{element:"*"},{element:"*",elementAttributes:"data-growing-title src"}];r&&(s=s.concat(r)),this.mutationSummary=new MutationSummary({rootNode:t,callback:function(t){n.applyChanged(t)},queries:s})}}return t.prototype.disconnect=function(){this.mutationSummary&&(this.mutationSummary.disconnect(),this.mutationSummary=void 0)},t.prototype.serializeNode=function(t,e,r,d){if(null===t)return null;if(1===n[t.tagName])return null;if(void 0===e){e="/";for(var c=t.parentElement;c&&"BODY"!==c.tagName&&"HTML"!==c.tagName;){var h="/"+c.tagName.toLowerCase(),l=c.getAttribute("id");if(l&&null===l.match(/^[0-9]/)&&(h+="#"+l),c.hasAttribute("class"))for(var p=c.getAttribute("class").trim().split(/\s+/).sort(),f=0;f<p.length;f++)p[f].length>0&&null===o.exec(p[f])&&(h+="."+p[f]);e=h+e,c=c.parentElement}}var g={nodeType:t.nodeType};switch(1===g.nodeType&&-1!==u.indexOf(t.tagName)&&(g.dom=t),g.nodeType){case 10:var v=t;g.name=v.name,g.publicId=v.publicId,g.systemId=v.systemId;break;case 8:return null;case 3:if("/"===e||0===t.textContent.trim().length)return null;g.textContent=t.textContent.replace(/[\n \t]+/g," ").trim(),g.textContent.length>0&&(g.leaf=!0,g.text=g.textContent,g.path=e.slice(0,-1));break;case 1:if(t.style){var m=t.style.display;if("block"!==m&&"inline"!==m&&("none"===m||"none"===window.getComputedStyle(t).display)&&"A"!==t.tagName&&null===t.querySelector("a"))return null}var w=t;if(g.tagName=w.tagName,g.attributes={any:w.hasAttributes()},e+=w.tagName.toLowerCase(),w.hasAttribute("id")&&null===w.getAttribute("id").match(/^[0-9]/)&&(e+="#"+w.getAttribute("id")),"INPUT"==w.tagName&&w.hasAttribute("name"))e+="."+w.getAttribute("name");else if(w.hasAttribute("class")){p=w.getAttribute("class").trim().split(/\s+/).sort();for(var f=0;f<p.length;f++)p[f].length>0&&null===o.exec(p[f])&&(e+="."+p[f])}w.hasAttribute("href")&&(g.attributes.href=w.getAttribute("href"));var b,y=!0;if(e+="/",w.childNodes.length>0){if(g.childNodes=[],w.hasAttribute("growing-ignore")||w.hasAttribute("data-growing-ignore"))return null;w.hasAttribute("data-growing-container")&&(g.isContainer=!0);var S,C,N=0,O=-1!==u.indexOf(w.tagName);if(O)for(var x=w.firstChild;x;x=x.nextSibling)if(1===x.nodeType&&-1===s.indexOf(x.tagName)){O=!1;break}for(var I=w.firstChild;I;I=I.nextSibling){if(S=w.hasAttribute("data-growing-info")?w.getAttribute("data-growing-info"):null,C=w.hasAttribute("data-growing-idx")?parseInt(w.getAttribute("data-growing-idx")):-1,1===I.nodeType){if(1===n[I.tagName]){y=!1;continue}if(I.hasAttribute("growing-ignore")||I.hasAttribute("data-growing-ignore"))continue;if(O&&-1!==s.indexOf(I.tagName)&&(y=!1,!I.children||0===I.children.length))continue;-1!==i.indexOf(I.tagName)&&(N+=1,C=N),I.hasAttribute("data-growing-idx")&&(N=parseInt(I.getAttribute("data-growing-idx")),C=N),I.hasAttribute("data-growing-info")&&(S=I.getAttribute("data-growing-info"))}var A=this.serializeNode(I,e,N>0&&C>0?N:r,S||d);if(null===A)3!=I.nodeType&&(y=!1);else if("undefined"!=typeof A.childNodes){y=!1,b=!0;for(var E=0;E<A.childNodes.length;E++)if(A.childNodes[E].tagName){b=!1;break}N>0&&C>0?A.idx=N:r&&(A.idx=r),S?A.obj=S:d&&(A.obj=d),g.childNodes.push(A)}else{if((0===w.offsetWidth||0===w.offsetHeight)&&"A"!==w.tagName&&"BUTTON"!==w.tagName)return null;A.leaf&&(r&&(A.idx=r),d&&(A.obj=d),g.childNodes.push(A))}}}else g.childNodes=[];if(y)if(g.leaf=!0,"IMG"===w.tagName&&(delete g.attributes.href,w.src&&-1===w.src.indexOf("data:image")&&(g.attributes.href=w.src)),w.hasAttribute("data-growing-title")&&w.getAttribute("data-growing-title").length>0)g.text=w.getAttribute("data-growing-title");else if(w.hasAttribute("title")&&w.getAttribute("title").length>0)g.text=w.getAttribute("title");else if("IMG"===w.tagName){if(w.alt)g.text=w.alt;else if(g.attributes.href){var D=g.attributes.href.split("?")[0];if(D){var T=D.split("/");T.length>0&&(g.text=T[T.length-1])}}}else if("INPUT"===w.tagName&&-1!==a.indexOf(w.type))g.text=w.value;else if("svg"===w.tagName){for(var k=w.firstChild;k;k=k.nextSibling)if("use"===k.tagName&&k.getAttribute("xlink:href")){g.text=k.getAttribute("xlink:href");break}}else{var _=w.textContent.trim();if(0===_.length&&"I"!==w.tagName&&"A"!==w.tagName&&"use"!==w.tagName)return null;g.text=_}else{if(w.hasAttribute("data-growing-title")&&w.getAttribute("data-growing-title").length>0)g.text=w.getAttribute("data-growing-title");else if(w.hasAttribute("title")&&w.getAttribute("title").length>0)g.text=w.getAttribute("title");else if("svg"===w.tagName)for(var k=w.firstChild;k;k=k.nextSibling)if("use"===k.tagName&&k.getAttribute("xlink:href")){g.text=k.getAttribute("xlink:href");break}w.hasAttribute("data-growing-idx")&&(g.idx=parseInt(w.getAttribute("data-growing-idx"))),w.hasAttribute("data-growing-info")&&(g.obj=w.getAttribute("data-growing-info"))}g.path=e.slice(0,-1)}return g},t.prototype.serializeAddedAndMoved=function(t,e,r){var o=this,a=t.concat(e).concat(r);if(0===a.length)return[];var s=new MutationSummary.NodeMap,u={};a.forEach(function(t){t&&(u[s.nodeId(t)]=!0)});var d=[];a.forEach(function(t){if(t&&1!==n[t.tagName]){var e=t.parentNode;if(e&&!u[s.nodeId(e)]&&"undefined"!=typeof e.getAttribute){var r=e.getAttribute("id"),i=e.getAttribute("class"),o=t.getAttribute("class");if(!r||-1===r.toLowerCase().indexOf("clock")&&-1===r.toLowerCase().indexOf("countdown")&&-1===r.toLowerCase().indexOf("time"))if(!i||-1===i.toLowerCase().indexOf("clock")&&-1===i.toLowerCase().indexOf("countdown")&&-1===i.toLowerCase().indexOf("time"))if(e.getAttribute("data-countdown"));else if(o&&-1!==o.indexOf("daterangepicker"));else if(t.hasAttribute("growing-ignore")||t.hasAttribute("data-growing-ignore"));else{for(;e&&e!==document&&"#document-fragment"!==e.nodeName&&"BODY"!==e.tagName&&!e.hasAttribute("growing-ignore")&&!e.hasAttribute("data-growing-ignore");)e=e.parentNode;(null===e||"BODY"===e.tagName||"#document-fragment"===e.nodeName)&&d.push(t)}else;else;}}});var c=[];return d.forEach(function(t){for(var e=void 0,r=t;r&&"BODY"!==r.tagName&&-1===i.indexOf(r.tagName);)r=r.parentNode;if(r&&"BODY"!==r.tagName){var n=r.parentNode;if(null==n)return;for(var a=1,s=n.childNodes[a-1];a<=n.childNodes.length;a++)if(s.tagName===r.tagName&&s===r){e=a;break}}var u=o.serializeNode(t,void 0,e);null!==u&&c.push(u)}),delete u,delete d,c},t.prototype.serializeValueChanges=function(t){var e=this,r=[],n=new MutationSummary.NodeMap;return t.forEach(function(t){var r=n.get(t);r||(r=e.serializeNode(t),n.set(t,r))}),n.keys().forEach(function(t){var e=n.get(t);e&&r.push(e)}),r},t.prototype.applyChanged=function(t){var e=this,r=t[0],n=r.added,i=t[1];(!window.vds.impCtrlDua||window.vds.impCtrlDua&&Date.now()-window.grImpCtrl<=window.vds.impCtrlDua)&&setTimeout(function(){var t=e.serializeAddedAndMoved(n,[],[]),r=[].concat(i.attributeChanged["data-growing-title"],i.attributeChanged.src);if(r&&r.length>0){var o=e.serializeValueChanges(r);if(o&&o.length>0)for(var a=0;a<o.length;a++){var s=o[a];s.text&&s.text.length>0&&(t=t.concat(s))}}e.mirror.applyChanged([],t)},10)},t}();r.Client=d},{"mutation-summary":16}]},{},[6]);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zlc1000/face2face.git
git@gitee.com:zlc1000/face2face.git
zlc1000
face2face
face2face
master

搜索帮助