UNPKG

san-cli-plugin-devtools

Version:

Service plugin for san cli

1 lines 2.02 MB
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/_addon/san.webpack.client-view.devtools/",n(n.s=0)}({0:function(t,e,n){t.exports=n("b635")},"00ee":function(t,e,n){var i={};i[n("b622")("toStringTag")]="z",t.exports="[object z]"===String(i)},"02db":function(t,e,n){var i=n("4ce2");"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};n("2dba")(i,o);i.locals&&(t.exports=i.locals)},"0366":function(t,e,n){var i=n("1c0b");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},"0435":function(t,e,n){var i=n("81ab");"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};n("2dba")(i,o);i.locals&&(t.exports=i.locals)},"062f":function(t,e,n){(function(e){!function(n){var i=1;function o(){}function a(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];void 0!==i&&(t[n]=i)}return t}function r(t,e){var n=t.prototype,i=new Function;i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t,a(t.prototype,n)}function s(t,e){if(t&&t.length>0)for(var n=0,i=t.length;n<i&&!1!==e(t[n],n);n++);}function l(t,e){var n=Function.prototype.bind,i=Array.prototype.slice;if(n&&t.bind===n)return n.apply(t,i.call(arguments,1));var o=i.call(arguments,2);return function(){return t.apply(e,o.concat(i.call(arguments)))}}function d(t,e,n,i){t.addEventListener?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}function c(t,e,n,i){t.addEventListener?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n)}function u(t){var e={};return s(t.split(","),(function(t){e[t]=t})),e}var p=u("svg,g,defs,desc,metadata,symbol,use,image,path,rect,circle,line,ellipse,polyline,polygon,text,tspan,tref,textpath,marker,pattern,clippath,mask,filter,cursor,view,animate,font,font-face,glyph,missing-glyph,animateColor,animateMotion,animateTransform,textPath,foreignObject");function h(t){return p[t]&&document.createElementNS?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t)}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}var g,m=[],v="function"==typeof Promise&&/native code/.test(Promise);function b(t,n){if(n&&(t=l(t,n)),m.push(t),!g)if(g=function(){var t=m.slice(0);m=[],g=null;for(var e=0,n=t.length;e<n;e++)t[e]()},"function"==typeof e)e(g);else if("function"==typeof MessageChannel){var i=new MessageChannel,o=i.port2;i.port1.onmessage=g,o.postMessage(1)}else v?Promise.resolve().then(g):setTimeout(g,0)}var y="undefined"!=typeof navigator&&navigator.userAgent.match(/(msie|trident)(\s*|\/)([0-9]+)/i),x=y?y[3]-0:0;x&&!/msie/i.test(y[1])&&(x+=4);var w=x&&x<9;function _(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}9===x&&d(document,"selectionchange",(function(){var t=document.activeElement;"TEXTAREA"!==t.tagName&&"INPUT"!==t.tagName||_(t,"input")}));var k=u("area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr");function j(t){var e=function(){};return e.isRequired=o,e}var T={array:j(),object:j(),func:j(),string:j(),number:j(),bool:j(),symbol:j(),any:j,arrayOf:j,instanceOf:j,shape:j,oneOf:j,oneOfType:j,objectOf:j,exact:j};function M(t){this.source=t,this.len=this.source.length,this.index=0}M.prototype.currentCode=function(){return this.source.charCodeAt(this.index)},M.prototype.cut=function(t,e){return this.source.slice(t,e)},M.prototype.go=function(t){this.index+=t},M.prototype.nextCode=function(){return this.go(1),this.currentCode()},M.prototype.charCode=function(t){return this.source.charCodeAt(t)},M.prototype.goUntil=function(t){for(var e;this.index<this.len&&(e=this.currentCode());)switch(e){case 32:case 9:case 13:case 10:this.index++;break;default:return e===t?(this.index++,1):void 0}},M.prototype.match=function(t,e){t.lastIndex=this.index;var n=t.exec(this.source);if(n&&(!e||this.index===n.index))return this.index=t.lastIndex,n};function S(t){return t.replace(/-+(.)/gi,(function(t,e){return e.toUpperCase()}))}var O=u("allowpaymentrequest,async,autofocus,autoplay,checked,controls,default,defer,disabled,formnovalidate,hidden,ismap,itemscope,loop,multiple,muted,nomodule,novalidate,open,readonly,required,reversed,selected,typemustmatch");function C(t){return{type:4,paths:t}}function D(t){t.goUntil();var e=t.currentCode();switch(e){case 33:case 43:case 45:return t.go(1),function(t,e){switch(e){case 33:var n;switch(t.type){case 2:case 1:case 3:n=!t.value;break;case 12:case 11:n=!1;break;case 13:n=!0}if(null!=n)return{type:3,value:n};break;case 43:switch(t.type){case 2:case 1:case 3:return{type:2,value:+t.value}}break;case 45:switch(t.type){case 2:case 1:case 3:return{type:2,value:-t.value}}}return{type:9,expr:t,operator:e}}(D(t),e);case 34:case 39:return function(t){var e,n=t.currentCode(),i=t.index;t:for(;e=t.nextCode();)switch(e){case 92:t.go(1);break;case n:t.go(1);break t}var o=t.cut(i,t.index);return{type:1,value:new Function("return "+o)()}}(t);case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(t){var e=t.match(/\s*([0-9]+(\.[0-9]+)?)/g,1);if(e)return{type:2,value:+e[1]}}(t);case 40:return function(t){t.go(1);var e=A(t);return t.goUntil(41),e.parenthesized=!0,e}(t);case 91:t.go(1);for(var n=[];!t.goUntil(93);){var i={};n.push(i),46===t.currentCode()&&t.match(/\.\.\.\s*/g)&&(i.spread=!0),i.expr=A(t),t.goUntil(44)}return{type:12,items:n};case 123:t.go(1);for(var o=[];!t.goUntil(125);){i={};o.push(i),46===t.currentCode()&&t.match(/\.\.\.\s*/g)?(i.spread=!0,i.expr=A(t)):(i.name=D(t),t.goUntil(58)?i.expr=A(t):i.expr=i.name,4===i.name.type&&(i.name=i.name.paths[0])),t.goUntil(44)}return{type:11,items:o}}return E(t)}function I(t){return t.match(/\s*([\$0-9a-z_]+)/gi,1)[1]}function A(t){var e=function t(e){var n=function t(e){var n=function(t){var e=L(t);t.goUntil();var n=t.currentCode();switch(n){case 61:case 33:if(61===t.nextCode())return n+=61,61===t.nextCode()&&(n+=61,t.go(1)),{type:8,operator:n,segs:[e,L(t)]};t.go(-1)}return e}(e);if(e.goUntil(),38===e.currentCode()){if(38===e.nextCode())return e.go(1),{type:8,operator:76,segs:[n,t(e)]};e.go(-1)}return n}(e);if(e.goUntil(),124===e.currentCode()){if(124===e.nextCode())return e.go(1),{type:8,operator:248,segs:[n,t(e)]};e.go(-1)}return n}(t);if(t.goUntil(),63===t.currentCode()){t.go(1);var n=A(t);if(t.goUntil(),58===t.currentCode())return t.go(1),{type:10,segs:[e,n,A(t)]}}return e}function N(t){var e=I(t);switch(e){case"true":case"false":return{type:3,value:"true"===e};case"null":return{type:13}}var n=C([{type:1,value:e}]);t:for(;;)switch(t.currentCode()){case 46:t.go(1),n.paths.push({type:1,value:I(t)});break;case 91:t.go(1),n.paths.push(A(t)),t.goUntil(93);break;default:break t}return n}function E(t,e){t.goUntil();var n,i=N(t);if(t.goUntil(40))for(n=[];!t.goUntil(41);)n.push(A(t)),t.goUntil(44);else e&&(n=e);return n&&(i={type:6,name:i,args:n}),i}function z(t){for(var e=D(t);;){t.goUntil();var n=t.currentCode();switch(n){case 37:case 42:case 47:t.go(1),e={type:8,operator:n,segs:[e,D(t)]};continue}break}return e}function P(t){for(var e=z(t);;){t.goUntil();var n=t.currentCode();switch(n){case 43:case 45:t.go(1),e={type:8,operator:n,segs:[e,z(t)]};continue}break}return e}function L(t){var e=P(t);t.goUntil();var n=t.currentCode();switch(n){case 60:case 62:return 61===t.nextCode()&&(n+=61,t.go(1)),{type:8,operator:n,segs:[e,P(t)]}}return e}function R(t){if(t)return"object"==typeof t&&t.type?t:A(new M(t))}function B(t,e){var n=E(new M(t),e);return 6!==n.type&&(n={type:6,name:n,args:e||[]}),n}function F(t){for(var e=new M(t),n={type:5,expr:A(e),filters:[]};e.goUntil(124);){var i=E(e,[]);switch(i.name.paths[0].value){case"html":break;case"raw":n.original=1;break;default:n.filters.push(i)}}return n}var H={lt:"<",gt:">",nbsp:" ",quot:'"',emsp:" ",ensp:" ",thinsp:" ",copy:"©",reg:"®",zwnj:"‌",zwj:"‍",amp:"&"};function U(t){return t.replace(/&#([0-9]+);/g,(function(t,e){return String.fromCharCode(+e)})).replace(/&#x([0-9a-f]+);/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))})).replace(/&([a-z]+);/gi,(function(t,e){return H[e]||t}))}function V(t){return t.replace(/[\^\[\]\$\(\)\{\}\?\*\.\+\\]/g,(function(t){return"\\"+t}))}var W={};function Y(t,e){var n,i=(e=e||["{{","}}"])[0]+">..<"+e[1],o=W[i];o||(o=new RegExp(V(e[0])+"\\s*([\\s\\S]+?)\\s*"+V(e[1]),"g"),W[i]=o);var a,r=new M(t),s=0,l=[];function d(t){t&&l.push({type:1,value:U(t)})}for(var c=e[1].length;null!=(n=r.match(o));){var u=n[1],p=n[0].length;r.cut(r.index+1-c,r.index+1)===e[1]&&(u+=r.cut(r.index,r.index+1),r.go(1),p++),d(r.cut(s,r.index-p));var h=F(u);a=a||h.original,l.push(h),s=r.index}switch(d(r.cut(s)),l.length){case 0:return{type:1,value:""};case 1:return 5!==l[0].type||0!==l[0].filters.length||l[0].original?l[0]:l[0].expr}return a?{type:7,segs:l,original:1}:{type:7,segs:l}}var G={for:function(t){var e=new M(t),n=e.match(/^\s*([$0-9a-z_]+)(\s*,\s*([$0-9a-z_]+))?\s+in\s+/gi,1);if(n){var i={item:n[1],value:D(e)};if(n[3]&&(i.index=n[3]),e.match(/\s*trackby\s+/gi,1)){var o=e.index;i.trackBy=N(e),i.trackByRaw=e.cut(o,e.index)}return i}},ref:function(t,e){return{value:Y(t,e.delimiters)}},if:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},elif:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},else:function(){return{value:{}}},bind:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},html:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},show:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},is:function(t){return{value:R(t.replace(/(^\{\{|\}\}$)/g,""))}},transition:function(t){return{value:B(t)}}};function $(t,e,n,i){var o,a,r=e.indexOf("-");switch(r>0&&(a=e.slice(0,r),o=e.slice(r+1)),a){case"on":var s,l={name:o,modifier:{}};for(t.events.push(l);(s=n.indexOf(":"))>0;){var d=n.slice(0,s);if(!/^[a-z]+$/i.test(d))break;l.modifier[d]=!0,n=n.slice(s+1)}l.expr=B(n,[C([{type:1,value:"$event"}])]);break;case"san":case"s":!function(t,e,n,i){"else-if"===e&&(e="elif");var o=G[e];o&&(t.directives[e]=o(n,i))}(t,o,n,i);break;case"prop":Z(t,o,n,i);break;case"var":t.vars||(t.vars=[]),o=S(o),t.vars.push({name:o,expr:R(n.replace(/(^\{\{|\}\}$)/g,""))});break;default:Z(t,e,n,i)}}function Z(t,e,n,i){if(n&&0===n.indexOf("{=")&&"=}"===n.slice(-2))t.props.push({name:e,expr:R(n.slice(2,-2)),x:1});else{var o=Y(n||"",i.delimiters);if(""===o.value)O[e]&&(o={type:3,value:!0});else switch(e){case"class":case"style":switch(o.type){case 7:for(var a=0,r=o.segs.length;a<r;a++)5===o.segs[a].type&&o.segs[a].filters.push({type:6,name:C([{type:1,value:"_"+e}]),args:[]});break;case 5:o.filters.push({type:6,name:C([{type:1,value:"_"+e}]),args:[]});break;default:1!==o.type&&(o={type:5,expr:o,filters:[{type:6,name:C([{type:1,value:"_"+e}]),args:[]}]})}}t.props.push(null!=n?{name:e,expr:o}:{name:e,expr:o,noValue:1})}}function q(t,e){(e=e||{}).trimWhitespace=e.trimWhitespace||"none";var n={directives:{},props:[],events:[],children:[]};if("string"!=typeof t)return n;for(var i,o=new M(t=t.replace(/<!--([\s\S]*?)-->/gm,"").replace(/(^\s+|\s+$)/g,"")),a=/<(\/)?([a-z][a-z0-9-]*)\s*/gi,r=/([-:0-9a-z\[\]_]+)(\s*=\s*(([^'"<>\s]+)|"([^"]*?)"|'([^']*?)'))?\s*/gi,s=n,l=[n],d=0,c=0;null!=(i=o.match(a));){var u=o.index-i[0].length,h=i[1],f=i[2];if(p[f]||(f=f.toLowerCase()),h){if(62===o.currentCode()){var g=d;for(C(t.slice(c,u));g>0&&l[g].tagName!==f;)g--;g>0&&(s=l[d=g-1]),o.go(1)}}else{for(var m={directives:{},props:[],events:[],children:[],tagName:f},v=k[f];;){var b=o.currentCode();if(62===b){o.go(1);break}if(47===b&&62===o.charCode(o.index+1)){o.go(2),v=1;break}if(!b){C(o.cut(c)),m=null;break}var y=o.match(r,1);if(!y){C(o.cut(c,o.index)),m=null;break}$(m,y[1],y[2]?y[4]||(null==y[5]?y[6]:y[5]):void 0,e)}if(m){if(C(t.slice(c,u)),m.directives.show){for(var x=null,w=m.props.length;w--;)if("style"===m.props[w].name){x=m.props[w];break}var _={type:10,segs:[m.directives.show.value,{type:1,value:""},{type:1,value:";display:none;"}]};x?7===x.expr.type?x.expr.segs.push(_):m.props[w].expr={type:7,segs:[x.expr,_]}:m.props.push({name:"style",expr:_})}if(m.directives.else||m.directives.elif){for(var j=s.children.length,T=null;j--;){var S=s.children[j];if(!S.textExpr){T=S;break}s.children.splice(j,1)}T&&(T.elses=T.elses||[],T.elses.push(m))}else{if("tr"===m.tagName&&"table"===s.tagName){var O={directives:{},props:[],events:[],children:[],tagName:"tbody"};s.children.push(O),s=O,l[++d]=O}s.children.push(m)}v||(s=m,l[++d]=m)}}c=o.index}return C(o.cut(c)),n;function C(t){switch(e.trimWhitespace){case"blank":/^\s+$/.test(t)&&(t=null);break;case"all":t=t.replace(/(^\s+|\s+$)/g,"")}if(t){var n=Y(t,e.delimiters),i=s.children[s.children.length-1],o=i&&i.textExpr;o?o.segs?o.segs=o.segs.concat(n.segs||n):null!=o.value&&null!=n.value?o.value=o.value+n.value:i.textExpr={type:7,segs:[o].concat(n.segs||n)}:s.children.push({textExpr:n})}}}function X(t){if("object"==typeof t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e+=n+":"+t[n]+";");return e}return t}var Q={url:encodeURIComponent,_class:function(t){return t instanceof Array?t.join(" "):t},_style:X,_xclass:function(t,e){return t instanceof Array&&(t=t.join(" ")),t?e?e+" "+t:t:e},_xstyle:function(t,e){return(t=t&&X(t))?e?e+";"+t:t:e}};function K(t,e,n){if(null!=t.value)return t.value;var i;switch(t.type){case 13:return null;case 9:switch(i=K(t.expr,e,n),t.operator){case 33:i=!i;break;case 43:i=+i;break;case 45:i=0-i}return i;case 8:i=K(t.segs[0],e,n);var o=K(t.segs[1],e,n);switch(t.operator){case 37:i%=o;break;case 43:i+=o;break;case 45:i-=o;break;case 42:i*=o;break;case 47:i/=o;break;case 60:i=i<o;break;case 62:i=i>o;break;case 76:i=i&&o;break;case 94:i=i!=o;break;case 121:i=i<=o;break;case 122:i=i==o;break;case 123:i=i>=o;break;case 155:i=i!==o;break;case 183:i=i===o;break;case 248:i=i||o}return i;case 10:return K(t.segs[K(t.segs[0],e,n)?1:2],e,n);case 12:i=[];for(var r=0,s=t.items.length;r<s;r++){var l=K((d=t.items[r]).expr,e,n);d.spread?l&&(i=i.concat(l)):i.push(l)}return i;case 11:i={};for(r=0,s=t.items.length;r<s;r++){var d;l=K((d=t.items[r]).expr,e,n);d.spread?l&&a(i,l):i[K(d.name,e,n)]=l}return i;case 4:return e.get(t);case 5:if(i=K(t.expr,e,n),n)for(r=0,s=t.filters.length;r<s;r++){var c=t.filters[r],u=c.name.paths[0].value;switch(u){case"url":case"_class":case"_style":i=Q[u](i);break;case"_xclass":case"_xstyle":i=Q[u](i,K(c.args[0],e,n));break;default:i=n.filters[u]&&n.filters[u].apply(n,[i].concat(J(c.args,e,n)))}}return null==i&&(i=""),i;case 6:if(n&&4===t.name.type){var p=n,h=t.name.paths.length;for(r=0;p&&r<h;r++)p=p[K(t.name.paths[r],e,n)];p&&(i=p.apply(n,J(t.args,e,n)))}break;case 7:var f="";for(r=0,s=t.segs.length;r<s;r++){var g=t.segs[r];f+=g.value||K(g,e,n)}return f}return i}function J(t,e,n){for(var i=[],o=0;o<t.length;o++)i.push(K(t[o],e,n));return i}function tt(t,e,n){for(var i=0,o=e.length;i<o;i++)if(et(t,e[i],n))return 1;return 0}function et(t,e,n){switch(e.type){case 4:for(var i=e.paths,o=i.length,a=t.paths,r=a.length,s=1,l=0;l<o;l++){var d=i[l],c=d.value;if(null==c&&et(t,d,n)){s=1;break}s&&l<r&&(c||K(d,n))!=a[l].value&&(s=0)}return s&&(s=Math.max(1,r-o+2)),s;case 9:return et(t,e.expr,n)?1:0;case 7:case 8:case 10:return tt(t,e.segs,n);case 12:case 11:for(l=0;l<e.items.length;l++)if(et(t,e.items[l].expr,n))return 1;break;case 5:if(et(t,e.expr,n))return 1;for(l=0;l<e.filters.length;l++)if(tt(t,e.filters[l].args,n))return 1;break;case 6:if(tt(t,e.name.paths,n)||tt(t,e.args,n))return 1}return 0}function nt(t){return this[t]}var it={start:{},compiled:{is:nt,compiled:!0},inited:{is:nt,compiled:!0,inited:!0},created:{is:nt,compiled:!0,inited:!0,created:!0},attached:{is:nt,compiled:!0,inited:!0,created:!0,attached:!0},leaving:{is:nt,compiled:!0,inited:!0,created:!0,attached:!0,leaving:!0},detached:{is:nt,compiled:!0,inited:!0,created:!0,detached:!0},disposed:{is:nt,disposed:!0}};function ot(t,e){var n=t.hotspot.props[e];if(null!=n)return t.props[n]}var at={readonly:"readOnly",cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder",for:"htmlFor"};function rt(t,e,n){var i=at[n]||n,o=null!=e;i in t?t[i]=o?e:"":o&&t.setAttribute(n,e),o||t.removeAttribute(n)}function st(t,e,n){t.setAttribute(n,e)}function lt(t,e,n){t[at[n]||n]=!!e}function dt(t,e,n,i){x>9&&!t.value&&e&&(i.__bkph=!0,b((function(){i.__bkph=!1}))),rt(t,e,n)}var ct={style:function(t,e){t.style.cssText=e},class:function(t,e){(x||t.className!==e)&&(t.className=e)},slot:o,draggable:lt},ut={checkbox:function(t,e){var n=!1;return s(t,(function(t){return!(n=t===e)})),n},radio:function(t,e){return t===e}};var pt={input:{multiple:lt,checked:function(t,e,n,i){var o=function(t,e){var n=ot(t.aNode,"value"),i=ot(t.aNode,"type");if(n&&i){var o=K(i.expr,t.scope,t.owner);if(ut[o]){var a=ot(t.aNode,"checked");return null==a||a.hintExpr||(a.hintExpr=n.expr),!!ut[o](e,t.data?K(n.expr,t.data,t):K(n.expr,t.scope,t.owner))}}}(i,e);lt(t,null!=o?o:e,"checked"),x&&x<8&&!i.lifeCycle.attached&&lt(t,null!=o?o:e,"defaultChecked")},placeholder:dt,readonly:lt,disabled:lt,autofocus:lt,required:lt},option:{value:function(t,e,n,i){rt(t,e,n),function(t,e){var n=t.parent;for(;n&&"select"!==n.tagName;)n=n.parent;if(n){var i,o,a=null;if((i=ot(n.aNode,"value"))&&(o=i.expr)&&(a=5===n.nodeType?K(o,n.data,n):K(o,n.scope,n.owner)||""),a===e)return 1}}(i,e)&&(t.selected=!0)}},select:{readonly:lt,disabled:lt,autofocus:lt,required:lt},textarea:{placeholder:dt,readonly:lt,disabled:lt,autofocus:lt,required:lt},button:{disabled:lt,autofocus:lt,type:function(t,e){null!=e?t.setAttribute("type",e):t.removeAttribute("type")}}};function ht(t,e){if(p[t])return st;var n=pt[t];n||(n=pt[t]={});var i=n[e];return i||(i=ct[e]||rt,n[e]=i),i}function ft(t,e,n){var i=t.option.target;return i&&i.node===e&&(!n||i.prop===n)}function gt(t,e,n){for(var i=t,o=0;null!=i&&o<e.paths.length;o++)i=i[K(e.paths[o],n)];return i}function mt(t,e){this.parent=e,this.raw=t||{},this.listeners=[]}function vt(t,e,n,i,o,a){if(n>=i)return o;null==t&&(t={});var r=e[n],s=K(r,a),l=t;if(t instanceof Array){var d=+s;s=isNaN(d)?s:d,(l=t.slice(0))[s]=vt(t[s],e,n+1,i,o,a)}else if("object"==typeof t){for(var c in l={},t)c!==s&&t.hasOwnProperty(c)&&(l[c]=t[c]);l[s]=vt(t[s],e,n+1,i,o,a)}return null==r.value&&(e[n]={type:"string"==typeof s?1:2,value:s}),l}function bt(t,e,n,i){var o=t.expr.args;return function(a){a=i?a:a||window.event;var r=gt(e,t.expr.name,n);if("function"==typeof r&&r.apply(e,o.length?J(o,new mt({$event:a},n),e):[]),t.modifier.prevent)return a.preventDefault&&a.preventDefault(),!1;t.modifier.stop&&(a.stopPropagation?a.stopPropagation():a.cancelBubble=!0)}}function yt(t,e){if(e)for(var n=0;n<t.length;n++){var i=t[n];if(!i.overview){var o=i.expr.paths;i.overview=o[0].value,o.length>1&&(i.extOverview=o[0].value+"."+o[1].value,i.wildOverview=o[0].value+".*")}if(e[i.overview]||i.wildOverview&&e[i.wildOverview]||i.extOverview&&e[i.extOverview])return!0}}function xt(t,e,n){e&&(n?e.insertBefore(t,n):e.appendChild(t))}mt.prototype.listen=function(t){"function"==typeof t&&this.listeners.push(t)},mt.prototype.unlisten=function(t){for(var e=this.listeners.length;e--;)t&&this.listeners[e]!==t||this.listeners.splice(e,1)},mt.prototype.fire=function(t){if(!(t.option.silent||t.option.silence||t.option.quiet))for(var e=0;e<this.listeners.length;e++)this.listeners[e].call(this,t)},mt.prototype.get=function(t,e){var n=this.raw;if(!t)return n;"object"!=typeof t&&(t=R(t));var i=t.paths;if(e=e||this,null==(n=n[i[0].value])&&this.parent)n=this.parent.get(t,e);else for(var o=1,a=i.length;null!=n&&o<a;o++)n=n[i[o].value||K(i[o],e)];return n},mt.prototype.set=function(t,e,n){if(n=n||{},t=R(t),this.get(t)!==e||n.force){var i=(t={type:4,paths:t.paths.slice(0)}).paths[0].value;this.raw[i]=vt(this.raw[i],t.paths,1,t.paths.length,e,this),this.fire({type:1,expr:t,value:e,option:n})}},mt.prototype.assign=function(t,e){for(var n in e=e||{},t)this.set(C([{type:1,value:n}]),t[n],e)},mt.prototype.merge=function(t,e,n){for(var i in n=n||{},t=R(t),e)this.set(C(t.paths.concat([{type:1,value:i}])),e[i],n)},mt.prototype.apply=function(t,e,n){t=R(t);var i=this.get(t);this.set(t,e(i),n)},mt.prototype.splice=function(t,e,n){n=n||{},t={type:4,paths:(t=R(t)).paths.slice(0)};var i=this.get(t),o=[];if(i instanceof Array){var a=e[0],r=i.length;a>r?a=r:a<0&&(a=r+a)<0&&(a=0);var s=i.slice(0);o=s.splice.apply(s,e),this.raw=vt(this.raw,t.paths,0,t.paths.length,s,this),this.fire({expr:t,type:2,index:a,deleteCount:o.length,value:o,insertions:e.slice(2),option:n})}return o},mt.prototype.push=function(t,e,n){var i=this.get(t);if(i instanceof Array)return this.splice(t,[i.length,0,e],n),i.length+1},mt.prototype.pop=function(t,e){var n=this.get(t);if(n instanceof Array){var i=n.length;if(i)return this.splice(t,[i-1,1],e)[0]}},mt.prototype.shift=function(t,e){return this.splice(t,[0,1],e)[0]},mt.prototype.unshift=function(t,e,n){var i=this.get(t);if(i instanceof Array)return this.splice(t,[0,0,e],n),i.length+1},mt.prototype.removeAt=function(t,e,n){this.splice(t,[e,1],n)},mt.prototype.remove=function(t,e,n){var i=this.get(t);if(i instanceof Array)for(var o=i.length;o--;)if(i[o]===e){this.splice(t,[o,1],n);break}};var wt=u("class,style,id");function _t(t,e,n,i,o){this.aNode=t,this.owner=i,this.scope=n,this.parent=e,this.lifeCycle=it.start,this.children=[],this._elFns=[],this.parentComponent=5===e.nodeType?e:e.parentComponent,this.tagName=t.tagName,w&&this.tagName.indexOf("-")>0&&(this.tagName="div"),this._sbindData=Ht(t.directives.bind,this.scope,this.owner),this.lifeCycle=it.inited}function kt(){this.el=this.el||document.createComment(this.id)}function jt(t,e,n){for(var i=t&&t.length;i--;)t[i].dispose(e,n)}function Tt(t){jt(this.children,t,1),t||f(this.el),this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=it.disposed,this._ondisposed&&this._ondisposed()}function Mt(t,e){this.options=t,this.loader=e,this.id=i++,this.children=[]}function St(t,e,n,i){if(t.Clazz)return new t.Clazz(t,e,n,i);var o=i.components[t.directives.is?K(t.directives.is.value,n):t.tagName];return o?"function"==typeof o?new o({source:t,owner:i,scope:n,parent:e}):new Mt({source:t,owner:i,scope:n,parent:e},o):(t.Clazz=_t,new _t(t,e,n,i))}function Ot(t){var e,n=t.aNode.directives.transition,i=t.owner;if(5===t.nodeType){var o=t.source&&t.source.directives.transition;o?n=o:i=t}return n&&i&&"function"==typeof(e=gt(i,n.value.name))&&(e=e.apply(i,J(n.value.args,t.scope,i))),e||t.transition}function Ct(){if(!this.lifeCycle.leaving){if(!this.disposeNoTransition){var t=Ot(this);if(t&&t.leave){this._toPhase?this._toPhase("leaving"):this.lifeCycle=it.leaving;var e=this;return void t.leave(this.el,(function(){e._leave()}))}}this._leave()}}function Dt(t,e){this.leaveDispose=1,this.disposeNoDetach=t,this.disposeNoTransition=e,this.detach()}function It(t,e,n){n=!!n,this._elFns.push([t,e,n]),d(this.el,t,e,n)}_t.prototype.nodeType=4,_t.prototype.attach=function(t,e){if(!this.lifeCycle.attached){if(!this.el){var n=this.aNode.hotspot.sourceNode,i=this.aNode.props;if(n?(this.el=n.cloneNode(!1),i=this.aNode.hotspot.dynamicProps):this.el=h(this.tagName),this._sbindData)for(var o in this._sbindData)this._sbindData.hasOwnProperty(o)&&ht(this.tagName,o)(this.el,this._sbindData[o],o,this);for(var a=0,r=i.length;a<r;a++){var s=i[a],l=K(s.expr,this.scope,this.owner);!l&&wt[s.name]||s.handler(this.el,l,s.name,this)}this.lifeCycle=it.created}if(xt(this.el,t,e),!this._contentReady){var d=this.aNode.directives.html;if(d)this.el.innerHTML=K(d.value,this.scope,this.owner);else for(a=0,r=this.aNode.children.length;a<r;a++){var c=this.aNode.children[a],u=c.Clazz?new c.Clazz(c,this,this.scope,this.owner):St(c,this,this.scope,this.owner);this.children.push(u),u.attach(this.el)}this._contentReady=1}this._attached(),this.lifeCycle=it.attached}},_t.prototype.detach=Ct,_t.prototype.dispose=Dt,_t.prototype._onEl=It,_t.prototype._leave=function(){if(this.leaveDispose&&!this.lifeCycle.disposed){for(var t=this.children.length;t--;)this.children[t].dispose(1,1);for(t=this._elFns.length;t--;){var e=this._elFns[t];c(this.el,e[0],e[1],e[2])}this._elFns=null,this._inputTimer&&(clearInterval(this._inputTimer),this._inputTimer=null),this.disposeNoDetach&&this.parent||f(this.el),this.lifeCycle=it.detached,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=it.disposed,this._ondisposed&&this._ondisposed()}},_t.prototype._update=function(t){var e=this.aNode.hotspot.data;if(e&&yt(t,e)){var n=this;this._sbindData=Vt(this.aNode.directives.bind,this._sbindData,this.scope,this.owner,t,(function(t,e){t in n.aNode.hotspot.props||ht(n.tagName,t)(n.el,e,t,n)}));for(var i=this.aNode.hotspot.dynamicProps,o=0,a=i.length;o<a;o++)for(var r=i[o],s=r.name,l=0,d=t.length;l<d;l++){var c=t[l];if(!ft(c,this,s)&&(et(c.expr,r.expr,this.scope)||r.hintExpr&&et(c.expr,r.hintExpr,this.scope))){r.handler(this.el,K(r.expr,this.scope,this.owner),s,this);break}}var u=this.aNode.directives.html;if(u){for(var p=t.length;p--;)if(et(t[p].expr,u.value,this.scope)){this.el.innerHTML=K(u.value,this.scope,this.owner);break}}else for(o=0,a=this.children.length;o<a;o++)this.children[o]._update(t)}},_t.prototype._attached=Ft,Mt.prototype._create=kt,Mt.prototype.dispose=Tt,Mt.prototype.attach=function(t,e){var n=this.loader.placeholder;if(n){var i=new n(this.options);this.children[0]=i,i.attach(t,e)}this._create(),xt(this.el,t,e);var o=this;this.loader.start((function(t){o.onload(t)}))},Mt.prototype.onload=function(t){if(this.el&&t){var e=new t(this.options);e.attach(this.el.parentNode,this.el);var n=this.options.parent.children;null!=this.parentIndex&&n[this.parentIndex]===this||s(n,(function(t,e){t instanceof Mt&&(t.parentIndex=e)})),n[this.parentIndex]=e}this.dispose()},Mt.prototype._update=function(t){this.children[0]&&this.children[0]._update(t)};var At="undefined"!=typeof window;function Nt(){this.composing&&(this.composing=0,_(this,"input"))}function Et(){this.composing=1}function zt(t,e,n){return function(){Bt(t,e,n)}}function Pt(t,e,n){return function(){t.__bkph?t.__bkph=!1:this.composing||Bt(t,e,n)}}function Lt(t,e,n){return function(){t._inputTimer=setInterval((function(){Bt(t,e,n)}),16)}}function Rt(t){return function(){clearInterval(t._inputTimer),t._inputTimer=null}}function Bt(t,e,n){if(t.lifeCycle.created){var i=t.el;if("input"===t.tagName&&"checked"===e.name){var o=ot(t.aNode,"value"),a=ot(t.aNode,"type");if(o&&a)switch(i.type.toLowerCase()){case"checkbox":return void n[i.checked?"push":"remove"](e.expr,i.value);case"radio":return void(i.checked&&n.set(e.expr,i.value,{target:{node:t,prop:e.name}}))}}n.set(e.expr,i[e.name],{target:{node:t,prop:e.name}})}}function Ft(){if(!this._rootNode){for(var t=5===this.nodeType,e=t?this.data:this.scope,n=this.aNode.hotspot.xProps,i=0,a=n.length;i<a;i++){var r=n[i];switch(r.name){case"value":switch(this.tagName){case"input":case"textarea":At&&window.CompositionEvent&&(this._onEl("change",Nt),this._onEl("compositionstart",Et),this._onEl("compositionend",Nt)),"oninput"in this.el?this._onEl("input",Pt(this,r,e)):(this._onEl("focusin",Lt(this,r,e)),this._onEl("focusout",Rt(this)));break;case"select":this._onEl("change",zt(this,r,e))}break;case"checked":switch(this.tagName){case"input":switch(this.el.type){case"checkbox":case"radio":this._onEl("click",zt(this,r,e))}}}}var s=t?this:this.owner;for(i=0,a=this.aNode.events.length;i<a;i++){var l=this.aNode.events[i];this._onEl(l.name,bt(l,s,e,l.modifier),l.modifier.capture)}if(t)for(i=0,a=this.nativeEvents.length;i<a;i++){l=this.nativeEvents[i];this._onEl(l.name,bt(l,this.owner,this.scope),l.modifier.capture)}var d=Ot(this);d&&d.enter&&d.enter(this.el,o)}}function Ht(t,e,n){if(t&&e)return K(t.value,e,n)}function Ut(t,e){var n,i=[];for(n in t)t.hasOwnProperty(n)&&i.push(n);for(n in e)e.hasOwnProperty(n)&&!t[n]&&i.push(n);return i}function Vt(t,e,n,i,o,a){if(t){for(var r=o.length;r--;)if(et(o[r].expr,t.value,n)){for(var s=K(t.value,n,i),l=Ut(s,e),d=0,c=l.length;d<c;d++){var u=l[d],p=s[u];p!==e[u]&&a(u,p)}return s}return e}}function Wt(t){for(var e,n=[],i=[],o=[],a=[],r=-1,s=0,l=t.length;s<l;s++){for(var d=n[r],c=i[r],u=o[r],p=a[r];d&&(-3===u&&(u=o[r]=t[s++]||-1),-1===u);)d=n[--r],c=i[r],u=o[r],p=a[r];var h,f=t[s],g=-1,m=!1;switch(f){case 1:h={directives:{},props:[],events:[],children:[]};var v=t[++s];v&&(h.tagName=v),g=t[++s]||-1;break;case 3:h={type:1,value:t[++s]};break;case 4:h={type:2,value:t[++s]};break;case 5:h={type:3,value:!!t[++s]};break;case 19:h={type:13};break;case 6:h={type:4,paths:m=[]},g=t[++s]||-1;break;case 7:h={type:5,filters:m=[]},t[++s]&&(h.original=1),g=-2;break;case 8:h={type:6,args:m=[]},g=-2;break;case 9:h={type:7,segs:m=[]},t[++s]&&(h.original=1),g=t[++s]||-1;break;case 10:m=[],h={type:8,operator:t[++s],segs:m},g=2;break;case 11:h={type:9,operator:t[++s]},g=-2;break;case 12:h={type:10,segs:m=[]},g=3;break;case 13:h={type:11,items:m=[]},g=t[++s]||-1;break;case 14:h={},g=-2;break;case 15:h={spread:!0},g=-2;break;case 16:h={type:12,items:m=[]},g=t[++s]||-1;break;case 17:case 18:h=18===f?{spread:!0}:{},g=-2;break;case 2:case 33:case 34:h={name:t[++s]},33===f&&(h.noValue=1),34===f&&(h.x=1),g=-2;break;case 35:h={name:t[++s],modifier:{}},g=-2;break;case 36:h={name:t[++s]},g=-2;break;case 37:h={item:t[++s]};var b=t[++s];b&&(h.index=b);var y=t[++s];y&&(h.trackByRaw=y,h.trackBy=R(y)),g=-2;break;case 38:case 39:case 41:case 42:case 43:case 44:case 45:h={},g=-2;break;case 40:h={value:{}};break;default:f||(h={},g=-2)}if(e||(e=h),d)switch(c){case 1:if(p)d.elses=d.elses||[],d.elses.push(h),--o[r]||r--;else{switch(f){case 2:case 33:case 34:d.props.push(h);break;case 35:d.events.push(h);break;case 36:d.vars=d.vars||[],d.vars.push(h);break;case 37:d.directives.for=h;break;case 38:d.directives.if=h;break;case 39:d.directives.elif=h;break;case 40:d.directives.else=h;break;case 41:d.directives.ref=h;break;case 42:d.directives.bind=h;break;case 43:d.directives.html=h;break;case 44:d.directives.transition=h;break;case 45:d.directives.is=h;break;case 1:default:d.children.push(h)}--o[r]||(d.directives.if?(a[r]="elses",o[r]=-3):r--)}break;case 7:-2===u?(o[r]=-3,d.expr=h):(p.push(h),--o[r]||r--);break;case 8:-2===u?(o[r]=-3,d.name=h):(p.push(h),--o[r]||r--);break;case 6:case 9:case 10:case 12:case 13:case 16:p.push(h),--o[r]||r--;break;case 11:case 2:case 33:case 34:case 36:case 15:case 17:case 18:d.expr=h,r--;break;case 14:-2===u?(o[r]=-4,d.name=h):(d.expr=h,r--);break;case 35:-2===u?(o[r]=-3,d.expr=h):(d.modifier[f]=!0,--o[r]||r--);break;case 37:case 38:case 39:case 41:case 42:case 43:case 44:case 45:d.value=h,r--;break;default:d.textExpr=h,r--}-1!==g&&(n[++r]=h,i[r]=f,o[r]=g,a[r]=m)}return e}function Yt(t){t=t||{},this.lifeCycle=it.start,this.children=[],this._elFns=[],this.listeners={},this.slotChildren=[],this.implicitChildren=[];var e=this.constructor;this.filters=this.filters||e.filters||{},this.computed=this.computed||e.computed||{},this.messages=this.messages||e.messages||{},t.transition&&(this.transition=t.transition);var n=e.prototype;if(!n.hasOwnProperty("_cmptReady")){n.components=e.components||n.components||{};var o=n.components;for(var r in o){var s=o[r];"object"!=typeof s||s instanceof $t?"self"===s&&(o[r]=e):o[r]=Gt(s)}n._cmptReady=1}if(!n.hasOwnProperty("aNode")){var l=e.aPack||n.hasOwnProperty("aPack")&&n.aPack;l?(n.aNode=Wt(l),e.aPack=n.aPack=null):n.aNode=Zt(e)}oe(n.aNode,this),this.tagName=n.aNode.tagName,this.source="string"==typeof t.source?q(t.source).children[0]:t.source,oe(this.source),this.sourceSlotNameProps=[],this.sourceSlots={named:{}},this.owner=t.owner,this.scope=t.scope,this.el=t.el;var d=t.parent;if(d?(this.parent=d,this.parentComponent=5===d.nodeType?d:d&&d.parentComponent):this.owner&&(this.parentComponent=this.owner,this.scope=this.owner.data),this.id=i++,this.nativeEvents=[],this.source){this._initSourceSlots(1);for(var c=0,u=this.source.events.length;c<u;c++){var p=this.source.events[c];p.modifier.native?this.nativeEvents.push(p):this.on(p.name,bt(p,t.owner,this.scope,1),p)}this.tagName=this.tagName||this.source.tagName,this.binds=this.source.hotspot.binds,this._srcSbindData=Ht(this.source.directives.bind,this.scope,this.owner)}this._toPhase("compiled");var h=a("function"==typeof this.initData&&this.initData()||{},t.data||this._srcSbindData);if(this.binds&&this.scope)for(c=0,u=this.binds.length;c<u;c++){var f=this.binds[c],g=K(f.expr,this.scope,this.owner);void 0!==g&&(h[f.name]=g)}for(var m in this.data=new mt(h),this.tagName=this.tagName||"div",w&&this.tagName.indexOf("-")>0&&(this.tagName="div"),this.computedDeps={},this.computed)this.computed.hasOwnProperty(m)&&!this.computedDeps[m]&&this._calcComputed(m);this._initDataChanger(),this._sbindData=Ht(this.aNode.directives.bind,this.data,this),this._toPhase("inited")}function Gt(t,e){if("function"==typeof t)return t;function n(t){Yt.call(this,t)}return n.prototype=t,r(n,e||Yt),n}function $t(t,e,n){this.load=t,this.placeholder=e,this.fallback=n,this.listeners=[]}function Zt(t){var e=t.prototype,n=q(t.template||e.template,{trimWhitespace:e.trimWhitespace||t.trimWhitespace,delimiters:e.delimiters||t.delimiters}).children[0];if(n&&n.textExpr&&(n=null),"template"===(n=n||{directives:{},props:[],events:[],children:[]}).tagName&&delete n.tagName,!1!==e.autoFillStyleAndId&&!1!==t.autoFillStyleAndId){for(var i={},o=n.props.length;o--;){var a=n.props[o];switch(a.name){case"class":case"style":i[a.name]=!0,a.expr={type:5,expr:C([{type:1,value:a.name}]),filters:[{type:6,args:[a.expr],name:C([{type:1,value:"_x"+a.name}])}]};break;case"id":i[a.name]=!0}}i.class||n.props.push({name:"class",expr:{type:5,expr:C([{type:1,value:"class"}]),filters:[{type:6,args:[],name:C([{type:1,value:"_class"}])}]}}),i.style||n.props.push({name:"style",expr:{type:5,expr:C([{type:1,value:"style"}]),filters:[{type:6,args:[],name:C([{type:1,value:"_style"}])}]}}),i.id||n.props.push({name:"id",expr:C([{type:1,value:"id"}])})}return n}Yt.prototype._initSourceSlots=function(t){if(this.sourceSlots.named={},this.source&&this.scope)for(var e=this.source.children,n=0,i=e.length;n<i;n++){var o,a=e[n],r=!a.textExpr&&ot(a,"slot");if(r){t&&this.sourceSlotNameProps.push(r);var s=K(r.expr,this.scope,this.owner);(o=this.sourceSlots.named[s])||(o=this.sourceSlots.named[s]=[]),o.push(a)}else t&&((o=this.sourceSlots.noname)||(o=this.sourceSlots.noname=[]),o.push(a))}},Yt.prototype.nodeType=5,Yt.prototype.nextTick=b,Yt.prototype._ctx=(new Date).getTime().toString(16),Yt.prototype._callHook=Yt.prototype._toPhase=function(t){this.lifeCycle[t]||(this.lifeCycle=it[t]||this.lifeCycle,"function"==typeof this[t]&&this[t](),this._afterLife=this.lifeCycle)},Yt.prototype.on=function(t,e,n){"function"==typeof e&&(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({fn:e,declaration:n}))},Yt.prototype.un=function(t,e){for(var n=this.listeners[t],i=n&&n.length;i--;)e&&e!==n[i].fn||n.splice(i,1)},Yt.prototype.fire=function(t,e){var n=this;s(this.listeners[t],(function(t){t.fn.call(n,e)}))},Yt.prototype._calcComputed=function(t){var e=this.computedDeps[t];e||(e=this.computedDeps[t]={});var n=this;this.data.set(t,this.computed[t].call({data:{get:function(i){return e[i]||(e[i]=1,n.computed[i]&&!n.computedDeps[i]&&n._calcComputed(i),n.watch(i,(function(){n._calcComputed(t)}))),n.data.get(i)}}}))},Yt.prototype.dispatch=function(t,e){for(var n=this.parentComponent;n;){var i=n.messages[t]||n.messages["*"];if("function"==typeof i)return void i.call(n,{target:this,value:e,name:t});n=n.parentComponent}},Yt.prototype.slot=function(t){var e=[],n=this;return function i(o){s(o,(function(o){6===o.nodeType&&o.owner===n?(o.isNamed&&o.name===t||!o.isNamed&&!t)&&e.push(o):i(o.children)}))}(this.children),e},Yt.prototype.ref=function(t){var e,n=this;function i(t){if(t)for(var n=0,i=t.length;n<i;n++)if(o(t[n]),e)return}function o(o){if(1!==o.nodeType){if(o.owner===n){var a;switch(o.nodeType){case 4:(a=o.aNode.directives.ref)&&K(a.value,o.scope,n)===t&&(e=o.el);break;case 5:(a=o.source.directives.ref)&&K(a.value,o.scope,n)===t&&(e=o)}if(e)return;i(o.slotChildren)}e||i(o.children)}}return this._rootNode?o(this._rootNode):i(this.children),e},Yt.prototype._update=function(t){if(!this.lifeCycle.disposed){var e=this,n=!1;if(this._notifyNeedReload=function(){n=!0},t)if(this.source&&(this._srcSbindData=Vt(this.source.directives.bind,this._srcSbindData,this.scope,this.owner,t,(function(t,n){t in e.source.hotspot.props||e.data.set(t,n,{target:{node:e.owner}})}))),s(t,(function(t){var i=t.expr;s(e.binds,(function(n){var o,a=n.name,r=n.expr;!ft(t,e,a)&&(o=et(i,r,e.scope))&&(o>2&&(a=C([{type:1,value:a}].concat(i.paths.slice(r.paths.length))),r=i),o>=2&&2===t.type?e.data.splice(a,[t.index,t.deleteCount].concat(t.insertions),{target:{node:e.owner}}):e.data.set(a,K(r,e.scope,e.owner),{target:{node:e.owner}}))})),s(e.sourceSlotNameProps,(function(t){return!(n=n||et(i,t.expr,e.scope))}))})),n)this._initSourceSlots(),this._repaintChildren();else for(var i=this.slotChildren.length;i--;){var o=this.slotChildren[i];o.lifeCycle.disposed?this.slotChildren.splice(i,1):o.isInserted&&o._update(t,1)}var a=this._dataChanges;if(a){if(this._dataChanges=null,this._sbindData=Vt(this.aNode.directives.bind,this._sbindData,this.data,this,a,(function(t,n){e._rootNode||t in e.aNode.hotspot.props||ht(e.tagName,t)(e.el,n,t,e)})),this._rootNode)this._rootNode._update(a),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode());else{for(var r=this.aNode.hotspot.dynamicProps,l=0;l<r.length;l++)for(var d=r[l],c=0;c<a.length;c++){var u=a[c];if(et(u.expr,d.expr,this.data)||d.hintExpr&&et(u.expr,d.hintExpr,this.data)){d.handler(this.el,K(d.expr,this.data,this),d.name,this);break}}for(l=0;l<this.children.length;l++)this.children[l]._update(a)}n&&(this._initSourceSlots(),this._repaintChildren());for(l=0;l<this.implicitChildren.length;l++)this.implicitChildren[l]._update(a);this._toPhase("updated"),this.owner&&this._updateBindxOwner(a)&&this.owner._update()}this._notifyNeedReload=null}},Yt.prototype._updateBindxOwner=function(t){var e,n=this;return s(t,(function(t){s(n.binds,(function(i){var o=t.expr;if(i.x&&!ft(t,n.owner)&&et(o,R(i.name),n.data)){var a=i.expr;o.paths.length>1&&(a=C(i.expr.paths.concat(o.paths.slice(1)))),e=1,n.scope.set(a,K(o,n.data,n),{target:{node:n,prop:i.name}})}}))})),e},Yt.prototype._repaintChildren=function(){if(this._rootNode){var t=this._rootNode.el.parentNode,e=this._rootNode.el.nextSibling;this._rootNode.dispose(0,1),this.slotChildren=[],this._rootNode=St(this.aNode,this,this.data,this),this._rootNode.attach(t,e),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode())}else{jt(this.children,0,1),this.children=[],this.slotChildren=[];for(var n=0,i=this.aNode.children.length;n<i;n++){var o=St(this.aNode.children[n],this,this.data,this);this.children.push(o),o.attach(this.el)}}},Yt.prototype._initDataChanger=function(t){var e=this;this._dataChanger=function(t){e._afterLife.created?(e._dataChanges||(b(e._update,e),e._dataChanges=[]),e._dataChanges.push(t)):e.lifeCycle.inited&&e.owner&&e._updateBindxOwner([t])},this.data.listen(this._dataChanger)},Yt.prototype.watch=function(t,e){var n=R(t);this.data.listen(l((function(t){et(t.expr,n,this.data)&&e.call(this,K(n,this.data,this),t)}),this))},Yt.prototype._getElAsRootNode=function(){return this.el},Yt.prototype.attach=function(t,e){if(!this.lifeCycle.attached){if(this.aNode.hotspot.hasRootNode||this.components[this.aNode.directives.is?K(this.aNode.directives.is.value,this.data):this.aNode.tagName])this._rootNode=this._rootNode||St(this.aNode,this,this.data,this),this._rootNode.attach(t,e),this._rootNode._getElAsRootNode&&(this.el=this._rootNode._getElAsRootNode()),this._toPhase("created");else{if(!this.el){var n=this.aNode.hotspot.sourceNode,i=this.aNode.props;if(n?(this.el=n.cloneNode(!1),i=this.aNode.hotspot.dynamicProps):this.el=h(this.tagName),this._sbindData)for(var o in this._sbindData)this._sbindData.hasOwnProperty(o)&&ht(this.tagName,o)(this.el,this._sbindData[o],o,this);for(var a=0,r=i.length;a<r;a++){var s=i[a],l=K(s.expr,this.data,this);!l&&wt[s.name]||s.handler(this.el,l,s.name,this)}this._toPhase("created")}if(xt(this.el,t,e),!this._contentReady){for(a=0,r=this.aNode.children.length;a<r;a++){var d=this.aNode.children[a],c=d.Clazz?new d.Clazz(d,this,this.data,this):St(d,this,this.data,this);this.children.push(c),c.attach(this.el)}this._contentReady=1}this._attached()}this._toPhase("attached"),this.owner&&!this.parent&&this.owner.implicitChildren.push(this)}},Yt.prototype.detach=Ct,Yt.prototype.dispose=Dt,Yt.prototype._onEl=It,Yt.prototype._attached=Ft,Yt.prototype._leave=function(){if(this.leaveDispose){if(!this.lifeCycle.disposed){this.data.unlisten(),this.dataChanger=null,this._dataChanges=null;for(var t=this.implicitChildren.length;t--;)this.implicitChildren[t].dispose(0,1);if(this.implicitChildren=null,this.source=null,this.sourceSlots=null,this.sourceSlotNameProps=null,this.slotChildren=null,this._rootNode)this._rootNode.dispose(this.disposeNoDetach&&this.parent);else{for(t=this.children.length;t--;)this.children[t].dispose(1,1);for(t=this._elFns.length;t--;){var e=this._elFns[t];c(this.el,e[0],e[1],e[2])}this._elFns=null,this._inputTimer&&(clearInterval(this._inputTimer),this._inputTimer=null),this.disposeNoDetach&&this.parent||f(this.el)}this._toPhase("detached"),this._rootNode=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this._toPhase("disposed"),this._ondisposed&&this._ondisposed()}}else this.lifeCycle.attached&&(this._rootNode?this._rootNode.detach?this._rootNode.detach():(this._rootNode.dispose(),this._rootNode=null):f(this.el),this._toPhase("detached"))},$t.prototype.start=function(t){var e=this;switch(this.state){case 2:b((function(){t(e.Component)}));break;case 1:this.listeners.push(t);break;default:this.listeners.push(t),this.state=1;var n=this.load(),i=function(t){e.done(t)};n&&"function"==typeof n.then&&n.then(i,i)}},$t.prototype.done=function(t){this.state=2,t=t||this.fallback,this.Component=t,s(this.listeners,(function(e){e(t)}))};var qt=u("div,span,img,ul,ol,li,dl,dt,dd,a,b,u,hr,form,input,textarea,button,label,select,option,table,tbody,th,tr,td,thead,main,aside,header,footer,nav");function Xt(t,e,n,i,o){this.aNode=t,this.owner=i,this.scope=n,this.parent=e}Xt.prototype.nodeType=1,Xt.prototype.attach=function(t,e){if(this.content=K(this.aNode.textExpr,this.scope,this.owner),null==this.content&&(this.content=""),this.aNode.textExpr.original){this.id=this.id||i++,this.sel=document.createComment(this.id),xt(this.sel,t,e),this.el=document.createComment(this.id),xt(this.el,t,e);var n=document.createElement("script");t.insertBefore(n,this.el),n.insertAdjacentHTML("beforebegin",this.content),t.removeChild(n)}else this.el=document.createTextNode(this.content),xt(this.el,t,e)},Xt.prototype.dispose=function(t){t||(f(this.el),f(this.sel)),this.el=null,this.sel=null};var Qt=At&&("string"==typeof document.createTextNode("").textContent?"textContent":"data");function Kt(t,e){this.sel=document.createComment(this.id),xt(this.sel,t,e);for(var n=0;n<this.aNode.children.length;n++){var i=St(this.aNode.children[n],this,this.childScope||this.scope,this.childOwner||this.owner);this.children.push(i),i.attach(t,e)}this.el=document.createComment(this.id),xt(this.el,t,e),this.lifeCycle=it.attached}function Jt(t,e,n,o,r){this.owner=o,this.scope=n,this.parent=e,this.parentComponent=5===e.nodeType?e:e.parentComponent,this.id=i++,this.lifeCycle=it.start,this.children=[],this.nameBind=ot(t,"name"),this.nameBind&&(this.isNamed=!0,this.name=K(this.nameBind.expr,this.scope,this.owner));var l,d,c=o.sourceSlots;c&&(l=this.isNamed?c.named[this.name]:c.noname),l&&(this.isInserted=!0),this.aNode={directives:t.directives,props:[],events:[],children:l||t.children.slice(0),vars:t.vars},this._sbindData=Ht(t.directives.bind,this.scope,this.owner),this._sbindData&&(d=a({},this._sbindData)),t.vars&&(d=d||{},s(t.vars,(function(t){d[t.name]=K(t.expr,n,o)}))),this.isInserted&&(this.childOwner=o.owner,this.childScope=o.scope),d&&(this.isScoped=!0,this.childScope=new mt(d,this.childScope||this.scope)),o.slotChildren.push(this)}function te(t,e,n){this.parent=t.scope,this.raw={},this.listeners=[],this.directive=t.aNode.directives.for,this.indexName=this.directive.index||"$index",this.raw[this.directive.item]=e,this.raw[this.indexName]=n}function ee(t,e,n,o,a){this.aNode=t,this.owner=o,this.scope=n,this.parent=e,this.parentComponent=5===e.nodeType?e:e.parentComponent,this.id=i++,this.children=[],this.param=t.directives.for,this.itemPaths=[{type:1,value:this.param.item}],this.itemExpr={type:4,paths:this.itemPaths,raw:this.param.item},this.param.index&&(this.indexExpr=C([{type:1,value:""+this.param.index}]))}function ne(t,e,n,o,a){this.aNode=t,this.owner=o,this.scope=n,this.parent=e,this.parentComponent=5===e.nodeType?e:e.parentComponent,this.id=i++,this.children=[]}function ie(t,e,n,o,a){this.aNode=t,this.owner=o,this.scope=n,this.parent=e,this.parentComponent=5===e.nodeType?e:e.parentComponent,this.id=i++,this.lifeCycle=it.start,this.children=[]}function oe(t,e){var n=[];function i(t,e){var i=function t(e,n){var i,o=[];function a(e,n){for(var a=0,r=e.length;a<r;a++)o=o.concat(t(e[a],n)),i=i||e[a].dynamic}switch(e.type){case 4:i=n;var r=e.paths;o.push(r[0].value),r.length>1&&o.push(r[0].value+"."+(r[1].value||"*")),a(r.slice(1),1);break;case 9:o=t(e.expr,n),i=e.expr.dynamic;break;case 7:case 8:case 10:a(e.segs,n);break;case 5:o=t(e.expr),i=e.expr.dynamic,s(e.filters,(function(t){a(t.name.paths),a(t.args)}));break;case 6:a(e.name.paths),a(e.args);break;case 12:case 11:for(var l=0;l<e.items.length;l++)o=o.concat(t(e.items[l].expr)),i=i||e.items[l].expr.dynamic}return i&&(e.dynamic=!0),o}(t);if(i.length)for(var o=0,a=n.length;o<a;o++)if(!e||o!==a-1){var r=n[o].hotspot.data;r||(r=n[o].hotspot.data={}),s(i,(function(t){r[t]=1}))}}t&&function t(o){if(!o.hotspot){if(n.push(o),o.textExpr)o.hotspot={},o.Clazz=Xt,i(o.textExpr);else{var r;for(var l in At&&o.tagName&&o.tagName.indexOf("-")<0&&!/^(template|slot|select|input|option|button|video|audio|canvas|img|embed|object|iframe)$/i.test(o.tagName)&&(r=h(o.tagName)),o.hotspot={dynamicProps:[],xProps:[],props:{},binds:[],sourceNode:r},s(o.vars,(function(t){i(t.expr)})),s(o.props,(function(t){o.hotspot.binds.push({name:S(t.name),expr:null!=t.noValue?{type:3,value:!0}:t.expr,x:t.x,noValue:t.noValue}),i(t.expr)})),o.directives)if(o.directives.hasOwnProperty(l)){var d=o.directives[l];if(i(d.value,!/^(html|bind)$/.test(l)),"for"===l){var c=d.trackBy;c&&4===c.type&&c.paths[0].value===d.item&&(o.hotspot.getForKey=new Function(d.item,"return "+d.trackByRaw))}}if(s(o.elses,(function(e){t(e)})),s(o.children,(function(e){t(e)})),s(o.props,(function(t,e){o.hotspot.props[t.name]=e,t.handler=ht(o.tagName,t.name),null!=t.expr.value?r&&t.handler(r,t.expr.value,t.name,o):(t.x&&o.hotspot.xProps.push(t),o.hotspot.dynamicProps.push(t))})),"option"===o.tagName&&!ot(o,"value")&&o.children[0]){var u={name:"value",expr:o.children[0].textExpr,handler:ht(o.tagName,"value")};o.props.push(u),o.hotspot.dynamicProps.push(u),o.hotspot.props.value=o.props.length-1}switch(o.directives.if&&(o.ifRinsed={children:o.children,props:o.props,events:o.events,tagName:o.tagName,vars:o.vars,hotspot:o.hotspot,directives:a({},o.directives)},o.hotspot.hasRootNode=!0,o.Clazz=ne,(o=o.ifRinsed).directives.if=null),o.directives.for&&(o.forRinsed={children:o.children,props:o.props,events:o.events,tagName:o.tagName,vars:o.vars,hotspot:o.hotspot,directives:a({},o.directives)},o.hotspot.hasRootNode=!0,o.Clazz=ee,o.forRinsed.directives.for=null,o=o.forRinsed),o.tagName){case"slot":o.Clazz=Jt;break;case"template":case"fragment":o.hotspot.hasRootNode=!0,o.Clazz=ie;break;default:qt[o.tagName]&&(o.directives.is||e&&e.components[o.tagName]||(o.Clazz=_t))}}n.pop()}}(t)}Xt.prototype._update=function(t){if(!this.aNode.textExpr.value)for(var e=t.length;e--;)if(et(t[e].expr,this.aNode.textExpr,this.scope)){var n=K(this.aNode.textExpr,this.scope,this.owner);if(null==n&&(n=""),n!==this.content)if(this.content=n,this.aNode.textExpr.original){for(var i=this.sel.nextSibling,o=this.el.parentNode;i!==this.el;){var a=i;i=i.nextSibling,f(a)}var r=document.createElement("script");o.insertBefore(r,this.el),r.insertAdjacentHTML("beforebegin",n),o.removeChild(r)}else this.el[Qt]=n;return}},Jt.prototype.nodeType=6,Jt.prototype.dispose=function(t,e){this.childOwner=null,this.childScope=null,jt(this.children,t,e),t||(f(this.el),f(this.sel)),this.sel=null,this.el=null,this.owner=null,this.scope=null,this.children=null,this.lifeCycle=it.disposed,this._ondisposed&&this._ondisposed()},Jt.prototype.attach=Kt,Jt.prototype._update=function(t,e){var n=this;if(this.nameBind&&K(this.nameBind.expr,this.scope,this.owner)!==this.name)return this.owner._notifyNeedReload(),!1;if(e){if(this.isInserted)for(var i=0;i<this.children.length;i++)this.children[i]._update(t)}else if(this.isScoped){var o={};s(this.aNode.vars,(function(t){o[t.name]=1,n.childScope.set(t.name,K(t.expr,n.scope,n.owner))}));