webpackJsonp([5],{1020:function(t,e,n){"use strict";(function(t){if(n(1021),n(1136),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0}).call(e,n(872))},1021:function(t,e,n){n(1022),n(1024),n(1027),n(1029),n(1030),n(1031),n(1032),n(1033),n(1034),n(1035),n(1036),n(1037),n(1038),n(1039),n(1040),n(1041),n(1042),n(1043),n(1044),n(1046),n(1047),n(1048),n(1049),n(1050),n(1051),n(1052),n(1053),n(1054),n(1055),n(1056),n(1057),n(1058),n(1059),n(1060),n(1061),n(1062),n(1063),n(1064),n(1065),n(1066),n(1067),n(1068),n(1069),n(1070),n(1071),n(1072),n(1073),n(1074),n(1075),n(1076),n(1077),n(1078),n(1079),n(1080),n(1081),n(1082),n(887),n(1083),n(1084),n(1086),n(1088),n(1089),n(1090),n(1091),n(1092),n(1093),n(1094),n(1095),n(1096),n(1099),n(1100),n(1101),n(1102),n(1103),n(1104),n(1105),n(1106),n(1107),n(1108),n(1109),n(1110),n(1111),n(1112),n(1113),n(1114),n(1115),n(1116),n(1117),n(1118),n(1119),n(1120),n(1121),n(1122),n(1123),n(1125),n(1126),n(1127),n(1128),n(1129),n(1130),n(1131),n(1134),n(1135),t.exports=n(115)},1022:function(t,e,n){"use strict";var i,r=n(15),o=n(3),a=n(78),s=n(137),l=n(873),c=n(874),u=n(66),d=n(116),h=n(394),f=n(42),p=n(26),m=n(227),g=n(22),v=n(117),y=n(80),E=n(250),b=n(251),_=n(67),C=n(395),T=n(226)("__proto__"),I=n(396),D=n(876)(!1),$=Object.prototype,O=Array.prototype,w=O.slice,R=O.join,k=r.setDesc,x=r.getDesc,S=r.setDescs,A={};a||(i=!f(function(){return 7!=k(c("div"),"a",{get:function(){return 7}}).a}),r.setDesc=function(t,e,n){if(i)try{return k(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(p(t)[e]=n.value),t},r.getDesc=function(t,e){if(i)try{return x(t,e)}catch(n){}if(u(t,e))return s(!$.propertyIsEnumerable.call(t,e),t[e])},r.setDescs=S=function(t,e){p(t);for(var n,i=r.getKeys(e),o=i.length,a=0;o>a;)r.setDesc(t,n=i[a++],e[n]);return t}),o(o.S+o.F*!a,"Object",{getOwnPropertyDescriptor:r.getDesc,defineProperty:r.setDesc,defineProperties:S});var N="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),P=N.concat("length","prototype"),M=N.length,K=function(){var t,e=c("iframe"),n=M;for(e.style.display="none",l.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),K=t.F;n--;)delete K.prototype[N[n]];return K()},L=function(t,e){return function(n){var i,r=y(n),o=0,a=[];for(i in r)i!=T&&u(r,i)&&a.push(i);for(;e>o;)u(r,i=t[o++])&&(~D(a,i)||a.push(i));return a}},F=function(){};o(o.S,"Object",{getPrototypeOf:r.getProto=r.getProto||function(t){return t=v(t),u(t,T)?t[T]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?$:null},getOwnPropertyNames:r.getNames=r.getNames||L(P,P.length),create:r.create=r.create||function(t,e){var n;return null!==t?(F.prototype=p(t),n=new F,F.prototype=null,n[T]=t):n=K(),e===undefined?n:S(n,e)},keys:r.getKeys=r.getKeys||L(N,M)});var B=function(t,e,n){if(!(e in A)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";A[e]=Function("F,a","return new F("+i.join(",")+")")}return A[e](t,n)};o(o.P,"Function",{bind:function(t){var e=m(this),n=w.call(arguments,1),i=function(){var r=n.concat(w.call(arguments));return this instanceof i?B(e,r.length,r):h(e,r,t)};return g(e.prototype)&&(i.prototype=e.prototype),i}}),o(o.P+o.F*f(function(){l&&w.call(l)}),"Array",{slice:function(t,e){var n=_(this.length),i=d(this);if(e=e===undefined?n:e,"Array"==i)return w.call(this,t,e);for(var r=b(t,n),o=b(e,n),a=_(o-r),s=Array(a),l=0;l<a;l++)s[l]="String"==i?this.charAt(r+l):this[r+l];return s}}),o(o.P+o.F*(C!=Object),"Array",{join:function(t){return R.call(C(this),t===undefined?",":t)}}),o(o.S,"Array",{isArray:n(440)});var j=function(t){return function(e,n){m(e);var i=C(this),r=_(i.length),o=t?r-1:0,a=t?-1:1;if(arguments.length<2)for(;;){if(o in i){n=i[o],o+=a;break}if(o+=a,t?o<0:r<=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?o>=0:r>o;o+=a)o in i&&(n=e(n,i[o],o,this));return n}},V=function(t){return function(e){return t(this,e,arguments[1])}};o(o.P,"Array",{forEach:r.each=r.each||V(I(0)),map:V(I(1)),filter:V(I(2)),some:V(I(3)),every:V(I(4)),reduce:j(!1),reduceRight:j(!0),indexOf:V(D),lastIndexOf:function(t,e){var n=y(this),i=_(n.length),r=i-1;for(arguments.length>1&&(r=Math.min(r,E(e))),r<0&&(r=_(i+r));r>=0;r--)if(r in n&&n[r]===t)return r;return-1}}),o(o.S,"Date",{now:function(){return+new Date}});var H=function(t){return t>9?t:"0"+t};o(o.P+o.F*(f(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!f(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+H(t.getUTCMonth()+1)+"-"+H(t.getUTCDate())+"T"+H(t.getUTCHours())+":"+H(t.getUTCMinutes())+":"+H(t.getUTCSeconds())+"."+(n>99?n:"0"+H(n))+"Z"}})},1023:function(t,e,n){var i=n(22),r=n(440),o=n(28)("species");t.exports=function(t,e){var n;return r(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!r(n.prototype)||(n=undefined),i(n)&&null===(n=n[o])&&(n=undefined)),new(n===undefined?Array:n)(e)}},1024:function(t,e,n){"use strict";var i=n(15),r=n(32),o=n(66),a=n(78),s=n(3),l=n(79),c=n(42),u=n(875),d=n(252),h=n(226),f=n(28),p=n(1025),m=n(877),g=n(1026),v=n(440),y=n(26),E=n(80),b=n(137),_=i.getDesc,C=i.setDesc,T=i.create,I=m.get,D=r.Symbol,$=r.JSON,O=$&&$.stringify,w=!1,R=f("_hidden"),k=i.isEnum,x=u("symbol-registry"),S=u("symbols"),A="function"==typeof D,N=Object.prototype,P=a&&c(function(){return 7!=T(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=_(N,e);i&&delete N[e],C(t,e,n),i&&t!==N&&C(N,e,i)}:C,M=function(t){var e=S[t]=T(D.prototype);return e._k=t,a&&w&&P(N,t,{configurable:!0,set:function(e){o(this,R)&&o(this[R],t)&&(this[R][t]=!1),P(this,t,b(1,e))}}),e},K=function(t){return"symbol"==typeof t},L=function(t,e,n){return n&&o(S,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=T(n,{enumerable:b(0,!1)})):(o(t,R)||C(t,R,b(1,{})),t[R][e]=!0),P(t,e,n)):C(t,e,n)},F=function(t,e){y(t);for(var n,i=g(e=E(e)),r=0,o=i.length;o>r;)L(t,n=i[r++],e[n]);return t},B=function(t,e){return e===undefined?T(t):F(T(t),e)},j=function(t){var e=k.call(this,t);return!(e||!o(this,t)||!o(S,t)||o(this,R)&&this[R][t])||e},V=function(t,e){var n=_(t=E(t),e);return!n||!o(S,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n},H=function(t){for(var e,n=I(E(t)),i=[],r=0;n.length>r;)o(S,e=n[r++])||e==R||i.push(e);return i},U=function(t){for(var e,n=I(E(t)),i=[],r=0;n.length>r;)o(S,e=n[r++])&&i.push(S[e]);return i},z=function(t){if(t!==undefined&&!K(t)){for(var e,n,i=[t],r=1,o=arguments;o.length>r;)i.push(o[r++]);return e=i[1],"function"==typeof e&&(n=e),!n&&v(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!K(e))return e}),i[1]=e,O.apply($,i)}},G=c(function(){var t=D();return"[null]"!=O([t])||"{}"!=O({a:t})||"{}"!=O(Object(t))});A||(D=function(){if(K(this))throw TypeError("Symbol is not a constructor");return M(h(arguments.length>0?arguments[0]:undefined))},l(D.prototype,"toString",function(){return this._k}),K=function(t){return t instanceof D},i.create=B,i.isEnum=j,i.getDesc=V,i.setDesc=L,i.setDescs=F,i.getNames=m.get=H,i.getSymbols=U,a&&!n(441)&&l(N,"propertyIsEnumerable",j,!0));var q={"for":function(t){return o(x,t+="")?x[t]:x[t]=D(t)},keyFor:function(t){return p(x,t)},useSetter:function(){w=!0},useSimple:function(){w=!1}};i.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=f(t);q[t]=A?e:M(e)}),w=!0,s(s.G+s.W,{Symbol:D}),s(s.S,"Symbol",q),s(s.S+s.F*!A,"Object",{create:B,defineProperty:L,defineProperties:F,getOwnPropertyDescriptor:V,getOwnPropertyNames:H,getOwnPropertySymbols:U}),$&&s(s.S+s.F*(!A||G),"JSON",{stringify:z}),d(D,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},1025:function(t,e,n){var i=n(15),r=n(80);t.exports=function(t,e){for(var n,o=r(t),a=i.getKeys(o),s=a.length,l=0;s>l;)if(o[n=a[l++]]===e)return n}},1026:function(t,e,n){var i=n(15);t.exports=function(t){var e=i.getKeys(t),n=i.getSymbols;if(n)for(var r,o=n(t),a=i.isEnum,s=0;o.length>s;)a.call(t,r=o[s++])&&e.push(r);return e}},1027:function(t,e,n){var i=n(3);i(i.S+i.F,"Object",{assign:n(1028)})},1028:function(t,e,n){var i=n(15),r=n(117),o=n(395);t.exports=n(42)(function(){var t=Object.assign,e={},n={},i=Symbol(),r="abcdefghijklmnopqrst";return e[i]=7,r.split("").forEach(function(t){n[t]=t}),7!=t({},e)[i]||Object.keys(t({},n)).join("")!=r})?function(t,e){for(var n=r(t),a=arguments,s=a.length,l=1,c=i.getKeys,u=i.getSymbols,d=i.isEnum;s>l;)for(var h,f=o(a[l++]),p=u?c(f).concat(u(f)):c(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:Object.assign},1029:function(t,e,n){var i=n(3);i(i.S,"Object",{is:n(878)})},1030:function(t,e,n){var i=n(3);i(i.S,"Object",{setPrototypeOf:n(442).set})},1031:function(t,e,n){"use strict";var i=n(397),r={};r[n(28)("toStringTag")]="z",r+""!="[object z]"&&n(79)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},1032:function(t,e,n){var i=n(22);n(81)("freeze",function(t){return function(e){return t&&i(e)?t(e):e}})},1033:function(t,e,n){var i=n(22);n(81)("seal",function(t){return function(e){return t&&i(e)?t(e):e}})},1034:function(t,e,n){var i=n(22);n(81)("preventExtensions",function(t){return function(e){return t&&i(e)?t(e):e}})},1035:function(t,e,n){var i=n(22);n(81)("isFrozen",function(t){return function(e){return!i(e)||!!t&&t(e)}})},1036:function(t,e,n){var i=n(22);n(81)("isSealed",function(t){return function(e){return!i(e)||!!t&&t(e)}})},1037:function(t,e,n){var i=n(22);n(81)("isExtensible",function(t){return function(e){return!!i(e)&&(!t||t(e))}})},1038:function(t,e,n){var i=n(80);n(81)("getOwnPropertyDescriptor",function(t){return function(e,n){return t(i(e),n)}})},1039:function(t,e,n){var i=n(117);n(81)("getPrototypeOf",function(t){return function(e){return t(i(e))}})},1040:function(t,e,n){var i=n(117);n(81)("keys",function(t){return function(e){return t(i(e))}})},1041:function(t,e,n){n(81)("getOwnPropertyNames",function(){return n(877).get})},1042:function(t,e,n){var i=n(15).setDesc,r=n(137),o=n(66),a=Function.prototype,s=/^\s*function ([^ (]*)/;"name"in a||n(78)&&i(a,"name",{configurable:!0,get:function(){var t=(""+this).match(s),e=t?t[1]:"";return o(this,"name")||i(this,"name",r(5,e)),e}})},1043:function(t,e,n){"use strict";var i=n(15),r=n(22),o=n(28)("hasInstance"),a=Function.prototype;o in a||i.setDesc(a,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i.getProto(t);)if(this.prototype===t)return!0;return!1}})},1044:function(t,e,n){"use strict";var i=n(15),r=n(32),o=n(66),a=n(116),s=n(1045),l=n(42),c=n(398).trim,u=r.Number,d=u,h=u.prototype,f="Number"==a(i.create(h)),p="trim"in String.prototype,m=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=p?e.trim():c(e,3);var n,i,r,o=e.charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,l=e.slice(2),u=0,d=l.length;u<d;u++)if((a=l.charCodeAt(u))<48||a>r)return NaN;return parseInt(l,i)}}return+e};u(" 0o1")&&u("0b1")&&!u("+0x1")||(u=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof u&&(f?l(function(){h.valueOf.call(n)}):"Number"!=a(n))?new d(m(e)):m(e)},i.each.call(n(78)?i.getNames(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){o(d,t)&&!o(u,t)&&i.setDesc(u,t,i.getDesc(d,t))}),u.prototype=h,h.constructor=u,n(79)(r,"Number",u))},1045:function(t,e,n){var i=n(22);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},1046:function(t,e,n){var i=n(3);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},1047:function(t,e,n){var i=n(3),r=n(32).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},1048:function(t,e,n){var i=n(3);i(i.S,"Number",{isInteger:n(879)})},1049:function(t,e,n){var i=n(3);i(i.S,"Number",{isNaN:function(t){return t!=t}})},1050:function(t,e,n){var i=n(3),r=n(879),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},1051:function(t,e,n){var i=n(3);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},1052:function(t,e,n){var i=n(3);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},1053:function(t,e,n){var i=n(3);i(i.S,"Number",{parseFloat:parseFloat})},1054:function(t,e,n){var i=n(3);i(i.S,"Number",{parseInt:parseInt})},1055:function(t,e,n){var i=n(3),r=n(880),o=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},1056:function(t,e,n){function i(t){return isFinite(t=+t)&&0!=t?t<0?-i(-t):Math.log(t+Math.sqrt(t*t+1)):t}var r=n(3);r(r.S,"Math",{asinh:i})},1057:function(t,e,n){var i=n(3);i(i.S,"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},1058:function(t,e,n){var i=n(3),r=n(443);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},1059:function(t,e,n){var i=n(3);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},1060:function(t,e,n){var i=n(3),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},1061:function(t,e,n){var i=n(3);i(i.S,"Math",{expm1:n(444)})},1062:function(t,e,n){var i=n(3),r=n(443),o=Math.pow,a=o(2,-52),s=o(2,-23),l=o(2,127)*(2-s),c=o(2,-126),u=function(t){return t+1/a-1/a};i(i.S,"Math",{fround:function(t){var e,n,i=Math.abs(t),o=r(t);return i<c?o*u(i/c/s)*c*s:(e=(1+s/a)*i,n=e-(e-i),n>l||n!=n?o*Infinity:o*n)}})},1063:function(t,e,n){var i=n(3),r=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,o=0,a=0,s=arguments,l=s.length,c=0;a<l;)n=r(s[a++]),c<n?(i=c/n,o=o*i*i+1,c=n):n>0?(i=n/c,o+=i*i):o+=n;return c===Infinity?Infinity:c*Math.sqrt(o)}})},1064:function(t,e,n){var i=n(3),r=Math.imul;i(i.S+i.F*n(42)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},1065:function(t,e,n){var i=n(3);i(i.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},1066:function(t,e,n){var i=n(3);i(i.S,"Math",{log1p:n(880)})},1067:function(t,e,n){var i=n(3);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},1068:function(t,e,n){var i=n(3);i(i.S,"Math",{sign:n(443)})},1069:function(t,e,n){var i=n(3),r=n(444),o=Math.exp;i(i.S+i.F*n(42)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},1070:function(t,e,n){var i=n(3),r=n(444),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==Infinity?1:n==Infinity?-1:(e-n)/(o(t)+o(-t))}})},1071:function(t,e,n){var i=n(3);i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},1072:function(t,e,n){var i=n(3),r=n(251),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments,a=i.length,s=0;a>s;){if(e=+i[s++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},1073:function(t,e,n){var i=n(3),r=n(80),o=n(67);i(i.S,"String",{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments,a=i.length,s=[],l=0;n>l;)s.push(String(e[l++])),l<a&&s.push(String(i[l]));return s.join("")}})},1074:function(t,e,n){"use strict";n(398)("trim",function(t){return function(){return t(this,3)}})},1075:function(t,e,n){"use strict";var i=n(445)(!0);n(446)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:undefined,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},1076:function(t,e,n){"use strict";var i=n(3),r=n(445)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},1077:function(t,e,n){"use strict";var i=n(3),r=n(67),o=n(447),a="".endsWith;i(i.P+i.F*n(448)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments,i=n.length>1?n[1]:undefined,s=r(e.length),l=i===undefined?s:Math.min(r(i),s),c=String(t);return a?a.call(e,c,l):e.slice(l-c.length,l)===c}})},1078:function(t,e,n){"use strict";var i=n(3),r=n(447);i(i.P+i.F*n(448)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:undefined)}})},1079:function(t,e,n){var i=n(3);i(i.P,"String",{repeat:n(883)})},1080:function(t,e,n){"use strict";var i=n(3),r=n(67),o=n(447),a="".startsWith;i(i.P+i.F*n(448)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=arguments,i=r(Math.min(n.length>1?n[1]:undefined,e.length)),s=String(t);return a?a.call(e,s,i):e.slice(i,i+s.length)===s}})},1081:function(t,e,n){"use strict";var i=n(93),r=n(3),o=n(117),a=n(884),s=n(885),l=n(67),c=n(886);r(r.S+r.F*!n(449)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,u,d=o(t),h="function"==typeof this?this:Array,f=arguments,p=f.length,m=p>1?f[1]:undefined,g=m!==undefined,v=0,y=c(d);if(g&&(m=i(m,p>2?f[2]:undefined,2)),y==undefined||h==Array&&s(y))for(e=l(d.length),n=new h(e);e>v;v++)n[v]=g?m(d[v],v):d[v];else for(u=y.call(d),n=new h;!(r=u.next()).done;v++)n[v]=g?a(u,m,[r.value,v],!0):r.value;return n.length=v,n}})},1082:function(t,e,n){"use strict";var i=n(3);i(i.S+i.F*n(42)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments,n=e.length,i=new("function"==typeof this?this:Array)(n);n>t;)i[t]=e[t++];return i.length=n,i}})},1083:function(t,e,n){n(399)("Array")},1084:function(t,e,n){var i=n(3);i(i.P,"Array",{copyWithin:n(1085)}),n(228)("copyWithin")},1085:function(t,e,n){"use strict";var i=n(117),r=n(251),o=n(67);t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),l=r(e,a),c=arguments,u=c.length>2?c[2]:undefined,d=Math.min((u===undefined?a:r(u,a))-l,a-s),h=1;for(l<s&&s<l+d&&(h=-1,l+=d-1,s+=d-1);d-- >0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},1086:function(t,e,n){var i=n(3);i(i.P,"Array",{fill:n(1087)}),n(228)("fill")},1087:function(t,e,n){"use strict";var i=n(117),r=n(251),o=n(67);t.exports=[].fill||function(t){for(var e=i(this),n=o(e.length),a=arguments,s=a.length,l=r(s>1?a[1]:undefined,n),c=s>2?a[2]:undefined,u=c===undefined?n:r(c,n);u>l;)e[l++]=t;return e}},1088:function(t,e,n){"use strict";var i=n(3),r=n(396)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:undefined)}}),n(228)("find")},1089:function(t,e,n){"use strict";var i=n(3),r=n(396)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:undefined)}}),n(228)(o)},1090:function(t,e,n){var i=n(15),r=n(32),o=n(882),a=n(889),s=r.RegExp,l=s,c=s.prototype,u=/a/g,d=/a/g,h=new s(u)!==u;!n(78)||h&&!n(42)(function(){return d[n(28)("match")]=!1,s(u)!=u||s(d)==d||"/a/i"!=s(u,"i")})||(s=function(t,e){var n=o(t),i=e===undefined;return this instanceof s||!n||t.constructor!==s||!i?h?new l(n&&!i?t.source:t,e):l((n=t instanceof s)?t.source:t,n&&i?a.call(t):e):t},i.each.call(i.getNames(l),function(t){t in s||i.setDesc(s,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})}),c.constructor=s,s.prototype=c,n(79)(r,"RegExp",s)),n(399)("RegExp")},1091:function(t,e,n){var i=n(15);n(78)&&"g"!=/./g.flags&&i.setDesc(RegExp.prototype,"flags",{configurable:!0,get:n(889)})},1092:function(t,e,n){n(400)("match",1,function(t,e){return function(n){"use strict";var i=t(this),r=n==undefined?undefined:n[e];return r!==undefined?r.call(n,i):new RegExp(n)[e](String(i))}})},1093:function(t,e,n){n(400)("replace",2,function(t,e,n){return function(i,r){"use strict";var o=t(this),a=i==undefined?undefined:i[e];return a!==undefined?a.call(i,o,r):n.call(String(o),i,r)}})},1094:function(t,e,n){n(400)("search",1,function(t,e){return function(n){"use strict";var i=t(this),r=n==undefined?undefined:n[e];return r!==undefined?r.call(n,i):new RegExp(n)[e](String(i))}})},1095:function(t,e,n){n(400)("split",2,function(t,e,n){return function(i,r){"use strict";var o=t(this),a=i==undefined?undefined:i[e];return a!==undefined?a.call(i,o,r):n.call(String(o),i,r)}})},1096:function(t,e,n){"use strict";var i,r=n(15),o=n(441),a=n(32),s=n(93),l=n(397),c=n(3),u=n(22),d=n(26),h=n(227),f=n(401),p=n(254),m=n(442).set,g=n(878),v=n(28)("species"),y=n(1097),E=n(1098),b=a.process,_="process"==l(b),C=a.Promise,T=function(){},I=function(t){var e,n=new C(T);return t&&(n.constructor=function(t){t(T,T)}),(e=C.resolve(n))["catch"](T),e===n},D=function(){function t(e){var n=new C(e);return m(n,t.prototype),n}var e=!1;try{if(e=C&&C.resolve&&I(),m(t,C),t.prototype=r.create(C.prototype,{constructor:{value:t}}),t.resolve(5).then(function(){})instanceof t||(e=!1),e&&n(78)){var i=!1;C.resolve(r.setDesc({},"then",{get:function(){i=!0}})),e=i}}catch(o){e=!1}return e}(),$=function(t,e){return!(!o||t!==C||e!==i)||g(t,e)},O=function(t){var e=d(t)[v];return e!=undefined?e:t},w=function(t){var e;return!(!u(t)||"function"!=typeof(e=t.then))&&e},R=function(t){var e,n;this.promise=new t(function(t,i){if(e!==undefined||n!==undefined)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=h(e),this.reject=h(n)},k=function(t){try{t()}catch(e){return{error:e}}},x=function(t,e){if(!t.n){t.n=!0;var n=t.c;E(function(){for(var i=t.v,r=1==t.s,o=0;n.length>o;)!function(e){var n,o,a=r?e.ok:e.fail,s=e.resolve,l=e.reject;try{a?(r||(t.h=!0),n=!0===a?i:a(i),n===e.promise?l(TypeError("Promise-chain cycle")):(o=w(n))?o.call(n,s,l):s(n)):l(i)}catch(c){l(c)}}(n[o++]);n.length=0,t.n=!1,e&&setTimeout(function(){var e,n,r=t.p;S(r)&&(_?b.emit("unhandledRejection",i,r):(e=a.onunhandledrejection)?e({promise:r,reason:i}):(n=a.console)&&n.error&&n.error("Unhandled promise rejection",i)),t.a=undefined},1)})}},S=function(t){var e,n=t._d,i=n.a||n.c,r=0;if(n.h)return!1;for(;i.length>r;)if(e=i[r++],e.fail||!S(e.promise))return!1;return!0},A=function(t){var e=this;e.d||(e.d=!0,e=e.r||e,e.v=t,e.s=2,e.a=e.c.slice(),x(e,!0))},N=function(t){var e,n=this;if(!n.d){n.d=!0,n=n.r||n;try{if(n.p===t)throw TypeError("Promise can't be resolved itself");(e=w(t))?E(function(){var i={r:n,d:!1};try{e.call(t,s(N,i,1),s(A,i,1))}catch(r){A.call(i,r)}}):(n.v=t,n.s=1,x(n,!1))}catch(i){A.call({r:n,d:!1},i)}}};D||(C=function(t){h(t);var e=this._d={p:f(this,C,"Promise"),c:[],a:undefined,s:0,d:!1,v:undefined,h:!1,n:!1};try{t(s(N,e,1),s(A,e,1))}catch(n){A.call(e,n)}},n(402)(C.prototype,{then:function(t,e){var n=new R(y(this,C)),i=n.promise,r=this._d;return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,r.c.push(n),r.a&&r.a.push(n),r.s&&x(r,!1),i},"catch":function(t){return this.then(undefined,t)}})),c(c.G+c.W+c.F*!D,{Promise:C}),n(252)(C,"Promise"),n(399)("Promise"),i=n(115).Promise,c(c.S+c.F*!D,"Promise",{reject:function(t){var e=new R(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(!D||I(!0)),"Promise",{resolve:function(t){if(t instanceof C&&$(t.constructor,this))return t;var e=new R(this);return(0,e.resolve)(t),e.promise}}),c(c.S+c.F*!(D&&n(449)(function(t){C.all(t)["catch"](function(){})})),"Promise",{all:function(t){var e=O(this),n=new R(e),i=n.resolve,o=n.reject,a=[],s=k(function(){p(t,!1,a.push,a);var n=a.length,s=Array(n);n?r.each.call(a,function(t,r){var a=!1;e.resolve(t).then(function(t){a||(a=!0,s[r]=t,--n||i(s))},o)}):i(s)});return s&&o(s.error),n.promise},race:function(t){var e=O(this),n=new R(e),i=n.reject,r=k(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r&&i(r.error),n.promise}})},1097:function(t,e,n){var i=n(26),r=n(227),o=n(28)("species");t.exports=function(t,e){var n,a=i(t).constructor;return a===undefined||(n=i(a)[o])==undefined?e:r(n)}},1098:function(t,e,n){var i,r,o,a=n(32),s=n(890).set,l=a.MutationObserver||a.WebKitMutationObserver,c=a.process,u=a.Promise,d="process"==n(116)(c),h=function(){var t,e,n;for(d&&(t=c.domain)&&(c.domain=null,t.exit());i;)e=i.domain,n=i.fn,e&&e.enter(),n(),e&&e.exit(),i=i.next;r=undefined,t&&t.enter()};if(d)o=function(){c.nextTick(h)};else if(l){var f=1,p=document.createTextNode("");new l(h).observe(p,{characterData:!0}),o=function(){p.data=f=-f}}else o=u&&u.resolve?function(){u.resolve().then(h)}:function(){s.call(a,h)};t.exports=function(t){var e={fn:t,next:undefined,domain:d&&c.domain};r&&(r.next=e),i||(i=e,o()),r=e}},1099:function(t,e,n){"use strict";var i=n(891);n(403)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:undefined)}},{get:function(t){var e=i.getEntry(this,t);return e&&e.v},set:function(t,e){return i.def(this,0===t?0:t,e)}},i,!0)},1100:function(t,e,n){"use strict";var i=n(891);n(403)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:undefined)}},{add:function(t){return i.def(this,t=0===t?0:t,t)}},i)},1101:function(t,e,n){"use strict";var i=n(15),r=n(79),o=n(892),a=n(22),s=n(66),l=o.frozenStore,c=o.WEAK,u=Object.isExtensible||a,d={},h=n(403)("WeakMap",function(t){return function(){return t(this,arguments.length>0?arguments[0]:undefined)}},{get:function(t){if(a(t)){if(!u(t))return l(this).get(t);if(s(t,c))return t[c][this._i]}},set:function(t,e){return o.def(this,t,e)}},o,!0,!0);7!=(new h).set((Object.freeze||Object)(d),7).get(d)&&i.each.call(["delete","has","get","set"],function(t){var e=h.prototype,n=e[t];r(e,t,function(e,i){if(a(e)&&!u(e)){var r=l(this)[t](e,i);return"set"==t?this:r}return n.call(this,e,i)})})},1102:function(t,e,n){"use strict";var i=n(892);n(403)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:undefined)}},{add:function(t){return i.def(this,t,!0)}},i,!1,!0)},1103:function(t,e,n){var i=n(3),r=Function.apply,o=n(26);i(i.S,"Reflect",{apply:function(t,e,n){return r.call(t,e,o(n))}})},1104:function(t,e,n){var i=n(15),r=n(3),o=n(227),a=n(26),s=n(22),l=Function.bind||n(115).Function.prototype.bind;r(r.S+r.F*n(42)(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(l.apply(t,r))}var c=n.prototype,u=i.create(s(c)?c:Object.prototype),d=Function.apply.call(t,u,e);return s(d)?d:u}})},1105:function(t,e,n){var i=n(15),r=n(3),o=n(26);r(r.S+r.F*n(42)(function(){Reflect.defineProperty(i.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t);try{return i.setDesc(t,e,n),!0}catch(r){return!1}}})},1106:function(t,e,n){var i=n(3),r=n(15).getDesc,o=n(26);i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},1107:function(t,e,n){"use strict";var i=n(3),r=n(26),o=function(t){this._t=r(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(881)(o,"Object",function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:undefined,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),i(i.S,"Reflect",{enumerate:function(t){return new o(t)}})},1108:function(t,e,n){function i(t,e){var n,a,c=arguments.length<3?t:arguments[2];return l(t)===c?t[e]:(n=r.getDesc(t,e))?o(n,"value")?n.value:n.get!==undefined?n.get.call(c):undefined:s(a=r.getProto(t))?i(a,e,c):void 0}var r=n(15),o=n(66),a=n(3),s=n(22),l=n(26);a(a.S,"Reflect",{get:i})},1109:function(t,e,n){var i=n(15),r=n(3),o=n(26);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.getDesc(o(t),e)}})},1110:function(t,e,n){var i=n(3),r=n(15).getProto,o=n(26);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},1111:function(t,e,n){var i=n(3);i(i.S,"Reflect",{has:function(t,e){return e in t}})},1112:function(t,e,n){var i=n(3),r=n(26),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},1113:function(t,e,n){var i=n(3);i(i.S,"Reflect",{ownKeys:n(893)})},1114:function(t,e,n){var i=n(3),r=n(26),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(e){return!1}}})},1115:function(t,e,n){function i(t,e,n){var a,u,d=arguments.length<4?t:arguments[3],h=r.getDesc(l(t),e);if(!h){if(c(u=r.getProto(t)))return i(u,e,n,d);h=s(0)}return o(h,"value")?!(!1===h.writable||!c(d))&&(a=r.getDesc(d,e)||s(0),a.value=n,r.setDesc(d,e,a),!0):h.set!==undefined&&(h.set.call(d,n),!0)}var r=n(15),o=n(66),a=n(3),s=n(137),l=n(26),c=n(22);a(a.S,"Reflect",{set:i})},1116:function(t,e,n){var i=n(3),r=n(442);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(n){return!1}}})},1117:function(t,e,n){"use strict";var i=n(3),r=n(876)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:undefined)}}),n(228)("includes")},1118:function(t,e,n){"use strict";var i=n(3),r=n(445)(!0);i(i.P,"String",{at:function(t){return r(this,t)}})},1119:function(t,e,n){"use strict";var i=n(3),r=n(894);i(i.P,"String",{padLeft:function(t){return r(this,t,arguments.length>1?arguments[1]:undefined,!0)}})},1120:function(t,e,n){"use strict";var i=n(3),r=n(894);i(i.P,"String",{padRight:function(t){return r(this,t,arguments.length>1?arguments[1]:undefined,!1)}})},1121:function(t,e,n){"use strict";n(398)("trimLeft",function(t){return function(){return t(this,1)}})},1122:function(t,e,n){"use strict";n(398)("trimRight",function(t){return function(){return t(this,2)}})},1123:function(t,e,n){var i=n(3),r=n(1124)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},1124:function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},1125:function(t,e,n){var i=n(15),r=n(3),o=n(893),a=n(80),s=n(137);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=a(t),l=i.setDesc,c=i.getDesc,u=o(r),d={},h=0;u.length>h;)n=c(r,e=u[h++]),e in d?l(d,e,s(0,n)):d[e]=n;return d}})},1126:function(t,e,n){var i=n(3),r=n(895)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},1127:function(t,e,n){var i=n(3),r=n(895)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},1128:function(t,e,n){var i=n(3);i(i.P,"Map",{toJSON:n(896)("Map")})},1129:function(t,e,n){var i=n(3);i(i.P,"Set",{toJSON:n(896)("Set")})},1130:function(t,e,n){var i=n(15),r=n(3),o=n(93),a=n(115).Array||Array,s={},l=function(t,e){i.each.call(t.split(","),function(t){e==undefined&&t in a?s[t]=a[t]:t in[]&&(s[t]=o(Function.call,[][t],e))})};l("pop,reverse,shift,keys,values,entries",1),l("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),l("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),r(r.S,"Array",s)},1131:function(t,e,n){var i=n(32),r=n(3),o=n(394),a=n(1132),s=i.navigator,l=!!s&&/MSIE .\./.test(s.userAgent),c=function(t){return l?function(e,n){return t(o(a,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};r(r.G+r.B+r.F*l,{setTimeout:c(i.setTimeout),setInterval:c(i.setInterval)})},1132:function(t,e,n){"use strict";var i=n(1133),r=n(394),o=n(227);t.exports=function(){for(var t=o(this),e=arguments.length,n=Array(e),a=0,s=i._,l=!1;e>a;)(n[a]=arguments[a++])===s&&(l=!0);return function(){var i,o=this,a=arguments,c=a.length,u=0,d=0;if(!l&&!c)return r(t,n,o);if(i=n.slice(),l)for(;e>u;u++)i[u]===s&&(i[u]=a[d++]);for(;c>d;)i.push(a[d++]);return r(t,i,o)}}},1133:function(t,e,n){t.exports=n(32)},1134:function(t,e,n){var i=n(3),r=n(890);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},1135:function(t,e,n){n(887);var i=n(32),r=n(92),o=n(253),a=n(28)("iterator"),s=i.NodeList,l=i.HTMLCollection,c=s&&s.prototype,u=l&&l.prototype,d=o.NodeList=o.HTMLCollection=o.Array;c&&!c[a]&&r(c,a,d),u&&!u[a]&&r(u,a,d)},1136:function(t,e,n){(function(e,n){!function(e){"use strict";function i(t,e,n,i){var r=Object.create((e||o).prototype),a=new p(i||[]);return r._invoke=d(t,n,a),r}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(i){return{type:"throw",arg:i}}}function o(){}function a(){}function s(){}function l(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function u(t){function e(e,n){var i=t[e](n),r=i.value;return r instanceof c?Promise.resolve(r.arg).then(o,a):Promise.resolve(r).then(function(t){return i.value=t,i})}function i(t,n){function i(){return e(t,n)}return r=r?r.then(i,i):new Promise(function(t){t(i())})}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var r,o=e.bind(t,"next"),a=e.bind(t,"throw");e.bind(t,"return");this._invoke=i}function d(t,e,n){var i=C;return function(o,a){if(i===I)throw new Error("Generator is already running");if(i===D){if("throw"===o)throw a;return g()}for(;;){var s=n.delegate;if(s){if("return"===o||"throw"===o&&s.iterator[o]===v){n.delegate=null;var l=s.iterator["return"];if(l){var c=r(l,s.iterator,a);if("throw"===c.type){o="throw",a=c.arg;continue}}if("return"===o)continue}var c=r(s.iterator[o],s.iterator,a);if("throw"===c.type){n.delegate=null,o="throw",a=c.arg;continue}o="next",a=v;var u=c.arg;if(!u.done)return i=T,u;n[s.resultName]=u.value,n.next=s.nextLoc,n.delegate=null}if("next"===o)n._sent=a,n.sent=i===T?a:v;else if("throw"===o){if(i===C)throw i=D,a;n.dispatchException(a)&&(o="next",a=v)}else"return"===o&&n.abrupt("return",a);i=I;var c=r(t,e,n);if("normal"===c.type){i=n.done?D:T;var u={value:c.arg,done:n.done};if(c.arg!==$)return u;n.delegate&&"next"===o&&(a=v)}else"throw"===c.type&&(i=D,o="throw",a=c.arg)}}}function h(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function m(t){if(t){var e=t[E];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(y.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=v,r.done=!0,r};return i.next=i}}return{next:g}}function g(){return{value:v,done:!0}}var v,y=Object.prototype.hasOwnProperty,E="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof t,_=e.regeneratorRuntime;if(_)return void(b&&(t.exports=_));_=e.regeneratorRuntime=b?t.exports:{},_.wrap=i;var C="suspendedStart",T="suspendedYield",I="executing",D="completed",$={},O=s.prototype=o.prototype;a.prototype=O.constructor=s,s.constructor=a,a.displayName="GeneratorFunction",_.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===a||"GeneratorFunction"===(e.displayName||e.name))},_.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s,t.prototype=Object.create(O),t},_.awrap=function(t){return new c(t)},l(u.prototype),_.async=function(t,e,n,r){var o=new u(i(t,e,n,r));return _.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},l(O),O[E]=function(){return this},O.toString=function(){return"[object Generator]"},_.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},_.values=m,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(f),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,i){return o.type="throw",o.arg=t,n.next=e,!!i}if(this.done)throw t;for(var n=this,i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],o=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var a=y.call(r,"catchLoc"),s=y.call(r,"finallyLoc");if(a&&s){if(this.prev<r.catchLoc)return e(r.catchLoc,!0);if(this.prev<r.finallyLoc)return e(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return e(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&y.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?this.next=r.finallyLoc:this.complete(o),$},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),$}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;f(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:m(t),resultName:e,nextLoc:n},$}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n(872),n(1137))},1137:function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function o(t){if(d===clearTimeout)return clearTimeout(t);if((d===i||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){m&&f&&(m=!1,f.length?p=f.concat(p):g=-1,p.length&&s())}function s(){if(!m){var t=r(a);m=!0;for(var e=p.length;e;){for(f=p,p=[];++g<e;)f&&f[g].run();g=-1,e=p.length}f=null,m=!1,o(t)}}function l(t,e){this.fun=t,this.array=e}function c(){}var u,d,h=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{d="function"==typeof clearTimeout?clearTimeout:i}catch(t){d=i}}();var f,p=[],m=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];p.push(new l(t,e)),1!==p.length||m||r(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=c,h.addListener=c,h.once=c,h.off=c,h.removeListener=c,h.removeAllListeners=c,h.emit=c,h.prependListener=c,h.prependOnceListener=c,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},1138:function(t,e,n){var i,r,o;/** * ngModelOptions v1.0.1: ngModelOptions for AngularJS 1.2 * * @author Fergal Doyle * @url https://github.com/fergaldoyle/modelOptions * @license MIT */ !function(a,s){void 0!==t&&t.exports?t.exports=s(n(255)):(r=[n(255)],i=s,(o="function"==typeof i?i.apply(e,r):i)!==undefined&&(t.exports=o))}(window,function(t){t.module("modelOptions",[]).directive("ngModelOptions",function(){return{priority:1,restrict:"A",require:["ngModel"],link:function(e,n,i,r){function o(){var t;switch(c){case"inputradio":t=i.ngValue?e.$eval(i.ngValue):n.val();break;case"inputcheckbox":t=n.prop("checked");break;case"select":t=a();break;default:t=n.val(),i.ngTrim&&"false"===i.ngTrim.toLowerCase()||(t=t.replace(/^\s+|\s+$/g,""))}e.$apply(function(){r[0].$setViewValue(t)})}function a(){if(!i.ngOptions)throw"Must have ng-options";var r,o=i.ngOptions.match(l),a=o[8],s=o[7],c=e.$eval(s),u=n.val();return a?t.forEach(c,function(t,e){t[a.replace(/^.*?\./,"")]==u&&(r=e)}):r=u,/.*\..*/.test(o[1])?e.$eval(o[1].replace(/^.*?\./,s+"["+r+"].")):c[r]}var s,l=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,c=n[0].nodeName.toLowerCase()+(i.type||""),u=[],d={debounce:0,updateOn:"default"},h=t.extend(d,e.$eval(i.ngModelOptions)),f="object"==typeof h.debounce,p=h.updateOn.split(" ");u="inputtext"===c||"textarea"===c?["keydown","input","change"]:"inputradio"===c||"inputcheckbox"===c?["click"]:"select"===c?["change"]:["keydown","input","change"],t.forEach(u,function(t){try{n.off(t)}catch(e){}}),h.updateOn.match(/default/i)&&n.on(u.join(" "),function(t){var e=h.debounce["default"]||h.debounce||0;clearTimeout(s),s=setTimeout(function(){o()},e)}),t.forEach(p,function(t){if("default"!==t){var e;e=f?h.debounce[t]:h.debounce;var i=e;void 0===i&&(i=h.debounce["default"]||0),n.on(t,function(t){clearTimeout(s),s=setTimeout(function(){o()},i)})}})}}})})},1139:function(t,e){/** * @license AngularJS v1.2.28 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ !function(t,e,n){"use strict";e.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(t,i){function r(){var t,r,o,l;for(t in s)u(a[t])&&i.cookies(t,n);for(t in a)r=a[t],e.isString(r)||(r=""+r,a[t]=r),r!==s[t]&&(i.cookies(t,r),l=!0);if(l){l=!1,o=i.cookies();for(t in a)a[t]!==o[t]&&(u(o[t])?delete a[t]:a[t]=o[t],l=!0)}}var o,a={},s={},l=!1,c=e.copy,u=e.isUndefined;return i.addPollFn(function(){var e=i.cookies();o!=e&&(o=e,c(e,s),c(e,a),l&&t.$apply())})(),l=!0,t.$watch(r),a}]).factory("$cookieStore",["$cookies",function(t){return{get:function(n){var i=t[n];return i?e.fromJson(i):i},put:function(n,i){t[n]=e.toJson(i)},remove:function(e){delete t[e]}}}])}(window,window.angular)},1140:function(t,e,n){var i,r,o;!function(a,s){"use strict";r=[n(255)],i=s,(o="function"==typeof i?i.apply(e,r):i)!==undefined&&(t.exports=o)}(0,function(t){"use strict";function e(t,e){var n;try{n=t[e]}catch(r){n=!1}if(n){var i="__"+Math.round(1e7*Math.random());try{t[e].setItem(i,i),t[e].removeItem(i,i)}catch(r){n=!1}}return n}function n(n){var i=e(window,n);return function(){var r="ngStorage-";this.setKeyPrefix=function(t){if("string"!=typeof t)throw new TypeError("[ngStorage] - "+n+"Provider.setKeyPrefix() expects a String.");r=t};var o=t.toJson,a=t.fromJson;this.setSerializer=function(t){if("function"!=typeof t)throw new TypeError("[ngStorage] - "+n+"Provider.setSerializer expects a function.");o=t},this.setDeserializer=function(t){if("function"!=typeof t)throw new TypeError("[ngStorage] - "+n+"Provider.setDeserializer expects a function.");a=t},this.supported=function(){return!!i},this.get=function(t){return i&&a(i.getItem(r+t))},this.set=function(t,e){return i&&i.setItem(r+t,o(e))},this.remove=function(t){i&&i.removeItem(r+t)},this.$get=["$rootScope","$window","$log","$timeout","$document",function(i,s,l,c,u){var d,h,f=r.length,p=e(s,n),m=p||(l.warn("This browser does not support Web Storage!"),{setItem:t.noop,getItem:t.noop,removeItem:t.noop}),g={$default:function(e){for(var n in e)t.isDefined(g[n])||(g[n]=t.copy(e[n]));return g.$sync(),g},$reset:function(t){for(var e in g)"$"===e[0]||delete g[e]&&m.removeItem(r+e);return g.$default(t)},$sync:function(){for(var t,e=0,n=m.length;e<n;e++)(t=m.key(e))&&r===t.slice(0,f)&&(g[t.slice(f)]=a(m.getItem(t)))},$apply:function(){var e;if(h=null,!t.equals(g,d)){e=t.copy(d),t.forEach(g,function(n,i){t.isDefined(n)&&"$"!==i[0]&&(m.setItem(r+i,o(n)),delete e[i])});for(var n in e)m.removeItem(r+n);d=t.copy(g)}},$supported:function(){return!!p}};return g.$sync(),d=t.copy(g),i.$watch(function(){h||(h=c(g.$apply,100,!1))}),s.addEventListener&&s.addEventListener("storage",function(e){if(e.key){var n=u[0];n.hasFocus&&n.hasFocus()||r!==e.key.slice(0,f)||(e.newValue?g[e.key.slice(f)]=a(e.newValue):delete g[e.key.slice(f)],d=t.copy(g),i.$apply())}}),s.addEventListener&&s.addEventListener("beforeunload",function(){g.$apply()}),g}]}}return t=t&&t.module?t:window.angular,t.module("ngStorage",[]).provider("$localStorage",n("localStorage")).provider("$sessionStorage",n("sessionStorage"))})},1141:function(t,e){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.position","ui.bootstrap.datepicker","ui.bootstrap.dropdown","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["template/accordion/accordion-group.html","template/accordion/accordion.html","template/alert/alert.html","template/carousel/carousel.html","template/carousel/slide.html","template/datepicker/datepicker.html","template/datepicker/day.html","template/datepicker/month.html","template/datepicker/popup.html","template/datepicker/year.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/popover/popover.html","template/progressbar/bar.html","template/progressbar/progress.html","template/progressbar/progressbar.html","template/rating/rating.html","template/tabs/tab.html","template/tabs/tabset.html","template/timepicker/timepicker.html","template/typeahead/typeahead-match.html","template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.transition",[]).factory("$transition",["$q","$timeout","$rootScope",function(t,e,n){function i(t){for(var e in t)if(void 0!==o.style[e])return t[e]}var r=function(i,o,a){a=a||{};var s=t.defer(),l=r[a.animation?"animationEndEventName":"transitionEndEventName"],c=function(){n.$apply(function(){i.unbind(l,c),s.resolve(i)})};return l&&i.bind(l,c),e(function(){angular.isString(o)?i.addClass(o):angular.isFunction(o)?o(i):angular.isObject(o)&&i.css(o),l||s.resolve(i)}),s.promise.cancel=function(){l&&i.unbind(l,c),s.reject("Transition cancelled")},s.promise},o=document.createElement("trans"),a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s={WebkitTransition:"webkitAnimationEnd",MozTransition:"animationend",OTransition:"oAnimationEnd",transition:"animationend"};return r.transitionEndEventName=i(a),r.animationEndEventName=i(s),r}]),angular.module("ui.bootstrap.collapse",["ui.bootstrap.transition"]).directive("collapse",["$transition",function(t){return{link:function(e,n,i){function r(e){function i(){c===r&&(c=void 0)}var r=t(n,e);return c&&c.cancel(),c=r,r.then(i,i),r}function o(){u?(u=!1,a()):(n.removeClass("collapse").addClass("collapsing"),r({height:n[0].scrollHeight+"px"}).then(a))}function a(){n.removeClass("collapsing"),n.addClass("collapse in"),n.css({height:"auto"})}function s(){u?(u=!1,l(),n.css({height:0})):(n.css({height:n[0].scrollHeight+"px"}),n[0].offsetWidth,n.removeClass("collapse in").addClass("collapsing"),r({height:0}).then(l))}function l(){n.removeClass("collapsing"),n.addClass("collapse")}var c,u=!0;e.$watch(i.collapse,function(t){t?s():o()})}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("accordionConfig",{closeOthers:!0}).controller("AccordionController",["$scope","$attrs","accordionConfig",function(t,e,n){this.groups=[],this.closeOthers=function(i){(angular.isDefined(e.closeOthers)?t.$eval(e.closeOthers):n.closeOthers)&&angular.forEach(this.groups,function(t){t!==i&&(t.isOpen=!1)})},this.addGroup=function(t){var e=this;this.groups.push(t),t.$on("$destroy",function(){e.removeGroup(t)})},this.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.splice(e,1)}}]).directive("accordion",function(){return{restrict:"EA",controller:"AccordionController",transclude:!0,replace:!1,templateUrl:"template/accordion/accordion.html"}}).directive("accordionGroup",function(){return{require:"^accordion",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/accordion/accordion-group.html",scope:{heading:"@",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(t){this.heading=t}},link:function(t,e,n,i){i.addGroup(t),t.$watch("isOpen",function(e){e&&i.closeOthers(t)}),t.toggleOpen=function(){t.isDisabled||(t.isOpen=!t.isOpen)}}}}).directive("accordionHeading",function(){return{restrict:"EA",transclude:!0,template:"",replace:!0,require:"^accordionGroup",link:function(t,e,n,i,r){i.setHeading(r(t,function(){}))}}}).directive("accordionTransclude",function(){return{require:"^accordionGroup",link:function(t,e,n,i){t.$watch(function(){return i[n.accordionTransclude]},function(t){t&&(e.html(""),e.append(t))})}}}),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(t,e){t.closeable="close"in e,this.close=t.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(t){return{require:"alert",link:function(e,n,i,r){t(function(){r.close()},parseInt(i.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.bindHtml",[]).directive("bindHtmlUnsafe",function(){return function(t,e,n){e.addClass("ng-binding").data("$binding",n.bindHtmlUnsafe),t.$watch(n.bindHtmlUnsafe,function(t){e.html(t||"")})}}),angular.module("ui.bootstrap.buttons",[]).constant("buttonConfig",{activeClass:"active",toggleEvent:"click"}).controller("ButtonsController",["buttonConfig",function(t){this.activeClass=t.activeClass||"active",this.toggleEvent=t.toggleEvent||"click"}]).directive("btnRadio",function(){return{require:["btnRadio","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){var r=i[0],o=i[1];o.$render=function(){e.toggleClass(r.activeClass,angular.equals(o.$modelValue,t.$eval(n.btnRadio)))},e.bind(r.toggleEvent,function(){var i=e.hasClass(r.activeClass);(!i||angular.isDefined(n.uncheckable))&&t.$apply(function(){o.$setViewValue(i?null:t.$eval(n.btnRadio)),o.$render()})})}}}).directive("btnCheckbox",function(){return{require:["btnCheckbox","ngModel"],controller:"ButtonsController",link:function(t,e,n,i){function r(){return a(n.btnCheckboxTrue,!0)}function o(){return a(n.btnCheckboxFalse,!1)}function a(e,n){var i=t.$eval(e);return angular.isDefined(i)?i:n}var s=i[0],l=i[1];l.$render=function(){e.toggleClass(s.activeClass,angular.equals(l.$modelValue,r()))},e.bind(s.toggleEvent,function(){t.$apply(function(){l.$setViewValue(e.hasClass(s.activeClass)?o():r()),l.$render()})})}}}),angular.module("ui.bootstrap.carousel",["ui.bootstrap.transition"]).controller("CarouselController",["$scope","$timeout","$interval","$transition",function(t,e,n,i){function r(){o();var e=+t.interval;!isNaN(e)&&e>0&&(s=n(a,e))}function o(){s&&(n.cancel(s),s=null)}function a(){var e=+t.interval;l&&!isNaN(e)&&e>0?t.next():t.pause()}var s,l,c=this,u=c.slides=t.slides=[],d=-1;c.currentSlide=null;var h=!1;c.select=t.select=function(n,o){function a(){h||(c.currentSlide&&angular.isString(o)&&!t.noTransition&&n.$element?(n.$element.addClass(o),n.$element[0].offsetWidth,angular.forEach(u,function(t){angular.extend(t,{direction:"",entering:!1,leaving:!1,active:!1})}),angular.extend(n,{direction:o,active:!0,entering:!0}),angular.extend(c.currentSlide||{},{direction:o,leaving:!0}),t.$currentTransition=i(n.$element,{}),function(e,n){t.$currentTransition.then(function(){s(e,n)},function(){s(e,n)})}(n,c.currentSlide)):s(n,c.currentSlide),c.currentSlide=n,d=l,r())}function s(e,n){angular.extend(e,{direction:"",active:!0,leaving:!1,entering:!1}),angular.extend(n||{},{direction:"",active:!1,leaving:!1,entering:!1}),t.$currentTransition=null}var l=u.indexOf(n);void 0===o&&(o=l>d?"next":"prev"),n&&n!==c.currentSlide&&(t.$currentTransition?(t.$currentTransition.cancel(),e(a)):a())},t.$on("$destroy",function(){h=!0}),c.indexOfSlide=function(t){return u.indexOf(t)},t.next=function(){var e=(d+1)%u.length;return t.$currentTransition?void 0:c.select(u[e],"next")},t.prev=function(){var e=0>d-1?u.length-1:d-1;return t.$currentTransition?void 0:c.select(u[e],"prev")},t.isActive=function(t){return c.currentSlide===t},t.$watch("interval",r),t.$on("$destroy",o),t.play=function(){l||(l=!0,r())},t.pause=function(){t.noPause||(l=!1,o())},c.addSlide=function(e,n){e.$element=n,u.push(e),1===u.length||e.active?(c.select(u[u.length-1]),1==u.length&&t.play()):e.active=!1},c.removeSlide=function(t){var e=u.indexOf(t);u.splice(e,1),u.length>0&&t.active?c.select(e>=u.length?u[e-1]:u[e]):d>e&&d--}}]).directive("carousel",[function(){return{restrict:"EA",transclude:!0,replace:!0,controller:"CarouselController",require:"carousel",templateUrl:"template/carousel/carousel.html",scope:{interval:"=",noTransition:"=",noPause:"="}}}]).directive("slide",function(){return{require:"^carousel",restrict:"EA",transclude:!0,replace:!0,templateUrl:"template/carousel/slide.html",scope:{active:"=?"},link:function(t,e,n,i){i.addSlide(t,e),t.$on("$destroy",function(){i.removeSlide(t)}),t.$watch("active",function(e){e&&i.select(t)})}}}),angular.module("ui.bootstrap.dateparser",[]).service("dateParser",["$locale","orderByFilter",function(t,e){function n(t){var n=[],i=t.split("");return angular.forEach(r,function(e,r){var o=t.indexOf(r);if(o>-1){t=t.split(""),i[o]="("+e.regex+")",t[o]="$";for(var a=o+1,s=o+r.length;s>a;a++)i[a]="",t[a]="$";t=t.join(""),n.push({index:o,apply:e.apply})}}),{regex:new RegExp("^"+i.join("")+"$"),map:e(n,"index")}}function i(t,e,n){return 1===e&&n>28?29===n&&(t%4==0&&t%100!=0||t%400==0):3!==e&&5!==e&&8!==e&&10!==e||31>n}this.parsers={};var r={yyyy:{regex:"\\d{4}",apply:function(t){this.year=+t}},yy:{regex:"\\d{2}",apply:function(t){this.year=+t+2e3}},y:{regex:"\\d{1,4}",apply:function(t){this.year=+t}},MMMM:{regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)}},MMM:{regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)}},MM:{regex:"0[1-9]|1[0-2]",apply:function(t){this.month=t-1}},M:{regex:"[1-9]|1[0-2]",apply:function(t){this.month=t-1}},dd:{regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},d:{regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(t){this.date=+t}},EEEE:{regex:t.DATETIME_FORMATS.DAY.join("|")},EEE:{regex:t.DATETIME_FORMATS.SHORTDAY.join("|")}};this.parse=function(e,r){if(!angular.isString(e)||!r)return e;r=t.DATETIME_FORMATS[r]||r,this.parsers[r]||(this.parsers[r]=n(r));var o=this.parsers[r],a=o.regex,s=o.map,l=e.match(a);if(l&&l.length){for(var c,u={year:1900,month:0,date:1,hours:0},d=1,h=l.length;h>d;d++){var f=s[d-1];f.apply&&f.apply.call(u,l[d])}return i(u.year,u.month,u.date)&&(c=new Date(u.year,u.month,u.date,u.hours)),c}}}]),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(t,e){function n(t,n){return t.currentStyle?t.currentStyle[n]:e.getComputedStyle?e.getComputedStyle(t)[n]:t.style[n]}function i(t){return"static"===(n(t,"position")||"static")}var r=function(e){for(var n=t[0],r=e.offsetParent||n;r&&r!==n&&i(r);)r=r.offsetParent;return r||n};return{position:function(e){var n=this.offset(e),i={top:0,left:0},o=r(e[0]);o!=t[0]&&(i=this.offset(angular.element(o)),i.top+=o.clientTop-o.scrollTop,i.left+=o.clientLeft-o.scrollLeft);var a=e[0].getBoundingClientRect();return{width:a.width||e.prop("offsetWidth"),height:a.height||e.prop("offsetHeight"),top:n.top-i.top,left:n.left-i.left}},offset:function(n){var i=n[0].getBoundingClientRect();return{width:i.width||n.prop("offsetWidth"),height:i.height||n.prop("offsetHeight"),top:i.top+(e.pageYOffset||t[0].documentElement.scrollTop),left:i.left+(e.pageXOffset||t[0].documentElement.scrollLeft)}},positionElements:function(t,e,n,i){var r,o,a,s,l=n.split("-"),c=l[0],u=l[1]||"center";r=i?this.offset(t):this.position(t),o=e.prop("offsetWidth"),a=e.prop("offsetHeight");var d={center:function(){return r.left+r.width/2-o/2},left:function(){return r.left},right:function(){return r.left+r.width}},h={center:function(){return r.top+r.height/2-a/2},top:function(){return r.top},bottom:function(){return r.top+r.height}};switch(c){case"right":s={top:h[u](),left:d[c]()};break;case"left":s={top:h[u](),left:r.left-o};break;case"bottom":s={top:h[c](),left:d[u]()};break;default:s={top:r.top-a,left:d[u]()}}return s}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("datepickerConfig",{formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",datepickerMode:"day",minMode:"day",maxMode:"year",showWeeks:!0,startingDay:0,yearRange:20,minDate:null,maxDate:null}).controller("DatepickerController",["$scope","$attrs","$parse","$interpolate","$timeout","$log","dateFilter","datepickerConfig",function(t,e,n,i,r,o,a,s){var l=this,c={$setViewValue:angular.noop};this.modes=["day","month","year"],angular.forEach(["formatDay","formatMonth","formatYear","formatDayHeader","formatDayTitle","formatMonthTitle","minMode","maxMode","showWeeks","startingDay","yearRange"],function(n,r){l[n]=angular.isDefined(e[n])?8>r?i(e[n])(t.$parent):t.$parent.$eval(e[n]):s[n]}),angular.forEach(["minDate","maxDate"],function(i){e[i]?t.$parent.$watch(n(e[i]),function(t){l[i]=t?new Date(t):null,l.refreshView()}):l[i]=s[i]?new Date(s[i]):null}),t.datepickerMode=t.datepickerMode||s.datepickerMode,t.uniqueId="datepicker-"+t.$id+"-"+Math.floor(1e4*Math.random()),this.activeDate=angular.isDefined(e.initDate)?t.$parent.$eval(e.initDate):new Date,t.isActive=function(e){return 0===l.compare(e.date,l.activeDate)&&(t.activeDateId=e.uid,!0)},this.init=function(t){c=t,c.$render=function(){l.render()}},this.render=function(){if(c.$modelValue){var t=new Date(c.$modelValue),e=!isNaN(t);e?this.activeDate=t:o.error('Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.'),c.$setValidity("date",e)}this.refreshView()},this.refreshView=function(){if(this.element){this._refreshView();var t=c.$modelValue?new Date(c.$modelValue):null;c.$setValidity("date-disabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,e){var n=c.$modelValue?new Date(c.$modelValue):null;return{date:t,label:a(t,e),selected:n&&0===this.compare(t,n),disabled:this.isDisabled(t),current:0===this.compare(t,new Date)}},this.isDisabled=function(n){return this.minDate&&this.compare(n,this.minDate)<0||this.maxDate&&this.compare(n,this.maxDate)>0||e.dateDisabled&&t.dateDisabled({date:n,mode:t.datepickerMode})},this.split=function(t,e){for(var n=[];t.length>0;)n.push(t.splice(0,e));return n},t.select=function(e){if(t.datepickerMode===l.minMode){var n=c.$modelValue?new Date(c.$modelValue):new Date(0,0,0,0,0,0,0);n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),c.$setViewValue(n),c.$render()}else l.activeDate=e,t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)-1]},t.move=function(t){var e=l.activeDate.getFullYear()+t*(l.step.years||0),n=l.activeDate.getMonth()+t*(l.step.months||0);l.activeDate.setFullYear(e,n,1),l.refreshView()},t.toggleMode=function(e){e=e||1,t.datepickerMode===l.maxMode&&1===e||t.datepickerMode===l.minMode&&-1===e||(t.datepickerMode=l.modes[l.modes.indexOf(t.datepickerMode)+e])},t.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};var u=function(){r(function(){l.element[0].focus()},0,!1)};t.$on("datepicker.focus",u),t.keydown=function(e){var n=t.keys[e.which];if(n&&!e.shiftKey&&!e.altKey)if(e.preventDefault(),e.stopPropagation(),"enter"===n||"space"===n){if(l.isDisabled(l.activeDate))return;t.select(l.activeDate),u()}else!e.ctrlKey||"up"!==n&&"down"!==n?(l.handleKeyDown(n,e),l.refreshView()):(t.toggleMode("up"===n?1:-1),u())}}]).directive("datepicker",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/datepicker.html",scope:{datepickerMode:"=?",dateDisabled:"&"},require:["datepicker","?^ngModel"],controller:"DatepickerController",link:function(t,e,n,i){var r=i[0],o=i[1];o&&r.init(o)}}}).directive("daypicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/day.html",require:"^datepicker",link:function(e,n,i,r){function o(t,e){return 1!==e||t%4!=0||t%100==0&&t%400!=0?l[e]:29}function a(t,e){var n=new Array(e),i=new Date(t),r=0;for(i.setHours(12);e>r;)n[r++]=new Date(i),i.setDate(i.getDate()+1);return n}function s(t){var e=new Date(t);e.setDate(e.getDate()+4-(e.getDay()||7));var n=e.getTime();return e.setMonth(0),e.setDate(1),Math.floor(Math.round((n-e)/864e5)/7)+1}e.showWeeks=r.showWeeks,r.step={months:1},r.element=n;var l=[31,28,31,30,31,30,31,31,30,31,30,31];r._refreshView=function(){var n=r.activeDate.getFullYear(),i=r.activeDate.getMonth(),o=new Date(n,i,1),l=r.startingDay-o.getDay(),c=l>0?7-l:-l,u=new Date(o);c>0&&u.setDate(1-c);for(var d=a(u,42),h=0;42>h;h++)d[h]=angular.extend(r.createDateObject(d[h],r.formatDay),{secondary:d[h].getMonth()!==i,uid:e.uniqueId+"-"+h});e.labels=new Array(7);for(var f=0;7>f;f++)e.labels[f]={abbr:t(d[f].date,r.formatDayHeader),full:t(d[f].date,"EEEE")};if(e.title=t(r.activeDate,r.formatDayTitle),e.rows=r.split(d,7),e.showWeeks){e.weekNumbers=[];for(var p=s(e.rows[0][0].date),m=e.rows.length;e.weekNumbers.push(p++)<m;);}},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth(),t.getDate())-new Date(e.getFullYear(),e.getMonth(),e.getDate())},r.handleKeyDown=function(t){var e=r.activeDate.getDate();if("left"===t)e-=1;else if("up"===t)e-=7;else if("right"===t)e+=1;else if("down"===t)e+=7;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getMonth()+("pageup"===t?-1:1);r.activeDate.setMonth(n,1),e=Math.min(o(r.activeDate.getFullYear(),r.activeDate.getMonth()),e)}else"home"===t?e=1:"end"===t&&(e=o(r.activeDate.getFullYear(),r.activeDate.getMonth()));r.activeDate.setDate(e)},r.refreshView()}}}]).directive("monthpicker",["dateFilter",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/month.html",require:"^datepicker",link:function(e,n,i,r){r.step={years:1},r.element=n,r._refreshView=function(){for(var n=new Array(12),i=r.activeDate.getFullYear(),o=0;12>o;o++)n[o]=angular.extend(r.createDateObject(new Date(i,o,1),r.formatMonth),{uid:e.uniqueId+"-"+o});e.title=t(r.activeDate,r.formatMonthTitle),e.rows=r.split(n,3)},r.compare=function(t,e){return new Date(t.getFullYear(),t.getMonth())-new Date(e.getFullYear(),e.getMonth())},r.handleKeyDown=function(t){var e=r.activeDate.getMonth();if("left"===t)e-=1;else if("up"===t)e-=3;else if("right"===t)e+=1;else if("down"===t)e+=3;else if("pageup"===t||"pagedown"===t){var n=r.activeDate.getFullYear()+("pageup"===t?-1:1);r.activeDate.setFullYear(n)}else"home"===t?e=0:"end"===t&&(e=11);r.activeDate.setMonth(e)},r.refreshView()}}}]).directive("yearpicker",["dateFilter",function(){return{restrict:"EA",replace:!0,templateUrl:"template/datepicker/year.html",require:"^datepicker",link:function(t,e,n,i){function r(t){return parseInt((t-1)/o,10)*o+1}var o=i.yearRange;i.step={years:o},i.element=e,i._refreshView=function(){for(var e=new Array(o),n=0,a=r(i.activeDate.getFullYear());o>n;n++)e[n]=angular.extend(i.createDateObject(new Date(a+n,0,1),i.formatYear),{uid:t.uniqueId+"-"+n});t.title=[e[0].label,e[o-1].label].join(" - "),t.rows=i.split(e,5)},i.compare=function(t,e){return t.getFullYear()-e.getFullYear()},i.handleKeyDown=function(t){var e=i.activeDate.getFullYear();"left"===t?e-=1:"up"===t?e-=5:"right"===t?e+=1:"down"===t?e+=5:"pageup"===t||"pagedown"===t?e+=("pageup"===t?-1:1)*i.step.years:"home"===t?e=r(i.activeDate.getFullYear()):"end"===t&&(e=r(i.activeDate.getFullYear())+o-1),i.activeDate.setFullYear(e)},i.refreshView()}}}]).constant("datepickerPopupConfig",{datepickerPopup:"yyyy-MM-dd",currentText:"Today",clearText:"Clear",closeText:"Done",closeOnDateSelection:!0,appendToBody:!1,showButtonBar:!0}).directive("datepickerPopup",["$compile","$parse","$document","$position","dateFilter","dateParser","datepickerPopupConfig",function(t,e,n,i,r,o,a){return{restrict:"EA",require:"ngModel",scope:{isOpen:"=?",currentText:"@",clearText:"@",closeText:"@",dateDisabled:"&"},link:function(s,l,c,u){function d(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}function h(t){if(t){if(angular.isDate(t)&&!isNaN(t))return u.$setValidity("date",!0),t;if(angular.isString(t)){var e=o.parse(t,f)||new Date(t);return isNaN(e)?void u.$setValidity("date",!1):(u.$setValidity("date",!0),e)}return void u.$setValidity("date",!1)}return u.$setValidity("date",!0),null}var f,p=angular.isDefined(c.closeOnDateSelection)?s.$parent.$eval(c.closeOnDateSelection):a.closeOnDateSelection,m=angular.isDefined(c.datepickerAppendToBody)?s.$parent.$eval(c.datepickerAppendToBody):a.appendToBody;s.showButtonBar=angular.isDefined(c.showButtonBar)?s.$parent.$eval(c.showButtonBar):a.showButtonBar,s.getText=function(t){return s[t+"Text"]||a[t+"Text"]},c.$observe("datepickerPopup",function(t){f=t||a.datepickerPopup,u.$render()});var g=angular.element("<div datepicker-popup-wrap><div datepicker></div></div>");g.attr({"ng-model":"date","ng-change":"dateSelection()"});var v=angular.element(g.children()[0]);c.datepickerOptions&&angular.forEach(s.$parent.$eval(c.datepickerOptions),function(t,e){v.attr(d(e),t)}),s.watchData={},angular.forEach(["minDate","maxDate","datepickerMode"],function(t){if(c[t]){var n=e(c[t]);if(s.$parent.$watch(n,function(e){s.watchData[t]=e}),v.attr(d(t),"watchData."+t),"datepickerMode"===t){var i=n.assign;s.$watch("watchData."+t,function(t,e){t!==e&&i(s.$parent,t)})}}}),c.dateDisabled&&v.attr("date-disabled","dateDisabled({ date: date, mode: mode })"),u.$parsers.unshift(h),s.dateSelection=function(t){angular.isDefined(t)&&(s.date=t),u.$setViewValue(s.date),u.$render(),p&&(s.isOpen=!1,l[0].focus())},l.bind("input change keyup",function(){s.$apply(function(){s.date=u.$modelValue})}),u.$render=function(){var t=u.$viewValue?r(u.$viewValue,f):"";l.val(t),s.date=h(u.$modelValue)};var y=function(t){s.isOpen&&t.target!==l[0]&&s.$apply(function(){s.isOpen=!1})},E=function(t){s.keydown(t)};l.bind("keydown",E),s.keydown=function(t){27===t.which?(t.preventDefault(),t.stopPropagation(),s.close()):40!==t.which||s.isOpen||(s.isOpen=!0)},s.$watch("isOpen",function(t){t?(s.$broadcast("datepicker.focus"),s.position=m?i.offset(l):i.position(l),s.position.top=s.position.top+l.prop("offsetHeight"),n.bind("click",y)):n.unbind("click",y)}),s.select=function(t){if("today"===t){var e=new Date;angular.isDate(u.$modelValue)?(t=new Date(u.$modelValue),t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate())):t=new Date(e.setHours(0,0,0,0))}s.dateSelection(t)},s.close=function(){s.isOpen=!1,l[0].focus()};var b=t(g)(s);g.remove(),m?n.find("body").append(b):l.after(b),s.$on("$destroy",function(){b.remove(),l.unbind("keydown",E),n.unbind("click",y)})}}}]).directive("datepickerPopupWrap",function(){return{restrict:"EA",replace:!0,transclude:!0,templateUrl:"template/datepicker/popup.html",link:function(t,e){e.bind("click",function(t){t.preventDefault(),t.stopPropagation()})}}}),angular.module("ui.bootstrap.dropdown",[]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document",function(t){var e=null;this.open=function(r){e||(t.bind("click",n),t.bind("keydown",i)),e&&e!==r&&(e.isOpen=!1),e=r},this.close=function(r){e===r&&(e=null,t.unbind("click",n),t.unbind("keydown",i))};var n=function(t){if(e){var n=e.getToggleElement();t&&n&&n[0].contains(t.target)||e.$apply(function(){e.isOpen=!1})}},i=function(t){27===t.which&&(e.focusToggleElement(),n())}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate",function(t,e,n,i,r,o){var a,s=this,l=t.$new(),c=i.openClass,u=angular.noop,d=e.onToggle?n(e.onToggle):angular.noop;this.init=function(i){s.$element=i,e.isOpen&&(a=n(e.isOpen),u=a.assign,t.$watch(a,function(t){l.isOpen=!!t}))},this.toggle=function(t){return l.isOpen=arguments.length?!!t:!l.isOpen},this.isOpen=function(){return l.isOpen},l.getToggleElement=function(){return s.toggleElement},l.focusToggleElement=function(){s.toggleElement&&s.toggleElement[0].focus()},l.$watch("isOpen",function(e,n){o[e?"addClass":"removeClass"](s.$element,c),e?(l.focusToggleElement(),r.open(l)):r.close(l),u(t,e),angular.isDefined(e)&&e!==n&&d(t,{open:!!e})}),t.$on("$locationChangeSuccess",function(){l.isOpen=!1}),t.$on("$destroy",function(){l.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(t,e,n,i){i.init(e)}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(t,e,n,i){if(i){i.toggleElement=e;var r=function(r){r.preventDefault(),e.hasClass("disabled")||n.disabled||t.$apply(function(){i.toggle()})};e.bind("click",r),e.attr({"aria-haspopup":!0,"aria-expanded":!1}),t.$watch(i.isOpen,function(t){e.attr("aria-expanded",!!t)}),t.$on("$destroy",function(){e.unbind("click",r)})}}}}),angular.module("ui.bootstrap.modal",["ui.bootstrap.transition"]).factory("$$stackedMap",function(){return{createNew:function(){var t=[];return{add:function(e,n){t.push({key:e,value:n})},get:function(e){for(var n=0;n<t.length;n++)if(e==t[n].key)return t[n]},keys:function(){for(var e=[],n=0;n<t.length;n++)e.push(t[n].key);return e},top:function(){return t[t.length-1]},remove:function(e){for(var n=-1,i=0;i<t.length;i++)if(e==t[i].key){n=i;break}return t.splice(n,1)[0]},removeTop:function(){return t.splice(t.length-1,1)[0]},length:function(){return t.length}}}}}).directive("modalBackdrop",["$timeout",function(t){return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",link:function(e,n,i){e.backdropClass=i.backdropClass||"",e.animate=!1,t(function(){e.animate=!0})}}}]).directive("modalWindow",["$modalStack","$timeout",function(t,e){return{restrict:"EA",scope:{index:"@",animate:"="},replace:!0,transclude:!0,templateUrl:function(t,e){return e.templateUrl||"template/modal/window.html"},link:function(n,i,r){i.addClass(r.windowClass||""),n.size=r.size,e(function(){n.animate=!0,i[0].querySelectorAll("[autofocus]").length||i[0].focus()}),n.close=function(e){var n=t.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&e.target===e.currentTarget&&(e.preventDefault(),e.stopPropagation(),t.dismiss(n.key,"backdrop click"))}}}}]).directive("modalTransclude",function(){return{link:function(t,e,n,i,r){r(t.$parent,function(t){e.empty(),e.append(t)})}}}).factory("$modalStack",["$transition","$timeout","$document","$compile","$rootScope","$$stackedMap",function(t,e,n,i,r,o){function a(){for(var t=-1,e=f.keys(),n=0;n<e.length;n++)f.get(e[n]).value.backdrop&&(t=n);return t}function s(t){var e=n.find("body").eq(0),i=f.get(t).value;f.remove(t),c(i.modalDomEl,i.modalScope,300,function(){i.modalScope.$destroy(),e.toggleClass(h,f.length()>0),l()})}function l(){if(u&&-1==a()){var t=d;c(u,d,150,function(){t.$destroy(),t=null}),u=void 0,d=void 0}}function c(n,i,r,o){function a(){a.done||(a.done=!0,n.remove(),o&&o())}i.animate=!1;var s=t.transitionEndEventName;if(s){var l=e(a,r);n.bind(s,function(){e.cancel(l),a(),i.$apply()})}else e(a)}var u,d,h="modal-open",f=o.createNew(),p={};return r.$watch(a,function(t){d&&(d.index=t)}),n.bind("keydown",function(t){var e;27===t.which&&(e=f.top())&&e.value.keyboard&&(t.preventDefault(),r.$apply(function(){p.dismiss(e.key,"escape key press")}))}),p.open=function(t,e){f.add(t,{deferred:e.deferred,modalScope:e.scope,backdrop:e.backdrop,keyboard:e.keyboard});var o=n.find("body").eq(0),s=a();if(s>=0&&!u){d=r.$new(!0),d.index=s;var l=angular.element("<div modal-backdrop></div>");l.attr("backdrop-class",e.backdropClass),u=i(l)(d),o.append(u)}var c=angular.element("<div modal-window></div>");c.attr({"template-url":e.windowTemplateUrl,"window-class":e.windowClass,size:e.size,index:f.length()-1,animate:"animate"}).html(e.content);var p=i(c)(e.scope);f.top().value.modalDomEl=p,o.append(p),o.addClass(h)},p.close=function(t,e){var n=f.get(t);n&&(n.value.deferred.resolve(e),s(t))},p.dismiss=function(t,e){var n=f.get(t);n&&(n.value.deferred.reject(e),s(t))},p.dismissAll=function(t){for(var e=this.getTop();e;)this.dismiss(e.key,t),e=this.getTop()},p.getTop=function(){return f.top()},p}]).provider("$modal",function(){var t={options:{backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$http","$templateCache","$controller","$modalStack",function(e,n,i,r,o,a,s){function l(t){return t.template?i.when(t.template):r.get(angular.isFunction(t.templateUrl)?t.templateUrl():t.templateUrl,{cache:o}).then(function(t){return t.data})}function c(t){var n=[];return angular.forEach(t,function(t){(angular.isFunction(t)||angular.isArray(t))&&n.push(i.when(e.invoke(t)))}),n}var u={};return u.open=function(e){var r=i.defer(),o=i.defer(),u={result:r.promise,opened:o.promise,close:function(t){s.close(u,t)},dismiss:function(t){s.dismiss(u,t)}};if(e=angular.extend({},t.options,e),e.resolve=e.resolve||{},!e.template&&!e.templateUrl)throw new Error("One of template or templateUrl options is required.");var d=i.all([l(e)].concat(c(e.resolve)));return d.then(function(t){var i=(e.scope||n).$new();i.$close=u.close,i.$dismiss=u.dismiss;var o,l={},c=1;e.controller&&(l.$scope=i,l.$modalInstance=u,angular.forEach(e.resolve,function(e,n){l[n]=t[c++]}),o=a(e.controller,l),e.controllerAs&&(i[e.controllerAs]=o)),s.open(u,{scope:i,deferred:r,content:t[0],backdrop:e.backdrop,keyboard:e.keyboard,backdropClass:e.backdropClass,windowClass:e.windowClass,windowTemplateUrl:e.windowTemplateUrl,size:e.size})},function(t){r.reject(t)}),d.then(function(){o.resolve(!0)},function(){o.reject(!1)}),u},u}]};return t}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(t,e,n){var i=this,r={$setViewValue:angular.noop},o=e.numPages?n(e.numPages).assign:angular.noop;this.init=function(o,a){r=o,this.config=a,r.$render=function(){i.render()},e.itemsPerPage?t.$parent.$watch(n(e.itemsPerPage),function(e){i.itemsPerPage=parseInt(e,10),t.totalPages=i.calculateTotalPages()}):this.itemsPerPage=a.itemsPerPage},this.calculateTotalPages=function(){var e=this.itemsPerPage<1?1:Math.ceil(t.totalItems/this.itemsPerPage);return Math.max(e||0,1)},this.render=function(){t.page=parseInt(r.$viewValue,10)||1},t.selectPage=function(e){t.page!==e&&e>0&&e<=t.totalPages&&(r.$setViewValue(e),r.$render())},t.getText=function(e){return t[e+"Text"]||i.config[e+"Text"]},t.noPrevious=function(){return 1===t.page},t.noNext=function(){return t.page===t.totalPages},t.$watch("totalItems",function(){t.totalPages=i.calculateTotalPages()}),t.$watch("totalPages",function(e){o(t.$parent,e),t.page>e?t.selectPage(e):r.$render()})}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(t,e){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@"},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,i,r,o){function a(t,e,n){return{number:t,text:e,active:n}}function s(t,e){var n=[],i=1,r=e,o=angular.isDefined(u)&&e>u;o&&(d?(i=Math.max(t-Math.floor(u/2),1),(r=i+u-1)>e&&(r=e,i=r-u+1)):(i=(Math.ceil(t/u)-1)*u+1,r=Math.min(i+u-1,e)));for(var s=i;r>=s;s++){var l=a(s,s,s===t);n.push(l)}if(o&&!d){if(i>1){var c=a(i-1,"...",!1);n.unshift(c)}if(e>r){var h=a(r+1,"...",!1);n.push(h)}}return n}var l=o[0],c=o[1];if(c){var u=angular.isDefined(r.maxSize)?n.$parent.$eval(r.maxSize):e.maxSize,d=angular.isDefined(r.rotate)?n.$parent.$eval(r.rotate):e.rotate;n.boundaryLinks=angular.isDefined(r.boundaryLinks)?n.$parent.$eval(r.boundaryLinks):e.boundaryLinks,n.directionLinks=angular.isDefined(r.directionLinks)?n.$parent.$eval(r.directionLinks):e.directionLinks,l.init(c,e),r.maxSize&&n.$parent.$watch(t(r.maxSize),function(t){u=parseInt(t,10),l.render()});var h=l.render;l.render=function(){h(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(t){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(e,n,i,r){var o=r[0],a=r[1];a&&(e.align=angular.isDefined(i.align)?e.$parent.$eval(i.align):t.align,o.init(a,t))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function t(t){var e=/[A-Z]/g;return t.replace(e,function(t,e){return(e?"-":"")+t.toLowerCase()})}var e={placement:"top",animation:!0,popupDelay:0},n={mouseenter:"mouseleave",click:"click",focus:"blur"},i={};this.options=function(t){angular.extend(i,t)},this.setTriggers=function(t){angular.extend(n,t)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(r,o,a,s,l,c){return function(r,u,d){function h(t){var e=t||f.trigger||d;return{show:e,hide:n[e]||e}}var f=angular.extend({},e,i),p=t(r),m=c.startSymbol(),g=c.endSymbol(),v="<div "+p+'-popup title="'+m+"title"+g+'" content="'+m+"content"+g+'" placement="'+m+"placement"+g+'" animation="animation" is-open="isOpen"></div>';return{restrict:"EA",compile:function(){var t=o(v);return function(e,n,i){function o(){w.isOpen?d():c()}function c(){(!O||e.$eval(i[u+"Enable"]))&&(y(),w.popupDelay?I||(I=a(p,w.popupDelay,!1),I.then(function(t){t()})):p()())}function d(){e.$apply(function(){m()})}function p(){return I=null,T&&(a.cancel(T),T=null),w.content?(g(),_.css({top:0,left:0,display:"block"}),w.$digest(),R(),w.isOpen=!0,w.$digest(),R):angular.noop}function m(){w.isOpen=!1,a.cancel(I),I=null,w.animation?T||(T=a(v,500)):v()}function g(){_&&v(),C=w.$new(),_=t(C,function(t){D?s.find("body").append(t):n.after(t)})}function v(){T=null,_&&(_.remove(),_=null),C&&(C.$destroy(),C=null)}function y(){E(),b()}function E(){var t=i[u+"Placement"];w.placement=angular.isDefined(t)?t:f.placement}function b(){var t=i[u+"PopupDelay"],e=parseInt(t,10);w.popupDelay=isNaN(e)?f.popupDelay:e}var _,C,T,I,D=!!angular.isDefined(f.appendToBody)&&f.appendToBody,$=h(void 0),O=angular.isDefined(i[u+"Enable"]),w=e.$new(!0),R=function(){var t=l.positionElements(n,_,w.placement,D);t.top+="px",t.left+="px",_.css(t)};w.isOpen=!1,i.$observe(r,function(t){w.content=t,!t&&w.isOpen&&m()}),i.$observe(u+"Title",function(t){w.title=t});var k=function(){n.unbind($.show,c),n.unbind($.hide,d)};!function(){var t=i[u+"Trigger"];k(),$=h(t),$.show===$.hide?n.bind($.show,o):(n.bind($.show,c),n.bind($.hide,d))}();var x=e.$eval(i[u+"Animation"]);w.animation=angular.isDefined(x)?!!x:f.animation;var S=e.$eval(i[u+"AppendToBody"]);D=angular.isDefined(S)?S:D,D&&e.$on("$locationChangeSuccess",function(){w.isOpen&&m()}),e.$on("$destroy",function(){a.cancel(T),a.cancel(I),k(),v(),w=null})}}}}}]}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(t){return t("tooltip","tooltip","mouseenter")}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).directive("tooltipHtmlUnsafe",["$tooltip",function(t){return t("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("popoverPopup",function(){return{restrict:"EA",replace:!0,scope:{title:"@",content:"@",placement:"@",animation:"&",isOpen:"&"},templateUrl:"template/popover/popover.html"}}).directive("popover",["$tooltip",function(t){return t("popover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("progressConfig",{animate:!0,max:100}).controller("ProgressController",["$scope","$attrs","progressConfig",function(t,e,n){var i=this,r=angular.isDefined(e.animate)?t.$parent.$eval(e.animate):n.animate;this.bars=[],t.max=angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max,this.addBar=function(e,n){r||n.css({transition:"none"}),this.bars.push(e),e.$watch("value",function(n){e.percent=+(100*n/t.max).toFixed(2)}),e.$on("$destroy",function(){n=null,i.removeBar(e)})},this.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)}}]).directive("progress",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",require:"progress",scope:{},templateUrl:"template/progressbar/progress.html"}}).directive("bar",function(){return{restrict:"EA",replace:!0,transclude:!0,require:"^progress",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/bar.html",link:function(t,e,n,i){i.addBar(t,e)}}}).directive("progressbar",function(){return{restrict:"EA",replace:!0,transclude:!0,controller:"ProgressController",scope:{value:"=",type:"@"},templateUrl:"template/progressbar/progressbar.html",link:function(t,e,n,i){i.addBar(t,angular.element(e.children()[0]))}}}),angular.module("ui.bootstrap.rating",[]).constant("ratingConfig",{max:5,stateOn:null,stateOff:null}).controller("RatingController",["$scope","$attrs","ratingConfig",function(t,e,n){var i={$setViewValue:angular.noop};this.init=function(r){i=r,i.$render=this.render,this.stateOn=angular.isDefined(e.stateOn)?t.$parent.$eval(e.stateOn):n.stateOn,this.stateOff=angular.isDefined(e.stateOff)?t.$parent.$eval(e.stateOff):n.stateOff;var o=angular.isDefined(e.ratingStates)?t.$parent.$eval(e.ratingStates):new Array(angular.isDefined(e.max)?t.$parent.$eval(e.max):n.max);t.range=this.buildTemplateObjects(o)},this.buildTemplateObjects=function(t){for(var e=0,n=t.length;n>e;e++)t[e]=angular.extend({index:e},{stateOn:this.stateOn,stateOff:this.stateOff},t[e]);return t},t.rate=function(e){!t.readonly&&e>=0&&e<=t.range.length&&(i.$setViewValue(e),i.$render())},t.enter=function(e){t.readonly||(t.value=e),t.onHover({value:e})},t.reset=function(){t.value=i.$viewValue,t.onLeave()},t.onKeydown=function(e){/(37|38|39|40)/.test(e.which)&&(e.preventDefault(),e.stopPropagation(),t.rate(t.value+(38===e.which||39===e.which?1:-1)))},this.render=function(){t.value=i.$viewValue}}]).directive("rating",function(){return{restrict:"EA",require:["rating","ngModel"],scope:{readonly:"=?",onHover:"&",onLeave:"&"},controller:"RatingController",templateUrl:"template/rating/rating.html",replace:!0,link:function(t,e,n,i){var r=i[0],o=i[1];o&&r.init(o)}}}),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(t){var e=this,n=e.tabs=t.tabs=[];e.select=function(t){angular.forEach(n,function(e){e.active&&e!==t&&(e.active=!1,e.onDeselect())}),t.active=!0,t.onSelect()},e.addTab=function(t){n.push(t),1===n.length?t.active=!0:t.active&&e.select(t)},e.removeTab=function(t){var r=n.indexOf(t);if(t.active&&n.length>1&&!i){var o=r==n.length-1?r-1:r+1;e.select(n[o])}n.splice(r,1)};var i;t.$on("$destroy",function(){i=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(t,e,n){t.vertical=!!angular.isDefined(n.vertical)&&t.$parent.$eval(n.vertical),t.justified=!!angular.isDefined(n.justified)&&t.$parent.$eval(n.justified)}}}).directive("tab",["$parse",function(t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},compile:function(e,n,i){return function(e,n,r,o){e.$watch("active",function(t){t&&o.select(e)}),e.disabled=!1,r.disabled&&e.$parent.$watch(t(r.disabled),function(t){e.disabled=!!t}),e.select=function(){e.disabled||(e.active=!0)},o.addTab(e),e.$on("$destroy",function(){o.removeTab(e)}),e.$transcludeFn=i}}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(t,e){t.$watch("headingElement",function(t){t&&(e.html(""),e.append(t))})}}}]).directive("tabContentTransclude",function(){function t(t){return t.tagName&&(t.hasAttribute("tab-heading")||t.hasAttribute("data-tab-heading")||"tab-heading"===t.tagName.toLowerCase()||"data-tab-heading"===t.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(e,n,i){var r=e.$eval(i.tabContentTransclude);r.$transcludeFn(r.$parent,function(e){angular.forEach(e,function(e){t(e)?r.headingElement=e:n.append(e)})})}}}),angular.module("ui.bootstrap.timepicker",[]).constant("timepickerConfig",{hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0}).controller("TimepickerController",["$scope","$attrs","$parse","$log","$locale","timepickerConfig",function(t,e,n,i,r,o){function a(){var e=parseInt(t.hours,10);return(t.showMeridian?e>0&&13>e:e>=0&&24>e)?(t.showMeridian&&(12===e&&(e=0),t.meridian===m[1]&&(e+=12)),e):void 0}function s(){var e=parseInt(t.minutes,10);return e>=0&&60>e?e:void 0}function l(t){return angular.isDefined(t)&&t.toString().length<2?"0"+t:t}function c(t){u(),p.$setViewValue(new Date(f)),d(t)}function u(){p.$setValidity("time",!0),t.invalidHours=!1,t.invalidMinutes=!1}function d(e){var n=f.getHours(),i=f.getMinutes();t.showMeridian&&(n=0===n||12===n?12:n%12),t.hours="h"===e?n:l(n),t.minutes="m"===e?i:l(i),t.meridian=f.getHours()<12?m[0]:m[1]}function h(t){var e=new Date(f.getTime()+6e4*t);f.setHours(e.getHours(),e.getMinutes()),c()}var f=new Date,p={$setViewValue:angular.noop},m=angular.isDefined(e.meridians)?t.$parent.$eval(e.meridians):o.meridians||r.DATETIME_FORMATS.AMPMS;this.init=function(n,i){p=n,p.$render=this.render;var r=i.eq(0),a=i.eq(1);(angular.isDefined(e.mousewheel)?t.$parent.$eval(e.mousewheel):o.mousewheel)&&this.setupMousewheelEvents(r,a),t.readonlyInput=angular.isDefined(e.readonlyInput)?t.$parent.$eval(e.readonlyInput):o.readonlyInput,this.setupInputEvents(r,a)};var g=o.hourStep;e.hourStep&&t.$parent.$watch(n(e.hourStep),function(t){g=parseInt(t,10)});var v=o.minuteStep;e.minuteStep&&t.$parent.$watch(n(e.minuteStep),function(t){v=parseInt(t,10)}),t.showMeridian=o.showMeridian,e.showMeridian&&t.$parent.$watch(n(e.showMeridian),function(e){if(t.showMeridian=!!e,p.$error.time){var n=a(),i=s();angular.isDefined(n)&&angular.isDefined(i)&&(f.setHours(n),c())}else d()}),this.setupMousewheelEvents=function(e,n){var i=function(t){t.originalEvent&&(t=t.originalEvent);var e=t.wheelDelta?t.wheelDelta:-t.deltaY;return t.detail||e>0};e.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementHours():t.decrementHours()),e.preventDefault()}),n.bind("mousewheel wheel",function(e){t.$apply(i(e)?t.incrementMinutes():t.decrementMinutes()),e.preventDefault()})},this.setupInputEvents=function(e,n){if(t.readonlyInput)return t.updateHours=angular.noop,void(t.updateMinutes=angular.noop);var i=function(e,n){p.$setViewValue(null),p.$setValidity("time",!1),angular.isDefined(e)&&(t.invalidHours=e),angular.isDefined(n)&&(t.invalidMinutes=n)};t.updateHours=function(){var t=a();angular.isDefined(t)?(f.setHours(t),c("h")):i(!0)},e.bind("blur",function(){!t.invalidHours&&t.hours<10&&t.$apply(function(){t.hours=l(t.hours)})}),t.updateMinutes=function(){var t=s();angular.isDefined(t)?(f.setMinutes(t),c("m")):i(void 0,!0)},n.bind("blur",function(){!t.invalidMinutes&&t.minutes<10&&t.$apply(function(){t.minutes=l(t.minutes)})})},this.render=function(){var t=p.$modelValue?new Date(p.$modelValue):null;isNaN(t)?(p.$setValidity("time",!1),i.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(f=t),u(),d())},t.incrementHours=function(){h(60*g)},t.decrementHours=function(){h(60*-g)},t.incrementMinutes=function(){h(v)},t.decrementMinutes=function(){h(-v)},t.toggleMeridian=function(){h(720*(f.getHours()<12?1:-1))}}]).directive("timepicker",function(){return{restrict:"EA",require:["timepicker","?^ngModel"],controller:"TimepickerController",replace:!0,scope:{},templateUrl:"template/timepicker/timepicker.html",link:function(t,e,n,i){var r=i[0],o=i[1];o&&r.init(o,e.find("input"))}}}),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).factory("typeaheadParser",["$parse",function(t){var e=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(e);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:t(i[4]),viewMapper:t(i[2]||i[1]),modelMapper:t(i[1])}}}}]).directive("typeahead",["$compile","$parse","$q","$timeout","$document","$position","typeaheadParser",function(t,e,n,i,r,o,a){var s=[9,13,27,38,40];return{require:"ngModel",link:function(l,c,u,d){var h,f=l.$eval(u.typeaheadMinLength)||1,p=l.$eval(u.typeaheadWaitMs)||0,m=!1!==l.$eval(u.typeaheadEditable),g=e(u.typeaheadLoading).assign||angular.noop,v=e(u.typeaheadOnSelect),y=u.typeaheadInputFormatter?e(u.typeaheadInputFormatter):void 0,E=!!u.typeaheadAppendToBody&&l.$eval(u.typeaheadAppendToBody),b=!1!==l.$eval(u.typeaheadFocusFirst),_=e(u.ngModel).assign,C=a.parse(u.typeahead),T=l.$new();l.$on("$destroy",function(){T.$destroy()});var I="typeahead-"+T.$id+"-"+Math.floor(1e4*Math.random());c.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":I});var D=angular.element("<div typeahead-popup></div>");D.attr({id:I,matches:"matches",active:"activeIdx",select:"select(activeIdx)",query:"query",position:"position"}),angular.isDefined(u.typeaheadTemplateUrl)&&D.attr("template-url",u.typeaheadTemplateUrl);var $=function(){T.matches=[],T.activeIdx=-1,c.attr("aria-expanded",!1)},O=function(t){return I+"-option-"+t};T.$watch("activeIdx",function(t){0>t?c.removeAttr("aria-activedescendant"):c.attr("aria-activedescendant",O(t))});var w=function(t){var e={$viewValue:t};g(l,!0),n.when(C.source(l,e)).then(function(n){var i=t===d.$viewValue;if(i&&h)if(n.length>0){T.activeIdx=b?0:-1,T.matches.length=0;for(var r=0;r<n.length;r++)e[C.itemName]=n[r],T.matches.push({id:O(r),label:C.viewMapper(T,e),model:n[r]});T.query=t,T.position=E?o.offset(c):o.position(c),T.position.top=T.position.top+c.prop("offsetHeight"),c.attr("aria-expanded",!0)}else $();i&&g(l,!1)},function(){$(),g(l,!1)})};$(),T.query=void 0;var R,k=function(t){R=i(function(){w(t)},p)},x=function(){R&&i.cancel(R)};d.$parsers.unshift(function(t){return h=!0,t&&t.length>=f?p>0?(x(),k(t)):w(t):(g(l,!1),x(),$()),m?t:t?void d.$setValidity("editable",!1):(d.$setValidity("editable",!0),t)}),d.$formatters.push(function(t){var e,n,i={};return y?(i.$model=t,y(l,i)):(i[C.itemName]=t,e=C.viewMapper(l,i),i[C.itemName]=void 0,n=C.viewMapper(l,i),e!==n?e:t)}),T.select=function(t){var e,n,r={};r[C.itemName]=n=T.matches[t].model,e=C.modelMapper(l,r),_(l,e),d.$setValidity("editable",!0),v(l,{$item:n,$model:e,$label:C.viewMapper(l,r)}),$(),i(function(){c[0].focus()},0,!1)},c.bind("keydown",function(t){0!==T.matches.length&&-1!==s.indexOf(t.which)&&(-1!=T.activeIdx||13!==t.which&&9!==t.which)&&(t.preventDefault(),40===t.which?(T.activeIdx=(T.activeIdx+1)%T.matches.length,T.$digest()):38===t.which?(T.activeIdx=(T.activeIdx>0?T.activeIdx:T.matches.length)-1,T.$digest()):13===t.which||9===t.which?T.$apply(function(){T.select(T.activeIdx)}):27===t.which&&(t.stopPropagation(),$(),T.$digest()))}),c.bind("blur",function(){h=!1});var S=function(t){c[0]!==t.target&&($(),T.$digest())};r.bind("click",S),l.$on("$destroy",function(){r.unbind("click",S),E&&A.remove()});var A=t(D)(T);E?r.find("body").append(A):c.after(A)}}}]).directive("typeaheadPopup",function(){return{restrict:"EA",scope:{matches:"=",query:"=",active:"=",position:"=",select:"&"},replace:!0,templateUrl:"template/typeahead/typeahead-popup.html",link:function(t,e,n){t.templateUrl=n.templateUrl,t.isOpen=function(){return t.matches.length>0},t.isActive=function(e){return t.active==e},t.selectActive=function(e){t.active=e},t.selectMatch=function(e){t.select({activeIdx:e})}}}}).directive("typeaheadMatch",["$http","$templateCache","$compile","$parse",function(t,e,n,i){return{restrict:"EA",scope:{index:"=",match:"=",query:"="},link:function(r,o,a){var s=i(a.templateUrl)(r.$parent)||"template/typeahead/typeahead-match.html";t.get(s,{cache:e}).success(function(t){o.replaceWith(n(t.trim())(r))})}}}]).filter("typeaheadHighlight",function(){function t(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(e,n){return n?(""+e).replace(new RegExp(t(n),"gi"),"<strong>$&</strong>"):e}}),angular.module("template/accordion/accordion-group.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion-group.html",'<div class="panel panel-default">\n <div class="panel-heading">\n <h4 class="panel-title">\n <a href class="accordion-toggle" ng-click="toggleOpen()" accordion-transclude="heading"><span ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div class="panel-collapse" collapse="!isOpen">\n\t <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("template/accordion/accordion.html",[]).run(["$templateCache",function(t){t.put("template/accordion/accordion.html",'<div class="panel-group" ng-transclude></div>')}]),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(t){t.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissable\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close()">\n <span aria-hidden="true">×</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/carousel/carousel.html",[]).run(["$templateCache",function(t){t.put("template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides track by $index" ng-class="{active: isActive(slide)}" ng-click="select(slide)"></li>\n </ol>\n <div class="carousel-inner" ng-transclude></div>\n <a class="left carousel-control" ng-click="prev()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-left"></span></a>\n <a class="right carousel-control" ng-click="next()" ng-show="slides.length > 1"><span class="glyphicon glyphicon-chevron-right"></span></a>\n</div>\n')}]),angular.module("template/carousel/slide.html",[]).run(["$templateCache",function(t){t.put("template/carousel/slide.html","<div ng-class=\"{\n 'active': leaving || (active && !entering),\n 'prev': (next || active) && direction=='prev',\n 'next': (next || active) && direction=='next',\n 'right': direction=='prev',\n 'left': direction=='next'\n }\" class=\"item text-center\" ng-transclude></div>\n")}]),angular.module("template/datepicker/datepicker.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/datepicker.html",'<div ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <daypicker ng-switch-when="day" tabindex="0"></daypicker>\n <monthpicker ng-switch-when="month" tabindex="0"></monthpicker>\n <yearpicker ng-switch-when="year" tabindex="0"></yearpicker>\n</div>')}]),angular.module("template/datepicker/day.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/day.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{5 + showWeeks}}"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-show="showWeeks" class="text-center"></th>\n <th ng-repeat="label in labels track by $index" class="text-center"><small aria-label="{{label.full}}">{{label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-show="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="width:100%;" class="btn btn-default btn-sm" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/month.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/month.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/datepicker/popup.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/popup.html",'<ul class="dropdown-menu" ng-style="{display: (isOpen && \'block\') || \'none\', top: position.top+\'px\', left: position.left+\'px\'}" ng-keydown="keydown($event)">\n\t<li ng-transclude></li>\n\t<li ng-if="showButtonBar" style="padding:10px 9px 2px">\n\t\t<span class="btn-group pull-left">\n\t\t\t<button type="button" class="btn btn-sm btn-info" ng-click="select(\'today\')">{{ getText(\'current\') }}</button>\n\t\t\t<button type="button" class="btn btn-sm btn-danger" ng-click="select(null)">{{ getText(\'clear\') }}</button>\n\t\t</span>\n\t\t<button type="button" class="btn btn-sm btn-success pull-right" ng-click="close()">{{ getText(\'close\') }}</button>\n\t</li>\n</ul>\n')}]),angular.module("template/datepicker/year.html",[]).run(["$templateCache",function(t){t.put("template/datepicker/year.html",'<table role="grid" aria-labelledby="{{uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="3"><button id="{{uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm" ng-click="toggleMode()" tabindex="-1" style="width:100%;"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row track by dt.date" class="text-center" role="gridcell" id="{{dt.uid}}" aria-disabled="{{!!dt.disabled}}">\n <button type="button" style="width:100%;" class="btn btn-default" ng-class="{\'btn-info\': dt.selected, active: isActive(dt)}" ng-click="select(dt.date)" ng-disabled="dt.disabled" tabindex="-1"><span ng-class="{\'text-info\': dt.current}">{{dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(t){t.put("template/modal/backdrop.html",'<div class="modal-backdrop fade {{ backdropClass }}"\n ng-class="{in: animate}"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(t){t.put("template/modal/window.html",'<div tabindex="-1" role="dialog" class="modal fade" ng-class="{in: animate}" ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n <div class="modal-dialog" ng-class="{\'modal-sm\': size == \'sm\', \'modal-lg\': size == \'lg\'}"><div class="modal-content" modal-transclude></div></div>\n</div>')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(t){t.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="boundaryLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(1)">{{getText(\'first\')}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noPrevious()}"><a href ng-click="selectPage(page - 1)">{{getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active}"><a href ng-click="selectPage(page.number)">{{page.text}}</a></li>\n <li ng-if="directionLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(page + 1)">{{getText(\'next\')}}</a></li>\n <li ng-if="boundaryLinks" ng-class="{disabled: noNext()}"><a href ng-click="selectPage(totalPages)">{{getText(\'last\')}}</a></li>\n</ul>')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(t){t.put("template/tooltip/tooltip-popup.html",'<div class="tooltip {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/popover/popover.html",[]).run(["$templateCache",function(t){t.put("template/popover/popover.html",'<div class="popover {{placement}}" ng-class="{ in: isOpen(), fade: animation() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="title" ng-show="title"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("template/progressbar/bar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>')}]),angular.module("template/progressbar/progress.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progress.html",'<div class="progress" ng-transclude></div>')}]),angular.module("template/progressbar/progressbar.html",[]).run(["$templateCache",function(t){t.put("template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: percent + \'%\'}" aria-valuetext="{{percent | number:0}}%" ng-transclude></div>\n</div>')}]),angular.module("template/rating/rating.html",[]).run(["$templateCache",function(t){t.put("template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}">\n <i ng-repeat="r in range track by $index" ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')">\n <span class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n </i>\n</span>')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href ng-click="select()" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(t){t.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("template/timepicker/timepicker.html",[]).run(["$templateCache",function(t){t.put("template/timepicker/timepicker.html",'<table>\n\t<tbody>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td> </td>\n\t\t\t<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidHours}">\n\t\t\t\t<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td>:</td>\n\t\t\t<td style="width:50px;" class="form-group" ng-class="{\'has-error\': invalidMinutes}">\n\t\t\t\t<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2">\n\t\t\t</td>\n\t\t\t<td ng-show="showMeridian"><button type="button" class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td>\n\t\t</tr>\n\t\t<tr class="text-center">\n\t\t\t<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td> </td>\n\t\t\t<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n\t\t\t<td ng-show="showMeridian"></td>\n\t\t</tr>\n\t</tbody>\n</table>\n')}]),angular.module("template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-match.html",'<a tabindex="-1" bind-html-unsafe="match.label | typeaheadHighlight:query"></a>')}]),angular.module("template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(t){t.put("template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen()" ng-style="{top: position.top+\'px\', left: position.left+\'px\'}" style="display: block;" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index)" role="option" id="{{match.id}}">\n <div typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}])},1142:function(module,exports,__webpack_require__){"use strict";function _toConsumableArray(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var require,_slicedToArray=function(){function t(t,e){var n=[],i=!0,r=!1,o=undefined;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){r=!0,o=l}finally{try{!i&&s["return"]&&s["return"]()}finally{if(r)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_module;!function(glbl,require){function push(t,e){return t=t.slice(),t.push(e),t}function unshift(t,e){return e=e.slice(),e.unshift(t),e}function NewError(t){this.avoidNew=!0,this.value=t,this.message='JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'}function JSONPath(t,e,n,i,r){if(!(this instanceof JSONPath))try{return new JSONPath(t,e,n,i,r)}catch(s){if(!s.avoidNew)throw s;return s.value}"string"==typeof t&&(r=i,i=n,n=e,e=t,t={}),t=t||{};var o=t.hasOwnProperty("json")&&t.hasOwnProperty("path");if(this.json=t.json||n,this.path=t.path||e,this.resultType=t.resultType&&t.resultType.toLowerCase()||"value",this.flatten=t.flatten||!1,this.wrap=!t.hasOwnProperty("wrap")||t.wrap,this.sandbox=t.sandbox||{},this.preventEval=t.preventEval||!1,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||i||null,this.otherTypeCallback=t.otherTypeCallback||r||function(){throw new Error("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==t.autostart){var a=this.evaluate({path:o?t.path:e,json:o?t.json:n});if(!a||"object"!==(void 0===a?"undefined":_typeof(a)))throw new NewError(a);return a}}var isNode=_module&&!!_module.exports,allowedResultTypes=["value","path","pointer","parent","parentProperty","all"];Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)>-1}),String.prototype.includes||(String.prototype.includes=function(t){return this.indexOf(t)>-1});var moveToAnotherArray=function(t,e,n){for(var i=0,r=t.length;i<r;i++){n(t[i])&&e.push(t.splice(i--,1)[0])}},vm=isNode?__webpack_require__(1143):{runInNewContext:function runInNewContext(expr,context){var keys=Object.keys(context),funcs=[];moveToAnotherArray(keys,funcs,function(t){return"function"==typeof context[t]});var code=funcs.reduce(function(t,e){return"var "+e+"="+context[e].toString()+";"+t},"");return code+=keys.reduce(function(t,e){return"var "+e+"="+JSON.stringify(context[e]).replace(/\u2028|\u2029/g,function(t){return"\\u202"+("\u2028"===t?"8":"9")})+";"+t},expr),eval(code)}};JSONPath.prototype.evaluate=function(t,e,n,i){var r=this,o=this.flatten,a=this.wrap,s=this.parent,l=this.parentProperty;if(this.currResultType=this.resultType,this.currPreventEval=this.preventEval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,e=e||this.json,(t=t||this.path)&&"object"===(void 0===t?"undefined":_typeof(t))){if(!t.path)throw new Error('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');e=t.hasOwnProperty("json")?t.json:e,o=t.hasOwnProperty("flatten")?t.flatten:o,this.currResultType=t.hasOwnProperty("resultType")?t.resultType:this.currResultType,this.currSandbox=t.hasOwnProperty("sandbox")?t.sandbox:this.currSandbox,a=t.hasOwnProperty("wrap")?t.wrap:a,this.currPreventEval=t.hasOwnProperty("preventEval")?t.preventEval:this.currPreventEval,n=t.hasOwnProperty("callback")?t.callback:n,this.currOtherTypeCallback=t.hasOwnProperty("otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,s=t.hasOwnProperty("parent")?t.parent:s,l=t.hasOwnProperty("parentProperty")?t.parentProperty:l,t=t.path}if(s=s||null,l=l||null,Array.isArray(t)&&(t=JSONPath.toPathString(t)),t&&e&&allowedResultTypes.includes(this.currResultType)){this._obj=e;var c=JSONPath.toPathArray(t);"$"===c[0]&&c.length>1&&c.shift(),this._hasParentSelector=null;var u=this._trace(c,e,["$"],s,l,n);return u=u.filter(function(t){return t&&!t.isParentSelector}),u.length?1!==u.length||a||Array.isArray(u[0].value)?u.reduce(function(t,e){var n=r._getPreferredOutput(e);return o&&Array.isArray(n)?t=t.concat(n):t.push(n),t},[]):this._getPreferredOutput(u[0]):a?[]:undefined}},JSONPath.prototype._getPreferredOutput=function(t){var e=this.currResultType;switch(e){case"all":return t.path="string"==typeof t.path?t.path:JSONPath.toPathString(t.path),t;case"value":case"parent":case"parentProperty":return t[e];case"path":return JSONPath.toPathString(t[e]);case"pointer":return JSONPath.toPointer(t.path)}},JSONPath.prototype._handleCallback=function(t,e,n){if(e){var i=this._getPreferredOutput(t);t.path="string"==typeof t.path?t.path:JSONPath.toPathString(t.path),e(i,n,t)}},JSONPath.prototype._trace=function(t,e,n,i,r,o,a){function s(t){f.push(t)}function l(t){Array.isArray(t)?t.forEach(s):f.push(t)}var c,u=this;if(!t.length)return c={path:n,value:e,parent:i,parentProperty:r},this._handleCallback(c,o,"value"),c;var d=t[0],h=t.slice(1),f=[];if(("string"!=typeof d||a)&&e&&Object.prototype.hasOwnProperty.call(e,d))l(this._trace(h,e[d],push(n,d),e,d,o));else if("*"===d)this._walk(d,h,e,n,i,r,o,function(t,e,n,i,r,o,a,s){l(u._trace(unshift(t,n),i,r,o,a,s,!0))});else if(".."===d)l(this._trace(h,e,n,i,r,o)),this._walk(d,h,e,n,i,r,o,function(t,e,n,i,r,o,a,s){"object"===_typeof(i[t])&&l(u._trace(unshift(e,n),i[t],push(r,t),i,t,s))});else{if("^"===d)return this._hasParentSelector=!0,n.length?{path:n.slice(0,-1),expr:h,isParentSelector:!0}:[];if("~"===d)return c={path:push(n,d),value:r,parent:i,parentProperty:null},this._handleCallback(c,o,"property"),c;if("$"===d)l(this._trace(h,e,n,null,null,o));else if(/^(-?[0-9]*):(-?[0-9]*):?([0-9]*)$/.test(d))l(this._slice(d,h,e,n,i,r,o));else if(0===d.indexOf("?(")){if(this.currPreventEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");this._walk(d,h,e,n,i,r,o,function(t,e,n,i,r,o,a,s){u._eval(e.replace(/^\?\((.*?)\)$/,"$1"),i[t],t,r,o,a)&&l(u._trace(unshift(t,n),i,r,o,a,s))})}else if("("===d[0]){if(this.currPreventEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");l(this._trace(unshift(this._eval(d,e,n[n.length-1],n.slice(0,-1),i,r),h),e,n,i,r,o))}else if("@"===d[0]){var p=!1,m=d.slice(1,-2);switch(m){case"scalar":e&&["object","function"].includes(void 0===e?"undefined":_typeof(e))||(p=!0);break;case"boolean":case"string":case"undefined":case"function":(void 0===e?"undefined":_typeof(e))===m&&(p=!0);break;case"number":(void 0===e?"undefined":_typeof(e))===m&&isFinite(e)&&(p=!0);break;case"nonFinite":"number"!=typeof e||isFinite(e)||(p=!0);break;case"object":e&&(void 0===e?"undefined":_typeof(e))===m&&(p=!0);break;case"array":Array.isArray(e)&&(p=!0);break;case"other":p=this.currOtherTypeCallback(e,n,i,r);break;case"integer":e!==+e||!isFinite(e)||e%1||(p=!0);break;case"null":null===e&&(p=!0)}if(p)return c={path:n,value:e,parent:i,parentProperty:r},this._handleCallback(c,o,"value"),c}else if("`"===d[0]&&e&&Object.prototype.hasOwnProperty.call(e,d.slice(1))){var g=d.slice(1);l(this._trace(h,e[g],push(n,g),e,g,o,!0))}else if(d.includes(",")){var v,y;for(v=d.split(","),y=0;y<v.length;y++)l(this._trace(unshift(v[y],h),e,n,i,r,o))}else!a&&e&&Object.prototype.hasOwnProperty.call(e,d)&&l(this._trace(h,e[d],push(n,d),e,d,o,!0))}if(this._hasParentSelector)for(var E=0;E<f.length;E++){var b=f[E];if(b.isParentSelector){var _=u._trace(b.expr,e,b.path,i,r,o);if(Array.isArray(_)){f[E]=_[0];for(var C=1,T=_.length;C<T;C++)E++,f.splice(E,0,_[C])}else f[E]=_}}return f},JSONPath.prototype._walk=function(t,e,n,i,r,o,a,s){var l,c,u;if(Array.isArray(n))for(l=0,c=n.length;l<c;l++)s(l,t,e,n,i,r,o,a);else if("object"===(void 0===n?"undefined":_typeof(n)))for(u in n)Object.prototype.hasOwnProperty.call(n,u)&&s(u,t,e,n,i,r,o,a)},JSONPath.prototype._slice=function(t,e,n,i,r,o,a){if(Array.isArray(n)){var s,l=n.length,c=t.split(":"),u=c[0]&&parseInt(c[0],10)||0,d=c[1]&&parseInt(c[1],10)||l,h=c[2]&&parseInt(c[2],10)||1;u=u<0?Math.max(0,u+l):Math.min(l,u),d=d<0?Math.max(0,d+l):Math.min(l,d);var f=[];for(s=u;s<d;s+=h){var p=this._trace(unshift(s,e),n,i,r,o,a);Array.isArray(p)?p.forEach(function(t){f.push(t)}):f.push(p)}return f}},JSONPath.prototype._eval=function(t,e,n,i,r,o){if(!this._obj||!e)return!1;t.includes("@parentProperty")&&(this.currSandbox._$_parentProperty=o,t=t.replace(/@parentProperty/g,"_$_parentProperty")),t.includes("@parent")&&(this.currSandbox._$_parent=r,t=t.replace(/@parent/g,"_$_parent")),t.includes("@property")&&(this.currSandbox._$_property=n,t=t.replace(/@property/g,"_$_property")),t.includes("@path")&&(this.currSandbox._$_path=JSONPath.toPathString(i.concat([n])),t=t.replace(/@path/g,"_$_path")),t.match(/@([\.\s\)\[])/)&&(this.currSandbox._$_v=e,t=t.replace(/@([\.\s\)\[])/g,"_$_v$1"));try{return vm.runInNewContext(t,this.currSandbox)}catch(a){throw console.log(a),new Error("jsonPath: "+a.message+": "+t)}},JSONPath.cache={},JSONPath.toPathString=function(t){var e,n,i=t,r="$";for(e=1,n=i.length;e<n;e++)/^(~|\^|@.*?\(\))$/.test(i[e])||(r+=/^[0-9*]+$/.test(i[e])?"["+i[e]+"]":"['"+i[e]+"']");return r},JSONPath.toPointer=function(t){var e,n,i=t,r="";for(e=1,n=i.length;e<n;e++)/^(~|\^|@.*?\(\))$/.test(i[e])||(r+="/"+i[e].toString().replace(/\~/g,"~0").replace(/\//g,"~1"));return r},JSONPath.toPathArray=function(t){var e=JSONPath.cache;if(e[t])return e[t].concat();var n=[],i=t.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g,";$&;").replace(/[\['](\??\(.*?\))[\]']/g,function(t,e){return"[#"+(n.push(e)-1)+"]"}).replace(/\['([^'\]]*)'\]/g,function(t,e){return"['"+e.replace(/\./g,"%@%").replace(/~/g,"%%@@%%")+"']"}).replace(/~/g,";~;").replace(/'?\.'?(?![^\[]*\])|\['?/g,";").replace(/%@%/g,".").replace(/%%@@%%/g,"~").replace(/(?:;)?(\^+)(?:;)?/g,function(t,e){return";"+e.split("").join(";")+";"}).replace(/;;;|;;/g,";..;").replace(/;$|'?\]|'$/g,""),r=i.split(";").map(function(t){var e=t.match(/#([0-9]+)/);return e&&e[1]?n[e[1]]:t});return e[t]=r,e[t]},JSONPath.eval=function(t,e,n){return JSONPath(n,e,t)},isNode?_module.exports=JSONPath:(glbl.jsonPath={eval:JSONPath.eval},glbl.JSONPath=JSONPath)}(undefined||self,void 0===require?null:require),function(t){function e(){var t="";this.setBaseUrl=function(e){t=e},this.$get=["$http","$q","$log",function(e,i,r){var o=new n(e,i,r);return o.setBaseUrl(t),o}]}function n(t,e,n){function i(t){return angular.copy(r[t])}var r={},o="",a=e.defer();this.setBaseUrl=function(t){o=t},this.getBaseUrl=function(){return o},this.preloadConfigs=function(e){var i=o+"/admr/client-configuration?callback=JSON_CALLBACK",s=Object.assign({timeout:3e3},e);return t.jsonp(i,s).then(function(t){r=t.data,a.resolve(e)})["catch"](function(){n.log("AMS(ADMR) client was not able to load configuration!"),a.reject()}),a.promise},this.whenReady=function(){return a.promise},this.getAdmrConfig=function(){return r.admrParametersConfig},this.setAdmrConfig=function(t){Object.assign(r.admrParametersConfig,t)},this.getApiConfig=function(){return i("api")},this.getApplicationConfig=function(){return i("application")},this.getDefaultProviders=function(){return i("defaultProviders")},this.getExceptionList=function(){return i("exceptionList")},this.getProvidersByRegions=function(){return i("providersByRegions")},this.getRegions=function(){return i("regions")},this.getTimeout=function(){return this.getApplicationConfig().timeout||3e3}}function i(t,e,n,i,r){function o(t,i){var r=this,o=Object.assign({timeout:n.getTimeout()},i);return e.jsonp(this.url+encodeURIComponent(t),o).then(function(t){var e=m(t.data,r.config.dataField);return e?r.transformResults(e):[]})["catch"](function(){return[]})}function a(t){return t.forEach(function(t){t.englishAddress=angular.copy(t)}),t}function s(e){var i=n.getAdmrConfig();if(this.config.details||!i.dl)return this.baseQuery(e);if("en"===i.hl)return this.baseQuery(e).then(a);var r=[],o=i.hl;return r.push(this.baseQuery(e)),i.hl="en",r.push(this.baseQuery(e)),i.hl=o,t.all(r).then(l)}function l(t){var e=_slicedToArray(t,2),n=e[0],i=e[1];return n.forEach(function(t){t.englishAddress=i.find(function(e){return t.lat===e.lat&&t.lng===e.lng})||t.englishAddress}),n}function c(t){var e=[];for(var n in t.params)e.push(n+"="+t.params[n]);return t.queryField&&e.push(t.queryField+"="),t.url+"?"+e.join("&")}function u(t,i){var r=this,o=t.placeId,a=Object.assign({timeout:n.getTimeout()},i);return e.jsonp(this.detailsUrl+encodeURIComponent(o),a).then(function(t){return r.transformResults([t.data[r.config.details.dataField]])}).then(function(t){return _slicedToArray(t,1)[0]})}function d(t){var e=this.config.countryParam;if(e){var n=new RegExp(e+".*?&"),i=""+e+t+"&";this.url=this.url.match(n)?this.url.replace(n,i):this.url.replace("?","?"+i)}}function h(t){return t?c(t):undefined}function f(e){var r=this,o=n.getAdmrConfig(),a=function(t){return t[0]&&t[0].englishAddress===undefined&&o.dl?r.copyResultToEnglishField(t):t},s=e.map(this.transformResult);return s.length?s[0].then?t.all(s).then(function(t){return i.formatAddressLines(t)})["catch"](function(){return[]}).then(a):i.formatAddressLines(s).then(a):t.when([])}function p(t,e){return r.transliterateResult(t,e)}function m(t,e){return e.split(".").reduce(function(t,e){if(!t)return t;var n=/(.+)\[(\d*)\]/.exec(e);if(null===n||3!==n.length)return t[e];var i=n[1],r=n[2];return t[i]!==undefined?t[i][r]:undefined},t)}var g=function(t){var e=this;n.whenReady().then(function(){var i=n.getApiConfig();if(!t||!t.providerId||!i[t.providerId])throw new Error("Unsupported provider Id");e.config=i[t.providerId],e.id=e.config.id,e.url=c(e.config),e.config.details&&(e.detailsUrl=h(e.config.details))})};return Object.assign(g.prototype,{baseQuery:o,copyResultToEnglishField:a,query:s,mergeDoubleLanguageResults:l,buildURL:c,detailsQuery:u,setCountryFilter:d,buildDetailsURL:h,transformResults:f,transliterateResult:p,valueLookup:m}),g}function r(t,e){function n(n){var i=e.getApplicationConfig(),a=e.getApiConfig(),s=e.getBaseUrl(),l=a.Proxy,c=i.timeout||o,u=s+l.gref.url,d=Object.assign({timeout:c},n);r=t.jsonp(u,d).then(function(t){var e=t.data;return Object.entries(e).forEach(function(t){var n=_slicedToArray(t,2),i=n[0],r=n[1];i.split("_").forEach(function(t){e[t]=r})}),e})}function i(t,e){var n=e.replace(/[a-zA-Z]+/g,function(e){return["building","street","house","county","postalCode","city","district","country","state","province"].includes(e)?t[e]||"":["apartment","poBoxNumber"].includes(e)?"":e}).replace(/(,[\s]){2,}/g,", ").replace(/[\s]{2,}/g," ").replace(/(^[\s]?,[\s]?|[\s]?,[\s]?$|^[ ]+|[ ]+$)/g,"");return"NA"===n&&(n=""),n}var r=null,o=3e3;e.whenReady().then(n),this.formatAddressLines=function(t){return r.then(function(e){return t.map(function(t){if(!t.countryCode||!e.hasOwnProperty(t.countryCode))return t;var n=i(t,e[t.countryCode].a1||""),r=i(t,e[t.countryCode].a2||"");return n?Object.assign(t,{addressLine1:n,addressLine2:r}):(t.addressLine1=r,t.addressLine2=""),t.addressLine3=i(t,e[t.countryCode].a3||""),t})})["catch"](function(){return[]})}}function o(t,e,n){function i(){function t(t){r.country=t}function e(t){r.hl=t}function n(t){r.searchBy=t}function i(){return r}var r={};Object.assign(this,{setCountry:t,setLanguage:e,setSearchBy:n,getParameters:i})}function r(t,n,i){return!(++c<l.length)||n&&n.length?(c=0,n.slice(0,e.getApplicationConfig().maxResults)):a(t,i)}function o(t){return t.reduce(function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))},[]).filter(function(t,n){return n<e.getApplicationConfig().maxResults})}function a(t,e){return l[c].query(t,e).then(function(n){return r(t,n,e)})["catch"](function(n){return r(t,n,e)})}function s(e){var n=l.map(function(t){return t.query(e)});return t.all(n).then(o)}var l=void 0,c=0,u=function(){return new i},d={fallback:a,pair:s},h=function(r,o,a){var s=o instanceof i?o.getParameters():{};e.setAdmrConfig(s);var c=e.getAdmrConfig(),u=e.getApplicationConfig(),h=u.algorithm||"fallback",f=c.country?c.country.toLowerCase():"";return!r||r.length<u.searchMinLength?t.reject():(l=n.selectProviders(f,c.certainty),d[h](r,a))},f=function(t){return l.find(function(e){return e.config.id==t.providerId})},p=function(t,e){return f(t).detailsQuery(t,e)};return{createCustomParameters:u,getData:h,getAddressDetails:function(t,e){var n=f(t);return t.placeId?p(t,e).then(function(t){return n.transliterateResult(t,e)}):n.transliterateResult(t,e)}}}function a(t,e,n,i,r,o,a){function s(t){var e={};return Object.entries(t).forEach(function(t){var n=_slicedToArray(t,2),i=n[0];n[1].forEach(function(t){e[t]=i})}),e}var l=[e,n,i,r,o,a],c=function(e){var n=t.getRegions(),i=t.getProvidersByRegions(),r=t.getExceptionList(),o=t.getDefaultProviders(),a=s(n);return e?r[e]||i[a[e.toUpperCase()]]||o:o},u=function(t,e){t.filter(function(t){return"function"==typeof t.setCountryFilter}).forEach(function(t){return t.setCountryFilter(e)})},d=function(t){return t.map(function(t){return l.find(function(e){return t==e.id})}).filter(Boolean)};return{selectProviders:function(e,n){var i=void 0,r=n;switch(r=[0,1,2].includes(+r)?+r:0){case 0:i=t.getDefaultProviders();break;case 1:i=c(e);break;case 2:i=c(e);var o=d(i);return e&&u(o,e),o}return d(i)}}}function s(t,e,n){function i(e,n,i){return t.jsonp(e,n).then(function(t){var e=t.data;return r(i.originalProviderId,e),i.englishAddress&&r(i.englishAddress.originalProviderId,e.englishAddress),e})}function r(t,e){t&&(e.originalProviderId=t)}this.transliterateResult=function(r,o){var a=n.getApiConfig(),s=n.getAdmrConfig(),l=n.getBaseUrl(),c=a.Proxy;if(!s.dl)return e.when(r);var u=l+c.transliteration.url,d=s.hl;return t.post(u,r,o).then(function(t){var n=t.data;return angular.isObject(n)?angular.isObject(r)?(r.originalProviderId&&(n.originalProviderId=r.originalProviderId),r.englishAddress&&r.englishAddress.originalProviderId&&n.englishAddress&&(n.englishAddress.originalProviderId=r.englishAddress.originalProviderId),n):n:e.reject()})["catch"](function(){var t=JSON.stringify(r),e=encodeURIComponent(t);return u.endsWith("?callback=JSON_CALLBACK")||(u+="?callback=JSON_CALLBACK"),i(u+"&language="+d+"&address="+e,o,r)})}}function l(t){var e=new t({providerId:"Baidu"});return e.transformResult=function(t,e){var n={providerId:"Baidu",stateCode:"",postalCode:"",county:""};if(!0===e){var i=0===t.addressComponent.country_code?"CN":t.addressComponent.country;return Object.assign({placeId:null,house:t.addressComponent.street_number,street:t.addressComponent.street,district:t.addressComponent.district,city:t.addressComponent.city,state:t.addressComponent.province,country:t.addressComponent.country,countryCode:i,text:t.name,lat:t.location.lat,lng:t.location.lng},n)}var r=t.location?t.location.lat+","+t.location.lng:undefined;return Object.assign({placeId:r,house:"",street:"",district:t.district,city:t.city,state:"",country:"",countryCode:"",text:t.name,lat:t.lat,lng:t.lng,details:!0},n)},e}function c(t,e){function n(t){return o.hl=o.hl||"en",this.url=this.buildURL(this.config),this.url=this.url.replace("@@LANGUAGE@@",this.humanLanguageMapper[o.hl]||o.hl),e.prototype.baseQuery.call(this,t)}function i(t){var e=_slicedToArray(t.point.coordinates,2),n=e[0],i=e[1];return{providerId:"Bing",building:t.address.landmark,placeId:null,house:null,street:t.address.addressLine,postalCode:t.address.postalCode,district:null,type:r(t.entityType),city:t.address.locality,county:t.address.adminDistrict2,state:t.address.adminDistrict,stateCode:t.address.adminDistrict,country:t.address.countryRegion,countryCode:t.address.countryRegionIso2,text:t.address.formattedAddress,lat:n,lng:i}}function r(t){return{Address:"HOUSE",RoadBlock:"STREET",Neighborhood:"DISTRICT",AdminDivision1:"LOCALITY",PopulatedPlace:"LOCALITY"}[t]||null}var o=null;t.whenReady().then(function(){o=t.getAdmrConfig()});var a=new e({providerId:"Bing"}),s={et:"am",sa:"ar-sa",by:"be",ba:"bs",cz:"cs",gr:"el",mx:"es-MX",ee:"et",il:"he",am:"hy",jp:"ja",ge:"ka",kz:"kk",kr:"ko",kp:"ko",lu:"lx",lt:"lv",mk:"bg",no:"nb",br:"pt-BR",si:"sl",al:"sq",cs:"sr-Cyrl-RS",se:"sv",ua:"uk",cn:"zh-Hant"};return Object.assign(a,{baseQuery:n,transformResult:i,setType:r,humanLanguageMapper:s}),a}function u(t,e,n,i,r){function o(t,e,n,i){var r=t.suggest;return"details"===e&&(r=t.details),Object.values(r).forEach(function(t){var e=t.field,r=t.expressions;n[e]=Object.values(r).reduce(function(t,e){return t||JSONPath({json:i,path:e,resultType:"value",wrap:!1})},undefined)}),"details"!==e||n.postalCode||(n.postalCode=d.getPostalCode(i)),n}function a(t,i,r){if(l&&h[l]){var a=h[l];return e.when(o(a,t,i,r))}if(!l&&h.noCountryCode){var s=h.noCountryCode;return e.when(o(s,t,i,r))}var c=u+"/admr/mapping?providerId=Google";return l&&(c+="&country="+l),c+="&callback=JSON_CALLBACK",n.jsonp(c).then(function(e){return o(h[l||"noCountryCode"]=e.data,t,i,r)})["catch"](function(){return"details"===t?i:{}})}var s={},l=void 0,c=null,u=null;i.whenReady().then(function(){c=i.getAdmrConfig(),u=i.getBaseUrl()});var d=new r({providerId:"Google"});d.googleMaps={},d.loadGeocoderByLanguage=function(t){if(d.googleMaps[t])return e.when(d.googleMaps[t]);var n=e.defer();return d.loadGoogleMapsAPIScript(t,function(e,i){if(e)return void n.reject(e);d.googleMaps[t]={},d.googleMaps[t].constructor=i,d.googleMaps[t].instance=new i.maps.places.AutocompleteService,d.googleMaps[t].detailsInstance=new i.maps.places.PlacesService(window.document.createElement("div")),n.resolve(d.googleMaps[t])}),n.promise},d.loadGoogleMapsAPIScript=function(e,n){t.google=undefined;var i=document.createElement("script");i.type="text/javascript",i.src=this.url.replace("@@LANGUAGE@@",e),document.body.appendChild(i),i.onload=function(){n(null,t.google)},i.onerror=function(t){n(t)}},d.baseQuery=function(t){var n=this,i=e.defer();return c.hl=c.hl||"en",d.loadGeocoderByLanguage(c.hl).then(function(e){var r=angular.copy(s);r.input=t,r.location=new e.constructor.maps.LatLng(0,0),r.radius=2e7,d.clearCountryFilter(),e.instance.getPlacePredictions(r,function(t,r){var o=r==e.constructor.maps.places.PlacesServiceStatus.OK?n.transformResults(t):[];return i.resolve(o)})})["catch"](function(){d.clearCountryFilter(),i.resolve([])}),i.promise},d.setCountryFilter=function(t){s.componentRestrictions={country:t}},d.clearCountryFilter=function(){l=s.componentRestrictions&&s.componentRestrictions.country||undefined,delete s.componentRestrictions},d.getPostalCode=function(t){var e=JSONPath({json:t,path:"$.address_components[?(@.types[0] == 'postal_code')].long_name",resultType:"value",wrap:!1}),n=JSONPath({json:t,path:"$.address_components[?(@.types[0] == 'postal_code_suffix')].long_name",resultType:"value",wrap:!1}),i=JSONPath({json:t,path:"$.address_components[?(@.types[0] == 'postal_code_prefix')].long_name",resultType:"value",wrap:!1});return i||(n?e+"-"+n:e)};var h={};return d.transformResult=function(t){var e={providerId:"Google",building:"",placeId:"",house:"",street:"",district:"",type:d.setType(t.types),city:"",state:"",stateCode:"",postalCode:"",county:"",country:"",countryCode:"",text:""};return a(t.address_components===undefined?"suggestions":"details",e,t)},d.setType=function(t){return t.includes("street_address")?"HOUSE":t.includes("route")?"STREET":t.includes("neighborhood")||t.includes("sublocality_level_1")?"DISTRICT":t.includes("locality")||t.includes("postal_town")?"LOCALITY":null},d.detailsQuery=function(t){var n=this,i=t.placeId,r=e.defer();return c.hl=c.hl||"en",d.loadGeocoderByLanguage(c.hl).then(function(t){t.detailsInstance.getDetails({placeId:i},function(t){return n.transformResults([t]).then(function(t){var e=_slicedToArray(t,1),n=e[0];return r.resolve(n)})["catch"](function(t){console.log(t),r.resolve({})})})})["catch"](function(){r.resolve({})}),r.promise},d}function d(t,e,n){function i(t,e,n){return t.replace("@@CERTAINTY@@",e.certainty||0).replace("@@COUNTRY@@",n).replace("@@LANGUAGE@@",e.hl||"en").replace("@@DOUBLELANGUAGE@@",e.dl||!1).replace("@@SEARCHBY@@",e.searchBy||"text")}function r(t,e){t&&o(t,e)}function o(t,e){t.addressLine1||(t.addressLine1=t.addressLine2,t.addressLine2=undefined),t.originalProviderId=e,t.providerId="Proxy"}function a(t,e,n){return t.replace("@@PROVIDERID@@",e.originalProviderId).replace("@@LANGUAGE@@",n.hl||"en").replace("@@DOUBLELANGUAGE@@",n.dl||!1)}var s=new n({providerId:"Proxy"});return s.query=function(e,r){var o=t.getAdmrConfig(),a=o.country?o.country.toLowerCase():"";return this.url=t.getBaseUrl()+this.buildURL(this.config),this.url=i(this.url,o,a),a.length<=0&&(this.url=this.url.replace("country=&","")),n.prototype.baseQuery.call(this,e,r)},s.transformResults=function(t){return e.when(t.map(this.transformResult))},s.transformResult=function(t){var e=t.providerId;return o(t,e),r(t.englishAddress,e),t},s.detailsQuery=function(e,i){var r=t.getAdmrConfig();if(this.detailsUrl=t.getBaseUrl()+this.buildDetailsURL(this.config.details),this.detailsUrl=a(this.detailsUrl,e,r),"2"===r.certainty&&r.country){var o=this.detailsUrl.split("?");this.detailsUrl=o[0]+"?country="+r.country+"&"+o[1]}return n.prototype.detailsQuery.call(this,e,i)},s}function h(t,e,n){function i(t){return a.hl=a.hl||"en",this.url=this.buildURL(this.config),this.url=this.url.replace("@@LANGUAGE@@",a.hl),n.prototype.baseQuery.call(this,t)}function r(t){return{providerId:"TomTom",building:t.poiName,placeId:null,house:t.houseNumber,street:t.street,district:t.district,type:o(t.type),city:t.city,state:t.state,stateCode:t.statecode,postalCode:t.postcode,county:"",country:t.country,countryCode:e[t.countryISO3],text:t.formattedAddress,lat:t.latitude,lng:t.longitude}}function o(t){return{house:"HOUSE",addresspoint:"HOUSE",poi:"HOUSE",street:"STREET",city:"LOCALITY",district:"DISTRICT"}[t]||null}var a=null;t.whenReady().then(function(){a=t.getAdmrConfig()});var s=new n({providerId:"TomTom"});return Object.assign(s,{baseQuery:i,transformResult:r,setType:o}),s}function f(t,e){var n=null;t.whenReady().then(function(){n=t.getAdmrConfig()});var i=new e({providerId:"Yandex"});return i.baseQuery=function(t){return n.hl=n.hl||"en",this.url=this.buildURL(this.config),this.url=this.url.replace("@@LANGUAGE@@",n.hl),e.prototype.baseQuery.call(this,t)},i.transformResults=function(t){var n=this,i=t.filter(function(t){return n.valueLookup(t,"GeoObject.metaDataProperty.GeocoderMetaData.AddressDetails.Country")});return e.prototype.transformResults.call(this,i)},i.transformResult=function(t){function e(t){return t.reduce(function(t,e){return t||n.valueLookup(r,e)},undefined)}var n=this,i=t.GeoObject.Point.pos.split(" "),r=t.GeoObject.metaDataProperty.GeocoderMetaData.AddressDetails.Country,o=r.CountryNameCode,a=e(["AdministrativeArea.AdministrativeAreaName"]),s=e(["AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.Premise.PremiseNumber","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.Thoroughfare.Premise.PremiseNumber","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.Premise.PremiseNumber","AdministrativeArea.Locality.Thoroughfare.Premise.PremiseNumber","AdministrativeArea.Locality.DependentLocality.Thoroughfare.Premise.PremiseNumber","AdministrativeArea.Locality.DependentLocality.Premise.PremiseNumber"]),l=e(["AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.Premise.PremiseName","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.Thoroughfare.Premise.PremiseName","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.Premise.PremiseName","AdministrativeArea.Locality.Thoroughfare.Premise.PremiseName","AdministrativeArea.Locality.DependentLocality.Thoroughfare.Premise.PremiseName","AdministrativeArea.Locality.DependentLocality.Premise.PremiseName"]),c=e(["AdministrativeArea.SubAdministrativeArea.Locality.Thoroughfare.ThoroughfareName","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.Thoroughfare.ThoroughfareName","AdministrativeArea.Locality.Thoroughfare.ThoroughfareName","AdministrativeArea.Locality.DependentLocality.Thoroughfare.ThoroughfareName"]),u=e(["AdministrativeArea.SubAdministrativeArea.Locality.LocalityName","AdministrativeArea.Locality.LocalityName"]),d=e(["AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.DependentLocalityName","AdministrativeArea.SubAdministrativeArea.Locality.DependentLocality.DependentLocalityName","AdministrativeArea.Locality.DependentLocality.DependentLocalityName","AdministrativeArea.Locality.DependentLocality.DependentLocalityName"]),h=e(["AdministrativeArea.SubAdministrativeArea.SubAdministrativeAreaName"]);if(o&&"TR"===o.toUpperCase()){var f=d?h:a;u=u||f}else h=h||a;var p=_slicedToArray(i,2),m=p[0],g=p[1];return{providerId:"Yandex",building:l,placeId:null,house:s,street:c,district:d,type:n.setType(t.GeoObject.metaDataProperty.GeocoderMetaData.kind),city:u,state:a,stateCode:"",postalCode:"",county:h,country:r.CountryName,countryCode:o,lat:m,lng:g,text:t.GeoObject.description+", "+t.GeoObject.name}},i.setType=function(t){return{house:"HOUSE",street:"STREET",locality:"LOCALITY",district:"DISTRICT"}[t]||null},i}t.provider("admrConfig",e),t.factory("BaseSuggestionService",["$q","$http","admrConfig","GREFService","transliterationService",i]),t.service("GREFService",["$http","admrConfig",r]),t.factory("admrService",["$q","admrConfig","providerSelection",o]),t.factory("providerSelection",["admrConfig","ProxyProviderService","TomTomService","BaiduService","YandexService","GoogleService","BingService",a]),t.service("transliterationService",["$http","$q","admrConfig",s]),t.service("BaiduService",["BaseSuggestionService",l]),t.service("BingService",["admrConfig","BaseSuggestionService",c]),t.service("GoogleService",["$window","$q","$http","admrConfig","BaseSuggestionService",u]),t.service("ProxyProviderService",["admrConfig","$q","BaseSuggestionService",d]),t.service("TomTomService",["admrConfig","countryCodes","BaseSuggestionService",h]),t.service("YandexService",["admrConfig","BaseSuggestionService",f]),t.constant("countryCodes",{AFG:"AF",ALB:"AL",DZA:"DZ",ASM:"AS",AND:"AD",AGO:"AO",AIA:"AI",ATA:"AQ",ATG:"AG",ARG:"AR",ARM:"AM",ABW:"AW",AUS:"AU",AUT:"AT",AZE:"AZ",BHS:"BS",BHR:"BH",BGD:"BD",BRB:"BB",BLR:"BY",BEL:"BE",BLZ:"BZ",BEN:"BJ",BMU:"BM",BTN:"BT",BOL:"BO",BIH:"BA",BWA:"BW",BRA:"BR",IOT:"IO",VGB:"VG",BRN:"BN",BGR:"BG",BFA:"BF",MMR:"MM",BDI:"BI",KHM:"KH",CMR:"CM",CAN:"CA",CPV:"CV",CYM:"KY",CAF:"CF",TCD:"TD",CHL:"CL",CHN:"CN",CXR:"CX",CCK:"CC",COL:"CO",COM:"KM",COK:"CK",CRC:"CR",HRV:"HR",CUB:"CU",CYP:"CY",CZE:"CZ",COD:"CD",DNK:"DK",DJI:"DJ",DMA:"DM",DOM:"DO",ECU:"EC",EGY:"EG",SLV:"SV",GNQ:"GQ",ERI:"ER",EST:"EE",ETH:"ET",FLK:"FK",FRO:"FO",FJI:"FJ",FIN:"FI",FRA:"FR",PYF:"PF",GAB:"GA",GMB:"GM",GEO:"GE",DEU:"DE",GHA:"GH",GIB:"GI",GRC:"GR",GRL:"GL",GRD:"GD",GUM:"GU",GTM:"GT",GIN:"GN",GNB:"GW",GUY:"GY",HTI:"HT",VAT:"VA",HND:"HN",HKG:"HK",HUN:"HU",IS:"IS",IND:"IN",IDN:"ID",IRN:"IR",IRQ:"IQ",IRL:"IE",IMN:"IM",ISR:"IL",ITA:"IT",CIV:"CI",JAM:"JM",JPN:"JP",JEY:"JE",JOR:"JO",KAZ:"KZ",KEN:"KE",KIR:"KI",KWT:"KW",KGZ:"KG",LAO:"LA",LVA:"LV",LBN:"LB",LSO:"LS",LBR:"LR",LBY:"LY",LIE:"LI",LTU:"LT",LUX:"LU",MAC:"MO",MKD:"MK",MDG:"MG",MWI:"MW",MYS:"MY",MDV:"MV",MLI:"ML",MLT:"MT",MHL:"MH",MRT:"MR",MUS:"MU",MYT:"YT",MEX:"MX",FSM:"FM",MDA:"MD",MCO:"MC",MNG:"MN",MNE:"ME",MSR:"MS",MAR:"MA",MOZ:"MZ",NAM:"NA",NRU:"NR",NPL:"NP",NLD:"NL",ANT:"AN",NCL:"NC",NZL:"NZ",NIC:"NI",NER:"NE",NGA:"NG",NIU:"NU",NFK:"",PRK:"KP",MNP:"MP",NOR:"NO",OMN:"OM",PAK:"PK",PLW:"PW",PAN:"PA",PNG:"PG",PRY:"PY",PER:"PE",PHL:"PH",PCN:"PN",POL:"PL",PRT:"PT",PRI:"PR",QAT:"QA",COG:"CG",ROU:"RO",RUS:"RU",RWA:"RW",BLM:"BL",SHN:"SH",KNA:"KN",LCA:"LC",MAF:"MF",SPM:"PM",VCT:"VC",WSM:"WS",SMR:"SM",STP:"ST",SAU:"SA",SEN:"SN",SRB:"RS",SYC:"SC",SLE:"SL",SGP:"SG",SVK:"SK",SVN:"SI",SLB:"SB",SOM:"SO",ZAF:"ZA",KOR:"KR",ESP:"ES",LKA:"LK",SDN:"SD",SUR:"SR",SJM:"SJ",SWZ:"SZ",SWE:"SE",CHE:"CH",SYR:"SY",TWN:"TW",TJK:"TJ",TZA:"TZ",THA:"TH",TLS:"TL",TGO:"TG",TKL:"TK",TON:"TO",TTO:"TT",TUN:"TN",TUR:"TR",TKM:"TM",TCA:"TC",TUV:"TV",UGA:"UG",UKR:"UA",ARE:"AE",GBR:"GB",USA:"US",URY:"UY",VIR:"VI",UZB:"UZ",VUT:"VU",VEN:"VE",VNM:"VN",WLF:"WF",ESH:"EH",YEM:"YE",ZMB:"ZM",ZWE:"ZW"})}(angular.module("addressSuggestion",[]))},1143:function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(1144),Object_keys=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)e.push(n);return e},forEach=function(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n,t)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(t,e,n){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:n})}}catch(t){return function(t,e,n){t[e]=n}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(t){if(!(this instanceof Script))return new Script(t);this.code=t};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var n=e.contentWindow,i=n.eval,r=n.execScript;!i&&r&&(r.call(n,"null"),i=n.eval),forEach(Object_keys(t),function(e){n[e]=t[e]}),forEach(globals,function(e){t[e]&&(n[e]=t[e])});var o=Object_keys(n),a=i.call(n,this.code);return forEach(Object_keys(n),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=n[e])}),forEach(globals,function(e){e in t||defineProp(t,e,n[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var e=Script.createContext(t),n=this.runInContext(e);return forEach(Object_keys(e),function(n){t[n]=e[n]}),n},forEach(Object_keys(Script.prototype),function(t){exports[t]=Script[t]=function(e){var n=Script(e);return n[t].apply(n,[].slice.call(arguments,1))}}),exports.createScript=function(t){return exports.Script(t)},exports.createContext=Script.createContext=function(t){var e=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(n){e[n]=t[n]}),e}},1144:function(t,e){var n=[].indexOf;t.exports=function(t,e){if(n)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}},1145:function(t,e){!function(){"use strict";/** * Bindonce - Zero watches binding for AngularJs * @version v0.3.1 * @link https://github.com/Pasvaz/bindonce * @author Pasquale Vazzana <pasqualevazzana@gmail.com> * @license MIT License, http://www.opensource.org/licenses/MIT */ var t=angular.module("pasvaz.bindonce",[]);t.directive("bindonce",function(){var t=function(t){if(t&&0!==t.length){var e=angular.lowercase(""+t);t=!("f"===e||"0"===e||"false"===e||"no"===e||"n"===e||"[]"===e)}else t=!1;return t},e=parseInt((/msie (\d+)/.exec(angular.lowercase(navigator.userAgent))||[])[1],10);return isNaN(e)&&(e=parseInt((/trident\/.*; rv:(\d+)/.exec(angular.lowercase(navigator.userAgent))||[])[1],10)),{restrict:"AM",controller:["$scope","$element","$attrs","$interpolate",function(n,i,r,o){var a=function(e,n,i){var r="show"===n?"":"none",o="hide"===n?"":"none";e.css("display",t(i)?r:o)},s=function(t,e){if(angular.isObject(e)&&!angular.isArray(e)){var n=[];angular.forEach(e,function(t,e){t&&n.push(e)}),e=n}e&&t.addClass(angular.isArray(e)?e.join(" "):e)};return{watcherRemover:undefined,binders:[],group:r.boName,element:i,ran:!1,addBinder:function(t){this.binders.push(t),this.ran&&this.runBinders()},setupWatcher:function(t){var e=this;this.watcherRemover=n.$watch(t,function(t){t!==undefined&&(e.removeWatcher(),e.runBinders())},!0)},removeWatcher:function(){this.watcherRemover!==undefined&&(this.watcherRemover(),this.watcherRemover=undefined)},runBinders:function(){for(;this.binders.length>0;){var n=this.binders.shift();if(!this.group||this.group==n.group){var i=n.scope.$eval(n.interpolate?o(n.value):n.value);switch(n.attr){case"boIf":t(i)&&n.transclude(n.scope.$new(),function(t){var e=n.element.parent(),i=n.element&&n.element[n.element.length-1],r=e&&e[0]||i&&i.parentNode,o=i&&i.nextSibling||null;angular.forEach(t,function(t){r.insertBefore(t,o)})});break;case"boSwitch":var r,l=n.controller[0];(r=l.cases["!"+i]||l.cases["?"])&&(n.scope.$eval(n.attrs.change),angular.forEach(r,function(t){t.transclude(n.scope.$new(),function(e){var n=t.element.parent(),i=t.element&&t.element[t.element.length-1],r=n&&n[0]||i&&i.parentNode,o=i&&i.nextSibling||null;angular.forEach(e,function(t){r.insertBefore(t,o)})})}));break;case"boSwitchWhen":var c=n.controller[0];c.cases["!"+n.attrs.boSwitchWhen]=c.cases["!"+n.attrs.boSwitchWhen]||[],c.cases["!"+n.attrs.boSwitchWhen].push({transclude:n.transclude,element:n.element});break;case"boSwitchDefault":var c=n.controller[0];c.cases["?"]=c.cases["?"]||[],c.cases["?"].push({transclude:n.transclude,element:n.element});break;case"hide":case"show":a(n.element,n.attr,i);break;case"class":s(n.element,i);break;case"text":n.element.text(i);break;case"html":n.element.html(i);break;case"style":n.element.css(i);break;case"src":n.element.attr(n.attr,i),e&&n.element.prop("src",i);break;case"attr":angular.forEach(n.attrs,function(t,e){var i,r;e.match(/^boAttr./)&&n.attrs[e]&&(i=e.replace(/^boAttr/,"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=n.scope.$eval(n.attrs[e]),n.element.attr(i,r))});break;case"href":case"alt":case"title":case"id":case"value":n.element.attr(n.attr,i)}}}this.ran=!0}}}],link:function(t,e,n,i){(!n.bindonce||t.$eval(n.bindonce))!==undefined?i.runBinders():(i.setupWatcher(n.bindonce),e.bind("$destroy",i.removeWatcher))}}}),angular.forEach([{directiveName:"boShow",attribute:"show"},{directiveName:"boHide",attribute:"hide"},{directiveName:"boClass",attribute:"class"},{directiveName:"boText",attribute:"text"},{directiveName:"boBind",attribute:"text"},{directiveName:"boHtml",attribute:"html"},{directiveName:"boSrcI",attribute:"src",interpolate:!0},{directiveName:"boSrc",attribute:"src"},{directiveName:"boHrefI",attribute:"href",interpolate:!0},{directiveName:"boHref",attribute:"href"},{directiveName:"boAlt",attribute:"alt"},{directiveName:"boTitle",attribute:"title"},{directiveName:"boId",attribute:"id"},{directiveName:"boStyle",attribute:"style"},{directiveName:"boValue",attribute:"value"},{directiveName:"boAttr",attribute:"attr"},{directiveName:"boIf",transclude:"element",terminal:!0,priority:1e3},{directiveName:"boSwitch",require:"boSwitch",controller:function(){this.cases={}}},{directiveName:"boSwitchWhen",transclude:"element",priority:800,require:"^boSwitch"},{directiveName:"boSwitchDefault",transclude:"element",priority:800,require:"^boSwitch"}],function(e){return t.directive(e.directiveName,function(){return{priority:e.priority||200,transclude:e.transclude||!1,terminal:e.terminal||!1,require:["^bindonce"].concat(e.require||[]),controller:e.controller,compile:function(t,n,i){return function(t,n,r,o){var a=o[0],s=r.boParent;if(s&&a.group!==s){var l=a.element.parent();a=undefined;for(var c;9!==l[0].nodeType&&l.length;){if((c=l.data("$bindonceController"))&&c.group===s){a=c;break}l=l.parent()}if(!a)throw new Error("No bindonce controller: "+s)}a.addBinder({element:n,attr:e.attribute||e.directiveName,attrs:r,value:r[e.directiveName],interpolate:e.interpolate,group:s,transclude:i,controller:o.slice(1),scope:t})}}}})})}()},1146:function(t,e){/** * @license AngularJS v1.2.28 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ !function(t,e,n){"use strict";function i(){this.$get=["$$sanitizeUri",function(t){return function(e){var n=[];return a(e,c(n,function(e,n){return!/^unsafe/.test(t(e,n))})),n.join("")}}]}function r(t){var n=[];return c(n,e.noop).chars(t),n.join("")}function o(t){var e,n={},i=t.split(",");for(e=0;e<i.length;e++)n[i[e]]=!0;return n}function a(t,n){function i(t,i,o,a){if(i=e.lowercase(i),D[i])for(;E.last()&&$[E.last()];)r("",E.last());I[i]&&E.last()==i&&r("",i),(a=_[i]||!!a)||E.push(i);var l={};o.replace(f,function(t,e,n,i,r){var o=n||i||r||"";l[e]=s(o)}),n.start&&n.start(i,l,a)}function r(t,i){var r,o=0;if(i=e.lowercase(i))for(o=E.length-1;o>=0&&E[o]!=i;o--);if(o>=0){for(r=E.length-1;r>=o;r--)n.end&&n.end(E[r]);E.length=o}}"string"!=typeof t&&(t=null===t||void 0===t?"":""+t);var o,a,l,c,E=[],b=t;for(E.last=function(){return E[E.length-1]};t;){if(c="",a=!0,E.last()&&O[E.last()]?(t=t.replace(new RegExp("(.*)<\\s*\\/\\s*"+E.last()+"[^>]*>","i"),function(t,e){return e=e.replace(g,"$1").replace(y,"$1"),n.chars&&n.chars(s(e)),""}),r("",E.last())):(0===t.indexOf("\x3c!--")?(o=t.indexOf("--",4))>=0&&t.lastIndexOf("--\x3e",o)===o&&(n.comment&&n.comment(t.substring(4,o)),t=t.substring(o+3),a=!1):v.test(t)?(l=t.match(v))&&(t=t.replace(l[0],""),a=!1):m.test(t)?(l=t.match(h))&&(t=t.substring(l[0].length),l[0].replace(h,r),a=!1):p.test(t)&&(l=t.match(d),l?(l[4]&&(t=t.substring(l[0].length),l[0].replace(d,i)),a=!1):(c+="<",t=t.substring(1))),a&&(o=t.indexOf("<"),c+=o<0?t:t.substring(0,o),t=o<0?"":t.substring(o),n.chars&&n.chars(s(c)))),t==b)throw u("badparse","The sanitizer was unable to parse the following block of html: {0}",t);b=t}r()}function s(t){if(!t)return"";var e=S.exec(t),n=e[1],i=e[3],r=e[2];return r&&(x.innerHTML=r.replace(/</g,"<"),r="textContent"in x?x.textContent:x.innerText),n+r+i}function l(t){return t.replace(/&/g,"&").replace(E,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(b,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function c(t,n){var i=!1,r=e.bind(t,t.push);return{start:function(t,o,a){t=e.lowercase(t),!i&&O[t]&&(i=t),i||!0!==w[t]||(r("<"),r(t),e.forEach(o,function(i,o){var a=e.lowercase(o),s="img"===t&&"src"===a||"background"===a;!0!==k[a]||!0===R[a]&&!n(i,s)||(r(" "),r(o),r('="'),r(l(i)),r('"'))}),r(a?"/>":">"))},end:function(t){t=e.lowercase(t),i||!0!==w[t]||(r("</"),r(t),r(">")),t==i&&(i=!1)},chars:function(t){i||r(l(t))}}}var u=e.$$minErr("$sanitize"),d=/^<((?:[a-zA-Z])[\w:-]*)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*(>?)/,h=/^<\/\s*([\w:-]+)[^>]*>/,f=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,p=/^</,m=/^<\//,g=/<!--(.*?)-->/g,v=/<!DOCTYPE([^>]*?)>/i,y=/<!\[CDATA\[(.*?)]]>/g,E=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/([^\#-~| |!])/g,_=o("area,br,col,hr,img,wbr"),C=o("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),T=o("rp,rt"),I=e.extend({},T,C),D=e.extend({},C,o("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,script,section,table,ul")),$=e.extend({},T,o("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),O=o("script,style"),w=e.extend({},_,D,$,I),R=o("background,cite,href,longdesc,src,usemap"),k=e.extend({},R,o("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,target,title,type,valign,value,vspace,width")),x=document.createElement("pre"),S=/^(\s*)([\s\S]*?)(\s*)$/;e.module("ngSanitize",[]).provider("$sanitize",i),e.module("ngSanitize").filter("linky",["$sanitize",function(t){var n=/((ftp|https?):\/\/|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"]/,i=/^mailto:/;return function(o,a){function s(t){t&&h.push(r(t))}if(!o)return o;for(var l,c,u,d=o,h=[];l=d.match(n);)c=l[0],l[2]==l[3]&&(c="mailto:"+c),u=l.index,s(d.substr(0,u)),function(t,n){h.push("<a "),e.isDefined(a)&&(h.push('target="'),h.push(a),h.push('" ')),h.push('href="',t.replace('"',"""),'">'),s(n),h.push("</a>")}(c,l[0].replace(i,"")),d=d.substring(u+l[0].length);return s(d),t(h.join(""))}}])}(window,window.angular)},1147:function(t,e,n){n(255),n(1148);t.exports="ui.mask"},1148:function(t,e){/*! * angular-ui-mask * https://github.com/angular-ui/ui-mask * Version: 1.8.7 - 2016-07-26T16:01:23.393Z * License: MIT */ !function(){"use strict";angular.module("ui.mask",[]).value("uiMaskConfig",{maskDefinitions:{9:/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},clearOnBlur:!0,clearOnBlurPlaceholder:!1,escChar:"\\",eventsToHandle:["input","keyup","click","focus"],addDefaultPlaceholder:!0,allowInvalidValue:!1}).provider("uiMask.Config",function(){var t={};this.maskDefinitions=function(e){return t.maskDefinitions=e},this.clearOnBlur=function(e){return t.clearOnBlur=e},this.clearOnBlurPlaceholder=function(e){return t.clearOnBlurPlaceholder=e},this.eventsToHandle=function(e){return t.eventsToHandle=e},this.addDefaultPlaceholder=function(e){return t.addDefaultPlaceholder=e},this.allowInvalidValue=function(e){return t.allowInvalidValue=e},this.$get=["uiMaskConfig",function(e){var n=e;for(var i in t)angular.isObject(t[i])&&!angular.isArray(t[i])?angular.extend(n[i],t[i]):n[i]=t[i];return n}]}).directive("uiMask",["uiMask.Config",function(t){function e(t){return t===document.activeElement&&(!document.hasFocus||document.hasFocus())&&!!(t.type||t.href||~t.tabIndex)}return{priority:100,require:"ngModel",restrict:"A",compile:function(){var n=angular.copy(t);return function(t,i,r,o){function a(t){return angular.isDefined(t)?(b(t),U?(h(),f(),!0):d()):d()}function s(t){t&&(A=t,!U||0===i.val().length&&angular.isDefined(r.placeholder)||i.val(v(g(i.val()))))}function l(){return a(r.uiMask)}function c(t){return U?(M=g(t||""),L=m(M),o.$setValidity("mask",L),M.length&&(L||X.allowInvalidValue)?v(M):undefined):t}function u(t){return U?(M=g(t||""),L=m(M),o.$viewValue=M.length?v(M):"",o.$setValidity("mask",L),L||X.allowInvalidValue?Y?o.$viewValue:M:void 0):t}function d(){return U=!1,p(),angular.isDefined(G)?i.attr("placeholder",G):i.removeAttr("placeholder"),angular.isDefined(q)?i.attr("maxlength",q):i.removeAttr("maxlength"),i.val(o.$modelValue),o.$viewValue=o.$modelValue,!1}function h(){M=B=g(o.$modelValue||""),K=F=v(M),L=m(M),r.maxlength&&i.attr("maxlength",2*x[x.length-1]),!G&&X.addDefaultPlaceholder&&i.attr("placeholder",A);for(var t=o.$modelValue,e=o.$formatters.length;e--;)t=o.$formatters[e](t);o.$viewValue=t||"",o.$render()}function f(){z||(i.bind("blur",_),i.bind("mousedown mouseup",T),i.bind("keydown",D),i.bind(X.eventsToHandle.join(" "),$),z=!0)}function p(){z&&(i.unbind("blur",_),i.unbind("mousedown",T),i.unbind("mouseup",T),i.unbind("keydown",D),i.unbind("input",$),i.unbind("keyup",$),i.unbind("click",$),i.unbind("focus",$),z=!1)}function m(t){return!t.length||t.length>=P}function g(t){var e,n,r="",o=i[0],a=S.slice(),s=j,l=s+k(o),c="";return t=t.toString(),e=0,n=t.length-A.length,angular.forEach(N,function(i){var r=i.position;r>=s&&r<l||(r>=s&&(r+=n),t.substring(r,r+i.value.length)===i.value&&(c+=t.slice(e,r),e=r+i.value.length))}),t=c+t.slice(e),angular.forEach(t.split(""),function(t){a.length&&a[0].test(t)&&(r+=t,a.shift())}),r}function v(t){var e="",n=x.slice();return angular.forEach(A.split(""),function(i,r){t.length&&r===n[0]?(e+=t.charAt(0)||"_",t=t.substr(1),n.shift()):e+=i}),e}function y(t){var e,n=angular.isDefined(r.uiMaskPlaceholder)?r.uiMaskPlaceholder:r.placeholder;return angular.isDefined(n)&&n[t]?n[t]:(e=angular.isDefined(r.uiMaskPlaceholderChar)&&r.uiMaskPlaceholderChar?r.uiMaskPlaceholderChar:"_","space"===e.toLowerCase()?" ":e[0])}function E(){var t,e,n=A.split("");x&&!isNaN(x[0])&&angular.forEach(x,function(t){n[t]="_"}),t=n.join(""),e=t.replace(/[_]+/g,"_").split("_"),e=e.filter(function(t){return""!==t});var i=0;return e.map(function(e){var n=t.indexOf(e,i);return i=n+1,{value:e,position:n}})}function b(t){var e=0;if(x=[],S=[],A="",angular.isString(t)){P=0;var n=!1,i=0,r=t.split(""),o=!1;angular.forEach(r,function(t,r){o?(o=!1,A+=t,e++):X.escChar===t?o=!0:X.maskDefinitions[t]?(x.push(e),A+=y(r-i),S.push(X.maskDefinitions[t]),e++,n||P++,n=!1):"?"===t?(n=!0,i++):(A+=t,e++)})}x.push(x.slice().pop()+1),N=E(),U=x.length>1}function _(){if((X.clearOnBlur||X.clearOnBlurPlaceholder&&0===M.length&&r.placeholder)&&(j=0,V=0,L&&0!==M.length||(K="",i.val(""),t.$apply(function(){o.$pristine||o.$setViewValue("")}))),M!==J){var e=i.val(),n=""===M&&e&&angular.isDefined(r.uiMaskPlaceholderChar)&&"space"===r.uiMaskPlaceholderChar;n&&i.val(""),C(i[0]),n&&i.val(e)}J=M}function C(t){var e;angular.isFunction(window.Event)&&!t.fireEvent?(e=new Event("change",{view:window,bubbles:!0,cancelable:!1}),t.dispatchEvent(e)):"createEvent"in document?(e=document.createEvent("HTMLEvents"),e.initEvent("change",!1,!0),t.dispatchEvent(e)):t.fireEvent&&t.fireEvent("onchange")}function T(t){"mousedown"===t.type?i.bind("mouseout",I):i.unbind("mouseout",I)}function I(){V=k(this),i.unbind("mouseout",I)}function D(t){var e=8===t.which,n=w(this)-1||0,r=90===t.which&&t.ctrlKey;if(e){for(;n>=0;){if(O(n)){R(this,n+1);break}n--}H=-1===n}r&&(i.val(""),t.preventDefault())}function $(e){e=e||{};var n=e.which,r=e.type;if(16!==n&&91!==n){var a,s=i.val(),l=F,c=!1,u=g(s),d=B,h=w(this)||0,f=j||0,p=h-f,m=x[0],y=x[u.length]||x.slice().shift(),E=V||0,b=k(this)>0,_=E>0,C=s.length>l.length||E&&s.length>l.length-E,T=s.length<l.length||E&&s.length===l.length-E,I=n>=37&&n<=40&&e.shiftKey,D=37===n,$=8===n||"keyup"!==r&&T&&-1===p,S=46===n||"keyup"!==r&&T&&0===p&&!_,N=(D||$||"click"===r)&&h>m;if(V=k(this),!I&&(!b||"click"!==r&&"keyup"!==r&&"focus"!==r)){if($&&H)return i.val(A),t.$apply(function(){o.$setViewValue("")}),void R(this,f);if("input"===r&&T&&!_&&u===d){for(;$&&h>m&&!O(h);)h--;for(;S&&h<y&&-1===x.indexOf(h);)h++;var P=x.indexOf(h);u=u.substring(0,P)+u.substring(P+1),u!==d&&(c=!0)}for(a=v(u),F=a,B=u,!c&&s.length>a.length&&(c=!0),i.val(a),c&&t.$apply(function(){o.$setViewValue(a)}),C&&h<=m&&(h=m+1),N&&h--,h=h>y?y:h<m?m:h;!O(h)&&h>m&&h<y;)h+=N?-1:1;(N&&h<y||C&&!O(f))&&h++,j=h,R(this,h)}}}function O(t){return x.indexOf(t)>-1}function w(t){if(!t)return 0;if(t.selectionStart!==undefined)return t.selectionStart;if(document.selection&&e(i[0])){t.focus();var n=document.selection.createRange();return n.moveStart("character",t.value?-t.value.length:0),n.text.length}return 0}function R(t,n){if(!t)return 0;if(0!==t.offsetWidth&&0!==t.offsetHeight)if(t.setSelectionRange)e(i[0])&&(t.focus(),t.setSelectionRange(n,n));else if(t.createTextRange){var r=t.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",n),r.select()}}function k(t){return t?t.selectionStart!==undefined?t.selectionEnd-t.selectionStart:window.getSelection?window.getSelection().toString().length:document.selection?document.selection.createRange().text.length:0:0}var x,S,A,N,P,M,K,L,F,B,j,V,H,U=!1,z=!1,G=r.placeholder,q=r.maxlength,W=o.$isEmpty;o.$isEmpty=function(t){return W(U?g(t||""):t)};var Y=!1;r.$observe("modelViewValue",function(t){"true"===t&&(Y=!0)}),r.$observe("allowInvalidValue",function(t){X.allowInvalidValue=""===t||!!t,c(o.$modelValue)});var X={};r.uiOptions?(X=t.$eval("["+r.uiOptions+"]"),X=angular.isObject(X[0])?function(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]===undefined?e[n]=angular.copy(t[n]):angular.isObject(e[n])&&!angular.isArray(e[n])&&(e[n]=angular.extend({},t[n],e[n])));return e}(n,X[0]):n):X=n,r.$observe("uiMask",a),angular.isDefined(r.uiMaskPlaceholder)?r.$observe("uiMaskPlaceholder",s):r.$observe("placeholder",s),angular.isDefined(r.uiMaskPlaceholderChar)&&r.$observe("uiMaskPlaceholderChar",l),o.$formatters.push(c),o.$parsers.unshift(u);var J=i.val();i.bind("mousedown mouseup",T),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){if(null===this)throw new TypeError;var e=Object(this),n=e.length>>>0;if(0===n)return-1;var i=0;if(arguments.length>1&&(i=Number(arguments[1]),i!==i?i=0:0!==i&&i!==Infinity&&i!==-Infinity&&(i=(i>0||-1)*Math.floor(Math.abs(i)))),i>=n)return-1;for(var r=i>=0?i:Math.max(n-Math.abs(i),0);r<n;r++)if(r in e&&e[r]===t)return r;return-1})}}}}])}()},1149:function(t,e){/** * oclazyload - Load modules on demand (lazy load) with angularJS * @version v1.0.10 * @link https://github.com/ocombe/ocLazyLoad * @license MIT * @author Olivier Combe <olivier.combe@gmail.com> */ !function(n,i){"use strict";var r=["ng","oc.lazyLoad"],o={},a=[],s=[],l=[],c=[],u=n.noop,d={},h=[];n.module("oc.lazyLoad",["ng"]).provider("$ocLazyLoad",["$controllerProvider","$provide","$compileProvider","$filterProvider","$injector","$animateProvider",function(t,e,f,g,v,y){function E(t,e,i){if(e){var o,a,s,c=[];for(o=e.length-1;o>=0;o--)if(a=e[o],n.isString(a)||(a=C(a)),a&&-1===h.indexOf(a)&&(!I[a]||-1!==l.indexOf(a))){var f=-1===r.indexOf(a);if(s=m(a),f&&(r.push(a),E(t,s.requires,i)),s._runBlocks.length>0)for(d[a]=[];s._runBlocks.length>0;)d[a].push(s._runBlocks.shift());n.isDefined(d[a])&&(f||i.rerun)&&(c=c.concat(d[a])),_(t,s._invokeQueue,a,i.reconfig),_(t,s._configBlocks,a,i.reconfig),u(f?"ocLazyLoad.moduleLoaded":"ocLazyLoad.moduleReloaded",a),e.pop(),h.push(a)}var p=t.getInstanceInjector();n.forEach(c,function(t){p.invoke(t)})}}function b(t,e){function i(t,e){var i,o=!0;return e.length&&(i=r(t),n.forEach(e,function(t){o=o&&r(t)!==i})),o}function r(t){return n.isArray(t)?x(t.toString()):n.isObject(t)?x(k(t)):n.isDefined(t)&&null!==t?x(t.toString()):t}var a=t[2][0],s=t[1],l=!1;n.isUndefined(o[e])&&(o[e]={}),n.isUndefined(o[e][s])&&(o[e][s]={});var c=function(t,n){o[e][s].hasOwnProperty(t)||(o[e][s][t]=[]),i(n,o[e][s][t])&&(l=!0,o[e][s][t].push(n),u("ocLazyLoad.componentLoaded",[e,s,t]))};if(n.isString(a))c(a,t[2][1]);else{if(!n.isObject(a))return!1;n.forEach(a,function(t,e){n.isString(t)?c(t,a[1]):c(e,t)})}return l}function _(t,e,i,r){if(e){var o,s,l,c;for(o=0,s=e.length;o<s;o++)if(l=e[o],n.isArray(l)){if(null!==t){if(!t.hasOwnProperty(l[0]))throw new Error("unsupported provider "+l[0]);c=t[l[0]]}var u=b(l,i);if("invoke"!==l[1])u&&n.isDefined(c)&&c[l[1]].apply(c,l[2]);else{var d=function(t){var e=a.indexOf(i+"-"+t);(-1===e||r)&&(-1===e&&a.push(i+"-"+t),n.isDefined(c)&&c[l[1]].apply(c,l[2]))};if(n.isFunction(l[2][0]))d(l[2][0]);else if(n.isArray(l[2][0]))for(var h=0,f=l[2][0].length;h<f;h++)n.isFunction(l[2][0][h])&&d(l[2][0][h])}}}}function C(t){var e=null;return n.isString(t)?e=t:n.isObject(t)&&t.hasOwnProperty("name")&&n.isString(t.name)&&(e=t.name),e}function T(t){if(!n.isString(t))return!1;try{return m(t)}catch(e){if(/No module/.test(e)||e.message.indexOf("$injector:nomod")>-1)return!1}}var I={},D={$controllerProvider:t,$compileProvider:f,$filterProvider:g,$provide:e,$injector:v,$animateProvider:y},$=!1,O=!1,w=[],R={};w.push=function(t){-1===this.indexOf(t)&&Array.prototype.push.apply(this,arguments)},this.config=function(t){n.isDefined(t.modules)&&(n.isArray(t.modules)?n.forEach(t.modules,function(t){I[t.name]=t}):I[t.modules.name]=t.modules),n.isDefined(t.debug)&&($=t.debug),n.isDefined(t.events)&&(O=t.events)},this._init=function(t){if(0===s.length){var e=[t],o=["ng:app","ng-app","x-ng-app","data-ng-app"],a=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/,l=function(t){return t&&e.push(t)};n.forEach(o,function(e){o[e]=!0,l(document.getElementById(e)),e=e.replace(":","\\:"),"undefined"!=typeof t[0]&&t[0].querySelectorAll&&(n.forEach(t[0].querySelectorAll("."+e),l),n.forEach(t[0].querySelectorAll("."+e+"\\:"),l),n.forEach(t[0].querySelectorAll("["+e+"]"),l))}),n.forEach(e,function(e){if(0===s.length){var i=" "+t.className+" ",r=a.exec(i);r?s.push((r[2]||"").replace(/\s+/g,",")):n.forEach(e.attributes,function(t){0===s.length&&o[t.name]&&s.push(t.value)})}})}0!==s.length||(i.jasmine||i.mocha)&&n.isDefined(n.mock)||console.error("No module found during bootstrap, unable to init ocLazyLoad. You should always use the ng-app directive or angular.boostrap when you use ocLazyLoad.");var u=function d(t){if(-1===r.indexOf(t)){r.push(t);var e=n.module(t);_(null,e._invokeQueue,t),_(null,e._configBlocks,t),n.forEach(e.requires,d)}};n.forEach(s,function(t){u(t)}),s=[],c.pop()};var k=function(t){try{return JSON.stringify(t)}catch(i){var e=[];return JSON.stringify(t,function(t,i){if(n.isObject(i)&&null!==i){if(-1!==e.indexOf(i))return;e.push(i)}return i})}},x=function(t){var e,n,i,r=0;if(0==t.length)return r;for(e=0,i=t.length;e<i;e++)n=t.charCodeAt(e),r=(r<<5)-r+n,r|=0;return r};this.$get=["$log","$rootElement","$rootScope","$cacheFactory","$q",function(t,e,i,a,l){function d(e){var n=l.defer();return t.error(e.message),n.reject(e),n.promise}var f,g=a("ocLazyLoad");return $||(t={},t.error=n.noop,t.warn=n.noop,t.info=n.noop),D.getInstanceInjector=function(){return f||(f=e.data("$injector")||n.injector())},u=function(e,n){O&&i.$broadcast(e,n),$&&t.info(e,n)},{_broadcast:u,_$log:t,_getFilesCache:function(){return g},toggleWatch:function(t){t?c.push(!0):c.pop()},getModuleConfig:function(t){if(!n.isString(t))throw new Error("You need to give the name of the module to get");return I[t]?n.copy(I[t]):null},setModuleConfig:function(t){if(!n.isObject(t))throw new Error("You need to give the module config object to set");return I[t.name]=t,t},getModules:function(){return r},isLoaded:function(t){if(n.isString(t)&&(t=[t]),n.isArray(t)){var e,i;for(e=0,i=t.length;e<i;e++)if(!function(t){var e=r.indexOf(t)>-1;return e||(e=!!T(t)),e}(t[e]))return!1;return!0}throw new Error("You need to define the module(s) name(s)")},_getModuleName:C,_getModule:function(t){try{return m(t)}catch(e){throw(/No module/.test(e)||e.message.indexOf("$injector:nomod")>-1)&&(e.message='The module "'+k(t)+'" that you are trying to load does not exist. '+e.message),e}},moduleExists:T,_loadDependencies:function(t,e){var i,r,o,a=[],s=this;if(null===(t=s._getModuleName(t)))return l.when();try{i=s._getModule(t)}catch(c){return d(c)}return r=s.getRequires(i),n.forEach(r,function(i){if(n.isString(i)){var r=s.getModuleConfig(i);if(null===r)return void w.push(i);i=r,r.name=undefined}if(s.moduleExists(i.name))return o=i.files.filter(function(t){return s.getModuleConfig(i.name).files.indexOf(t)<0}),0!==o.length&&s._$log.warn('Module "',t,'" attempted to redefine configuration for dependency. "',i.name,'"\n Additional Files Loaded:',o),n.isDefined(s.filesLoader)?void a.push(s.filesLoader(i,e).then(function(){return s._loadDependencies(i)})):d(new Error("Error: New dependencies need to be loaded from external files ("+i.files+"), but no loader has been defined."));if(n.isArray(i)){var l=[];n.forEach(i,function(t){var e=s.getModuleConfig(t);null===e?l.push(t):e.files&&(l=l.concat(e.files))}),l.length>0&&(i={files:l})}else n.isObject(i)&&i.hasOwnProperty("name")&&i.name&&(s.setModuleConfig(i),w.push(i.name));if(n.isDefined(i.files)&&0!==i.files.length){if(!n.isDefined(s.filesLoader))return d(new Error('Error: the module "'+i.name+'" is defined in external files ('+i.files+"), but no loader has been defined."));a.push(s.filesLoader(i,e).then(function(){return s._loadDependencies(i)}))}}),l.all(a)},inject:function(t){var e=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],i=!(arguments.length<=2||arguments[2]===undefined)&&arguments[2],r=this,o=l.defer();if(n.isDefined(t)&&null!==t){if(n.isArray(t)){var a=[];return n.forEach(t,function(t){a.push(r.inject(t,e,i))}),l.all(a)}r._addToLoadList(r._getModuleName(t),!0,i)}if(s.length>0){var c=s.slice();!function u(t){w.push(t),R[t]=o.promise,r._loadDependencies(t,e).then(function(){try{h=[],E(D,w,e)}catch(t){return r._$log.error(t.message),void o.reject(t)}s.length>0?u(s.shift()):o.resolve(c)},function(t){o.reject(t)})}(s.shift())}else{if(e&&e.name&&R[e.name])return R[e.name];o.resolve()}return o.promise},getRequires:function(t){var e=[];return n.forEach(t.requires,function(t){-1===r.indexOf(t)&&e.push(t)}),e},_invokeQueue:_,_registerInvokeList:b,_register:E,_addToLoadList:p,_unregister:function(t){n.isDefined(t)&&n.isArray(t)&&n.forEach(t,function(t){o[t]=undefined})}}}],this._init(n.element(i.document))}]);var f=n.bootstrap;n.bootstrap=function(t,e,i){return r=["ng","oc.lazyLoad"],o={},a=[],s=[],l=[],c=[],u=n.noop,d={},h=[],n.forEach(e.slice(),function(t){p(t,!0,!0)}),f(t,e,i)};var p=function(t,e,i){(c.length>0||e)&&n.isString(t)&&-1===s.indexOf(t)&&(s.push(t),i&&l.push(t))},m=n.module;n.module=function(t,e,n){return p(t,!1,!0),m(t,e,n)},void 0!==t&&void 0!==e&&t.exports===e&&(t.exports="oc.lazyLoad")}(angular,window),function(t){"use strict";t.module("oc.lazyLoad").directive("ocLazyLoad",["$ocLazyLoad","$compile","$animate","$parse","$timeout",function(e,n,i,r,o){return{restrict:"A",terminal:!0,priority:1e3,compile:function(o,a){var s=o[0].innerHTML;return o.html(""),function(o,a,l){var c=r(l.ocLazyLoad);o.$watch(function(){return c(o)||l.ocLazyLoad},function(r){t.isDefined(r)&&e.load(r).then(function(){i.enter(s,a),n(a.contents())(o)})},!0)}}}}])}(angular),function(t){"use strict";t.module("oc.lazyLoad").config(["$provide",function(e){e.decorator("$ocLazyLoad",["$delegate","$q","$window","$interval",function(e,n,i,r){var o=!1,a=i.document.getElementsByTagName("head")[0]||i.document.getElementsByTagName("body")[0];return e.buildElement=function(s,l,c){var u,d,h=n.defer(),f=e._getFilesCache(),p=function(t){var e=(new Date).getTime();return t.indexOf("?")>=0?"&"===t.substring(0,t.length-1)?t+"_dc="+e:t+"&_dc="+e:t+"?_dc="+e};switch(t.isUndefined(f.get(l))&&f.put(l,h.promise),s){case"css":u=i.document.createElement("link"),u.type="text/css",u.rel="stylesheet",u.href=!1===c.cache?p(l):l;break;case"js":u=i.document.createElement("script"),u.src=!1===c.cache?p(l):l;break;default:f.remove(l),h.reject(new Error('Requested type "'+s+'" is not known. Could not inject "'+l+'"'))}u.onload=u.onreadystatechange=function(t){u.readyState&&!/^c|loade/.test(u.readyState)||d||(u.onload=u.onreadystatechange=null,d=1,e._broadcast("ocLazyLoad.fileLoaded",l),h.resolve(u))},u.onerror=function(){f.remove(l),h.reject(new Error("Unable to load "+l))},u.async=c.serie?0:1;var m=a.lastChild;if(c.insertBefore){var g=t.element(t.isDefined(window.jQuery)?c.insertBefore:document.querySelector(c.insertBefore));g&&g.length>0&&(m=g[0])}if(m.parentNode.insertBefore(u,m),"css"==s){var v=i.navigator.userAgent.toLowerCase();if(v.indexOf("phantomjs/1.9")>-1)o=!0;else if(/iP(hone|od|ad)/.test(i.navigator.platform)){var y=i.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),E=parseFloat([parseInt(y[1],10),parseInt(y[2],10),parseInt(y[3]||0,10)].join("."));o=E<6}else if(v.indexOf("android")>-1){var b=parseFloat(v.slice(v.indexOf("android")+8));o=b<4.4}else if(v.indexOf("safari")>-1){var _=v.match(/version\/([\.\d]+)/i);o=_&&_[1]&&parseFloat(_[1])<6}if(o)var C=1e3,T=r(function(){try{u.sheet.cssRules,r.cancel(T),u.onload()}catch(t){--C<=0&&u.onerror()}},20)}return h.promise},e}])}])}(angular),function(t){"use strict";t.module("oc.lazyLoad").config(["$provide",function(e){e.decorator("$ocLazyLoad",["$delegate","$q",function(e,n){return e.filesLoader=function(i){var r=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],o=[],a=[],s=[],l=[],c=null,u=e._getFilesCache();e.toggleWatch(!0),t.extend(r,i);var d=function(n){var i,d=null;if(t.isObject(n)&&(d=n.type,n=n.path),c=u.get(n),t.isUndefined(c)||!1===r.cache){if(null!==(i=/^(css|less|html|htm|js)?(?=!)/.exec(n))&&(d=i[1],n=n.substr(i[1].length+1,n.length)),!d)if(null!==(i=/[.](css|less|html|htm|js)?((\?|#).*)?$/.exec(n)))d=i[1];else{if(e.jsLoader.hasOwnProperty("ocLazyLoadLoader")||!e.jsLoader.hasOwnProperty("requirejs"))return void e._$log.error("File type could not be determined. "+n);d="js"}"css"!==d&&"less"!==d||-1!==o.indexOf(n)?"html"!==d&&"htm"!==d||-1!==a.indexOf(n)?"js"===d||-1===s.indexOf(n)?s.push(n):e._$log.error("File type is not valid. "+n):a.push(n):o.push(n)}else c&&l.push(c)};if(r.serie?d(r.files.shift()):t.forEach(r.files,function(t){d(t)}),o.length>0){var h=n.defer();e.cssLoader(o,function(n){t.isDefined(n)&&e.cssLoader.hasOwnProperty("ocLazyLoadLoader")?(e._$log.error(n),h.reject(n)):h.resolve()},r),l.push(h.promise)}if(a.length>0){var f=n.defer();e.templatesLoader(a,function(n){t.isDefined(n)&&e.templatesLoader.hasOwnProperty("ocLazyLoadLoader")?(e._$log.error(n),f.reject(n)):f.resolve()},r),l.push(f.promise)}if(s.length>0){var p=n.defer();e.jsLoader(s,function(n){t.isDefined(n)&&(e.jsLoader.hasOwnProperty("ocLazyLoadLoader")||e.jsLoader.hasOwnProperty("requirejs"))?(e._$log.error(n),p.reject(n)):p.resolve()},r),l.push(p.promise)}if(0===l.length){var m=n.defer(),g="Error: no file to load has been found, if you're trying to load an existing module you should use the 'inject' method instead of 'load'.";return e._$log.error(g),m.reject(g),m.promise}return r.serie&&r.files.length>0?n.all(l).then(function(){return e.filesLoader(i,r)}):n.all(l)["finally"](function(t){return e.toggleWatch(!1),t})},e.load=function(i){var r,o=arguments.length<=1||arguments[1]===undefined?{}:arguments[1],a=this,s=null,l=[],c=n.defer(),u=t.copy(i),d=t.copy(o);if(t.isArray(u))return t.forEach(u,function(t){l.push(a.load(t,d))}),n.all(l).then(function(t){c.resolve(t)},function(t){c.reject(t)}),c.promise;if(t.isString(u)?(s=a.getModuleConfig(u))||(s={files:[u]}):t.isObject(u)&&(s=t.isDefined(u.path)&&t.isDefined(u.type)?{files:[u]}:a.setModuleConfig(u)),null===s){return r='Module "'+(a._getModuleName(u)||"unknown")+'" is not configured, cannot load.',e._$log.error(r),c.reject(new Error(r)),c.promise}t.isDefined(s.template)&&(t.isUndefined(s.files)&&(s.files=[]),t.isString(s.template)?s.files.push(s.template):t.isArray(s.template)&&s.files.concat(s.template));var h=t.extend({},d,s);return t.isUndefined(s.files)&&t.isDefined(s.name)&&e.moduleExists(s.name)?e.inject(s.name,h,!0):(e.filesLoader(s,h).then(function(){e.inject(null,h).then(function(t){c.resolve(t)},function(t){c.reject(t)})},function(t){c.reject(t)}),c.promise)},e}])}])}(angular),function(t){"use strict";t.module("oc.lazyLoad").config(["$provide",function(e){e.decorator("$ocLazyLoad",["$delegate","$q",function(e,n){return e.cssLoader=function(i,r,o){var a=[];t.forEach(i,function(t){a.push(e.buildElement("css",t,o))}),n.all(a).then(function(){r()},function(t){r(t)})},e.cssLoader.ocLazyLoadLoader=!0,e}])}])}(angular),function(t){"use strict";t.module("oc.lazyLoad").config(["$provide",function(e){e.decorator("$ocLazyLoad",["$delegate","$q",function(e,n){return e.jsLoader=function(i,r,o){var a=[];t.forEach(i,function(t){a.push(e.buildElement("js",t,o))}),n.all(a).then(function(){r()},function(t){r(t)})},e.jsLoader.ocLazyLoadLoader=!0,e}])}])}(angular),function(t){"use strict";t.module("oc.lazyLoad").config(["$provide",function(e){e.decorator("$ocLazyLoad",["$delegate","$templateCache","$q","$http",function(e,n,i,r){return e.templatesLoader=function(o,a,s){var l=[],c=e._getFilesCache();return t.forEach(o,function(e){var o=i.defer();l.push(o.promise),r.get(e,s).then(function(i){var r=i.data;t.isString(r)&&r.length>0&&t.forEach(t.element(r),function(t){"SCRIPT"===t.nodeName&&"text/ng-template"===t.type&&n.put(t.id,t.innerHTML)}),t.isUndefined(c.get(e))&&c.put(e,!0),o.resolve()})["catch"](function(t){o.reject(new Error('Unable to load template file "'+e+'": '+t.data))})}),i.all(l).then(function(){a()},function(t){a(t)})},e.templatesLoader.ocLazyLoadLoader=!0,e}])}])}(angular),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var n;if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),r=i.length>>>0;if(0===r)return-1;var o=+e||0;if(Math.abs(o)===Infinity&&(o=0),o>=r)return-1;for(n=Math.max(o>=0?o:r-Math.abs(o),0);n<r;){if(n in i&&i[n]===t)return n;n++}return-1})},115:function(t,e){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},1150:function(t,e){!function(){window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var t=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,e={timestamp:"G87D",version:"4.5.11 (Standard)",revision:"3876e73",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:t},status:"unloaded",basePath:function(){var e=window.CKEDITOR_BASEPATH||"";if(!e)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var r=n[i].src.match(t);if(r){e=r[1];break}}if(-1==e.indexOf(":/")&&"//"!=e.slice(0,2)&&(e=0===e.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+e:location.href.match(/^[^\?]*\/(?:)/)[0]+e),!e)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return e}(),getUrl:function(t){return-1==t.indexOf(":/")&&0!==t.indexOf("/")&&(t=this.basePath+t),this.timestamp&&"/"!=t.charAt(t.length-1)&&!/[&?]t=/.test(t)&&(t+=(0<=t.indexOf("?")?"&":"?")+"t="+this.timestamp),t},domReady:function(){function t(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",t,!1),e()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",t),e())}catch(n){}}function e(){for(var t;t=n.shift();)t()}var n=[];return function(e){function i(){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(i,1)}t()}if(n.push(e),"complete"===document.readyState&&setTimeout(t,1),1==n.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",t),window.attachEvent("onload",t),e=!1;try{e=!window.frameElement}catch(r){}document.documentElement.doScroll&&e&&i()}}}()},n=window.CKEDITOR_GETURL;if(n){var i=e.getUrl;e.getUrl=function(t){return n.call(e,t)||i.call(e,t)}}return e}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(t){var e,n=CKEDITOR.event.prototype;for(e in n)null==t[e]&&(t[e]=n[e])},CKEDITOR.event.prototype=function(){function t(t){var i=e(this);return i[t]||(i[t]=new n(t))}var e=function(t){return t=t.getPrivate&&t.getPrivate()||t._||(t._={}),t.events||(t.events={})},n=function(t){this.name=t,this.listeners=[]};return n.prototype={getListenerIndex:function(t){for(var e=0,n=this.listeners;e<n.length;e++)if(n[e].fn==t)return e;return-1}},{define:function(e,n){var i=t.call(this,e);CKEDITOR.tools.extend(i,n,!0)},on:function(e,n,i,r,o){function a(t,o,a,l){return t={name:e,sender:this,editor:t,data:o,listenerData:r,stop:a,cancel:l,removeListener:s},!1!==n.call(i,t)&&t.data}function s(){c.removeListener(e,n)}var l=t.call(this,e);if(0>l.getListenerIndex(n)){l=l.listeners,i||(i=this),isNaN(o)&&(o=10);var c=this;a.fn=n,a.priority=o;for(var u=l.length-1;0<=u;u--)if(l[u].priority<=o)return l.splice(u+1,0,a),{removeListener:s};l.unshift(a)}return{removeListener:s}},once:function(){var t=Array.prototype.slice.call(arguments),e=t[1];return t[1]=function(t){return t.removeListener(),e.apply(this,arguments)},this.on.apply(this,t)},capture:function(){CKEDITOR.event.useCapture=1;var t=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,t},fire:function(){var t=0,n=function(){t=1},i=0,r=function(){i=1};return function(o,a,s){var l=e(this)[o];o=t;var c=i;if(t=i=0,l){var u=l.listeners;if(u.length)for(var d,u=u.slice(0),h=0;h<u.length;h++){if(l.errorProof)try{d=u[h].call(this,s,a,n,r)}catch(f){}else d=u[h].call(this,s,a,n,r);if(!1===d?i=1:void 0!==d&&(a=d),t||i)break}}return a=!i&&(void 0===a||a),t=o,i=c,a}}(),fireOnce:function(t,n,i){return n=this.fire(t,n,i),delete e(this)[t],n},removeListener:function(t,n){var i=e(this)[t];if(i){var r=i.getListenerIndex(n);0<=r&&i.listeners.splice(r,1)}},removeAllListeners:function(){var t,n=e(this);for(t in n)delete n[t]},hasListeners:function(t){return(t=e(this)[t])&&0<t.listeners.length}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]),CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(t,e){return t in{instanceReady:1,loaded:1}&&(this[t]=!0),CKEDITOR.event.prototype.fire.call(this,t,e,this)},CKEDITOR.editor.prototype.fireOnce=function(t,e){return t in{instanceReady:1,loaded:1}&&(this[t]=!0),CKEDITOR.event.prototype.fireOnce.call(this,t,e,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var t=navigator.userAgent.toLowerCase(),e=t.match(/edge[ \/](\d+.?\d*)/),n=-1<t.indexOf("trident/"),n=!(!e&&!n),n={ie:n,edge:!!e,webkit:!n&&-1<t.indexOf(" applewebkit/"),air:-1<t.indexOf(" adobeair/"),mac:-1<t.indexOf("macintosh"),quirks:"BackCompat"==document.compatMode&&(!document.documentMode||10>document.documentMode),mobile:-1<t.indexOf("mobile"),iOS:/(ipad|iphone|ipod)/.test(t),isCustomDomain:function(){if(!this.ie)return!1;var t=document.domain,e=window.location.hostname;return t!=e&&t!="["+e+"]"},secure:"https:"==location.protocol};n.gecko="Gecko"==navigator.product&&!n.webkit&&!n.ie,n.webkit&&(-1<t.indexOf("chrome")?n.chrome=!0:n.safari=!0);var i=0;return n.ie&&(i=e?parseFloat(e[1]):n.quirks||!document.documentMode?parseFloat(t.match(/msie (\d+)/)[1]):document.documentMode,n.ie9Compat=9==i,n.ie8Compat=8==i,n.ie7Compat=7==i,n.ie6Compat=7>i||n.quirks),n.gecko&&(e=t.match(/rv:([\d\.]+)/))&&(e=e[1].split("."),i=1e4*e[0]+100*(e[1]||0)+1*(e[2]||0)),n.air&&(i=parseFloat(t.match(/ adobeair\/(\d+)/)[1])),n.webkit&&(i=parseFloat(t.match(/ applewebkit\/(\d+)/)[1])),n.version=i,n.isCompatible=!(n.ie&&7>i||n.gecko&&4e4>i||n.webkit&&534>i),n.hidpi=2<=window.devicePixelRatio,n.needsBrFiller=n.gecko||n.webkit||n.ie&&10<i,n.needsNbspFiller=n.ie&&11>i,n.cssClass="cke_browser_"+(n.ie?"ie":n.gecko?"gecko":n.webkit?"webkit":"unknown"),n.quirks&&(n.cssClass+=" cke_browser_quirks"),n.ie&&(n.cssClass+=" cke_browser_ie"+(n.quirks?"6 cke_browser_iequirks":n.version)),n.air&&(n.cssClass+=" cke_browser_air"),n.iOS&&(n.cssClass+=" cke_browser_ios"),n.hidpi&&(n.cssClass+=" cke_hidpi"),n}()),"unloaded"==CKEDITOR.status&&function(){CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var t=document.createElement("script");t.type="text/javascript",t.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(t)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(t){(this._.pending||(this._.pending=[])).push(t)},function(){CKEDITOR.domReady(function(){var t=CKEDITOR.loadFullCore,e=CKEDITOR.loadFullCoreTimeout;t&&(CKEDITOR.status="basic_ready",t&&t._load?t():e&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1e3*e))})}(),CKEDITOR.status="basic_loaded"}(),CKEDITOR.VERBOSITY_WARN=1,CKEDITOR.VERBOSITY_ERROR=2,CKEDITOR.verbosity=CKEDITOR.VERBOSITY_WARN|CKEDITOR.VERBOSITY_ERROR,CKEDITOR.warn=function(t,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_WARN&&CKEDITOR.fire("log",{type:"warn",errorCode:t,additionalData:e})},CKEDITOR.error=function(t,e){CKEDITOR.verbosity&CKEDITOR.VERBOSITY_ERROR&&CKEDITOR.fire("log",{type:"error",errorCode:t,additionalData:e})},CKEDITOR.on("log",function(t){if(window.console&&window.console.log){var e=console[t.data.type]?t.data.type:"log",n=t.data.errorCode;(t=t.data.additionalData)?console[e]("[CKEDITOR] Error code: "+n+".",t):console[e]("[CKEDITOR] Error code: "+n+"."),console[e]("[CKEDITOR] For more information about this error go to http://docs.ckeditor.com/#!/guide/dev_errors-section-"+n)}},null,null,999),CKEDITOR.dom={},function(){var t=[],e=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",n=/&/g,i=/>/g,r=/</g,o=/"/g,a=/&(lt|gt|amp|quot|nbsp|shy|#\d{1,5});/g,s={lt:"<",gt:">",amp:"&",quot:'"',nbsp:" ",shy:"Â"},l=function(t,e){return"#"==e[0]?String.fromCharCode(parseInt(e.slice(1),10)):s[e]};CKEDITOR.on("reset",function(){t=[]}),CKEDITOR.tools={arrayCompare:function(t,e){if(!t&&!e)return!0;if(!t||!e||t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0},getIndex:function(t,e){for(var n=0;n<t.length;++n)if(e(t[n]))return n;return-1},clone:function(t){var e;if(t&&t instanceof Array){e=[];for(var n=0;n<t.length;n++)e[n]=CKEDITOR.tools.clone(t[n]);return e}if(null===t||"object"!=typeof t||t instanceof String||t instanceof Number||t instanceof Boolean||t instanceof Date||t instanceof RegExp||t.nodeType||t.window===t)return t;e=new t.constructor;for(n in t)e[n]=CKEDITOR.tools.clone(t[n]);return e},capitalize:function(t,e){return t.charAt(0).toUpperCase()+(e?t.slice(1):t.slice(1).toLowerCase())},extend:function(t){var e,n,i=arguments.length;"boolean"==typeof(e=arguments[i-1])?i--:"boolean"==typeof(e=arguments[i-2])&&(n=arguments[i-1],i-=2);for(var r=1;r<i;r++){var o,a=arguments[r];for(o in a)!0!==e&&null!=t[o]||(!n||o in n)&&(t[o]=a[o])}return t},prototypedCopy:function(t){var e=function(){};return e.prototype=t,new e},copy:function(t){var e,n={};for(e in t)n[e]=t[e];return n},isArray:function(t){return"[object Array]"==Object.prototype.toString.call(t)},isEmpty:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},cssVendorPrefix:function(t,n,i){return i?e+t+":"+n+";"+t+":"+n:(i={},i[t]=n,i[e+t]=n,i)},cssStyleToDomStyle:function(){var t=document.createElement("div").style,e="undefined"!=typeof t.cssFloat?"cssFloat":"undefined"!=typeof t.styleFloat?"styleFloat":"float";return function(t){return"float"==t?e:t.replace(/-./g,function(t){return t.substr(1).toUpperCase()})}}(),buildStyleHtml:function(t){t=[].concat(t);for(var e,n=[],i=0;i<t.length;i++)(e=t[i])&&(/@import|[{}]/.test(e)?n.push("<style>"+e+"</style>"):n.push('<link type="text/css" rel=stylesheet href="'+e+'">'));return n.join("")},htmlEncode:function(t){return void 0===t||null===t?"":String(t).replace(n,"&").replace(i,">").replace(r,"<")},htmlDecode:function(t){return t.replace(a,l)},htmlEncodeAttr:function(t){return CKEDITOR.tools.htmlEncode(t).replace(o,""")},htmlDecodeAttr:function(t){return CKEDITOR.tools.htmlDecode(t)},transformPlainTextToHtml:function(t,e){var n=e==CKEDITOR.ENTER_BR,i=this.htmlEncode(t.replace(/\r\n/g,"\n")),i=i.replace(/\t/g," "),r=e==CKEDITOR.ENTER_P?"p":"div";if(!n){var o=/\n{2}/g;if(o.test(i))var a="<"+r+">",s="</"+r+">",i=a+i.replace(o,function(){return s+a})+s}return i=i.replace(/\n/g,"<br>"),n||(i=i.replace(new RegExp("<br>(?=</"+r+">)"),function(t){return CKEDITOR.tools.repeat(t,2)})),i=i.replace(/^ | $/g," "),i=i.replace(/(>|\s) /g,function(t,e){return e+" "}).replace(/ (?=<)/g," ")},getNextNumber:function(){var t=0;return function(){return++t}}(),getNextId:function(){return"cke_"+this.getNextNumber()},getUniqueId:function(){for(var t="e",e=0;8>e;e++)t+=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return t},override:function(t,e){var n=e(t);return n.prototype=t.prototype,n},setTimeout:function(t,e,n,i,r){return r||(r=window),n||(n=r),r.setTimeout(function(){i?t.apply(n,[].concat(i)):t.apply(n)},e||0)},trim:function(){var t=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(e){return e.replace(t,"")}}(),ltrim:function(){var t=/^[ \t\n\r]+/g;return function(e){return e.replace(t,"")}}(),rtrim:function(){var t=/[ \t\n\r]+$/g;return function(e){return e.replace(t,"")}}(),indexOf:function(t,e){if("function"==typeof e){for(var n=0,i=t.length;n<i;n++)if(e(t[n]))return n}else{if(t.indexOf)return t.indexOf(e);for(n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1},search:function(t,e){var n=CKEDITOR.tools.indexOf(t,e);return 0<=n?t[n]:null},bind:function(t,e){return function(){return t.apply(e,arguments)}},createClass:function(t){var e=t.$,n=t.base,i=t.privates||t._,r=t.proto;if(t=t.statics,!e&&(e=function(){n&&this.base.apply(this,arguments)}),i)var o=e,e=function(){var t,e=this._||(this._={});for(t in i){var n=i[t];e[t]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}o.apply(this,arguments)};return n&&(e.prototype=this.prototypedCopy(n.prototype),e.prototype.constructor=e,e.base=n,e.baseProto=n.prototype,e.prototype.base=function(){this.base=n.prototype.base,n.apply(this,arguments),this.base=arguments.callee}),r&&this.extend(e.prototype,r,!0),t&&this.extend(e,t,!0),e},addFunction:function(e,n){return t.push(function(){return e.apply(n||this,arguments)})-1},removeFunction:function(e){t[e]=null},callFunction:function(e){var n=t[e];return n&&n.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var t,e=/^-?\d+\.?\d*px$/;return function(n){return t=CKEDITOR.tools.trim(n+"")+"px",e.test(t)?t:n||""}}(),convertToPx:function(){var t;return function(e){return t||(t=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(t)),/%$/.test(e)?e:(t.setStyle("width",e),t.$.clientWidth)}}(),repeat:function(t,e){return Array(e+1).join(t)},tryThese:function(){for(var t,e=0,n=arguments.length;e<n;e++){var i=arguments[e];try{t=i();break}catch(l){}}return t},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(t){return function(){var e=arguments,n=this;window.setTimeout(function(){t.apply(n,e)},0)}},normalizeCssText:function(t,e){var n,i=[],r=CKEDITOR.tools.parseCssText(t,!0,e);for(n in r)i.push(n+":"+r[n]);return i.sort(),i.length?i.join(";")+";":""},convertRgbToHex:function(t){return t.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(t,e,n,i){for(t=[e,n,i],e=0;3>e;e++)t[e]=("0"+parseInt(t[e],10).toString(16)).slice(-2);return"#"+t.join("")})},normalizeHex:function(t){return t.replace(/#(([0-9a-f]{3}){1,2})($|;|\s+)/gi,function(t,e,n,i){return t=e.toLowerCase(),3==t.length&&(t=t.split(""),t=[t[0],t[0],t[1],t[1],t[2],t[2]].join("")),"#"+t+i})},parseCssText:function(t,e,n){var i={};return n&&(t=new CKEDITOR.dom.element("span").setAttribute("style",t).getAttribute("style")||""),t&&(t=CKEDITOR.tools.normalizeHex(CKEDITOR.tools.convertRgbToHex(t))),t&&";"!=t?(t.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(t,n,r){e&&(n=n.toLowerCase(),"font-family"==n&&(r=r.replace(/\s*,\s*/g,",")),r=CKEDITOR.tools.trim(r)),i[n]=r}),i):i},writeCssText:function(t,e){var n,i=[];for(n in t)i.push(n+":"+t[n]);return e&&i.sort(),i.join("; ")},objectCompare:function(t,e,n){var i;if(!t&&!e)return!0;if(!t||!e)return!1;for(i in t)if(t[i]!=e[i])return!1;if(!n)for(i in e)if(t[i]!=e[i])return!1;return!0},objectKeys:function(t){var e,n=[];for(e in t)n.push(e);return n},convertArrayToObject:function(t,e){var n={};1==arguments.length&&(e=!0);for(var i=0,r=t.length;i<r;++i)n[t[i]]=e;return n},fixDomain:function(){for(var t;;)try{t=window.parent.document.domain;break}catch(e){if(!(t=t?t.replace(/.+?(?:\.|$)/,""):document.domain))break;document.domain=t}return!!t},eventsBuffer:function(t,e,n){function i(){o=(new Date).getTime(),r=!1,n?e.call(n):e()}var r,o=0;return{input:function(){if(!r){var e=(new Date).getTime()-o;e<t?r=setTimeout(i,t-e):i()}},reset:function(){r&&clearTimeout(r),r=o=0}}},enableHtml5Elements:function(t,e){for(var n,i="abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video".split(" "),r=i.length;r--;)n=t.createElement(i[r]),e&&t.appendChild(n)},checkIfAnyArrayItemMatches:function(t,e){for(var n=0,i=t.length;n<i;++n)if(t[n].match(e))return!0;return!1},checkIfAnyObjectPropertyMatches:function(t,e){for(var n in t)if(n.match(e))return!0;return!1},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==",getCookie:function(t){t=t.toLowerCase();for(var e,n=document.cookie.split(";"),i=0;i<n.length;i++)if(e=n[i].split("="),decodeURIComponent(CKEDITOR.tools.trim(e[0]).toLowerCase())===t)return decodeURIComponent(1<e.length?e[1]:"");return null},setCookie:function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path=/"},getCsrfToken:function(){var t=CKEDITOR.tools.getCookie("ckCsrfToken");if(!t||40!=t.length){var t=[],e="";if(window.crypto&&window.crypto.getRandomValues)t=new Uint8Array(40),window.crypto.getRandomValues(t);else for(var n=0;40>n;n++)t.push(Math.floor(256*Math.random()));for(n=0;n<t.length;n++)var i="abcdefghijklmnopqrstuvwxyz0123456789".charAt(t[n]%36),e=e+(.5<Math.random()?i.toUpperCase():i);t=e,CKEDITOR.tools.setCookie("ckCsrfToken",t)}return t},escapeCss:function(t){return t?window.CSS&&CSS.escape?CSS.escape(t):isNaN(parseInt(t.charAt(0),10))?t:"\\3"+t.charAt(0)+" "+t.substring(1,t.length):""}}}(),CKEDITOR.dtd=function(){var t=CKEDITOR.tools.extend,e=function(t,e){for(var n=CKEDITOR.tools.clone(t),i=1;i<arguments.length;i++){e=arguments[i];for(var r in e)delete n[r]}return n},n={},i={},r={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},o={command:1,link:1,meta:1,noscript:1,script:1,style:1},a={},s={"#":1},l={center:1,dir:1,noframes:1};return t(n,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},s,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1}),t(i,r,n,l),e={a:e(n,{a:1,button:1}),abbr:n,address:i,area:a,article:i,aside:i,audio:t({source:1,track:1},i),b:n,base:a,bdi:n,bdo:n,blockquote:i,body:i,br:a,button:e(n,{a:1,button:1}),canvas:n,caption:i,cite:n,code:n,col:a,colgroup:{col:1},command:a,datalist:t({option:1},n),dd:i,del:n,details:t({summary:1},i),dfn:n,div:i,dl:{dt:1,dd:1},dt:i,em:n,embed:a,fieldset:t({legend:1},i),figcaption:i,figure:t({figcaption:1},i),footer:i,form:i,h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:t({title:1,base:1},o),header:i,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:a,html:t({head:1,body:1},i,o),i:n,iframe:s,img:a,input:a,ins:n,kbd:n,keygen:a,label:n,legend:n,li:i,link:a,main:i,map:i,mark:n,menu:t({li:1},i),meta:a,meter:e(n,{meter:1}),nav:i,noscript:t({link:1,meta:1,style:1},n),object:t({param:1},n),ol:{li:1},optgroup:{option:1},option:s,output:n,p:n,param:a,pre:n,progress:e(n,{progress:1}),q:n,rp:n,rt:n,ruby:t({rp:1,rt:1},n),s:n,samp:n,script:s,section:i,select:{optgroup:1,option:1},small:n,source:a,span:n,strong:n,style:s,sub:n,summary:t({h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},n),sup:n,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:i,textarea:s,tfoot:{tr:1},th:i,thead:{tr:1},time:e(n,{time:1}),title:s,tr:{th:1,td:1},track:a,u:n,ul:{li:1},"var":n,video:t({source:1,track:1},i),wbr:a,acronym:n,applet:t({param:1},i),basefont:a,big:n,center:i,dialog:a,dir:{li:1},font:n,isindex:a,noframes:i,strike:n,tt:n},t(e,{$block:t({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},r,l),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,main:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:n,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:t({body:1,head:1,html:1},e.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),e}(),CKEDITOR.dom.event=function(t){this.$=t},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var t=this.getKey();return(this.$.ctrlKey||this.$.metaKey)&&(t+=CKEDITOR.CTRL),this.$.shiftKey&&(t+=CKEDITOR.SHIFT),this.$.altKey&&(t+=CKEDITOR.ALT),t},preventDefault:function(t){var e=this.$;e.preventDefault?e.preventDefault():e.returnValue=!1,t&&this.stopPropagation()},stopPropagation:function(){var t=this.$;t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},getTarget:function(){var t=this.$.target||this.$.srcElement;return t?new CKEDITOR.dom.node(t):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var t=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(t.documentElement.scrollLeft||t.body.scrollLeft),y:this.$.pageY||this.$.clientY+(t.documentElement.scrollTop||t.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(t){t&&(this.$=t)},CKEDITOR.dom.domObject.prototype=function(){var t=function(t,e){return function(n){"undefined"!=typeof CKEDITOR&&t.fire(e,new CKEDITOR.dom.event(n))}};return{getPrivate:function(){var t;return(t=this.getCustomData("_"))||this.setCustomData("_",t={}),t},on:function(e){var n=this.getCustomData("_cke_nativeListeners");return n||(n={},this.setCustomData("_cke_nativeListeners",n)),n[e]||(n=n[e]=t(this,e),this.$.addEventListener?this.$.addEventListener(e,n,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,n)),CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(t){if(CKEDITOR.event.prototype.removeListener.apply(this,arguments),!this.hasListeners(t)){var e=this.getCustomData("_cke_nativeListeners"),n=e&&e[t];n&&(this.$.removeEventListener?this.$.removeEventListener(t,n,!1):this.$.detachEvent&&this.$.detachEvent("on"+t,n),delete e[t])}},removeAllListeners:function(){var t,e=this.getCustomData("_cke_nativeListeners");for(t in e){var n=e[t];this.$.detachEvent?this.$.detachEvent("on"+t,n):this.$.removeEventListener&&this.$.removeEventListener(t,n,!1),delete e[t]}CKEDITOR.event.prototype.removeAllListeners.call(this)}}}(),function(t){var e={};CKEDITOR.on("reset",function(){e={}}),t.equals=function(t){try{return t&&t.$===this.$}catch(c){return!1}},t.setCustomData=function(t,n){var i=this.getUniqueId();return(e[i]||(e[i]={}))[t]=n,this},t.getCustomData=function(t){var n=this.$["data-cke-expando"];return(n=n&&e[n])&&t in n?n[t]:null},t.removeCustomData=function(t){var n,i,r=this.$["data-cke-expando"],r=r&&e[r];return r&&(n=r[t],i=t in r,delete r[t]),i?n:null},t.clearCustomData=function(){this.removeAllListeners();var t=this.$["data-cke-expando"];t&&delete e[t]},t.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())},CKEDITOR.event.implementOn(t)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(t){return t?new CKEDITOR.dom[t.nodeType==CKEDITOR.NODE_DOCUMENT?"document":t.nodeType==CKEDITOR.NODE_ELEMENT?"element":t.nodeType==CKEDITOR.NODE_TEXT?"text":t.nodeType==CKEDITOR.NODE_COMMENT?"comment":t.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](t):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(t,e){return t.append(this,e),t},clone:function(t,e){function n(i){if(i["data-cke-expando"]&&(i["data-cke-expando"]=!1),(i.nodeType==CKEDITOR.NODE_ELEMENT||i.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(e||i.nodeType!=CKEDITOR.NODE_ELEMENT||i.removeAttribute("id",!1),t)){i=i.childNodes;for(var r=0;r<i.length;r++)n(i[r])}}function i(e){if(e.type==CKEDITOR.NODE_ELEMENT||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT){if(e.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=e.getName();":"==n[0]&&e.renameNode(n.substring(1))}if(t)for(n=0;n<e.getChildCount();n++)i(e.getChild(n))}}var r=this.$.cloneNode(t);return n(r),r=new CKEDITOR.dom.node(r),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(this.type==CKEDITOR.NODE_ELEMENT||this.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&i(r),r},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(t){return t.$.parentNode.insertBefore(this.$,t.$.nextSibling),t},insertBefore:function(t){return t.$.parentNode.insertBefore(this.$,t.$),t},insertBeforeMe:function(t){return this.$.parentNode.insertBefore(t.$,this.$),t},getAddress:function(t){for(var e=[],n=this.getDocument().$.documentElement,i=this.$;i&&i!=n;){var r=i.parentNode;r&&e.unshift(this.getIndex.call({$:i},t)),i=r}return e},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(t){function e(t,i){var r=i?t.nextSibling:t.previousSibling;return r&&r.nodeType==CKEDITOR.NODE_TEXT?n(r)?e(r,i):r:null}function n(t){return!t.nodeValue||t.nodeValue==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE}var i,r=this.$,o=-1;if(!this.$.parentNode||t&&r.nodeType==CKEDITOR.NODE_TEXT&&n(r)&&!e(r)&&!e(r,!0))return-1;do{t&&r!=this.$&&r.nodeType==CKEDITOR.NODE_TEXT&&(i||n(r))||(o++,i=r.nodeType==CKEDITOR.NODE_TEXT)}while(r=r.previousSibling);return o},getNextSourceNode:function(t,e,n){if(n&&!n.call){var i=n;n=function(t){return!t.equals(i)}}t=!t&&this.getFirst&&this.getFirst();var r;if(!t){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;t=this.getNext()}for(;!t&&(r=(r||this).getParent());){if(n&&!1===n(r,!0))return null;t=r.getNext()}return!t||n&&!1===n(t)?null:e&&e!=t.type?t.getNextSourceNode(!1,e,n):t},getPreviousSourceNode:function(t,e,n){if(n&&!n.call){var i=n;n=function(t){return!t.equals(i)}}t=!t&&this.getLast&&this.getLast();var r;if(!t){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;t=this.getPrevious()}for(;!t&&(r=(r||this).getParent());){if(n&&!1===n(r,!0))return null;t=r.getPrevious()}return!t||n&&!1===n(t)?null:e&&t.type!=e?t.getPreviousSourceNode(!1,e,n):t},getPrevious:function(t){var e,n=this.$;do{e=(n=n.previousSibling)&&10!=n.nodeType&&new CKEDITOR.dom.node(n)}while(e&&t&&!t(e));return e},getNext:function(t){var e,n=this.$;do{e=(n=n.nextSibling)&&new CKEDITOR.dom.node(n)}while(e&&t&&!t(e));return e},getParent:function(t){var e=this.$.parentNode;return e&&(e.nodeType==CKEDITOR.NODE_ELEMENT||t&&e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(e):null},getParents:function(t){var e=this,n=[];do{n[t?"push":"unshift"](e)}while(e=e.getParent());return n},getCommonAncestor:function(t){if(t.equals(this))return this;if(t.contains&&t.contains(this))return t;var e=this.contains?this:this.getParent();do{if(e.contains(t))return e}while(e=e.getParent());return null},getPosition:function(t){var e=this.$,n=t.$;if(e.compareDocumentPosition)return e.compareDocumentPosition(n);if(e==n)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&t.type==CKEDITOR.NODE_ELEMENT){if(e.contains){if(e.contains(n))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(n.contains(e))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in e)return 0>e.sourceIndex||0>n.sourceIndex?CKEDITOR.POSITION_DISCONNECTED:e.sourceIndex<n.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}e=this.getAddress(),t=t.getAddress();for(var n=Math.min(e.length,t.length),i=0;i<n;i++)if(e[i]!=t[i])return e[i]<t[i]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;return e.length<t.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(t,e){var n,i,r=this.$;e||(r=r.parentNode),"function"==typeof t?(i=!0,n=t):(i=!1,n=function(e){return e="string"==typeof e.nodeName?e.nodeName.toLowerCase():"","string"==typeof t?e==t:e in t});for(;r;){if(n(i?new CKEDITOR.dom.node(r):r))return new CKEDITOR.dom.node(r);try{r=r.parentNode}catch(o){r=null}}return null},hasAscendant:function(t,e){var n=this.$;for(e||(n=n.parentNode);n;){if(n.nodeName&&n.nodeName.toLowerCase()==t)return!0;n=n.parentNode}return!1},move:function(t,e){t.append(this.remove(),e)},remove:function(t){var e=this.$,n=e.parentNode;if(n){if(t)for(;t=e.firstChild;)n.insertBefore(e.removeChild(t),e);n.removeChild(e)}return this},replace:function(t){this.insertBefore(t),t.remove()},trim:function(){this.ltrim(),this.rtrim()},ltrim:function(){for(var t;this.getFirst&&(t=this.getFirst());){if(t.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.ltrim(t.getText()),n=t.getLength();if(!e){t.remove();continue}e.length<n&&(t.split(n-e.length),this.$.removeChild(this.$.firstChild))}break}},rtrim:function(){for(var t;this.getLast&&(t=this.getLast());){if(t.type==CKEDITOR.NODE_TEXT){var e=CKEDITOR.tools.rtrim(t.getText()),n=t.getLength();if(!e){t.remove();continue}e.length<n&&(t.split(e.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}break}CKEDITOR.env.needsBrFiller&&(t=this.$.lastChild)&&1==t.type&&"br"==t.nodeName.toLowerCase()&&t.parentNode.removeChild(t)},isReadOnly:function(t){var e=this;if(this.type!=CKEDITOR.NODE_ELEMENT&&(e=this.getParent()),CKEDITOR.env.edge&&e&&e.is("textarea","input")&&(t=!0),!t&&e&&"undefined"!=typeof e.$.isContentEditable)return!(e.$.isContentEditable||e.data("cke-editable"));for(;e;){if(e.data("cke-editable"))return!1;if(e.hasAttribute("contenteditable"))return"false"==e.getAttribute("contenteditable");e=e.getParent()}return!0}}),CKEDITOR.dom.window=function(t){CKEDITOR.dom.domObject.call(this,t)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var t=this.$.document,e="CSS1Compat"==t.compatMode;return{width:(e?t.documentElement.clientWidth:t.body.clientWidth)||0,height:(e?t.documentElement.clientHeight:t.body.clientHeight)||0}},getScrollPosition:function(){var t=this.$;return"pageXOffset"in t?{x:t.pageXOffset||0,y:t.pageYOffset||0}:(t=t.document,{x:t.documentElement.scrollLeft||t.body.scrollLeft||0,y:t.documentElement.scrollTop||t.body.scrollTop||0})},getFrame:function(){var t=this.$.frameElement;return t?new CKEDITOR.dom.element.get(t):null}}),CKEDITOR.dom.document=function(t){CKEDITOR.dom.domObject.call(this,t)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(t){if(this.$.createStyleSheet)this.$.createStyleSheet(t);else{var e=new CKEDITOR.dom.element("link");e.setAttributes({rel:"stylesheet",type:"text/css",href:t}),this.getHead().append(e)}},appendStyleText:function(t){if(this.$.createStyleSheet){var e=this.$.createStyleSheet("");e.cssText=t}else{var n=new CKEDITOR.dom.element("style",this);n.append(new CKEDITOR.dom.text(t,this)),this.getHead().append(n)}return e||n.$.sheet},createElement:function(t,e){var n=new CKEDITOR.dom.element(t,this);return e&&(e.attributes&&n.setAttributes(e.attributes),e.styles&&n.setStyles(e.styles)),n},createText:function(t){return new CKEDITOR.dom.text(t,this)},focus:function(){this.getWindow().focus()},getActive:function(){var t;try{t=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(t)},getById:function(t){return(t=this.$.getElementById(t))?new CKEDITOR.dom.element(t):null},getByAddress:function(t,e){for(var n=this.$.documentElement,i=0;n&&i<t.length;i++){var r=t[i];if(e)for(var o=-1,a=0;a<n.childNodes.length;a++){var s=n.childNodes[a];if((!0!==e||3!=s.nodeType||!s.previousSibling||3!=s.previousSibling.nodeType)&&++o==r){n=s;break}}else n=n.childNodes[r]}return n?new CKEDITOR.dom.node(n):null},getElementsByTag:function(t,e){return CKEDITOR.env.ie&&8>=document.documentMode||!e||(t=e+":"+t),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(t))},getHead:function(){var t=this.$.getElementsByTagName("head")[0];return t=t?new CKEDITOR.dom.element(t):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(t){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(t=t.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>")),this.$.write(t),this.$.close()},find:function(t){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(t))},findOne:function(t){return(t=this.$.querySelector(t))?new CKEDITOR.dom.element(t):null},_getHtml5ShivFrag:function(){var t=this.getCustomData("html5ShivFrag");return t||(t=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(t,!0),this.setCustomData("html5ShivFrag",t)),t}}),CKEDITOR.dom.nodeList=function(t){this.$=t},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(t){return 0>t||t>=this.$.length?null:(t=this.$[t])?new CKEDITOR.dom.node(t):null}},CKEDITOR.dom.element=function(t,e){"string"==typeof t&&(t=(e?e.$:document).createElement(t)),CKEDITOR.dom.domObject.call(this,t)},CKEDITOR.dom.element.get=function(t){return(t="string"==typeof t?document.getElementById(t)||document.getElementsByName(t)[0]:t)&&(t.$?t:new CKEDITOR.dom.element(t))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(t,e){var n=new CKEDITOR.dom.element("div",e);return n.setHtml(t),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(t,e,n,i){var r=e.getCustomData("list_marker_id")||e.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),o=e.getCustomData("list_marker_names")||e.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return t[r]=e,o[n]=1,e.setCustomData(n,i)},CKEDITOR.dom.element.clearAllMarkers=function(t){for(var e in t)CKEDITOR.dom.element.clearMarkers(t,t[e],1)},CKEDITOR.dom.element.clearMarkers=function(t,e,n){var i,r=e.getCustomData("list_marker_names"),o=e.getCustomData("list_marker_id");for(i in r)e.removeCustomData(i);e.removeCustomData("list_marker_names"),n&&(e.removeCustomData("list_marker_id"),delete t[o])},function(){function t(t,e){return-1<(" "+t+" ").replace(o," ").indexOf(" "+e+" ")}function e(t){var e=!0;return t.$.id||(t.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),e=!1),function(){e||t.removeAttribute("id")}}function n(t,e){var n=CKEDITOR.tools.escapeCss(t.$.id);return"#"+n+" "+e.split(/,\s*/).join(", #"+n+" ")}function i(t){for(var e=0,n=0,i=a[t].length;n<i;n++)e+=parseInt(this.getComputedStyle(a[t][n])||0,10)||0;return e}var r=document.createElement("_").classList,r=void 0!==r&&null!==String(r.add).match(/\[Native code\]/gi),o=/[\n\t\r]/g;CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:r?function(t){return this.$.classList.add(t),this}:function(e){var n=this.$.className;return n&&(t(n,e)||(n+=" "+e)),this.$.className=n||e,this},removeClass:r?function(t){var e=this.$;return e.classList.remove(t),e.className||e.removeAttribute("class"),this}:function(e){var n=this.getAttribute("class");return n&&t(n,e)&&((n=n.replace(new RegExp("(?:^|\\s+)"+e+"(?=\\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",n):this.removeAttribute("class")),this},hasClass:function(e){return t(this.$.className,e)},append:function(t,e){return"string"==typeof t&&(t=this.getDocument().createElement(t)),e?this.$.insertBefore(t.$,this.$.firstChild):this.$.appendChild(t.$),t},appendHtml:function(t){if(this.$.childNodes.length){var e=new CKEDITOR.dom.element("div",this.getDocument());e.setHtml(t),e.moveChildren(this)}else this.setHtml(t)},appendText:function(t){null!=this.$.text&&CKEDITOR.env.ie&&9>CKEDITOR.env.version?this.$.text+=t:this.append(new CKEDITOR.dom.text(t))},appendBogus:function(t){if(t||CKEDITOR.env.needsBrFiller){for(t=this.getLast();t&&t.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(t.getText());)t=t.getPrevious();t&&t.is&&t.is("br")||(t=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&t.setAttribute("type","_moz"),this.append(t))}},breakParent:function(t,e){var n=new CKEDITOR.dom.range(this.getDocument());n.setStartAfter(this),n.setEndAfter(t);var i,r=n.extractContents(!1,e||!1);if(n.insertNode(this.remove()),CKEDITOR.env.ie&&!CKEDITOR.env.edge){for(n=new CKEDITOR.dom.element("div");i=r.getFirst();)i.$.style.backgroundColor&&(i.$.style.backgroundColor=i.$.style.backgroundColor),n.append(i);n.insertAfter(this),n.remove(!0)}else r.insertAfterNode(this)},contains:document.compareDocumentPosition?function(t){return!!(16&this.$.compareDocumentPosition(t.$))}:function(t){var e=this.$;return t.type!=CKEDITOR.NODE_ELEMENT?e.contains(t.getParent().$):e!=t.$&&e.contains(t.$)},focus:function(){function t(){try{this.$.focus()}catch(n){}}return function(e){e?CKEDITOR.tools.setTimeout(t,100,this):t.call(this)}}(),getHtml:function(){var t=this.$.innerHTML;return CKEDITOR.env.ie?t.replace(/<\?[^>]*>/g,""):t},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var t=this.$.ownerDocument.createElement("div");return t.appendChild(this.$.cloneNode(!0)),t.innerHTML},getClientRect:function(){var t=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!t.width&&(t.width=t.right-t.left),!t.height&&(t.height=t.bottom-t.top),t},setHtml:CKEDITOR.env.ie&&9>CKEDITOR.env.version?function(t){try{var e=this.$;if(this.getParent())return e.innerHTML=t;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(e),e.innerHTML=t,n.removeChild(e),t}catch(i){for(this.$.innerHTML="",e=new CKEDITOR.dom.element("body",this.getDocument()),e.$.innerHTML=t,e=e.getChildren();e.count();)this.append(e.getItem(0));return t}}:function(t){return this.$.innerHTML=t},setText:function(){var t=document.createElement("p");return t.innerHTML="x",t=t.textContent,function(e){this.$[t?"textContent":"innerText"]=e}}(),getAttribute:function(){var t=function(t){return this.$.getAttribute(t,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t){switch(t){case"class":t="className";break;case"http-equiv":t="httpEquiv";break;case"name":return this.$.name;case"tabindex":return t=this.$.getAttribute(t,2),0!==t&&0===this.$.tabIndex&&(t=null),t;case"checked":return t=this.$.attributes.getNamedItem(t),(t.specified?t.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[t];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(t,2)}:t}(),getAttributes:function(t){var e,n={},i=this.$.attributes;for(t=CKEDITOR.tools.isArray(t)?t:[],e=0;e<i.length;e++)-1===CKEDITOR.tools.indexOf(t,i[e].name)&&(n[i[e].name]=i[e].value);return n},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:document.defaultView&&document.defaultView.getComputedStyle?function(t){var e=this.getWindow().$.getComputedStyle(this.$,null);return e?e.getPropertyValue(t):""}:function(t){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(t)]},getDtd:function(){var t=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return t},t},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:function(){var t=this.$.tabIndex;return 0!==t||CKEDITOR.dtd.$tabIndex[this.getName()]||0===parseInt(this.getAttribute("tabindex"),10)?t:-1},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var t=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&8>=document.documentMode){var e=this.$.scopeName;"HTML"!=e&&(t=e.toLowerCase()+":"+t)}return this.getName=function(){return t},this.getName()},getValue:function(){return this.$.value},getFirst:function(t){var e=this.$.firstChild;return(e=e&&new CKEDITOR.dom.node(e))&&t&&!t(e)&&(e=e.getNext(t)),e},getLast:function(t){var e=this.$.lastChild;return(e=e&&new CKEDITOR.dom.node(e))&&t&&!t(e)&&(e=e.getPrevious(t)),e},getStyle:function(t){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(t)]},is:function(){var t=this.getName();if("object"==typeof arguments[0])return!!arguments[0][t];for(var e=0;e<arguments.length;e++)if(arguments[e]==t)return!0;return!1},isEditable:function(t){var e=this.getName();return!(this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[e]||CKEDITOR.dtd.$empty[e]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())&&(!1===t||!(!(t=CKEDITOR.dtd[e]||CKEDITOR.dtd.span)||!t["#"]))},isIdentical:function(t){var e=this.clone(0,1);if(t=t.clone(0,1),e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),t.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),e.$.isEqualNode)return e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),t.$.style.cssText=CKEDITOR.tools.normalizeCssText(t.$.style.cssText),e.$.isEqualNode(t.$);if(e=e.getOuterHtml(),t=t.getOuterHtml(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&this.is("a")){var n=this.getParent();n.type==CKEDITOR.NODE_ELEMENT&&(n=n.clone(),n.setHtml(e),e=n.getHtml(),n.setHtml(t),t=n.getHtml())}return e==t},isVisible:function(){var t,e,n=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"!=this.getComputedStyle("visibility");return n&&CKEDITOR.env.webkit&&(t=this.getWindow(),!t.equals(CKEDITOR.document.getWindow())&&(e=t.$.frameElement)&&(n=new CKEDITOR.dom.element(e).isVisible())),!!n},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var t=this.getChildren(),e=0,n=t.count();e<n;e++){var i=t.getItem(e);if((i.type!=CKEDITOR.NODE_ELEMENT||!i.data("cke-bookmark"))&&(i.type==CKEDITOR.NODE_ELEMENT&&!i.isEmptyInlineRemoveable()||i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var t=this.$.attributes,e=0;e<t.length;e++){var n=t[e];switch(n.nodeName){case"class":if(this.getAttribute("class"))return!0;case"data-cke-expando":continue;default:if(n.specified)return!0}}return!1}:function(){var t=this.$.attributes,e=t.length,n={"data-cke-expando":1,_moz_dirty:1};return 0<e&&(2<e||!n[t[0].nodeName]||2==e&&!n[t[1].nodeName])},hasAttribute:function(){function t(t){var e=this.$.attributes.getNamedItem(t);if("input"==this.getName())switch(t){case"class":return 0<this.$.className.length;case"checked":return!!this.$.checked;case"value":return t=this.getAttribute("type"),"checkbox"==t||"radio"==t?"on"!=this.$.value:!!this.$.value}return!!e&&e.specified}return CKEDITOR.env.ie?8>CKEDITOR.env.version?function(e){return"name"==e?!!this.$.name:t.call(this,e)}:t:function(t){return!!this.$.attributes.getNamedItem(t)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(t,e){var n=this.$;if(t=t.$,n!=t){var i;if(e)for(;i=n.lastChild;)t.insertBefore(n.removeChild(i),t.firstChild);else for(;i=n.firstChild;)t.appendChild(n.removeChild(i))}},mergeSiblings:function(){function t(t,e,n){if(e&&e.type==CKEDITOR.NODE_ELEMENT){for(var i=[];e.data("cke-bookmark")||e.isEmptyInlineRemoveable();)if(i.push(e),!(e=n?e.getNext():e.getPrevious())||e.type!=CKEDITOR.NODE_ELEMENT)return;if(t.isIdentical(e)){for(var r=n?t.getLast():t.getFirst();i.length;)i.shift().move(t,!n);e.moveChildren(t,!n),e.remove(),r&&r.type==CKEDITOR.NODE_ELEMENT&&r.mergeSiblings()}}}return function(e){(!1===e||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))&&(t(this,this.getNext(),!0),t(this,this.getPrevious()))}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var t=function(t,e){return this.$.setAttribute(t,e),this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e,n){return"class"==e?this.$.className=n:"style"==e?this.$.style.cssText=n:"tabindex"==e?this.$.tabIndex=n:"checked"==e?this.$.checked=n:"contenteditable"==e?t.call(this,"contentEditable",n):t.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(e,n){if("src"==e&&n.match(/^http:\/\//))try{t.apply(this,arguments)}catch(i){}else t.apply(this,arguments);return this}:t}(),setAttributes:function(t){for(var e in t)this.setAttribute(e,t[e]);return this},setValue:function(t){return this.$.value=t,this},removeAttribute:function(){var t=function(t){this.$.removeAttribute(t)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t){"class"==t?t="className":"tabindex"==t?t="tabIndex":"contenteditable"==t&&(t="contentEditable"),this.$.removeAttribute(t)}:t}(),removeAttributes:function(t){if(CKEDITOR.tools.isArray(t))for(var e=0;e<t.length;e++)this.removeAttribute(t[e]);else for(e in t=t||this.getAttributes())t.hasOwnProperty(e)&&this.removeAttribute(e)},removeStyle:function(t){var e=this.$.style;if(e.removeProperty||"border"!=t&&"margin"!=t&&"padding"!=t)e.removeProperty?e.removeProperty(t):e.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(t)),this.$.style.cssText||this.removeAttribute("style");else{var n,i=["top","left","right","bottom"];"border"==t&&(n=["color","style","width"]);for(var e=[],r=0;r<i.length;r++)if(n)for(var o=0;o<n.length;o++)e.push([t,i[r],n[o]].join("-"));else e.push([t,i[r]].join("-"));for(t=0;t<e.length;t++)this.removeStyle(e[t])}},setStyle:function(t,e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(t)]=e,this},setStyles:function(t){for(var e in t)this.setStyle(e,t[e]);return this},setOpacity:function(t){CKEDITOR.env.ie&&9>CKEDITOR.env.version?(t=Math.round(100*t),this.setStyle("filter",100<=t?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+t+")")):this.setStyle("opacity",t)},unselectable:function(){if(this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none")),CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var t,e=this.getElementsByTag("*"),n=0,i=e.count();n<i;n++)t=e.getItem(n),t.setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var t=this;"html"!=t.getName();){if("static"!=t.getComputedStyle("position"))return t;t=t.getParent()}return null},getDocumentPosition:function(t){var e=0,n=0,i=this.getDocument(),r=i.getBody(),o="BackCompat"==i.$.compatMode;if(document.documentElement.getBoundingClientRect&&(CKEDITOR.env.ie?8!==CKEDITOR.env.version:1)){var a=this.$.getBoundingClientRect(),s=i.$.documentElement,l=s.clientTop||r.$.clientTop||0,c=s.clientLeft||r.$.clientLeft||0,u=!0;CKEDITOR.env.ie&&(u=i.getDocumentElement().contains(this),i=i.getBody().contains(this),u=o&&i||!o&&u),u&&(CKEDITOR.env.webkit||CKEDITOR.env.ie&&12<=CKEDITOR.env.version?(e=r.$.scrollLeft||s.scrollLeft,n=r.$.scrollTop||s.scrollTop):(n=o?r.$:s,e=n.scrollLeft,n=n.scrollTop),e=a.left+e-c,n=a.top+n-l)}else for(l=this,c=null;l&&"body"!=l.getName()&&"html"!=l.getName();){for(e+=l.$.offsetLeft-l.$.scrollLeft,n+=l.$.offsetTop-l.$.scrollTop,l.equals(this)||(e+=l.$.clientLeft||0,n+=l.$.clientTop||0);c&&!c.equals(l);)e-=c.$.scrollLeft,n-=c.$.scrollTop,c=c.getParent();c=l,l=(a=l.$.offsetParent)?new CKEDITOR.dom.element(a):null}return t&&(a=this.getWindow(),l=t.getWindow(),!a.equals(l)&&a.$.frameElement&&(t=new CKEDITOR.dom.element(a.$.frameElement).getDocumentPosition(t),e+=t.x,n+=t.y)),document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||o||(e+=this.$.clientLeft?1:0,n+=this.$.clientTop?1:0),{x:e,y:n}},scrollIntoView:function(t){var e=this.getParent();if(e)do{if((e.$.clientWidth&&e.$.clientWidth<e.$.scrollWidth||e.$.clientHeight&&e.$.clientHeight<e.$.scrollHeight)&&!e.is("body")&&this.scrollIntoParent(e,t,1),e.is("html")){var n=e.getWindow();try{var i=n.$.frameElement;i&&(e=new CKEDITOR.dom.element(i))}catch(r){}}}while(e=e.getParent())},scrollIntoParent:function(t,e,n){function i(e,n){/body|html/.test(t.getName())?t.getWindow().$.scrollBy(e,n):(t.$.scrollLeft+=e,t.$.scrollTop+=n)}function r(t,e){var n={x:0,y:0};if(!t.is(u?"body":"html")){var i=t.$.getBoundingClientRect();n.x=i.left,n.y=i.top}return i=t.getWindow(),i.equals(e)||(i=r(CKEDITOR.dom.element.get(i.$.frameElement),e),n.x+=i.x,n.y+=i.y),n}function o(t,e){return parseInt(t.getComputedStyle("margin-"+e)||0,10)||0}var a,s,l,c;!t&&(t=this.getWindow()),l=t.getDocument();var u="BackCompat"==l.$.compatMode;t instanceof CKEDITOR.dom.window&&(t=u?l.getBody():l.getDocumentElement()),CKEDITOR.env.webkit&&(l=this.getEditor(!1))&&(l._.previousScrollTop=null),l=t.getWindow(),s=r(this,l);var d=r(t,l),h=this.$.offsetHeight;a=this.$.offsetWidth;var f=t.$.clientHeight,p=t.$.clientWidth;l=s.x-o(this,"left")-d.x||0,c=s.y-o(this,"top")-d.y||0,a=s.x+a+o(this,"right")-(d.x+p)||0,s=s.y+h+o(this,"bottom")-(d.y+f)||0,(0>c||0<s)&&i(0,!0===e?c:!1===e?s:0>c?c:s),n&&(0>l||0<a)&&i(0>l?l:a,0)},setState:function(t,e,n){switch(e=e||"cke",t){case CKEDITOR.TRISTATE_ON:this.addClass(e+"_on"),this.removeClass(e+"_off"),this.removeClass(e+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(e+"_disabled"),this.removeClass(e+"_off"),this.removeClass(e+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(e+"_off"),this.removeClass(e+"_on"),this.removeClass(e+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var t=this.$;try{t.contentWindow.document}catch(n){t.src=t.src}return t&&new CKEDITOR.dom.document(t.contentWindow.document)},copyAttributes:function(t,e){var n=this.$.attributes;e=e||{};for(var i=0;i<n.length;i++){var r,o=n[i],a=o.nodeName.toLowerCase();a in e||("checked"==a&&(r=this.getAttribute(a))?t.setAttribute(a,r):CKEDITOR.env.ie&&!this.hasAttribute(a)||(r=this.getAttribute(a),null===r&&(r=o.nodeValue),t.setAttribute(a,r)))}""!==this.$.style.cssText&&(t.$.style.cssText=this.$.style.cssText)},renameNode:function(t){if(this.getName()!=t){var e=this.getDocument();t=new CKEDITOR.dom.element(t,e),this.copyAttributes(t),this.moveChildren(t),this.getParent(!0)&&this.$.parentNode.replaceChild(t.$,this.$),t.$["data-cke-expando"]=this.$["data-cke-expando"],this.$=t.$,delete this.getName}},getChild:function(){function t(t,e){var n=t.childNodes;if(0<=e&&e<n.length)return n[e]}return function(e){var n=this.$;if(e.slice)for(e=e.slice();0<e.length&&n;)n=t(n,e.shift());else n=t(n,e);return n?new CKEDITOR.dom.node(n):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){function t(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.hasClass("cke_enable_context_menu")}this.on("contextmenu",function(e){e.data.getTarget().getAscendant(t,!0)||e.data.preventDefault()})},getDirection:function(t){return t?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(t,e){return t="data-"+t,void 0===e?this.getAttribute(t):(!1===e?this.removeAttribute(t):this.setAttribute(t,e),null)},getEditor:function(t){var e,n,i,r=CKEDITOR.instances;t=t||void 0===t;for(e in r)if(n=r[e],n.element.equals(this)&&n.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||!t&&(i=n.editable(),i.equals(this)||i.contains(this)))return n;return null},find:function(t){var i=e(this);return t=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(n(this,t))),i(),t},findOne:function(t){var i=e(this);return t=this.$.querySelector(n(this,t)),i(),t?new CKEDITOR.dom.element(t):null},forEach:function(t,e,n){if(!(n||e&&this.type!=e))var i=t(this);if(!1!==i){n=this.getChildren();for(var r=0;r<n.count();r++)i=n.getItem(r),i.type==CKEDITOR.NODE_ELEMENT?i.forEach(t,e):e&&i.type!=e||t(i)}}});var a={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(t,e,n){"number"==typeof e&&(!n||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(e-=i.call(this,t)),this.setStyle(t,e+"px"))},CKEDITOR.dom.element.prototype.getSize=function(t,e){var n=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(t)],this.$["client"+CKEDITOR.tools.capitalize(t)])||0;return e&&(n-=i.call(this,t)),n}}(),CKEDITOR.dom.documentFragment=function(t){t=t||CKEDITOR.document,this.$=t.type==CKEDITOR.NODE_DOCUMENT?t.$.createDocumentFragment():t},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(t){t=t.$,t.parentNode.insertBefore(this.$,t.nextSibling)},getHtml:function(){var t=new CKEDITOR.dom.element("div");return this.clone(1,1).appendTo(t),t.getHtml().replace(/\s*data-cke-expando=".*?"/g,"")}},!0,{append:1,appendBogus:1,clone:1,getFirst:1,getHtml:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function t(t,e){var n=this.range;if(this._.end)return null;if(!this._.start){if(this._.start=1,n.collapsed)return this.end(),null;n.optimize()}var i,r=n.startContainer;i=n.endContainer;var o,a=n.startOffset,s=n.endOffset,l=this.guard,c=this.type,u=t?"getPreviousSourceNode":"getNextSourceNode";if(!t&&!this._.guardLTR){var d=i.type==CKEDITOR.NODE_ELEMENT?i:i.getParent(),h=i.type==CKEDITOR.NODE_ELEMENT?i.getChild(s):i.getNext();this._.guardLTR=function(t,e){return!(e&&d.equals(t)||h&&t.equals(h)||t.type==CKEDITOR.NODE_ELEMENT&&e&&t.equals(n.root))}}if(t&&!this._.guardRTL){var f=r.type==CKEDITOR.NODE_ELEMENT?r:r.getParent(),p=r.type==CKEDITOR.NODE_ELEMENT?a?r.getChild(a-1):null:r.getPrevious();this._.guardRTL=function(t,e){return!(e&&f.equals(t)||p&&t.equals(p)||t.type==CKEDITOR.NODE_ELEMENT&&e&&t.equals(n.root))}}var m=t?this._.guardRTL:this._.guardLTR;for(o=l?function(t,e){return!1!==m(t,e)&&l(t,e)}:m,this.current?i=this.current[u](!1,c,o):(t?i.type==CKEDITOR.NODE_ELEMENT&&(i=0<s?i.getChild(s-1):!1===o(i,!0)?null:i.getPreviousSourceNode(!0,c,o)):(i=r,i.type==CKEDITOR.NODE_ELEMENT&&((i=i.getChild(a))||(i=!1===o(r,!0)?null:r.getNextSourceNode(!0,c,o)))),i&&!1===o(i)&&(i=null));i&&!this._.end;){if(this.current=i,this.evaluator&&!1===this.evaluator(i)){if(e&&this.evaluator)return!1}else if(!e)return i;i=i[u](!1,c,o)}return this.end(),this.current=null}function e(e){for(var n,i=null;n=t.call(this,e);)i=n;return i}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(t){this.range=t,this._={}},proto:{end:function(){this._.end=1},next:function(){return t.call(this)},previous:function(){return t.call(this,1)},checkForward:function(){return!1!==t.call(this,0,1)},checkBackward:function(){return!1!==t.call(this,1,1)},lastForward:function(){return e.call(this)},lastBackward:function(){return e.call(this,1)},reset:function(){delete this.current,this._={}}}});var n={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},i={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(t){return!("none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in i||!n[this.getComputedStyle("display")])||!!(this.is(CKEDITOR.dtd.$block)||t&&this.is(t))},CKEDITOR.dom.walker.blockBoundary=function(t){return function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary(t))}},CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})},CKEDITOR.dom.walker.bookmark=function(t,e){function n(t){return t&&t.getName&&"span"==t.getName()&&t.data("cke-bookmark")}return function(i){var r,o;return r=i&&i.type!=CKEDITOR.NODE_ELEMENT&&(o=i.getParent())&&n(o),r=t?r:r||n(i),!!(e^r)}},CKEDITOR.dom.walker.whitespaces=function(t){return function(e){var n;return e&&e.type==CKEDITOR.NODE_TEXT&&(n=!CKEDITOR.tools.trim(e.getText())||CKEDITOR.env.webkit&&e.getText()==CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE),!!(t^n)}},CKEDITOR.dom.walker.invisible=function(t){var e=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.env.webkit?1:0;return function(i){return e(i)?i=1:(i.type==CKEDITOR.NODE_TEXT&&(i=i.getParent()),i=i.$.offsetWidth<=n),!!(t^i)}},CKEDITOR.dom.walker.nodeType=function(t,e){return function(n){return!!(e^n.type==t)}},CKEDITOR.dom.walker.bogus=function(t){function e(t){return!o(t)&&!a(t)}return function(n){var i=CKEDITOR.env.needsBrFiller?n.is&&n.is("br"):n.getText&&r.test(n.getText());return i&&(i=n.getParent(),n=n.getNext(e),i=i.isBlockBoundary()&&(!n||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary())),!!(t^i)}},CKEDITOR.dom.walker.temp=function(t){return function(e){return e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent()),e=e&&e.hasAttribute("data-cke-temp"),!!(t^e)}};var r=/^[\t\r\n ]*(?: |\xa0)$/,o=CKEDITOR.dom.walker.whitespaces(),a=CKEDITOR.dom.walker.bookmark(),s=CKEDITOR.dom.walker.temp(),l=function(t){return a(t)||o(t)||t.type==CKEDITOR.NODE_ELEMENT&&t.is(CKEDITOR.dtd.$inline)&&!t.is(CKEDITOR.dtd.$empty)};CKEDITOR.dom.walker.ignored=function(t){return function(e){return e=o(e)||a(e)||s(e),!!(t^e)}};var c=CKEDITOR.dom.walker.ignored();CKEDITOR.dom.walker.empty=function(t){return function(e){for(var n=0,i=e.getChildCount();n<i;++n)if(!c(e.getChild(n)))return!!t;return!t}};var u=CKEDITOR.dom.walker.empty(),d=CKEDITOR.dom.walker.validEmptyBlockContainers=CKEDITOR.tools.extend(function(t){var e,n={};for(e in t)CKEDITOR.dtd[e]["#"]&&(n[e]=1);return n}(CKEDITOR.dtd.$block),{caption:1,td:1,th:1});CKEDITOR.dom.walker.editable=function(t){return function(e){return e=!c(e)&&!!(e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&(e.is(CKEDITOR.dtd.$inline)||e.is("hr")||"false"==e.getAttribute("contenteditable")||!CKEDITOR.env.needsBrFiller&&e.is(d)&&u(e))),!!(t^e)}},CKEDITOR.dom.element.prototype.getBogus=function(){var t=this;do{t=t.getPreviousSourceNode()}while(l(t));return!(!t||!(CKEDITOR.env.needsBrFiller?t.is&&t.is("br"):t.getText&&r.test(t.getText())))&&t}}(),CKEDITOR.dom.range=function(t){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null,this.collapsed=!0;var e=t instanceof CKEDITOR.dom.document;this.document=e?t:t.getDocument(),this.root=e?t.getBody():t},function(){function t(t){t.collapsed=t.startContainer&&t.endContainer&&t.startContainer.equals(t.endContainer)&&t.startOffset==t.endOffset}function e(t,e,n,i,r){function o(t,e,n,i){var o=n?t.getPrevious():t.getNext();return i&&a?o:(l||i?e.append(t.clone(!0,r),n):(t.remove(),s&&e.append(t)),o)}t.optimizeBookmark();var a=0===e,s=1==e,l=2==e;e=l||s;var c,u,d,h,f,p,m=t.startContainer,g=t.endContainer,v=t.startOffset,y=t.endOffset;if(l&&g.type==CKEDITOR.NODE_TEXT&&m.equals(g))m=t.document.createText(m.substring(v,y)),n.append(m);else{g.type==CKEDITOR.NODE_TEXT?l?p=!0:g=g.split(y):0<g.getChildCount()?y>=g.getChildCount()?(g=g.getChild(y-1),u=!0):g=g.getChild(y):h=u=!0,m.type==CKEDITOR.NODE_TEXT?l?f=!0:m.split(v):0<m.getChildCount()?0===v?(m=m.getChild(v),c=!0):m=m.getChild(v-1):d=c=!0;for(var E,b,_,C=m.getParents(),T=g.getParents(),I=function(){var t,e,n,i=Math.min(C.length,T.length);for(t=0;t<i;t++)if(e=C[t],n=T[t],!e.equals(n))return t;return t-1}(),D=C.length-1,$=T.length-1,O=n,w=-1,R=I;R<=D;R++){for(b=C[R],_=b.getNext(),R!=D||b.equals(T[R])&&D<$?e&&(E=O.append(b.clone(0,r))):c?o(b,O,!1,d):f&&O.append(t.document.createText(b.substring(v)));_;){if(_.equals(T[R])){w=R;break}_=o(_,O)}O=E}for(O=n,R=I;R<=$;R++)if(n=T[R],_=n.getPrevious(),n.equals(C[R]))e&&(O=O.getChild(0));else{if(R!=$||n.equals(C[R])&&$<D?e&&(E=O.append(n.clone(0,r))):u?o(n,O,!1,h):p&&O.append(t.document.createText(n.substring(0,y))),R>w)for(;_;)_=o(_,O,!0);O=E}l||function(){var e=I-1,n=d&&h&&!m.equals(g);e<D-1||e<$-1||n?(n?t.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START):$==e+1&&u?t.moveToPosition(T[e],CKEDITOR.POSITION_BEFORE_END):t.moveToPosition(T[e+1],CKEDITOR.POSITION_BEFORE_START),i&&(e=C[e+1])&&e.type==CKEDITOR.NODE_ELEMENT&&(n=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',t.document),n.insertAfter(e),e.mergeSiblings(!1),t.moveToBookmark({startNode:n}))):t.collapse(!0)}()}}function n(){var t=!1,e=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!0),i=CKEDITOR.dom.walker.bogus();return function(r){return!(!n(r)&&!e(r))||(i(r)&&!t?t=!0:!(r.type==CKEDITOR.NODE_TEXT&&(r.hasAscendant("pre")||CKEDITOR.tools.trim(r.getText()).length)||r.type==CKEDITOR.NODE_ELEMENT&&!r.is(o)))}}function i(t){var e=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(1);return function(i){return!(!n(i)&&!e(i))||(!t&&a(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.is(CKEDITOR.dtd.$removeEmpty))}}function r(t){return function(){var e;return this[t?"getPreviousNode":"getNextNode"](function(t){return!e&&c(t)&&(e=t),l(t)&&!(a(t)&&t.equals(e))})}}var o={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},a=CKEDITOR.dom.walker.bogus(),s=/^[\t\r\n ]*(?: |\xa0)$/,l=CKEDITOR.dom.walker.editable(),c=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var t=new CKEDITOR.dom.range(this.root);return t._setStartContainer(this.startContainer),t.startOffset=this.startOffset,t._setEndContainer(this.endContainer),t.endOffset=this.endOffset,t.collapsed=this.collapsed,t},collapse:function(t){t?(this._setEndContainer(this.startContainer),this.endOffset=this.startOffset):(this._setStartContainer(this.endContainer),this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(t){var n=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||e(this,2,n,!1,void 0===t||t),n},deleteContents:function(t){this.collapsed||e(this,0,null,t)},extractContents:function(t,n){var i=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||e(this,1,i,t,void 0===n||n),i},createBookmark:function(t){var e,n,i,r,o=this.collapsed;return e=this.document.createElement("span"),e.data("cke-bookmark",1),e.setStyle("display","none"),e.setHtml(" "),t&&(i="cke_bm_"+CKEDITOR.tools.getNextNumber(),e.setAttribute("id",i+(o?"C":"S"))),o||(n=e.clone(),n.setHtml(" "),t&&n.setAttribute("id",i+"E"),r=this.clone(),r.collapse(),r.insertNode(n)),r=this.clone(),r.collapse(!0),r.insertNode(e),n?(this.setStartAfter(e),this.setEndBefore(n)):this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),{startNode:t?i+(o?"C":"S"):e,endNode:t?i+"E":n,serializable:t,collapsed:o}},createBookmark2:function(){function t(t){var e,i=t.container,r=t.offset;e=i;var o=r;if(e=e.type!=CKEDITOR.NODE_ELEMENT||0===o||o==e.getChildCount()?0:e.getChild(o-1).type==CKEDITOR.NODE_TEXT&&e.getChild(o).type==CKEDITOR.NODE_TEXT,e&&(i=i.getChild(r-1),r=i.getLength()),i.type==CKEDITOR.NODE_ELEMENT&&0<r){t:{for(e=i;r--;)if(0<=(o=e.getChild(r).getIndex(!0))){r=o;break t}r=-1}r+=1}if(i.type==CKEDITOR.NODE_TEXT){for(e=i,o=0;(e=e.getPrevious())&&e.type==CKEDITOR.NODE_TEXT;)o+=e.getText().replace(CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE,"").length;e=o,i.getText()?r+=e:(o=i.getPrevious(n),e?(r=e,i=o?o.getNext():i.getParent().getFirst()):(i=i.getParent(),r=o?o.getIndex(!0)+1:0))}t.container=i,t.offset=r}function e(t,e){var n=e.getCustomData("cke-fillingChar");if(n){var i=t.container;n.equals(i)&&(t.offset-=CKEDITOR.dom.selection.FILLING_CHAR_SEQUENCE.length,0>=t.offset&&(t.offset=i.getIndex(),t.container=i.getParent()))}}var n=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_TEXT,!0);return function(n){var i=this.collapsed,r={container:this.startContainer,offset:this.startOffset},o={container:this.endContainer,offset:this.endOffset};return n&&(t(r),e(r,this.root),i||(t(o),e(o,this.root))),{start:r.container.getAddress(n),end:i?null:o.container.getAddress(n),startOffset:r.offset,endOffset:o.offset,normalized:n,collapsed:i,is2:!0}}}(),moveToBookmark:function(t){if(t.is2){var e=this.document.getByAddress(t.start,t.normalized),n=t.startOffset,i=t.end&&this.document.getByAddress(t.end,t.normalized);t=t.endOffset,this.setStart(e,n),i?this.setEnd(i,t):this.collapse(!0)}else e=(n=t.serializable)?this.document.getById(t.startNode):t.startNode,t=n?this.document.getById(t.endNode):t.endNode,this.setStartBefore(e),e.remove(),t?(this.setEndBefore(t),t.remove()):this.collapse(!0)},getBoundaryNodes:function(){var t,e=this.startContainer,n=this.endContainer,i=this.startOffset,r=this.endOffset;if(e.type==CKEDITOR.NODE_ELEMENT)if((t=e.getChildCount())>i)e=e.getChild(i);else if(1>t)e=e.getPreviousSourceNode();else{for(e=e.$;e.lastChild;)e=e.lastChild;e=new CKEDITOR.dom.node(e),e=e.getNextSourceNode()||e}if(n.type==CKEDITOR.NODE_ELEMENT)if((t=n.getChildCount())>r)n=n.getChild(r).getPreviousSourceNode(!0);else if(1>t)n=n.getPreviousSourceNode();else{for(n=n.$;n.lastChild;)n=n.lastChild;n=new CKEDITOR.dom.node(n)}return e.getPosition(n)&CKEDITOR.POSITION_FOLLOWING&&(e=n),{startNode:e,endNode:n}},getCommonAncestor:function(t,e){var n=this.startContainer,i=this.endContainer,n=n.equals(i)?t&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(i);return e&&!n.is?n.getParent():n},optimize:function(){var t=this.startContainer,e=this.startOffset;t.type!=CKEDITOR.NODE_ELEMENT&&(e?e>=t.getLength()&&this.setStartAfter(t):this.setStartBefore(t)),t=this.endContainer,e=this.endOffset,t.type!=CKEDITOR.NODE_ELEMENT&&(e?e>=t.getLength()&&this.setEndAfter(t):this.setEndBefore(t))},optimizeBookmark:function(){var t=this.startContainer,e=this.endContainer;t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setStartAt(t,CKEDITOR.POSITION_BEFORE_START),e&&e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setEndAt(e,CKEDITOR.POSITION_AFTER_END)},trim:function(t,e){var n=this.startContainer,i=this.startOffset,r=this.collapsed;if((!t||r)&&n&&n.type==CKEDITOR.NODE_TEXT){if(i)if(i>=n.getLength())i=n.getIndex()+1,n=n.getParent();else{var o=n.split(i),i=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(o,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset+=1)}else i=n.getIndex(),n=n.getParent();if(this.setStart(n,i),r)return void this.collapse(!0)}n=this.endContainer,i=this.endOffset,e||r||!n||n.type!=CKEDITOR.NODE_TEXT||(i?(i>=n.getLength()||n.split(i),i=n.getIndex()+1):i=n.getIndex(),n=n.getParent(),this.setEnd(n,i))},enlarge:function(t,e){function n(t){return t&&t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("contenteditable")?null:t}var i=new RegExp(/[^\s\ufeff]/);switch(t){case CKEDITOR.ENLARGE_INLINE:var r=1;case CKEDITOR.ENLARGE_ELEMENT:var o=function(t,e){var n=new CKEDITOR.dom.range(p);n.setStart(t,e),n.setEndAt(p,CKEDITOR.POSITION_BEFORE_END);var r,n=new CKEDITOR.dom.walker(n);for(n.guard=function(t){return!(t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary())};r=n.next();){if(r.type!=CKEDITOR.NODE_TEXT)return!1;if(h=r!=t?r.getText():r.substring(e),i.test(h))return!1}return!0};if(this.collapsed)break;var a,s,l,c,u,d,h,f=this.getCommonAncestor(),p=this.root,m=!1;d=this.startContainer;var g=this.startOffset;for(d.type==CKEDITOR.NODE_TEXT?(g&&(d=!CKEDITOR.tools.trim(d.substring(0,g)).length&&d,m=!!d),d&&((c=d.getPrevious())||(l=d.getParent()))):(g&&(c=d.getChild(g-1)||d.getLast()),c||(l=d)),l=n(l);l||c;){if(l&&!c){if(!u&&l.equals(f)&&(u=!0),r?l.isBlockBoundary():!p.contains(l))break;m&&"inline"==l.getComputedStyle("display")||(m=!1,u?a=l:this.setStartBefore(l)),c=l.getPrevious()}for(;c;)if(d=!1,c.type==CKEDITOR.NODE_COMMENT)c=c.getPrevious();else{if(c.type==CKEDITOR.NODE_TEXT)h=c.getText(),i.test(h)&&(c=null),d=/[\s\ufeff]$/.test(h);else if((c.$.offsetWidth>(CKEDITOR.env.webkit?1:0)||e&&c.is("br"))&&!c.data("cke-bookmark"))if(m&&CKEDITOR.dtd.$removeEmpty[c.getName()]){if(h=c.getText(),i.test(h))c=null;else for(var v,g=c.$.getElementsByTagName("*"),y=0;v=g[y++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){c=null;break}c&&(d=!!h.length)}else c=null;if(d&&(m?u?a=l:l&&this.setStartBefore(l):m=!0),c){if(d=c.getPrevious(),!l&&!d){l=c,c=null;break}c=d}else l=null}l&&(l=n(l.getParent()))}for(d=this.endContainer,g=this.endOffset,l=c=null,u=m=!1,d.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(d.substring(g)).length?m=!0:(m=!d.getLength(),g==d.getLength()?(c=d.getNext())||(l=d.getParent()):o(d,g)&&(l=d.getParent())):(c=d.getChild(g))||(l=d);l||c;){if(l&&!c){if(!u&&l.equals(f)&&(u=!0),r?l.isBlockBoundary():!p.contains(l))break;m&&"inline"==l.getComputedStyle("display")||(m=!1,u?s=l:l&&this.setEndAfter(l)),c=l.getNext()}for(;c;){if(d=!1,c.type==CKEDITOR.NODE_TEXT)h=c.getText(),o(c,0)||(c=null),d=/^[\s\ufeff]/.test(h);else if(c.type==CKEDITOR.NODE_ELEMENT){if((0<c.$.offsetWidth||e&&c.is("br"))&&!c.data("cke-bookmark"))if(m&&CKEDITOR.dtd.$removeEmpty[c.getName()]){if(h=c.getText(),i.test(h))c=null;else for(g=c.$.getElementsByTagName("*"),y=0;v=g[y++];)if(!CKEDITOR.dtd.$removeEmpty[v.nodeName.toLowerCase()]){c=null;break}c&&(d=!!h.length)}else c=null}else d=1;if(d&&m&&(u?s=l:this.setEndAfter(l)),c){if(d=c.getNext(),!l&&!d){l=c,c=null;break}c=d}else l=null}l&&(l=n(l.getParent()))}a&&s&&(f=a.contains(s)?s:a,this.setStartBefore(f),this.setEndAfter(f));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:l=new CKEDITOR.dom.range(this.root),p=this.root,l.setStartAt(p,CKEDITOR.POSITION_AFTER_START),l.setEnd(this.startContainer,this.startOffset),l=new CKEDITOR.dom.walker(l);var E,b,_=CKEDITOR.dom.walker.blockBoundary(t==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),C=null,T=function(t){if(t.type==CKEDITOR.NODE_ELEMENT&&"false"==t.getAttribute("contenteditable"))if(C){if(C.equals(t))return void(C=null)}else C=t;else if(C)return;var e=_(t);return e||(E=t),e},r=function(t){var e=T(t);return!e&&t.is&&t.is("br")&&(b=t),e};if(l.guard=T,l=l.lastBackward(),E=E||p,this.setStartAt(E,!E.is("br")&&(!l&&this.checkStartOfBlock()||l&&E.contains(l))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END),t==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){l=this.clone(),l=new CKEDITOR.dom.walker(l);var I=CKEDITOR.dom.walker.whitespaces(),D=CKEDITOR.dom.walker.bookmark();if(l.evaluator=function(t){return!I(t)&&!D(t)},(l=l.previous())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br"))break}l=this.clone(),l.collapse(),l.setEndAt(p,CKEDITOR.POSITION_BEFORE_END),l=new CKEDITOR.dom.walker(l),l.guard=t==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?r:T,E=C=b=null,l=l.lastForward(),E=E||p,this.setEndAt(E,!l&&this.checkEndOfBlock()||l&&E.contains(l)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),b&&this.setEndAfter(b)}},shrink:function(t,e,n){if(!this.collapsed){t=t||CKEDITOR.SHRINK_TEXT;var i=this.clone(),r=this.startContainer,o=this.endContainer,a=this.startOffset,s=this.endOffset,l=1,c=1;r&&r.type==CKEDITOR.NODE_TEXT&&(a?a>=r.getLength()?i.setStartAfter(r):(i.setStartBefore(r),l=0):i.setStartBefore(r)),o&&o.type==CKEDITOR.NODE_TEXT&&(s?s>=o.getLength()?i.setEndAfter(o):(i.setEndAfter(o),c=0):i.setEndBefore(o));var i=new CKEDITOR.dom.walker(i),u=CKEDITOR.dom.walker.bookmark();i.evaluator=function(e){return e.type==(t==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var d;return i.guard=function(e,i){return!!u(e)||!(t==CKEDITOR.SHRINK_ELEMENT&&e.type==CKEDITOR.NODE_TEXT||i&&e.equals(d)||!1===n&&e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary()||e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable"))&&(i||e.type!=CKEDITOR.NODE_ELEMENT||(d=e),!0)},l&&(r=i[t==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(r,e?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),c&&(i.reset(),(i=i[t==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(i,e?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!(!l&&!c)}},insertNode:function(t){this.optimizeBookmark(),this.trim(!1,!0);var e=this.startContainer,n=e.getChild(this.startOffset);n?t.insertBefore(n):e.append(t),t.getParent()&&t.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(t)},moveToPosition:function(t,e){this.setStartAt(t,e),this.collapse(!0)},moveToRange:function(t){this.setStart(t.startContainer,t.startOffset),this.setEnd(t.endContainer,t.endOffset)},selectNodeContents:function(t){this.setStart(t,0),this.setEnd(t,t.type==CKEDITOR.NODE_TEXT?t.getLength():t.getChildCount())},setStart:function(e,n){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(n=e.getIndex(),e=e.getParent()),this._setStartContainer(e),this.startOffset=n,this.endContainer||(this._setEndContainer(e),this.endOffset=n),t(this)},setEnd:function(e,n){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(n=e.getIndex()+1,e=e.getParent()),this._setEndContainer(e),this.endOffset=n,this.startContainer||(this._setStartContainer(e),this.startOffset=n),t(this)},setStartAfter:function(t){this.setStart(t.getParent(),t.getIndex()+1)},setStartBefore:function(t){this.setStart(t.getParent(),t.getIndex())},setEndAfter:function(t){this.setEnd(t.getParent(),t.getIndex()+1)},setEndBefore:function(t){this.setEnd(t.getParent(),t.getIndex())},setStartAt:function(e,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setStart(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setStart(e,e.getLength()):this.setStart(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(e)}t(this)},setEndAt:function(e,n){switch(n){case CKEDITOR.POSITION_AFTER_START:this.setEnd(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setEnd(e,e.getLength()):this.setEnd(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(e)}t(this)},fixBlock:function(t,e){var n=this.createBookmark(),i=this.document.createElement(e);this.collapse(t),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(i),i.trim(),this.insertNode(i);var r=i.getBogus();return r&&r.remove(),i.appendBogus(),this.moveToBookmark(n),i},splitBlock:function(t,e){var n=new CKEDITOR.dom.elementPath(this.startContainer,this.root),i=new CKEDITOR.dom.elementPath(this.endContainer,this.root),r=n.block,o=i.block,a=null;return n.blockLimit.equals(i.blockLimit)?("br"!=t&&(r||(r=this.fixBlock(!0,t),o=new CKEDITOR.dom.elementPath(this.endContainer,this.root).block),o||(o=this.fixBlock(!1,t))),n=r&&this.checkStartOfBlock(),i=o&&this.checkEndOfBlock(),this.deleteContents(),r&&r.equals(o)&&(i?(a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(o,CKEDITOR.POSITION_AFTER_END),o=null):n?(a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),r=null):(o=this.splitElement(r,e||!1),r.is("ul","ol")||r.appendBogus())),{previousBlock:r,nextBlock:o,wasStartOfBlock:n,wasEndOfBlock:i,elementPath:a}):null},splitElement:function(t,e){if(!this.collapsed)return null;this.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);var n=this.extractContents(!1,e||!1),i=t.clone(!1,e||!1);return n.appendTo(i),i.insertAfter(t),this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),i},removeEmptyBlocksAtEnd:function(){function t(t){return function(i){return!(e(i)||n(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.isEmptyInlineRemoveable()||t.is("table")&&i.is("caption"))}}var e=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!1);return function(e){for(var n,i=this.createBookmark(),r=this[e?"endPath":"startPath"](),o=r.block||r.blockLimit;o&&!o.equals(r.root)&&!o.getFirst(t(o));)n=o.getParent(),this[e?"setEndAt":"setStartAt"](o,CKEDITOR.POSITION_AFTER_END),o.remove(1),o=n;this.moveToBookmark(i)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(t,e){var n=e==CKEDITOR.START,r=this.clone();return r.collapse(n),r[n?"setStartAt":"setEndAt"](t,n?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),r=new CKEDITOR.dom.walker(r),r.evaluator=i(n),r[n?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var t=this.startContainer,e=this.startOffset;return CKEDITOR.env.ie&&e&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.ltrim(t.substring(0,e)),s.test(t)&&this.trim(0,1)),this.trim(),t=new CKEDITOR.dom.elementPath(this.startContainer,this.root),e=this.clone(),e.collapse(!0),e.setStartAt(t.block||t.blockLimit,CKEDITOR.POSITION_AFTER_START),t=new CKEDITOR.dom.walker(e),t.evaluator=n(),t.checkBackward()},checkEndOfBlock:function(){var t=this.endContainer,e=this.endOffset;return CKEDITOR.env.ie&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.rtrim(t.substring(e)),s.test(t)&&this.trim(1,0)),this.trim(),t=new CKEDITOR.dom.elementPath(this.endContainer,this.root),e=this.clone(),e.collapse(!1),e.setEndAt(t.block||t.blockLimit,CKEDITOR.POSITION_BEFORE_END),t=new CKEDITOR.dom.walker(e),t.evaluator=n(),t.checkForward()},getPreviousNode:function(t,e,n){var i=this.clone();return i.collapse(1),i.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),n=new CKEDITOR.dom.walker(i),n.evaluator=t,n.guard=e,n.previous()},getNextNode:function(t,e,n){var i=this.clone();return i.collapse(),i.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),n=new CKEDITOR.dom.walker(i),n.evaluator=t,n.guard=e,n.next()},checkReadOnly:function(){function t(t,e){for(;t;){if(t.type==CKEDITOR.NODE_ELEMENT){if("false"==t.getAttribute("contentEditable")&&!t.data("cke-editable"))return 0;if(t.is("html")||"true"==t.getAttribute("contentEditable")&&(t.contains(e)||t.equals(e)))break}t=t.getParent()}return 1}return function(){var e=this.startContainer,n=this.endContainer;return!(t(e,n)&&t(n,e))}}(),moveToElementEditablePosition:function(t,e){if(t.type==CKEDITOR.NODE_ELEMENT&&!t.isEditable(!1))return this.moveToPosition(t,e?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;t;){if(t.type==CKEDITOR.NODE_TEXT){e&&this.endContainer&&this.checkEndOfBlock()&&s.test(t.getText())?this.moveToPosition(t,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(t,e?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(t.type==CKEDITOR.NODE_ELEMENT)if(t.isEditable())this.moveToPosition(t,e?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(e&&t.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(t,CKEDITOR.POSITION_BEFORE_START);else if("false"==t.getAttribute("contenteditable")&&t.is(CKEDITOR.dtd.$block))return this.setStartBefore(t),this.setEndAfter(t),!0;var i=t,r=n,o=void 0;i.type==CKEDITOR.NODE_ELEMENT&&i.isEditable(!1)&&(o=i[e?"getLast":"getFirst"](c)),r||o||(o=i[e?"getPrevious":"getNext"](c)),t=o}return!!n},moveToClosestEditablePosition:function(t,e){var n,i,r,o=0,a=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];return t?(n=new CKEDITOR.dom.range(this.root),n.moveToPosition(t,a[e?0:1])):n=this.clone(),t&&!t.is(CKEDITOR.dtd.$block)?o=1:(i=n[e?"getNextEditableNode":"getPreviousEditableNode"]())&&(o=1,(r=i.type==CKEDITOR.NODE_ELEMENT)&&i.is(CKEDITOR.dtd.$block)&&"false"==i.getAttribute("contenteditable")?(n.setStartAt(i,CKEDITOR.POSITION_BEFORE_START),n.setEndAt(i,CKEDITOR.POSITION_AFTER_END)):!CKEDITOR.env.needsBrFiller&&r&&i.is(CKEDITOR.dom.walker.validEmptyBlockContainers)?(n.setEnd(i,0),n.collapse()):n.moveToPosition(i,a[e?1:0])),o&&this.moveToRange(n),!!o},moveToElementEditStart:function(t){return this.moveToElementEditablePosition(t)},moveToElementEditEnd:function(t){return this.moveToElementEditablePosition(t,!0)},getEnclosedNode:function(){var t=this.clone();if(t.optimize(),t.startContainer.type!=CKEDITOR.NODE_ELEMENT||t.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var t=new CKEDITOR.dom.walker(t),e=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespaces(!0);t.evaluator=function(t){return n(t)&&e(t)};var i=t.next();return t.reset(),i&&i.equals(t.previous())?i:null},getTouchedStartNode:function(){var t=this.startContainer;return this.collapsed||t.type!=CKEDITOR.NODE_ELEMENT?t:t.getChild(this.startOffset)||t},getTouchedEndNode:function(){var t=this.endContainer;return this.collapsed||t.type!=CKEDITOR.NODE_ELEMENT?t:t.getChild(this.endOffset-1)||t},getNextEditableNode:r(),getPreviousEditableNode:r(1),scrollIntoView:function(){var t,e,n,i=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),r=this.clone();r.optimize(),(n=r.startContainer.type==CKEDITOR.NODE_TEXT)?(e=r.startContainer.getText(),t=r.startContainer.split(r.startOffset),i.insertAfter(r.startContainer)):r.insertNode(i),i.scrollIntoView(),n&&(r.startContainer.setText(e),t.remove()),i.remove()},_setStartContainer:function(t){this.startContainer=t},_setEndContainer:function(t){this.endContainer=t},_find:function(t,e){var n,i,r,o,a=this.getCommonAncestor(),s=this.getBoundaryNodes(),l=[];if(a&&a.find)for(i=a.find(t),n=0;n<i.count();n++)a=i.getItem(n),(e||!a.isReadOnly())&&(r=a.getPosition(s.startNode)&CKEDITOR.POSITION_FOLLOWING||s.startNode.equals(a),o=a.getPosition(s.endNode)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IS_CONTAINED,r&&o&&l.push(a));return l}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function t(t){1>arguments.length||(this.range=t,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function e(t){var e=[];return t.forEach(function(t){if("true"==t.getAttribute("contenteditable"))return e.push(t),!1},CKEDITOR.NODE_ELEMENT,!0),e}function n(t,i,r,o){t:{null==o&&(o=e(r));for(var a;a=o.shift();)if(a.getDtd().p){o={element:a,remaining:o};break t}o=null}return o?(a=CKEDITOR.filter.instances[o.element.data("cke-filter")])&&!a.check(i)?n(t,i,r,o.remaining):(i=new CKEDITOR.dom.range(o.element),i.selectNodeContents(o.element),i=i.createIterator(),i.enlargeBr=t.enlargeBr,i.enforceRealBlocks=t.enforceRealBlocks,i.activeFilter=i.filter=a,t._.nestedEditable={element:o.element,container:r,remaining:o.remaining,iterator:i},1):0}function i(t,e,n){return!!e&&(t=t.clone(),t.collapse(!n),t.checkBoundaryOfElement(e,n?CKEDITOR.START:CKEDITOR.END))}var r=/^[\r\n\t ]+$/,o=CKEDITOR.dom.walker.bookmark(!1,!0),a=CKEDITOR.dom.walker.whitespaces(!0),s=function(t){return o(t)&&a(t)},l={dd:1,dt:1,li:1};t.prototype={getNextParagraph:function(t){var e,a,c,u,d;if(t=t||"p",this._.nestedEditable){if(e=this._.nestedEditable.iterator.getNextParagraph(t))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,e;if(this.activeFilter=this.filter,n(this,t,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(t);this._.nestedEditable=null}if(!this.range.root.getDtd()[t])return null;if(!this._.started){var h=this.range.clone();a=h.startPath();var f=h.endPath(),p=!h.collapsed&&i(h,a.block),m=!h.collapsed&&i(h,f.block,1);h.shrink(CKEDITOR.SHRINK_ELEMENT,!0),p&&h.setStartAt(a.block,CKEDITOR.POSITION_BEFORE_END),m&&h.setEndAt(f.block,CKEDITOR.POSITION_AFTER_START),a=h.endContainer.hasAscendant("pre",!0)||h.startContainer.hasAscendant("pre",!0),h.enlarge(this.forceBrBreak&&!a||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),h.collapsed||(a=new CKEDITOR.dom.walker(h.clone()),f=CKEDITOR.dom.walker.bookmark(!0,!0),a.evaluator=f,this._.nextNode=a.next(),a=new CKEDITOR.dom.walker(h.clone()),a.evaluator=f,a=a.previous(),this._.lastNode=a.getNextSourceNode(!0,null,h.root),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&(f=this.range.clone(),f.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),f.checkEndOfBlock()&&(f=new CKEDITOR.dom.elementPath(f.endContainer,f.root),this._.lastNode=(f.block||f.blockLimit).getNextSourceNode(!0))),this._.lastNode&&h.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=h.document.createText(""),this._.lastNode.insertAfter(a)),h=null),this._.started=1,a=h}for(f=this._.nextNode,h=this._.lastNode,this._.nextNode=null;f;){var p=0,m=f.hasAscendant("pre"),g=f.type!=CKEDITOR.NODE_ELEMENT,v=0;if(g)f.type==CKEDITOR.NODE_TEXT&&r.test(f.getText())&&(g=0);else{var y=f.getName();if(CKEDITOR.dtd.$block[y]&&"false"==f.getAttribute("contenteditable")){e=f,n(this,t,e);break}if(f.isBlockBoundary(this.forceBrBreak&&!m&&{br:1})){if("br"==y)g=1;else if(!a&&!f.getChildCount()&&"hr"!=y){e=f,c=f.equals(h);break}a&&(a.setEndAt(f,CKEDITOR.POSITION_BEFORE_START),"br"!=y&&(this._.nextNode=f)),p=1}else{if(f.getFirst()){a||(a=this.range.clone(),a.setStartAt(f,CKEDITOR.POSITION_BEFORE_START)),f=f.getFirst();continue}g=1}}if(g&&!a&&(a=this.range.clone(),a.setStartAt(f,CKEDITOR.POSITION_BEFORE_START)),c=(!p||g)&&f.equals(h),a&&!p)for(;!f.getNext(s)&&!c;){if(y=f.getParent(),y.isBlockBoundary(this.forceBrBreak&&!m&&{br:1})){p=1,g=0,c||y.equals(h),a.setEndAt(y,CKEDITOR.POSITION_BEFORE_END);break}f=y,g=1,c=f.equals(h),v=1}if(g&&a.setEndAt(f,CKEDITOR.POSITION_AFTER_END),f=this._getNextSourceNode(f,v,h),(c=!f)||p&&a)break}if(!e){if(!a)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;e=new CKEDITOR.dom.elementPath(a.startContainer,a.root),f=e.blockLimit,p={div:1,th:1,td:1},e=e.block,!e&&f&&!this.enforceRealBlocks&&p[f.getName()]&&a.checkStartOfBlock()&&a.checkEndOfBlock()&&!f.equals(a.root)?e=f:!e||this.enforceRealBlocks&&e.is(l)?(e=this.range.document.createElement(t),a.extractContents().appendTo(e),e.trim(),a.insertNode(e),u=d=!0):"li"!=e.getName()?a.checkStartOfBlock()&&a.checkEndOfBlock()||(e=e.clone(!1),a.extractContents().appendTo(e),e.trim(),d=a.splitBlock(),u=!d.wasStartOfBlock,d=!d.wasEndOfBlock,a.insertNode(e)):c||(this._.nextNode=e.equals(h)?null:this._getNextSourceNode(a.getBoundaryNodes().endNode,1,h))}return u&&(u=e.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove()),d&&(u=e.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(o)||u.getNext(o))&&u.remove(),this._.nextNode||(this._.nextNode=c||e.equals(h)||!h?null:this._getNextSourceNode(e,1,h)),e},_getNextSourceNode:function(t,e,n){function i(t){return!(t.equals(n)||t.equals(r))}var r=this.range.root;for(t=t.getNextSourceNode(e,null,i);!o(t);)t=t.getNextSourceNode(e,null,i);return t}},CKEDITOR.dom.range.prototype.createIterator=function(){return new t(this)}}(),CKEDITOR.command=function(t,e){this.uiItems=[],this.exec=function(n){return!(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())&&(this.editorFocus&&t.focus(),!1===this.fire("exec")||!1!==e.exec.call(this,t,n))},this.refresh=function(t,n){return!(this.readOnly||!t.readOnly)||(this.context&&!n.isContextFor(this.context)||!this.checkAllowed(!0)?(this.disable(),!0):(this.startDisabled||this.enable(),this.modes&&!this.modes[t.mode]&&this.disable(),!1===this.fire("refresh",{editor:t,path:n})||e.refresh&&!1!==e.refresh.apply(this,arguments)))};var n;this.checkAllowed=function(e){return e||"boolean"!=typeof n?n=t.activeFilter.checkFeature(this):n},CKEDITOR.tools.extend(this,e,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!e.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&"undefined"!=typeof this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(t){return!(this.state==t||t!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())&&(this.previousState=this.state,this.state=t,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,contentsCss:CKEDITOR.getUrl("contents.css"),extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function t(t,e,n,i,r){var o,s;t=[];for(o in e){s=e[o],s="boolean"==typeof s?{}:"function"==typeof s?{match:s}:O(s),"$"!=o.charAt(0)&&(s.elements=o),n&&(s.featureName=n.toLowerCase());var l=s;l.elements=a(l.elements,/\s+/)||null,l.propertiesOnly=l.propertiesOnly||!0===l.elements;var c=/\s*,\s*/,u=void 0;for(u in x){l[u]=a(l[u],c)||null;var d=l,h=S[u],f=a(l[S[u]],c),p=l[u],m=[],g=!0,y=void 0;f?g=!1:f={};for(y in p)"!"==y.charAt(0)&&(y=y.slice(1),m.push(y),f[y]=!0,g=!1);for(;y=m.pop();)p[y]=p["!"+y],delete p["!"+y];d[h]=!g&&f||null}l.match=l.match||null,i.push(s),t.push(s)}e=r.elements,r=r.generic;var E;for(n=0,i=t.length;n<i;++n){o=O(t[n]),s=!0===o.classes||!0===o.styles||!0===o.attributes,l=o,u=h=c=void 0;for(c in x)l[c]=v(l[c]);d=!0;for(u in S){c=S[u],h=l[c],f=[],p=void 0;for(p in h)-1<p.indexOf("*")?f.push(new RegExp("^"+p.replace(/\*/g,".*")+"$")):f.push(p);h=f,h.length&&(l[c]=h,d=!1)}if(l.nothingRequired=d,l.noProperties=!(l.attributes||l.classes||l.styles),!0===o.elements||null===o.elements)r[s?"unshift":"push"](o);else for(E in l=o.elements,delete o.elements,l)e[E]?e[E][s?"unshift":"push"](o):e[E]=[o]}}function e(t,e,i,r){if((!t.match||t.match(e))&&(r||s(t,e))&&(t.propertiesOnly||(i.valid=!0),i.allAttributes||(i.allAttributes=n(t.attributes,e.attributes,i.validAttributes)),i.allStyles||(i.allStyles=n(t.styles,e.styles,i.validStyles)),!i.allClasses)){if(t=t.classes,e=e.classes,r=i.validClasses,t)if(!0===t)t=!0;else{for(var o,a=0,l=e.length;a<l;++a)o=e[a],r[o]||(r[o]=t(o));t=!1}else t=!1;i.allClasses=t}}function n(t,e,n){if(!t)return!1;if(!0===t)return!0;for(var i in e)n[i]||(n[i]=t(i));return!1}function i(t,e,n){if(!t.match||t.match(e)){if(t.noProperties)return!1;if(n.hadInvalidAttribute=r(t.attributes,e.attributes)||n.hadInvalidAttribute,n.hadInvalidStyle=r(t.styles,e.styles)||n.hadInvalidStyle,t=t.classes,e=e.classes,t){for(var i=!1,o=!0===t,a=e.length;a--;)(o||t(e[a]))&&(e.splice(a,1),i=!0);t=i}else t=!1;n.hadInvalidClass=t||n.hadInvalidClass}}function r(t,e){if(!t)return!1;var n,i=!1,r=!0===t;for(n in e)(r||t(n))&&(delete e[n],i=!0);return i}function o(t,e,n){return!(t.disabled||t.customConfig&&!n||!e)&&(t._.cachedChecks={},!0)}function a(t,e){if(!t)return!1;if(!0===t)return t;if("string"==typeof t)return"*"==(t=w(t))||CKEDITOR.tools.convertArrayToObject(t.split(e));if(CKEDITOR.tools.isArray(t))return!!t.length&&CKEDITOR.tools.convertArrayToObject(t);var n,i={},r=0;for(n in t)i[n]=t[n],r++;return!!r&&i}function s(t,e){if(t.nothingRequired)return!0;var n,i,r,o;if(r=t.requiredClasses)for(o=e.classes,n=0;n<r.length;++n)if("string"==typeof(i=r[n])){if(-1==CKEDITOR.tools.indexOf(o,i))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(o,i))return!1;return l(e.styles,t.requiredStyles)&&l(e.attributes,t.requiredAttributes)}function l(t,e){if(!e)return!0;for(var n,i=0;i<e.length;++i)if("string"==typeof(n=e[i])){if(!(n in t))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(t,n))return!1;return!0}function c(t){if(!t)return{};t=t.split(/\s*,\s*/).sort();for(var e={};t.length;)e[t.shift()]="cke-test";return e}function u(t){var e,n,i,r,o={},a=1;for(t=w(t);e=t.match(A);)(n=e[2])?(i=d(n,"styles"),r=d(n,"attrs"),n=d(n,"classes")):i=r=n=null,o["$"+a++]={elements:e[1],classes:n,styles:i,attributes:r},t=t.slice(e[0].length);return o}function d(t,e){var n=t.match(N[e]);return n?w(n[1]):null}function h(t){var e=t.styleBackup=t.attributes.style,n=t.classBackup=t.attributes["class"];t.styles||(t.styles=CKEDITOR.tools.parseCssText(e||"",1)),t.classes||(t.classes=n?n.split(/\s+/):[])}function f(t,n,r,o){var a,s=0;if(o.toHtml&&(n.name=n.name.replace(P,"$1")),o.doCallbacks&&t.elementCallbacks){t:{a=t.elementCallbacks;for(var l,c=0,u=a.length;c<u;++c)if(l=a[c](n)){a=l;break t}a=void 0}if(a)return a}if(o.doTransform&&(a=t._.transformations[n.name])){for(h(n),c=0;c<a.length;++c)_(t,n,a[c]);m(n)}if(o.doFilter){t:{c=n.name,u=t._,t=u.allowedRules.elements[c],a=u.allowedRules.generic,c=u.disallowedRules.elements[c],u=u.disallowedRules.generic,l=o.skipRequired;var d,f,p={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};if(t||a){if(h(n),c)for(d=0,f=c.length;d<f;++d)if(!1===i(c[d],n,p)){t=null;break t}if(u)for(d=0,f=u.length;d<f;++d)i(u[d],n,p);if(t)for(d=0,f=t.length;d<f;++d)e(t[d],n,p,l);if(a)for(d=0,f=a.length;d<f;++d)e(a[d],n,p,l);t=p}else t=null}if(!t||!t.valid)return r.push(n),1;f=t.validAttributes;var v=t.validStyles;a=t.validClasses;var c=n.attributes,y=n.styles,u=n.classes;l=n.classBackup;var E,b,C=n.styleBackup,T=[],p=[],I=/^data-cke-/;if(d=!1,delete c.style,delete c["class"],delete n.classBackup,delete n.styleBackup,!t.allAttributes)for(E in c)f[E]||(I.test(E)?E==(b=E.replace(/^data-cke-saved-/,""))||f[b]||(delete c[E],d=!0):(delete c[E],d=!0));if(!t.allStyles||t.hadInvalidStyle){for(E in y)t.allStyles||v[E]?T.push(E+":"+y[E]):d=!0;T.length&&(c.style=T.sort().join("; "))}else C&&(c.style=C);if(!t.allClasses||t.hadInvalidClass){for(E=0;E<u.length;++E)(t.allClasses||a[u[E]])&&p.push(u[E]);p.length&&(c["class"]=p.sort().join(" ")),l&&p.length<l.split(/\s+/).length&&(d=!0)}else l&&(c["class"]=l);if(d&&(s=1),!o.skipFinalValidation&&!g(n))return r.push(n),1}return o.toHtml&&(n.name=n.name.replace(M,"cke:$1")),s}function p(t){var e,n=[];for(e in t)-1<e.indexOf("*")&&n.push(e.replace(/\*/g,".*"));return n.length?new RegExp("^(?:"+n.join("|")+")$"):null}function m(t){var e,n=t.attributes;delete n.style,delete n["class"],(e=CKEDITOR.tools.writeCssText(t.styles,!0))&&(n.style=e),t.classes.length&&(n["class"]=t.classes.sort().join(" "))}function g(t){switch(t.name){case"a":if(!(t.children.length||t.attributes.name||t.attributes.id))return!1;break;case"img":if(!t.attributes.src)return!1}return!0}function v(t){if(!t)return!1;if(!0===t)return!0;var e=p(t);return function(n){return n in t||e&&n.match(e)}}function y(){return new CKEDITOR.htmlParser.element("br")}function E(t){return t.type==CKEDITOR.NODE_ELEMENT&&("br"==t.name||$.$block[t.name])}function b(t,e,n){var i=t.name;if($.$empty[i]||!t.children.length)"hr"==i&&"br"==e?t.replaceWith(y()):(t.parent&&n.push({check:"it",el:t.parent}),t.remove());else if($.$block[i]||"tr"==i)if("br"==e)t.previous&&!E(t.previous)&&(e=y(),e.insertBefore(t)),t.next&&!E(t.next)&&(e=y(),e.insertAfter(t)),t.replaceWithChildren();else{var r,i=t.children;t:{r=$[e];for(var o,a=0,s=i.length;a<s;++a)if(o=i[a],o.type==CKEDITOR.NODE_ELEMENT&&!r[o.name]){r=!1;break t}r=!0}if(r)t.name=e,t.attributes={},n.push({check:"parent-down",el:t});else{r=t.parent;for(var l,c,a=r.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==r.name,s=i.length;0<s;)o=i[--s],a&&(o.type==CKEDITOR.NODE_TEXT||o.type==CKEDITOR.NODE_ELEMENT&&$.$inline[o.name])?(l||(l=new CKEDITOR.htmlParser.element(e),l.insertAfter(t),n.push({check:"parent-down",el:l})),l.add(o,0)):(l=null,c=$[r.name]||$.span,o.insertAfter(t),r.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||o.type!=CKEDITOR.NODE_ELEMENT||c[o.name]||n.push({check:"el-up",el:o}));t.remove()}}else i in{style:1,script:1}?t.remove():(t.parent&&n.push({check:"it",el:t.parent}),t.replaceWithChildren())}function _(t,e,n){var i,r;for(i=0;i<n.length;++i)if(r=n[i],!(r.check&&!t.check(r.check,!1)||r.left&&!r.left(e))){r.right(e,k);break}}function C(t,e){var n,i,r,o,a=e.getDefinition(),s=a.attributes,l=a.styles;if(t.name!=a.element)return!1;for(n in s)if("class"==n){for(a=s[n].split(/\s+/),r=t.classes.join("|");o=a.pop();)if(-1==r.indexOf(o))return!1}else if(t.attributes[n]!=s[n])return!1;for(i in l)if(t.styles[i]!=l[i])return!1;return!0}function T(t,e){var n,i;return"string"==typeof t?n=t:t instanceof CKEDITOR.style?i=t:(n=t[0],i=t[1]),[{element:n,left:i,right:function(t,n){n.transform(t,e)}}]}function I(t){return function(e){return C(e,t)}}function D(t){return function(e,n){n[t](e)}}var $=CKEDITOR.dtd,O=CKEDITOR.tools.copy,w=CKEDITOR.tools.trim,R=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2,CKEDITOR.filter=function(t){if(this.allowedContent=[],this.disallowedContent=[],this.elementCallbacks=null,this.disabled=!1,this.editor=null,this.id=CKEDITOR.tools.getNextNumber(),this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}},CKEDITOR.filter.instances[this.id]=this,t instanceof CKEDITOR.editor){t=this.editor=t,this.customConfig=!0;var e=t.config.allowedContent;!0===e?this.disabled=!0:(e||(this.customConfig=!1),this.allow(e,"config",1),this.allow(t.config.extraAllowedContent,"extra",1),this.allow(R[t.enterMode]+" "+R[t.shiftEnterMode],"default",1),this.disallow(t.config.disallowedContent))}else this.customConfig=!1,this.allow(t,"default",1)},CKEDITOR.filter.instances={},CKEDITOR.filter.prototype={allow:function(e,n,i){if(!o(this,e,i))return!1;var r,a;if("string"==typeof e)e=u(e);else if(e instanceof CKEDITOR.style){if(e.toAllowedContentRules)return this.allow(e.toAllowedContentRules(this.editor),n,i);r=e.getDefinition(),e={},i=r.attributes,e[r.element]=r={styles:r.styles,requiredStyles:r.styles&&CKEDITOR.tools.objectKeys(r.styles)},i&&(i=O(i),r.classes=i["class"]?i["class"].split(/\s+/):null,r.requiredClasses=r.classes,delete i["class"],r.attributes=i,r.requiredAttributes=i&&CKEDITOR.tools.objectKeys(i))}else if(CKEDITOR.tools.isArray(e)){for(r=0;r<e.length;++r)a=this.allow(e[r],n,i);return a}return t(this,e,n,this.allowedContent,this._.allowedRules),!0},applyTo:function(t,e,n,i){if(this.disabled)return!1;var r,o=this,a=[],s=this.editor&&this.editor.config.protectedSource,l=!1,c={doFilter:!n,doTransform:!0,doCallbacks:!0,toHtml:e};t.forEach(function(t){if(t.type==CKEDITOR.NODE_ELEMENT){if("off"==t.attributes["data-cke-filter"])return!1;if(!e||"span"!=t.name||!~CKEDITOR.tools.objectKeys(t.attributes).join("|").indexOf("data-cke-"))if(1&(r=f(o,t,a,c)))l=!0;else if(2&r)return!1}else if(t.type==CKEDITOR.NODE_COMMENT&&t.value.match(/^\{cke_protected\}(?!\{C\})/)){var n;t:{var i=decodeURIComponent(t.value.replace(/^\{cke_protected\}/,""));n=[];var u,d,h;if(s)for(d=0;d<s.length;++d)if((h=i.match(s[d]))&&h[0].length==i.length){n=!0;break t}i=CKEDITOR.htmlParser.fragment.fromHtml(i),1==i.children.length&&(u=i.children[0]).type==CKEDITOR.NODE_ELEMENT&&f(o,u,n,c),n=!n.length}n||a.push(t)}},null,!0),a.length&&(l=!0);var u;t=[],i=R[i||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];for(var d;n=a.pop();)n.type==CKEDITOR.NODE_ELEMENT?b(n,i,t):n.remove();for(;u=t.pop();)if(n=u.el,n.parent)switch(d=$[n.parent.name]||$.span,u.check){case"it":$.$removeEmpty[n.name]&&!n.children.length?b(n,i,t):g(n)||b(n,i,t);break;case"el-up":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||d[n.name]||b(n,i,t);break;case"parent-down":n.parent.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||d[n.name]||b(n.parent,i,t)}return l},checkFeature:function(t){return!(!this.disabled&&t)||(t.toFeature&&(t=t.toFeature(this.editor)),!t.requiredContent||this.check(t.requiredContent))},disable:function(){this.disabled=!0},disallow:function(e){return!!o(this,e,!0)&&("string"==typeof e&&(e=u(e)),t(this,e,null,this.disallowedContent,this._.disallowedRules),!0)},addContentForms:function(t){if(!this.disabled&&t){var e,n,i,r=[];for(e=0;e<t.length&&!i;++e)("string"==typeof(n=t[e])||n instanceof CKEDITOR.style)&&this.check(n)&&(i=n);if(i){for(e=0;e<t.length;++e)r.push(T(t[e],i));this.addTransformations(r)}}},addElementCallback:function(t){this.elementCallbacks||(this.elementCallbacks=[]),this.elementCallbacks.push(t)},addFeature:function(t){return!(!this.disabled&&t)||(t.toFeature&&(t=t.toFeature(this.editor)),this.allow(t.allowedContent,t.name),this.addTransformations(t.contentTransformations),this.addContentForms(t.contentForms),!t.requiredContent||!this.customConfig&&!this.disallowedContent.length||this.check(t.requiredContent))},addTransformations:function(t){var e,n;if(!this.disabled&&t){var i,r=this._.transformations;for(i=0;i<t.length;++i){e=t[i];var o=void 0,a=void 0,s=void 0,l=void 0,c=void 0,u=void 0;for(n=[],a=0;a<e.length;++a)s=e[a],"string"==typeof s?(s=s.split(/\s*:\s*/),l=s[0],c=null,u=s[1]):(l=s.check,c=s.left,u=s.right),o||(o=s,o=o.element?o.element:l?l.match(/^([a-z0-9]+)/i)[0]:o.left.getDefinition().element),c instanceof CKEDITOR.style&&(c=I(c)),n.push({check:l==o?null:l,left:c,right:"string"==typeof u?D(u):u});e=o,r[e]||(r[e]=[]),r[e].push(n)}}},check:function(t,e,n){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(t)){for(var i=t.length;i--;)if(this.check(t[i],e,n))return!0;return!1}var r,o;if("string"==typeof t){if((o=t+"<"+(!1===e?"0":"1")+(n?"1":"0")+">")in this._.cachedChecks)return this._.cachedChecks[o];i=u(t).$1,r=i.styles;var a=i.classes;i.name=i.elements,i.classes=a=a?a.split(/\s*,\s*/):[],i.styles=c(r),i.attributes=c(i.attributes),i.children=[],a.length&&(i.attributes["class"]=a.join(" ")),r&&(i.attributes.style=CKEDITOR.tools.writeCssText(i.styles)),r=i}else i=t.getDefinition(),r=i.styles,a=i.attributes||{},r&&!CKEDITOR.tools.isEmpty(r)?(r=O(r),a.style=CKEDITOR.tools.writeCssText(r,!0)):r={},r={name:i.element,attributes:a,classes:a["class"]?a["class"].split(/\s+/):[],styles:r,children:[]};var s,a=CKEDITOR.tools.clone(r),l=[];if(!1!==e&&(s=this._.transformations[r.name])){for(i=0;i<s.length;++i)_(this,r,s[i]);m(r)}return f(this,a,l,{doFilter:!0,doTransform:!1!==e,skipRequired:!n,skipFinalValidation:!n}),e=!(0<l.length)&&!!CKEDITOR.tools.objectCompare(r.attributes,a.attributes,!0),"string"==typeof t&&(this._.cachedChecks[o]=e),e},getAllowedEnterMode:function(){var t=["p","div","br"],e={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(n,i){var r,o=t.slice();if(this.check(R[n]))return n;for(i||(o=o.reverse());r=o.pop();)if(this.check(r))return e[r];return CKEDITOR.ENTER_BR}}(),destroy:function(){delete CKEDITOR.filter.instances[this.id],delete this._,delete this.allowedContent,delete this.disallowedContent}};var k,x={styles:1,attributes:1,classes:1},S={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},A=/^([a-z0-9\-*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,N={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},P=/^cke:(object|embed|param)$/,M=/^(object|embed|param)$/;k=CKEDITOR.filter.transformationsTools={sizeToStyle:function(t){this.lengthToStyle(t,"width"),this.lengthToStyle(t,"height")},sizeToAttribute:function(t){this.lengthToAttribute(t,"width"),this.lengthToAttribute(t,"height")},lengthToStyle:function(t,e,n){if(!((n=n||e)in t.styles)){var i=t.attributes[e];i&&(/^\d+$/.test(i)&&(i+="px"),t.styles[n]=i)}delete t.attributes[e]},lengthToAttribute:function(t,e,n){if(!((n=n||e)in t.attributes)){var i=t.styles[e],r=i&&i.match(/^(\d+)(?:\.\d*)?px$/);r?t.attributes[n]=r[1]:"cke-test"==i&&(t.attributes[n]="cke-test")}delete t.styles[e]},alignmentToStyle:function(t){if(!("float"in t.styles)){var e=t.attributes.align;"left"!=e&&"right"!=e||(t.styles["float"]=e)}delete t.attributes.align},alignmentToAttribute:function(t){if(!("align"in t.attributes)){var e=t.styles["float"];"left"!=e&&"right"!=e||(t.attributes.align=e)}delete t.styles["float"]},matchesStyle:C,transform:function(t,e){if("string"==typeof e)t.name=e;else{var n,i,r,o,a=e.getDefinition(),s=a.styles,l=a.attributes;t.name=a.element;for(n in l)if("class"==n)for(a=t.classes.join("|"),r=l[n].split(/\s+/);o=r.pop();)-1==a.indexOf(o)&&t.classes.push(o);else t.attributes[n]=l[n];for(i in s)t.styles[i]=s[i]}}}}(),function(){CKEDITOR.focusManager=function(t){return t.focusManager?t.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:t},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(t){this._.timer&&clearTimeout(this._.timer),t&&(this.currentActive=t),this.hasFocus||this._.locked||((t=CKEDITOR.currentInstance)&&t.focusManager.blur(1),this.hasFocus=!0,(t=this._.editor.container)&&t.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(t){function e(){if(this.hasFocus){this.hasFocus=!1;var t=this._.editor.container;t&&t.removeClass("cke_focus"),this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;t||!n?e.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,e.call(this)},n,this)}},add:function(t,e){var n=t.getCustomData("focusmanager");if(!n||n!=this){n&&n.remove(t);var n="focus",i="blur";e&&(CKEDITOR.env.ie?(n="focusin",i="focusout"):CKEDITOR.event.useCapture=1);var r={blur:function(){t.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(t)}};t.on(n,r.focus,this),t.on(i,r.blur,this),e&&(CKEDITOR.event.useCapture=0),t.setCustomData("focusmanager",this),t.setCustomData("focusmanager_handlers",r)}},remove:function(t){t.removeCustomData("focusmanager");var e=t.removeCustomData("focusmanager_handlers");t.removeListener("blur",e.blur),t.removeListener("focus",e.focus)}}}(),CKEDITOR.keystrokeHandler=function(t){return t.keystrokeHandler?t.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:t},this)},function(){var t,e=function(e){e=e.data;var n=e.getKeystroke(),i=this.keystrokes[n],r=this._.editor;return t=!1===r.fire("key",{keyCode:n,domEvent:e}),t||(i&&(t=!1!==r.execCommand(i,{from:"keystrokeHandler"})),t||(t=!!this.blockedKeystrokes[n])),t&&e.preventDefault(!0),!t},n=function(e){t&&(t=!1,e.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(t){t.on("keydown",e,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&t.on("keypress",n,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(t,e,n){t&&CKEDITOR.lang.languages[t]||(t=this.detect(e,t));var i=this;e=function(){i[t].dir=i.rtl[t]?"rtl":"ltr",n(t,i[t])},this[t]?e():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+t+".js"),e,this)},detect:function(t,e){var n=this.languages;e=e||navigator.userLanguage||navigator.language||t;var i=e.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),r=i[1],i=i[2];return n[r+"-"+i]?r=r+"-"+i:n[r]||(r=null),CKEDITOR.lang.detect=r?function(){return r}:function(t){return t},r||t}}}(),CKEDITOR.scriptLoader=function(){var t={},e={};return{load:function(n,i,r,o){var a="string"==typeof n;a&&(n=[n]),r||(r=CKEDITOR);var s=n.length,l=[],c=[],u=function(t){i&&(a?i.call(r,t):i.call(r,l,c))};if(0===s)u(!0);else{var d=function(t,e){(e?l:c).push(t),0>=--s&&(o&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),u(e))},h=function(n,i){t[n]=1;var r=e[n];delete e[n];for(var o=0;o<r.length;o++)r[o](n,i)};o&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var f=0;f<s;f++)!function(n){if(t[n])d(n,!0);else{var r=e[n]||(e[n]=[]);if(r.push(d),!(1<r.length)){var o=new CKEDITOR.dom.element("script");o.setAttributes({type:"text/javascript",src:n}),i&&(CKEDITOR.env.ie&&(8>=CKEDITOR.env.version||CKEDITOR.env.ie9Compat)?o.$.onreadystatechange=function(){"loaded"!=o.$.readyState&&"complete"!=o.$.readyState||(o.$.onreadystatechange=null,h(n,!0))}:(o.$.onload=function(){setTimeout(function(){h(n,!0)},0)},o.$.onerror=function(){h(n,!1)})),o.appendTo(CKEDITOR.document.getHead())}}}(n[f])}},queue:function(){function t(){var t;(t=e[0])&&this.load(t.scriptUrl,t.callback,CKEDITOR,0)}var e=[];return function(n,i){var r=this;e.push({scriptUrl:n,callback:function(){i&&i.apply(this,arguments),e.shift(),t.call(r)}}),1==e.length&&t.call(this)}}()}}(),CKEDITOR.resourceManager=function(t,e){this.basePath=t,this.fileName=e,this.registered={},this.loaded={},this.externals={},this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(t,e){if(this.registered[t])throw Error('[CKEDITOR.resourceManager.add] The resource name "'+t+'" is already registered.');var n=this.registered[t]=e||{};return n.name=t,n.path=this.getPath(t),CKEDITOR.fire(t+CKEDITOR.tools.capitalize(this.fileName)+"Ready",n),this.get(t)},get:function(t){return this.registered[t]||null},getPath:function(t){var e=this.externals[t];return CKEDITOR.getUrl(e&&e.dir||this.basePath+t+"/")},getFilePath:function(t){var e=this.externals[t];return CKEDITOR.getUrl(this.getPath(t)+(e?e.file:this.fileName+".js"))},addExternal:function(t,e,n){t=t.split(",");for(var i=0;i<t.length;i++){var r=t[i];n||(e=e.replace(/[^\/]+$/,function(t){return n=t,""})),this.externals[r]={dir:e,file:n||this.fileName+".js"}}},load:function(t,e,n){CKEDITOR.tools.isArray(t)||(t=t?[t]:[]);for(var i=this.loaded,r=this.registered,o=[],a={},s={},l=0;l<t.length;l++){var c=t[l];if(c)if(i[c]||r[c])s[c]=this.get(c);else{var u=this.getFilePath(c);o.push(u),u in a||(a[u]=[]),a[u].push(c)}}CKEDITOR.scriptLoader.load(o,function(t,r){if(r.length)throw Error('[CKEDITOR.resourceManager.load] Resource name "'+a[r[0]].join(",")+'" was not found at "'+r[0]+'".');for(var o=0;o<t.length;o++)for(var l=a[t[o]],c=0;c<l.length;c++){var u=l[c];s[u]=this.get(u),i[u]=1}e.call(n,s)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(t){var e={};return function(n,i,r){var o={},a=function(n){t.call(this,n,function(t){CKEDITOR.tools.extend(o,t);var n,s=[];for(n in t){var l=t[n],c=l&&l.requires;if(!e[n]){if(l.icons)for(var u=l.icons.split(","),d=u.length;d--;)CKEDITOR.skin.addIcon(u[d],l.path+"icons/"+(CKEDITOR.env.hidpi&&l.hidpi?"hidpi/":"")+u[d]+".png");e[n]=1}if(c)for(c.split&&(c=c.split(",")),l=0;l<c.length;l++)o[c[l]]||s.push(c[l])}if(s.length)a.call(this,s);else{for(n in o)l=o[n],l.onLoad&&!l.onLoad._called&&(!1===l.onLoad()&&delete o[n],l.onLoad._called=1);i&&i.call(r||window,o)}},this)};a.call(this,n)}}),CKEDITOR.plugins.setLang=function(t,e,n){var i=this.get(t);t=i.langEntries||(i.langEntries={}),i=i.lang||(i.lang=[]),i.split&&(i=i.split(",")),-1==CKEDITOR.tools.indexOf(i,e)&&i.push(e),t[e]=n},CKEDITOR.ui=function(t){return t.ui?t.ui:(this.items={},this.instances={},this.editor=t,this._={handlers:{}},this)},CKEDITOR.ui.prototype={add:function(t,e,n){n.name=t.toLowerCase();var i=this.items[t]={type:e,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(i,n)},get:function(t){return this.instances[t]},create:function(t){var e=this.items[t],n=e&&this._.handlers[e.type],i=e&&e.command&&this.editor.getCommand(e.command),n=n&&n.create.apply(this,e.args);return this.instances[t]=n,i&&i.uiItems.push(n),n&&!n.type&&(n.type=e.type),n},addHandler:function(t,e){this._.handlers[t]=e},space:function(t){return CKEDITOR.document.getById(this.spaceId(t))},spaceId:function(t){return this.editor.id+"_"+t}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function t(t,r,a){if(CKEDITOR.event.call(this),t=t&&CKEDITOR.tools.clone(t),void 0!==r){if(!(r instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!a)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!n(r,a))throw Error('The specified element mode is not supported on element: "'+r.getName()+'".');this.element=r,this.elementMode=a,this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(r.getId()||r.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={},this.commands={},this.templates={},this.name=this.name||e(),this.id=CKEDITOR.tools.getNextId(),this.status="unloaded",this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config),this.ui=new CKEDITOR.ui(this),this.focusManager=new CKEDITOR.focusManager(this),this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this),this.on("readOnly",i),this.on("selectionChange",function(t){o(this,t.data.path)}),this.on("activeFilterChange",function(){o(this,this.elementPath(),!0)}),this.on("mode",i),this.on("instanceReady",function(){this.config.startupFocus&&this.focus()}),CKEDITOR.fire("instanceCreated",null,this),CKEDITOR.add(this),CKEDITOR.tools.setTimeout(function(){"destroyed"!==this.status?s(this,t):CKEDITOR.warn("editor-incorrect-destroy")},0,this)}function e(){do{var t="editor"+ ++f}while(CKEDITOR.instances[t]);return t}function n(t,e){return e==CKEDITOR.ELEMENT_MODE_INLINE?t.is(CKEDITOR.dtd.$editable)||t.is("textarea"):e==CKEDITOR.ELEMENT_MODE_REPLACE?!t.is(CKEDITOR.dtd.$nonBodyContent):1}function i(){var t,e=this.commands;for(t in e)r(this,e[t])}function r(t,e){e[e.startDisabled?"disable":t.readOnly&&!e.readOnly?"disable":e.modes[t.mode]?"enable":"disable"]()}function o(t,e,n){if(e){var i,r,o=t.commands;for(r in o)i=o[r],(n||i.contextSensitive)&&i.refresh(t,e)}}function a(t){var e=t.config.customConfig;if(!e)return!1;var e=CKEDITOR.getUrl(e),n=p[e]||(p[e]={});return n.fn?(n.fn.call(t,t.config),CKEDITOR.getUrl(t.config.customConfig)!=e&&a(t)||t.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(e,function(){n.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){},a(t)}),!0}function s(t,e){t.on("customConfigLoaded",function(){if(e){if(e.on)for(var n in e.on)t.on(n,e.on[n]);CKEDITOR.tools.extend(t.config,e,!0),delete t.config.on}n=t.config,t.readOnly=!!n.readOnly||(t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?t.element.is("textarea")?t.element.hasAttribute("disabled")||t.element.hasAttribute("readonly"):t.element.isReadOnly():t.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.element.hasAttribute("disabled")||t.element.hasAttribute("readonly"))),t.blockless=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!(t.element.is("textarea")||CKEDITOR.dtd[t.element.getName()].p),t.tabIndex=n.tabIndex||t.element&&t.element.getAttribute("tabindex")||0,t.activeEnterMode=t.enterMode=t.blockless?CKEDITOR.ENTER_BR:n.enterMode,t.activeShiftEnterMode=t.shiftEnterMode=t.blockless?CKEDITOR.ENTER_BR:n.shiftEnterMode,n.skin&&(CKEDITOR.skinName=n.skin),t.fireOnce("configLoaded"),t.dataProcessor=new CKEDITOR.htmlDataProcessor(t),t.filter=t.activeFilter=new CKEDITOR.filter(t),l(t)}),e&&null!=e.customConfig&&(t.config.customConfig=e.customConfig),a(t)||t.fireOnce("customConfigLoaded")}function l(t){CKEDITOR.skin.loadPart("editor",function(){c(t)})}function c(t){CKEDITOR.lang.load(t.config.language,t.config.defaultLanguage,function(e,n){var i=t.config.title;t.langCode=e,t.lang=CKEDITOR.tools.prototypedCopy(n),t.title="string"==typeof i||!1===i?i:[t.lang.editor,t.name].join(", "),t.config.contentsLangDirection||(t.config.contentsLangDirection=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?t.element.getDirection(1):t.lang.dir),t.fire("langLoaded"),u(t)})}function u(t){t.getStylesSet(function(e){t.once("loaded",function(){t.fire("stylesSet",{styles:e})},null,null,1),d(t)})}function d(t){var e=t.config,n=e.plugins,i=e.extraPlugins,r=e.removePlugins;if(i)var o=new RegExp("(?:^|,)(?:"+i.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=n.replace(o,""),n=n+","+i;if(r)var a=new RegExp("(?:^|,)(?:"+r.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=n.replace(a,"");CKEDITOR.env.air&&(n+=",adobeair"),CKEDITOR.plugins.load(n.split(","),function(n){var i=[],r=[],o=[];t.plugins=n;for(var s in n){var l,c=n[s],u=c.lang,d=null,h=c.requires;if(CKEDITOR.tools.isArray(h)&&(h=h.join(",")),h&&(l=h.match(a)))for(;h=l.pop();)CKEDITOR.error("editor-plugin-required",{plugin:h.replace(",",""),requiredBy:s});u&&!t.lang[s]&&(u.split&&(u=u.split(",")),0<=CKEDITOR.tools.indexOf(u,t.langCode)?d=t.langCode:(d=t.langCode.replace(/-.*/,""),d=d!=t.langCode&&0<=CKEDITOR.tools.indexOf(u,d)?d:0<=CKEDITOR.tools.indexOf(u,"en")?"en":u[0]),c.langEntries&&c.langEntries[d]?(t.lang[s]=c.langEntries[d],d=null):o.push(CKEDITOR.getUrl(c.path+"lang/"+d+".js"))),r.push(d),i.push(c)}CKEDITOR.scriptLoader.load(o,function(){for(var n=["beforeInit","init","afterInit"],o=0;o<n.length;o++)for(var a=0;a<i.length;a++){var s=i[a];0===o&&r[a]&&s.lang&&s.langEntries&&(t.lang[s.name]=s.langEntries[r[a]]),s[n[o]]&&s[n[o]](t)}for(t.fireOnce("pluginsLoaded"),e.keystrokes&&t.setKeystroke(t.config.keystrokes),a=0;a<t.config.blockedKeystrokes.length;a++)t.keystrokeHandler.blockedKeystrokes[t.config.blockedKeystrokes[a]]=1;t.status="loaded",t.fireOnce("loaded"),CKEDITOR.fire("instanceLoaded",null,t)})})}function h(){var t=this.element;if(t&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var e=this.getData();return this.config.htmlEncodeOutput&&(e=CKEDITOR.tools.htmlEncode(e)),t.is("textarea")?t.setValue(e):t.setHtml(e),!0}return!1}t.prototype=CKEDITOR.editor.prototype,CKEDITOR.editor=t;var f=0,p={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(t,e){e.name=t.toLowerCase();var n=new CKEDITOR.command(this,e);return this.mode&&r(this,n),this.commands[t]=n},_attachToForm:function(){function t(t){e.updateElement(),e._.required&&!n.getValue()&&!1===e.fire("required")&&t.data.preventDefault()}var e=this,n=e.element,i=new CKEDITOR.dom.element(n.$.form);n.is("textarea")&&i&&(i.on("submit",t),function(t){return!!(t&&t.call&&t.apply)}(i.$.submit)&&(i.$.submit=CKEDITOR.tools.override(i.$.submit,function(e){return function(){t(),e.apply?e.apply(this):e()}})),e.on("destroy",function(){i.removeListener("submit",t)}))},destroy:function(t){this.fire("beforeDestroy"),!t&&h.call(this),this.editable(null),this.filter&&(this.filter.destroy(),delete this.filter),delete this.activeFilter,this.status="destroyed",this.fire("destroy"),this.removeAllListeners(),CKEDITOR.remove(this),CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(t){if(!t){if(!(t=this.getSelection()))return null;t=t.getStartElement()}return t?new CKEDITOR.dom.elementPath(t,this.editable()):null},createRange:function(){var t=this.editable();return t?new CKEDITOR.dom.range(t):null},execCommand:function(t,e){var n=this.getCommand(t),i={name:t,commandData:e,command:n};return!(!n||n.state==CKEDITOR.TRISTATE_DISABLED||!1===this.fire("beforeCommandExec",i)||(i.returnValue=n.exec(i.commandData),n.async||!1===this.fire("afterCommandExec",i)))&&i.returnValue},getCommand:function(t){return this.commands[t]},getData:function(t){!t&&this.fire("beforeGetData");var e=this._.data;return"string"!=typeof e&&(e=(e=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?e.is("textarea")?e.getValue():e.getHtml():""),e={dataValue:e},!t&&this.fire("getData",e),e.dataValue},getSnapshot:function(){var t=this.fire("getSnapshot");return"string"!=typeof t&&(t=(t=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?t.is("textarea")?t.getValue():t.getHtml():""),t},loadSnapshot:function(t){this.fire("loadSnapshot",t)},setData:function(t,e,n){var i=!0,r=e;e&&"object"==typeof e&&(n=e.internal,r=e.callback,i=!e.noSnapshot),!n&&i&&this.fire("saveSnapshot"),!r&&n||this.once("dataReady",function(t){!n&&i&&this.fire("saveSnapshot"),r&&r.call(t.editor)}),t={dataValue:t},!n&&this.fire("setData",t),this._.data=t.dataValue,!n&&this.fire("afterSetData",t)},setReadOnly:function(t){t=null==t||t,this.readOnly!=t&&(this.readOnly=t,this.keystrokeHandler.blockedKeystrokes[8]=+t,this.editable().setReadOnly(t),this.fire("readOnly"))},insertHtml:function(t,e,n){this.fire("insertHtml",{dataValue:t,mode:e,range:n})},insertText:function(t){this.fire("insertText",t)},insertElement:function(t){this.fire("insertElement",t)},getSelectedHtml:function(t){var e=this.editable(),n=this.getSelection(),n=n&&n.getRanges();if(!e||!n||0===n.length)return null;for(var i,r,o,a=new CKEDITOR.dom.documentFragment,s=0;s<n.length;s++){var l=n[s],c=l.startContainer;c.getName&&"tr"==c.getName()?(i||(i=c.getAscendant("table").clone(),i.append(c.getAscendant("tbody").clone()),a.append(i),i=i.findOne("tbody")),r&&r.equals(c)||(r=c,o=c.clone(),i.append(o)),o.append(l.cloneContents())):a.append(l.cloneContents())}return e=i?a:e.getHtmlFromRange(n[0]),t?e.getHtml():e},extractSelectedHtml:function(t,e){var n=this.editable(),i=this.getSelection().getRanges();return n&&0!==i.length?(i=i[0],n=n.extractHtmlFromRange(i,e),e||this.getSelection().selectRanges([i]),t?n.getHtml():n):null},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return h.call(this)},setKeystroke:function(){for(var t,e,n=this.keystrokeHandler.keystrokes,i=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],r=i.length;r--;)t=i[r],e=0,CKEDITOR.tools.isArray(t)&&(e=t[1],t=t[0]),e?n[t]=e:delete n[t]},addFeature:function(t){return this.filter.addFeature(t)},setActiveFilter:function(t){t||(t=this.filter),this.activeFilter!==t&&(this.activeFilter=t,this.fire("activeFilterChange"),t===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(t.getAllowedEnterMode(this.enterMode),t.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(t,e){t=t?this.blockless?CKEDITOR.ENTER_BR:t:this.enterMode,e=e?this.blockless?CKEDITOR.ENTER_BR:e:this.shiftEnterMode,this.activeEnterMode==t&&this.activeShiftEnterMode==e||(this.activeEnterMode=t,this.activeShiftEnterMode=e,this.fire("activeEnterModeChange"))},showNotification:function(t){alert(t)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:/<(?:(?:\/([^>]+)>)|(?:!--([\S|\s]*?)--\x3e)|(?:([^\/\s>]+)((?:\s+[\w\-:.]+(?:\s*=\s*?(?:(?:"[^"]*")|(?:'[^']*')|[^\s"'\/>]+))?)*)[\S\s]*?(\/?)>))/g}},function(){var t=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,e={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){for(var i,r,o,a=0;i=this._.htmlPartsRegex.exec(n);)if(r=i.index,r>a&&(a=n.substring(a,r),o?o.push(a):this.onText(a)),a=this._.htmlPartsRegex.lastIndex,!(r=i[1])||(r=r.toLowerCase(),o&&CKEDITOR.dtd.$cdata[r]&&(this.onCDATA(o.join("")),o=null),o))if(o)o.push(i[0]);else if(r=i[3]){if(r=r.toLowerCase(),!/="/.test(r)){var s,l={},c=i[4];if(i=!!i[5],c)for(;s=t.exec(c);){var u=s[1].toLowerCase();s=s[2]||s[3]||s[4]||"",l[u]=!s&&e[u]?u:CKEDITOR.tools.htmlDecodeAttr(s)}this.onTagOpen(r,l,i),!o&&CKEDITOR.dtd.$cdata[r]&&(o=[])}}else(r=i[2])&&this.onComment(r);else this.onTagClose(r);n.length>a&&this.onText(n.substring(a,n.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(t){this._.output.push("<",t)},openTagClose:function(t,e){e?this._.output.push(" />"):this._.output.push(">")},attribute:function(t,e){"string"==typeof e&&(e=CKEDITOR.tools.htmlEncodeAttr(e)),this._.output.push(" ",t,'="',e,'"')},closeTag:function(t){this._.output.push("</",t,">")},text:function(t){this._.output.push(t)},comment:function(t){this._.output.push("\x3c!--",t,"--\x3e")},write:function(t){this._.output.push(t)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(t){var e=this._.output.join("");return t&&this.reset(),e}}}),function(){CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var t=this.parent.children,e=CKEDITOR.tools.indexOf(t,this),n=this.previous,i=this.next;n&&(n.next=i),i&&(i.previous=n),t.splice(e,1),this.parent=null},replaceWith:function(t){var e=this.parent.children,n=CKEDITOR.tools.indexOf(e,this),i=t.previous=this.previous,r=t.next=this.next;i&&(i.next=t),r&&(r.previous=t),e[n]=t,t.parent=this.parent,this.parent=null},insertAfter:function(t){var e=t.parent.children,n=CKEDITOR.tools.indexOf(e,t),i=t.next;e.splice(n+1,0,this),this.next=t.next,this.previous=t,t.next=this,i&&(i.previous=this),this.parent=t.parent},insertBefore:function(t){var e=t.parent.children,n=CKEDITOR.tools.indexOf(e,t);e.splice(n,0,this),this.next=t,(this.previous=t.previous)&&(t.previous.next=this),t.previous=this,this.parent=t.parent},getAscendant:function(t){for(var e=("function"==typeof t?t:"string"==typeof t?function(e){return e.name==t}:function(e){return e.name in t}),n=this.parent;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(e(n))return n;n=n.parent}return null},wrapWith:function(t){return this.replaceWith(t),t.add(this),t},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(t){return t||{}}}}(),CKEDITOR.htmlParser.comment=function(t){this.value=t,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(t,e){var n=this.value;return(n=t.onComment(e,n,this))?"string"!=typeof n?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(t,e){e&&this.filter(e),t.comment(this.value)}}),function(){CKEDITOR.htmlParser.text=function(t){this.value=t,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(t,e){if(!(this.value=t.onText(e,this.value,this)))return this.remove(),!1},writeHtml:function(t,e){e&&this.filter(e),t.text(this.value)}})}(),function(){CKEDITOR.htmlParser.cdata=function(t){this.value=t},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(t){t.write(this.value)}})}(),CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function t(t){return!t.attributes["data-cke-survive"]&&("a"==t.name&&t.attributes.href||CKEDITOR.dtd.$removeEmpty[t.name])}var e=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),n={ol:1,ul:1},i=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),r={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(o,a,s){function l(t){var e;if(0<g.length)for(var n=0;n<g.length;n++){var i=g[n],r=i.name,o=CKEDITOR.dtd[r],a=y.name&&CKEDITOR.dtd[y.name];a&&!a[r]||t&&o&&!o[t]&&CKEDITOR.dtd[t]?r==y.name&&(d(y,y.parent,1),n--):(e||(c(),e=1),i=i.clone(),i.parent=y,y=i,g.splice(n,1),n--)}}function c(){for(;v.length;)d(v.shift(),y)}function u(t){if(t._.isBlockLike&&"pre"!=t.name&&"textarea"!=t.name){var e,n=t.children.length,i=t.children[n-1];i&&i.type==CKEDITOR.NODE_TEXT&&((e=CKEDITOR.tools.rtrim(i.value))?i.value=e:t.children.length=n-1)}}function d(e,n,i){n=n||y||m;var r=y;void 0===e.previous&&(h(n,e)&&(y=n,p.onTagOpen(s,{}),e.returnPoint=n=y),u(e),t(e)&&!e.children.length||n.add(e),"pre"==e.name&&(b=!1),"textarea"==e.name&&(E=!1)),e.returnPoint?(y=e.returnPoint,delete e.returnPoint):y=i?n:r}function h(t,e){if((t==m||"body"==t.name)&&s&&(!t.name||CKEDITOR.dtd[t.name][s])){var n,i;return(n=e.attributes&&(i=e.attributes["data-cke-real-element-type"])?i:e.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!e.isOrphan||e.type==CKEDITOR.NODE_TEXT}}function f(t,e){return(t in CKEDITOR.dtd.$listItem||t in CKEDITOR.dtd.$tableContent)&&(t==e||"dt"==t&&"dd"==e||"dd"==t&&"dt"==e)}var p=new CKEDITOR.htmlParser,m=a instanceof CKEDITOR.htmlParser.element?a:"string"==typeof a?new CKEDITOR.htmlParser.element(a):new CKEDITOR.htmlParser.fragment,g=[],v=[],y=m,E="textarea"==m.name,b="pre"==m.name;p.onTagOpen=function(r,o,a,s){if(o=new CKEDITOR.htmlParser.element(r,o),o.isUnknown&&a&&(o.isEmpty=!0),o.isOptionalClose=s,t(o))g.push(o);else{if("pre"==r)b=!0;else{if("br"==r&&b)return void y.add(new CKEDITOR.htmlParser.text("\n"));"textarea"==r&&(E=!0)}if("br"==r)v.push(o);else{for(;s=(a=y.name)?CKEDITOR.dtd[a]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i,!(o.isUnknown||y.isUnknown||s[r]);)if(y.isOptionalClose)p.onTagClose(a);else if(r in n&&a in n)a=y.children,(a=a[a.length-1])&&"li"==a.name||d(a=new CKEDITOR.htmlParser.element("li"),y),!o.returnPoint&&(o.returnPoint=y),y=a;else if(r in CKEDITOR.dtd.$listItem&&!f(r,a))p.onTagOpen("li"==r?"ul":"dl",{},0,1);else if(a in e&&!f(r,a))!o.returnPoint&&(o.returnPoint=y),y=y.parent;else{if(a in CKEDITOR.dtd.$inline&&g.unshift(y),!y.parent){o.isOrphan=1;break}d(y,y.parent,1)}l(r),c(),o.parent=y,o.isEmpty?d(o):y=o}}},p.onTagClose=function(t){for(var e=g.length-1;0<=e;e--)if(t==g[e].name)return void g.splice(e,1);for(var n=[],i=[],r=y;r!=m&&r.name!=t;)r._.isBlockLike||i.unshift(r),n.push(r),r=r.returnPoint||r.parent;if(r!=m){for(e=0;e<n.length;e++){var o=n[e];d(o,o.parent)}y=r,r._.isBlockLike&&c(),d(r,r.parent),r==y&&(y=y.parent),g=g.concat(i)}"body"==t&&(s=!1)},p.onText=function(t){if(y._.hasInlineStarted&&!v.length||b||E||(t=CKEDITOR.tools.ltrim(t),0!==t.length)){var n=y.name,o=n?CKEDITOR.dtd[n]||(y._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i;!E&&!o["#"]&&n in e?(p.onTagOpen(r[n]||""),p.onText(t)):(c(),l(),b||E||(t=t.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," ")),t=new CKEDITOR.htmlParser.text(t),h(y,t)&&this.onTagOpen(s,{},0,1),y.add(t))}},p.onCDATA=function(t){y.add(new CKEDITOR.htmlParser.cdata(t))},p.onComment=function(t){c(),l(),y.add(new CKEDITOR.htmlParser.comment(t))},p.parse(o);for(c();y!=m;)d(y,y.parent,1);return u(m),m},CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(t,e){isNaN(e)&&(e=this.children.length);var n=0<e?this.children[e-1]:null;if(n){if(t._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT&&(n.value=CKEDITOR.tools.rtrim(n.value),0===n.value.length))return this.children.pop(),void this.add(t);n.next=t}t.previous=n,t.parent=this,this.children.splice(e,0,t),this._.hasInlineStarted||(this._.hasInlineStarted=t.type==CKEDITOR.NODE_TEXT||t.type==CKEDITOR.NODE_ELEMENT&&!t._.isBlockLike)},filter:function(t,e){e=this.getFilterContext(e),t.onRoot(e,this),this.filterChildren(t,!1,e)},filterChildren:function(t,e,n){if(this.childrenFilteredBy!=t.id)for(n=this.getFilterContext(n),e&&!this.parent&&t.onRoot(n,this),this.childrenFilteredBy=t.id,e=0;e<this.children.length;e++)!1===this.children[e].filter(t,n)&&e--},writeHtml:function(t,e){e&&this.filter(e),this.writeChildrenHtml(t)},writeChildrenHtml:function(t,e,n){var i=this.getFilterContext();for(n&&!this.parent&&e&&e.onRoot(i,this),e&&this.filterChildren(e,!1,i),e=0,n=this.children,i=n.length;e<i;e++)n[e].writeHtml(t)},forEach:function(t,e,n){if(!(n||e&&this.type!=e))var i=t(this);if(!1!==i){n=this.children;for(var r=0;r<n.length;r++)i=n[r],i.type==CKEDITOR.NODE_ELEMENT?i.forEach(t,e):e&&i.type!=e||t(i)}},getFilterContext:function(t){return t||{}}}}(),function(){function t(){this.rules=[]}function e(e,n,i,r){var o,a;for(o in n)(a=e[o])||(a=e[o]=new t),a.add(n[o],i,r)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(e){this.id=CKEDITOR.tools.getNextNumber(),this.elementNameRules=new t,this.attributeNameRules=new t,this.elementsRules={},this.attributesRules={},this.textRules=new t,this.commentRules=new t,this.rootRules=new t,e&&this.addRules(e,10)},proto:{addRules:function(t,n){var i;"number"==typeof n?i=n:n&&"priority"in n&&(i=n.priority),"number"!=typeof i&&(i=10),"object"!=typeof n&&(n={}),t.elementNames&&this.elementNameRules.addMany(t.elementNames,i,n),t.attributeNames&&this.attributeNameRules.addMany(t.attributeNames,i,n),t.elements&&e(this.elementsRules,t.elements,i,n),t.attributes&&e(this.attributesRules,t.attributes,i,n),t.text&&this.textRules.add(t.text,i,n),t.comment&&this.commentRules.add(t.comment,i,n),t.root&&this.rootRules.add(t.root,i,n)},applyTo:function(t){t.filter(this)},onElementName:function(t,e){return this.elementNameRules.execOnName(t,e)},onAttributeName:function(t,e){return this.attributeNameRules.execOnName(t,e)},onText:function(t,e,n){return this.textRules.exec(t,e,n)},onComment:function(t,e,n){return this.commentRules.exec(t,e,n)},onRoot:function(t,e){return this.rootRules.exec(t,e)},onElement:function(t,e){for(var n,i=[this.elementsRules["^"],this.elementsRules[e.name],this.elementsRules.$],r=0;3>r;r++)if(n=i[r]){if(!1===(n=n.exec(t,e,this)))return null;if(n&&n!=e)return this.onNode(t,n);if(e.parent&&!e.name)break}return e},onNode:function(t,e){var n=e.type;return n==CKEDITOR.NODE_ELEMENT?this.onElement(t,e):n==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(t,e.value)):n==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(t,e.value)):null},onAttribute:function(t,e,n,i){return(n=this.attributesRules[n])?n.exec(t,i,e,this):i}}}),CKEDITOR.htmlParser.filterRulesGroup=t,t.prototype={add:function(t,e,n){this.rules.splice(this.findIndex(e),0,{value:t,priority:e,options:n})},addMany:function(t,e,n){for(var i=[this.findIndex(e),0],r=0,o=t.length;r<o;r++)i.push({value:t[r],priority:e,options:n});this.rules.splice.apply(this.rules,i)},findIndex:function(t){for(var e=this.rules,n=e.length-1;0<=n&&t<e[n].priority;)n--;return n+1},exec:function(t,e){var n,i,r,o,a=e instanceof CKEDITOR.htmlParser.node||e instanceof CKEDITOR.htmlParser.fragment,s=Array.prototype.slice.call(arguments,1),l=this.rules,c=l.length;for(o=0;o<c;o++)if(a&&(n=e.type,i=e.name),r=l[o],!(t.nonEditable&&!r.options.applyToAll||t.nestedEditable&&r.options.excludeNestedEditable)){if(!1===(r=r.value.apply(null,s))||a&&r&&(r.name!=i||r.type!=n))return r;null!=r&&(s[0]=e=r)}return e},execOnName:function(t,e){for(var n,i=0,r=this.rules,o=r.length;e&&i<o;i++)n=r[i],t.nonEditable&&!n.options.applyToAll||t.nestedEditable&&n.options.excludeNestedEditable||(e=e.replace(n.value[0],n.value[1]));return e}}}(),function(){function t(t,e){function s(t){return t||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function l(t,e){return function(r){if(r.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var a,l,u=[],d=n(r);if(d)for(c(d,1)&&u.push(d);d;)o(d)&&(a=i(d))&&c(a)&&((l=i(a))&&!o(l)?u.push(a):(s(h).insertAfter(a),a.remove())),d=d.previous;for(d=0;d<u.length;d++)u[d].remove();(u=!t||!1!==("function"==typeof e?e(r):e))&&((h||CKEDITOR.env.needsBrFiller||r.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(h||CKEDITOR.env.needsBrFiller||!(7<document.documentMode||r.name in CKEDITOR.dtd.tr||r.name in CKEDITOR.dtd.$listItem))?(u=n(r),u=!u||"form"==r.name&&"input"==u.name):u=!1),u&&r.add(s(t))}}}function c(t,e){if((!h||CKEDITOR.env.needsBrFiller)&&t.type==CKEDITOR.NODE_ELEMENT&&"br"==t.name&&!t.attributes["data-cke-eol"])return!0;var n;return!!(t.type==CKEDITOR.NODE_TEXT&&(n=t.value.match(g))&&(n.index&&(new CKEDITOR.htmlParser.text(t.value.substring(0,n.index)).insertBefore(t),t.value=n[0]),!CKEDITOR.env.needsBrFiller&&h&&(!e||t.parent.name in f)||!h&&((n=t.previous)&&"br"==n.name||!n||o(n))))}var u,d={elements:{}},h="html"==e,f=CKEDITOR.tools.extend({},b);for(u in f)"#"in y[u]||delete f[u];for(u in f)d.elements[u]=l(h,t.config.fillEmptyBlocks);return d.root=l(h,!1),d.elements.br=function(t){return function(e){if(e.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=e.attributes;if("data-cke-bogus"in n||"data-cke-eol"in n)delete n["data-cke-bogus"];else{for(n=e.next;n&&r(n);)n=n.next;var l=i(e);!n&&o(e.parent)?a(e.parent,s(t)):o(n)&&l&&!o(l)&&s(t).insertBefore(n)}}}}(h),d}function e(t,e){return t!=CKEDITOR.ENTER_BR&&!1!==e&&(t==CKEDITOR.ENTER_DIV?"div":"p")}function n(t){for(t=t.children[t.children.length-1];t&&r(t);)t=t.previous;return t}function i(t){for(t=t.previous;t&&r(t);)t=t.previous;return t}function r(t){return t.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(t.value)||t.type==CKEDITOR.NODE_ELEMENT&&t.attributes["data-cke-bookmark"]}function o(t){return t&&(t.type==CKEDITOR.NODE_ELEMENT&&t.name in b||t.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function a(t,e){var n=t.children[t.children.length-1];t.children.push(e),e.parent=t,n&&(n.next=e,e.previous=n)}function s(t){t=t.attributes,"false"!=t.contenteditable&&(t["data-cke-editable"]=t.contenteditable?"true":1),t.contenteditable="false"}function l(t){switch(t=t.attributes,t["data-cke-editable"]){case"true":t.contenteditable="true";break;case"1":delete t.contenteditable}}function c(t){return t.replace(D,function(t,e,n){return"<"+e+n.replace($,function(t,e){return O.test(e)&&-1==n.indexOf("data-cke-saved-"+e)?" data-cke-saved-"+t+" data-cke-"+CKEDITOR.rnd+"-"+t:t})+">"})}function u(t,e){return t.replace(e,function(t,e,n){return 0===t.indexOf("<textarea")&&(t=e+f(n).replace(/</g,"<").replace(/>/g,">")+"</textarea>"),"<cke:encoded>"+encodeURIComponent(t)+"</cke:encoded>"})}function d(t){return t.replace(k,function(t,e){return decodeURIComponent(e)})}function h(t){return t.replace(/\x3c!--(?!{cke_protected})[\s\S]+?--\x3e/g,function(t){return"\x3c!--"+v+"{C}"+encodeURIComponent(t).replace(/--/g,"%2D%2D")+"--\x3e"})}function f(t){return t.replace(/\x3c!--\{cke_protected\}\{C\}([\s\S]+?)--\x3e/g,function(t,e){return decodeURIComponent(e)})}function p(t,e){var n=e._.dataStore;return t.replace(/\x3c!--\{cke_protected\}([\s\S]+?)--\x3e/g,function(t,e){return decodeURIComponent(e)}).replace(/\{cke_protected_(\d+)\}/g,function(t,e){return n&&n[e]||""})}function m(t,e){var n=[],i=e.config.protectedSource,r=e._.dataStore||(e._.dataStore={id:1}),o=/<\!--\{cke_temp(comment)?\}(\d*?)--\x3e/g,i=[/<script[\s\S]*?(<\/script>|$)/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(i);t=t.replace(/\x3c!--[\s\S]*?--\x3e/g,function(t){return"\x3c!--{cke_tempcomment}"+(n.push(t)-1)+"--\x3e"});for(var a=0;a<i.length;a++)t=t.replace(i[a],function(t){return t=t.replace(o,function(t,e,i){return n[i]}),/cke_temp(comment)?/.test(t)?t:"\x3c!--{cke_temp}"+(n.push(t)-1)+"--\x3e"});return t=t.replace(o,function(t,e,i){return"\x3c!--"+v+(e?"{C}":"")+encodeURIComponent(n[i]).replace(/--/g,"%2D%2D")+"--\x3e"}),t=t.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=\/>]+))+\s*\/?>/g,function(t){return t.replace(/\x3c!--\{cke_protected\}([^>]*)--\x3e/g,function(t,e){return r[r.id]=decodeURIComponent(e),"{cke_protected_"+r.id+++"}"})}),t=t.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(t,n,i,r){return"<"+n+i+">"+p(f(r),e)+"</"+n+">"})}CKEDITOR.htmlDataProcessor=function(n){var i,r,o=this;this.editor=n,this.dataFilter=i=new CKEDITOR.htmlParser.filter,this.htmlFilter=r=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,i.addRules(_),i.addRules(C,{applyToAll:!0}),i.addRules(t(n,"data"),{applyToAll:!0}),r.addRules(T),r.addRules(I,{applyToAll:!0}),r.addRules(t(n,"html"),{applyToAll:!0}),n.on("toHtml",function(t){t=t.data;var i,r=t.dataValue,r=m(r,n),r=u(r,R),r=c(r),r=u(r,w),r=r.replace(x,"$1cke:$2"),r=r.replace(A,"<cke:$1$2></cke:$1>"),r=r.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),r=r.replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2");i=t.context||n.editable().getName();var o;CKEDITOR.env.ie&&9>CKEDITOR.env.version&&"pre"==i&&(i="div",r="<pre>"+r+"</pre>",o=1),i=n.document.createElement(i),i.setHtml("a"+r),r=i.getHtml().substr(1),r=r.replace(new RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),o&&(r=r.replace(/^<pre>|<\/pre>$/gi,"")),r=r.replace(S,"$1$2"),r=d(r),r=f(r),i=!1!==t.fixForBody&&e(t.enterMode,n.config.autoParagraph),r=CKEDITOR.htmlParser.fragment.fromHtml(r,t.context,i),i&&(o=r,!o.children.length&&CKEDITOR.dtd[o.name][i]&&(i=new CKEDITOR.htmlParser.element(i),o.add(i))),t.dataValue=r},null,null,5),n.on("toHtml",function(t){t.data.filter.applyTo(t.data.dataValue,!0,t.data.dontFilter,t.data.enterMode)&&n.fire("dataFiltered")},null,null,6),n.on("toHtml",function(t){t.data.dataValue.filterChildren(o.dataFilter,!0)},null,null,10),n.on("toHtml",function(t){t=t.data;var e=t.dataValue,n=new CKEDITOR.htmlParser.basicWriter;e.writeChildrenHtml(n),e=n.getHtml(!0),t.dataValue=h(e)},null,null,15),n.on("toDataFormat",function(t){var i=t.data.dataValue;t.data.enterMode!=CKEDITOR.ENTER_BR&&(i=i.replace(/^<br *\/?>/i,"")),t.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(i,t.data.context,e(t.data.enterMode,n.config.autoParagraph))},null,null,5),n.on("toDataFormat",function(t){t.data.dataValue.filterChildren(o.htmlFilter,!0)},null,null,10),n.on("toDataFormat",function(t){t.data.filter.applyTo(t.data.dataValue,!1,!0)},null,null,11),n.on("toDataFormat",function(t){var e=t.data.dataValue,i=o.writer;i.reset(),e.writeChildrenHtml(i),e=i.getHtml(!0),e=f(e),e=p(e,n),t.data.dataValue=e},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(t,e,n,i){var r,o,a,s,l=this.editor;return e&&"object"==typeof e?(r=e.context,n=e.fixForBody,i=e.dontFilter,o=e.filter,a=e.enterMode,s=e.protectedWhitespaces):r=e,r||null===r||(r=l.editable().getName()),l.fire("toHtml",{dataValue:t,context:r,fixForBody:n,dontFilter:i,filter:o||l.filter,enterMode:a||l.enterMode,protectedWhitespaces:s}).dataValue},toDataFormat:function(t,e){var n,i,r;return e&&(n=e.context,i=e.filter,r=e.enterMode),n||null===n||(n=this.editor.editable().getName()),this.editor.fire("toDataFormat",{dataValue:t,filter:i||this.editor.filter,context:n,enterMode:r||this.editor.enterMode}).dataValue}};var g=/(?: |\xa0)$/,v="{cke_protected}",y=CKEDITOR.dtd,E="caption colgroup col thead tfoot tbody".split(" "),b=CKEDITOR.tools.extend({},y.$blockLimit,y.$block),_={elements:{input:s,textarea:s}},C={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},T={elements:{embed:function(t){var e=t.parent;if(e&&"object"==e.name){var n=e.attributes.width,e=e.attributes.height;n&&(t.attributes.width=n),e&&(t.attributes.height=e)}},a:function(t){var e=t.attributes;if(!(t.children.length||e.name||e.id||t.attributes["data-cke-saved-name"]))return!1}}},I={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(t){var e=t.attributes;if(e){if(e["data-cke-temp"])return!1;for(var n=["name","href","src"],i=0;i<n.length;i++)"data-cke-saved-"+n[i]in e&&delete e[n[i]]}return t},table:function(t){t.children.slice(0).sort(function(t,e){var n,i;return t.type==CKEDITOR.NODE_ELEMENT&&e.type==t.type&&(n=CKEDITOR.tools.indexOf(E,t.name),i=CKEDITOR.tools.indexOf(E,e.name)),-1<n&&-1<i&&n!=i||(n=t.parent?t.getIndex():-1,i=e.parent?e.getIndex():-1),n>i?1:-1})},param:function(t){return t.children=[],t.isEmpty=!0,t},span:function(t){"Apple-style-span"==t.attributes["class"]&&delete t.name},html:function(t){delete t.attributes.contenteditable,delete t.attributes["class"]},body:function(t){delete t.attributes.spellcheck,delete t.attributes.contenteditable},style:function(t){var e=t.children[0];e&&e.value&&(e.value=CKEDITOR.tools.trim(e.value)),t.attributes.type||(t.attributes.type="text/css")},title:function(t){var e=t.children[0];!e&&a(t,e=new CKEDITOR.htmlParser.text),e.value=t.attributes["data-cke-title"]||""},input:l,textarea:l},attributes:{"class":function(t){return CKEDITOR.tools.ltrim(t.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(I.attributes.style=function(t){return t.replace(/(^|;)([^\:]+)/g,function(t){return t.toLowerCase()})});var D=/<(a|area|img|input|source)\b([^>]*)>/gi,$=/([\w-:]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,O=/^(href|src|name)$/i,w=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,R=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,k=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,x=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,S=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,A=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),CKEDITOR.htmlParser.element=function(t,e){this.name=t,this.attributes=e||{},this.children=[];var n=t||"",i=n.match(/^cke:(.*)/);i&&(n=i[1]),n=!!(CKEDITOR.dtd.$nonBodyContent[n]||CKEDITOR.dtd.$block[n]||CKEDITOR.dtd.$listItem[n]||CKEDITOR.dtd.$tableContent[n]||CKEDITOR.dtd.$nonEditable[n]||"br"==n),this.isEmpty=!!CKEDITOR.dtd.$empty[t],this.isUnknown=!CKEDITOR.dtd[t],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(t){var e={};return((t instanceof CKEDITOR.htmlParser.element?t.attributes.style:t)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(t,n,i){"font-family"==n&&(i=i.replace(/["']/g,"")),e[n.toLowerCase()]=i}),{rules:e,populate:function(t){var e=this.toString();e&&(t instanceof CKEDITOR.dom.element?t.setAttribute("style",e):t instanceof CKEDITOR.htmlParser.element?t.attributes.style=e:t.style=e)},toString:function(){var t,n=[];for(t in e)e[t]&&n.push(t,":",e[t],";");return n.join("")}}},function(){function t(t){return function(e){return e.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof t?e.name==t:e.name in t)}}var e=function(t,e){return t=t[0],e=e[0],t<e?-1:t>e?1:0},n=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:n.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(t,e){var n,i,r=this;if(e=r.getFilterContext(e),e.off)return!0;for(r.parent||t.onRoot(e,r);;){if(n=r.name,!(i=t.onElementName(e,n)))return this.remove(),!1;if(r.name=i,!(r=t.onElement(e,r)))return this.remove(),!1;if(r!==this)return this.replaceWith(r),!1;if(r.name==n)break;if(r.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(r),!1;if(!r.name)return this.replaceWithChildren(),!1}n=r.attributes;var o,a;for(o in n){for(i=n[o];;){if(!(a=t.onAttributeName(e,o))){delete n[o];break}if(a==o)break;delete n[o],o=a}a&&(!1===(i=t.onAttribute(e,r,a,i))?delete n[a]:n[a]=i)}return r.isEmpty||this.filterChildren(t,!1,e),!0},filterChildren:n.filterChildren,writeHtml:function(t,n){n&&this.filter(n);var i,r,o=this.name,a=[],s=this.attributes;t.openTag(o,s);for(i in s)a.push([i,s[i]]);for(t.sortAttributes&&a.sort(e),i=0,r=a.length;i<r;i++)s=a[i],t.attribute(s[0],s[1]);t.openTagClose(o,this.isEmpty),this.writeChildrenHtml(t),this.isEmpty||t.closeTag(o)},writeChildrenHtml:n.writeChildrenHtml,replaceWithChildren:function(){for(var t=this.children,e=t.length;e;)t[--e].insertAfter(this);this.remove()},forEach:n.forEach,getFirst:function(e){if(!e)return this.children.length?this.children[0]:null;"function"!=typeof e&&(e=t(e));for(var n=0,i=this.children.length;n<i;++n)if(e(this.children[n]))return this.children[n];return null},getHtml:function(){var t=new CKEDITOR.htmlParser.basicWriter;return this.writeChildrenHtml(t),t.getHtml()},setHtml:function(t){t=this.children=CKEDITOR.htmlParser.fragment.fromHtml(t).children;for(var e=0,n=t.length;e<n;++e)t[e].parent=this},getOuterHtml:function(){var t=new CKEDITOR.htmlParser.basicWriter;return this.writeHtml(t),t.getHtml()},split:function(t){for(var e=this.children.splice(t,this.children.length-t),n=this.clone(),i=0;i<e.length;++i)e[i].parent=n;return n.children=e,e[0]&&(e[0].previous=null),0<t&&(this.children[t-1].next=null),this.parent.add(n,this.getIndex()+1),n},addClass:function(t){if(!this.hasClass(t)){var e=this.attributes["class"]||"";this.attributes["class"]=e+(e?" ":"")+t}},removeClass:function(t){var e=this.attributes["class"];e&&((e=CKEDITOR.tools.trim(e.replace(new RegExp("(?:\\s+|^)"+t+"(?:\\s+|$)")," ")))?this.attributes["class"]=e:delete this.attributes["class"])},hasClass:function(t){var e=this.attributes["class"];return!!e&&new RegExp("(?:^|\\s)"+t+"(?=\\s|$)").test(e)},getFilterContext:function(t){var e=[];if(t||(t={off:!1,nonEditable:!1,nestedEditable:!1}),t.off||"off"!=this.attributes["data-cke-processor"]||e.push("off",!0),t.nonEditable||"false"!=this.attributes.contenteditable?t.nonEditable&&!t.nestedEditable&&"true"==this.attributes.contenteditable&&e.push("nestedEditable",!0):e.push("nonEditable",!0),e.length){t=CKEDITOR.tools.copy(t);for(var n=0;n<e.length;n+=2)t[e[n]]=e[n+1]}return t}},!0)}(),function(){var t={},e=/{([^}]+)}/g,n=/([\\'])/g,i=/\n/g,r=/\r/g;CKEDITOR.template=function(o){if(t[o])this.output=t[o];else{var a=o.replace(n,"\\$1").replace(i,"\\n").replace(r,"\\r").replace(e,function(t,e){return"',data['"+e+"']==undefined?'{"+e+"}':data['"+e+"'],'"});this.output=t[o]=Function("data","buffer","return buffer?buffer.push('"+a+"'):['"+a+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(t){CKEDITOR.instances[t.name]=t,t.on("focus",function(){CKEDITOR.currentInstance!=t&&(CKEDITOR.currentInstance=t,CKEDITOR.fire("currentInstance"))}),t.on("blur",function(){CKEDITOR.currentInstance==t&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}),CKEDITOR.fire("instance",null,t)},CKEDITOR.remove=function(t){delete CKEDITOR.instances[t.name]},function(){var t={};CKEDITOR.addTemplate=function(e,n){var i=t[e];return i||(i={name:e,source:n},CKEDITOR.fire("template",i),t[e]=new CKEDITOR.template(i.source))},CKEDITOR.getTemplate=function(e){return t[e]}}(),function(){var t=[];CKEDITOR.addCss=function(e){t.push(e)},CKEDITOR.getCss=function(){return t.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,function(){CKEDITOR.inline=function(t,e){if(!CKEDITOR.env.isCompatible)return null;if(t=CKEDITOR.dom.element.get(t),t.getEditor())throw'The editor instance "'+t.getEditor().name+'" is already attached to the provided element.';var n=new CKEDITOR.editor(e,t,CKEDITOR.ELEMENT_MODE_INLINE),i=t.is("textarea")?t:null;return i?(n.setData(i.getValue(),null,!0),t=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!n.readOnly+'" class="cke_textarea_inline">'+i.getValue()+"</div>",CKEDITOR.document),t.insertAfter(i),i.hide(),i.$.form&&n._attachToForm()):n.setData(t.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(t),n.container=t,n.ui.contentsElement=t,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){i&&(n.container.clearCustomData(),n.container.remove(),i.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var t,e,n;for(n in CKEDITOR.dtd.$editable)for(var i=CKEDITOR.document.getElementsByTag(n),r=0,o=i.count();r<o;r++)t=i.getItem(r),"true"==t.getAttribute("contenteditable")&&(e={element:t,config:{}},!1!==CKEDITOR.fire("inline",e)&&CKEDITOR.inline(t,e.config))},CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function t(t,i,r,o){if(!CKEDITOR.env.isCompatible)return null;if(t=CKEDITOR.dom.element.get(t),t.getEditor())throw'The editor instance "'+t.getEditor().name+'" is already attached to the provided element.';var a=new CKEDITOR.editor(i,t,o);return o==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.setStyle("visibility","hidden"),a._.required=t.hasAttribute("required"),t.removeAttribute("required")),r&&a.setData(r,null,!0),a.on("loaded",function(){n(a),o==CKEDITOR.ELEMENT_MODE_REPLACE&&a.config.autoUpdateElement&&t.$.form&&a._attachToForm(),a.setMode(a.config.startupMode,function(){a.resetDirty(),a.status="ready",a.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,a)})}),a.on("destroy",e),a}function e(){var t=this.container,e=this.element;t&&(t.clearCustomData(),t.remove()),e&&(e.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.show(),this._.required&&e.setAttribute("required","required")),delete this.element)}function n(t){var e=t.name,n=t.element,i=t.elementMode,r=t.fire("uiSpace",{space:"top",html:""}).html,o=t.fire("uiSpace",{space:"bottom",html:""}).html,a=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(t.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(t.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'),e=CKEDITOR.dom.element.createFromHtml(a.output({id:t.id,name:e,langDir:t.lang.dir,langCode:t.langCode,voiceLabel:t.title,topHtml:r?'<span id="'+t.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+r+"</span>":"",contentId:t.ui.spaceId("contents"),bottomHtml:o?'<span id="'+t.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+o+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));i==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),e.insertAfter(n)):n.append(e),t.container=e,t.ui.contentsElement=t.ui.space("contents"),r&&t.ui.space("top").unselectable(),o&&t.ui.space("bottom").unselectable(),n=t.config.width,i=t.config.height,n&&e.setStyle("width",CKEDITOR.tools.cssLength(n)),i&&t.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i)),e.disableContextMenu(),CKEDITOR.env.webkit&&e.on("focus",function(){t.focus()}),t.fireOnce("uiReady")}CKEDITOR.replace=function(e,n){return t(e,n,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(e,n,i){return t(e,n,i,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(){for(var t=document.getElementsByTagName("textarea"),e=0;e<t.length;e++){var n=null,i=t[e];if(i.name||i.id){if("string"==typeof arguments[0]){if(!new RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if("function"==typeof arguments[0]&&(n={},!1===arguments[0](i,n)))continue;this.replace(i,n)}}},CKEDITOR.editor.prototype.addMode=function(t,e){(this._.modes||(this._.modes={}))[t]=e},CKEDITOR.editor.prototype.setMode=function(t,e){var n=this,i=this._.modes;if(t!=n.mode&&i&&i[t]){if(n.fire("beforeSetMode",t),n.mode){var r,o=n.checkDirty(),i=n._.previousModeData,a=0;n.fire("beforeModeUnload"),n.editable(0),n._.previousMode=n.mode,n._.previousModeData=r=n.getData(1),"source"==n.mode&&i==r&&(n.fire("lockSnapshot",{forceUpdate:!0}),a=1),n.ui.space("contents").setHtml(""),n.mode=""}else n._.previousModeData=n.getData(1);this._.modes[t](function(){n.mode=t,void 0!==o&&!o&&n.resetDirty(),a?n.fire("unlockSnapshot"):"wysiwyg"==t&&n.fire("saveSnapshot"),setTimeout(function(){n.fire("mode"),e&&e.call(n)},0)})}},CKEDITOR.editor.prototype.resize=function(t,e,n,i){var r=this.container,o=this.ui.space("contents"),a=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;i=i?this.container.getFirst(function(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.hasClass("cke_inner")}):r,i.setSize("width",t,!0),a&&(a.style.width="1%");var s=(i.$.offsetHeight||0)-(o.$.clientHeight||0),r=Math.max(e-(n?0:s),0);e=n?e+s:e,o.setStyle("height",r+"px"),a&&(a.style.width="100%"),this.fire("resize",{outerHeight:e,contentsHeight:r,outerWidth:t||i.getSize("width")})},CKEDITOR.editor.prototype.getResizable=function(t){return t?this.ui.space("contents"):this.container},CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function t(t){var n,r=t.editor,o=t.data.path,s=o.blockLimit,l=t.data.selection,c=l.getRanges()[0];(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&(l=e(l,o))&&(l.appendBogus(),n=CKEDITOR.env.ie),a(r,o.block,s)&&c.collapsed&&!c.getCommonAncestor().isReadOnly()&&(o=c.clone(),o.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),s=new CKEDITOR.dom.walker(o),s.guard=function(t){return!i(t)||t.type==CKEDITOR.NODE_COMMENT||t.isReadOnly()},!s.checkForward()||o.checkStartOfBlock()&&o.checkEndOfBlock())&&(r=c.fixBlock(!0,r.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(r=r.getFirst(i))&&r.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(r.getText()).match(/^(?: |\xa0)$/)&&r.remove(),n=1,t.cancel()),n&&c.select()}function e(t,e){if(t.isFake)return 0;var n=e.block||e.blockLimit,r=n&&n.getLast(i);return!n||!n.isBlockBoundary()||r&&r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary()||n.is("pre")||n.getBogus()?void 0:n}function n(t){var e=t.data.getTarget();e.is("input")&&("submit"!=(e=e.getAttribute("type"))&&"reset"!=e||t.data.preventDefault())}function i(t){return u(t)&&d(t)}function r(t,e){return function(n){var i=n.data.$.toElement||n.data.$.fromElement||n.data.$.relatedTarget;(i=i&&i.nodeType==CKEDITOR.NODE_ELEMENT?new CKEDITOR.dom.element(i):null)&&(e.equals(i)||e.contains(i))||t.call(this,n)}}function o(t){function e(t){return function(e,r){if(r&&e.type==CKEDITOR.NODE_ELEMENT&&e.is(o)&&(n=e),!(r||!i(e)||t&&f(e)))return!1}}var n,r=t.getRanges()[0];t=t.root;var o={table:1,ul:1,ol:1,dl:1};if(r.startPath().contains(o)){var a=r.clone();if(a.collapse(1),a.setStartAt(t,CKEDITOR.POSITION_AFTER_START),t=new CKEDITOR.dom.walker(a),t.guard=e(),t.checkBackward(),n)return a=r.clone(),a.collapse(),a.setEndAt(n,CKEDITOR.POSITION_AFTER_END),t=new CKEDITOR.dom.walker(a),t.guard=e(!0),n=!1,t.checkForward(),n}return null}function a(t,e,n){return!1!==t.config.autoParagraph&&t.activeEnterMode!=CKEDITOR.ENTER_BR&&(t.editable().equals(n)&&!e||e&&"true"==e.getAttribute("contenteditable"))}function s(t){return t.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==t.config.autoParagraph&&(t.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p")}function l(t){var e=t.editor;e.getSelection().scrollIntoView(),setTimeout(function(){e.fire("saveSnapshot")},0)}function c(t,e,n){var i=t.getCommonAncestor(e);for(e=t=n?e:t;(t=t.getParent())&&!i.equals(t)&&1==t.getChildCount();)e=t;e.remove()}var u,d,h,f,p,m,g,v,y;CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(t,e){this.base(e.$||e),this.editor=t,this.status="unloaded",this.hasFocus=!1,this.setup()},proto:{focus:function(){var t;if(CKEDITOR.env.webkit&&!this.hasFocus&&(t=this.editor._.previousActive||this.getDocument().getActive(),this.contains(t)))return void t.focus();CKEDITOR.env.edge&&14<CKEDITOR.env.version&&!this.hasFocus&&this.getDocument().equals(CKEDITOR.document)&&(this.editor._.previousScrollTop=this.$.scrollTop);try{!CKEDITOR.env.ie||CKEDITOR.env.edge&&14<CKEDITOR.env.version||!this.getDocument().equals(CKEDITOR.document)?this.$.focus():this.$.setActive()}catch(n){if(!CKEDITOR.env.ie)throw n}CKEDITOR.env.safari&&!this.isInline()&&(t=CKEDITOR.document.getActive(),t.equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(t,e){var n=Array.prototype.slice.call(arguments,0);return CKEDITOR.env.ie&&/^focus|blur$/.exec(t)&&(t="focus"==t?"focusin":"focusout",e=r(e,this),n[0]=t,n[1]=e),CKEDITOR.dom.element.prototype.on.apply(this,n)},attachListener:function(t){!this._.listeners&&(this._.listeners=[]);var e=Array.prototype.slice.call(arguments,1),e=t.on.apply(t,e);return this._.listeners.push(e),e},clearListeners:function(){var t=this._.listeners;try{for(;t.length;)t.pop().removeListener()}catch(n){}},restoreAttrs:function(){var t,e,n=this._.attrChanges;for(e in n)n.hasOwnProperty(e)&&(t=n[e],null!==t?this.setAttribute(e,t):this.removeAttribute(e))},attachClass:function(t){var e=this.getCustomData("classes");this.hasClass(t)||(!e&&(e=[]),e.push(t),this.setCustomData("classes",e),this.addClass(t))},changeAttr:function(t,e){var n=this.getAttribute(t);e!==n&&(!this._.attrChanges&&(this._.attrChanges={}),t in this._.attrChanges||(this._.attrChanges[t]=n),this.setAttribute(t,e))},insertText:function(t){this.editor.focus(),this.insertHtml(this.transformPlainTextToHtml(t),"text")},transformPlainTextToHtml:function(t){var e=this.editor.getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:this.editor.activeEnterMode;return CKEDITOR.tools.transformPlainTextToHtml(t,e)},insertHtml:function(t,e,n){var i=this.editor;i.focus(),i.fire("saveSnapshot"),n||(n=i.getSelection().getRanges()[0]),m(this,e||"html",t,n),n.select(),l(this),this.editor.fire("afterInsertHtml",{})},insertHtmlIntoRange:function(t,e,n){m(this,n||"html",t,e),this.editor.fire("afterInsertHtml",{intoRange:e})},insertElement:function(t,e){var n=this.editor;n.focus(),n.fire("saveSnapshot");var r=n.activeEnterMode,n=n.getSelection(),o=t.getName(),o=CKEDITOR.dtd.$block[o];e||(e=n.getRanges()[0]),this.insertElementIntoRange(t,e)&&(e.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),o&&((o=t.getNext(function(t){return i(t)&&!f(t)}))&&o.type==CKEDITOR.NODE_ELEMENT&&o.is(CKEDITOR.dtd.$block)?o.getDtd()["#"]?e.moveToElementEditStart(o):e.moveToElementEditEnd(t):o||r==CKEDITOR.ENTER_BR||(o=e.fixBlock(!0,r==CKEDITOR.ENTER_DIV?"div":"p"),e.moveToElementEditStart(o)))),n.selectRanges([e]),l(this)},insertElementIntoSelection:function(t){this.insertElement(t)},insertElementIntoRange:function(t,e){var n=this.editor,i=n.config.enterMode,r=t.getName(),o=CKEDITOR.dtd.$block[r];if(e.checkReadOnly())return!1;e.deleteContents(1),e.startContainer.type==CKEDITOR.NODE_ELEMENT&&e.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&g(e);var a,s;if(o)for(;(a=e.getCommonAncestor(0,1))&&(s=CKEDITOR.dtd[a.getName()])&&(!s||!s[r]);)a.getName()in CKEDITOR.dtd.span?e.splitElement(a):e.checkStartOfBlock()&&e.checkEndOfBlock()?(e.setStartBefore(a),e.collapse(!0),a.remove()):e.splitBlock(i==CKEDITOR.ENTER_DIV?"div":"p",n.editable());return e.insertNode(t),!0},setData:function(t,e){e||(t=this.editor.dataProcessor.toHtml(t)),this.setHtml(t),this.fixInitialSelection(),"unloaded"==this.status&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(t){var e=this.getHtml();return t||(e=this.editor.dataProcessor.toDataFormat(e)),e},setReadOnly:function(t){this.setAttribute("contenteditable",!t)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var t=this.editor;this._.detach(),delete t.document,delete t.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},fixInitialSelection:function(){function t(){var t,n=e.getDocument().$,i=n.getSelection();t:if(i.anchorNode&&i.anchorNode==e.$)t=!0;else{if(CKEDITOR.env.webkit&&(t=e.getDocument().getActive())&&t.equals(e)&&!i.anchorNode){t=!0;break t}t=void 0}t&&(t=new CKEDITOR.dom.range(e),t.moveToElementEditStart(e),n=n.createRange(),n.setStart(t.startContainer.$,t.startOffset),n.collapse(!0),i.removeAllRanges(),i.addRange(n))}var e=this;CKEDITOR.env.ie&&(9>CKEDITOR.env.version||CKEDITOR.env.quirks)?this.hasFocus&&(this.focus(),function(){var t=e.getDocument().$,n=t.selection,i=e.getDocument().getActive();"None"==n.type&&i.equals(e)&&(n=new CKEDITOR.dom.range(e),t=t.body.createTextRange(),n.moveToElementEditStart(e),n=n.startContainer,n.type!=CKEDITOR.NODE_ELEMENT&&(n=n.getParent()),t.moveToElementText(n.$),t.collapse(!0),t.select())}()):this.hasFocus?(this.focus(),t()):this.once("focus",function(){t()},null,null,-999)},getHtmlFromRange:function(t){return t.collapsed?new CKEDITOR.dom.documentFragment(t.document):(t={doc:this.getDocument(),range:t.clone()},v.eol.detect(t,this),v.bogus.exclude(t),v.cell.shrink(t),t.fragment=t.range.cloneContents(),v.tree.rebuild(t,this),v.eol.fix(t,this),new CKEDITOR.dom.documentFragment(t.fragment.$))},extractHtmlFromRange:function(t,e){var n=y,i={range:t,doc:t.document},r=this.getHtmlFromRange(t);if(t.collapsed)return t.optimize(),r;t.enlarge(CKEDITOR.ENLARGE_INLINE,1),n.table.detectPurge(i),i.bookmark=t.createBookmark(),delete i.range;var o=this.editor.createRange();if(o.moveToPosition(i.bookmark.startNode,CKEDITOR.POSITION_BEFORE_START),i.targetBookmark=o.createBookmark(),n.list.detectMerge(i,this),n.table.detectRanges(i,this),n.block.detectMerge(i,this),i.tableContentsRanges?(n.table.deleteRanges(i),t.moveToBookmark(i.bookmark),i.range=t):(t.moveToBookmark(i.bookmark),i.range=t,t.extractContents(n.detectExtractMerge(i))),t.moveToBookmark(i.targetBookmark),t.optimize(),n.fixUneditableRangePosition(t),n.list.merge(i,this),n.table.purge(i,this),n.block.merge(i,this),e){if(n=t.startPath(),i=t.checkStartOfBlock()&&t.checkEndOfBlock()&&n.block&&!t.root.equals(n.block)){t:{var a,i=n.block.getElementsByTag("span"),o=0;if(i)for(;a=i.getItem(o++);)if(!d(a)){i=!0;break t}i=!1}i=!i}i&&(t.moveToPosition(n.block,CKEDITOR.POSITION_BEFORE_START),n.block.remove())}else n.autoParagraph(this.editor,t),h(t.startContainer)&&t.startContainer.appendBogus();return t.startContainer.mergeSiblings(),r},setup:function(){var t=this.editor;if(this.attachListener(t,"beforeGetData",function(){var e=this.getData();this.is("textarea")||!1!==t.config.ignoreEmptyParagraph&&(e=e.replace(p,function(t,e){return e})),t.setData(e,null,1)},this),this.attachListener(t,"getSnapshot",function(t){t.data=this.getData(1)},this),this.attachListener(t,"afterSetData",function(){this.setData(t.getData(1))},this),this.attachListener(t,"loadSnapshot",function(t){this.setData(t.data,1)},this),this.attachListener(t,"beforeFocus",function(){var e=t.getSelection();(e=e&&e.getNative())&&"Control"==e.type||this.focus()},this),this.attachListener(t,"insertHtml",function(t){this.insertHtml(t.data.dataValue,t.data.mode,t.data.range)},this),this.attachListener(t,"insertElement",function(t){this.insertElement(t.data)},this),this.attachListener(t,"insertText",function(t){this.insertText(t.data)},this),this.setReadOnly(t.readOnly),this.attachClass("cke_editable"),t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?this.attachClass("cke_editable_inline"):t.elementMode!=CKEDITOR.ELEMENT_MODE_REPLACE&&t.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO||this.attachClass("cke_editable_themed"),this.attachClass("cke_contents_"+t.config.contentsLangDirection),t.keystrokeHandler.blockedKeystrokes[8]=+t.readOnly,t.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),CKEDITOR.env.webkit&&this.on("scroll",function(){t._.previousScrollTop=t.editable().$.scrollTop},null,null,-1),CKEDITOR.env.edge&&14<CKEDITOR.env.version){var e=function(){var n=t.editable();null!=t._.previousScrollTop&&n.getDocument().equals(CKEDITOR.document)&&(n.$.scrollTop=t._.previousScrollTop,t._.previousScrollTop=null,this.removeListener("scroll",e))};this.on("scroll",e)}if(t.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,t.once("contentDom",function(){t.focusManager.focus(this)},this)),this.isInline()&&this.changeAttr("tabindex",t.tabIndex),!this.is("textarea")){t.document=this.getDocument(),t.window=this.getWindow();var r=t.document;this.changeAttr("spellcheck",!t.config.disableNativeSpellChecker);var a=t.config.contentsLangDirection;this.getDirection(1)!=a&&this.changeAttr("dir",a);var s=CKEDITOR.getCss();if(s){var a=r.getHead(),l=a.getCustomData("stylesheet");l?s!=l.getText()&&(CKEDITOR.env.ie&&9>CKEDITOR.env.version?l.$.styleSheet.cssText=s:l.setText(s)):(s=r.appendStyleText(s),s=new CKEDITOR.dom.element(s.ownerNode||s.owningElement),a.setCustomData("stylesheet",s),s.data("cke-temp",1))}a=r.getCustomData("stylesheet_ref")||0,r.setCustomData("stylesheet_ref",a+1),this.setCustomData("cke_includeReadonly",!t.config.disableReadonlyStyling),this.attachListener(this,"click",function(t){t=t.data;var e=new CKEDITOR.dom.elementPath(t.getTarget(),this).contains("a");e&&2!=t.$.button&&e.isReadOnly()&&t.preventDefault()});var d={8:1,46:1};this.attachListener(t,"key",function(e){if(t.readOnly)return!0;var n,i=e.data.domEvent.getKey();if(i in d){e=t.getSelection();var r,a,s,l,c=e.getRanges()[0],h=c.startPath(),i=8==i;CKEDITOR.env.ie&&11>CKEDITOR.env.version&&(r=e.getSelectedElement())||(r=o(e))?(t.fire("saveSnapshot"),c.moveToPosition(r,CKEDITOR.POSITION_BEFORE_START),r.remove(),c.select(),t.fire("saveSnapshot"),n=1):c.collapsed&&((a=h.block)&&(l=a[i?"getPrevious":"getNext"](u))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("table")&&c[i?"checkStartOfBlock":"checkEndOfBlock"]()?(t.fire("saveSnapshot"),c[i?"checkEndOfBlock":"checkStartOfBlock"]()&&a.remove(),c["moveToElementEdit"+(i?"End":"Start")](l),c.select(),t.fire("saveSnapshot"),n=1):h.blockLimit&&h.blockLimit.is("td")&&(s=h.blockLimit.getAscendant("table"))&&c.checkBoundaryOfElement(s,i?CKEDITOR.START:CKEDITOR.END)&&(l=s[i?"getPrevious":"getNext"](u))?(t.fire("saveSnapshot"),c["moveToElementEdit"+(i?"End":"Start")](l),c.checkStartOfBlock()&&c.checkEndOfBlock()?l.remove():c.select(),t.fire("saveSnapshot"),n=1):(s=h.contains(["td","th","caption"]))&&c.checkBoundaryOfElement(s,i?CKEDITOR.START:CKEDITOR.END)&&(n=1))}return!n}),t.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(e){e.data.getKeystroke()in d&&!this.getFirst(i)&&(this.appendBogus(),e=t.createRange(),e.moveToPosition(this,CKEDITOR.POSITION_AFTER_START),e.select())}),this.attachListener(this,"dblclick",function(e){if(t.readOnly)return!1;e={element:e.data.getTarget()},t.fire("doubleclick",e)}),CKEDITOR.env.ie&&this.attachListener(this,"click",n),CKEDITOR.env.ie&&!CKEDITOR.env.edge||this.attachListener(this,"mousedown",function(e){var n=e.data.getTarget();n.is("img","hr","input","textarea","select")&&!n.isReadOnly()&&(t.getSelection().selectElement(n),n.is("input","textarea","select")&&e.data.preventDefault())}),CKEDITOR.env.edge&&this.attachListener(this,"mouseup",function(e){(e=e.data.getTarget())&&e.is("img")&&t.getSelection().selectElement(e)}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(e){if(2==e.data.$.button&&(e=e.data.getTarget(),!e.getOuterHtml().replace(p,""))){var n=t.createRange();n.moveToElementEditStart(e),n.select(!0)}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(t){t.data.getTarget().is("input","select")&&t.data.preventDefault()}),this.attachListener(this,"mouseup",function(t){t.data.getTarget().is("input","textarea")&&t.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(t,"key",function(e){if(t.readOnly)return!0;if((e=e.data.domEvent.getKey())in d){var n=8==e,i=t.getSelection().getRanges()[0];if(e=i.startPath(),i.collapsed)t:{var r=e.block;if(r&&i[n?"checkStartOfBlock":"checkEndOfBlock"]()&&i.moveToClosestEditablePosition(r,!n)&&i.collapsed){if(i.startContainer.type==CKEDITOR.NODE_ELEMENT){var o=i.startContainer.getChild(i.startOffset-(n?1:0));if(o&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("hr")){t.fire("saveSnapshot"),o.remove(),e=!0;break t}}if(!(i=i.startPath().block)||i&&i.contains(r))e=void 0;else{t.fire("saveSnapshot");var a;(a=(n?i:r).getBogus())&&a.remove(),a=t.getSelection(),o=a.createBookmarks(),(n?r:i).moveChildren(n?i:r,!1),e.lastElement.mergeSiblings(),c(r,i,!n),a.selectBookmarks(o),e=!0}}else e=!1}else n=i,a=e.block,i=n.endPath().block,a&&i&&!a.equals(i)?(t.fire("saveSnapshot"),(r=a.getBogus())&&r.remove(),n.enlarge(CKEDITOR.ENLARGE_INLINE),n.deleteContents(),i.getParent()&&(i.moveChildren(a,!1),e.lastElement.mergeSiblings(),c(a,i,!0)),n=t.getSelection().getRanges()[0],n.collapse(1),n.optimize(),""===n.startContainer.getHtml()&&n.startContainer.appendBogus(),n.select(),e=!0):e=!1;if(!e)return;return t.getSelection().scrollIntoView(),t.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs();var t;if(t=this.removeCustomData("classes"))for(;t.length;)this.removeClass(t.pop());if(!this.is("textarea")){t=this.getDocument();var e=t.getHead();if(e.getCustomData("stylesheet")){var n=t.getCustomData("stylesheet_ref");--n?t.setCustomData("stylesheet_ref",n):(t.removeCustomData("stylesheet_ref"),e.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(t){var e=this._.editable;return e&&t?0:(arguments.length&&(e=this._.editable=t?t instanceof CKEDITOR.editable?t:new CKEDITOR.editable(this,t):(e&&e.detach(),null)),e)},CKEDITOR.on("instanceLoaded",function(e){var n=e.editor;n.on("insertElement",function(t){t=t.data,t.type==CKEDITOR.NODE_ELEMENT&&(t.is("input")||t.is("textarea"))&&("false"!=t.getAttribute("contentEditable")&&t.data("cke-editable",t.hasAttribute("contenteditable")?"true":"1"),t.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(e){if(!n.readOnly){var i=n.getSelection();i&&!i.isLocked&&(i=n.checkDirty(),n.fire("lockSnapshot"),t(e),n.fire("unlockSnapshot"),!i&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(t){var e=t.editor;e.on("mode",function(){var t=e.editable();if(t&&t.isInline()){var n=e.title;t.changeAttr("role","textbox"),t.changeAttr("aria-label",n),n&&t.changeAttr("title",n);var i=e.fire("ariaEditorHelpLabel",{}).label;if(i&&(n=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var r=CKEDITOR.tools.getNextId(),i=CKEDITOR.dom.element.createFromHtml('<span id="'+r+'" class="cke_voice_label">'+i+"</span>");n.append(i),t.changeAttr("aria-describedby",r)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}"),u=CKEDITOR.dom.walker.whitespaces(!0),d=CKEDITOR.dom.walker.bookmark(!1,!0),h=CKEDITOR.dom.walker.empty(),f=CKEDITOR.dom.walker.bogus(),p=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,m=function(){function t(t){return t.type==CKEDITOR.NODE_ELEMENT}function e(n,i){var r,o,a,s,l=[],c=i.range.startContainer;r=i.range.startPath();for(var c=u[c.getName()],d=0,h=n.getChildren(),f=h.count(),p=-1,m=-1,g=0,v=r.contains(u.$list);d<f;++d)r=h.getItem(d),t(r)?(a=r.getName(),v&&a in CKEDITOR.dtd.$list?l=l.concat(e(r,i)):(s=!!c[a],"br"!=a||!r.data("cke-eol")||d&&d!=f-1||(g=(o=d?l[d-1].node:h.getItem(d+1))&&(!t(o)||!o.is("br")),o=o&&t(o)&&u.$block[o.getName()]),-1!=p||s||(p=d),s||(m=d),l.push({isElement:1,isLineBreak:g,isBlock:r.isBlockBoundary(),hasBlockSibling:o,node:r,name:a,allowed:s}),o=g=0)):l.push({isElement:0,node:r,allowed:1});return-1<p&&(l[p].firstNotAllowed=1),-1<m&&(l[m].lastNotAllowed=1),l}function n(e,i){var r,o=[],a=e.getChildren(),s=a.count(),l=0,c=u[i],d=!e.is(u.$inline)||e.is("br");for(d&&o.push(" ");l<s;l++)r=a.getItem(l),t(r)&&!r.is(c)?o=o.concat(n(r,i)):o.push(r);return d&&o.push(" "),o}function r(e){return t(e.startContainer)&&e.startContainer.getChild(e.startOffset-1)}function o(e){return e&&t(e)&&(e.is(u.$removeEmpty)||e.is("a")&&!e.isBlockBoundary())}function l(e,n,i,r){var o,a,s=e.clone();s.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(s).next())&&t(o)&&d[o.getName()]&&(a=o.getPrevious())&&t(a)&&!a.getParent().equals(e.startContainer)&&i.contains(a)&&r.contains(o)&&o.isIdentical(a)&&(o.moveChildren(a),o.remove(),l(e,n,i,r))}function c(e,n){function i(e,n){if(n.isBlock&&n.isElement&&!n.node.is("br")&&t(e)&&e.is("br"))return e.remove(),1}var r=n.endContainer.getChild(n.endOffset),o=n.endContainer.getChild(n.endOffset-1);r&&i(r,e[e.length-1]),o&&i(o,e[0])&&(n.setEnd(n.endContainer,n.endOffset-1),n.collapse())}var u=CKEDITOR.dtd,d={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},h={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},f=CKEDITOR.tools.extend({},u.$inline);return delete f.br,function(d,p,m,g){var v=d.editor,y=!1;if("unfiltered_html"==p&&(p="html",y=!0),!g.checkReadOnly()){var E=new CKEDITOR.dom.elementPath(g.startContainer,g.root).blockLimit||g.root;d={type:p,dontFilter:y,editable:d,editor:v,range:g,blockLimit:E,mergeCandidates:[],zombies:[]},p=d.range,g=d.mergeCandidates;var b,_;if("text"==d.type&&p.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(b=CKEDITOR.dom.element.createFromHtml("<span> </span>",p.document),p.insertNode(b),p.setStartAfter(b)),y=new CKEDITOR.dom.elementPath(p.startContainer),d.endPath=E=new CKEDITOR.dom.elementPath(p.endContainer),!p.collapsed){var v=E.block||E.blockLimit,C=p.getCommonAncestor();v&&!v.equals(C)&&!v.contains(C)&&p.checkEndOfBlock()&&d.zombies.push(v),p.deleteContents()}for(;(_=r(p))&&t(_)&&_.isBlockBoundary()&&y.contains(_);)p.moveToPosition(_,CKEDITOR.POSITION_BEFORE_END);for(l(p,d.blockLimit,y,E),b&&(p.setEndBefore(b),p.collapse(),b.remove()),b=p.startPath(),(v=b.contains(o,!1,1))&&(p.splitElement(v),d.inlineStylesRoot=v,d.inlineStylesPeak=b.lastElement),b=p.createBookmark(),(v=b.startNode.getPrevious(i))&&t(v)&&o(v)&&g.push(v),(v=b.startNode.getNext(i))&&t(v)&&o(v)&&g.push(v),v=b.startNode;(v=v.getParent())&&o(v);)g.push(v);if(p.moveToBookmark(b),b=m){if(b=d.range,"text"==d.type&&d.inlineStylesRoot){for(_=d.inlineStylesPeak,p=_.getDocument().createText("{cke-peak}"),g=d.inlineStylesRoot.getParent();!_.equals(g);)p=p.appendTo(_.clone()),_=_.getParent();m=p.getOuterHtml().split("{cke-peak}").join(m)}if(_=d.blockLimit.getName(),/^\s+|\s+$/.test(m)&&"span"in CKEDITOR.dtd[_]){var T='<span data-cke-marker="1"> </span>';m=T+m+T}if(m=d.editor.dataProcessor.toHtml(m,{context:null,fixForBody:!1,protectedWhitespaces:!!T,dontFilter:d.dontFilter,filter:d.editor.activeFilter,enterMode:d.editor.activeEnterMode}),_=b.document.createElement("body"),_.setHtml(m),T&&(_.getFirst().remove(),_.getLast().remove()),(T=b.startPath().block)&&(1!=T.getChildCount()||!T.getBogus()))t:{var I;if(1==_.getChildCount()&&t(I=_.getFirst())&&I.is(h)&&!I.hasAttribute("contenteditable")){for(T=I.getElementsByTag("*"),b=0,g=T.count();b<g;b++)if(p=T.getItem(b),!p.is(f))break t;I.moveChildren(I.getParent(1)),I.remove()}}d.dataWrapper=_,b=m}if(b){I=d.range,b=I.document;var D;_=d.blockLimit,g=0;var $,O,w,T=[];m=v=0;var R,k;p=I.startContainer;var x,y=d.endPath.elements[0],E=y.getPosition(p),C=!(!y.getCommonAncestor(p)||E==CKEDITOR.POSITION_IDENTICAL||E&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);for(p=e(d.dataWrapper,d),c(p,I);g<p.length;g++){if(E=p[g],D=E.isLineBreak){D=I,R=_;var S=void 0,A=void 0;E.hasBlockSibling?D=1:(S=D.startContainer.getAscendant(u.$block,1))&&S.is({div:1,p:1})?(A=S.getPosition(R),A==CKEDITOR.POSITION_IDENTICAL||A==CKEDITOR.POSITION_CONTAINS?D=0:(R=D.splitElement(S),D.moveToPosition(R,CKEDITOR.POSITION_AFTER_START),D=1)):D=0}if(D)m=0<g;else{if(D=I.startPath(),!E.isBlock&&a(d.editor,D.block,D.blockLimit)&&(w=s(d.editor))&&(w=b.createElement(w),w.appendBogus(),I.insertNode(w),CKEDITOR.env.needsBrFiller&&($=w.getBogus())&&$.remove(),I.moveToPosition(w,CKEDITOR.POSITION_BEFORE_END)),(D=I.startPath().block)&&!D.equals(O)&&(($=D.getBogus())&&($.remove(),T.push(D)),O=D),E.firstNotAllowed&&(v=1),v&&E.isElement){for(D=I.startContainer,R=null;D&&!u[D.getName()][E.name];){if(D.equals(_)){D=null;break}R=D,D=D.getParent()}if(D)R&&(k=I.splitElement(R),d.zombies.push(k),d.zombies.push(R));else{R=_.getName(),x=!g,D=g==p.length-1,R=n(E.node,R);for(var S=[],A=R.length,N=0,P=void 0,M=0,K=-1;N<A;N++)P=R[N]," "==P?(M||x&&!N||(S.push(new CKEDITOR.dom.text(" ")),K=S.length),M=1):(S.push(P),M=0);D&&K==S.length&&S.pop(),x=S}}if(x){for(;D=x.pop();)I.insertNode(D);x=0}else I.insertNode(E.node);E.lastNotAllowed&&g<p.length-1&&((k=C?y:k)&&I.setEndAt(k,CKEDITOR.POSITION_AFTER_START),v=0),I.collapse()}}1!=p.length?$=!1:($=p[0],$=$.isElement&&"false"==$.node.getAttribute("contenteditable")),$&&(m=!0,D=p[0].node,I.setStartAt(D,CKEDITOR.POSITION_BEFORE_START),I.setEndAt(D,CKEDITOR.POSITION_AFTER_END)),d.dontMoveCaret=m,d.bogusNeededBlocks=T}$=d.range;var L;for(k=d.bogusNeededBlocks,x=$.createBookmark();O=d.zombies.pop();)O.getParent()&&(w=$.clone(),w.moveToElementEditStart(O),w.removeEmptyBlocksAtEnd());if(k)for(;O=k.pop();)CKEDITOR.env.needsBrFiller?O.appendBogus():O.append($.document.createText(" "));for(;O=d.mergeCandidates.pop();)O.mergeSiblings();if($.moveToBookmark(x),!d.dontMoveCaret){for(O=r($);O&&t(O)&&!O.is(u.$empty);){if(O.isBlockBoundary())$.moveToPosition(O,CKEDITOR.POSITION_BEFORE_END);else{if(o(O)&&O.getHtml().match(/(\s| )$/g)){L=null;break}L=$.clone(),L.moveToPosition(O,CKEDITOR.POSITION_BEFORE_END)}O=O.getLast(i)}L&&$.moveToRange(L)}}}}(),g=function(){function t(t){return t=new CKEDITOR.dom.walker(t),t.guard=function(t,e){return!e&&(t.type==CKEDITOR.NODE_ELEMENT?t.is(CKEDITOR.dtd.$tableContent):void 0)},t.evaluator=function(t){return t.type==CKEDITOR.NODE_ELEMENT},t}function e(t,e,n){return e=t.getDocument().createElement(e),t.append(e,n),e}function n(t){var e,n=t.count();for(n;0<n--;)e=t.getItem(n),CKEDITOR.tools.trim(e.getHtml())||(e.appendBogus(),CKEDITOR.env.ie&&9>CKEDITOR.env.version&&e.getChildCount()&&e.getFirst().remove())}return function(i){var r=i.startContainer,o=r.getAscendant("table",1),a=!1;n(o.getElementsByTag("td")),n(o.getElementsByTag("th")),o=i.clone(),o.setStart(r,0),o=t(o).lastBackward(),o||(o=i.clone(),o.setEndAt(r,CKEDITOR.POSITION_BEFORE_END),o=t(o).lastForward(),a=!0),o||(o=r),o.is("table")?(i.setStartAt(o,CKEDITOR.POSITION_BEFORE_START),i.collapse(!0),o.remove()):(o.is({tbody:1,thead:1,tfoot:1})&&(o=e(o,"tr",a)),o.is("tr")&&(o=e(o,o.getParent().is("thead")?"th":"td",a)),(r=o.getBogus())&&r.remove(),i.moveToPosition(o,a?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}(),v={eol:{detect:function(t,e){var n=t.range,i=n.clone(),r=n.clone(),o=new CKEDITOR.dom.elementPath(n.startContainer,e),a=new CKEDITOR.dom.elementPath(n.endContainer,e);i.collapse(1),r.collapse(),o.block&&i.checkBoundaryOfElement(o.block,CKEDITOR.END)&&(n.setStartAfter(o.block),t.prependEolBr=1),a.block&&r.checkBoundaryOfElement(a.block,CKEDITOR.START)&&(n.setEndBefore(a.block),t.appendEolBr=1)},fix:function(t,e){var n,i=e.getDocument();t.appendEolBr&&(n=this.createEolBr(i),t.fragment.append(n)),!t.prependEolBr||n&&!n.getPrevious()||t.fragment.append(this.createEolBr(i),1)},createEolBr:function(t){return t.createElement("br",{attributes:{"data-cke-eol":1}})}},bogus:{exclude:function(t){var e=t.range.getBoundaryNodes(),n=e.startNode,e=e.endNode;!e||!f(e)||n&&n.equals(e)||t.range.setEndBefore(e)}},tree:{rebuild:function(t,e){var n,i=t.range,r=i.getCommonAncestor(),o=new CKEDITOR.dom.elementPath(r,e),a=new CKEDITOR.dom.elementPath(i.startContainer,e),i=new CKEDITOR.dom.elementPath(i.endContainer,e);if(r.type==CKEDITOR.NODE_TEXT&&(r=r.getParent()),o.blockLimit.is({tr:1,table:1})){var s=o.contains("table").getParent();n=function(t){return!t.equals(s)}}else if(o.block&&o.block.is(CKEDITOR.dtd.$listItem)&&(a=a.contains(CKEDITOR.dtd.$list),i=i.contains(CKEDITOR.dtd.$list),!a.equals(i))){var l=o.contains(CKEDITOR.dtd.$list).getParent();n=function(t){return!t.equals(l)}}n||(n=function(t){return!t.equals(o.block)&&!t.equals(o.blockLimit)}),this.rebuildFragment(t,e,r,n)},rebuildFragment:function(t,e,n,i){for(var r;n&&!n.equals(e)&&i(n);)r=n.clone(0,1),t.fragment.appendTo(r),t.fragment=r,n=n.getParent()}},cell:{shrink:function(t){t=t.range;var e=t.startContainer,n=t.endContainer,i=t.startOffset,r=t.endOffset;e.type==CKEDITOR.NODE_ELEMENT&&e.equals(n)&&e.is("tr")&&++i==r&&t.shrink(CKEDITOR.SHRINK_TEXT)}}},y=function(){function t(t,e){var n=t.getParent();n.is(CKEDITOR.dtd.$inline)&&t[e?"insertBefore":"insertAfter"](n)}function e(e,n,i){t(n),t(i,1);for(var r;r=i.getNext();)r.insertAfter(n),n=r;h(e)&&e.remove()}function n(t,e){var n=new CKEDITOR.dom.range(t);return n.setStartAfter(e.startNode),n.setEndBefore(e.endNode),n}return{list:{detectMerge:function(t,e){var i=n(e,t.bookmark),r=i.startPath(),o=i.endPath(),a=r.contains(CKEDITOR.dtd.$list),s=o.contains(CKEDITOR.dtd.$list);t.mergeList=a&&s&&a.getParent().equals(s.getParent())&&!a.equals(s),t.mergeListItems=r.block&&o.block&&r.block.is(CKEDITOR.dtd.$listItem)&&o.block.is(CKEDITOR.dtd.$listItem),(t.mergeList||t.mergeListItems)&&(i=i.clone(),i.setStartBefore(t.bookmark.startNode),i.setEndAfter(t.bookmark.endNode),t.mergeListBookmark=i.createBookmark())},merge:function(t,n){if(t.mergeListBookmark){var i=t.mergeListBookmark.startNode,r=t.mergeListBookmark.endNode,o=new CKEDITOR.dom.elementPath(i,n),a=new CKEDITOR.dom.elementPath(r,n);if(t.mergeList){var s=o.contains(CKEDITOR.dtd.$list),l=a.contains(CKEDITOR.dtd.$list);s.equals(l)||(l.moveChildren(s),l.remove())}t.mergeListItems&&(o=o.contains(CKEDITOR.dtd.$listItem),a=a.contains(CKEDITOR.dtd.$listItem),o.equals(a)||e(a,i,r)),i.remove(),r.remove()}}},block:{detectMerge:function(t,e){if(!t.tableContentsRanges&&!t.mergeListBookmark){var n=new CKEDITOR.dom.range(e);n.setStartBefore(t.bookmark.startNode),n.setEndAfter(t.bookmark.endNode),t.mergeBlockBookmark=n.createBookmark()}},merge:function(t,n){if(t.mergeBlockBookmark&&!t.purgeTableBookmark){var i=t.mergeBlockBookmark.startNode,r=t.mergeBlockBookmark.endNode,o=new CKEDITOR.dom.elementPath(i,n),a=new CKEDITOR.dom.elementPath(r,n),o=o.block,a=a.block;o&&a&&!o.equals(a)&&e(a,i,r),i.remove(),r.remove()}}},table:function(){function t(t){var n,r=[],o=new CKEDITOR.dom.walker(t),a=t.startPath().contains(i),s=t.endPath().contains(i),l={};return o.guard=function(o,c){if(o.type==CKEDITOR.NODE_ELEMENT){var u="visited_"+(c?"out":"in");if(o.getCustomData(u))return;CKEDITOR.dom.element.setMarker(l,o,u,1)}c&&a&&o.equals(a)?(n=t.clone(),n.setEndAt(a,CKEDITOR.POSITION_BEFORE_END),r.push(n)):!c&&s&&o.equals(s)?(n=t.clone(),n.setStartAt(s,CKEDITOR.POSITION_AFTER_START),r.push(n)):((u=!c)&&(u=o.type==CKEDITOR.NODE_ELEMENT&&o.is(i)&&(!a||e(o,a))&&(!s||e(o,s))),u&&(n=t.clone(),n.selectNodeContents(o),r.push(n)))},o.lastForward(),CKEDITOR.dom.element.clearAllMarkers(l),r}function e(t,e){var n=CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED,i=t.getPosition(e);return i!==CKEDITOR.POSITION_IDENTICAL&&0==(i&n)}var i={td:1,th:1,caption:1};return{detectPurge:function(t){var e=t.range,n=e.clone();n.enlarge(CKEDITOR.ENLARGE_ELEMENT);var n=new CKEDITOR.dom.walker(n),r=0;if(n.evaluator=function(t){t.type==CKEDITOR.NODE_ELEMENT&&t.is(i)&&++r},n.checkForward(),1<r){var n=e.startPath().contains("table"),o=e.endPath().contains("table");n&&o&&e.checkBoundaryOfElement(n,CKEDITOR.START)&&e.checkBoundaryOfElement(o,CKEDITOR.END)&&(e=t.range.clone(),e.setStartBefore(n),e.setEndAfter(o),t.purgeTableBookmark=e.createBookmark())}},detectRanges:function(r,o){var a,s,l=n(o,r.bookmark),c=l.clone(),u=l.getCommonAncestor();u.is(CKEDITOR.dtd.$tableContent)&&!u.is(i)&&(u=u.getAscendant("table",!0)),s=u,u=new CKEDITOR.dom.elementPath(l.startContainer,s),s=new CKEDITOR.dom.elementPath(l.endContainer,s),u=u.contains("table"),s=s.contains("table"),(u||s)&&(u&&s&&e(u,s)?(r.tableSurroundingRange=c,c.setStartAt(u,CKEDITOR.POSITION_AFTER_END),c.setEndAt(s,CKEDITOR.POSITION_BEFORE_START),c=l.clone(),c.setEndAt(u,CKEDITOR.POSITION_AFTER_END),a=l.clone(),a.setStartAt(s,CKEDITOR.POSITION_BEFORE_START),a=t(c).concat(t(a))):u?s||(r.tableSurroundingRange=c,c.setStartAt(u,CKEDITOR.POSITION_AFTER_END),l.setEndAt(u,CKEDITOR.POSITION_AFTER_END)):(r.tableSurroundingRange=c,c.setEndAt(s,CKEDITOR.POSITION_BEFORE_START),l.setStartAt(s,CKEDITOR.POSITION_AFTER_START)),r.tableContentsRanges=a||t(l))},deleteRanges:function(t){for(var e;e=t.tableContentsRanges.pop();)e.extractContents(),h(e.startContainer)&&e.startContainer.appendBogus();t.tableSurroundingRange&&t.tableSurroundingRange.extractContents()},purge:function(t){if(t.purgeTableBookmark){var e=t.doc,n=t.range.clone(),e=e.createElement("p");e.insertBefore(t.purgeTableBookmark.startNode),n.moveToBookmark(t.purgeTableBookmark),n.deleteContents(),t.range.moveToPosition(e,CKEDITOR.POSITION_AFTER_START)}}}}(),detectExtractMerge:function(t){return!(t.range.startPath().contains(CKEDITOR.dtd.$listItem)&&t.range.endPath().contains(CKEDITOR.dtd.$listItem))},fixUneditableRangePosition:function(t){t.startContainer.getDtd()["#"]||t.moveToClosestEditablePosition(null,!0)},autoParagraph:function(t,e){var n,i=e.startPath();a(t,i.block,i.blockLimit)&&(n=s(t))&&(n=e.document.createElement(n),n.appendBogus(),e.insertNode(n),e.moveToPosition(n,CKEDITOR.POSITION_AFTER_START))}}}()}(),function(){function t(){var t,e=this._.fakeSelection;if(e&&((t=this.getSelection(1))&&t.isHidden()||(e.reset(),e=0)),(e||(e=t||this.getSelection(1))&&e.getType()!=CKEDITOR.SELECTION_NONE)&&(this.fire("selectionCheck",e),t=this.elementPath(),!t.compare(this._.selectionPreviousPath))){var n=this._.selectionPreviousPath&&this._.selectionPreviousPath.blockLimit.equals(t.blockLimit);CKEDITOR.env.webkit&&!n&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=t,this.fire("selectionChange",{selection:e,path:t})}}function e(){h=!0,d||(n.call(this),d=CKEDITOR.tools.setTimeout(n,200,this))}function n(){d=null,h&&(CKEDITOR.tools.setTimeout(t,0,this),h=!1)}function i(t){return!(!v(t)&&(t.type!=CKEDITOR.NODE_ELEMENT||t.is(CKEDITOR.dtd.$empty)))}function r(t){function e(e,n){return!(!e||e.type==CKEDITOR.NODE_TEXT)&&t.clone()["moveToElementEdit"+(n?"End":"Start")](e)}if(!(t.root instanceof CKEDITOR.editable))return!1;var n=t.startContainer,r=t.getPreviousNode(i,null,n),o=t.getNextNode(i,null,n);return!(!e(r)&&!e(o,1)&&(r||o||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()&&n.getBogus()))}function o(t){a(t,!1);var e=t.getDocument().createText(m);return t.setCustomData("cke-fillingChar",e),e}function a(t,e){var n=t&&t.removeCustomData("cke-fillingChar");if(n){if(!1!==e){var i=t.getDocument().getSelection().getNative(),r=i&&"None"!=i.type&&i.getRangeAt(0),o=m.length;if(n.getLength()>o&&r&&r.intersectsNode(n.$)){var a=[{node:i.anchorNode,offset:i.anchorOffset},{node:i.focusNode,offset:i.focusOffset}];i.anchorNode==n.$&&i.anchorOffset>o&&(a[0].offset-=o),i.focusNode==n.$&&i.focusOffset>o&&(a[1].offset-=o)}}n.setText(s(n.getText(),1)),a&&(n=t.getDocument().$,i=n.getSelection(),n=n.createRange(),n.setStart(a[0].node,a[0].offset),n.collapse(!0),i.removeAllRanges(),i.addRange(n),i.extend(a[1].node,a[1].offset))}}function s(t,e){return e?t.replace(g,function(t,e){return e?" ":""}):t.replace(m,"")}function l(t,e){var n=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie&&14>CKEDITOR.env.version?"display:none":"position:fixed;top:0;left:-1000px")+'">'+(e||" ")+"</div>",t.document);t.fire("lockSnapshot"),t.editable().append(n);var i=t.getSelection(1),r=t.createRange(),o=i.root.on("selectionchange",function(t){t.cancel()},null,null,0);r.setStartAt(n,CKEDITOR.POSITION_AFTER_START),r.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),i.selectRanges([r]),o.removeListener(),t.fire("unlockSnapshot"),t._.hiddenSelectionContainer=n}function c(t){var e={37:1,39:1,8:1,46:1};return function(n){var i=n.data.getKeystroke();if(e[i]){var r=t.getSelection().getRanges(),o=r[0];1==r.length&&o.collapsed&&(i=o[38>i?"getPreviousEditableNode":"getNextEditableNode"]())&&i.type==CKEDITOR.NODE_ELEMENT&&"false"==i.getAttribute("contenteditable")&&(t.getSelection().fake(i),n.data.preventDefault(),n.cancel())}}}function u(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.getCommonAncestor().isReadOnly()&&t.splice(e,1),!n.collapsed){if(n.startContainer.isReadOnly())for(var i,r=n.startContainer;r&&!((i=r.type==CKEDITOR.NODE_ELEMENT)&&r.is("body")||!r.isReadOnly());)i&&"false"==r.getAttribute("contentEditable")&&n.setStartAfter(r),r=r.getParent();r=n.startContainer,i=n.endContainer;var o=n.startOffset,a=n.endOffset,s=n.clone();r&&r.type==CKEDITOR.NODE_TEXT&&(o>=r.getLength()?s.setStartAfter(r):s.setStartBefore(r)),i&&i.type==CKEDITOR.NODE_TEXT&&(a?s.setEndAfter(i):s.setEndBefore(i)),r=new CKEDITOR.dom.walker(s),r.evaluator=function(i){if(i.type==CKEDITOR.NODE_ELEMENT&&i.isReadOnly()){var r=n.clone();return n.setEndBefore(i),n.collapsed&&t.splice(e--,1),i.getPosition(s.endContainer)&CKEDITOR.POSITION_CONTAINS||(r.setStartAfter(i),r.collapsed||t.splice(e+1,0,r)),!0}return!1},r.next()}}return t}var d,h,f="function"!=typeof window.getSelection,p=1,m=CKEDITOR.tools.repeat("​",7),g=new RegExp(m+"( )?","g"),v=CKEDITOR.dom.walker.invisible(1),y=function(){function t(t){return function(e){var n=e.editor.createRange();return n.moveToClosestEditablePosition(e.selected,t)&&e.editor.getSelection().selectRanges([n]),!1}}function e(t){return function(e){var n,i=e.editor,r=i.createRange();return(n=r.moveToClosestEditablePosition(e.selected,t))||(n=r.moveToClosestEditablePosition(e.selected,!t)),n&&i.getSelection().selectRanges([r]),i.fire("saveSnapshot"),e.selected.remove(),n||(r.moveToElementEditablePosition(i.editable()),i.getSelection().selectRanges([r])),i.fire("saveSnapshot"),!1}}var n=t(),i=t(1);return{37:n,38:n,39:i,40:i,8:e(),46:e(1)}}();CKEDITOR.on("instanceCreated",function(n){function i(){var t=r.getSelection();t&&t.removeAllRanges()}var r=n.editor;r.on("contentDom",function(){function n(){s=new CKEDITOR.dom.selection(r.getSelection()),s.lock()}function i(){u.removeListener("mouseup",i),p.removeListener("mouseup",i);var t=CKEDITOR.document.$.selection,e=t.createRange();"None"!=t.type&&e.parentElement().ownerDocument==l.$&&e.select()}var o,s,l=r.document,u=CKEDITOR.document,d=r.editable(),h=l.getBody(),p=l.getDocumentElement(),m=d.isInline();if(CKEDITOR.env.gecko&&d.attachListener(d,"focus",function(t){t.removeListener(),0!==o&&(t=r.getSelection().getNative())&&t.isCollapsed&&t.anchorNode==d.$&&(t=r.createRange(),t.moveToElementEditStart(d),t.select())},null,null,-2),d.attachListener(d,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){o&&CKEDITOR.env.webkit&&(o=r._.previousActive&&r._.previousActive.equals(l.getActive()))&&null!=r._.previousScrollTop&&r._.previousScrollTop!=d.$.scrollTop&&(d.$.scrollTop=r._.previousScrollTop),r.unlockSelection(o),o=0},null,null,-1),d.attachListener(d,"mousedown",function(){o=0}),(CKEDITOR.env.ie||m)&&(f?d.attachListener(d,"beforedeactivate",n,null,null,-1):d.attachListener(r,"selectionCheck",n,null,null,-1),d.attachListener(d,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){r.lockSelection(s),o=1},null,null,-1),d.attachListener(d,"mousedown",function(){o=0})),CKEDITOR.env.ie&&!m){var g;if(d.attachListener(d,"mousedown",function(t){2==t.data.$.button&&((t=r.document.getSelection())&&t.getType()!=CKEDITOR.SELECTION_NONE||(g=r.window.getScrollPosition()))}),d.attachListener(d,"mouseup",function(t){2==t.data.$.button&&g&&(r.document.$.documentElement.scrollLeft=g.x,r.document.$.documentElement.scrollTop=g.y),g=null}),"BackCompat"!=l.$.compatMode){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat){var v,y;p.on("mousedown",function(t){function e(t){if(t=t.data.$,v){var e=h.$.createTextRange();try{e.moveToPoint(t.clientX,t.clientY)}catch(r){}v.setEndPoint(0>y.compareEndPoints("StartToStart",e)?"EndToEnd":"StartToStart",e),v.select()}}function n(){p.removeListener("mousemove",e),u.removeListener("mouseup",n),p.removeListener("mouseup",n),v.select()}if(t=t.data,t.getTarget().is("html")&&t.$.y<p.$.clientHeight&&t.$.x<p.$.clientWidth){v=h.$.createTextRange();try{v.moveToPoint(t.$.clientX,t.$.clientY)}catch(r){}y=v.duplicate(),p.on("mousemove",e),u.on("mouseup",n),p.on("mouseup",n)}})}7<CKEDITOR.env.version&&11>CKEDITOR.env.version&&p.on("mousedown",function(t){t.data.getTarget().is("html")&&(u.on("mouseup",i),p.on("mouseup",i))})}}if(d.attachListener(d,"selectionchange",t,r),d.attachListener(d,"keyup",e,r),d.attachListener(d,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){r.forceNextSelectionCheck(),r.selectionChange(1)}),m&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var E;d.attachListener(d,"mousedown",function(){E=1}),d.attachListener(l.getDocumentElement(),"mouseup",function(){E&&e.call(r),E=0})}else d.attachListener(CKEDITOR.env.ie?d:l.getDocumentElement(),"mouseup",e,r);CKEDITOR.env.webkit&&d.attachListener(l,"keydown",function(t){switch(t.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:a(d)}},null,null,-1),d.attachListener(d,"keydown",c(r),null,null,-1)}),r.on("setData",function(){r.unlockSelection(),CKEDITOR.env.webkit&&i()}),r.on("contentDomUnload",function(){r.unlockSelection()}),CKEDITOR.env.ie9Compat&&r.on("beforeDestroy",i,null,null,9),r.on("dataReady",function(){delete r._.fakeSelection,delete r._.hiddenSelectionContainer,r.selectionChange(1)}),r.on("loadSnapshot",function(){var t=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT),e=r.editable().getLast(t);e&&e.hasAttribute("data-cke-hidden-sel")&&(e.remove(),CKEDITOR.env.gecko&&(t=r.editable().getFirst(t))&&t.is("br")&&t.getAttribute("_moz_editor_bogus_node")&&t.remove())},null,null,100),r.on("key",function(t){if("wysiwyg"==r.mode){var e=r.getSelection();if(e.isFake){var n=y[t.data.keyCode];if(n)return n({editor:r,selected:e.getSelectedElement(),selection:e,keyEvent:t})}}})}),CKEDITOR.env.webkit&&CKEDITOR.on("instanceReady",function(t){var e=t.editor;e.on("selectionChange",function(){var t=e.editable(),n=t.getCustomData("cke-fillingChar");n&&(n.getCustomData("ready")?a(t):n.setCustomData("ready",1))},null,null,-1),e.on("beforeSetMode",function(){a(e.editable())},null,null,-1),e.on("getSnapshot",function(t){t.data&&(t.data=s(t.data))},e,null,20),e.on("toDataFormat",function(t){t.data.dataValue=s(t.data.dataValue)},null,null,0)}),CKEDITOR.editor.prototype.selectionChange=function(n){(n?t:e).call(this)},CKEDITOR.editor.prototype.getSelection=function(t){return!this._.savedSelection&&!this._.fakeSelection||t?(t=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(t):null:this._.savedSelection||this._.fakeSelection},CKEDITOR.editor.prototype.lockSelection=function(t){return t=t||this.getSelection(1),t.getType()!=CKEDITOR.SELECTION_NONE&&(!t.isLocked&&t.lock(),this._.savedSelection=t,!0)},CKEDITOR.editor.prototype.unlockSelection=function(t){var e=this._.savedSelection;return!!e&&(e.unlock(t),delete this._.savedSelection,!0)},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var t=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return t.selectRanges([this]),t},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3,CKEDITOR.dom.selection=function(t){if(t instanceof CKEDITOR.dom.selection){var e=t;t=t.root}var n=t instanceof CKEDITOR.dom.element;if(this.rev=e?e.rev:p++,this.document=t instanceof CKEDITOR.dom.document?t:t.getDocument(),this.root=n?t:this.document.getBody(),this.isLocked=0,this._={cache:{}},e)return CKEDITOR.tools.extend(this._.cache,e._.cache),this.isFake=e.isFake,this.isLocked=e.isLocked,this;t=this.getNative();var i,r;if(t)if(t.getRangeAt)i=(r=t.rangeCount&&t.getRangeAt(0))&&new CKEDITOR.dom.node(r.commonAncestorContainer);else{try{r=t.createRange()}catch(u){}i=r&&CKEDITOR.dom.element.get(r.item&&r.item(0)||r.parentElement())}return(!i||i.type!=CKEDITOR.NODE_ELEMENT&&i.type!=CKEDITOR.NODE_TEXT||!this.root.equals(i)&&!this.root.contains(i))&&(this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList),this};var E={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.tools.extend(CKEDITOR.dom.selection,{_removeFillingCharSequenceString:s,_createFillingCharSequenceNode:o,FILLING_CHAR_SEQUENCE:m}),CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=f?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:f?function(){var t=this._.cache;if(t.type)return t.type;var e=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),i=n.type;"Text"==i&&(e=CKEDITOR.SELECTION_TEXT),"Control"==i&&(e=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&(e=CKEDITOR.SELECTION_TEXT)}catch(s){}return t.type=e}:function(){var t=this._.cache;if(t.type)return t.type;var e=CKEDITOR.SELECTION_TEXT,n=this.getNative();if(n&&n.rangeCount){if(1==n.rangeCount){var n=n.getRangeAt(0),i=n.startContainer;i==n.endContainer&&1==i.nodeType&&1==n.endOffset-n.startOffset&&E[i.childNodes[n.startOffset].nodeName.toLowerCase()]&&(e=CKEDITOR.SELECTION_ELEMENT)}}else e=CKEDITOR.SELECTION_NONE;return t.type=e},getRanges:function(){var t=f?function(){function t(t){return new CKEDITOR.dom.node(t).getIndex()}var e=function(e,n){e=e.duplicate(),e.collapse(n);var i=e.parentElement();if(!i.hasChildNodes())return{container:i,offset:0};for(var r,o,a,s,l=i.children,c=e.duplicate(),u=0,d=l.length-1,h=-1;u<=d;)if(h=Math.floor((u+d)/2),r=l[h],c.moveToElementText(r),0<(a=c.compareEndPoints("StartToStart",e)))d=h-1;else{if(!(0>a))return{container:i,offset:t(r)};u=h+1}if(-1==h||h==l.length-1&&0>a){if(c.moveToElementText(i),c.setEndPoint("StartToStart",e),c=c.text.replace(/(\r\n|\r)/g,"\n").length,l=i.childNodes,!c)return r=l[l.length-1],r.nodeType!=CKEDITOR.NODE_TEXT?{container:i,offset:l.length}:{container:r,offset:r.nodeValue.length};for(i=l.length;0<c&&0<i;)o=l[--i],o.nodeType==CKEDITOR.NODE_TEXT&&(s=o,c-=o.nodeValue.length);return{container:s,offset:-c}}if(c.collapse(0<a),c.setEndPoint(0<a?"StartToStart":"EndToStart",e),!(c=c.text.replace(/(\r\n|\r)/g,"\n").length))return{container:i,offset:t(r)+(0<a?0:1)};for(;0<c;)try{o=r[0<a?"previousSibling":"nextSibling"],o.nodeType==CKEDITOR.NODE_TEXT&&(c-=o.nodeValue.length,s=o),r=o}catch(h){return{container:i,offset:t(r)}}return{container:s,offset:0<a?-c:s.nodeValue.length+c}};return function(){var t=this.getNative(),n=t&&t.createRange(),i=this.getType();if(!t)return[];if(i==CKEDITOR.SELECTION_TEXT)return t=new CKEDITOR.dom.range(this.root),i=e(n,!0),t.setStart(new CKEDITOR.dom.node(i.container),i.offset),i=e(n),t.setEnd(new CKEDITOR.dom.node(i.container),i.offset),t.endContainer.getPosition(t.startContainer)&CKEDITOR.POSITION_PRECEDING&&t.endOffset<=t.startContainer.getIndex()&&t.collapse(),[t];if(i==CKEDITOR.SELECTION_ELEMENT){for(var i=[],r=0;r<n.length;r++){for(var o=n.item(r),a=o.parentNode,s=0,t=new CKEDITOR.dom.range(this.root);s<a.childNodes.length&&a.childNodes[s]!=o;s++);t.setStart(new CKEDITOR.dom.node(a),s),t.setEnd(new CKEDITOR.dom.node(a),s+1),i.push(t)}return i}return[]}}():function(){var t,e=[],n=this.getNative();if(!n)return e;for(var i=0;i<n.rangeCount;i++){var r=n.getRangeAt(i);t=new CKEDITOR.dom.range(this.root),t.setStart(new CKEDITOR.dom.node(r.startContainer),r.startOffset),t.setEnd(new CKEDITOR.dom.node(r.endContainer),r.endOffset),e.push(t)}return e};return function(e){var n=this._.cache,i=n.ranges;return i||(n.ranges=i=new CKEDITOR.dom.rangeList(t.call(this))),e?u(new CKEDITOR.dom.rangeList(i.slice())):i}}(),getStartElement:function(){var t=this._.cache;if(void 0!==t.startElement)return t.startElement;var e;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var n=this.getRanges()[0];if(n){if(n.collapsed)e=n.startContainer,e.type!=CKEDITOR.NODE_ELEMENT&&(e=e.getParent());else{for(n.optimize();e=n.startContainer,n.startOffset==(e.getChildCount?e.getChildCount():e.getLength())&&!e.isBlockBoundary();)n.setStartAfter(e);if(e=n.startContainer,e.type!=CKEDITOR.NODE_ELEMENT)return e.getParent();if((e=e.getChild(n.startOffset))&&e.type==CKEDITOR.NODE_ELEMENT)for(n=e.getFirst();n&&n.type==CKEDITOR.NODE_ELEMENT;)e=n,n=n.getFirst();else e=n.startContainer}e=e.$}}return t.startElement=e?new CKEDITOR.dom.element(e):null},getSelectedElement:function(){var t=this._.cache;if(void 0!==t.selectedElement)return t.selectedElement;var e=this,n=CKEDITOR.tools.tryThese(function(){return e.getNative().createRange().item(0)},function(){for(var t,n,i=e.getRanges()[0].clone(),r=2;r&&!((t=i.getEnclosedNode())&&t.type==CKEDITOR.NODE_ELEMENT&&E[t.getName()]&&(n=t));r--)i.shrink(CKEDITOR.SHRINK_ELEMENT);return n&&n.$});return t.selectedElement=n?new CKEDITOR.dom.element(n):null},getSelectedText:function(){var t=this._.cache;if(void 0!==t.selectedText)return t.selectedText;var e=this.getNative(),e=f?"Control"==e.type?"":e.createRange().text:e.toString();return t.selectedText=e},lock:function(){this.getRanges(),this.getStartElement(),this.getSelectedElement(),this.getSelectedText(),this._.cache.nativeSel=null,this.isLocked=1},unlock:function(t){if(this.isLocked){if(t)var e=this.getSelectedElement(),n=!e&&this.getRanges(),i=this.isFake;this.isLocked=0,this.reset(),t&&(t=e||n[0]&&n[0].getCommonAncestor())&&t.getAscendant("body",1)&&(i?this.fake(e):e?this.selectElement(e):this.selectRanges(n))}},reset:function(){this._.cache={},this.isFake=0;var t=this.root.editor;if(t&&t._.fakeSelection)if(this.rev==t._.fakeSelection.rev){delete t._.fakeSelection;var e=t._.hiddenSelectionContainer;if(e){var n=t.checkDirty();t.fire("lockSnapshot"),e.remove(),t.fire("unlockSnapshot"),!n&&t.resetDirty()}delete t._.hiddenSelectionContainer}else CKEDITOR.warn("selection-fake-reset");this.rev=p++},selectElement:function(t){var e=new CKEDITOR.dom.range(this.root);e.setStartBefore(t),e.setEndAfter(t),this.selectRanges([e])},selectRanges:function(t){var e=this.root.editor,e=e&&e._.hiddenSelectionContainer;if(this.reset(),e)for(var n,e=this.root,i=0;i<t.length;++i)n=t[i],n.endContainer.equals(e)&&(n.endOffset=Math.min(n.endOffset,e.getChildCount()));if(t.length)if(this.isLocked){var s=CKEDITOR.document.getActive();this.unlock(),this.selectRanges(t),this.lock(),s&&!s.equals(this.root)&&s.focus()}else{var l,c,u;if(1==t.length&&!(u=t[0]).collapsed&&(l=u.getEnclosedNode())&&l.type==CKEDITOR.NODE_ELEMENT&&(u=u.clone(),u.shrink(CKEDITOR.SHRINK_ELEMENT,!0),(c=u.getEnclosedNode())&&c.type==CKEDITOR.NODE_ELEMENT&&(l=c),"false"==l.getAttribute("contenteditable"))||(l=void 0),l)this.fake(l);else{if(f){u=CKEDITOR.dom.walker.whitespaces(!0),c=/\ufeff|\u00a0/,e={table:1,tbody:1,tr:1},1<t.length&&(l=t[t.length-1],t[0].setEnd(l.endContainer,l.endOffset)),l=t[0],t=l.collapsed;var d,h,p;if((n=l.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in E&&(!n.is("a")||!n.getText()))try{return p=n.$.createControlRange(),p.addElement(n.$),void p.select()}catch(d){}(l.startContainer.type==CKEDITOR.NODE_ELEMENT&&l.startContainer.getName()in e||l.endContainer.type==CKEDITOR.NODE_ELEMENT&&l.endContainer.getName()in e)&&(l.shrink(CKEDITOR.NODE_ELEMENT,!0),t=l.collapsed),p=l.createBookmark(),e=p.startNode,t||(s=p.endNode),p=l.document.$.body.createTextRange(),p.moveToElementText(e.$),p.moveStart("character",1),s?(c=l.document.$.body.createTextRange(),c.moveToElementText(s.$),p.setEndPoint("EndToEnd",c),p.moveEnd("character",-1)):(d=e.getNext(u),h=e.hasAscendant("pre"),d=!(d&&d.getText&&d.getText().match(c))&&(h||!e.hasPrevious()||e.getPrevious().is&&e.getPrevious().is("br")),h=l.document.createElement("span"),h.setHtml(""),h.insertBefore(e),d&&l.document.createText("\ufeff").insertBefore(e)),l.setStartBefore(e),e.remove(),t?(d?(p.moveStart("character",-1),p.select(),l.document.$.selection.clear()):p.select(),l.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START),h.remove()):(l.setEndBefore(s),s.remove(),p.select())}else{if(!(s=this.getNative()))return;for(this.removeAllRanges(),p=0;p<t.length;p++)if(p<t.length-1&&(d=t[p],h=t[p+1],c=d.clone(),c.setStart(d.endContainer,d.endOffset),c.setEnd(h.startContainer,h.startOffset),!c.collapsed&&(c.shrink(CKEDITOR.NODE_ELEMENT,!0),l=c.getCommonAncestor(),c=c.getEnclosedNode(),l.isReadOnly()||c&&c.isReadOnly())))h.setStart(d.startContainer,d.startOffset),t.splice(p--,1);else{l=t[p],h=this.document.$.createRange(),l.collapsed&&CKEDITOR.env.webkit&&r(l)&&(c=o(this.root),l.insertNode(c),(d=c.getNext())&&!c.getPrevious()&&d.type==CKEDITOR.NODE_ELEMENT&&"br"==d.getName()?(a(this.root),l.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START)):l.moveToPosition(c,CKEDITOR.POSITION_AFTER_END)),h.setStart(l.startContainer.$,l.startOffset);try{h.setEnd(l.endContainer.$,l.endOffset)}catch(m){if(!(0<=m.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")))throw m;l.collapse(1),h.setEnd(l.endContainer.$,l.endOffset)}s.addRange(h)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(t,e){var n=this.root.editor;void 0===e&&t.hasAttribute("aria-label")&&(e=t.getAttribute("aria-label")),this.reset(),l(n,e);var i=this._.cache,r=new CKEDITOR.dom.range(this.root);r.setStartBefore(t),r.setEndAfter(t),i.ranges=new CKEDITOR.dom.rangeList(r),i.selectedElement=i.startElement=t,i.type=CKEDITOR.SELECTION_ELEMENT,i.selectedText=i.nativeSel=null,this.isFake=1,this.rev=p++,n._.fakeSelection=this,this.root.fire("selectionchange")},isHidden:function(){var t=this.getCommonAncestor();return t&&t.type==CKEDITOR.NODE_TEXT&&(t=t.getParent()),!(!t||!t.data("cke-hidden-sel"))},createBookmarks:function(t){return t=this.getRanges().createBookmarks(t),this.isFake&&(t.isFake=1),t},createBookmarks2:function(t){return t=this.getRanges().createBookmarks2(t),this.isFake&&(t.isFake=1),t},selectBookmarks:function(t){for(var e,n=[],i=0;i<t.length;i++){var r=new CKEDITOR.dom.range(this.root);r.moveToBookmark(t[i]),n.push(r)}return t.isFake&&((e=n[0].getEnclosedNode())&&e.type==CKEDITOR.NODE_ELEMENT||(CKEDITOR.warn("selection-not-fake"),t.isFake=0)),t.isFake?this.fake(e):this.selectRanges(n),this},getCommonAncestor:function(){var t=this.getRanges();return t.length?t[0].startContainer.getCommonAncestor(t[t.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var t=this.getNative();try{t&&t[f?"empty":"removeAllRanges"]()}catch(n){}this.reset()}}}}(),CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function t(t,e){for(var n,i;(t=t.getParent())&&!t.equals(e);)if(t.getAttribute("data-nostyle"))n=t;else if(!i){var r=t.getAttribute("contentEditable");"false"==r?n=t:"true"==r&&(i=1)}return n}function e(t,e,n,i){return(t.getPosition(e)|i)==i&&(!n.childRule||n.childRule(t))}function n(i){var o=i.document;if(i.collapsed)o=v(this,o),i.insertNode(o),i.moveToPosition(o,CKEDITOR.POSITION_BEFORE_END);else{var a,s=this.element,l=this._.definition,c=l.ignoreReadonly,u=c||l.includeReadonly;null==u&&(u=i.root.getCustomData("cke_includeReadonly"));var d=CKEDITOR.dtd[s];d||(a=!0,d=CKEDITOR.dtd.span),i.enlarge(CKEDITOR.ENLARGE_INLINE,1),i.trim();var h,f=i.createBookmark(),m=f.startNode,g=f.endNode,y=m;if(!c){var E=i.getCommonAncestor(),c=t(m,E),E=t(g,E);c&&(y=c.getNextSourceNode(!0)),E&&(g=E)}for(y.getPosition(g)==CKEDITOR.POSITION_FOLLOWING&&(y=0);y;){if(c=!1,y.equals(g))y=null,c=!0;else{var b=y.type==CKEDITOR.NODE_ELEMENT?y.getName():null,E=b&&"false"==y.getAttribute("contentEditable"),_=b&&y.getAttribute("data-nostyle");if(b&&y.data("cke-bookmark")){y=y.getNextSourceNode(!0);continue}if(E&&u&&CKEDITOR.dtd.$block[b])for(var C=y,T=r(C),I=void 0,D=T.length,$=0,C=D&&new CKEDITOR.dom.range(C.getDocument());$<D;++$){var I=T[$],O=CKEDITOR.filter.instances[I.data("cke-filter")];(O?O.check(this):1)&&(C.selectNodeContents(I),n.call(this,C))}if(T=b?!d[b]||_?0:E&&!u?0:e(y,g,l,k):1){if(I=y.getParent(),T=l,D=s,$=a,!I||!(I.getDtd()||CKEDITOR.dtd.span)[D]&&!$||T.parentRule&&!T.parentRule(I))c=!0;else if(h||b&&CKEDITOR.dtd.$removeEmpty[b]&&(y.getPosition(g)|k)!=k||(h=i.clone(),h.setStartBefore(y)),(b=y.type)==CKEDITOR.NODE_TEXT||E||b==CKEDITOR.NODE_ELEMENT&&!y.getChildCount()){for(var R,b=y;(c=!b.getNext(w))&&(R=b.getParent(),d[R.getName()])&&e(R,m,l,x);)b=R;h.setEndAfter(b)}}else c=!0;y=y.getNextSourceNode(_||E)}if(c&&h&&!h.collapsed){for(var S,A,N,c=v(this,o),E=c.hasAttributes(),_=h.getCommonAncestor(),b={},T={},I={},D={};c&&_;){if(_.getName()==s){for(S in l.attributes)!D[S]&&(N=_.getAttribute(A))&&(c.getAttribute(S)==N?T[S]=1:D[S]=1);for(A in l.styles)!I[A]&&(N=_.getStyle(A))&&(c.getStyle(A)==N?b[A]=1:I[A]=1)}_=_.getParent()}for(S in T)c.removeAttribute(S);for(A in b)c.removeStyle(A);E&&!c.hasAttributes()&&(c=null),c?(h.extractContents().appendTo(c),h.insertNode(c),p.call(this,c),c.mergeSiblings(),CKEDITOR.env.ie||c.$.normalize()):(c=new CKEDITOR.dom.element("span"),h.extractContents().appendTo(c),h.insertNode(c),p.call(this,c),c.remove(!0)),h=null}}i.moveToBookmark(f),i.shrink(CKEDITOR.SHRINK_TEXT),i.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function i(t){function e(){for(var t=new CKEDITOR.dom.elementPath(i.getParent()),e=new CKEDITOR.dom.elementPath(c.getParent()),n=null,r=null,o=0;o<t.elements.length;o++){var a=t.elements[o];if(a==t.block||a==t.blockLimit)break;u.checkElementRemovable(a,!0)&&(n=a)}for(o=0;o<e.elements.length&&((a=e.elements[o])!=e.block&&a!=e.blockLimit);o++)u.checkElementRemovable(a,!0)&&(r=a);r&&c.breakParent(r),n&&i.breakParent(n)}t.enlarge(CKEDITOR.ENLARGE_INLINE,1);var n=t.createBookmark(),i=n.startNode;if(t.collapsed){for(var r,o,a=new CKEDITOR.dom.elementPath(i.getParent(),t.root),s=0;s<a.elements.length&&(o=a.elements[s])&&o!=a.block&&o!=a.blockLimit;s++)if(this.checkElementRemovable(o)){var l;t.collapsed&&(t.checkBoundaryOfElement(o,CKEDITOR.END)||(l=t.checkBoundaryOfElement(o,CKEDITOR.START)))?(r=o,r.match=l?"start":"end"):(o.mergeSiblings(),o.is(this.element)?f.call(this,o):m(o,b(this)[o.getName()]))}if(r){for(o=i,s=0;l=a.elements[s],!l.equals(r);s++)l.match||(l=l.clone(),l.append(o),o=l);o["start"==r.match?"insertBefore":"insertAfter"](r)}}else{var c=n.endNode,u=this;for(e(),a=i;!a.equals(c);)r=a.getNextSourceNode(),a.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(a)&&(a.getName()==this.element?f.call(this,a):m(a,b(this)[a.getName()]),r.type==CKEDITOR.NODE_ELEMENT&&r.contains(i)&&(e(),r=i.getNext())),a=r}t.moveToBookmark(n),t.shrink(CKEDITOR.NODE_ELEMENT,!0)}function r(t){var e=[];return t.forEach(function(t){if("true"==t.getAttribute("contenteditable"))return e.push(t),!1},CKEDITOR.NODE_ELEMENT,!0),e}function o(t){var e=t.getEnclosedNode()||t.getCommonAncestor(!1,!0);(t=new CKEDITOR.dom.elementPath(e,t.root).contains(this.element,1))&&!t.isReadOnly()&&y(t,this)}function a(t){var e=t.getCommonAncestor(!0,!0);if(t=new CKEDITOR.dom.elementPath(e,t.root).contains(this.element,1)){var e=this._.definition,n=e.attributes;if(n)for(var i in n)t.removeAttribute(i,n[i]);if(e.styles)for(var r in e.styles)e.styles.hasOwnProperty(r)&&t.removeStyle(r)}}function s(t){var e=t.createBookmark(!0),n=t.createIterator();n.enforceRealBlocks=!0,this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var i,r,o=t.document;i=n.getNextParagraph();)!i.isReadOnly()&&(n.activeFilter?n.activeFilter.check(this):1)&&(r=v(this,o,i),c(i,r));t.moveToBookmark(e)}function l(t){var e=t.createBookmark(1),n=t.createIterator();n.enforceRealBlocks=!0,n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var i,r;i=n.getNextParagraph();)this.checkElementRemovable(i)&&(i.is("pre")?((r=this._.enterMode==CKEDITOR.ENTER_BR?null:t.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&i.copyAttributes(r),c(i,r)):f.call(this,i));t.moveToBookmark(e)}function c(t,e){var n=!e;n&&(e=t.getDocument().createElement("div"),t.copyAttributes(e));var i=e&&e.is("pre"),r=t.is("pre"),o=!i&&r;if(i&&!r){if(r=e,(o=t.getBogus())&&o.remove(),o=t.getHtml(),o=d(o,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,""),o=o.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1"),o=o.replace(/([ \t\n\r]+| )/g," "),o=o.replace(/<br\b[^>]*>/gi,"\n"),CKEDITOR.env.ie){var a=t.getDocument().createElement("div");a.append(r),r.$.outerHTML="<pre>"+o+"</pre>",r.copyAttributes(a.getFirst()),r=a.getFirst().remove()}else r.setHtml(o);e=r}else o?e=h(n?[t.getHtml()]:u(t),e):t.moveChildren(e);if(e.replace(t),i){var s,n=e;(s=n.getPrevious(R))&&s.type==CKEDITOR.NODE_ELEMENT&&s.is("pre")&&(i=d(s.getHtml(),/\n$/,"")+"\n\n"+d(n.getHtml(),/^\n/,""),CKEDITOR.env.ie?n.$.outerHTML="<pre>"+i+"</pre>":n.setHtml(i),s.remove())}else n&&g(e)}function u(t){var e=[];return d(t.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(t,e,n){return e+"</pre>"+n+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(t,n){e.push(n)}),e}function d(t,e,n){var i="",r="";return t=t.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(t,e,n){return e&&(i=e),n&&(r=n),""}),i+t.replace(e,n)+r}function h(t,e){var n;1<t.length&&(n=new CKEDITOR.dom.documentFragment(e.getDocument()));for(var i=0;i<t.length;i++){var r=t[i],r=r.replace(/(\r\n|\r)/g,"\n"),r=d(r,/^[ \t]*\n/,""),r=d(r,/\n$/,""),r=d(r,/^[ \t]+|[ \t]+$/g,function(t,e){return 1==t.length?" ":e?" "+CKEDITOR.tools.repeat(" ",t.length-1):CKEDITOR.tools.repeat(" ",t.length-1)+" "}),r=r.replace(/\n/g,"<br>"),r=r.replace(/[ \t]{2,}/g,function(t){return CKEDITOR.tools.repeat(" ",t.length-1)+" "});if(n){var o=e.clone();o.setHtml(r),n.append(o)}else e.setHtml(r)}return n||e}function f(t,e){var n,i=this._.definition,r=i.attributes,i=i.styles,o=b(this)[t.getName()],a=CKEDITOR.tools.isEmpty(r)&&CKEDITOR.tools.isEmpty(i);for(n in r)("class"!=n&&!this._.definition.fullMatch||t.getAttribute(n)==_(n,r[n]))&&(e&&"data-"==n.slice(0,5)||(a=t.hasAttribute(n),t.removeAttribute(n)));for(var s in i)this._.definition.fullMatch&&t.getStyle(s)!=_(s,i[s],!0)||(a=a||!!t.getStyle(s),t.removeStyle(s));m(t,o,I[t.getName()]),a&&(this._.definition.alwaysRemoveElement?g(t,1):!CKEDITOR.dtd.$block[t.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!t.hasAttributes()?g(t):t.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function p(t){for(var e,n=b(this),i=t.getElementsByTag(this.element),r=i.count();0<=--r;)e=i.getItem(r),e.isReadOnly()||f.call(this,e,!0);for(var o in n)if(o!=this.element)for(i=t.getElementsByTag(o),r=i.count()-1;0<=r;r--)e=i.getItem(r),e.isReadOnly()||m(e,n[o])}function m(t,e,n){if(e=e&&e.attributes)for(var i=0;i<e.length;i++){var r,o=e[i][0];if(r=t.getAttribute(o)){var a=e[i][1];(null===a||a.test&&a.test(r)||"string"==typeof a&&r==a)&&t.removeAttribute(o)}}n||g(t)}function g(t,e){if(!t.hasAttributes()||e)if(CKEDITOR.dtd.$block[t.getName()]){var n=t.getPrevious(R),i=t.getNext(R);!n||n.type!=CKEDITOR.NODE_TEXT&&n.isBlockBoundary({br:1})||t.append("br",1),!i||i.type!=CKEDITOR.NODE_TEXT&&i.isBlockBoundary({br:1})||t.append("br"),t.remove(!0)}else n=t.getFirst(),i=t.getLast(),t.remove(!0),n&&(n.type==CKEDITOR.NODE_ELEMENT&&n.mergeSiblings(),i&&!n.equals(i)&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings())}function v(t,e,n){var i;return i=t.element,"*"==i&&(i="span"),i=new CKEDITOR.dom.element(i,e),n&&n.copyAttributes(i),i=y(i,t),e.getCustomData("doc_processing_style")&&i.hasAttribute("id")?i.removeAttribute("id"):e.setCustomData("doc_processing_style",1),i}function y(t,e){var n=e._.definition,i=n.attributes,n=CKEDITOR.style.getStyleText(n);if(i)for(var r in i)t.setAttribute(r,i[r]);return n&&t.setAttribute("style",n),t}function E(t,e){for(var n in t)t[n]=t[n].replace(O,function(t,n){return e[n]})}function b(t){if(t._.overrides)return t._.overrides;var e=t._.overrides={},n=t._.definition.overrides;if(n){CKEDITOR.tools.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var r,o,a=n[i];if("string"==typeof a?r=a.toLowerCase():(r=a.element?a.element.toLowerCase():t.element,o=a.attributes),a=e[r]||(e[r]={}),o){var s,a=a.attributes=a.attributes||[];for(s in o)a.push([s.toLowerCase(),o[s]])}}}return e}function _(t,e,n){var i=new CKEDITOR.dom.element("span");return i[n?"setStyle":"setAttribute"](t,e),i[n?"getStyle":"getAttribute"](t)}function C(t,e){function n(t,e){return"font-family"==e.toLowerCase()?t.replace(/["']/g,""):t}"string"==typeof t&&(t=CKEDITOR.tools.parseCssText(t)),"string"==typeof e&&(e=CKEDITOR.tools.parseCssText(e,!0));for(var i in t)if(!(i in e)||n(e[i],i)!=n(t[i],i)&&"inherit"!=t[i]&&"inherit"!=e[i])return!1;return!0}function T(t,e,n){var i=t.document,r=t.getRanges();e=e?this.removeFromRange:this.applyToRange;for(var o,a=r.createIterator();o=a.getNextRange();)e.call(this,o,n);t.selectRanges(r),i.removeCustomData("doc_processing_style")}var I={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},D={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},$=/\s*(?:;\s*|$)/,O=/#\((.+?)\)/g,w=CKEDITOR.dom.walker.bookmark(0,1),R=CKEDITOR.dom.walker.whitespaces(1);CKEDITOR.style=function(t,e){if("string"==typeof t.type)return new CKEDITOR.style.customHandlers[t.type](t);var n=t.attributes;n&&n.style&&(t.styles=CKEDITOR.tools.extend({},t.styles,CKEDITOR.tools.parseCssText(n.style)),delete n.style),e&&(t=CKEDITOR.tools.clone(t),E(t.attributes,e),E(t.styles,e)),n=this.element=t.element?"string"==typeof t.element?t.element.toLowerCase():t.element:"*",this.type=t.type||(I[n]?CKEDITOR.STYLE_BLOCK:D[n]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE),"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT),this._={definition:t}},CKEDITOR.style.prototype={apply:function(t){if(t instanceof CKEDITOR.dom.document)return T.call(this,t.getSelection());if(this.checkApplicable(t.elementPath(),t)){var e=this._.enterMode;e||(this._.enterMode=t.activeEnterMode),T.call(this,t.getSelection(),0,t),this._.enterMode=e}},remove:function(t){if(t instanceof CKEDITOR.dom.document)return T.call(this,t.getSelection(),1);if(this.checkApplicable(t.elementPath(),t)){var e=this._.enterMode;e||(this._.enterMode=t.activeEnterMode),T.call(this,t.getSelection(),1,t),this._.enterMode=e}},applyToRange:function(t){return this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?n:this.type==CKEDITOR.STYLE_BLOCK?s:this.type==CKEDITOR.STYLE_OBJECT?o:null,this.applyToRange(t)},removeFromRange:function(t){return this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?i:this.type==CKEDITOR.STYLE_BLOCK?l:this.type==CKEDITOR.STYLE_OBJECT?a:null,this.removeFromRange(t)},applyToObject:function(t){y(t,this)},checkActive:function(t,e){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(t.block||t.blockLimit,!0,e);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n,i=t.elements,r=0;r<i.length;r++)if(n=i[r],this.type!=CKEDITOR.STYLE_INLINE||n!=t.block&&n!=t.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var o=n.getName();if(!("string"==typeof this.element?o==this.element:o in this.element))continue}if(this.checkElementRemovable(n,!0,e))return!0}}return!1},checkApplicable:function(t,e,n){if(e&&e instanceof CKEDITOR.filter&&(n=e),n&&!n.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!t.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!t.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(t,e){var n=this._.definition;if(!t||!n.ignoreReadonly&&t.isReadOnly())return!1;var i=t.getName();if("string"==typeof this.element?i==this.element:i in this.element){if(!e&&!t.hasAttributes())return!0;if(i=n._AC)n=i;else{var i={},r=0,o=n.attributes;if(o)for(var a in o)r++,i[a]=o[a];(a=CKEDITOR.style.getStyleText(n))&&(i.style||r++,i.style=a),i._length=r,n=n._AC=i}if(!n._length)return!0;for(var s in n)if("_length"!=s)if(i=t.getAttribute(s)||"","style"==s?C(n[s],i):n[s]==i){if(!e)return!0}else if(e)return!1;if(e)return!0}return!1},checkElementRemovable:function(t,e,n){if(this.checkElementMatch(t,e,n))return!0;if(e=b(this)[t.getName()]){var i;if(!(e=e.attributes))return!0;for(n=0;n<e.length;n++)if(i=e[n][0],i=t.getAttribute(i)){var r=e[n][1];if(null===r)return!0;if("string"==typeof r){if(i==r)return!0}else if(r.test(i))return!0}}return!1},buildPreview:function(t){var e=this._.definition,n=[],i=e.element;"bdo"==i&&(i="span");var n=["<",i],r=e.attributes;if(r)for(var o in r)n.push(" ",o,'="',r[o],'"');return(r=CKEDITOR.style.getStyleText(e))&&n.push(' style="',r,'"'),n.push(">",t||e.name,"</",i,">"),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(t){var e=t._ST;if(e)return e;var e=t.styles,n=t.attributes&&t.attributes.style||"",i="";n.length&&(n=n.replace($,";"));for(var r in e){var o=e[r],a=(r+":"+o).replace($,";");"inherit"==o?i+=a:n+=a}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),t._ST=n+i},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(t){var e=function(t){this._={definition:t},this.setup&&this.setup(t)};return e.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},t,!0),this.customHandlers[t.type]=e};var k=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,x=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(t,e){this.requiredContent=this.allowedContent=this.style=t,CKEDITOR.tools.extend(this,e,!0)},CKEDITOR.styleCommand.prototype.exec=function(t){t.focus(),this.state==CKEDITOR.TRISTATE_OFF?t.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&t.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(t,e,n){CKEDITOR.stylesSet.addExternal(t,e,""),CKEDITOR.stylesSet.load(t,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(t,e){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(t){for(var e=0;e<n.length;e++){var i=n[e],r=i.style.checkActive(t.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;i.fn.call(this,r)}})),n.push({style:t,fn:e})},applyStyle:function(t){t.apply(this)},removeStyle:function(t){t.remove(this)},getStylesSet:function(t){if(this._.stylesDefinitions)t(this._.stylesDefinitions);else{var e=this,n=e.config.stylesCombo_stylesSet||e.config.stylesSet;if(!1===n)t(null);else if(n instanceof Array)e._.stylesDefinitions=n,t(n);else{n||(n="default");var n=n.split(":"),i=n[0];CKEDITOR.stylesSet.addExternal(i,n[1]?n.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),""),CKEDITOR.stylesSet.load(i,function(n){e._.stylesDefinitions=n[i],t(e._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(t,e){"string"==typeof t&&(t=(e?e.$:document).createComment(t)),CKEDITOR.dom.domObject.call(this,t)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),function(){var t,e={},n={};for(t in CKEDITOR.dtd.$blockLimit)t in CKEDITOR.dtd.$list||(e[t]=1);for(t in CKEDITOR.dtd.$block)t in CKEDITOR.dtd.$blockLimit||t in CKEDITOR.dtd.$empty||(n[t]=1);CKEDITOR.dom.elementPath=function(t,i){var r,o=null,a=null,s=[],l=t;i=i||t.getDocument().getBody();do{if(l.type==CKEDITOR.NODE_ELEMENT){if(s.push(l),!this.lastElement&&(this.lastElement=l,l.is(CKEDITOR.dtd.$object)||"false"==l.getAttribute("contenteditable")))continue;if(l.equals(i))break;if(!a&&(r=l.getName(),"true"==l.getAttribute("contenteditable")?a=l:!o&&n[r]&&(o=l),e[r])){if(r=!o&&"div"==r){t:{r=l.getChildren();for(var c=0,u=r.count();c<u;c++){var d=r.getItem(c);if(d.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[d.getName()]){r=!0;break t}}r=!1}r=!r}r?o=l:a=l}}}while(l=l.getParent());a||(a=i),this.block=o,this.blockLimit=a,this.root=i,this.elements=s}}(),CKEDITOR.dom.elementPath.prototype={compare:function(t){var e=this.elements;if(!(t=t&&t.elements)||e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].equals(t[n]))return!1;return!0},contains:function(t,e,n){var i;"string"==typeof t&&(i=function(e){return e.getName()==t}),t instanceof CKEDITOR.dom.element?i=function(e){return e.equals(t)}:CKEDITOR.tools.isArray(t)?i=function(e){return-1<CKEDITOR.tools.indexOf(t,e.getName())}:"function"==typeof t?i=t:"object"==typeof t&&(i=function(e){return e.getName()in t});var r=this.elements,o=r.length;for(e&&o--,n&&(r=Array.prototype.slice.call(r,0),r.reverse()),e=0;e<o;e++)if(i(r[e]))return r[e];return null},isContextFor:function(t){var e;return!(t in CKEDITOR.dtd.$block)||(e=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit,!!e.getDtd()[t])},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(t,e){"string"==typeof t&&(t=(e?e.$:document).createTextNode(t)),this.$=t},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(t){this.$.nodeValue=t},split:function(t){var e=this.$.parentNode,n=e.childNodes.length,i=this.getLength(),r=this.getDocument(),o=new CKEDITOR.dom.text(this.$.splitText(t),r);return e.childNodes.length==n&&(t>=i?(o=r.createText(""),o.insertAfter(this)):(t=r.createText(""),t.insertAfter(o),t.remove())),o},substring:function(t,e){return"number"!=typeof e?this.$.nodeValue.substr(t):this.$.nodeValue.substring(t,e)}}),function(){function t(t,e,n){var i=t.serializable,r=e[n?"endContainer":"startContainer"],o=n?"endOffset":"startOffset",a=i?e.document.getById(t.startNode):t.startNode;return t=i?e.document.getById(t.endNode):t.endNode,r.equals(a.getPrevious())?(e.startOffset=e.startOffset-r.getLength()-t.getPrevious().getLength(),r=t.getNext()):r.equals(t.getPrevious())&&(e.startOffset-=r.getLength(),r=t.getNext()),r.equals(a.getParent())&&e[o]++,r.equals(t.getParent())&&e[o]++,e[n?"endContainer":"startContainer"]=r,e}CKEDITOR.dom.rangeList=function(t){return t instanceof CKEDITOR.dom.rangeList?t:(t?t instanceof CKEDITOR.dom.range&&(t=[t]):t=[],CKEDITOR.tools.extend(t,e))};var e={createIterator:function(){var t,e=this,n=CKEDITOR.dom.walker.bookmark(),i=[];return{getNextRange:function(r){t=void 0===t?0:t+1;var o=e[t];if(o&&1<e.length){if(!t)for(var a=e.length-1;0<=a;a--)i.unshift(e[a].createBookmark(!0));if(r)for(var s=0;e[t+s+1];){var l=o.document;for(r=0,a=l.getById(i[s].endNode),l=l.getById(i[s+1].startNode);;){if(a=a.getNextSourceNode(!1),l.equals(a))r=1;else if(n(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary())continue;break}if(!r)break;s++}for(o.moveToBookmark(i.shift());s--;)a=e[++t],a.moveToBookmark(i.shift()),o.setEnd(a.endContainer,a.endOffset)}return o}}},createBookmarks:function(e){for(var n,i=[],r=0;r<this.length;r++){i.push(n=this[r].createBookmark(e,!0));for(var o=r+1;o<this.length;o++)this[o]=t(n,this[o]),this[o]=t(n,this[o],!0)}return i},createBookmarks2:function(t){for(var e=[],n=0;n<this.length;n++)e.push(this[n].createBookmark2(t));return e},moveToBookmarks:function(t){for(var e=0;e<this.length;e++)this[e].moveToBookmark(t[e])}}}(),function(){function t(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function e(e){var n=CKEDITOR.skin["ua_"+e],i=CKEDITOR.env;if(n)for(var r,n=n.split(",").sort(function(t,e){return t>e?-1:1}),o=0;o<n.length;o++)if(r=n[o],i.ie&&(r.replace(/^ie/,"")==i.version||i.quirks&&"iequirks"==r)&&(r="ie"),i[r]){e+="_"+n[o];break}return CKEDITOR.getUrl(t()+e+".css")}function n(t,n){o[t]||(CKEDITOR.document.appendStyleSheet(e(t)),o[t]=1),n&&n()}function i(t){var e=t.getById(a);return e||(e=t.getHead().append("style"),e.setAttribute("id",a),e.setAttribute("type","text/css")),e}function r(t,e,n){var i,r,o;if(CKEDITOR.env.webkit)for(e=e.split("}").slice(0,-1),r=0;r<e.length;r++)e[r]=e[r].split("{");for(var a=0;a<t.length;a++)if(CKEDITOR.env.webkit)for(r=0;r<e.length;r++){for(o=e[r][1],i=0;i<n.length;i++)o=o.replace(n[i][0],n[i][1]);t[a].$.sheet.addRule(e[r][0],o)}else{for(o=e,i=0;i<n.length;i++)o=o.replace(n[i][0],n[i][1]);CKEDITOR.env.ie&&11>CKEDITOR.env.version?t[a].$.styleSheet.cssText+=o:t[a].$.innerHTML+=o}}var o={};CKEDITOR.skin={path:t,loadPart:function(e,i){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t()+"skin.js"),function(){n(e,i)}):n(e,i)},getPath:function(t){return CKEDITOR.getUrl(e(t))},icons:{},addIcon:function(t,e,n,i){t=t.toLowerCase(),this.icons[t]||(this.icons[t]={path:e,offset:n||0,bgsize:i||"16px"})},getIconStyle:function(t,e,n,i,r){var o;return t&&(t=t.toLowerCase(),e&&(o=this.icons[t+"-rtl"]),o||(o=this.icons[t])),t=n||o&&o.path||"",i=i||o&&o.offset,r=r||o&&o.bgsize||"16px",t&&(t=t.replace(/'/g,"\\'")),t&&"background-image:url('"+CKEDITOR.getUrl(t)+"');background-position:0 "+i+"px;background-size:"+r+";"}},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(t){var e=i(CKEDITOR.document);return(this.setUiColor=function(t){this.uiColor=t;var n=CKEDITOR.skin.chameleon,i="",o="";"function"==typeof n&&(i=n(this,"editor"),o=n(this,"panel")),t=[[l,t]],r([e],i,t),r(s,o,t)}).call(this,t)}});var a="cke_ui_color",s=[],l=/\$color/g;CKEDITOR.on("instanceLoaded",function(t){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var e=t.editor;t=function(t){if(t=(t.data[0]||t.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument(),!t.getById("cke_ui_color")){t=i(t),s.push(t);var n=e.getUiColor();n&&r([t],CKEDITOR.skin.chameleon(e,"panel"),[[l,n]])}},e.on("panelShow",t),e.on("menuShow",t),e.config.uiColor&&e.setUiColor(e.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var t=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);t.appendTo(CKEDITOR.document.getHead());try{var e=t.getComputedStyle("border-top-color"),n=t.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!e||e!=n)}catch(c){CKEDITOR.env.hc=!1}t.remove()}if(CKEDITOR.env.hc&&(CKEDITOR.env.cssClass+=" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded"),t=CKEDITOR._.pending)for(delete CKEDITOR._.pending,e=0;e<t.length;e++)CKEDITOR.editor.prototype.constructor.apply(t[e][0],t[e][1]),CKEDITOR.add(t[e][0])}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var t=function(){return function(t,e){for(var n=t.match(/[^#]./g),i=0;3>i;i++){var r,o=i;r=parseInt(n[i],16),r=("0"+(0>e?0|r*(1+e):0|r+(255-r)*e).toString(16)).slice(-2),n[o]=r}return"#"+n.join("")}}(),e=function(){var t=new CKEDITOR.template("background:#{to};background-image:linear-gradient(to bottom,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(e,n){return t.output({from:e,to:n})}}(),n={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};return function(i,r){var o=i.uiColor,o={id:"."+i.id,defaultBorder:t(o,-.1),defaultGradient:e(t(o,.9),o),lightGradient:e(t(o,1),t(o,.7)),mediumGradient:e(t(o,.8),t(o,.5)),ckeButtonOn:e(t(o,.6),t(o,.7)),ckeResizer:t(o,-.4),ckeToolbarSeparator:t(o,.5),ckeColorauto:t(o,.8),dialogBody:t(o,.7),dialogTabSelected:e("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:t(o,-.6),elementsPathBg:o,menubuttonIcon:t(o,.5),menubuttonIconHover:t(o,.3)};return n[r].output(o).replace(/\[/g,"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var t=function(t){this._||(this._={}),this._["default"]=this._.initValue=t["default"]||"",this._.required=t.required||!1;for(var e=[this._],n=1;n<arguments.length;n++)e.push(arguments[n]);return e.push(!0),CKEDITOR.tools.extend.apply(CKEDITOR.tools,e),this._},e={build:function(t,e,n){return new CKEDITOR.ui.dialog.textInput(t,e,n)}},n={build:function(t,e,n){return new CKEDITOR.ui.dialog[e.type](t,e,n)}},i={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(t){this.setValue(this.getInitValue(),t)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._["default"]},getInitValue:function(){return this._.initValue}},r=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(t,e){this._.domOnChangeRegistered||(t.on("load",function(){this.getInputElement().on("change",function(){t.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",e)}},!0),o=/^on([A-Z]\w+)/,a=function(t){for(var e in t)(o.test(e)||"title"==e||"type"==e)&&delete t[e];return t},s=function(t){t=t.data.getKeystroke(),t==CKEDITOR.SHIFT+CKEDITOR.ALT+36?this.setDirectionMarker("ltr"):t==CKEDITOR.SHIFT+CKEDITOR.ALT+35&&this.setDirectionMarker("rtl")};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(e,n,i,r){if(!(4>arguments.length)){var o=t.call(this,n);o.labelId=CKEDITOR.tools.getNextId()+"_label",this._.children=[];var a={role:n.role||"presentation"};n.includeLabel&&(a["aria-labelledby"]=o.labelId),CKEDITOR.ui.dialog.uiElement.call(this,e,n,i,"div",null,a,function(){var t=[],i=n.required?" cke_required":"";return"horizontal"!=n.labelLayout?t.push('<label class="cke_dialog_ui_labeled_label'+i+'" ',' id="'+o.labelId+'"',o.inputId?' for="'+o.inputId+'"':"",(n.labelStyle?' style="'+n.labelStyle+'"':"")+">",n.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',n.controlStyle?' style="'+n.controlStyle+'"':"",' role="presentation">',r.call(this,e,n),"</div>"):(i={type:"hbox",widths:n.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+i+'" id="'+o.labelId+'" for="'+o.inputId+'"'+(n.labelStyle?' style="'+n.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(n.label)+"</label>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(n.controlStyle?' style="'+n.controlStyle+'"':"")+">"+r.call(this,e,n)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(e,i,t)),t.join("")})}},textInput:function(e,n,i){if(!(3>arguments.length)){t.call(this,n);var r=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",o={"class":"cke_dialog_ui_input_"+n.type,id:r,type:n.type};n.validate&&(this.validate=n.validate),n.maxLength&&(o.maxlength=n.maxLength),n.size&&(o.size=n.size),n.inputStyle&&(o.style=n.inputStyle);var a=this,l=!1;e.on("load",function(){a.getInputElement().on("keydown",function(t){13==t.data.getKeystroke()&&(l=!0)}),a.getInputElement().on("keyup",function(t){13==t.data.getKeystroke()&&l&&(e.getButton("ok")&&setTimeout(function(){e.getButton("ok").click()},0),l=!1),a.bidi&&s.call(a,t)},null,null,1e3)}),CKEDITOR.ui.dialog.labeledElement.call(this,e,n,i,function(){var t=['<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'];n.width&&t.push('style="width:'+n.width+'" '),t.push("><input "),o["aria-labelledby"]=this._.labelId,this._.required&&(o["aria-required"]=this._.required);for(var e in o)t.push(e+'="'+o[e]+'" ');return t.push(" /></div>"),t.join("")})}},textarea:function(e,n,i){if(!(3>arguments.length)){t.call(this,n);var r=this,o=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",a={};n.validate&&(this.validate=n.validate),a.rows=n.rows||5,a.cols=n.cols||20,a["class"]="cke_dialog_ui_input_textarea "+(n["class"]||""),"undefined"!=typeof n.inputStyle&&(a.style=n.inputStyle),n.dir&&(a.dir=n.dir),r.bidi&&e.on("load",function(){r.getInputElement().on("keyup",s)},r),CKEDITOR.ui.dialog.labeledElement.call(this,e,n,i,function(){a["aria-labelledby"]=this._.labelId,this._.required&&(a["aria-required"]=this._.required);var t,e=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',o,'" '];for(t in a)e.push(t+'="'+CKEDITOR.tools.htmlEncode(a[t])+'" ');return e.push(">",CKEDITOR.tools.htmlEncode(r._["default"]),"</textarea></div>"),e.join("")})}},checkbox:function(e,n,i){if(!(3>arguments.length)){var r=t.call(this,n,{"default":!!n["default"]});n.validate&&(this.validate=n.validate),CKEDITOR.ui.dialog.uiElement.call(this,e,n,i,"span",null,null,function(){var t=CKEDITOR.tools.extend({},n,{id:n.id?n.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),i=[],o=CKEDITOR.tools.getNextId()+"_label",s={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":o};return a(t),n["default"]&&(s.checked="checked"),"undefined"!=typeof t.inputStyle&&(t.style=t.inputStyle),r.checkbox=new CKEDITOR.ui.dialog.uiElement(e,t,i,"input",null,s),i.push(' <label id="',o,'" for="',s.id,'"'+(n.labelStyle?' style="'+n.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(n.label),"</label>"),i.join("")})}},radio:function(e,n,i){if(!(3>arguments.length)){t.call(this,n),this._["default"]||(this._["default"]=this._.initValue=n.items[0][1]),n.validate&&(this.validate=n.validate);var r=[],o=this;n.role="radiogroup",n.includeLabel=!0,CKEDITOR.ui.dialog.labeledElement.call(this,e,n,i,function(){for(var t=[],i=[],s=(n.id?n.id:CKEDITOR.tools.getNextId())+"_radio",l=0;l<n.items.length;l++){var c=n.items[l],u=void 0!==c[2]?c[2]:c[0],d=void 0!==c[1]?c[1]:c[0],h=CKEDITOR.tools.getNextId()+"_radio_input",f=h+"_label",h=CKEDITOR.tools.extend({},n,{id:h,title:null,type:null},!0),u=CKEDITOR.tools.extend({},h,{title:u},!0),p={type:"radio","class":"cke_dialog_ui_radio_input",name:s,value:d,"aria-labelledby":f},m=[];o._["default"]==d&&(p.checked="checked"),a(h),a(u),"undefined"!=typeof h.inputStyle&&(h.style=h.inputStyle),h.keyboardFocusable=!0,r.push(new CKEDITOR.ui.dialog.uiElement(e,h,m,"input",null,p)),m.push(" "),new CKEDITOR.ui.dialog.uiElement(e,u,m,"label",null,{id:f,"for":p.id},c[0]),t.push(m.join(""))}return new CKEDITOR.ui.dialog.hbox(e,r,t,i),i.join("")}),this._.children=r}},button:function(e,n,i){if(arguments.length){"function"==typeof n&&(n=n(e.getParentEditor())),t.call(this,n,{disabled:n.disabled||!1}),CKEDITOR.event.implementOn(this);var r=this;e.on("load",function(){var t=this.getElement();!function(){t.on("click",function(t){r.click(),t.data.preventDefault()}),t.on("keydown",function(t){t.data.getKeystroke()in{32:1}&&(r.click(),t.data.preventDefault())})}(),t.unselectable()},this);var o=CKEDITOR.tools.extend({},n);delete o.style;var a=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,e,o,i,"a",null,{style:n.style,href:"javascript:void(0)",title:n.label,hidefocus:"true","class":n["class"],role:"button","aria-labelledby":a},'<span id="'+a+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(n.label)+"</span>")}},select:function(e,n,i){if(!(3>arguments.length)){var r=t.call(this,n);n.validate&&(this.validate=n.validate),r.inputId=CKEDITOR.tools.getNextId()+"_select",CKEDITOR.ui.dialog.labeledElement.call(this,e,n,i,function(){var t=CKEDITOR.tools.extend({},n,{id:n.id?n.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),i=[],o=[],s={id:r.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};i.push('<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'),n.width&&i.push('style="width:'+n.width+'" '),i.push(">"),void 0!==n.size&&(s.size=n.size),void 0!==n.multiple&&(s.multiple=n.multiple),a(t);for(var l,c=0;c<n.items.length&&(l=n.items[c]);c++)o.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==l[1]?l[1]:l[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(l[0]));return"undefined"!=typeof t.inputStyle&&(t.style=t.inputStyle),r.select=new CKEDITOR.ui.dialog.uiElement(e,t,i,"select",null,s,o.join("")),i.push("</div>"),i.join("")})}},file:function(e,n,i){if(!(3>arguments.length)){void 0===n["default"]&&(n["default"]="");var r=CKEDITOR.tools.extend(t.call(this,n),{definition:n,buttons:[]});n.validate&&(this.validate=n.validate),e.on("load",function(){CKEDITOR.document.getById(r.frameId).getParent().addClass("cke_dialog_ui_input_file")}),CKEDITOR.ui.dialog.labeledElement.call(this,e,n,i,function(){r.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var t=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',r.frameId,'" title="',n.label,'" src="javascript:void('];return t.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0"),t.push(')"></iframe>'),t.join("")})}},fileButton:function(e,n,i){var r=this;if(!(3>arguments.length)){t.call(this,n),n.validate&&(this.validate=n.validate);var o=CKEDITOR.tools.extend({},n),a=o.onClick;o.className=(o.className?o.className+" ":"")+"cke_dialog_ui_button",o.onClick=function(t){var i=n["for"];a&&!1===a.call(this,t)||(e.getContentElement(i[0],i[1]).submit(),this.disable())},e.on("load",function(){e.getContentElement(n["for"][0],n["for"][1])._.buttons.push(r)}),CKEDITOR.ui.dialog.button.call(this,e,o,i)}},html:function(){var t=/^\s*<[\w:]+\s+([^>]*)?>/,e=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,n=/\/$/;return function(i,r,o){if(!(3>arguments.length)){var a=[],s=r.html;"<"!=s.charAt(0)&&(s="<span>"+s+"</span>");var l=r.focus;if(l){var c=this.focus;this.focus=function(){("function"==typeof l?l:c).call(this),this.fire("focus")},r.isFocusable&&(this.isFocusable=this.isFocusable),this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,i,r,a,"span",null,null,""),a=a.join("").match(t),s=s.match(e)||["","",""],n.test(s[1])&&(s[1]=s[1].slice(0,-1),s[2]="/"+s[2]),o.push([s[1]," ",a[1]||"",s[2]].join(""))}}}(),fieldset:function(t,e,n,i,r){var o=r.label;this._={children:e},CKEDITOR.ui.dialog.uiElement.call(this,t,r,i,"fieldset",null,null,function(){var t=[];o&&t.push("<legend"+(r.labelStyle?' style="'+r.labelStyle+'"':"")+">"+o+"</legend>");for(var e=0;e<n.length;e++)t.push(n[e]);return t.join("")})}},!0),CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement,CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(t){var e=CKEDITOR.document.getById(this._.labelId);return 1>e.getChildCount()?new CKEDITOR.dom.text(t,CKEDITOR.document).appendTo(e):e.getChild(0).$.nodeValue=t,this},getLabel:function(){var t=CKEDITOR.document.getById(this._.labelId);return!t||1>t.getChildCount()?"":t.getChild(0).getText()},eventProcessors:r},!0),CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled&&this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var t=this.getElement();t&&t.removeClass("cke_disabled")},disable:function(){this._.disabled=!0,this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(t,e){this.on("click",function(){e.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var t=this.selectParentTab();setTimeout(function(){var e=t.getInputElement();e&&e.$.focus()},0)},select:function(){var t=this.selectParentTab();setTimeout(function(){var e=t.getInputElement();e&&(e.$.focus(),e.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(t){if(this.bidi){var e=t&&t.charAt(0);(e="‪"==e?"ltr":"‫"==e?"rtl":null)&&(t=t.slice(1)),this.setDirectionMarker(e)}return t||(t=""),CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},getValue:function(){var t=CKEDITOR.ui.dialog.uiElement.prototype.getValue.call(this);if(this.bidi&&t){var e=this.getDirectionMarker();e&&(t=("ltr"==e?"‪":"‫")+t)}return t},setDirectionMarker:function(t){var e=this.getInputElement();t?e.setAttributes({dir:t,"data-cke-dir-marker":t}):this.getDirectionMarker()&&e.removeAttributes(["dir","data-cke-dir-marker"])},getDirectionMarker:function(){return this.getInputElement().data("cke-dir-marker")},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput,CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(t,e,n){var i=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),r=this.getInputElement().$;return i.$.text=t,i.$.value=void 0===e||null===e?t:e,void 0===n||null===n?CKEDITOR.env.ie?r.add(i.$):r.add(i.$,null):r.add(i.$,n),this},remove:function(t){return this.getInputElement().$.remove(t),this},clear:function(){for(var t=this.getInputElement().$;0<t.length;)t.remove(0);return this},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(t,e){this.getInputElement().$.checked=t,!e&&this.fire("change",{value:t})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(t,e){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?r.onChange.apply(this,arguments):(t.on("load",function(){var t=this._.checkbox.getElement();t.on("propertychange",function(e){e=e.data.$,"checked"==e.propertyName&&this.fire("change",{value:t.$.checked})},this)},this),this.on("change",e),null)}},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(t,e){for(var n,i=this._.children,r=0;r<i.length&&(n=i[r]);r++)n.getElement().$.checked=n.getValue()==t;!e&&this.fire("change",{value:t})},getValue:function(){for(var t=this._.children,e=0;e<t.length;e++)if(t[e].getElement().$.checked)return t[e].getValue();return null},accessKeyUp:function(){var t,e=this._.children;for(t=0;t<e.length;t++)if(e[t].getElement().$.checked)return void e[t].getElement().focus();e[0].getElement().focus()},eventProcessors:{onChange:function(t,e){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?r.onChange.apply(this,arguments):(t.on("load",function(){for(var t=this._.children,e=this,n=0;n<t.length;n++)t[n].getElement().on("propertychange",function(t){t=t.data.$,"checked"==t.propertyName&&this.$.checked&&e.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",e),null)}}},i,!0),CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,i,{getInputElement:function(){var t=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<t.$.forms.length?new CKEDITOR.dom.element(t.$.forms[0].elements[0]):this.getElement()},submit:function(){return this.getInputElement().getParent().$.submit(),this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(t){var e,n,i=/^on([A-Z]\w+)/;for(n in t)(e=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,t[n]):function(t,e,n,i){t.on("formLoaded",function(){t.getInputElement().on(n,i,t)})}(this,this._.dialog,e[1].toLowerCase(),t[n]));return this},reset:function(){function t(){n.$.open();var t="";i.size&&(t=i.size-(CKEDITOR.env.ie?7:0));var c=e.frameId+"_input";for(n.$.write(['<html dir="'+s+'" lang="'+l+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+s+'" lang="'+l+'" action="',CKEDITOR.tools.htmlEncode(i.action),'"><label id="',e.labelId,'" for="',c,'" style="display:none">',CKEDITOR.tools.htmlEncode(i.label),'</label><input style="width:100%" id="',c,'" aria-labelledby="',e.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(i.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<t?t:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+o+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+a+")}","<\/script>"].join("")),n.$.close(),t=0;t<r.length;t++)r[t].enable()}var e=this._,n=CKEDITOR.document.getById(e.frameId).getFrameDocument(),i=e.definition,r=e.buttons,o=this.formLoadedNumber,a=this.formUnloadNumber,s=e.dialog._.editor.lang.dir,l=e.dialog._.editor.langCode;o||(o=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),a=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(o),CKEDITOR.tools.removeFunction(a)})),CKEDITOR.env.gecko?setTimeout(t,500):t()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(t,e){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",e)}},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button,CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype),CKEDITOR.dialog.addUIElement("text",e),CKEDITOR.dialog.addUIElement("password",e),CKEDITOR.dialog.addUIElement("textarea",n),CKEDITOR.dialog.addUIElement("checkbox",n),CKEDITOR.dialog.addUIElement("radio",n),CKEDITOR.dialog.addUIElement("button",n),CKEDITOR.dialog.addUIElement("select",n),CKEDITOR.dialog.addUIElement("file",n),CKEDITOR.dialog.addUIElement("fileButton",n),CKEDITOR.dialog.addUIElement("html",n),CKEDITOR.dialog.addUIElement("fieldset",{build:function(t,e,n){for(var i,r=e.children,o=[],a=[],s=0;s<r.length&&(i=r[s]);s++){var l=[];o.push(l),a.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(t,i,l))}return new CKEDITOR.ui.dialog[e.type](t,a,o,n,e)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,CKEDITOR.DIALOG_STATE_IDLE=1,CKEDITOR.DIALOG_STATE_BUSY=2,function(){function t(){for(var t=this._.tabIdList.length,e=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+t,n=e-1;n>e-t;n--)if(this._.tabs[this._.tabIdList[n%t]][0].$.offsetHeight)return this._.tabIdList[n%t];return null}function e(){for(var t=this._.tabIdList.length,e=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),n=e+1;n<e+t;n++)if(this._.tabs[this._.tabIdList[n%t]][0].$.offsetHeight)return this._.tabIdList[n%t];return null}function n(t,e){for(var n=t.$.getElementsByTagName("input"),i=0,r=n.length;i<r;i++){var o=new CKEDITOR.dom.element(n[i]);"text"==o.getAttribute("type").toLowerCase()&&(e?(o.setAttribute("value",o.getCustomData("fake_value")||""),o.removeCustomData("fake_value")):(o.setCustomData("fake_value",o.getAttribute("value")),o.setAttribute("value","")))}}function i(t,e){var n=this.getInputElement();n&&(t?n.removeAttribute("aria-invalid"):n.setAttribute("aria-invalid",!0)),t||(this.select?this.select():this.focus()),e&&alert(e),this.fire("validated",{valid:t,msg:e})}function r(){var t=this.getInputElement();t&&t.removeAttribute("aria-invalid")}function o(t){var e=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",m).output({id:CKEDITOR.tools.getNextNumber(),editorId:t.id,langDir:t.lang.dir,langCode:t.langCode,editorDialogClass:"cke_editor_"+t.name.replace(/\./g,"\\.")+"_dialog",closeTitle:t.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""})),n=e.getChild([0,0,0,0,0]),i=n.getChild(0),r=n.getChild(1);return t.plugins.clipboard&&CKEDITOR.plugins.clipboard.preventDefaultDropOnElement(n),!CKEDITOR.env.ie||CKEDITOR.env.quirks||CKEDITOR.env.edge||(t="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())",CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+t+'" tabIndex="-1"></iframe>').appendTo(n.getParent())),i.unselectable(),r.unselectable(),{element:e,parts:{dialog:e.getChild(0),title:i,close:r,tabs:n.getChild(2),contents:n.getChild([3,0,0,0]),footer:n.getChild([3,0,1,0])}}}function a(t,e,n){this.element=e,this.focusIndex=n,this.tabIndex=0,this.isFocusable=function(){return!e.getAttribute("disabled")&&e.isVisible()},this.focus=function(){t._.currentFocusIndex=this.focusIndex,this.element.focus()},e.on("keydown",function(t){t.data.getKeystroke()in{32:1,13:1}&&this.fire("click")}),e.on("focus",function(){this.fire("mouseover")}),e.on("blur",function(){this.fire("mouseout")})}function s(t){function e(){t.layout()}var n=CKEDITOR.document.getWindow();n.on("resize",e),t.on("hide",function(){n.removeListener("resize",e)})}function l(t,e){this._={dialog:t},CKEDITOR.tools.extend(this,e)}function c(t){function e(e){var n=t.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),c=e.data.$.screenX,u=e.data.$.screenY,d=c-i.x,h=u-i.y;i={x:c,y:u},r.x+=d,r.y+=h,t.move(r.x+s[3]<a?-s[3]:r.x-s[1]>l.width-n.width-a?l.width-n.width+("rtl"==o.lang.dir?0:s[1]):r.x,r.y+s[0]<a?-s[0]:r.y-s[2]>l.height-n.height-a?l.height-n.height+s[2]:r.y,1),e.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mousemove",e),CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.env.ie6Compat){var t=C.getChild(0).getFrameDocument();t.removeListener("mousemove",e),t.removeListener("mouseup",n)}}var i=null,r=null,o=t.getParentEditor(),a=o.config.dialog_magnetDistance,s=CKEDITOR.skin.margins||[0,0,0,0];void 0===a&&(a=20),t.parts.title.on("mousedown",function(o){if(i={x:o.data.$.screenX,y:o.data.$.screenY},CKEDITOR.document.on("mousemove",e),CKEDITOR.document.on("mouseup",n),r=t.getPosition(),CKEDITOR.env.ie6Compat){var a=C.getChild(0).getFrameDocument();a.on("mousemove",e),a.on("mouseup",n)}o.data.preventDefault()},t)}function u(t){function e(e){var n="rtl"==d.lang.dir,u=c.width,h=c.height,f=u+(e.data.$.screenX-l.x)*(n?-1:1)*(t._.moved?1:2),p=h+(e.data.$.screenY-l.y)*(t._.moved?1:2),m=t._.element.getFirst(),m=n&&m.getComputedStyle("right"),g=t.getPosition();g.y+p>s.height&&(p=s.height-g.y),(n?m:g.x)+f>s.width&&(f=s.width-(n?m:g.x)),r!=CKEDITOR.DIALOG_RESIZE_WIDTH&&r!=CKEDITOR.DIALOG_RESIZE_BOTH||(u=Math.max(i.minWidth||0,f-o)),r!=CKEDITOR.DIALOG_RESIZE_HEIGHT&&r!=CKEDITOR.DIALOG_RESIZE_BOTH||(h=Math.max(i.minHeight||0,p-a)),t.resize(u,h),t._.moved||t.layout(),e.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.document.removeListener("mousemove",e),u&&(u.remove(),u=null),CKEDITOR.env.ie6Compat){var t=C.getChild(0).getFrameDocument();t.removeListener("mouseup",n),t.removeListener("mousemove",e)}}var i=t.definition,r=i.resizable;if(r!=CKEDITOR.DIALOG_RESIZE_NONE){var o,a,s,l,c,u,d=t.getParentEditor(),h=CKEDITOR.tools.addFunction(function(i){c=t.getSize();var r=t.parts.contents;r.$.getElementsByTagName("iframe").length&&(u=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),r.append(u)),a=c.height-t.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),o=c.width-t.parts.contents.getSize("width",1),l={x:i.screenX,y:i.screenY},s=CKEDITOR.document.getWindow().getViewPaneSize(),CKEDITOR.document.on("mousemove",e),CKEDITOR.document.on("mouseup",n),CKEDITOR.env.ie6Compat&&(r=C.getChild(0).getFrameDocument(),r.on("mousemove",e),r.on("mouseup",n)),i.preventDefault&&i.preventDefault()});t.on("load",function(){var e="";r==CKEDITOR.DIALOG_RESIZE_WIDTH?e=" cke_resizer_horizontal":r==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(e=" cke_resizer_vertical"),e=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+e+" cke_resizer_"+d.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(d.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+h+', event )">'+("ltr"==d.lang.dir?"â—¢":"â—£")+"</div>"),t.parts.footer.append(e,1)}),d.on("destroy",function(){CKEDITOR.tools.removeFunction(h)})}}function d(t){t.data.preventDefault(1)}function h(t){var e=CKEDITOR.document.getWindow(),n=t.config,i=n.dialog_backgroundCoverColor||"white",r=n.dialog_backgroundCoverOpacity,o=n.baseFloatZIndex,n=CKEDITOR.tools.genKey(i,r,o),a=T[n];a?a.show():(o=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",o,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+i,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(i="<html><body style=\\'background-color:"+i+";\\'></body></html>",o.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),o.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+i+"' );document.close();")+"})())"),o.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),o.push("</div>"),a=CKEDITOR.dom.element.createFromHtml(o.join("")),a.setOpacity(void 0!==r?r:.5),a.on("keydown",d),a.on("keypress",d),a.on("keyup",d),a.appendTo(CKEDITOR.document.getBody()),T[n]=a),t.focusManager.add(a),C=a,t=function(){var t=e.getViewPaneSize();a.setStyles({width:t.width+"px",height:t.height+"px"})};var s=function(){var t=e.getScrollPosition(),n=CKEDITOR.dialog._.currentTop;if(a.setStyles({left:t.x+"px",top:t.y+"px"}),n)do{t=n.getPosition(),n.move(t.x,t.y)}while(n=n._.parentDialog)};if(_=t,e.on("resize",t),t(),CKEDITOR.env.mac&&CKEDITOR.env.webkit||a.focus(),CKEDITOR.env.ie6Compat){var l=function(){s(),arguments.callee.prevScrollHandler.apply(this,arguments)};e.$.setTimeout(function(){l.prevScrollHandler=window.onscroll||function(){},window.onscroll=l},0),s()}}function f(t){C&&(t.focusManager.remove(C),t=CKEDITOR.document.getWindow(),C.hide(),t.removeListener("resize",_),CKEDITOR.env.ie6Compat&&t.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),_=null)}var p=CKEDITOR.tools.cssLength,m='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(n,a){function s(){var t=T._.focusList;t.sort(function(t,e){return t.tabIndex!=e.tabIndex?e.tabIndex-t.tabIndex:t.focusIndex-e.focusIndex});for(var e=t.length,n=0;n<e;n++)t[n].focusIndex=n}function l(t){var e=T._.focusList;if(t=t||0,!(1>e.length)){var n=T._.currentFocusIndex;T._.tabBarMode&&0>t&&(n=0);try{e[n].getInputElement().$.blur()}catch(r){}var i=n,r=1<T._.pageCount;do{if(i+=t,r&&!T._.tabBarMode&&(i==e.length||-1==i))return T._.tabBarMode=!0,T._.tabs[T._.currentTabId][0].focus(),void(T._.currentFocusIndex=-1);if((i=(i+e.length)%e.length)==n)break}while(t&&!e[i].isFocusable());e[i].focus(),"text"==e[i].type&&e[i].select()}}function d(i){if(T==CKEDITOR.dialog._.currentTop){var r=i.data.getKeystroke(),o="rtl"==n.lang.dir,a=[37,38,39,40];if(f=p=0,9==r||r==CKEDITOR.SHIFT+9)l(r==CKEDITOR.SHIFT+9?-1:1),f=1;else if(r==CKEDITOR.ALT+121&&!T._.tabBarMode&&1<T.getPageCount())T._.tabBarMode=!0,T._.tabs[T._.currentTabId][0].focus(),T._.currentFocusIndex=-1,f=1;else if(-1!=CKEDITOR.tools.indexOf(a,r)&&T._.tabBarMode)r=-1!=CKEDITOR.tools.indexOf([o?39:37,38],r)?t.call(T):e.call(T),T.selectPage(r),T._.tabs[r][0].focus(),f=1;else if(13!=r&&32!=r||!T._.tabBarMode)if(13==r)r=i.data.getTarget(),r.is("a","button","select","textarea")||r.is("input")&&"button"==r.$.type||((r=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(r.click,0,r),f=1),p=1;else{if(27!=r)return;(r=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(r.click,0,r):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),p=1}else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1),f=1;h(i)}}function h(t){f?t.data.preventDefault(1):p&&t.data.stopPropagation()}var f,p,m=CKEDITOR.dialog._.dialogDefinitions[a],v=CKEDITOR.tools.clone(g),y=n.config.dialog_buttonsOrder||"OS",E=n.lang.dir,_={};if(("OS"==y&&CKEDITOR.env.mac||"rtl"==y&&"ltr"==E||"ltr"==y&&"rtl"==E)&&v.buttons.reverse(),m=CKEDITOR.tools.extend(m(n),v),m=CKEDITOR.tools.clone(m),m=new b(this,m),v=o(n),this._={editor:n,element:v.element,name:a,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1},this.parts=v.parts,CKEDITOR.tools.setTimeout(function(){n.fire("ariaWidget",this.parts.contents)},0,this),v={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"},v["rtl"==E?"right":"left"]=0,this.parts.dialog.setStyles(v),CKEDITOR.event.call(this),this.definition=m=CKEDITOR.fire("dialogDefinition",{name:a,definition:m},n).definition,!("removeDialogTabs"in n._)&&n.config.removeDialogTabs){for(v=n.config.removeDialogTabs.split(";"),E=0;E<v.length;E++)if(y=v[E].split(":"),2==y.length){var C=y[0];_[C]||(_[C]=[]),_[C].push(y[1])}n._.removeDialogTabs=_}if(n._.removeDialogTabs&&(_=n._.removeDialogTabs[a]))for(E=0;E<_.length;E++)m.removeContents(_[E]);m.onLoad&&this.on("load",m.onLoad),m.onShow&&this.on("show",m.onShow),m.onHide&&this.on("hide",m.onHide),m.onOk&&this.on("ok",function(t){n.fire("saveSnapshot"),setTimeout(function(){n.fire("saveSnapshot")},0),!1===m.onOk.call(this,t)&&(t.data.hide=!1)}),this.state=CKEDITOR.DIALOG_STATE_IDLE,m.onCancel&&this.on("cancel",function(t){!1===m.onCancel.call(this,t)&&(t.data.hide=!1)});var T=this,I=function(t){var e,n=T._.contents;for(e in n)for(var i in n[e])if(t.call(this,n[e][i]))return};this.on("ok",function(t){I(function(e){if(e.validate){var n=e.validate(this),r="string"==typeof n||!1===n;return r&&(t.data.hide=!1,t.stop()),i.call(e,!r,"string"==typeof n?n:void 0),r}})},this,null,0),this.on("cancel",function(t){I(function(e){if(e.isChanged())return n.config.dialog_noConfirmCancel||confirm(n.lang.common.confirmCancel)||(t.data.hide=!1),!0})},this,null,0),this.parts.close.on("click",function(t){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),t.data.preventDefault()},this),this.changeFocus=l;var D=this._.element;for(n.focusManager.add(D,1),this.on("show",function(){D.on("keydown",d,this),CKEDITOR.env.gecko&&D.on("keypress",h,this)}),this.on("hide",function(){D.removeListener("keydown",d),CKEDITOR.env.gecko&&D.removeListener("keypress",h),I(function(t){r.apply(t)})}),this.on("iframeAdded",function(t){new CKEDITOR.dom.document(t.data.iframe.$.contentWindow.document).on("keydown",d,this,null,0)}),this.on("show",function(){s();var t=1<T._.pageCount;n.config.dialog_startupFocusTab&&t?(T._.tabBarMode=!0,T._.tabs[T._.currentTabId][0].focus(),T._.currentFocusIndex=-1):this._.hasFocus||(this._.currentFocusIndex=t?-1:this._.focusList.length-1,m.onFocus?(t=m.onFocus.call(this))&&t.focus():l(1))},this,null,4294967295),CKEDITOR.env.ie6Compat&&this.on("load",function(){var t=this.getElement(),e=t.getFirst();e.remove(),e.appendTo(t)},this),c(this),u(this),new CKEDITOR.dom.text(m.title,CKEDITOR.document).appendTo(this.parts.title),E=0;E<m.contents.length;E++)(_=m.contents[E])&&this.addPage(_);for(this.parts.tabs.on("click",function(t){var e=t.data.getTarget();e.hasClass("cke_dialog_tab")&&(e=e.$.id,this.selectPage(e.substring(4,e.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,l(1)),t.data.preventDefault())},this),E=[],_=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:m.buttons},E).getChild(),this.parts.footer.setHtml(E.join("")),E=0;E<_.length;E++)this._.buttons[_[E].id]=_[E]},CKEDITOR.dialog.prototype={destroy:function(){this.hide(),this._.element.remove()},resize:function(){return function(t,e){this._.contentSize&&this._.contentSize.width==t&&this._.contentSize.height==e||(CKEDITOR.dialog.fire("resize",{dialog:this,width:t,height:e},this._.editor),this.fire("resize",{width:t,height:e},this._.editor),this.parts.contents.setStyles({width:t+"px",height:e+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:t,height:e})}}(),getSize:function(){var t=this._.element.getFirst();return{width:t.$.offsetWidth||0,height:t.$.offsetHeight||0}},move:function(t,e,n){var i=this._.element.getFirst(),r="rtl"==this._.editor.lang.dir,o="fixed"==i.getComputedStyle("position");CKEDITOR.env.ie&&i.setStyle("zoom","100%"),o&&this._.position&&this._.position.x==t&&this._.position.y==e||(this._.position={x:t,y:e},o||(o=CKEDITOR.document.getWindow().getScrollPosition(),t+=o.x,e+=o.y),r&&(o=this.getSize(),t=CKEDITOR.document.getWindow().getViewPaneSize().width-o.width-t),e={top:(0<e?e:0)+"px"},e[r?"right":"left"]=(0<t?t:0)+"px",i.setStyles(e),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var t=this._.element,e=this.definition;t.getParent()&&t.getParent().equals(CKEDITOR.document.getBody())?t.setStyle("display","block"):t.appendTo(CKEDITOR.document.getBody()),this.resize(this._.contentSize&&this._.contentSize.width||e.width||e.minWidth,this._.contentSize&&this._.contentSize.height||e.height||e.minHeight),this.reset(),this.selectPage(this.definition.contents[0].id),null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex),this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10),null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,h(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this),t.on("keydown",D),t.on("keyup",$),this._.hasFocus=!1;for(var n in e.contents)if(e.contents[n]){var t=e.contents[n],i=this._.tabs[t.id],r=t.requiredContent,o=0;if(i){for(var a in this._.contents[t.id]){var l=this._.contents[t.id][a];"hbox"!=l.type&&"vbox"!=l.type&&l.getInputElement()&&(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),o++))}!o||r&&!this._.editor.activeFilter.check(r)?i[0].addClass("cke_dialog_tab_disabled"):i[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(),s(this),this.parts.dialog.setStyle("visibility",""),this.fireOnce("load",{}),CKEDITOR.ui.fire("ready",this),this.fire("show",{}),this._.editor.fire("dialogShow",this),this._.parentDialog||this._.editor.focusManager.lock(),this.foreach(function(t){t.setInitValue&&t.setInitValue()})},100,this)},layout:function(){var t=this.parts.dialog,e=this.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=(n.width-e.width)/2,r=(n.height-e.height)/2;CKEDITOR.env.ie6Compat||(e.height+(0<r?r:0)>n.height||e.width+(0<i?i:0)>n.width?t.setStyle("position","absolute"):t.setStyle("position","fixed")),this.move(this._.moved?this._.position.x:i,this._.moved?this._.position.y:r)},foreach:function(t){for(var e in this._.contents)for(var n in this._.contents[e])t.call(this,this._.contents[e][n]);return this},reset:function(){var t=function(t){t.reset&&t.reset(1)};return function(){return this.foreach(t),this}}(),setupContent:function(){var t=arguments;this.foreach(function(e){e.setup&&e.setup.apply(e,t)})},commitContent:function(){var t=arguments;this.foreach(function(e){CKEDITOR.env.ie&&this._.currentFocusIndex==e.focusIndex&&e.getInputElement().$.blur(),e.commit&&e.commit.apply(e,t)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{}),this._.editor.fire("dialogHide",this),this.selectPage(this._.tabIdList[0]);var t=this._.element;for(t.setStyle("display","none"),this.parts.dialog.setStyle("visibility","hidden"),w(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var e=this._.parentDialog.getElement().getFirst();e.setStyle("z-index",parseInt(e.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else f(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;else{CKEDITOR.dialog._.currentZIndex=null,t.removeListener("keydown",D),t.removeListener("keyup",$);var n=this._.editor;n.focus(),setTimeout(function(){n.focusManager.unlock(),CKEDITOR.env.iOS&&n.window.focus()},0)}delete this._.parentDialog,this.foreach(function(t){t.resetInitValue&&t.resetInitValue()}),this.setState(CKEDITOR.DIALOG_STATE_IDLE)}},addPage:function(t){if(!t.requiredContent||this._.editor.filter.check(t.requiredContent)){for(var e=[],n=t.label?' title="'+CKEDITOR.tools.htmlEncode(t.label)+'"':"",i=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:t.elements,expand:!!t.expand,padding:t.padding,style:t.style||"width: 100%;"},e),r=this._.contents[t.id]={},o=i.getChild(),a=0;i=o.shift();)i.notAllowed||"hbox"==i.type||"vbox"==i.type||a++,r[i.id]=i,"function"==typeof i.getChild&&o.push.apply(o,i.getChild());a||(t.hidden=!0),e=CKEDITOR.dom.element.createFromHtml(e.join("")),e.setAttribute("role","tabpanel"),i=CKEDITOR.env,r="cke_"+t.id+"_"+CKEDITOR.tools.getNextNumber(),n=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",n,t.hidden?' style="display:none"':"",' id="',r,'"',i.gecko&&!i.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',t.label,"</a>"].join("")),e.setAttribute("aria-labelledby",r),this._.tabs[t.id]=[n,e],this._.tabIdList.push(t.id),!t.hidden&&this._.pageCount++,this._.lastTab=n,this.updateStyle(),e.setAttribute("name",t.id),e.appendTo(this.parts.contents),n.unselectable(),this.parts.tabs.append(n),t.accessKey&&(O(this,this,"CTRL+"+t.accessKey,k,R),this._.accessKeyMap["CTRL+"+t.accessKey]=t.id)}},selectPage:function(t){if(this._.currentTabId!=t&&!this._.tabs[t][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:t,currentPage:this._.currentTabId})){for(var e in this._.tabs){var i=this._.tabs[e][0],r=this._.tabs[e][1];e!=t&&(i.removeClass("cke_dialog_tab_selected"),r.hide()),r.setAttribute("aria-hidden",e!=t)}var o=this._.tabs[t];o[0].addClass("cke_dialog_tab_selected"),CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(n(o[1]),o[1].show(),setTimeout(function(){n(o[1],1)},0)):o[1].show(),this._.currentTabId=t,this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,t)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(e){var n=this._.tabs[e]&&this._.tabs[e][0];n&&1!=this._.pageCount&&n.isVisible()&&(e==this._.currentTabId&&this.selectPage(t.call(this)),n.hide(),this._.pageCount--,this.updateStyle())},showPage:function(t){(t=this._.tabs[t]&&this._.tabs[t][0])&&(t.show(),this._.pageCount++,this.updateStyle())},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(t,e){var n=this._.contents[t];return n&&n[e]},getValueOf:function(t,e){return this.getContentElement(t,e).getValue()},setValueOf:function(t,e,n){return this.getContentElement(t,e).setValue(n)},getButton:function(t){return this._.buttons[t]},click:function(t){return this._.buttons[t].click()},disableButton:function(t){return this._.buttons[t].disable()},enableButton:function(t){return this._.buttons[t].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(t,e){if(void 0===e)e=this._.focusList.length,this._.focusList.push(new a(this,t,e));else{this._.focusList.splice(e,0,new a(this,t,e));for(var n=e+1;n<this._.focusList.length;n++)this._.focusList[n].focusIndex++}},setState:function(t){if(this.state!=t){if(this.state=t,t==CKEDITOR.DIALOG_STATE_BUSY){if(!this.parts.spinner){var e=this.getParentEditor().lang.dir,n={attributes:{"class":"cke_dialog_spinner"},styles:{"float":"rtl"==e?"right":"left"}};n.styles["margin-"+("rtl"==e?"left":"right")]="8px",this.parts.spinner=CKEDITOR.document.createElement("div",n),this.parts.spinner.setHtml("⌛"),this.parts.spinner.appendTo(this.parts.title,1)}this.parts.spinner.show(),this.getButton("ok").disable()}else t==CKEDITOR.DIALOG_STATE_IDLE&&(this.parts.spinner&&this.parts.spinner.hide(),this.getButton("ok").enable());this.fire("state",t)}}},CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(t,e){this._.dialogDefinitions[t]&&"function"!=typeof e||(this._.dialogDefinitions[t]=e)},exists:function(t){return!!this._.dialogDefinitions[t]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(t,e,n){return!((t=t.config.removeDialogTabs)&&t.match(new RegExp("(?:^|;)"+e+":"+n+"(?:$|;)","i")))},okButton:function(){var t=function(t,e){return e=e||{},CKEDITOR.tools.extend({id:"ok",type:"button",label:t.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(t){t=t.data.dialog,!1!==t.fire("ok",{hide:!0}).hide&&t.hide()}},e,!0)};return t.type="button",t.override=function(e){return CKEDITOR.tools.extend(function(n){return t(n,e)},{type:"button"},!0)},t}(),cancelButton:function(){var t=function(t,e){return e=e||{},CKEDITOR.tools.extend({id:"cancel",type:"button",label:t.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(t){t=t.data.dialog,!1!==t.fire("cancel",{hide:!0}).hide&&t.hide()}},e,!0)};return t.type="button",t.override=function(e){return CKEDITOR.tools.extend(function(n){return t(n,e)},{type:"button"},!0)},t}(),addUIElement:function(t,e){this._.uiElementBuilders[t]=e}}),CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null},CKEDITOR.event.implementOn(CKEDITOR.dialog),CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var g={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},v=function(t,e,n){for(var i,r=0;i=t[r];r++)if(i.id==e||n&&i[n]&&(i=v(i[n],e,n)))return i;return null},y=function(t,e,n,i,r){if(n){for(var o,a=0;o=t[a];a++){if(o.id==n)return t.splice(a,0,e),e;if(i&&o[i]&&(o=y(o[i],e,n,i,!0)))return o}if(r)return null}return t.push(e),e},E=function(t,e,n){for(var i,r=0;i=t[r];r++){if(i.id==e)return t.splice(r,1);if(n&&i[n]&&(i=E(i[n],e,n)))return i}return null},b=function(t,e){this.dialog=t;for(var n,i=e.contents,r=0;n=i[r];r++)i[r]=n&&new l(t,n);CKEDITOR.tools.extend(this,e)};b.prototype={getContents:function(t){return v(this.contents,t)},getButton:function(t){return v(this.buttons,t)},addContents:function(t,e){return y(this.contents,t,e)},addButton:function(t,e){return y(this.buttons,t,e)},removeContents:function(t){E(this.contents,t)},removeButton:function(t){E(this.buttons,t)}},l.prototype={get:function(t){return v(this.elements,t,"children")},add:function(t,e){return y(this.elements,t,e,"children")},remove:function(t){E(this.elements,t,"children")}};var _,C,T={},I={},D=function(t){var e=t.data.$.ctrlKey||t.data.$.metaKey,n=t.data.$.altKey,i=t.data.$.shiftKey,r=String.fromCharCode(t.data.$.keyCode);(e=I[(e?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+r])&&e.length&&(e=e[e.length-1],e.keydown&&e.keydown.call(e.uiElement,e.dialog,e.key),t.data.preventDefault())},$=function(t){var e=t.data.$.ctrlKey||t.data.$.metaKey,n=t.data.$.altKey,i=t.data.$.shiftKey,r=String.fromCharCode(t.data.$.keyCode);(e=I[(e?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+r])&&e.length&&(e=e[e.length-1],e.keyup&&(e.keyup.call(e.uiElement,e.dialog,e.key),t.data.preventDefault()))},O=function(t,e,n,i,r){(I[n]||(I[n]=[])).push({uiElement:t,dialog:e,key:n,keyup:r||t.accessKeyUp,keydown:i||t.accessKeyDown})},w=function(t){for(var e in I){for(var n=I[e],i=n.length-1;0<=i;i--)n[i].dialog!=t&&n[i].uiElement!=t||n.splice(i,1);0===n.length&&delete I[e]}},R=function(t,e){t._.accessKeyMap[e]&&t.selectPage(t._.accessKeyMap[e])},k=function(){};!function(){CKEDITOR.ui.dialog={uiElement:function(t,e,n,i,r,o,a){if(!(4>arguments.length)){var s=(i.call?i(e):i)||"div",l=["<",s," "],c=(r&&r.call?r(e):r)||{},u=(o&&o.call?o(e):o)||{},d=(a&&a.call?a.call(this,t,e):a)||"",h=this.domId=u.id||CKEDITOR.tools.getNextId()+"_uiElement";e.requiredContent&&!t.getParentEditor().filter.check(e.requiredContent)&&(c.display="none",this.notAllowed=!0),u.id=h;var f={};e.type&&(f["cke_dialog_ui_"+e.type]=1),e.className&&(f[e.className]=1),e.disabled&&(f.cke_disabled=1);for(var p=u["class"]&&u["class"].split?u["class"].split(" "):[],h=0;h<p.length;h++)p[h]&&(f[p[h]]=1);p=[];for(h in f)p.push(h);u["class"]=p.join(" "),e.title&&(u.title=e.title),f=(e.style||"").split(";"),e.align&&(p=e.align,c["margin-left"]="left"==p?0:"auto",c["margin-right"]="right"==p?0:"auto");for(h in c)f.push(h+":"+c[h]);for(e.hidden&&f.push("display:none"),h=f.length-1;0<=h;h--)""===f[h]&&f.splice(h,1);0<f.length&&(u.style=(u.style?u.style+"; ":"")+f.join("; "));for(h in u)l.push(h+'="'+CKEDITOR.tools.htmlEncode(u[h])+'" ');l.push(">",d,"</",s,">"),n.push(l.join("")),(this._||(this._={})).dialog=t,"boolean"==typeof e.isChanged&&(this.isChanged=function(){return e.isChanged}),"function"==typeof e.isChanged&&(this.isChanged=e.isChanged),"function"==typeof e.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(t){return function(n){t.call(this,e.setValue.call(this,n))}})),"function"==typeof e.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(t){return function(){return e.getValue.call(this,t.call(this))}})),CKEDITOR.event.implementOn(this),this.registerEvents(e),this.accessKeyUp&&this.accessKeyDown&&e.accessKey&&O(this,t,"CTRL+"+e.accessKey);var m=this;t.on("load",function(){var e=m.getInputElement();if(e){var n=m.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?"cke_dialog_ui_focused":"";e.on("focus",function(){t._.tabBarMode=!1,t._.hasFocus=!0,m.fire("focus"),n&&this.addClass(n)}),e.on("blur",function(){m.fire("blur"),n&&this.removeClass(n)})}}),CKEDITOR.tools.extend(this,e),this.keyboardFocusable&&(this.tabIndex=e.tabIndex||0,this.focusIndex=t._.focusList.push(this)-1,this.on("focus",function(){t._.currentFocusIndex=m.focusIndex}))}},hbox:function(t,e,n,i,r){if(!(4>arguments.length)){this._||(this._={});var o,a=this._.children=e,s=r&&r.widths||null,l=r&&r.height||null,c={role:"presentation"};r&&r.align&&(c.align=r.align),CKEDITOR.ui.dialog.uiElement.call(this,t,r||{type:"hbox"},i,"table",{},c,function(){var t=['<tbody><tr class="cke_dialog_ui_hbox">'];for(o=0;o<n.length;o++){var e="cke_dialog_ui_hbox_child",i=[];0===o&&(e="cke_dialog_ui_hbox_first"),o==n.length-1&&(e="cke_dialog_ui_hbox_last"),t.push('<td class="',e,'" role="presentation" '),s?s[o]&&i.push("width:"+p(s[o])):i.push("width:"+Math.floor(100/n.length)+"%"),l&&i.push("height:"+p(l)),r&&void 0!==r.padding&&i.push("padding:"+p(r.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a[o].align&&i.push("text-align:"+a[o].align),0<i.length&&t.push('style="'+i.join("; ")+'" '),t.push(">",n[o],"</td>")}return t.push("</tr></tbody>"),t.join("")})}},vbox:function(t,e,n,i,r){if(!(3>arguments.length)){this._||(this._={});var o=this._.children=e,a=r&&r.width||null,s=r&&r.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,t,r||{type:"vbox"},i,"div",null,{role:"presentation"},function(){var e=['<table role="presentation" cellspacing="0" border="0" '];e.push('style="'),r&&r.expand&&e.push("height:100%;"),e.push("width:"+p(a||"100%"),";"),CKEDITOR.env.webkit&&e.push("float:none;"),e.push('"'),e.push('align="',CKEDITOR.tools.htmlEncode(r&&r.align||("ltr"==t.getParentEditor().lang.dir?"left":"right")),'" '),e.push("><tbody>");for(var i=0;i<n.length;i++){var l=[];e.push('<tr><td role="presentation" '),a&&l.push("width:"+p(a||"100%")),s?l.push("height:"+p(s[i])):r&&r.expand&&l.push("height:"+Math.floor(100/n.length)+"%"),r&&void 0!==r.padding&&l.push("padding:"+p(r.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&o[i].align&&l.push("text-align:"+o[i].align),0<l.length&&e.push('style="',l.join("; "),'" '),e.push(' class="cke_dialog_ui_vbox_child">',n[i],"</td></tr>")}return e.push("</tbody></table>"),e.join("")})}}}}(),CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(t,e){return this.getInputElement().setValue(t),!e&&this.fire("change",{value:t}),this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var t=this.getInputElement();(t=t.getParent())&&-1==t.$.className.search("cke_dialog_page_contents"););return t?(t=t.getAttribute("name"),this._.dialog._.currentTabId!=t&&this._.dialog.selectPage(t),this):this},focus:function(){return this.selectParentTab().getInputElement().focus(),this},registerEvents:function(t){var e,n,i=/^on([A-Z]\w+)/;for(n in t)(e=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,t[n]):function(t,e,n,i){e.on("load",function(){t.getInputElement().on(n,i,t)})}(this,this._.dialog,e[1].toLowerCase(),t[n]));return this},eventProcessors:{onLoad:function(t,e){t.on("load",e,this)},onShow:function(t,e){t.on("show",e,this)},onHide:function(t,e){t.on("hide",e,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var t=this.getElement();this.getInputElement().setAttribute("disabled","true"),t.addClass("cke_disabled")},enable:function(){var t=this.getElement();this.getInputElement().removeAttribute("disabled"),t.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!(!this.isEnabled()||!this.isVisible())}},CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(t){return 1>arguments.length?this._.children.concat():(t.splice||(t=[t]),2>t.length?this._.children[t[0]]:this._.children[t[0]]&&this._.children[t[0]].getChild?this._.children[t[0]].getChild(t.slice(1,t.length)):null)}},!0),CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox,function(){var t={build:function(t,e,n){for(var i,r=e.children,o=[],a=[],s=0;s<r.length&&(i=r[s]);s++){var l=[];o.push(l),a.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(t,i,l))}return new CKEDITOR.ui.dialog[e.type](t,a,o,n,e)}};CKEDITOR.dialog.addUIElement("hbox",t),CKEDITOR.dialog.addUIElement("vbox",t)}(),CKEDITOR.dialogCommand=function(t,e){this.dialogName=t,CKEDITOR.tools.extend(this,e,!0)},CKEDITOR.dialogCommand.prototype={exec:function(t){t.openDialog(this.dialogName)},canUndo:!1,editorFocus:1},function(){var t=/^([a]|[^a])+$/,e=/^\d*$/,n=/^\d*(?:\.\d+)?$/,i=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,r=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,o=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1,CKEDITOR.VALIDATE_AND=2,CKEDITOR.dialog.validate={functions:function(){var t=arguments;return function(){var e,n,i=this&&this.getValue?this.getValue():t[0],r=CKEDITOR.VALIDATE_AND,o=[];for(n=0;n<t.length&&"function"==typeof t[n];n++)o.push(t[n]);n<t.length&&"string"==typeof t[n]&&(e=t[n],n++),n<t.length&&"number"==typeof t[n]&&(r=t[n]);var a=r==CKEDITOR.VALIDATE_AND;for(n=0;n<o.length;n++)a=r==CKEDITOR.VALIDATE_AND?a&&o[n](i):a||o[n](i);return!!a||e}},regex:function(t,e){return function(n){return n=this&&this.getValue?this.getValue():n,!!t.test(n)||e}},notEmpty:function(e){return this.regex(t,e)},integer:function(t){return this.regex(e,t)},number:function(t){return this.regex(n,t)},cssLength:function(t){return this.functions(function(t){return r.test(CKEDITOR.tools.trim(t))},t)},htmlLength:function(t){return this.functions(function(t){return i.test(CKEDITOR.tools.trim(t))},t)},inlineStyle:function(t){return this.functions(function(t){return o.test(CKEDITOR.tools.trim(t))},t)},equals:function(t,e){return this.functions(function(e){return e==t},e)},notEqual:function(t,e){return this.functions(function(e){return e!=t},e)}},CKEDITOR.on("instanceDestroyed",function(t){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var e;e=CKEDITOR.dialog._.currentTop;)e.hide();for(var n in T)T[n].remove();T={}}t=t.editor._.storedDialogs;for(var i in t)t[i].destroy()})}(),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(t,e){var n=null,i=CKEDITOR.dialog._.dialogDefinitions[t];if(null===CKEDITOR.dialog._.currentTop&&h(this),"function"==typeof i)n=this._.storedDialogs||(this._.storedDialogs={}),n=n[t]||(n[t]=new CKEDITOR.dialog(this,t)),e&&e.call(n,n),n.show();else{if("failed"==i)throw f(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+t+'" failed when loading definition.');"string"==typeof i&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(i),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[t]&&(CKEDITOR.dialog._.dialogDefinitions[t]="failed"),this.openDialog(t,e)},this,0,1)}return CKEDITOR.skin.loadPart("dialog"),n}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(t){t.on("doubleclick",function(e){e.data.dialog&&t.openDialog(e.data.dialog)},null,null,999)}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(t){var e=this;t.addCommand("a11yHelp",{exec:function(){var n=t.langCode,n=e.availableLangs[n]?n:e.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+n+".js"),function(){t.lang.a11yhelp=e.langEntries[n],t.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1}),t.setKeystroke(CKEDITOR.ALT+48,"a11yHelp"),CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js"),t.on("ariaEditorHelpLabel",function(e){e.data.label=t.lang.common.editorHelp})}})}(),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(t){var e=t.addCommand("about",new CKEDITOR.dialogCommand("about"));e.modes={wysiwyg:1,source:1},e.canUndo=!1,e.readOnly=1,t.ui.addButton&&t.ui.addButton("About",{label:t.lang.about.title,command:"about",toolbar:"about"}),CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("basicstyles",{init:function(t){var e=0,n=function(n,r,o,a){if(a){a=new CKEDITOR.style(a);var s=i[o];s.unshift(a),t.attachStyleStateChange(a,function(e){!t.readOnly&&t.getCommand(o).setState(e)}),t.addCommand(o,new CKEDITOR.styleCommand(a,{contentForms:s})),t.ui.addButton&&t.ui.addButton(n,{label:r,command:o,toolbar:"basicstyles,"+(e+=10)})}},i={bold:["strong","b",["span",function(t){return"bold"==(t=t.styles["font-weight"])||700<=+t}]],italic:["em","i",["span",function(t){return"italic"==t.styles["font-style"]}]],underline:["u",["span",function(t){return"underline"==t.styles["text-decoration"]}]],strike:["s","strike",["span",function(t){return"line-through"==t.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},r=t.config,o=t.lang.basicstyles;n("Bold",o.bold,"bold",r.coreStyles_bold),n("Italic",o.italic,"italic",r.coreStyles_italic),n("Underline",o.underline,"underline",r.coreStyles_underline),n("Strike",o.strike,"strike",r.coreStyles_strike),n("Subscript",o.subscript,"subscript",r.coreStyles_subscript),n("Superscript",o.superscript,"superscript",r.coreStyles_superscript),t.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){var t={exec:function(t){var e=t.getCommand("blockquote").state,n=t.getSelection(),i=n&&n.getRanges()[0];if(i){var r=n.createBookmarks();if(CKEDITOR.env.ie){var o,a=r[0].startNode,s=r[0].endNode;if(a&&"blockquote"==a.getParent().getName())for(o=a;o=o.getNext();)if(o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()){a.move(o,!0);break}if(s&&"blockquote"==s.getParent().getName())for(o=s;o=o.getPrevious();)if(o.type==CKEDITOR.NODE_ELEMENT&&o.isBlockBoundary()){s.move(o);break}}var l=i.createIterator();if(l.enlargeBr=t.config.enterMode!=CKEDITOR.ENTER_BR,e==CKEDITOR.TRISTATE_OFF){for(a=[];e=l.getNextParagraph();)a.push(e);for(1>a.length&&(e=t.document.createElement(t.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),s=r.shift(),i.insertNode(e),e.append(new CKEDITOR.dom.text("\ufeff",t.document)),i.moveToBookmark(s),i.selectNodeContents(e),i.collapse(!0),s=i.createBookmark(),a.push(e),r.unshift(s)),o=a[0].getParent(),i=[],s=0;s<a.length;s++)e=a[s],o=o.getCommonAncestor(e.getParent());for(e={table:1,tbody:1,tr:1,ol:1,ul:1};e[o.getName()];)o=o.getParent();for(s=null;0<a.length;){for(e=a.shift();!e.getParent().equals(o);)e=e.getParent();e.equals(s)||i.push(e),s=e}for(;0<i.length;)if(e=i.shift(),"blockquote"==e.getName()){for(s=new CKEDITOR.dom.documentFragment(t.document);e.getFirst();)s.append(e.getFirst().remove()),a.push(s.getLast());s.replace(e)}else a.push(e);for(i=t.document.createElement("blockquote"),i.insertBefore(a[0]);0<a.length;)e=a.shift(),i.append(e)}else if(e==CKEDITOR.TRISTATE_ON){for(s=[],o={};e=l.getNextParagraph();){for(a=i=null;e.getParent();){if("blockquote"==e.getParent().getName()){i=e.getParent(),a=e;break}e=e.getParent()}i&&a&&!a.getCustomData("blockquote_moveout")&&(s.push(a),CKEDITOR.dom.element.setMarker(o,a,"blockquote_moveout",!0))}for(CKEDITOR.dom.element.clearAllMarkers(o),e=[],a=[],o={};0<s.length;)l=s.shift(),i=l.getParent(),l.getPrevious()?l.getNext()?(l.breakParent(l.getParent()),a.push(l.getNext())):l.remove().insertAfter(i):l.remove().insertBefore(i),i.getCustomData("blockquote_processed")||(a.push(i),CKEDITOR.dom.element.setMarker(o,i,"blockquote_processed",!0)),e.push(l);for(CKEDITOR.dom.element.clearAllMarkers(o),s=a.length-1;0<=s;s--){i=a[s];t:{o=i;for(var l=0,c=o.getChildCount(),u=void 0;l<c&&(u=o.getChild(l));l++)if(u.type==CKEDITOR.NODE_ELEMENT&&u.isBlockBoundary()){o=!1;break t}o=!0}o&&i.remove()}if(t.config.enterMode==CKEDITOR.ENTER_BR)for(i=!0;e.length;)if(l=e.shift(),"div"==l.getName()){for(s=new CKEDITOR.dom.documentFragment(t.document),!i||!l.getPrevious()||l.getPrevious().type==CKEDITOR.NODE_ELEMENT&&l.getPrevious().isBlockBoundary()||s.append(t.document.createElement("br")),i=l.getNext()&&!(l.getNext().type==CKEDITOR.NODE_ELEMENT&&l.getNext().isBlockBoundary());l.getFirst();)l.getFirst().remove().appendTo(s);i&&s.append(t.document.createElement("br")),s.replace(l),i=!1}}n.selectBookmarks(r),t.focus()}},refresh:function(t,e){this.setState(t.elementPath(e.block||e.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(e){e.blockless||(e.addCommand("blockquote",t),e.ui.addButton&&e.ui.addButton("Blockquote",{label:e.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),function(){function t(t,e,n){return e.type||(e.type="auto"),!(n&&!1===t.fire("beforePaste",e)||!e.dataValue&&e.dataTransfer.isEmpty())&&(e.dataValue||(e.dataValue=""),CKEDITOR.env.gecko&&"drop"==e.method&&t.toolbox&&t.once("afterPaste",function(){t.toolbox.focus()}),t.fire("paste",e))}function e(e){function n(){var t=e.editable();if(CKEDITOR.plugins.clipboard.isCustomCopyCutSupported){var n=function(t){e.readOnly&&"cut"==t.name||m.initPasteDataTransfer(t,e),t.data.preventDefault()};t.on("copy",n),t.on("cut",n),t.on("cut",function(){e.readOnly||e.extractSelectedHtml()},null,null,999)}t.on(m.mainPasteEvent,function(t){"beforepaste"==m.mainPasteEvent&&g||h(t)}),"beforepaste"==m.mainPasteEvent&&(t.on("paste",function(t){v||(o(),t.data.preventDefault(),h(t),s("paste")||e.openDialog("paste"))}),t.on("contextmenu",a,null,null,0),t.on("beforepaste",function(t){!t.data||t.data.$.ctrlKey||t.data.$.shiftKey||a()},null,null,0)),t.on("beforecut",function(){!g&&l()});var i;t.attachListener(CKEDITOR.env.ie?t:e.document.getDocumentElement(),"mouseup",function(){i=setTimeout(function(){f()},0)}),e.on("destroy",function(){clearTimeout(i)}),t.on("keyup",f)}function i(t){return{type:t,canUndo:"cut"==t,startDisabled:!0,exec:function(){"cut"==this.type&&l();var t,n=this.type;if(CKEDITOR.env.ie)t=s(n);else try{t=e.document.$.execCommand(n,!1,null)}catch(i){t=!1}return t||e.showNotification(e.lang.clipboard[this.type+"Error"]),t}}}function r(){return{canUndo:!1,async:!0,exec:function(e,n){var i=this,r=function(n,r){n&&t(e,n,!!r),e.fire("afterCommandExec",{name:"paste",command:i,returnValue:!!n})};"string"==typeof n?r({dataValue:n,method:"paste",dataTransfer:m.initPasteDataTransfer()},1):e.getClipboardData(r)}}}function o(){v=1,setTimeout(function(){v=0},100)}function a(){g=1,setTimeout(function(){g=0},10)}function s(t){var n=e.document,i=n.getBody(),r=!1,o=function(){r=!0};return i.on(t,o),7<CKEDITOR.env.version?n.$.execCommand(t):n.$.selection.createRange().execCommand(t),i.removeListener(t,o),r}function l(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var t,n,i,r=e.getSelection();r.getType()==CKEDITOR.SELECTION_ELEMENT&&(t=r.getSelectedElement())&&(n=r.getRanges()[0],i=e.document.createText(""),i.insertBefore(t),n.setStartBefore(i),n.setEndAfter(t),r.selectRanges([n]),setTimeout(function(){t.getParent()&&(i.remove(),r.selectElement(t))},0))}}function c(t,n){var i,r=e.document,o=e.editable(),a=function(t){t.cancel()};if(!r.getById("cke_pastebin")){var s=e.getSelection(),l=s.createBookmarks();CKEDITOR.env.ie&&s.root.fire("selectionchange");var c=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!o.is("body")||CKEDITOR.env.ie?"div":"body",r);c.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var u=0,r=r.getWindow();CKEDITOR.env.webkit?(o.append(c),c.addClass("cke_editable"),o.is("body")||(u="static"!=o.getComputedStyle("position")?o:CKEDITOR.dom.element.get(o.$.offsetParent),u=u.getDocumentPosition().y)):o.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(c),c.setStyles({position:"absolute",top:r.getScrollPosition().y-u+10+"px",width:"1px",height:Math.max(1,r.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}),CKEDITOR.env.safari&&c.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","text")),(u=c.getParent().isReadOnly())?(c.setOpacity(0),c.setAttribute("contenteditable",!0)):c.setStyle("ltr"==e.config.contentsLangDirection?"left":"right","-10000px"),e.on("selectionChange",a,null,null,0),(CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&(i=o.once("blur",a,null,null,-100)),u&&c.focus(),u=new CKEDITOR.dom.range(c),u.selectNodeContents(c);var d=u.select();CKEDITOR.env.ie&&(i=o.once("blur",function(){e.lockSelection(d)}));var h=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=h),i&&i.removeListener(),CKEDITOR.env.ie&&o.focus(),s.selectBookmarks(l),c.remove();var t;CKEDITOR.env.webkit&&(t=c.getFirst())&&t.is&&t.hasClass("Apple-style-span")&&(c=t),e.removeListener("selectionChange",a),n(c.getHtml())},0)}}function u(){if("paste"==m.mainPasteEvent)return e.fire("beforePaste",{type:"auto",method:"paste"}),!1;e.focus(),o();var t=e.focusManager;return t.lock(),e.editable().fire(m.mainPasteEvent)&&!s("paste")?(t.unlock(),!1):(t.unlock(),!0)}function d(t){if("wysiwyg"==e.mode)switch(t.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:t=e.editable(),o(),"paste"==m.mainPasteEvent&&t.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:e.fire("saveSnapshot"),setTimeout(function(){e.fire("saveSnapshot")},50)}}function h(n){var i={type:"auto",method:"paste",dataTransfer:m.initPasteDataTransfer(n)};i.dataTransfer.cacheData();var r=!1!==e.fire("beforePaste",i);r&&m.canClipboardApiBeTrusted(i.dataTransfer,e)?(n.data.preventDefault(),setTimeout(function(){t(e,i)},0)):c(n,function(n){i.dataValue=n.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/gi,""),r&&t(e,i)})}function f(){if("wysiwyg"==e.mode){var t=p("paste");e.getCommand("cut").setState(p("cut")),e.getCommand("copy").setState(p("copy")),e.getCommand("paste").setState(t),e.fire("pasteState",t)}}function p(t){if(y&&t in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==t)return CKEDITOR.TRISTATE_OFF;t=e.getSelection();var n=t.getRanges();return t.getType()==CKEDITOR.SELECTION_NONE||1==n.length&&n[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var m=CKEDITOR.plugins.clipboard,g=0,v=0,y=0;!function(){e.on("key",d),e.on("contentDom",n),e.on("selectionChange",function(t){y=t.data.selection.getRanges()[0].checkReadOnly(),f()}),e.contextMenu&&e.contextMenu.addListener(function(t,e){return y=e.getRanges()[0].checkReadOnly(),{cut:p("cut"),copy:p("copy"),paste:p("paste")}})}(),function(){function t(t,n,i,r,o){var a=e.lang.clipboard[n];e.addCommand(n,i),e.ui.addButton&&e.ui.addButton(t,{label:a,command:n,toolbar:"clipboard,"+r}),e.addMenuItems&&e.addMenuItem(n,{label:a,command:n,group:"clipboard",order:o})}t("Cut","cut",i("cut"),10,1),t("Copy","copy",i("copy"),20,4),t("Paste","paste",r(),30,8)}(),e.getClipboardData=function(t,n){function i(t){t.removeListener(),t.cancel(),n(t.data)}function r(t){t.removeListener(),t.cancel(),l=!0,n({type:s,dataValue:t.data.dataValue,dataTransfer:t.data.dataTransfer,method:"paste"})}function o(){this.customTitle=t&&t.title}var a=!1,s="auto",l=!1;n||(n=t,t=null),e.on("paste",i,null,null,0),e.on("beforePaste",function(t){t.removeListener(),a=!0,s=t.data.type},null,null,1e3),!1===u()&&(e.removeListener("paste",i),a&&e.fire("pasteDialog",o)?(e.on("pasteDialogCommit",r),e.on("dialogHide",function(t){t.removeListener(),t.data.removeListener("pasteDialogCommit",r),setTimeout(function(){l||n(null)},10)})):n(null))}}function n(t){if(CKEDITOR.env.webkit){if(!t.match(/^[^<]*$/g)&&!t.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!t.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!t.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else{if(!CKEDITOR.env.gecko)return"html";if(!t.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}return"htmlifiedtext"}function i(t,e){function n(t){return CKEDITOR.tools.repeat("</p><p>",~~(t/2))+(1==t%2?"<br>":"")}return e=e.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>"),e=e.replace(/<\/?[A-Z]+>/g,function(t){return t.toLowerCase()}),e.match(/^[^<]$/)?e:(CKEDITOR.env.webkit&&-1<e.indexOf("<div>")&&(e=e.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>"),e.match(/<div>(<br>|)<\/div>/)&&(e="<p>"+e.replace(/(<div>(<br>|)<\/div>)+/g,function(t){return n(t.split("</div><div>").length+1)})+"</p>"),e=e.replace(/<\/div><div>/g,"<br>"),e=e.replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&t.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(e=e.replace(/^<br><br>$/,"<br>")),-1<e.indexOf("<br><br>")&&(e="<p>"+e.replace(/(<br>){2,}/g,function(t){return n(t.length/4)})+"</p>")),a(t,e))}function r(){function t(){var t,e={};for(t in CKEDITOR.dtd)"$"!=t.charAt(0)&&"div"!=t&&"span"!=t&&(e[t]=1);return e}var e={};return{get:function(n){return"plain-text"==n?e.plainText||(e.plainText=new CKEDITOR.filter("br")):"semantic-content"==n?((n=e.semanticContent)||(n=new CKEDITOR.filter,n.allow({$1:{elements:t(),attributes:!0,styles:!1,classes:!1}}),n=e.semanticContent=n),n):n?new CKEDITOR.filter(n):null}}}function o(t,e,n){e=CKEDITOR.htmlParser.fragment.fromHtml(e);var i=new CKEDITOR.htmlParser.basicWriter;return n.applyTo(e,!0,!1,t.activeEnterMode),e.writeHtml(i),i.getHtml()}function a(t,e){return t.enterMode==CKEDITOR.ENTER_BR?e=e.replace(/(<\/p><p>)+/g,function(t){return CKEDITOR.tools.repeat("<br>",t.length/7*2)}).replace(/<\/?p>/g,""):t.enterMode==CKEDITOR.ENTER_DIV&&(e=e.replace(/<(\/)?p>/g,"<$1div>")),e}function s(t){t.data.preventDefault(),t.data.$.dataTransfer.dropEffect="none"}function l(e){var n=CKEDITOR.plugins.clipboard;e.on("contentDom",function(){function i(n,i,r){i.select(),t(e,{dataTransfer:r,method:"drop"},1),r.sourceEditor.fire("saveSnapshot"),r.sourceEditor.editable().extractHtmlFromRange(n),r.sourceEditor.getSelection().selectRanges([n]),r.sourceEditor.fire("saveSnapshot")}function r(i,r){i.select(),t(e,{dataTransfer:r,method:"drop"},1),n.resetDragDataTransfer()}function o(t,n,i){var r={$:t.data.$,target:t.data.getTarget()};n&&(r.dragRange=n),i&&(r.dropRange=i),!1===e.fire(t.name,r)&&t.data.preventDefault()}function a(t){return t.type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),t.getChildCount()}var s=e.editable(),l=CKEDITOR.plugins.clipboard.getDropTarget(e),c=e.ui.space("top"),u=e.ui.space("bottom");n.preventDefaultDropOnElement(c),n.preventDefaultDropOnElement(u),s.attachListener(l,"dragstart",o),s.attachListener(e,"dragstart",n.resetDragDataTransfer,n,null,1),s.attachListener(e,"dragstart",function(t){n.initDragDataTransfer(t,e)},null,null,2),s.attachListener(e,"dragstart",function(){var t=n.dragRange=e.getSelection().getRanges()[0];CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(n.dragStartContainerChildCount=t?a(t.startContainer):null,n.dragEndContainerChildCount=t?a(t.endContainer):null)},null,null,100),s.attachListener(l,"dragend",o),s.attachListener(e,"dragend",n.initDragDataTransfer,n,null,1),s.attachListener(e,"dragend",n.resetDragDataTransfer,n,null,100),s.attachListener(l,"dragover",function(t){var e=t.data.getTarget();e&&e.is&&e.is("html")?t.data.preventDefault():CKEDITOR.env.ie&&CKEDITOR.plugins.clipboard.isFileApiSupported&&t.data.$.dataTransfer.types.contains("Files")&&t.data.preventDefault()}),s.attachListener(l,"drop",function(t){if(!t.data.$.defaultPrevented){t.data.preventDefault();var i=t.data.getTarget();if(!i.isReadOnly()||i.type==CKEDITOR.NODE_ELEMENT&&i.is("html")){var i=n.getRangeAtDropPosition(t,e),r=n.dragRange;i&&o(t,r,i)}}},null,null,9999),s.attachListener(e,"drop",n.initDragDataTransfer,n,null,1),s.attachListener(e,"drop",function(t){if(t=t.data){var o=t.dropRange,a=t.dragRange,s=t.dataTransfer;s.getTransferType(e)==CKEDITOR.DATA_TRANSFER_INTERNAL?setTimeout(function(){n.internalDrop(a,o,s,e)},0):s.getTransferType(e)==CKEDITOR.DATA_TRANSFER_CROSS_EDITORS?i(a,o,s):r(o,s)}},null,null,9999)})}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(t){var a,s=r();t.config.forcePasteAsPlainText?a="plain-text":t.config.pasteFilter?a=t.config.pasteFilter:!CKEDITOR.env.webkit||"pasteFilter"in t.config||(a="semantic-content"),t.pasteFilter=s.get(a),e(t),l(t),CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")),t.on("paste",function(e){if(e.data.dataTransfer||(e.data.dataTransfer=new CKEDITOR.plugins.clipboard.dataTransfer),!e.data.dataValue){var n=e.data.dataTransfer,i=n.getData("text/html");i?(e.data.dataValue=i,e.data.type="html"):(i=n.getData("text/plain"))&&(e.data.dataValue=t.editable().transformPlainTextToHtml(i),e.data.type="text")}},null,null,1),t.on("paste",function(t){var e=t.data.dataValue,n=CKEDITOR.dtd.$block;if(-1<e.indexOf("Apple-")&&(e=e.replace(/<span class="Apple-converted-space"> <\/span>/gi," "),"html"!=t.data.type&&(e=e.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(t,e){return e.replace(/\t/g," ")})),-1<e.indexOf('<br class="Apple-interchange-newline">')&&(t.data.startsWithEOL=1,t.data.preSniffing="html",e=e.replace(/<br class="Apple-interchange-newline">/,"")),e=e.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")),e.match(/^<[^<]+cke_(editable|contents)/i)){var i,r,o=new CKEDITOR.dom.element("div");for(o.setHtml(e);1==o.getChildCount()&&(i=o.getFirst())&&i.type==CKEDITOR.NODE_ELEMENT&&(i.hasClass("cke_editable")||i.hasClass("cke_contents"));)o=r=i;r&&(e=r.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?e=e.replace(/^ (?: |\r\n)?<(\w+)/g,function(e,i){return i.toLowerCase()in n?(t.data.preSniffing="html","<"+i):e}):CKEDITOR.env.webkit?e=e.replace(/<\/(\w+)><div><br><\/div>$/,function(e,i){return i in n?(t.data.endsWithEOL=1,"</"+i+">"):e}):CKEDITOR.env.gecko&&(e=e.replace(/(\s)<br>$/,"$1")),t.data.dataValue=e},null,null,3),t.on("paste",function(e){e=e.data;var r,a=e.type,l=e.dataValue,c=t.config.clipboard_defaultContentType||"html",u=e.dataTransfer.getTransferType(t);r="html"==a||"html"==e.preSniffing?"html":n(l),"htmlifiedtext"==r&&(l=i(t.config,l)),"text"==a&&"html"==r?l=o(t,l,s.get("plain-text")):u==CKEDITOR.DATA_TRANSFER_EXTERNAL&&t.pasteFilter&&!e.dontFilter&&(l=o(t,l,t.pasteFilter)),e.startsWithEOL&&(l='<br data-cke-eol="1">'+l),e.endsWithEOL&&(l+='<br data-cke-eol="1">'),"auto"==a&&(a="html"==r||"html"==c?"html":"text"),e.type=a,e.dataValue=l,delete e.preSniffing,delete e.startsWithEOL,delete e.endsWithEOL},null,null,6),t.on("paste",function(e){e=e.data,e.dataValue&&(t.insertHtml(e.dataValue,e.type,e.range),setTimeout(function(){t.fire("afterPaste")},0))},null,null,1e3),t.on("pasteDialog",function(e){setTimeout(function(){t.openDialog("paste",e.data)},0)})}}),CKEDITOR.plugins.clipboard={isCustomCopyCutSupported:!CKEDITOR.env.ie&&!CKEDITOR.env.iOS,isCustomDataTypesSupported:!CKEDITOR.env.ie,isFileApiSupported:!CKEDITOR.env.ie||9<CKEDITOR.env.version,mainPasteEvent:CKEDITOR.env.ie&&!CKEDITOR.env.edge?"beforepaste":"paste",canClipboardApiBeTrusted:function(t,e){return!!(t.getTransferType(e)!=CKEDITOR.DATA_TRANSFER_EXTERNAL||CKEDITOR.env.chrome&&!t.isEmpty()||CKEDITOR.env.gecko&&(t.getData("text/html")||t.getFilesCount()))},getDropTarget:function(t){var e=t.editable();return CKEDITOR.env.ie&&9>CKEDITOR.env.version||e.isInline()?e:t.document},fixSplitNodesAfterDrop:function(t,e,n,i){function r(t,n,i){var r=t;if(r.type==CKEDITOR.NODE_TEXT&&(r=t.getParent()),r.equals(n)&&i!=n.getChildCount())return t=e.startContainer.getChild(e.startOffset-1),n=e.startContainer.getChild(e.startOffset),t&&t.type==CKEDITOR.NODE_TEXT&&n&&n.type==CKEDITOR.NODE_TEXT&&(i=t.getLength(),t.setText(t.getText()+n.getText()),n.remove(),e.setStart(t,i),e.collapse(!0)),!0}var o=e.startContainer;"number"==typeof i&&"number"==typeof n&&o.type==CKEDITOR.NODE_ELEMENT&&(r(t.startContainer,o,n)||r(t.endContainer,o,i))},isDropRangeAffectedByDragRange:function(t,e){var n=e.startContainer,i=e.endOffset;return!!(t.endContainer.equals(n)&&t.endOffset<=i||t.startContainer.getParent().equals(n)&&t.startContainer.getIndex()<i||t.endContainer.getParent().equals(n)&&t.endContainer.getIndex()<i)},internalDrop:function(e,n,i,r){var o,a,s=CKEDITOR.plugins.clipboard,l=r.editable();r.fire("saveSnapshot"),r.fire("lockSnapshot",{dontUpdate:1}),CKEDITOR.env.ie&&10>CKEDITOR.env.version&&this.fixSplitNodesAfterDrop(e,n,s.dragStartContainerChildCount,s.dragEndContainerChildCount),(a=this.isDropRangeAffectedByDragRange(e,n))||(o=e.createBookmark(!1)),s=n.clone().createBookmark(!1),a&&(o=e.createBookmark(!1)),e=o.startNode,n=o.endNode,a=s.startNode,n&&e.getPosition(a)&CKEDITOR.POSITION_PRECEDING&&n.getPosition(a)&CKEDITOR.POSITION_FOLLOWING&&a.insertBefore(e),e=r.createRange(),e.moveToBookmark(o),l.extractHtmlFromRange(e,1),n=r.createRange(),n.moveToBookmark(s),t(r,{dataTransfer:i,method:"drop",range:n},1),r.fire("unlockSnapshot")},getRangeAtDropPosition:function(t,e){var n=t.data.$,i=n.clientX,r=n.clientY,o=e.getSelection(!0).getRanges()[0],a=e.createRange();if(t.data.testRange)return t.data.testRange;if(document.caretRangeFromPoint)n=e.document.$.caretRangeFromPoint(i,r),a.setStart(CKEDITOR.dom.node(n.startContainer),n.startOffset),a.collapse(!0);else if(n.rangeParent)a.setStart(CKEDITOR.dom.node(n.rangeParent),n.rangeOffset),a.collapse(!0);else{if(CKEDITOR.env.ie&&8<CKEDITOR.env.version&&o&&e.editable().hasFocus)return o;if(!document.body.createTextRange)return null;e.focus(),n=e.document.getBody().$.createTextRange();try{for(var s=!1,l=0;20>l&&!s;l++){if(!s)try{n.moveToPoint(i,r-l),s=!0}catch(a){}if(!s)try{n.moveToPoint(i,r+l),s=!0}catch(p){}}if(s){var c="cke-temp-"+(new Date).getTime();n.pasteHTML('<span id="'+c+'">​</span>');var u=e.document.getById(c);a.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START),u.remove()}else{var d,h=e.document.$.elementFromPoint(i,r),f=new CKEDITOR.dom.element(h);if(f.equals(e.editable())||"html"==f.getName())return o&&o.startContainer&&!o.startContainer.equals(e.editable())?o:null;d=f.getClientRect(),i<d.left?a.setStartAt(f,CKEDITOR.POSITION_AFTER_START):a.setStartAt(f,CKEDITOR.POSITION_BEFORE_END),a.collapse(!0)}}catch(m){return null}}return a},initDragDataTransfer:function(t,e){var n=t.data.$?t.data.$.dataTransfer:null,i=new this.dataTransfer(n,e);n?this.dragData&&i.id==this.dragData.id?i=this.dragData:this.dragData=i:this.dragData?i=this.dragData:this.dragData=i,t.data.dataTransfer=i},resetDragDataTransfer:function(){this.dragData=null},initPasteDataTransfer:function(t,e){if(this.isCustomCopyCutSupported){if(t&&t.data&&t.data.$){var n=new this.dataTransfer(t.data.$.clipboardData,e);return this.copyCutData&&n.id==this.copyCutData.id?(n=this.copyCutData,n.$=t.data.$.clipboardData):this.copyCutData=n,n}return new this.dataTransfer(null,e)}return new this.dataTransfer(CKEDITOR.env.edge&&t&&t.data.$&&t.data.$.clipboardData||null,e)},preventDefaultDropOnElement:function(t){t&&t.on("dragover",s)}};var c=CKEDITOR.plugins.clipboard.isCustomDataTypesSupported?"cke/id":"Text";CKEDITOR.plugins.clipboard.dataTransfer=function(t,e){if(t&&(this.$=t),this._={metaRegExp:/^<meta.*?>/i,bodyRegExp:/<body(?:[\s\S]*?)>([\s\S]*)<\/body>/i,fragmentRegExp:/\x3c!--(?:Start|End)Fragment--\x3e/g,data:{},files:[],normalizeType:function(t){return t=t.toLowerCase(),"text"==t||"text/plain"==t?"Text":"url"==t?"URL":t}},this.id=this.getData(c),this.id||(this.id="Text"==c?"":"cke-"+CKEDITOR.tools.getUniqueId()),"Text"!=c)try{this.$.setData(c,this.id)}catch(i){}e&&(this.sourceEditor=e,this.setData("text/html",e.getSelectedHtml(1)),"Text"==c||this.getData("text/plain")||this.setData("text/plain",e.getSelection().getSelectedText()))},CKEDITOR.DATA_TRANSFER_INTERNAL=1,CKEDITOR.DATA_TRANSFER_CROSS_EDITORS=2,CKEDITOR.DATA_TRANSFER_EXTERNAL=3,CKEDITOR.plugins.clipboard.dataTransfer.prototype={getData:function(t){t=this._.normalizeType(t);var e=this._.data[t];if(void 0===e||null===e||""===e)try{e=this.$.getData(t)}catch(i){}return void 0!==e&&null!==e&&""!==e||(e=""),"text/html"==t?(e=e.replace(this._.metaRegExp,""),(t=this._.bodyRegExp.exec(e))&&t.length&&(e=t[1],e=e.replace(this._.fragmentRegExp,""))):"Text"==t&&CKEDITOR.env.gecko&&this.getFilesCount()&&"file://"==e.substring(0,7)&&(e=""),e},setData:function(t,e){if(t=this._.normalizeType(t),this._.data[t]=e,CKEDITOR.plugins.clipboard.isCustomDataTypesSupported||"URL"==t||"Text"==t){"Text"==c&&"Text"==t&&(this.id=e);try{this.$.setData(t,e)}catch(i){}}},getTransferType:function(t){return this.sourceEditor?this.sourceEditor==t?CKEDITOR.DATA_TRANSFER_INTERNAL:CKEDITOR.DATA_TRANSFER_CROSS_EDITORS:CKEDITOR.DATA_TRANSFER_EXTERNAL},cacheData:function(){function t(t){t=i._.normalizeType(t);var e=i.getData(t);e&&(i._.data[t]=e)}if(this.$){var e,n,i=this;if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(e=0;e<this.$.types.length;e++)t(this.$.types[e])}else t("Text"),t("URL");if(n=this._getImageFromClipboard(),this.$&&this.$.files||n){if(this._.files=[],this.$.files&&this.$.files.length)for(e=0;e<this.$.files.length;e++)this._.files.push(this.$.files[e]);0===this._.files.length&&n&&this._.files.push(n)}}},getFilesCount:function(){return this._.files.length?this._.files.length:this.$&&this.$.files&&this.$.files.length?this.$.files.length:this._getImageFromClipboard()?1:0},getFile:function(t){return this._.files.length?this._.files[t]:this.$&&this.$.files&&this.$.files.length?this.$.files[t]:0===t?this._getImageFromClipboard():void 0},isEmpty:function(){var t,e={};if(this.getFilesCount())return!1;for(t in this._.data)e[t]=1;if(this.$)if(CKEDITOR.plugins.clipboard.isCustomDataTypesSupported){if(this.$.types)for(var n=0;n<this.$.types.length;n++)e[this.$.types[n]]=1}else e.Text=1,e.URL=1;"Text"!=c&&(e[c]=0);for(t in e)if(e[t]&&""!==this.getData(t))return!1;return!0},_getImageFromClipboard:function(){var t;if(this.$&&this.$.items&&this.$.items[0])try{if((t=this.$.items[0].getAsFile())&&t.type)return t}catch(n){}}}}(),function(){CKEDITOR.plugins.add("panel",{beforeInit:function(t){t.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}}),CKEDITOR.UI_PANEL="panel",CKEDITOR.ui.panel=function(t,e){e&&CKEDITOR.tools.extend(this,e),CKEDITOR.tools.extend(this,{className:"",css:[]}),this.id=CKEDITOR.tools.getNextId(),this.document=t,this.isFramed=this.forceIFrame||this.css.length,this._={blocks:{}}},CKEDITOR.ui.panel.handler={create:function(t){return new CKEDITOR.ui.panel(t)}};var t=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),e=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),n=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(i,r){this.getHolderElement=function(){var t=this._.holder;if(!t){if(this.isFramed){var t=this.document.getById(this.id+"_frame"),e=t.getParent(),t=t.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}),e=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0,this.onLoad&&this.onLoad()},this)),t.write(n.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+e+");"},o))),t.getWindow().$.CKEDITOR=CKEDITOR,t.on("keydown",function(t){var e=t.data.getKeystroke(),n=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(e)?t.data.preventDefault():(27==e||e==("rtl"==n?39:37))&&this.onEscape&&!1===this.onEscape(e)&&t.data.preventDefault()},this),t=t.getBody(),t.unselectable(),CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else t=this.document.getById(this.id);this._.holder=t}return t};var o={editorId:i.id,id:this.id,langCode:i.langCode,dir:i.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":i.config.baseFloatZIndex+1};if(this.isFramed){var a=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";o.frame=e.output({id:this.id+"_frame",src:a})}return a=t.output(o),r&&r.push(a),a},addBlock:function(t,e){return e=this._.blocks[t]=e instanceof CKEDITOR.ui.panel.block?e:new CKEDITOR.ui.panel.block(this.getHolderElement(),e),this._.currentBlock||this.showBlock(t),e},getBlock:function(t){return this._.blocks[t]},showBlock:function(t){t=this._.blocks[t];var e=this._.currentBlock,n=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");return e&&e.hide(),this._.currentBlock=t,CKEDITOR.fire("ariaWidget",n),t._.focusIndex=-1,this._.onKeyDown=t.onKeyDown&&CKEDITOR.tools.bind(t.onKeyDown,t),t.show(),t},destroy:function(){this.element&&this.element.remove()}},CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(t,e){this.element=t.append(t.getDocument().createElement("div",{attributes:{tabindex:-1,"class":"cke_panel_block"},styles:{display:"none"}})),e&&CKEDITOR.tools.extend(this,e),this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]}),this.keys={},this._.focusIndex=-1,this.element.disableContextMenu()},_:{markItem:function(t){-1!=t&&(t=this.element.getElementsByTag("a").getItem(this._.focusIndex=t),CKEDITOR.env.webkit&&t.getDocument().getWindow().focus(),t.focus(),this.onMark&&this.onMark(t))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){this.onHide&&!0===this.onHide.call(this)||this.element.setStyle("display","none")},onKeyDown:function(t,e){var n=this.keys[t];switch(n){case"next":for(var i,r=this._.focusIndex,n=this.element.getElementsByTag("a");i=n.getItem(++r);)if(i.getAttribute("_cke_focus")&&i.$.offsetWidth){this._.focusIndex=r,i.focus();break}return!i&&!e&&(this._.focusIndex=-1,this.onKeyDown(t,1));case"prev":for(r=this._.focusIndex,n=this.element.getElementsByTag("a");0<r&&(i=n.getItem(--r));){if(i.getAttribute("_cke_focus")&&i.$.offsetWidth){this._.focusIndex=r,i.focus();break}i=null}return!i&&!e&&(this._.focusIndex=n.count(),this.onKeyDown(t,1));case"click":case"mouseup":return r=this._.focusIndex,(i=0<=r&&this.element.getElementsByTag("a").getItem(r))&&(i.$[n]?i.$[n]():i.$["on"+n]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function t(t,n,i,r,o){o=CKEDITOR.tools.genKey(n.getUniqueId(),i.getUniqueId(),t.lang.dir,t.uiColor||"",r.css||"",o||"");var a=e[o];return a||(a=e[o]=new CKEDITOR.ui.panel(n,r),a.element=i.append(CKEDITOR.dom.element.createFromHtml(a.render(t),n)),a.element.setStyles({display:"none",position:"absolute"})),a}var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(e,n,i,r){function o(){c.hide()}i.forceIFrame=1,i.toolbarRelated&&e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(n=CKEDITOR.document.getById("cke_"+e.name));var a=n.getDocument();r=t(e,a,n,i,r||0);var s=r.element,l=s.getFirst(),c=this;s.disableContextMenu(),this.element=s,this._={editor:e,panel:r,parentElement:n,definition:i,document:a,iframe:l,children:[],dir:e.lang.dir,showBlockParams:null},e.on("mode",o),e.on("resize",o),a.getWindow().on("resize",function(){this.reposition()},this)},proto:{addBlock:function(t,e){return this._.panel.addBlock(t,e)},addListBlock:function(t,e){return this._.panel.addListBlock(t,e)},getBlock:function(t){return this._.panel.getBlock(t)},showBlock:function(t,e,n,i,r,o){var a=this._.panel,s=a.showBlock(t);this._.showBlockParams=[].slice.call(arguments),this.allowBlur(!1);var l=this._.editor.editable();this._.returnFocus=l.hasFocus?l:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement),this._.hideTimeout=0;var c=this.element,l=this._.iframe,l=CKEDITOR.env.ie&&!CKEDITOR.env.edge?l:new CKEDITOR.dom.window(l.$.contentWindow),u=c.getDocument(),d=this._.parentElement.getPositionedAncestor(),h=e.getDocumentPosition(u),u=d?d.getDocumentPosition(u):{x:0,y:0},f="rtl"==this._.dir,p=h.x+(i||0)-u.x,m=h.y+(r||0)-u.y;!f||1!=n&&4!=n?f||2!=n&&3!=n||(p+=e.$.offsetWidth-1):p+=e.$.offsetWidth,3!=n&&4!=n||(m+=e.$.offsetHeight-1),this._.panel._.offsetParentId=e.getId(),c.setStyles({top:m+"px",left:0,display:""}),c.setOpacity(0),c.getFirst().removeStyle("width"),this._.editor.focusManager.add(l),this._.blurSet||(CKEDITOR.event.useCapture=!0,l.on("blur",function(t){function e(){delete this._.returnFocus,this.hide()}this.allowBlur()&&t.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(e,0,this)):e.call(this))},this),l.on("focus",function(){this._.focused=!0,this.hideChild(),this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(l.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),l.on("touchend",function(){this._.hideTimeout=0,this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1),a.onEscape=CKEDITOR.tools.bind(function(t){if(this.onEscape&&!1===this.onEscape(t))return!1},this),CKEDITOR.tools.setTimeout(function(){var t=CKEDITOR.tools.bind(function(){var t=c;if(t.removeStyle("width"),s.autoSize){var e=s.element.getDocument(),e=(CKEDITOR.env.webkit||CKEDITOR.env.edge?s.element:e.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(t.$.offsetWidth||0)-(t.$.clientWidth||0)+3),t.setStyle("width",e+10+"px"),e=s.element.$.scrollHeight,CKEDITOR.env.ie&&CKEDITOR.env.quirks&&0<e&&(e+=(t.$.offsetHeight||0)-(t.$.clientHeight||0)+3),t.setStyle("height",e+"px"),a._.currentBlock.element.setStyle("display","none").removeStyle("display")}else t.removeStyle("height");f&&(p-=c.$.offsetWidth),c.setStyle("left",p+"px");var e=a.element.getWindow(),t=c.$.getBoundingClientRect(),e=e.getViewPaneSize(),n=t.width||t.right-t.left,i=t.height||t.bottom-t.top,r=f?t.right:e.width-t.left,l=f?e.width-t.right:t.left;f?r<n&&(p=l>n?p+n:e.width>n?p-t.left:p-t.right+e.width):r<n&&(p=l>n?p-n:e.width>n?p-t.right+e.width:p-t.left),n=t.top,e.height-t.top<i&&(m=n>i?m-i:e.height>i?m-t.bottom+e.height:m-t.top),CKEDITOR.env.ie&&(e=t=new CKEDITOR.dom.element(c.$.offsetParent),"html"==e.getName()&&(e=e.getDocument().getBody()),"rtl"==e.getComputedStyle("direction")&&(p=CKEDITOR.env.ie8Compat?p-2*c.getDocument().getDocumentElement().$.scrollLeft:p-(t.$.scrollWidth-t.$.clientWidth)));var u,t=c.getFirst();(u=t.getCustomData("activePanel"))&&u.onHide&&u.onHide.call(this,1),t.setCustomData("activePanel",this),c.setStyles({top:m+"px",left:p+"px"}),c.setOpacity(1),o&&o()},this);a.isLoaded?t():a.onLoad=t,CKEDITOR.tools.setTimeout(function(){var t=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus(),s.element.focus(),CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=t),this.allowBlur(!0),this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this),this.visible=1,this.onShow&&this.onShow.call(this)},reposition:function(){var t=this._.showBlockParams;this.visible&&this._.showBlockParams&&(this.hide(),this.showBlock.apply(this,t))},focus:function(){if(CKEDITOR.env.webkit){var t=CKEDITOR.document.getActive();t&&!t.equals(this._.iframe)&&t.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var t=this._.iframe.getFrameDocument().getActive();t&&t.is("a")&&(this._.lastFocused=t)},hide:function(t){!this.visible||this.onHide&&!0===this.onHide.call(this)||(this.hideChild(),CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(),this.element.setStyle("display","none"),this.visible=0,this.element.getFirst().removeCustomData("activePanel"),(t=t&&this._.returnFocus)&&(CKEDITOR.env.webkit&&t.type&&t.getWindow().$.focus(),t.focus()),delete this._.lastFocused,this._.showBlockParams=null,this._.editor.fire("panelHide",this))},allowBlur:function(t){var e=this._.panel;return void 0!==t&&(e.allowBlur=t),e.allowBlur},showAsChild:function(t,e,n,i,r,o){this._.activeChild==t&&t._.panel._.offsetParentId==n.getId()||(this.hideChild(),t.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=t,this._.focused=!1,t.showBlock(e,n,i,r,o),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){t.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(t){var e=this._.activeChild;e&&(delete e.onHide,delete this._.activeChild,e.hide(),t&&this.focus())}}}),CKEDITOR.on("instanceDestroyed",function(){var t,n=CKEDITOR.tools.isEmpty(CKEDITOR.instances);for(t in e){var i=e[t];n?i.destroy():i.element.hide()}n&&(e={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(t){for(var e=t.config.menu_groups.split(","),n=t._.menuGroups={},i=t._.menuItems={},r=0;r<e.length;r++)n[e[r]]=r+1;t.addMenuGroup=function(t,e){n[t]=e||100},t.addMenuItem=function(t,e){n[e.group]&&(i[t]=new CKEDITOR.menuItem(this,t,e))},t.addMenuItems=function(t){for(var e in t)this.addMenuItem(e,t[e])},t.getMenuItem=function(t){return i[t]},t.removeMenuItem=function(t){delete i[t]}}}),function(){function t(t){t.sort(function(t,e){return t.group<e.group?-1:t.group>e.group?1:t.order<e.order?-1:t.order>e.order?1:0})}var e='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');var e=e+' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">',n=CKEDITOR.addTemplate("menuItem",e+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),i=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(t,e){e=this._.definition=e||{},this.id=CKEDITOR.tools.getNextId(),this.editor=t,this.items=[],this._.listeners=[],this._.level=e.level||1;var n=CKEDITOR.tools.extend({},e.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),i=n.block.attributes=n.attributes||{};!i.role&&(i.role="menu"),this._.panelDefinition=n},_:{onShow:function(){var t=this.editor.getSelection(),e=t&&t.getStartElement(),n=this.editor.elementPath(),i=this._.listeners;this.removeAll();for(var r=0;r<i.length;r++){var o=i[r](e,t,n);if(o)for(var a in o){var s=this.editor.getMenuItem(a);!s||s.command&&!this.editor.getCommand(s.command).state||(s.state=o[a],this.add(s))}}},onClick:function(t){this.hide(),t.onClick?t.onClick():t.command&&this.editor.execCommand(t.command)},onEscape:function(t){var e=this.parent;return e?e._.panel.hideChild(1):27==t&&this.hide(1),!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(t){var e=this._.subMenu,n=this.items[t];if(n=n.getItems&&n.getItems()){e?e.removeAll():(e=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},!0)),e.parent=this,e._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var i in n){var r=this.editor.getMenuItem(i);r&&(r.state=n[i],e.add(r))}var o=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+String(t));setTimeout(function(){e.show(o,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(t){t.order||(t.order=this.items.length),this.items.push(t)},removeAll:function(){this.items=[]},show:function(e,n,i,r){if(this.parent||(this._.onShow(),this.items.length)){n=n||("rtl"==this.editor.lang.dir?2:1);var o=this.items,a=this.editor,s=this._.panel,l=this._.element;if(!s){s=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level),s.onEscape=CKEDITOR.tools.bind(function(t){if(!1===this._.onEscape(t))return!1},this),s.onShow=function(){s._.panel.getHolderElement().getParent().addClass("cke").addClass("cke_reset_all")},s.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this),l=s.addBlock(this.id,this._.panelDefinition.block),l.autoSize=!0;var c=l.keys;c[40]="next",c[9]="next",c[38]="prev",c[CKEDITOR.SHIFT+9]="prev",c["rtl"==a.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click",c[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(c[13]="mouseup"),l=this._.element=l.element,c=l.getDocument(),c.getBody().setStyle("overflow","hidden"),c.getElementsByTag("html").getItem(0).setStyle("overflow","hidden"),this._.itemOverFn=CKEDITOR.tools.addFunction(function(t){clearTimeout(this._.showSubTimeout),this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,a.config.menu_subMenuDelay||400,this,[t])},this),this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this),this._.itemClickFn=CKEDITOR.tools.addFunction(function(t){var e=this.items[t];e.state==CKEDITOR.TRISTATE_DISABLED?this.hide(1):e.getItems?this._.showSubMenu(t):this._.onClick(e)},this)}t(o);for(var c=a.elementPath(),c=['<div class="cke_menu'+(c&&c.direction()!=a.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],u=o.length,d=u&&o[0].group,h=0;h<u;h++){var f=o[h];d!=f.group&&(c.push('<div class="cke_menuseparator" role="separator"></div>'),d=f.group),f.render(this,h,c)}c.push("</div>"),l.setHtml(c.join("")),CKEDITOR.ui.fire("ready",this),this.parent?this.parent._.panel.showAsChild(s,this.id,e,n,i,r):s.showBlock(this.id,e,n,i,r),a.fire("menuShow",[s])}},addListener:function(t){this._.listeners.push(t)},hide:function(t){this._.onHide&&this._.onHide(),this._.panel&&this._.panel.hide(t)}}}),CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(t,e,n){CKEDITOR.tools.extend(this,n,{order:0,className:"cke_menubutton__"+e}),this.group=t._.menuGroups[this.group],this.editor=t,this.name=e},proto:{render:function(t,e,r){var o=t.id+String(e),a="undefined"==typeof this.state?CKEDITOR.TRISTATE_OFF:this.state,s="",l=a==CKEDITOR.TRISTATE_ON?"on":a==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(s=' aria-checked="'+(a==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var c=this.getItems,u="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",d=this.name;this.icon&&!/\./.test(this.icon)&&(d=this.icon),t={id:o,name:this.name,iconName:d,label:this.label,cls:this.className||"",state:l,hasPopup:c?"true":"false",disabled:a==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:t._.itemOverFn,moveOutFn:t._.itemOutFn,clickFn:t._.itemClickFn,index:e,iconStyle:CKEDITOR.skin.getIconStyle(d,"rtl"==this.editor.lang.dir,d==this.icon?null:this.icon,this.iconOffset),arrowHtml:c?i.output({label:u}):"",role:this.role?this.role:"menuitem",ariaChecked:s},n.output(t,r)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(t){this.base.call(this,t,{panel:{className:"cke_menu_panel",attributes:{"aria-label":t.lang.contextmenu.options}}})},proto:{addTarget:function(t,e){if(t.on("contextmenu",function(t){t=t.data;var i=CKEDITOR.env.webkit?n:CKEDITOR.env.mac?t.$.metaKey:t.$.ctrlKey;if(!e||!i){if(t.preventDefault(),CKEDITOR.env.mac&&CKEDITOR.env.webkit){var i=this.editor,r=new CKEDITOR.dom.elementPath(t.getTarget(),i.editable()).contains(function(t){return t.hasAttribute("contenteditable")},!0);r&&"false"==r.getAttribute("contenteditable")&&i.getSelection().fake(r)}var r=t.getTarget().getDocument(),o=t.getTarget().getDocument().getDocumentElement(),i=!r.equals(CKEDITOR.document),r=r.getWindow().getScrollPosition(),a=i?t.$.clientX:t.$.pageX||r.x+t.$.clientX,s=i?t.$.clientY:t.$.pageY||r.y+t.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(o,null,a,s)},CKEDITOR.env.ie?200:0,this)}},this),CKEDITOR.env.webkit){var n,i=function(){n=0};t.on("keydown",function(t){n=CKEDITOR.env.mac?t.data.$.metaKey:t.data.$.ctrlKey}),t.on("keyup",i),t.on("contextmenu",i)}},open:function(t,e,n,i){this.editor.focus(),t=t||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(t,e,n,i)}}})},beforeInit:function(t){var e=t.contextMenu=new CKEDITOR.plugins.contextMenu(t);t.on("contentDom",function(){e.addTarget(t.editable(),!1!==t.config.browserContextMenuOnCtrl)}),t.addCommand("contextMenu",{exec:function(){t.contextMenu.open(t.document.getBody())}}),t.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu"),t.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),function(){function t(t,n){function r(e){e=l.list[e];var n;e.equals(t.editable())||"true"==e.getAttribute("contenteditable")?(n=t.createRange(),n.selectNodeContents(e),n=n.select()):(n=t.getSelection(),n.selectElement(e)),CKEDITOR.env.ie&&t.fire("selectionChange",{selection:n,path:new CKEDITOR.dom.elementPath(e)}),t.focus()}function o(){a&&a.setHtml('<span class="cke_path_empty"> </span>'),delete l.list}var a,s=t.ui.spaceId("path"),l=t._.elementsPath,c=l.idBase;n.html+='<span id="'+s+'_label" class="cke_voice_label">'+t.lang.elementspath.eleLabel+'</span><span id="'+s+'" class="cke_path" role="group" aria-labelledby="'+s+'_label"><span class="cke_path_empty"> </span></span>',t.on("uiReady",function(){var e=t.ui.space("path");e&&t.focusManager.add(e,1)}),l.onClick=r;var u=CKEDITOR.tools.addFunction(r),d=CKEDITOR.tools.addFunction(function(e,n){var i,o=l.idBase;switch(n=new CKEDITOR.dom.event(n),i="rtl"==t.lang.dir,n.getKeystroke()){case i?39:37:case 9:return(i=CKEDITOR.document.getById(o+(e+1)))||(i=CKEDITOR.document.getById(o+"0")),i.focus(),!1;case i?37:39:case CKEDITOR.SHIFT+9:return(i=CKEDITOR.document.getById(o+(e-1)))||(i=CKEDITOR.document.getById(o+(l.list.length-1))),i.focus(),!1;case 27:return t.focus(),!1;case 13:case 32:return r(e),!1}return!0});t.on("selectionChange",function(){for(var e,n=[],r=l.list=[],o=[],h=l.filters,f=!0,p=t.elementPath().elements,m=p.length;m--;){var g=p[m],v=0;e=g.data("cke-display-name")?g.data("cke-display-name"):g.data("cke-real-element-type")?g.data("cke-real-element-type"):g.getName(),(f=g.hasAttribute("contenteditable")?"true"==g.getAttribute("contenteditable"):f)||g.hasAttribute("contenteditable")||(v=1);for(var y=0;y<h.length;y++){var E=h[y](g,e);if(!1===E){v=1;break}e=E||e}v||(r.unshift(g),o.unshift(e))}for(r=r.length,h=0;h<r;h++)e=o[h],f=t.lang.elementspath.eleTitle.replace(/%1/,e),e=i.output({id:c+h,label:f,text:e,jsTitle:"javascript:void('"+e+"')",index:h,keyDownFn:d,clickFn:u}),n.unshift(e);a||(a=CKEDITOR.document.getById(s)),o=a,o.setHtml(n.join("")+'<span class="cke_path_empty"> </span>'),t.fire("elementsPathUpdate",{space:o})}),t.on("readOnly",o),t.on("contentDomUnload",o),t.addCommand("elementsPathFocus",e.toolbarFocus),t.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}var e={toolbarFocus:{editorFocus:!1,readOnly:1,exec:function(t){(t=CKEDITOR.document.getById(t._.elementsPath.idBase+"0"))&&t.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}}},n="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(n+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(n+=' onblur="this.style.cssText = this.style.cssText;"');var i=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+n+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(e){e._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",filters:[]},e.on("uiSpace",function(n){"bottom"==n.data.space&&t(e,n.data)})}})}(),function(){function t(t,i){var r,o;i.on("refresh",function(t){var i,r=[e];for(i in t.data.states)r.push(t.data.states[i]);this.setState(CKEDITOR.tools.search(r,n)?n:e)},i,null,100),i.on("exec",function(e){r=t.getSelection(),o=r.createBookmarks(1),e.data||(e.data={}),e.data.done=!1},i,null,0),i.on("exec",function(){t.forceNextSelectionCheck(),r.selectBookmarks(o)},i,null,100)}var e=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(e){var n=CKEDITOR.plugins.indent.genericDefinition;t(e,e.addCommand("indent",new n(!0))),t(e,e.addCommand("outdent",new n)),e.ui.addButton&&(e.ui.addButton("Indent",{label:e.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),e.ui.addButton("Outdent",{label:e.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"})),e.on("dirChanged",function(t){var n=e.createRange(),i=t.data.node;n.setStartBefore(i),n.setEndAfter(i);for(var r,o=new CKEDITOR.dom.walker(n);r=o.next();)if(r.type==CKEDITOR.NODE_ELEMENT)if(!r.equals(i)&&r.getDirection())n.setStartAfter(r),o=new CKEDITOR.dom.walker(n);else{var a=e.config.indentClasses;if(a)for(var s="ltr"==t.data.dir?["_rtl",""]:["","_rtl"],l=0;l<a.length;l++)r.hasClass(a[l]+s[0])&&(r.removeClass(a[l]+s[0]),r.addClass(a[l]+s[1]));a=r.getStyle("margin-right"),s=r.getStyle("margin-left"),a?r.setStyle("margin-left",a):r.removeStyle("margin-left"),s?r.setStyle("margin-right",s):r.removeStyle("margin-right")}})}}),CKEDITOR.plugins.indent={genericDefinition:function(t){this.isIndent=!!t,this.startDisabled=!this.isIndent},specificDefinition:function(t,e,n){this.name=e,this.editor=t,this.jobs={},this.enterBr=t.config.enterMode==CKEDITOR.ENTER_BR,this.isIndent=!!n,this.relatedGlobal=n?"indent":"outdent",this.indentKey=n?9:CKEDITOR.SHIFT+9,this.database={}},registerCommands:function(t,e){t.on("pluginsLoaded",function(){for(var t in e)!function(t,e){var n,i=t.getCommand(e.relatedGlobal);for(n in e.jobs)i.on("exec",function(i){i.data.done||(t.fire("lockSnapshot"),e.execJob(t,n)&&(i.data.done=!0),t.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(e.database))},this,null,n),i.on("refresh",function(i){i.data.states||(i.data.states={}),i.data.states[e.name+"@"+n]=e.refreshJob(t,n,i.data.path)},this,null,n);t.addFeature(e)}(this,e[t])})}},CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}},CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(t,n){var i=this.jobs[n];if(i.state!=e)return i.exec.call(this,t)},refreshJob:function(t,n,i){return n=this.jobs[n],t.activeFilter.checkFeature(this)?n.state=n.refresh.call(this,t,i):n.state=e,n.state},getContext:function(t){return t.contains(this.context)}}}(),function(){function t(t){for(var i,r=this,o=this.database,a=this.context,s=t.getSelection(),s=(s&&s.getRanges()).createIterator();i=s.getNextRange();){for(var l=i.getCommonAncestor();l&&(l.type!=CKEDITOR.NODE_ELEMENT||!a[l.getName()]);){if(t.editable().equals(l)){l=!1;break}l=l.getParent()}if(l||(l=i.startPath().contains(a))&&i.setEndAt(l,CKEDITOR.POSITION_BEFORE_END),!l){var c=i.getEnclosedNode();c&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()in a&&(i.setStartAt(c,CKEDITOR.POSITION_AFTER_START),i.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),l=c)}if(l&&i.startContainer.type==CKEDITOR.NODE_ELEMENT&&i.startContainer.getName()in a&&(c=new CKEDITOR.dom.walker(i),c.evaluator=e,i.startContainer=c.next()),l&&i.endContainer.type==CKEDITOR.NODE_ELEMENT&&i.endContainer.getName()in a&&(c=new CKEDITOR.dom.walker(i),c.evaluator=e,i.endContainer=c.previous()),l)return function(e){for(var s=i.startContainer,l=i.endContainer;s&&!s.getParent().equals(e);)s=s.getParent();for(;l&&!l.getParent().equals(e);)l=l.getParent();if(!s||!l)return!1;for(var c=s,s=[],u=!1;!u;)c.equals(l)&&(u=!0),s.push(c),c=c.getNext();if(1>s.length)return!1;for(c=e.getParents(!0),l=0;l<c.length;l++)if(c[l].getName&&a[c[l].getName()]){e=c[l];break}for(var c=r.isIndent?1:-1,l=s[0],s=s[s.length-1],u=CKEDITOR.plugins.list.listToArray(e,o),d=u[s.getCustomData("listarray_index")].indent,l=l.getCustomData("listarray_index");l<=s.getCustomData("listarray_index");l++)if(u[l].indent+=c,0<c){var h=u[l].parent;u[l].parent=new CKEDITOR.dom.element(h.getName(),h.getDocument())}for(l=s.getCustomData("listarray_index")+1;l<u.length&&u[l].indent>d;l++)u[l].indent+=c;if(s=CKEDITOR.plugins.list.arrayToList(u,o,null,t.config.enterMode,e.getDirection()),!r.isIndent){var f;if((f=e.getParent())&&f.is("li"))for(var p,c=s.listNode.getChildren(),m=[],l=c.count()-1;0<=l;l--)(p=c.getItem(l))&&p.is&&p.is("li")&&m.push(p)}if(s&&s.listNode.replace(e),m&&m.length)for(l=0;l<m.length;l++){for(p=e=m[l];(p=p.getNext())&&p.is&&p.getName()in a;)CKEDITOR.env.needsNbspFiller&&!e.getFirst(n)&&e.append(i.document.createText(" ")),e.append(p);e.insertAfter(f)}return s&&t.fire("contentDomInvalidated"),!0}(l)}return 0}function e(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.is("li")}function n(t){return i(t)&&r(t)}var i=CKEDITOR.dom.walker.whitespaces(!0),r=CKEDITOR.dom.walker.bookmark(!1,!0),o=CKEDITOR.TRISTATE_DISABLED,a=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(e){function n(e){i.specificDefinition.apply(this,arguments),this.requiredContent=["ul","ol"],e.on("key",function(t){if("wysiwyg"==e.mode&&t.data.keyCode==this.indentKey){var n=this.getContext(e.elementPath());!n||this.isIndent&&CKEDITOR.plugins.indentList.firstItemInPath(this.context,e.elementPath(),n)||(e.execCommand(this.relatedGlobal),t.cancel())}},this),this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(t,e){var n=this.getContext(e),i=CKEDITOR.plugins.indentList.firstItemInPath(this.context,e,n);return n&&this.isIndent&&!i?a:o}:function(t,e){return!this.getContext(e)||this.isIndent?o:a},exec:CKEDITOR.tools.bind(t,this)}}var i=CKEDITOR.plugins.indent;i.registerCommands(e,{indentlist:new n(e,"indentlist",!0),outdentlist:new n(e,"outdentlist")}),CKEDITOR.tools.extend(n.prototype,i.specificDefinition.prototype,{context:{ol:1,ul:1}})}}),CKEDITOR.plugins.indentList={},CKEDITOR.plugins.indentList.firstItemInPath=function(t,n,i){var r=n.contains(e);return i||(i=n.contains(t)),i&&r&&r.equals(i.getFirst(e))}}(),function(){function t(t,e,n){function i(n){!(l=u[n?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(c=e.root[n?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||c.is&&c.isBlockBoundary({br:1})||t.document.createElement("br")[n?"insertBefore":"insertAfter"](l)}for(var r=CKEDITOR.plugins.list.listToArray(e.root,n),o=[],a=0;a<e.contents.length;a++){var s=e.contents[a];(s=s.getAscendant("li",!0))&&!s.getCustomData("list_item_processed")&&(o.push(s),CKEDITOR.dom.element.setMarker(n,s,"list_item_processed",!0))}for(s=null,a=0;a<o.length;a++)s=o[a].getCustomData("listarray_index"),r[s].indent=-1;for(a=s+1;a<r.length;a++)if(r[a].indent>r[a-1].indent+1){for(o=r[a-1].indent+1-r[a].indent,s=r[a].indent;r[a]&&r[a].indent>=s;)r[a].indent+=o,a++;a--}var l,c,u=CKEDITOR.plugins.list.arrayToList(r,n,null,t.config.enterMode,e.root.getAttribute("dir")).listNode;i(!0),i(),u.replace(e.root),t.fire("contentDomInvalidated")}function e(t,e){this.name=t,this.context=this.type=e,this.allowedContent=e+" li",this.requiredContent=e}function n(t,e,n,i){for(var r,o;r=t[i?"getLast":"getFirst"](f);)(o=r.getDirection(1))!==e.getDirection(1)&&r.setAttribute("dir",o),r.remove(),n?r[i?"insertBefore":"insertAfter"](n):e.append(r,i)}function i(t){function e(e){var i=t[e?"getPrevious":"getNext"](u);i&&i.type==CKEDITOR.NODE_ELEMENT&&i.is(t.getName())&&(n(t,i,null,!e),t.remove(),t=i)}e(),e(1)}function r(t){return t.type==CKEDITOR.NODE_ELEMENT&&(t.getName()in CKEDITOR.dtd.$block||t.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[t.getName()]["#"]}function o(t,e,r){t.fire("saveSnapshot"),r.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var o=r.extractContents();e.trim(!1,!0);var s=e.createBookmark(),l=new CKEDITOR.dom.elementPath(e.startContainer),c=l.block,l=l.lastElement.getAscendant("li",1)||c,h=new CKEDITOR.dom.elementPath(r.startContainer),f=h.contains(CKEDITOR.dtd.$listItem),h=h.contains(CKEDITOR.dtd.$list);for(c?(c=c.getBogus())&&c.remove():h&&(c=h.getPrevious(u))&&d(c)&&c.remove(),(c=o.getLast())&&c.type==CKEDITOR.NODE_ELEMENT&&c.is("br")&&c.remove(),(c=e.startContainer.getChild(e.startOffset))?o.insertBefore(c):e.startContainer.append(o),f&&(o=a(f))&&(l.contains(f)?(n(o,f.getParent(),f),o.remove()):l.append(o));r.checkStartOfBlock()&&r.checkEndOfBlock()&&(h=r.startPath(),o=h.block);)o.is("li")&&(l=o.getParent(),o.equals(l.getLast(u))&&o.equals(l.getFirst(u))&&(o=l)),r.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o.remove();r=r.clone(),o=t.editable(),r.setEndAt(o,CKEDITOR.POSITION_BEFORE_END),r=new CKEDITOR.dom.walker(r),r.evaluator=function(t){return u(t)&&!d(t)},(r=r.next())&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in CKEDITOR.dtd.$list&&i(r),e.moveToBookmark(s),e.select(),t.fire("saveSnapshot")}function a(t){return(t=t.getLast(u))&&t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in s?t:null}var s={ol:1,ul:1},l=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(),u=function(t){return!(l(t)||c(t))},d=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(t,e,n,i,r){if(!s[t.getName()])return[];i||(i=0),n||(n=[]);for(var o=0,a=t.getChildCount();o<a;o++){var l=t.getChild(o);if(l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(l,e,n,i+1),"li"==l.$.nodeName.toLowerCase()){var c={parent:t,indent:i,element:l,contents:[]};r?c.grandparent=r:(c.grandparent=t.getParent(),c.grandparent&&"li"==c.grandparent.$.nodeName.toLowerCase()&&(c.grandparent=c.grandparent.getParent())),e&&CKEDITOR.dom.element.setMarker(e,l,"listarray_index",n.length),n.push(c);for(var u,d=0,h=l.getChildCount();d<h;d++)u=l.getChild(d),u.type==CKEDITOR.NODE_ELEMENT&&s[u.getName()]?CKEDITOR.plugins.list.listToArray(u,e,n,i+1,c.grandparent):c.contents.push(u)}}return n},arrayToList:function(t,e,n,i,r){if(n||(n=0),!t||t.length<n+1)return null;for(var o,a,l,d=t[n].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(d),f=null,p=n,m=Math.max(t[n].indent,0),g=null,v=i==CKEDITOR.ENTER_P?"p":"div";;){var y=t[p];if(o=y.grandparent,a=y.element.getDirection(1),y.indent==m){for(f&&t[p].parent.getName()==f.getName()||(f=t[p].parent.clone(!1,1),r&&f.setAttribute("dir",r),h.append(f)),g=f.append(y.element.clone(0,1)),a!=f.getDirection(1)&&g.setAttribute("dir",a),o=0;o<y.contents.length;o++)g.append(y.contents[o].clone(1,1));p++}else if(y.indent==Math.max(m,0)+1)y=t[p-1].element.getDirection(1),p=CKEDITOR.plugins.list.arrayToList(t,null,p,i,y!=a?a:null),!g.getChildCount()&&CKEDITOR.env.needsNbspFiller&&7>=d.$.documentMode&&g.append(d.createText(" ")),g.append(p.listNode),p=p.nextIndex;else{if(-1!=y.indent||n||!o)return null;s[o.getName()]?(g=y.element.clone(!1,!0),a!=o.getDirection(1)&&g.setAttribute("dir",a)):g=new CKEDITOR.dom.documentFragment(d);var E,b,f=o.getDirection(1)!=a,_=y.element,C=_.getAttribute("class"),T=_.getAttribute("style"),I=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i!=CKEDITOR.ENTER_BR||f||T||C),D=y.contents.length;for(o=0;o<D;o++)if(E=y.contents[o],c(E)&&1<D)I?b=E.clone(1,1):g.append(E.clone(1,1));else if(E.type==CKEDITOR.NODE_ELEMENT&&E.isBlockBoundary()){f&&!E.getDirection()&&E.setAttribute("dir",a),l=E;var $=_.getAttribute("style");$&&l.setAttribute("style",$.replace(/([^;])$/,"$1;")+(l.getAttribute("style")||"")),C&&E.addClass(C),l=null,b&&(g.append(b),b=null),g.append(E.clone(1,1))}else I?(l||(l=d.createElement(v),g.append(l),f&&l.setAttribute("dir",a)),T&&l.setAttribute("style",T),C&&l.setAttribute("class",C),b&&(l.append(b),b=null),l.append(E.clone(1,1))):g.append(E.clone(1,1));b&&((l||g).append(b),b=null),g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=t.length-1&&(CKEDITOR.env.needsBrFiller&&(a=g.getLast())&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("br")&&a.remove(),(a=g.getLast(u))&&a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.$block)||g.append(d.createElement("br"))),a=g.$.nodeName.toLowerCase(),"div"!=a&&"p"!=a||g.appendBogus(),h.append(g),f=null,p++}if(l=null,t.length<=p||Math.max(t[p].indent,0)<m)break}if(e)for(t=h.getFirst();t;){if(t.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(e,t),t.getName()in CKEDITOR.dtd.$listItem&&(n=t,d=r=i=void 0,i=n.getDirection()))){for(r=n.getParent();r&&!(d=r.getDirection());)r=r.getParent();i==d&&n.removeAttribute("dir")}t=t.getNextSourceNode()}return{listNode:h,nextIndex:p}}};var h=/^h[1-6]$/,f=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);e.prototype={exec:function(e){this.refresh(e,e.elementPath());var n=e.config,r=e.getSelection(),o=r&&r.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){var a=e.editable();if(a.getFirst(u)){var l=1==o.length&&o[0];(n=l&&l.getEnclosedNode())&&n.is&&this.type==n.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else n.enterMode==CKEDITOR.ENTER_BR?a.appendBogus():o[0].fixBlock(1,n.enterMode==CKEDITOR.ENTER_P?"p":"div"),r.selectRanges(o)}for(var n=r.createBookmarks(!0),a=[],c={},o=o.createIterator(),d=0;(l=o.getNextRange())&&++d;){var f=l.getBoundaryNodes(),p=f.startNode,m=f.endNode;for(p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&l.setStartAt(f.startNode,CKEDITOR.POSITION_AFTER_START),m.type==CKEDITOR.NODE_ELEMENT&&"td"==m.getName()&&l.setEndAt(f.endNode,CKEDITOR.POSITION_BEFORE_END),l=l.createIterator(),l.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;f=l.getNextParagraph();)if(!f.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(c,f,"list_block",1);for(var g,v=e.elementPath(f),p=v.elements,m=0,v=v.blockLimit,y=p.length-1;0<=y&&(g=p[y]);y--)if(s[g.getName()]&&v.contains(g)){v.removeCustomData("list_group_object_"+d),(p=g.getCustomData("list_group_object"))?p.contents.push(f):(p={root:g,contents:[f]},a.push(p),CKEDITOR.dom.element.setMarker(c,g,"list_group_object",p)),m=1;break}m||(m=v,m.getCustomData("list_group_object_"+d)?m.getCustomData("list_group_object_"+d).contents.push(f):(p={root:m,contents:[f]},CKEDITOR.dom.element.setMarker(c,m,"list_group_object_"+d,p),a.push(p)))}}for(g=[];0<a.length;)if(p=a.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(s[p.root.getName()]){for(o=e,d=p,p=c,l=g,m=CKEDITOR.plugins.list.listToArray(d.root,p),v=[],f=0;f<d.contents.length;f++)y=d.contents[f],(y=y.getAscendant("li",!0))&&!y.getCustomData("list_item_processed")&&(v.push(y),CKEDITOR.dom.element.setMarker(p,y,"list_item_processed",!0));for(var y=d.root.getDocument(),E=void 0,b=void 0,f=0;f<v.length;f++){var _=v[f].getCustomData("listarray_index"),E=m[_].parent;E.is(this.type)||(b=y.createElement(this.type),E.copyAttributes(b,{start:1,type:1}),b.removeStyle("list-style-type"),m[_].parent=b)}for(p=CKEDITOR.plugins.list.arrayToList(m,p,null,o.config.enterMode),m=void 0,v=p.listNode.getChildCount(),f=0;f<v&&(m=p.listNode.getChild(f));f++)m.getName()==this.type&&l.push(m);p.listNode.replace(d.root),o.fire("contentDomInvalidated")}else{for(m=e,l=p,f=g,v=l.contents,o=l.root.getDocument(),d=[],1==v.length&&v[0].equals(l.root)&&(p=o.createElement("div"),v[0].moveChildren&&v[0].moveChildren(p),v[0].append(p),v[0]=p),l=l.contents[0].getParent(),y=0;y<v.length;y++)l=l.getCommonAncestor(v[y].getParent());for(E=m.config.useComputedState,m=p=void 0,E=void 0===E||E,y=0;y<v.length;y++)for(b=v[y];_=b.getParent();){if(_.equals(l)){d.push(b),!m&&b.getDirection()&&(m=1),b=b.getDirection(E),null!==p&&(p=p&&p!=b?null:b);break}b=_}if(!(1>d.length)){for(v=d[d.length-1].getNext(),y=o.createElement(this.type),f.push(y),E=f=void 0;d.length;)f=d.shift(),E=o.createElement("li"),b=f,b.is("pre")||h.test(b.getName())||"false"==b.getAttribute("contenteditable")?f.appendTo(E):(f.copyAttributes(E),p&&f.getDirection()&&(E.removeStyle("direction"),E.removeAttribute("dir")),f.moveChildren(E),f.remove()),E.appendTo(y);p&&m&&y.setAttribute("dir",p),v?y.insertBefore(v):y.appendTo(l)}}else this.state==CKEDITOR.TRISTATE_ON&&s[p.root.getName()]&&t.call(this,e,p,c);for(y=0;y<g.length;y++)i(g[y]);CKEDITOR.dom.element.clearAllMarkers(c),r.selectBookmarks(n),e.focus()},refresh:function(t,e){var n=e.contains(s,1),i=e.blockLimit||e.root;n&&i.contains(n)?this.setState(n.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(t){t.blockless||(t.addCommand("numberedlist",new e("numberedlist","ol")),t.addCommand("bulletedlist",new e("bulletedlist","ul")),t.ui.addButton&&(t.ui.addButton("NumberedList",{label:t.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),t.ui.addButton("BulletedList",{label:t.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),t.on("key",function(e){var n,i=e.data.domEvent.getKey();if("wysiwyg"==t.mode&&i in{8:1,46:1}){var l=t.getSelection().getRanges()[0],c=l&&l.startPath();if(l&&l.collapsed){var h=8==i,f=t.editable(),p=new CKEDITOR.dom.walker(l.clone());if(p.evaluator=function(t){return u(t)&&!d(t)},p.guard=function(t,e){return!(e&&t.type==CKEDITOR.NODE_ELEMENT&&t.is("table"))},i=l.clone(),h){var m;if((m=c.contains(s))&&l.checkBoundaryOfElement(m,CKEDITOR.START)&&(m=m.getParent())&&m.is("li")&&(m=a(m))?(n=m,m=m.getPrevious(u),i.moveToPosition(m&&d(m)?m:n,CKEDITOR.POSITION_BEFORE_START)):(p.range.setStartAt(f,CKEDITOR.POSITION_AFTER_START),p.range.setEnd(l.startContainer,l.startOffset),(m=p.previous())&&m.type==CKEDITOR.NODE_ELEMENT&&(m.getName()in s||m.is("li"))&&(m.is("li")||(p.range.selectNodeContents(m),p.reset(),p.evaluator=r,m=p.previous()),n=m,i.moveToElementEditEnd(n),i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END))),n)o(t,i,l),e.cancel();else{var g=c.contains(s);g&&l.checkBoundaryOfElement(g,CKEDITOR.START)&&(n=g.getFirst(u),l.checkBoundaryOfElement(n,CKEDITOR.START)&&(m=g.getPrevious(u),a(n)?m&&(l.moveToElementEditEnd(m),l.select()):t.execCommand("outdent"),e.cancel()))}}else if(n=c.contains("li")){if(p.range.setEndAt(f,CKEDITOR.POSITION_BEFORE_END),h=(f=n.getLast(u))&&r(f)?f:n,c=0,(m=p.next())&&m.type==CKEDITOR.NODE_ELEMENT&&m.getName()in s&&m.equals(f)?(c=1,m=p.next()):l.checkBoundaryOfElement(h,CKEDITOR.END)&&(c=2),c&&m){if(l=l.clone(),l.moveToElementEditStart(m),1==c&&(i.optimize(),!i.startContainer.equals(n))){for(n=i.startContainer;n.is(CKEDITOR.dtd.$inline);)g=n,n=n.getParent();g&&i.moveToPosition(g,CKEDITOR.POSITION_AFTER_END)}2==c&&(i.moveToPosition(i.endPath().block,CKEDITOR.POSITION_BEFORE_END),l.endPath().block&&l.moveToPosition(l.endPath().block,CKEDITOR.POSITION_AFTER_START)),o(t,i,l),e.cancel()}}else p.range.setEndAt(f,CKEDITOR.POSITION_BEFORE_END),(m=p.next())&&m.type==CKEDITOR.NODE_ELEMENT&&m.is(s)&&(m=m.getFirst(u),c.block&&l.checkStartOfBlock()&&l.checkEndOfBlock()?(c.block.remove(),l.moveToElementEditStart(m),l.select()):a(m)?(l.moveToElementEditStart(m),l.select()):(l=l.clone(),l.moveToElementEditStart(m),o(t,i,l)),e.cancel());setTimeout(function(){t.selectionChange(1)})}}}))}})}(),function(){function t(t,e,n){n=t.config.forceEnterMode||n,"wysiwyg"==t.mode&&(e||(e=t.activeEnterMode),t.elementPath().isContextFor("p")||(e=CKEDITOR.ENTER_BR,n=1),t.fire("saveSnapshot"),e==CKEDITOR.ENTER_BR?a(t,e,null,n):s(t,e,null,n),t.fire("saveSnapshot"))}function e(t){t=t.getSelection().getRanges(!0);for(var e=t.length-1;0<e;e--)t[e].deleteContents();return t[0]}function n(t){var e=t.startContainer.getAscendant(function(t){return t.type==CKEDITOR.NODE_ELEMENT&&"true"==t.getAttribute("contenteditable")},!0);return t.root.equals(e)?t:(e=new CKEDITOR.dom.range(e),e.moveToRange(t),e)}CKEDITOR.plugins.add("enterkey",{init:function(e){e.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(e){t(e)}}),e.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(e){t(e,e.activeShiftEnterMode,1)}}),e.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var i=CKEDITOR.dom.walker.whitespaces(),r=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(t,o,s,c){if(s=s||e(t)){s=n(s);var u,d=s.document,h=s.checkStartOfBlock(),f=s.checkEndOfBlock(),p=t.elementPath(s.startContainer),m=p.block,g=o==CKEDITOR.ENTER_DIV?"div":"p";if(h&&f){if(m&&(m.is("li")||m.getParent().is("li"))){m.is("li")||(m=m.getParent()),s=m.getParent(),u=s.getParent(),c=!m.hasPrevious();var v=!m.hasNext(),g=t.getSelection(),y=g.createBookmarks(),h=m.getDirection(1),f=m.getAttribute("class"),E=m.getAttribute("style"),b=u.getDirection(1)!=h;if(t=t.enterMode!=CKEDITOR.ENTER_BR||b||E||f,u.is("li"))c||v?(c&&v&&s.remove(),m[v?"insertAfter":"insertBefore"](u)):m.breakParent(u);else{if(t)p.block.is("li")?(u=d.createElement(o==CKEDITOR.ENTER_P?"p":"div"),b&&u.setAttribute("dir",h),E&&u.setAttribute("style",E),f&&u.setAttribute("class",f),m.moveChildren(u)):u=p.block,c||v?u[c?"insertBefore":"insertAfter"](s):(m.breakParent(s),u.insertAfter(s));else if(m.appendBogus(!0),c||v)for(;d=m[c?"getFirst":"getLast"]();)d[c?"insertBefore":"insertAfter"](s);else for(m.breakParent(s);d=m.getLast();)d.insertAfter(s);m.remove()}return void g.selectBookmarks(y)}if(m&&m.getParent().is("blockquote"))return m.breakParent(m.getParent()),m.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||m.getPrevious().remove(),m.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||m.getNext().remove(),s.moveToElementEditStart(m),void s.select()}else if(m&&m.is("pre")&&!f)return void a(t,o,s,c);if(h=s.splitBlock(g)){if(o=h.previousBlock,m=h.nextBlock,p=h.wasStartOfBlock,t=h.wasEndOfBlock,m?(y=m.getParent(),y.is("li")&&(m.breakParent(y),m.move(m.getNext(),1))):o&&(y=o.getParent())&&y.is("li")&&(o.breakParent(y),y=o.getNext(),s.moveToElementEditStart(y),o.move(o.getPrevious())),p||t){if(o?(o.is("li")||!l.test(o.getName())&&!o.is("pre"))&&(u=o.clone()):m&&(u=m.clone()),u?c&&!u.is("li")&&u.renameNode(g):y&&y.is("li")?u=y:(u=d.createElement(g),o&&(v=o.getDirection())&&u.setAttribute("dir",v)),d=h.elementPath)for(c=0,g=d.elements.length;c<g&&(y=d.elements[c],!y.equals(d.block)&&!y.equals(d.blockLimit));c++)CKEDITOR.dtd.$removeEmpty[y.getName()]&&(y=y.clone(),u.moveChildren(y),u.append(y));u.appendBogus(),u.getParent()||s.insertNode(u),u.is("li")&&u.removeAttribute("value"),!CKEDITOR.env.ie||!p||t&&o.getChildCount()||(s.moveToElementEditStart(t?o:u),s.select()),s.moveToElementEditStart(p&&!t?m:u)}else m.is("li")&&(u=s.clone(),u.selectNodeContents(m),u=new CKEDITOR.dom.walker(u),u.evaluator=function(t){return!(r(t)||i(t)||t.type==CKEDITOR.NODE_ELEMENT&&t.getName()in CKEDITOR.dtd.$inline&&!(t.getName()in CKEDITOR.dtd.$empty))},(y=u.next())&&y.type==CKEDITOR.NODE_ELEMENT&&y.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?d.createElement("br"):d.createText(" ")).insertBefore(y)),m&&s.moveToElementEditStart(m);s.select(),s.scrollIntoView()}}},enterBr:function(t,n,i,r){if(i=i||e(t)){var o=i.document,a=i.checkEndOfBlock(),c=new CKEDITOR.dom.elementPath(t.getSelection().getStartElement()),u=c.block,d=u&&c.block.getName();r||"li"!=d?(!r&&a&&l.test(d)?(a=u.getDirection())?(o=o.createElement("div"),o.setAttribute("dir",a),o.insertAfter(u),i.setStart(o,0)):(o.createElement("br").insertAfter(u),CKEDITOR.env.gecko&&o.createText("").insertAfter(u),i.setStartAt(u.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(t="pre"==d&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?o.createText("\r"):o.createElement("br"),i.deleteContents(),i.insertNode(t),CKEDITOR.env.needsBrFiller?(o.createText("\ufeff").insertAfter(t),a&&(u||c.blockLimit).appendBogus(),t.getNext().$.nodeValue="",i.setStartAt(t.getNext(),CKEDITOR.POSITION_AFTER_START)):i.setStartAt(t,CKEDITOR.POSITION_AFTER_END)),i.collapse(!0),i.select(),i.scrollIntoView()):s(t,n,i,r)}}};var o=CKEDITOR.plugins.enterkey,a=o.enterBr,s=o.enterBlock,l=/^h[1-6]$/}(),function(){function t(t,e){var n={},i=[],r={nbsp:" ",shy:"Â",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'};if(t=t.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(t,o){var a=e?"&"+o+";":r[o];return n[a]=e?r[o]:"&"+o+";",i.push(a),""}),!e&&t){t=t.split(",");var o,a=document.createElement("div");for(a.innerHTML="&"+t.join(";&")+";",o=a.innerHTML,a=null,a=0;a<o.length;a++){var s=o.charAt(a);n[s]="&"+t[a]+";",i.push(s)}}return n.regex=i.join(e?"|":""),n}CKEDITOR.plugins.add("entities",{afterInit:function(e){function n(t){return l[t]}function i(t){return"force"!=r.entities_processNumerical&&a[t]?a[t]:"&#"+t.charCodeAt(0)+";"}var r=e.config;if(e=(e=e.dataProcessor)&&e.htmlFilter){var o=[];!1!==r.basicEntities&&o.push("nbsp,gt,lt,amp"),r.entities&&(o.length&&o.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),r.entities_latin&&o.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),r.entities_greek&&o.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),r.entities_additional&&o.push(r.entities_additional));var a=t(o.join(",")),s=a.regex?"["+a.regex+"]":"a^";delete a.regex,r.entities&&r.entities_processNumerical&&(s="[^ -~]|"+s);var s=new RegExp(s,"g"),l=t("nbsp,gt,lt,amp,shy",!0),c=new RegExp(l.regex,"g");e.addRules({text:function(t){return t.replace(c,n).replace(s,i)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(t,e,n,i){e=e||"80%",n=n||"70%","string"==typeof e&&1<e.length&&"%"==e.substr(e.length-1,1)&&(e=parseInt(window.screen.width*parseInt(e,10)/100,10)),"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.height*parseInt(n,10)/100,10)),640>e&&(e=640),420>n&&(n=420);var r=parseInt((window.screen.height-n)/2,10),o=parseInt((window.screen.width-e)/2,10);i=(i||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+e+",height="+n+",top="+r+",left="+o;var a=window.open("",null,i,!0);if(!a)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(a.moveTo(o,r),a.resizeTo(e,n)),a.focus(),a.location.href=t}catch(s){window.open(t,null,i,!0)}return!0}}),function(){function t(t,e){var n=[];if(!e)return t;for(var i in e)n.push(i+"="+encodeURIComponent(e[i]));return t+(-1!=t.indexOf("?")?"&":"?")+n.join("&")}function e(t){return t+="",t.charAt(0).toUpperCase()+t.substr(1)}function n(){var n=this.getDialog(),i=n.getParentEditor();i._.filebrowserSe=this;var r=i.config["filebrowser"+e(n.getName())+"WindowWidth"]||i.config.filebrowserWindowWidth||"80%",n=i.config["filebrowser"+e(n.getName())+"WindowHeight"]||i.config.filebrowserWindowHeight||"70%",o=this.filebrowser.params||{};o.CKEditor=i.name,o.CKEditorFuncNum=i._.filebrowserFn,o.langCode||(o.langCode=i.langCode),o=t(this.filebrowser.url,o),i.popup(o,r,n,i.config.filebrowserWindowFeatures||i.config.fileBrowserWindowFeatures)}function i(){var t=this.getDialog();return t.getParentEditor()._.filebrowserSe=this,!(!t.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!t.getContentElement(this["for"][0],this["for"][1]).getAction())}function r(e,n,i){var r=i.params||{};r.CKEditor=e.name,r.CKEditorFuncNum=e._.filebrowserFn,r.langCode||(r.langCode=e.langCode),n.action=t(i.url,r),n.filebrowser=i}function o(t,a,s,l){if(l&&l.length)for(var c,u=l.length;u--;)if(c=l[u],"hbox"!=c.type&&"vbox"!=c.type&&"fieldset"!=c.type||o(t,a,s,c.children),c.filebrowser)if("string"==typeof c.filebrowser&&(c.filebrowser={action:"fileButton"==c.type?"QuickUpload":"Browse",target:c.filebrowser}),"Browse"==c.filebrowser.action){var d=c.filebrowser.url;void 0===d&&void 0===(d=t.config["filebrowser"+e(a)+"BrowseUrl"])&&(d=t.config.filebrowserBrowseUrl),d&&(c.onClick=n,c.filebrowser.url=d,c.hidden=!1)}else if("QuickUpload"==c.filebrowser.action&&c["for"]&&(d=c.filebrowser.url,void 0===d&&void 0===(d=t.config["filebrowser"+e(a)+"UploadUrl"])&&(d=t.config.filebrowserUploadUrl),d)){var h=c.onClick;c.onClick=function(t){var e=t.sender;return(!h||!1!==h.call(e,t))&&(!!i.call(e,t)&&(t=e.getDialog().getContentElement(this["for"][0],this["for"][1]).getInputElement(),(e=new CKEDITOR.dom.element(t.$.form))&&((t=e.$.elements.ckCsrfToken)?t=new CKEDITOR.dom.element(t):(t=new CKEDITOR.dom.element("input"),t.setAttributes({name:"ckCsrfToken",type:"hidden"}),e.append(t)),t.setAttribute("value",CKEDITOR.tools.getCsrfToken())),!0))},c.filebrowser.url=d,c.hidden=!1,r(t,s.getContents(c["for"][0]).get(c["for"][1]),c.filebrowser)}}function a(t,e,n){if(-1!==n.indexOf(";")){n=n.split(";");for(var i=0;i<n.length;i++)if(a(t,e,n[i]))return!0;return!1}return(t=t.getContents(e).get(n).filebrowser)&&t.url}function s(t,e){var n=this._.filebrowserSe.getDialog(),i=this._.filebrowserSe["for"],r=this._.filebrowserSe.filebrowser.onSelect;i&&n.getContentElement(i[0],i[1]).reset(),"function"==typeof e&&!1===e.call(this._.filebrowserSe)||r&&!1===r.call(this._.filebrowserSe,t,e)||("string"==typeof e&&e&&alert(e),t&&(i=this._.filebrowserSe,n=i.getDialog(),i=i.filebrowser.target||null)&&(i=i.split(":"),(r=n.getContentElement(i[0],i[1]))&&(r.setValue(t),n.selectPage(i[0]))))}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(t){t._.filebrowserFn=CKEDITOR.tools.addFunction(s,t),t.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}}),CKEDITOR.on("dialogDefinition",function(t){if(t.editor.plugins.filebrowser)for(var e,n=t.data.definition,i=0;i<n.contents.length;++i)(e=n.contents[i])&&(o(t.editor,t.data.name,n,e.elements),e.hidden&&e.filebrowser&&(e.hidden=!a(n,e.id,e.filebrowser)))})}(),function(){function t(t){var i=t.config,r=t.fire("uiSpace",{space:"top",html:""}).html,o=function(){function r(t,e,i){s.setStyle(e,n(i)),s.setStyle("position",t)}function a(t){var e=c.getDocumentPosition();switch(t){case"top":r("absolute","top",e.y-f-g);break;case"pin":r("fixed","top",y);break;case"bottom":r("absolute","top",e.y+(d.height||d.bottom-d.top)+g)}l=t}var l,c,u,d,h,f,p,m=i.floatSpaceDockedOffsetX||0,g=i.floatSpaceDockedOffsetY||0,v=i.floatSpacePinnedOffsetX||0,y=i.floatSpacePinnedOffsetY||0;return function(r){if(c=t.editable()){var y=r&&"focus"==r.name;y&&s.show(),t.fire("floatingSpaceLayout",{show:y}),s.removeStyle("left"),s.removeStyle("right"),u=s.getClientRect(),d=c.getClientRect(),h=e.getViewPaneSize(),f=u.height,p="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,l?(a(f+g<=d.top?"top":f+g>h.height-d.bottom?"pin":"bottom"),r=h.width/2,r=i.floatSpacePreferRight?"right":0<d.left&&d.right<h.width&&d.width>u.width?"rtl"==i.contentsLangDirection?"right":"left":r-d.left>d.right-r?"left":"right",u.width>h.width?(r="left",y=0):(y="left"==r?0<d.left?d.left:0:d.right<h.width?h.width-d.right:0)+u.width>h.width&&(r="left"==r?"right":"left",y=0),s.setStyle(r,n(("pin"==l?v:m)+y+("pin"==l?0:"left"==r?p:-p)))):(l="pin",a("pin"),o(r))}}}();if(r){var a=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(t.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(t.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),s=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(a.output({content:r,id:t.id,langDir:t.lang.dir,langCode:t.langCode,name:t.name,style:"display:none;z-index:"+(i.baseFloatZIndex-1),topId:t.ui.spaceId("top"),voiceLabel:t.title}))),l=CKEDITOR.tools.eventsBuffer(500,o),c=CKEDITOR.tools.eventsBuffer(100,o);s.unselectable(),s.on("mousedown",function(t){t=t.data,t.getTarget().hasAscendant("a",1)||t.preventDefault()}),t.on("focus",function(n){o(n),t.on("change",l.input),e.on("scroll",c.input),e.on("resize",c.input)}),t.on("blur",function(){s.hide(),t.removeListener("change",l.input),e.removeListener("scroll",c.input),e.removeListener("resize",c.input)}),t.on("destroy",function(){e.removeListener("scroll",c.input),e.removeListener("resize",c.input),s.clearCustomData(),s.remove()}),t.focusManager.hasFocus&&s.show(),t.focusManager.add(s,1)}}var e=CKEDITOR.document.getWindow(),n=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(e){e.on("loaded",function(){t(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var t=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),e=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),n=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),i=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(t,e){return this.addBlock(t,new CKEDITOR.ui.listBlock(this.getHolderElement(),e))},CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(t,e){e=e||{};var n=e.attributes||(e.attributes={});(this.multiSelect=!!e.multiSelect)&&(n["aria-multiselectable"]=!0),!n.role&&(n.role="listbox"),this.base.apply(this,arguments),this.element.setAttribute("role",n.role),n=this.keys,n[40]="next",n[9]="next",n[38]="prev",n[CKEDITOR.SHIFT+9]="prev",n[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(n[13]="mouseup"),this._.pendingHtml=[],this._.pendingList=[],this._.items={},this._.groups={}},_:{close:function(){if(this._.started){var e=t.output({items:this._.pendingList.join("")});this._.pendingList=[],this._.pendingHtml.push(e),delete this._.started}},getClick:function(){return this._.click||(this._.click=CKEDITOR.tools.addFunction(function(t){var e=this.toggle(t);this.onClick&&this.onClick(t,e)},this)),this._.click}},proto:{add:function(t,n,r){var o=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0),this._.items[t]=o;var a;a=CKEDITOR.tools.htmlEncodeAttr(t).replace(i,"\\'"),t={id:o,val:a,onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(r||t),text:n||t},this._.pendingList.push(e.output(t))},startGroup:function(t){this._.close();var e=CKEDITOR.tools.getNextId();this._.groups[t]=e,this._.pendingHtml.push(n.output({id:e,label:t}))},commit:function(){this._.close(),this.element.appendHtml(this._.pendingHtml.join("")),delete this._.size,this._.pendingHtml=[]},toggle:function(t){var e=this.isMarked(t);return e?this.unmark(t):this.mark(t),!e},hideGroup:function(t){var e=(t=this.element.getDocument().getById(this._.groups[t]))&&t.getNext();t&&(t.setStyle("display","none"),e&&"ul"==e.getName()&&e.setStyle("display","none"))},hideItem:function(t){this.element.getDocument().getById(this._.items[t]).setStyle("display","none")},showAll:function(){var t,e=this._.items,n=this._.groups,i=this.element.getDocument();for(t in e)i.getById(e[t]).setStyle("display","");for(var r in n)e=i.getById(n[r]),t=e.getNext(),e.setStyle("display",""),t&&"ul"==t.getName()&&t.setStyle("display","")},mark:function(t){this.multiSelect||this.unmarkAll(),t=this._.items[t];var e=this.element.getDocument().getById(t);e.addClass("cke_selected"),this.element.getDocument().getById(t+"_option").setAttribute("aria-selected",!0),this.onMark&&this.onMark(e)},unmark:function(t){var e=this.element.getDocument();t=this._.items[t];var n=e.getById(t);n.removeClass("cke_selected"),e.getById(t+"_option").removeAttribute("aria-selected"),this.onUnmark&&this.onUnmark(n)},unmarkAll:function(){var t,e=this._.items,n=this.element.getDocument();for(t in e){var i=e[t];n.getById(i).removeClass("cke_selected"),n.getById(i+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(t){return this.element.getDocument().getById(this._.items[t]).hasClass("cke_selected")},focus:function(t){this._.focusIndex=-1;var e,n=this.element.getElementsByTag("a"),i=-1;if(t){for(e=this.element.getDocument().getById(this._.items[t]).getFirst();t=n.getItem(++i);)if(t.equals(e)){this._.focusIndex=i;break}}else this.element.focus();e&&setTimeout(function(){e.focus()},0)}}})}}),function(){var t='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(t+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(t+=' onblur="this.style.cssText = this.style.cssText;"');var t=t+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"',t=t+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>',e=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),n=CKEDITOR.addTemplate("button",t);CKEDITOR.plugins.add("button",{beforeInit:function(t){t.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}}),CKEDITOR.UI_BUTTON="button",CKEDITOR.ui.button=function(t){CKEDITOR.tools.extend(this,t,{title:t.label,click:t.click||function(e){e.execCommand(t.command)}}),this._={}},CKEDITOR.ui.button.handler={create:function(t){return new CKEDITOR.ui.button(t)}},CKEDITOR.ui.button.prototype={render:function(t,i){function r(){var e=t.mode;e&&(e=this.modes[e]?void 0!==p[e]?p[e]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,e=t.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:e,this.setState(e),this.refresh&&this.refresh())}var o,a=CKEDITOR.env,s=this._.id=CKEDITOR.tools.getNextId(),l="",c=this.command;this._.editor=t;var u={id:s,button:this,editor:t,focus:function(){CKEDITOR.document.getById(s).focus()},execute:function(){this.button.click(t)},attach:function(t){this.button.attach(t)}},d=CKEDITOR.tools.addFunction(function(t){if(u.onkey)return t=new CKEDITOR.dom.event(t),!1!==u.onkey(u,t.getKeystroke())}),h=CKEDITOR.tools.addFunction(function(t){var e;return u.onfocus&&(e=!1!==u.onfocus(u,new CKEDITOR.dom.event(t))),e}),f=0;if(u.clickFn=o=CKEDITOR.tools.addFunction(function(){f&&(t.unlockSelection(1),f=0),u.execute(),a.iOS&&t.focus()}),this.modes){var p={};t.on("beforeModeUnload",function(){t.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(p[t.mode]=this._.state)},this),t.on("activeFilterChange",r,this),t.on("mode",r,this),!this.readOnly&&t.on("readOnly",r,this)}else c&&(c=t.getCommand(c))&&(c.on("state",function(){this.setState(c.state)},this),l+=c.state==CKEDITOR.TRISTATE_ON?"on":c.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");this.directional&&t.on("contentDirChanged",function(e){var n=CKEDITOR.document.getById(this._.id),i=n.getFirst();e=e.data,e!=t.lang.dir?n.addClass("cke_"+e):n.removeClass("cke_ltr").removeClass("cke_rtl"),i.setAttribute("style",CKEDITOR.skin.getIconStyle(g,"rtl"==e,this.icon,this.iconOffset))},this),c||(l+="off");var m=this.name||this.command,g=m;return this.icon&&!/\./.test(this.icon)&&(g=this.icon,this.icon=null),l={id:s,name:m,iconName:g,label:this.label,cls:this.className||"",state:l,ariaDisabled:"disabled"==l?"true":"false",title:this.title,titleJs:a.gecko&&!a.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:d,focusFn:h,clickFn:o,style:CKEDITOR.skin.getIconStyle(g,"rtl"==t.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?e.output():""},n.output(l,i),this.onRender&&this.onRender(),u},setState:function(t){if(this._.state==t)return!1;this._.state=t;var e=CKEDITOR.document.getById(this._.id);return!!e&&(e.setState(t,"cke_button"),t==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled"),this.hasArrow?(t=t==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(t)):t==CKEDITOR.TRISTATE_ON?e.setAttribute("aria-pressed",!0):e.removeAttribute("aria-pressed"),!0)},getState:function(){return this._.state},toFeature:function(t){if(this._.feature)return this._.feature;var e=this;return this.allowedContent||this.requiredContent||!this.command||(e=t.getCommand(this.command)||e),this._.feature=e}},CKEDITOR.ui.prototype.addButton=function(t,e){this.add(t,CKEDITOR.UI_BUTTON,e)}}(),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(t){t.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var t='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(t+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(t+=' onblur="this.style.cssText = this.style.cssText;"');var t=t+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>",e=CKEDITOR.addTemplate("combo",t);CKEDITOR.UI_RICHCOMBO="richcombo",CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(t){CKEDITOR.tools.extend(this,t,{canGroup:!1,title:t.label,modes:{wysiwyg:1},editorFocus:1}),t=this.panel||{},delete this.panel,this.id=CKEDITOR.tools.getNextNumber(),this.document=t.parent&&t.parent.getDocument()||CKEDITOR.document,t.className="cke_combopanel",t.block={multiSelect:t.multiSelect,attributes:t.attributes},t.toolbarRelated=!0,this._={panelDefinition:t,items:{}}},proto:{renderHtml:function(t){var e=[];return this.render(t,e),e.join("")},render:function(t,n){function i(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var e=this.modes[t.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;t.readOnly&&!this.readOnly&&(e=CKEDITOR.TRISTATE_DISABLED),this.setState(e),this.setValue(""),e!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var r=CKEDITOR.env,o="cke_"+this.id,a=CKEDITOR.tools.addFunction(function(e){d&&(t.unlockSelection(1),d=0),l.execute(e)},this),s=this,l={id:o,combo:this,focus:function(){CKEDITOR.document.getById(o).getChild(1).focus()},execute:function(e){var n=s._;if(n.state!=CKEDITOR.TRISTATE_DISABLED)if(s.createPanel(t),n.on)n.panel.hide();else{s.commit();var i=s.getValue();i?n.list.mark(i):n.list.unmarkAll(),n.panel.showBlock(s.id,new CKEDITOR.dom.element(e),4)}},clickFn:a};t.on("activeFilterChange",i,this),t.on("mode",i,this),t.on("selectionChange",i,this),!this.readOnly&&t.on("readOnly",i,this);var c=CKEDITOR.tools.addFunction(function(e,n){e=new CKEDITOR.dom.event(e);var i=e.getKeystroke();switch(40==i&&t.once("panelShow",function(t){t.data._.panel._.currentBlock.onKeyDown(40)}),i){case 13:case 32:case 40:CKEDITOR.tools.callFunction(a,n);break;default:l.onkey(l,i)}e.preventDefault()}),u=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()}),d=0;return l.keyDownFn=c,r={id:o,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:r.gecko&&!r.hc?"":(this.title||"").replace("'",""),keydownFn:c,focusFn:u,clickFn:a},e.output(r,n),this.onRender&&this.onRender(),l},createPanel:function(t){if(!this._.panel){var e=this._.panelDefinition,n=this._.panelDefinition.block,i=e.parent||CKEDITOR.document.getBody(),r="cke_combopanel__"+this.name,o=new CKEDITOR.ui.floatPanel(t,i,e),a=o.addListBlock(this.id,n),s=this;o.onShow=function(){this.element.addClass(r),s.setState(CKEDITOR.TRISTATE_ON),s._.on=1,s.editorFocus&&!t.focusManager.hasFocus&&t.focus(),s.onOpen&&s.onOpen(),t.once("panelShow",function(){a.focus(!a.multiSelect&&s.getValue())})},o.onHide=function(e){this.element.removeClass(r),s.setState(s.modes&&s.modes[t.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),s._.on=0,!e&&s.onClose&&s.onClose()},o.onEscape=function(){o.hide(1)},a.onClick=function(t,e){s.onClick&&s.onClick.call(s,t,e),o.hide()},this._.panel=o,this._.list=a,o.getBlock(this.id).onHide=function(){s._.on=0,s.setState(CKEDITOR.TRISTATE_OFF)},this.init&&this.init()}},setValue:function(t,e){this._.value=t;var n=this.document.getById("cke_"+this.id+"_text");n&&(t||e?n.removeClass("cke_combo_inlinelabel"):(e=this.label,n.addClass("cke_combo_inlinelabel")),n.setText(void 0!==e?e:t))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(t){this._.list.mark(t)},hideItem:function(t){this._.list.hideItem(t)},hideGroup:function(t){this._.list.hideGroup(t)},showAll:function(){this._.list.showAll()},add:function(t,e,n){this._.items[t]=n||t,this._.list.add(t,e,n)},startGroup:function(t){this._.list.startGroup(t)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)),this._.committed=1},setState:function(t){if(this._.state!=t){var e=this.document.getById("cke_"+this.id);e.setState(t,"cke_combo"),t==CKEDITOR.TRISTATE_DISABLED?e.setAttribute("aria-disabled",!0):e.removeAttribute("aria-disabled"),this._.state=t}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(t){return new CKEDITOR.ui.richCombo(t)}}}}),CKEDITOR.ui.prototype.addRichCombo=function(t,e){this.add(t,CKEDITOR.UI_RICHCOMBO,e)}}(),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(t){if(!t.blockless){for(var e=t.config,n=t.lang.format,i=e.format_tags.split(";"),r={},o=0,a=[],s=0;s<i.length;s++){var l=i[s],c=new CKEDITOR.style(e["format_"+l]);t.filter.customConfig&&!t.filter.check(c)||(o++,r[l]=c,r[l]._.enterMode=t.config.enterMode,a.push(c))}0!==o&&t.ui.addRichCombo("Format",{label:n.label,title:n.panelTitle,toolbar:"styles,20",allowedContent:a,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){this.startGroup(n.panelTitle);for(var t in r){var e=n["tag_"+t];this.add(t,r[t].buildPreview(e),e)}},onClick:function(e){t.focus(),t.fire("saveSnapshot"),e=r[e];var n=t.elementPath();t[e.checkActive(n,t)?"removeStyle":"applyStyle"](e),setTimeout(function(){t.fire("saveSnapshot")},0)},onRender:function(){t.on("selectionChange",function(e){var n=this.getValue();e=e.data.path,this.refresh();for(var i in r)if(r[i].checkActive(e,t))return void(i!=n&&this.setValue(i,t.lang.format["tag_"+i]));this.setValue("")},this)},onOpen:function(){this.showAll();for(var e in r)t.activeFilter.check(r[e])||this.hideItem(e)},refresh:function(){var e=t.elementPath();if(e){if(e.isContextFor("p"))for(var n in r)if(t.activeFilter.check(r[n]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var t={canUndo:!1,exec:function(t){var e=t.document.createElement("hr");t.insertElement(e)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(e){e.blockless||(e.addCommand("horizontalrule",t),e.ui.addButton&&e.ui.addButton("HorizontalRule",{label:e.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(t){var e=new CKEDITOR.htmlWriter;e.forceSimpleAmpersand=t.config.forceSimpleAmpersand,e.indentationChars=t.config.dataIndentationChars||"\t",t.dataProcessor.writer=e}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base(),this.indentationChars="\t",this.selfClosingEnd=" />",this.lineBreakChars="\n",this.sortAttributes=1,this._.indent=0,this._.indentation="",this._.inPre=0,this._.rules={};var t,e=CKEDITOR.dtd;for(t in CKEDITOR.tools.extend({},e.$nonBodyContent,e.$block,e.$listItem,e.$tableContent))this.setRules(t,{indent:!e[t]["#"],breakBeforeOpen:1,breakBeforeClose:!e[t]["#"],breakAfterClose:1,needsSpace:t in e.$block&&!(t in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1}),this.setRules("title",{indent:0,breakAfterOpen:0}),this.setRules("style",{indent:0,breakBeforeClose:1}),this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(t){var e=this._.rules[t];this._.afterCloser&&e&&e.needsSpace&&this._.needsSpace&&this._.output.push("\n"),this._.indent?this.indentation():e&&e.breakBeforeOpen&&(this.lineBreak(),this.indentation()),this._.output.push("<",t),this._.afterCloser=0},openTagClose:function(t,e){var n=this._.rules[t];e?(this._.output.push(this.selfClosingEnd),n&&n.breakAfterClose&&(this._.needsSpace=n.needsSpace)):(this._.output.push(">"),n&&n.indent&&(this._.indentation+=this.indentationChars)),n&&n.breakAfterOpen&&this.lineBreak(),"pre"==t&&(this._.inPre=1)},attribute:function(t,e){"string"==typeof e&&(this.forceSimpleAmpersand&&(e=e.replace(/&/g,"&")),e=CKEDITOR.tools.htmlEncodeAttr(e)),this._.output.push(" ",t,'="',e,'"')},closeTag:function(t){var e=this._.rules[t];e&&e.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length)),this._.indent?this.indentation():e&&e.breakBeforeClose&&(this.lineBreak(),this.indentation()),this._.output.push("</",t,">"),"pre"==t&&(this._.inPre=0),e&&e.breakAfterClose&&(this.lineBreak(),this._.needsSpace=e.needsSpace),this._.afterCloser=1},text:function(t){this._.indent&&(this.indentation(),!this._.inPre&&(t=CKEDITOR.tools.ltrim(t))),this._.output.push(t)},comment:function(t){this._.indent&&this.indentation(),this._.output.push("\x3c!--",t,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars),this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation),this._.indent=0},reset:function(){this._.output=[],this._.indent=0,this._.indentation="",this._.afterCloser=0,this._.inPre=0,this._.needsSpace=0},setRules:function(t,e){var n=this._.rules[t];n?CKEDITOR.tools.extend(n,e,!0):this._.rules[t]=e}}}),function(){function t(t,e){if(e||(e=t.getSelection().getSelectedElement()),e&&e.is("img")&&!e.data("cke-realelement")&&!e.isReadOnly())return e}function e(t){var e=t.getStyle("float");return"inherit"!=e&&"none"!=e||(e=0),e||(e=t.getAttribute("align")),e}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(e){if(!e.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var n="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(e,"image","advanced")&&(n="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)"),e.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:n,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})),e.ui.addButton&&e.ui.addButton("Image",{label:e.lang.common.image,command:"image",toolbar:"insert,10"}),e.on("doubleclick",function(t){var e=t.data.element;!e.is("img")||e.data("cke-realelement")||e.isReadOnly()||(t.data.dialog="image")}),e.addMenuItems&&e.addMenuItems({image:{label:e.lang.image.menu,command:"image",group:"image"}}),e.contextMenu&&e.contextMenu.addListener(function(n){if(t(e,n))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(n){function i(i){var r=n.getCommand("justify"+i);r&&("left"!=i&&"right"!=i||r.on("exec",function(r){var o,a=t(n);a&&(o=e(a),o==i?(a.removeStyle("float"),i==e(a)&&a.removeAttribute("align")):a.setStyle("float",i),r.cancel())}),r.on("refresh",function(r){var o=t(n);o&&(o=e(o),this.setState(o==i?CKEDITOR.TRISTATE_ON:"right"==i||"left"==i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),r.cancel())}))}n.plugins.image2||(i("left"),i("right"),i("center"),i("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function t(t,e){var n=i.exec(t),r=i.exec(e);if(n){if(!n[2]&&"px"==r[2])return r[1];if("px"==n[2]&&!r[2])return r[1]+"px"}return e}var e=CKEDITOR.htmlParser.cssStyle,n=CKEDITOR.tools.cssLength,i=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,r={elements:{$:function(n){var i=n.attributes;if((i=(i=(i=i&&i["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(i)))&&i.children[0])&&n.attributes["data-cke-resizable"]){var r=new e(n).rules;n=i.attributes;var o=r.width,r=r.height;o&&(n.width=t(n.width,o)),r&&(n.height=t(n.height,r))}return i}}};CKEDITOR.plugins.add("fakeobjects",{init:function(t){t.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(t){(t=(t=t.dataProcessor)&&t.htmlFilter)&&t.addRules(r,{applyToAll:!0})}}),CKEDITOR.editor.prototype.createFakeElement=function(t,i,r,o){var a=this.lang.fakeobjects,a=a[r]||a.unknown;return i={"class":i,"data-cke-realelement":encodeURIComponent(t.getOuterHtml()),"data-cke-real-node-type":t.type,alt:a,title:a,align:t.getAttribute("align")||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),r&&(i["data-cke-real-element-type"]=r),o&&(i["data-cke-resizable"]=o,r=new e,o=t.getAttribute("width"),t=t.getAttribute("height"),o&&(r.rules.width=n(o)),t&&(r.rules.height=n(t)),r.populate(i)),this.document.createElement("img",{attributes:i})},CKEDITOR.editor.prototype.createFakeParserElement=function(t,i,r,o){var a,s=this.lang.fakeobjects,s=s[r]||s.unknown;return a=new CKEDITOR.htmlParser.basicWriter,t.writeHtml(a),a=a.getHtml(),i={"class":i,"data-cke-realelement":encodeURIComponent(a),"data-cke-real-node-type":t.type,alt:s,title:s,align:t.attributes.align||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),r&&(i["data-cke-real-element-type"]=r),o&&(i["data-cke-resizable"]=o,o=t.attributes,t=new e,r=o.width,o=o.height,void 0!==r&&(t.rules.width=n(r)),void 0!==o&&(t.rules.height=n(o)),t.populate(i)),new CKEDITOR.htmlParser.element("img",i)},CKEDITOR.editor.prototype.restoreRealElement=function(e){if(e.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var n=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(e.data("cke-realelement")),this.document);if(e.data("cke-resizable")){var i=e.getStyle("width");e=e.getStyle("height"),i&&n.setAttribute("width",t(n.getAttribute("width"),i)),e&&n.setAttribute("height",t(n.getAttribute("height"),e))}return n}}(),function(){function t(t){return t.replace(/'/g,"\\$&")}function e(t){for(var e,n=t.length,i=[],r=0;r<n;r++)e=t.charCodeAt(r),i.push(e);return"String.fromCharCode("+i.join(",")+")"}function n(e,n){var i,r,o=e.plugins.link,a=o.compiledProtectionFunction.params;r=[o.compiledProtectionFunction.name,"("];for(var s=0;s<a.length;s++)o=a[s].toLowerCase(),i=n[o],0<s&&r.push(","),r.push("'",i?t(encodeURIComponent(n[o])):"","'");return r.push(")"),r.join("")}function i(t){t=t.config.emailProtection||"";var e;return t&&"encode"!=t&&(e={},t.replace(/^([^(]+)\(([^)]+)\)$/,function(t,n,i){e.name=n,e.params=[],i.replace(/[^,\s]+/g,function(t){e.params.push(t)})})),e}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function t(t){return n.replace(/%1/g,"rtl"==t?"right":"left").replace(/%2/g,"cke_contents_"+t)}var e="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",n=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+e+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+e+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(t("ltr")+t("rtl"))},init:function(t){var e="a[!href]";CKEDITOR.dialog.isTabEnabled(t,"link","advanced")&&(e=e.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)")),CKEDITOR.dialog.isTabEnabled(t,"link","target")&&(e=e.replace("]",",target,onclick]")),t.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:e,requiredContent:"a[href]"})),t.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"})),t.addCommand("unlink",new CKEDITOR.unlinkCommand),t.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand),t.setKeystroke(CKEDITOR.CTRL+76,"link"),t.ui.addButton&&(t.ui.addButton("Link",{label:t.lang.link.toolbar,command:"link",toolbar:"links,10"}),t.ui.addButton("Unlink",{label:t.lang.link.unlink,command:"unlink",toolbar:"links,20"}),t.ui.addButton("Anchor",{label:t.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})),CKEDITOR.dialog.add("link",this.path+"dialogs/link.js"),CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js"),t.on("doubleclick",function(e){var n=CKEDITOR.plugins.link.getSelectedLink(t)||e.data.element;n.isReadOnly()||(n.is("a")?(e.data.dialog=!n.getAttribute("name")||n.getAttribute("href")&&n.getChildCount()?"link":"anchor",e.data.link=n):CKEDITOR.plugins.link.tryRestoreFakeAnchor(t,n)&&(e.data.dialog="anchor"))},null,null,0),t.on("doubleclick",function(e){e.data.dialog in{link:1,anchor:1}&&e.data.link&&t.getSelection().selectElement(e.data.link)},null,null,20),t.addMenuItems&&t.addMenuItems({anchor:{label:t.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:t.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:t.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:t.lang.link.unlink,command:"unlink",group:"link",order:5}}),t.contextMenu&&t.contextMenu.addListener(function(e){if(!e||e.isReadOnly())return null;if(!(e=CKEDITOR.plugins.link.tryRestoreFakeAnchor(t,e))&&!(e=CKEDITOR.plugins.link.getSelectedLink(t)))return null;var n={};return e.getAttribute("href")&&e.getChildCount()&&(n={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF}),e&&e.hasAttribute("name")&&(n.anchor=n.removeAnchor=CKEDITOR.TRISTATE_OFF),n}),this.compiledProtectionFunction=i(t)},afterInit:function(t){t.dataProcessor.dataFilter.addRules({elements:{a:function(e){return e.attributes.name?e.children.length?null:t.createFakeParserElement(e,"cke_anchor","anchor"):null}}});var e=t._.elementsPath&&t._.elementsPath.filters;e&&e.push(function(e,n){if("a"==n&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(t,e)||e.getAttribute("name")&&(!e.getAttribute("href")||!e.getChildCount())))return"anchor"})}});var r=/^javascript:/,o=/^mailto:([^?]+)(?:\?(.+))?$/,a=/subject=([^;?:@&=$,\/]*)/i,s=/body=([^;?:@&=$,\/]*)/i,l=/^#(.*)$/,c=/^((?:http|https|ftp|news):\/\/)?(.*)$/,u=/^(_(?:self|top|parent|blank))$/,d=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,h=/^javascript:([^(]+)\(([^)]+)\)$/,f=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,p=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,m={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType","class":"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(t){var e=t.getSelection(),n=e.getSelectedElement();return n&&n.is("a")?n:(e=e.getRanges()[0])?(e.shrink(CKEDITOR.SHRINK_TEXT),t.elementPath(e.getCommonAncestor()).contains("a",1)):null},getEditorAnchors:function(t){for(var e,n=t.editable(),i=n.isInline()&&!t.plugins.divarea?t.document:n,n=i.getElementsByTag("a"),i=i.getElementsByTag("img"),r=[],o=0;e=n.getItem(o++);)(e.data("cke-saved-name")||e.hasAttribute("name"))&&r.push({name:e.data("cke-saved-name")||e.getAttribute("name"),id:e.getAttribute("id")});for(o=0;e=i.getItem(o++);)(e=this.tryRestoreFakeAnchor(t,e))&&r.push({name:e.getAttribute("name"),id:e.getAttribute("id")});return r},fakeAnchor:!0,tryRestoreFakeAnchor:function(t,e){if(e&&e.data("cke-real-element-type")&&"anchor"==e.data("cke-real-element-type")){var n=t.restoreRealElement(e);if(n.data("cke-saved-name"))return n}},parseLinkAttributes:function(t,e){var n,i=e&&(e.data("cke-saved-href")||e.getAttribute("href"))||"",g=t.plugins.link.compiledProtectionFunction,v=t.config.emailProtection,y={};if(i.match(r)&&("encode"==v?i=i.replace(d,function(t,e,n){return n=n||"","mailto:"+String.fromCharCode.apply(String,e.split(","))+n.replace(/\\'/g,"'")}):v&&i.replace(h,function(t,e,n){if(e==g.name){y.type="email",t=y.email={},e=/(^')|('$)/g,n=n.match(/[^,\s]+/g);for(var i,r,o=n.length,a=0;a<o;a++)i=decodeURIComponent,r=n[a].replace(e,"").replace(/\\'/g,"'"),r=i(r),i=g.params[a].toLowerCase(),t[i]=r;t.address=[t.name,t.domain].join("@")}})),!y.type)if(v=i.match(l))y.type="anchor",y.anchor={},y.anchor.name=y.anchor.id=v[1];else if(v=i.match(o)){n=i.match(a),i=i.match(s),y.type="email";var E=y.email={};E.address=v[1],n&&(E.subject=decodeURIComponent(n[1])),i&&(E.body=decodeURIComponent(i[1]))}else i&&(n=i.match(c))&&(y.type="url",y.url={},y.url.protocol=n[1],y.url.url=n[2]);if(e){if(i=e.getAttribute("target"))y.target={type:i.match(u)?i:"frame",name:i};else if(i=(i=e.data("cke-pa-onclick")||e.getAttribute("onclick"))&&i.match(f))for(y.target={type:"popup",name:i[1]};v=p.exec(i[2]);)"yes"!=v[2]&&"1"!=v[2]||v[1]in{height:1,width:1,top:1,left:1}?isFinite(v[2])&&(y.target[v[1]]=v[2]):y.target[v[1]]=!0;var b,i={};for(b in m)(v=e.getAttribute(b))&&(i[m[b]]=v);(b=e.data("cke-saved-name")||i.advName)&&(i.advName=b),CKEDITOR.tools.isEmpty(i)||(y.advanced=i)}return y},getLinkAttributes:function(i,r){var o=i.config.emailProtection||"",a={};switch(r.type){case"url":var o=r.url&&void 0!==r.url.protocol?r.url.protocol:"http://",s=r.url&&CKEDITOR.tools.trim(r.url.url)||"";a["data-cke-saved-href"]=0===s.indexOf("/")?s:o+s;break;case"anchor":o=r.anchor&&r.anchor.id,a["data-cke-saved-href"]="#"+(r.anchor&&r.anchor.name||o||"");break;case"email":var l=r.email,s=l.address;switch(o){case"":case"encode":var c=encodeURIComponent(l.subject||""),u=encodeURIComponent(l.body||""),l=[];c&&l.push("subject="+c),u&&l.push("body="+u),l=l.length?"?"+l.join("&"):"","encode"==o?(o=["javascript:void(location.href='mailto:'+",e(s)],l&&o.push("+'",t(l),"'"),o.push(")")):o=["mailto:",s,l];break;default:o=s.split("@",2),l.name=o[0],l.domain=o[1],o=["javascript:",n(i,l)]}a["data-cke-saved-href"]=o.join("")}if(r.target)if("popup"==r.target.type){for(var o=["window.open(this.href, '",r.target.name||"","', '"],d="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" "),s=d.length,c=function(t){r.target[t]&&d.push(t+"="+r.target[t])},l=0;l<s;l++)d[l]+=r.target[d[l]]?"=yes":"=no";c("width"),c("left"),c("height"),c("top"),o.push(d.join(","),"'); return false;"),a["data-cke-pa-onclick"]=o.join("")}else"notSet"!=r.target.type&&r.target.name&&(a.target=r.target.name);if(r.advanced){for(var h in m)(o=r.advanced[m[h]])&&(a[h]=o);a.name&&(a["data-cke-saved-name"]=a.name)}a["data-cke-saved-href"]&&(a.href=a["data-cke-saved-href"]),h={target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1},r.advanced&&CKEDITOR.tools.extend(h,m);for(var f in a)delete h[f];return{set:a,removed:CKEDITOR.tools.objectKeys(h)}},showDisplayTextForElement:function(t,e){var n={img:1,table:1,tbody:1,thead:1,tfoot:1,input:1,select:1,textarea:1};return(!e.widgets||!e.widgets.focused)&&(!t||!t.getName||!t.is(n))}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(t){var e=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});t.removeStyle(e)},refresh:function(t,e){var n=e.lastElement&&e.lastElement.getAscendant("a",!0);n&&"a"==n.getName()&&n.getAttribute("href")&&n.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(t){var e,n=t.getSelection(),i=n.createBookmarks();n&&(e=n.getSelectedElement())&&(e.getChildCount()?e.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(t,e))?e.remove(1):(e=CKEDITOR.plugins.link.getSelectedLink(t))&&(e.hasAttribute("href")?(e.removeAttributes({name:1,"data-cke-saved-name":1}),e.removeClass("cke_anchor")):e.remove(1)),n.selectBookmarks(i)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function t(t,e,n){return d(e)&&d(n)&&n.equals(e.getNext(function(t){return!(W(t)||Y(t)||h(t))}))}function e(t){this.upper=t[0],this.lower=t[1],this.set.apply(this,t.slice(2))}function n(t){var e=t.element;if(e&&d(e)&&(e=e.getAscendant(t.triggers,!0))&&t.editable.contains(e)){var n=a(e);if("true"==n.getAttribute("contenteditable"))return e;if(n.is(t.triggers))return n}return null}function i(t,e,n){return b(t,e),b(t,n),t=e.size.bottom,n=n.size.top,t&&n?0|(t+n)/2:t||n}function r(t,e,n){return e=e[n?"getPrevious":"getNext"](function(e){return e&&e.type==CKEDITOR.NODE_TEXT&&!W(e)||d(e)&&!h(e)&&!u(t,e)})}function o(t,e,n){return t>e&&t<n}function a(t,e){if(t.data("cke-editable"))return null;for(e||(t=t.getParent());t&&!t.data("cke-editable");){if(t.hasAttribute("contenteditable"))return t;t=t.getParent()}return null}function s(t){var e=t.doc,n=$('<span contenteditable="false" style="'+U+"position:absolute;border-top:1px dashed "+t.boxColor+'"></span>',e),i=CKEDITOR.getUrl(this.path+"images/"+(O.hidpi?"hidpi/":"")+"icon"+(t.rtl?"-rtl":"")+".png");for(I(n,{attach:function(){return this.wrap.getParent()||this.wrap.appendTo(t.editable,!0),this},lineChildren:[I($('<span title="'+t.editor.lang.magicline.title+'" contenteditable="false">↵</span>',e),{base:U+"height:17px;width:17px;"+(t.rtl?"left":"right")+":17px;background:url("+i+") center no-repeat "+t.boxColor+";cursor:pointer;"+(O.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(O.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px; border-radius: 2px;","top:-17px; border-radius: 2px 2px 0px 0px;","top:-1px; border-radius: 0px 0px 2px 2px;"]}),I($(G,e),{base:z+"left:0px;border-left-color:"+t.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),I($(G,e),{base:z+"right:0px;border-right-color:"+t.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){return this.wrap.getParent()&&this.wrap.remove(),this},mouseNear:function(){b(t,this);var e=t.holdDistance,n=this.size;return!!(n&&o(t.mouse.y,n.top-e,n.bottom+e)&&o(t.mouse.x,n.left-e,n.right+e))},place:function(){var e=t.view,n=t.editable,i=t.trigger,r=i.upper,a=i.lower,s=r||a,l=s.getParent(),c={};this.trigger=i,r&&b(t,r,!0),a&&b(t,a,!0),b(t,l,!0),t.inInlineMode&&_(t,!0),l.equals(n)?(c.left=e.scroll.x,c.right=-e.scroll.x,c.width=""):(c.left=s.size.left-s.size.margin.left+e.scroll.x-(t.inInlineMode?e.editable.left+e.editable.border.left:0),c.width=s.size.outerWidth+s.size.margin.left+s.size.margin.right+e.scroll.x,c.right=""),r&&a?c.top=r.size.margin.bottom===a.size.margin.top?0|r.size.bottom+r.size.margin.bottom/2:r.size.margin.bottom<a.size.margin.top?r.size.bottom+r.size.margin.bottom:r.size.bottom+r.size.margin.bottom-a.size.margin.top:r?a||(c.top=r.size.bottom+r.size.margin.bottom):c.top=a.size.top-a.size.margin.top,i.is(P)||o(c.top,e.scroll.y-15,e.scroll.y+5)?(c.top=t.inInlineMode?0:e.scroll.y,this.look(P)):i.is(M)||o(c.top,e.pane.bottom-5,e.pane.bottom+15)?(c.top=t.inInlineMode?e.editable.height+e.editable.padding.top+e.editable.padding.bottom:e.pane.bottom-1,this.look(M)):(t.inInlineMode&&(c.top-=e.editable.top+e.editable.border.top),this.look(K)),t.inInlineMode&&(c.top--,c.top+=e.editable.scroll.top,c.left+=e.editable.scroll.left);for(var u in c)c[u]=CKEDITOR.tools.cssLength(c[u]);this.setStyles(c)},look:function(t){if(this.oldLook!=t){for(var e,n=this.lineChildren.length;n--;)(e=this.lineChildren[n]).setAttribute("style",e.base+e.looks[0|t/2]);this.oldLook=t}},wrap:new D("span",t.doc)}),e=n.lineChildren.length;e--;)n.lineChildren[e].appendTo(n);n.look(K),n.appendTo(n.wrap),n.unselectable(),n.lineChildren[0].on("mouseup",function(e){n.detach(),l(t,function(e){var n=t.line.trigger;e[n.is(x)?"insertBefore":"insertAfter"](n.is(x)?n.lower:n.upper)},!0),t.editor.focus(),O.ie||t.enterMode==CKEDITOR.ENTER_BR||t.hotNode.scrollIntoView(),e.data.preventDefault(!0)}),n.on("mousedown",function(t){t.data.preventDefault(!0)}),t.line=n}function l(t,e,n){var i,r=new CKEDITOR.dom.range(t.doc),o=t.editor;O.ie&&t.enterMode==CKEDITOR.ENTER_BR?i=t.doc.createText(L):(i=(i=a(t.element,!0))&&i.data("cke-enter-mode")||t.enterMode,i=new D(k[i],t.doc),i.is("br")||t.doc.createText(L).appendTo(i)),n&&o.fire("saveSnapshot"),e(i),r.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),o.getSelection().selectRanges([r]),t.hotNode=i,n&&o.fire("saveSnapshot")}function c(t,e){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function i(n){var i=O.ie&&9>O.version?" ":L,r=t.hotNode&&t.hotNode.getText()==i&&t.element.equals(t.hotNode)&&t.lastCmdDirection===!!e;l(t,function(i){r&&t.hotNode&&t.hotNode.remove(),i[e?"insertAfter":"insertBefore"](n),i.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!e}),t.lastCmdDirection=!!e}),O.ie||t.enterMode==CKEDITOR.ENTER_BR||t.hotNode.scrollIntoView(),t.line.detach()}return function(o){o=o.getSelection().getStartElement();var s;if(o=o.getAscendant(V,1),!m(t,o)&&o&&!o.equals(t.editable)&&!o.contains(t.editable)){(s=a(o))&&"false"==s.getAttribute("contenteditable")&&(o=s),t.element=o,s=r(t,o,!e);var l;d(s)&&s.is(t.triggers)&&s.is(j)&&(!r(t,s,!e)||(l=r(t,s,!e))&&d(l)&&l.is(t.triggers))?i(s):(l=n(t,o),d(l)&&(r(t,l,!e)?(o=r(t,l,!e))&&d(o)&&o.is(t.triggers)&&i(l):i(l)))}}}()}}function u(t,e){if(!e||e.type!=CKEDITOR.NODE_ELEMENT||!e.$)return!1;var n=t.line;return n.wrap.equals(e)||n.wrap.contains(e)}function d(t){return t&&t.type==CKEDITOR.NODE_ELEMENT&&t.$}function h(t){if(!d(t))return!1;var e;return(e=f(t))||(d(t)?(e={left:1,right:1,center:1},e=!(!e[t.getComputedStyle("float")]&&!e[t.getAttribute("align")])):e=!1),e}function f(t){return!!{absolute:1,fixed:1}[t.getComputedStyle("position")]}function p(t,e){return d(e)?e.is(t.triggers):null}function m(t,e){if(!e)return!1;for(var n=e.getParents(1),i=n.length;i--;)for(var r=t.tabuList.length;r--;)if(n[i].hasAttribute(t.tabuList[r]))return!0;return!1}function g(t,e,n){return!!(e=e[n?"getLast":"getFirst"](function(e){return t.isRelevant(e)&&!e.is(B)}))&&(b(t,e),n?e.size.top>t.mouse.y:e.size.bottom<t.mouse.y)}function v(t){var n=t.editable,i=t.mouse,r=t.view,a=t.triggerOffset;_(t);var s=i.y>(t.inInlineMode?r.editable.top+r.editable.height/2:Math.min(r.editable.height,r.pane.height)/2),n=n[s?"getLast":"getFirst"](function(t){return!(W(t)||Y(t))});return n?(u(t,n)&&(n=t.line.wrap[s?"getPrevious":"getNext"](function(t){return!(W(t)||Y(t))})),d(n)&&!h(n)&&p(t,n)?(b(t,n),!s&&0<=n.size.top&&o(i.y,0,n.size.top+a)?(t=t.inInlineMode||0===r.scroll.y?P:K,new e([null,n,x,N,t])):s&&n.size.bottom<=r.pane.height&&o(i.y,n.size.bottom-a,r.pane.height)?(t=t.inInlineMode||o(n.size.bottom,r.pane.height-a,r.pane.height)?M:K,new e([n,null,S,N,t])):null):null):null}function y(t){var i=t.mouse,a=t.view,s=t.triggerOffset,l=n(t);if(!l)return null;b(t,l);var c,u,s=Math.min(s,0|l.size.outerHeight/2),f=[];if(o(i.y,l.size.top-1,l.size.top+s))u=!1;else{if(!o(i.y,l.size.bottom-s,l.size.bottom+1))return null;u=!0}if(h(l)||g(t,l,u)||l.getParent().is(F))return null;var m=r(t,l,!u);if(m){if(m&&m.type==CKEDITOR.NODE_TEXT)return null;if(d(m)){if(h(m)||!p(t,m)||m.getParent().is(F))return null;f=[m,l][u?"reverse":"concat"]().concat([A,N])}}else l.equals(t.editable[u?"getLast":"getFirst"](t.isRelevant))?(_(t),u&&o(i.y,l.size.bottom-s,a.pane.height)&&o(l.size.bottom,a.pane.height-s,a.pane.height)?c=M:o(i.y,0,l.size.top+s)&&(c=P)):c=K,f=[null,l][u?"reverse":"concat"]().concat([u?S:x,N,c,l.equals(t.editable[u?"getLast":"getFirst"](t.isRelevant))?u?M:P:K]);return 0 in f?new e(f):null}function E(t,e,n,i){for(var r=e.getDocumentPosition(),o={},a={},s={},l={},c=J.length;c--;)o[J[c]]=parseInt(e.getComputedStyle.call(e,"border-"+J[c]+"-width"),10)||0,s[J[c]]=parseInt(e.getComputedStyle.call(e,"padding-"+J[c]),10)||0,a[J[c]]=parseInt(e.getComputedStyle.call(e,"margin-"+J[c]),10)||0;return n&&!i||C(t,i),l.top=r.y-(n?0:t.view.scroll.y),l.left=r.x-(n?0:t.view.scroll.x),l.outerWidth=e.$.offsetWidth,l.outerHeight=e.$.offsetHeight,l.height=l.outerHeight-(s.top+s.bottom+o.top+o.bottom),l.width=l.outerWidth-(s.left+s.right+o.left+o.right),l.bottom=l.top+l.outerHeight,l.right=l.left+l.outerWidth,t.inInlineMode&&(l.scroll={top:e.$.scrollTop,left:e.$.scrollLeft}),I({border:o,padding:s,margin:a,ignoreScroll:n},l,!0)}function b(t,e,n){if(!d(e))return e.size=null;if(e.size){if(e.size.ignoreScroll==n&&e.size.date>new Date-H)return null}else e.size={};return I(e.size,E(t,e,n),{date:+new Date},!0)}function _(t,e){t.view.editable=E(t,t.editable,e,!0)}function C(t,e){t.view||(t.view={});var n=t.view;if(!(!e&&n&&n.date>new Date-H)){var i=t.win,n=i.getScrollPosition(),i=i.getViewPaneSize();I(t.view,{scroll:{x:n.x,y:n.y,width:t.doc.$.documentElement.scrollWidth-i.width,height:t.doc.$.documentElement.scrollHeight-i.height},pane:{width:i.width,height:i.height,bottom:i.height+n.y},date:+new Date},!0)}}function T(t,n,i,r){for(var o=r,a=r,s=0,l=!1,c=!1,u=t.view.pane.height,d=t.mouse;d.y+s<u&&0<d.y-s&&(l||(l=n(o,r)),c||(c=n(a,r)),!l&&0<d.y-s&&(o=i(t,{x:d.x,y:d.y-s})),!c&&d.y+s<u&&(a=i(t,{x:d.x,y:d.y+s})),!l||!c);)s+=2;return new e([o,a,null,null])}CKEDITOR.plugins.add("magicline",{init:function(t){var i,o,a,p=t.config,g=p.magicline_triggerOffset||30,b={editor:t,enterMode:p.enterMode,triggerOffset:g,holdDistance:0|g*(p.magicline_holdDistance||.5),boxColor:p.magicline_color||"#ff0000",rtl:"rtl"==p.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(p.magicline_tabuList||[]),triggers:p.magicline_everywhere?V:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}};b.isRelevant=function(t){return d(t)&&!u(b,t)&&!h(t)},t.on("contentDom",function(){var d=t.editable(),h=t.document,g=t.window;I(b,{editable:d,inInlineMode:d.isInline(),doc:h,win:g,hotNode:null},!0),b.boundary=b.inInlineMode?b.editable:b.doc.getDocumentElement(),d.is(R.$inline)||(b.inInlineMode&&!f(d)&&d.setStyles({position:"relative",top:null,left:null}),s.call(this,b),C(b),d.attachListener(t,"beforeUndoImage",function(){b.line.detach()}),d.attachListener(t,"beforeGetData",function(){b.line.wrap.getParent()&&(b.line.detach(),t.once("getData",function(){b.line.attach()},null,null,1e3))},null,null,0),d.attachListener(b.inInlineMode?h:h.getWindow().getFrame(),"mouseout",function(e){if("wysiwyg"==t.mode)if(b.inInlineMode){var n=e.data.$.clientX;e=e.data.$.clientY,C(b),_(b,!0);var i=b.view.editable,r=b.view.scroll;n>i.left-r.x&&n<i.right-r.x&&e>i.top-r.y&&e<i.bottom-r.y||(clearTimeout(a),a=null,b.line.detach())}else clearTimeout(a),a=null,b.line.detach()}),d.attachListener(d,"keyup",function(){b.hiddenMode=0}),d.attachListener(d,"keydown",function(e){if("wysiwyg"==t.mode)switch(e.data.getKeystroke()){case 2228240:case 16:b.hiddenMode=1,b.line.detach()}}),d.attachListener(b.inInlineMode?d:h,"mousemove",function(e){if(o=!0,"wysiwyg"==t.mode&&!t.readOnly&&!a){var n={x:e.data.$.clientX,y:e.data.$.clientY};a=setTimeout(function(){b.mouse=n,a=b.trigger=null,C(b),o&&!b.hiddenMode&&t.focusManager.hasFocus&&!b.line.mouseNear()&&(b.element=q(b,!0))&&((b.trigger=v(b)||y(b)||X(b))&&!m(b,b.trigger.upper||b.trigger.lower)?b.line.attach().place():(b.trigger=null,b.line.detach()),o=!1)},30)}}),d.attachListener(g,"scroll",function(){"wysiwyg"==t.mode&&(b.line.detach(),O.webkit&&(b.hiddenMode=1,clearTimeout(i),i=setTimeout(function(){b.mouseDown||(b.hiddenMode=0)},50)))}),d.attachListener(w?h:g,"mousedown",function(){"wysiwyg"==t.mode&&(b.line.detach(),b.hiddenMode=1,b.mouseDown=1)}),d.attachListener(w?h:g,"mouseup",function(){b.hiddenMode=0,b.mouseDown=0}),t.addCommand("accessPreviousSpace",c(b)),t.addCommand("accessNextSpace",c(b,!0)),t.setKeystroke([[p.magicline_keystrokePrevious,"accessPreviousSpace"],[p.magicline_keystrokeNext,"accessNextSpace"]]),t.on("loadSnapshot",function(){var e,n,i,r;for(r in{p:1,br:1,div:1})for(e=t.document.getElementsByTag(r),i=e.count();i--;)if((n=e.getItem(i)).data("cke-magicline-hot"))return b.hotNode=n,void(b.lastCmdDirection="true"===n.data("cke-magicline-dir"))}),this.backdoor={accessFocusSpace:l,boxTrigger:e,isLine:u,getAscendantTrigger:n,getNonEmptyNeighbour:r,getSize:E,that:b,triggerEdge:y,triggerEditable:v,triggerExpand:X})},this)}});var I=CKEDITOR.tools.extend,D=CKEDITOR.dom.element,$=D.createFromHtml,O=CKEDITOR.env,w=CKEDITOR.env.ie&&9>CKEDITOR.env.version,R=CKEDITOR.dtd,k={},x=128,S=64,A=32,N=16,P=4,M=2,K=1,L=" ",F=R.$listItem,B=R.$tableContent,j=I({},R.$nonEditable,R.$empty),V=R.$block,H=100,U="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",z=U+"border-color:transparent;display:block;border-style:solid;",G="<span>"+L+"</span>";k[CKEDITOR.ENTER_BR]="br",k[CKEDITOR.ENTER_P]="p",k[CKEDITOR.ENTER_DIV]="div",e.prototype={set:function(t,e,n){return this.properties=t+e+(n||K),this},is:function(t){return(this.properties&t)==t}};var q=function(){function t(t,e){var n=t.$.elementFromPoint(e.x,e.y);return n&&n.nodeType?new CKEDITOR.dom.element(n):null}return function(e,n,i){if(!e.mouse)return null;var r=e.doc,o=e.line.wrap;i=i||e.mouse;var a=t(r,i);return n&&u(e,a)&&(o.hide(),a=t(r,i),o.show()),!a||a.type!=CKEDITOR.NODE_ELEMENT||!a.$||O.ie&&9>O.version&&!e.boundary.equals(a)&&!e.boundary.contains(a)?null:a}}(),W=CKEDITOR.dom.walker.whitespaces(),Y=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),X=function(){function e(e){var r,a,s,l=e.element;if(!d(l)||l.contains(e.editable)||l.isReadOnly())return null;if(s=T(e,function(t,e){return!e.equals(t)},function(t,e){return q(t,!0,e)},l),r=s.upper,a=s.lower,t(e,r,a))return s.set(A,8);if(r&&l.contains(r))for(;!r.getParent().equals(l);)r=r.getParent();else r=l.getFirst(function(t){return n(e,t)});if(a&&l.contains(a))for(;!a.getParent().equals(l);)a=a.getParent();else a=l.getLast(function(t){return n(e,t)});if(!r||!a)return null;if(b(e,r),b(e,a),!o(e.mouse.y,r.size.top,a.size.bottom))return null;for(var c,u,h,f,l=Number.MAX_VALUE;a&&!a.equals(r)&&(u=r.getNext(e.isRelevant));)c=Math.abs(i(e,r,u)-e.mouse.y),c<l&&(l=c,h=r,f=u),r=u,b(e,r);return h&&f&&o(e.mouse.y,h.size.top,f.size.bottom)?(s.upper=h,s.lower=f,s.set(A,8)):null}function n(t,e){return!(e&&e.type==CKEDITOR.NODE_TEXT||Y(e)||h(e)||u(t,e)||e.type==CKEDITOR.NODE_ELEMENT&&e.$&&e.is("br"))}return function(n){var i,r=e(n);if(i=r){i=r.upper;var o=r.lower;i=!(!i||!o||h(o)||h(i)||o.equals(i)||i.equals(o)||o.contains(i)||i.contains(o))&&!!(p(n,i)&&p(n,o)&&t(n,i,o))}return i?r:null}}(),J=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function t(t){if(!t||t.type!=CKEDITOR.NODE_ELEMENT||"form"!=t.getName())return[];for(var e=[],n=["style","className"],i=0;i<n.length;i++){var r=t.$.elements.namedItem(n[i]);r&&(r=new CKEDITOR.dom.element(r),e.push([r,r.nextSibling]),r.remove())}return e}function e(t,e){if(t&&t.type==CKEDITOR.NODE_ELEMENT&&"form"==t.getName()&&0<e.length)for(var n=e.length-1;0<=n;n--){var i=e[n][0],r=e[n][1];r?i.insertBefore(r):i.appendTo(t)}}function n(n,i){var r=t(n),o={},a=n.$;return i||(o["class"]=a.className||"",a.className=""),o.inline=a.style.cssText||"",i||(a.style.cssText="position: static; overflow: visible"),e(r),o}function i(n,i){var r=t(n),o=n.$;"class"in i&&(o.className=i["class"]),"inline"in i&&(o.style.cssText=i.inline),e(r)}function r(t){if(!t.editable().isInline()){var e,n=CKEDITOR.instances;for(e in n){var i=n[e];"wysiwyg"!=i.mode||i.readOnly||(i=i.document.getBody(),i.setAttribute("contentEditable",!1),i.setAttribute("contentEditable",!0))}t.editable().hasFocus&&(t.toolbox.focus(),t.focus())}}CKEDITOR.plugins.add("maximize",{init:function(t){function e(){var e=u.getViewPaneSize();t.resize(e.width,e.height,null,!0)}if(t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var o,a,s,l=t.lang,c=CKEDITOR.document,u=c.getWindow(),d=CKEDITOR.TRISTATE_OFF;t.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var h=t.container.getFirst(function(t){return t.type==CKEDITOR.NODE_ELEMENT&&t.hasClass("cke_inner")}),f=t.ui.space("contents");if("wysiwyg"==t.mode){var p=t.getSelection();o=p&&p.getRanges(),a=u.getScrollPosition()}else{var m=t.editable().$;o=!CKEDITOR.env.ie&&[m.selectionStart,m.selectionEnd],a=[m.scrollLeft,m.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){for(u.on("resize",e),s=u.getScrollPosition(),p=t.container;p=p.getParent();)p.setCustomData("maximize_saved_styles",n(p)),p.setStyle("z-index",t.config.baseFloatZIndex-5);f.setCustomData("maximize_saved_styles",n(f,!0)),h.setCustomData("maximize_saved_styles",n(h,!0)),f={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0},c.getDocumentElement().setStyles(f),!CKEDITOR.env.gecko&&c.getDocumentElement().setStyle("position","fixed"),CKEDITOR.env.gecko&&CKEDITOR.env.quirks||c.getBody().setStyles(f),CKEDITOR.env.ie?setTimeout(function(){u.$.scrollTo(0,0)},0):u.$.scrollTo(0,0),h.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute"),h.$.offsetLeft,h.setStyles({"z-index":t.config.baseFloatZIndex-5,left:"0px",top:"0px"}),h.addClass("cke_maximized"),e(),f=h.getDocumentPosition(),h.setStyles({left:-1*f.x+"px",top:-1*f.y+"px"}),CKEDITOR.env.gecko&&r(t)}else if(this.state==CKEDITOR.TRISTATE_ON){u.removeListener("resize",e);for(var p=[f,h],g=0;g<p.length;g++)i(p[g],p[g].getCustomData("maximize_saved_styles")),p[g].removeCustomData("maximize_saved_styles");for(p=t.container;p=p.getParent();)i(p,p.getCustomData("maximize_saved_styles")),p.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){u.$.scrollTo(s.x,s.y)},0):u.$.scrollTo(s.x,s.y),h.removeClass("cke_maximized"),CKEDITOR.env.webkit&&(h.setStyle("display","inline"),setTimeout(function(){h.setStyle("display","block")},0)),t.fire("resize",{outerHeight:t.container.$.offsetHeight,contentsHeight:f.$.offsetHeight,outerWidth:t.container.$.offsetWidth})}this.toggleState(),(p=this.uiItems[0])&&(f=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,p=CKEDITOR.document.getById(p._.id),p.getChild(1).setHtml(f),p.setAttribute("title",f),p.setAttribute("href",'javascript:void("'+f+'");')),"wysiwyg"==t.mode?o?(CKEDITOR.env.gecko&&r(t),t.getSelection().selectRanges(o),(m=t.getSelection().getStartElement())&&m.scrollIntoView(!0)):u.$.scrollTo(a.x,a.y):(o&&(m.selectionStart=o[0],m.selectionEnd=o[1]),m.scrollLeft=a[0],m.scrollTop=a[1]),o=a=null,d=this.state,t.fire("maximize",this.state)},canUndo:!1}),t.ui.addButton&&t.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"}),t.on("mode",function(){var e=t.getCommand("maximize");e.setState(e.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:d)},null,null,100)}}})}(),function(){function t(t,e,n){var i=CKEDITOR.cleanWord;return i?n():(t=CKEDITOR.getUrl(t.config.pasteFromWordCleanupFile||e+"filter/default.js"),CKEDITOR.scriptLoader.load(t,n,null,!0)),!i}function e(t){t.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(n){var i=0,r=this.path;n.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(t){var n=this;i=1,t.once("beforePaste",e),t.getClipboardData({title:t.lang.pastefromword.title},function(e){e&&t.fire("paste",{type:"html",dataValue:e.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()}),t.fire("afterCommandExec",{name:"pastefromword",command:n,returnValue:!!e})})}}),n.ui.addButton&&n.ui.addButton("PasteFromWord",{label:n.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}),n.on("pasteState",function(t){n.getCommand("pastefromword").setState(t.data)}),n.on("paste",function(e){var o=e.data,a=o.dataValue;if(a&&(i||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(a))){o.dontFilter=!0;var s=t(n,r,function(){s?n.fire("paste",o):(!n.config.pasteFromWordPromptCleanup||i||confirm(n.lang.pastefromword.confirmCleanup))&&(o.dataValue=CKEDITOR.cleanWord(a,n)),i=0});s&&e.cancel()}},null,null,3)}})}(),function(){var t={canUndo:!1,async:!0,exec:function(e){e.getClipboardData({title:e.lang.pastetext.title},function(n){n&&e.fire("paste",{type:"text",dataValue:n.dataValue,method:"paste",dataTransfer:CKEDITOR.plugins.clipboard.initPasteDataTransfer()}),e.fire("afterCommandExec",{name:"pastetext",command:t,returnValue:!!n})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(e){e.addCommand("pastetext",t),e.ui.addButton&&e.ui.addButton("PasteText",{label:e.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"}),e.config.forcePasteAsPlainText&&e.on("beforePaste",function(t){"html"!=t.data.type&&(t.data.type="text")}),e.on("pasteState",function(t){e.getCommand("pastetext").setState(t.data)})}})}(),CKEDITOR.plugins.add("removeformat",{init:function(t){t.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat),t.ui.addButton&&t.ui.addButton("RemoveFormat",{label:t.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(t){for(var e,n=t._.removeFormatRegex||(t._.removeFormatRegex=new RegExp("^(?:"+t.config.removeFormatTags.replace(/,/g,"|")+")$","i")),i=t._.removeAttributes||(t._.removeAttributes=t.config.removeFormatAttributes.split(",")),r=CKEDITOR.plugins.removeformat.filter,o=t.getSelection().getRanges(),a=o.createIterator(),s=function(t){return t.type==CKEDITOR.NODE_ELEMENT};e=a.getNextRange();){e.collapsed||e.enlarge(CKEDITOR.ENLARGE_ELEMENT);var l=e.createBookmark(),c=l.startNode,u=l.endNode,d=function(e){for(var i,o=t.elementPath(e),a=o.elements,s=1;(i=a[s])&&!i.equals(o.block)&&!i.equals(o.blockLimit);s++)n.test(i.getName())&&r(t,i)&&e.breakParent(i)};if(d(c),u)for(d(u),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(u);)if(c.isReadOnly()){if(c.getPosition(u)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(s)}else d=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),"img"==c.getName()&&c.data("cke-realelement")||!r(t,c)||(n.test(c.getName())?c.remove(1):(c.removeAttributes(i),t.fire("removeFormatCleanup",c))),c=d;e.moveToBookmark(l)}t.forceNextSelectionCheck(),t.getSelection().selectRanges(o)}}},filter:function(t,e){for(var n=t._.removeFormatFilters||[],i=0;i<n.length;i++)if(!1===n[i](e))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(t){this._.removeFormatFilters||(this._.removeFormatFilters=[]),this._.removeFormatFilters.push(t)},CKEDITOR.config.removeFormatTags="b,big,cite,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",CKEDITOR.plugins.add("resize",{init:function(t){function e(e){var n=s.width,r=s.height,l=n+(e.data.$.screenX-a.x)*("rtl"==o?-1:1);e=r+(e.data.$.screenY-a.y),c&&(n=Math.max(i.resize_minWidth,Math.min(l,i.resize_maxWidth))),u&&(r=Math.max(i.resize_minHeight,Math.min(e,i.resize_maxHeight))),t.resize(c?n:null,r)}function n(){CKEDITOR.document.removeListener("mousemove",e),CKEDITOR.document.removeListener("mouseup",n),t.document&&(t.document.removeListener("mousemove",e),t.document.removeListener("mouseup",n))}var i=t.config,r=t.ui.spaceId("resizer"),o=t.element?t.element.getDirection(1):"ltr";if(!i.resize_dir&&(i.resize_dir="vertical"),void 0===i.resize_maxWidth&&(i.resize_maxWidth=3e3),void 0===i.resize_maxHeight&&(i.resize_maxHeight=3e3),void 0===i.resize_minWidth&&(i.resize_minWidth=750),void 0===i.resize_minHeight&&(i.resize_minHeight=250),!1!==i.resize_enabled){var a,s,l=null,c=("both"==i.resize_dir||"horizontal"==i.resize_dir)&&i.resize_minWidth!=i.resize_maxWidth,u=("both"==i.resize_dir||"vertical"==i.resize_dir)&&i.resize_minHeight!=i.resize_maxHeight,d=CKEDITOR.tools.addFunction(function(r){l||(l=t.getResizable()),s={width:l.$.offsetWidth||0,height:l.$.offsetHeight||0},a={x:r.screenX,y:r.screenY},i.resize_minWidth>s.width&&(i.resize_minWidth=s.width),i.resize_minHeight>s.height&&(i.resize_minHeight=s.height),CKEDITOR.document.on("mousemove",e),CKEDITOR.document.on("mouseup",n),t.document&&(t.document.on("mousemove",e),t.document.on("mouseup",n)),r.preventDefault&&r.preventDefault()});t.on("destroy",function(){CKEDITOR.tools.removeFunction(d)}),t.on("uiSpace",function(e){if("bottom"==e.data.space){var n="";c&&!u&&(n=" cke_resizer_horizontal"),!c&&u&&(n=" cke_resizer_vertical");var i='<span id="'+r+'" class="cke_resizer'+n+" cke_resizer_"+o+'" title="'+CKEDITOR.tools.htmlEncode(t.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+d+', event)">'+("ltr"==o?"â—¢":"â—£")+"</span>";"ltr"==o&&"ltr"==n?e.data.html+=i:e.data.html=i+e.data.html}},t,null,100),t.on("maximize",function(e){t.ui.space("resizer")[e.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var t=function(t){var e=this._,n=e.menu;e.state!==CKEDITOR.TRISTATE_DISABLED&&(e.on&&n?n.hide():(e.previousState=e.state,n||(n=e.menu=new CKEDITOR.menu(t,{panel:{className:"cke_menu_panel",attributes:{"aria-label":t.lang.common.options}}}),n.onHide=CKEDITOR.tools.bind(function(){var n=this.command?t.getCommand(this.command).modes:this.modes;this.setState(!n||n[t.mode]?e.previousState:CKEDITOR.TRISTATE_DISABLED),e.on=0},this),this.onMenu&&n.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),e.on=1,setTimeout(function(){n.show(CKEDITOR.document.getById(e.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(e){delete e.panel,this.base(e),this.hasArrow=!0,this.click=t},statics:{handler:{create:function(t){return new CKEDITOR.ui.menuButton(t)}}}})},beforeInit:function(t){t.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",init:function(t){var e=this,n=CKEDITOR.plugins.scayt;this.bindEvents(t),this.parseConfig(t),this.addRule(t),CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js")),this.addMenuItems(t);var i=t.lang.scayt,r=CKEDITOR.env;t.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:i.text_title,title:t.plugins.wsc?t.lang.wsc.title:i.text_title,modes:{wysiwyg:!(r.ie&&(8>r.version||r.quirks))},toolbar:"spellchecker,20",refresh:function(){var e=t.ui.instances.Scayt.getState();t.scayt&&(e=n.state.scayt[t.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),t.fire("scaytButtonState",e)},onRender:function(){var e=this;t.on("scaytButtonState",function(t){void 0!==typeof t.data&&e.setState(t.data)})},onMenu:function(){var e=t.scayt;return t.getMenuItem("scaytToggle").label=t.lang.scayt[e&&n.state.scayt[t.name]?"btn_disable":"btn_enable"],e={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:e?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:t.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED},t.config.scayt_uiTabs[0]||delete e.scaytOptions,t.config.scayt_uiTabs[1]||delete e.scaytLangs,t.config.scayt_uiTabs[2]||delete e.scaytDict,e}}),t.contextMenu&&t.addMenuItems&&(t.contextMenu.addListener(function(n,i){var r,o,a=t.scayt;return a&&(o=a.getSelectionNode())&&(r=e.menuGenerator(t,o),a.showBanner("."+t.contextMenu._.definition.panel.className.split(" ").join(" ."))),r}),t.contextMenu._.onHide=CKEDITOR.tools.override(t.contextMenu._.onHide,function(e){return function(){var n=t.scayt;return n&&n.hideBanner(),e.apply(this)}}))},addMenuItems:function(t){var e=this,n=CKEDITOR.plugins.scayt;t.addMenuGroup("scaytButton");for(var i=t.config.scayt_contextMenuItemsOrder.split("|"),r=0;r<i.length;r++)i[r]="scayt_"+i[r];if((i=["grayt_description","grayt_suggest","grayt_control"].concat(i))&&i.length)for(r=0;r<i.length;r++)t.addMenuGroup(i[r],r-10);t.addCommand("scaytToggle",{exec:function(t){var e=t.scayt;n.state.scayt[t.name]=!n.state.scayt[t.name],!0===n.state.scayt[t.name]?e||n.createScayt(t):e&&n.destroy(t)}}),t.addCommand("scaytAbout",{exec:function(t){t.scayt.tabToOpen="about",t.lockSelection(),t.openDialog(e.dialogName)}}),t.addCommand("scaytOptions",{exec:function(t){t.scayt.tabToOpen="options",t.lockSelection(),t.openDialog(e.dialogName)}}),t.addCommand("scaytLangs",{exec:function(t){t.scayt.tabToOpen="langs",t.lockSelection(),t.openDialog(e.dialogName)}}),t.addCommand("scaytDict",{exec:function(t){t.scayt.tabToOpen="dictionaries",t.lockSelection(),t.openDialog(e.dialogName)}}),i={scaytToggle:{label:t.lang.scayt.btn_enable,group:"scaytButton",command:"scaytToggle"},scaytAbout:{label:t.lang.scayt.btn_about,group:"scaytButton",command:"scaytAbout"},scaytOptions:{label:t.lang.scayt.btn_options,group:"scaytButton",command:"scaytOptions"},scaytLangs:{label:t.lang.scayt.btn_langs,group:"scaytButton",command:"scaytLangs"},scaytDict:{label:t.lang.scayt.btn_dictionaries,group:"scaytButton",command:"scaytDict"}},t.plugins.wsc&&(i.WSC={label:t.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var e=CKEDITOR.plugins.scayt,n=t.scayt,i=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?t.container.getText():t.document.getBody().getText();(i=i.replace(/\s/g,""))?(n&&e.state.scayt[t.name]&&n.setMarkupPaused&&n.setMarkupPaused(!0),t.lockSelection(),t.execCommand("checkspell")):alert("Nothing to check!")}}),t.addMenuItems(i)},bindEvents:function(t){var e=CKEDITOR.plugins.scayt,n=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE,i=function(){e.destroy(t)},r=function(){!e.state.scayt[t.name]||t.readOnly||t.scayt||e.createScayt(t)},o=function(){var e=t.editable();e.attachListener(e,"focus",function(e){CKEDITOR.plugins.scayt&&!t.scayt&&setTimeout(r,0),e=CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[t.name]&&t.scayt;var i,o;if((n||e)&&t._.savedSelection){e=t._.savedSelection.getSelectedElement(),e=!e&&t._.savedSelection.getRanges();for(var a=0;a<e.length;a++)o=e[a],"string"==typeof o.startContainer.$.nodeValue&&((i=o.startContainer.getText().length)<o.startOffset||i<o.endOffset)&&t.unlockSelection(!1)}},this,null,-10)},a=function(){n?t.config.scayt_inlineModeImmediateMarkup?r():(t.on("blur",function(){setTimeout(i,0)}),t.on("focus",r),t.focusManager.hasFocus&&r()):r(),o();var e=t.editable();e.attachListener(e,"mousedown",function(e){e=e.data.getTarget();var n=t.widgets&&t.widgets.getByElement(e);n&&(n.wrapper=e.getAscendant(function(t){return t.hasAttribute("data-cke-widget-wrapper")},!0))},this,null,-10)};t.on("contentDom",a),t.on("beforeCommandExec",function(n){var i=t.scayt,r=null,o=!1,a=!0;n.data.name in e.options.disablingCommandExec&&"wysiwyg"==t.mode?i&&(e.destroy(t),t.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==n.data.name&&"italic"!==n.data.name&&"underline"!==n.data.name&&"strike"!==n.data.name&&"subscript"!==n.data.name&&"superscript"!==n.data.name&&"enter"!==n.data.name&&"cut"!==n.data.name&&"language"!==n.data.name||!i||("cut"===n.data.name&&(a=!1,o=!0),"language"===n.data.name&&(r=(r=t.plugins.language.getCurrentLangElement(t))&&r.$,o=!0),t.fire("reloadMarkupScayt",{removeOptions:{removeInside:a,forceBookmark:o,selectionNode:r},timeout:0}))}),t.on("beforeSetMode",function(n){"source"==n.data&&((n=t.scayt)&&(e.destroy(t),t.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)),t.document&&t.document.getBody().removeAttribute("_jquid"))}),t.on("afterCommandExec",function(e){"wysiwyg"!=t.mode||"undo"!=e.data.name&&"redo"!=e.data.name||setTimeout(function(){var e=t.scayt,n=e&&e.getScaytLangList();n&&n.ltr&&n.rtl&&e.fire("startSpellCheck, startGrammarCheck")},250)}),t.on("readOnly",function(n){var i;n&&(i=t.scayt,!0===n.editor.readOnly?i&&i.fire("removeMarkupInDocument",{}):i?i.fire("startSpellCheck, startGrammarCheck"):"wysiwyg"==n.editor.mode&&!0===e.state.scayt[n.editor.name]&&(e.createScayt(t),n.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))}),t.on("beforeDestroy",i),t.on("setData",function(){i(),(t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE||t.plugins.divarea)&&a()},this,null,50),t.on("reloadMarkupScayt",function(e){var n=e.data&&e.data.removeOptions;setTimeout(function(){var e=t.scayt,i=e&&e.getScaytLangList();i&&i.ltr&&i.rtl&&(t.document.fire("keydown",new CKEDITOR.dom.event({keyCode:37})),e.removeMarkupInSelectionNode(n),e.fire("startSpellCheck, startGrammarCheck"))},e.data&&e.data.timeout||0)}),t.on("insertElement",function(){t.fire("reloadMarkupScayt",{removeOptions:{forceBookmark:!0}})},this,null,50),t.on("insertHtml",function(){t.fire("reloadMarkupScayt")},this,null,50),t.on("insertText",function(){t.fire("reloadMarkupScayt")},this,null,50),t.on("scaytDialogShown",function(e){e.data.selectPage(t.scayt.tabToOpen)})},parseConfig:function(t){var e=CKEDITOR.plugins.scayt;if(e.replaceOldOptionsNames(t.config),"boolean"!=typeof t.config.scayt_autoStartup&&(t.config.scayt_autoStartup=!1),e.state.scayt[t.name]=t.config.scayt_autoStartup,"boolean"!=typeof t.config.grayt_autoStartup&&(t.config.grayt_autoStartup=!1),"boolean"!=typeof t.config.scayt_inlineModeImmediateMarkup&&(t.config.scayt_inlineModeImmediateMarkup=!1),e.state.grayt[t.name]=t.config.grayt_autoStartup,t.config.scayt_contextCommands||(t.config.scayt_contextCommands="ignore|ignoreall|add"),t.config.scayt_contextMenuItemsOrder||(t.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control"),t.config.scayt_sLang||(t.config.scayt_sLang="en_US"),(void 0===t.config.scayt_maxSuggestions||"number"!=typeof t.config.scayt_maxSuggestions||0>t.config.scayt_maxSuggestions)&&(t.config.scayt_maxSuggestions=5),(void 0===t.config.scayt_minWordLength||"number"!=typeof t.config.scayt_minWordLength||1>t.config.scayt_minWordLength)&&(t.config.scayt_minWordLength=4),void 0!==t.config.scayt_customDictionaryIds&&"string"==typeof t.config.scayt_customDictionaryIds||(t.config.scayt_customDictionaryIds=""),void 0!==t.config.scayt_userDictionaryName&&"string"==typeof t.config.scayt_userDictionaryName||(t.config.scayt_userDictionaryName=null),"string"==typeof t.config.scayt_uiTabs&&3===t.config.scayt_uiTabs.split(",").length){var n=[],i=[];t.config.scayt_uiTabs=t.config.scayt_uiTabs.split(","),CKEDITOR.tools.search(t.config.scayt_uiTabs,function(t){1===Number(t)||0===Number(t)?(i.push(!0),n.push(Number(t))):i.push(!1)}),null===CKEDITOR.tools.search(i,!1)?t.config.scayt_uiTabs=n:t.config.scayt_uiTabs=[1,1,1]}else t.config.scayt_uiTabs=[1,1,1];if("string"!=typeof t.config.scayt_serviceProtocol&&(t.config.scayt_serviceProtocol=null),"string"!=typeof t.config.scayt_serviceHost&&(t.config.scayt_serviceHost=null),"string"!=typeof t.config.scayt_servicePort&&(t.config.scayt_servicePort=null),"string"!=typeof t.config.scayt_servicePath&&(t.config.scayt_servicePath=null),t.config.scayt_moreSuggestions||(t.config.scayt_moreSuggestions="on"),"string"!=typeof t.config.scayt_customerId&&(t.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2"),"string"!=typeof t.config.scayt_srcUrl&&(e=document.location.protocol,e=-1!=e.search(/https?:/)?e:"http:",t.config.scayt_srcUrl=e+"//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js"),"boolean"!=typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0),"boolean"!=typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0),CKEDITOR.config.scayt_handleUndoRedo=!!CKEDITOR.plugins.undo&&CKEDITOR.config.scayt_handleUndoRedo,"boolean"!=typeof t.config.scayt_multiLanguageMode&&(t.config.scayt_multiLanguageMode=!1),"object"!=typeof t.config.scayt_multiLanguageStyles&&(t.config.scayt_multiLanguageStyles={}),t.config.scayt_ignoreAllCapsWords&&"boolean"!=typeof t.config.scayt_ignoreAllCapsWords&&(t.config.scayt_ignoreAllCapsWords=!1),t.config.scayt_ignoreDomainNames&&"boolean"!=typeof t.config.scayt_ignoreDomainNames&&(t.config.scayt_ignoreDomainNames=!1),t.config.scayt_ignoreWordsWithMixedCases&&"boolean"!=typeof t.config.scayt_ignoreWordsWithMixedCases&&(t.config.scayt_ignoreWordsWithMixedCases=!1),t.config.scayt_ignoreWordsWithNumbers&&"boolean"!=typeof t.config.scayt_ignoreWordsWithNumbers&&(t.config.scayt_ignoreWordsWithNumbers=!1),t.config.scayt_disableOptionsStorage){var e=CKEDITOR.tools.isArray(t.config.scayt_disableOptionsStorage)?t.config.scayt_disableOptionsStorage:"string"==typeof t.config.scayt_disableOptionsStorage?[t.config.scayt_disableOptionsStorage]:void 0,r="all options lang ignore-all-caps-words ignore-domain-names ignore-words-with-mixed-cases ignore-words-with-numbers".split(" "),o=["lang","ignore-all-caps-words","ignore-domain-names","ignore-words-with-mixed-cases","ignore-words-with-numbers"],a=CKEDITOR.tools.search,s=CKEDITOR.tools.indexOf;t.config.scayt_disableOptionsStorage=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],l=!!a(t,"options");if(!a(r,i)||l&&a(o,function(t){if("lang"===t)return!1}))return;if(a(o,i)&&o.splice(s(o,i),1),"all"===i||l&&a(t,"lang"))return[];"options"===i&&(o=["lang"])}return e=e.concat(o)}(e)}},addRule:function(t){var e=CKEDITOR.plugins.scayt,n=t.dataProcessor,i=n&&n.htmlFilter,r=t._.elementsPath&&t._.elementsPath.filters,n=n&&n.dataFilter,o=t.addRemoveFormatFilter,a=function(n){if(t.scayt&&(n.hasAttribute(e.options.data_attribute_name)||n.hasAttribute(e.options.problem_grammar_data_attribute)))return!1},s=function(n){var i=!0;return t.scayt&&(n.hasAttribute(e.options.data_attribute_name)||n.hasAttribute(e.options.problem_grammar_data_attribute))&&(i=!1),i};r&&r.push(a),n&&n.addRules({elements:{span:function(t){var n=t.hasClass(e.options.misspelled_word_class)&&t.attributes[e.options.data_attribute_name],i=t.hasClass(e.options.problem_grammar_class)&&t.attributes[e.options.problem_grammar_data_attribute];return e&&(n||i)&&delete t.name,t}}}),i&&i.addRules({elements:{span:function(t){var n=t.hasClass(e.options.misspelled_word_class)&&t.attributes[e.options.data_attribute_name],i=t.hasClass(e.options.problem_grammar_class)&&t.attributes[e.options.problem_grammar_data_attribute];return e&&(n||i)&&delete t.name,t}}}),o&&o.call(t,s)},scaytMenuDefinition:function(t){var e=this;return t=t.scayt,{scayt:{scayt_ignore:{label:t.getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(t){t.scayt.ignoreWord()}},scayt_ignoreall:{label:t.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(t){t.scayt.ignoreAllWords()}},scayt_add:{label:t.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(t){var e=t.scayt;setTimeout(function(){e.addWordToUserDictionary()},10)}},scayt_option:{label:t.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(t){t.scayt.tabToOpen="options",t.lockSelection(),t.openDialog(e.dialogName)},verification:function(t){return 1==t.config.scayt_uiTabs[0]}},scayt_language:{label:t.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(t){t.scayt.tabToOpen="langs",t.lockSelection(),t.openDialog(e.dialogName)},verification:function(t){return 1==t.config.scayt_uiTabs[1]}},scayt_dictionary:{label:t.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(t){t.scayt.tabToOpen="dictionaries",t.lockSelection(),t.openDialog(e.dialogName)},verification:function(t){return 1==t.config.scayt_uiTabs[2]}},scayt_about:{label:t.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(t){t.scayt.tabToOpen="about",t.lockSelection(),t.openDialog(e.dialogName)}}},grayt:{grayt_problemdescription:{label:"Grammar problem description",group:"grayt_description",order:1,state:CKEDITOR.TRISTATE_DISABLED,exec:function(t){}},grayt_ignore:{label:t.getLocal("btn_ignore"),group:"grayt_control",order:2,exec:function(t){t.scayt.ignorePhrase()}}}}},buildSuggestionMenuItems:function(t,e,n){var i={},r={},o=n?"word":"phrase",a=n?"startGrammarCheck":"startSpellCheck",s=t.scayt;if(0<e.length&&"no_any_suggestions"!==e[0])if(n)for(n=0;n<e.length;n++){var l="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_");t.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],o,a)),n<t.config.scayt_maxSuggestions?(t.addMenuItem(l,{label:e[n],command:l,group:"scayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF):(t.addMenuItem(l,{label:e[n],command:l,group:"scayt_moresuggest",order:n+1}),r[l]=CKEDITOR.TRISTATE_OFF,"on"===t.config.scayt_moreSuggestions&&(t.addMenuItem("scayt_moresuggest",{label:s.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return r}}),i.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else for(n=0;n<e.length;n++)l="grayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[n].replace(" ","_"),t.addCommand(l,this.createCommand(CKEDITOR.plugins.scayt.suggestions[n],o,a)),t.addMenuItem(l,{label:e[n],command:l,group:"grayt_suggest",order:n+1}),i[l]=CKEDITOR.TRISTATE_OFF;else i.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,t.addCommand("no_scayt_suggest",{exec:function(){}}),t.addMenuItem("no_scayt_suggest",{label:s.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return i},menuGenerator:function(t,e){var n,i,r=t.scayt,o=this.scaytMenuDefinition(t),a={},s=t.config.scayt_contextCommands.split("|"),l=e.getAttribute(r.getLangAttribute())||r.getLang();if(n=r.isScaytNode(e),i=r.isGraytNode(e),n?(o=o.scayt,a=e.getAttribute(r.getScaytNodeAttributeName()),r.fire("getSuggestionsList",{lang:l,word:a}),a=this.buildSuggestionMenuItems(t,CKEDITOR.plugins.scayt.suggestions,n)):i&&(o=o.grayt,a=e.getAttribute(r.getGraytNodeAttributeName()),i=r.getProblemDescriptionText(a,l),o.grayt_problemdescription&&i&&(o.grayt_problemdescription.label=i),r.fire("getGrammarSuggestionsList",{lang:l,phrase:a}),a=this.buildSuggestionMenuItems(t,CKEDITOR.plugins.scayt.suggestions,n)),n&&"off"==t.config.scayt_contextCommands)return a;for(var c in o)n&&-1==CKEDITOR.tools.indexOf(s,c.replace("scayt_",""))&&"all"!=t.config.scayt_contextCommands||(a[c]="undefined"!=typeof o[c].state?o[c].state:CKEDITOR.TRISTATE_OFF,"function"!=typeof o[c].verification||o[c].verification(t)||delete a[c],t.addCommand(c,{exec:o[c].exec}),t.addMenuItem(c,{label:t.lang.scayt[o[c].label]||o[c].label,command:c,group:o[c].group,order:o[c].order}));return a},createCommand:function(t,e,n){return{exec:function(i){i=i.scayt;var r={};r[e]=t,i.replaceSelectionNode(r),"startGrammarCheck"===n&&i.removeMarkupInSelectionNode({grammarOnly:!0}),i.fire(n)}}}}),CKEDITOR.plugins.scayt={state:{scayt:{},grayt:{}},suggestions:[],loadingHelper:{loadOrder:[]},isLoading:!1,options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word",problem_grammar_data_attribute:"data-grayt-phrase",problem_grammar_class:"gramm-problem"},backCompatibilityMap:{scayt_service_protocol:"scayt_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",scayt_customerid:"scayt_customerId"},replaceOldOptionsNames:function(t){for(var e in t)e in this.backCompatibilityMap&&(t[this.backCompatibilityMap[e]]=t[e],delete t[e])},createScayt:function(t){var e=this,n=CKEDITOR.plugins.scayt;this.loadScaytLibrary(t,function(t){var i=t.window&&t.window.getFrame()||t.editable();i?(i={lang:t.config.scayt_sLang,container:i.$,customDictionary:t.config.scayt_customDictionaryIds,userDictionaryName:t.config.scayt_userDictionaryName,localization:t.langCode,customer_id:t.config.scayt_customerId,debug:t.config.scayt_debug,data_attribute_name:e.options.data_attribute_name,misspelled_word_class:e.options.misspelled_word_class,problem_grammar_data_attribute:e.options.problem_grammar_data_attribute,problem_grammar_class:e.options.problem_grammar_class,"options-to-restore":t.config.scayt_disableOptionsStorage,focused:t.editable().hasFocus,ignoreElementsRegex:t.config.scayt_elementsToIgnore,minWordLength:t.config.scayt_minWordLength,multiLanguageMode:t.config.scayt_multiLanguageMode,multiLanguageStyles:t.config.scayt_multiLanguageStyles,graytAutoStartup:n.state.grayt[t.name]},t.config.scayt_serviceProtocol&&(i.service_protocol=t.config.scayt_serviceProtocol),t.config.scayt_serviceHost&&(i.service_host=t.config.scayt_serviceHost),t.config.scayt_servicePort&&(i.service_port=t.config.scayt_servicePort),t.config.scayt_servicePath&&(i.service_path=t.config.scayt_servicePath),"boolean"==typeof t.config.scayt_ignoreAllCapsWords&&(i["ignore-all-caps-words"]=t.config.scayt_ignoreAllCapsWords),"boolean"==typeof t.config.scayt_ignoreDomainNames&&(i["ignore-domain-names"]=t.config.scayt_ignoreDomainNames),"boolean"==typeof t.config.scayt_ignoreWordsWithMixedCases&&(i["ignore-words-with-mixed-cases"]=t.config.scayt_ignoreWordsWithMixedCases),"boolean"==typeof t.config.scayt_ignoreWordsWithNumbers&&(i["ignore-words-with-numbers"]=t.config.scayt_ignoreWordsWithNumbers),i=new SCAYT.CKSCAYT(i,function(){},function(){}),i.subscribe("suggestionListSend",function(t){for(var e={},n=[],i=0;i<t.suggestionList.length;i++)e["word_"+t.suggestionList[i]]||(e["word_"+t.suggestionList[i]]=t.suggestionList[i],n.push(t.suggestionList[i]));CKEDITOR.plugins.scayt.suggestions=n}),i.subscribe("selectionIsChanged",function(e){t.getSelection().isLocked&&t.lockSelection()}),i.subscribe("graytStateChanged",function(e){n.state.grayt[t.name]=e.state}),t.scayt=i,t.fire("scaytButtonState",t.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)):n.state.scayt[t.name]=!1})},destroy:function(t){t.scayt&&t.scayt.destroy(),delete t.scayt,t.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(t,e){var n,i,r=this;this.loadingHelper[t.name]||("undefined"==typeof window.SCAYT||"function"!=typeof window.SCAYT.CKSCAYT?(this.loadingHelper[t.name]=e,this.loadingHelper.loadOrder.push(t.name),n=new Date,n=n.getTime(),i=t.config.scayt_srcUrl,i+=0<=i.indexOf("?")?"":"?"+n,this.loadingHelper.ckscaytLoading||(CKEDITOR.scriptLoader.load(i,function(t){if(t){CKEDITOR.fireOnce("scaytReady");for(var e=0;e<r.loadingHelper.loadOrder.length;e++)t=r.loadingHelper.loadOrder[e],"function"==typeof r.loadingHelper[t]&&r.loadingHelper[t](CKEDITOR.instances[t]),delete r.loadingHelper[t];r.loadingHelper.loadOrder=[]}}),this.loadingHelper.ckscaytLoading=!0)):window.SCAYT&&"function"==typeof window.SCAYT.CKSCAYT&&(CKEDITOR.fireOnce("scaytReady"),t.scayt||"function"==typeof e&&e(t)))}},CKEDITOR.on("dialogDefinition",function(t){var e=t.data.name;t=t.data.definition.dialog,"scaytDialog"===e&&t.on("cancel",function(t){return!1},this,null,-1),"checkspell"===e&&t.on("cancel",function(t){t=t.sender&&t.sender.getParentEditor();var e=CKEDITOR.plugins.scayt,n=t.scayt;n&&e.state.scayt[t.name]&&n.setMarkupPaused&&n.setMarkupPaused(!1),t.unlockSelection()},this,null,-2),"link"===e&&t.on("ok",function(t){var e=t.sender&&t.sender.getParentEditor();e&&setTimeout(function(){e.fire("reloadMarkupScayt",{removeOptions:{removeInside:!0,forceBookmark:!0},timeout:0})},0)})}),CKEDITOR.on("scaytReady",function(){if(!0===CKEDITOR.config.scayt_handleCheckDirty){var t=CKEDITOR.editor.prototype;t.checkDirty=CKEDITOR.tools.override(t.checkDirty,function(t){return function(){var e=null,n=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt){if(e="ready"==this.status)var i=n.removeMarkupFromString(this.getSnapshot()),n=n.removeMarkupFromString(this._.previousValue),e=e&&n!==i}else e=t.call(this);return e}}),t.resetDirty=CKEDITOR.tools.override(t.resetDirty,function(t){return function(){var e=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[this.name]&&this.scayt?this._.previousValue=e.removeMarkupFromString(this.getSnapshot()):t.call(this)}})}if(!0===CKEDITOR.config.scayt_handleUndoRedo){var t=CKEDITOR.plugins.undo.Image.prototype,e="function"==typeof t.equalsContent?"equalsContent":"equals";t[e]=CKEDITOR.tools.override(t[e],function(t){return function(e){var n=e.editor.scayt,i=this.contents,r=e.contents,o=null;return CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state.scayt[e.editor.name]&&e.editor.scayt&&(this.contents=n.removeMarkupFromString(i)||"",e.contents=n.removeMarkupFromString(r)||""),o=t.apply(this,arguments),this.contents=i,e.contents=r,o}})}}),function(){var t={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(t){this.toggleState(),this.refresh(t)},refresh:function(t){if(t.document){var e=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";t.editable()[e]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var t;t=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders "),CKEDITOR.addCss(t)},init:function(e){var n=e.addCommand("showborders",t);n.canUndo=!1,!1!==e.config.startupShowBorders&&n.setState(CKEDITOR.TRISTATE_ON),e.on("mode",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(e)},null,null,100),e.on("contentDom",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(e)}),e.on("removeFormatCleanup",function(t){t=t.data,e.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&t.is("table")&&(!t.hasAttribute("border")||0>=parseInt(t.getAttribute("border"),10))&&t.addClass("cke_show_border")})},afterInit:function(t){var e=t.dataProcessor;t=e&&e.dataFilter,e=e&&e.htmlFilter,t&&t.addRules({elements:{table:function(t){t=t.attributes;var e=t["class"],n=parseInt(t.border,10);n&&!(0>=n)||e&&-1!=e.indexOf("cke_show_border")||(t["class"]=(e||"")+" cke_show_border")}}}),e&&e.addRules({elements:{table:function(t){t=t.attributes;var e=t["class"];e&&(t["class"]=e.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}}),CKEDITOR.on("dialogDefinition",function(t){var e=t.data.name;"table"!=e&&"tableProperties"!=e||(t=t.data.definition,e=t.getContents("info").get("txtBorder"),e.commit=CKEDITOR.tools.override(e.commit,function(t){return function(e,n){t.apply(this,arguments);var i=parseInt(this.getValue(),10);n[!i||0>=i?"addClass":"removeClass"]("cke_show_border")}}),(t=(t=t.getContents("advanced"))&&t.get("advCSSClasses"))&&(t.setup=CKEDITOR.tools.override(t.setup,function(t){return function(){t.apply(this,arguments),this.setValue(this.getValue().replace(/cke_show_border/,""))}}),t.commit=CKEDITOR.tools.override(t.commit,function(t){return function(e,n){t.apply(this,arguments),parseInt(n.getAttribute("border"),10)||n.addClass("cke_show_border")}})))})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(e){function n(){var t=r&&this.equals(CKEDITOR.document.getActive());this.hide(),this.setStyle("height",this.getParent().$.clientHeight+"px"),this.setStyle("width",this.getParent().$.clientWidth+"px"),this.show(),t&&this.focus()}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=CKEDITOR.plugins.sourcearea;e.addMode("source",function(i){var r=e.ui.space("contents").getDocument().createElement("textarea");r.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",e.config.sourceAreaTabSize||4))),r.setAttribute("dir","ltr"),r.addClass("cke_source").addClass("cke_reset").addClass("cke_enable_context_menu"),e.ui.space("contents").append(r),r=e.editable(new t(e,r)),r.setData(e.getData(1)),CKEDITOR.env.ie&&(r.attachListener(e,"resize",n,r),r.attachListener(CKEDITOR.document.getWindow(),"resize",n,r),CKEDITOR.tools.setTimeout(n,0,r)),e.fire("ariaWidget",this),i()}),e.addCommand("source",i.commands.source),e.ui.addButton&&e.ui.addButton("Source",{label:e.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}),e.on("mode",function(){e.getCommand("source").setState("source"==e.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var r=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var t=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(t){this.setValue(t),this.status="ready",this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(t){this[(t?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){t.baseProto.detach.call(this),this.clearCustomData(),this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(t){"wysiwyg"==t.mode&&t.fire("saveSnapshot"),t.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED),t.setMode("source"==t.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{af:1,ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,"de-ch":1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(t){var e=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js"),t.addCommand("specialchar",{exec:function(){var n=t.langCode,n=e.availableLangs[n]?n:e.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e.path+"dialogs/lang/"+n+".js"),function(){CKEDITOR.tools.extend(t.lang.specialchar,e.langEntries[n]),t.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1}),t.ui.addButton&&t.ui.addButton("SpecialChar",{label:t.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "),function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(t){var e=t.config,n=t.lang.stylescombo,i={},r=[],o=[];t.on("stylesSet",function(n){if(n=n.data.styles){for(var a,s,l,c=0,u=n.length;c<u;c++)a=n[c],t.blockless&&a.element in CKEDITOR.dtd.$block||(s=a.name,a=new CKEDITOR.style(a),t.filter.customConfig&&!t.filter.check(a))||(a._name=s,a._.enterMode=e.enterMode,a._.type=l=a.assignedTo||a.type,a._.weight=c+1e3*(l==CKEDITOR.STYLE_OBJECT?1:l==CKEDITOR.STYLE_BLOCK?2:3),i[s]=a,r.push(a),o.push(a));r.sort(function(t,e){return t._.weight-e._.weight})}}),t.ui.addRichCombo("Styles",{label:n.label,title:n.panelTitle,toolbar:"styles,10",allowedContent:o,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(e.contentsCss),multiSelect:!0,attributes:{"aria-label":n.panelTitle}},init:function(){var t,e,i,o,a,s;for(a=0,s=r.length;a<s;a++)t=r[a],e=t._name,o=t._.type,o!=i&&(this.startGroup(n["panelTitle"+String(o)]),i=o),this.add(e,t.type==CKEDITOR.STYLE_OBJECT?e:t.buildPreview(),e);this.commit()},onClick:function(e){t.focus(),t.fire("saveSnapshot"),e=i[e];var n=t.elementPath();t[e.checkActive(n,t)?"removeStyle":"applyStyle"](e),t.fire("saveSnapshot")},onRender:function(){t.on("selectionChange",function(e){var n=this.getValue();e=e.data.path.elements;for(var r,o=0,a=e.length;o<a;o++){r=e[o];for(var s in i)if(i[s].checkElementRemovable(r,!0,t))return void(s!=n&&this.setValue(s))}this.setValue("")},this)},onOpen:function(){var e=t.getSelection().getSelectedElement(),e=t.elementPath(e),r=[0,0,0,0];this.showAll(),this.unmarkAll();for(var o in i){var a=i[o],s=a._.type;a.checkApplicable(e,t,t.activeFilter)?r[s]++:this.hideItem(o),a.checkActive(e,t)&&this.mark(o)}r[CKEDITOR.STYLE_BLOCK]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_BLOCK)]),r[CKEDITOR.STYLE_INLINE]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_INLINE)]),r[CKEDITOR.STYLE_OBJECT]||this.hideGroup(n["panelTitle"+String(CKEDITOR.STYLE_OBJECT)])},refresh:function(){var e=t.elementPath();if(e){for(var n in i)if(i[n].checkApplicable(e,t,t.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){i={},r=[]}})}})}(),function(){function t(t){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(e){if(e.editable().hasFocus){var n,i=e.getSelection();if(n=new CKEDITOR.dom.elementPath(i.getCommonAncestor(),i.root).contains({td:1,th:1},1)){var i=e.createRange(),r=CKEDITOR.tools.tryThese(function(){var e=n.getParent().$.cells[n.$.cellIndex+(t?-1:1)];return e.parentNode.parentNode,e},function(){var e=n.getParent(),e=e.getAscendant("table").$.rows[e.$.rowIndex+(t?-1:1)];return e.cells[t?e.cells.length-1:0]});if(r||t){if(!r)return!0;r=new CKEDITOR.dom.element(r),i.moveToElementEditStart(r),i.checkStartOfBlock()&&i.checkEndOfBlock()||i.selectNodeContents(r)}else{for(var o=n.getAscendant("table").$,r=n.getParent().$.cells,o=new CKEDITOR.dom.element(o.insertRow(-1),e.document),a=0,s=r.length;a<s;a++)o.append(new CKEDITOR.dom.element(r[a],e.document).clone(!1,!1)).appendBogus();i.moveToElementEditStart(o)}return i.select(!0),!0}}return!1}}}var e={editorFocus:!1,modes:{wysiwyg:1,source:1}},n={exec:function(t){t.container.focusNext(!0,t.tabIndex)}},i={exec:function(t){t.container.focusPrevious(!0,t.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(r){for(var o=!1!==r.config.enableTabKeyTools,a=r.config.tabSpaces||0,s="";a--;)s+=" ";s&&r.on("key",function(t){9==t.data.keyCode&&(r.insertText(s),t.cancel())}),o&&r.on("key",function(t){(9==t.data.keyCode&&r.execCommand("selectNextCell")||t.data.keyCode==CKEDITOR.SHIFT+9&&r.execCommand("selectPreviousCell"))&&t.cancel()}),r.addCommand("blur",CKEDITOR.tools.extend(n,e)),r.addCommand("blurBack",CKEDITOR.tools.extend(i,e)),r.addCommand("selectNextCell",t()),r.addCommand("selectPreviousCell",t(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(t,e){var n,i,r,o,a,s,l=void 0===e?this.getTabIndex():e;if(0>=l)for(a=this.getNextSourceNode(t,CKEDITOR.NODE_ELEMENT);a;){if(a.isVisible()&&0===a.getTabIndex()){r=a;break}a=a.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(a=this.getDocument().getBody().getFirst();a=a.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&a.equals(this)){if(i=!0,t){if(!(a=a.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(a)&&(n=1);if(a.isVisible()&&!(0>(s=a.getTabIndex()))){if(n&&s==l){r=a;break}s>l&&(!r||!o||s<o)?(r=a,o=s):r||0!==s||(r=a,o=s)}}r&&r.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(t,e){for(var n,i,r,o,a=void 0===e?this.getTabIndex():e,s=0,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&l.equals(this)){if(i=!0,t){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(l)&&(n=1);if(l.isVisible()&&!(0>(o=l.getTabIndex())))if(0>=a){if(n&&0===o){r=l;break}o>s&&(r=l,s=o)}else{if(n&&o==a){r=l;break}o<a&&(!r||o>s)&&(r=l,s=o)}}r&&r.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(t){function e(t){return CKEDITOR.tools.extend(t||{},{contextSensitive:1,refresh:function(t,e){this.setState(e.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!t.blockless){var n=t.lang.table;t.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(t.plugins.dialogadvtab?"table"+t.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]})),t.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",e())),t.addCommand("tableDelete",e({exec:function(t){var e=t.elementPath().contains("table",1);if(e){var n=e.getParent(),i=t.editable();1!=n.getChildCount()||n.is("td","th")||n.equals(i)||(e=n),t=t.createRange(),t.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START),e.remove(),t.select()}}})),t.ui.addButton&&t.ui.addButton("Table",{label:n.toolbar,command:"table",toolbar:"insert,30"}),CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"),CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js"),t.addMenuItems&&t.addMenuItems({table:{label:n.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:n.deleteTable,command:"tableDelete",group:"table",order:1}}),t.on("doubleclick",function(t){t.data.element.is("table")&&(t.data.dialog="tableProperties")}),t.contextMenu&&t.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function t(t){function e(t){0<n.length||t.type!=CKEDITOR.NODE_ELEMENT||!h.test(t.getName())||t.getCustomData("selected_cell")||(CKEDITOR.dom.element.setMarker(i,t,"selected_cell",!0),n.push(t))}t=t.getRanges();for(var n=[],i={},r=0;r<t.length;r++){var o=t[r];if(o.collapsed)o=o.getCommonAncestor(),(o=o.getAscendant("td",!0)||o.getAscendant("th",!0))&&n.push(o);else{var a,o=new CKEDITOR.dom.walker(o);for(o.guard=e;a=o.next();)a.type==CKEDITOR.NODE_ELEMENT&&a.is(CKEDITOR.dtd.table)||(a=a.getAscendant("td",!0)||a.getAscendant("th",!0))&&!a.getCustomData("selected_cell")&&(CKEDITOR.dom.element.setMarker(i,a,"selected_cell",!0),n.push(a))}}return CKEDITOR.dom.element.clearAllMarkers(i),n}function e(e,n){for(var i=t(e),r=i[0],o=r.getAscendant("table"),r=r.getDocument(),a=i[0].getParent(),s=a.$.rowIndex,i=i[i.length-1],l=i.getParent().$.rowIndex+i.$.rowSpan-1,i=new CKEDITOR.dom.element(o.$.rows[l]),s=n?s:l,a=n?a:i,i=CKEDITOR.tools.buildTableMap(o),o=i[s],s=n?i[s-1]:i[s+1],i=i[0].length,r=r.createElement("tr"),l=0;o[l]&&l<i;l++){var c;1<o[l].rowSpan&&s&&o[l]==s[l]?(c=o[l],c.rowSpan+=1):(c=new CKEDITOR.dom.element(o[l]).clone(),c.removeAttribute("rowSpan"),c.appendBogus(),r.append(c),c=c.$),l+=c.colSpan-1}n?r.insertBefore(a):r.insertAfter(a)}function n(e){if(e instanceof CKEDITOR.dom.selection){var i=t(e),r=i[0].getAscendant("table"),o=CKEDITOR.tools.buildTableMap(r);e=i[0].getParent().$.rowIndex;for(var i=i[i.length-1],a=i.getParent().$.rowIndex+i.$.rowSpan-1,i=[],s=e;s<=a;s++){for(var l=o[s],c=new CKEDITOR.dom.element(r.$.rows[s]),u=0;u<l.length;u++){var d=new CKEDITOR.dom.element(l[u]),h=d.getParent().$.rowIndex;1==d.$.rowSpan?d.remove():(--d.$.rowSpan,h==s&&(h=o[s+1],h[u-1]?d.insertAfter(new CKEDITOR.dom.element(h[u-1])):new CKEDITOR.dom.element(r.$.rows[s+1]).append(d,1))),u+=d.$.colSpan-1}i.push(c)}for(o=r.$.rows,r=new CKEDITOR.dom.element(o[a+1]||(0<e?o[e-1]:null)||r.$.parentNode),s=i.length;0<=s;s--)n(i[s]);return r}return e instanceof CKEDITOR.dom.element&&(r=e.getAscendant("table"),1==r.$.rows.length?r.remove():e.remove()),null}function i(t,e){for(var n=e?Infinity:0,i=0;i<t.length;i++){var r;r=t[i];for(var o=e,a=r.getParent().$.cells,s=0,l=0;l<a.length;l++){var c=a[l],s=s+(o?1:c.colSpan);if(c==r.$)break}r=s-1,(e?r<n:r>n)&&(n=r)}return n}function r(e,n){for(var r=t(e),o=r[0].getAscendant("table"),a=i(r,1),r=i(r),a=n?a:r,s=CKEDITOR.tools.buildTableMap(o),o=[],r=[],l=s.length,c=0;c<l;c++)o.push(s[c][a]),r.push(n?s[c][a-1]:s[c][a+1]);for(c=0;c<l;c++)o[c]&&(1<o[c].colSpan&&r[c]==o[c]?(a=o[c],a.colSpan+=1):(a=new CKEDITOR.dom.element(o[c]).clone(),a.removeAttribute("colSpan"),a.appendBogus(),a[n?"insertBefore":"insertAfter"].call(a,new CKEDITOR.dom.element(o[c])),a=a.$),c+=a.rowSpan-1)}function o(t,e){var n=t.getStartElement();if(n=n.getAscendant("td",1)||n.getAscendant("th",1)){var i=n.clone();i.appendBogus(),e?i.insertBefore(n):i.insertAfter(n)}}function a(e){if(e instanceof CKEDITOR.dom.selection){e=t(e);var n,i=e[0]&&e[0].getAscendant("table");t:{var r=0;n=e.length-1;for(var o,l,c={};o=e[r++];)CKEDITOR.dom.element.setMarker(c,o,"delete_cell",!0);for(r=0;o=e[r++];)if((l=o.getPrevious())&&!l.getCustomData("delete_cell")||(l=o.getNext())&&!l.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(c),n=l;break t}CKEDITOR.dom.element.clearAllMarkers(c),l=e[0].getParent(),(l=l.getPrevious())?n=l.getLast():(l=e[n].getParent(),n=(l=l.getNext())?l.getChild(0):null)}for(l=e.length-1;0<=l;l--)a(e[l]);n?s(n,!0):i&&i.remove()}else e instanceof CKEDITOR.dom.element&&(i=e.getParent(),1==i.getChildCount()?i.remove():e.remove())}function s(t,e){var n=t.getDocument(),i=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(i.focus(),n.focus()),n=new CKEDITOR.dom.range(n),n["moveToElementEdit"+(e?"End":"Start")](t)||(n.selectNodeContents(t),n.collapse(!e)),n.select(!0)}function l(t,e,n){if(t=t[e],void 0===n)return t;for(e=0;t&&e<t.length;e++){if(n.is&&t[e]==n.$)return e;if(e==n)return new CKEDITOR.dom.element(t[e])}return n.is?-1:null}function c(e,n,i){var r,o=t(e);if((n?1!=o.length:2>o.length)||(r=e.getCommonAncestor())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("table"))return!1;var a;e=o[0],r=e.getAscendant("table");var s=CKEDITOR.tools.buildTableMap(r),c=s.length,u=s[0].length,d=e.getParent().$.rowIndex,h=l(s,d,e);if(n){var f;try{var p=parseInt(e.getAttribute("rowspan"),10)||1;a=parseInt(e.getAttribute("colspan"),10)||1,f=s["up"==n?d-p:"down"==n?d+p:d]["left"==n?h-a:"right"==n?h+a:h]}catch(T){return!1}if(!f||e.$==f)return!1;o["up"==n||"left"==n?"unshift":"push"](new CKEDITOR.dom.element(f))}n=e.getDocument();var m=d,p=f=0,g=!i&&new CKEDITOR.dom.documentFragment(n),v=0;for(n=0;n<o.length;n++){a=o[n];var y=a.getParent(),E=a.getFirst(),b=a.$.colSpan,_=a.$.rowSpan,y=y.$.rowIndex,C=l(s,y,a),v=v+b*_,p=Math.max(p,C-h+b);f=Math.max(f,y-d+_),i||(b=a,(_=b.getBogus())&&_.remove(),b.trim(),a.getChildren().count()&&(y==m||!E||E.isBlockBoundary&&E.isBlockBoundary({br:1})||!(m=g.getLast(CKEDITOR.dom.walker.whitespaces(!0)))||m.is&&m.is("br")||g.append("br"),a.moveChildren(g)),n?a.remove():a.setHtml("")),m=y}if(i)return f*p==v;for(g.moveChildren(e),e.appendBogus(),p>=u?e.removeAttribute("rowSpan"):e.$.rowSpan=f,f>=c?e.removeAttribute("colSpan"):e.$.colSpan=p,i=new CKEDITOR.dom.nodeList(r.$.rows),o=i.count(),n=o-1;0<=n;n--)r=i.getItem(n),r.$.cells.length||(r.remove(),o++);return e}function u(e,n){var i=t(e);if(1<i.length)return!1;if(n)return!0;var r,i=i[0],o=i.getParent(),a=o.getAscendant("table"),s=CKEDITOR.tools.buildTableMap(a),c=o.$.rowIndex,u=l(s,c,i),d=i.$.rowSpan;if(1<d){r=Math.ceil(d/2);for(var h,d=Math.floor(d/2),o=c+r,a=new CKEDITOR.dom.element(a.$.rows[o]),s=l(s,o),o=i.clone(),c=0;c<s.length;c++){if(h=s[c],h.parentNode==a.$&&c>u){o.insertBefore(new CKEDITOR.dom.element(h));break}h=null}h||a.append(o)}else for(d=r=1,a=o.clone(),a.insertAfter(o),a.append(o=i.clone()),h=l(s,c),u=0;u<h.length;u++)h[u].rowSpan++;return o.appendBogus(),i.$.rowSpan=r,o.$.rowSpan=d,1==r&&i.removeAttribute("rowSpan"),1==d&&o.removeAttribute("rowSpan"),o}function d(e,n){var i=t(e);if(1<i.length)return!1;if(n)return!0;var i=i[0],r=i.getParent(),o=r.getAscendant("table"),o=CKEDITOR.tools.buildTableMap(o),a=l(o,r.$.rowIndex,i),s=i.$.colSpan;if(1<s)r=Math.ceil(s/2),s=Math.floor(s/2);else{for(var s=r=1,c=[],u=0;u<o.length;u++){var d=o[u];c.push(d[a]),1<d[a].rowSpan&&(u+=d[a].rowSpan-1)}for(o=0;o<c.length;o++)c[o].colSpan++}return o=i.clone(),o.insertAfter(i),o.appendBogus(),i.$.colSpan=r,o.$.colSpan=s,1==r&&i.removeAttribute("colSpan"),1==s&&o.removeAttribute("colSpan"),o}var h=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(i){function l(t){return CKEDITOR.tools.extend(t||{},{contextSensitive:1,refresh:function(t,e){this.setState(e.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function h(t,e){var n=i.addCommand(t,e);i.addFeature(n)}var f=i.lang.table;h("cellProperties",new CKEDITOR.dialogCommand("cellProperties",l({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"}))),CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js"),h("rowDelete",l({requiredContent:"table",exec:function(t){t=t.getSelection(),s(n(t))}})),h("rowInsertBefore",l({requiredContent:"table",exec:function(t){t=t.getSelection(),e(t,!0)}})),h("rowInsertAfter",l({requiredContent:"table",exec:function(t){t=t.getSelection(),e(t)}})),h("columnDelete",l({requiredContent:"table",exec:function(e){e=e.getSelection(),e=t(e);var n=e[0],i=e[e.length-1];e=n.getAscendant("table");for(var r,o,a=CKEDITOR.tools.buildTableMap(e),l=[],c=0,u=a.length;c<u;c++)for(var d=0,h=a[c].length;d<h;d++)a[c][d]==n.$&&(r=d),a[c][d]==i.$&&(o=d);for(c=r;c<=o;c++)for(d=0;d<a.length;d++)i=a[d],n=new CKEDITOR.dom.element(e.$.rows[d]),i=new CKEDITOR.dom.element(i[c]),i.$&&(1==i.$.colSpan?i.remove():--i.$.colSpan,d+=i.$.rowSpan-1,n.$.cells.length||l.push(n));o=e.$.rows[0]&&e.$.rows[0].cells,r=new CKEDITOR.dom.element(o[r]||(r?o[r-1]:e.$.parentNode)),l.length==u&&e.remove(),r&&s(r,!0)}})),h("columnInsertBefore",l({requiredContent:"table",exec:function(t){t=t.getSelection(),r(t,!0)}})),h("columnInsertAfter",l({requiredContent:"table",exec:function(t){t=t.getSelection(),r(t)}})),h("cellDelete",l({requiredContent:"table",exec:function(t){t=t.getSelection(),a(t)}})),h("cellMerge",l({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(t){s(c(t.getSelection()),!0)}})),h("cellMergeRight",l({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(t){s(c(t.getSelection(),"right"),!0)}})),h("cellMergeDown",l({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(t){s(c(t.getSelection(),"down"),!0)}})),h("cellVerticalSplit",l({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(t){s(d(t.getSelection()))}})),h("cellHorizontalSplit",l({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(t){s(u(t.getSelection()))}})),h("cellInsertBefore",l({requiredContent:"table",exec:function(t){t=t.getSelection(),o(t,!0)}})),h("cellInsertAfter",l({requiredContent:"table",exec:function(t){t=t.getSelection(),o(t)}})),i.addMenuItems&&i.addMenuItems({tablecell:{label:f.cell.menu,group:"tablecell",order:1,getItems:function(){var e=i.getSelection(),n=t(e);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:c(e,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:c(e,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:c(e,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:d(e,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:u(e,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<n.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:f.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:f.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:f.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:f.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:f.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:f.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:f.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:f.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:f.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:f.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:f.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:f.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:f.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:f.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:f.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:f.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:f.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}}),i.contextMenu&&i.contextMenu.addListener(function(t,e,n){return(t=n.contains({td:1,th:1},1))&&!t.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:t},CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(t){t=t.$.rows;for(var e=-1,n=[],i=0;i<t.length;i++){e++,!n[e]&&(n[e]=[]);for(var r=-1,o=0;o<t[i].cells.length;o++){var a=t[i].cells[o];for(r++;n[e][r];)r++;for(var s=isNaN(a.colSpan)?1:a.colSpan,a=isNaN(a.rowSpan)?1:a.rowSpan,l=0;l<a;l++){n[e+l]||(n[e+l]=[]);for(var c=0;c<s;c++)n[e+l][r+c]=t[i].cells[o]}r+=s-1}}return n},function(){function t(t){function n(){var e,n,i,r={};for(e in t.ui.items)n=t.ui.items[e],i=n.toolbar||"others",i=i.split(","),n=i[0],i=parseInt(i[1]||-1,10),r[n]||(r[n]=[]),r[n].push({name:e,order:i});for(n in r)r[n]=r[n].sort(function(t,e){return t.order==e.order?0:0>e.order?-1:0>t.order?1:t.order<e.order?-1:1});return r}function i(e,n){if(n.length){e.items?e.items.push(t.ui.create("-")):e.items=[];for(var i;i=n.shift();)i="string"==typeof i?i:i.name,r&&-1!=CKEDITOR.tools.indexOf(r,i)||(i=t.ui.create(i))&&t.addFeature(i)&&e.items.push(i)}}var r=t.config.removeButtons,r=r&&r.split(","),o=t.config.toolbar;return"string"==typeof o&&(o=t.config["toolbar_"+o]),t.toolbar=o?function(t){var e,n,r,o=[];for(e=0;e<t.length;++e)n=t[e],r={},"/"==n?o.push(n):CKEDITOR.tools.isArray(n)?(i(r,CKEDITOR.tools.clone(n)),o.push(r)):n.items&&(i(r,CKEDITOR.tools.clone(n.items)),r.name=n.name,o.push(r));return o}(o):function(){for(var r=n(),o=CKEDITOR.tools.clone(t.config.toolbarGroups)||e(t),a=0;a<o.length;a++){var s=o[a];if("/"!=s){"string"==typeof s&&(s=o[a]={name:s});var l,c=s.groups;if(c)for(var u=0;u<c.length;u++)l=c[u],(l=r[l])&&i(s,l);(l=r[s.name])&&i(s,l)}}return o}()}function e(t){return t._.toolbarGroups||(t._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var n=function(){this.toolbars=[],this.focusCommandExecuted=!1};n.prototype.focus=function(){for(var t,e=0;t=this.toolbars[e++];)for(var n,i=0;n=t.items[i++];)if(n.focus)return void n.focus()};var i={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(t){t.toolbox&&(t.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){t.toolbox.focus()},100):t.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(e){var r,o=function(t,n){var i,a="rtl"==e.lang.dir,s=e.config.toolbarGroupCycling,l=a?37:39,a=a?39:37,s=void 0===s||s;switch(n){case 9:case CKEDITOR.SHIFT+9:for(;!i||!i.items.length;)if(i=9==n?(i?i.next:t.toolbar.next)||e.toolbox.toolbars[0]:(i?i.previous:t.toolbar.previous)||e.toolbox.toolbars[e.toolbox.toolbars.length-1],i.items.length)for(t=i.items[r?i.items.length-1:0];t&&!t.focus;)(t=r?t.previous:t.next)||(i=0);return t&&t.focus(),!1;case l:i=t;do{!(i=i.next)&&s&&(i=t.toolbar.items[0])}while(i&&!i.focus);return i?i.focus():o(t,9),!1;case 40:return t.button&&t.button.hasArrow?(e.once("panelShow",function(t){t.data._.panel._.currentBlock.onKeyDown(40)}),t.execute()):o(t,40==n?l:a),!1;case a:case 38:i=t;do{!(i=i.previous)&&s&&(i=t.toolbar.items[t.toolbar.items.length-1])}while(i&&!i.focus);return i?i.focus():(r=1,o(t,CKEDITOR.SHIFT+9),r=0),!1;case 27:return e.focus(),!1;case 13:case 32:return t.execute(),!1}return!0};e.on("uiSpace",function(i){if(i.data.space==e.config.toolbarLocation){i.removeListener(),e.toolbox=new n;var r,a,s=CKEDITOR.tools.getNextId(),l=['<span id="',s,'" class="cke_voice_label">',e.lang.toolbar.toolbars,"</span>",'<span id="'+e.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',s,'" onmousedown="return false;">'],s=!1!==e.config.toolbarStartupExpanded;e.config.toolbarCanCollapse&&e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&l.push('<span class="cke_toolbox_main"'+(s?">":' style="display:none">'));for(var c=e.toolbox.toolbars,u=t(e),d=0;d<u.length;d++){var h,f,p,m=0,g=u[d];if(g)if(r&&(l.push("</span>"),a=r=0),"/"===g)l.push('<span class="cke_toolbar_break"></span>');else{p=g.items||g;for(var v=0;v<p.length;v++){var y,E=p[v];if(E){var b=function(t){t=t.render(e,l),_=m.items.push(t)-1,0<_&&(t.previous=m.items[_-1],t.previous.next=t),t.toolbar=m,t.onkey=o,t.onfocus=function(){e.toolbox.focusCommandExecuted||e.focus()}};if(E.type==CKEDITOR.UI_SEPARATOR)a=r&&E;else{if(y=!1!==E.canGroup,!m){h=CKEDITOR.tools.getNextId(),m={id:h,items:[]},f=g.name&&(e.lang.toolbar.toolbarGroups[g.name]||g.name),l.push('<span id="',h,'" class="cke_toolbar"',f?' aria-labelledby="'+h+'_label"':"",' role="toolbar">'),f&&l.push('<span id="',h,'_label" class="cke_voice_label">',f,"</span>"),l.push('<span class="cke_toolbar_start"></span>');var _=c.push(m)-1;0<_&&(m.previous=c[_-1],m.previous.next=m)}y?r||(l.push('<span class="cke_toolgroup" role="presentation">'),r=1):r&&(l.push("</span>"),r=0),a&&(b(a),a=0),b(E)}}}r&&(l.push("</span>"),a=r=0),m&&l.push('<span class="cke_toolbar_end"></span></span>')}}if(e.config.toolbarCanCollapse&&l.push("</span>"),e.config.toolbarCanCollapse&&e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var C=CKEDITOR.tools.addFunction(function(){e.execCommand("toolbarCollapse")});e.on("destroy",function(){CKEDITOR.tools.removeFunction(C)}),e.addCommand("toolbarCollapse",{readOnly:1,exec:function(t){var e=t.ui.space("toolbar_collapser"),n=e.getPrevious(),i=t.ui.space("contents"),r=n.getParent(),o=parseInt(i.$.style.height,10),a=r.$.offsetHeight,s=e.hasClass("cke_toolbox_collapser_min");s?(n.show(),e.removeClass("cke_toolbox_collapser_min"),e.setAttribute("title",t.lang.toolbar.toolbarCollapse)):(n.hide(),e.addClass("cke_toolbox_collapser_min"),e.setAttribute("title",t.lang.toolbar.toolbarExpand)),e.getFirst().setText(s?"â–²":"â—€"),i.setStyle("height",o-(r.$.offsetHeight-a)+"px"),t.fire("resize",{outerHeight:t.container.$.offsetHeight,contentsHeight:i.$.offsetHeight,outerWidth:t.container.$.offsetWidth})},modes:{wysiwyg:1,source:1}}),e.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse"),l.push('<a title="'+(s?e.lang.toolbar.toolbarCollapse:e.lang.toolbar.toolbarExpand)+'" id="'+e.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser'),s||l.push(" cke_toolbox_collapser_min"),l.push('" onclick="CKEDITOR.tools.callFunction('+C+')">','<span class="cke_arrow">▲</span>',"</a>")}l.push("</span>"),i.data.html+=l.join("")}}),e.on("destroy",function(){if(this.toolbox){var t,e,n,i,r=0;for(t=this.toolbox.toolbars;r<t.length;r++)for(n=t[r].items,e=0;e<n.length;e++)i=n[e],i.clickFn&&CKEDITOR.tools.removeFunction(i.clickFn),i.keyDownFn&&CKEDITOR.tools.removeFunction(i.keyDownFn)}}),e.on("uiReady",function(){var t=e.ui.space("toolbox");t&&e.focusManager.add(t,1)}),e.addCommand("toolbarFocus",i),e.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus"),e.ui.add("-",CKEDITOR.UI_SEPARATOR,{}),e.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(t,e){return e.push('<span class="cke_toolbar_separator" role="separator"></span>'),{}}}}})}}),CKEDITOR.ui.prototype.addToolbarGroup=function(t,n,i){var r=e(this.editor),o=0===n,a={name:t};if(i){if(i=CKEDITOR.tools.search(r,function(t){return t.name==i}))return!i.groups&&(i.groups=[]),n&&0<=(n=CKEDITOR.tools.indexOf(i.groups,n))?void i.groups.splice(n+1,0,t):void(o?i.groups.splice(0,0,t):i.groups.push(t));n=null}n&&(n=CKEDITOR.tools.indexOf(r,function(t){return t.name==n})),o?r.splice(0,0,t):"number"==typeof n?r.splice(n+1,0,a):r.push(t)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var t=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SHIFT+90],e={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(e){function i(t){a.enabled&&!1!==t.data.command.canUndo&&a.save()}function r(){a.enabled=!e.readOnly&&"wysiwyg"==e.mode,a.onChange()}var a=e.undoManager=new n(e),s=a.editingHandler=new o(a),l=e.addCommand("undo",{exec:function(){a.undo()&&(e.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),c=e.addCommand("redo",{exec:function(){a.redo()&&(e.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});e.setKeystroke([[t[0],"undo"],[t[1],"redo"],[t[2],"redo"]]),a.onChange=function(){l.setState(a.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),c.setState(a.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)},e.on("beforeCommandExec",i),e.on("afterCommandExec",i),e.on("saveSnapshot",function(t){a.save(t.data&&t.data.contentOnly)}),e.on("contentDom",s.attachListeners,s),e.on("instanceReady",function(){e.fire("saveSnapshot")}),e.on("beforeModeUnload",function(){"wysiwyg"==e.mode&&a.save(!0)}),e.on("mode",r),e.on("readOnly",r),e.ui.addButton&&(e.ui.addButton("Undo",{label:e.lang.undo.undo,command:"undo",toolbar:"undo,10"}),e.ui.addButton("Redo",{label:e.lang.undo.redo,command:"redo",toolbar:"undo,20"})),e.resetUndo=function(){a.reset(),e.fire("saveSnapshot")},e.on("updateSnapshot",function(){a.currentImage&&a.update()}),e.on("lockSnapshot",function(t){t=t.data,a.lock(t&&t.dontUpdate,t&&t.forceUpdate)}),e.on("unlockSnapshot",a.unlock,a)}}),CKEDITOR.plugins.undo={};var n=CKEDITOR.plugins.undo.UndoManager=function(t){this.strokesRecorded=[0,0],this.locked=null,this.previousKeyGroup=-1,this.limit=t.config.undoStackSize||20,this.strokesLimit=25,this.editor=t,this.reset()};n.prototype={type:function(t,e){var i=n.getKeyGroup(t),r=this.strokesRecorded[i]+1;e=e||r>=this.strokesLimit,this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange()),e?(r=0,this.editor.fire("saveSnapshot")):this.editor.fire("change"),this.strokesRecorded[i]=r,this.previousKeyGroup=i},keyGroupChanged:function(t){return n.getKeyGroup(t)!=this.previousKeyGroup},reset:function(){this.snapshots=[],this.index=-1,this.currentImage=null,this.hasRedo=this.hasUndo=!1,this.locked=null,this.resetType()},resetType:function(){this.strokesRecorded=[0,0],this.typing=!1,this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0),this.hasRedo=!!this.getNextImage(!1),this.resetType(),this.onChange()},save:function(t,e,n){var r=this.editor;if(this.locked||"ready"!=r.status||"wysiwyg"!=r.mode)return!1;var o=r.editable();if(!o||"ready"!=o.status)return!1;if(o=this.snapshots,e||(e=new i(r)),!1===e.contents)return!1;if(this.currentImage)if(e.equalsContent(this.currentImage)){if(t||e.equalsSelection(this.currentImage))return!1}else!1!==n&&r.fire("change");return o.splice(this.index+1,o.length-this.index-1),o.length==this.limit&&o.shift(),this.index=o.push(e)-1,this.currentImage=e,!1!==n&&this.refreshState(),!0},restoreImage:function(t){var e,n=this.editor;t.bookmarks&&(n.focus(),e=n.getSelection()),this.locked={level:999},this.editor.loadSnapshot(t.contents),t.bookmarks?e.selectBookmarks(t.bookmarks):CKEDITOR.env.ie&&(e=this.editor.document.getBody().$.createTextRange(),e.collapse(!0),e.select()),this.locked=null,this.index=t.index,this.currentImage=this.snapshots[this.index],this.update(),this.refreshState(),n.fire("change")},getNextImage:function(t){var e,n=this.snapshots,i=this.currentImage;if(i)if(t){for(e=this.index-1;0<=e;e--)if(t=n[e],!i.equalsContent(t))return t.index=e,t}else for(e=this.index+1;e<n.length;e++)if(t=n[e],!i.equalsContent(t))return t.index=e,t;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var t=this.getNextImage(!0);if(t)return this.restoreImage(t),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var t=this.getNextImage(!1);if(t)return this.restoreImage(t),!0}return!1},update:function(t){if(!this.locked){t||(t=new i(this.editor));for(var e=this.index,n=this.snapshots;0<e&&this.currentImage.equalsContent(n[e-1]);)--e;n.splice(e,this.index-e+1,t),this.index=e,this.currentImage=t}},updateSelection:function(t){if(!this.snapshots.length)return!1;var e=this.snapshots,n=e[e.length-1];return!(!n.equalsContent(t)||n.equalsSelection(t))&&(this.currentImage=e[e.length-1]=t,!0)},lock:function(t,e){if(this.locked)this.locked.level++;else if(t)this.locked={level:1};else{var n=null;if(e)n=!0;else{var r=new i(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(r)&&(n=r)}this.locked={update:n,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var t=this.locked.update;if(this.locked=null,!0===t)this.update();else if(t){var e=new i(this.editor,!0);t.equalsContent(e)||this.update()}}}},n.navigationKeyCodes={37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1},n.keyGroups={PRINTABLE:0,FUNCTIONAL:1},n.isNavigationKey=function(t){return!!n.navigationKeyCodes[t]},n.getKeyGroup=function(t){var i=n.keyGroups;return e[t]?i.FUNCTIONAL:i.PRINTABLE},n.getOppositeKeyGroup=function(t){var e=n.keyGroups;return t==e.FUNCTIONAL?e.PRINTABLE:e.FUNCTIONAL},n.ieFunctionalKeysBug=function(t){return CKEDITOR.env.ie&&n.getKeyGroup(t)==n.keyGroups.FUNCTIONAL};var i=CKEDITOR.plugins.undo.Image=function(t,e){this.editor=t,t.fire("beforeUndoImage");var n=t.getSnapshot();CKEDITOR.env.ie&&n&&(n=n.replace(/\s+data-cke-expando=".*?"/g,"")),this.contents=n,e||(this.bookmarks=(n=n&&t.getSelection())&&n.createBookmarks2(!0)),t.fire("afterUndoImage")},r=/\b(?:href|src|name)="[^"]*?"/gi;i.prototype={equalsContent:function(t){var e=this.contents;return t=t.contents,CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(e=e.replace(r,""),t=t.replace(r,"")),e==t},equalsSelection:function(t){var e=this.bookmarks;if(t=t.bookmarks,e||t){if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++){var i=e[n],r=t[n];if(i.startOffset!=r.startOffset||i.endOffset!=r.endOffset||!CKEDITOR.tools.arrayCompare(i.start,r.start)||!CKEDITOR.tools.arrayCompare(i.end,r.end))return!1}}return!0}};var o=CKEDITOR.plugins.undo.NativeEditingHandler=function(t){this.undoManager=t,this.ignoreInputEvent=!1,this.keyEventsStack=new a,this.lastKeydownImage=null};o.prototype={onKeydown:function(e){var r=e.data.getKey();229!==r&&(-1<CKEDITOR.tools.indexOf(t,e.data.getKeystroke())?e.data.preventDefault():(this.keyEventsStack.cleanUp(e),e=this.undoManager,this.keyEventsStack.getLast(r)||this.keyEventsStack.push(r),this.lastKeydownImage=new i(e.editor),(n.isNavigationKey(r)||this.undoManager.keyGroupChanged(r))&&(e.strokesRecorded[0]||e.strokesRecorded[1])&&(e.save(!1,this.lastKeydownImage,!1),e.resetType())))},onInput:function(){if(this.ignoreInputEvent)this.ignoreInputEvent=!1;else{var t=this.keyEventsStack.getLast();t||(t=this.keyEventsStack.push(0)),this.keyEventsStack.increment(t.keyCode),this.keyEventsStack.getTotalInputs()>=this.undoManager.strokesLimit&&(this.undoManager.type(t.keyCode,!0),this.keyEventsStack.resetInputs())}},onKeyup:function(t){var e=this.undoManager;t=t.data.getKey();var r=this.keyEventsStack.getTotalInputs();this.keyEventsStack.remove(t),n.ieFunctionalKeysBug(t)&&this.lastKeydownImage&&this.lastKeydownImage.equalsContent(new i(e.editor,!0))||(0<r?e.type(t):n.isNavigationKey(t)&&this.onNavigationKey(!0))},onNavigationKey:function(t){var e=this.undoManager;!t&&e.save(!0,null,!1)||e.updateSelection(new i(e.editor)),e.resetType()},ignoreInputEventListener:function(){this.ignoreInputEvent=!0},attachListeners:function(){var t=this.undoManager.editor,e=t.editable(),i=this;e.attachListener(e,"keydown",function(t){i.onKeydown(t),n.ieFunctionalKeysBug(t.data.getKey())&&i.onInput()},null,null,999),e.attachListener(e,CKEDITOR.env.ie?"keypress":"input",i.onInput,i,null,999),e.attachListener(e,"keyup",i.onKeyup,i,null,999),e.attachListener(e,"paste",i.ignoreInputEventListener,i,null,999),e.attachListener(e,"drop",i.ignoreInputEventListener,i,null,999),e.attachListener(e.isInline()?e:t.document.getDocumentElement(),"click",function(){i.onNavigationKey()},null,null,999),e.attachListener(this.undoManager.editor,"blur",function(){i.keyEventsStack.remove(9)},null,null,999)}};var a=CKEDITOR.plugins.undo.KeyEventsStack=function(){this.stack=[]};a.prototype={push:function(t){return t=this.stack.push({keyCode:t,inputs:0}),this.stack[t-1]},getLastIndex:function(t){if("number"!=typeof t)return this.stack.length-1;for(var e=this.stack.length;e--;)if(this.stack[e].keyCode==t)return e;return-1},getLast:function(t){return t=this.getLastIndex(t),-1!=t?this.stack[t]:null},increment:function(t){this.getLast(t).inputs++},remove:function(t){-1!=(t=this.getLastIndex(t))&&this.stack.splice(t,1)},resetInputs:function(t){if("number"==typeof t)this.getLast(t).inputs=0;else for(t=this.stack.length;t--;)this.stack[t].inputs=0},getTotalInputs:function(){for(var t=this.stack.length,e=0;t--;)e+=this.stack[t].inputs;return e},cleanUp:function(t){t=t.data.$,t.ctrlKey||t.metaKey||this.remove(17),t.shiftKey||this.remove(16),t.altKey||this.remove(18)}}}(),CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(t){t.config.wsc_onFinish="function"==typeof t.config.wsc_onFinish?t.config.wsc_onFinish:function(){},t.config.wsc_onClose="function"==typeof t.config.wsc_onClose?t.config.wsc_onClose:function(){}},parseConfig:function(t){t.config.wsc_customerId=t.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk",t.config.wsc_customDictionaryIds=t.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"",t.config.wsc_userDictionaryName=t.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"",t.config.wsc_customLoaderScript=t.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript,CKEDITOR.config.wsc_cmd=t.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell",CKEDITOR.config.wsc_version="v4.3.0-master-d769233",CKEDITOR.config.wsc_removeGlobalVariable=!0},init:function(t){var e=CKEDITOR.env;this.parseConfig(t),this.parseApi(t),t.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!(CKEDITOR.env.opera||CKEDITOR.env.air||document.domain!=window.location.hostname||e.ie&&(8>e.version||e.quirks))},"undefined"==typeof t.plugins.scayt&&t.ui.addButton&&t.ui.addButton("SpellChecker",{label:t.lang.wsc.toolbar,click:function(t){var e=t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?t.container.getText():t.document.getBody().getText();(e=e.replace(/\s/g,""))?t.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"}),CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&7>=CKEDITOR.env.version?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),function(){function t(t){function n(t){var e=!1;s.attachListener(s,"keydown",function(){var n=r.getBody().getElementsByTag(t);if(!e){for(var i=0;i<n.count();i++)n.getItem(i).setCustomData("retain",!0);e=!0}},null,null,1),s.attachListener(s,"keyup",function(){var n=r.getElementsByTag(t);e&&(1!=n.count()||n.getItem(0).getCustomData("retain")||n.getItem(0).hasAttribute("data-cke-temp")||n.getItem(0).remove(1),e=!1)})}var i=this.editor,r=t.document,o=r.body,a=r.getElementById("cke_actscrpt");a&&a.parentNode.removeChild(a),(a=r.getElementById("cke_shimscrpt"))&&a.parentNode.removeChild(a),(a=r.getElementById("cke_basetagscrpt"))&&a.parentNode.removeChild(a),o.contentEditable=!0,CKEDITOR.env.ie&&(o.hideFocus=!0,o.disabled=!0,o.removeAttribute("disabled")),delete this._.isLoadingData,this.$=o,r=new CKEDITOR.dom.document(r),this.setup(),this.fixInitialSelection();var s=this;CKEDITOR.env.ie&&!CKEDITOR.env.edge&&r.getDocumentElement().addClass(r.$.compatMode),CKEDITOR.env.ie&&!CKEDITOR.env.edge&&i.enterMode!=CKEDITOR.ENTER_P?n("p"):CKEDITOR.env.edge&&i.enterMode!=CKEDITOR.ENTER_DIV&&n("div"),(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)&&r.getDocumentElement().on("mousedown",function(t){t.data.getTarget().is("html")&&setTimeout(function(){i.editable().focus()})}),e(i);try{i.document.$.execCommand("2D-position",!1,!0)}catch(l){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==i.document.$.compatMode)&&this.attachListener(this,"keydown",function(t){var e=t.data.getKeystroke();if(33==e||34==e)if(CKEDITOR.env.ie)setTimeout(function(){i.getSelection().scrollIntoView()},0);else if(i.window.$.innerHeight>this.$.offsetHeight){var n=i.createRange();n[33==e?"moveToElementEditStart":"moveToElementEditEnd"](this),n.select(),t.data.preventDefault()}}),CKEDITOR.env.ie&&this.attachListener(r,"blur",function(){try{r.$.selection.empty()}catch(t){}}),CKEDITOR.env.iOS&&this.attachListener(r,"touchend",function(){t.focus()}),o=i.document.getElementsByTag("title").getItem(0),o.data("cke-title",o.getText()),CKEDITOR.env.ie&&(i.document.$.title=this._.docTitle),CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready"),i.fire("contentDom"),this._.isPendingFocus&&(i.focus(),this._.isPendingFocus=!1),setTimeout(function(){i.fire("dataReady")},0)},0,this)}function e(t){function e(t){t.returnValue=!1}if(CKEDITOR.env.gecko)try{var n=t.document.$;n.execCommand("enableObjectResizing",!1,!t.config.disableObjectResizing),n.execCommand("enableInlineTableEditing",!1,!t.config.disableNativeTableHandles)}catch(i){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&t.config.disableObjectResizing&&function(){var n;t.editable().attachListener(t,"selectionChange",function(){var i=t.getSelection().getSelectedElement();i&&(n&&(n.detachEvent("onresizestart",e),n=null),i.$.attachEvent("onresizestart",e),n=i.$)})}()}function n(){var t=[];if(8<=CKEDITOR.document.$.documentMode){t.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var e,n=[];for(e in CKEDITOR.dtd.$removeEmpty)n.push("html.CSS1Compat "+e+"[contenteditable=false]");t.push(n.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(t.push("html{height:100% !important}"),t.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));return t.push("html{cursor:text;*cursor:auto}"),t.push("img,input,textarea{cursor:default}"),t.join("\n")}var i;CKEDITOR.plugins.add("wysiwygarea",{init:function(t){t.config.fullPage&&t.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"}),t.addMode("wysiwyg",function(e){function n(n){n&&n.removeListener(),t.editable(new i(t,o.$.contentWindow.document.body)),t.setData(t.getData(1),e)}var r="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",r=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie&&!CKEDITOR.env.edge?"javascript:void(function(){"+encodeURIComponent(r)+"}())":"",o=CKEDITOR.dom.element.createFromHtml('<iframe src="'+r+'" frameBorder="0"></iframe>');o.setStyles({width:"100%",height:"100%"}),o.addClass("cke_wysiwyg_frame").addClass("cke_reset"),r=t.ui.space("contents"),r.append(o);var a=CKEDITOR.env.ie&&!CKEDITOR.env.edge||CKEDITOR.env.gecko;a&&o.on("load",n);var s=t.title,l=t.fire("ariaEditorHelpLabel",{}).label;if(s&&(CKEDITOR.env.ie&&l&&(s+=", "+l),o.setAttribute("title",s)),l){var s=CKEDITOR.tools.getNextId(),c=CKEDITOR.dom.element.createFromHtml('<span id="'+s+'" class="cke_voice_label">'+l+"</span>");r.append(c,1),o.setAttribute("aria-describedby",s)}t.on("beforeModeUnload",function(t){t.removeListener(),c&&c.remove()}),o.setAttributes({tabIndex:t.tabIndex,allowTransparency:"true"}),!a&&n(),t.fire("ariaWidget",o)})}}),CKEDITOR.editor.prototype.addContentsCss=function(t){var e=this.config,n=e.contentsCss;CKEDITOR.tools.isArray(n)||(e.contentsCss=n?[n]:[]),e.contentsCss.push(t)},i=CKEDITOR.tools.createClass({$:function(){this.base.apply(this,arguments),this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(e){CKEDITOR.tools.setTimeout(t,0,this,e)},this),this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(t,e){var i=this.editor;if(e)this.setHtml(t),this.fixInitialSelection(),i.fire("dataReady");else{this._.isLoadingData=!0,i._.dataStore={id:1};var r=i.config,o=r.fullPage,a=r.docType,s=CKEDITOR.tools.buildStyleHtml(n()).replace(/<style>/,'<style data-cke-temp="1">');o||(s+=CKEDITOR.tools.buildStyleHtml(i.config.contentsCss));var l=r.baseHref?'<base href="'+r.baseHref+'" data-cke-temp="1" />':"";o&&(t=t.replace(/<!DOCTYPE[^>]*>/i,function(t){return i.docType=a=t,""}).replace(/<\?xml\s[^\?]*\?>/i,function(t){return i.xmlDeclaration=t,""})),t=i.dataProcessor.toHtml(t),o?(/<body[\s|>]/.test(t)||(t="<body>"+t),/<html[\s|>]/.test(t)||(t="<html>"+t+"</html>"),/<head[\s|>]/.test(t)?/<title[\s|>]/.test(t)||(t=t.replace(/<head[^>]*>/,"$&<title></title>")):t=t.replace(/<html[^>]*>/,"$&<head><title></title></head>"),l&&(t=t.replace(/<head[^>]*?>/,"$&"+l)),t=t.replace(/<\/head\s*>/,s+"$&"),t=a+t):t=r.docType+'<html dir="'+r.contentsLangDirection+'" lang="'+(r.contentsLanguage||i.langCode)+'"><head><title>'+this._.docTitle+"</title>"+l+s+"</head><body"+(r.bodyId?' id="'+r.bodyId+'"':"")+(r.bodyClass?' class="'+r.bodyClass+'"':"")+">"+t+"</body></html>",CKEDITOR.env.gecko&&(t=t.replace(/<body/,'<body contenteditable="true" '),2e4>CKEDITOR.env.version&&(t=t.replace(/<body[^>]*>/,"$&\x3c!-- cke-content-start --\x3e"))),r='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>",CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(r+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>'),l&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(r+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>'),t=t.replace(/(?=\s*<\/(:?head)>)/,r),this.clearCustomData(),this.clearListeners(),i.fire("contentDomUnload");var c=this.getDocument();try{c.write(t)}catch(u){setTimeout(function(){c.write(t)},0)}}},getData:function(t){if(t)return this.getHtml();t=this.editor;var e=t.config,n=e.fullPage,i=n&&t.docType,r=n&&t.xmlDeclaration,o=this.getDocument(),n=n?o.getDocumentElement().getOuterHtml():o.getBody().getHtml();return CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(n=n.replace(/<br>(?=\s*(:?$|<\/body>))/,"")),n=t.dataProcessor.toDataFormat(n),r&&(n=r+"\n"+n),i&&(n=i+"\n"+n),n},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:i.baseProto.focus.call(this)},detach:function(){var t,e=this.editor,n=e.document;try{t=e.window.getFrame()}catch(r){}i.baseProto.detach.call(this),this.clearCustomData(),n.getDocumentElement().clearCustomData(),CKEDITOR.tools.removeFunction(this._.frameLoadedHandler),t&&t.getParent()?(t.clearCustomData(),(e=t.removeCustomData("onResize"))&&e.removeListener(),t.remove()):CKEDITOR.warn("editor-destroy-iframe")}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.plugins="dialogui,dialog,a11yhelp,about,basicstyles,blockquote,clipboard,panel,floatpanel,menu,contextmenu,elementspath,indent,indentlist,list,enterkey,entities,popup,filebrowser,floatingspace,listblock,button,richcombo,format,horizontalrule,htmlwriter,image,fakeobjects,link,magicline,maximize,pastefromword,pastetext,removeformat,resize,menubutton,scayt,showborders,sourcearea,specialchar,stylescombo,tab,table,tabletools,toolbar,undo,wsc,wysiwygarea",CKEDITOR.config.skin="moono",function(){var t=function(t,e){var n=CKEDITOR.getUrl("plugins/"+e);t=t.split(",");for(var i=0;i<t.length;i++)CKEDITOR.skin.icons[t[i]]={path:n,offset:-t[++i],bgsize:t[++i]}};CKEDITOR.env.hidpi?t("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,creatediv,456,,docprops-rtl,480,,docprops,504,,embed,528,,embedsemantic,552,,find-rtl,576,,find,600,,replace,624,,flash,648,,button,672,,checkbox,696,,form,720,,hiddenfield,744,,imagebutton,768,,radio,792,,select-rtl,816,,select,840,,textarea-rtl,864,,textarea,888,,textfield-rtl,912,,textfield,936,,horizontalrule,960,,iframe,984,,image,1008,,indent-rtl,1032,,indent,1056,,outdent-rtl,1080,,outdent,1104,,justifyblock,1128,,justifycenter,1152,,justifyleft,1176,,justifyright,1200,,language,1224,,anchor-rtl,1248,,anchor,1272,,link,1296,,unlink,1320,,bulletedlist-rtl,1344,,bulletedlist,1368,,numberedlist-rtl,1392,,numberedlist,1416,,mathjax,1440,,maximize,1464,,newpage-rtl,1488,,newpage,1512,,pagebreak-rtl,1536,,pagebreak,1560,,pastefromword-rtl,1584,,pastefromword,1608,,pastetext-rtl,1632,,pastetext,1656,,placeholder,1680,,preview-rtl,1704,,preview,1728,,print,1752,,removeformat,1776,,save,1800,,scayt,1824,,selectall,1848,,showblocks-rtl,1872,,showblocks,1896,,smiley,1920,,source-rtl,1944,,source,1968,,sourcedialog-rtl,1992,,sourcedialog,2016,,specialchar,2040,,table,2064,,templates-rtl,2088,,templates,2112,,uicolor,2136,,redo-rtl,2160,,redo,2184,,undo-rtl,2208,,undo,2232,,simplebox,4512,auto,spellchecker,2280,","icons_hidpi.png"):t("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,creatediv,456,auto,docprops-rtl,480,auto,docprops,504,auto,embed,528,auto,embedsemantic,552,auto,find-rtl,576,auto,find,600,auto,replace,624,auto,flash,648,auto,button,672,auto,checkbox,696,auto,form,720,auto,hiddenfield,744,auto,imagebutton,768,auto,radio,792,auto,select-rtl,816,auto,select,840,auto,textarea-rtl,864,auto,textarea,888,auto,textfield-rtl,912,auto,textfield,936,auto,horizontalrule,960,auto,iframe,984,auto,image,1008,auto,indent-rtl,1032,auto,indent,1056,auto,outdent-rtl,1080,auto,outdent,1104,auto,justifyblock,1128,auto,justifycenter,1152,auto,justifyleft,1176,auto,justifyright,1200,auto,language,1224,auto,anchor-rtl,1248,auto,anchor,1272,auto,link,1296,auto,unlink,1320,auto,bulletedlist-rtl,1344,auto,bulletedlist,1368,auto,numberedlist-rtl,1392,auto,numberedlist,1416,auto,mathjax,1440,auto,maximize,1464,auto,newpage-rtl,1488,auto,newpage,1512,auto,pagebreak-rtl,1536,auto,pagebreak,1560,auto,pastefromword-rtl,1584,auto,pastefromword,1608,auto,pastetext-rtl,1632,auto,pastetext,1656,auto,placeholder,1680,auto,preview-rtl,1704,auto,preview,1728,auto,print,1752,auto,removeformat,1776,auto,save,1800,auto,scayt,1824,auto,selectall,1848,auto,showblocks-rtl,1872,auto,showblocks,1896,auto,smiley,1920,auto,source-rtl,1944,auto,source,1968,auto,sourcedialog-rtl,1992,auto,sourcedialog,2016,auto,specialchar,2040,auto,table,2064,auto,templates-rtl,2088,auto,templates,2112,auto,uicolor,2136,auto,redo-rtl,2160,auto,redo,2184,auto,undo-rtl,2208,auto,undo,2232,auto,simplebox,2256,auto,spellchecker,2280,auto","icons.png")}())}()},116:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},117:function(t,e,n){var i=n(94);t.exports=function(t){return Object(i(t))}},1174:function(t,e,n){var i,r;i=[t],(r=function(t){function e(t,e){function n(){}n.prototype=e.prototype,t.ra=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Ka=function(t,n,i){for(var r=Array(arguments.length-2),o=2;o<arguments.length;o++)r[o-2]=arguments[o];return e.prototype[n].apply(t,r)}}function n(t,e){null!=t&&this.append.apply(this,arguments)}function i(t){var e,n=[],i=0;for(e in t)n[i++]=t[e];return n}function r(t){if(ot!==ot)throw Error("SafeUrl is not meant to be built directly");this.qa=t}function o(){if(at!==at)throw Error("SafeStyle is not meant to be built directly");this.pa=""}function a(){if(st!==st)throw Error("SafeStyleSheet is not meant to be built directly");this.oa=""}function s(){var t=rt.trustedTypes&&rt.trustedTypes.emptyHTML||"";if(lt!==lt)throw Error("SafeHtml is not meant to be built directly");this.na=t}function l(t,e){switch(this.l=t,this.ea=!!e.aa,this.u=e.g,this.ja=e.type,this.fa=!1,this.u){case dt:case ht:case ft:case pt:case mt:case ut:case ct:this.fa=!0}this.v=e.defaultValue}function c(t,e){this.la=t,this.o={};for(var n=0;n<e.length;n++){var i=e[n];this.o[i.l]=i}}function u(t){return t=i(t.o),t.sort(function(t,e){return t.l-e.l}),t}function d(){this.h={},this.o=this.i().o,this.j=this.ia=null}function h(t,e){for(var n=u(t.i()),i=0;i<n.length;i++){var r=n[i],o=r.l;if(null!=e.h[o]){t.j&&delete t.j[r.l];var a=11==r.u||10==r.u;if(r.ea){r=g(e,o);for(var s=0;s<r.length;s++)E(t,o,a?r[s].clone():r[s])}else r=f(e,o),a?(a=f(t,o))?h(a,r):y(t,o,r.clone()):y(t,o,r)}}}function f(t,e){var n=t.h[e];if(null==n)return null;if(t.ia){if(!(e in t.j)){var i=t.ia,r=t.o[e];if(null!=n)if(r.ea){for(var o=[],a=0;a<n.length;a++)o[a]=i.ca(r,n[a]);n=o}else n=i.ca(r,n);return t.j[e]=n}return t.j[e]}return n}function p(t,e,n){var i=f(t,e);return t.o[e].ea?i[n||0]:i}function m(t,e){if(null!=t.h[e])var n=p(t,e);else t:{if(n=t.o[e],void 0===n.v){var i=n.ja;if(i===Boolean)n.v=!1;else if(i===Number)n.v=0;else{if(i!==String){n=new i;break t}n.v=n.fa?"0":""}}n=n.v}return n}function g(t,e){return f(t,e)||[]}function v(t,e){return t.o[e].ea?null!=t.h[e]?t.h[e].length:0:null!=t.h[e]?1:0}function y(t,e,n){t.h[e]=n,t.j&&(t.j[e]=n)}function E(t,e,n){t.h[e]||(t.h[e]=[]),t.h[e].push(n),t.j&&delete t.j[e]}function b(t,e){delete t.h[e],t.j&&delete t.j[e]}function _(t,e){var n,i=[];for(n in e)0!=n&&i.push(new l(n,e[n]));return new c(t,i)}function C(){}function T(){}function I(){}function D(){d.call(this)}function $(){d.call(this)}function O(){d.call(this)}function w(){d.call(this)}function R(){this.ma={}}function k(t){return"([0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]{1,"+t+"})"}function x(){return";ext="+k("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½…?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+k("20")+"#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*"+k("9")+"#?|[- ]+"+k("6")+"#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*"+k("15")+"#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*"+k("9")+"#?"}function S(t){return!(2>t.length)&&et(Pt,t)}function A(t){return et(xt,t)?M(t,Dt):M(t,It)}function N(t){var e=A(t.toString());t.clear(),t.append(e)}function P(t){return null!=t&&(1!=v(t,9)||-1!=g(t,9)[0])}function M(t,e){for(var i,r=new n,o=t.length,a=0;a<o;++a)i=t.charAt(a),null!=(i=e[i.toUpperCase()])&&r.append(i);return r.toString()}function K(t){return null!=t&&isNaN(t)&&t.toUpperCase()in Tt}function L(t,e,n){return"001"==n?U(t,""+e):U(t,n)}function F(t){if(null==t.h[2])return"";var e=""+p(t,2);return null!=t.h[4]&&p(t,4)&&0<m(t,8)?Array(m(t,8)+1).join("0")+e:e}function B(t,e,n,i){switch(e){case 0:return"+"+t+n+i;case 1:return"+"+t+" "+n+i;case 3:return"tel:+"+t+"-"+n+i;default:return n+i}}function j(t,e,n){if(!K(e))return null;n=V(U(t,e),n);try{if(null!=n.h[6])return t.parse(n.ka(),e)}catch(i){}return null}function V(t,e){switch(e){case 4:return p(t,5);case 3:return p(t,4);case 1:return p(t,3);case 0:case 2:return p(t,2);case 5:return p(t,6);case 6:return p(t,8);case 7:return p(t,7);case 8:return p(t,21);case 9:return p(t,25);case 10:return p(t,28);default:return p(t,1)}}function H(t,e){return z(t,p(e,1))?z(t,p(e,5))?4:z(t,p(e,4))?3:z(t,p(e,6))?5:z(t,p(e,8))?6:z(t,p(e,7))?7:z(t,p(e,21))?8:z(t,p(e,25))?9:z(t,p(e,28))?10:z(t,p(e,2))?p(e,18)||z(t,p(e,3))?2:0:!p(e,18)&&z(t,p(e,3))?1:-1:-1}function U(t,e){if(null==e)return null;e=e.toUpperCase();var n=t.ma[e];if(null==n){if(null==(n=Tt[e]))return null;n=(new I).$(O.i(),n),t.ma[e]=n}return n}function z(t,e){var n=t.length;return!(0<v(e,9)&&-1==g(e,9).indexOf(n))&&et(m(e,2),t)}function G(t,e){var n=q(t,e),i=e.s(),r=L(t,i,n);return null==r||"001"!=n&&i!=Y(t,n)?r=!1:(n=F(e),r=-1!=H(n,r)),r}function q(t,e){if(null==e)return null;var n=e.s();if(null==(n=Ct[n]))n=null;else if(1==n.length)n=n[0];else t:{for(var i,r=F(e),o=n.length,a=0;a<o;a++){i=n[a];var s=U(t,i);if(null!=s.h[23]){if(0==r.search(p(s,23))){n=i;break t}}else if(-1!=H(r,s)){n=i;break t}}n=null}return n}function W(t){return t=Ct[t],null==t?"ZZ":t[0]}function Y(t,e){var n=U(t,e);if(null==n)throw Error("Invalid region code: "+e);return n.s()}function X(t,e,n,i){var r=V(n,i),o=0==v(r,9)?g(p(n,1),9):g(r,9);if(r=g(r,10),2==i){if(!P(V(n,0)))return X(t,e,n,1);t=V(n,1),P(t)&&(o=o.concat(0==v(t,9)?g(p(n,1),9):g(t,9)),o.sort(),0==r.length?r=g(t,10):(r=r.concat(g(t,10)),r.sort()))}return-1==o[0]?5:(e=e.length,-1<r.indexOf(e)?4:(n=o[0],n==e?0:n>e?2:o[o.length-1]<e?3:-1<o.indexOf(e,1)?0:5))}function J(t,e,i,r,o,a){if(0==e.length)return 0;e=new n(e);var s;null!=i&&(s=p(i,11)),null==s&&(s="NonMatch");var l=e.toString();if(0==l.length)s=20;else if($t.test(l))l=l.replace($t,""),e.clear(),e.append(A(l)),s=1;else{if(l=new RegExp(s),N(e),s=e.toString(),0==s.search(l)){l=s.match(l)[0].length;var c=s.substring(l).match(Ot);c&&null!=c[1]&&0<c[1].length&&"0"==M(c[1],It)?s=!1:(e.clear(),e.append(s.substring(l)),s=!0)}else s=!1;s=s?5:20}if(o&&y(a,6,s),20!=s){if(2>=e.m.length)throw Error("Phone number too short after IDD");t:{if(t=e.toString(),0!=t.length&&"0"!=t.charAt(0))for(o=t.length,e=1;3>=e&&e<=o;++e)if((i=parseInt(t.substring(0,e),10))in Ct){r.append(t.substring(e)),r=i;break t}r=0}if(0!=r)return a.ba(r),r;throw Error("Invalid country calling code")}return null!=i&&(s=i.s(),l=""+s,c=e.toString(),0==c.lastIndexOf(l,0)&&(l=new n(c.substring(l.length)),c=p(i,1),c=new RegExp(m(c,2)),Z(l,i,null),l=l.toString(),!et(c,e.toString())&&et(c,l)||3==X(t,e.toString(),i,-1)))?(r.append(l),o&&y(a,6,10),a.ba(s),s):(a.ba(0),0)}function Z(t,e,n){var i=t.toString(),r=i.length,o=p(e,15);if(0!=r&&null!=o&&0!=o.length){var a=new RegExp("^(?:"+o+")");if(r=a.exec(i)){o=new RegExp(m(p(e,1),2));var s=et(o,i),l=r.length-1;e=p(e,16),null==e||0==e.length||null==r[l]||0==r[l].length?s&&!et(o,i.substring(r[0].length))||(null!=n&&0<l&&null!=r[l]&&n.append(r[1]),t.set(i.substring(r[0].length))):(i=i.replace(a,e),(!s||et(o,i))&&(null!=n&&0<l&&n.append(r[1]),t.set(i)))}}}function Q(t,e,n){if(!K(n)&&0<e.length&&"+"!=e.charAt(0))throw Error("Invalid country calling code");return tt(t,e,n,!0)}function tt(t,e,i,r){if(null==e)throw Error("The string supplied did not seem to be a phone number");if(250<e.length)throw Error("The string supplied is too long to be a phone number");var o=new n,a=e.indexOf(";phone-context=");if(-1===a)a=null;else if((a+=15)>=e.length)a="";else{var s=e.indexOf(";",a);a=-1!==s?e.substring(a,s):e.substring(a)}var l=a;if(null==l?s=!0:0===l.length?s=!1:(s=St.exec(l),l=At.exec(l),s=null!==s||null!==l),!s)throw Error("The string supplied did not seem to be a phone number");if(null!=a?("+"===a.charAt(0)&&o.append(a),a=e.indexOf("tel:"),o.append(e.substring(0<=a?a+4:0,e.indexOf(";phone-context=")))):(a=o.append,s=null!=e?e:"",l=s.search(wt),0<=l?(s=s.substring(l),s=s.replace(kt,""),0<=(l=s.search(Rt))&&(s=s.substring(0,l))):s="",a.call(o,s)),a=o.toString(),s=a.indexOf(";isub="),0<s&&(o.clear(),o.append(a.substring(0,s))),!S(o.toString()))throw Error("The string supplied did not seem to be a phone number");if(a=o.toString(),!(K(i)||null!=a&&0<a.length&&$t.test(a)))throw Error("Invalid country calling code");a=new w,r&&y(a,5,e);t:{if(e=o.toString(),0<=(s=e.search(Nt))&&S(e.substring(0,s))){l=e.match(Nt);for(var c=l.length,u=1;u<c;++u)if(null!=l[u]&&0<l[u].length){o.clear(),o.append(e.substring(0,s)),e=l[u];break t}}e=""}0<e.length&&y(a,3,e),s=U(t,i),e=new n,l=0,c=o.toString();try{l=J(t,c,s,e,r,a)}catch(d){if("Invalid country calling code"!=d.message||!$t.test(c))throw d;if(c=c.replace($t,""),0==(l=J(t,c,s,e,r,a)))throw d}if(0!=l?(o=W(l))!=i&&(s=L(t,l,o)):(N(o),e.append(o.toString()),null!=i?(l=s.s(),a.ba(l)):r&&b(a,6)),2>e.m.length)throw Error("The string supplied is too short to be a phone number");if(null!=s&&(i=new n,o=new n(e.toString()),Z(o,s,i),2!=(t=X(t,o.toString(),s,-1))&&4!=t&&5!=t&&(e=o,r&&0<i.toString().length&&y(a,7,i.toString()))),r=e.toString(),2>(t=r.length))throw Error("The string supplied is too short to be a phone number");if(17<t)throw Error("The string supplied is too long to be a phone number");if(1<r.length&&"0"==r.charAt(0)){for(y(a,4,!0),t=1;t<r.length-1&&"0"==r.charAt(t);)t++;1!=t&&y(a,8,t)}return y(a,2,parseInt(r,10)),a}function et(t,e){var n="string"==typeof t?e.match("^(?:"+t+")$"):e.match(t);return!(!n||n[0].length!=e.length)}function nt(t){return t=t.replace(/[^\d+]/g,""),t="+"===t.substr(0,1)?"+"+t.replace(/[^\d]/g,""):t.replace(/[^\d]/g,"")}var it={},rt=this||self;n.prototype.m="",n.prototype.set=function(t){this.m=""+t},n.prototype.append=function(t,e,n){if(this.m+=String(t),null!=e)for(var i=1;i<arguments.length;i++)this.m+=arguments[i];return this},n.prototype.clear=function(){this.m=""},n.prototype.toString=function(){return this.m},r.prototype.toString=function(){return this.qa.toString()};var ot={};new r("about:invalid#zClosurez"),new r("about:blank");var at={};o.prototype.toString=function(){return this.pa.toString()},new o;var st={};a.prototype.toString=function(){return this.oa.toString()},new a;var lt={};s.prototype.toString=function(){return this.na.toString()},new s;var ct=1,ut=2,dt=3,ht=4,ft=6,pt=16,mt=18;d.prototype.has=function(t){return null!=this.h[t.l]},d.prototype.get=function(t,e){return p(this,t.l,e)},d.prototype.set=function(t,e){y(this,t.l,e)},d.prototype.add=function(t,e){E(this,t.l,e)},d.prototype.clear=function(t){b(this,t.l)},d.prototype.clone=function(){var t=new this.constructor;return t!=this&&(t.h={},t.j&&(t.j={}),h(t,this)),t},C.prototype.$=function(t){throw new t.la,Error("Unimplemented")},C.prototype.ca=function(t,e){if(11==t.u||10==t.u)return e instanceof d?e:this.$(t.ja.prototype.i(),e);if(14==t.u){if("string"==typeof e&>.test(e)){var n=Number(e);if(0<n)return n}return e}if(!t.fa)return e;if((n=t.ja)===String){if("number"==typeof e)return String(e)}else if(n===Number&&"string"==typeof e&&("Infinity"===e||"-Infinity"===e||"NaN"===e||gt.test(e)))return Number(e);return e};var gt=/^-?[0-9]+$/;e(T,C),T.prototype.$=function(t,e){var n=new t.la;return n.ia=this,n.h=e,n.j={},n},e(I,T),I.prototype.sa=!1,I.prototype.ca=function(t,e){return 8==t.u?!!e:C.prototype.ca.apply(this,arguments)},I.prototype.$=function(t,e){var n=e;if(this.sa){n=[];for(var i in e)n[parseInt(i,10)+1]=e[i]}return I.ra.$.call(this,t,n)},e(D,d);var vt=null;e($,d);var yt=null;$.prototype.ka=function(){return p(this,6)},e(O,d);var Et=null;O.prototype.s=function(){return m(this,10)},O.prototype.ba=function(t){y(this,10,t)},D.prototype.i=function(){var t=vt;return t||(vt=t=_(D,{0:{name:"NumberFormat",ga:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,g:9,type:String},2:{name:"format",required:!0,g:9,type:String},3:{name:"leading_digits_pattern",aa:!0,g:9,type:String},4:{name:"national_prefix_formatting_rule",g:9,type:String},6:{name:"national_prefix_optional_when_formatting",g:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",g:9,type:String}})),t},D.i=D.prototype.i,$.prototype.i=function(){var t=yt;return t||(yt=t=_($,{0:{name:"PhoneNumberDesc",ga:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",g:9,type:String},9:{name:"possible_length",aa:!0,g:5,type:Number},10:{name:"possible_length_local_only",aa:!0,g:5,type:Number},6:{name:"example_number",g:9,type:String}})),t},$.i=$.prototype.i,O.prototype.i=function(){var t=Et;return t||(Et=t=_(O,{0:{name:"PhoneMetadata",ga:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",g:11,type:$},2:{name:"fixed_line",g:11,type:$},3:{name:"mobile",g:11,type:$},4:{name:"toll_free",g:11,type:$},5:{name:"premium_rate",g:11,type:$},6:{name:"shared_cost",g:11,type:$},7:{name:"personal_number",g:11,type:$},8:{name:"voip",g:11,type:$},21:{name:"pager",g:11,type:$},25:{name:"uan",g:11,type:$},27:{name:"emergency",g:11,type:$},28:{name:"voicemail",g:11,type:$},29:{name:"short_code",g:11,type:$},30:{name:"standard_rate",g:11,type:$},31:{name:"carrier_specific",g:11,type:$},33:{name:"sms_services",g:11,type:$},24:{name:"no_international_dialling",g:11,type:$},9:{name:"id",required:!0,g:9,type:String},10:{name:"country_code",g:5,type:Number},11:{name:"international_prefix",g:9,type:String},17:{name:"preferred_international_prefix",g:9,type:String},12:{name:"national_prefix",g:9,type:String},13:{name:"preferred_extn_prefix",g:9,type:String},15:{name:"national_prefix_for_parsing",g:9,type:String},16:{name:"national_prefix_transform_rule",g:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",g:8,defaultValue:!1,type:Boolean},19:{name:"number_format",aa:!0,g:11,type:D},20:{name:"intl_number_format",aa:!0,g:11,type:D},22:{name:"main_country_for_code",g:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",g:9,type:String}})),t},O.i=O.prototype.i,e(w,d);var bt=null;w.prototype.s=function(){return m(this,1)},w.prototype.ba=function(t){y(this,1,t)},w.prototype.getExtension=function(){return p(this,3)},w.prototype.hasExtension=function(){return null!=this.h[3]};var _t={Ha:0,ya:1,xa:5,wa:10,va:20};w.prototype.i=function(){var t=bt;return t||(bt=t=_(w,{0:{name:"PhoneNumber",ga:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,g:5,type:Number},2:{name:"national_number",required:!0,g:4,type:Number},3:{name:"extension",g:9,type:String},4:{name:"italian_leading_zero",g:8,type:Boolean},8:{name:"number_of_leading_zeros",g:5,defaultValue:1,type:Number},5:{name:"raw_input",g:9,type:String},6:{name:"country_code_source",g:14,defaultValue:0,type:_t},7:{name:"preferred_domestic_carrier_code",g:9,type:String}})),t},w.ctor=w,w.ctor.i=w.prototype.i;var Ct={1:"US AG AI AS BB BM BS CA DM DO GD GU JM KN KY LC MP MS PR SX TC TT VC VG VI".split(" "),7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},Tt={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["1"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],[,"(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"([457]\\d{6})$|1","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"([2457]\\d{6})$|1","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],[,"(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-59]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7,8}",,,,"8001234567"],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","0",,,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1"]],[[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",,1],[,"(\\d)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|7[26])|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"([267]\\d{6})$|1","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",,,,,,,[4,5,6,7,8,9,10,11,12,13],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["14"]],[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{6})","$1",["[18]"]],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[[,"(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],[,"(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],[,"(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",,,,,,,[5,6,7,8,9,10,12]],[,,"(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",,,,"212345678",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"(183[12])|0",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["130"]]],[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}",,,,,,,[6,7,8,10,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}",,,,"123123456",,,,[7]],[,,"36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-9]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"([2-9]\\d{6})$|1","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",,,,,,,[6,7,8,9,10]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],[,"(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],[,"(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[04-7]|44|6[4-69]|7[0579])|90\\d\\d)\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[1-35-7]|5[0-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9,12],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",,,,"43012345",,,[8,9]],[,,"(?:00800\\d\\d|800)\\d{5}",,,,"80012345",,,[8,12]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[[,"(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}",,,,"17001234"],[,,"(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"80\\d{6}",,,,"80123456"],[,,"(?:87|9[014578])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"(?:22|31)\\d{6}",,,,"22201234"],[,,"(?:29|[67][125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"[24-689]\\d{7}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}",,,,"20211234"],[,,"(?:4[0-356]|[56]\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39]|92)\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"([2-9]\\d{6})$|1","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"30(?:0\\d{5,7}|3\\d{7})|40(?:0\\d|20)\\d{4}|800\\d{6,7}",,,,,,,[8,9,10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"([3-8]\\d{6})$|1","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"(?:321|7(?:[1-7]\\d|8[0-4]))\\d{5}",,,,"71123456",,,[8]],[,,"(?:0800|800\\d)\\d{6}",,,,"0800012345",,,[10]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|2[0-7])|2[0-7]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],[,"(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],[,"(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}|3\\d{6}",,,,,,,[7,10]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,[10]],[,,"900[2-9]\\d{6}",,,,"9002123456",,,[10]],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678",,,[10]],[,,"600[2-9]\\d{6}",,,,"6002012345",,,[10]],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"310\\d{4}",,,,"3101234",,,[7]],,,[,,,,,,,,,[-1]]],CC:[,[,,"1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10,12]],[,,"8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",,,,"891621234",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"([59]\\d{7})$|0","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[024-7]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80[0-2]\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02]\\d{9}",,,,,,,[10]],[,,"2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}",,,,"2123456789"],[,,"0[157]\\d{8}",,,,"0123456789"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[03467]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[03467]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[[,"(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"[26]\\d{8}|88\\d{6,7}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[25-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6,7}",,,,"88012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",,,,,,,[7,8,9,10,11,12],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"(1(?:[12]\\d|79)\\d\\d)|0",,"00",,[[,"(\\d{5,6})","$1",["10|96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1(?:0(?:[0-8]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])|6)|[3-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[0-8]|9[0-47-9])|6)|[3-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|26|3(?:[0268]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|8[1-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23][0-8])|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:33|85[23]9)[0-46-9]|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","1(?:0[02-8]|[1-9])|2(?:[0-57-9][0-8]|6)|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:10|2[0-57-9])9[0-47-9]|(?:101|58|85[23]10)[1-9]|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",,,,,,,[10,11],[7]],[,,"601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60[124-8][2-9]\\d{6}",,,,"6012345678",,,[10],[7]],[,,"3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0(4(?:[14]4|56)|[579])?",,,,[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"5\\d{7}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],[,"(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["5"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:36|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[3-5]|4[356])\\d{5}",,,,"3401234"],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",,,,,,,[6,7,8,9,10,12]],[,,"8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",,,,"891641234",,,[9],[8]],[,,"4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"([59]\\d{7})$|0","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9(?:10|[4-79]\\d)\\d{5}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",,,,,,,[4,5,6,7,8,9,10,11,12,13,14,15],[2,3]],[,,"32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],[,"(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],[,"(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],[,"(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],[,"(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],[,"(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],[,"(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],[,"(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],[,"(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],[,"(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"([2-7]\\d{6})$|1","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8001|8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],[,"(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[189]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]9"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-579]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[578]|2[69]|39|4[5-7]|5[0-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|22|77|86|99)|9\\d\\d)\\d{6}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"[2-9]\\d{5}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d|9[16])\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"59[1-9]\\d{6}|(?:[1-3]\\d|4[1-9]|5[0-8])\\d{7}",,,,"123456789"],[,,"(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|4[02]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",,,[[,"(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"([2-9]\\d{6})$|1","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:00(?:0\\d|44|5[05]|77|88|99)|1(?:1(?:00|[124]\\d|3[01])|4\\d\\d)|(?:44|68)\\d\\d|5(?:[0157-9]\\d\\d|200)|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:070|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"[56]94\\d{6}|(?:80|9\\d)\\d{7}",,,,,,,[9]],[,,"594(?:[02-49]\\d|[16][0-3]|5[6-9]|80)\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-8])\\d{4}",,,,"694201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:396|76\\d)\\d|476[0-5])\\d{4}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"([25-9]\\d{5})$|0","1481$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"(?:[25]\\d|60)\\d{6}",,,,,,,[8]],[,,"2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}",,,,"20012345"],[,,"5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d|70)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-489])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[0-356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55\\d)\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",,,,,,,[10,11,12]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789",,,[10]],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678",,,[10]],[,,"800\\d{7,9}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567",,,[10]],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567",,,[10]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],[,"(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],[,"(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123",,,[10]],,,[,,,,,,,,,[-1]]],GT:[,[,,"(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"[3-5]\\d{7}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"([3-9]\\d{6})$|1","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}",,,,"2201234"],[,,"(?:6\\d\\d|70[0-35-7])\\d{4}",,,,"6091234"],[,,"(?:289|862)\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:[45][0-8]|6[01]|9\\d))|58(?:0[1-9]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:4(?:44[5-9]|6(?:0[0-7]|1[0-6]|4[0-57-9]|6[0-4]|7[0-8]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|9(?:29[013-9]|59[0-4]))\\d{4}|(?:4(?:4[01]|6[2358])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1-356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|77|9[67])))\\d{4}|98\\d{6}",,,,"921234567",,,[8,9]],[,,"80[01]\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"(?:[2-489]\\d|55)\\d{6}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"(?:[34]\\d|55)\\d{6}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|680[29])\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|680[29])\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",,,,,,,[7,8,9,10,11,12,13],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],[,"(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],[,"(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],[,"(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],[,"(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],[,"(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],[,"(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],[,"(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],[,"(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"55410\\d{4}|5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"7(?:38(?:0\\d|5[09]|88)|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\d{4})(\\d{3})","$1-$2",["125"]],[,"(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],[,"(\\d{4})(\\d{6})","$1-$2",["159"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],[,"(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624(?:230|[5-8]\\d\\d)\\d{3}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"([25-8]\\d{5})$|0","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",,1],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",,1],[,"(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",,1],[,"(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:[12]\\d|88)|9(?:0[0-3]|[19]\\d|21|69|77|8[7-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IR",98,"00","0",,,"0",,,,[[,"(\\d{4,5})","$1",["96"],"0$1"],[,"(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}",,,,"6111234"],[,,"80[0-8]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",,,,,,,[6,7,8,9,10,11,12]],[,,"0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[[,"(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],[,"(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],[,"(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],[,"(\\d{4})(\\d{4})","$1 $2",["894"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],[,"(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"([0-24-8]\\d{5})$|0","1534$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],[,"(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",,,,,,,[8,9,10,11,12,13,14,15,16,17]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"0",,,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],[,"(\\d{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007","0077"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],[,"(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51|63)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9]|636)|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9]|636[457-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[27-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9])|5(?:2|3[045]|4[0-369]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|49|51|6(?:[0-24]|36|5[0-3589]|72|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:49|55|83)[29]|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-6]|1[0-5]|2[014]|30)|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[2-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|[235-9]\\d{8}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],[,"(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"([2-7]\\d{6})$|1","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",,,,,,,[5,6,8,9,10,11,12,13,14],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"18\\d{5}|(?:[2569]\\d|41)\\d{6}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|66)|222|3[36]3|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[245]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"([2-9]\\d{6})$|1","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",,,,,,,[10,14],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,[10],[5,6,7]],[,,"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",,,,"7710009998",,,[10]],[,,"8(?:00|108\\d{3})\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,"751\\d{7}",,,,"7511234567",,,[10]],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}",,,,,,,[10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[2359]\\d|7[6-8]|88)|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[27-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}",,,,"1123456"],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"([2-8]\\d{6})$|1","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:(?:4[5-9]|5[0-4])\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"8002[28]\\d\\d|80(?:05\\d|9)\\d{4}",,,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"(1001)|0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[0-4])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",,,,,,,[7,8,9]],[,,"2\\d{7}",,,,"21234567",,,[8]],[,,"(?:(?:(?:22|33)0|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",,1],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",,1],[,"(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",,1],[,"(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",,,,,,,[4,5,6,7,8,9,10,11]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"23(?:23[0-57-9]|33[0238])\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[024-9]|3[0-24-9]))\\d{4}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],[,"(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],[,"(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],[,"(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"(?:[3489]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"(?:800|90\\d)\\d{5}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["87"]],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],[,"(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"8[07]0\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"590\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:(?:395|76[018])\\d|475[0-5])\\d{4}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-47-9]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"([24-9]\\d{6})$|0","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|45[78]|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[356])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5\\d{7}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[2-49])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",,,,,,,[6,7,8,9,10],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[29]|62|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|[26]2|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:(?:3\\d|8[01459])\\d|4[67]0)))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:0[1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],[,"(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],[,"(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[5-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|(?:(?:[12](?:1|27)|5[368])\\d\\d|7(?:0(?:[0-5]\\d|7[078]|80)|128))\\d{4}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|92[039])\\d{5}|(?:5[05]|6[069]|8[015689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[25-9]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],[,"(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],[,"(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],[,"(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"0800\\d{3}|(?:28|[68]\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345",,,[8]],[,,"6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",,,,"66123456",,,[8]],[,,"0800\\d{3}",,,,"0800501",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"([2-9]\\d{6})$|1","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"596\\d{6}|(?:69|80|9\\d)\\d{7}",,,,,,,[9]],[,,"596(?:[03-7]\\d|10|2[7-9]|8[0-39]|9[4-9])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",,,,"696201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:397[0-2]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"([34]\\d{6})$|1","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800(?:02|[3467]\\d)\\d{3}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",,,,,,,[7,8,10]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-8])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123",,,[7,8]],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-2]|3[013]))\\d{5}",,,,"52512345",,,[8]],[,,"802\\d{7}|80[0-2]\\d{4}",,,,"8001234",,,[7,10]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[57]"]],[,"(\\d{5})(\\d{5})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",,,,"6701234",,,[7]],[,,"(?:46[46]|[79]\\d\\d)\\d{4}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[34679]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4(?:0[01]|50)\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",,,,,,,[7,9]],[,,"(?:1[2-9]|2[12]\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|[89][89])\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"657[12]\\d{6}|(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"657[12]\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-6]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],[,"(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"(?:050|[2-57-9]\\d\\d)\\d{3}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,"050\\d{3}",,,,"050012"],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[047]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|819[01])\\d{6}|(?:70[13-689]|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-356]))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],[,"(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",,,,,,,[5,6,7,8,9,10,11]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"(?:6[1-58]|970\\d)\\d{7}",,,,"612345678",,,[9,11]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],[[,"(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],[,"(\\d)(\\d{8})","$1 $2",["6"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],NP:[,[,,"(?:1\\d|9)\\d{9}|[1-9]\\d{7}",,,,,,,[8,10,11],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[024-6]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,"1(?:66001|800\\d\\d)\\d{5}",,,,"16600101234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]],[,"(\\d{4})(\\d{2})(\\d{5})","$1-$2-$3",["1"]]],[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[47]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"888[4-9]\\d{3}",,,,"8884012",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2[0-27-9]\\d{7,8}|2(?:1\\d|75)\\d{5}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"0$1"],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[59]|80"],"0$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7|86"],"0$1"]],,[,,"[28]6\\d{6,7}",,,,"26123456",,,[8,9]],,,[,,,,,,,,,[-1]],[,,"8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",,,,,,,[7,8,9]],[,,"2[1-6]\\d{6}",,,,"23123456",,,[8]],[,,"1505\\d{4}|(?:7(?:[1289]\\d|69|7[0-5])|9(?:0[1-9]|[1-9]\\d))\\d{5}",,,,"92123456",,,[8]],[,,"8007\\d{4,5}|(?:500|800[05])\\d{4}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10,11]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4,5}|(?:00800|800\\d)\\d{6}",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[68]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"00|19(?:1[124]|77|90)00","0"," Anexo ",,"0",,"00",,[[,"(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],[,"(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],[,"(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"4\\d{5}(?:\\d{2})?|8\\d{7,8}",,,,,,,[6,8,9]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",,,,"3123456",,,[7]],[,,"(?:7\\d|8[128])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-57]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",,,,"232345678",,,[6,8,9,10],[4,5,7]],[,,"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],[,"(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],[,"(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",,,,,,,[8,9,10,11,12],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[0-24]\\d|3[0-79]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}(?:\\d{3})?",,,,"80012345",,,[8,11]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["1"]],[,"(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],[,"(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],[,"(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],[,"(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"21(?:1(?:[145]\\d|3[1-5])|2[0-4]\\d)\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\d{5})","$1",["19"]],[,"(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"[45]\\d{5}|(?:708|80\\d)\\d{6}",,,,,,,[6,9]],[,,"(?:4[1-35-7]|5[01])\\d{4}",,,,"430123",,,[6]],[,,"(?:4[02-4]|5[056]|708[45][0-5])\\d{4}",,,,"551234"],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6(?:[06]92(?:30|9\\d)|[35]92(?:3[03]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],,[,,"6222\\d{5}",,,,"622212345"],,,[,,,,,,,,,[-1]],[,,"70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}",,,,"707123456"],,,[,,"600\\d{6}|6[06]9233\\d{3}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],[,"(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],[,"(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],[,"(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",,,,,,,[7,8,9,11]],[,,"4(?:1111|2022)\\d{3}|4(?:[04]\\d\\d|14[0-6]|999)\\d{4}",,,,"44123456",,,[8]],[,,"[35-7]\\d{7}",,,,"33123456",,,[8]],[,,"800\\d{4}|(?:0080[01]|800)\\d{6}",,,,"8001234",,,[7,9,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],,[,,"2[16]\\d{5}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"(?:26|[689]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|3(?:0\\d|1[0-4]))\\d{4}",,,,"262161234"],[,,"69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]|9\\d))\\d{4}",,,,"939901234"],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-29])\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],[,"(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",,,,,,,[6,7,8,9,10,11,12],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],[,"(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"8\\d{13}|[347-9]\\d{9}",,,,,,,[10,14],[7]],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,[10],[7]],[,,"9\\d{9}",,,,"9123456789",,,[10]],[,,"8(?:0[04]|108\\d{3})\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",,1],[,"(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],[[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",,1],[,"(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",,1],[,"(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[2389]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"579[01]\\d{5}|5(?:[013-689]\\d|7[0-35-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["9"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"800\\d{4}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[125-8]\\d{5}",,,,"2510123"],[,,"800[08]\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",,,,,,,[6,7,8,9,10,12]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44|9)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2,3})(\\d{2})","$1 $2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"8(?:07[01]|95[0-2])\\d{4}|(?:8(?:0[1-6]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-7]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-7]|[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],[,"(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],[,"(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d{4})(\\d{3})","$1 $2",["909","9090"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[[,"(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[237-9]\\d|66)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[0-5]|66|7[2-9]|8[08]|9[09])\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d|93)\\d{7}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}",,,,"301012345"],[,,"7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"(?:(?:15|(?:3[59]|4[89]|6\\d|7[79]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4})","$1 $2",["8[125]"]],[,"(\\d{6})","$1",["[134]"]],[,"(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],[,"(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],[,"(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[1257-9])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}",,,,"21234567",,,[8]],[,,"[67]\\d{7}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"(5\\d{6})$|1","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9[1-689]\\d{7}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"([2-479]\\d{6})$|1","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[0235689]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[019]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",,,,,,,[8,9,10,13]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"(?:001800\\d|1800)\\d{6}",,,,"1800123456",,,[10,13]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"[0-57-9]\\d{8}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"(?:0[348]0|41[18]|81[1-9])\\d{6}|(?:0[0-27]|1[017]|2[02]|[34]0|5[05]|7[0178]|8[078]|9\\d)\\d{7}",,,,"917123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810",,,,,,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7"]],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],[,"(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],[,"(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"55[0-37-9]\\d{4}",,,,"5510123",,,[7]],"TO",676,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|616)","5(?:[0-59]|6161)"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",,1],[,"(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",,1]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"(?:444|811\\d{3})\\d{4}",,,,,,,[7,10]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"([2-46-8]\\d{6})$|1","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],[,"(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[25-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[125-9]|7[13-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["5"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:39|50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"726[01]\\d{5}|7(?:[01578]\\d|20|36|[46][0-4]|9[89])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],[,"(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}|3\\d{6}",,,,,,,[10],[7]],[,,"5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{4})","$1-$2",["[24-9]|3(?:[02-9]|1[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",,,,,,,[7,8,10,13]],[,,"(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"(?:(?:0004|4)\\d{5}|80[05])\\d{4}|405\\d{4}",,,,"8001234",,,[7,10,13]],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[124]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["4"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"(?:33|[5-79]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:33|50|88|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",,,,,,,[6,7,8,9,10,11,12]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[6,9]],[,,"(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"78451[0-2]\\d{4}",,,,"7845101234",,,,[7]],"VC",1,"011","1",,,"([2-7]\\d{6})$|1","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"([2-578]\\d{6})$|1","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"([2-9]\\d{6})$|1","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:0[13]|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"0$1",,1],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",,1],[,"(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:[58]\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,"81[18]\\d\\d",,,,"81123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:0[1-9]|1[01])\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",,,,,,,[6,9]],[,,"72\\d{4}",,,,"721234",,,[6]],[,,"(?:72|8[23])\\d{4}",,,,"821234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234",,,[6]]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[01378]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:39|47)8[01]\\d{4}",,,,"939801234"],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"269|63|9(?:39|47)8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"800\\d{6}|(?:21|63|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[5-79]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"63\\d{7}",,,,"630123456"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",,,,,,,[5,6,7,8,9,10],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[178]\\d|3[1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],[,"(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],[,"(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],[,"(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],[,"(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"(?:00|[1-9]\\d)\\d{6}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:00|[1-9]\\d)\\d{6}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["\\d"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"7\\d{11}|[35-7]\\d{8}",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,"(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"[0-36-9]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",,,,"3421234",,,[7,8,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["16|342"]],[,"(\\d{2})(\\d{6})","$1 $2",["49"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"(?:[1-4]\\d|51)\\d{6,10}",,,,,,,[8,9,10,11,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]};R.ha=void 0,R.da=function(){return R.ha?R.ha:R.ha=new R};var It={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","1":"1","ï¼’":"2","3":"3","ï¼”":"4","5":"5","ï¼–":"6","ï¼—":"7","8":"8","ï¼™":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"},Dt={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","1":"1","ï¼’":"2","3":"3","ï¼”":"4","5":"5","ï¼–":"6","ï¼—":"7","8":"8","ï¼™":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},$t=RegExp("^[++]+"),Ot=RegExp("([0-9ï¼-ï¼™Ù -Ù©Û°-Û¹])"),wt=RegExp("[++0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]"),Rt=/[\\\/] *x/,kt=RegExp("[^0-9ï¼-ï¼™Ù -Ù©Û°-Û¹A-Za-z#]+$"),xt=/(?:.*?[A-Za-z]){3}.*/,St=RegExp("^\\+([0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]|[\\-\\.\\(\\)]?)*[0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]([0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]|[\\-\\.\\(\\)]?)*$"),At=RegExp("^([A-Za-z0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]+((\\-)*[A-Za-z0-9ï¼-ï¼™Ù -Ù©Û°-Û¹])*\\.)*[A-Za-z]+((\\-)*[A-Za-z0-9ï¼-ï¼™Ù -Ù©Û°-Û¹])*\\.?$"),Nt=new RegExp("(?:"+x()+")$","i"),Pt=new RegExp("^[0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]{2}$|^[++]*(?:[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~*]*[0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]){3,}[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~*A-Za-z0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]*(?:"+x()+")?$","i"),Mt=/(\$\d)/,Kt={ta:0,za:1,ua:2,Ea:3,Ca:4,Da:5,Ja:6,Ba:7,Aa:8,Fa:9,Ia:10,Ga:-1};R.prototype.format=function(t,e){if(0==p(t,2)&&null!=t.h[5]){var n=m(t,5);if(0<n.length)return n}n=t.s();var i=F(t);if(0==e)return B(n,0,i,"");if(!(n in Ct))return i;var r=L(this,n,W(n)),o=t.hasExtension()&&0!=t.getExtension().length?3==e?";ext="+t.getExtension():null!=r.h[13]?p(r,13)+m(t,3):" ext. "+m(t,3):"";t:{r=0==g(r,20).length||2==e?g(r,19):g(r,20);for(var a,s=r.length,l=0;l<s;++l){a=r[l];var c=v(a,3);if((0==c||0==i.search(p(a,3,c-1)))&&(c=new RegExp(p(a,1)),et(c,i))){r=a;break t}}r=null}return null!=r&&(s=r,r=m(s,2),a=new RegExp(p(s,1)),m(s,5),s=m(s,4),i=2==e&&null!=s&&0<s.length?i.replace(a,r.replace(Mt,s)):i.replace(a,r),3==e&&(i=i.replace(RegExp("^[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~]+"),""),i=i.replace(RegExp("[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~]+","g"),"-"))),B(n,e,i,o)},R.prototype.ka=function(){return j(this,void 0,0)},R.prototype.parse=function(t,e){return tt(this,t,e,!1)},y(new O,11,"NA");var Lt={countryForE164Number:function(t){try{var e=nt(t),n=R.da();return q(n,Q(n,e)).toString()}catch(i){return""}},isValidNumber:function(t,e,n){try{var i=nt(t),r=R.da(),o=Q(r,i,e);if("string"==typeof n){var a,s=n.toUpperCase();if(a=G(r,o)){var l=q(r,o),c=L(r,o.s(),l);if(null==c)var u=-1;else{u=H(F(o),c)}a=u===Kt[s]}return a}return G(r,o)}catch(d){return!1}},exampleMobileNumber:function(t){try{return""+p(j(R.da(),t,1),2)}catch(e){return""}}};Lt.cleanPhone=nt,Lt.PhoneNumberUtil=R,Lt.getUtilInstance=function(){var t=R.da();return{parseAndKeepRawInput:function(e,n){return Q(t,e,n)},getCountryCodeForRegion:function(e){return K(e)?Y(t,e):0},format:function(e,n){return t.format(e,n)},getRegionCodeForCountryCode:function(t){return W(t)},parse:function(e,n){return t.parse(e,n)}}},Lt.PhoneNumberFormat={},Lt.PhoneNumberFormat.E164=0,Lt.PhoneNumberFormat.INTERNATIONAL=1,Lt.PhoneNumberFormat.NATIONAL=2,Lt.PhoneNumberFormat.RFC3966=3,it.phoneLib=Lt,t.exports=it.phoneLib}.apply(e,i))!==undefined&&(t.exports=r)},1203:function(t,e,n){!function(e,n){t.exports=n()}(0,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports="ngFileSaver",angular.module("ngFileSaver",[]).factory("FileSaver",["Blob","SaveAs","FileSaverUtils",n(1)]).factory("FileSaverUtils",[n(2)]).factory("Blob",["$window",n(3)]).factory("SaveAs",[n(5)])},function(t,e){"use strict";t.exports=function(t,e,n){function i(t,i,r){try{e(t,i,r)}catch(o){n.handleErrors(o.message)}}return{saveAs:function(t,e,r){return n.isBlobInstance(t)||n.handleErrors("Data argument should be a blob instance"),n.isString(e)||n.handleErrors("Filename argument should be a string"),i(t,e,r)}}}},function(t,e){"use strict";t.exports=function(){return{handleErrors:function(t){throw new Error(t)},isString:function(t){return"string"==typeof t||t instanceof String},isUndefined:function(t){return void 0===t},isBlobInstance:function(t){return t instanceof Blob}}}},function(t,e,n){"use strict";n(4),t.exports=function(t){return t.Blob}},function(t,e){/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ !function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(i){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},i=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},r=n.prototype,o=i.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=t.URL||t.webkitURL||t,d=u.createObjectURL,h=u.revokeObjectURL,f=u,p=t.btoa,m=t.atob,g=t.ArrayBuffer,v=t.Uint8Array,y=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(i.fake=o.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(f=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(y),n.origin=e&&e[1])),n}),f.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof i?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):d?d.call(u,t):void 0},f.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&h&&h.call(u,t)},r.append=function(t){var n=this.data;if(v&&(t instanceof g||t instanceof v)){for(var r="",o=new v(t),l=0,c=o.length;l<c;l++)r+=String.fromCharCode(o[l]);n.push(r)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(t))}else t instanceof i?"base64"===t.encoding&&m?n.push(m(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},r.getBlob=function(t){return arguments.length||(t=null),new i(this.data.join(""),t,"raw")},r.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var r=arguments.length;return r<3&&(n=null),new i(this.data.slice(t,r>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var i=n?n.type||"":"",r=new e;if(t)for(var o=0,a=t.length;o<a;o++)Uint8Array&&t[o]instanceof Uint8Array?r.append(t[o].buffer):r.append(t[o]);var s=r.getBlob(i);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this)},function(t,e,n){"use strict";t.exports=function(){return n(6).saveAs||function(){}}},function(t,e,n){var i,r=r||function(t){"use strict";if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},i=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in i,o=function(t){var e=new MouseEvent("click");t.dispatchEvent(e)},a=/constructor/i.test(t.HTMLElement)||t.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},c=function(t){var e=function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()};setTimeout(e,4e4)},u=function(t,e,n){e=[].concat(e);for(var i=e.length;i--;){var r=t["on"+e[i]];if("function"==typeof r)try{r.call(t,n||t)}catch(o){l(o)}}},d=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},h=function(e,l,h){h||(e=d(e));var f,p=this,m=e.type,g="application/octet-stream"===m,v=function(){u(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,r)return f=n().createObjectURL(e),void setTimeout(function(){i.href=f,i.download=l,o(i),v(),c(f),p.readyState=p.DONE});!function(){if((s||g&&a)&&t.FileReader){var i=new FileReader;return i.onloadend=function(){var e=s?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=undefined,p.readyState=p.DONE,v()},i.readAsDataURL(e),void(p.readyState=p.INIT)}if(f||(f=n().createObjectURL(e)),g)t.location.href=f;else{t.open(f,"_blank")||(t.location.href=f)}p.readyState=p.DONE,v(),c(f)}()},f=h.prototype,p=function(t,e,n){return new h(t,e||t.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=d(t)),navigator.msSaveOrOpenBlob(t,e)}:(f.abort=function(){},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,p)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports?t.exports.saveAs=r:null!==n(7)&&null!==n(8)&&(i=function(){return r}.call(e,n,e,t))!==undefined&&(t.exports=i)},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){(function(e){t.exports=e}).call(e,{})}])})},137:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},15:function(t,e){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},1622:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__;"undefined"!=typeof navigator&&function(t,e){(__WEBPACK_AMD_DEFINE_RESULT__=function(){return e(t)}.call(exports,__webpack_require__,exports,module))!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}(window||{},function(window){"use strict";function ProjectInterface(){return{}}function roundValues(t){bm_rnd=t?Math.round:function(t){return t}}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin=t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility=t.style.webkitBackfaceVisibility="visible",t.style.transformStyle=t.style.webkitTransformStyle=t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,n,i){this.type=t,this.currentTime=e,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,n,i){this.type=t,this.currentLoop=n,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,n){this.type=t,this.firstFrame=e,this.totalFrames=n}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e,this.currentTime=currentTime}function HSVtoRGB(t,e,n){var i,r,o,a,s,l,c,u;switch(a=Math.floor(6*t),s=6*t-a,l=n*(1-e),c=n*(1-s*e),u=n*(1-(1-s)*e),a%6){case 0:i=n,r=u,o=l;break;case 1:i=c,r=n,o=l;break;case 2:i=l,r=n,o=u;break;case 3:i=l,r=c,o=n;break;case 4:i=u,r=l,o=n;break;case 5:i=n,r=l,o=c}return[i,r,o]}function RGBtoHSV(t,e,n){var i,r=Math.max(t,e,n),o=Math.min(t,e,n),a=r-o,s=0===r?0:a/r,l=r/255;switch(r){case o:i=0;break;case t:i=e-n+a*(e<n?6:0),i/=6*a;break;case e:i=n-t+2*a,i/=6*a;break;case n:i=t-e+4*a,i/=6*a}return[i,s,l]}function addSaturationToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[1]+=e,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[2]+=e,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(t,e){var n=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return n[0]+=e/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}function BaseEvent(){}function createSizedArray(t){return Array.apply(null,{length:t})}function createNS(t){return document.createElementNS(svgNS,t)}function createTag(t){return document.createElement(t)}function DynamicPropertyContainer(){}function extendPrototype(t,e){var n,i,r=t.length;for(n=0;n<r;n+=1){i=t[n].prototype;for(var o in i)i.hasOwnProperty(o)&&(e.prototype[o]=i[o])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}function bezFunction(){function t(t,e,n,i,r,o){var a=t*i+e*r+n*o-r*i-o*t-n*e;return a>-.001&&a<.001}function e(e,n,i,r,o,a,s,l,c){if(0===i&&0===a&&0===c)return t(e,n,r,o,s,l);var u,d=Math.sqrt(Math.pow(r-e,2)+Math.pow(o-n,2)+Math.pow(a-i,2)),h=Math.sqrt(Math.pow(s-e,2)+Math.pow(l-n,2)+Math.pow(c-i,2)),f=Math.sqrt(Math.pow(s-r,2)+Math.pow(l-o,2)+Math.pow(c-a,2));return(u=d>h?d>f?d-h-f:f-h-d:f>h?f-h-d:h-d-f)>-1e-4&&u<1e-4}function n(t){var e,n=segments_length_pool.newElement(),i=t.c,r=t.v,o=t.o,a=t.i,s=t._length,c=n.lengths,u=0;for(e=0;e<s-1;e+=1)c[e]=l(r[e],r[e+1],o[e],a[e+1]),u+=c[e].addedLength;return i&&s&&(c[e]=l(r[e],r[0],o[e],a[0]),u+=c[e].addedLength),n.totalLength=u,n}function i(t){this.segmentLength=0,this.points=new Array(t)}function r(t,e){this.partialLength=t,this.point=e}function o(t,e){var n=e.percents,i=e.lengths,r=n.length,o=bm_floor((r-1)*t),a=t*e.addedLength,s=0;if(o===r-1||0===o||a===i[o])return n[o];for(var l=i[o]>a?-1:1,c=!0;c;)if(i[o]<=a&&i[o+1]>a?(s=(a-i[o])/(i[o+1]-i[o]),c=!1):o+=l,o<0||o>=r-1){if(o===r-1)return n[o];c=!1}return n[o]+(n[o+1]-n[o])*s}function a(t,e,n,i,r,a){var s=o(r,a),l=1-s;return[Math.round(1e3*(l*l*l*t[0]+(s*l*l+l*s*l+l*l*s)*n[0]+(s*s*l+l*s*s+s*l*s)*i[0]+s*s*s*e[0]))/1e3,Math.round(1e3*(l*l*l*t[1]+(s*l*l+l*s*l+l*l*s)*n[1]+(s*s*l+l*s*s+s*l*s)*i[1]+s*s*s*e[1]))/1e3]}function s(t,e,n,i,r,a,s){r=r<0?0:r>1?1:r;var l=o(r,s);a=a>1?1:a;var c,d=o(a,s),h=t.length,f=1-l,p=1-d,m=f*f*f,g=l*f*f*3,v=l*l*f*3,y=l*l*l,E=f*f*p,b=l*f*p+f*l*p+f*f*d,_=l*l*p+f*l*d+l*f*d,C=l*l*d,T=f*p*p,I=l*p*p+f*d*p+f*p*d,D=l*d*p+f*d*d+l*p*d,$=l*d*d,O=p*p*p,w=d*p*p+p*d*p+p*p*d,R=d*d*p+p*d*d+d*p*d,k=d*d*d;for(c=0;c<h;c+=1)u[4*c]=Math.round(1e3*(m*t[c]+g*n[c]+v*i[c]+y*e[c]))/1e3,u[4*c+1]=Math.round(1e3*(E*t[c]+b*n[c]+_*i[c]+C*e[c]))/1e3,u[4*c+2]=Math.round(1e3*(T*t[c]+I*n[c]+D*i[c]+$*e[c]))/1e3,u[4*c+3]=Math.round(1e3*(O*t[c]+w*n[c]+R*i[c]+k*e[c]))/1e3;return u}var l=(Math,function(){return function(t,e,n,i){var r,o,a,s,l,c,u=defaultCurveSegments,d=0,h=[],f=[],p=bezier_length_pool.newElement();for(a=n.length,r=0;r<u;r+=1){for(l=r/(u-1),c=0,o=0;o<a;o+=1)s=bm_pow(1-l,3)*t[o]+3*bm_pow(1-l,2)*l*n[o]+3*(1-l)*bm_pow(l,2)*i[o]+bm_pow(l,3)*e[o],h[o]=s,null!==f[o]&&(c+=bm_pow(h[o]-f[o],2)),f[o]=h[o];c&&(c=bm_sqrt(c),d+=c),p.percents[r]=l,p.lengths[r]=d}return p.addedLength=d,p}}()),c=function(){var e={};return function(n,o,a,s){var l=(n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]+"_"+a[0]+"_"+a[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!e[l]){var c,u,d,h,f,p,m,g=defaultCurveSegments,v=0,y=null;2===n.length&&(n[0]!=o[0]||n[1]!=o[1])&&t(n[0],n[1],o[0],o[1],n[0]+a[0],n[1]+a[1])&&t(n[0],n[1],o[0],o[1],o[0]+s[0],o[1]+s[1])&&(g=2);var E=new i(g);for(d=a.length,c=0;c<g;c+=1){for(m=createSizedArray(d),f=c/(g-1),p=0,u=0;u<d;u+=1)h=bm_pow(1-f,3)*n[u]+3*bm_pow(1-f,2)*f*(n[u]+a[u])+3*(1-f)*bm_pow(f,2)*(o[u]+s[u])+bm_pow(f,3)*o[u],m[u]=h,null!==y&&(p+=bm_pow(m[u]-y[u],2));p=bm_sqrt(p),v+=p,E.points[c]=new r(p,m),y=m}E.segmentLength=v,e[l]=E}return e[l]}}(),u=createTypedArray("float32",8);return{getSegmentsLength:n,getNewSegment:s,getPointInSegment:a,buildBezierData:c,pointOnLine2D:t,pointOnLine3D:e}}function dataFunctionManager(){function t(r,o,s){var l,c,u,d,h,f,p=r.length;for(c=0;c<p;c+=1)if("ks"in(l=r[c])&&!l.completed){if(l.completed=!0,l.tt&&(r[c-1].td=l.tt),[],-1,l.hasMask){var m=l.masksProperties;for(d=m.length,u=0;u<d;u+=1)if(m[u].pt.k.i)i(m[u].pt.k);else for(f=m[u].pt.k.length,h=0;h<f;h+=1)m[u].pt.k[h].s&&i(m[u].pt.k[h].s[0]),m[u].pt.k[h].e&&i(m[u].pt.k[h].e[0])}0===l.ty?(l.layers=e(l.refId,o),t(l.layers,o,s)):4===l.ty?n(l.shapes):5==l.ty&&a(l,s)}}function e(t,e){for(var n=0,i=e.length;n<i;){if(e[n].id===t)return e[n].layers.__used?JSON.parse(JSON.stringify(e[n].layers)):(e[n].layers.__used=!0,e[n].layers);n+=1}}function n(t){var e,r,o,a=t.length;for(e=a-1;e>=0;e-=1)if("sh"==t[e].ty){if(t[e].ks.k.i)i(t[e].ks.k);else for(o=t[e].ks.k.length,r=0;r<o;r+=1)t[e].ks.k[r].s&&i(t[e].ks.k[r].s[0]),t[e].ks.k[r].e&&i(t[e].ks.k[r].e[0]);!0}else"gr"==t[e].ty&&n(t[e].it)}function i(t){var e,n=t.i.length;for(e=0;e<n;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function r(t,e){var n=e?e.split("."):[100,100,100];return t[0]>n[0]||!(n[0]>t[0])&&(t[1]>n[1]||!(n[1]>t[1])&&(t[2]>n[2]||!(n[2]>t[2])&&void 0))}function o(e,n){e.__complete||(c(e),s(e),l(e),u(e),t(e.layers,e.assets,n),e.__complete=!0)}function a(t,e){0!==t.t.a.length||"m"in t.t.p||(t.singleShape=!0)}var s=function(){function t(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function e(e){var n,i=e.length;for(n=0;n<i;n+=1)5===e[n].ty&&t(e[n])}var n=[4,4,14];return function(t){if(r(n,t.v)&&(e(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),l=function(){var t=[4,7,99];return function(e){if(e.chars&&!r(t,e.v)){var n,o,a,s,l,c=e.chars.length;for(n=0;n<c;n+=1)if(e.chars[n].data&&e.chars[n].data.shapes)for(l=e.chars[n].data.shapes[0].it,a=l.length,o=0;o<a;o+=1)s=l[o].ks.k,s.__converted||(i(l[o].ks.k),s.__converted=!0)}}}(),c=function(){function t(e){var n,i,r,o=e.length;for(n=0;n<o;n+=1)if("gr"===e[n].ty)t(e[n].it);else if("fl"===e[n].ty||"st"===e[n].ty)if(e[n].c.k&&e[n].c.k[0].i)for(r=e[n].c.k.length,i=0;i<r;i+=1)e[n].c.k[i].s&&(e[n].c.k[i].s[0]/=255,e[n].c.k[i].s[1]/=255,e[n].c.k[i].s[2]/=255,e[n].c.k[i].s[3]/=255),e[n].c.k[i].e&&(e[n].c.k[i].e[0]/=255,e[n].c.k[i].e[1]/=255,e[n].c.k[i].e[2]/=255,e[n].c.k[i].e[3]/=255);else e[n].c.k[0]/=255,e[n].c.k[1]/=255,e[n].c.k[2]/=255,e[n].c.k[3]/=255}function e(e){var n,i=e.length;for(n=0;n<i;n+=1)4===e[n].ty&&t(e[n].shapes)}var n=[4,1,9];return function(t){if(r(n,t.v)&&(e(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),u=function(){function t(e){var n,i,r,o=e.length;for(n=o-1;n>=0;n-=1)if("sh"==e[n].ty){if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(r=e[n].ks.k.length,i=0;i<r;i+=1)e[n].ks.k[i].s&&(e[n].ks.k[i].s[0].c=e[n].closed),e[n].ks.k[i].e&&(e[n].ks.k[i].e[0].c=e[n].closed);!0}else"gr"==e[n].ty&&t(e[n].it)}function e(e){var n,i,r,o,a,s,l=e.length;for(i=0;i<l;i+=1){if(n=e[i],n.hasMask){var c=n.masksProperties;for(o=c.length,r=0;r<o;r+=1)if(c[r].pt.k.i)c[r].pt.k.c=c[r].cl;else for(s=c[r].pt.k.length,a=0;a<s;a+=1)c[r].pt.k[a].s&&(c[r].pt.k[a].s[0].c=c[r].cl),c[r].pt.k[a].e&&(c[r].pt.k[a].e[0].c=c[r].cl)}4===n.ty&&t(n.shapes)}}var n=[4,4,18];return function(t){if(r(n,t.v)&&(e(t.layers),t.assets)){var i,o=t.assets.length;for(i=0;i<o;i+=1)t.assets[i].layers&&e(t.assets[i].layers)}}}(),d={};return d.completeData=o,d}function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}function ShapeModifier(){}function TrimModifier(){}function RoundCornersModifier(){}function RepeaterModifier(){}function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}function DashProperty(t,e,n,i){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var r,o,a=e.length||0;for(r=0;r<a;r+=1)o=PropertyFactory.getProp(t,e[r].v,0,0,this),this.k=o.k||this.k,this.dataProps[r]={n:e[r].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}function GradientProperty(t,e,n){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function TextAnimatorProperty(t,e,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function TextAnimatorDataProperty(t,e,n){var i={propType:!1},r=PropertyFactory.getProp,o=e.a;this.a={r:o.r?r(t,o.r,0,degToRads,n):i,rx:o.rx?r(t,o.rx,0,degToRads,n):i,ry:o.ry?r(t,o.ry,0,degToRads,n):i,sk:o.sk?r(t,o.sk,0,degToRads,n):i,sa:o.sa?r(t,o.sa,0,degToRads,n):i,s:o.s?r(t,o.s,1,.01,n):i,a:o.a?r(t,o.a,1,0,n):i,o:o.o?r(t,o.o,0,.01,n):i,p:o.p?r(t,o.p,1,0,n):i,sw:o.sw?r(t,o.sw,0,0,n):i,sc:o.sc?r(t,o.sc,1,0,n):i,fc:o.fc?r(t,o.fc,1,0,n):i,fh:o.fh?r(t,o.fh,0,0,n):i,fs:o.fs?r(t,o.fs,0,.01,n):i,fb:o.fb?r(t,o.fb,0,.01,n):i,t:o.t?r(t,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,n),this.s.t=e.s.t}function LetterProps(t,e,n,i,r,o){this.o=t,this.sw=e,this.sc=n,this.fc=i,this.m=r,this.p=o,this._mdf={o:!0,sw:!!e,sc:!!n,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}function BaseRenderer(){}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(e&&e.title){var i=createNS("title"),r=createElementID();i.setAttribute("id",r),i.textContent=e.title,this.svgElement.appendChild(i),n+=r}if(e&&e.description){var o=createNS("desc"),a=createElementID();o.setAttribute("id",a),o.textContent=e.description,this.svgElement.appendChild(o),n+=" "+a}n&&this.svgElement.setAttribute("aria-labelledby",n);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!e||!1!==e.hideOnTransparent,viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",focusable:e&&e.focusable},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===undefined||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",className:e&&e.className||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas"}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!e||!1!==e.hideOnTransparent},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function MaskElement(t,e,n){this.data=t,this.element=e,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,r=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,s,l,c,u,d,h,f=this.masksProperties,p=0,m=[],g=createElementID(),v="clipPath",y="clip-path";for(i=0;i<o;i++)if(("a"!==f[i].mode&&"n"!==f[i].mode||f[i].inv||100!==f[i].o.k||f[i].o.x)&&(v="mask",y="mask"),"s"!=f[i].mode&&"i"!=f[i].mode||0!==p?c=null:(c=createNS("rect"),c.setAttribute("fill","#ffffff"),c.setAttribute("width",this.element.comp.data.w||0),c.setAttribute("height",this.element.comp.data.h||0),m.push(c)),a=createNS("path"),"n"!=f[i].mode){p+=1,a.setAttribute("fill","s"===f[i].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var E;if(0!==f[i].x.k?(v="mask",y="mask",h=PropertyFactory.getProp(this.element,f[i].x,0,null,this.element),E=createElementID(),u=createNS("filter"),u.setAttribute("id",E),d=createNS("feMorphology"),d.setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),u.appendChild(d),r.appendChild(u),a.setAttribute("stroke","s"===f[i].mode?"#000000":"#ffffff")):(d=null,h=null),this.storedData[i]={elem:a,x:h,expan:d,lastPath:"",lastOperator:"",filterId:E,lastRadius:0},"i"==f[i].mode){l=m.length;var b=createNS("g");for(s=0;s<l;s+=1)b.appendChild(m[s]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",g+"_"+p),_.appendChild(a),r.appendChild(_),b.setAttribute("mask","url("+locationHref+"#"+g+"_"+p+")"),m.length=0,m.push(b)}else m.push(a);f[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),invRect:c},this.viewData[i].prop.k||this.drawPath(f[i],this.viewData[i].prop.v,this.viewData[i])}else this.viewData[i]={op:PropertyFactory.getProp(this.element,f[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,f[i],3),elem:a,lastPath:""},r.appendChild(a);for(this.maskElement=createNS(v),o=m.length,i=0;i<o;i+=1)this.maskElement.appendChild(m[i]);p>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(y,"url("+locationHref+"#"+g+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}function HierarchyElement(){}function FrameElement(){}function TransformElement(){}function RenderableElement(){}function RenderableDOMElement(){}function ProcessedElement(t,e){this.elem=t,this.pos=e}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function SVGShapeData(t,e,n){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=n,this.lvl=e,this._isAnimated=!!n.k;for(var i=0,r=t.length;i<r;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGTransformData(t,e,n){this.transform={mProps:t,op:e,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}function SVGStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=n}function SVGGradientFillStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,n)}function SVGGradientStrokeStyleData(t,e,n){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,n),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVShapeData(t,e,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;"rc"==e.ty?r=5:"el"==e.ty?r=6:"sr"==e.ty&&(r=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,r,t);var o,a,s=n.length;for(o=0;o<s;o+=1)n[o].closed||(a={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(a),n[o].elements.push(a))}function BaseElement(){}function NullElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initFrame(),this.initTransform(t,e,n),this.initHierarchy()}function SVGBaseElement(){}function IShapeElement(){}function ITextElement(){}function ICompElement(){}function IImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ISolidElement(t,e,n){this.initElement(t,e,n)}function SVGCompElement(t,e,n){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGTextElement(t,e,n){this.textSpans=[],this.renderType="svg",this.initElement(t,e,n)}function SVGShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,n),this.prevViewData=[]}function SVGTintFilter(t,e){this.filterManager=e;var n=createNS("feColorMatrix");if(n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),t.appendChild(n),n=createNS("feColorMatrix"),n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result","f2"),t.appendChild(n),this.matrixFilter=n,100!==e.effectElements[2].p.v||e.effectElements[2].p.k){var i=createNS("feMerge");t.appendChild(i);var r;r=createNS("feMergeNode"),r.setAttribute("in","SourceGraphic"),i.appendChild(r),r=createNS("feMergeNode"),r.setAttribute("in","f2"),i.appendChild(r)}}function SVGFillFilter(t,e){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),t.appendChild(n),this.matrixFilter=n}function SVGGaussianBlurEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");t.appendChild(n),this.feGaussianBlur=n}function SVGStrokeEffect(t,e){this.initialized=!1,this.filterManager=e,this.elem=t,this.paths=[]}function SVGTritoneFilter(t,e){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result","f1"),t.appendChild(n);var i=createNS("feComponentTransfer");i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.matrixFilter=i;var r=createNS("feFuncR");r.setAttribute("type","table"),i.appendChild(r),this.feFuncR=r;var o=createNS("feFuncG");o.setAttribute("type","table"),i.appendChild(o),this.feFuncG=o;var a=createNS("feFuncB");a.setAttribute("type","table"),i.appendChild(a),this.feFuncB=a}function SVGProLevelsFilter(t,e){this.filterManager=e;var n=this.filterManager.effectElements,i=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",i)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",i)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",i)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",i)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),i=createNS("feComponentTransfer")),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&(i.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(i),this.feFuncRComposed=this.createFeFunc("feFuncR",i),this.feFuncGComposed=this.createFeFunc("feFuncG",i),this.feFuncBComposed=this.createFeFunc("feFuncB",i))}function SVGDropShadowEffect(t,e){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","400%"),t.setAttribute("height","400%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("in","SourceAlpha"),n.setAttribute("result","drop_shadow_1"),n.setAttribute("stdDeviation","0"),this.feGaussianBlur=n,t.appendChild(n);var i=createNS("feOffset");i.setAttribute("dx","25"),i.setAttribute("dy","0"),i.setAttribute("in","drop_shadow_1"),i.setAttribute("result","drop_shadow_2"),this.feOffset=i,t.appendChild(i);var r=createNS("feFlood");r.setAttribute("flood-color","#00ff00"),r.setAttribute("flood-opacity","1"),r.setAttribute("result","drop_shadow_3"),this.feFlood=r,t.appendChild(r);var o=createNS("feComposite");o.setAttribute("in","drop_shadow_3"),o.setAttribute("in2","drop_shadow_2"),o.setAttribute("operator","in"),o.setAttribute("result","drop_shadow_4"),t.appendChild(o);var a=createNS("feMerge");t.appendChild(a);var s;s=createNS("feMergeNode"),a.appendChild(s),s=createNS("feMergeNode"),s.setAttribute("in","SourceGraphic"),this.feMergeNode=s,this.feMerge=a,this.originalNodeAdded=!1,a.appendChild(s)}function SVGMatte3Effect(t,e,n){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGEffects(t){var e,n=t.data.ef?t.data.ef.length:0,i=createElementID(),r=filtersFactory.createFilter(i),o=0;this.filters=[];var a;for(e=0;e<n;e+=1)a=null,20===t.data.ef[e].ty?(o+=1,a=new SVGTintFilter(r,t.effectsManager.effectElements[e])):21===t.data.ef[e].ty?(o+=1,a=new SVGFillFilter(r,t.effectsManager.effectElements[e])):22===t.data.ef[e].ty?a=new SVGStrokeEffect(t,t.effectsManager.effectElements[e]):23===t.data.ef[e].ty?(o+=1,a=new SVGTritoneFilter(r,t.effectsManager.effectElements[e])):24===t.data.ef[e].ty?(o+=1,a=new SVGProLevelsFilter(r,t.effectsManager.effectElements[e])):25===t.data.ef[e].ty?(o+=1,a=new SVGDropShadowEffect(r,t.effectsManager.effectElements[e])):28===t.data.ef[e].ty?a=new SVGMatte3Effect(r,t.effectsManager.effectElements[e],t):29===t.data.ef[e].ty&&(o+=1,a=new SVGGaussianBlurEffect(r,t.effectsManager.effectElements[e])),a&&this.filters.push(a);o&&(t.globalData.defs.appendChild(r),t.layerElement.setAttribute("filter","url("+locationHref+"#"+i+")")),this.filters.length&&t.addRenderableComponent(this)}function CVContextData(){this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1;var t;for(this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getImage(this.assetData),this.initElement(t,e,n)}function CVCompElement(t,e,n){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,r=!1;for(n=0;n<i;n++)"n"!==this.masksProperties[n].mode&&(r=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=r,r&&this.element.addRenderableComponent(this)}function CVShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,n)}function CVSolidElement(t,e,n){this.initElement(t,e,n)}function CVTextElement(t,e,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,n)}function CVEffects(){}function HBaseElement(t,e,n){}function HSolidElement(t,e,n){this.initElement(t,e,n)}function HCompElement(t,e,n){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,n),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HShapeElement(t,e,n){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,n)}function HImageElement(t,e,n){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,n)}function HCameraElement(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var r,o=t.ks.or.k.length;for(r=0;r<o;r+=1)t.ks.or.k[r].to=null,t.ks.or.k[r].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HEffects(){}function SliderEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function AngleEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function ColorEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function PointEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,1,0,n)}function LayerIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function MaskIndexEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function CheckboxEffect(t,e,n){this.p=PropertyFactory.getProp(e,t.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(){}function EffectsManager(t,e){var n=t.ef||[];this.effectElements=[];var i,r,o=n.length;for(i=0;i<o;i++)r=new GroupEffect(n[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function setLocationHref(t){locationHref=t}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){subframeEnabled=t}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":defaultCurveSegments=200;break;case"medium":defaultCurveSegments=50;break;case"low":defaultCurveSegments=10}else!isNaN(t)&&t>1&&(defaultCurveSegments=t);roundValues(!(defaultCurveSegments>=50))}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&(expressionsPlugin=e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),n=0;n<e.length;n++){var i=e[n].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[1])}}var svgNS="http://www.w3.org/2000/svg",locationHref="",initialDefaultFrame=-999999,subframeEnabled=!0,expressionsPlugin,isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),cachedColors={},bm_rounder=Math.round,bm_rnd,bm_pow=Math.pow,bm_sqrt=Math.sqrt,bm_abs=Math.abs,bm_floor=Math.floor,bm_max=Math.max,bm_min=Math.min,blitter=10,BMMath={};!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"==typeof t&&t.length){var e,n=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)n[e]=Math.abs(t[e]);return n}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;roundValues(!1);var createElementID=function(){var t=0;return function(){return"__lottie_element_"+ ++t}}(),rgbToHex=function(){var t,e,n=[];for(t=0;t<256;t+=1)e=t.toString(16),n[t]=1==e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+n[t]+n[e]+n[i]}}();BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var n=this._cbs[t].length,i=0;i<n;i++)this._cbs[t][i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var n=0,i=this._cbs[t].length;n<i;)this._cbs[t][n]===e&&(this._cbs[t].splice(n,1),n-=1,i-=1),n+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var createTypedArray=function(){function t(t,e){var n,i=0,r=[];switch(t){case"int16":case"uint8c":n=1;break;default:n=1.1}for(i=0;i<e;i+=1)r.push(n);return r}function e(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):void 0}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}}(),Matrix=function(){function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){if(0===t)return this;var e=w(t),n=R(t);return this._t(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1)}function n(t){if(0===t)return this;var e=w(t),n=R(t);return this._t(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1)}function i(t){if(0===t)return this;var e=w(t),n=R(t);return this._t(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1)}function r(t){if(0===t)return this;var e=w(t),n=R(t);return this._t(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1)}function o(t,e){return this._t(1,e,t,1,0,0)}function a(t,e){return this.shear(k(t),k(e))}function s(t,e){var n=w(e),i=R(e);return this._t(n,i,0,0,-i,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,k(t),1,0,0,0,0,1,0,0,0,0,1)._t(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1)}function l(t,e,n){return n||0===n||(n=1),1===t&&1===e&&1===n?this:this._t(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1)}function c(t,e,n,i,r,o,a,s,l,c,u,d,h,f,p,m){return this.props[0]=t,this.props[1]=e,this.props[2]=n,this.props[3]=i,this.props[4]=r,this.props[5]=o,this.props[6]=a,this.props[7]=s,this.props[8]=l,this.props[9]=c,this.props[10]=u,this.props[11]=d,this.props[12]=h,this.props[13]=f,this.props[14]=p,this.props[15]=m,this}function u(t,e,n){return n=n||0,0!==t||0!==e||0!==n?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1):this}function d(t,e,n,i,r,o,a,s,l,c,u,d,h,f,p,m){var g=this.props;if(1===t&&0===e&&0===n&&0===i&&0===r&&1===o&&0===a&&0===s&&0===l&&0===c&&1===u&&0===d)return g[12]=g[12]*t+g[15]*h,g[13]=g[13]*o+g[15]*f,g[14]=g[14]*u+g[15]*p,g[15]=g[15]*m,this._identityCalculated=!1,this;var v=g[0],y=g[1],E=g[2],b=g[3],_=g[4],C=g[5],T=g[6],I=g[7],D=g[8],$=g[9],O=g[10],w=g[11],R=g[12],k=g[13],x=g[14],S=g[15];return g[0]=v*t+y*r+E*l+b*h,g[1]=v*e+y*o+E*c+b*f,g[2]=v*n+y*a+E*u+b*p,g[3]=v*i+y*s+E*d+b*m,g[4]=_*t+C*r+T*l+I*h,g[5]=_*e+C*o+T*c+I*f,g[6]=_*n+C*a+T*u+I*p,g[7]=_*i+C*s+T*d+I*m,g[8]=D*t+$*r+O*l+w*h,g[9]=D*e+$*o+O*c+w*f,g[10]=D*n+$*a+O*u+w*p,g[11]=D*i+$*s+O*d+w*m,g[12]=R*t+k*r+x*l+S*h,g[13]=R*e+k*o+x*c+S*f,g[14]=R*n+k*a+x*u+S*p,g[15]=R*i+k*s+x*d+S*m,this._identityCalculated=!1,this}function h(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function f(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function p(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e]}function m(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function g(t,e,n){return{x:t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}}function v(t,e,n){return t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12]}function y(t,e,n){return t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13]}function E(t,e,n){return t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]}function b(t){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],n=this.props[5]/e,i=-this.props[1]/e,r=-this.props[4]/e,o=this.props[0]/e,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e;return[t[0]*n+t[1]*r+a,t[0]*i+t[1]*o+s,0]}function _(t){var e,n=t.length,i=[];for(e=0;e<n;e+=1)i[e]=b(t[e]);return i}function C(t,e,n){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=n[0],i[5]=n[1];else{var r=this.props[0],o=this.props[1],a=this.props[4],s=this.props[5],l=this.props[12],c=this.props[13];i[0]=t[0]*r+t[1]*a+l,i[1]=t[0]*o+t[1]*s+c,i[2]=e[0]*r+e[1]*a+l,i[3]=e[0]*o+e[1]*s+c,i[4]=n[0]*r+n[1]*a+l,i[5]=n[0]*o+n[1]*s+c}return i}function T(t,e,n){return this.isIdentity()?[t,e,n]:[t*this.props[0]+e*this.props[4]+n*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+n*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+n*this.props[10]+this.props[14]]}function I(t,e){if(this.isIdentity())return t+","+e;var n=this.props;return Math.round(100*(t*n[0]+e*n[4]+n[12]))/100+","+Math.round(100*(t*n[1]+e*n[5]+n[13]))/100}function D(){for(var t=0,e=this.props,n="matrix3d(";t<16;)n+=x(1e4*e[t])/1e4,n+=15===t?")":",",t+=1;return n}function $(t){return t<1e-6&&t>0||t>-1e-6&&t<0?x(1e4*t)/1e4:t}function O(){var t=this.props;return"matrix("+$(t[0])+","+$(t[1])+","+$(t[4])+","+$(t[5])+","+$(t[12])+","+$(t[13])+")"}var w=Math.cos,R=Math.sin,k=Math.tan,x=Math.round;return function(){this.reset=t,this.rotate=e,this.rotateX=n,this.rotateY=i,this.rotateZ=r,this.skew=a,this.skewFromAxis=s,this.shear=o,this.scale=l,this.setTransform=c,this.translate=u,this.transform=d,this.applyToPoint=g,this.applyToX=v,this.applyToY=y,this.applyToZ=E,this.applyToPointArray=T,this.applyToTriplePoints=C,this.applyToPointStringified=I,this.toCSS=D,this.to2dCSS=O,this.clone=p,this.cloneFromProps=m,this.equals=f,this.inversePoints=_,this.inversePoint=b,this._t=this.transform,this.isIdentity=h,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();!function(t,e){function n(n,c,u){var v=[];c=!0===c?{entropy:!0}:c||{};var y=a(o(c.entropy?[n,l(t)]:null===n?s():n,3),v),E=new i(v),b=function(){for(var t=E.g(h),e=p,n=0;t<m;)t=(t+n)*d,e*=d,n=E.g(1);for(;t>=g;)t/=2,e/=2,n>>>=1;return(t+n)/e};return b.int32=function(){return 0|E.g(4)},b.quick=function(){return E.g(4)/4294967296},b["double"]=b,a(l(E.S),t),(c.pass||u||function(t,n,i,o){return o&&(o.S&&r(o,E),t.state=function(){return r(E,{})}),i?(e[f]=t,n):t})(b,y,"global"in c?c.global:this==e,c.state)}function i(t){var e,n=t.length,i=this,r=0,o=i.i=i.j=0,a=i.S=[];for(n||(t=[n++]);r<d;)a[r]=r++;for(r=0;r<d;r++)a[r]=a[o=v&o+t[r%n]+(e=a[r])],a[o]=e;i.g=function(t){for(var e,n=0,r=i.i,o=i.j,a=i.S;t--;)e=a[r=v&r+1],n=n*d+a[v&(a[r]=a[o=v&o+e])+(a[o]=e)];return i.i=r,i.j=o,n}}function r(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function o(t,e){var n,i=[],r=typeof t;if(e&&"object"==r)for(n in t)try{i.push(o(t[n],e-1))}catch(a){}return i.length?i:"string"==r?t:t+"\0"}function a(t,e){for(var n,i=t+"",r=0;r<i.length;)e[v&r]=v&(n^=19*e[v&r])+i.charCodeAt(r++);return l(e)}function s(){try{if(c)return l(c.randomBytes(d));var e=new Uint8Array(d);return(u.crypto||u.msCrypto).getRandomValues(e),l(e)}catch(r){var n=u.navigator,i=n&&n.plugins;return[+new Date,u,i,u.screen,l(t)]}}function l(t){return String.fromCharCode.apply(0,t)}var c,u=this,d=256,h=6,f="random",p=e.pow(d,h),m=e.pow(2,52),g=2*m,v=d-1;e["seed"+f]=n,a(e.random(),t)}([],BMMath);var BezierFactory=function(){function t(t,e,n,i,r){var o=r||("bez_"+t+"_"+e+"_"+n+"_"+i).replace(/\./g,"p");if(u[o])return u[o];var a=new l([t,e,n,i]);return u[o]=a,a}function e(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function i(t){return 3*t}function r(t,r,o){return((e(r,o)*t+n(r,o))*t+i(r))*t}function o(t,r,o){return 3*e(r,o)*t*t+2*n(r,o)*t+i(r)}function a(t,e,n,i,o){var a,s,l=0;do{s=e+(n-e)/2,a=r(s,i,o)-t,a>0?n=s:e=s}while(Math.abs(a)>h&&++l<f);return s}function s(t,e,n,i){for(var a=0;a<d;++a){var s=o(e,n,i);if(0===s)return e;e-=(r(e,n,i)-t)/s}return e}function l(t){this._p=t,this._mSampleValues=g?new Float32Array(p):new Array(p),this._precomputed=!1,this.get=this.get.bind(this)}var c={};c.getBezierEasing=t;var u={},d=4,h=1e-7,f=10,p=11,m=1/(p-1),g="function"==typeof Float32Array;return l.prototype={get:function(t){var e=this._p[0],n=this._p[1],i=this._p[2],o=this._p[3];return this._precomputed||this._precompute(),e===n&&i===o?t:0===t?0:1===t?1:r(this._getTForX(t),n,o)},_precompute:function(){var t=this._p[0],e=this._p[1],n=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&n===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],n=0;n<p;++n)this._mSampleValues[n]=r(n*m,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],i=this._mSampleValues,r=0,l=1,c=p-1;l!==c&&i[l]<=t;++l)r+=m;--l;var u=(t-i[l])/(i[l+1]-i[l]),d=r+u*m,h=o(d,e,n);return h>=.001?s(t,d,e,n):0===h?d:a(t,r,r+m,e,n)}},c}();!function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[e[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]+"CancelAnimationFrame"]||window[e[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,n){var i=(new Date).getTime(),r=Math.max(0,16-(i-t)),o=setTimeout(function(){e(i+r)},r);return t=i+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}();var bez=bezFunction(),dataManager=dataFunctionManager(),FontManager=function(){function t(t,e){var n=createTag("span");n.style.fontFamily=e;var i=createTag("span");i.innerHTML="giItT1WQy@!-/#",n.style.position="absolute",n.style.left="-10000px",n.style.top="-10000px",n.style.fontSize="300px",n.style.fontVariant="normal",n.style.fontStyle="normal",n.style.fontWeight="normal",n.style.letterSpacing="0",n.appendChild(i),document.body.appendChild(n);var r=i.offsetWidth;return i.style.fontFamily=t+", "+e,{node:i,w:r,parent:n}}function e(){var t,e,n,i=this.fonts.length,r=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?r-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,n=this.fonts[t].monoCase.w,e.offsetWidth!==n?(r-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,n=this.fonts[t].sansCase.w,e.offsetWidth!==n&&(r-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==r&&Date.now()-this.initTime<u?setTimeout(this.checkLoadedFonts.bind(this),20):setTimeout(function(){this.isLoaded=!0}.bind(this),0)}function n(t,e){var n=createNS("text");return n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",e.fStyle),n.setAttribute("font-weight",e.fWeight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),createTag("canvas").getContext("2d").font=e.fWeight+" "+e.fStyle+" 100px "+e.fFamily,n}function i(e,i){if(!e)return void(this.isLoaded=!0);if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);var r,o=e.list,a=o.length,s=a;for(r=0;r<a;r+=1){var l,c,u=!0;if(o[r].loaded=!1,o[r].monoCase=t(o[r].fFamily,"monospace"),o[r].sansCase=t(o[r].fFamily,"sans-serif"),o[r].fPath){if("p"===o[r].fOrigin||3===o[r].origin){if(l=document.querySelectorAll('style[f-forigin="p"][f-family="'+o[r].fFamily+'"], style[f-origin="3"][f-family="'+o[r].fFamily+'"]'),l.length>0&&(u=!1),u){var d=createTag("style");d.setAttribute("f-forigin",o[r].fOrigin),d.setAttribute("f-origin",o[r].origin),d.setAttribute("f-family",o[r].fFamily),d.type="text/css",d.innerHTML="@font-face {font-family: "+o[r].fFamily+"; font-style: normal; src: url('"+o[r].fPath+"');}",i.appendChild(d)}}else if("g"===o[r].fOrigin||1===o[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),c=0;c<l.length;c++)-1!==l[c].href.indexOf(o[r].fPath)&&(u=!1);if(u){var h=createTag("link");h.setAttribute("f-forigin",o[r].fOrigin),h.setAttribute("f-origin",o[r].origin),h.type="text/css",h.rel="stylesheet",h.href=o[r].fPath,document.body.appendChild(h)}}else if("t"===o[r].fOrigin||2===o[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),c=0;c<l.length;c++)o[r].fPath===l[c].src&&(u=!1);if(u){var f=createTag("link");f.setAttribute("f-forigin",o[r].fOrigin),f.setAttribute("f-origin",o[r].origin),f.setAttribute("rel","stylesheet"),f.setAttribute("href",o[r].fPath),i.appendChild(f)}}}else o[r].loaded=!0,s-=1;o[r].helper=n(i,o[r]),o[r].cache={},this.fonts.push(o[r])}0===s?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function r(t){if(t){this.chars||(this.chars=[]);var e,n,i,r=t.length,o=this.chars.length;for(e=0;e<r;e+=1){for(n=0,i=!1;n<o;)this.chars[n].style===t[e].style&&this.chars[n].fFamily===t[e].fFamily&&this.chars[n].ch===t[e].ch&&(i=!0),n+=1;i||(this.chars.push(t[e]),o+=1)}}}function o(t,e,n){for(var i=0,r=this.chars.length;i<r;){if(this.chars[i].ch===t&&this.chars[i].style===e&&this.chars[i].fFamily===n)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&console.warn("Missing character from exported characters list: ",t,e,n),d}function a(t,e,n){var i=this.getFontByName(e),r=t.charCodeAt(0);if(!i.cache[r+1]){var o=i.helper;if(" "===t){o.textContent="|"+t+"|";var a=o.getComputedTextLength();o.textContent="||";var s=o.getComputedTextLength();i.cache[r+1]=(a-s)/100}else o.textContent=t,i.cache[r+1]=o.getComputedTextLength()/100}return i.cache[r+1]*n}function s(t){for(var e=0,n=this.fonts.length;e<n;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function l(){return h}function c(){return this.isLoaded}var u=5e3,d={w:0,size:0,shapes:[]},h=[];h=h.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var f=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this.initTime=Date.now()};return f.getCombinedCharacterCodes=l,f.prototype.addChars=r,f.prototype.addFonts=i,f.prototype.getCharData=o,f.prototype.getFontByName=s,f.prototype.measureText=a,f.prototype.checkLoadedFonts=e,f.prototype.loaded=c,f}(),PropertyFactory=function(){function t(t,r){var o,a=this.offsetTime;"multidimensional"===this.propType&&(o=createTypedArray("float32",this.pv.length));for(var s,l,c=r.lastIndex,u=c,d=this.keyframes.length-1,h=!0;h;){if(s=this.keyframes[u],l=this.keyframes[u+1],u===d-1&&t>=l.t-a){s.h&&(s=l),c=0;break}if(l.t-a>t){c=u;break}u<d-1?u+=1:(c=0,h=!1)}var f,p,m,g,v,y,E,b=l.t-a,_=s.t-a;if(s.to){s.bezierData||(s.bezierData=bez.buildBezierData(s.s,l.s||s.e,s.to,s.ti));var C=s.bezierData;if(t>=b||t<_){var T=t>=b?C.points.length-1:0;for(p=C.points[T].point.length,f=0;f<p;f+=1)o[f]=C.points[T].point[f]}else{s.__fnct?y=s.__fnct:(y=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,s.__fnct=y),m=y((t-_)/(b-_));var I,D=C.segmentLength*m,$=r.lastFrame<t&&r._lastKeyframeIndex===u?r._lastAddedLength:0;for(v=r.lastFrame<t&&r._lastKeyframeIndex===u?r._lastPoint:0,h=!0,g=C.points.length;h;){if($+=C.points[v].partialLength,0===D||0===m||v===C.points.length-1){for(p=C.points[v].point.length,f=0;f<p;f+=1)o[f]=C.points[v].point[f];break}if(D>=$&&D<$+C.points[v+1].partialLength){for(I=(D-$)/C.points[v+1].partialLength,p=C.points[v].point.length,f=0;f<p;f+=1)o[f]=C.points[v].point[f]+(C.points[v+1].point[f]-C.points[v].point[f])*I;break}v<g-1?v+=1:h=!1}r._lastPoint=v,r._lastAddedLength=$-C.points[v].partialLength,r._lastKeyframeIndex=u}}else{var O,w,R,k,x;if(d=s.s.length,E=l.s||s.e,this.sh&&1!==s.h)if(t>=b)o[0]=E[0],o[1]=E[1],o[2]=E[2];else if(t<=_)o[0]=s.s[0],o[1]=s.s[1],o[2]=s.s[2];else{var S=i(s.s),A=i(E),N=(t-_)/(b-_);n(o,e(S,A,N))}else for(u=0;u<d;u+=1)1!==s.h&&(t>=b?m=1:t<_?m=0:(s.o.x.constructor===Array?(s.__fnct||(s.__fnct=[]),s.__fnct[u]?y=s.__fnct[u]:(O="undefined"==typeof s.o.x[u]?s.o.x[0]:s.o.x[u],w="undefined"==typeof s.o.y[u]?s.o.y[0]:s.o.y[u],R="undefined"==typeof s.i.x[u]?s.i.x[0]:s.i.x[u],k="undefined"==typeof s.i.y[u]?s.i.y[0]:s.i.y[u],y=BezierFactory.getBezierEasing(O,w,R,k).get,s.__fnct[u]=y)):s.__fnct?y=s.__fnct:(O=s.o.x,w=s.o.y,R=s.i.x,k=s.i.y,y=BezierFactory.getBezierEasing(O,w,R,k).get,s.__fnct=y),m=y((t-_)/(b-_)))),E=l.s||s.e,x=1===s.h?s.s[u]:s.s[u]+(E[u]-s.s[u])*m,"multidimensional"===this.propType?o[u]=x:o=x}return r.lastIndex=c,o}function e(t,e,n){var i,r,o,a,s,l=[],c=t[0],u=t[1],d=t[2],h=t[3],f=e[0],p=e[1],m=e[2],g=e[3];return r=c*f+u*p+d*m+h*g,r<0&&(r=-r,f=-f,p=-p,m=-m,g=-g),1-r>1e-6?(i=Math.acos(r),o=Math.sin(i),a=Math.sin((1-n)*i)/o,s=Math.sin(n*i)/o):(a=1-n,s=n),l[0]=a*c+s*f,l[1]=a*u+s*p,l[2]=a*d+s*m,l[3]=a*h+s*g,l}function n(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=Math.atan2(2*i*o-2*n*r,1-2*i*i-2*r*r),s=Math.asin(2*n*i+2*r*o),l=Math.atan2(2*n*o-2*i*r,1-2*n*n-2*r*r);t[0]=a/degToRads,t[1]=s/degToRads,t[2]=l/degToRads}function i(t){var e=t[0]*degToRads,n=t[1]*degToRads,i=t[2]*degToRads,r=Math.cos(e/2),o=Math.cos(n/2),a=Math.cos(i/2),s=Math.sin(e/2),l=Math.sin(n/2),c=Math.sin(i/2);return[s*l*a+r*o*c,s*o*a+r*l*c,r*l*a-s*o*c,r*o*a-s*l*c]}function r(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==f&&(this._caching.lastFrame>=n&&t>=n||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function o(t){var e;if("unidimensional"===this.propType)e=t*this.mult,p(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)e=t[n]*this.mult,p(this.v[n]-e)>1e-5&&(this.v[n]=e,this._mdf=!0),n+=1}function a(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)n=this.effectsSequence[t](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(t,e,n,i){this.propType="unidimensional",this.mult=n||1,this.data=e,this.v=n?e.k*n:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.addEffect=s}function c(t,e,n,i){this.propType="multidimensional",this.mult=n||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,l=e.k.length;this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l);createTypedArray("float32",l);for(this.vel=createTypedArray("float32",l),r=0;r<l;r+=1)this.v[r]=e.k[r]*this.mult,this.pv[r]=e.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=a,this.setVValue=o,this.addEffect=s}function u(e,n,i,l){this.propType="unidimensional",this.keyframes=n.k,this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:f,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=n,this.mult=i||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=f,this.pv=f,this._isFirstFrame=!0,this.getValue=a,this.setVValue=o,this.interpolateValue=t,this.effectsSequence=[r.bind(this)],this.addEffect=s}function d(e,n,i,l){this.propType="multidimensional";var c,u,d,h,p,m=n.k.length;for(c=0;c<m-1;c+=1)n.k[c].to&&n.k[c].s&&n.k[c].e&&(u=n.k[c].s,d=n.k[c].e,h=n.k[c].to,p=n.k[c].ti,(2===u.length&&(u[0]!==d[0]||u[1]!==d[1])&&bez.pointOnLine2D(u[0],u[1],d[0],d[1],u[0]+h[0],u[1]+h[1])&&bez.pointOnLine2D(u[0],u[1],d[0],d[1],d[0]+p[0],d[1]+p[1])||3===u.length&&(u[0]!==d[0]||u[1]!==d[1]||u[2]!==d[2])&&bez.pointOnLine3D(u[0],u[1],u[2],d[0],d[1],d[2],u[0]+h[0],u[1]+h[1],u[2]+h[2])&&bez.pointOnLine3D(u[0],u[1],u[2],d[0],d[1],d[2],d[0]+p[0],d[1]+p[1],d[2]+p[2]))&&(n.k[c].to=null,n.k[c].ti=null),u[0]===d[0]&&u[1]===d[1]&&0===h[0]&&0===h[1]&&0===p[0]&&0===p[1]&&(2===u.length||u[2]===d[2]&&0===h[2]&&0===p[2])&&(n.k[c].to=null,n.k[c].ti=null));this.effectsSequence=[r.bind(this)],this.keyframes=n.k,this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=a,this.setVValue=o,this.interpolateValue=t,this.frameId=-1;var g=n.k[0].s.length;for(this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g),c=0;c<g;c+=1)this.v[c]=f,this.pv[c]=f;this._caching={lastFrame:f,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=s}function h(t,e,n,i,r){var o;if(e.k.length)if("number"==typeof e.k[0])o=new c(t,e,i,r);else switch(n){case 0:o=new u(t,e,i,r);break;case 1:o=new d(t,e,i,r)}else o=new l(t,e,i,r);return o.effectsSequence.length&&r.addDynamicProperty(o),o}var f=initialDefaultFrame,p=Math.abs;return{getProp:h}}(),TransformPropertyFactory=function(){function t(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function e(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var e,n,i=this.elem.globalData.frameRate;if(this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(e=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){e=[],n=[];var i,r=this.px,o=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(e[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),e[1]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[0]=r.getValueAtTime(r.keyframes[0].t/i,0),n[1]=o.getValueAtTime(o.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(e[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),e[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),n[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0)):(e=[r.pv,o.pv],n[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),n[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime))}this.v.rotate(-Math.atan2(e[1]-n[1],e[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function n(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}if(this.r){if(this.r.effectsSequence.length)return;this.pre.rotate(-this.r.v),this.appliedTransformations=4}else this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function i(){}function r(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function o(t,e,n){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,r=e.or.k.length;for(i=0;i<r;i+=1)e.or.k[i].to=e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function a(t,e,n){return new o(t,e,n)}return o.prototype={applyToMatrix:t,getValue:e,precalculateMatrix:n,autoOrient:i},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=r,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:a}}();ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var n=0;n<e;)this.v[n]=point_pool.newElement(),this.o[n]=point_pool.newElement(),this.i[n]=point_pool.newElement(),n+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,n,i,r){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o}(!o[i]||o[i]&&!r)&&(o[i]=point_pool.newElement()),o[i][0]=t,o[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,n,i,r,o,a,s){this.setXYAt(t,e,"v",a,s),this.setXYAt(n,i,"o",a,s),this.setXYAt(r,o,"i",a,s)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,n=this.o,i=this.i,r=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),r=1);var o,a=this._length-1,s=this._length;for(o=r;o<s;o+=1)t.setTripleAt(e[a][0],e[a][1],i[a][0],i[a][1],n[a][0],n[a][1],o,!1),a-=1;return t};var ShapePropertyFactory=function(){function t(t,e,n){var i,r,o,a,s,l,c,u,d,h=n.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)i=f[0].s[0],o=!0,h=0;else if(t>=f[f.length-1].t-this.offsetTime)i=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],o=!0;else{for(var p,m,g=h,v=f.length-1,y=!0;y&&(p=f[g],m=f[g+1],!(m.t-this.offsetTime>t));)g<v-1?g+=1:y=!1;if(o=1===p.h,h=g,!o){if(t>=m.t-this.offsetTime)u=1;else if(t<p.t-this.offsetTime)u=0;else{var E;p.__fnct?E=p.__fnct:(E=BezierFactory.getBezierEasing(p.o.x,p.o.y,p.i.x,p.i.y).get,p.__fnct=E),u=E((t-(p.t-this.offsetTime))/(m.t-this.offsetTime-(p.t-this.offsetTime)))}r=m.s?m.s[0]:p.e[0]}i=p.s[0]}for(l=e._length,c=i.i[0].length,n.lastIndex=h,a=0;a<l;a+=1)for(s=0;s<c;s+=1)d=o?i.i[a][s]:i.i[a][s]+(r.i[a][s]-i.i[a][s])*u,e.i[a][s]=d,d=o?i.o[a][s]:i.o[a][s]+(r.o[a][s]-i.o[a][s])*u,e.o[a][s]=d,d=o?i.v[a][s]:i.v[a][s]+(r.v[a][s]-i.v[a][s])*u,e.v[a][s]=d}function e(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==h&&(i<e&&t<e||i>n&&t>n)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function n(){this.paths=this.localShapeCollection}function i(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var n,i=t._length;for(n=0;n<i;n+=1)if(t.v[n][0]!==e.v[n][0]||t.v[n][1]!==e.v[n][1]||t.o[n][0]!==e.o[n][0]||t.o[n][1]!==e.o[n][1]||t.i[n][0]!==e.i[n][0]||t.i[n][1]!==e.i[n][1])return!1;return!0}function r(t){i(this.v,t)||(this.v=shape_pool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length)return void(this._mdf=!1);if(this.lock)return void this.setVValue(this.pv);this.lock=!0,this._mdf=!1;var t,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k,n=this.effectsSequence.length;for(t=0;t<n;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var r=3===i?e.pt.k:e.ks.k;this.v=shape_pool.clone(r),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=n,this.effectsSequence=[]}function s(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(t,i,r){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===r?i.pt.k:i.ks.k,this.k=!0,this.kf=!0;var o=this.keyframes[0].s[0].i.length;this.keyframes[0].s[0].i[0].length;this.v=shape_pool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,o),this.pv=shape_pool.clone(this.v),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=h,this.reset=n,this._caching={lastFrame:h,lastIndex:0},this.effectsSequence=[e.bind(this)]}function c(t,e,n){var i;if(3===n||4===n){i=(3===n?e.pt:e.ks).k.length?new l(t,e,n):new a(t,e,n)}else 5===n?i=new m(t,e):6===n?i=new f(t,e):7===n&&(i=new p(t,e));return i.k&&t.addDynamicProperty(i),i}function u(){return a}function d(){return l}var h=-999999;a.prototype.interpolateShape=t,a.prototype.getValue=o,a.prototype.setVValue=r,a.prototype.addEffect=s,l.prototype.getValue=o,l.prototype.interpolateShape=t,l.prototype.setVValue=r,l.prototype.addEffect=s;var f=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}var e=roundCorner;return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],n=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,o=3!==this.d,a=this.v;a.v[0][0]=t,a.v[0][1]=n-r,a.v[1][0]=o?t+i:t-i,a.v[1][1]=n,a.v[2][0]=t,a.v[2][1]=n+r,a.v[3][0]=o?t-i:t+i,a.v[3][1]=n,a.i[0][0]=o?t-i*e:t+i*e,a.i[0][1]=n-r,a.i[1][0]=o?t+i:t-i,a.i[1][1]=n-r*e,a.i[2][0]=o?t+i*e:t-i*e,a.i[2][1]=n+r,a.i[3][0]=o?t-i:t+i,a.i[3][1]=n+r*e,a.o[0][0]=o?t+i*e:t-i*e,a.o[0][1]=n-r,a.o[1][0]=o?t+i:t-i,a.o[1][1]=n+r*e,a.o[2][0]=o?t-i*e:t+i*e,a.o[2][1]=n+r,a.o[3][0]=o?t-i:t+i,a.o[3][1]=n-r*e}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:n,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,n,i,r=2*Math.floor(this.pt.v),o=2*Math.PI/r,a=!0,s=this.or.v,l=this.ir.v,c=this.os.v,u=this.is.v,d=2*Math.PI*s/(2*r),h=2*Math.PI*l/(2*r),f=-Math.PI/2;f+=this.r.v;var p=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<r;t+=1){e=a?s:l,n=a?c:u,i=a?d:h;var m=e*Math.cos(f),g=e*Math.sin(f),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*i*n*p,g-y*i*n*p,m+v*i*n*p,g+y*i*n*p,t,!0),a=!a,f+=o*p}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),n=2*Math.PI/e,i=this.or.v,r=this.os.v,o=2*Math.PI*i/(4*e),a=-Math.PI/2,s=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=i*Math.cos(a),c=i*Math.sin(a),u=0===l&&0===c?0:c/Math.sqrt(l*l+c*c),d=0===l&&0===c?0:-l/Math.sqrt(l*l+c*c);l+=+this.p.v[0],c+=+this.p.v[1],this.v.setTripleAt(l,c,l-u*o*r*s,c-d*o*r*s,l+u*o*r*s,c+d*o*r*s,t,!0),a+=n*s}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),m=function(){function t(t,e){this.v=shape_pool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollection_pool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],n=this.s.v[0]/2,i=this.s.v[1]/2,r=bm_min(n,i,this.r.v),o=r*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+r,t+n,e-i+o,0,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-o,t+n,e+i-r,1,!0),0!==r?(this.v.setTripleAt(t+n-r,e+i,t+n-r,e+i,t+n-o,e+i,2,!0),this.v.setTripleAt(t-n+r,e+i,t-n+o,e+i,t-n+r,e+i,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-r,t-n,e+i-o,4,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+o,t-n,e-i+r,5,!0),this.v.setTripleAt(t-n+r,e-i,t-n+r,e-i,t-n+o,e-i,6,!0),this.v.setTripleAt(t+n-r,e-i,t+n-o,e-i,t+n-r,e-i,7,!0)):(this.v.setTripleAt(t-n,e+i,t-n+o,e+i,t-n,e+i,2),this.v.setTripleAt(t-n,e-i,t-n,e-i+o,t-n,e-i,3))):(this.v.setTripleAt(t+n,e-i+r,t+n,e-i+o,t+n,e-i+r,0,!0),0!==r?(this.v.setTripleAt(t+n-r,e-i,t+n-r,e-i,t+n-o,e-i,1,!0),this.v.setTripleAt(t-n+r,e-i,t-n+o,e-i,t-n+r,e-i,2,!0),this.v.setTripleAt(t-n,e-i+r,t-n,e-i+r,t-n,e-i+o,3,!0),this.v.setTripleAt(t-n,e+i-r,t-n,e+i-o,t-n,e+i-r,4,!0),this.v.setTripleAt(t-n+r,e+i,t-n+r,e+i,t-n+o,e+i,5,!0),this.v.setTripleAt(t+n-r,e+i,t+n-o,e+i,t+n-r,e+i,6,!0),this.v.setTripleAt(t+n,e+i-r,t+n,e+i-r,t+n,e+i-o,7,!0)):(this.v.setTripleAt(t-n,e-i,t-n+o,e-i,t-n,e-i,1,!0),this.v.setTripleAt(t-n,e+i,t-n,e+i-o,t-n,e+i,2,!0),this.v.setTripleAt(t+n,e+i,t+n-o,e+i,t+n,e+i,3,!0)))},getValue:function(t){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:n},extendPrototype([DynamicPropertyContainer],t),t}(),g={};return g.getShapeProp=c,g.getConstructorFunction=u,g.getKeyframedConstructorFunction=d,g}(),ShapeModifiers=function(){function t(t,e){i[t]||(i[t]=e)}function e(t,e,n){return new i[t](e,n)}var n={},i={};return n.registerModifier=t,n.getModifier=e,n}();ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollection_pool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,n,i,r){var o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var a,s,l=[],c=o.length;for(a=0;a<c;a+=1)if(s=o[a],s.e*r<i||s.s*r>i+n);else{var u,d;u=s.s*r<=i?0:(s.s*r-i)/n,d=s.e*r>=i+n?1:(s.e*r-i)/n,l.push([u,d])}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,n=t.length;for(e=0;e<n;e+=1)segments_length_pool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,n;if(this._mdf||t){var i=this.o.v%360/360;if(i<0&&(i+=1),e=(this.s.v>1?1:this.s.v<0?0:this.s.v)+i,n=(this.e.v>1?1:this.e.v<0?0:this.e.v)+i,e>n){var r=e;e=n,n=r}e=1e-4*Math.round(1e4*e),n=1e-4*Math.round(1e4*n),this.sValue=e,this.eValue=n}else e=this.sValue,n=this.eValue;var o,a,s,l,c,u,d,h=this.shapes.length,f=0;if(n===e)for(a=0;a<h;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection;else if(1===n&&0===e||0===n&&1===e){if(this._mdf)for(a=0;a<h;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var p,m,g=[];for(a=0;a<h;a+=1)if(p=this.shapes[a],p.shape._mdf||this._mdf||t||2===this.m){if(o=p.shape.paths,l=o._length,d=0,!p.shape._mdf&&p.pathsData.length)d=p.totalShapeLength;else{for(c=this.releasePathsData(p.pathsData),s=0;s<l;s+=1)u=bez.getSegmentsLength(o.shapes[s]),c.push(u),d+=u.totalLength;p.totalShapeLength=d,p.pathsData=c}f+=d,p.shape._mdf=!0}else p.shape.paths=p.localShapeCollection;var v,y=e,E=n,b=0;for(a=h-1;a>=0;a-=1)if(p=this.shapes[a],p.shape._mdf){for(m=p.localShapeCollection,m.releaseShapes(),2===this.m&&h>1?(v=this.calculateShapeEdges(e,n,p.totalShapeLength,b,f),b+=p.totalShapeLength):v=[[y,E]],l=v.length,s=0;s<l;s+=1){y=v[s][0],E=v[s][1],g.length=0,E<=1?g.push({s:p.totalShapeLength*y,e:p.totalShapeLength*E}):y>=1?g.push({s:p.totalShapeLength*(y-1),e:p.totalShapeLength*(E-1)}):(g.push({s:p.totalShapeLength*y,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(E-1)}));var _=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1){var C=p.shape.paths.shapes[p.shape.paths._length-1];if(C.c){var T=_.pop();this.addPaths(_,m),_=this.addShapes(p,g[1],T)}else this.addPaths(_,m),_=this.addShapes(p,g[1])}this.addPaths(_,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)e.addShape(t[n])},TrimModifier.prototype.addSegment=function(t,e,n,i,r,o,a){r.setXYAt(e[0],e[1],"o",o),r.setXYAt(n[0],n[1],"i",o+1),a&&r.setXYAt(t[0],t[1],"v",o),r.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,n,i){e.setXYAt(t[1],t[5],"o",n),e.setXYAt(t[2],t[6],"i",n+1),i&&e.setXYAt(t[0],t[4],"v",n),e.setXYAt(t[3],t[7],"v",n+1)},TrimModifier.prototype.addShapes=function(t,e,n){var i,r,o,a,s,l,c,u,d=t.pathsData,h=t.shape.paths.shapes,f=t.shape.paths._length,p=0,m=[],g=!0;for(n?(s=n._length,u=n._length):(n=shape_pool.newElement(),s=0,u=0),m.push(n),i=0;i<f;i+=1){for(l=d[i].lengths,n.c=h[i].c,o=h[i].c?l.length:l.length+1,r=1;r<o;r+=1)if(a=l[r-1],p+a.addedLength<e.s)p+=a.addedLength,n.c=!1;else{if(p>e.e){n.c=!1;break}e.s<=p&&e.e>=p+a.addedLength?(this.addSegment(h[i].v[r-1],h[i].o[r-1],h[i].i[r],h[i].v[r],n,s,g),g=!1):(c=bez.getNewSegment(h[i].v[r-1],h[i].v[r],h[i].o[r-1],h[i].i[r],(e.s-p)/a.addedLength,(e.e-p)/a.addedLength,l[r-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1),p+=a.addedLength,s+=1}if(h[i].c&&l.length){if(a=l[r-1],p<=e.e){var v=l[r-1].addedLength;e.s<=p&&e.e>=p+v?(this.addSegment(h[i].v[r-1],h[i].o[r-1],h[i].i[0],h[i].v[0],n,s,g),g=!1):(c=bez.getNewSegment(h[i].v[r-1],h[i].v[0],h[i].o[r-1],h[i].i[0],(e.s-p)/v,(e.e-p)/v,l[r-1]),this.addSegmentFromArray(c,n,s,g),g=!1,n.c=!1)}else n.c=!1;p+=a.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[u][0],n.v[u][1],"i",u),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>e.e)break;i<f-1&&(n=shape_pool.newElement(),g=!0,m.push(n),s=0)}return m},ShapeModifiers.registerModifier("tm",TrimModifier),extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var n=shape_pool.newElement();n.c=t.c;var i,r,o,a,s,l,c,u,d,h,f,p,m,g=t._length,v=0;for(i=0;i<g;i+=1)r=t.v[i],a=t.o[i],o=t.i[i],r[0]===a[0]&&r[1]===a[1]&&r[0]===o[0]&&r[1]===o[1]?0!==i&&i!==g-1||t.c?(s=0===i?t.v[g-1]:t.v[i-1],l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)),c=l?Math.min(l/2,e)/l:0,u=p=r[0]+(s[0]-r[0])*c,d=m=r[1]-(r[1]-s[1])*c,h=u-(u-r[0])*roundCorner,f=d-(d-r[1])*roundCorner,n.setTripleAt(u,d,h,f,p,m,v),v+=1,s=i===g-1?t.v[0]:t.v[i+1],l=Math.sqrt(Math.pow(r[0]-s[0],2)+Math.pow(r[1]-s[1],2)),c=l?Math.min(l/2,e)/l:0,u=h=r[0]+(s[0]-r[0])*c,d=f=r[1]+(s[1]-r[1])*c,p=u-(u-r[0])*roundCorner,m=d-(d-r[1])*roundCorner,n.setTripleAt(u,d,h,f,p,m,v),v+=1):(n.setTripleAt(r[0],r[1],a[0],a[1],o[0],o[1],v),v+=1):(n.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1);return n},RoundCornersModifier.prototype.processShapes=function(t){var e,n,i,r,o=this.shapes.length,a=this.rd.v;if(0!==a){var s,l;for(n=0;n<o;n+=1){if(s=this.shapes[n],s.shape.paths,l=s.localShapeCollection,s.shape._mdf||this._mdf||t)for(l.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,r=s.shape.paths._length,i=0;i<r;i+=1)l.addShape(this.processPath(e[i],a));s.shape.paths=s.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)},ShapeModifiers.registerModifier("rd",RoundCornersModifier),extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,n,i,r,o){var a=o?-1:1,s=i.s.v[0]+(1-i.s.v[0])*(1-r),l=i.s.v[1]+(1-i.s.v[1])*(1-r);t.translate(i.p.v[0]*a*r,i.p.v[1]*a*r,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*a*r),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/s:s,o?1/l:l),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,n,i){this.elem=t,this.arr=e,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[n]);for(var r=0;n>0;)n-=1,this._elements.unshift(e[n]),r+=1;this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=(t.length,JSON.parse(JSON.stringify(t)));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)t[n]._render=e,"gr"===t[n].ty&&this.changeGroupRender(t[n].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,n,i,r,o;if(this._mdf||t){var a=Math.ceil(this.c.v);if(this._groups.length<a){for(;this._groups.length<a;){var s={it:this.cloneElements(this._elements),ty:"gr"};s.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,s),this._groups.splice(0,0,s),this._currentCopies+=1}this.elem.reloadShapes()}o=0;var l;for(i=0;i<=this._groups.length-1;i+=1)l=o<a,this._groups[i]._render=l,this.changeGroupRender(this._groups[i].it,l),o+=1;this._currentCopies=a;var c=this.o.v,u=c%1,d=c>0?Math.floor(c):Math.ceil(c),h=(this.tr.v.props,this.pMatrix.props),f=this.rMatrix.props,p=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m=0;if(c>0){for(;m<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),m+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),m+=u)}else if(c<0){for(;m>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),m-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),m-=u)}i=1===this.data.m?0:this._currentCopies-1,r=1===this.data.m?1:-1,o=this._currentCopies;for(var g,v;o;){if(e=this.elemsData[i].it,n=e[e.length-1].transform.mProps.v.props,v=n.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==m){for((0!==i&&1===r||i!==this._currentCopies-1&&-1===r)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(p[0],p[1],p[2],p[3],p[4],p[5],p[6],p[7],p[8],p[9],p[10],p[11],p[12],p[13],p[14],p[15]),this.matrix.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),g=0;g<v;g+=1)n[g]=this.matrix.props[g];this.matrix.reset()}else for(this.matrix.reset(),g=0;g<v;g+=1)n[g]=this.matrix.props[g];m+=1,o-=1,i+=r}}else for(o=this._currentCopies,i=0,r=1;o;)e=this.elemsData[i].it,n=e[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,o-=1,i+=r},RepeaterModifier.prototype.addShape=function(){},ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shape_pool.release(this.shapes[t]);this._length=0},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,n=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<n;e+=1)"o"!=this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),GradientProperty.prototype.comparePoints=function(t,e){for(var n=0,i=this.o.length/2;n<i;){if(Math.abs(t[4*n]-t[4*e+2*n])>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,n,i,r=4*this.data.p;for(e=0;e<r;e+=1)n=e%4==0?100:255,i=Math.round(this.prop.v[e]*n),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=4*this.data.p;e<r;e+=1)n=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);var buildShapeString=function(t,e,n,i){if(0===e)return"";var r,o=t.o,a=t.i,s=t.v,l=" M"+i.applyToPointStringified(s[0][0],s[0][1]);for(r=1;r<e;r+=1)l+=" C"+i.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+i.applyToPointStringified(a[r][0],a[r][1])+" "+i.applyToPointStringified(s[r][0],s[r][1]);return n&&e&&(l+=" C"+i.applyToPointStringified(o[r-1][0],o[r-1][1])+" "+i.applyToPointStringified(a[0][0],a[0][1])+" "+i.applyToPointStringified(s[0][0],s[0][1]),l+="z"),l},ImagePreloader=function(){function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function e(t,e,n){var i="";if(t.e)i=t.p;else if(e){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),i=e+r}else i=n,i+=t.u?t.u:"",i+=t.p;return i}function n(t){var n=e(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded.bind(this),!1),i.addEventListener("error",function(){r.img=c,this._imageLoaded()}.bind(this),!1),i.src=n;var r={img:i,assetData:t};return r}function i(t,e){this.imagesLoadedCb=e;var n,i=t.length;for(n=0;n<i;n+=1)t[n].layers||(this.totalImages+=1,this.images.push(this._createImageData(t[n])))}function r(t){this.path=t||""}function o(t){this.assetsPath=t||""}function a(t){for(var e=0,n=this.images.length;e<n;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}}function s(){this.imagesLoadedCb=null,this.images.length=0}function l(){return this.totalImages===this.loadedAssets}var c=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();return function(){this.loadAssets=i,this.setAssetsPath=o,this.setPath=r,this.loaded=l,this.destroy=s,this.getImage=a,this._createImageData=n,this._imageLoaded=t,this.assetsPath="",this.path="",this.totalImages=0,this.loadedAssets=0,this.imagesLoadedCb=null,this.images=[]}}(),featureSupport=function(){var t={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),t}(),filtersFactory=function(){function t(t){var e=createNS("filter");return e.setAttribute("id",t),e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%"),e}function e(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}var n={};return n.createFilter=t,n.createAlphaToLuminanceFilter=e,n}(),assetLoader=function(){function t(t){return t.response&&"object"==typeof t.response?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):void 0}function e(e,n,i){var r,o=new XMLHttpRequest;o.open("GET",e,!0);try{o.responseType="json"}catch(a){}o.send(),o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status)r=t(o),n(r);else try{r=t(o),n(r)}catch(a){i&&i(a)}}}return{load:e}}();TextAnimatorProperty.prototype.searchProperties=function(){var t,e,n=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<n;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:this._textData.p.r,m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var n,i,r,o,a,s,l,c,u,d,h,f,p,m,g,v,y,E,b,_=this._moreOptions.alignment.v,C=this._animatorsData,T=this._textData,I=this.mHelper,D=this._renderType,$=this.renderedLetters.length,O=(this.data,t.l);if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var w=b.v;this._pathData.r&&(w=w.reverse()),a={tLength:0,segments:[]},o=w._length-1;var R;for(v=0,r=0;r<o;r+=1)R=bez.buildBezierData(w.v[r],w.v[r+1],[w.o[r][0]-w.v[r][0],w.o[r][1]-w.v[r][1]],[w.i[r+1][0]-w.v[r+1][0],w.i[r+1][1]-w.v[r+1][1]]),a.tLength+=R.segmentLength,a.segments.push(R),v+=R.segmentLength;r=o,b.v.c&&(R=bez.buildBezierData(w.v[r],w.v[0],[w.o[r][0]-w.v[r][0],w.o[r][1]-w.v[r][1]],[w.i[0][0]-w.v[0][0],w.i[0][1]-w.v[0][1]]),a.tLength+=R.segmentLength,a.segments.push(R),v+=R.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,s=this._pathData.f.v,h=0,d=1,c=0,u=!0,m=a.segments,s<0&&b.v.c)for(a.tLength<Math.abs(s)&&(s=-Math.abs(s)%a.tLength),h=m.length-1,p=m[h].points,d=p.length-1;s<0;)s+=p[d].partialLength,(d-=1)<0&&(h-=1,p=m[h].points,d=p.length-1);p=m[h].points,f=p[d-1],l=p[d],g=l.partialLength}o=O.length,n=0,i=0;var k,x,S,A,N,P=1.2*t.finalSize*.714,M=!0;A=C.length;var K,L,F,B,j,V,H,U,z,G,q,W,Y,X=-1,J=s,Z=h,Q=d,tt=-1,et=0,nt="",it=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,ot=0,at=2===t.j?-.5:-1,st=0,lt=!0;for(r=0;r<o;r+=1)if(O[r].n){for(rt&&(rt+=ot);st<r;)O[st].animatorJustifyOffset=rt,st+=1;rt=0,lt=!0}else{for(S=0;S<A;S+=1)k=C[S].a,k.t.propType&&(lt&&2===t.j&&(ot+=k.t.v*at),x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),K.length?rt+=k.t.v*K[0]*at:rt+=k.t.v*K*at);lt=!1}for(rt&&(rt+=ot);st<r;)O[st].animatorJustifyOffset=rt,st+=1}for(r=0;r<o;r+=1){if(I.reset(),j=1,O[r].n)n=0,i+=t.yOffset,i+=M?1:0,s=J,M=!1,et=0,this._hasMaskedPath&&(h=Z,d=Q,p=m[h].points,f=p[d-1],l=p[d],g=l.partialLength,c=0),Y=G=W=nt="",it=this.defaultPropsArray;else{if(this._hasMaskedPath){if(tt!==O[r].line){switch(t.j){case 1:s+=v-t.lineWidths[O[r].line];break;case 2:s+=(v-t.lineWidths[O[r].line])/2}tt=O[r].line}X!==O[r].ind&&(O[X]&&(s+=O[X].extra),s+=O[r].an/2,X=O[r].ind),s+=_[0]*O[r].an/200;var ct=0;for(S=0;S<A;S+=1)k=C[S].a,k.p.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),K.length?ct+=k.p.v[0]*K[0]:ct+=k.p.v[0]*K),k.a.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),K.length?ct+=k.a.v[0]*K[0]:ct+=k.a.v[0]*K);for(u=!0;u;)c+g>=s+ct||!p?(y=(s+ct-c)/l.partialLength,F=f.point[0]+(l.point[0]-f.point[0])*y,B=f.point[1]+(l.point[1]-f.point[1])*y,I.translate(-_[0]*O[r].an/200,-_[1]*P/100),u=!1):p&&(c+=l.partialLength,d+=1,d>=p.length&&(d=0,h+=1,m[h]?p=m[h].points:b.v.c?(d=0,h=0,p=m[h].points):(c-=l.partialLength,p=null)),p&&(f=l,l=p[d],g=l.partialLength));L=O[r].an/2-O[r].add,I.translate(-L,0,0)}else L=O[r].an/2-O[r].add,I.translate(-L,0,0),I.translate(-_[0]*O[r].an/200,-_[1]*P/100,0);for(et+=O[r].l/2,S=0;S<A;S+=1)k=C[S].a,k.t.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),0===n&&0===t.j||(this._hasMaskedPath?K.length?s+=k.t.v*K[0]:s+=k.t.v*K:K.length?n+=k.t.v*K[0]:n+=k.t.v*K));for(et+=O[r].l/2,t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&(V=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(U=[t.fc[0],t.fc[1],t.fc[2]]),S=0;S<A;S+=1)k=C[S].a,k.a.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),K.length?I.translate(-k.a.v[0]*K[0],-k.a.v[1]*K[1],k.a.v[2]*K[2]):I.translate(-k.a.v[0]*K,-k.a.v[1]*K,k.a.v[2]*K));for(S=0;S<A;S+=1)k=C[S].a,k.s.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),K.length?I.scale(1+(k.s.v[0]-1)*K[0],1+(k.s.v[1]-1)*K[1],1):I.scale(1+(k.s.v[0]-1)*K,1+(k.s.v[1]-1)*K,1));for(S=0;S<A;S+=1){if(k=C[S].a,x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),k.sk.propType&&(K.length?I.skewFromAxis(-k.sk.v*K[0],k.sa.v*K[1]):I.skewFromAxis(-k.sk.v*K,k.sa.v*K)),k.r.propType&&(K.length?I.rotateZ(-k.r.v*K[2]):I.rotateZ(-k.r.v*K)),k.ry.propType&&(K.length?I.rotateY(k.ry.v*K[1]):I.rotateY(k.ry.v*K)),k.rx.propType&&(K.length?I.rotateX(k.rx.v*K[0]):I.rotateX(k.rx.v*K)),k.o.propType&&(K.length?j+=(k.o.v*K[0]-j)*K[0]:j+=(k.o.v*K-j)*K),t.strokeWidthAnim&&k.sw.propType&&(K.length?H+=k.sw.v*K[0]:H+=k.sw.v*K),t.strokeColorAnim&&k.sc.propType)for(z=0;z<3;z+=1)K.length?V[z]=V[z]+(k.sc.v[z]-V[z])*K[0]:V[z]=V[z]+(k.sc.v[z]-V[z])*K;if(t.fillColorAnim&&t.fc){if(k.fc.propType)for(z=0;z<3;z+=1)K.length?U[z]=U[z]+(k.fc.v[z]-U[z])*K[0]:U[z]=U[z]+(k.fc.v[z]-U[z])*K;k.fh.propType&&(U=K.length?addHueToRGB(U,k.fh.v*K[0]):addHueToRGB(U,k.fh.v*K)),k.fs.propType&&(U=K.length?addSaturationToRGB(U,k.fs.v*K[0]):addSaturationToRGB(U,k.fs.v*K)),k.fb.propType&&(U=K.length?addBrightnessToRGB(U,k.fb.v*K[0]):addBrightnessToRGB(U,k.fb.v*K))}}for(S=0;S<A;S+=1)k=C[S].a,k.p.propType&&(x=C[S].s,K=x.getMult(O[r].anIndexes[S],T.a[S].s.totalChars),this._hasMaskedPath?K.length?I.translate(0,k.p.v[1]*K[0],-k.p.v[2]*K[1]):I.translate(0,k.p.v[1]*K,-k.p.v[2]*K):K.length?I.translate(k.p.v[0]*K[0],k.p.v[1]*K[1],-k.p.v[2]*K[2]):I.translate(k.p.v[0]*K,k.p.v[1]*K,-k.p.v[2]*K));if(t.strokeWidthAnim&&(G=H<0?0:H),t.strokeColorAnim&&(q="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),t.fillColorAnim&&t.fc&&(W="rgb("+Math.round(255*U[0])+","+Math.round(255*U[1])+","+Math.round(255*U[2])+")"),this._hasMaskedPath){if(I.translate(0,-t.ls),I.translate(0,_[1]*P/100+i,0),T.p.p){E=(l.point[1]-f.point[1])/(l.point[0]-f.point[0]);var ut=180*Math.atan(E)/Math.PI;l.point[0]<f.point[0]&&(ut+=180),I.rotate(-ut*Math.PI/180)}I.translate(F,B,0),s-=_[0]*O[r].an/200,O[r+1]&&X!==O[r+1].ind&&(s+=O[r].an/2,s+=t.tr/1e3*t.finalSize)}else{switch(I.translate(n,i,0),t.ps&&I.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:I.translate(O[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[O[r].line]),0,0);break;case 2:I.translate(O[r].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[O[r].line])/2,0,0)}I.translate(0,-t.ls),I.translate(L,0,0),I.translate(_[0]*O[r].an/200,_[1]*P/100,0),n+=O[r].l+t.tr/1e3*t.finalSize}"html"===D?nt=I.toCSS():"svg"===D?nt=I.to2dCSS():it=[I.props[0],I.props[1],I.props[2],I.props[3],I.props[4],I.props[5],I.props[6],I.props[7],I.props[8],I.props[9],I.props[10],I.props[11],I.props[12],I.props[13],I.props[14],I.props[15]],Y=j}$<=r?(N=new LetterProps(Y,G,q,W,nt,it),this.renderedLetters.push(N),$+=1,this.lettersChangedFlag=!0):(N=this.renderedLetters[r],this.lettersChangedFlag=N.update(Y,G,q,W,nt,it)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),LetterProps.prototype.update=function(t,e,n,i,r,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==r&&(this.m=r,this._mdf.m=!0,a=!0),!o.length||this.p[0]===o[0]&&this.p[1]===o[1]&&this.p[4]===o[4]&&this.p[5]===o[5]&&this.p[12]===o[12]&&this.p[13]===o[13]||(this.p=o,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,n=this.keysIndex;if(this.lock)return void this.setCurrentData(this.currentData);this.lock=!0,this._mdf=!1;var i,r=this.effectsSequence.length,o=t||this.data.d.k[this.keysIndex].s;for(i=0;i<r;i+=1)o=n!==this.keysIndex?this.effectsSequence[i](o,o.t):this.effectsSequence[i](this.currentData,o.t);e!==o&&this.setCurrentData(o),this.pv=this.v=this.currentData,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,n=0,i=t.length;n<=i-1&&(t[n].s,!(n===i-1||t[n+1].t>e));)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,n=FontManager.getCombinedCharacterCodes(),i=[],r=0,o=t.length;r<o;)e=t.charCodeAt(r),-1!==n.indexOf(e)?i[i.length-1]+=t.charAt(r):e>=55296&&e<=56319?(e=t.charCodeAt(r+1),e>=56320&&e<=57343?(i.push(t.substr(r,2)),++r):i.push(t.charAt(r))):i.push(t.charAt(r)),r+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,n,i,r,o,a,s,l=this.elem.globalData.fontManager,c=this.data,u=[],d=0,h=c.m.g,f=0,p=0,m=0,g=[],v=0,y=0,E=l.getFontByName(t.f),b=0,_=E.fStyle?E.fStyle.split(" "):[],C="normal",T="normal";n=_.length;for(e=0;e<n;e+=1)switch(_[e].toLowerCase()){case"italic":T="italic";break;case"bold":C="700";break;case"black":C="900";break;case"medium":C="500";break;case"regular":case"normal":C="400";break;case"light":case"thin":C="200"}t.fWeight=E.fWeight||C,t.fStyle=T,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),n=t.finalText.length,t.finalLineHeight=t.lh;var I,D=t.tr/1e3*t.finalSize;if(t.sz)for(var $,O,w=!0,R=t.sz[0],k=t.sz[1];w;){O=this.buildFinalText(t.t),$=0,v=0,n=O.length,D=t.tr/1e3*t.finalSize;var x=-1;for(e=0;e<n;e+=1)I=O[e].charCodeAt(0),i=!1," "===O[e]?x=e:13!==I&&3!==I||(v=0,i=!0,$+=t.finalLineHeight||1.2*t.finalSize),l.chars?(s=l.getCharData(O[e],E.fStyle,E.fFamily),b=i?0:s.w*t.finalSize/100):b=l.measureText(O[e],t.f,t.finalSize),v+b>R&&" "!==O[e]?(-1===x?n+=1:e=x,$+=t.finalLineHeight||1.2*t.finalSize,O.splice(e,x===e?1:0,"\r"),x=-1,v=0):(v+=b,v+=D);$+=E.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&k<$?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=O,n=t.finalText.length,w=!1)}v=-D,b=0;var S,A=0;for(e=0;e<n;e+=1)if(i=!1,S=t.finalText[e],I=S.charCodeAt(0)," "===S?r=" ":13===I||3===I?(A=0,g.push(v),y=v>y?v:y,v=-2*D,r="",i=!0,m+=1):r=t.finalText[e],l.chars?(s=l.getCharData(S,E.fStyle,l.getFontByName(t.f).fFamily),b=i?0:s.w*t.finalSize/100):b=l.measureText(r,t.f,t.finalSize)," "===S?A+=b+D:(v+=b+D+A,A=0),u.push({l:b,an:b,add:f,n:i,anIndexes:[],val:r,line:m,animatorJustifyOffset:0}),2==h){if(f+=b,""===r||" "===r||e===n-1){for(""!==r&&" "!==r||(f-=b);p<=e;)u[p].an=f,u[p].ind=d,u[p].extra=b,p+=1;d+=1,f=0}}else if(3==h){if(f+=b,""===r||e===n-1){for(""===r&&(f-=b);p<=e;)u[p].an=f,u[p].ind=d,u[p].extra=b,p+=1;f=0,d+=1}}else u[d].ind=d,u[d].extra=0,d+=1;if(t.l=u,y=v>y?v:y,g.push(v),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=y,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var N,P,M=c.a;a=M.length;var K,L,F=[];for(o=0;o<a;o+=1){for(N=M[o],N.a.sc&&(t.strokeColorAnim=!0),N.a.sw&&(t.strokeWidthAnim=!0),(N.a.fc||N.a.fh||N.a.fs||N.a.fb)&&(t.fillColorAnim=!0),L=0,K=N.s.b,e=0;e<n;e+=1)P=u[e],P.anIndexes[o]=L,(1==K&&""!==P.val||2==K&&""!==P.val&&" "!==P.val||3==K&&(P.n||" "==P.val||e==n-1)||4==K&&(P.n||e==n-1))&&(1===N.s.rn&&F.push(L),L+=1);c.a[o].s.totalChars=L;var B,j=-1;if(1===N.s.rn)for(e=0;e<n;e+=1)P=u[e],j!=P.anIndexes[o]&&(j=P.anIndexes[o],B=F.splice(Math.floor(Math.random()*F.length),1)[0]),P.anIndexes[o]=B}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=E.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===undefined?this.keysIndex:e;var n=this.copyData({},this.data.d.k[e].s);n=this.copyData(n,t),this.data.d.k[e].s=n,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){function t(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function e(e,n,i){return new t(e,n,i)}var n=Math.max,i=Math.min,r=Math.floor;return t.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e=BezierFactory.getBezierEasing(this.ne.v/100,0,1-this.xe.v/100,1).get,o=0,a=this.finalS,s=this.finalE,l=this.data.sh;if(2==l)o=s===a?t>=s?1:0:n(0,i(.5/(s-a)+(t-a)/(s-a),1)),o=e(o);else if(3==l)o=s===a?t>=s?0:1:1-n(0,i(.5/(s-a)+(t-a)/(s-a),1)),o=e(o);else if(4==l)s===a?o=0:(o=n(0,i(.5/(s-a)+(t-a)/(s-a),1)),o<.5?o*=2:o=1-2*(o-.5)),o=e(o);else if(5==l){if(s===a)o=0;else{var c=s-a;t=i(n(0,t+.5-a),s-a);var u=-c/2+t,d=c/2;o=Math.sqrt(1-u*u/(d*d))}o=e(o)}else 6==l?(s===a?o=0:(t=i(n(0,t+.5-a),s-a),o=(1+Math.cos(Math.PI+2*Math.PI*t/(s-a)))/2),o=e(o)):(t>=r(a)&&(o=t-a<0?1-(a-t):n(0,i(s-t,1))),o=e(o));return o*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/e,i=this.s.v/e+n,r=this.e.v/e+n;if(i>r){var o=i;i=r,r=o}this.finalS=i,this.finalE=r}},extendPrototype([DynamicPropertyContainer],t),{getTextSelectorProp:e}}(),pool_factory=function(){return function(t,e,n,i){function r(){var t;return a?(a-=1,t=l[a]):t=e(),t}function o(t){a===s&&(l=pooling["double"](l),s*=2),n&&n(t),l[a]=t,a+=1}var a=0,s=t,l=createSizedArray(s);return{newElement:r,release:o}}}(),pooling=function(){function t(t){return t.concat(createSizedArray(t.length))}return{"double":t}}(),point_pool=function(){function t(){return createTypedArray("float32",2)}return pool_factory(8,t)}(),shape_pool=function(){function t(){return new ShapePath}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)point_pool.release(t.v[e]),point_pool.release(t.i[e]),point_pool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function n(t){var e,n=i.newElement(),r=t._length===undefined?t.v.length:t._length;n.setLength(r),n.c=t.c;for(e=0;e<r;e+=1)n.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return n}var i=pool_factory(4,t,e);return i.clone=n,i}(),shapeCollection_pool=function(){function t(){var t;return i?(i-=1,t=o[i]):t=new ShapeCollection,t}function e(t){var e,n=t._length;for(e=0;e<n;e+=1)shape_pool.release(t.shapes[e]);t._length=0,i===r&&(o=pooling["double"](o),r*=2),o[i]=t,i+=1}var n={newShapeCollection:t,release:e},i=0,r=4,o=createSizedArray(r);return n}(),segments_length_pool=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,n=t.lengths.length;for(e=0;e<n;e+=1)bezier_length_pool.release(t.lengths[e]);t.lengths.length=0}return pool_factory(8,t,e)}(),bezier_length_pool=function(){function t(){return{addedLength:0,percents:createTypedArray("float32",defaultCurveSegments),lengths:createTypedArray("float32",defaultCurveSegments)}}return pool_factory(8,t)}();BaseRenderer.prototype.checkLayers=function(t){var e,n,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e--)this.elements[e]||(n=this.layers[e],n.ip-n.st<=t-this.layers[e].st&&n.op-n.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 13:return this.createCamera(t)}return this.createNull(t)},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,n,i=t.length,r=this.layers.length;for(e=0;e<i;e+=1)for(n=0;n<r;){if(this.layers[n].id==t[e].id){this.layers[n]=t[e];break}n+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,n){for(var i=this.elements,r=this.layers,o=0,a=r.length;o<a;)r[o].ind==e&&(i[o]&&!0!==i[o]?(n.push(i[o]),i[o].setAsParent(),r[o].parent!==undefined?this.buildElementParenting(t,r[o].parent,n):t.setHierarchy(n)):(this.buildItem(o),this.addPendingElement(t))),o+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length;for(e=0;e<n;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}},extendPrototype([BaseRenderer],SVGRenderer),SVGRenderer.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRenderer.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRenderer.prototype.createText=function(t){return new SVGTextElement(t,this.globalData,this)},SVGRenderer.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},SVGRenderer.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRenderer.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)"),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.focusable!==undefined&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var r=createElementID();n.setAttribute("id",r),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+r+")"),e.appendChild(n),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRenderer.prototype.updateContainerSize=function(){},SVGRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){e[t]=!0;var n=this.createItem(this.layers[t]);e[t]=n,expressionsPlugin&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?n.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(n)))}},SVGRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,n=this.elements.length;e<n;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRenderer.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,n=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=n-1;e>=0;e--)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<n;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRenderer.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){for(var i,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement()&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(n,i):this.layerElement.appendChild(n)}},SVGRenderer.prototype.hide=function(){this.layerElement.style.display="none"},SVGRenderer.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseRenderer],CanvasRenderer),CanvasRenderer.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRenderer.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRenderer.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},CanvasRenderer.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRenderer.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRenderer.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13]){if(!this.renderConfig.clearCanvas)return void this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13]);this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var n=this.contextData.cTr.props;this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}},CanvasRenderer.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRenderer.prototype.reset=function(){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();this.contextData.reset()},CanvasRenderer.prototype.save=function(t){if(!this.renderConfig.clearCanvas)return void this.canvasContext.save();t&&this.canvasContext.save();var e=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var n,i=this.contextData.saved[this.contextData.cArrPos];for(n=0;n<16;n+=1)i[n]=e[n];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1},CanvasRenderer.prototype.restore=function(t){if(!this.renderConfig.clearCanvas)return void this.canvasContext.restore();t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,n=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=n[e];this.canvasContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),n=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=n,this.globalData.currentGlobalAlpha!==n&&(this.canvasContext.globalAlpha=n,this.globalData.currentGlobalAlpha=n)},CanvasRenderer.prototype.configAnimation=function(t){this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),this.animationItem.container.style.width="100%",this.animationItem.container.style.height="100%",this.animationItem.container.style.transformOrigin=this.animationItem.container.style.mozTransformOrigin=this.animationItem.container.style.webkitTransformOrigin=this.animationItem.container.style["-webkit-transform"]="0px 0px 0px",this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className)):this.canvasContext=this.renderConfig.context,this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){this.reset();var t,e;this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr);var n,i;if(-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var r=this.renderConfig.preserveAspectRatio.split(" "),o=r[1]||"meet",a=r[0]||"xMidYMid",s=a.substr(0,4),l=a.substr(4);n=t/e,i=this.transformCanvas.w/this.transformCanvas.h,i>n&&"meet"===o||i<n&&"slice"===o?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===s&&(i<n&&"meet"===o||i>n&&"slice"===o)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(i<n&&"meet"===o||i>n&&"slice"===o)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(i>n&&"meet"===o||i<n&&"slice"===o)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(i>n&&"meet"===o||i<n&&"slice"===o)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"==this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRenderer.prototype.destroy=function(){this.renderConfig.clearCanvas&&(this.animationItem.wrapper.innerHTML="");var t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRenderer.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),n=0;n<i;n++)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(t-this.layers[n].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRenderer.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!=this.layers[t].ty){var n=this.createItem(this.layers[t],this,this.globalData);e[t]=n,n.initExpressions()}},CanvasRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},CanvasRenderer.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRenderer.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([BaseRenderer],HybridRenderer),HybridRenderer.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRenderer.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){this.pendingElements.pop().checkParenting()}},HybridRenderer.prototype.appendElementInPos=function(t,e){var n=t.getBaseElement();if(n){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(n,e);else if(this.threeDElements)this.addTo3dContainer(n,e);else{for(var r,o,a,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(o=this.elements[s],a=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),r=a||r),s+=1;r?i.ddd&&this.supports3d||this.layerElement.insertBefore(n,r):i.ddd&&this.supports3d||this.layerElement.appendChild(n)}}},HybridRenderer.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRenderer.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextElement(t,this.globalData,this)},HybridRenderer.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRenderer.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},HybridRenderer.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRenderer.prototype.createNull=SVGRenderer.prototype.createNull,HybridRenderer.prototype.getThreeDContainerByPos=function(t){for(var e=0,n=this.threeDElements.length;e<n;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}},HybridRenderer.prototype.createThreeDContainer=function(t,e){var n=createTag("div");styleDiv(n);var i=createTag("div");styleDiv(i),"3d"===e&&(n.style.width=this.globalData.compSize.w+"px",n.style.height=this.globalData.compSize.h+"px",n.style.transformOrigin=n.style.mozTransformOrigin=n.style.webkitTransformOrigin="50% 50%",i.style.transform=i.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"),n.appendChild(i);var r={container:i,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(r),r},HybridRenderer.prototype.build3dContainers=function(){var t,e,n=this.layers.length,i="";for(t=0;t<n;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(n=this.threeDElements.length,t=n-1;t>=0;t--)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRenderer.prototype.addTo3dContainer=function(t,e){for(var n=0,i=this.threeDElements.length;n<i;){if(e<=this.threeDElements[n].endPos){for(var r,o=this.threeDElements[n].startPos;o<e;)this.elements[o]&&this.elements[o].getBaseElement&&(r=this.elements[o].getBaseElement()),o+=1;r?this.threeDElements[n].container.insertBefore(t,r):this.threeDElements[n].container.appendChild(t);break}n+=1}},HybridRenderer.prototype.configAnimation=function(t){var e=createTag("div"),n=this.animationItem.wrapper;e.style.width=t.w+"px",e.style.height=t.h+"px",this.resizerElem=e,styleDiv(e),e.style.transformStyle=e.style.webkitTransformStyle=e.style.mozTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),n.appendChild(e),e.style.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var r=createNS("defs");i.appendChild(r),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=r,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRenderer.prototype.destroy=function(){this.animationItem.wrapper.innerHTML="",this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t++)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRenderer.prototype.updateContainerSize=function(){var t,e,n,i,r=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight,a=r/o,s=this.globalData.compSize.w/this.globalData.compSize.h;s>a?(t=r/this.globalData.compSize.w,e=r/this.globalData.compSize.w,n=0,i=(o-this.globalData.compSize.h*(r/this.globalData.compSize.w))/2):(t=o/this.globalData.compSize.h,e=o/this.globalData.compSize.h,n=(r-this.globalData.compSize.w*(o/this.globalData.compSize.h))/2,i=0),this.resizerElem.style.transform=this.resizerElem.style.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+i+",0,1)"},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,n=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1)this.threeDElements[t].perspectiveElem.style.perspective=this.threeDElements[t].perspectiveElem.style.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(n,2))+"px"}},HybridRenderer.prototype.searchExtraCompositions=function(t){var e,n=t.length,i=createTag("div");for(e=0;e<n;e+=1)if(t[e].xt){var r=this.createComp(t[e],i,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,n=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e++)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&(this.viewData[e].invRect.setAttribute("x",-n.props[12]),this.viewData[e].invRect.setAttribute("y",-n.props[13])),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var r=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[e].filterId+")")),r.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,n){var i,r,o=" M"+e.v[0][0]+","+e.v[0][1];for(r=e._length,i=1;i<r;i+=1)o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&r>1&&(o+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),n.lastPath!==o){var a="";n.elem&&(e.c&&(a=t.inv?this.solidPath+o:o),n.elem.setAttribute("d",a)),n.lastPath=o}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==undefined&&this.comp.buildElementParenting(this,this.data.parent,[])}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var n,i=this.dynamicProperties.length;for(n=0;n<i;n+=1)(e||this._isParent&&"transform"===this.dynamicProperties[n].propType)&&(this.dynamicProperties[n].getValue(),this.dynamicProperties[n]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,n=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;n<i;){if(this.hierarchy[n].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}n+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),n=0;n<i;n+=1)t=this.hierarchy[n].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var n=!0,i=this.comp;n;)i.finalTransform?(i.data.hasMask&&e.splice(0,0,i.finalTransform),i=i.comp):n=!1;var r,o,a=e.length;for(r=0;r<a;r+=1)o=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-o[0],t[1]-o[1],0];return t},mHelper:new Matrix},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}},function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){(this.baseElement||this.layerElement).style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){(this.baseElement||this.layerElement).style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,n){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,e),this.setGradientOpacity(e,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var n=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var r,o,a,s=[];for(a=4*e.g.p,o=0;o<a;o+=4)r=createNS("stop"),i.appendChild(r),s.push(r);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+locationHref+"#"+n+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,r,o=createNS("mask"),a=createNS("path");o.appendChild(a);var s=createElementID(),l=createElementID();o.setAttribute("id",l);var c=createNS(1===t.t?"linearGradient":"radialGradient");c.setAttribute("id",s),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),r=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(i=4*t.g.p;i<r;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(n),u.push(n);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+locationHref+"#"+s+")"),this.of=c,this.ms=o,this.ost=u,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var SVGElementsRenderer=function(){function t(t){t.ty;switch(t.ty){case"fl":return i;case"gf":return o;case"gs":return r;case"st":return a;case"sh":case"el":case"rc":case"sr":return n;case"tr":return e}}function e(t,e,n){(n||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(n||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function n(t,e,n){var i,r,o,a,c,u,d,h,f,p,m,g=e.styles.length,v=e.lvl;for(u=0;u<g;u+=1){if(a=e.sh._mdf||n,e.styles[u].lvl<v){for(h=l.reset(),p=v-e.styles[u].lvl,m=e.transformers.length-1;!a&&p>0;)a=e.transformers[m].mProps._mdf||a,p--,m--;if(a)for(p=v-e.styles[u].lvl,m=e.transformers.length-1;p>0;)f=e.transformers[m].mProps.v.props,h.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),p--,m--}else h=s;if(d=e.sh.paths,r=d._length,a){for(o="",i=0;i<r;i+=1)(c=d.shapes[i])&&c._length&&(o+=buildShapeString(c,c._length,c.c,h));e.caches[u]=o}else o=e.caches[u];e.styles[u].d+=!0===t.hd?"":o,e.styles[u]._mdf=a||e.styles[u]._mdf}}function i(t,e,n){var i=e.style;(e.c._mdf||n)&&i.pElem.setAttribute("fill","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function r(t,e,n){o(t,e,n),a(t,e,n)}function o(t,e,n){var i=e.gf,r=e.g._hasOpacity,o=e.s.v,a=e.e.v;if(e.o._mdf||n){var s="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(s,e.o.v)}if(e.s._mdf||n){var l=1===t.t?"x1":"cx",c="x1"===l?"y1":"cy";i.setAttribute(l,o[0]),i.setAttribute(c,o[1]),r&&!e.g._collapsable&&(e.of.setAttribute(l,o[0]),e.of.setAttribute(c,o[1]))}var u,d,h,f;if(e.g._cmdf||n){u=e.cst;var p=e.g.c;for(h=u.length,d=0;d<h;d+=1)f=u[d],f.setAttribute("offset",p[4*d]+"%"),f.setAttribute("stop-color","rgb("+p[4*d+1]+","+p[4*d+2]+","+p[4*d+3]+")")}if(r&&(e.g._omdf||n)){var m=e.g.o;for(u=e.g._collapsable?e.cst:e.ost,h=u.length,d=0;d<h;d+=1)f=u[d],e.g._collapsable||f.setAttribute("offset",m[2*d]+"%"),f.setAttribute("stop-opacity",m[2*d+1])}if(1===t.t)(e.e._mdf||n)&&(i.setAttribute("x2",a[0]),i.setAttribute("y2",a[1]),r&&!e.g._collapsable&&(e.of.setAttribute("x2",a[0]),e.of.setAttribute("y2",a[1])));else{var g;if((e.s._mdf||e.e._mdf||n)&&(g=Math.sqrt(Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)),i.setAttribute("r",g),r&&!e.g._collapsable&&e.of.setAttribute("r",g)),e.e._mdf||e.h._mdf||e.a._mdf||n){g||(g=Math.sqrt(Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)));var v=Math.atan2(a[1]-o[1],a[0]-o[0]),y=e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v,E=g*y,b=Math.cos(v+e.a.v)*E+o[0],_=Math.sin(v+e.a.v)*E+o[1];i.setAttribute("fx",b),i.setAttribute("fy",_),r&&!e.g._collapsable&&(e.of.setAttribute("fx",b),e.of.setAttribute("fy",_))}}}function a(t,e,n){var i=e.style,r=e.d;r&&(r._mdf||n)&&r.dashStr&&(i.pElem.setAttribute("stroke-dasharray",r.dashStr),i.pElem.setAttribute("stroke-dashoffset",r.dashoffset[0])),e.c&&(e.c._mdf||n)&&i.pElem.setAttribute("stroke","rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||n)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||n)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}var s=new Matrix,l=new Matrix;return{createRenderFunction:t}}();ShapeTransformManager.prototype={addTransformSequence:function(t){var e,n=t.length,i="_";for(e=0;e<n;e+=1)i+=t[e].transform.key+"_";var r=this.sequences[i];return r||(r={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=r,this.sequenceList.push(r)),r},processSequence:function(t,e){for(var n=0,i=t.transforms.length,r=e;n<i&&!e;){if(t.transforms[n].transform.mProps._mdf){r=!0;break}n+=1}if(r){var o;for(t.finalTransform.reset(),n=i-1;n>=0;n-=1)o=t.transforms[n].transform.mProps.v.props,t.finalTransform.transform(o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],o[8],o[9],o[10],o[11],o[12],o[13],o[14],o[15])}t._mdf=r},processSequences:function(t){var e,n=this.sequenceList.length;for(e=0;e<n;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return"_"+this.transform_key_count++}},CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,n){this.globalData=e,this.comp=n,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,n,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var r=createNS("mask");r.setAttribute("id",this.layerId),r.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),r.appendChild(this.layerElement),i=r,this.globalData.defs.appendChild(r),featureSupport.maskType||1!=this.data.td||(r.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(this.layerElement),i=n,r.appendChild(n),n.setAttribute("filter","url("+locationHref+"#"+t+")"))}else if(2==this.data.td){var o=createNS("mask");o.setAttribute("id",this.layerId),o.setAttribute("mask-type","alpha");var a=createNS("g");o.appendChild(a),t=createElementID(),e=filtersFactory.createFilter(t);var s=createNS("feComponentTransfer");s.setAttribute("in","SourceGraphic"),e.appendChild(s);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),s.appendChild(l),this.globalData.defs.appendChild(e);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),a.setAttribute("filter","url("+locationHref+"#"+t+")"),a.appendChild(c),a.appendChild(this.layerElement),i=a,featureSupport.maskType||(o.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),a.appendChild(c),n.appendChild(this.layerElement),i=n,a.appendChild(n)),this.globalData.defs.appendChild(o)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var u=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var h=createElementID();if(u.setAttribute("id",h),u.appendChild(d),this.globalData.defs.appendChild(u),this.checkMasks()){var f=createNS("g");f.setAttribute("clip-path","url("+locationHref+"#"+h+")"),f.appendChild(this.layerElement),this.transformedElement=f,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+locationHref+"#"+h+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+locationHref+"#"+t+")")}},IShapeElement.prototype={addShapeToModifiers:function(t){var e,n=this.shapeModifiers.length;for(e=0;e<n;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(e=this.shapeModifiers.length,t=e-1;t>=0;t-=1)this.shapeModifiers[t].processShapes(this._isFirstFrame)}},lcEnum:{1:"butt",2:"round",3:"square"},ljEnum:{1:"miter",2:"round",3:"bevel"},searchProcessedElement:function(t){for(var e=this.processedElements,n=0,i=e.length;n<i;){if(e[n].elem===t)return e[n].pos;n+=1}return 0},addProcessedElement:function(t,e){for(var n=this.processedElements,i=n.length;i;)if(i-=1,n[i].elem===t)return void(n[i].pos=e);n.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}},ITextElement.prototype.initElement=function(t,e,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,n),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var n,i,r=e.length,o="";for(n=0;n<r;n+=1)i=e[n].ks.k,o+=buildShapeString(i,i.i.length,!0,t);return o},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,n,i,r){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[n])/2,0,0)}e.translate(i,r,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,n){this.initFrame(),this.initBaseData(t,e,n),this.initTransform(t,e,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},extendPrototype([SVGRenderer,ICompElement,SVGBaseElement],SVGCompElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextElement),SVGTextElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextElement.prototype.buildTextContents=function(t){for(var e=0,n=t.length,i=[],r="";e<n;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(r),r=""):r+=t[e],e+=1;return i.push(r),i},SVGTextElement.prototype.buildNewText=function(){var t,e,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var r=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",n.t);var a=n.l||[],s=!!this.globalData.fontManager.chars;e=a.length;var l,c,u=this.mHelper,d="",h=this.data.singleShape,f=0,p=0,m=!0,g=n.tr/1e3*n.finalSize;if(!h||s||n.sz){var v,y,E=this.textSpans.length;for(t=0;t<e;t+=1)s&&h&&0!==t||(l=E>t?this.textSpans[t]:createNS(s?"path":"text"),E<=t&&(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t]=l,this.layerElement.appendChild(l)),l.style.display="inherit"),u.reset(),u.scale(n.finalSize/100,n.finalSize/100),h&&(a[t].n&&(f=-g,p+=n.yOffset,p+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(n,u,a[t].line,f,p),f+=a[t].l||0,f+=g),s?(y=this.globalData.fontManager.getCharData(n.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily),v=y&&y.data||{},c=v.shapes?v.shapes[0].it:[],h?d+=this.createPathShape(u,c):l.setAttribute("d",this.createPathShape(u,c))):(h&&l.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),l.textContent=a[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));h&&l&&l.setAttribute("d",d)}else{var b=this.textContainer,_="start";switch(n.j){case 1:_="end";break;case 2:_="middle"}b.setAttribute("text-anchor",_),b.setAttribute("letter-spacing",g);var C=this.buildTextContents(n.finalText);for(e=C.length,p=n.ps?n.ps[1]+n.ascent:0,t=0;t<e;t+=1)l=this.textSpans[t]||createNS("tspan"),l.textContent=C[t],l.setAttribute("x",0),l.setAttribute("y",p),l.style.display="inherit",b.appendChild(l),this.textSpans[t]=l,p+=n.finalLineHeight;this.layerElement.appendChild(b)}for(;t<this.textSpans.length;)this.textSpans[t].style.display="none",t+=1;this._sizeChanged=!0},SVGTextElement.prototype.sourceRectAtTime=function(t){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextElement.prototype.renderInnerContent=function(){if(!this.data.singleShape&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;e=i.length;var r,o;for(t=0;t<e;t+=1)i[t].n||(r=n[t],o=this.textSpans[t],r._mdf.m&&o.setAttribute("transform",r.m),r._mdf.o&&o.setAttribute("opacity",r.o),r._mdf.sw&&o.setAttribute("stroke-width",r.sw),r._mdf.sc&&o.setAttribute("stroke",r.sc),r._mdf.fc&&o.setAttribute("fill",r.fc))}},extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,n,i,r=this.shapes.length,o=this.stylesList.length,a=[],s=!1;for(n=0;n<o;n+=1){for(i=this.stylesList[n],s=!1,a.length=0,t=0;t<r;t+=1)e=this.shapes[t],-1!==e.styles.indexOf(i)&&(a.push(e),s=e._isAnimated||s);a.length>1&&s&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var n,i=new SVGStyleData(t,e),r=i.pElem;if("st"===t.ty)n=new SVGStrokeStyleData(this,t,i);else if("fl"===t.ty)n=new SVGFillStyleData(this,t,i);else if("gf"===t.ty||"gs"===t.ty){var o="gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,t,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),r.setAttribute("mask","url("+locationHref+"#"+n.maskId+")"))}return"st"!==t.ty&&"gs"!==t.ty||(r.setAttribute("stroke-linecap",this.lcEnum[t.lc]||"round"),r.setAttribute("stroke-linejoin",this.ljEnum[t.lj]||"round"),r.setAttribute("fill-opacity","0"),1===t.lj&&r.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&r.setAttribute("fill-rule","evenodd"),t.ln&&r.setAttribute("id",t.ln),t.cl&&r.setAttribute("class",t.cl),t.bm&&(r.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var n=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(n,n.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,n){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var r=ShapePropertyFactory.getShapeProp(this,t,i,this),o=new SVGShapeData(e,n,r);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(t,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===e)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,n=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||n.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,n,i,r,o,a){var s,l,c,u,d,h,f=[].concat(o),p=t.length-1,m=[],g=[];for(s=p;s>=0;s-=1){if(h=this.searchProcessedElement(t[s]),h?e[s]=n[h-1]:t[s]._render=a,"fl"==t[s].ty||"st"==t[s].ty||"gf"==t[s].ty||"gs"==t[s].ty)h?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],r),t[s]._render&&i.appendChild(e[s].style.pElem),m.push(e[s].style);else if("gr"==t[s].ty){if(h)for(c=e[s].it.length,l=0;l<c;l+=1)e[s].prevViewData[l]=e[s].it[l];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,e[s].gr,r+1,f,a),t[s]._render&&i.appendChild(e[s].gr)}else"tr"==t[s].ty?(h||(e[s]=this.createTransformElement(t[s],i)),u=e[s].transform,f.push(u)):"sh"==t[s].ty||"rc"==t[s].ty||"el"==t[s].ty||"sr"==t[s].ty?(h||(e[s]=this.createShapeElement(t[s],f,r)),this.setElementStyles(e[s])):"tm"==t[s].ty||"rd"==t[s].ty||"ms"==t[s].ty?(h?(d=e[s],d.closed=!1):(d=ShapeModifiers.getModifier(t[s].ty),d.init(this,t[s]),e[s]=d,this.shapeModifiers.push(d)),g.push(d)):"rp"==t[s].ty&&(h?(d=e[s],d.closed=!0):(d=ShapeModifiers.getModifier(t[s].ty),e[s]=d,d.init(this,t,s,e),this.shapeModifiers.push(d),a=!1),g.push(d));this.addProcessedElement(t[s],s+1)}for(p=m.length,s=0;s<p;s+=1)m[s].closed=!0;for(p=g.length,s=0;s<p;s+=1)g[s].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,n=this.animatedContents.length;for(t=0;t<n;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",n[0]-e[0]+" 0 0 0 "+e[0]+" "+(n[1]-e[1])+" 0 0 0 "+e[1]+" "+(n[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+n+" 0")}},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=3==n?0:e,r=2==n?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+r);var o=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}},SVGStrokeEffect.prototype.initialize=function(){var t,e,n,i,r=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,n=0):(n=this.filterManager.effectElements[0].p.v-1,i=n+1),e=createNS("g"),e.setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1),n;n<i;n+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:n});if(3===this.filterManager.effectElements[10].p.v){var o=createNS("mask"),a=createElementID();o.setAttribute("id",a),o.setAttribute("mask-type","alpha"),o.appendChild(e),this.elem.globalData.defs.appendChild(o);var s=createNS("g");for(s.setAttribute("mask","url("+locationHref+"#"+a+")");r[0];)s.appendChild(r[0]);this.elem.layerElement.appendChild(s),this.masker=o,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(r=this.elem.layerElement.children||this.elem.layerElement.childNodes;r.length;)this.elem.layerElement.removeChild(r[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,n,i,r=this.paths.length;for(e=0;e<r;e+=1)if(-1!==this.paths[e].m&&(n=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||n.prop._mdf)&&i.setAttribute("d",n.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||n.prop._mdf)){var o;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)/100,l=i.getTotalLength();o="0 0 0 "+l*a+" ";var c,u=l*(s-a),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100,h=Math.floor(u/d);for(c=0;c<h;c+=1)o+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100+" ";o+="0 "+10*l+" 0 0"}else o="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v/100;i.setAttribute("stroke-dasharray",o)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var f=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bm_floor(255*f[0])+","+bm_floor(255*f[1])+","+bm_floor(255*f[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,r=i[0]+" "+n[0]+" "+e[0],o=i[1]+" "+n[1]+" "+e[1],a=i[2]+" "+n[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var n=createNS(t);return n.setAttribute("type","table"),e.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(t,e,n,i,r){for(var o,a,s=0,l=Math.min(t,e),c=Math.max(t,e),u=Array.call(null,{length:256}),d=0,h=r-i,f=e-t;s<=256;)o=s/256,a=o<=l?f<0?r:i:o>=c?f<0?i:r:i+h*Math.pow((o-t)/f,1/n),u[d++]=a,s+=256/255;return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,n=this.filterManager.effectElements;this.feFuncRComposed&&(t||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(e=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(e=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(e=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(e=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(e=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,n=_svgMatteSymbols.length;e<n;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var n=t.layerElement.parentNode;if(n){for(var i=n.children,r=0,o=i.length;r<o&&i[r]!==t.layerElement;)r+=1;var a;r<=o-2&&(a=i[r+1]);var s=createNS("use");s.setAttribute("href","#"+e),a?n.insertBefore(s,a):n.appendChild(s)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var r=t.globalData.defs;r.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(e,n),o.appendChild(e.layerElement),r.appendChild(o);var a=createNS("use");a.setAttribute("href","#"+n),i.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,n=0,i=e.length;n<i;)e[n]&&e[n].data.ind===t&&this.setElementAsMask(this.elem,e[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGEffects.prototype.renderFrame=function(t){var e,n=this.filters.length;for(e=0;e<n;e+=1)this.filters[e].renderFrame(t)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var n=0;for(n=this._length;n<t;n+=1)this.saved[n]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,n,i=t.getContext("2d"),r=this.img.width,o=this.img.height,a=r/o,s=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>s&&"xMidYMid slice"===l||a<s&&"xMidYMid slice"!==l?(n=o,e=n*s):(e=r,n=e/s),i.drawImage(this.img,(r-e)/2,(o-n)/2,e,n,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(t){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([CanvasRenderer,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,n=this.layers.length;for(e=n-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,n,i,r=this.element.finalTransform.mat,o=this.element.canvasContext,a=this.masksProperties.length;for(o.beginPath(),t=0;t<a;t++)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(o.moveTo(0,0),o.lineTo(this.element.globalData.compSize.w,0),o.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),o.lineTo(0,this.element.globalData.compSize.h),o.lineTo(0,0)),i=this.viewData[t].v,e=r.applyToPointArray(i.v[0][0],i.v[0][1],0),o.moveTo(e[0],e[1]);var s,l=i._length;for(s=1;s<l;s++)n=r.applyToTriplePoints(i.o[s-1],i.i[s],i.v[s]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=r.applyToTriplePoints(i.o[s-1],i.i[0],i.v[0]),o.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),o.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var n={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"==t.ty||"st"==t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(n.co="rgb("+bm_floor(i.c.v[0])+","+bm_floor(i.c.v[1])+","+bm_floor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"==t.ty||"gs"==t.ty){if(n.lc=this.lcEnum[t.lc]||"round",n.lj=this.ljEnum[t.lj]||"round",1==t.lj&&(n.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(n.wi=i.w.v),t.d){var r=new DashProperty(this,t.d,"canvas",this);i.d=r,i.d.k||(n.da=i.d.dashArray,n["do"]=i.d.dashoffset[0])}}else n.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(t){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,n=this.stylesList.length;for(e=0;e<n;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,n=t.length;for(e=0;e<n;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,n,i,r){var o,a,s,l,c,u,d=t.length-1,h=[],f=[],p=[].concat(r);for(o=d;o>=0;o-=1){if(l=this.searchProcessedElement(t[o]),l?e[o]=n[l-1]:t[o]._shouldRender=i,"fl"==t[o].ty||"st"==t[o].ty||"gf"==t[o].ty||"gs"==t[o].ty)l?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],p),h.push(e[o].style);else if("gr"==t[o].ty){if(l)for(s=e[o].it.length,a=0;a<s;a+=1)e[o].prevViewData[a]=e[o].it[a];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,i,p)}else"tr"==t[o].ty?(l||(u=this.createTransformElement(t[o]),e[o]=u),p.push(e[o]),this.addTransformToStyleList(e[o])):"sh"==t[o].ty||"rc"==t[o].ty||"el"==t[o].ty||"sr"==t[o].ty?l||(e[o]=this.createShapeElement(t[o])):"tm"==t[o].ty||"rd"==t[o].ty?(l?(c=e[o],c.closed=!1):(c=ShapeModifiers.getModifier(t[o].ty),c.init(this,t[o]),e[o]=c,this.shapeModifiers.push(c)),f.push(c)):"rp"==t[o].ty&&(l?(c=e[o],c.closed=!0):(c=ShapeModifiers.getModifier(t[o].ty),e[o]=c,c.init(this,t,o,e),this.shapeModifiers.push(c),i=!1),f.push(c));this.addProcessedElement(t[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(h),d=f.length,o=0;o<d;o+=1)f[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,n,i,r,o,a,s,l,c=this.stylesList.length,u=this.globalData.renderer,d=this.globalData.canvasContext;for(t=0;t<c;t+=1)if(l=this.stylesList[t],("st"!==(s=l.type)&&"gs"!==s||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(u.save(),o=l.elements,"st"===s||"gs"===s?(d.strokeStyle="st"===s?l.co:l.grd,d.lineWidth=l.wi,d.lineCap=l.lc,d.lineJoin=l.lj,d.miterLimit=l.ml||0):d.fillStyle="fl"===s?l.co:l.grd,u.ctxOpacity(l.coOp),"st"!==s&&"gs"!==s&&d.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),n=o.length,e=0;e<n;e+=1){for("st"!==s&&"gs"!==s||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l["do"])),a=o[e].trNodes,r=a.length,i=0;i<r;i+=1)"m"==a[i].t?d.moveTo(a[i].p[0],a[i].p[1]):"c"==a[i].t?d.bezierCurveTo(a[i].pts[0],a[i].pts[1],a[i].pts[2],a[i].pts[3],a[i].pts[4],a[i].pts[5]):d.closePath();"st"!==s&&"gs"!==s||(d.stroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==s&&"gs"!==s&&d.fill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(t,e,n,i){var r,o,a=e.length-1;for(o=t,r=a;r>=0;r-=1)"tr"==e[r].ty?(o=n[r].transform,this.renderShapeTransform(t,o)):"sh"==e[r].ty||"el"==e[r].ty||"rc"==e[r].ty||"sr"==e[r].ty?this.renderPath(e[r],n[r]):"fl"==e[r].ty?this.renderFill(e[r],n[r],o):"st"==e[r].ty?this.renderStroke(e[r],n[r],o):"gf"==e[r].ty||"gs"==e[r].ty?this.renderGradientFill(e[r],n[r],o):"gr"==e[r].ty?this.renderShape(o,e[r].it,n[r].it):e[r].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var n,i,r,o=t.trNodes,a=e.paths,s=a._length;o.length=0;var l=t.transforms.finalTransform;for(r=0;r<s;r+=1){var c=a.shapes[r];if(c&&c.v){for(i=c._length,n=1;n<i;n+=1)1===n&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),o.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});1===i&&o.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&i&&(o.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),o.push({t:"z"}))}}t.trNodes=o}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var n,i=e.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(e.styledShapes[n],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,n){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,n){var i=e.style;if(!i.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var r,o=this.globalData.canvasContext,a=e.s.v,s=e.e.v;if(1===t.t)r=o.createLinearGradient(a[0],a[1],s[0],s[1]);else var l=Math.sqrt(Math.pow(a[0]-s[0],2)+Math.pow(a[1]-s[1],2)),c=Math.atan2(s[1]-a[1],s[0]-a[0]),u=e.h.v>=1?.99:e.h.v<=-1?-.99:e.h.v,d=l*u,h=Math.cos(c+e.a.v)*d+a[0],f=Math.sin(c+e.a.v)*d+a[1],r=o.createRadialGradient(h,f,0,a[0],a[1],l);var p,m=t.g.p,g=e.g.c,v=1;for(p=0;p<m;p+=1)e.g._hasOpacity&&e.g._collapsable&&(v=e.g.o[2*p+1]),r.addColorStop(g[4*p]/100,"rgba("+g[4*p+1]+","+g[4*p+2]+","+g[4*p+3]+","+v+")");i.grd=r}i.coOp=e.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(t,e,n){var i=e.style,r=e.d;r&&(r._mdf||this._isFirstFrame)&&(i.da=r.dashArray,i["do"]=r.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bm_floor(e.c.v[0])+","+bm_floor(e.c.v[1])+","+bm_floor(e.c.v[2])+")"),(e.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*n.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var n=!1;t.sc&&(n=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,r,o=this.globalData.fontManager.getFontByName(t.f),a=t.l,s=this.mHelper;this.stroke=n,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,r=t.finalText.length;var l,c,u,d,h,f,p,m,g,v,y=this.data.singleShape,E=t.tr/1e3*t.finalSize,b=0,_=0,C=!0,T=0;for(i=0;i<r;i+=1){for(l=this.globalData.fontManager.getCharData(t.finalText[i],o.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),c=l&&l.data||{},s.reset(),y&&a[i].n&&(b=-E,_+=t.yOffset,_+=C?1:0,C=!1),h=c.shapes?c.shapes[0].it:[],p=h.length,s.scale(t.finalSize/100,t.finalSize/100),y&&this.applyTextPropertiesToMatrix(t,s,a[i].line,b,_),g=createSizedArray(p),f=0;f<p;f+=1){for(d=h[f].ks.k.i.length,m=h[f].ks.k,v=[],u=1;u<d;u+=1)1==u&&v.push(s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),v.push(s.applyToX(m.o[u-1][0],m.o[u-1][1],0),s.applyToY(m.o[u-1][0],m.o[u-1][1],0),s.applyToX(m.i[u][0],m.i[u][1],0),s.applyToY(m.i[u][0],m.i[u][1],0),s.applyToX(m.v[u][0],m.v[u][1],0),s.applyToY(m.v[u][0],m.v[u][1],0));v.push(s.applyToX(m.o[u-1][0],m.o[u-1][1],0),s.applyToY(m.o[u-1][0],m.o[u-1][1],0),s.applyToX(m.i[0][0],m.i[0][1],0),s.applyToY(m.i[0][0],m.i[0][1],0),s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),g[f]=v}y&&(b+=a[i].l,b+=E),this.textSpans[T]?this.textSpans[T].elem=g:this.textSpans[T]={elem:g},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var t=this.canvasContext;this.finalTransform.mat.props;t.font=this.values.fValue,t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var e,n,i,r,o,a,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;n=l.length;var c,u,d,h=null,f=null,p=null;for(e=0;e<n;e+=1)if(!l[e].n){if(c=s[e],c&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(c.p),this.globalData.renderer.ctxOpacity(c.o)),this.fill){for(c&&c.fc?h!==c.fc&&(h=c.fc,t.fillStyle=c.fc):h!==this.values.fill&&(h=this.values.fill,t.fillStyle=this.values.fill),u=this.textSpans[e].elem,r=u.length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(d=u[i],a=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<a;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(c&&c.sw?p!==c.sw&&(p=c.sw,t.lineWidth=c.sw):p!==this.values.sWidth&&(p=this.values.sWidth,t.lineWidth=this.values.sWidth),c&&c.sc?f!==c.sc&&(f=c.sc,t.strokeStyle=c.sc):f!==this.values.stroke&&(f=this.values.stroke,t.strokeStyle=this.values.stroke),u=this.textSpans[e].elem,r=u.length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(d=u[i],a=d.length,this.globalData.canvasContext.moveTo(d[0],d[1]),o=2;o<a;o+=6)this.globalData.canvasContext.bezierCurveTo(d[o],d[o+1],d[o+2],d[o+3],d[o+4],d[o+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}c&&this.globalData.renderer.restore()}},CVEffects.prototype.renderFrame=function(){},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&(this.transformedElement.style.transform=this.transformedElement.style.webkitTransform=this.finalTransform.mat.toCSS()),this.finalTransform._opMdf&&(this.transformedElement.style.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=HybridRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([HybridRenderer,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var n,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(n=this.elements[i].getBaseElement()),i+=1;n?this.layerElement.insertBefore(t,n):this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)e=t[n].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var n,i,r,o,a,s=t.sh.v,l=t.transformers,c=s._length;if(!(c<=1)){for(n=0;n<c-1;n+=1)i=this.getTransformedPoint(l,s.v[n]),r=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[n+1]),a=this.getTransformedPoint(l,s.v[n+1]),this.checkBounds(i,r,o,a,e);s.c&&(i=this.getTransformedPoint(l,s.v[n]),r=this.getTransformedPoint(l,s.o[n]),o=this.getTransformedPoint(l,s.i[0]),a=this.getTransformedPoint(l,s.v[0]),this.checkBounds(i,r,o,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,n,i,r){this.getBoundsOfCurve(t,e,n,i);var o=this.shapeBoundingBox;r.x=bm_min(o.left,r.x),r.xMax=bm_max(o.right,r.xMax),r.y=bm_min(o.top,r.y),r.yMax=bm_max(o.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,n,i){for(var r,o,a,s,l,c,u,d=[[t[0],i[0]],[t[1],i[1]]],h=0;h<2;++h)if(o=6*t[h]-12*e[h]+6*n[h],r=-3*t[h]+9*e[h]-9*n[h]+3*i[h],a=3*e[h]-3*t[h],o|=0,r|=0,a|=0,0!==r)(l=o*o-4*a*r)<0||(c=(-o+bm_sqrt(l))/(2*r),0<c&&c<1&&d[h].push(this.calculateF(c,t,e,n,i,h)),0<(u=(-o-bm_sqrt(l))/(2*r))&&u<1&&d[h].push(this.calculateF(u,t,e,n,i,h)));else{if(0===o)continue;0<(s=-a/o)&&s<1&&d[h].push(this.calculateF(s,t,e,n,i,h))}this.shapeBoundingBox.left=bm_min.apply(null,d[0]),this.shapeBoundingBox.top=bm_min.apply(null,d[1]),this.shapeBoundingBox.right=bm_max.apply(null,d[0]),this.shapeBoundingBox.bottom=bm_max.apply(null,d[1])},HShapeElement.prototype.calculateF=function(t,e,n,i,r,o){return bm_pow(1-t,3)*e[o]+3*bm_pow(1-t,2)*t*n[o]+3*(1-t)*bm_pow(t,2)*i[o]+bm_pow(t,3)*r[o]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var n,i=t.length;for(n=0;n<i;n+=1)t[n]&&t[n].sh?this.calculateShapeBoundingBox(t[n],e):t[n]&&t[n].it&&this.calculateBoundingBox(t[n].it,e)},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var n=!1;this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),n=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),n=!0),(n||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y)&&(this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.shapeCont.style.transform=this.shapeCont.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style;e.color=e.fill=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)",t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var n=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{e.fontFamily=n.fFamily;var i=t.fWeight,r=t.fStyle;e.fontStyle=r,e.fontWeight=i}var o,a,s=t.l;a=s.length;var l,c,u,d,h=this.mHelper,f="",p=0;for(o=0;o<a;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[p]?l=this.textPaths[p]:(l=createNS("path"),l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[p]?(c=this.textSpans[p],u=c.children[0]):(c=createTag("div"),c.style.lineHeight=0,u=createNS("svg"),u.appendChild(l),styleDiv(c)))):this.isMasked?l=this.textPaths[p]?this.textPaths[p]:createNS("text"):this.textSpans[p]?(c=this.textSpans[p],l=this.textPaths[p]):(c=createTag("span"),styleDiv(c),l=createTag("span"),styleDiv(l),c.appendChild(l)),this.globalData.fontManager.chars){var m,g=this.globalData.fontManager.getCharData(t.finalText[o],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(m=g?g.data:null,h.reset(),m&&m.shapes&&(d=m.shapes[0].it,h.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(h,d),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(c),m&&m.shapes){document.body.appendChild(u);var v=u.getBBox();u.setAttribute("width",v.width+2),u.setAttribute("height",v.height+2),u.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2)),u.style.transform=u.style.webkitTransform="translate("+(v.x-1)+"px,"+(v.y-1)+"px)",s[o].yOffset=v.y-1}else u.setAttribute("width",1),u.setAttribute("height",1);c.appendChild(u)}}else l.textContent=s[o].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(l):(this.innerElem.appendChild(c),l.style.transform=l.style.webkitTransform="translate3d(0,"+-t.finalSize/1.2+"px,0)");this.isMasked?this.textSpans[p]=l:this.textSpans[p]=c,this.textSpans[p].style.display="block",this.textPaths[p]=l,p+=1}for(;p<this.textSpans.length;)this.textSpans[p].style.display="none",p+=1},HTextElement.prototype.renderInnerContent=function(){if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)")}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var t,e,n=0,i=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;e=r.length;var o,a,s;for(t=0;t<e;t+=1)r[t].n?n+=1:(a=this.textSpans[t],s=this.textPaths[t],o=i[n],n+=1,o._mdf.m&&(this.isMasked?a.setAttribute("transform",o.m):a.style.transform=a.style.webkitTransform=o.m),a.style.opacity=o.o,o.sw&&o._mdf.sw&&s.setAttribute("stroke-width",o.sw),o.sc&&o._mdf.sc&&s.setAttribute("stroke",o.sc),o.fc&&o._mdf.fc&&(s.setAttribute("fill",o.fc),s.style.color=o.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var l=this.innerElem.getBBox();this.currentBBox.w!==l.width&&(this.currentBBox.w=l.width,this.svgElement.setAttribute("width",l.width)),this.currentBBox.h!==l.height&&(this.currentBBox.h=l.height,this.svgElement.setAttribute("height",l.height));this.currentBBox.w===l.width+2&&this.currentBBox.h===l.height+2&&this.currentBBox.x===l.x-1&&this.currentBBox.y===l.y-1||(this.currentBBox.w=l.width+2,this.currentBBox.h=l.height+2,this.currentBBox.x=l.x-1,this.currentBBox.y=l.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),this.svgElement.style.transform=this.svgElement.style.webkitTransform="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)")}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)e=this.comp.threeDElements[t],"3d"===e.type&&(e.perspectiveElem.style.perspective=e.perspectiveElem.style.webkitPerspective=this.pe.v+"px",e.container.style.transformOrigin=e.container.style.mozTransformOrigin=e.container.style.webkitTransformOrigin="0px 0px 0px",e.perspectiveElem.style.transform=e.perspectiveElem.style.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)")},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,n=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)n=this.hierarchy[t].finalTransform.mProp._mdf||n;if(n||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy){for(e=this.hierarchy.length-1,t=e;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var r;r=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),a=[r[0]/o,r[1]/o,r[2]/o],s=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],s),c=Math.atan2(a[0],-a[2]);this.mat.rotateY(c).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){e=this.comp.threeDElements.length;var d;for(t=0;t<e;t+=1)d=this.comp.threeDElements[t],"3d"===d.type&&(u&&(d.container.style.transform=d.container.style.webkitTransform=this.mat.toCSS()),this.pe._mdf&&(d.perspectiveElem.style.perspective=d.perspectiveElem.style.webkitPerspective=this.pe.v+"px"));this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},HEffects.prototype.renderFrame=function(){};var animationManager=function(){function t(t){for(var e=0,n=t.target;e<D;)T[e].animation===n&&(T.splice(e,1),e-=1,D-=1,n.isPaused||r()),e+=1}function e(t,e){if(!t)return null;for(var n=0;n<D;){if(T[n].elem==t&&null!==T[n].elem)return T[n].animation;n+=1}var i=new AnimationItem;return o(i,t),i.setData(t,e),i}function n(){var t,e=T.length,n=[];for(t=0;t<e;t+=1)n.push(T[t].animation);return n}function i(){$+=1,E()}function r(){$-=1}function o(e,n){e.addEventListener("destroy",t),e.addEventListener("_active",i),e.addEventListener("_idle",r),T.push({elem:n,animation:e}),D+=1}function a(t){var e=new AnimationItem;return o(e,null),e.setParams(t),e}function s(t,e){var n;for(n=0;n<D;n+=1)T[n].animation.setSpeed(t,e)}function l(t,e){var n;for(n=0;n<D;n+=1)T[n].animation.setDirection(t,e)}function c(t){var e;for(e=0;e<D;e+=1)T[e].animation.play(t)}function u(t){var e,n=t-I;for(e=0;e<D;e+=1)T[e].animation.advanceTime(n);I=t,$&&!w?window.requestAnimationFrame(u):O=!0}function d(t){I=t,window.requestAnimationFrame(u)}function h(t){var e;for(e=0;e<D;e+=1)T[e].animation.pause(t)}function f(t,e,n){var i;for(i=0;i<D;i+=1)T[i].animation.goToAndStop(t,e,n)}function p(t){var e;for(e=0;e<D;e+=1)T[e].animation.stop(t)}function m(t){var e;for(e=0;e<D;e+=1)T[e].animation.togglePause(t)}function g(t){var e;for(e=D-1;e>=0;e-=1)T[e].animation.destroy(t)}function v(t,n,i){var r,o=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=o.length;for(r=0;r<a;r+=1)i&&o[r].setAttribute("data-bm-type",i),e(o[r],t);if(n&&0===a){i||(i="svg");var s=document.getElementsByTagName("body")[0];s.innerHTML="";var l=createTag("div");l.style.width="100%",l.style.height="100%",l.setAttribute("data-bm-type",i),s.appendChild(l),e(l,t)}}function y(){var t;for(t=0;t<D;t+=1)T[t].animation.resize()}function E(){!w&&$&&O&&(window.requestAnimationFrame(d),O=!1)}function b(){w=!0}function _(){w=!1,E()}var C={},T=[],I=0,D=0,$=0,O=!0,w=!1;return C.registerAnimation=e,C.loadAnimation=a,C.setSpeed=s,C.setDirection=l,C.play=c,C.pause=h,C.stop=p,C.togglePause=m,C.searchAnimations=v,C.resize=y,C.goToAndStop=f,C.destroy=g,C.freeze=b,C.unfreeze=_,C.getRegisteredAnimations=n,C}(),AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.subframeEnabled=subframeEnabled,this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){t.context&&(this.context=t.context),(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e=t.animType?t.animType:t.renderer?t.renderer:"svg";switch(e){case"canvas":this.renderer=new CanvasRenderer(this,t.rendererSettings);break;case"svg":this.renderer=new SVGRenderer(this,t.rendererSettings);break;default:this.renderer=new HybridRenderer(this,t.rendererSettings)}this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||(!1===t.loop?this.loop=!1:!0===t.loop?this.loop=!0:this.loop=parseInt(t.loop)),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!t.hasOwnProperty("autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,t.animationData?this.configAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),assetLoader.load(t.path,this.configAnimation.bind(this),function(){this.trigger("data_failed")}.bind(this)))},AnimationItem.prototype.setData=function(t,e){var n={wrapper:t,animationData:e?"object"==typeof e?e:JSON.parse(e):null},i=t.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var r=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";""===r||(n.loop="false"!==r&&("true"===r||parseInt(r)));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;n.autoplay="false"!==o,n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(n.prerender=!1),this.setParams(n)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,n,i=this.animationData.layers,r=i.length,o=t.layers,a=o.length;for(n=0;n<a;n+=1)for(e=0;e<r;){if(i[e].id==o[n].id){i[e]=o[n];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(r=t.assets.length,e=0;e<r;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),this.renderer.includeLayers(t.layers),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,assetLoader.load(n,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.firstFrame=Math.round(this.animationData.ip),this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.loaded()?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){this.isLoaded||!this.renderer.globalData.fontManager.loaded()||!this.imagePreloader.loaded()&&"canvas"===this.renderer.rendererType||(this.isLoaded=!0,dataManager.completeData(this.animationData,this.renderer.globalData.fontManager),expressionsPlugin&&expressionsPlugin.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play())},AnimationItem.prototype.resize=function(){this.renderer.updateContainerSize()},AnimationItem.prototype.setSubframe=function(t){this.subframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.subframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame()},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!=t||!0===this.isPaused&&(this.isPaused=!1,this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!=t||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"))},AnimationItem.prototype.togglePause=function(t){t&&this.name!=t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!=t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.goToAndStop=function(t,e,n){n&&this.name!=n||(e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,n){this.goToAndStop(t,e,n),this.play()},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,n=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(n=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),n&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.timeCompleted=this.totalFrames=t[0]-t[1],this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.timeCompleted=this.totalFrames=t[1]-t[0],this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?n=t:this.currentRawFrame+this.firstFrame>e&&(n=e-t)),this.firstFrame=t,this.timeCompleted=this.totalFrames=e-t,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"==typeof t[0]){var n,i=t.length;for(n=0;n<i;n+=1)this.segments.push(t[n])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!=t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=this.onLoopComplete=this.onComplete=this.onSegmentStart=this.onDestroy=null,this.renderer=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),e=this.assetsPath+n}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,n=this.assets.length;e<n;){if(t==this.assets[e].id)return this.assets[e];e+=1}},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var Expressions=function(){function t(t){function e(){o+=1}function n(){0===(o-=1)&&r()}function i(t){-1===a.indexOf(t)&&a.push(t)}function r(){var t,e=a.length;for(t=0;t<e;t+=1)a[t].release();a.length=0}var o=0,a=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=e,t.renderer.globalData.popExpression=n,t.renderer.globalData.registerExpressionProperty=i}var e={};return e.initExpressions=t,e}();expressionsPlugin=Expressions;var ExpressionManager=function(){function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=typeof t;if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var n,i=t.length,r=[];for(n=0;n<i;n+=1)r[n]=-t[n];return r}return t.propType?t.v:void 0}function sum(t,e){var n=typeof t,i=typeof e;if("string"===n||"string"===i)return t+e;if(isNumerable(n,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return t=t.slice(0),t[0]=t[0]+e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,o=t.length,a=e.length,s=[];r<o||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?s[r]=t[r]+e[r]:s[r]=e[r]===undefined?t[r]:t[r]||e[r],r+=1;return s}return 0}function sub(t,e){var n=typeof t,i=typeof e;if(isNumerable(n,t)&&isNumerable(i,e))return"string"===n&&(t=parseInt(t)),"string"===i&&(e=parseInt(e)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return t=t.slice(0),t[0]=t[0]-e,t;if(isNumerable(n,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var r=0,o=t.length,a=e.length,s=[];r<o||r<a;)("number"==typeof t[r]||t[r]instanceof Number)&&("number"==typeof e[r]||e[r]instanceof Number)?s[r]=t[r]-e[r]:s[r]=e[r]===undefined?t[r]:t[r]||e[r],r+=1;return s}return 0}function mul(t,e){var n,i=typeof t,r=typeof e;if(isNumerable(i,t)&&isNumerable(r,e))return t*e;var o,a;if($bm_isInstanceOfArray(t)&&isNumerable(r,e)){for(a=t.length,n=createTypedArray("float32",a),o=0;o<a;o+=1)n[o]=t[o]*e;return n}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(a=e.length,n=createTypedArray("float32",a),o=0;o<a;o+=1)n[o]=t*e[o];return n}return 0}function div(t,e){var n,i=typeof t,r=typeof e;if(isNumerable(i,t)&&isNumerable(r,e))return t/e;var o,a;if($bm_isInstanceOfArray(t)&&isNumerable(r,e)){for(a=t.length,n=createTypedArray("float32",a),o=0;o<a;o+=1)n[o]=t[o]/e;return n}if(isNumerable(i,t)&&$bm_isInstanceOfArray(e)){for(a=e.length,n=createTypedArray("float32",a),o=0;o<a;o+=1)n[o]=t/e[o];return n}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t)),"string"==typeof e&&(e=parseInt(e)),t%e}function clamp(t,e,n){if(e>n){var i=n;n=e,e=i}return Math.min(Math.max(t,e),n)}function radiansToDegrees(t){return t/degToRads}function degreesToRadians(t){return t*degToRads}function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var n,i=Math.min(t.length,e.length),r=0;for(n=0;n<i;n+=1)r+=Math.pow(e[n]-t[n],2);return Math.sqrt(r)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,n,i=t[0],r=t[1],o=t[2],a=Math.max(i,r,o),s=Math.min(i,r,o),l=(a+s)/2;if(a==s)e=n=0;else{var c=a-s;switch(n=l>.5?c/(2-a-s):c/(a+s),a){case i:e=(r-o)/c+(r<o?6:0);break;case r:e=(o-i)/c+2;break;case o:e=(i-r)/c+4}e/=6}return[e,n,l,t[3]]}function hue2rgb(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function hslToRgb(t){var e,n,i,r=t[0],o=t[1],a=t[2];if(0===o)e=n=i=a;else{var s=a<.5?a*(1+o):a+o-a*o,l=2*a-s;e=hue2rgb(l,s,r+1/3),n=hue2rgb(l,s,r),i=hue2rgb(l,s,r-1/3)}return[e,n,i,t[3]]}function linear(t,e,n,i,r){if(i!==undefined&&r!==undefined||(i=e,r=n,e=0,n=1),n<e){var o=n;n=e,e=o}if(t<=e)return i;if(t>=n)return r;var a=n===e?0:(t-e)/(n-e);if(!i.length)return i+(r-i)*a;var s,l=i.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=i[s]+(r[s]-i[s])*a;return c}function random(t,e){if(e===undefined&&(t===undefined?(t=0,e=1):(e=t,t=undefined)),e.length){var n,i=e.length;t||(t=createTypedArray("float32",i));var r=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)r[n]=t[n]+o*(e[n]-t[n]);return r}return t===undefined&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,n,i){var r,o=t.length,a=shape_pool.newElement();a.setPathData(!!i,o);var s,l,c=[0,0];for(r=0;r<o;r+=1)s=e&&e[r]?e[r]:c,l=n&&n[r]?n[r]:c,a.setTripleAt(t[r][0],t[r][1],l[0]+t[r][0],l[1]+t[r][1],s[0]+t[r][0],s[1]+t[r][1],r,!0);return a}function initiateExpression(elem,data,property){function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}function lookAt(t,e){var n=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads;return[-Math.atan2(n[1],n[2])/degToRads,i,0]}function easeOut(t,e,n,i,r){return applyEase(easeOutBez,t,e,n,i,r)}function easeIn(t,e,n,i,r){return applyEase(easeInBez,t,e,n,i,r)}function ease(t,e,n,i,r){return applyEase(easeInOutBez,t,e,n,i,r)}function applyEase(t,e,n,i,r,o){r===undefined?(r=n,o=i):e=(e-n)/(i-n),e=e>1?1:e<0?0:e;var a=t(e);if($bm_isInstanceOfArray(r)){var s,l=r.length,c=createTypedArray("float32",l);for(s=0;s<l;s+=1)c[s]=(o[s]-r[s])*a+r[s];return c}return(o-r)*a+r}function nearestKey(t){var e,n,i,r=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(n=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)n=1,i=data.k[0].t;else{for(e=0;e<r-1;e+=1){if(t===data.k[e].t){n=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(n=e+2,i=data.k[e+1].t):(n=e+1,i=data.k[e].t);break}}-1===n&&(n=e+1,i=data.k[e].t)}else n=0,i=0;var o={};return o.index=n,o.time=i/elem.comp.globalData.frameRate,o}function key(t){var e,n,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var r=data.k[t].hasOwnProperty("s")?data.k[t].s:data.k[t-1].e;for(i=r.length,n=0;n<i;n+=1)e[n]=r[n],e.value[n]=r[n];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?e===undefined?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?e===undefined?value.substr(t):value.substr(t,e):""}function executeExpression(t){return value=t,_needsRandom&&seedRandom(randSeed),this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!(!elem.hierarchy||!elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,"shape"===scoped_bm_rt.propType&&(scoped_bm_rt=scoped_bm_rt.v),scoped_bm_rt)}var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,__expression_functions=[];if(data.xf){var i,len=data.xf.length;for(i=0;i<len;i+=1)__expression_functions[i]=eval("(function(){ return "+data.xf[i]+"}())")}var scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){var n,i,r=this.pv.length?this.pv.length:1,o=createTypedArray("float32",r);t=5;var a=Math.floor(time*t);for(n=0,i=0;n<a;){for(i=0;i<r;i+=1)o[i]+=-e+2*e*BMMath.random();n+=1}var s=time*t,l=s-Math.floor(s),c=createTypedArray("float32",r);if(r>1){for(i=0;i<r;i+=1)c[i]=this.pv[i]+o[i]+(-e+2*e*BMMath.random())*l;return c}return this.pv+o[0]+(-e+2*e*BMMath.random())*l}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;return executeExpression}var ob={},Math=BMMath,window=null,document=null,easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get,add=sum,$bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod,radians_to_degrees=radiansToDegrees,degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];return ob.initiateExpression=initiateExpression,ob}(),expressionHelpers=function(){function t(t,e,n){e.x&&(n.k=!0,n.x=!0,n.initiateExpression=ExpressionManager.initiateExpression,n.effectsSequence.push(n.initiateExpression(t,e,n).bind(n)))}function e(t){return t*=this.elem.globalData.frameRate,t-=this.offsetTime,t!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value}function n(t){var e=this.getValueAtTime(t),n=this.getValueAtTime(t+-.01),i=0;if(e.length){var r;for(r=0;r<e.length;r+=1)i+=Math.pow(n[r]-e[r],2);i=100*Math.sqrt(i)}else i=0;return i}function i(t){if(this.vel!==undefined)return this.vel;var e,n=this.getValueAtTime(t),i=this.getValueAtTime(t+-.001);if(n.length){e=createTypedArray("float32",n.length);var r;for(r=0;r<n.length;r+=1)e[r]=(i[r]-n[r])/-.001}else e=(i-n)/-.001;return e}function r(){return this.pv}function o(t){this.propertyGroup=t}return{searchExpressions:t,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:e,getStaticValueAtTime:r,setGroupProperty:o}}();!function(){function t(t,e,n){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i=this.comp.renderedFrame,r=this.keyframes,o=r[r.length-1].t;if(i<=o)return this.pv;var a,s;n?(a=e?Math.abs(o-elem.comp.globalData.frameRate*e):Math.max(0,o-this.elem.data.ip),s=o-a):((!e||e>r.length-1)&&(e=r.length-1),s=r[r.length-1-e].t,a=o-s);var l,c,u;if("pingpong"===t){if(Math.floor((i-s)/a)%2!=0)return this.getValueAtTime((a-(i-s)%a+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(s/this.comp.globalData.frameRate,0),h=this.getValueAtTime(o/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((i-s)%a+s)/this.comp.globalData.frameRate,0),p=Math.floor((i-s)/a);if(this.pv.length){for(u=new Array(d.length),c=u.length,l=0;l<c;l+=1)u[l]=(h[l]-d[l])*p+f[l];return u}return(h-d)*p+f}if("continue"===t){var m=this.getValueAtTime(o/this.comp.globalData.frameRate,0),g=this.getValueAtTime((o-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(u=new Array(m.length),c=u.length,l=0;l<c;l+=1)u[l]=m[l]+(m[l]-g[l])*((i-o)/this.comp.globalData.frameRate)/5e-4;return u}return m+(i-o)/.001*(m-g)}}return this.getValueAtTime(((i-s)%a+s)/this.comp.globalData.frameRate,0)}function e(t,e,n){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i=this.comp.renderedFrame,r=this.keyframes,o=r[0].t;if(i>=o)return this.pv;var a,s;n?(a=e?Math.abs(elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-o),s=o+a):((!e||e>r.length-1)&&(e=r.length-1),s=r[e].t,a=s-o);var l,c,u;if("pingpong"===t){if(Math.floor((o-i)/a)%2==0)return this.getValueAtTime(((o-i)%a+o)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var d=this.getValueAtTime(o/this.comp.globalData.frameRate,0),h=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime((a-(o-i)%a+o)/this.comp.globalData.frameRate,0),p=Math.floor((o-i)/a)+1;if(this.pv.length){for(u=new Array(d.length),c=u.length,l=0;l<c;l+=1)u[l]=f[l]-(h[l]-d[l])*p;return u}return f-(h-d)*p}if("continue"===t){var m=this.getValueAtTime(o/this.comp.globalData.frameRate,0),g=this.getValueAtTime((o+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(u=new Array(m.length),c=u.length,l=0;l<c;l+=1)u[l]=m[l]+(m[l]-g[l])*(o-i)/.001;return u}return m+(m-g)*(o-i)/.001}}return this.getValueAtTime((a-(o-i)%a+o)/this.comp.globalData.frameRate,0)}function n(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var n,i=this.comp.renderedFrame/this.comp.globalData.frameRate,r=i-t,o=i+t,a=e>1?(o-r)/(e-1):1,s=0,l=0;n=this.pv.length?createTypedArray("float32",this.pv.length):0;for(var c;s<e;){if(c=this.getValueAtTime(r+s*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]+=c[l];else n+=c;s+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)n[l]/=e;else n/=e;return n}function i(t){console.warn("Transform at time not supported")}function r(t){}function o(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shape_pool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,t-=this.offsetTime,t!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}function a(){}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,n){var o=s(t,e,n);return o.dynamicProperties.length?o.getValueAtTime=i.bind(o):o.getValueAtTime=r.bind(o),o.setGroupProperty=expressionHelpers.setGroupProperty,o};var l=PropertyFactory.getProp;PropertyFactory.getProp=function(i,r,o,a,s){var c=l(i,r,o,a,s);c.kf?c.getValueAtTime=expressionHelpers.getValueAtTime.bind(c):c.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(c),c.setGroupProperty=expressionHelpers.setGroupProperty,c.loopOut=t,c.loopIn=e,c.smooth=n,c.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(c),c.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(c),c.numKeys=1===r.a?r.k.length:0,c.propertyIndex=r.ix;var u=0;return 0!==o&&(u=createTypedArray("float32",1===r.a?r.k[0].s.length:r.k.length)),c._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(i,r,c),c.k&&s.addDynamicProperty(c),c};var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();a.prototype={vertices:function(t,e){this.k&&this.getValue();var n=this.v;e!==undefined&&(n=this.getValueAtTime(e,0));var i,r=n._length,o=n[t],a=n.v,s=createSizedArray(r);for(i=0;i<r;i+=1)s[i]="i"===t||"o"===t?[o[i][0]-a[i][0],o[i][1]-a[i][1]]:[o[i][0],o[i][1]];return s},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var n=this.v;e!==undefined&&(n=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(n));for(var i,r=this._segmentsLength,o=r.lengths,a=r.totalLength*t,s=0,l=o.length,c=0;s<l;){if(c+o[s].addedLength>a){var u=s,d=n.c&&s===l-1?0:s+1,h=(a-c)/o[s].addedLength;i=bez.getPointInSegment(n.v[u],n.v[d],n.o[u],n.i[d],h,o[s]);break}c+=o[s].addedLength,s+=1}return i||(i=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),i},vectorOnPath:function(t,e,n){t=1==t?this.v.c?0:.999:t;var i=this.pointOnPath(t,e),r=this.pointOnPath(t+.001,e),o=r[0]-i[0],a=r[1]-i[1],s=Math.sqrt(Math.pow(o,2)+Math.pow(a,2));return 0===s?[0,0]:"tangent"===n?[o/s,a/s]:[-a/s,o/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([a],c),extendPrototype([a],u),u.prototype.getValueAtTime=o,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var d=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,n,i,r){var o=d(t,e,n,i,r);return o.propertyIndex=e.ix,o.lock=!1,3===n?expressionHelpers.searchExpressions(t,e.pt,o):4===n&&expressionHelpers.searchExpressions(t,e.ks,o),o.k&&t.addDynamicProperty(o),o}}(),function(){function t(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0}TextProperty.prototype.getExpressionValue=function(t,e){var n=this.calculateExpression(e);if(t.t!==n){var i={};return this.copyData(i,t),i.t=n.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}();var ShapeExpressionInterface=function(){function t(t,e,a){var f,p=[],m=t?t.length:0;for(f=0;f<m;f+=1)"gr"==t[f].ty?p.push(n(t[f],e[f],a)):"fl"==t[f].ty?p.push(i(t[f],e[f],a)):"st"==t[f].ty?p.push(r(t[f],e[f],a)):"tm"==t[f].ty?p.push(o(t[f],e[f],a)):"tr"==t[f].ty||("el"==t[f].ty?p.push(s(t[f],e[f],a)):"sr"==t[f].ty?p.push(l(t[f],e[f],a)):"sh"==t[f].ty?p.push(h(t[f],e[f],a)):"rc"==t[f].ty?p.push(c(t[f],e[f],a)):"rd"==t[f].ty?p.push(u(t[f],e[f],a)):"rp"==t[f].ty&&p.push(d(t[f],e[f],a)));return p}function e(e,n,i){var r,o=function(t){for(var e=0,n=r.length;e<n;){if(r[e]._name===t||r[e].mn===t||r[e].propertyIndex===t||r[e].ix===t||r[e].ind===t)return r[e];e+=1}if("number"==typeof t)return r[t-1]};return o.propertyGroup=function(t){return 1===t?o:i(t-1)},r=t(e.it,n.it,o.propertyGroup),o.numProperties=r.length,o.propertyIndex=e.cix,o._name=e.nm,o}function n(t,n,i){var r=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return r.content;default:return r.transform}};r.propertyGroup=function(t){return 1===t?r:i(t-1)};var o=e(t,n,r.propertyGroup),s=a(t.it[t.it.length-1],n.it[n.it.length-1],r.propertyGroup);return r.content=o,r.transform=s,Object.defineProperty(r,"_name",{get:function(){return t.nm}}),r.numProperties=t.np,r.propertyIndex=t.ix,r.nm=t.nm,r.mn=t.mn,r}function i(t,e,n){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:void 0}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(n),e.o.setGroupProperty(n),i}function r(t,e,n){function i(t){return 1===t?ob:n(t-1)}function r(t){return 1===t?l:i(t-1)}function o(t){return"Color"===t||"color"===t?o.color:"Opacity"===t||"opacity"===t?o.opacity:"Stroke Width"===t||"stroke width"===t?o.strokeWidth:void 0}var a,s=t.d?t.d.length:0,l={};for(a=0;a<s;a+=1)!function(n){Object.defineProperty(l,t.d[n].nm,{get:ExpressionPropertyInterface(e.d.dataProps[n].p)})}(a),e.d.dataProps[a].p.setGroupProperty(r);return Object.defineProperties(o,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(i),e.o.setGroupProperty(i),e.w.setGroupProperty(i),o}function o(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:void 0}return r.propertyIndex=t.ix,e.s.setGroupProperty(i),e.e.setGroupProperty(i),e.o.setGroupProperty(i),r.propertyIndex=t.ix,r.propertyGroup=n,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function a(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:void 0}return e.transform.mProps.o.setGroupProperty(i),e.transform.mProps.p.setGroupProperty(i),e.transform.mProps.a.setGroupProperty(i),e.transform.mProps.s.setGroupProperty(i),e.transform.mProps.r.setGroupProperty(i),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(i),e.transform.mProps.sa.setGroupProperty(i)),e.transform.op.setGroupProperty(i),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=n,r}function s(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:void 0}r.propertyIndex=t.ix;var o="tm"===e.sh.ty?e.sh.prop:e.sh;return o.s.setGroupProperty(i),o.p.setGroupProperty(i),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(o.s)},position:{get:ExpressionPropertyInterface(o.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function l(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?r.innerRoundness:void 0:r.innerRadius}var o="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,o.or.setGroupProperty(i),o.os.setGroupProperty(i),o.pt.setGroupProperty(i),o.p.setGroupProperty(i),o.r.setGroupProperty(i),t.ir&&(o.ir.setGroupProperty(i),o.is.setGroupProperty(i)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},rotation:{get:ExpressionPropertyInterface(o.r)},points:{get:ExpressionPropertyInterface(o.pt)},outerRadius:{get:ExpressionPropertyInterface(o.or)},outerRoundness:{get:ExpressionPropertyInterface(o.os)},innerRadius:{get:ExpressionPropertyInterface(o.ir)},innerRoundness:{get:ExpressionPropertyInterface(o.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:void 0}var o="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,o.p.setGroupProperty(i),o.s.setGroupProperty(i),o.r.setGroupProperty(i),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(o.p)},roundness:{get:ExpressionPropertyInterface(o.r)},size:{get:ExpressionPropertyInterface(o.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){if(t.r.ix===e||"Round Corners 1"===e)return r.radius}var o=e;return r.propertyIndex=t.ix,o.rd.setGroupProperty(i),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(o.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function d(t,e,n){function i(t){return 1==t?r:n(--t)}function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:void 0}var o=e;return r.propertyIndex=t.ix,o.c.setGroupProperty(i),o.o.setGroupProperty(i),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(o.c)},offset:{get:ExpressionPropertyInterface(o.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function h(t,e,n){function i(t){return 1==t?r:n(--t)}function r(t){if("Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t)return r.path}var o=e.sh;return o.setGroupProperty(i),Object.defineProperties(r,{path:{get:function(){return o.k&&o.getValue(),o}},shape:{get:function(){return o.k&&o.getValue(),o}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn}}),r}return function(e,n,i){function r(t){if("number"==typeof t)return o[t-1];for(var e=0,n=o.length;e<n;){if(o[e]._name===t)return o[e];e+=1}}var o;return r.propertyGroup=i,o=t(e,n,r),r.numProperties=o.length,r}}(),TextExpressionInterface=function(){return function(t){function e(){}var n;return Object.defineProperty(e,"sourceText",{get:function(){t.textProperty.getValue();var e=t.textProperty.currentData.t;return void 0!==e&&(t.textProperty.currentData.t=void 0,n=new String(e),n.value=e||new String(e)),n}}),e}}(),LayerExpressionInterface=function(){function t(t,e){var n=new Matrix;n.reset();var i;if(i=this._elem.finalTransform.mProp,i.applyToMatrix(n),this._elem.hierarchy&&this._elem.hierarchy.length){var r,o=this._elem.hierarchy.length;for(r=0;r<o;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(n);return n.applyToPointArray(t[0],t[1],t[2]||0)}return n.applyToPointArray(t[0],t[1],t[2]||0)}function e(t,e){var n=new Matrix;n.reset();var i;if(i=this._elem.finalTransform.mProp,i.applyToMatrix(n),this._elem.hierarchy&&this._elem.hierarchy.length){var r,o=this._elem.hierarchy.length;for(r=0;r<o;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(n);return n.inversePoint(t)}return n.inversePoint(t)}function n(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var n,i=this._elem.hierarchy.length;for(n=0;n<i;n+=1)this._elem.hierarchy[n].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function i(){return[1,1,1,1]}return function(r){function o(t){s.mask=new MaskManagerInterface(t,r)}function a(t){s.effect=t}function s(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return s.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return l;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return s.effect}}var l;s.toWorld=t,s.fromWorld=e,s.toComp=t,s.fromComp=n,s.sampleImage=i,s.sourceRectAtTime=r.sourceRectAtTime.bind(r),s._elem=r,l=TransformExpressionInterface(r.finalTransform.mProp);var c=getDescriptor(l,"anchorPoint");return Object.defineProperties(s,{hasParent:{get:function(){return r.hierarchy.length}},parent:{get:function(){return r.hierarchy[0].layerInterface}},rotation:getDescriptor(l,"rotation"),scale:getDescriptor(l,"scale"),position:getDescriptor(l,"position"),opacity:getDescriptor(l,"opacity"),anchorPoint:c,anchor_point:c,transform:{get:function(){return l}},active:{get:function(){return r.isInRange}}}),s.startTime=r.data.st,s.index=r.data.ind,s.source=r.data.refId,s.height=0===r.data.ty?r.data.h:100,s.width=0===r.data.ty?r.data.w:100,s.inPoint=r.data.ip/r.comp.globalData.frameRate,s.outPoint=r.data.op/r.comp.globalData.frameRate,s._name=r.data.nm,s.registerMaskInterface=o,s.registerEffectsInterface=a,s}}(),CompExpressionInterface=function(){return function(t){function e(e){for(var n=0,i=t.layers.length;n<i;){if(t.layers[n].nm===e||t.layers[n].ind===e)return t.elements[n].layerInterface;n+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}}(),TransformExpressionInterface=function(){return function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity}}if(Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p)var n=ExpressionPropertyInterface(t.p);return Object.defineProperty(e,"position",{get:function(){return t.p?n():[t.px.v,t.py.v,t.pz?t.pz.v:0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,n=this.compositions.length;e<n;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),EffectsExpressionInterface=function(){function t(t,n){if(t.effectsManager){var i,r=[],o=t.data.ef,a=t.effectsManager.effectElements.length;for(i=0;i<a;i+=1)r.push(e(o[i],t.effectsManager.effectElements[i],n,t));return function(e){for(var n=t.data.ef||[],i=0,o=n.length;i<o;){if(e===n[i].nm||e===n[i].mn||e===n[i].ix)return r[i];i+=1}}}}function e(t,i,r,o){function a(t){return 1===t?u:r(t-1)}var s,l=[],c=t.ef.length;for(s=0;s<c;s+=1)5===t.ef[s].ty?l.push(e(t.ef[s],i.effectElements[s],i.effectElements[s].propertyGroup,o)):l.push(n(i.effectElements[s],t.ef[s].ty,o,a));var u=function(e){for(var n=t.ef,i=0,r=n.length;i<r;){if(e===n[i].nm||e===n[i].mn||e===n[i].ix)return 5===n[i].ty?l[i]:l[i]();i+=1}return l[0]()};return u.propertyGroup=a,"ADBE Color Control"===t.mn&&Object.defineProperty(u,"color",{get:function(){return l[0]()}}),Object.defineProperty(u,"numProperties",{get:function(){return t.np}}),u.active=u.enabled=0!==t.en,u}function n(t,e,n,i){function r(){return 10===e?n.comp.compInterface(t.p.v):o()}var o=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(i),r}return{createEffectsInterface:t}}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e,n){var i,r=createSizedArray(e.viewData.length),o=e.viewData.length;for(i=0;i<o;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<o;){if(e.masksProperties[i].nm===t)return r[i];i+=1}}}}(),ExpressionPropertyInterface=function(){function t(t,e,n){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(t.numKeys){var r="";r="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var o="unidimensional"===n?new Number(r):Object.assign({},r);return o.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,o}return 0},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function e(e){e&&"pv"in e||(e=r);var n=1/e.mult,i=e.pv*n,o=new Number(i);return o.value=i,t(o,e,"unidimensional"),function(){return e.k&&e.getValue(),i=e.v*n,o.value!==i&&(o=new Number(i),o.value=i,t(o,e,"unidimensional")),o}}function n(e){e&&"pv"in e||(e=o);var n=1/e.mult,i=e.pv.length,r=createTypedArray("float32",i),a=createTypedArray("float32",i);return r.value=a,t(r,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)r[t]=a[t]=e.v[t]*n;return r}}function i(){return r}var r={pv:0,v:0,mult:1},o={pv:[0,0,0],v:[0,0,0],mult:1};return function(t){return t?"unidimensional"===t.propType?e(t):n(t):i}}();!function(){var t=function(){function t(t,e){return this.textIndex=t+1,this.textTotal=e,this.v=this.getValue()*this.mult,this.v}return function(e,n){this.pv=1,this.comp=e.comp,this.elem=e,this.mult=.01,this.propType="textSelector",this.textTotal=n.totalChars,this.selectorValue=100,this.lastValue=[1,1,1],this.k=!0,this.x=!0,this.getValue=ExpressionManager.initiateExpression.bind(this)(e,n,this),this.getMult=t,this.getVelocityAtTime=expressionHelpers.getVelocityAtTime,this.kf?this.getValueAtTime=expressionHelpers.getValueAtTime.bind(this):this.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(this),this.setGroupProperty=expressionHelpers.setGroupProperty}}(),e=TextSelectorProp.getTextSelectorProp;TextSelectorProp.getTextSelectorProp=function(n,i,r){return 1===i.t?new t(n,i,r):e(n,i,r)}}(),extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var n,i,r=this.data.ef.length,o=this.data.ef;for(n=0;n<r;n+=1){switch(i=null,o[n].ty){case 0:i=new SliderEffect(o[n],e,this);break;case 1:i=new AngleEffect(o[n],e,this);break;case 2:i=new ColorEffect(o[n],e,this);break;case 3:i=new PointEffect(o[n],e,this);break;case 4:case 7:i=new CheckboxEffect(o[n],e,this);break;case 10:i=new LayerIndexEffect(o[n],e,this);break;case 11:i=new MaskIndexEffect(o[n],e,this);break;case 5:i=new EffectsManager(o[n],e,this);break;default:i=new NoValueEffect(o[n],e,this)}i&&this.effectElements.push(i)}};var lottiejs={},_isFrozen=!1;lottiejs.play=animationManager.play,lottiejs.pause=animationManager.pause,lottiejs.setLocationHref=setLocationHref,lottiejs.togglePause=animationManager.togglePause,lottiejs.setSpeed=animationManager.setSpeed,lottiejs.setDirection=animationManager.setDirection,lottiejs.stop=animationManager.stop,lottiejs.searchAnimations=searchAnimations,lottiejs.registerAnimation=animationManager.registerAnimation,lottiejs.loadAnimation=loadAnimation,lottiejs.setSubframeRendering=setSubframeRendering,lottiejs.resize=animationManager.resize,lottiejs.goToAndStop=animationManager.goToAndStop,lottiejs.destroy=animationManager.destroy,lottiejs.setQuality=setQuality,lottiejs.inBrowser=inBrowser,lottiejs.installPlugin=installPlugin,lottiejs.freeze=animationManager.freeze,lottiejs.unfreeze=animationManager.unfreeze,lottiejs.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottiejs.__getFactory=getFactory,lottiejs.version="5.5.9";var standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src.replace(/^[^\?]+\??/,"");renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);return lottiejs})},1860:function(t,e,n){var i,r,o;/*! jQuery UI - v1.12.1 - 2016-09-14 * http://jqueryui.com * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ !function(a){r=[n(1861)],i=a,(o="function"==typeof i?i.apply(e,r):i)!==undefined&&(t.exports=o)}(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function n(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",n,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,o)}function o(){t.datepicker._isDisabledDatepicker(f.inline?f.dpDiv.parent()[0]:f.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,n){t.extend(e,n);for(var i in n)null==n[i]&&(e[i]=n[i]);return e}/*! * jQuery UI Spinner 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ function s(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{};var l=(t.ui.version="1.12.1",0),c=Array.prototype.slice;t.cleanData=function(e){return function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)try{i=t._data(r,"events"),i&&i.remove&&t(r).triggerHandler("remove")}catch(a){}e(n)}}(t.cleanData),t.widget=function(e,n,i){var r,o,a,s={},l=e.split(".")[0];e=e.split(".")[1];var c=l+"-"+e;return i||(i=n,n=t.Widget),t.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr[":"][c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),a=new n,a.options=t.widget.extend({},a.options),t.each(i,function(e,i){if(!t.isFunction(i))return void(s[e]=i);s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function r(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=r,e=i.apply(this,arguments),this._super=n,this._superApply=o,e}}()}),o.prototype=t.widget.extend(a,{widgetEventPrefix:r?a.widgetEventPrefix||e:e},s,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),r?(t.each(r._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,i,r=c.call(arguments,1),o=0,a=r.length;o<a;o++)for(n in r[o])i=r[o][n],r[o].hasOwnProperty(n)&&i!==undefined&&(t.isPlainObject(i)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],i):t.widget.extend({},i):e[n]=i);return e},t.widget.bridge=function(e,n){var i=n.prototype.widgetFullName||e;t.fn[e]=function(r){var o="string"==typeof r,a=c.call(arguments,1),s=this;return o?this.length||"instance"!==r?this.each(function(){var n,o=t.data(this,i);return"instance"===r?(s=o,!1):o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,a),n!==o&&n!==undefined?(s=n&&n.jquery?s.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+r+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):s=undefined:(a.length&&(r=t.widget.extend.apply(null,[r].concat(a))),this.each(function(){var e=t.data(this,i);e?(e.option(r||{}),e._init&&e._init()):t.data(this,i,new n(r,this))})),s}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=l++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},i=e.split("."),e=i.shift(),i.length){for(r=a[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return r[e]===undefined?null:r[e];r[e]=n}else{if(1===arguments.length)return this.options[e]===undefined?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function n(n,o){var a,s;for(s=0;s<n.length;s++)a=r.classesElementLookup[n[s]]||t(),a=t(e.add?t.unique(a.get().concat(e.element.get())):a.not(e.element).get()),r.classesElementLookup[n[s]]=a,i.push(n[s]),o&&e.classes[n[s]]&&i.push(e.classes[n[s]])}var i=[],r=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&n(e.keys.match(/\S+/g)||[],!0),e.extra&&n(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))})},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,function(i,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,u=l[2];u?r.on(c,u,s):n.on(c,s)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,a=this.options[e];if(i=i||{},n=t.Event(n),n.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){"string"==typeof r&&(r={effect:r});var a,s=r?!0===r||"number"==typeof r?n:r.effect||n:e;r=r||{},"number"==typeof r&&(r={duration:r}),a=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),a&&t.effects&&t.effects.effect[s]?i[e](r):s!==e&&i[s]?i[s](r.duration,r.easing,o):i.queue(function(n){t(this)[e](),o&&o.call(i[0]),n()})}});t.widget;/*! * jQuery UI Position 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/position/ */ !function(){function e(t,e,n){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?n/100:1)]}function n(e,n){return parseInt(t.css(e,n),10)||0}function i(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var r,o=Math.max,a=Math.abs,s=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,d=/%$/,h=t.fn.position;t.position={scrollbarWidth:function(){if(r!==undefined)return r;var e,n,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=i.children()[0];return t("body").append(i),e=o.offsetWidth,i.css("overflow","scroll"),n=o.offsetWidth,e===n&&(n=i[0].clientWidth),i.remove(),r=e-n},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=t.isWindow(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:i||r?{left:0,top:0}:t(e).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(r){if(!r||!r.of)return h.apply(this,arguments);r=t.extend({},r);var d,f,p,m,g,v,y=t(r.of),E=t.position.getWithinInfo(r.within),b=t.position.getScrollInfo(E),_=(r.collision||"flip").split(" "),C={};return v=i(y),y[0].preventDefault&&(r.at="left top"),f=v.width,p=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,e,n=(r[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):l.test(n[0])?["center"].concat(n):["center","center"]),n[0]=s.test(n[0])?n[0]:"center",n[1]=l.test(n[1])?n[1]:"center",t=c.exec(n[0]),e=c.exec(n[1]),C[this]=[t?t[0]:0,e?e[0]:0],r[this]=[u.exec(n[0])[0],u.exec(n[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===r.at[0]?g.left+=f:"center"===r.at[0]&&(g.left+=f/2),"bottom"===r.at[1]?g.top+=p:"center"===r.at[1]&&(g.top+=p/2),d=e(C.at,f,p),g.left+=d[0],g.top+=d[1],this.each(function(){var i,s,l=t(this),c=l.outerWidth(),u=l.outerHeight(),h=n(this,"marginLeft"),v=n(this,"marginTop"),T=c+h+n(this,"marginRight")+b.width,I=u+v+n(this,"marginBottom")+b.height,D=t.extend({},g),$=e(C.my,l.outerWidth(),l.outerHeight());"right"===r.my[0]?D.left-=c:"center"===r.my[0]&&(D.left-=c/2),"bottom"===r.my[1]?D.top-=u:"center"===r.my[1]&&(D.top-=u/2),D.left+=$[0],D.top+=$[1],i={marginLeft:h,marginTop:v},t.each(["left","top"],function(e,n){t.ui.position[_[e]]&&t.ui.position[_[e]][n](D,{targetWidth:f,targetHeight:p,elemWidth:c,elemHeight:u,collisionPosition:i,collisionWidth:T,collisionHeight:I,offset:[d[0]+$[0],d[1]+$[1]],my:r.my,at:r.at,within:E,elem:l})}),r.using&&(s=function(t){var e=m.left-D.left,n=e+f-c,i=m.top-D.top,s=i+p-u,d={target:{element:y,left:m.left,top:m.top,width:f,height:p},element:{element:l,left:D.left,top:D.top,width:c,height:u},horizontal:n<0?"left":e>0?"right":"center",vertical:s<0?"top":i>0?"bottom":"middle"};f<c&&a(e+n)<f&&(d.horizontal="center"),p<u&&a(i+s)<p&&(d.vertical="middle"),o(a(e),a(n))>o(a(i),a(s))?d.important="horizontal":d.important="vertical",r.using.call(this,t,d)}),l.offset(t.extend(D,{using:s}))})},t.ui.position={fit:{left:function(t,e){var n,i=e.within,r=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=t.left-e.collisionPosition.marginLeft,l=r-s,c=s+e.collisionWidth-a-r;e.collisionWidth>a?l>0&&c<=0?(n=t.left+l+e.collisionWidth-a-r,t.left+=l-n):t.left=c>0&&l<=0?r:l>c?r+a-e.collisionWidth:r:l>0?t.left+=l:c>0?t.left-=c:t.left=o(t.left-s,t.left)},top:function(t,e){var n,i=e.within,r=i.isWindow?i.scrollTop:i.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,l=r-s,c=s+e.collisionHeight-a-r;e.collisionHeight>a?l>0&&c<=0?(n=t.top+l+e.collisionHeight-a-r,t.top+=l-n):t.top=c>0&&l<=0?r:l>c?r+a-e.collisionHeight:r:l>0?t.top+=l:c>0?t.top-=c:t.top=o(t.top-s,t.top)}},flip:{left:function(t,e){var n,i,r=e.within,o=r.offset.left+r.scrollLeft,s=r.width,l=r.isWindow?r.scrollLeft:r.offset.left,c=t.left-e.collisionPosition.marginLeft,u=c-l,d=c+e.collisionWidth-s-l,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];u<0?((n=t.left+h+f+p+e.collisionWidth-s-o)<0||n<a(u))&&(t.left+=h+f+p):d>0&&((i=t.left-e.collisionPosition.marginLeft+h+f+p-l)>0||a(i)<d)&&(t.left+=h+f+p)},top:function(t,e){var n,i,r=e.within,o=r.offset.top+r.scrollTop,s=r.height,l=r.isWindow?r.scrollTop:r.offset.top,c=t.top-e.collisionPosition.marginTop,u=c-l,d=c+e.collisionHeight-s-l,h="top"===e.my[1],f=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];u<0?((i=t.top+f+p+m+e.collisionHeight-s-o)<0||i<a(u))&&(t.top+=f+p+m):d>0&&((n=t.top-e.collisionPosition.marginTop+f+p+m-l)>0||a(n)<d)&&(t.top+=f+p+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}();var u=(t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}}):function(e,n,i){return!!t.data(e,i[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),"ui-effects-animated"),d=t;t.effects={effect:{}},/*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ function(t,e){function n(t,e,n){var i=u[e.type]||{};return null==t?n||!e.def?null:e.def:(t=i.floor?~~t:parseFloat(t),isNaN(t)?e.def:i.mod?(t+i.mod)%i.mod:0>t?0:i.max<t?i.max:t)}function i(e){var n=l(),i=n._rgba=[];return e=e.toLowerCase(),f(s,function(t,r){var o,a=r.re.exec(e),s=a&&r.parse(a),l=r.space||"rgba";if(s)return o=n[l](s),n[c[l].cache]=o[c[l].cache],i=n._rgba=o._rgba,!1}),i.length?("0,0,0,0"===i.join()&&t.extend(i,o.transparent),n):o[e]}function r(t,e,n){return n=(n+1)%1,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}var o,a=/^([\-+])=\s*(\d+\.?\d*)/,s=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,n,i,r){return new t.Color.fn.parse(e,n,i,r)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},h=t("<p>")[0],f=t.each;h.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=h.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(e,r,a,s){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=t(e).css(r),r=void 0);var u=this,d=t.type(e),h=this._rgba=[];/*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ return void 0!==r&&(e=[e,r,a,s],d="array"),"string"===d?this.parse(i(e)||o._default):"array"===d?(f(c.rgba.props,function(t,i){h[i.idx]=n(e[i.idx],i)}),this):"object"===d?(e instanceof l?f(c,function(t,n){e[n.cache]&&(u[n.cache]=e[n.cache].slice())}):f(c,function(i,r){var o=r.cache;f(r.props,function(t,i){if(!u[o]&&r.to){if("alpha"===t||null==e[t])return;u[o]=r.to(u._rgba)}u[o][i.idx]=n(e[t],i,!0)}),u[o]&&t.inArray(null,u[o].slice(0,3))<0&&(u[o][3]=1,r.from&&(u._rgba=r.from(u[o])))}),this):void 0},is:function(t){var e=l(t),n=!0,i=this;return f(c,function(t,r){var o,a=e[r.cache];return a&&(o=i[r.cache]||r.to&&r.to(i._rgba)||[],f(r.props,function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]})),n}),n},_space:function(){var t=[],e=this;return f(c,function(n,i){e[i.cache]&&t.push(n)}),t.pop()},transition:function(t,e){var i=l(t),r=i._space(),o=c[r],a=0===this.alpha()?l("transparent"):this,s=a[o.cache]||o.to(a._rgba),d=s.slice();return i=i[o.cache],f(o.props,function(t,r){var o=r.idx,a=s[o],l=i[o],c=u[r.type]||{};null!==l&&(null===a?d[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),d[o]=n((l-a)*e+a,r)))}),this[r](d)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),r=l(e)._rgba;return l(t.map(n,function(t,e){return(1-i)*r[e]+i*t}))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t});return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),i=n.pop();return e&&n.push(~~(255*i)),"#"+t.map(n,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(i,r,o),l=Math.min(i,r,o),c=s-l,u=s+l,d=.5*u;return e=l===s?0:i===s?60*(r-o)/c+360:r===s?60*(o-i)/c+120:60*(i-r)/c+240,n=0===c?0:d<=.5?c/u:c/(2-u),[Math.round(e)%360,n,d,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],i=t[2],o=t[3],a=i<=.5?i*(1+n):i+n-i*n,s=2*i-a;return[Math.round(255*r(s,a,e+1/3)),Math.round(255*r(s,a,e)),Math.round(255*r(s,a,e-1/3)),o]},f(c,function(e,i){var r=i.props,o=i.cache,s=i.to,c=i.from;l.fn[e]=function(e){if(s&&!this[o]&&(this[o]=s(this._rgba)),void 0===e)return this[o].slice();var i,a=t.type(e),u="array"===a||"object"===a?e:arguments,d=this[o].slice();return f(r,function(t,e){var i=u["object"===a?t:e.idx];null==i&&(i=d[e.idx]),d[e.idx]=n(i,e)}),c?(i=l(c(d)),i[o]=d,i):l(d)},f(r,function(n,i){l.fn[n]||(l.fn[n]=function(r){var o,s=t.type(r),l="alpha"===n?this._hsla?"hsla":"rgba":e,c=this[l](),u=c[i.idx];return"undefined"===s?u:("function"===s&&(r=r.call(this,u),s=t.type(r)),null==r&&i.empty?this:("string"===s&&(o=a.exec(r))&&(r=u+parseFloat(o[2])*("+"===o[1]?1:-1)),c[i.idx]=r,this[l](c)))})})}),l.hook=function(e){var n=e.split(" ");f(n,function(e,n){t.cssHooks[n]={set:function(e,r){var o,a,s="";if("transparent"!==r&&("string"!==t.type(r)||(o=i(r)))){if(r=l(o||r),!d.rgba&&1!==r._rgba[3]){for(a="backgroundColor"===n?e.parentNode:e;(""===s||"transparent"===s)&&a&&a.style;)try{s=t.css(a,"backgroundColor"),a=a.parentNode}catch(c){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(c){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=l(e.elem,n),e.end=l(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(n,i){e["border"+i+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(d),function(){function e(e){var n,i,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)n=r[i],"string"==typeof r[n]&&(o[t.camelCase(n)]=r[n]);else for(n in r)"string"==typeof r[n]&&(o[n]=r[n]);return o}function n(e,n){var i,o,a={};for(i in n)o=n[i],e[i]!==o&&(r[i]||!t.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}var i=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(d.style(t.elem,n,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(r,o,a,s){var l=t.speed(o,a,s);return this.queue(function(){var o,a=t(this),s=a.attr("class")||"",c=l.children?a.find("*").addBack():a;c=c.map(function(){return{el:t(this),start:e(this)}}),o=function(){t.each(i,function(t,e){r[e]&&a[e+"Class"](r[e])})},o(),c=c.map(function(){return this.end=e(this.el[0]),this.diff=n(this.start,this.end),this}),a.attr("class",s),c=c.map(function(){var e=this,n=t.Deferred(),i=t.extend({},l,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,i),n.promise()}),t.when.apply(t,c.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(n,i,r,o){return i?t.effects.animateClass.call(this,{add:n},i,r,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(n,i,r,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},i,r,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,i,r,o,a){return"boolean"==typeof i||i===undefined?r?t.effects.animateClass.call(this,i?{add:n}:{remove:n},r,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},i,r,o)}}(t.fn.toggleClass),switchClass:function(e,n,i,r,o){return t.effects.animateClass.call(this,{add:n,remove:e},i,r,o)}})}(),function(){function e(e,n,i,r){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(r=n,i=null,n={}),("number"==typeof n||t.fx.speeds[n])&&(r=i,i=n,n={}),t.isFunction(i)&&(r=i,i=null),n&&t.extend(e,n),i=i||n.duration,e.duration=t.fx.off?0:"number"==typeof i?i:i in t.fx.speeds?t.fx.speeds[i]:t.fx.speeds._default,e.complete=r||n.complete,e}function n(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}function i(t,e){var n=e.outerWidth(),i=e.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=r.exec(t)||["",0,n,i,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?n:parseFloat(o[2]),bottom:"auto"===o[3]?i:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(n){return!!t(n).data(u)||e(n)}}(t.expr.filters.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data("ui-effects-"+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,r=e.length;i<r;i++)null!==e[i]&&(n=t.data("ui-effects-"+e[i]),t.css(e[i],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},i=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(i),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),i=e.parent(),"static"===e.css("position")?(i.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,i){n[i]=e.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(r),i.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,n,i){return i||(i=n,n="effect"),t.effects.effect[e]=i,t.effects.effect[e].mode=n,i},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(e||100)/100:1,r="vertical"!==n?(e||100)/100:1;return{height:t.height()*r,width:t.width()*i,outerHeight:t.outerHeight()*r,outerWidth:t.outerWidth()*i}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();e>1&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data("ui-effects-style",t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data("ui-effects-style")||"",t.removeData("ui-effects-style")},mode:function(t,e){var n=t.is(":hidden");return"toggle"===e&&(e=n?"show":"hide"),(n?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(e){var n,i=e.css("position"),r=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",n=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data("ui-effects-placeholder",n)),e.css({position:i,left:r.left,top:r.top}),n},removePlaceholder:function(t){var e="ui-effects-placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,n,i,r){return r=r||{},t.each(n,function(t,n){var o=e.cssUnit(n);o[0]>0&&(r[n]=o[0]*i+o[1])}),r}}),t.fn.extend({effect:function(){function n(e){function n(){s.removeData(u),t.effects.cleanUp(s),"hide"===i.mode&&s.hide(),a()}function a(){t.isFunction(l)&&l.call(s[0]),t.isFunction(e)&&e()}var s=t(this);i.mode=d.shift(),!1===t.uiBackCompat||o?"none"===i.mode?(s[c](),a()):r.call(s[0],i,n):(s.is(":hidden")?"hide"===c:"show"===c)?(s[c](),a()):r.call(s[0],i,a)}var i=e.apply(this,arguments),r=t.effects.effect[i.effect],o=r.mode,a=i.queue,s=a||"fx",l=i.complete,c=i.mode,d=[],h=function(e){var n=t(this),i=t.effects.mode(n,c)||o;n.data(u,!0),d.push(i),o&&("show"===i||i===o&&"hide"===i)&&n.show(),o&&"none"===i||t.effects.saveStyle(n),t.isFunction(e)&&e()};return t.fx.off||!r?c?this[c](i.duration,l):this.each(function(){l&&l.call(this)}):!1===a?this.each(h).each(n):this.queue(s,h).queue(s,n)},show:function(t){return function(i){if(n(i))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(t.fn.show),hide:function(t){return function(i){if(n(i))return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(t.fn.hide),toggle:function(t){return function(i){if(n(i)||"boolean"==typeof i)return t.apply(this,arguments);var r=e.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(t.fn.toggle),cssUnit:function(e){var n=this.css(e),i=[];return t.each(["em","px","%","pt"],function(t,e){n.indexOf(e)>0&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):i(this.css("clip"),this)},transfer:function(e,n){var i=t(this),r=t(e.to),o="fixed"===r.css("position"),a=t("body"),s=o?a.scrollTop():0,l=o?a.scrollLeft():0,c=r.offset(),u={top:c.top-s,left:c.left-l,height:r.innerHeight(),width:r.innerWidth()},d=i.offset(),h=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:d.top-s,left:d.left-l,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(u,e.duration,e.easing,function(){h.remove(),t.isFunction(n)&&n()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=i(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,n){e[n]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}})}();t.effects,t.effects.define("blind","hide",function(e,n){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},r=t(this),o=e.direction||"up",a=r.cssClip(),s={clip:t.extend({},a)},l=t.effects.createPlaceholder(r);s.clip[i[o][0]]=s.clip[i[o][1]],"show"===e.mode&&(r.cssClip(s.clip),l&&l.css(t.effects.clipToBox(s)),s.clip=a),l&&l.animate(t.effects.clipToBox(s),e.duration,e.easing),r.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("bounce",function(e,n){var i,r,o,a=t(this),s=e.mode,l="hide"===s,c="show"===s,u=e.direction||"up",d=e.distance,h=e.times||5,f=2*h+(c||l?1:0),p=e.duration/f,m=e.easing,g="up"===u||"down"===u?"top":"left",v="up"===u||"left"===u,y=0,E=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(g),d||(d=a["top"===g?"outerHeight":"outerWidth"]()/3),c&&(r={opacity:1},r[g]=o,a.css("opacity",0).css(g,v?2*-d:2*d).animate(r,p,m)),l&&(d/=Math.pow(2,h-1)),r={},r[g]=o;y<h;y++)i={},i[g]=(v?"-=":"+=")+d,a.animate(i,p,m).animate(r,p,m),d=l?2*d:d/2;l&&(i={opacity:0},i[g]=(v?"-=":"+=")+d,a.animate(i,p,m)),a.queue(n),t.effects.unshift(a,E,f+1)}),t.effects.define("clip","hide",function(e,n){var i,r={},o=t(this),a=e.direction||"vertical",s="both"===a,l=s||"horizontal"===a,c=s||"vertical"===a;i=o.cssClip(),r.clip={top:c?(i.bottom-i.top)/2:i.top,right:l?(i.right-i.left)/2:i.right,bottom:c?(i.bottom-i.top)/2:i.bottom,left:l?(i.right-i.left)/2:i.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(r.clip),r.clip=i),o.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("drop","hide",function(e,n){var i,r=t(this),o=e.mode,a="show"===o,s=e.direction||"left",l="up"===s||"down"===s?"top":"left",c="up"===s||"left"===s?"-=":"+=",u="+="===c?"-=":"+=",d={opacity:0};t.effects.createPlaceholder(r),i=e.distance||r["top"===l?"outerHeight":"outerWidth"](!0)/2,d[l]=c+i,a&&(r.css(d),d[l]=u+i,d.opacity=1),r.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("explode","hide",function(e,n){function i(){E.push(this),E.length===d*h&&r()}function r(){f.css({visibility:"visible"}),t(E).remove(),n()}var o,a,s,l,c,u,d=e.pieces?Math.round(Math.sqrt(e.pieces)):3,h=d,f=t(this),p=e.mode,m="show"===p,g=f.show().css("visibility","hidden").offset(),v=Math.ceil(f.outerWidth()/h),y=Math.ceil(f.outerHeight()/d),E=[];for(o=0;o<d;o++)for(l=g.top+o*y,u=o-(d-1)/2,a=0;a<h;a++)s=g.left+a*v,c=a-(h-1)/2,f.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*v,top:-o*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:s+(m?c*v:0),top:l+(m?u*y:0),opacity:m?0:1}).animate({left:s+(m?0:c*v),top:l+(m?0:u*y),opacity:m?1:0},e.duration||500,e.easing,i)}),t.effects.define("fade","toggle",function(e,n){var i="show"===e.mode;t(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("fold","hide",function(e,n){var i=t(this),r=e.mode,o="show"===r,a="hide"===r,s=e.size||15,l=/([0-9]+)%/.exec(s),c=!!e.horizFirst,u=c?["right","bottom"]:["bottom","right"],d=e.duration/2,h=t.effects.createPlaceholder(i),f=i.cssClip(),p={clip:t.extend({},f)},m={clip:t.extend({},f)},g=[f[u[0]],f[u[1]]],v=i.queue().length;l&&(s=parseInt(l[1],10)/100*g[a?0:1]),p.clip[u[0]]=s,m.clip[u[0]]=s,m.clip[u[1]]=0,o&&(i.cssClip(m.clip),h&&h.css(t.effects.clipToBox(m)),m.clip=f),i.queue(function(n){h&&h.animate(t.effects.clipToBox(p),d,e.easing).animate(t.effects.clipToBox(m),d,e.easing),n()}).animate(p,d,e.easing).animate(m,d,e.easing).queue(n),t.effects.unshift(i,v,4)}),t.effects.define("highlight","show",function(e,n){var i=t(this),r={backgroundColor:i.css("backgroundColor")};"hide"===e.mode&&(r.opacity=0),t.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:n})}),t.effects.define("size",function(e,n){var i,r,o,a=t(this),s=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=e.mode,d="effect"!==u,h=e.scale||"both",f=e.origin||["middle","center"],p=a.css("position"),m=a.position(),g=t.effects.scaledDimensions(a),v=e.from||g,y=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===u&&(o=v,v=y,y=o),r={from:{y:v.height/g.height,x:v.width/g.width},to:{y:y.height/g.height,x:y.width/g.width}},"box"!==h&&"both"!==h||(r.from.y!==r.to.y&&(v=t.effects.setTransition(a,l,r.from.y,v),y=t.effects.setTransition(a,l,r.to.y,y)),r.from.x!==r.to.x&&(v=t.effects.setTransition(a,c,r.from.x,v),y=t.effects.setTransition(a,c,r.to.x,y))),"content"!==h&&"both"!==h||r.from.y!==r.to.y&&(v=t.effects.setTransition(a,s,r.from.y,v),y=t.effects.setTransition(a,s,r.to.y,y)),f&&(i=t.effects.getBaseline(f,g),v.top=(g.outerHeight-v.outerHeight)*i.y+m.top,v.left=(g.outerWidth-v.outerWidth)*i.x+m.left,y.top=(g.outerHeight-y.outerHeight)*i.y+m.top,y.left=(g.outerWidth-y.outerWidth)*i.x+m.left),a.css(v),"content"!==h&&"both"!==h||(l=l.concat(["marginTop","marginBottom"]).concat(s),c=c.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var n=t(this),i=t.effects.scaledDimensions(n),o={height:i.height*r.from.y,width:i.width*r.from.x,outerHeight:i.outerHeight*r.from.y,outerWidth:i.outerWidth*r.from.x},a={height:i.height*r.to.y,width:i.width*r.to.x,outerHeight:i.height*r.to.y,outerWidth:i.width*r.to.x};r.from.y!==r.to.y&&(o=t.effects.setTransition(n,l,r.from.y,o),a=t.effects.setTransition(n,l,r.to.y,a)),r.from.x!==r.to.x&&(o=t.effects.setTransition(n,c,r.from.x,o),a=t.effects.setTransition(n,c,r.to.x,a)),d&&t.effects.saveStyle(n),n.css(o),n.animate(a,e.duration,e.easing,function(){d&&t.effects.restoreStyle(n)})})),a.animate(y,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===y.opacity&&a.css("opacity",v.opacity),d||(a.css("position","static"===p?"relative":p).offset(e),t.effects.saveStyle(a)),n()}})}),t.effects.define("scale",function(e,n){var i=t(this),r=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==r?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(i),to:t.effects.scaledDimensions(i,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,n)}),t.effects.define("puff","hide",function(e,n){var i=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,i,n)}),t.effects.define("pulsate","show",function(e,n){var i=t(this),r=e.mode,o="show"===r,a="hide"===r,s=o||a,l=2*(e.times||5)+(s?1:0),c=e.duration/l,u=0,d=1,h=i.queue().length;for(!o&&i.is(":visible")||(i.css("opacity",0).show(),u=1);d<l;d++)i.animate({opacity:u},c,e.easing),u=1-u;i.animate({opacity:u},c,e.easing),i.queue(n),t.effects.unshift(i,h,l+1)}),t.effects.define("shake",function(e,n){var i=1,r=t(this),o=e.direction||"left",a=e.distance||20,s=e.times||3,l=2*s+1,c=Math.round(e.duration/l),u="up"===o||"down"===o?"top":"left",d="up"===o||"left"===o,h={},f={},p={},m=r.queue().length;for(t.effects.createPlaceholder(r),h[u]=(d?"-=":"+=")+a,f[u]=(d?"+=":"-=")+2*a,p[u]=(d?"-=":"+=")+2*a,r.animate(h,c,e.easing);i<s;i++)r.animate(f,c,e.easing).animate(p,c,e.easing);r.animate(f,c,e.easing).animate(h,c/2,e.easing).queue(n),t.effects.unshift(r,m,l+1)}),t.effects.define("slide","show",function(e,n){var i,r,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,d=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0),h={};t.effects.createPlaceholder(o),i=o.cssClip(),r=o.position()[c],h[c]=(u?-1:1)*d+r,h.clip=o.cssClip(),h.clip[a[l][1]]=h.clip[a[l][0]],"show"===s&&(o.cssClip(h.clip),o.css(c,h[c]),h.clip=i,h[c]=r),o.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:n})});!1!==t.uiBackCompat&&t.effects.define("transfer",function(e,n){t(this).transfer(e,n)});/*! * jQuery UI Focusable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.ui.focusable=function(n,i){var r,o,a,s,l,c=n.nodeName.toLowerCase();return"area"===c?(r=n.parentNode,o=r.name,!(!n.href||!o||"map"!==r.nodeName.toLowerCase())&&(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(c)?(s=!n.disabled)&&(l=t(n).closest("fieldset")[0])&&(s=!l.disabled):s="a"===c?n.href||i:i,s&&t(n).is(":visible")&&e(t(n)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}});t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var n=e.data("ui-form-reset-instances");t.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};/*! * jQuery UI Support for jQuery core 1.7.x 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * */ "1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,n){function i(e,n,i,o){return t.each(r,function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(n-=parseFloat(t.css(e,"margin"+this))||0)}),n}var r="Width"===n?["Left","Right"]:["Top","Bottom"],o=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(e){return e===undefined?a["inner"+n].call(this):this.each(function(){t(this).css(o,i(this,e)+"px")})},t.fn["outer"+n]=function(e,r){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(o,i(this,e,!0,r)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))});/*! * jQuery UI Keycode 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,n,i,r,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),i=this.attr("id"),i&&(e=this.eq(0).parents().last(),o=e.add(e.length?e.siblings():this.siblings()),n="label[for='"+t.ui.escapeSelector(i)+"']",r=r.add(o.find(n).addBack(n))),this.pushStack(r))},t.fn.scrollParent=function(e){var n=this.css("position"),i="absolute"===n,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!i||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var n=t.attr(e,"tabindex"),i=null!=n;return(!i||n>=0)&&t.ui.focusable(e,i)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,n,i=this.options.icons;i&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+i.header),e.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,i.header)._addClass(n,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){if("active"===t)return void this._activate(e);"event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,i=this.headers.length,r=this.headers.index(e.target),o=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:o=this.headers[(r+1)%i];break;case n.LEFT:case n.UP:o=this.headers[(r-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:o=this.headers[0];break;case n.END:o=this.headers[i-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,n=this.options,i=n.heightStyle,r=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),n=e.uniqueId().attr("id"),i=e.next(),r=i.uniqueId().attr("id");e.attr("aria-controls",r),i.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(e=r.height(),this.element.siblings(":visible").each(function(){var n=t(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(e-=n.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===i&&(e=0,this.headers.next().each(function(){var n=t(this).is(":visible");n||t(this).show(),e=Math.max(e,t(this).css("height","").height()),n||t(this).hide()}).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n,i,r=this.options,o=this.active,a=t(e.currentTarget),s=a[0]===o[0],l=s&&r.collapsible,c=l?t():a.next(),u=o.next(),d={oldHeader:o,oldPanel:u,newHeader:l?t():a,newPanel:c};e.preventDefault(),s&&!r.collapsible||!1===this._trigger("beforeActivate",e,d)||(r.active=!l&&this.headers.index(a),this.active=s?t():a,this._toggle(d),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),r.icons&&(n=o.children(".ui-accordion-header-icon"),this._removeClass(n,null,r.icons.activeHeader)._addClass(n,null,r.icons.header)),s||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),r.icons&&(i=a.children(".ui-accordion-header-icon"),this._removeClass(i,null,r.icons.header)._addClass(i,null,r.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,e):(i.hide(),n.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,n){var i,r,o,a=this,s=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},d=c&&u.down||u,h=function(){a._toggleComplete(n)};return"number"==typeof d&&(o=d),"string"==typeof d&&(r=d),r=r||d.easing||u.easing,o=o||d.duration||u.duration,e.length?t.length?(i=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:r,complete:h,step:function(t,n){n.now=Math.round(t),"height"!==n.prop?"content-box"===l&&(s+=n.now):"content"!==a.options.heightStyle&&(n.now=Math.round(i-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,o,r,h):t.animate(this.showProps,o,r,h)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(n){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target),i=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.target).closest(".ui-menu-item"),i=t(e.currentTarget);n[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay(function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var n,i,r,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,i=this.previousFilter||"",o=!1,r=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),r===i?o=!0:r=i+r,n=this._filterMenuItems(r),n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(r=String.fromCharCode(e.keyCode),n=this._filterMenuItems(r)),n.length?(this.focus(e,n),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,i,r,o,a=this,s=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev(),i=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(i,"ui-menu-icon","ui-icon "+s),n.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",n.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),n=e.find(this.options.items),n.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),r=n.not(".ui-menu-item, .ui-menu-divider"),o=r.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,i,r;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=e.children(".ui-menu"),n.length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,i,r,o,a,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,r=e.offset().top-this.activeMenu.offset().top-n-i,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),r<0?this.activeMenu.scrollTop(o+r):r+s>a&&this.activeMenu.scrollTop(o+r-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(e),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var i;this.active&&(i="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[e]()),this.focus(n,i)},nextPage:function(e){var n,i,r;if(!this.active)return void this.next(e);this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i-r<0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(e){var n,i,r;if(!this.active)return void this.next(e);this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=t(this),n.offset().top-i+r>0}),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}});/*! * jQuery UI Autocomplete 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,i,r=this.element[0].nodeName.toLowerCase(),o="textarea"===r,a="input"===r;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return e=!0,i=!0,void(n=!0);e=!1,i=!1,n=!1;var o=t.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",r);break;case o.UP:e=!0,this._keyEvent("previous",r);break;case o.DOWN:e=!0,this._keyEvent("next",r);break;case o.ENTER:this.menu.active&&(e=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:n=!0,this._searchTimeout(r)}},keypress:function(i){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var r=t.ui.keyCode;switch(i.keyCode){case r.PAGE_UP:this._move("previousPage",i);break;case r.PAGE_DOWN:this._move("nextPage",i);break;case r.UP:this._keyEvent("previous",i);break;case r.DOWN:this._keyEvent("next",i)}}},input:function(t){if(i)return i=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){if(this.cancelBlur)return void delete this.cancelBlur;clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,n){var i,r;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});r=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:r})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(r.value),(i=n.item.attr("aria-label")||r.value)&&t.trim(i).length&&(this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(e,n){var i=n.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,i=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,i){i(t.ui.autocomplete.filter(e,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,r){i.xhr&&i.xhr.abort(),i.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){r(t)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),i=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||i)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),--this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var i=this;t.each(n,function(t,n){i._renderItemData(e,n)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var i=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,function(t){return i.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}});var h=(t.ui.autocomplete,/ui-corner-([a-z]){2,6}/g);t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,n=[];t.each(this.options.items,function(i,r){var o,a={};if(r)return"controlgroupLabel"===i?(o=e.element.find(r),o.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(o.get()))):void(t.fn[i]&&(a=e["_"+i+"Options"]?e["_"+i+"Options"]("middle"):{classes:{}},e.element.find(r).each(function(){var r=t(this),o=r[i]("instance"),s=t.widget.extend({},a);if("button"!==i||!r.parent(".ui-spinner").length){o||(o=r[i]()[i]("instance")),o&&(s.classes=e._resolveClassesValues(s.classes,o)),r[i](s);var l=r[i]("widget");t.data(l[0],"ui-controlgroup-data",o||r[i]("instance")),n.push(l[0])}})))}),this.childWidgets=t(t.unique(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var n=t(this),i=n.data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var n=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,n)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],i},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,n){var i={};return t.each(e,function(r){var o=n.options.classes[r]||"";o=t.trim(o.replace(h,"")),i[r]=(o+" "+e[r]).replace(/\s+/g," ")}),i},_setOption:function(t,e){if("direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t)return void this._callChildMethod(e?"disable":"enable");this.refresh()},refresh:function(){var e,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,i){var r=e[i]().data("ui-controlgroup-data");if(r&&n["_"+r.widgetName+"Options"]){var o=n["_"+r.widgetName+"Options"](1===e.length?"only":i);o.classes=n._resolveClassesValues(o.classes,r),r.element[r.widgetName](o)}else n._updateCornerClass(e[i](),i)}),this._callChildMethod("refresh"))}});/*! * jQuery UI Checkboxradio 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,n,i=this,r=this._super()||{};return this._readType(),n=this.element.labels(),this.label=t(n[n.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(r.disabled=e),r},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,n=this.element[0].name,i="input[name='"+t.ui.escapeSelector(n)+"']";return n?(e=this.form.length?t(this.form[0].elements).filter(i):t(i).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(e){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):this.icon!==undefined&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]);t.ui.checkboxradio;/*! * jQuery UI Button 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,n){var i="iconPosition"!==e,r=i?this.options.iconPosition:n,o="top"===r||"bottom"===r;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(r),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=t.showLabel===undefined?this.options.showLabel:t.showLabel,n=t.icon===undefined?this.options.icon:t.icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){if("text"===t)return void this._super("showLabel",e);"showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});t.ui.button;/*! * jQuery UI Datepicker 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.extend(t.ui,{datepicker:{version:"1.12.1"}});var f;t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var i,r,o;i=e.nodeName.toLowerCase(),r="div"===i||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),r),o.settings=t.extend({},n||{}),"input"===i?this._connectDatepicker(e,o):r&&this._inlineDatepicker(e,o)},_newInst:function(e,n){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var i=t(e);n.append=t([]),n.trigger=t([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var i,r,o,a=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),a&&(n.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[s?"before":"after"](n.append)),e.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),i=this._get(n,"showOn"),"focus"!==i&&"both"!==i||e.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(r=this._get(n,"buttonText"),o=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:r,title:r}):r)),e[s?"before":"after"](n.trigger),n.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,i,r,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(n=0,i=0,r=0;r<t.length;r++)t[r].length>n&&(n=t[r].length,i=r);return i},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,n){var i=t(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,i,r,o){var s,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),h=this._dialogInst=this._newInst(this._dialogInput,!1),h.settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(e){var n,i=t(e),r=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),f===r&&(f=null))},_enableDatepicker:function(e){var n,i,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),"input"===n?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||(i=r.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var n,i,r=t(e),o=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),"input"===n?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||(i=r.children("."+this._inlineClass),i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,i){var r,o,s,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?t.extend({},t.datepicker._defaults):c?"all"===n?t.extend({},c.settings):this._get(c,n):null;r=n||{},"string"==typeof n&&(r={},r[n]=i),c&&(this._curInst===c&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),s=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,r),null!==s&&r.dateFormat!==undefined&&r.minDate===undefined&&(c.settings.minDate=this._formatDate(c,s)),null!==l&&r.dateFormat!==undefined&&r.maxDate===undefined&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,o),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,i,r,o=t.datepicker._getInst(e.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),r[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,r[0]),n=t.datepicker._get(o,"onSelect"),n?(i=t.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[i,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,i,r=t.datepicker._getInst(e.target);if(t.datepicker._get(r,"constrainInput"))return n=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(e){var n,i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{n=t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i)),n&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(r){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,r,o,s,l,c,u;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),r=t.datepicker._get(i,"beforeShow"),o=r?r.apply(e,[e,i]):{},!1!==o&&(a(i.settings,o),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),s=!1,t(e).parents().each(function(){return!(s|="fixed"===t(this).css("position"))}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),l=t.datepicker._checkOffset(i,l,s),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),i.inline||(c=t.datepicker._get(i,"showAnim"),u=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",n(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?i.dpDiv.show(c,t.datepicker._get(i,"showOptions"),u):i.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,f=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,i=this._getNumberOfMonths(e),r=i[1],a=e.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&o.apply(a.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&e.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",17*r+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(n=e.yearshtml,setTimeout(function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,n,i){var r=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(i?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?r-a:0,n.left-=i&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=i&&n.top===e.input.offset().top+s?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>l&&l>r?Math.abs(n.left+r-l):0),n.top-=Math.min(n.top,n.top+o>c&&c>o?Math.abs(o+s):0),n},_findPos:function(e){for(var n,i=this._getInst(e),r=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return n=t(e).offset(),[n.left,n.top]},_hideDatepicker:function(e){var n,i,r,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(a,"showAnim"),i=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[n]||t.effects[n])?a.dpDiv.hide(n,t.datepicker._get(a,"showOptions"),i,r):a.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),i=t.datepicker._getInst(n[0]);(n[0].id===t.datepicker._mainDivId||0!==n.parents("#"+t.datepicker._mainDivId).length||n.hasClass(t.datepicker.markerClassName)||n.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!n.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===i)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,i){var r=t(e),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,n+("M"===i?this._get(o,"showCurrentAtPos"):0),i),this._updateDatepicker(o))},_gotoToday:function(e){var n,i=t(e),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(n=new Date,r.selectedDay=n.getDate(),r.drawMonth=r.selectedMonth=n.getMonth(),r.drawYear=r.selectedYear=n.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(e,n,i){var r=t(e),o=this._getInst(r[0]);o["selected"+("M"===i?"Month":"Year")]=o["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(e,n,i,r){var o,a=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",r).html(),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=i,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var i,r=t(e),o=this._getInst(r[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),i=this._get(o,"onSelect"),i?i.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var n,i,r,o=this._get(e,"altField");o&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),r=this.formatDate(n,i,this._getFormatConfig(e)),t(o).val(r))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,i){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;var r,o,a,s,l=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,h=(i?i.dayNames:null)||this._defaults.dayNames,f=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,p=(i?i.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,E=!1,b=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},_=function(t){var e=b(t),i="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r="y"===t?i:1,o=new RegExp("^\\d{"+r+","+i+"}"),a=n.substring(l).match(o);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},C=function(e,i,r){var o=-1,a=t.map(b(e)?r:i,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var i=e[1];if(n.substr(l,i.length).toLowerCase()===i.toLowerCase())return o=e[0],l+=i.length,!1}),-1!==o)return o+1;throw"Unknown name at position "+l},T=function(){if(n.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(E)"'"!==e.charAt(r)||b("'")?T():E=!1;else switch(e.charAt(r)){case"d":v=_("d");break;case"D":C("D",d,h);break;case"o":y=_("o");break;case"m":g=_("m");break;case"M":g=C("M",f,p);break;case"y":m=_("y");break;case"@":s=new Date(_("@")),m=s.getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"!":s=new Date((_("!")-this._ticksTo1970)/1e4),m=s.getFullYear(),g=s.getMonth()+1,v=s.getDate();break;case"'":b("'")?T():E=!0;break;default:T()}if(l<n.length&&(a=n.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=u?0:-100)),y>-1)for(g=1,v=y;;){if(o=this._getDaysInMonth(m,g-1),v<=o)break;g++,v-=o}if(s=this._daylightSavingAdjust(new Date(m,g-1,v)),s.getFullYear()!==m||s.getMonth()+1!==g||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var i,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,a=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;return n&&i++,n},c=function(t,e,n){var i=""+e;if(l(t))for(;i.length<n;)i="0"+i;return i},u=function(t,e,n,i){return l(t)?i[e]:n[e]},d="",h=!1;if(e)for(i=0;i<t.length;i++)if(h)"'"!==t.charAt(i)||l("'")?d+=t.charAt(i):h=!1;else switch(t.charAt(i)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),r,o);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),a,s);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(i)}return d},_possibleChars:function(t){var e,n="",i=!1,r=function(n){var i=e+1<t.length&&t.charAt(e+1)===n;return i&&e++,i};for(e=0;e<t.length;e++)if(i)"'"!==t.charAt(e)||r("'")?n+=t.charAt(e):i=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":r("'")?n+="'":i=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return t.settings[e]!==undefined?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),i=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),o=r,a=this._getFormatConfig(t);try{o=this.parseDate(n,i,a)||r}catch(s){i=e?"":i}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=i?o.getDate():0,t.currentMonth=i?o.getMonth():0,t.currentYear=i?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,i){var r=null==n||""===n?i:"string"==typeof n?function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(c){}for(var i=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,r=i.getFullYear(),o=i.getMonth(),a=i.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=s.exec(n);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o));break;case"y":case"Y":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,o))}l=s.exec(n)}return new Date(r,o,a)}(n):"number"==typeof n?isNaN(n)?i:function(t){var e=new Date;return e.setDate(e.getDate()+t),e}(n):new Date(n.getTime());return r=r&&"Invalid Date"===r.toString()?i:r,r&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var i=!e,r=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),r===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(i?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(i,-n,"M")},next:function(){t.datepicker._adjustDate(i,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(i)},selectDay:function(){return t.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(i,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,n,i,r,o,a,s,l,c,u,d,h,f,p,m,g,v,y,E,b,_,C,T,I,D,$,O,w,R,k,x,S,A,N,P,M,K,L,F,B=new Date,j=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),V=this._get(t,"isRTL"),H=this._get(t,"showButtonPanel"),U=this._get(t,"hideIfNoPrevNext"),z=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),q=this._get(t,"showCurrentAtPos"),W=this._get(t,"stepMonths"),Y=1!==G[0]||1!==G[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),Q=t.drawMonth-q,tt=t.drawYear;if(Q<0&&(Q+=12,tt--),Z)for(e=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-G[0]*G[1]+1,Z.getDate())),e=J&&e<J?J:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)--Q<0&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,n=this._get(t,"prevText"),n=z?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,Q-W,1)),this._getFormatConfig(t)):n,i=this._canAdjustMonth(t,-1,tt,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"e":"w")+"'>"+n+"</span></a>":U?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"e":"w")+"'>"+n+"</span></a>",r=this._get(t,"nextText"),r=z?this.formatDate(r,this._daylightSavingAdjust(new Date(tt,Q+W,1)),this._getFormatConfig(t)):r,o=this._canAdjustMonth(t,1,tt,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"w":"e")+"'>"+r+"</span></a>":U?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"w":"e")+"'>"+r+"</span></a>",a=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?X:j,a=z?this.formatDate(a,s,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",c=H?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(V?l:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(V?"":l)+"</div>":"",u=parseInt(this._get(t,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(t,"showWeek"),h=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),p=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),E=this._getDefaultDate(t),b="",C=0;C<G[0];C++){for(T="",this.maxRows=4,I=0;I<G[1];I++){if(D=this._daylightSavingAdjust(new Date(tt,Q,t.selectedDay)),$=" ui-corner-all",O="",Y){if(O+="<div class='ui-datepicker-group",G[1]>1)switch(I){case 0:O+=" ui-datepicker-group-first",$=" ui-corner-"+(V?"right":"left");break;case G[1]-1:O+=" ui-datepicker-group-last",$=" ui-corner-"+(V?"left":"right");break;default:O+=" ui-datepicker-group-middle",$=""}O+="'>"}for(O+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+$+"'>"+(/all|left/.test($)&&0===C?V?o:i:"")+(/all|right/.test($)&&0===C?V?i:o:"")+this._generateMonthYearHeader(t,Q,tt,J,Z,C>0||I>0,p,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",w=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",_=0;_<7;_++)R=(_+u)%7,w+="<th scope='col'"+((_+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[R]+"'>"+f[R]+"</span></th>";for(O+=w+"</tr></thead><tbody>",k=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,k)),x=(this._getFirstDayOfMonth(tt,Q)-u+7)%7,S=Math.ceil((x+k)/7),A=Y&&this.maxRows>S?this.maxRows:S,this.maxRows=A,N=this._daylightSavingAdjust(new Date(tt,Q,1-x)),P=0;P<A;P++){for(O+="<tr>",M=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(N)+"</td>":"",_=0;_<7;_++)K=g?g.apply(t.input?t.input[0]:null,[N]):[!0,""],L=N.getMonth()!==Q,F=L&&!y||!K[0]||J&&N<J||Z&&N>Z,M+="<td class='"+((_+u+6)%7>=5?" ui-datepicker-week-end":"")+(L?" ui-datepicker-other-month":"")+(N.getTime()===D.getTime()&&Q===t.selectedMonth&&t._keyEvent||E.getTime()===N.getTime()&&E.getTime()===D.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(L&&!v?"":" "+K[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===j.getTime()?" ui-datepicker-today":""))+"'"+(L&&!v||!K[2]?"":" title='"+K[2].replace(/'/g,"'")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(L&&!v?" ":F?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===j.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+(L?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);O+=M+"</tr>"}Q++,Q>11&&(Q=0,tt++),O+="</tbody></table>"+(Y?"</div>"+(G[0]>0&&I===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),T+=O}b+=T}return b+=c,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,n,i,r,o,a,s){var l,c,u,d,h,f,p,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),E="<div class='ui-datepicker-title'>",b="";if(o||!g)b+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=i&&i.getFullYear()===n,c=r&&r.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=i.getMonth())&&(!c||u<=r.getMonth())&&(b+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+s[u]+"</option>");b+="</select>"}if(y||(E+=b+(!o&&g&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!v)E+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),f=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},p=f(d[0]),m=Math.max(p,f(d[1]||"")),p=i?Math.max(p,i.getFullYear()):p,m=r?Math.min(m,r.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=m;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",E+=t.yearshtml,t.yearshtml=null}return E+=this._get(t,"yearSuffix"),y&&(E+=(!o&&g&&v?"":" ")+b),E+="</div>"},_adjustInstDate:function(t,e,n){var i=t.selectedYear+("Y"===n?e:0),r=t.selectedMonth+("M"===n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(i,r))+("D"===n?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(i,r,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),i=this._getMinMaxDate(t,"max"),r=n&&e<n?n:e;return i&&r>i?i:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,i){var r=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,i+(e<0?e:r[0]*r[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n,i,r=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,s=null,l=this._get(t,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),a=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(a+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!r||e.getTime()>=r.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,i){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(i,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1";var p=(t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);t(document).on("mouseup",function(){p=!1});t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!p){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,i=1===e.which,r=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),p=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,p=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,n,i){var r,o=t.ui[e].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(t,e,n,i){var r,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,n)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")};/*! * jQuery UI Draggable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging"))return void(this.destroyOnClear=!0);this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(n).length||t.ui.safeBlur(n)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",e)&&n._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper),r=i?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options,o=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),n=t(r.containment),void((i=n[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i,r,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),a.grid&&(r=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-a.grid[1]:r+a.grid[1]:r,o=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,i){var r=t.extend({},n,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n,i){var r=t.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))})},drag:function(e,n,i){t.each(i.sortables,function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r})),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",e),i.dropped=o.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(e),n.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,i){var r=t("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,n,i){var r=i.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,n,i){var r=i.options;r._opacity&&t(n.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,i){var r=i.options,o=!1,a=i.scrollParentNotHidden[0],s=i.document[0];a!==s&&"HTML"!==a.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+a.offsetHeight-e.pageY<r.scrollSensitivity?a.scrollTop=o=a.scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+a.offsetWidth-e.pageX<r.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(s).scrollTop()<r.scrollSensitivity?o=t(s).scrollTop(t(s).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<r.scrollSensitivity&&(o=t(s).scrollTop(t(s).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(s).scrollLeft()<r.scrollSensitivity?o=t(s).scrollLeft(t(s).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<r.scrollSensitivity&&(o=t(s).scrollLeft(t(s).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,i){var r=i.options;i.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),n=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,i){var r,o,a,s,l,c,u,d,h,f,p=i.options,m=p.snapTolerance,g=n.offset.left,v=g+i.helperProportions.width,y=n.offset.top,E=y+i.helperProportions.height;for(h=i.snapElements.length-1;h>=0;h--)l=i.snapElements[h].left-i.margins.left,c=l+i.snapElements[h].width,u=i.snapElements[h].top-i.margins.top,d=u+i.snapElements[h].height,v<l-m||g>c+m||E<u-m||y>d+m||!t.contains(i.snapElements[h].item.ownerDocument,i.snapElements[h].item)?(i.snapElements[h].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=!1):("inner"!==p.snapMode&&(r=Math.abs(u-E)<=m,o=Math.abs(d-y)<=m,a=Math.abs(l-v)<=m,s=Math.abs(c-g)<=m,r&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),f=r||o||a||s,"outer"!==p.snapMode&&(r=Math.abs(u-y)<=m,o=Math.abs(d-E)<=m,a=Math.abs(l-g)<=m,s=Math.abs(c-v)<=m,r&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[h].snapping&&(r||o||a||s||f)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=r||o||a||s||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,i){var r,o=i.options,a=t.makeArray(t(o.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});a.length&&(r=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,n,i){var r=i.options;r._zIndex&&t(n.helper).css("zIndex",r._zIndex)}});t.ui.draggable;/*! * jQuery UI Resizable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",r=!1;return e[i]>0||(e[i]=1,r=e[i]>0,e[i]=0,r)},_create:function(){var e,n=this.options,i=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var e,n,i,r,o,a=this.options,s=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)e=t.trim(i[n]),r="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var n,i,r,o;e=e||this.element;for(n in this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var n,i,r=!1;for(n in this.handles)((i=t(this.handles[n])[0])===e.target||t.contains(i,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,i,r,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),o.containment&&(n+=t(o.containment).scrollLeft()||0,i+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,i,r=this.originalMousePosition,o=this.axis,a=e.pageX-r.left||0,s=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[e,a,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,i,r,o,a,s,l,c=this.options,u=this;return this._helper&&(n=this._proportionallyResizeElements,i=n.length&&/textarea/i.test(n[0].nodeName),r=i&&this._hasScroll(n[0],"left")?0:u.sizeDiff.height,o=i?0:u.sizeDiff.width,a={width:u.helper.width()-o,height:u.helper.height()-r},s=parseFloat(u.element.css("left"))+(u.position.left-u.originalPosition.left)||null,l=parseFloat(u.element.css("top"))+(u.position.top-u.originalPosition.top)||null,c.animate||this.element.css(t.extend(a,{top:l,left:s})),u.helper.height(u.size.height),u.helper.width(u.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,i,r,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:Infinity,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),i>o.minHeight&&(o.minHeight=i),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&c&&(t.left=s-e.minWidth),i&&c&&(t.left=s-e.maxWidth),a&&u&&(t.top=l-e.minHeight),r&&u&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(r[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),a=o&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,s=o?0:n.sizeDiff.width,l={width:n.size.width-s,height:n.size.height-a},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,u=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(l,u&&c?{top:u,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&t(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,i,r,o,a,s,l=t(this).resizable("instance"),c=l.options,u=l.element,d=c.containment,h=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;h&&(l.containerElement=t(h),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(h),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,i){n[t]=l._num(e.css("padding"+i))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},i=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(h,"left")?h.scrollWidth:o,s=l._hasScroll(h)?h.scrollHeight:r,l.parentData={element:h,left:i.left,top:i.top,width:a,height:s}))},resize:function(e){var n,i,r,o,a=t(this).resizable("instance"),s=a.options,l=a.containerOffset,c=a.position,u=a._aspectRatio||e.shiftKey,d={top:0,left:0},h=a.containerElement,f=!0;h[0]!==document&&/static/.test(h.css("position"))&&(d=l),c.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-d.left),u&&(a.size.height=a.size.width/a.aspectRatio,f=!1),a.position.left=s.helper?l.left:0),c.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),u&&(a.size.width=a.size.height*a.aspectRatio,f=!1),a.position.top=a._helper?l.top:0),r=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),r&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),n=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-l.left)),i=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-l.top)),n+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-n,u&&(a.size.height=a.size.width/a.aspectRatio,f=!1)),i+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-i,u&&(a.size.width=a.size.height*a.aspectRatio,f=!1)),f||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.containerPosition,o=e.containerElement,a=t(e.helper),s=a.offset(),l=a.outerWidth()-e.sizeDiff.width,c=a.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:c}),e._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:s.left-r.left-i.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options;t(n.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,n){var i=t(this).resizable("instance"),r=i.options,o=i.originalSize,a=i.originalPosition,s={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-a.top||0,left:i.position.left-a.left||0};t(r.alsoResize).each(function(){var e=t(this),i=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var n=(i[e]||0)+(s[e]||0);n&&n>=0&&(r[e]=n||null)}),e.css(r)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,a=n.originalPosition,s=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,u=l[1]||1,d=Math.round((r.width-o.width)/c)*c,h=Math.round((r.height-o.height)/u)*u,f=o.width+d,p=o.height+h,m=i.maxWidth&&i.maxWidth<f,g=i.maxHeight&&i.maxHeight<p,v=i.minWidth&&i.minWidth>f,y=i.minHeight&&i.minHeight>p;i.grid=l,v&&(f+=c),y&&(p+=u),m&&(f-=c),g&&(p-=u),/^(se|s|e)$/.test(s)?(n.size.width=f,n.size.height=p):/^(ne)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.top=a.top-h):/^(sw)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.left=a.left-d):((p-u<=0||f-c<=0)&&(e=n._getPaddingPlusBorderDimensions(this)),p-u>0?(n.size.height=p,n.position.top=a.top-h):(p=u-e.height,n.size.height=p,n.position.top=a.top+o.height-p),f-c>0?(n.size.width=f,n.position.left=a.left-d):(f=c-e.width,n.size.width=f,n.position.left=a.left+o.width-f))}});t.ui.resizable;/*! * jQuery UI Dialog 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;n<0&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var i=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,r);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),i=!0),i&&!n&&this._trigger("focus",e),i},open:function(){var e=this;if(this._isOpen)return void(this._moveToTop()&&this._focusTabbable());this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open")},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function n(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.filter(":first"),r=n.filter(":last");e.target!==r[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){r.trigger("focus")}),e.preventDefault()):(this._delay(function(){i.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;if(this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length)return void this._removeClass(this.uiDialog,"ui-dialog-buttons");t.each(n,function(n,i){var r,o;i=t.isFunction(i)?{click:i,text:n}:i,i=t.extend({type:"button"},i),r=i.click,o={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,t("<button></button>",i).button(o).appendTo(e.uiButtonSet).on("click",function(){r.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var n=this,i=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,r){n._addClass(t(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",i,e(r))},drag:function(t,i){n._trigger("drag",t,e(i))},stop:function(r,o){var a=o.offset.left-n.document.scrollLeft(),s=o.offset.top-n.document.scrollTop();i.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(s>=0?"+":"")+s,of:n.window},n._removeClass(t(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",r,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var n=this,i=this.options,r=i.resizable,o=this.uiDialog.css("position"),a="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:a,start:function(i,r){n._addClass(t(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",i,e(r))},resize:function(t,i){n._trigger("resize",t,e(i))},stop:function(r,o){var a=n.uiDialog.offset(),s=a.left-n.document.scrollLeft(),l=a.top-n.document.scrollTop();i.height=n.uiDialog.height(),i.width=n.uiDialog.width(),i.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(l>=0?"+":"")+l,of:n.window},n._removeClass(t(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",r,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);-1!==n&&e.splice(n,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var n=this,i=!1,r={};t.each(e,function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(i=!0),t in n.resizableRelatedOptions&&(r[t]=e)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(e,n){var i,r,o=this.uiDialog;"disabled"!==e&&(this._super(e,n),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(i=o.is(":data(ui-draggable)"),i&&!n&&o.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(r=o.is(":data(ui-resizable)"),r&&!n&&o.resizable("destroy"),r&&"string"==typeof n&&o.resizable("option","handles",n),r||!1===n||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),t=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),e=Math.max(0,i.minHeight-t),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-t):"none","auto"===i.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}});t.ui.dialog;/*! * jQuery UI Droppable 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,n){if("accept"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if("scope"===e){var i=t.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var i=n||t.ui.ddmanager.current,r=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=t(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&m(i,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e))return r=!0,!1}),!r&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var m=t.ui.intersect=function(){function t(t,e,n){return t>=e&&t<e+n}return function(e,n,i,r){if(!n.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,s=o+e.helperProportions.width,l=a+e.helperProportions.height,c=n.offset.left,u=n.offset.top,d=c+n.proportions().width,h=u+n.proportions().height;switch(i){case"fit":return c<=o&&s<=d&&u<=a&&l<=h;case"intersect":return c<o+e.helperProportions.width/2&&s-e.helperProportions.width/2<d&&u<a+e.helperProportions.height/2&&l-e.helperProportions.height/2<h;case"pointer":return t(r.pageY,u,n.proportions().height)&&t(r.pageX,c,n.proportions().width);case"touch":return(a>=u&&a<=h||l>=u&&l<=h||a<u&&l>h)&&(o>=c&&o<=d||s>=c&&s<=d||o<c&&s>d);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,n){var i,r,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=n?n.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||e&&!o[i].accept.call(o[i].element[0],e.currentItem||e.element))){for(r=0;r<s.length;r++)if(s[r]===o[i].element[0]){o[i].proportions().height=0;continue t}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===a&&o[i]._activate.call(o[i],n),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(e,n){var i=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&m(e,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(e,n){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)})},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,r,o,a=m(e,this,this.options.tolerance,n),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(r=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===r}),o.length&&(i=t(o[0]).droppable("instance"),i.greedyChild="isover"===s)),i&&"isover"===s&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,n),i&&"isout"===s&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(e,n){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(t===undefined)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return t===undefined&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var n=t(this),i=n.offset(),r={left:i.left-e.elementPos.left,top:i.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:n,left:r.left,top:r.top,right:r.left+n.outerWidth(),bottom:r.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var n=this,i=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(i.filter,this.element[0]),this._trigger("start",e),t(i.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=t.data(this,"selectable-item");i.startselected=!0,e.metaKey||e.ctrlKey||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element}))}),t(e.target).parents().addBack().each(function(){var i,r=t.data(this,"selectable-item");if(r)return i=!e.metaKey&&!e.ctrlKey||!r.$element.hasClass("ui-selected"),n._removeClass(r.$element,i?"ui-unselecting":"ui-selected")._addClass(r.$element,i?"ui-selecting":"ui-unselecting"),r.unselecting=!i,r.selecting=i,r.selected=i,i?n._trigger("selecting",e,{selecting:r.element}):n._trigger("unselecting",e,{unselecting:r.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,i=this,r=this.options,o=this.opos[0],a=this.opos[1],s=e.pageX,l=e.pageY;return o>s&&(n=s,s=o,o=n),a>l&&(n=l,l=a,a=n),this.helper.css({left:o,top:a,width:s-o,height:l-a}),this.selectees.each(function(){var n=t.data(this,"selectable-item"),c=!1,u={};n&&n.element!==i.element[0]&&(u.left=n.left+i.elementPos.left,u.right=n.right+i.elementPos.left,u.top=n.top+i.elementPos.top,u.bottom=n.bottom+i.elementPos.top,"touch"===r.tolerance?c=!(u.left>s||u.right<o||u.top>l||u.bottom<a):"fit"===r.tolerance&&(c=u.left>o&&u.right<s&&u.top>a&&u.bottom<l),c?(n.selected&&(i._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(i._addClass(n.$element,"ui-selecting"),n.selecting=!0,i._trigger("selecting",e,{selecting:n.element}))):(n.selecting&&((e.metaKey||e.ctrlKey)&&n.startselected?(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,i._addClass(n.$element,"ui-selected"),n.selected=!0):(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),i._trigger("unselecting",e,{unselecting:n.element}))),n.selected&&(e.metaKey||e.ctrlKey||n.startselected||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element})))))}),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var i=t.data(this,"selectable-item");n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1,i.startselected=!1,n._trigger("unselected",e,{unselected:i.element})}),t(".ui-selecting",this.element[0]).each(function(){var i=t.data(this,"selectable-item");n._removeClass(i.$element,"ui-selecting")._addClass(i.$element,"ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,n._trigger("selected",e,{selected:i.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,n=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){n._rendered||n._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,n){t.preventDefault(),e._setSelection(),e._select(n.item.data("ui-selectmenu-item"),t)},focus:function(t,n){var i=n.item.data("ui-selectmenu-item");null!=e.focusIndex&&i.index!==e.focusIndex&&(e._trigger("focus",t,{item:i}),e.isOpen||e._select(i,t)),e.focusIndex=i.index,e.button.attr("aria-activedescendant",e.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var n=t("<span>");return this._setText(n,e.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(e,n){var i=this,r="";t.each(n,function(n,o){var a;o.optgroup!==r&&(a=t("<li>",{text:o.optgroup}),i._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),r=o.optgroup),i._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,n){var i=t("<li>"),r=t("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(r,n.label),i.append(r).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var n,i,r=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),r+=":not(.ui-state-disabled)"),i="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](r).eq(-1):n[t+"All"](r).eq(0),i.length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var n=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),n=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),n=!1}n&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;if(!1===t)return void this.button.css("width","");null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var n=this,i=[];e.each(function(e,r){i.push(n._parseOption(t(r),e))}),this.items=i},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,i=this.options,r=this.element.find(".ui-slider-handle"),o=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),e=r.length;e<n;e++)o.push("<span tabindex='0'></span>");this.handles=r.add(t(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,i,r,o,a,s,l,c=this,u=this.options;return!u.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var n=Math.abs(i-c.values(e));(r>n||r===n&&(e===c._lastChangedValue||c.values(e)===u.min))&&(r=n,o=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,i,r,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),i=n/e,i>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),o=this._valueMin()+i*r,this._trimAlignValue(o)},_uiHash:function(t,e,n){var i={handle:this.handles[t],handleIndex:t,value:e!==undefined?e:this.value()};return this._hasMultipleValues()&&(i.value=e!==undefined?e:this.values(t),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var i,r=this.value(),o=this.values();this._hasMultipleValues()&&(i=this.values(e?0:1),r=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(i,n):Math.max(i,n)),o[e]=n),n!==r&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var i,r,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,r=arguments[0],o=0;o<i.length;o+=1)i[o]=this._trimAlignValue(r[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var i,r=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(r=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=r-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,i;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,i=t-n;return 2*Math.abs(n)>=e&&(i+=n>0?e:-e),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;t=Math.round((t-e)/n)*n+e,t>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,i,r,o,a=this.options.range,s=this.options,l=this,c=!this._animateOff&&s.animate,u={};this._hasMultipleValues()?this.handles.each(function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[c?"animate":"css"](u,s.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[c?"animate":"css"]({left:n+"%"},s.animate),1===i&&l.range[c?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===i&&l.range.stop(1,1)[c?"animate":"css"]({bottom:n+"%"},s.animate),1===i&&l.range[c?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n}):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[c?"animate":"css"](u,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,i,r,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(r=this.options.step,n=i=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:i=this._valueMin();break;case t.ui.keyCode.END:i=this._valueMax();break;case t.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+r);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-r)}this._slide(e,o,i)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var i=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return i=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(i=t(e.target)),!!i&&(!(this.options.handle&&!n&&(t(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(r=!0)}),!r))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,n,i){var r,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,i,r,o,a=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=this.items[n],r=i.item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,l=s+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||i+c>s&&i+c<l,h="y"===this.options.axis||e+u>o&&e+u<a,f=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<a&&s<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!i||!r)&&(e=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function n(){s.push(this)}var i,r,o,a,s=[],l=[],c=this._connectWith();if(c&&e)for(i=c.length-1;i>=0;i--)for(o=t(c[i],this.document[0]),r=o.length-1;r>=0;r--)(a=t.data(o[r],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=l.length-1;i>=0;i--)l[i][0].each(n);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,r,o,a,s,l,c,u=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(r=t(h[n],this.document[0]),i=r.length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=d.length-1;n>=0;n--)for(a=d[n][1],s=d[n][0],i=0,c=s.length;i<c;i++)l=t(s[i]),l.data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var n,i,r,o;for(n=this.items.length-1;n>=0;n--)i=this.items[n],i.instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=r.outerWidth(),i.height=r.outerHeight()),o=r.offset(),i.left=o.left,i.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var n,i=e.options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=e.currentItem[0].nodeName.toLowerCase(),r=t("<"+i+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===i?e._createTrPlaceholder(e.currentItem,r):"img"===i&&r.attr("src",e.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(t,r){n&&!i.forcePlaceholderSize||(r.height()||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(i.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),i.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var i=this;e.children().each(function(){t("<td> </td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(e){var n,i,r,o,a,s,l,c,u,d,h=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&t.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(r=1e4,o=null,u=h.floating||this._isFloating(this.currentItem),a=u?"left":"top",s=u?"width":"height",d=u?"pageX":"pageY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[f].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[a],c=!1,e[d]-l>this.items[i][s]/2&&(c=!0),Math.abs(e[d]-l)<r&&(r=Math.abs(e[d]-l),o=this.items[i],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var n=this.options,i=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||t("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],n=t(r.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*i}},_generatePosition:function(e){var n,i,r=this.options,o=e.pageX,a=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:s.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){function n(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&r.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(r.push(function(t){this._trigger("remove",t,this._uiHash())}),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||r.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<r.length;i++)r[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}});t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),n=this.element;return t.each(["min","max","step"],function(t,i){var r=n.attr(i);null!=r&&r.length&&(e[i]=r)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){if(this.cancelBlur)return void delete this.cancelBlur;this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function n(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var n=this.options,i=t.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,n.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,n)},t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_adjustValue:function(t){var e,n,i=this.options;return e=null!==i.min?i.min:0,n=t-e,n=Math.round(n/i.step)*i.step,t=e+n,t=parseFloat(t.toFixed(this._precision())),null!==i.max&&t>i.max?i.max:null!==i.min&&t<i.min?i.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n,i,r;if("culture"===t||"numberFormat"===t)return n=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(n));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:s(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:s(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:s(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:s(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:s(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());s(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});t.ui.spinner;/*! * jQuery UI Tabs 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var n,i;n=e.href.replace(t,""),i=location.href.replace(t,"");try{n=decodeURIComponent(n)}catch(r){}try{i=decodeURIComponent(i)}catch(r){}return e.hash.length>1&&n===i}}(),_create:function(){var e=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(n.active):this.active=t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,i=location.hash.substring(1);return null===e&&(i&&this.tabs.each(function(n,r){if(t(r).attr("aria-controls")===i)return e=n,!1}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!n&&0),!n&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(t.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(n),r=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:i++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:r=!1,i--;break;case t.ui.keyCode.END:i=this.anchors.length-1;break;case t.ui.keyCode.HOME:i=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,r),e.ctrlKey||e.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){for(var i=this.tabs.length-1;-1!==t.inArray(function(){return e>i&&(e=0),e<0&&(e=i),e}(),this.options.disabled);)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){if("active"===t)return void this._activate(e);this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),function(t){return n.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,n=this.tabs,i=this.anchors,r=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(n,i){var r,o,a,s=t(i).uniqueId().attr("id"),l=t(i).closest("li"),c=l.attr("aria-controls");e._isLocal(i)?(r=i.hash,a=r.substring(1),o=e.element.find(e._sanitizeSelector(r))):(a=l.attr("aria-controls")||t({}).uniqueId()[0].id,r="#"+a,o=e.element.find(r),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[n-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":a,"aria-labelledby":s}),o.attr("aria-labelledby",s)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(i.not(this.anchors)),this._off(r.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var n,i,r;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),r=0;i=this.tabs[r];r++)n=t(i),!0===e||-1!==t.inArray(r,e)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),function(t,e){n[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,i=this.element.parent();"fill"===e?(n=i.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),i=e.css("position");"absolute"!==i&&"fixed"!==i&&(n-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each(function(){n=Math.max(n,t(this).height("").height())}).height(n))},_eventHandler:function(e){var n=this.options,i=this.active,r=t(e.currentTarget),o=r.closest("li"),a=o[0]===i[0],s=a&&n.collapsible,l=s?t():this._getPanelForTab(o),c=i.length?this._getPanelForTab(i):t(),u={oldTab:i,oldPanel:c,newTab:s?t():o,newPanel:l};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||!1===this._trigger("beforeActivate",e,u)||(n.active=!s&&this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),c.length||l.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),l.length&&this.load(this.tabs.index(o),e),this._toggle(e,u))},_toggle:function(e,n){function i(){o.running=!1,o._trigger("activate",e,n)}function r(){o._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,i):(a.show(),i())}var o=this,a=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){o._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?n.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;!1!==n&&(e===undefined?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,n){return n!==e?n:null})),this._setOptionDisabled(n))},disable:function(e){var n=this.options.disabled;if(!0!==n){if(e===undefined)n=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,n))return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setOptionDisabled(n)}},load:function(e,n){e=this._getIndex(e);var i=this,r=this.tabs.eq(e),o=r.find(".ui-tabs-anchor"),a=this._getPanelForTab(r),s={tab:r,panel:a},l=function(t,e){"abort"===e&&i.panels.stop(!1,!0),i._removeClass(r,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===i.xhr&&delete i.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,n,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(r,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,r){setTimeout(function(){a.html(t),i._trigger("load",n,s),l(r,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,n,i){var r=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return r._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:o},i))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});t.ui.tabs;/*! * jQuery UI Tooltip 1.12.1 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license */ t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(i.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),r=t.inArray(n,i);-1!==r&&i.splice(r,1),e.removeData("ui-tooltip-id"),i=t.trim(i.join(" ")),i?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,n){var i=this;this._super(e,n),"content"===e&&t.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur");r.target=r.currentTarget=i.element[0],e.close(r,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var n=this,i=t(e?e.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&i.parents().each(function(){var e,i=t(this);i.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,n.close(e,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(e,i),this._updateContent(i,e))},_updateContent:function(t,e){var n,i=this.options.content,r=this,o=e?e.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(e,t,i);(n=i.call(t[0],function(n){r._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,n))})}))&&this._open(e,t,n)},_open:function(e,n,i){function r(t){c.of=t,a.is(":hidden")||a.position(c)}var o,a,s,l,c=t.extend({},this.options.position);if(i){if(o=this._find(n))return void o.tooltip.find(".ui-tooltip-content").html(i);n.is("[title]")&&(e&&"mouseover"===e.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),a=o.tooltip,this._addDescribedBy(n,a.attr("id")),a.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),l=t("<div>").html(a.find(".ui-tooltip-content").html()),l.removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:r}),r(e)):a.position(t.extend({of:n},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(s=this.delayedShow=setInterval(function(){a.is(":visible")&&(r(c.of),clearInterval(s))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,n){var i={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(n).tooltip)}),e&&"mouseover"!==e.type||(i.mouseleave="close"),e&&"focusin"!==e.type||(i.focusout="close"),this._on(!0,n,i)},close:function(e){var n,i=this,r=t(e?e.currentTarget:this.element),o=this._find(r);if(!o)return void r.removeData("ui-tooltip-open");n=o.tooltip,o.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),o.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(t(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,n){t(n.element).attr("title",n.title),delete i.parents[e]}),o.closing=!0,this._trigger("close",e,{tooltip:n}),o.hiding||(o.closing=!1))},_tooltip:function(e){var n=t("<div>").attr("role","tooltip"),i=t("<div>").appendTo(n),r=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(e)),this.tooltips[r]={element:e,tooltip:n}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(n,i){var r=t.Event("blur"),o=i.element;r.target=r.currentTarget=o[0],e.close(r,!0),t("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}});t.ui.tooltip})},2040:function(t,e){function n(){var t=function(){function e(t){return t!=undefined&&null!=t}function n(t){return null!=t&&void 0!==t}function i(t,e){for(var n=0;n<t.length;n++)if(-1!=e.indexOf(t[n]))return!0;return!1}function r(t){Nt?t():Pt[Pt.length]=t}function o(t){Nt?t():Mt[Mt.length]=t}function a(){if(!Nt){try{var t=St.getElementsByTagName("body")[0].appendChild(St.createElement("div"));t.parentNode.removeChild(t)}catch(n){return}Nt=!0;for(var e=0;e<Pt.length;e++)Pt[e]();for(var e=0;e<Mt.length;e++)Mt[e]()}}function s(t){if(n(At.addEventListener))At.addEventListener("load",t,!1);else if(n(St.addEventListener))St.addEventListener("load",t,!1);else if(n(At.attachEvent))At.attachEvent("onload",t);else if("function"==typeof At.onload){var e=At.onload;At.onload=function(){e(),t()}}else At.onload=t}function l(){var t=n(St.getElementById)&&n(St.getElementsByTagName)&&n(St.createElement),i=navigator.userAgent.toLowerCase(),r=navigator.platform.toLowerCase(),o=/win/.test(r?r:i),a=/mac/.test(r?r:i),s=/linux/.test(r?r:i),l=/chrome/.test(i),c=!(l||!/webkit/.test(i))&&parseFloat(i.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")),u=/opera/.test(i),d=null,h=null,f=!1;try{f=n(window.execScript),f||(f=null!=navigator.userAgent.match(/Trident/i))}catch(D){f=!1}var p=!1,m=!1;if(p=null!=navigator.userAgent.match(/Edge/i),f&&null!=navigator.userAgent.match(/Windows NT 6\.[23]/i))try{new ActiveXObject("htmlfile")}catch($){m=!0}if((p||m)&&(f=!1),a){(r&&/intel/.test(r)||/intel/.test(i))&&(d="intel");var g=i.match(/mac os x (10[0-9_\.]+)/);h=e(g)?g[0].replace("mac os x ","").replace(/_/g,"."):null}"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),"function"!=typeof String.prototype.startsWith&&(String.prototype.startsWith=function(t,e){return e=e||0,this.indexOf(t,e)===e});var v=navigator.mimeTypes,y=null,E=null,b=null,_=!1;if("undefined"!=typeof __dtjavaTestHook__&&null!=__dtjavaTestHook__&&null!=__dtjavaTestHook__.jre&&null!=__dtjavaTestHook__.jfx&&null!=__dtjavaTestHook__.deploy)y=__dtjavaTestHook__.jre,E=__dtjavaTestHook__.deploy,b=__dtjavaTestHook__.jfx,_=!0;else for(var g=0;g<v.length;g++){var C=navigator.mimeTypes[g].type;if(-1!=C.indexOf("application/x-java-applet;version")&&-1!=C.indexOf("=")){var T=C.substring(C.indexOf("=")+1);(null==y||x(y+"+",T))&&(y=T)}-1!=C.indexOf("application/x-java-applet;deploy")&&-1!=C.indexOf("=")&&(E=C.substring(C.indexOf("=")+1)),-1!=C.indexOf("application/x-java-applet;javafx")&&-1!=C.indexOf("=")&&(b=C.substring(C.indexOf("=")+1))}var I=null!=navigator.userAgent.match(/Firefox/i);return{haveDom:t,wk:c,ie:f,win:o,linux:s,mac:a,op:u,chrome:l,edge:p,jre:y,deploy:E,fx:b,noPluginWebBrowser:p||l||m||I&&null==y,cputype:d,osVersion:h,override:_}}function u(){var t=document.createElement("div");t.id="messagebox",t.setAttribute("style","background-color: #ffffce;text-align: left;border: solid 1px #f0c000; padding: 1.65em 1.65em .75em 0.5em; font-family: Helvetica, Arial, sans-serif; font-size: 75%; bottom:0; left:0; right:0; position:fixed; margin:auto; opacity:0.9; width:400px;"),t.innerHTML='<span style="margin-left:10px;font-weight:bold;float:right;font-size:22px;line-height:20px;cursor:pointer;color:red;" onclick="this.parentElement.style.display=\'none\';">×</span><img src="https://java.com/js/alert_16.png"><div style="border: .85px; margin:-2.2em 0 0.55em 2.5em;"><p>Java Plug-in is not supported by this browser. <a href="https://java.com/dt-redirect">More info</a></p>',document.body.appendChild(t)}function d(t){var e;if(f(t))e=t;else{var n=window.location.href,i=n.lastIndexOf("/");e=(i>-1?n.substring(0,i+1):n+"/")+t}return e}function h(t){document.location="jnlp:"+d(t)}function f(t){for(var e=["http://","https://","file://"],n=0;n<e.length;n++)if(t.toLowerCase().startsWith(e[n]))return!0;return!1}function m(t){for(var e in t)this[e]=t[e];this.toString=function(){return"MISMATCH [os="+this.os+", browser="+this.browser+", jre="+this.jre+", fx="+this.fx+", relaunch="+this.relaunch+", platform="+this.platform+"]"},this.isUnsupportedPlatform=function(){return this.os},this.isUnsupportedBrowser=function(){return this.browser},this.jreStatus=function(){return this.jre},this.jreInstallerURL=function(t){return this.os||"old"!=this.jre&&"none"!=this.jre?null:V(t)},this.javafxStatus=function(){return this.fx},this.javafxInstallerURL=function(t){return this.os||"old"!=this.fx&&"none"!=this.fx?null:"http://www.oracle.com/technetwork/java/javafx/downloads/index.html"},this.canAutoInstall=function(){return Y(this.platform,this.jre,this.fx)},this.isRelaunchNeeded=function(){return this.relaunch}}function g(t){if(null!=Kt.fx&&S(t,Kt.fx))return Kt.fx;var n=ot();if(e(n))try{return n.getInstalledFXVersion(t)}catch(i){}return null}function v(t){return null!=t?t.join(" "):null}function y(t,n){return e(t)?(t.push(n),t):[n]}function E(i,r,o){var a=Et(i,!0);if(Kt.noPluginWebBrowser)return void h(a.url);if(!e(a)||!e(a.url))throw"Required attribute missing! (application url need to be specified)";r=new t.Platform(r),o=new t.Callbacks(o);var s=function(){var t=e(r.jvmargs)?r.jvmargs:null;if(e(r.javafx)){t=y(t," -Djnlp.fx="+g(r.javafx)),e(i.toolkit)&&"fx"!=i.toolkit||(t=y(t," -Djnlp.tk=jfx"))}if(!I()||Kt.linux&&Kt.chrome||!R(a,t,o)){var s=ot();if(e(s))try{try{if(x("10.6+",Kt.deploy,!1)){var l={url:a.url};if(e(t)&&(l.vmargs=t),e(a.params)){var c={};for(var u in a.params)c[u]=String(a.params[u]);l.params=c}e(a.jnlp_content)&&(l.jnlp_content=a.jnlp_content);0==s.launchApp(l)&&n(o.onRuntimeError)&&o.onRuntimeError(a.id)}else s.launchApp(a.url,a.jnlp_content,v(t))||n(o.onRuntimeError)&&o.onRuntimeError(a.id);return}catch(h){return void(s.launchApp(a.url,a.jnlp_content)||n(o.onRuntimeError)&&o.onRuntimeError(a.id))}}catch(f){}var d=k(a.url);e(St.body)?St.body.appendChild(d):St.write(d.innerHTML)}},l=F(r);null!=l?T(a,r,l,o,s):s()}function b(t,e,i){n(i.onDeployError)&&i.onDeployError(t,e)}function _(t){return null!=t&&n(t.version)}function C(i,r){var o=ot();if(null!=o)if(_(o))r(o);else{var a=null;n(t.dtPendingCnt)&&0!=t.dtPendingCnt||(a=function(){if(_(o)){if(e(t.dtPending))for(var n in t.dtPending)t.dtPending[n]()}else t.dtPendingCnt>0&&(t.dtPendingCnt--,setTimeout(a,500))}),e(t.dtPending)&&0!=t.dtPendingCnt||(t.dtPending={}),t.dtPending[i]=r,t.dtPendingCnt=1e3,null!=a&&a()}}function T(t,i,r,o,a){var s=ot();if(null==s&&Kt.noPluginWebBrowser)var l=setInterval(function(){"complete"==document.readyState&&(clearInterval(l),u())},15);else{if(Kt.chrome&&Kt.win&&null!=s&&!_(s)){var c;if(e(t.placeholder)){z(t,"Please give Java permission to run on this browser web page.","Click for more information.","","javafx-chrome.png",function(){return At.open("https://www.java.com/en/download/faq/chrome.xml"),!1}),c=t.id+"-embed"}else r.jre="blocked",b(t,r,o),c="launch";return void C(c,function(){var e=F(i);null==e?a():T(t,i,e,o,a)})}if(!r.isUnsupportedPlatform()&&!r.isUnsupportedBrowser()&&H(r)&&n(o.onInstallNeeded)){var d=function(){var e=F(i);null==e?a():b(t,e,o)};return void o.onInstallNeeded(t,i,o,r.canAutoInstall(),r.isRelaunchNeeded(),d)}b(t,r,o)}}function I(){return null!=Kt.deploy&&!Kt.ie&&x("10.6+",Kt.deploy,!1)}function D(t){return null!=t&&n(t.version)}function $(){return document.getElementById("dtlite")}function O(){if(null==$()){var t=document.createElement("embed");t.width="10px",t.height="10px",t.id="dtlite",t.type="application/x-java-applet";var e=document.createElement("div");e.style.position="relative",e.style.left="-10000px",e.appendChild(t);document.getElementsByTagName("body")[0].appendChild(e)}}function w(e){var i=$();if(null==i&&(O(),i=$()),D(i))e(i);else{var r=null;n(t.dtlitePendingCnt)&&0!=t.dtlitePendingCnt||(r=function(){if(n(i.version))return null!=t.pendingLaunch&&t.pendingLaunch(i),void(t.pendingLaunch=null);t.dtlitePendingCnt>0&&(t.dtlitePendingCnt--,setTimeout(r,500))}),t.pendingLaunch=e,t.dtlitePendingCnt=1e3,null!=r&&r()}}function R(t,i,r){var o=function(){var o=$();null==o&&n(r.onRuntimeError)&&r.onRuntimeError(t.id);var a={url:t.url};if(e(i)&&(a.vmargs=i),e(t.params)){var s={};for(var l in t.params)s[l]=String(t.params[l]);a.params=s}e(t.jnlp_content)&&(a.jnlp_content=t.jnlp_content),0==o.launchApp(a)&&n(r.onRuntimeError)&&r.onRuntimeError(t.id)};return!!x("10.4+",Kt.deploy,!1)&&(w(o),!0)}function k(t){var n=null;if(Kt.ie){n=St.createElement("object"),n.width="1px",n.height="1px";var i=St.createElement("param");i.name="launchjnlp",i.value=t,n.appendChild(i),i=St.createElement("param"),i.name="docbase",i.value=e(St.documentURI)?St.documentURI:St.URL,n.appendChild(i),Kt.ie?n.classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93":n.type="application/x-java-applet;version=1.7"}else n=St.createElement("embed"),n.width="0px",n.height="0px",n.setAttribute("launchjnlp",t),n.setAttribute("docbase",e(St.documentURI)?St.documentURI:St.URL),n.type="application/x-java-applet;version=1.7";var r=St.createElement("div");return r.style.position="relative",r.style.left="-10000px",r.appendChild(n),r}function x(t,e,n){var i=new jt(t,n);return new jt(e,n).check(i)}function S(t,e){var n=new jt(t,!1);return!(parseInt(n.major)>=3&&parseInt(n.major)<=7&&"+"!==t.substr(-1))&&(n.match==Ft.Exact&&(n=new jt(t+"+",!1)),new jt(e,!1).check(n))}function A(){if(!I()){kt&&e(St.body)&&(at(),kt=!1);return null!=ot()}return!0}function N(t){if(null!=Kt.jre&&x(t,Kt.jre))return"ok";var n=ot();if(null!=n){for(var i=n.jvms,r=0;null!=i&&r<i.getLength();r++)if(x(t,i.get(r).version))return Kt.ie||!e(navigator.mimeTypes)||e(navigator.mimeTypes["application/x-java-applet"])?"ok":"disabled";return"none"}if(Kt.ie)for(var o=["1.8.0","1.7.0","1.6.0","1.5.0"],a=0;a<o.length;a++)if(x(t,o[a]))try{new ActiveXObject("JavaWebStart.isInstalled."+o[a]+".0");return"ok"}catch(s){}return"none"}function P(){var t=["iPhone","iPod"],e=i(t,navigator.userAgent),n=Kt.mac&&Kt.chrome&&"intel"==Kt.cputype;return auto=e||null!=ot(),{os:e,browser:n,auto:auto}}function M(){if(Kt.ie)try{if(10*ScriptEngineMajorVersion()+ScriptEngineMinorVersion()<57)return!0}catch(t){return!0}return!1}function K(){var t;if(Kt.win)return t=Kt.op||Kt.wk||M(),{os:!1,browser:t};if(Kt.mac&&"intel"==Kt.cputype){var e=!x("10.7.3+",Kt.osVersion,!1);return t=Kt.op||Kt.mac&&Kt.chrome,{os:e,browser:t}}return Kt.linux?(t=Kt.op,{os:!1,browser:t}):{os:!0,browser:!1}}function L(t){if(e(t)&&t.length>0){var n=t.charAt(t.length-1);"*"==n?t=t.substring(0,t.length-1)+"+":"+"!=n&&(t+="+")}return t}function F(e){var n=new t.Platform(e);return n.jvm=L(n.jvm),B(n)}function B(n,i){n=new t.Platform(n);var r,o,a="ok",s="ok",l=!1,c=!1,u=!1;if(e(n.jvm)&&"ok"!=N(n.jvm)){var d=N("1+");s="ok"==d?"old":d,o=P(),o.os?(s="unsupported",c=!0):i?s="ok":u=o.browser}if(e(n.javafx))if(o=K(),o.os)a="unsupported",c=c||o.os;else if(i)a="ok";else if(o.browser)u=u||o.browser;else if(null!=Kt.fx)S(n.javafx,Kt.fx)?a="ok":S("2.0+",Kt.fx)&&(a="old");else if(Kt.win)try{r=ot();var h=r.getInstalledFXVersion(n.javafx);""!=h&&null!=h||(h=r.getInstalledFXVersion(n.javafx+"+")),""!=h&&null!=h||(h=r.getInstalledFXVersion("2.0+"),a=null==h||""==h?"none":"old")}catch(f){a="none"}else(Kt.mac||Kt.linux)&&(a="none");return l=l||!c&&u,"ok"!=a||"ok"!=s||l||c||u?new m({fx:a,jre:s,relaunch:l,os:c,browser:u,platform:n}):0!=Kt.override||i||A()?null:new m({fx:a,jre:"none",relaunch:l,os:c,browser:u,platform:n})}function j(){var t=null;return t=navigator.userLanguage,null==t&&(t=navigator.systemLanguage),null==t&&(t=navigator.language),null!=t&&(t=t.replace("-","_")),t}function V(t){return e(t)||(t=j()),"https://java.com/dt-redirect?"+(e(window.location)&&e(window.location.href)?"&returnPage="+window.location.href:"")+(e(t)?"&locale="+t:"")}function H(t){if(null!=t){var e=t.jreStatus(),n=t.javafxStatus();return("none"==e||"none"==n||"old"==e||"old"==n)&&"disabled"!=n&&"disabled"!=e}return!1}function U(t,e,n,i,r,o){var a,s;e?(a="Java",s="java"):(a="JavaFX",s="javafx");var l,c,u;n?(l="A newer version of "+a+"is required to view the content on this page.",c="Please click here to update "+a,u="upgrade_"+s+".png"):(l="View the content on this page.",c="Please click here to install "+a,u="get_"+s+".png"),z(t,l,c,"Click to install "+a,u,o)}function z(t,e,n,i,r,o){var a=St.createElement("div");a.width=_t(t.width),a.height=_t(t.height);var s=St.createElement("a");if(s.href="",s.onclick=function(){return o(),!1},t.width<250||t.height<160)a.appendChild(St.createElement("p").appendChild(St.createTextNode(e))),s.appendChild(St.createTextNode(n)),a.appendChild(s);else{var l=St.createElement("img");l.src=Rt+r,l.alt=i,l.style.borderWidth="0px",l.style.borderStyle="none",s.appendChild(l),a.appendChild(s)}tt(t.placeholder),t.placeholder.appendChild(a)}function G(t){return!(!x(t.jvm,xt,!1)||!S(t.javafx,"2.2.0"))}function q(t,n,i,r,o,a){var s=function(){X(t,n,i,a)},l=B(n);e(l)||e(a)&&a();var c=e(l)&&("old"==l.javafxStatus()||"old"==l.jreStatus());if(e(t.placeholder))G(n)?U(t,!0,c,r,o,s):U(t,"ok"!=l.jreStatus(),c,r,o,s);else{var u=r,d=null;u||(G(n)?(d=c?"A newer version of Java is required to view the content on this page. Please click here to update Java.":"To view the content on this page, please click here to install Java.",u=confirm(d)):(d=c?"A newer version of JavaFX is required to view the content on this page. Please click here to update JavaFX.":"To view the content on this page, please click here to install JavaFX.",u=confirm(d))),u&&s()}}function W(t){return!Kt.ie||(!!x("10.0.0+",ot().version,!1)||null!=t&&!x("1.6.0_33+",t))}function Y(t,e,i){if(!Kt.win)return!1;var r=ot();if(null==r||!n(r.version))return!1;if("ok"!=e&&!W(t.jvm))return!1;if("ok"!=i)if(G(t)){if(!W(xt))return!1}else if(!x("10.0.0+",ot().version,!1))return!1;return!0}function X(i,r,o,a){var s=B(r);if(o=new t.Callbacks(o),e(s)&&s.isUnsupportedPlatform())return b(i,s,o),!1;var l=null!=i?i.placeholder:null;return H(s)?("ok"!=s.jre?(n(o.onInstallStarted)&&o.onInstallStarted(l,"Java",!1,null!=ot()),J()):b(i,s,o),!1):(null!=a&&a(),!0)}function J(){At.open(V())}function Z(t){if(null!=t.placeholder){var e=t.width,n=t.height,i=!(e<100&&n<100),r=i?"javafx-loading-100x100.gif":"javafx-loading-25x25.gif",o=i?80:25,a=i?80:25,s=St.createElement("img");return s.src=Rt+r,s.alt="",s.style.position="relative",s.style.top="50%",s.style.left="50%",s.style.marginTop=_t(-a/2),s.style.marginLeft=_t(-o/2),s}return null}function Q(t){if(null!=t.placeholder){var e=St.createElement("p");return e.appendChild(St.createTextNode("FIXME - add real message!")),e}return null}function tt(t){for(;t.hasChildNodes();)t.removeChild(t.firstChild)}function et(t,e,n,i){if(null!=t){var r=null;r=n?"JavaFX"==e?"install:inprogress:javafx":"install:inprogress:jre":"JavaFX"==e?"install:inprogress:javafx:manual":"install:inprogress:jre:manual",yt(r)}}function nt(t,e,n,i){var r;if("success"!=n){var o=null;o="javafx"==e?A()?"install:fx:"+n:"install:fx:error:nojre":"install:jre:"+n,null!=t?(r=vt(o,null),tt(t),t.appendChild(r)):At.alert(pt(o))}else i&&(r=yt("install:fx:restart"),tt(t),t.appendChild(r))}function it(t,e){null==e?code="success":e.isUnsupportedBrowser()?code="browser":"ok"!=e.jreStatus()?code="jre:"+e.jreStatus():"ok"!=e.javafxStatus()?code="javafx:"+e.javafxStatus():e.isRelaunchNeeded()?code="relaunch":code="unknown "+e.toString(),null!=t.placeholder?gt(t.id,code,null):At.alert(pt(code))}function rt(t){ct(t);null!=mt(t)?gt(t,"launch:fx:generic:embedded",function(){return ut(ct(t),!1),!1}):At.alert(pt("launch:fx:generic"))}function ot(){var t=null;return 0==Kt.override&&(navigator.plugins.refresh(!1),t=document.getElementById("dtjavaPlugin")),t}function at(){if(null==ot()){if(!e(St.body)&&!Nt)return r(function(){at()}),void(kt=!0);var t=null;if(Kt.ie)t=St.createElement("object"),t.width="1px",t.height="1px",t.classid="clsid:CAFEEFAC-DEC7-0000-0001-ABCDEFFEDCBA";else if(!Kt.wk&&!Kt.op&&null!=navigator.mimeTypes){for(var i="application/java-deployment-toolkit",o=!1,a=0;a<navigator.mimeTypes.length;a++){var s=navigator.mimeTypes[a];o=o||s.type==i&&s.enabledPlugin}o&&(t=St.createElement("embed"),t.setAttribute("type",o?i:oldMimeType),t.setAttribute("hidden","true"))}null!=t&&(t.setAttribute("id","dtjavaPlugin"),St.body.appendChild(t),null==Kt.deploy&&n(t.version)&&(Kt.deploy=t.version))}}function st(t){return e(t.id)?t.id:"dtjava-app-"+ ++Vt}function lt(t,i,r){var o=St.createElement("div");o.width=_t(t.width),o.height=_t(t.height),o.id=t.id+"-app",o.style.position="relative";var a=St.createElement("applet");a.code="dummy.class",a.id=t.id,a.width=_t(t.width),a.height=_t(t.height);var s={jnlp_href:t.url,java_status_events:!0,type:"application/x-java-applet"};e(t.jnlp_content)&&(s.jnlp_embedded=t.jnlp_content),e(i.javafx)?(e(t.toolkit)&&"fx"!=t.toolkit||(s.javafx_version="*"==i.javafx?"2.0+":i.javafx),s.separate_jvm=!0,s.javafx_applet_id=a.id,s.scriptable=!0):(t.scriptable&&(s.scriptable=!0),t.sharedjvm&&(s.separate_jvm=!0)),e(i.jvmargs)&&(s.java_arguments=v(i.jvmargs));var l,c;for(l in t.params)e(s[l])||(c=St.createElement("param"),c.name=l,c.value=t.params[l],a.appendChild(c));for(l in s)c=St.createElement("param"),c.name=l,c.value=s[l],a.appendChild(c);if(n(r.onGetNoPluginMessage)){c=St.createElement("noapplet");var u=r.onGetNoPluginMessage(t);c.appendChild(u)}return o.appendChild(a),o}function ct(t){var e=St.getElementById(t+"-app");return null==e&&(e=St.getElementById(t)),e}function ut(t,n){e(t)&&(t.style.left=n?-1e4:"0px")}function dt(t,n){e(t)&&(t.style.visibility=n?"hidden":"visible")}function ht(t){try{var e=mt(t);if(null!=e&&null!=e.style&&"visible"==e.style.visibility)return;ut(ct(t),!1),dt(St.getElementById(t+"-splash"),!0)}catch(n){}}function ft(t,e,n){var i=0,r=St.createElement("p");null!=e&&r.appendChild(e);for(var o;i<t.length;){switch(t[i]){case"a":o=St.createElement(t[i]),o.href=t[i+1],o.appendChild(St.createTextNode(t[i+2])),i+=2;break;case"br":o=St.createElement(t[i]);break;case"b":o=St.createElement(t[i]),o.appendChild(St.createTextNode(t[i+1])),i++;break;case"onclick":o=St.createElement("a"),o.href="",null==n&&(n=function(){return!1}),o.onclick=n,o.appendChild(St.createTextNode(t[i+1])),i+=1;break;default:o=St.createTextNode(t[i])}r.appendChild(o),i++}return r}function pt(t){var n="",i=Ut[t],r=0;if(e(i))for(;r<i.length;)"a"!=i[r]&&"br"!=i[r]&&"b"!=i[r]?n+=i[r]:"a"==i[r]&&r++,r++;else n="Unknown error: ["+t+"]";return n}function mt(t){return St.getElementById(t+"-error")}function gt(t,n,i){var r=mt(t);e(r)&&(tt(r),r.appendChild(vt(n,i)),r.style.visibility="visible",dt(St.getElementById(t+"-splash"),!0),ut(ct(t),!0))}function vt(t,i){var r=St.createElement("div"),o=St.createElement("img");o.src=Rt+"error.png",o.width="16px",o.height="16px",o.alt="",o.style.cssFloat="left",o.style.styleFloat="left",o.style.margin="0px 10px 60px 10px",o.style.verticalAlign="text-top";var a=Ut[t];e(a)||(a=[t]);var s=null;return n(i)&&(s=function(){e(r.parentNode)&&r.parentNode.removeChild(r);try{i()}catch(t){}return!1}),r.appendChild(ft(a,o,s)),r}function yt(t){var n=St.createElement("div"),i=Ut[t];return e(i)||(i=[t]),n.appendChild(ft(i,null,null)),n}function Et(n,i){var r=null;return e(n)&&(r=i&&"string"==typeof n?new t.App(n,null):n instanceof t.App?n:new t.App(n.url,n)),r}function bt(e,n){var i=new t.Callbacks(n);return null==e.javafx&&i.onGetSplash===Z&&(i.onGetSplash=null),i}function _t(t){return isFinite(t)?t+"px":t}function Ct(t,e,n){var i=t.id+"-"+n,r=St.createElement("div");return r.id=i,r.style.width=_t(t.width),r.style.height=_t(t.height),r.style.position="absolute",r.style.backgroundColor="white",null!=e&&r.appendChild(e),r}function Tt(t,i){if(null==i){if(i=zt[t],!e(i))return;zt[t]=null}var r=document.getElementById(t);if(e(r)){if(n(i.onJavascriptReady)){var o=i.onJavascriptReady;r.status<2&&(r.onLoad=function(){o(t),r.onLoad=null})}n(i.onRuntimeError)&&(r.status<3?r.onError=function(){i.onRuntimeError(t)}:3==r.status&&i.onRuntimeError(t))}}function It(t){var e=Ct(t,null,"error");return e.style.visibility="hidden",e}function Dt(n,i,r){var o=Et(n,!1);if(!(e(o)&&e(o.url)&&e(o.width)&&e(o.height)&&e(o.placeholder)))throw"Required attributes are missing! (url, width, height and placeholder are required)";if(o.id=st(o),"string"==typeof o.placeholder){var a=St.getElementById(o.placeholder);if(null==a)throw"Application placeholder [id="+o.placeholder+"] not found.";o.placeholder=a}o.placeholder.appendChild(It(o)),i=new t.Platform(i);var s=bt(i,r),l=F(i),c=function(){var t=lt(o,i,s),e=null==s.onGetSplash?null:s.onGetSplash(n);if(o.placeholder.style.position="relative",null!=e){var r=Ct(o,e,"splash");dt(r,!1),ut(t,!0),tt(o.placeholder),o.placeholder.appendChild(It(o)),o.placeholder.appendChild(r),o.placeholder.appendChild(t)}else tt(o.placeholder),o.placeholder.appendChild(It(o)),o.placeholder.appendChild(t);setTimeout(function(){Tt(o.id,s)},0)};null!=l?T(o,i,l,s,c):c()}function $t(n){if(e(n)){var i=n.width,r=n.height;return new t.App("dummy",{id:n.id,width:i,height:r,placeholder:n.parentNode})}throw"Can not find applet with null id"}function Ot(n,i,r){var o=St.getElementById(n),a=$t(o),s=bt(i,r);i=new t.Platform(i);var l=function(){if(a.placeholder.insertBefore(It(a),o),null!=s.onGetSplash){var t=s.onGetSplash(a);if(e(t)){var n=Ct(a,t,"splash");e(n)&&(a.placeholder.style.position="relative",a.placeholder.insertBefore(n,o),ut(o,!0))}}},c=F(i);null!=c?T(a,i,c,s,l):l()}function wt(t,e,n){o(function(){Ot(t,e,n)})}var Rt=function(){var t=document.getElementsByTagName("script"),e=t[t.length-1].getAttribute("src");return e?e.substring(0,e.lastIndexOf("/")+1):""}(),kt=!1,xt="1.7.0_06",St=document,At=window,Nt=!1,Pt=[],Mt=[],Kt=null,Lt=!1,Ft={Exact:{value:0},Family:{value:1},Above:{value:2}},Bt={Uninitialized:{value:-2},Unknown:{value:-1},Identifier:{value:0},Alpha:{value:1},Digits:{value:2},Plus:{value:3},Minus:{value:4},Underbar:{value:5},Star:{value:6},Dot:{value:7},End:{value:8}},jt=function(t,e){function n(t){var e=null,n=null,i=null,r=null;return t.length>=1&&(e=t[0]),t.length>=2&&(n=t[1]),t.length>=3&&(i=t[2]),t.length>=4&&(r=t[3]),{major:e,minor:n,security:i,patch:r}}function i(t){function e(t){var e=!1;switch(t){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":e=!0}return e}function n(t){var e=!1,n="a".charCodeAt(0),i="z".charCodeAt(0),r=t.charCodeAt(0);return n<=r&&r<=i&&(e=!0),e}function i(){s=0}function r(){return c}function o(t){null!=c&&u.unshift(c),c=t}function a(){var t=Bt.Uninitialized,i="";if(u.length>0)t=u[0].tokenID,i=u[0].token,u.shift();else if(s>=l.length)t=Bt.End;else for(;s<l.length;){var r=l.charAt(s);if(t!=Bt.Uninitialized&&t!=Bt.Alpha||1!=n(r))if(t!=Bt.Uninitialized&&t!=Bt.Digits||1!=e(r)){if(t!=Bt.Alpha&&t!=Bt.Identifier||1!=e(r)||0!=n(r)){if(t==Bt.Uninitialized){switch(r){case"-":t=Bt.Minus,s++,i=r;break;case"+":t=Bt.Plus,s++,i=r;break;case"*":t=Bt.Star,s++,i=r;break;case".":t=Bt.Dot,s++,i=r;break;case"_":t=Bt.Underbar,s++,i=r;break;default:t=Bt.Unknown,s++}break}break}t=Bt.Identifier,s++,i+=r}else{if(0==parseInt(r)&&0==parseInt(i)){t=Bt.Unknown,i+=r,s++;break}t=Bt.Digits,i+=r,s++}else t=Bt.Alpha,s++,i+=r}return c={token:i,tokenID:t}}var s,l=t.toLowerCase().trim(),c=null,u=Array();return{start:i,nextToken:a,pushToken:o,currentToken:r,isDigit:e,isLetter:n}}function r(){function t(t){var e=new Array,n=t.currentToken();if(n.tokenID==Bt.Digits){e.push(parseInt(n.token)),n=t.nextToken();for(var i=0;i<h-1;i++){if(n.tokenID!=Bt.Dot){if(n.tokenID==Bt.Star||n.tokenID==Bt.Plus||n.tokenID==Bt.End||n.tokenID==Bt.Minus||n.tokenID==Bt.Underbar||n.tokenID==Bt.Identifier||n.tokenID==Bt.Alpha&&"u"==n.token)break;e=null;break}if(n=t.nextToken(),n.tokenID!=Bt.Digits){if(n.tokenID==Bt.Star||n.tokenID==Bt.Plus)break;e=null;break}e.push(parseInt(n.token)),n=t.nextToken()}}return e}function e(t,e){var n=Ft.Exact,i=t.currentToken();return i.tokenID==Bt.Dot?(i=t.nextToken(),i.tokenID==Bt.Star?(n=Ft.Family,t.nextToken()):i.tokenID==Bt.Plus&&(n=Ft.Above,t.nextToken())):i.tokenID==Bt.Star?(n=Ft.Family,t.nextToken()):i.tokenID==Bt.Plus&&(n=Ft.Above,t.nextToken()),n}function n(t){var e=null,n=t.currentToken();if(n.tokenID==Bt.Minus){var i=n,n=t.nextToken();n.tokenID==Bt.Alpha?(e=n.token,t.nextToken()):t.pushToken(i)}return e}function i(t,e){var n=null,i=t.currentToken();if(i.tokenID==Bt.Plus){var r=i,i=t.nextToken();i.tokenID==Bt.Digits?(n=parseInt(i.token),t.nextToken()):t.pushToken(r)}else if(1==e&&(i.tokenID==Bt.Minus||i.tokenID==Bt.Underbar)){var r=i;if(i=t.nextToken(),i.tokenID==Bt.Identifier&&"b"==i.token[0]){var o=parseInt(i.token.substr(1));null!=o&&0==isNaN(o)&&(t.nextToken(),n=o)}else t.pushToken(r)}return n}function r(t,e){var n=!1;return 1==t.length&&parseInt(t[0])<=8&&e.tokenID==Bt.Identifier&&e.token.length>0&&"u"==e.token.charAt(0)&&(n=!0),n}function o(t){var e=null,n=t.currentToken();return n.tokenID==Bt.Identifier?(e=parseInt(n.token.substr(1)),t.nextToken()):n.tokenID==Bt.Star?(lmatch=Ft.Family,t.nextToken()):n.tokenID==Bt.Plus&&(lmatch=Ft.Above,t.nextToken()),e}function a(t){var e=null,n=t.currentToken();return n.tokenID==Bt.Alpha&&(e=n.token,t.nextToken()),e}function s(s){var l=null,c=!1,u=!1,d=null,f=null,p=Ft.Exact,m=!1,g=null;s.start();var v=s.nextToken();if(v.tokenID==Bt.Digits&&null!=(d=t(s))&&d.length>0){if(v=s.currentToken(),1==d[0]){if(d.length>=2&&9==d[1])return null;u=!0}else"u"==v.token&&(v=s.nextToken());if(1==r(d,v)){u=!0;var y=o(s);null!=y&&(v=s.currentToken(),d.push(parseInt(y)),u=!0,v.tokenID==Bt.End?c=!0:(p=e(s),v=s.currentToken(),v.tokenID==Bt.End&&(c=!0)))}else v=s.currentToken(),1==u&&v.tokenID==Bt.Underbar&&(v=s.nextToken(),v.tokenID==Bt.Digits&&d.length<h&&(d.push(parseInt(v.token)),s.nextToken())),m=n(s),v=s.currentToken(),f=i(s,u),g=a(s),p=e(s,u),v=s.currentToken(),v.tokenID==Bt.End&&(c=!0);1==c&&(l={old:u,version:d,build:f,match:p,pre:m,opt:g})}return l}return{parse:s}}function o(t,e){var n=!1,i=t;return null==i&&(i=0),parseInt(i)==parseInt(e)&&(n=!0),n}function a(t,e){var n=!1;return null!=t.major&&null!=e.major&&o(t.major,e.major)&&o(t.minor,e.minor)&&o(t.security,e.security)&&o(t.patch,e.patch)&&t.old==e.old&&t.pre==e.pre&&(parseInt(t.build)==parseInt(e.build)||null==t.build&&null==e.build)&&(n=!0),n}function s(t,e){var n=!1;if(1==t.old&&0==t.version.length&&1==e.old)n=!0;else for(index=0;index<t.version.length&&index<e.version.length;index++){var i=t.version[index],r=e.version[index];if(parseInt(i)!=parseInt(r)){n=!1;break}n=!0}return n}function l(t,e){var n=!1;if(1==t.old&&0==t.version.length)n=!0;else if(1==t.old&&0==e.old)n=!0;else if(0==t.major)n=!0;else if(null!=t.major&&null!=e.major&&(parseInt(t.build)==parseInt(e.build)||null==t.build&&null==e.build))for(var i=0;i<t.version.length;i++){var r=t.version[i],o=e.version[i];if(parseInt(r)!=parseInt(o)){if(parseInt(r)<parseInt(o)){(1==t.old&&1==e.old||0==t.old&&0==e.old)&&(n=!0);break}n=!1;break}n=!0}return n}function c(t){for(var e=t.version.slice(0),i=e.length;i<4;i++)e.push(0);var r=n(e);return{old:t.old,major:r.major,minor:r.minor,security:r.security,patch:r.patch,version:e,build:t.build,pre:t.pre}}function u(t,e){var n=!1;if(null==t.VersionString||0==t.VersionString.length)n=!0;else if(null==t.build&&null==e.build){var i=c(e);t.match==Ft.Exact?n=a(t,i):t.match==Ft.Family?n=s(t,i):t.match==Ft.Above&&(n=l(t,i))}return n}function d(t,e){var n=!1;if(null==query.VersionString||0==query.VersionString.length)n=!0;else{var i=c(e);n=a(c(query),i)}return n}if(void 0===e)var e=!0;var h=4,f=!1,p=null,m=null,g=null,v=null,y=null,E=null,b=null,_=null;if(!t)return null;var C=function(t,e){var n=!1,o=new Array,a=null,s=null,l=!1;if(null==t||0==t.length)o=[0,0,0,0];else{var c=i(t),u=r(),d=u.parse(c);null!=d&&(1==e&&1==d.old?(o=d.version.length>0&&1==d.version[0]?d.version.splice(1,d.version.length-1):d.version,n=!0):o=d.version,a=d.build,s=d.match,l=d.pre)}return{old:n,version:o,build:a,match:s,pre:l,opt:null}}(t,e);f=C.old,p=C.version,m=C.build,v=C.match,g=C.pre;var T=n(C.version);return y=T.major,E=T.minor,b=T.security,_=T.patch,{VersionString:t,old:f,major:y,minor:E,security:b,patch:_,version:p,build:m,pre:g,match:v,check:function(t){return u(t,this)},equals:function(t){return d(t,this)}}},Vt=0,Ht="https://java.com/javafx",Ut={"launch:fx:generic":["JavaFX application could not launch due to system configuration."," See ","a","https://java.com/javafx","java.com/javafx"," for troubleshooting information."],"launch:fx:generic:embedded":["JavaFX application could not launch due to system configuration ","(","onclick","show error details",")."," See ","a","https://java.com/javafx","java.com/javafx"," for troubleshooting information."],"install:fx:restart":["Restart your browser to complete the JavaFX installation,"," then return to this page."],"install:fx:error:generic":["JavaFX install not completed."," See ","a","https://java.com/javafx","java.com/javafx"," for troubleshooting information."],"install:fx:error:download":["JavaFX install could not start because of a download error."," See ","a","https://java.com/javafx","java.com/javafx"," for troubleshooting information."],"install:fx:error:cancelled":["JavaFX install was cancelled."," Reload the page and click on the download button to try again."],"install:jre:error:cancelled":["Java install was cancelled."," Reload the page and click on the download button to try again."],"install:jre:error:generic":["Java install not completed."," See ","a","https://java.com/","java.com"," for troubleshooting information."],"install:jre:error:download":["Java install could not start because of a download error."," See ","a","https://java.com/","java.com/"," for troubleshooting information."],"install:inprogress:jre":["Java install in progress."],"install:inprogress:javafx":["JavaFX install in progress."],"install:inprogress:javafx:manual":["Please download and run JavaFX Setup from ","a","http://www.oracle.com/technetwork/java/javafx/downloads/index.html","java.com/javafx",". When complete, restart your browser to finish the installation,"," then return to this page."],"install:inprogress:jre:manual":["Please download and run Java Setup from ","a",V(),"java.com/download",". When complete, reload the page."],"install:fx:error:nojre":["b","Installation failed.","br","Java Runtime is required to install JavaFX and view this content. ","a",V(),"Download Java Runtime"," and run the installer. Then reload the page to install JavaFX."],browser:["Content can not be displayed using your Web browser. Please open this page using another browser."],"jre:none":["JavaFX application requires a recent Java runtime. Please download and install the latest JRE from ","a","https://java.com","java.com","."],"jre:old":["JavaFX application requires a recent Java runtime. Please download and install the latest JRE from ","a","https://java.com","java.com","."],"jre:plugin":["b","A Java plugin is required to view this content.","br","Make sure that ","a","https://java.com","a recent Java runtime"," is installed, and the Java plugin is enabled."],"jre:blocked":["Please give Java permission to run. This will allow Java to present content provided on this page."],"jre:unsupported":["b","Java is required to view this content but Java is currently unsupported on this platform.","br","Please consult ","a","https://java.com","the Java documentation"," for list of supported platforms."],"jre:browser":["b","Java plugin is required to view this content but Java plugin is currently unsupported in this browser.","br","Please try to launch this application using other browser. Please consult ","a","https://java.com","the Java documentation"," for list of supported browsers for your OS."],"javafx:unsupported":["b","JavaFX 2.0 is required to view this content but JavaFX is currently unsupported on this platform.","br","Please consult ","a",Ht,"the JavaFX documentation"," for list of supported platforms."],"javafx:old":["This application requires newer version of JavaFX runtime. ","Please download and install the latest JavaFX Runtime from ","a",Ht,"java.com/javafx","."],"javafx:none":["b","JavaFX 2.0 is required to view this content.","br","a",Ht,"Get the JavaFX runtime from java.com/javafx"," and run the installer. Then restart the browser."],"javafx:disabled":["JavaFX is disabled. Please open Java Control Panel, switch to Advanced tab and enable it. ","Then restart the browser."],"jre:oldplugin":["New generation Java plugin is required to view this content. Please open Java Control Panel and enable New Generation Java Plugin."],"jre:disabled":["Java plugin appear to be disabled in your browser. "," Please enable Java in the browser options."]},zt={};return function(){"undefined"!=typeof __dtjavaTestHook__&&(jre=null,jfx=null,deploy=null,null!=__dtjavaTestHook__&&null!=__dtjavaTestHook__.args&&(jre=__dtjavaTestHook__.args.jre,jfx=__dtjavaTestHook__.args.jfx,deploy=__dtjavaTestHook__.args.deploy),0!=window.location.href.indexOf("http://localhost")&&0!=window.location.href.indexOf("file:///")||(__dtjavaTestHook__={detectEnv:l,Version:jt,checkFXSupport:K,versionCheck:x,versionCheckFX:S,jre:jre,jfx:jfx,deploy:deploy})),Lt||(Kt=l(),Kt.haveDom&&((n(St.readyState)&&"complete"==St.readyState||!n(St.readyState)&&(St.getElementsByTagName("body")[0]||St.body))&&a(),Nt||(n(St.addEventListener)&&St.addEventListener("DOMContentLoaded",a,!1),Kt.ie&&Kt.win&&(n(St.addEventListener)?St.addEventListener("onreadystatechange",function(){"complete"==St.readyState&&(St.removeEventListener("onreadystatechange",arguments.callee,!1),a())},!1):St.attachEvent("onreadystatechange",function(){"complete"==St.readyState&&(St.detachEvent("onreadystatechange",arguments.callee),a())}),At==top&&function(){if(!Nt){try{St.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}a()}}()),Kt.wk&&function(){Nt||(/loaded|complete/.test(St.readyState)?a():setTimeout(arguments.callee,0))}(),s(a)),I()||at()))}(),{version:"20150817",validate:function(t){return B(t,Kt.noPluginWebBrowser)},install:function(t,e){return X(null,t,e,null)},launch:function(t,e,n){return E(t,e,n)},embed:function(t,e,n){return Dt(t,e,n)},register:function(t,e,n){return wt(t,e,n)},hideSplash:function(t){return ht(t)},addOnloadCallback:function(t,e){e||Kt.chrome&&!Kt.win?s(t):o(t)},installCallbacks:function(t,e){Tt(t,e)},Platform:function(t){this.jvm="1.6+",this.javafx=null,this.plugin="*",this.jvmargs=null;for(var e in t)this[e]=t[e],null!=this.jvmargs&&"string"==typeof this.jvmargs&&(this.jvmargs=this.jvmargs.split(" "));this.toString=function(){return"Platform [jvm="+this.jvm+", javafx="+this.javafx+", plugin="+this.plugin+", jvmargs="+this.jvmargs+"]"}},App:function(t,n){this.url=t,this.scriptable=!0,this.sharedjvm=!0,n!=undefined&&null!=n&&(this.id=n.id,this.jnlp_content=n.jnlp_content,this.width=n.width,this.height=n.height,this.params=n.params,this.scriptable=n.scriptable,this.sharedjvm=n.sharedjvm,this.placeholder=n.placeholder,this.toolkit=n.toolkit),this.toString=function(){var t="null",n=!0;if(e(this.params)){t="{";for(p in this.params)t+=(n?"":", ")+p+" => "+this.params[p],n=!1;t+="}"}return"dtjava.App: [url="+this.url+", id="+this.id+", dimensions=("+this.width+","+this.height+"), toolkit="+this.toolkit+", embedded_jnlp="+(e(this.jnlp_content)?this.jnlp_content.length+" bytes":"NO")+", params="+t+"]"}},Callbacks:function(t){this.onGetSplash=Z,this.onInstallNeeded=q,this.onInstallStarted=et,this.onInstallFinished=nt,this.onDeployError=it,this.onGetNoPluginMessage=Q,this.onJavascriptReady=null,this.onRuntimeError=rt;for(c in t)this[c]=t[c]}}}();return t}e.DtJavaService=n},22:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},226:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(t===undefined?"":t,")_",(++n+i).toString(36))}},227:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},228:function(t,e,n){var i=n(28)("unscopables"),r=Array.prototype;r[i]==undefined&&n(92)(r,i,{}),t.exports=function(t){r[i][t]=!0}},2322:function(t,e,n){n(2323)(n(2324))},2323:function(t,e){t.exports=function(t){"undefined"!=typeof execScript?execScript(t):eval.call(null,t)}},2324:function(t,e){t.exports='// Ion.RangeSlider\n// version 2.1.4 Build: 355\n// © Denis Ineshin, 2016\n// https://github.com/IonDen\n//\n// Project page: http://ionden.com/a/plugins/ion.rangeSlider/en.html\n// GitHub page: https://github.com/IonDen/ion.rangeSlider\n//\n// Released under MIT licence:\n// http://ionden.com/a/plugins/licence-en.html\n// =====================================================================================================================\n\n(function (factory) {\n if (typeof define === \'function\' && define.amd) {\n define([\'jquery\'], function ($) {\n factory($, document, window, navigator);\n });\n } else {\n factory(jQuery, document, window, navigator);\n }\n} (function ($, document, window, navigator, undefined) {\n "use strict";\n\n // =================================================================================================================\n // Service\n\n var plugin_count = 0;\n\n // IE8 fix\n var is_old_ie = (function () {\n var n = navigator.userAgent,\n r = /msie\\s\\d+/i,\n v;\n if (n.search(r) > 0) {\n v = r.exec(n).toString();\n v = v.split(" ")[1];\n if (v < 9) {\n $("html").addClass("lt-ie9");\n return true;\n }\n }\n return false;\n } ());\n if (!Function.prototype.bind) {\n Function.prototype.bind = function bind(that) {\n\n var target = this;\n var slice = [].slice;\n\n if (typeof target != "function") {\n throw new TypeError();\n }\n\n var args = slice.call(arguments, 1),\n bound = function () {\n\n if (this instanceof bound) {\n\n var F = function(){};\n F.prototype = target.prototype;\n var self = new F();\n\n var result = target.apply(\n self,\n args.concat(slice.call(arguments))\n );\n if (Object(result) === result) {\n return result;\n }\n return self;\n\n } else {\n\n return target.apply(\n that,\n args.concat(slice.call(arguments))\n );\n\n }\n\n };\n\n return bound;\n };\n }\n if (!Array.prototype.indexOf) {\n Array.prototype.indexOf = function(searchElement, fromIndex) {\n var k;\n if (this == null) {\n throw new TypeError(\'"this" is null or not defined\');\n }\n var O = Object(this);\n var len = O.length >>> 0;\n if (len === 0) {\n return -1;\n }\n var n = +fromIndex || 0;\n if (Math.abs(n) === Infinity) {\n n = 0;\n }\n if (n >= len) {\n return -1;\n }\n k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);\n while (k < len) {\n if (k in O && O[k] === searchElement) {\n return k;\n }\n k++;\n }\n return -1;\n };\n }\n\n\n\n // =================================================================================================================\n // Template\n\n var base_html =\n \'<span class="irs">\' +\n \'<span class="irs-line" tabindex="-1"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span>\' +\n \'<span class="irs-min">0</span><span class="irs-max">1</span>\' +\n \'<span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span>\' +\n \'</span>\' +\n \'<span class="irs-grid"></span>\' +\n \'<span class="irs-bar"></span>\';\n\n var single_html =\n \'<span class="irs-bar-edge"></span>\' +\n \'<span class="irs-shadow shadow-single"></span>\' +\n \'<span class="irs-slider single"></span>\';\n\n var double_html =\n \'<span class="irs-shadow shadow-from"></span>\' +\n \'<span class="irs-shadow shadow-to"></span>\' +\n \'<span class="irs-slider from"></span>\' +\n \'<span class="irs-slider to"></span>\';\n\n var disable_html =\n \'<span class="irs-disable-mask"></span>\';\n\n\n\n // =================================================================================================================\n // Core\n\n /**\n * Main plugin constructor\n *\n * @param input {Object} link to base input element\n * @param options {Object} slider config\n * @param plugin_count {Number}\n * @constructor\n */\n var IonRangeSlider = function (input, options, plugin_count) {\n this.VERSION = "2.1.4";\n this.input = input;\n this.plugin_count = plugin_count;\n this.current_plugin = 0;\n this.calc_count = 0;\n this.update_tm = 0;\n this.old_from = 0;\n this.old_to = 0;\n this.old_min_interval = null;\n this.raf_id = null;\n this.dragging = false;\n this.force_redraw = false;\n this.no_diapason = false;\n this.is_key = false;\n this.is_update = false;\n this.is_start = true;\n this.is_finish = false;\n this.is_active = false;\n this.is_resize = false;\n this.is_click = false;\n\n // cache for links to all DOM elements\n this.$cache = {\n win: $(window),\n body: $(document.body),\n input: $(input),\n cont: null,\n rs: null,\n min: null,\n max: null,\n from: null,\n to: null,\n single: null,\n bar: null,\n line: null,\n s_single: null,\n s_from: null,\n s_to: null,\n shad_single: null,\n shad_from: null,\n shad_to: null,\n edge: null,\n grid: null,\n grid_labels: []\n };\n\n // storage for measure variables\n this.coords = {\n // left\n x_gap: 0,\n x_pointer: 0,\n\n // width\n w_rs: 0,\n w_rs_old: 0,\n w_handle: 0,\n\n // percents\n p_gap: 0,\n p_gap_left: 0,\n p_gap_right: 0,\n p_step: 0,\n p_pointer: 0,\n p_handle: 0,\n p_single_fake: 0,\n p_single_real: 0,\n p_from_fake: 0,\n p_from_real: 0,\n p_to_fake: 0,\n p_to_real: 0,\n p_bar_x: 0,\n p_bar_w: 0,\n\n // grid\n grid_gap: 0,\n big_num: 0,\n big: [],\n big_w: [],\n big_p: [],\n big_x: []\n };\n\n // storage for labels measure variables\n this.labels = {\n // width\n w_min: 0,\n w_max: 0,\n w_from: 0,\n w_to: 0,\n w_single: 0,\n\n // percents\n p_min: 0,\n p_max: 0,\n p_from_fake: 0,\n p_from_left: 0,\n p_to_fake: 0,\n p_to_left: 0,\n p_single_fake: 0,\n p_single_left: 0\n };\n\n\n\n /**\n * get and validate config\n */\n var $inp = this.$cache.input,\n val = $inp.prop("value"),\n config, config_from_data, prop;\n\n // default config\n config = {\n type: "single",\n\n min: 10,\n max: 100,\n from: null,\n to: null,\n step: 1,\n\n min_interval: 0,\n max_interval: 0,\n drag_interval: false,\n\n values: [],\n p_values: [],\n\n from_fixed: false,\n from_min: null,\n from_max: null,\n from_shadow: false,\n\n to_fixed: false,\n to_min: null,\n to_max: null,\n to_shadow: false,\n\n prettify_enabled: true,\n prettify_separator: " ",\n prettify: null,\n\n force_edges: false,\n\n keyboard: false,\n keyboard_step: 5,\n\n grid: false,\n grid_margin: true,\n grid_num: 4,\n grid_snap: false,\n\n hide_min_max: false,\n hide_from_to: false,\n\n prefix: "",\n postfix: "",\n max_postfix: "",\n decorate_both: true,\n values_separator: " — ",\n\n input_values_separator: ";",\n\n disable: false,\n\n onStart: null,\n onChange: null,\n onFinish: null,\n onUpdate: null\n };\n\n\n\n // config from data-attributes extends js config\n config_from_data = {\n type: $inp.data("type"),\n\n min: $inp.data("min"),\n max: $inp.data("max"),\n from: $inp.data("from"),\n to: $inp.data("to"),\n step: $inp.data("step"),\n\n min_interval: $inp.data("minInterval"),\n max_interval: $inp.data("maxInterval"),\n drag_interval: $inp.data("dragInterval"),\n\n values: $inp.data("values"),\n\n from_fixed: $inp.data("fromFixed"),\n from_min: $inp.data("fromMin"),\n from_max: $inp.data("fromMax"),\n from_shadow: $inp.data("fromShadow"),\n\n to_fixed: $inp.data("toFixed"),\n to_min: $inp.data("toMin"),\n to_max: $inp.data("toMax"),\n to_shadow: $inp.data("toShadow"),\n\n prettify_enabled: $inp.data("prettifyEnabled"),\n prettify_separator: $inp.data("prettifySeparator"),\n\n force_edges: $inp.data("forceEdges"),\n\n keyboard: $inp.data("keyboard"),\n keyboard_step: $inp.data("keyboardStep"),\n\n grid: $inp.data("grid"),\n grid_margin: $inp.data("gridMargin"),\n grid_num: $inp.data("gridNum"),\n grid_snap: $inp.data("gridSnap"),\n\n hide_min_max: $inp.data("hideMinMax"),\n hide_from_to: $inp.data("hideFromTo"),\n\n prefix: $inp.data("prefix"),\n postfix: $inp.data("postfix"),\n max_postfix: $inp.data("maxPostfix"),\n decorate_both: $inp.data("decorateBoth"),\n values_separator: $inp.data("valuesSeparator"),\n\n input_values_separator: $inp.data("inputValuesSeparator"),\n\n disable: $inp.data("disable")\n };\n config_from_data.values = config_from_data.values && config_from_data.values.split(",");\n\n for (prop in config_from_data) {\n if (config_from_data.hasOwnProperty(prop)) {\n if (!config_from_data[prop] && config_from_data[prop] !== 0) {\n delete config_from_data[prop];\n }\n }\n }\n\n\n\n // input value extends default config\n if (val) {\n val = val.split(config_from_data.input_values_separator || options.input_values_separator || ";");\n\n if (val[0] && val[0] == +val[0]) {\n val[0] = +val[0];\n }\n if (val[1] && val[1] == +val[1]) {\n val[1] = +val[1];\n }\n\n if (options && options.values && options.values.length) {\n config.from = val[0] && options.values.indexOf(val[0]);\n config.to = val[1] && options.values.indexOf(val[1]);\n } else {\n config.from = val[0] && +val[0];\n config.to = val[1] && +val[1];\n }\n }\n\n\n\n // js config extends default config\n $.extend(config, options);\n\n\n // data config extends config\n $.extend(config, config_from_data);\n this.options = config;\n\n\n\n // validate config, to be sure that all data types are correct\n this.validate();\n\n\n\n // default result object, returned to callbacks\n this.result = {\n input: this.$cache.input,\n slider: null,\n\n min: this.options.min,\n max: this.options.max,\n\n from: this.options.from,\n from_percent: 0,\n from_value: null,\n\n to: this.options.to,\n to_percent: 0,\n to_value: null\n };\n\n\n\n this.init();\n };\n\n IonRangeSlider.prototype = {\n\n /**\n * Starts or updates the plugin instance\n *\n * @param is_update {boolean}\n */\n init: function (is_update) {\n this.no_diapason = false;\n this.coords.p_step = this.convertToPercent(this.options.step, true);\n\n this.target = "base";\n\n this.toggleInput();\n this.append();\n this.setMinMax();\n\n if (is_update) {\n this.force_redraw = true;\n this.calc(true);\n\n // callbacks called\n this.callOnUpdate();\n } else {\n this.force_redraw = true;\n this.calc(true);\n\n // callbacks called\n this.callOnStart();\n }\n\n this.updateScene();\n },\n\n /**\n * Appends slider template to a DOM\n */\n append: function () {\n var container_html = \'<span class="irs js-irs-\' + this.plugin_count + \'"></span>\';\n this.$cache.input.before(container_html);\n this.$cache.input.prop("readonly", true);\n this.$cache.cont = this.$cache.input.prev();\n this.result.slider = this.$cache.cont;\n\n this.$cache.cont.html(base_html);\n this.$cache.rs = this.$cache.cont.find(".irs");\n this.$cache.min = this.$cache.cont.find(".irs-min");\n this.$cache.max = this.$cache.cont.find(".irs-max");\n this.$cache.from = this.$cache.cont.find(".irs-from");\n this.$cache.to = this.$cache.cont.find(".irs-to");\n this.$cache.single = this.$cache.cont.find(".irs-single");\n this.$cache.bar = this.$cache.cont.find(".irs-bar");\n this.$cache.line = this.$cache.cont.find(".irs-line");\n this.$cache.grid = this.$cache.cont.find(".irs-grid");\n\n if (this.options.type === "single") {\n this.$cache.cont.append(single_html);\n this.$cache.edge = this.$cache.cont.find(".irs-bar-edge");\n this.$cache.s_single = this.$cache.cont.find(".single");\n this.$cache.from[0].style.visibility = "hidden";\n this.$cache.to[0].style.visibility = "hidden";\n this.$cache.shad_single = this.$cache.cont.find(".shadow-single");\n } else {\n this.$cache.cont.append(double_html);\n this.$cache.s_from = this.$cache.cont.find(".from");\n this.$cache.s_to = this.$cache.cont.find(".to");\n this.$cache.shad_from = this.$cache.cont.find(".shadow-from");\n this.$cache.shad_to = this.$cache.cont.find(".shadow-to");\n\n this.setTopHandler();\n }\n\n if (this.options.hide_from_to) {\n this.$cache.from[0].style.display = "none";\n this.$cache.to[0].style.display = "none";\n this.$cache.single[0].style.display = "none";\n }\n\n this.appendGrid();\n\n if (this.options.disable) {\n this.appendDisableMask();\n this.$cache.input[0].disabled = true;\n } else {\n this.$cache.cont.removeClass("irs-disabled");\n this.$cache.input[0].disabled = false;\n this.bindEvents();\n }\n\n if (this.options.drag_interval) {\n this.$cache.bar[0].style.cursor = "ew-resize";\n }\n },\n\n /**\n * Determine which handler has a priority\n * works only for double slider type\n */\n setTopHandler: function () {\n var min = this.options.min,\n max = this.options.max,\n from = this.options.from,\n to = this.options.to;\n\n if (from > min && to === max) {\n this.$cache.s_from.addClass("type_last");\n } else if (to < max) {\n this.$cache.s_to.addClass("type_last");\n }\n },\n\n /**\n * Determine which handles was clicked last\n * and which handler should have hover effect\n *\n * @param target {String}\n */\n changeLevel: function (target) {\n switch (target) {\n case "single":\n this.coords.p_gap = this.toFixed(this.coords.p_pointer - this.coords.p_single_fake);\n break;\n case "from":\n this.coords.p_gap = this.toFixed(this.coords.p_pointer - this.coords.p_from_fake);\n this.$cache.s_from.addClass("state_hover");\n this.$cache.s_from.addClass("type_last");\n this.$cache.s_to.removeClass("type_last");\n break;\n case "to":\n this.coords.p_gap = this.toFixed(this.coords.p_pointer - this.coords.p_to_fake);\n this.$cache.s_to.addClass("state_hover");\n this.$cache.s_to.addClass("type_last");\n this.$cache.s_from.removeClass("type_last");\n break;\n case "both":\n this.coords.p_gap_left = this.toFixed(this.coords.p_pointer - this.coords.p_from_fake);\n this.coords.p_gap_right = this.toFixed(this.coords.p_to_fake - this.coords.p_pointer);\n this.$cache.s_to.removeClass("type_last");\n this.$cache.s_from.removeClass("type_last");\n break;\n }\n },\n\n /**\n * Then slider is disabled\n * appends extra layer with opacity\n */\n appendDisableMask: function () {\n this.$cache.cont.append(disable_html);\n this.$cache.cont.addClass("irs-disabled");\n },\n\n /**\n * Remove slider instance\n * and ubind all events\n */\n remove: function () {\n this.$cache.cont.remove();\n this.$cache.cont = null;\n\n this.$cache.line.off("keydown.irs_" + this.plugin_count);\n\n this.$cache.body.off("touchmove.irs_" + this.plugin_count);\n this.$cache.body.off("mousemove.irs_" + this.plugin_count);\n\n this.$cache.win.off("touchend.irs_" + this.plugin_count);\n this.$cache.win.off("mouseup.irs_" + this.plugin_count);\n\n if (is_old_ie) {\n this.$cache.body.off("mouseup.irs_" + this.plugin_count);\n this.$cache.body.off("mouseleave.irs_" + this.plugin_count);\n }\n\n this.$cache.grid_labels = [];\n this.coords.big = [];\n this.coords.big_w = [];\n this.coords.big_p = [];\n this.coords.big_x = [];\n\n cancelAnimationFrame(this.raf_id);\n },\n\n /**\n * bind all slider events\n */\n bindEvents: function () {\n if (this.no_diapason) {\n return;\n }\n\n this.$cache.body.on("touchmove.irs_" + this.plugin_count, this.pointerMove.bind(this));\n this.$cache.body.on("mousemove.irs_" + this.plugin_count, this.pointerMove.bind(this));\n\n this.$cache.win.on("touchend.irs_" + this.plugin_count, this.pointerUp.bind(this));\n this.$cache.win.on("mouseup.irs_" + this.plugin_count, this.pointerUp.bind(this));\n\n this.$cache.line.on("touchstart.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n this.$cache.line.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n\n if (this.options.drag_interval && this.options.type === "double") {\n this.$cache.bar.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "both"));\n this.$cache.bar.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "both"));\n } else {\n this.$cache.bar.on("touchstart.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n this.$cache.bar.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n }\n\n if (this.options.type === "single") {\n this.$cache.single.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "single"));\n this.$cache.s_single.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "single"));\n this.$cache.shad_single.on("touchstart.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n\n this.$cache.single.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "single"));\n this.$cache.s_single.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "single"));\n this.$cache.edge.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n this.$cache.shad_single.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n } else {\n this.$cache.single.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, null));\n this.$cache.single.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, null));\n\n this.$cache.from.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "from"));\n this.$cache.s_from.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "from"));\n this.$cache.to.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "to"));\n this.$cache.s_to.on("touchstart.irs_" + this.plugin_count, this.pointerDown.bind(this, "to"));\n this.$cache.shad_from.on("touchstart.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n this.$cache.shad_to.on("touchstart.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n\n this.$cache.from.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "from"));\n this.$cache.s_from.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "from"));\n this.$cache.to.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "to"));\n this.$cache.s_to.on("mousedown.irs_" + this.plugin_count, this.pointerDown.bind(this, "to"));\n this.$cache.shad_from.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n this.$cache.shad_to.on("mousedown.irs_" + this.plugin_count, this.pointerClick.bind(this, "click"));\n }\n\n if (this.options.keyboard) {\n this.$cache.line.on("keydown.irs_" + this.plugin_count, this.key.bind(this, "keyboard"));\n }\n\n if (is_old_ie) {\n this.$cache.body.on("mouseup.irs_" + this.plugin_count, this.pointerUp.bind(this));\n this.$cache.body.on("mouseleave.irs_" + this.plugin_count, this.pointerUp.bind(this));\n }\n },\n\n /**\n * Mousemove or touchmove\n * only for handlers\n *\n * @param e {Object} event object\n */\n pointerMove: function (e) {\n if (!this.dragging) {\n return;\n }\n\n var x = e.pageX || e.originalEvent.touches && e.originalEvent.touches[0].pageX;\n this.coords.x_pointer = x - this.coords.x_gap;\n\n this.calc();\n },\n\n /**\n * Mouseup or touchend\n * only for handlers\n *\n * @param e {Object} event object\n */\n pointerUp: function (e) {\n if (this.current_plugin !== this.plugin_count) {\n return;\n }\n\n if (this.is_active) {\n this.is_active = false;\n } else {\n return;\n }\n\n this.$cache.cont.find(".state_hover").removeClass("state_hover");\n\n this.force_redraw = true;\n\n if (is_old_ie) {\n $("*").prop("unselectable", false);\n }\n\n this.updateScene();\n this.restoreOriginalMinInterval();\n\n // callbacks call\n if ($.contains(this.$cache.cont[0], e.target) || this.dragging) {\n this.is_finish = true;\n this.callOnFinish();\n }\n \n this.dragging = false;\n },\n\n /**\n * Mousedown or touchstart\n * only for handlers\n *\n * @param target {String|null}\n * @param e {Object} event object\n */\n pointerDown: function (target, e) {\n e.preventDefault();\n var x = e.pageX || e.originalEvent.touches && e.originalEvent.touches[0].pageX;\n if (e.button === 2) {\n return;\n }\n\n if (target === "both") {\n this.setTempMinInterval();\n }\n\n if (!target) {\n target = this.target;\n }\n\n this.current_plugin = this.plugin_count;\n this.target = target;\n\n this.is_active = true;\n this.dragging = true;\n\n this.coords.x_gap = this.$cache.rs.offset().left;\n this.coords.x_pointer = x - this.coords.x_gap;\n\n this.calcPointerPercent();\n this.changeLevel(target);\n\n if (is_old_ie) {\n $("*").prop("unselectable", true);\n }\n\n this.$cache.line.trigger("focus");\n\n this.updateScene();\n },\n\n /**\n * Mousedown or touchstart\n * for other slider elements, like diapason line\n *\n * @param target {String}\n * @param e {Object} event object\n */\n pointerClick: function (target, e) {\n e.preventDefault();\n var x = e.pageX || e.originalEvent.touches && e.originalEvent.touches[0].pageX;\n if (e.button === 2) {\n return;\n }\n\n this.current_plugin = this.plugin_count;\n this.target = target;\n\n this.is_click = true;\n this.coords.x_gap = this.$cache.rs.offset().left;\n this.coords.x_pointer = +(x - this.coords.x_gap).toFixed();\n\n this.force_redraw = true;\n this.calc();\n\n this.$cache.line.trigger("focus");\n },\n\n /**\n * Keyborard controls for focused slider\n *\n * @param target {String}\n * @param e {Object} event object\n * @returns {boolean|undefined}\n */\n key: function (target, e) {\n if (this.current_plugin !== this.plugin_count || e.altKey || e.ctrlKey || e.shiftKey || e.metaKey) {\n return;\n }\n\n switch (e.which) {\n case 83: // W\n case 65: // A\n case 40: // DOWN\n case 37: // LEFT\n e.preventDefault();\n this.moveByKey(false);\n break;\n\n case 87: // S\n case 68: // D\n case 38: // UP\n case 39: // RIGHT\n e.preventDefault();\n this.moveByKey(true);\n break;\n }\n\n return true;\n },\n\n /**\n * Move by key. Beta\n * @todo refactor than have plenty of time\n *\n * @param right {boolean} direction to move\n */\n moveByKey: function (right) {\n var p = this.coords.p_pointer;\n\n if (right) {\n p += this.options.keyboard_step;\n } else {\n p -= this.options.keyboard_step;\n }\n\n this.coords.x_pointer = this.toFixed(this.coords.w_rs / 100 * p);\n this.is_key = true;\n this.calc();\n },\n\n /**\n * Set visibility and content\n * of Min and Max labels\n */\n setMinMax: function () {\n if (!this.options) {\n return;\n }\n\n if (this.options.hide_min_max) {\n this.$cache.min[0].style.display = "none";\n this.$cache.max[0].style.display = "none";\n return;\n }\n\n if (this.options.values.length) {\n this.$cache.min.html(this.decorate(this.options.p_values[this.options.min]));\n this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));\n } else {\n this.$cache.min.html(this.decorate(this._prettify(this.options.min), this.options.min));\n this.$cache.max.html(this.decorate(this._prettify(this.options.max), this.options.max));\n }\n\n this.labels.w_min = this.$cache.min.outerWidth(false);\n this.labels.w_max = this.$cache.max.outerWidth(false);\n },\n\n /**\n * Then dragging interval, prevent interval collapsing\n * using min_interval option\n */\n setTempMinInterval: function () {\n var interval = this.result.to - this.result.from;\n\n if (this.old_min_interval === null) {\n this.old_min_interval = this.options.min_interval;\n }\n\n this.options.min_interval = interval;\n },\n\n /**\n * Restore min_interval option to original\n */\n restoreOriginalMinInterval: function () {\n if (this.old_min_interval !== null) {\n this.options.min_interval = this.old_min_interval;\n this.old_min_interval = null;\n }\n },\n\n\n\n // =============================================================================================================\n // Calculations\n\n /**\n * All calculations and measures start here\n *\n * @param update {boolean=}\n */\n calc: function (update) {\n if (!this.options) {\n return;\n }\n\n this.calc_count++;\n\n if (this.calc_count === 10 || update) {\n this.calc_count = 0;\n this.coords.w_rs = this.$cache.rs.outerWidth(false);\n\n this.calcHandlePercent();\n }\n\n if (!this.coords.w_rs) {\n return;\n }\n\n this.calcPointerPercent();\n var handle_x = this.getHandleX();\n\n if (this.target === "click") {\n this.coords.p_gap = this.coords.p_handle / 2;\n handle_x = this.getHandleX();\n\n if (this.options.drag_interval) {\n this.target = "both_one";\n } else {\n this.target = this.chooseHandle(handle_x);\n }\n }\n\n switch (this.target) {\n case "base":\n var w = (this.options.max - this.options.min) / 100,\n f = (this.result.from - this.options.min) / w,\n t = (this.result.to - this.options.min) / w;\n\n this.coords.p_single_real = this.toFixed(f);\n this.coords.p_from_real = this.toFixed(f);\n this.coords.p_to_real = this.toFixed(t);\n\n this.coords.p_single_real = this.checkDiapason(this.coords.p_single_real, this.options.from_min, this.options.from_max);\n this.coords.p_from_real = this.checkDiapason(this.coords.p_from_real, this.options.from_min, this.options.from_max);\n this.coords.p_to_real = this.checkDiapason(this.coords.p_to_real, this.options.to_min, this.options.to_max);\n\n this.coords.p_single_fake = this.convertToFakePercent(this.coords.p_single_real);\n this.coords.p_from_fake = this.convertToFakePercent(this.coords.p_from_real);\n this.coords.p_to_fake = this.convertToFakePercent(this.coords.p_to_real);\n\n this.target = null;\n\n break;\n\n case "single":\n if (this.options.from_fixed) {\n break;\n }\n\n this.coords.p_single_real = this.convertToRealPercent(handle_x);\n this.coords.p_single_real = this.calcWithStep(this.coords.p_single_real);\n this.coords.p_single_real = this.checkDiapason(this.coords.p_single_real, this.options.from_min, this.options.from_max);\n\n this.coords.p_single_fake = this.convertToFakePercent(this.coords.p_single_real);\n\n break;\n\n case "from":\n if (this.options.from_fixed) {\n break;\n }\n\n this.coords.p_from_real = this.convertToRealPercent(handle_x);\n this.coords.p_from_real = this.calcWithStep(this.coords.p_from_real);\n if (this.coords.p_from_real > this.coords.p_to_real) {\n this.coords.p_from_real = this.coords.p_to_real;\n }\n this.coords.p_from_real = this.checkDiapason(this.coords.p_from_real, this.options.from_min, this.options.from_max);\n this.coords.p_from_real = this.checkMinInterval(this.coords.p_from_real, this.coords.p_to_real, "from");\n this.coords.p_from_real = this.checkMaxInterval(this.coords.p_from_real, this.coords.p_to_real, "from");\n\n this.coords.p_from_fake = this.convertToFakePercent(this.coords.p_from_real);\n\n break;\n\n case "to":\n if (this.options.to_fixed) {\n break;\n }\n\n this.coords.p_to_real = this.convertToRealPercent(handle_x);\n this.coords.p_to_real = this.calcWithStep(this.coords.p_to_real);\n if (this.coords.p_to_real < this.coords.p_from_real) {\n this.coords.p_to_real = this.coords.p_from_real;\n }\n this.coords.p_to_real = this.checkDiapason(this.coords.p_to_real, this.options.to_min, this.options.to_max);\n this.coords.p_to_real = this.checkMinInterval(this.coords.p_to_real, this.coords.p_from_real, "to");\n this.coords.p_to_real = this.checkMaxInterval(this.coords.p_to_real, this.coords.p_from_real, "to");\n\n this.coords.p_to_fake = this.convertToFakePercent(this.coords.p_to_real);\n\n break;\n\n case "both":\n if (this.options.from_fixed || this.options.to_fixed) {\n break;\n }\n\n handle_x = this.toFixed(handle_x + (this.coords.p_handle * 0.1));\n\n this.coords.p_from_real = this.convertToRealPercent(handle_x) - this.coords.p_gap_left;\n this.coords.p_from_real = this.calcWithStep(this.coords.p_from_real);\n this.coords.p_from_real = this.checkDiapason(this.coords.p_from_real, this.options.from_min, this.options.from_max);\n this.coords.p_from_real = this.checkMinInterval(this.coords.p_from_real, this.coords.p_to_real, "from");\n this.coords.p_from_fake = this.convertToFakePercent(this.coords.p_from_real);\n\n this.coords.p_to_real = this.convertToRealPercent(handle_x) + this.coords.p_gap_right;\n this.coords.p_to_real = this.calcWithStep(this.coords.p_to_real);\n this.coords.p_to_real = this.checkDiapason(this.coords.p_to_real, this.options.to_min, this.options.to_max);\n this.coords.p_to_real = this.checkMinInterval(this.coords.p_to_real, this.coords.p_from_real, "to");\n this.coords.p_to_fake = this.convertToFakePercent(this.coords.p_to_real);\n\n break;\n\n case "both_one":\n if (this.options.from_fixed || this.options.to_fixed) {\n break;\n }\n\n var real_x = this.convertToRealPercent(handle_x),\n from = this.result.from_percent,\n to = this.result.to_percent,\n full = to - from,\n half = full / 2,\n new_from = real_x - half,\n new_to = real_x + half;\n\n if (new_from < 0) {\n new_from = 0;\n new_to = new_from + full;\n }\n\n if (new_to > 100) {\n new_to = 100;\n new_from = new_to - full;\n }\n\n this.coords.p_from_real = this.calcWithStep(new_from);\n this.coords.p_from_real = this.checkDiapason(this.coords.p_from_real, this.options.from_min, this.options.from_max);\n this.coords.p_from_fake = this.convertToFakePercent(this.coords.p_from_real);\n\n this.coords.p_to_real = this.calcWithStep(new_to);\n this.coords.p_to_real = this.checkDiapason(this.coords.p_to_real, this.options.to_min, this.options.to_max);\n this.coords.p_to_fake = this.convertToFakePercent(this.coords.p_to_real);\n\n break;\n }\n\n if (this.options.type === "single") {\n this.coords.p_bar_x = (this.coords.p_handle / 2);\n this.coords.p_bar_w = this.coords.p_single_fake;\n\n this.result.from_percent = this.coords.p_single_real;\n this.result.from = this.convertToValue(this.coords.p_single_real);\n\n if (this.options.values.length) {\n this.result.from_value = this.options.values[this.result.from];\n }\n } else {\n this.coords.p_bar_x = this.toFixed(this.coords.p_from_fake + (this.coords.p_handle / 2));\n this.coords.p_bar_w = this.toFixed(this.coords.p_to_fake - this.coords.p_from_fake);\n\n this.result.from_percent = this.coords.p_from_real;\n this.result.from = this.convertToValue(this.coords.p_from_real);\n this.result.to_percent = this.coords.p_to_real;\n this.result.to = this.convertToValue(this.coords.p_to_real);\n\n if (this.options.values.length) {\n this.result.from_value = this.options.values[this.result.from];\n this.result.to_value = this.options.values[this.result.to];\n }\n }\n\n this.calcMinMax();\n this.calcLabels();\n },\n\n\n /**\n * calculates pointer X in percent\n */\n calcPointerPercent: function () {\n if (!this.coords.w_rs) {\n this.coords.p_pointer = 0;\n return;\n }\n\n if (this.coords.x_pointer < 0 || isNaN(this.coords.x_pointer) ) {\n this.coords.x_pointer = 0;\n } else if (this.coords.x_pointer > this.coords.w_rs) {\n this.coords.x_pointer = this.coords.w_rs;\n }\n\n this.coords.p_pointer = this.toFixed(this.coords.x_pointer / this.coords.w_rs * 100);\n },\n\n convertToRealPercent: function (fake) {\n var full = 100 - this.coords.p_handle;\n return fake / full * 100;\n },\n\n convertToFakePercent: function (real) {\n var full = 100 - this.coords.p_handle;\n return real / 100 * full;\n },\n\n getHandleX: function () {\n var max = 100 - this.coords.p_handle,\n x = this.toFixed(this.coords.p_pointer - this.coords.p_gap);\n\n if (x < 0) {\n x = 0;\n } else if (x > max) {\n x = max;\n }\n\n return x;\n },\n\n calcHandlePercent: function () {\n if (this.options.type === "single") {\n this.coords.w_handle = this.$cache.s_single.outerWidth(false);\n } else {\n this.coords.w_handle = this.$cache.s_from.outerWidth(false);\n }\n\n this.coords.p_handle = this.toFixed(this.coords.w_handle / this.coords.w_rs * 100);\n },\n\n /**\n * Find closest handle to pointer click\n *\n * @param real_x {Number}\n * @returns {String}\n */\n chooseHandle: function (real_x) {\n if (this.options.type === "single") {\n return "single";\n } else {\n var m_point = this.coords.p_from_real + ((this.coords.p_to_real - this.coords.p_from_real) / 2);\n if (real_x >= m_point) {\n return this.options.to_fixed ? "from" : "to";\n } else {\n return this.options.from_fixed ? "to" : "from";\n }\n }\n },\n\n /**\n * Measure Min and Max labels width in percent\n */\n calcMinMax: function () {\n if (!this.coords.w_rs) {\n return;\n }\n\n this.labels.p_min = this.labels.w_min / this.coords.w_rs * 100;\n this.labels.p_max = this.labels.w_max / this.coords.w_rs * 100;\n },\n\n /**\n * Measure labels width and X in percent\n */\n calcLabels: function () {\n if (!this.coords.w_rs || this.options.hide_from_to) {\n return;\n }\n\n if (this.options.type === "single") {\n\n this.labels.w_single = this.$cache.single.outerWidth(false);\n this.labels.p_single_fake = this.labels.w_single / this.coords.w_rs * 100;\n this.labels.p_single_left = this.coords.p_single_fake + (this.coords.p_handle / 2) - (this.labels.p_single_fake / 2);\n this.labels.p_single_left = this.checkEdges(this.labels.p_single_left, this.labels.p_single_fake);\n\n } else {\n\n this.labels.w_from = this.$cache.from.outerWidth(false);\n this.labels.p_from_fake = this.labels.w_from / this.coords.w_rs * 100;\n this.labels.p_from_left = this.coords.p_from_fake + (this.coords.p_handle / 2) - (this.labels.p_from_fake / 2);\n this.labels.p_from_left = this.toFixed(this.labels.p_from_left);\n this.labels.p_from_left = this.checkEdges(this.labels.p_from_left, this.labels.p_from_fake);\n\n this.labels.w_to = this.$cache.to.outerWidth(false);\n this.labels.p_to_fake = this.labels.w_to / this.coords.w_rs * 100;\n this.labels.p_to_left = this.coords.p_to_fake + (this.coords.p_handle / 2) - (this.labels.p_to_fake / 2);\n this.labels.p_to_left = this.toFixed(this.labels.p_to_left);\n this.labels.p_to_left = this.checkEdges(this.labels.p_to_left, this.labels.p_to_fake);\n\n this.labels.w_single = this.$cache.single.outerWidth(false);\n this.labels.p_single_fake = this.labels.w_single / this.coords.w_rs * 100;\n this.labels.p_single_left = ((this.labels.p_from_left + this.labels.p_to_left + this.labels.p_to_fake) / 2) - (this.labels.p_single_fake / 2);\n this.labels.p_single_left = this.toFixed(this.labels.p_single_left);\n this.labels.p_single_left = this.checkEdges(this.labels.p_single_left, this.labels.p_single_fake);\n\n }\n },\n\n\n\n // =============================================================================================================\n // Drawings\n\n /**\n * Main function called in request animation frame\n * to update everything\n */\n updateScene: function () {\n if (this.raf_id) {\n cancelAnimationFrame(this.raf_id);\n this.raf_id = null;\n }\n\n clearTimeout(this.update_tm);\n this.update_tm = null;\n\n if (!this.options) {\n return;\n }\n\n this.drawHandles();\n\n if (this.is_active) {\n this.raf_id = requestAnimationFrame(this.updateScene.bind(this));\n } else {\n this.update_tm = setTimeout(this.updateScene.bind(this), 300);\n }\n },\n\n /**\n * Draw handles\n */\n drawHandles: function () {\n this.coords.w_rs = this.$cache.rs.outerWidth(false);\n\n if (!this.coords.w_rs) {\n return;\n }\n\n if (this.coords.w_rs !== this.coords.w_rs_old) {\n this.target = "base";\n this.is_resize = true;\n }\n\n if (this.coords.w_rs !== this.coords.w_rs_old || this.force_redraw) {\n this.setMinMax();\n this.calc(true);\n this.drawLabels();\n if (this.options.grid) {\n this.calcGridMargin();\n this.calcGridLabels();\n }\n this.force_redraw = true;\n this.coords.w_rs_old = this.coords.w_rs;\n this.drawShadow();\n }\n\n if (!this.coords.w_rs) {\n return;\n }\n\n if (!this.dragging && !this.force_redraw && !this.is_key) {\n return;\n }\n\n if (this.old_from !== this.result.from || this.old_to !== this.result.to || this.force_redraw || this.is_key) {\n\n this.drawLabels();\n\n this.$cache.bar[0].style.left = this.coords.p_bar_x + "%";\n this.$cache.bar[0].style.width = this.coords.p_bar_w + "%";\n\n if (this.options.type === "single") {\n this.$cache.s_single[0].style.left = this.coords.p_single_fake + "%";\n\n this.$cache.single[0].style.left = this.labels.p_single_left + "%";\n\n if (this.options.values.length) {\n this.$cache.input.prop("value", this.result.from_value);\n } else {\n this.$cache.input.prop("value", this.result.from);\n }\n this.$cache.input.data("from", this.result.from);\n } else {\n this.$cache.s_from[0].style.left = this.coords.p_from_fake + "%";\n this.$cache.s_to[0].style.left = this.coords.p_to_fake + "%";\n\n if (this.old_from !== this.result.from || this.force_redraw) {\n this.$cache.from[0].style.left = this.labels.p_from_left + "%";\n }\n if (this.old_to !== this.result.to || this.force_redraw) {\n this.$cache.to[0].style.left = this.labels.p_to_left + "%";\n }\n\n this.$cache.single[0].style.left = this.labels.p_single_left + "%";\n\n if (this.options.values.length) {\n this.$cache.input.prop("value", this.result.from_value + this.options.input_values_separator + this.result.to_value);\n } else {\n this.$cache.input.prop("value", this.result.from + this.options.input_values_separator + this.result.to);\n }\n this.$cache.input.data("from", this.result.from);\n this.$cache.input.data("to", this.result.to);\n }\n\n if ((this.old_from !== this.result.from || this.old_to !== this.result.to) && !this.is_start) {\n this.$cache.input.trigger("change");\n }\n\n this.old_from = this.result.from;\n this.old_to = this.result.to;\n\n // callbacks call\n if (!this.is_resize && !this.is_update && !this.is_start && !this.is_finish) {\n this.callOnChange();\n }\n if (this.is_key || this.is_click) {\n this.is_key = false;\n this.is_click = false;\n this.callOnFinish();\n }\n\n this.is_update = false;\n this.is_resize = false;\n this.is_finish = false;\n }\n\n this.is_start = false;\n this.is_key = false;\n this.is_click = false;\n this.force_redraw = false;\n },\n\n /**\n * Draw labels\n * measure labels collisions\n * collapse close labels\n */\n drawLabels: function () {\n if (!this.options) {\n return;\n }\n\n var values_num = this.options.values.length,\n p_values = this.options.p_values,\n text_single,\n text_from,\n text_to;\n\n if (this.options.hide_from_to) {\n return;\n }\n\n if (this.options.type === "single") {\n\n if (values_num) {\n text_single = this.decorate(p_values[this.result.from]);\n this.$cache.single.html(text_single);\n } else {\n text_single = this.decorate(this._prettify(this.result.from), this.result.from);\n this.$cache.single.html(text_single);\n }\n\n this.calcLabels();\n\n if (this.labels.p_single_left < this.labels.p_min + 1) {\n this.$cache.min[0].style.visibility = "hidden";\n } else {\n this.$cache.min[0].style.visibility = "visible";\n }\n\n if (this.labels.p_single_left + this.labels.p_single_fake > 100 - this.labels.p_max - 1) {\n this.$cache.max[0].style.visibility = "hidden";\n } else {\n this.$cache.max[0].style.visibility = "visible";\n }\n\n } else {\n\n if (values_num) {\n\n if (this.options.decorate_both) {\n text_single = this.decorate(p_values[this.result.from]);\n text_single += this.options.values_separator;\n text_single += this.decorate(p_values[this.result.to]);\n } else {\n text_single = this.decorate(p_values[this.result.from] + this.options.values_separator + p_values[this.result.to]);\n }\n text_from = this.decorate(p_values[this.result.from]);\n text_to = this.decorate(p_values[this.result.to]);\n\n this.$cache.single.html(text_single);\n this.$cache.from.html(text_from);\n this.$cache.to.html(text_to);\n\n } else {\n\n if (this.options.decorate_both) {\n text_single = this.decorate(this._prettify(this.result.from), this.result.from);\n text_single += this.options.values_separator;\n text_single += this.decorate(this._prettify(this.result.to), this.result.to);\n } else {\n text_single = this.decorate(this._prettify(this.result.from) + this.options.values_separator + this._prettify(this.result.to), this.result.to);\n }\n text_from = this.decorate(this._prettify(this.result.from), this.result.from);\n text_to = this.decorate(this._prettify(this.result.to), this.result.to);\n\n this.$cache.single.html(text_single);\n this.$cache.from.html(text_from);\n this.$cache.to.html(text_to);\n\n }\n\n this.calcLabels();\n\n var min = Math.min(this.labels.p_single_left, this.labels.p_from_left),\n single_left = this.labels.p_single_left + this.labels.p_single_fake,\n to_left = this.labels.p_to_left + this.labels.p_to_fake,\n max = Math.max(single_left, to_left);\n\n if (this.labels.p_from_left + this.labels.p_from_fake >= this.labels.p_to_left) {\n this.$cache.from[0].style.visibility = "hidden";\n this.$cache.to[0].style.visibility = "hidden";\n this.$cache.single[0].style.visibility = "visible";\n\n if (this.result.from === this.result.to) {\n if (this.target === "from") {\n this.$cache.from[0].style.visibility = "visible";\n } else if (this.target === "to") {\n this.$cache.to[0].style.visibility = "visible";\n } else if (!this.target) {\n this.$cache.from[0].style.visibility = "visible";\n }\n this.$cache.single[0].style.visibility = "hidden";\n max = to_left;\n } else {\n this.$cache.from[0].style.visibility = "hidden";\n this.$cache.to[0].style.visibility = "hidden";\n this.$cache.single[0].style.visibility = "visible";\n max = Math.max(single_left, to_left);\n }\n } else {\n this.$cache.from[0].style.visibility = "visible";\n this.$cache.to[0].style.visibility = "visible";\n this.$cache.single[0].style.visibility = "hidden";\n }\n\n if (min < this.labels.p_min + 1) {\n this.$cache.min[0].style.visibility = "hidden";\n } else {\n this.$cache.min[0].style.visibility = "visible";\n }\n\n if (max > 100 - this.labels.p_max - 1) {\n this.$cache.max[0].style.visibility = "hidden";\n } else {\n this.$cache.max[0].style.visibility = "visible";\n }\n\n }\n },\n\n /**\n * Draw shadow intervals\n */\n drawShadow: function () {\n var o = this.options,\n c = this.$cache,\n\n is_from_min = typeof o.from_min === "number" && !isNaN(o.from_min),\n is_from_max = typeof o.from_max === "number" && !isNaN(o.from_max),\n is_to_min = typeof o.to_min === "number" && !isNaN(o.to_min),\n is_to_max = typeof o.to_max === "number" && !isNaN(o.to_max),\n\n from_min,\n from_max,\n to_min,\n to_max;\n\n if (o.type === "single") {\n if (o.from_shadow && (is_from_min || is_from_max)) {\n from_min = this.convertToPercent(is_from_min ? o.from_min : o.min);\n from_max = this.convertToPercent(is_from_max ? o.from_max : o.max) - from_min;\n from_min = this.toFixed(from_min - (this.coords.p_handle / 100 * from_min));\n from_max = this.toFixed(from_max - (this.coords.p_handle / 100 * from_max));\n from_min = from_min + (this.coords.p_handle / 2);\n\n c.shad_single[0].style.display = "block";\n c.shad_single[0].style.left = from_min + "%";\n c.shad_single[0].style.width = from_max + "%";\n } else {\n c.shad_single[0].style.display = "none";\n }\n } else {\n if (o.from_shadow && (is_from_min || is_from_max)) {\n from_min = this.convertToPercent(is_from_min ? o.from_min : o.min);\n from_max = this.convertToPercent(is_from_max ? o.from_max : o.max) - from_min;\n from_min = this.toFixed(from_min - (this.coords.p_handle / 100 * from_min));\n from_max = this.toFixed(from_max - (this.coords.p_handle / 100 * from_max));\n from_min = from_min + (this.coords.p_handle / 2);\n\n c.shad_from[0].style.display = "block";\n c.shad_from[0].style.left = from_min + "%";\n c.shad_from[0].style.width = from_max + "%";\n } else {\n c.shad_from[0].style.display = "none";\n }\n\n if (o.to_shadow && (is_to_min || is_to_max)) {\n to_min = this.convertToPercent(is_to_min ? o.to_min : o.min);\n to_max = this.convertToPercent(is_to_max ? o.to_max : o.max) - to_min;\n to_min = this.toFixed(to_min - (this.coords.p_handle / 100 * to_min));\n to_max = this.toFixed(to_max - (this.coords.p_handle / 100 * to_max));\n to_min = to_min + (this.coords.p_handle / 2);\n\n c.shad_to[0].style.display = "block";\n c.shad_to[0].style.left = to_min + "%";\n c.shad_to[0].style.width = to_max + "%";\n } else {\n c.shad_to[0].style.display = "none";\n }\n }\n },\n\n\n\n // =============================================================================================================\n // Callbacks\n\n callOnStart: function () {\n if (this.options.onStart && typeof this.options.onStart === "function") {\n this.options.onStart(this.result);\n }\n },\n callOnChange: function () {\n if (this.options.onChange && typeof this.options.onChange === "function") {\n this.options.onChange(this.result);\n }\n },\n callOnFinish: function () {\n if (this.options.onFinish && typeof this.options.onFinish === "function") {\n this.options.onFinish(this.result);\n }\n },\n callOnUpdate: function () {\n if (this.options.onUpdate && typeof this.options.onUpdate === "function") {\n this.options.onUpdate(this.result);\n }\n },\n\n\n\n // =============================================================================================================\n // Service methods\n\n toggleInput: function () {\n this.$cache.input.toggleClass("irs-hidden-input");\n },\n\n /**\n * Convert real value to percent\n *\n * @param value {Number} X in real\n * @param no_min {boolean=} don\'t use min value\n * @returns {Number} X in percent\n */\n convertToPercent: function (value, no_min) {\n var diapason = this.options.max - this.options.min,\n one_percent = diapason / 100,\n val, percent;\n\n if (!diapason) {\n this.no_diapason = true;\n return 0;\n }\n\n if (no_min) {\n val = value;\n } else {\n val = value - this.options.min;\n }\n\n percent = val / one_percent;\n\n return this.toFixed(percent);\n },\n\n /**\n * Convert percent to real values\n *\n * @param percent {Number} X in percent\n * @returns {Number} X in real\n */\n convertToValue: function (percent) {\n var min = this.options.min,\n max = this.options.max,\n min_decimals = min.toString().split(".")[1],\n max_decimals = max.toString().split(".")[1],\n min_length, max_length,\n avg_decimals = 0,\n abs = 0;\n\n if (percent === 0) {\n return this.options.min;\n }\n if (percent === 100) {\n return this.options.max;\n }\n\n\n if (min_decimals) {\n min_length = min_decimals.length;\n avg_decimals = min_length;\n }\n if (max_decimals) {\n max_length = max_decimals.length;\n avg_decimals = max_length;\n }\n if (min_length && max_length) {\n avg_decimals = (min_length >= max_length) ? min_length : max_length;\n }\n\n if (min < 0) {\n abs = Math.abs(min);\n min = +(min + abs).toFixed(avg_decimals);\n max = +(max + abs).toFixed(avg_decimals);\n }\n\n var number = ((max - min) / 100 * percent) + min,\n string = this.options.step.toString().split(".")[1],\n result;\n\n if (string) {\n number = +number.toFixed(string.length);\n } else {\n number = number / this.options.step;\n number = number * this.options.step;\n\n number = +number.toFixed(0);\n }\n\n if (abs) {\n number -= abs;\n }\n\n if (string) {\n result = +number.toFixed(string.length);\n } else {\n result = this.toFixed(number);\n }\n\n if (result < this.options.min) {\n result = this.options.min;\n } else if (result > this.options.max) {\n result = this.options.max;\n }\n\n return result;\n },\n\n /**\n * Round percent value with step\n *\n * @param percent {Number}\n * @returns percent {Number} rounded\n */\n calcWithStep: function (percent) {\n var rounded = Math.round(percent / this.coords.p_step) * this.coords.p_step;\n\n if (rounded > 100) {\n rounded = 100;\n }\n if (percent === 100) {\n rounded = 100;\n }\n\n return this.toFixed(rounded);\n },\n\n checkMinInterval: function (p_current, p_next, type) {\n var o = this.options,\n current,\n next;\n\n if (!o.min_interval) {\n return p_current;\n }\n\n current = this.convertToValue(p_current);\n next = this.convertToValue(p_next);\n\n if (type === "from") {\n\n if (next - current < o.min_interval) {\n current = next - o.min_interval;\n }\n\n } else {\n\n if (current - next < o.min_interval) {\n current = next + o.min_interval;\n }\n\n }\n\n return this.convertToPercent(current);\n },\n\n checkMaxInterval: function (p_current, p_next, type) {\n var o = this.options,\n current,\n next;\n\n if (!o.max_interval) {\n return p_current;\n }\n\n current = this.convertToValue(p_current);\n next = this.convertToValue(p_next);\n\n if (type === "from") {\n\n if (next - current > o.max_interval) {\n current = next - o.max_interval;\n }\n\n } else {\n\n if (current - next > o.max_interval) {\n current = next + o.max_interval;\n }\n\n }\n\n return this.convertToPercent(current);\n },\n\n checkDiapason: function (p_num, min, max) {\n var num = this.convertToValue(p_num),\n o = this.options;\n\n if (typeof min !== "number") {\n min = o.min;\n }\n\n if (typeof max !== "number") {\n max = o.max;\n }\n\n if (num < min) {\n num = min;\n }\n\n if (num > max) {\n num = max;\n }\n\n return this.convertToPercent(num);\n },\n\n toFixed: function (num) {\n num = num.toFixed(9);\n return +num;\n },\n\n _prettify: function (num) {\n if (!this.options.prettify_enabled) {\n return num;\n }\n\n if (this.options.prettify && typeof this.options.prettify === "function") {\n return this.options.prettify(num);\n } else {\n return this.prettify(num);\n }\n },\n\n prettify: function (num) {\n var n = num.toString();\n return n.replace(/(\\d{1,3}(?=(?:\\d\\d\\d)+(?!\\d)))/g, "$1" + this.options.prettify_separator);\n },\n\n checkEdges: function (left, width) {\n if (!this.options.force_edges) {\n return this.toFixed(left);\n }\n\n if (left < 0) {\n left = 0;\n } else if (left > 100 - width) {\n left = 100 - width;\n }\n\n return this.toFixed(left);\n },\n\n validate: function () {\n var o = this.options,\n r = this.result,\n v = o.values,\n vl = v.length,\n value,\n i;\n\n if (typeof o.min === "string") o.min = +o.min;\n if (typeof o.max === "string") o.max = +o.max;\n if (typeof o.from === "string") o.from = +o.from;\n if (typeof o.to === "string") o.to = +o.to;\n if (typeof o.step === "string") o.step = +o.step;\n\n if (typeof o.from_min === "string") o.from_min = +o.from_min;\n if (typeof o.from_max === "string") o.from_max = +o.from_max;\n if (typeof o.to_min === "string") o.to_min = +o.to_min;\n if (typeof o.to_max === "string") o.to_max = +o.to_max;\n\n if (typeof o.keyboard_step === "string") o.keyboard_step = +o.keyboard_step;\n if (typeof o.grid_num === "string") o.grid_num = +o.grid_num;\n\n if (o.max < o.min) {\n o.max = o.min;\n }\n\n if (vl) {\n o.p_values = [];\n o.min = 0;\n o.max = vl - 1;\n o.step = 1;\n o.grid_num = o.max;\n o.grid_snap = true;\n\n\n for (i = 0; i < vl; i++) {\n value = +v[i];\n\n if (!isNaN(value)) {\n v[i] = value;\n value = this._prettify(value);\n } else {\n value = v[i];\n }\n\n o.p_values.push(value);\n }\n }\n\n if (typeof o.from !== "number" || isNaN(o.from)) {\n o.from = o.min;\n }\n\n if (typeof o.to !== "number" || isNaN(o.from)) {\n o.to = o.max;\n }\n\n if (o.type === "single") {\n\n if (o.from < o.min) {\n o.from = o.min;\n }\n\n if (o.from > o.max) {\n o.from = o.max;\n }\n\n } else {\n\n if (o.from < o.min || o.from > o.max) {\n o.from = o.min;\n }\n if (o.to > o.max || o.to < o.min) {\n o.to = o.max;\n }\n if (o.from > o.to) {\n o.from = o.to;\n }\n\n }\n\n if (typeof o.step !== "number" || isNaN(o.step) || !o.step || o.step < 0) {\n o.step = 1;\n }\n\n if (typeof o.keyboard_step !== "number" || isNaN(o.keyboard_step) || !o.keyboard_step || o.keyboard_step < 0) {\n o.keyboard_step = 5;\n }\n\n if (typeof o.from_min === "number" && o.from < o.from_min) {\n o.from = o.from_min;\n }\n\n if (typeof o.from_max === "number" && o.from > o.from_max) {\n o.from = o.from_max;\n }\n\n if (typeof o.to_min === "number" && o.to < o.to_min) {\n o.to = o.to_min;\n }\n\n if (typeof o.to_max === "number" && o.from > o.to_max) {\n o.to = o.to_max;\n }\n\n if (r) {\n if (r.min !== o.min) {\n r.min = o.min;\n }\n\n if (r.max !== o.max) {\n r.max = o.max;\n }\n\n if (r.from < r.min || r.from > r.max) {\n r.from = o.from;\n }\n\n if (r.to < r.min || r.to > r.max) {\n r.to = o.to;\n }\n }\n\n if (typeof o.min_interval !== "number" || isNaN(o.min_interval) || !o.min_interval || o.min_interval < 0) {\n o.min_interval = 0;\n }\n\n if (typeof o.max_interval !== "number" || isNaN(o.max_interval) || !o.max_interval || o.max_interval < 0) {\n o.max_interval = 0;\n }\n\n if (o.min_interval && o.min_interval > o.max - o.min) {\n o.min_interval = o.max - o.min;\n }\n\n if (o.max_interval && o.max_interval > o.max - o.min) {\n o.max_interval = o.max - o.min;\n }\n },\n\n decorate: function (num, original) {\n var decorated = "",\n o = this.options;\n\n if (o.prefix) {\n decorated += o.prefix;\n }\n\n decorated += num;\n\n if (o.max_postfix) {\n if (o.values.length && num === o.p_values[o.max]) {\n decorated += o.max_postfix;\n if (o.postfix) {\n decorated += " ";\n }\n } else if (original === o.max) {\n decorated += o.max_postfix;\n if (o.postfix) {\n decorated += " ";\n }\n }\n }\n\n if (o.postfix) {\n decorated += o.postfix;\n }\n\n return decorated;\n },\n\n updateFrom: function () {\n this.result.from = this.options.from;\n this.result.from_percent = this.convertToPercent(this.result.from);\n if (this.options.values) {\n this.result.from_value = this.options.values[this.result.from];\n }\n },\n\n updateTo: function () {\n this.result.to = this.options.to;\n this.result.to_percent = this.convertToPercent(this.result.to);\n if (this.options.values) {\n this.result.to_value = this.options.values[this.result.to];\n }\n },\n\n updateResult: function () {\n this.result.min = this.options.min;\n this.result.max = this.options.max;\n this.updateFrom();\n this.updateTo();\n },\n\n\n // =============================================================================================================\n // Grid\n\n appendGrid: function () {\n if (!this.options.grid) {\n return;\n }\n\n var o = this.options,\n i, z,\n\n total = o.max - o.min,\n big_num = o.grid_num,\n big_p = 0,\n big_w = 0,\n\n small_max = 4,\n local_small_max,\n small_p,\n small_w = 0,\n\n result,\n html = \'\';\n\n\n\n this.calcGridMargin();\n\n if (o.grid_snap) {\n big_num = total / o.step;\n big_p = this.toFixed(o.step / (total / 100));\n } else {\n big_p = this.toFixed(100 / big_num);\n }\n\n if (big_num > 4) {\n small_max = 3;\n }\n if (big_num > 7) {\n small_max = 2;\n }\n if (big_num > 14) {\n small_max = 1;\n }\n if (big_num > 28) {\n small_max = 0;\n }\n\n for (i = 0; i < big_num + 1; i++) {\n local_small_max = small_max;\n\n big_w = this.toFixed(big_p * i);\n\n if (big_w > 100) {\n big_w = 100;\n\n local_small_max -= 2;\n if (local_small_max < 0) {\n local_small_max = 0;\n }\n }\n this.coords.big[i] = big_w;\n\n small_p = (big_w - (big_p * (i - 1))) / (local_small_max + 1);\n\n for (z = 1; z <= local_small_max; z++) {\n if (big_w === 0) {\n break;\n }\n\n small_w = this.toFixed(big_w - (small_p * z));\n\n html += \'<span class="irs-grid-pol small" style="left: \' + small_w + \'%"></span>\';\n }\n\n html += \'<span class="irs-grid-pol" style="left: \' + big_w + \'%"></span>\';\n\n result = this.convertToValue(big_w);\n if (o.values.length) {\n result = o.p_values[result];\n } else {\n result = this._prettify(result);\n }\n\n html += \'<span class="irs-grid-text js-grid-text-\' + i + \'" style="left: \' + big_w + \'%">\' + result + \'</span>\';\n }\n this.coords.big_num = Math.ceil(big_num + 1);\n\n\n\n this.$cache.cont.addClass("irs-with-grid");\n this.$cache.grid.html(html);\n this.cacheGridLabels();\n },\n\n cacheGridLabels: function () {\n var $label, i,\n num = this.coords.big_num;\n\n for (i = 0; i < num; i++) {\n $label = this.$cache.grid.find(".js-grid-text-" + i);\n this.$cache.grid_labels.push($label);\n }\n\n this.calcGridLabels();\n },\n\n calcGridLabels: function () {\n var i, label, start = [], finish = [],\n num = this.coords.big_num;\n\n for (i = 0; i < num; i++) {\n this.coords.big_w[i] = this.$cache.grid_labels[i].outerWidth(false);\n this.coords.big_p[i] = this.toFixed(this.coords.big_w[i] / this.coords.w_rs * 100);\n this.coords.big_x[i] = this.toFixed(this.coords.big_p[i] / 2);\n\n start[i] = this.toFixed(this.coords.big[i] - this.coords.big_x[i]);\n finish[i] = this.toFixed(start[i] + this.coords.big_p[i]);\n }\n\n if (this.options.force_edges) {\n if (start[0] < -this.coords.grid_gap) {\n start[0] = -this.coords.grid_gap;\n finish[0] = this.toFixed(start[0] + this.coords.big_p[0]);\n\n this.coords.big_x[0] = this.coords.grid_gap;\n }\n\n if (finish[num - 1] > 100 + this.coords.grid_gap) {\n finish[num - 1] = 100 + this.coords.grid_gap;\n start[num - 1] = this.toFixed(finish[num - 1] - this.coords.big_p[num - 1]);\n\n this.coords.big_x[num - 1] = this.toFixed(this.coords.big_p[num - 1] - this.coords.grid_gap);\n }\n }\n\n this.calcGridCollision(2, start, finish);\n this.calcGridCollision(4, start, finish);\n\n for (i = 0; i < num; i++) {\n label = this.$cache.grid_labels[i][0];\n label.style.marginLeft = -this.coords.big_x[i] + "%";\n }\n },\n\n // Collisions Calc Beta\n // TODO: Refactor then have plenty of time\n calcGridCollision: function (step, start, finish) {\n var i, next_i, label,\n num = this.coords.big_num;\n\n for (i = 0; i < num; i += step) {\n next_i = i + (step / 2);\n if (next_i >= num) {\n break;\n }\n\n label = this.$cache.grid_labels[next_i][0];\n\n if (finish[i] <= start[next_i]) {\n label.style.visibility = "visible";\n } else {\n label.style.visibility = "hidden";\n }\n }\n },\n\n calcGridMargin: function () {\n if (!this.options.grid_margin) {\n return;\n }\n\n this.coords.w_rs = this.$cache.rs.outerWidth(false);\n if (!this.coords.w_rs) {\n return;\n }\n\n if (this.options.type === "single") {\n this.coords.w_handle = this.$cache.s_single.outerWidth(false);\n } else {\n this.coords.w_handle = this.$cache.s_from.outerWidth(false);\n }\n this.coords.p_handle = this.toFixed(this.coords.w_handle / this.coords.w_rs * 100);\n this.coords.grid_gap = this.toFixed((this.coords.p_handle / 2) - 0.1);\n\n this.$cache.grid[0].style.width = this.toFixed(100 - this.coords.p_handle) + "%";\n this.$cache.grid[0].style.left = this.coords.grid_gap + "%";\n },\n\n\n\n // =============================================================================================================\n // Public methods\n\n update: function (options) {\n if (!this.input) {\n return;\n }\n\n this.is_update = true;\n\n this.options.from = this.result.from;\n this.options.to = this.result.to;\n\n this.options = $.extend(this.options, options);\n this.validate();\n this.updateResult(options);\n\n this.toggleInput();\n this.remove();\n this.init(true);\n },\n\n reset: function () {\n if (!this.input) {\n return;\n }\n\n this.updateResult();\n this.update();\n },\n\n destroy: function () {\n if (!this.input) {\n return;\n }\n\n this.toggleInput();\n this.$cache.input.prop("readonly", false);\n $.data(this.input, "ionRangeSlider", null);\n\n this.remove();\n this.input = null;\n this.options = null;\n }\n };\n\n $.fn.ionRangeSlider = function (options) {\n return this.each(function() {\n if (!$.data(this, "ionRangeSlider")) {\n $.data(this, "ionRangeSlider", new IonRangeSlider(this, options, plugin_count++));\n }\n });\n };\n\n\n\n // =================================================================================================================\n // http://paulirish.com/2011/requestanimationframe-for-smart-animating/\n // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating\n\n // requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel\n\n // MIT license\n\n (function() {\n var lastTime = 0;\n var vendors = [\'ms\', \'moz\', \'webkit\', \'o\'];\n for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {\n window.requestAnimationFrame = window[vendors[x]+\'RequestAnimationFrame\'];\n window.cancelAnimationFrame = window[vendors[x]+\'CancelAnimationFrame\']\n || window[vendors[x]+\'CancelRequestAnimationFrame\'];\n }\n\n if (!window.requestAnimationFrame)\n window.requestAnimationFrame = function(callback, element) {\n var currTime = new Date().getTime();\n var timeToCall = Math.max(0, 16 - (currTime - lastTime));\n var id = window.setTimeout(function() { callback(currTime + timeToCall); },\n timeToCall);\n lastTime = currTime + timeToCall;\n return id;\n };\n\n if (!window.cancelAnimationFrame)\n window.cancelAnimationFrame = function(id) {\n clearTimeout(id);\n };\n }());\n\n}));\n'},2492:function(t,e){!function(){var t=angular.module("multi-transclude",[]),e=["$scope","$element","$transclude",function(t,e,n){if(!n)throw new Error("Illegal use of ngMultiTransclude controller. No directive that requires a transclusion found.");this.$element=e,this.isChildOf=function(t){return t.$element[0].contains(this.$element[0])};var i;t.$on("$destroy",function(){i&&(i.remove(),i=null)});var r=angular.element('<div style="display:none;"></div>');this.transclude=function(t,e){for(var n=0;n<i.length;++n){var r=angular.element(i[n]);if(r.attr("name")===t)return e.empty(),void e.append(r)}},this.transcluded=function(){r&&(r.remove(),r=null)},n(function(t){i=t,r.append(t),e.append(r)})}];t.directive("ngMultiTemplate",function(){return{transclude:!0,templateUrl:function(t,e){return e.ngMultiTemplate},controller:e,link:function(t,e,n,i){i.transcluded()}}}),t.directive("ngMultiTranscludeController",function(){return{controller:e,link:function(t,e,n,i){i.transcluded()}}}),t.directive("ngMultiTransclude",function(){return{require:["?^ngMultiTranscludeController","?^ngMultiTemplate"],link:function(t,e,n,i){var r,o=i[0],a=i[1];if(!(r=o&&a?o.isChildOf(a)?o:a:o||a))throw new Error("Illegal use of ngMultiTransclude. No wrapping controller.");r.transclude(n.ngMultiTransclude,e)}}})}()},250:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},251:function(t,e,n){var i=n(250),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},252:function(t,e,n){var i=n(15).setDesc,r=n(66),o=n(28)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},253:function(t,e){t.exports={}},254:function(t,e,n){var i=n(93),r=n(884),o=n(885),a=n(26),s=n(67),l=n(886);t.exports=function(t,e,n,c){var u,d,h,f=l(t),p=i(n,c,e?2:1),m=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(o(f))for(u=s(t.length);u>m;m++)e?p(a(d=t[m])[0],d[1]):p(t[m]);else for(h=f.call(t);!(d=h.next()).done;)r(h,p,d.value,e)}},255:function(t,e,n){/** * @license AngularJS v1.2.28 * (c) 2010-2014 Google, Inc. http://angularjs.org * License: MIT */ !function(t,e,n){"use strict";function i(t){return function(){var e,n,i=arguments[0],r="["+(t?t+":":"")+i+"] ",o=arguments[1],a=arguments;for(e=r+o.replace(/\{\d+\}/g,function(t){var e,n=+t.slice(1,-1);return n+2<a.length?(e=a[n+2],"function"==typeof e?e.toString().replace(/ ?\{[\s\S]*$/,""):void 0===e?"undefined":"string"!=typeof e?V(e):e):t}),e=e+"\nhttp://errors.angularjs.org/1.2.28/"+(t?t+"/":"")+i,n=2;n<arguments.length;n++)e=e+(2==n?"?":"&")+"p"+(n-2)+"="+encodeURIComponent(function(t){return"function"==typeof t?t.toString().replace(/ \{[\s\S]*$/,""):void 0===t?"undefined":"string"!=typeof t?JSON.stringify(t):t}(arguments[n]));return new Error(e)}}function r(t){if(null==t||D(t))return!1;var e=t.length;return!(1!==t.nodeType||!e)||(b(t)||Rn(t)||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e,n){var i;if(t)if(T(t))for(i in t)"prototype"==i||"length"==i||"name"==i||t.hasOwnProperty&&!t.hasOwnProperty(i)||e.call(n,t[i],i);else if(Rn(t)||r(t))for(i=0;i<t.length;i++)e.call(n,t[i],i);else if(t.forEach&&t.forEach!==o)t.forEach(e,n);else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i);return t}function a(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e.sort()}function s(t,e,n){for(var i=a(t),r=0;r<i.length;r++)e.call(n,t[i[r]],i[r]);return i}function l(t){return function(e,n){t(n,e)}}function c(){for(var t,e=wn.length;e;){if(e--,57==(t=wn[e].charCodeAt(0)))return wn[e]="A",wn.join("");if(90!=t)return wn[e]=String.fromCharCode(t+1),wn.join("");wn[e]="0"}return wn.unshift("0"),wn.join("")}function u(t,e){e?t.$$hashKey=e:delete t.$$hashKey}function d(t){var e=t.$$hashKey;return o(arguments,function(e){e!==t&&o(e,function(e,n){t[n]=e})}),u(t,e),t}function h(t){return parseInt(t,10)}function f(t,e){return d(new(d(function(){},{prototype:t})),e)}function p(){}function m(t){return t}function g(t){return function(){return t}}function v(t){return void 0===t}function y(t){return void 0!==t}function E(t){return null!=t&&"object"==typeof t}function b(t){return"string"==typeof t}function _(t){return"number"==typeof t}function C(t){return"[object Date]"===Dn.call(t)}function T(t){return"function"==typeof t}function I(t){return"[object RegExp]"===Dn.call(t)}function D(t){return t&&t.document&&t.location&&t.alert&&t.setInterval}function $(t){return t&&t.$evalAsync&&t.$watch}function O(t){return"[object File]"===Dn.call(t)}function w(t){return"[object Blob]"===Dn.call(t)}function R(t){return t&&T(t.then)}function k(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}function x(t,e,n){var i=[];return o(t,function(t,r,o){i.push(e.call(n,t,r,o))}),i}function S(t,e){return-1!=A(t,e)}function A(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0;n<t.length;n++)if(e===t[n])return n;return-1}function N(t,e){var n=A(t,e);return n>=0&&t.splice(n,1),e}function P(t,e,n,i){if(D(t)||$(t))throw $n("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");if(e){if(t===e)throw $n("cpi","Can't copy! Source and destination are identical.");if(n=n||[],i=i||[],E(t)){var r=A(n,t);if(-1!==r)return i[r];n.push(t),i.push(e)}var a;if(Rn(t)){e.length=0;for(var s=0;s<t.length;s++)a=P(t[s],null,n,i),E(t[s])&&(n.push(t[s]),i.push(a)),e.push(a)}else{var l=e.$$hashKey;Rn(e)?e.length=0:o(e,function(t,n){delete e[n]});for(var c in t)a=P(t[c],null,n,i),E(t[c])&&(n.push(t[c]),i.push(a)),e[c]=a;u(e,l)}}else e=t,t&&(Rn(t)?e=P(t,[],n,i):C(t)?e=new Date(t.getTime()):I(t)?(e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]),e.lastIndex=t.lastIndex):E(t)&&(e=P(t,{},n,i)));return e}function M(t,e){if(Rn(t)){e=e||[];for(var n=0;n<t.length;n++)e[n]=t[n]}else if(E(t)){e=e||{};for(var i in t)!pn.call(t,i)||"$"===i.charAt(0)&&"$"===i.charAt(1)||(e[i]=t[i])}return e||t}function K(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!==t&&e!==e)return!0;var i,r,o,a=typeof t,s=typeof e;if(a==s&&"object"==a){if(!Rn(t)){if(C(t))return!!C(e)&&(isNaN(t.getTime())&&isNaN(e.getTime())||t.getTime()===e.getTime());if(I(t)&&I(e))return t.toString()==e.toString();if($(t)||$(e)||D(t)||D(e)||Rn(e))return!1;o={};for(r in t)if("$"!==r.charAt(0)&&!T(t[r])){if(!K(t[r],e[r]))return!1;o[r]=!0}for(r in e)if(!o.hasOwnProperty(r)&&"$"!==r.charAt(0)&&e[r]!==n&&!T(e[r]))return!1;return!0}if(!Rn(e))return!1;if((i=t.length)==e.length){for(r=0;r<i;r++)if(!K(t[r],e[r]))return!1;return!0}}return!1}function L(t,e,n){return t.concat(Tn.call(e,n))}function F(t,e){return Tn.call(t,e||0)}function B(t,e){var n=arguments.length>2?F(arguments,2):[];return!T(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,n.concat(Tn.call(arguments,0))):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function j(t,i){var r=i;return"string"==typeof t&&"$"===t.charAt(0)?r=n:D(i)?r="$WINDOW":i&&e===i?r="$DOCUMENT":$(i)&&(r="$SCOPE"),r}function V(t,e){return void 0===t?n:JSON.stringify(t,j,e?" ":null)}function H(t){return b(t)?JSON.parse(t):t}function U(t){if("function"==typeof t)t=!0;else if(t&&0!==t.length){var e=fn(""+t);t=!("f"==e||"0"==e||"false"==e||"no"==e||"n"==e||"[]"==e)}else t=!1;return t}function z(t){t=En(t).clone();try{t.empty()}catch(n){}var e=En("<div>").append(t).html();try{return 3===t[0].nodeType?fn(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+fn(e)})}catch(n){return fn(e)}}function G(t){try{return decodeURIComponent(t)}catch(e){}}function q(t){var e,n,i={};return o((t||"").split("&"),function(t){if(t&&(e=t.replace(/\+/g,"%20").split("="),n=G(e[0]),y(n))){var r=!y(e[1])||G(e[1]);pn.call(i,n)?Rn(i[n])?i[n].push(r):i[n]=[i[n],r]:i[n]=r}}),i}function W(t){var e=[];return o(t,function(t,n){Rn(t)?o(t,function(t){e.push(X(n,!0)+(!0===t?"":"="+X(t,!0)))}):e.push(X(n,!0)+(!0===t?"":"="+X(t,!0)))}),e.length?e.join("&"):""}function Y(t){return X(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function X(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,e?"%20":"+")}function J(t,n){function i(t){t&&s.push(t)}var r,a,s=[t],l=["ng:app","ng-app","x-ng-app","data-ng-app"],c=/\sng[:\-]app(:\s*([\w\d_]+);?)?\s/;o(l,function(n){l[n]=!0,i(e.getElementById(n)),n=n.replace(":","\\:"),t.querySelectorAll&&(o(t.querySelectorAll("."+n),i),o(t.querySelectorAll("."+n+"\\:"),i),o(t.querySelectorAll("["+n+"]"),i))}),o(s,function(t){if(!r){var e=" "+t.className+" ",n=c.exec(e);n?(r=t,a=(n[2]||"").replace(/\s+/g,",")):o(t.attributes,function(e){!r&&l[e.name]&&(r=t,a=e.value)})}}),r&&n(r,a?[a]:[])}function Z(n,i){var r=function(){if(n=En(n),n.injector()){var t=n[0]===e?"document":z(n);throw $n("btstrpd","App Already Bootstrapped with this Element '{0}'",t.replace(/</,"<").replace(/>/,">"))}i=i||[],i.unshift(["$provide",function(t){t.value("$rootElement",n)}]),i.unshift("ng");var r=xt(i);return r.invoke(["$rootScope","$rootElement","$compile","$injector","$animate",function(t,e,n,i,r){t.$apply(function(){e.data("$injector",i),n(e)(t)})}]),r},a=/^NG_DEFER_BOOTSTRAP!/;if(t&&!a.test(t.name))return r();t.name=t.name.replace(a,""),On.resumeBootstrap=function(t){o(t,function(t){i.push(t)}),r()}}function Q(t,e){return e=e||"_",t.replace(Sn,function(t,n){return(n?e:"")+t.toLowerCase()})}function tt(t,e,n){if(!t)throw $n("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function et(t,e,n){return n&&Rn(t)&&(t=t[t.length-1]),tt(T(t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function nt(t,e){if("hasOwnProperty"===t)throw $n("badname","hasOwnProperty is not a valid {0} name",e)}function it(t,e,n){if(!e)return t;for(var i,r=e.split("."),o=t,a=r.length,s=0;s<a;s++)i=r[s],t&&(t=(o=t)[i]);return!n&&T(t)?B(o,t):t}function rt(t){var e=t[0],n=t[t.length-1];if(e===n)return En(e);var i=e,r=[i];do{if(!(i=i.nextSibling))break;r.push(i)}while(i!==n);return En(r)}function ot(t){function e(t,e,n){return t[e]||(t[e]=n())}var n=i("$injector"),r=i("ng"),o=e(t,"angular",Object);return o.$$minErr=o.$$minErr||i,e(o,"module",function(){var t={};return function(i,o,a){return function(t,e){if("hasOwnProperty"===t)throw r("badname","hasOwnProperty is not a valid {0} name",e)}(i,"module"),o&&t.hasOwnProperty(i)&&(t[i]=null),e(t,i,function(){function t(t,n,i){return function(){return e[i||"push"]([t,n,arguments]),l}}if(!o)throw n("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",i);var e=[],r=[],s=t("$injector","invoke"),l={_invokeQueue:e,_runBlocks:r,requires:o,name:i,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:s,run:function(t){return r.push(t),this}};return a&&s(a),l})}})}function at(){return++Pn}function st(t){return t.replace(Ln,function(t,e,n,i){return i?n.toUpperCase():n}).replace(Fn,"Moz$1")}function lt(t,e,n,i){function r(t){var r,a,s,l,c,u,d,h=n&&t?[this.filter(t)]:[this],f=e;if(!i||null!=t)for(;h.length;)for(r=h.shift(),a=0,s=r.length;a<s;a++)for(l=En(r[a]),f?l.triggerHandler("$destroy"):f=!f,c=0,u=(d=l.children()).length;c<u;c++)h.push(bn(d[c]));return o.apply(this,arguments)}var o=bn.fn[t];o=o.$original||o,r.$original=o,bn.fn[t]=r}function ct(t){return!Vn.test(t)}function ut(t,e){var n,i,r,o,a,s,l=e.createDocumentFragment(),c=[];if(ct(t))c.push(e.createTextNode(t));else{for(n=l.appendChild(e.createElement("div")),i=(Hn.exec(t)||["",""])[1].toLowerCase(),r=zn[i]||zn._default,n.innerHTML="<div> </div>"+r[1]+t.replace(Un,"<$1></$2>")+r[2],n.removeChild(n.firstChild),o=r[0];o--;)n=n.lastChild;for(a=0,s=n.childNodes.length;a<s;++a)c.push(n.childNodes[a]);n=l.firstChild,n.textContent=""}return l.textContent="",l.innerHTML="",c}function dt(t,n){n=n||e;var i;return(i=jn.exec(t))?[n.createElement(i[1])]:ut(t,n)}function ht(t){if(t instanceof ht)return t;if(b(t)&&(t=kn(t)),!(this instanceof ht)){if(b(t)&&"<"!=t.charAt(0))throw Bn("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new ht(t)}if(b(t)){Ct(this,dt(t));En(e.createDocumentFragment()).append(this)}else Ct(this,t)}function ft(t){return t.cloneNode(!0)}function pt(t){gt(t);for(var e=0,n=t.childNodes||[];e<n.length;e++)pt(n[e])}function mt(t,e,n,i){if(y(i))throw Bn("offargs","jqLite#off() does not support the `selector` argument");var r=vt(t,"events");vt(t,"handle")&&(v(e)?o(r,function(e,n){Kn(t,n,e),delete r[n]}):o(e.split(" "),function(e){v(n)?(Kn(t,e,r[e]),delete r[e]):N(r[e]||[],n)}))}function gt(t,e){var i=t.ng339,r=Nn[i];if(r){if(e)return void delete Nn[i].data[e];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),mt(t)),delete Nn[i],t.ng339=n}}function vt(t,e,n){var i=t.ng339,r=Nn[i||-1];if(!y(n))return r&&r[e];r||(t.ng339=i=at(),r=Nn[i]={}),r[e]=n}function yt(t,e,n){var i=vt(t,"data"),r=y(n),o=!r&&y(e),a=o&&!E(e);if(i||a||vt(t,"data",i={}),r)i[e]=n;else{if(!o)return i;if(a)return i&&i[e];d(i,e)}}function Et(t,e){return!!t.getAttribute&&(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1}function bt(t,e){e&&t.setAttribute&&o(e.split(" "),function(e){t.setAttribute("class",kn((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+kn(e)+" "," ")))})}function _t(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(e.split(" "),function(t){t=kn(t),-1===n.indexOf(" "+t+" ")&&(n+=t+" ")}),t.setAttribute("class",kn(n))}}function Ct(t,e){if(e){e=e.nodeName||!y(e.length)||D(e)?[e]:e;for(var n=0;n<e.length;n++)t.push(e[n])}}function Tt(t,e){return It(t,"$"+(e||"ngController")+"Controller")}function It(t,e,i){9==t.nodeType&&(t=t.documentElement);for(var r=Rn(e)?e:[e];t;){for(var o=0,a=r.length;o<a;o++)if((i=En.data(t,r[o]))!==n)return i;t=t.parentNode||11===t.nodeType&&t.host}}function Dt(t){for(var e=0,n=t.childNodes;e<n.length;e++)pt(n[e]);for(;t.firstChild;)t.removeChild(t.firstChild)}function $t(t,e){var n=qn[e.toLowerCase()];return n&&Wn[t.nodeName]&&n}function Ot(t,n){var i=function(i,r){if(i.preventDefault||(i.preventDefault=function(){i.returnValue=!1}),i.stopPropagation||(i.stopPropagation=function(){i.cancelBubble=!0}),i.target||(i.target=i.srcElement||e),v(i.defaultPrevented)){var a=i.preventDefault;i.preventDefault=function(){i.defaultPrevented=!0,a.call(i)},i.defaultPrevented=!1}i.isDefaultPrevented=function(){return i.defaultPrevented||!1===i.returnValue},o(M(n[r||i.type]||[]),function(e){e.call(t,i)}),yn<=8?(i.preventDefault=null,i.stopPropagation=null,i.isDefaultPrevented=null):(delete i.preventDefault,delete i.stopPropagation,delete i.isDefaultPrevented)};return i.elem=t,i}function wt(t,e){var i,r=typeof t;return"function"==r||"object"==r&&null!==t?"function"==typeof(i=t.$$hashKey)?i=t.$$hashKey():i===n&&(i=t.$$hashKey=(e||c)()):i=t,r+":"+i}function Rt(t,e){if(e){var n=0;this.nextUid=function(){return++n}}o(t,this.put,this)}function kt(t){var e,n,i,r;return"function"==typeof t?(e=t.$inject)||(e=[],t.length&&(n=t.toString().replace(Zn,""),i=n.match(Yn),o(i[1].split(Xn),function(t){t.replace(Jn,function(t,n,i){e.push(i)})})),t.$inject=e):Rn(t)?(r=t.length-1,et(t[r],"fn"),e=t.slice(0,r)):et(t,"fn",!0),e}function xt(t){function e(t){return function(e,n){if(!E(e))return t(e,n);o(e,l(t))}}function n(t,e){if(nt(t,"service"),(T(e)||Rn(e))&&(e=_.instantiate(e)),!e.$get)throw Qn("pget","Provider '{0}' must define $get factory method.",t);return y[t+f]=e}function i(t,e){return n(t,{$get:e})}function r(t,e){return i(t,["$injector",function(t){return t.instantiate(e)}])}function a(t,e){return i(t,g(e))}function s(t,e){nt(t,"constant"),y[t]=e,C[t]=e}function c(t,e){var n=_.get(t+f),i=n.$get;n.$get=function(){var t=I.invoke(i,n);return I.invoke(e,null,{$delegate:t})}}function u(t){var e,n,i,r,a=[];return o(t,function(t){if(!v.get(t)){v.put(t,!0);try{if(b(t))for(e=_n(t),a=a.concat(u(e.requires)).concat(e._runBlocks),n=e._invokeQueue,i=0,r=n.length;i<r;i++){var o=n[i],s=_.get(o[0]);s[o[1]].apply(s,o[2])}else T(t)?a.push(_.invoke(t)):Rn(t)?a.push(_.invoke(t)):et(t,"module")}catch(l){throw Rn(t)&&(t=t[t.length-1]),l.message&&l.stack&&-1==l.stack.indexOf(l.message)&&(l=l.message+"\n"+l.stack),Qn("modulerr","Failed to instantiate module {0} due to:\n{1}",t,l.stack||l.message||l)}}}),a}function d(t,e){function n(n){if(t.hasOwnProperty(n)){if(t[n]===h)throw Qn("cdep","Circular dependency found: {0}",n+" <- "+m.join(" <- "));return t[n]}try{return m.unshift(n),t[n]=h,t[n]=e(n)}catch(i){throw t[n]===h&&delete t[n],i}finally{m.shift()}}function i(t,e,i){var r,o,a,s=[],l=kt(t);for(o=0,r=l.length;o<r;o++){if("string"!=typeof(a=l[o]))throw Qn("itkn","Incorrect injection token! Expected service name as string, got {0}",a);s.push(i&&i.hasOwnProperty(a)?i[a]:n(a))}return Rn(t)&&(t=t[r]),t.apply(e,s)}function r(t,e){var n,r,o=function(){};return o.prototype=(Rn(t)?t[t.length-1]:t).prototype,n=new o,r=i(t,n,e),E(r)||T(r)?r:n}return{invoke:i,instantiate:r,get:n,annotate:kt,has:function(e){return y.hasOwnProperty(e+f)||t.hasOwnProperty(e)}}}var h={},f="Provider",m=[],v=new Rt([],!0),y={$provide:{provider:e(n),factory:e(i),service:e(r),value:e(a),constant:e(s),decorator:c}},_=y.$injector=d(y,function(){throw Qn("unpr","Unknown provider: {0}",m.join(" <- "))}),C={},I=C.$injector=d(C,function(t){var e=_.get(t+f);return I.invoke(e.$get,e)});return o(u(t),function(t){I.invoke(t||p)}),I}function St(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(e,n,i){function r(t){var e=null;return o(t,function(t){e||"a"!==fn(t.nodeName)||(e=t)}),e}function a(){var t,i=n.hash();i?(t=s.getElementById(i))?t.scrollIntoView():(t=r(s.getElementsByName(i)))?t.scrollIntoView():"top"===i&&e.scrollTo(0,0):e.scrollTo(0,0)}var s=e.document;return t&&i.$watch(function(){return n.hash()},function(){i.$evalAsync(a)}),a}]}function At(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]}function Nt(t,e,i,r){function a(t){try{t.apply(null,F(arguments,1))}finally{if(0===--y)for(;E.length;)try{E.pop()()}catch(e){i.error(e)}}}function s(t,e){!function n(){o(C,function(t){t()}),_=e(n,t)}()}function l(){T!=c.url()&&(T=c.url(),o($,function(t){t(c.url())}))}var c=this,u=e[0],d=t.location,h=t.history,f=t.setTimeout,m=t.clearTimeout,g={};c.isMock=!1;var y=0,E=[];c.$$completeOutstandingRequest=a,c.$$incOutstandingRequestCount=function(){y++},c.notifyWhenNoOutstandingRequests=function(t){o(C,function(t){t()}),0===y?t():E.push(t)};var _,C=[];c.addPollFn=function(t){return v(_)&&s(100,f),C.push(t),t};var T=d.href,I=e.find("base"),D=null;c.url=function(e,n){if(d!==t.location&&(d=t.location),h!==t.history&&(h=t.history),e){if(T==e)return;var i=T&&oe(T)===oe(e);return T=e,!i&&r.history?n?h.replaceState(null,"",e):(h.pushState(null,"",e),I.attr("href",I.attr("href"))):(i||(D=e),n?d.replace(e):d.href=e),c}return D||d.href.replace(/%27/g,"'")};var $=[],O=!1;c.onUrlChange=function(e){return O||(r.history&&En(t).on("popstate",l),r.hashchange?En(t).on("hashchange",l):c.addPollFn(l),O=!0),$.push(e),e},c.$$checkUrlChange=l,c.baseHref=function(){var t=I.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var w={},R="",k=c.baseHref();c.cookies=function(t,e){var r,o,a,s,l;if(!t){if(u.cookie!==R)for(R=u.cookie,o=R.split("; "),w={},s=0;s<o.length;s++)a=o[s],(l=a.indexOf("="))>0&&(t=unescape(a.substring(0,l)),w[t]===n&&(w[t]=unescape(a.substring(l+1))));return w}e===n?u.cookie=escape(t)+"=;path="+k+";expires=Thu, 01 Jan 1970 00:00:00 GMT":b(e)&&(r=(u.cookie=escape(t)+"="+escape(e)+";path="+k).length+1)>4096&&i.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+r+" > 4096 bytes)!")},c.defer=function(t,e){var n;return y++,n=f(function(){delete g[n],a(t)},e||0),g[n]=!0,n},c.defer.cancel=function(t){return!!g[t]&&(delete g[t],m(t),a(p),!0)}}function Pt(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new Nt(t,i,e,n)}]}function Mt(){this.$get=function(){function t(t,n){function r(t){t!=h&&(f?f==t&&(f=t.n):f=t,o(t.n,t.p),o(t,h),h=t,h.n=null)}function o(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in e)throw i("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var a=0,s=d({},n,{id:t}),l={},c=n&&n.capacity||Number.MAX_VALUE,u={},h=null,f=null;return e[t]={put:function(t,e){if(c<Number.MAX_VALUE){r(u[t]||(u[t]={key:t}))}if(!v(e))return t in l||a++,l[t]=e,a>c&&this.remove(f.key),e},get:function(t){if(c<Number.MAX_VALUE){var e=u[t];if(!e)return;r(e)}return l[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=u[t];if(!e)return;e==h&&(h=e.p),e==f&&(f=e.n),o(e.n,e.p),delete u[t]}delete l[t],a--},removeAll:function(){l={},a=0,u={},h=f=null},destroy:function(){l=null,s=null,u=null,delete e[t]},info:function(){return d({},s,{size:a})}}}var e={};return t.info=function(){var t={};return o(e,function(e,n){t[n]=e.info()}),t},t.get=function(t){return e[t]},t}}function Kt(){this.$get=["$cacheFactory",function(t){return t("templates")}]}function Lt(t,i){var r={},a="Directive",s=/^\s*directive\:\s*([\d\w_\-]+)\s+(.*)$/,c=/(([\d\w_\-]+)(?:\:([^;]+))?;?)/,u=/^(on[a-z]+|formaction)$/;this.directive=function h(e,n){return nt(e,"directive"),b(e)?(tt(n,"directiveFactory"),r.hasOwnProperty(e)||(r[e]=[],t.factory(e+a,["$injector","$exceptionHandler",function(t,n){var i=[];return o(r[e],function(r,o){try{var a=t.invoke(r);T(a)?a={compile:g(a)}:!a.compile&&a.link&&(a.compile=g(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=a.require||a.controller&&a.name,a.restrict=a.restrict||"A",i.push(a)}catch(s){n(s)}}),i}])),r[e].push(n)):o(e,l(h)),this},this.aHrefSanitizationWhitelist=function(t){return y(t)?(i.aHrefSanitizationWhitelist(t),this):i.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(i.imgSrcSanitizationWhitelist(t),this):i.imgSrcSanitizationWhitelist()},this.$get=["$injector","$interpolate","$exceptionHandler","$http","$templateCache","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,i,l,h,p,g,v,y,_,C,I,D){function $(t,e,n,i,r){t instanceof En||(t=En(t)),o(t,function(e,n){3==e.nodeType&&e.nodeValue.match(/\S+/)&&(t[n]=e=En(e).wrap("<span></span>").parent()[0])});var a=R(t,e,t,n,i,r);return O(t,"ng-scope"),function(e,n,i,r){tt(e,"scope");var s=n?Gn.clone.call(t):t;o(i,function(t,e){s.data("$"+e+"Controller",t)});for(var l=0,c=s.length;l<c;l++){var u=s[l],d=u.nodeType;1!==d&&9!==d||s.eq(l).data("$scope",e)}return n&&n(s,e),a&&a(e,s,s,r),s}}function O(t,e){try{t.addClass(e)}catch(n){}}function w(t,e){return e=e||"",e="> "+t.nodeName+"[cl="+(t.className||"")+",id="+(t.id||"")+"]"+e,t.parentElement?w(t.parentElement,e):e}function R(t,e,i,r,o,a,s){function l(t,i,r,o){var a,s,l,c,u,d,h,f,p=i.length,g=new Array(p);for(u=0;u<p;u++)g[u]=i[u];for(u=0,h=0,d=m.length;u<d;h++)l=g[h],a=m[u++],s=m[u++],a?(a.scope?(c=t.$new(),En.data(l,"$scope",c)):c=t,f=a.transcludeOnThisElement?k(t,a.transclude,o):!a.templateOnThisElement&&o?o:!o&&e?k(t,e):null,a(s,c,l,r,f)):s&&s(t,l.childNodes,n,o)}for(var c,u,d,h,f,p,m=[],g=s&&s.outerHTML||"no parent html",v=0;v<t.length;v++){c=new X,t[v]===n&&(console.error("maxElementIndex: "+(t.length-1)+", but askingFor: "+v),console.error("Old HTML ================= "),console.error(g),console.error("New HTML ================="),console.error(s&&s.outerHTML||"no parent html")),u=x(t[v],[],c,0===v?r:n,o),d=u.length?N(u,t[v],c,e,i,null,[],[],a):null,d&&d.scope&&O(c.$$element,"ng-scope");if(d&&d.terminal||!(h=t[v].childNodes)||!h.length)f=null;else{Array.prototype.slice.call(h).includes(n)&&console.error(t[v].innerHTML);try{f=R(h,d?(d.transcludeOnThisElement||!d.templateOnThisElement)&&d.transclude:e,n,n,n,n,t[v])}catch(y){console.error("ChildNode is undefined"),console.error(y),console.error(w(t[v])),console.error(t[v].outerHTML)}}m.push(d,f),p=p||d||f,a=null}return p?l:null}function k(t,e,n){return function(i,r,o){var a=!1;i||(i=t.$new(),i.$$transcluded=!0,a=!0);var s=e(i,r,o,n);return a&&s.on("$destroy",function(){i.$destroy()}),s}}function x(t,e,n,i,r){var o,a,l=t.nodeType,u=n.$attr;switch(l){case 1:L(e,Ft(Cn(t).toLowerCase()),"E",i,r);for(var d,h,f,p,m,g,v=t.attributes,y=0,E=v&&v.length;y<E;y++){var _=!1,C=!1;if(d=v[y],!yn||yn>=8||d.specified){h=d.name,m=kn(d.value),p=Ft(h),(g=nt.test(p))&&(h=Q(p.substr(6),"-"));p===p.replace(/(Start|End)$/,"")+"Start"&&(_=h,C=h.substr(0,h.length-5)+"end",h=h.substr(0,h.length-6)),f=Ft(h.toLowerCase()),u[f]=h,!g&&n.hasOwnProperty(f)||(n[f]=m,$t(t,f)&&(n[f]=!0)),q(t,e,m,f),L(e,f,"A",i,r,_,C)}}if(a=t.className,b(a)&&""!==a)for(;o=c.exec(a);)f=Ft(o[2]),L(e,f,"C",i,r)&&(n[f]=kn(o[3])),a=a.substr(o.index+o[0].length);break;case 3:U(e,t.nodeValue);break;case 8:try{o=s.exec(t.nodeValue),o&&(f=Ft(o[1]),L(e,f,"M",i,r)&&(n[f]=kn(o[2])))}catch(T){}}return e.sort(V),e}function S(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t)throw ni("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);1==t.nodeType&&(t.hasAttribute(e)&&r++,t.hasAttribute(n)&&r--),i.push(t),t=t.nextSibling}while(r>0)}else i.push(t);return En(i)}function A(t,e,n){return function(i,r,o,a,s){return r=S(r[0],e,n),t(i,r,o,a,s)}}function N(t,r,a,s,c,u,d,h,f){function p(t,e,n,i){t&&(n&&(t=A(t,n,i)),t.require=C.require,t.directiveName=I,(L===C||C.$$isolateScope)&&(t=Y(t,{isolateScope:!0})),d.push(t)),e&&(n&&(e=A(e,n,i)),e.require=C.require,e.directiveName=I,(L===C||C.$$isolateScope)&&(e=Y(e,{isolateScope:!0})),h.push(e))}function m(t,e,n,i){var r,a="data",s=!1;if(b(e)){for(;"^"==(r=e.charAt(0))||"?"==r;)e=e.substr(1),"^"==r&&(a="inheritedData"),s=s||"?"==r;if(r=null,i&&"data"===a&&(r=i[e]),!(r=r||n[a]("$"+e+"Controller"))&&!s)throw ni("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,t);return r}return Rn(e)&&(r=[],o(e,function(e){r.push(m(t,e,n,i))})),r}function y(t,e,s,c,u){function f(t,e){var i;return arguments.length<2&&(e=t,t=n),J&&(i=D),u(t,e,i)}var p,y,E,b,_,C,T,I,D={};if(p=r===s?a:M(a,new X(En(s),a.$attr)),y=p.$$element,L){var $=/^\s*([@=&])(\??)\s*(\w*)\s*$/;T=e.$new(!0),!V||V!==L&&V!==L.$$originalDirective?y.data("$isolateScopeNoTemplate",T):y.data("$isolateScope",T),O(y,"ng-isolate-scope"),o(L.scope,function(t,n){var r,o,a,s,l=t.match($)||[],c=l[3]||n,u="?"==l[2],d=l[1];switch(T.$$isolateBindings[n]=d+c,d){case"@":p.$observe(c,function(t){T[n]=t}),p.$$observers[c].$$scope=e,p[c]&&(T[n]=i(p[c])(e));break;case"=":if(u&&!p[c])return;o=g(p[c]),s=o.literal?K:function(t,e){return t===e||t!==t&&e!==e},a=o.assign||function(){throw r=T[n]=o(e),ni("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",p[c],L.name)},r=T[n]=o(e),T.$watch(function(){var t=o(e);return s(t,T[n])||(s(t,r)?a(e,t=T[n]):T[n]=t),r=t},null,o.literal);break;case"&":o=g(p[c]),T[n]=function(t){return o(e,t)};break;default:throw ni("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",L.name,n,t)}})}for(I=u&&f,N&&o(N,function(t){var n,i={$scope:t===L||t.$$isolateScope?T:e,$element:y,$attrs:p,$transclude:I};C=t.controller,"@"==C&&(C=p[t.name]),n=v(C,i),D[t.name]=n,J||y.data("$"+t.name+"Controller",n),t.controllerAs&&(i.$scope[t.controllerAs]=n)}),E=0,b=d.length;E<b;E++)try{_=d[E],_(_.isolateScope?T:e,y,p,_.require&&m(_.directiveName,_.require,y,D),I)}catch(R){l(R,z(y))}var w=e;for(L&&(L.template||null===L.templateUrl)&&(w=T),t&&t(w,s.childNodes,n,u),E=h.length-1;E>=0;E--)try{_=h[E],_(_.isolateScope?T:e,y,p,_.require&&m(_.directiveName,_.require,y,D),I)}catch(R){l(R,z(y))}}f=f||{};for(var _,C,I,D,w,R,k=-Number.MAX_VALUE,N=f.controllerDirectives,L=f.newIsolateScopeDirective,V=f.templateDirective,U=f.nonTlbTranscludeDirective,G=!1,q=!1,J=f.hasElementTranscludeDirective,Z=a.$$element=En(r),Q=u,tt=s,nt=0,it=t.length;nt<it;nt++){C=t[nt];var rt=C.$$start,ot=C.$$end;if(rt&&(Z=S(r,rt,ot)),D=n,k>C.priority)break;if((R=C.scope)&&(_=_||C,C.templateUrl||(H("new/isolated scope",L,C,Z),E(R)&&(L=C))),I=C.name,!C.templateUrl&&C.controller&&(R=C.controller,N=N||{},H("'"+I+"' controller",N[I],C,Z),N[I]=C),(R=C.transclude)&&(G=!0,C.$$tlb||(H("transclusion",U,C,Z),U=C),"element"==R?(J=!0,k=C.priority,D=Z,Z=a.$$element=En(e.createComment(" "+I+": "+a[I]+" ")),r=Z[0],W(c,F(D),r),tt=$(D,s,k,Q&&Q.name,{nonTlbTranscludeDirective:U})):(D=En(ft(r)).contents(),Z.empty(),tt=$(D,s))),C.template)if(q=!0,H("template",V,C,Z),V=C,R=T(C.template)?C.template(Z,a):C.template,R=et(R),C.replace){if(Q=C,D=ct(R)?[]:En(kn(R)),r=D[0],1!=D.length||1!==r.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",I,"");W(c,Z,r);var at={$attr:{}},st=x(r,[],at),lt=t.splice(nt+1,t.length-(nt+1));L&&P(st),t=t.concat(st).concat(lt),B(a,at),it=t.length}else Z.html(R);if(C.templateUrl)q=!0,H("template",V,C,Z),V=C,C.replace&&(Q=C),y=j(t.splice(nt,t.length-nt),Z,a,c,G&&tt,d,h,{controllerDirectives:N,newIsolateScopeDirective:L,templateDirective:V,nonTlbTranscludeDirective:U}),it=t.length;else if(C.compile)try{w=C.compile(Z,a,tt),T(w)?p(null,w,rt,ot):w&&p(w.pre,w.post,rt,ot)}catch(ut){l(ut,z(Z))}C.terminal&&(y.terminal=!0,k=Math.max(k,C.priority))}return y.scope=_&&!0===_.scope,y.transcludeOnThisElement=G,y.templateOnThisElement=q,y.transclude=tt,f.hasElementTranscludeDirective=J,y}function P(t){for(var e=0,n=t.length;e<n;e++)t[e]=f(t[e],{$$isolateScope:!0})}function L(e,i,o,s,c,u,d){if(i===c)return null;var h=null;if(r.hasOwnProperty(i))for(var p,m=t.get(i+a),g=0,v=m.length;g<v;g++)try{p=m[g],(s===n||s>p.priority)&&-1!=p.restrict.indexOf(o)&&(u&&(p=f(p,{$$start:u,$$end:d})),e.push(p),h=p)}catch(y){l(y)}return h}function B(t,e){var n=e.$attr,i=t.$attr,r=t.$$element;o(t,function(i,r){"$"!=r.charAt(0)&&(e[r]&&e[r]!==i&&(i+=("style"===r?";":" ")+e[r]),t.$set(r,i,!0,n[r]))}),o(e,function(e,o){"class"==o?(O(r,e),t["class"]=(t["class"]?t["class"]+" ":"")+e):"style"==o?(r.attr("style",r.attr("style")+";"+e),t.style=(t.style?t.style+";":"")+e):"$"==o.charAt(0)||t.hasOwnProperty(o)||(t[o]=e,i[o]=n[o])})}function j(t,e,n,i,r,a,s,l){var c,u,f=[],m=e[0],g=t.shift(),v=d({},g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),y=T(g.templateUrl)?g.templateUrl(e,n):g.templateUrl;return e.empty(),h.get(C.getTrustedResourceUrl(y),{cache:p}).success(function(d){var h,p,b,_;if(d=et(d),g.replace){if(b=ct(d)?[]:En(kn(d)),h=b[0],1!=b.length||1!==h.nodeType)throw ni("tplrt","Template for directive '{0}' must have exactly one root element. {1}",g.name,y);p={$attr:{}},W(i,e,h);var C=x(h,[],p);E(g.scope)&&P(C),t=C.concat(t),B(n,p)}else h=m,e.html(d);for(t.unshift(v),c=N(t,h,n,r,e,g,a,s,l),o(i,function(t,n){t==h&&(i[n]=e[0])}),u=R(e[0].childNodes,r);f.length;){var T=f.shift(),I=f.shift(),D=f.shift(),$=f.shift(),w=e[0];if(I!==m){var S=I.className;l.hasElementTranscludeDirective&&g.replace||(w=ft(h)),W(D,En(I),w),O(En(w),S)}_=c.transcludeOnThisElement?k(T,c.transclude,$):$,c(u,T,w,i,_)}f=null}).error(function(t,e,n,i){throw ni("tpload","Failed to load template: {0}",i.url)}),function(t,e,n,i,r){var o=r;f?(f.push(e),f.push(n),f.push(i),f.push(o)):(c.transcludeOnThisElement&&(o=k(e,c.transclude,r)),c(u,e,n,i,o))}}function V(t,e){var n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function H(t,e,n,i){if(e)throw ni("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,z(i))}function U(t,e){var n=i(e,!0);n&&t.push({priority:0,compile:function(t){var e=t.parent(),i=e.length;return i&&O(t.parent(),"ng-binding"),function(t,e){var r=e.parent(),o=r.data("$binding")||[];o.push(n),r.data("$binding",o),i||O(r,"ng-binding"),t.$watch(n,function(t){e[0].nodeValue=t})}}})}function G(t,e){if("srcdoc"==e)return C.HTML;var n=Cn(t);return"xlinkHref"==e||"FORM"==n&&"action"==e||"IMG"!=n&&("src"==e||"ngSrc"==e)?C.RESOURCE_URL:void 0}function q(t,e,n,r){var o=i(n,!0);if(o){if("multiple"===r&&"SELECT"===Cn(t))throw ni("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",z(t));e.push({priority:100,compile:function(){return{pre:function(e,n,a){var s=a.$$observers||(a.$$observers={});if(u.test(r))throw ni("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");(o=i(a[r],!0,G(t,r)))&&(a[r]=o(e),(s[r]||(s[r]=[])).$$inter=!0,(a.$$observers&&a.$$observers[r].$$scope||e).$watch(o,function(t,e){"class"===r&&t!=e?a.$updateClass(t,e):a.$set(r,t)}))}}}})}}function W(t,n,i){var r,o,a=n[0],s=n.length,l=a.parentNode;if(t)for(r=0,o=t.length;r<o;r++)if(t[r]==a){t[r++]=i;for(var c=r,u=c+s-1,d=t.length;c<d;c++,u++)u<d?t[c]=t[u]:delete t[c];t.length-=s-1;break}l&&l.replaceChild(i,a);var h=e.createDocumentFragment();h.appendChild(a),i[En.expando]=a[En.expando];for(var f=1,p=n.length;f<p;f++){var m=n[f];En(m).remove(),h.appendChild(m),delete n[f]}n[0]=i,n.length=1}function Y(t,e){return d(function(){return t.apply(null,arguments)},t,e)}var X=function(t,e){this.$$element=t,this.$attr=e||{}};X.prototype={$normalize:Ft,$addClass:function(t){t&&t.length>0&&I.addClass(this.$$element,t)},$removeClass:function(t){t&&t.length>0&&I.removeClass(this.$$element,t)},$updateClass:function(t,e){var n=Bt(t,e),i=Bt(e,t);0===n.length?I.removeClass(this.$$element,i):0===i.length?I.addClass(this.$$element,n):I.setClass(this.$$element,n,i)},$set:function(t,e,i,r){var a,s=$t(this.$$element[0],t);s&&(this.$$element.prop(t,e),r=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=Q(t,"-")),a=Cn(this.$$element),("A"===a&&"href"===t||"IMG"===a&&"src"===t)&&(this[t]=e=D(e,"src"===t)),!1!==i&&(null===e||e===n?this.$$element.removeAttr(r):this.$$element.attr(r,e));var c=this.$$observers;c&&o(c[t],function(t){try{t(e)}catch(n){l(n)}})},$observe:function(t,e){var n=this,i=n.$$observers||(n.$$observers={}),r=i[t]||(i[t]=[]);return r.push(e),y.$evalAsync(function(){r.$$inter||e(n[t])}),e}};var J=i.startSymbol(),Z=i.endSymbol(),et="{{"==J||"}}"==Z?m:function(t){return t.replace(/\{\{/g,J).replace(/}}/g,Z)},nt=/^ngAttr[A-Z]/;return $}]}function Ft(t){return st(t.replace(ii,""))}function Bt(t,e){var n="",i=t.split(/\s+/),r=e.split(/\s+/);t:for(var o=0;o<i.length;o++){for(var a=i[o],s=0;s<r.length;s++)if(a==r[s])continue t;n+=(n.length>0?" ":"")+a}return n}function jt(){var t={},e=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){nt(e,"controller"),E(e)?d(t,e):t[e]=n},this.$get=["$injector","$window",function(n,r){return function(o,a){var s,l,c,u;if(b(o)&&(l=o.match(e),c=l[1],u=l[3],o=t.hasOwnProperty(c)?t[c]:it(a.$scope,c,!0)||it(r,c,!0),et(o,c,!0)),s=n.instantiate(o,a),u){if(!a||"object"!=typeof a.$scope)throw i("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",c||o.name,u);a.$scope[u]=s}return s}}]}function Vt(){this.$get=["$window",function(t){return En(t.document)}]}function Ht(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]}function Ut(t){var e,n,i,r={};return t?(o(t.split("\n"),function(t){i=t.indexOf(":"),e=fn(kn(t.substr(0,i))),n=kn(t.substr(i+1)),e&&(r[e]=r[e]?r[e]+", "+n:n)}),r):r}function zt(t){var e=E(t)?t:n;return function(n){return e||(e=Ut(t)),n?e[fn(n)]||null:e}}function Gt(t,e,n){return T(n)?n(t,e):(o(n,function(n){t=n(t,e)}),t)}function qt(t){return 200<=t&&t<300}function Wt(){var t=/^\s*(\[|\{[^\{])/,e=/[\}\]]\s*$/,i=/^\)\]\}',?\n/,r={"Content-Type":"application/json;charset=utf-8"},a=this.defaults={transformResponse:[function(n){return b(n)&&(n=n.replace(i,""),t.test(n)&&e.test(n)&&(n=H(n))),n}],transformRequest:[function(t){return!E(t)||O(t)||w(t)?t:V(t)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:M(r),put:M(r),patch:M(r)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"},l=this.interceptors=[],c=this.responseInterceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(t,e,i,r,u,h){function f(t){function e(t){var e=d({},t,{data:Gt(t.data,t.headers,i.transformResponse)});return qt(t.status)?e:u.reject(e)}var i={method:"get",transformRequest:a.transformRequest,transformResponse:a.transformResponse},r=function(t){var e,n,i,r=a.headers,s=d({},t.headers);r=d({},r.common,r[fn(t.method)]);t:for(e in r){n=fn(e);for(i in s)if(fn(i)===n)continue t;s[e]=r[e]}return function(t){var e;o(t,function(n,i){T(n)&&(e=n(),null!=e?t[i]=e:delete t[i])})}(s),s}(t);d(i,t),i.headers=r,i.method=mn(i.method);var s=function(t){r=t.headers;var n=Gt(t.data,zt(r),t.transformRequest);return v(n)&&o(r,function(t,e){"content-type"===fn(e)&&delete r[e]}),v(t.withCredentials)&&!v(a.withCredentials)&&(t.withCredentials=a.withCredentials),p(t,n,r).then(e,e)},l=[s,n],c=u.when(i);for(o(_,function(t){(t.request||t.requestError)&&l.unshift(t.request,t.requestError),(t.response||t.responseError)&&l.push(t.response,t.responseError)});l.length;){var h=l.shift(),f=l.shift();c=c.then(h,f)}return c.success=function(t){return c.then(function(e){t(e.data,e.status,e.headers,i)}),c},c.error=function(t){return c.then(null,function(e){t(e.data,e.status,e.headers,i)}),c},c}function p(i,o,s){function l(t,e,n,i){h&&(qt(t)?h.put(C,[t,e,Ut(n),i]):h.remove(C)),c(e,t,n,i),r.$$phase||r.$apply()}function c(t,e,n,r){e=Math.max(e,0),(qt(e)?b.resolve:b.reject)({data:t,status:e,headers:zt(n),config:i,statusText:r})}function d(){var t=A(f.pendingRequests,i);-1!==t&&f.pendingRequests.splice(t,1)}var h,p,b=u.defer(),_=b.promise,C=m(i.url,i.params);if(f.pendingRequests.push(i),_.then(d,d),!i.cache&&!a.cache||!1===i.cache||"GET"!==i.method&&"JSONP"!==i.method||(h=E(i.cache)?i.cache:E(a.cache)?a.cache:g),h)if(p=h.get(C),y(p)){if(R(p))return p.then(d,d),p;Rn(p)?c(p[1],p[0],M(p[2]),p[3]):c(p,200,{},"OK")}else h.put(C,_);if(v(p)){var T=Ke(i.url)?e.cookies()[i.xsrfCookieName||a.xsrfCookieName]:n;T&&(s[i.xsrfHeaderName||a.xsrfHeaderName]=T),t(i.method,C,o,l,s,i.timeout,i.withCredentials,i.responseType)}return _}function m(t,e){if(!e)return t;var n=[];return s(e,function(t,e){null===t||v(t)||(Rn(t)||(t=[t]),o(t,function(t){E(t)&&(t=C(t)?t.toISOString():V(t)),n.push(X(e)+"="+X(t))}))}),n.length>0&&(t+=(-1==t.indexOf("?")?"?":"&")+n.join("&")),t}var g=i("$http"),_=[];return o(l,function(t){_.unshift(b(t)?h.get(t):h.invoke(t))}),o(c,function(t,e){var n=b(t)?h.get(t):h.invoke(t);_.splice(e,0,{response:function(t){return n(u.when(t))},responseError:function(t){return n(u.reject(t))}})}),f.pendingRequests=[],function(t){o(arguments,function(t){f[t]=function(e,n){return f(d(n||{},{method:t,url:e}))}})}("get","delete","head","jsonp"),function(t){o(arguments,function(t){f[t]=function(e,n,i){return f(d(i||{},{method:t,url:e,data:n}))}})}("post","put","patch"),f.defaults=a,f}]}function Yt(e){if(yn<=8&&(!e.match(/^(get|post|head|put|delete|options)$/i)||!t.XMLHttpRequest))return new t.ActiveXObject("Microsoft.XMLHTTP");if(t.XMLHttpRequest)return new t.XMLHttpRequest;throw i("$httpBackend")("noxhr","This browser does not support XMLHttpRequest.")}function Xt(){this.$get=["$browser","$window","$document",function(t,e,n){return Jt(t,Yt,t.defer,e.angular.callbacks,n[0])}]}function Jt(t,e,n,i,r){function a(t,e,n){var o=r.createElement("script"),a=null;return o.type="text/javascript",o.src=t,o.async=!0,a=function(t){Kn(o,"load",a),Kn(o,"error",a),r.body.removeChild(o),o=null;var s=-1,l="unknown";t&&("load"!==t.type||i[e].called||(t={type:"error"}),l=t.type,s="error"===t.type?404:200),n&&n(s,l)},Mn(o,"load",a),Mn(o,"error",a),yn<=8&&(o.onreadystatechange=function(){b(o.readyState)&&/loaded|complete/.test(o.readyState)&&(o.onreadystatechange=null,a({type:"load"}))}),r.body.appendChild(o),a}var s=-1;return function(r,l,c,u,d,h,f,m){function g(){E=s,_&&_(),C&&C.abort()}function v(e,i,r,o,a){T&&n.cancel(T),_=C=null,0===i&&(i=r?200:"file"==Me(l).protocol?404:0),i=1223===i?204:i,a=a||"",e(i,r,o,a),t.$$completeOutstandingRequest(p)}var E;if(t.$$incOutstandingRequestCount(),l=l||t.url(),"jsonp"==fn(r)){var b="_"+(i.counter++).toString(36);i[b]=function(t){i[b].data=t,i[b].called=!0};var _=a(l.replace("JSON_CALLBACK","angular.callbacks."+b),b,function(t,e){v(u,t,i[b].data,"",e),i[b]=p})}else{var C=e(r);if(C.open(r,l,!0),o(d,function(t,e){y(t)&&C.setRequestHeader(e,t)}),C.onreadystatechange=function(){if(C&&4==C.readyState){var t=null,e=null,n="";E!==s&&(t=C.getAllResponseHeaders(),e="response"in C?C.response:C.responseText),E===s&&yn<10||(n=C.statusText),v(u,E||C.status,e,t,n)}},f&&(C.withCredentials=!0),m)try{C.responseType=m}catch(I){if("json"!==m)throw I}C.send(c||null)}if(h>0)var T=n(g,h);else R(h)&&h.then(g)}}function Zt(){var t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,r){function o(o,l,c){for(var u,d,h,f,p=0,m=[],g=o.length,v=!1,y=[];p<g;)-1!=(u=o.indexOf(t,p))&&-1!=(d=o.indexOf(e,u+a))?(p!=u&&m.push(o.substring(p,u)),m.push(h=n(f=o.substring(u+a,d))),h.exp=f,p=d+s,v=!0):(p!=g&&m.push(o.substring(p)),p=g);if((g=m.length)||(m.push(""),g=1),c&&m.length>1)throw ri("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",o);if(!l||v)return y.length=g,h=function(t){try{for(var e,n=0,a=g;n<a;n++){if("function"==typeof(e=m[n]))if(e=e(t),null==(e=c?r.getTrusted(c,e):r.valueOf(e)))e="";else switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=V(e)}y[n]=e}return y.join("")}catch(l){var s=ri("interr","Can't interpolate: {0}\n{1}",o,l.toString());i(s)}},h.exp=o,h.parts=m,h}var a=t.length,s=e.length;return o.startSymbol=function(){return t},o.endSymbol=function(){return e},o}]}function Qt(){this.$get=["$rootScope","$window","$q",function(t,e,n){function i(i,o,a,s){var l=e.setInterval,c=e.clearInterval,u=n.defer(),d=u.promise,h=0,f=y(s)&&!s;return a=y(a)?a:0,d.then(null,null,i),d.$$intervalId=l(function(){u.notify(h++),a>0&&h>=a&&(u.resolve(h),c(d.$$intervalId),delete r[d.$$intervalId]),f||t.$apply()},o),r[d.$$intervalId]=u,d}var r={};return i.cancel=function(t){return!!(t&&t.$$intervalId in r)&&(r[t.$$intervalId].reject("canceled"),e.clearInterval(t.$$intervalId),delete r[t.$$intervalId],!0)},i}]}function te(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"¤",posSuf:"",negPre:"(¤",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a"},pluralCat:function(t){return 1===t?"one":"other"}}}}function ee(t){for(var e=t.split("/"),n=e.length;n--;)e[n]=Y(e[n]);return e.join("/")}function ne(t,e,n){var i=Me(t,n);e.$$protocol=i.protocol,e.$$host=i.hostname,e.$$port=h(i.port)||ai[i.protocol]||null}function ie(t,e,n){var i="/"!==t.charAt(0);i&&(t="/"+t);var r=Me(t,n);e.$$path=decodeURIComponent(i&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),e.$$search=q(r.search),e.$$hash=decodeURIComponent(r.hash),e.$$path&&"/"!=e.$$path.charAt(0)&&(e.$$path="/"+e.$$path)}function re(t,e){if(0===e.indexOf(t))return e.substr(t.length)}function oe(t){var e=t.indexOf("#");return-1==e?t:t.substr(0,e)}function ae(t){return t.substr(0,oe(t).lastIndexOf("/")+1)}function se(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))}function le(t,e){this.$$html5=!0,e=e||"";var i=ae(t);ne(t,this,t),this.$$parse=function(e){var n=re(i,e);if(!b(n))throw si("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,i);ie(n,this,t),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var t=W(this.$$search),e=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=ee(this.$$path)+(t?"?"+t:"")+e,this.$$absUrl=i+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,o){var a,s,l;return(a=re(t,r))!==n?(s=a,l=(a=re(e,a))!==n?i+(re("/",a)||a):t+s):(a=re(i,r))!==n?l=i+a:i==r+"/"&&(l=i),l&&this.$$parse(l),!!l}}function ce(t,e){var n=ae(t);ne(t,this,t),this.$$parse=function(i){var r=re(t,i)||re(n,i),o="#"==r.charAt(0)?re(e,r):this.$$html5?r:"";if(!b(o))throw si("ihshprfx",'Invalid url "{0}", missing hash prefix "{1}".',i,e);ie(o,this,t),this.$$path=function(t,e,n){var i,r=/^\/[A-Z]:(\/.*)/;return 0===e.indexOf(n)&&(e=e.replace(n,"")),r.exec(e)?t:(i=r.exec(t),i?i[1]:t)}(this.$$path,o,t),this.$$compose()},this.$$compose=function(){var n=W(this.$$search),i=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=ee(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+(this.$$url?e+this.$$url:"")},this.$$parseLinkUrl=function(e,n){return oe(t)==oe(e)&&(this.$$parse(e),!0)}}function ue(t,e){this.$$html5=!0,ce.apply(this,arguments);var n=ae(t);this.$$parseLinkUrl=function(i,r){var o,a;return t==oe(i)?o=i:(a=re(n,i))?o=t+e+a:n===i+"/"&&(o=n),o&&this.$$parse(o),!!o},this.$$compose=function(){var n=W(this.$$search),i=this.$$hash?"#"+Y(this.$$hash):"";this.$$url=ee(this.$$path)+(n?"?"+n:"")+i,this.$$absUrl=t+e+this.$$url}}function de(t){return function(){return this[t]}}function he(t,e){return function(n){return v(n)?this[t]:(this[t]=e(n),this.$$compose(),this)}}function fe(){var e="",n=!1;this.hashPrefix=function(t){return y(t)?(e=t,this):e},this.html5Mode=function(t){return y(t)?(n=t,this):n},this.$get=["$rootScope","$browser","$sniffer","$rootElement",function(i,r,o,a){function s(t){i.$broadcast("$locationChangeSuccess",l.absUrl(),t)}var l,c,u,d=r.baseHref(),h=r.url();n?(u=se(h)+(d||"/"),c=o.history?le:ue):(u=oe(h),c=ce),l=new c(u,"#"+e),l.$$parseLinkUrl(h,h);var f=/^\s*(javascript|mailto):/i;a.on("click",function(e){if(!e.ctrlKey&&!e.metaKey&&2!=e.which){for(var n=En(e.target);"a"!==fn(n[0].nodeName);)if(n[0]===a[0]||!(n=n.parent())[0])return;var o=n.prop("href"),s=n.attr("href")||n.attr("xlink:href");E(o)&&"[object SVGAnimatedString]"===o.toString()&&(o=Me(o.animVal).href),f.test(o)||!o||n.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(o,s)&&(e.preventDefault(),l.absUrl()!=r.url()&&(i.$apply(),t.angular["ff-684208-preventDefault"]=!0))}}),l.absUrl()!=h&&r.url(l.absUrl(),!0),r.onUrlChange(function(t){l.absUrl()!=t&&(i.$evalAsync(function(){var e=l.absUrl();l.$$parse(t),i.$broadcast("$locationChangeStart",t,e).defaultPrevented?(l.$$parse(e),r.url(e)):s(e)}),i.$$phase||i.$digest())});var p=0;return i.$watch(function(){var t=r.url(),e=l.$$replace;return p&&t==l.absUrl()||(p++,i.$evalAsync(function(){i.$broadcast("$locationChangeStart",l.absUrl(),t).defaultPrevented?l.$$parse(t):(r.url(l.absUrl(),e),s(t))})),l.$$replace=!1,p}),l}]}function pe(){var t=!0,e=this;this.debugEnabled=function(e){return y(e)?(t=e,this):t},this.$get=["$window",function(n){function i(t){return t instanceof Error&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?"Error: "+t.message+"\n"+t.stack:t.stack:t.sourceURL&&(t=t.message+"\n"+t.sourceURL+":"+t.line)),t}function r(t){var e=n.console||{},r=e[t]||e.log||p,a=!1;try{a=!!r.apply}catch(s){}return a?function(){var t=[];return o(arguments,function(e){t.push(i(e))}),r.apply(e,t)}:function(t,e){r(t,null==e?"":e)}}return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:function(){var n=r("debug");return function(){t&&n.apply(e,arguments)}}()}}]}function me(t,e){if("__defineGetter__"===t||"__defineSetter__"===t||"__lookupGetter__"===t||"__lookupSetter__"===t||"__proto__"===t)throw ci("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e);return t}function ge(t,e){if(t){if(t.constructor===t)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t.document&&t.location&&t.alert&&t.setInterval)throw ci("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e);if(t.children&&(t.nodeName||t.prop&&t.attr&&t.find))throw ci("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e);if(t===Object)throw ci("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}return t}function ve(t,e){if(t){if(t.constructor===t)throw ci("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e);if(t===di||t===hi||fi&&t===fi)throw ci("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}function ye(t,e,i,r,o){ge(t,r),o=o||{};for(var a,s=e.split("."),l=0;s.length>1;l++){a=me(s.shift(),r);var c=ge(t[a],r);c||(c={},t[a]=c),t=c,t.then&&o.unwrapPromises&&(li(r),"$$v"in t||function(t){t.then(function(e){t.$$v=e})}(t),t.$$v===n&&(t.$$v={}),t=t.$$v)}return a=me(s.shift(),r),ge(t[a],r),t[a]=i,i}function Ee(t){return"constructor"==t}function be(t,e,i,r,o,a,s){me(t,a),me(e,a),me(i,a),me(r,a),me(o,a);var l=function(t){return ge(t,a)},c=s.expensiveChecks,u=c||Ee(t)?l:m,d=c||Ee(e)?l:m,h=c||Ee(i)?l:m,f=c||Ee(r)?l:m,p=c||Ee(o)?l:m;return s.unwrapPromises?function(s,l){var c,m=l&&l.hasOwnProperty(t)?l:s;return null==m?m:(m=u(m[t]),m&&m.then&&(li(a),"$$v"in m||(c=m,c.$$v=n,c.then(function(t){c.$$v=u(t)})),m=u(m.$$v)),e?null==m?n:(m=d(m[e]),m&&m.then&&(li(a),"$$v"in m||(c=m,c.$$v=n,c.then(function(t){c.$$v=d(t)})),m=d(m.$$v)),i?null==m?n:(m=h(m[i]),m&&m.then&&(li(a),"$$v"in m||(c=m,c.$$v=n,c.then(function(t){c.$$v=h(t)})),m=h(m.$$v)),r?null==m?n:(m=f(m[r]),m&&m.then&&(li(a),"$$v"in m||(c=m,c.$$v=n,c.then(function(t){c.$$v=f(t)})),m=f(m.$$v)),o?null==m?n:(m=p(m[o]),m&&m.then&&(li(a),"$$v"in m||(c=m,c.$$v=n,c.then(function(t){c.$$v=p(t)})),m=p(m.$$v)),m):m):m):m):m)}:function(a,s){var l=s&&s.hasOwnProperty(t)?s:a;return null==l?l:(l=u(l[t]),e?null==l?n:(l=d(l[e]),i?null==l?n:(l=h(l[i]),r?null==l?n:(l=f(l[r]),o?null==l?n:l=p(l[o]):l):l):l):l)}}function _e(t,e){return function(n,i){return t(n,i,li,ge,e)}}function Ce(t,e,i){var r=e.expensiveChecks,a=r?Ei:yi;if(a.hasOwnProperty(t))return a[t];var s,l=t.split("."),c=l.length;if(e.csp)s=c<6?be(l[0],l[1],l[2],l[3],l[4],i,e):function(t,r){var o,a=0;do{o=be(l[a++],l[a++],l[a++],l[a++],l[a++],i,e)(t,r),r=n,t=o}while(a<c);return o};else{var u="var p;\n";r&&(u+="s = eso(s, fe);\nl = eso(l, fe);\n");var d=r;o(l,function(t,n){me(t,i);var o=(n?"s":'((l&&l.hasOwnProperty("'+t+'"))?l:s)')+'["'+t+'"]',a=r||Ee(t);a&&(o="eso("+o+", fe)",d=!0),u+="if(s == null) return undefined;\ns="+o+";\n",e.unwrapPromises&&(u+='if (s && s.then) {\n pw("'+i.replace(/(["\r\n])/g,"\\$1")+'");\n if (!("$$v" in s)) {\n p=s;\n p.$$v = undefined;\n p.then(function(v) {p.$$v='+(a?"eso(v)":"v")+";});\n}\n s="+(a?"eso(s.$$v)":"s.$$v")+"\n}\n")}),u+="return s;";var h=new Function("s","l","pw","eso","fe",u);h.toString=g(u),(d||e.unwrapPromises)&&(h=_e(h,i)),s=h}return"hasOwnProperty"!==t&&(a[t]=s),s}function Te(){var t={},e={},n={csp:!1,unwrapPromises:!1,logPromiseWarnings:!0,expensiveChecks:!1};this.unwrapPromises=function(t){return y(t)?(n.unwrapPromises=!!t,this):n.unwrapPromises},this.logPromiseWarnings=function(t){return y(t)?(n.logPromiseWarnings=t,this):n.logPromiseWarnings},this.$get=["$filter","$sniffer","$log",function(i,r,o){n.csp=r.csp;var a={csp:n.csp,unwrapPromises:n.unwrapPromises,logPromiseWarnings:n.logPromiseWarnings,expensiveChecks:!0};return li=function(t){n.logPromiseWarnings&&!ui.hasOwnProperty(t)&&(ui[t]=!0,o.warn("[$parse] Promise found in the expression `"+t+"`. Automatic unwrapping of promises in Angular expressions is deprecated."))},function(r,o){var s;switch(typeof r){case"string":var l=o?e:t;if(l.hasOwnProperty(r))return l[r];var c=o?a:n,u=new gi(c);return s=new vi(u,i,c).parse(r),"hasOwnProperty"!==r&&(l[r]=s),s;case"function":return r;default:return p}}}]}function Ie(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return De(function(e){t.$evalAsync(e)},e)}]}function De(t,e){function i(t){return t}function r(t){return c(t)}function a(t){var e=s(),n=0,i=Rn(t)?[]:{};return o(t,function(t,r){n++,l(t).then(function(t){i.hasOwnProperty(r)||(i[r]=t,--n||e.resolve(i))},function(t){i.hasOwnProperty(r)||e.reject(t)})}),0===n&&e.resolve(i),e.promise}var s=function(){var o,a,c=[];return a={resolve:function(e){if(c){var i=c;c=n,o=l(e),i.length&&t(function(){for(var t,e=0,n=i.length;e<n;e++)t=i[e],o.then(t[0],t[1],t[2])})}},reject:function(t){a.resolve(u(t))},notify:function(e){if(c){var n=c;c.length&&t(function(){for(var t,i=0,r=n.length;i<r;i++)t=n[i],t[2](e)})}},promise:{then:function(t,n,a){var l=s(),u=function(n){try{l.resolve((T(t)?t:i)(n))}catch(r){l.reject(r),e(r)}},d=function(t){try{l.resolve((T(n)?n:r)(t))}catch(i){l.reject(i),e(i)}},h=function(t){try{l.notify((T(a)?a:i)(t))}catch(n){e(n)}};return c?c.push([u,d,h]):o.then(u,d,h),l.promise},"catch":function(t){return this.then(null,t)},"finally":function(t){function e(t,e){var n=s();return e?n.resolve(t):n.reject(t),n.promise}function n(n,r){var o=null;try{o=(t||i)()}catch(a){return e(a,!1)}return R(o)?o.then(function(){return e(n,r)},function(t){return e(t,!1)}):e(n,r)}return this.then(function(t){return n(t,!0)},function(t){return n(t,!1)})}}}},l=function(e){return R(e)?e:{then:function(n){var i=s();return t(function(){i.resolve(n(e))}),i.promise}}},c=function(t){var e=s();return e.reject(t),e.promise},u=function(n){return{then:function(i,o){var a=s();return t(function(){try{a.resolve((T(o)?o:r)(n))}catch(t){a.reject(t),e(t)}}),a.promise}}};return{defer:s,reject:c,when:function(n,o,a,u){var d,h=s(),f=function(t){try{return(T(o)?o:i)(t)}catch(n){return e(n),c(n)}},p=function(t){try{return(T(a)?a:r)(t)}catch(n){return e(n),c(n)}},m=function(t){try{return(T(u)?u:i)(t)}catch(n){e(n)}};return t(function(){l(n).then(function(t){d||(d=!0,h.resolve(l(t).then(f,p,m)))},function(t){d||(d=!0,h.resolve(p(t)))},function(t){d||h.notify(m(t))})}),h.promise},all:a}}function $e(){this.$get=["$window","$timeout",function(t,e){var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame,i=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,r=!!n,o=r?function(t){var e=n(t);return function(){i(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};return o.supported=r,o}]}function Oe(){var t=10,e=i("$rootScope"),n=null;this.digestTtl=function(e){return arguments.length&&(t=e),t},this.$get=["$injector","$exceptionHandler","$parse","$browser",function(i,a,s,l){function u(){this.$id=c(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this["this"]=this.$root=this,this.$$destroyed=!1,this.$$asyncQueue=[],this.$$postDigestQueue=[],this.$$listeners={},this.$$listenerCount={},this.$$isolateBindings={}}function d(t){if(v.$$phase)throw e("inprog","{0} already in progress",v.$$phase);v.$$phase=t}function h(){v.$$phase=null}function f(t,e){var n=s(t);return et(n,e),n}function m(t,e,n){do{t.$$listenerCount[n]-=e,0===t.$$listenerCount[n]&&delete t.$$listenerCount[n]}while(t=t.$parent)}function g(){}u.prototype={constructor:u,$new:function(t){var e;return t?(e=new u,e.$root=this.$root,e.$$asyncQueue=this.$$asyncQueue,e.$$postDigestQueue=this.$$postDigestQueue):(this.$$childScopeClass||(this.$$childScopeClass=function(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$id=c(),this.$$childScopeClass=null},this.$$childScopeClass.prototype=this),e=new this.$$childScopeClass),e["this"]=e,e.$parent=this,e.$$prevSibling=this.$$childTail,this.$$childHead?(this.$$childTail.$$nextSibling=e,this.$$childTail=e):this.$$childHead=this.$$childTail=e,e},$watch:function(t,e,i){var r=this,o=f(t,"watch"),a=r.$$watchers,s={fn:e,last:g,get:o,exp:t,eq:!!i};if(n=null,!T(e)){var l=f(e||p,"listener");s.fn=function(t,e,n){l(n)}}if("string"==typeof t&&o.constant){var c=s.fn;s.fn=function(t,e,n){c.call(this,t,e,n),N(a,s)}}return a||(a=r.$$watchers=[]),a.unshift(s),function(){N(a,s),n=null}},$watchCollection:function(t,e){function n(){o=h(c);var t,e;if(E(o))if(r(o)){a!==f&&(a=f,g=a.length=0,d++),t=o.length,g!==t&&(d++,a.length=g=t);for(var n=0;n<t;n++)a[n]!==a[n]&&o[n]!==o[n]||a[n]===o[n]||(d++,a[n]=o[n])}else{a!==p&&(a=p={},g=0,d++),t=0;for(e in o)o.hasOwnProperty(e)&&(t++,a.hasOwnProperty(e)?a[e]!==a[e]&&o[e]!==o[e]||a[e]===o[e]||(d++,a[e]=o[e]):(g++,a[e]=o[e],d++));if(g>t){d++;for(e in a)a.hasOwnProperty(e)&&!o.hasOwnProperty(e)&&(g--,delete a[e])}}else a!==o&&(a=o,d++);return d}function i(){if(m?(m=!1,e(o,o,c)):e(o,l,c),u)if(E(o))if(r(o)){l=new Array(o.length);for(var t=0;t<o.length;t++)l[t]=o[t]}else{l={};for(var n in o)pn.call(o,n)&&(l[n]=o[n])}else l=o}var o,a,l,c=this,u=e.length>1,d=0,h=s(t),f=[],p={},m=!0,g=0;return this.$watch(n,i)},$digest:function(){var i,r,o,s,c,u,f,p,m,v,y,E=this.$$asyncQueue,b=this.$$postDigestQueue,_=t,C=this,I=[];d("$digest"),l.$$checkUrlChange(),n=null;do{for(u=!1,p=C;E.length;){try{y=E.shift(),y.scope.$eval(y.expression)}catch(D){h(),a(D)}n=null}t:do{if(s=p.$$watchers)for(c=s.length;c--;)try{if(i=s[c])if((r=i.get(p))===(o=i.last)||(i.eq?K(r,o):"number"==typeof r&&"number"==typeof o&&isNaN(r)&&isNaN(o))){if(i===n){u=!1;break t}}else u=!0,n=i,i.last=i.eq?P(r,null):r,i.fn(r,o===g?r:o,p),_<5&&(m=4-_,I[m]||(I[m]=[]),v=T(i.exp)?"fn: "+(i.exp.name||i.exp.toString()):i.exp,v+="; newVal: "+V(r)+"; oldVal: "+V(o),I[m].push(v))}catch(D){h(),a(D)}if(!(f=p.$$childHead||p!==C&&p.$$nextSibling))for(;p!==C&&!(f=p.$$nextSibling);)p=p.$parent}while(p=f);if((u||E.length)&&!_--)throw h(),e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",t,V(I))}while(u||E.length);for(h();b.length;)try{b.shift()()}catch(D){a(D)}},$destroy:function(){if(!this.$$destroyed){var t=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this!==v&&(o(this.$$listenerCount,B(null,m,this)),t.$$childHead==this&&(t.$$childHead=this.$$nextSibling),t.$$childTail==this&&(t.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=null,this.$$listeners={},this.$$watchers=this.$$asyncQueue=this.$$postDigestQueue=[],this.$destroy=this.$digest=this.$apply=p,this.$on=this.$watch=function(){return p})}},$eval:function(t,e){return s(t)(this,e)},$evalAsync:function(t){v.$$phase||v.$$asyncQueue.length||l.defer(function(){v.$$asyncQueue.length&&v.$digest()}),this.$$asyncQueue.push({scope:this,expression:t})},$$postDigest:function(t){this.$$postDigestQueue.push(t)},$apply:function(t){try{return d("$apply"),this.$eval(t)}catch(e){a(e)}finally{h();try{v.$digest()}catch(e){throw a(e),e}}},$on:function(t,e){var n=this.$$listeners[t];n||(this.$$listeners[t]=n=[]),n.push(e);var i=this;do{i.$$listenerCount[t]||(i.$$listenerCount[t]=0),i.$$listenerCount[t]++}while(i=i.$parent);var r=this;return function(){var i=A(n,e);-1!==i&&(n[i]=null,m(r,1,t))}},$emit:function(t,e){var n,i,r,o=[],s=this,l=!1,c={name:t,targetScope:s,stopPropagation:function(){l=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=L([c],arguments,1);do{for(n=s.$$listeners[t]||o,c.currentScope=s,i=0,r=n.length;i<r;i++)if(n[i])try{n[i].apply(null,u)}catch(d){a(d)}else n.splice(i,1),i--,r--;if(l)return c;s=s.$parent}while(s);return c},$broadcast:function(t,e){for(var n,i,r,o=this,s=o,l=o,c={name:t,targetScope:o,preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},u=L([c],arguments,1);s=l;){for(c.currentScope=s,n=s.$$listeners[t]||[],i=0,r=n.length;i<r;i++)if(n[i])try{n[i].apply(null,u)}catch(d){a(d)}else n.splice(i,1),i--,r--;if(!(l=s.$$listenerCount[t]&&s.$$childHead||s!==o&&s.$$nextSibling))for(;s!==o&&!(l=s.$$nextSibling);)s=s.$parent}return c}};var v=new u;return v}]}function we(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationWhitelist=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,i){var r,o=i?e:t;return yn&&!(yn>=8)||""===(r=Me(n).href)||r.match(o)?n:"unsafe:"+r}}}function Re(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function ke(t){if("self"===t)return t;if(b(t)){if(t.indexOf("***")>-1)throw bi("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=Re(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),new RegExp("^"+t+"$")}if(I(t))return new RegExp("^"+t.source+"$");throw bi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function xe(t){var e=[];return y(t)&&o(t,function(t){e.push(ke(t))}),e}function Se(){this.SCE_CONTEXTS=_i;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){return arguments.length&&(t=xe(e)),t},this.resourceUrlBlacklist=function(t){return arguments.length&&(e=xe(t)),e},this.$get=["$injector",function(i){function r(t,e){return"self"===t?Ke(e):!!t.exec(e.href)}function o(n){var i,o,a=Me(n.toString()),s=!1;for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!0;break}if(s)for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!1;break}return s}function a(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}function s(t,e){var i=h.hasOwnProperty(t)?h[t]:null;if(!i)throw bi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||e===n||""===e)return e;if("string"!=typeof e)throw bi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new i(e)}function l(t){return t instanceof d?t.$$unwrapTrustedValue():t}function c(t,e){if(null===e||e===n||""===e)return e;var i=h.hasOwnProperty(t)?h[t]:null;if(i&&e instanceof i)return e.$$unwrapTrustedValue();if(t===_i.RESOURCE_URL){if(o(e))return e;throw bi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",e.toString())}if(t===_i.HTML)return u(e);throw bi("unsafe","Attempting to use an unsafe value in a safe context.")}var u=function(t){throw bi("unsafe","Attempting to use an unsafe value in a safe context.")};i.has("$sanitize")&&(u=i.get("$sanitize"));var d=a(),h={};return h[_i.HTML]=a(d),h[_i.CSS]=a(d),h[_i.URL]=a(d),h[_i.JS]=a(d),h[_i.RESOURCE_URL]=a(h[_i.URL]),{trustAs:s,getTrusted:c,valueOf:l}}]}function Ae(){var t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sniffer","$sceDelegate",function(e,n,i){if(t&&n.msie&&n.msieDocumentMode<8)throw bi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 9 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=M(_i);r.isEnabled=function(){return t},r.trustAs=i.trustAs,r.getTrusted=i.getTrusted,r.valueOf=i.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=m),r.parseAs=function(t,n){var i=e(n);return i.literal&&i.constant?i:function(e,n){return r.getTrusted(t,i(e,n))}};var a=r.parseAs,s=r.getTrusted,l=r.trustAs;return o(_i,function(t,e){var n=fn(e);r[st("parse_as_"+n)]=function(e){return a(t,e)},r[st("get_trusted_"+n)]=function(e){return s(t,e)},r[st("trust_as_"+n)]=function(e){return l(t,e)}}),r}]}function Ne(){this.$get=["$window","$document",function(t,e){var n,i,r={},o=h((/android (\d+)/.exec(fn((t.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((t.navigator||{}).userAgent),s=e[0]||{},l=s.documentMode,c=/^(Moz|webkit|O|ms)(?=[A-Z])/,u=s.body&&s.body.style,d=!1,f=!1;if(u){for(var p in u)if(i=c.exec(p)){n=i[0],n=n.substr(0,1).toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in u&&"webkit"),d=!!("transition"in u||n+"Transition"in u),f=!!("animation"in u||n+"Animation"in u),!o||d&&f||(d=b(s.body.style.webkitTransition),f=b(s.body.style.webkitAnimation))}return{history:!(!t.history||!t.history.pushState||o<4||a),hashchange:"onhashchange"in t&&(!l||l>7),hasEvent:function(t){if("input"==t&&9==yn)return!1;if(v(r[t])){var e=s.createElement("div");r[t]="on"+t in e}return r[t]},csp:xn(),vendorPrefix:n,transitions:d,animations:f,android:o,msie:yn,msieDocumentMode:l}}]}function Pe(){this.$get=["$rootScope","$browser","$q","$exceptionHandler",function(t,e,n,i){function r(r,a,s){var l,c=n.defer(),u=c.promise,d=y(s)&&!s;return l=e.defer(function(){try{c.resolve(r())}catch(e){c.reject(e),i(e)}finally{delete o[u.$$timeoutId]}d||t.$apply()},a),u.$$timeoutId=l,o[l]=c,u}var o={};return r.cancel=function(t){return!!(t&&t.$$timeoutId in o)&&(o[t.$$timeoutId].reject("canceled"),delete o[t.$$timeoutId],e.defer.cancel(t.$$timeoutId))},r}]}function Me(t,e){var n=t;return yn&&(Ci.setAttribute("href",n),n=Ci.href),Ci.setAttribute("href",n),{href:Ci.href,protocol:Ci.protocol?Ci.protocol.replace(/:$/,""):"",host:Ci.host,search:Ci.search?Ci.search.replace(/^\?/,""):"",hash:Ci.hash?Ci.hash.replace(/^#/,""):"",hostname:Ci.hostname,port:Ci.port,pathname:"/"===Ci.pathname.charAt(0)?Ci.pathname:"/"+Ci.pathname}}function Ke(t){var e=b(t)?Me(t):t;return e.protocol===Ti.protocol&&e.host===Ti.host}function Le(){this.$get=g(t)}function Fe(t){function e(i,r){if(E(i)){var a={};return o(i,function(t,n){a[n]=e(n,t)}),a}return t.factory(i+n,r)}var n="Filter";this.register=e,this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}],e("currency",je),e("date",Ye),e("filter",Be),e("json",Xe),e("limitTo",Je),e("lowercase",wi),e("number",Ve),e("orderBy",Ze),e("uppercase",Ri)}function Be(){return function(t,e,n){if(!Rn(t))return t;var i=typeof n,r=[];r.check=function(t){for(var e=0;e<r.length;e++)if(!r[e](t))return!1;return!0},"function"!==i&&(n="boolean"===i&&n?function(t,e){return On.equals(t,e)}:function(t,e){if(t&&e&&"object"==typeof t&&"object"==typeof e){for(var i in t)if("$"!==i.charAt(0)&&pn.call(t,i)&&n(t[i],e[i]))return!0;return!1}return e=(""+e).toLowerCase(),(""+t).toLowerCase().indexOf(e)>-1});var o=function(t,e){if("string"==typeof e&&"!"===e.charAt(0))return!o(t,e.substr(1));switch(typeof t){case"boolean":case"number":case"string":return n(t,e);case"object":switch(typeof e){case"object":return n(t,e);default:for(var i in t)if("$"!==i.charAt(0)&&o(t[i],e))return!0}return!1;case"array":for(var r=0;r<t.length;r++)if(o(t[r],e))return!0;return!1;default:return!1}};switch(typeof e){case"boolean":case"number":case"string":e={$:e};case"object":for(var a in e)!function(t){"undefined"!=typeof e[t]&&r.push(function(n){return o("$"==t?n:n&&n[t],e[t])})}(a);break;case"function":r.push(e);break;default:return t}for(var s=[],l=0;l<t.length;l++){var c=t[l];r.check(c)&&s.push(c)}return s}}function je(t){var e=t.NUMBER_FORMATS;return function(t,n){return v(n)&&(n=e.CURRENCY_SYM),He(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,2).replace(/\u00A4/g,n)}}function Ve(t){var e=t.NUMBER_FORMATS;return function(t,n){return He(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}}function He(t,e,n,i,r){if(null==t||!isFinite(t)||E(t))return"";var o=t<0;t=Math.abs(t);var a=t+"",s="",l=[],c=!1;if(-1!==a.indexOf("e")){var u=a.match(/([\d\.]+)e(-?)(\d+)/);u&&"-"==u[2]&&u[3]>r+1?(a="0",t=0):(s=a,c=!0)}if(c)r>0&&t>-1&&t<1&&(s=t.toFixed(r));else{var d=(a.split(Ii)[1]||"").length;v(r)&&(r=Math.min(Math.max(e.minFrac,d),e.maxFrac)),t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r),0===t&&(o=!1);var h=(""+t).split(Ii),f=h[0];h=h[1]||"";var p,m=0,g=e.lgSize,y=e.gSize;if(f.length>=g+y)for(m=f.length-g,p=0;p<m;p++)(m-p)%y==0&&0!==p&&(s+=n),s+=f.charAt(p);for(p=m;p<f.length;p++)(f.length-p)%g==0&&0!==p&&(s+=n),s+=f.charAt(p);for(;h.length<r;)h+="0";r&&"0"!==r&&(s+=i+h.substr(0,r))}return l.push(o?e.negPre:e.posPre),l.push(s),l.push(o?e.negSuf:e.posSuf),l.join("")}function Ue(t,e,n){var i="";for(t<0&&(i="-",t=-t),t=""+t;t.length<e;)t="0"+t;return n&&(t=t.substr(t.length-e)),i+t}function ze(t,e,n,i){return n=n||0,function(r){var o=r["get"+t]();return(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),Ue(o,e,i)}}function Ge(t,e){return function(n,i){var r=n["get"+t]();return i[mn(e?"SHORT"+t:t)][r]}}function qe(t){var e=-1*t.getTimezoneOffset(),n=e>=0?"+":"";return n+=Ue(Math[e>0?"floor":"ceil"](e/60),2)+Ue(Math.abs(e%60),2)}function We(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]}function Ye(t){function e(t){var e;if(e=t.match(n)){var i=new Date(0),r=0,o=0,a=e[8]?i.setUTCFullYear:i.setFullYear,s=e[8]?i.setUTCHours:i.setHours;e[9]&&(r=h(e[9]+e[10]),o=h(e[9]+e[11])),a.call(i,h(e[1]),h(e[2])-1,h(e[3]));var l=h(e[4]||0)-r,c=h(e[5]||0)-o,u=h(e[6]||0),d=Math.round(1e3*parseFloat("0."+(e[7]||0)));return s.call(i,l,c,u,d),i}return t}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i){var r,a,s="",l=[];if(i=i||"mediumDate",i=t.DATETIME_FORMATS[i]||i,b(n)&&(n=Oi.test(n)?h(n):e(n)),_(n)&&(n=new Date(n)),!C(n))return n;for(;i;)a=$i.exec(i),a?(l=L(l,a,1),i=l.pop()):(l.push(i),i=null);return o(l,function(e){r=Di[e],s+=r?r(n,t.DATETIME_FORMATS):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),s}}function Xe(){return function(t){return V(t,!0)}}function Je(){return function(t,e){if(!Rn(t)&&!b(t))return t;if(e=Math.abs(Number(e))===Infinity?Number(e):h(e),b(t))return e?e>=0?t.slice(0,e):t.slice(e,t.length):"";var n,i,r=[];for(e>t.length?e=t.length:e<-t.length&&(e=-t.length),e>0?(n=0,i=e):(n=t.length+e,i=t.length);n<i;n++)r.push(t[n]);return r}}function Ze(t){return function(e,n,i){function o(t,e){for(var i=0;i<n.length;i++){var r=n[i](t,e);if(0!==r)return r}return 0}function a(t,e){return U(e)?function(e,n){return t(n,e)}:t}function s(t,e){var n=typeof t,i=typeof e;return n==i?(C(t)&&C(e)&&(t=t.valueOf(),e=e.valueOf()),"string"==n&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e?0:t<e?-1:1):n<i?-1:1}return r(e)?(n=Rn(n)?n:[n],0===n.length&&(n=["+"]),n=x(n,function(e){var n=!1,i=e||m;if(b(e)){if("+"!=e.charAt(0)&&"-"!=e.charAt(0)||(n="-"==e.charAt(0),e=e.substring(1)),""===e)return a(function(t,e){return s(t,e)},n);if(i=t(e),i.constant){var r=i();return a(function(t,e){return s(t[r],e[r])},n)}}return a(function(t,e){return s(i(t),i(e))},n)}),Tn.call(e).sort(a(o,i))):e}}function Qe(t){return T(t)&&(t={link:t}),t.restrict=t.restrict||"AC",g(t)}function tn(t,e,n,i){function r(e,n){n=n?"-"+Q(n,"-"):"",i.setClass(t,(e?Vi:Hi)+n,(e?Hi:Vi)+n)}var a=this,s=t.parent().controller("form")||Si,l=0,c=a.$error={},u=[];a.$name=e.name||e.ngForm,a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,s.$addControl(a),t.addClass(Ui),r(!0),a.$addControl=function(t){nt(t.$name,"input"),u.push(t),t.$name&&(a[t.$name]=t)},a.$removeControl=function(t){t.$name&&a[t.$name]===t&&delete a[t.$name],o(c,function(e,n){a.$setValidity(n,!0,t)}),N(u,t)},a.$setValidity=function(t,e,n){var i=c[t];if(e)i&&(N(i,n),i.length||(l--,l||(r(e),a.$valid=!0,a.$invalid=!1),c[t]=!1,r(!0,t),s.$setValidity(t,!0,a)));else{if(l||r(e),i){if(S(i,n))return}else c[t]=i=[],l++,r(!1,t),s.$setValidity(t,!1,a);i.push(n),a.$valid=!1,a.$invalid=!0}},a.$setDirty=function(){i.removeClass(t,Ui),i.addClass(t,zi),a.$dirty=!0,a.$pristine=!1,s.$setDirty()},a.$setPristine=function(){i.removeClass(t,zi),i.addClass(t,Ui),a.$dirty=!1,a.$pristine=!0,o(u,function(t){t.$setPristine()})}}function en(t,e,i,r){return t.$setValidity(e,i),i?r:n}function nn(t,e){var n,i;if(e)for(n=0;n<e.length;++n)if(i=e[n],t[i])return!0;return!1}function rn(t,e,n,i,r){if(E(r)){t.$$hasNativeValidators=!0;var o=function(o){return t.$error[e]||nn(r,i)||!nn(r,n)?o:void t.$setValidity(e,!1)};t.$parsers.push(o)}}function on(t,e,n,r,o,a){var s=e.prop(hn),l=e[0].placeholder,c={},u=fn(e[0].type);if(r.$$validityState=s,!o.android){var d=!1;e.on("compositionstart",function(t){d=!0}),e.on("compositionend",function(){d=!1,f()})}var f=function(i){if(!d){var o=e.val();if(yn&&"input"===(i||c).type&&e[0].placeholder!==l)return void(l=e[0].placeholder);"password"!==u&&U(n.ngTrim||"T")&&(o=kn(o));var a=s&&r.$$hasNativeValidators;(r.$viewValue!==o||""===o&&a)&&(t.$root.$$phase?r.$setViewValue(o):t.$apply(function(){r.$setViewValue(o)}))}};if(o.hasEvent("input"))e.on("input",f);else{var p,m=function(){p||(p=a.defer(function(){f(),p=null}))};e.on("keydown",function(t){var e=t.keyCode;91===e||15<e&&e<19||37<=e&&e<=40||m()}),o.hasEvent("paste")&&e.on("paste cut",m)}e.on("change",f),r.$render=function(){e.val(r.$isEmpty(r.$viewValue)?"":r.$viewValue)};var g,v,y=n.ngPattern;if(y){var E=function(t,e){return en(r,"pattern",r.$isEmpty(e)||t.test(e),e)};v=y.match(/^\/(.*)\/([gim]*)$/),v?(y=new RegExp(v[1],v[2]),g=function(t){return E(y,t)}):g=function(n){var r=t.$eval(y);if(!r||!r.test)throw i("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",y,r,z(e));return E(r,n)},r.$formatters.push(g),r.$parsers.push(g)}if(n.ngMinlength){var b=h(n.ngMinlength),_=function(t){return en(r,"minlength",r.$isEmpty(t)||t.length>=b,t)};r.$parsers.push(_),r.$formatters.push(_)}if(n.ngMaxlength){var C=h(n.ngMaxlength),T=function(t){return en(r,"maxlength",r.$isEmpty(t)||t.length<=C,t)};r.$parsers.push(T),r.$formatters.push(T)}}function an(t,e,i,r,o,a){if(on(t,e,i,r,o,a),r.$parsers.push(function(t){var e=r.$isEmpty(t);return e||Li.test(t)?(r.$setValidity("number",!0),""===t?null:e?t:parseFloat(t)):(r.$setValidity("number",!1),n)}),rn(r,"number",Bi,null,r.$$validityState),r.$formatters.push(function(t){return r.$isEmpty(t)?"":""+t}),i.min){var s=function(t){var e=parseFloat(i.min);return en(r,"min",r.$isEmpty(t)||t>=e,t)};r.$parsers.push(s),r.$formatters.push(s)}if(i.max){var l=function(t){var e=parseFloat(i.max);return en(r,"max",r.$isEmpty(t)||t<=e,t)};r.$parsers.push(l),r.$formatters.push(l)}r.$formatters.push(function(t){return en(r,"number",r.$isEmpty(t)||_(t),t)})}function sn(t,e,n,i,r,o){on(t,e,n,i,r,o);var a=function(t){return en(i,"url",i.$isEmpty(t)||Mi.test(t),t)};i.$formatters.push(a),i.$parsers.push(a)}function ln(t,e,n,i,r,o){on(t,e,n,i,r,o);var a=function(t){return en(i,"email",i.$isEmpty(t)||Ki.test(t),t)};i.$formatters.push(a),i.$parsers.push(a)}function cn(t,e,n,i){v(n.name)&&e.attr("name",c()),e.on("click",function(){e[0].checked&&t.$apply(function(){i.$setViewValue(n.value)})}),i.$render=function(){var t=n.value;e[0].checked=t==i.$viewValue},n.$observe("value",i.$render)}function un(t,e,n,i){var r=n.ngTrueValue,o=n.ngFalseValue;b(r)||(r=!0),b(o)||(o=!1),e.on("click",function(){t.$apply(function(){i.$setViewValue(e[0].checked)})}),i.$render=function(){e[0].checked=i.$viewValue},i.$isEmpty=function(t){return t!==r},i.$formatters.push(function(t){return t===r}),i.$parsers.push(function(t){return t?r:o})}function dn(t,e){return t="ngClass"+t,["$animate",function(n){function i(t,e){var n=[];t:for(var i=0;i<t.length;i++){for(var r=t[i],o=0;o<e.length;o++)if(r==e[o])continue t;n.push(r)}return n}function r(t){if(Rn(t))return t;if(b(t))return t.split(" ");if(E(t)){var e=[];return o(t,function(t,n){t&&(e=e.concat(n.split(" ")))}),e}return t}return{restrict:"AC",link:function(a,s,l){function c(t){var e=d(t,1);l.$addClass(e)}function u(t){var e=d(t,-1);l.$removeClass(e)}function d(t,e){var n=s.data("$classCounts")||{},i=[];return o(t,function(t){(e>0||n[t])&&(n[t]=(n[t]||0)+e,n[t]===+(e>0)&&i.push(t))}),s.data("$classCounts",n),i.join(" ")}function h(t,e){var r=i(e,t),o=i(t,e);o=d(o,-1),r=d(r,1),0===r.length?n.removeClass(s,o):0===o.length?n.addClass(s,r):n.setClass(s,r,o)}function f(t){if(!0===e||a.$index%2===e){var n=r(t||[]);if(p){if(!K(t,p)){var i=r(p);h(i,n)}}else c(n)}p=M(t)}var p;a.$watch(l[t],f,!0),l.$observe("class",function(e){f(a.$eval(l[t]))}),"ngClass"!==t&&a.$watch("$index",function(n,i){var o=1&n;if(o!==(1&i)){var s=r(a.$eval(l[t]));o===e?c(s):u(s)}})}}}]}console.warn("Using custom angular.js file");var hn="validity",fn=function(t){return b(t)?t.toLowerCase():t},pn=Object.prototype.hasOwnProperty,mn=function(t){return b(t)?t.toUpperCase():t},gn=function(t){return b(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(32|t.charCodeAt(0))}):t},vn=function(t){return b(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(-33&t.charCodeAt(0))}):t};"i"!=="I".toLowerCase()&&(fn=gn,mn=vn);var yn,En,bn,_n,Cn,Tn=[].slice,In=[].push,Dn=Object.prototype.toString,$n=i("ng"),On=t.angular||(t.angular={}),wn=["0","0","0"];yn=h((/msie (\d+)/.exec(fn(navigator.userAgent))||[])[1]),isNaN(yn)&&(yn=h((/trident\/.*; rv:(\d+)/.exec(fn(navigator.userAgent))||[])[1])),p.$inject=[],m.$inject=[];var Rn=function(){return T(Array.isArray)?Array.isArray:function(t){return"[object Array]"===Dn.call(t)}}(),kn=function(){return String.prototype.trim?function(t){return b(t)?t.trim():t}:function(t){return b(t)?t.replace(/^\s\s*/,"").replace(/\s\s*$/,""):t}}();Cn=yn<9?function(t){return t=t.nodeName?t:t[0],t.scopeName&&"HTML"!=t.scopeName?mn(t.scopeName+":"+t.nodeName):t.nodeName}:function(t){return t.nodeName?t.nodeName:t[0].nodeName};var xn=function(){if(y(xn.isActive_))return xn.isActive_;var t=!(!e.querySelector("[ng-csp]")&&!e.querySelector("[data-ng-csp]"));if(!t)try{new Function("")}catch(n){t=!0}return xn.isActive_=t},Sn=/[A-Z]/g,An={full:"1.2.28",major:1,minor:2,dot:28,codeName:"finnish-disembarkation"};ht.expando="ng339";var Nn=ht.cache={},Pn=1,Mn=t.document.addEventListener?function(t,e,n){t.addEventListener(e,n,!1)}:function(t,e,n){t.attachEvent("on"+e,n)},Kn=t.document.removeEventListener?function(t,e,n){t.removeEventListener(e,n,!1)}:function(t,e,n){t.detachEvent("on"+e,n)},Ln=(ht._data=function(t){return this.cache[t[this.expando]]||{}},/([\:\-\_]+(.))/g),Fn=/^moz([A-Z])/,Bn=i("jqLite"),jn=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Vn=/<|&#?\w+;/,Hn=/<([\w:]+)/,Un=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zn={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};zn.optgroup=zn.option,zn.tbody=zn.tfoot=zn.colgroup=zn.caption=zn.thead,zn.th=zn.td;var Gn=ht.prototype={ready:function(n){function i(){r||(r=!0,n())}var r=!1;"complete"===e.readyState?setTimeout(i):(this.on("DOMContentLoaded",i),ht(t).on("load",i))},toString:function(){var t=[];return o(this,function(e){t.push(""+e)}),"["+t.join(", ")+"]"},eq:function(t){return En(t>=0?this[t]:this[this.length+t])},length:0,push:In,sort:[].sort,splice:[].splice},qn={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){qn[fn(t)]=t});var Wn={};o("input,select,option,textarea,button,form,details".split(","),function(t){Wn[mn(t)]=!0}),o({data:yt,removeData:gt},function(t,e){ht[e]=t}),o({data:yt,inheritedData:It,scope:function(t){return En.data(t,"$scope")||It(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return En.data(t,"$isolateScope")||En.data(t,"$isolateScopeNoTemplate")},controller:Tt,injector:function(t){return It(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Et,css:function(t,e,i){if(e=st(e),!y(i)){var r;return yn<=8&&""===(r=t.currentStyle&&t.currentStyle[e])&&(r="auto"),r=r||t.style[e],yn<=8&&(r=""===r?n:r),r}t.style[e]=i},attr:function(t,e,i){var r=fn(e);if(qn[r]){if(!y(i))return t[e]||(t.attributes.getNamedItem(e)||p).specified?r:n;i?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(y(i))t.setAttribute(e,i);else if(t.getAttribute){var o=t.getAttribute(e,2);return null===o?n:o}},prop:function(t,e,n){if(!y(n))return t[e];t[e]=n},text:function(){function t(t,n){var i=e[t.nodeType];if(v(n))return i?t[i]:"";t[i]=n}var e=[];return yn<9?(e[1]="innerText",e[3]="nodeValue"):e[1]=e[3]="textContent",t.$dv="",t}(),val:function(t,e){if(v(e)){if("SELECT"===Cn(t)&&t.multiple){var n=[];return o(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(v(e))return t.innerHTML;for(var n=0,i=t.childNodes;n<i.length;n++)pt(i[n]);t.innerHTML=e},empty:Dt},function(t,e){ht.prototype[e]=function(e,i){var r,o,a=this.length;if(t!==Dt&&(2==t.length&&t!==Et&&t!==Tt?e:i)===n){if(E(e)){for(r=0;r<a;r++)if(t===yt)t(this[r],e);else for(o in e)t(this[r],o,e[o]);return this}for(var s=t.$dv,l=s===n?Math.min(a,1):a,c=0;c<l;c++){var u=t(this[c],e,i);s=s?s+u:u}return s}for(r=0;r<a;r++)t(this[r],e,i);return this}}),o({removeData:gt,dealoc:pt,on:function Rr(t,n,i,r){if(y(r))throw Bn("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");var a=vt(t,"events"),s=vt(t,"handle");a||vt(t,"events",a={}),s||vt(t,"handle",s=Ot(t,a)),o(n.split(" "),function(n){var r=a[n];if(!r){if("mouseenter"==n||"mouseleave"==n){var o=e.body.contains||e.body.compareDocumentPosition?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1};a[n]=[];Rr(t,{mouseleave:"mouseout",mouseenter:"mouseover"}[n],function(t){var e=this,i=t.relatedTarget;i&&(i===e||o(e,i))||s(t,n)})}else Mn(t,n,s),a[n]=[];r=a[n]}r.push(i)})},off:mt,one:function(t,e,n){t=En(t),t.on(e,function i(){t.off(e,n),t.off(e,i)}),t.on(e,n)},replaceWith:function(t,e){var n,i=t.parentNode;pt(t),o(new ht(e),function(e){n?i.insertBefore(e,n.nextSibling):i.replaceChild(e,t),n=e})},children:function(t){var e=[];return o(t.childNodes,function(t){1===t.nodeType&&e.push(t)}),e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){o(new ht(e),function(e){1!==t.nodeType&&11!==t.nodeType||t.appendChild(e)})},prepend:function(t,e){if(1===t.nodeType){var n=t.firstChild;o(new ht(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=En(e)[0];var n=t.parentNode;n&&n.replaceChild(e,t),e.appendChild(t)},remove:function(t){pt(t);var e=t.parentNode;e&&e.removeChild(t)},after:function(t,e){var n=t,i=t.parentNode;o(new ht(e),function(t){i.insertBefore(t,n.nextSibling),n=t})},addClass:_t,removeClass:bt,toggleClass:function(t,e,n){e&&o(e.split(" "),function(e){var i=n;v(i)&&(i=!Et(t,e)),(i?_t:bt)(t,e)})},parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},next:function(t){if(t.nextElementSibling)return t.nextElementSibling;for(var e=t.nextSibling;null!=e&&1!==e.nodeType;)e=e.nextSibling;return e},find:function(t,e){return t.getElementsByTagName?t.getElementsByTagName(e):[]},clone:ft,triggerHandler:function(t,e,n){var i,r,a,s=e.type||e,l=(vt(t,"events")||{})[s];l&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopPropagation:p,type:s,target:t},e.type&&(i=d(i,e)),r=M(l),a=n?[i].concat(n):[i],o(r,function(e){e.apply(t,a)}))}},function(t,e){ht.prototype[e]=function(e,n,i){for(var r,o=0;o<this.length;o++)v(r)?(r=t(this[o],e,n,i),y(r)&&(r=En(r))):Ct(r,t(this[o],e,n,i));return y(r)?r:this},ht.prototype.bind=ht.prototype.on,ht.prototype.unbind=ht.prototype.off}),Rt.prototype={put:function(t,e){this[wt(t,this.nextUid)]=e},get:function(t){return this[wt(t,this.nextUid)]},remove:function(t){var e=this[t=wt(t,this.nextUid)];return delete this[t],e}};var Yn=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,Xn=/,/,Jn=/^\s*(_?)(\S+?)\1\s*$/,Zn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Qn=i("$injector"),ti=i("$animate"),ei=["$provide",function(t){this.$$selectors={},this.register=function(e,n){var i=e+"-animation";if(e&&"."!=e.charAt(0))throw ti("notcsel","Expecting class selector starting with '.' got '{0}'.",e);this.$$selectors[e.substr(1)]=i,t.factory(i,n)},this.classNameFilter=function(t){return 1===arguments.length&&(this.$$classNameFilter=t instanceof RegExp?t:null),this.$$classNameFilter},this.$get=["$timeout","$$asyncCallback",function(t,e){function n(t){t&&e(t)}return{enter:function(t,e,i,r){i?i.after(t):(e&&e[0]||(e=i.parent()),e.append(t)),n(r)},leave:function(t,e){t.remove(),n(e)},move:function(t,e,n,i){this.enter(t,e,n,i)},addClass:function(t,e,i){e=b(e)?e:Rn(e)?e.join(" "):"",o(t,function(t){_t(t,e)}),n(i)},removeClass:function(t,e,i){e=b(e)?e:Rn(e)?e.join(" "):"",o(t,function(t){bt(t,e)}),n(i)},setClass:function(t,e,i,r){o(t,function(t){_t(t,e),bt(t,i)}),n(r)},enabled:p}}]}],ni=i("$compile");Lt.$inject=["$provide","$$sanitizeUriProvider"];var ii=/^(x[\:\-_]|data[\:\-_])/i,ri=i("$interpolate"),oi=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ai={http:80,https:443,ftp:21},si=i("$location");ue.prototype=ce.prototype=le.prototype={$$html5:!1,$$replace:!1,absUrl:de("$$absUrl"),url:function(t){if(v(t))return this.$$url;var e=oi.exec(t);return e[1]&&this.path(decodeURIComponent(e[1])),(e[2]||e[1])&&this.search(e[3]||""),this.hash(e[5]||""),this},protocol:de("$$protocol"),host:de("$$host"),port:de("$$port"),path:he("$$path",function(t){return t=null!==t?t.toString():"","/"==t.charAt(0)?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(b(t)||_(t))t=t.toString(),this.$$search=q(t);else{if(!E(t))throw si("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");o(t,function(e,n){null==e&&delete t[n]}),this.$$search=t}break;default:v(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this},hash:he("$$hash",function(t){return null!==t?t.toString():""}),replace:function(){return this.$$replace=!0,this}};var li,ci=i("$parse"),ui={},di=Function.prototype.call,hi=Function.prototype.apply,fi=Function.prototype.bind,pi={"null":function(){return null},"true":function(){return!0},"false":function(){return!1},undefined:p,"+":function(t,e,i,r){return i=i(t,e),r=r(t,e),y(i)?y(r)?i+r:i:y(r)?r:n},"-":function(t,e,n,i){return n=n(t,e),i=i(t,e),(y(n)?n:0)-(y(i)?i:0)},"*":function(t,e,n,i){return n(t,e)*i(t,e)},"/":function(t,e,n,i){return n(t,e)/i(t,e)},"%":function(t,e,n,i){return n(t,e)%i(t,e)},"^":function(t,e,n,i){return n(t,e)^i(t,e)},"=":p,"===":function(t,e,n,i){return n(t,e)===i(t,e)},"!==":function(t,e,n,i){return n(t,e)!==i(t,e)},"==":function(t,e,n,i){return n(t,e)==i(t,e)},"!=":function(t,e,n,i){return n(t,e)!=i(t,e)},"<":function(t,e,n,i){return n(t,e)<i(t,e)},">":function(t,e,n,i){return n(t,e)>i(t,e)},"<=":function(t,e,n,i){return n(t,e)<=i(t,e)},">=":function(t,e,n,i){return n(t,e)>=i(t,e)},"&&":function(t,e,n,i){return n(t,e)&&i(t,e)},"||":function(t,e,n,i){return n(t,e)||i(t,e)},"&":function(t,e,n,i){return n(t,e)&i(t,e)},"|":function(t,e,n,i){return i(t,e)(t,e,n(t,e))},"!":function(t,e,n){return!n(t,e)}},mi={n:"\n",f:"\f",r:"\r",t:"\t",v:"\x0B","'":"'",'"':'"'},gi=function(t){this.options=t};gi.prototype={constructor:gi,lex:function(t){for(this.text=t,this.index=0,this.ch=n,this.lastCh=":",this.tokens=[];this.index<this.text.length;){if(this.ch=this.text.charAt(this.index),this.is("\"'"))this.readString(this.ch);else if(this.isNumber(this.ch)||this.is(".")&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdent(this.ch))this.readIdent();else if(this.is("(){}[].,;:?"))this.tokens.push({index:this.index,text:this.ch}),this.index++;else{if(this.isWhitespace(this.ch)){this.index++;continue}var e=this.ch+this.peek(),i=e+this.peek(2),r=pi[this.ch],o=pi[e],a=pi[i];a?(this.tokens.push({index:this.index,text:i,fn:a}),this.index+=3):o?(this.tokens.push({index:this.index,text:e,fn:o}),this.index+=2):r?(this.tokens.push({index:this.index,text:this.ch,fn:r}),this.index+=1):this.throwError("Unexpected next character ",this.index,this.index+1)}this.lastCh=this.ch}return this.tokens},is:function(t){return-1!==t.indexOf(this.ch)},was:function(t){return-1!==t.indexOf(this.lastCh)},peek:function(t){var e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)},isNumber:function(t){return"0"<=t&&t<="9"},isWhitespace:function(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\x0B"===t||" "===t},isIdent:function(t){return"a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||"$"===t},isExpOperator:function(t){return"-"===t||"+"===t||this.isNumber(t)},throwError:function(t,e,n){n=n||this.index;var i=y(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n;throw ci("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,i,this.text)},readNumber:function(){for(var t="",e=this.index;this.index<this.text.length;){var n=fn(this.text.charAt(this.index));if("."==n||this.isNumber(n))t+=n;else{var i=this.peek();if("e"==n&&this.isExpOperator(i))t+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"==t.charAt(t.length-1))t+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!=t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}t*=1,this.tokens.push({index:e,text:t,literal:!0,constant:!0,fn:function(){return t}})},readIdent:function(){for(var t,e,n,i,r=this,o="",a=this.index;this.index<this.text.length&&("."===(i=this.text.charAt(this.index))||this.isIdent(i)||this.isNumber(i));)"."===i&&(t=this.index),o+=i,this.index++;if(t)for(e=this.index;e<this.text.length;){if("("===(i=this.text.charAt(e))){n=o.substr(t-a+1),o=o.substr(0,t-a),this.index=e;break}if(!this.isWhitespace(i))break;e++}var s={index:a,text:o};if(pi.hasOwnProperty(o))s.fn=pi[o],s.literal=!0,s.constant=!0;else{var l=Ce(o,this.options,this.text);s.fn=d(function(t,e){return l(t,e)},{assign:function(t,e){return ye(t,o,e,r.text,r.options)}})}this.tokens.push(s),n&&(this.tokens.push({index:t,text:"."}),this.tokens.push({index:t+1,text:n}))},readString:function(t){var e=this.index;this.index++;for(var n="",i=t,r=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(i+=o,r){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=mi[o]||o}r=!1}else if("\\"===o)r=!0;else{if(o===t)return this.index++,void this.tokens.push({index:e,text:i,string:n,literal:!0,constant:!0,fn:function(){return n}});n+=o}this.index++}this.throwError("Unterminated quote",e)}};var vi=function(t,e,n){this.lexer=t,this.$filter=e,this.options=n};vi.ZERO=d(function(){return 0},{constant:!0}),vi.prototype={constructor:vi,parse:function(t){this.text=t,this.tokens=this.lexer.lex(t);var e=this.statements();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e.literal=!!e.literal,e.constant=!!e.constant,e},primary:function(){var t;if(this.expect("("))t=this.filterChain(),this.consume(")");else if(this.expect("["))t=this.arrayDeclaration();else if(this.expect("{"))t=this.object();else{var e=this.expect();t=e.fn,t||this.throwError("not a primary expression",e),t.literal=!!e.literal,t.constant=!!e.constant}for(var n,i;n=this.expect("(","[",".");)"("===n.text?(t=this.functionCall(t,i),i=null):"["===n.text?(i=t,t=this.objectIndex(t)):"."===n.text?(i=t,t=this.fieldAccess(t)):this.throwError("IMPOSSIBLE");return t},throwError:function(t,e){throw ci("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))},peekToken:function(){if(0===this.tokens.length)throw ci("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){if(this.tokens.length>0){var r=this.tokens[0],o=r.text;if(o===t||o===e||o===n||o===i||!t&&!e&&!n&&!i)return r}return!1},expect:function(t,e,n,i){var r=this.peek(t,e,n,i);return!!r&&(this.tokens.shift(),r)},consume:function(t){this.expect(t)||this.throwError("is unexpected, expecting ["+t+"]",this.peek())},unaryFn:function(t,e){return d(function(n,i){return t(n,i,e)},{constant:e.constant})},ternaryFn:function(t,e,n){return d(function(i,r){return t(i,r)?e(i,r):n(i,r)},{constant:t.constant&&e.constant&&n.constant})},binaryFn:function(t,e,n){return d(function(i,r){return e(i,r,t,n)},{constant:t.constant&&n.constant})},statements:function(){for(var t=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.filterChain()),!this.expect(";"))return 1===t.length?t[0]:function(e,n){for(var i,r=0;r<t.length;r++){var o=t[r];o&&(i=o(e,n))}return i}},filterChain:function(){for(var t,e=this.expression();;){if(!(t=this.expect("|")))return e;e=this.binaryFn(e,t.fn,this.filter())}},filter:function(){for(var t=this.expect(),e=this.$filter(t.text),n=[];;){if(!(t=this.expect(":"))){var i=function(t,i,r){for(var o=[r],a=0;a<n.length;a++)o.push(n[a](t,i));return e.apply(t,o)};return function(){return i}}n.push(this.expression())}},expression:function(){return this.assignment()},assignment:function(){var t,e,n=this.ternary();return(e=this.expect("="))?(n.assign||this.throwError("implies assignment but ["+this.text.substring(0,e.index)+"] can not be assigned to",e),t=this.ternary(),function(e,i){return n.assign(e,t(e,i),i)}):n},ternary:function(){var t,e,n=this.logicalOR();return(e=this.expect("?"))?(t=this.assignment(),(e=this.expect(":"))?this.ternaryFn(n,t,this.assignment()):void this.throwError("expected :",e)):n},logicalOR:function(){for(var t,e=this.logicalAND();;){if(!(t=this.expect("||")))return e;e=this.binaryFn(e,t.fn,this.logicalAND())}},logicalAND:function(){var t,e=this.equality();return(t=this.expect("&&"))&&(e=this.binaryFn(e,t.fn,this.logicalAND())),e},equality:function(){var t,e=this.relational();return(t=this.expect("==","!=","===","!=="))&&(e=this.binaryFn(e,t.fn,this.equality())),e},relational:function(){var t,e=this.additive();return(t=this.expect("<",">","<=",">="))&&(e=this.binaryFn(e,t.fn,this.relational())),e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.fn,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.fn,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(vi.ZERO,t.fn,this.unary()):(t=this.expect("!"))?this.unaryFn(t.fn,this.unary()):this.primary()},fieldAccess:function(t){var e=this,n=this.expect().text,i=Ce(n,this.options,this.text);return d(function(e,n,r){return i(r||t(e,n))},{assign:function(i,r,o){var a=t(i,o);return a||t.assign(i,a={}),ye(a,n,r,e.text,e.options)}})},objectIndex:function(t){var e=this,i=this.expression();return this.consume("]"),d(function(r,o){var a,s,l=t(r,o),c=i(r,o);return me(c,e.text),l?(a=ge(l[c],e.text),a&&a.then&&e.options.unwrapPromises&&(s=a,"$$v"in a||(s.$$v=n,s.then(function(t){s.$$v=t})),a=a.$$v),a):n},{assign:function(n,r,o){var a=me(i(n,o),e.text),s=ge(t(n,o),e.text);return s||t.assign(n,s={}),s[a]=r}})},functionCall:function(t,e){var n=[];if(")"!==this.peekToken().text)do{n.push(this.expression())}while(this.expect(","));this.consume(")");var i=this;return function(r,o){for(var a=[],s=e?e(r,o):r,l=0;l<n.length;l++)a.push(ge(n[l](r,o),i.text));var c=t(r,o,s)||p;return ge(s,i.text),ve(c,i.text),ge(c.apply?c.apply(s,a):c(a[0],a[1],a[2],a[3],a[4]),i.text)}},arrayDeclaration:function(){var t=[],e=!0;if("]"!==this.peekToken().text)do{if(this.peek("]"))break;var n=this.expression();t.push(n),n.constant||(e=!1)}while(this.expect(","));return this.consume("]"),d(function(e,n){for(var i=[],r=0;r<t.length;r++)i.push(t[r](e,n));return i},{literal:!0,constant:e})},object:function(){var t=[],e=!0;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;var n=this.expect(),i=n.string||n.text;this.consume(":");var r=this.expression();t.push({key:i,value:r}),r.constant||(e=!1)}while(this.expect(","));return this.consume("}"),d(function(e,n){for(var i={},r=0;r<t.length;r++){var o=t[r];i[o.key]=o.value(e,n)}return i},{literal:!0,constant:e})}};var yi={},Ei={},bi=i("$sce"),_i={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ci=e.createElement("a"),Ti=Me(t.location.href,!0);Fe.$inject=["$provide"],je.$inject=["$locale"],Ve.$inject=["$locale"];var Ii=".",Di={yyyy:ze("FullYear",4),yy:ze("FullYear",2,0,!0),y:ze("FullYear",1),MMMM:Ge("Month"),MMM:Ge("Month",!0),MM:ze("Month",2,1),M:ze("Month",1,1),dd:ze("Date",2),d:ze("Date",1),HH:ze("Hours",2),H:ze("Hours",1),hh:ze("Hours",2,-12),h:ze("Hours",1,-12),mm:ze("Minutes",2),m:ze("Minutes",1),ss:ze("Seconds",2),s:ze("Seconds",1),sss:ze("Milliseconds",3),EEEE:Ge("Day"),EEE:Ge("Day",!0),a:We,Z:qe},$i=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,Oi=/^\-?\d+$/;Ye.$inject=["$locale"];var wi=g(fn),Ri=g(mn);Ze.$inject=["$parse"];var ki=g({restrict:"E",compile:function(t,n){if(yn<=8&&(n.href||n.name||n.$set("href",""),t.append(e.createComment("IE fix"))),!n.href&&!n.xlinkHref&&!n.name)return function(t,e){var n="[object SVGAnimatedString]"===Dn.call(e.prop("href"))?"xlink:href":"href";e.on("click",function(t){e.attr(n)||t.preventDefault()})}}}),xi={};o(qn,function(t,e){if("multiple"!=t){var n=Ft("ng-"+e);xi[n]=function(){return{priority:100,link:function(t,i,r){t.$watch(r[n],function(t){r.$set(e,!!t)})}}}}}),o(["src","srcset","href"],function(t){var e=Ft("ng-"+t);xi[e]=function(){return{priority:99,link:function(n,i,r){var o=t,a=t;"href"===t&&"[object SVGAnimatedString]"===Dn.call(i.prop("href"))&&(a="xlinkHref",r.$attr[a]="xlink:href",o=null),r.$observe(e,function(e){if(!e)return void("href"===t&&r.$set(a,null));r.$set(a,e),yn&&o&&i.prop(o,r[a])})}}}});var Si={$addControl:p,$removeControl:p,$setValidity:p,$setDirty:p,$setPristine:p};tn.$inject=["$element","$attrs","$scope","$animate"];var Ai=function(t){return["$timeout",function(e){return{name:"form",restrict:t?"EAC":"E",controller:tn,compile:function(){return{pre:function(t,i,r,o){if(!r.action){var a=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1};Mn(i[0],"submit",a),i.on("$destroy",function(){e(function(){Kn(i[0],"submit",a)},0,!1)})}var s=i.parent().controller("form"),l=r.name||r.ngForm;l&&ye(t,l,o,l),s&&i.on("$destroy",function(){s.$removeControl(o),l&&ye(t,l,n,l),d(o,Si)})}}}}}]},Ni=Ai(),Pi=Ai(!0),Mi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Ki=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Li=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Fi={text:on,number:an,url:sn,email:ln,radio:cn,checkbox:un,hidden:p,button:p,submit:p,reset:p,file:p},Bi=["badInput"],ji=["$browser","$sniffer",function(t,e){return{restrict:"E",require:"?ngModel",link:function(n,i,r,o){o&&(Fi[fn(r.type)]||Fi.text)(n,i,r,o,e,t)}}}],Vi="ng-valid",Hi="ng-invalid",Ui="ng-pristine",zi="ng-dirty",Gi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate",function(t,e,n,r,a,s){function l(t,e){e=e?"-"+Q(e,"-"):"",s.removeClass(r,(t?Hi:Vi)+e),s.addClass(r,(t?Vi:Hi)+e)}this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$name=n.name;var c=a(n.ngModel),u=c.assign;if(!u)throw i("ngModel")("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,z(r));this.$render=p,this.$isEmpty=function(t){return v(t)||""===t||null===t||t!==t};var d=r.inheritedData("$formController")||Si,h=0,f=this.$error={};r.addClass(Ui),l(!0),this.$setValidity=function(t,e){f[t]!==!e&&(e?(f[t]&&h--,h||(l(!0),this.$valid=!0,this.$invalid=!1)):(l(!1),this.$invalid=!0,this.$valid=!1,h++),f[t]=!e,l(e,t),d.$setValidity(t,e,this))},this.$setPristine=function(){this.$dirty=!1,this.$pristine=!0,s.removeClass(r,zi),s.addClass(r,Ui)},this.$setViewValue=function(n){this.$viewValue=n,this.$pristine&&(this.$dirty=!0,this.$pristine=!1,s.removeClass(r,Ui),s.addClass(r,zi),d.$setDirty()),o(this.$parsers,function(t){n=t(n)}),this.$modelValue!==n&&(this.$modelValue=n,u(t,n),o(this.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}}))};var m=this;t.$watch(function(){var e=c(t);if(m.$modelValue!==e){var n=m.$formatters,i=n.length;for(m.$modelValue=e;i--;)e=n[i](e);m.$viewValue!==e&&(m.$viewValue=e,m.$render())}return e})}],qi=function(){return{require:["ngModel","^?form"],controller:Gi,link:function(t,e,n,i){var r=i[0],o=i[1]||Si;o.$addControl(r),t.$on("$destroy",function(){o.$removeControl(r)})}}},Wi=g({require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}}),Yi=function(){return{require:"?ngModel",link:function(t,e,n,i){if(i){n.required=!0;var r=function(t){return n.required&&i.$isEmpty(t)?void i.$setValidity("required",!1):(i.$setValidity("required",!0),t)};i.$formatters.push(r),i.$parsers.unshift(r),n.$observe("required",function(){r(i.$viewValue)})}}}},Xi=function(){return{require:"ngModel",link:function(t,e,i,r){var a=/\/(.*)\//.exec(i.ngList),s=a&&new RegExp(a[1])||i.ngList||",",l=function(t){if(!v(t)){var e=[];return t&&o(t.split(s),function(t){t&&e.push(kn(t))}),e}};r.$parsers.push(l),r.$formatters.push(function(t){return Rn(t)?t.join(", "):n}),r.$isEmpty=function(t){return!t||!t.length}}}},Ji=/^(true|false|\d+)$/,Zi=function(){return{priority:100,compile:function(t,e){return Ji.test(e.ngValue)?function(t,e,n){n.$set("value",t.$eval(n.ngValue))}:function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}},Qi=Qe({compile:function(t){return t.addClass("ng-binding"),function(t,e,i){e.data("$binding",i.ngBind),t.$watch(i.ngBind,function(t){e.text(t==n?"":t)})}}}),tr=["$interpolate",function(t){return function(e,n,i){var r=t(n.attr(i.$attr.ngBindTemplate));n.addClass("ng-binding").data("$binding",r),i.$observe("ngBindTemplate",function(t){n.text(t)})}}],er=["$sce","$parse",function(t,e){return{compile:function(n){return n.addClass("ng-binding"),function(n,i,r){function o(){return(a(n)||"").toString()}i.data("$binding",r.ngBindHtml);var a=e(r.ngBindHtml);n.$watch(o,function(e){i.html(t.getTrustedHtml(a(n))||"")})}}}}],nr=dn("",!0),ir=dn("Odd",0),rr=dn("Even",1),or=Qe({compile:function(t,e){e.$set("ngCloak",n),t.removeClass("ng-cloak")}}),ar=[function(){return{scope:!0,controller:"@",priority:500}}],sr={},lr={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=Ft("ng-"+t);sr[e]=["$parse","$rootScope",function(n,i){return{compile:function(r,o){var a=n(o[e],!0);return function(e,n){n.on(t,function(n){var r=function(){a(e,{$event:n})};lr[t]&&i.$$phase?e.$evalAsync(r):e.$apply(r)})}}}}]});var cr=["$animate",function(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,a){var s,l,c;n.$watch(r.ngIf,function(o){U(o)?l||(l=n.$new(),a(l,function(n){n[n.length++]=e.createComment(" end ngIf: "+r.ngIf+" "),s={clone:n},t.enter(n,i.parent(),i)})):(c&&(c.remove(),c=null),l&&(l.$destroy(),l=null),s&&(c=rt(s.clone),t.leave(c,function(){c=null}),s=null))})}}}],ur=["$http","$templateCache","$anchorScroll","$animate","$sce",function(t,e,n,i,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:On.noop,compile:function(o,a){var s=a.ngInclude||a.src,l=a.onload||"",c=a.autoscroll;return function(o,a,u,d,h){var f,p,m,g=0,v=function(){p&&(p.remove(),p=null),f&&(f.$destroy(),f=null),m&&(i.leave(m,function(){p=null}),p=m,m=null)};o.$watch(r.parseAsResourceUrl(s),function(r){var s=function(){!y(c)||c&&!o.$eval(c)||n()},u=++g;r?(t.get(r,{cache:e}).success(function(t){if(u===g){var e=o.$new();d.template=t;var n=h(e,function(t){v(),i.enter(t,null,a,s)});f=e,m=n,f.$emit("$includeContentLoaded"),o.$eval(l)}}).error(function(){u===g&&v()}),o.$emit("$includeContentRequested")):(v(),d.template=null)})}}}}],dr=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(e,n,i,r){n.html(r.template),t(n.contents())(e)}}}],hr=Qe({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),fr=Qe({terminal:!0,priority:1e3}),pr=["$locale","$interpolate",function(t,e){var n=/{}/g;return{restrict:"EA",link:function(i,r,a){var s=a.count,l=a.$attr.when&&r.attr(a.$attr.when),c=a.offset||0,u=i.$eval(l)||{},d={},h=e.startSymbol(),f=e.endSymbol(),p=/^when(Minus)?(.+)$/;o(a,function(t,e){p.test(e)&&(u[fn(e.replace("when","").replace("Minus","-"))]=r.attr(a.$attr[e]))}),o(u,function(t,i){d[i]=e(t.replace(n,h+s+"-"+c+f))}),i.$watch(function(){var e=parseFloat(i.$eval(s));return isNaN(e)?"":(e in u||(e=t.pluralCat(e-c)),d[e](i,r,!0))},function(t){r.text(t)})}}}],mr=["$parse","$animate",function(t,n){function a(t){return t.clone[0]}function s(t){return t.clone[t.clone.length-1]}var l=i("ngRepeat");return{transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,link:function(i,c,u,d,h){var f,p,m,g,v,y,E,b,_,C=u.ngRepeat,T=C.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),I={$id:wt};if(!T)throw l("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",C);if(y=T[1],E=T[2],f=T[3],f?(p=t(f),m=function(t,e,n){return _&&(I[_]=t),I[b]=e,I.$index=n,p(i,I)}):(g=function(t,e){return wt(e)},v=function(t){return t}),!(T=y.match(/^(?:([\$\w]+)|\(([\$\w]+)\s*,\s*([\$\w]+)\))$/)))throw l("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",y);b=T[3]||T[1],_=T[2];var D={};i.$watchCollection(E,function(t){var u,d,f,p,y,E,T,I,$,O,w,R,k=c[0],x={},S=[];if(r(t))O=t,$=m||g;else{$=m||v,O=[];for(E in t)t.hasOwnProperty(E)&&"$"!=E.charAt(0)&&O.push(E);O.sort()}for(p=O.length,d=S.length=O.length,u=0;u<d;u++)if(E=t===O?u:O[u],T=t[E],I=$(E,T,u),nt(I,"`track by` id"),D.hasOwnProperty(I))w=D[I],delete D[I],x[I]=w,S[u]=w;else{if(x.hasOwnProperty(I))throw o(S,function(t){t&&t.scope&&(D[t.id]=t)}),l("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",C,I,V(T));S[u]={id:I},x[I]=!1}for(E in D)D.hasOwnProperty(E)&&(w=D[E],R=rt(w.clone),n.leave(R),o(R,function(t){t.$$NG_REMOVED=!0}),w.scope.$destroy());for(u=0,d=O.length;u<d;u++){if(E=t===O?u:O[u],T=t[E],w=S[u],S[u-1]&&(k=s(S[u-1])),w.scope){y=w.scope,f=k;do{f=f.nextSibling}while(f&&f.$$NG_REMOVED);a(w)!=f&&n.move(rt(w.clone),null,En(k)),k=s(w)}else y=i.$new();y[b]=T,_&&(y[_]=E),y.$index=u,y.$first=0===u,y.$last=u===p-1,y.$middle=!(y.$first||y.$last),y.$odd=!(y.$even=0==(1&u)),w.scope||h(y,function(t){t[t.length++]=e.createComment(" end ngRepeat: "+C+" "),n.enter(t,null,En(k)),k=t,w.scope=y,w.clone=t,x[w.id]=w})}D=x})}}}],gr=["$animate",function(t){return function(e,n,i){e.$watch(i.ngShow,function(e){t[U(e)?"removeClass":"addClass"](n,"ng-hide")})}}],vr=["$animate",function(t){return function(e,n,i){e.$watch(i.ngHide,function(e){t[U(e)?"addClass":"removeClass"](n,"ng-hide")})}}],yr=Qe(function(t,e,n){t.$watch(n.ngStyle,function(t,n){n&&t!==n&&o(n,function(t,n){e.css(n,"")}),t&&e.css(t)},!0)}),Er=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(e,n,i,r){var a=i.ngSwitch||i.on,s=[],l=[],c=[],u=[];e.$watch(a,function(n){var a,d;for(a=0,d=c.length;a<d;++a)c[a].remove();for(c.length=0,a=0,d=u.length;a<d;++a){var h=l[a];u[a].$destroy(),c[a]=h,t.leave(h,function(){c.splice(a,1)})}l.length=0,u.length=0,(s=r.cases["!"+n]||r.cases["?"])&&(e.$eval(i.change),o(s,function(n){var i=e.$new();u.push(i),n.transclude(i,function(e){var i=n.element;l.push(e),t.enter(e,i.parent(),i)})}))})}}}],br=Qe({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,i,r){i.cases["!"+n.ngSwitchWhen]=i.cases["!"+n.ngSwitchWhen]||[],i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:e})}}),_r=Qe({transclude:"element",priority:800,require:"^ngSwitch",link:function(t,e,n,i,r){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:r,element:e})}}),Cr=Qe({link:function(t,e,n,r,o){if(!o)throw i("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",z(e));o(function(t){e.empty(),e.append(t)})}}),Tr=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if("text/ng-template"==n.type){var i=n.id,r=e[0].text;t.put(i,r)}}}}],Ir=i("ngOptions"),Dr=g({terminal:!0}),$r=["$compile","$parse",function(t,i){var r=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,s={$setViewValue:p};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var i,r,o=this,a={},l=s;o.databound=n.ngModel,o.init=function(t,e,n){l=t,i=e,r=n},o.addOption=function(e){nt(e,'"option value"'),a[e]=!0,l.$viewValue==e&&(t.val(e),r.parent()&&r.remove())},o.removeOption=function(t){this.hasOption(t)&&(delete a[t],l.$viewValue==t&&this.renderUnknownOption(t))},o.renderUnknownOption=function(e){var n="? "+wt(e)+" ?";r.val(n),t.prepend(r),t.val(n),r.prop("selected",!0)},o.hasOption=function(t){return a.hasOwnProperty(t)},e.$on("$destroy",function(){o.renderUnknownOption=p})}],link:function(s,l,c,u){if(u[1]){for(var d,h=u[0],f=u[1],p=c.multiple,m=c.ngOptions,g=!1,E=En(e.createElement("option")),b=En(e.createElement("optgroup")),_=E.clone(),C=0,T=l.children(),I=T.length;C<I;C++)if(""===T[C].value){d=g=T.eq(C);break}h.init(f,g,_),p&&(f.$isEmpty=function(t){return!t||0===t.length}),m?function(e,o,s){function l(){var t=!1;if(p){var n=s.$modelValue;if(D&&Rn(n)){t=new Rt([]);for(var i={},r=0;r<n.length;r++)i[f]=n[r],t.put(D(e,i),n[r])}else t=new Rt(n)}return t}function c(){var t,n,i,r,c,u,m,I,O,w,R,k,x,S,A,N={"":[]},P=[""],M=s.$modelValue,K=T(e)||[],L=v?a(K):K,F={},B=l();for(R=0;O=L.length,R<O;R++){if(m=R,v){if(m=L[R],"$"===m.charAt(0))continue;F[v]=m}if(F[f]=K[m],t=_(e,F)||"",(n=N[t])||(n=N[t]=[],P.push(t)),p)k=y(B.remove(D?D(e,F):C(e,F)));else{if(D){var j={};j[f]=M,k=D(e,j)===D(e,F)}else k=M===C(e,F);B=B||k}A=d(e,F),A=y(A)?A:"",n.push({id:D?D(e,F):v?L[R]:R,label:A,selected:k})}for(p||(g||null===M?N[""].unshift({id:"",label:"",selected:!B}):B||N[""].unshift({id:"?",label:"",selected:!0})),w=0,I=P.length;w<I;w++){for(t=P[w],n=N[t],$.length<=w?(r={element:b.clone().attr("label",t),label:n.label},c=[r],$.push(c),o.append(r.element)):(c=$[w],r=c[0],r.label!=t&&r.element.attr("label",r.label=t)),x=null,R=0,O=n.length;R<O;R++)i=n[R],(u=c[R+1])?(x=u.element,u.label!==i.label&&(x.text(u.label=i.label),x.prop("label",u.label)),u.id!==i.id&&x.val(u.id=i.id),x[0].selected!==i.selected&&(x.prop("selected",u.selected=i.selected),yn&&x.prop("selected",u.selected))):(""===i.id&&g?S=g:(S=E.clone()).val(i.id).prop("selected",i.selected).attr("selected",i.selected).prop("label",i.label).text(i.label),c.push(u={element:S,label:i.label,id:i.id,selected:i.selected}),h.addOption(i.label,S),x?x.after(S):r.element.append(S),x=S);for(R++;c.length>R;)i=c.pop(),h.removeOption(i.label),i.element.remove()}for(;$.length>w;)$.pop()[0].element.remove()}var u;if(!(u=m.match(r)))throw Ir("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",m,z(o));var d=i(u[2]||u[1]),f=u[4]||u[6],v=u[5],_=i(u[3]||""),C=i(u[2]?u[1]:f),T=i(u[7]),I=u[8],D=I?i(u[8]):null,$=[[{element:o,label:""}]];g&&(t(g)(e),g.removeClass("ng-scope"),g.remove()),o.empty(),o.on("change",function(){e.$apply(function(){var t,i,r,a,l,u,d,h,m,g=T(e)||[],y={};if(p){for(r=[],u=0,h=$.length;u<h;u++)for(t=$[u],l=1,d=t.length;l<d;l++)if((a=t[l].element)[0].selected){if(i=a.val(),v&&(y[v]=i),D)for(m=0;m<g.length&&(y[f]=g[m],D(e,y)!=i);m++);else y[f]=g[i];r.push(C(e,y))}}else if("?"==(i=o.val()))r=n;else if(""===i)r=null;else if(D){for(m=0;m<g.length;m++)if(y[f]=g[m],D(e,y)==i){r=C(e,y);break}}else y[f]=g[i],v&&(y[v]=i),r=C(e,y);s.$setViewValue(r),c()})}),s.$render=c,e.$watchCollection(T,c),e.$watchCollection(function(){var t={},n=T(e);if(n){for(var i=new Array(n.length),r=0,o=n.length;r<o;r++)t[f]=n[r],i[r]=d(e,t);return i}},c),p&&e.$watchCollection(function(){return s.$modelValue},c)}(s,l,f):p?function(t,e,n){var i;n.$render=function(){var t=new Rt(n.$viewValue);o(e.find("option"),function(e){e.selected=y(t.get(e.value))})},t.$watch(function(){K(i,n.$viewValue)||(i=M(n.$viewValue),n.$render())}),e.on("change",function(){t.$apply(function(){var t=[];o(e.find("option"),function(e){e.selected&&t.push(e.value)}),n.$setViewValue(t)})})}(s,l,f):function(t,e,n,i){n.$render=function(){var t=n.$viewValue;i.hasOption(t)?(_.parent()&&_.remove(),e.val(t),""===t&&d.prop("selected",!0)):v(t)&&d?e.val(""):i.renderUnknownOption(t)},e.on("change",function(){t.$apply(function(){_.parent()&&_.remove(),n.$setViewValue(e.val())})})}(s,l,f,h)}}}}],Or=["$interpolate",function(t){var e={addOption:p,removeOption:p};return{restrict:"E",priority:100,compile:function(n,i){if(v(i.value)){var r=t(n.text(),!0);r||i.$set("value",n.text())}return function(t,n,i){var o=n.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.databound?n.prop("selected",!1):a=e,r?t.$watch(r,function(t,e){i.$set("value",t),t!==e&&a.removeOption(e),a.addOption(t)}):a.addOption(i.value),n.on("$destroy",function(){a.removeOption(i.value)})}}}}],wr=g({restrict:"E",terminal:!0});if(t.angular.bootstrap)return void console.log("WARNING: Tried to load angular more than once.");!function(){bn=t.jQuery,bn&&bn.fn.on?(En=bn,d(bn.fn,{scope:Gn.scope,isolateScope:Gn.isolateScope,controller:Gn.controller,injector:Gn.injector,inheritedData:Gn.inheritedData}),lt("remove",!0,!0,!1),lt("empty",!1,!1,!1),lt("html",!1,!1,!0)):En=ht,On.element=En}(),function(e){d(e,{bootstrap:Z,copy:P,extend:d,equals:K,element:En,forEach:o,injector:xt,noop:p,bind:B,toJson:V,fromJson:H,identity:m,isUndefined:v,isDefined:y,isString:b,isFunction:T,isObject:E,isNumber:_,isElement:k,isArray:Rn,version:An,isDate:C,lowercase:fn,uppercase:mn,callbacks:{counter:0},$$minErr:i,$$csp:xn}),_n=ot(t);try{_n("ngLocale")}catch(n){_n("ngLocale",[]).provider("$locale",te)}_n("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:we}),t.provider("$compile",Lt).directive({a:ki,input:ji,textarea:ji,form:Ni,script:Tr,select:$r,style:wr,option:Or,ngBind:Qi,ngBindHtml:er,ngBindTemplate:tr,ngClass:nr,ngClassEven:rr,ngClassOdd:ir,ngCloak:or,ngController:ar,ngForm:Pi,ngHide:vr,ngIf:cr,ngInclude:ur,ngInit:hr,ngNonBindable:fr,ngPluralize:pr,ngRepeat:mr,ngShow:gr,ngStyle:yr,ngSwitch:Er,ngSwitchWhen:br,ngSwitchDefault:_r,ngOptions:Dr,ngTransclude:Cr,ngModel:qi,ngList:Xi,ngChange:Wi,required:Yi,ngRequired:Yi,ngValue:Zi}).directive({ngInclude:dr}).directive(xi).directive(sr),t.provider({$anchorScroll:St,$animate:ei,$browser:Pt,$cacheFactory:Mt,$controller:jt,$document:Vt,$exceptionHandler:Ht,$filter:Fe,$interpolate:Zt,$interval:Qt,$http:Wt,$httpBackend:Xt,$location:fe,$log:pe,$parse:Te,$rootScope:Oe,$q:Ie,$sce:Ae,$sceDelegate:Se,$sniffer:Ne,$templateCache:Kt,$timeout:Pe,$window:Le,$$rAF:$e,$$asyncCallback:At})}])}(On),En(e).ready(function(){J(e,Z)})}(window,document),!window.angular.$$csp()&&window.angular.element(document).find("head").prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide{display:none !important;}ng\\:form{display:block;}.ng-animate-block-transitions{transition:0s all!important;-webkit-transition:0s all!important;}.ng-hide-add-active,.ng-hide-remove{display:block!important;}</style>'),t.exports=angular},26:function(t,e,n){var i=n(22);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},27:function(t,e){/** * State-based routing for AngularJS * @version v0.3.1 * @link http://angular-ui.github.com/ * @license MIT License, http://www.opensource.org/licenses/MIT */ void 0!==t&&void 0!==e&&t.exports===e&&(t.exports="ui.router"),function(t,e,n){"use strict";function i(t,e){return H(new(H(function(){},{prototype:t})),e)}function r(t){return V(arguments,function(e){e!==t&&V(e,function(e,n){t.hasOwnProperty(n)||(t[n]=e)})}),t}function o(t,e){var n=[];for(var i in t.path){if(t.path[i]!==e.path[i])break;n.push(t.path[i])}return n}function a(t){if(Object.keys)return Object.keys(t);var e=[];return V(t,function(t,n){e.push(n)}),e}function s(t,e){if(Array.prototype.indexOf)return t.indexOf(e,Number(arguments[2])||0);var n=t.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=n);i<n;i++)if(i in t&&t[i]===e)return i;return-1}function l(t,e,n,i){var r,l=o(n,i),c={},u=[];for(var d in l)if(l[d]&&l[d].params&&(r=a(l[d].params),r.length))for(var h in r)s(u,r[h])>=0||(u.push(r[h]),c[r[h]]=t[r[h]]);return H({},c,e)}function c(t,e,n){if(!n){n=[];for(var i in t)n.push(i)}for(var r=0;r<n.length;r++){var o=n[r];if(t[o]!=e[o])return!1}return!0}function u(t,e){var n={};return V(t,function(t){n[t]=e[t]}),n}function d(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return V(n,function(n){n in t&&(e[n]=t[n])}),e}function h(t){var e={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var i in t)-1==s(n,i)&&(e[i]=t[i]);return e}function f(t,e){var n=j(t),i=n?[]:{};return V(t,function(t,r){e(t,r)&&(i[n?i.length:r]=t)}),i}function p(t,e){var n=j(t)?[]:{};return V(t,function(t,i){n[i]=e(t,i)}),n}function m(t,e){var i=1,o=2,l={},c=[],u=l,d=H(t.when(l),{$$promises:l,$$values:l});this.study=function(l){function f(t,n){if(y[n]!==o){if(v.push(n),y[n]===i)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(y[n]=i,F(t))g.push(n,[function(){return e.get(t)}],c);else{var r=e.annotate(t);V(r,function(t){t!==n&&l.hasOwnProperty(t)&&f(l[t],t)}),g.push(n,t,r)}v.pop(),y[n]=o}}function p(t){return B(t)&&t.then&&t.$$promises}if(!B(l))throw new Error("'invocables' must be an object");var m=a(l||{}),g=[],v=[],y={};return V(l,f),l=v=y=null,function(i,o,a){function s(){--E||(b||r(y,o.$$values),f.$$values=y,f.$$promises=f.$$promises||!0,delete f.$$inheritedValues,c.resolve(y))}function l(t){f.$$failure=t,c.reject(t)}if(p(i)&&a===n&&(a=o,o=i,i=null),i){if(!B(i))throw new Error("'locals' must be an object")}else i=u;if(o){if(!p(o))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else o=d;var c=t.defer(),f=c.promise,v=f.$$promises={},y=H({},i),E=1+g.length/3,b=!1;if(K(o.$$failure))return l(o.$$failure),f;o.$$inheritedValues&&r(y,h(o.$$inheritedValues,m)),H(v,o.$$promises),o.$$values?(b=r(y,h(o.$$values,m)),f.$$inheritedValues=h(o.$$values,m),s()):(o.$$inheritedValues&&(f.$$inheritedValues=h(o.$$inheritedValues,m)),o.then(s,l));for(var _=0,C=g.length;_<C;_+=3)i.hasOwnProperty(g[_])?s():function(n,r,o){function c(t){d.reject(t),l(t)}function u(){if(!K(f.$$failure))try{d.resolve(e.invoke(r,a,y)),d.promise.then(function(t){y[n]=t,s()},c)}catch(t){c(t)}}var d=t.defer(),h=0;V(o,function(t){v.hasOwnProperty(t)&&!i.hasOwnProperty(t)&&(h++,v[t].then(function(e){y[t]=e,--h||u()},c))}),h||u(),v[n]=d.promise}(g[_],g[_+1],g[_+2]);return f}},this.resolve=function(t,e,n,i){return this.study(t)(e,n,i)}}function g(t,e,n){this.fromConfig=function(t,e,n){return K(t.template)?this.fromString(t.template,e):K(t.templateUrl)?this.fromUrl(t.templateUrl,e):K(t.templateProvider)?this.fromProvider(t.templateProvider,e,n):null},this.fromString=function(t,e){return L(t)?t(e):t},this.fromUrl=function(n,i){return L(n)&&(n=n(i)),null==n?null:t.get(n,{cache:e,headers:{Accept:"text/html"}}).then(function(t){return t.data})},this.fromProvider=function(t,e,i){return n.invoke(t,null,i||{params:e})}}function v(t,e,r){function o(e,n,i,r){if(g.push(e),p[e])return p[e];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(e))throw new Error("Invalid parameter name '"+e+"' in pattern '"+t+"'");if(m[e])throw new Error("Duplicate parameter name '"+e+"' in pattern '"+t+"'");return m[e]=new G.Param(e,n,i,r),m[e]}function a(t,e,n,i){var r=["",""],o=t.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!e)return o;switch(n){case!1:r=["(",")"+(i?"?":"")];break;case!0:o=o.replace(/\/$/,""),r=["(?:/(",")|/)?"];break;default:r=["("+n+"|",")?"]}return o+r[0]+e+r[1]}function s(r,o){var a,s,l,c,u;return a=r[2]||r[3],u=e.params[a],l=t.substring(h,r.index),s=o?r[4]:r[4]||("*"==r[1]?".*":null),s&&(c=G.type(s)||i(G.type("string"),{pattern:new RegExp(s,e.caseInsensitive?"i":n)})),{id:a,regexp:s,segment:l,type:c,cfg:u}}e=H({params:{}},B(e)?e:{});var l,c=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d="^",h=0,f=this.segments=[],p=r?r.params:{},m=this.params=r?r.params.$$new():new G.ParamSet,g=[];this.source=t;for(var v,y,E;(l=c.exec(t))&&(v=s(l,!1),!(v.segment.indexOf("?")>=0));)y=o(v.id,v.type,v.cfg,"path"),d+=a(v.segment,y.type.pattern.source,y.squash,y.isOptional),f.push(v.segment),h=c.lastIndex;E=t.substring(h);var b=E.indexOf("?");if(b>=0){var _=this.sourceSearch=E.substring(b);if(E=E.substring(0,b),this.sourcePath=t.substring(0,h+b),_.length>0)for(h=0;l=u.exec(_);)v=s(l,!0),y=o(v.id,v.type,v.cfg,"search"),h=c.lastIndex}else this.sourcePath=t,this.sourceSearch="";d+=a(E)+(!1===e.strict?"/?":"")+"$",f.push(E),this.regexp=new RegExp(d,e.caseInsensitive?"i":n),this.prefix=f[0],this.$$paramNames=g}function y(t){H(this,t)}function E(){function t(t){return null!=t?t.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):t}function r(t){return null!=t?t.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):t}function o(){return{strict:m,caseInsensitive:h}}function l(t){return L(t)||j(t)&&L(t[t.length-1])}function c(){for(;C.length;){var t=C.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");e.extend(b[t.name],d.invoke(t.def))}}function u(t){H(this,t||{})}G=this;var d,h=!1,m=!0,g=!1,b={},_=!0,C=[],T={string:{encode:t,decode:r,is:function(t){return null==t||!K(t)||"string"==typeof t},pattern:/[^\/]*/},"int":{encode:t,decode:function(t){return parseInt(t,10)},is:function(t){return K(t)&&this.decode(t.toString())===t},pattern:/\d+/},bool:{encode:function(t){return t?1:0},decode:function(t){return 0!==parseInt(t,10)},is:function(t){return!0===t||!1===t},pattern:/0|1/},date:{encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):n},decode:function(t){if(this.is(t))return t;var e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):n},is:function(t){return t instanceof Date&&!isNaN(t.valueOf())},equals:function(t,e){return this.is(t)&&this.is(e)&&t.toISOString()===e.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:e.toJson,decode:e.fromJson,is:e.isObject,equals:e.equals,pattern:/[^\/]*/},any:{encode:e.identity,decode:e.identity,equals:e.equals,pattern:/.*/}};E.$$getDefaultValue=function(t){if(!l(t.value))return t.value;if(!d)throw new Error("Injectable functions cannot be called at configuration time");return d.invoke(t.value)},this.caseInsensitive=function(t){return K(t)&&(h=t),h},this.strictMode=function(t){return K(t)&&(m=t),m},this.defaultSquashPolicy=function(t){if(!K(t))return g;if(!0!==t&&!1!==t&&!F(t))throw new Error("Invalid squash policy: "+t+". Valid policies: false, true, arbitrary-string");return g=t,t},this.compile=function(t,e){return new v(t,H(o(),e))},this.isMatcher=function(t){if(!B(t))return!1;var e=!0;return V(v.prototype,function(n,i){L(n)&&(e=e&&K(t[i])&&L(t[i]))}),e},this.type=function(t,e,n){if(!K(e))return b[t];if(b.hasOwnProperty(t))throw new Error("A type named '"+t+"' has already been defined.");return b[t]=new y(H({name:t},e)),n&&(C.push({name:t,def:n}),_||c()),this},V(T,function(t,e){b[e]=new y(H({name:e},t))}),b=i(b,{}),this.$get=["$injector",function(t){return d=t,_=!1,c(),V(T,function(t,e){b[e]||(b[e]=new y(t))}),this}],this.Param=function(t,i,r,o){function c(){if(!d)throw new Error("Injectable functions cannot be called at configuration time");var t=d.invoke(r.$$fn);if(null!==t&&t!==n&&!m.type.is(t))throw new Error("Default value ("+t+") for parameter '"+m.id+"' is not an instance of Type ("+m.type.name+")");return t}function u(t){function e(t){return function(e){return e.from===t}}return t=function(t){var n=p(f(m.replace,e(t)),function(t){return t.to});return n.length?n[0]:t}(t),K(t)?m.type.$normalize(t):c()}function h(){return"{Param:"+t+" "+i+" squash: '"+_+"' optional: "+E+"}"}var m=this;r=function(t){var e=B(t)?a(t):[];return-1===s(e,"value")&&-1===s(e,"type")&&-1===s(e,"squash")&&-1===s(e,"array")&&(t={value:t}),t.$$fn=l(t.value)?t.value:function(){return t.value},t}(r),i=function(n,i,r){if(n.type&&i)throw new Error("Param '"+t+"' has two type configurations.");return i||(n.type?e.isString(n.type)?b[n.type]:n.type instanceof y?n.type:new y(n.type):"config"===r?b.any:b.string)}(r,i,o);var v=function(){var e={array:"search"===o&&"auto"},n=t.match(/\[\]$/)?{array:!0}:{};return H(e,n,r).array}();i=v?i.$asArray(v,"search"===o):i,"string"!==i.name||v||"path"!==o||r.value!==n||(r.value="");var E=r.value!==n,_=function(t,e){var n=t.squash;if(!e||!1===n)return!1;if(!K(n)||null==n)return g;if(!0===n||F(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(r,E),C=function(t,e,i,r){var o,a,l=[{from:"",to:i||e?n:""},{from:null,to:i||e?n:""}];return o=j(t.replace)?t.replace:[],F(r)&&o.push({from:r,to:n}),a=p(o,function(t){return t.from}),f(l,function(t){return-1===s(a,t.from)}).concat(o)}(r,v,E,_);H(this,{id:t,type:i,location:o,array:v,squash:_,replace:C,isOptional:E,value:u,dynamic:n,config:r,toString:h})},u.prototype={$$new:function(){return i(this,H(new u,{$$parent:this}))},$$keys:function(){for(var t=[],e=[],n=this,i=a(u.prototype);n;)e.push(n),n=n.$$parent;return e.reverse(),V(e,function(e){V(a(e),function(e){-1===s(t,e)&&-1===s(i,e)&&t.push(e)})}),t},$$values:function(t){var e={},n=this;return V(n.$$keys(),function(i){e[i]=n[i].value(t&&t[i])}),e},$$equals:function(t,e){var n=!0,i=this;return V(i.$$keys(),function(r){var o=t&&t[r],a=e&&e[r];i[r].type.equals(o,a)||(n=!1)}),n},$$validates:function(t){var i,r,o,a,s,l=this.$$keys();for(i=0;i<l.length&&(r=this[l[i]],(o=t[l[i]])!==n&&null!==o||!r.isOptional);i++){if(a=r.type.$normalize(o),!r.type.is(a))return!1;if(s=r.type.encode(a),e.isString(s)&&!r.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=u}function b(t,i){function r(t){var e=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(t.source);return null!=e?e[1].replace(/\\(.)/g,"$1"):""}function o(t,e){return t.replace(/\$(\$|\d{1,2})/,function(t,n){return e["$"===n?0:Number(n)]})}function a(t,e,n){if(!n)return!1;var i=t.invoke(e,e,{$match:n});return!K(i)||i}function s(i,r,o,a,s){function h(t,e,n){return"/"===g?t:e?g.slice(0,-1)+t:n?g.slice(1)+t:t}function f(t){function e(t){var e=t(o,i);return!!e&&(F(e)&&i.replace().url(e),!0)}if(!t||!t.defaultPrevented){m&&i.url();m=n;var r,a=c.length;for(r=0;r<a;r++)if(e(c[r]))return;u&&e(u)}}function p(){return l=l||r.$on("$locationChangeSuccess",f)}var m,g=a.baseHref(),v=i.url();return d||p(),{sync:function(){f()},listen:function(){return p()},update:function(t){if(t)return void(v=i.url());i.url()!==v&&(i.url(v),i.replace())},push:function(t,e,r){var o=t.format(e||{});null!==o&&e&&e["#"]&&(o+="#"+e["#"]),i.url(o),m=r&&r.$$avoidResync?i.url():n,r&&r.replace&&i.replace()},href:function(n,r,o){if(!n.validates(r))return null;var a=t.html5Mode();e.isObject(a)&&(a=a.enabled),a=a&&s.history;var l=n.format(r);if(o=o||{},a||null===l||(l="#"+t.hashPrefix()+l),null!==l&&r&&r["#"]&&(l+="#"+r["#"]),l=h(l,a,o.absolute),!o.absolute||!l)return l;var c=!a&&l?"/":"",u=i.port();return u=80===u||443===u?"":":"+u,[i.protocol(),"://",i.host(),u,c,l].join("")}}}var l,c=[],u=null,d=!1;this.rule=function(t){if(!L(t))throw new Error("'rule' must be a function");return c.push(t),this},this.otherwise=function(t){if(F(t)){var e=t;t=function(){return e}}else if(!L(t))throw new Error("'rule' must be a function");return u=t,this},this.when=function(t,e){var n,s=F(e);if(F(t)&&(t=i.compile(t)),!s&&!L(e)&&!j(e))throw new Error("invalid 'handler' in when()");var l={matcher:function(t,e){return s&&(n=i.compile(e),e=["$match",function(t){return n.format(t)}]),H(function(n,i){return a(n,e,t.exec(i.path(),i.search()))},{prefix:F(t.prefix)?t.prefix:""})},regex:function(t,e){if(t.global||t.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=e,e=["$match",function(t){return o(n,t)}]),H(function(n,i){return a(n,e,t.exec(i.path()))},{prefix:r(t)})}},c={matcher:i.isMatcher(t),regex:t instanceof RegExp};for(var u in c)if(c[u])return this.rule(l[u](t,e));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(t){t===n&&(t=!0),d=t},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function _(t,r){function o(t){return 0===t.indexOf(".")||0===t.indexOf("^")}function h(t,e){if(!t)return n;var i=F(t),r=i?t:t.name;if(o(r)){if(!e)throw new Error("No reference point given for path '"+r+"'");e=h(e);for(var a=r.split("."),s=0,l=a.length,c=e;s<l;s++)if(""!==a[s]||0!==s){if("^"!==a[s])break;if(!c.parent)throw new Error("Path '"+r+"' not valid for state '"+e.name+"'");c=c.parent}else c=e;a=a.slice(s).join("."),r=c.name+(c.name&&a?".":"")+a}var u=D[r];return!u||!i&&(i||u!==t&&u.self!==t)?n:u}function f(t,e){$[t]||($[t]=[]),$[t].push(e)}function m(t){for(var e=$[t]||[];e.length;)g(e.shift())}function g(e){e=i(e,{self:e,resolve:e.resolve||{},toString:function(){return this.name}});var n=e.name;if(!F(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(D.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var r=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):F(e.parent)?e.parent:B(e.parent)&&F(e.parent.name)?e.parent.name:"";if(r&&!D[r])return f(r,e.self);for(var o in w)L(w[o])&&(e[o]=w[o](e,w.$delegates[o]));return D[n]=e,!e[O]&&e.url&&t.when(e.url,["$match","$stateParams",function(t,n){I.$current.navigable==e&&c(t,n)||I.transitionTo(e,t,{inherit:!0,location:!1})}]),m(n),e}function v(t){return t.indexOf("*")>-1}function y(t){for(var e=t.split("."),n=I.$current.name.split("."),i=0,r=e.length;i<r;i++)"*"===e[i]&&(n[i]="*");return"**"===e[0]&&(n=n.slice(s(n,e[1])),n.unshift("**")),"**"===e[e.length-1]&&(n.splice(s(n,e[e.length-2])+1,Number.MAX_VALUE),n.push("**")),e.length==n.length&&n.join("")===e.join("")}function E(t,e){return F(t)&&!K(e)?w[t]:L(e)&&F(t)?(w[t]&&!w.$delegates[t]&&(w.$delegates[t]=w[t]),w[t]=e,this):this}function b(t,e){return B(t)?e=t:e.name=t,g(e),this}function _(t,r,o,s,d,f,m,g,E){function b(e,n,i,o){var a=t.$broadcast("$stateNotFound",e,n,i);if(a.defaultPrevented)return m.update(),R;if(!a.retry)return null;if(o.$retry)return m.update(),k;var s=I.transition=r.when(a.retry);return s.then(function(){return s!==I.transition?$:(e.options.$retry=!0,I.transitionTo(e.to,e.toParams,e.options))},function(){return R}),m.update(),s}function _(t,n,i,a,l,c){function h(){var n=[];return V(t.views,function(i,r){var a=i.resolve&&i.resolve!==t.resolve?i.resolve:{};a.$template=[function(){return o.load(r,{view:i,locals:l.globals,params:f,notify:c.notify})||""}],n.push(d.resolve(a,l.globals,l.resolve,t).then(function(n){if(L(i.controllerProvider)||j(i.controllerProvider)){var o=e.extend({},a,l.globals);n.$$controller=s.invoke(i.controllerProvider,null,o)}else n.$$controller=i.controller;n.$$state=t,n.$$controllerAs=i.controllerAs,n.$$resolveAs=i.resolveAs,l[r]=n}))}),r.all(n).then(function(){return l.globals})}var f=i?n:u(t.params.$$keys(),n),p={$stateParams:f};l.resolve=d.resolve(t.resolve,p,l.resolve,t);var m=[l.resolve.then(function(t){l.globals=t})];return a&&m.push(a),r.all(m).then(h).then(function(t){return l})}var $=r.reject(new Error("transition superseded")),w=r.reject(new Error("transition prevented")),R=r.reject(new Error("transition aborted")),k=r.reject(new Error("transition failed"));return T.locals={resolve:null,globals:{$stateParams:{}}},I={params:{},current:T.self,$current:T,transition:null},I.reload=function(t){return I.transitionTo(I.current,f,{reload:t||!0,inherit:!1,notify:!0})},I.go=function(t,e,n){return I.transitionTo(t,e,H({inherit:!0,relative:I.$current},n))},I.transitionTo=function(e,n,o){n=n||{},o=H({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},o||{});var a,c=I.$current,d=I.params,p=c.path,g=h(e,o.relative),v=n["#"];if(!K(g)){var y={to:e,toParams:n,options:o},E=b(y,c.self,d,o);if(E)return E;if(e=y.to,n=y.toParams,o=y.options,g=h(e,o.relative),!K(g)){if(!o.relative)throw new Error("No such state '"+e+"'");throw new Error("Could not resolve '"+e+"' from state '"+o.relative+"'")}}if(g[O])throw new Error("Cannot transition to abstract state '"+e+"'");if(o.inherit&&(n=l(f,n||{},I.$current,g)),!g.params.$$validates(n))return k;n=g.params.$$values(n),e=g;var D=e.path,R=0,x=D[R],S=T.locals,A=[];if(o.reload){if(F(o.reload)||B(o.reload)){if(B(o.reload)&&!o.reload.name)throw new Error("Invalid reload state object");var N=!0===o.reload?p[0]:h(o.reload);if(o.reload&&!N)throw new Error("No such reload state '"+(F(o.reload)?o.reload:o.reload.name)+"'");for(;x&&x===p[R]&&x!==N;)S=A[R]=x.locals,R++,x=D[R]}}else for(;x&&x===p[R]&&x.ownParams.$$equals(n,d);)S=A[R]=x.locals,R++,x=D[R];if(C(e,n,c,d,S,o))return v&&(n["#"]=v),I.params=n,U(I.params,f),U(u(e.params.$$keys(),f),e.locals.globals.$stateParams),o.location&&e.navigable&&e.navigable.url&&(m.push(e.navigable.url,n,{$$avoidResync:!0,replace:"replace"===o.location}),m.update(!0)),I.transition=null,r.when(I.current);if(n=u(e.params.$$keys(),n||{}),v&&(n["#"]=v),o.notify&&t.$broadcast("$stateChangeStart",e.self,n,c.self,d,o).defaultPrevented)return t.$broadcast("$stateChangeCancel",e.self,n,c.self,d),null==I.transition&&m.update(),w;for(var P=r.when(S),M=R;M<D.length;M++,x=D[M])S=A[M]=i(S),P=_(x,n,x===e,P,S,o);var L=I.transition=P.then(function(){var i,r,a;if(I.transition!==L)return $;for(i=p.length-1;i>=R;i--)a=p[i],a.self.onExit&&s.invoke(a.self.onExit,a.self,a.locals.globals),a.locals=null;for(i=R;i<D.length;i++)r=D[i],r.locals=A[i],r.self.onEnter&&s.invoke(r.self.onEnter,r.self,r.locals.globals);return I.transition!==L?$:(I.$current=e,I.current=e.self,I.params=n,U(I.params,f),I.transition=null,o.location&&e.navigable&&m.push(e.navigable.url,e.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===o.location}),o.notify&&t.$broadcast("$stateChangeSuccess",e.self,n,c.self,d),m.update(!0),I.current)}).then(null,function(i){return I.transition!==L?$:(I.transition=null,a=t.$broadcast("$stateChangeError",e.self,n,c.self,d,i),a.defaultPrevented||m.update(),r.reject(i))});return L},I.is=function(t,e,i){i=H({relative:I.$current},i||{});var r=h(t,i.relative);return K(r)?I.$current===r&&(!e||c(r.params.$$values(e),f)):n},I.includes=function(t,e,i){if(i=H({relative:I.$current},i||{}),F(t)&&v(t)){if(!y(t))return!1;t=I.$current.name}var r=h(t,i.relative);return K(r)?!!K(I.$current.includes[r.name])&&(!e||c(r.params.$$values(e),f,a(e))):n},I.href=function(t,e,i){i=H({lossy:!0,inherit:!0,absolute:!1,relative:I.$current},i||{});var r=h(t,i.relative);if(!K(r))return null;i.inherit&&(e=l(f,e||{},I.$current,r));var o=r&&i.lossy?r.navigable:r;return o&&o.url!==n&&null!==o.url?m.href(o.url,u(r.params.$$keys().concat("#"),e||{}),{absolute:i.absolute}):null},I.get=function(t,e){if(0===arguments.length)return p(a(D),function(t){return D[t].self});var n=h(t,e||I.$current);return n&&n.self?n.self:null},I}function C(t,e,n,i,r,o){if(!o.reload&&t===n&&(r===n.locals||!1===t.self.reloadOnSearch&&function(t,e,n){function i(e){return"search"!=t.params[e].location}var r=t.params.$$keys().filter(i),o=d.apply({},[t.params].concat(r));return new G.ParamSet(o).$$equals(e,n)}(n,i,e)))return!0}var T,I,D={},$={},O="abstract",w={parent:function(t){if(K(t.parent)&&t.parent)return h(t.parent);var e=/^(.+)\.[^.]+$/.exec(t.name);return e?h(e[1]):T},data:function(t){return t.parent&&t.parent.data&&(t.data=t.self.data=i(t.parent.data,t.data)),t.data},url:function(t){var e=t.url,n={params:t.params||{}};if(F(e))return"^"==e.charAt(0)?r.compile(e.substring(1),n):(t.parent.navigable||T).url.concat(e,n);if(!e||r.isMatcher(e))return e;throw new Error("Invalid url '"+e+"' in state '"+t+"'")},navigable:function(t){return t.url?t:t.parent?t.parent.navigable:null},ownParams:function(t){var e=t.url&&t.url.params||new G.ParamSet;return V(t.params||{},function(t,n){e[n]||(e[n]=new G.Param(n,null,t,"config"))}),e},params:function(t){var e=d(t.ownParams,t.ownParams.$$keys());return t.parent&&t.parent.params?H(t.parent.params.$$new(),e):new G.ParamSet},views:function(t){var e={};return V(K(t.views)?t.views:{"":t},function(n,i){i.indexOf("@")<0&&(i+="@"+t.parent.name),n.resolveAs=n.resolveAs||t.resolveAs||"$resolve",e[i]=n}),e},path:function(t){return t.parent?t.parent.path.concat(t):[]},includes:function(t){var e=t.parent?H({},t.parent.includes):{};return e[t.name]=!0,e},$delegates:{}};T=g({name:"",url:"^",views:null,"abstract":!0}),T.navigable=null,this.decorator=E,this.state=b,this.$get=_,_.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function C(){function t(t,e){return{load:function(t,n){var i;return n=H({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},n),n.view&&(i=e.fromConfig(n.view,n.params,n.locals)),i}}}this.$get=t,t.$inject=["$rootScope","$templateFactory"]}function T(){var t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",function(e,n){return t?e:function(t){return n(function(){t[0].scrollIntoView()},0,!1)}}]}function I(t,n,i,r,o){function a(t,n){if(c)return{enter:function(t,n,i){e.version.minor>2?c.enter(t,null,n).then(i):c.enter(t,null,n,i)},leave:function(t,n){e.version.minor>2?c.leave(t).then(n):c.leave(t,n)}};if(l){var i=l&&l(n,t);return{enter:function(t,e,n){i.enter(t,null,e),n()},leave:function(t,e){i.leave(t),e()}}}return function(){return{enter:function(t,e,n){e.after(t),n()},leave:function(t,e){t.remove(),e()}}}()}var s=function(){return n.has?function(t){return n.has(t)?n.get(t):null}:function(t){try{return n.get(t)}catch(e){return null}}}(),l=s("$animator"),c=s("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,s,l){return function(n,s,c){function u(){if(h&&(h.remove(),h=null),p&&(p.$destroy(),p=null),f){var t=f.data("$uiViewAnim");y.leave(f,function(){t.$$animLeave.resolve(),h=null}),h=f,f=null}}function d(a){var d,h=$(n,c,s,r),E=h&&t.$current&&t.$current.locals[h];if(a||E!==m){d=n.$new(),m=t.$current.locals[h],d.$emit("$viewContentLoading",h);var b=l(d,function(t){var r=o.defer(),a=o.defer(),l={$animEnter:r.promise,$animLeave:a.promise,$$animLeave:a};t.data("$uiViewAnim",l),y.enter(t,s,function(){r.resolve(),p&&p.$emit("$viewContentAnimationEnded"),(e.isDefined(v)&&!v||n.$eval(v))&&i(t)}),u()});f=b,p=d,p.$emit("$viewContentLoaded",h),p.$eval(g)}}var h,f,p,m,g=c.onload||"",v=c.autoscroll,y=a(c,n);s.inheritedData("$uiView");n.$on("$stateChangeSuccess",function(){d(!1)}),d(!0)}}}}function D(t,n,i,r){return{restrict:"ECA",priority:-400,compile:function(o){var a=o.html();return function(o,s,l){var c=i.$current,u=$(o,l,s,r),d=c&&c.locals[u];if(d){s.data("$uiView",{name:u,state:d.$$state}),s.html(d.$template?d.$template:a);var h=e.extend({},d);o[d.$$resolveAs]=h;var f=t(s.contents());if(d.$$controller){d.$scope=o,d.$element=s;var p=n(d.$$controller,d);d.$$controllerAs&&(o[d.$$controllerAs]=p,o[d.$$controllerAs][d.$$resolveAs]=h),L(p.$onInit)&&p.$onInit(),s.data("$ngControllerController",p),s.children().data("$ngControllerController",p)}f(o)}}}}}function $(t,e,n,i){var r=i(e.uiView||e.name||"")(t),o=n.inheritedData("$uiView");return r.indexOf("@")>=0?r:r+"@"+(o?o.state.name:"")}function O(t,e){var n,i=t.match(/^\s*({[^}]*})\s*$/);if(i&&(t=e+"("+i[1]+")"),!(n=t.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1],paramExpr:n[3]||null}}function w(t){var e=t.parent().inheritedData("$uiView");if(e&&e.state&&e.state.name)return e.state}function R(t){var e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.prop("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.prop("tagName").toUpperCase(),clickable:!n}}function k(t,e,n,i,r){return function(o){var a=o.which||o.button,s=r();if(!(a>1||o.ctrlKey||o.metaKey||o.shiftKey||t.attr("target"))){var l=n(function(){e.go(s.state,s.params,s.options)});o.preventDefault();var c=i.isAnchor&&!s.href?1:0;o.preventDefault=function(){c--<=0&&n.cancel(l)}}}}function x(t,e){return{relative:w(t)||e.$current,inherit:!0}}function S(t,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(i,r,o,a){var s,l=O(o.uiSref,t.current.name),c={state:l.state,href:null,params:null},u=R(r),d=a[1]||a[0],h=null;c.options=H(x(r,t),o.uiSrefOpts?i.$eval(o.uiSrefOpts):{});var f=function(n){n&&(c.params=e.copy(n)),c.href=t.href(l.state,c.params,c.options),h&&h(),d&&(h=d.$$addStateInfo(l.state,c.params)),null!==c.href&&o.$set(u.attr,c.href)};l.paramExpr&&(i.$watch(l.paramExpr,function(t){t!==c.params&&f(t)},!0),c.params=e.copy(i.$eval(l.paramExpr))),f(),u.clickable&&(s=k(r,t,n,u,function(){return c}),r.bind("click",s),i.$on("$destroy",function(){r.unbind("click",s)}))}}}function A(t,e){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,i,r,o){function a(e){h.state=e[0],h.params=e[1],h.options=e[2],h.href=t.href(h.state,h.params,h.options),f&&f(),c&&(f=c.$$addStateInfo(h.state,h.params)),h.href&&r.$set(l.attr,h.href)}var s,l=R(i),c=o[1]||o[0],u=[r.uiState,r.uiStateParams||null,r.uiStateOpts||null],d="["+u.map(function(t){return t||"null"}).join(", ")+"]",h={state:null,params:null,options:null,href:null},f=null;n.$watch(d,a,!0),a(n.$eval(d)),l.clickable&&(s=k(i,t,e,l,function(){return h}),i.bind("click",s),n.$on("$destroy",function(){i.unbind("click",s)}))}}}function N(t,e,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(e,i,r,o){function a(e,n,r){var o=t.get(e,w(i)),a=s(e,n),l={state:o||{name:e},params:n,hash:a};return m.push(l),g[a]=r,function(){var t=m.indexOf(l);-1!==t&&m.splice(t,1)}}function s(t,n){if(!F(t))throw new Error("state should be a string");return B(n)?t+z(n):(n=e.$eval(n),B(n)?t+z(n):t)}function l(){for(var t=0;t<m.length;t++)d(m[t].state,m[t].params)?c(i,g[m[t].hash]):u(i,g[m[t].hash]),h(m[t].state,m[t].params)?c(i,f):u(i,f)}function c(t,e){o(function(){t.addClass(e)})}function u(t,e){t.removeClass(e)}function d(e,n){return t.includes(e.name,n)}function h(e,n){return t.is(e.name,n)}var f,p,m=[],g={};f=n(r.uiSrefActiveEq||"",!1)(e);try{p=e.$eval(r.uiSrefActive)}catch(v){}p=p||n(r.uiSrefActive||"",!1)(e),B(p)&&V(p,function(n,i){if(F(n)){var r=O(n,t.current.name);a(r.state,e.$eval(r.paramExpr),i)}}),this.$$addStateInfo=function(t,e){if(!(B(p)&&m.length>0)){var n=a(t,e,p);return l(),n}},e.$on("$stateChangeSuccess",l),l()}]}}function P(t){var e=function(e,n){return t.is(e,n)};return e.$stateful=!0,e}function M(t){var e=function(e,n,i){return t.includes(e,n,i)};return e.$stateful=!0,e}var K=e.isDefined,L=e.isFunction,F=e.isString,B=e.isObject,j=e.isArray,V=e.forEach,H=e.extend,U=e.copy,z=e.toJson;e.module("ui.router.util",["ng"]),e.module("ui.router.router",["ui.router.util"]),e.module("ui.router.state",["ui.router.router","ui.router.util"]),e.module("ui.router",["ui.router.state"]),e.module("ui.router.compat",["ui.router"]),m.$inject=["$q","$injector"],e.module("ui.router.util").service("$resolve",m),g.$inject=["$http","$templateCache","$injector"],e.module("ui.router.util").service("$templateFactory",g);var G;v.prototype.concat=function(t,e){var n={caseInsensitive:G.caseInsensitive(),strict:G.strictMode(),squash:G.defaultSquashPolicy()};return new v(this.sourcePath+t+this.sourceSearch,H(n,e),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(t,e){var n=this.regexp.exec(t);if(!n)return null;e=e||{};var i,r,o,a=this.parameters(),s=a.length,l=this.segments.length-1,c={};if(l!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var u,d;for(i=0;i<l;i++){for(o=a[i],u=this.params[o],d=n[i+1],r=0;r<u.replace.length;r++)u.replace[r].from===d&&(d=u.replace[r].to);d&&!0===u.array&&(d=function(t){function e(t){return t.split("").reverse().join("")}function n(t){return t.replace(/\\-/g,"-")}return p(p(e(t).split(/-(?!\\)/),e),n).reverse()}(d)),K(d)&&(d=u.type.decode(d)),c[o]=u.value(d)}for(;i<s;i++){for(o=a[i],c[o]=this.params[o].value(e[o]),u=this.params[o],d=e[o],r=0;r<u.replace.length;r++)u.replace[r].from===d&&(d=u.replace[r].to);K(d)&&(d=u.type.decode(d)),c[o]=u.value(d)}return c},v.prototype.parameters=function(t){return K(t)?this.params[t]||null:this.$$paramNames},v.prototype.validates=function(t){return this.params.$$validates(t)},v.prototype.format=function(t){function e(t){return encodeURIComponent(t).replace(/-/g,function(t){return"%5C%"+t.charCodeAt(0).toString(16).toUpperCase()})}t=t||{};var n=this.segments,i=this.parameters(),r=this.params;if(!this.validates(t))return null;var o,a=!1,s=n.length-1,l=i.length,c=n[0];for(o=0;o<l;o++){var u=o<s,d=i[o],h=r[d],f=h.value(t[d]),m=h.isOptional&&h.type.equals(h.value(),f),g=!!m&&h.squash,v=h.type.encode(f);if(u){var y=n[o+1],E=o+1===s;if(!1===g)null!=v&&(j(v)?c+=p(v,e).join("-"):c+=encodeURIComponent(v)),c+=y;else if(!0===g){var b=c.match(/\/$/)?/\/?(.*)/:/(.*)/;c+=y.match(b)[1]}else F(g)&&(c+=g+y);E&&!0===h.squash&&"/"===c.slice(-1)&&(c=c.slice(0,-1))}else{if(null==v||m&&!1!==g)continue;if(j(v)||(v=[v]),0===v.length)continue;v=p(v,encodeURIComponent).join("&"+d+"="),c+=(a?"&":"?")+d+"="+v,a=!0}}return c},y.prototype.is=function(t,e){return!0},y.prototype.encode=function(t,e){return t},y.prototype.decode=function(t,e){return t},y.prototype.equals=function(t,e){return t==e},y.prototype.$subPattern=function(){var t=this.pattern.toString();return t.substr(1,t.length-2)},y.prototype.pattern=/.*/,y.prototype.toString=function(){return"{Type:"+this.name+"}"},y.prototype.$normalize=function(t){return this.is(t)?t:this.decode(t)},y.prototype.$asArray=function(t,e){function i(t,e){function i(t,e){return function(){return t[e].apply(t,arguments)}}function r(t){return j(t)?t:K(t)?[t]:[]}function o(t){switch(t.length){case 0:return n;case 1:return"auto"===e?t[0]:t;default:return t}}function a(t){return!t}function s(t,e){return function(n){if(j(n)&&0===n.length)return n;n=r(n);var i=p(n,t);return!0===e?0===f(i,a).length:o(i)}}this.encode=s(i(t,"encode")),this.decode=s(i(t,"decode")),this.is=s(i(t,"is"),!0),this.equals=function(t){return function(e,n){var i=r(e),o=r(n);if(i.length!==o.length)return!1;for(var a=0;a<i.length;a++)if(!t(i[a],o[a]))return!1;return!0}}(i(t,"equals")),this.pattern=t.pattern,this.$normalize=s(i(t,"$normalize")),this.name=t.name,this.$arrayMode=e}if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new i(this,t)},e.module("ui.router.util").provider("$urlMatcherFactory",E),e.module("ui.router.util").run(["$urlMatcherFactory",function(t){}]),b.$inject=["$locationProvider","$urlMatcherFactoryProvider"],e.module("ui.router.router").provider("$urlRouter",b),_.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],e.module("ui.router.state").factory("$stateParams",function(){return{}}).constant("$state.runtime",{autoinject:!0}).provider("$state",_).run(["$injector",function(t){t.get("$state.runtime").autoinject&&t.get("$state")}]),C.$inject=[],e.module("ui.router.state").provider("$view",C),e.module("ui.router.state").provider("$uiViewScroll",T),I.$inject=["$state","$injector","$uiViewScroll","$interpolate","$q"],D.$inject=["$compile","$controller","$state","$interpolate"],e.module("ui.router.state").directive("uiView",I),e.module("ui.router.state").directive("uiView",D),S.$inject=["$state","$timeout"],A.$inject=["$state","$timeout"],N.$inject=["$state","$stateParams","$interpolate"],e.module("ui.router.state").directive("uiSref",S).directive("uiSrefActive",N).directive("uiSrefActiveEq",N).directive("uiState",A),P.$inject=["$state"],M.$inject=["$state"],e.module("ui.router.state").filter("isState",P).filter("includedByState",M)}(window,window.angular)},2718:function(t,e,n){n(2719),t.exports="ngTouch"},2719:function(t,e){/** * @license AngularJS v1.5.8 * (c) 2010-2016 Google, Inc. http://angularjs.org * License: MIT */ !function(t,e){"use strict";function n(t){return e.lowercase(t.nodeName||t[0]&&t[0].nodeName)}function i(t,n){var i=!1,r=!1;this.ngClickOverrideEnabled=function(o){return e.isDefined(o)?(o&&!r&&(r=!0,a.$$moduleName="ngTouch",n.directive("ngClick",a),t.decorator("ngClickDirective",["$delegate",function(t){if(i)t.shift();else for(var e=t.length-1;e>=0;){if("ngTouch"===t[e].$$moduleName){t.splice(e,1);break}e--}return t}])),i=o,this):i},this.$get=function(){return{ngClickOverrideEnabled:function(){return i}}}}function r(t,n,i){o.directive(t,["$parse","$swipe",function(r,o){return function(a,s,l){function c(t){if(!u)return!1;var e=Math.abs(t.y-u.y),i=(t.x-u.x)*n;return d&&e<75&&i>0&&i>30&&e/i<.3}var u,d,h=r(l[t]),f=["touch"];e.isDefined(l.ngSwipeDisableMouse)||f.push("mouse"),o.bind(s,{start:function(t,e){u=t,d=!0},cancel:function(t){d=!1},end:function(t,e){c(t)&&a.$apply(function(){s.triggerHandler(i),h(a,{$event:e})})}},f)}}])}var o=e.module("ngTouch",[]);o.provider("$touch",i),i.$inject=["$provide","$compileProvider"],o.factory("$swipe",[function(){function t(t){var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],i=e.changedTouches&&e.changedTouches[0]||n[0];return{x:i.clientX,y:i.clientY}}function n(t,n){var r=[];return e.forEach(t,function(t){var e=i[t][n];e&&r.push(e)}),r.join(" ")}var i={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(e,i,r){var o,a,s,l,c=!1;r=r||["mouse","touch","pointer"],e.on(n(r,"start"),function(e){s=t(e),c=!0,o=0,a=0,l=s,i.start&&i.start(s,e)});var u=n(r,"cancel");u&&e.on(u,function(t){c=!1,i.cancel&&i.cancel(t)}),e.on(n(r,"move"),function(e){if(c&&s){var n=t(e);if(o+=Math.abs(n.x-l.x),a+=Math.abs(n.y-l.y),l=n,!(o<10&&a<10))return a>o?(c=!1,void(i.cancel&&i.cancel(e))):(e.preventDefault(),void(i.move&&i.move(n,e)))}}),e.on(n(r,"end"),function(e){c&&(c=!1,i.end&&i.end(t(e),e))})}}}]);var a=["$parse","$timeout","$rootElement",function(t,i,r){function o(t,e,n,i){return Math.abs(t-n)<p&&Math.abs(e-i)<p}function a(t,e,n){for(var i=0;i<t.length;i+=2)if(o(t[i],t[i+1],e,n))return t.splice(i,i+2),!0;return!1}function s(t){if(!(Date.now()-u>f)){var e=t.touches&&t.touches.length?t.touches:[t],i=e[0].clientX,r=e[0].clientY;i<1&&r<1||h&&h[0]===i&&h[1]===r||(h&&(h=null),"label"===n(t.target)&&(h=[i,r]),a(d,i,r)||(t.stopPropagation(),t.preventDefault(),t.target&&t.target.blur&&t.target.blur()))}}function l(t){var e=t.touches&&t.touches.length?t.touches:[t],n=e[0].clientX,r=e[0].clientY;d.push(n,r),i(function(){for(var t=0;t<d.length;t+=2)if(d[t]==n&&d[t+1]==r)return void d.splice(t,t+2)},f,!1)}function c(t,e){d||(r[0].addEventListener("click",s,!0),r[0].addEventListener("touchstart",l,!0),d=[]),u=Date.now(),a(d,t,e)}var u,d,h,f=2500,p=25,m="ng-click-active";return function(n,i,r){function o(){h=!1,i.removeClass(m)}var a,s,l,u,d=t(r.ngClick),h=!1;i.on("touchstart",function(t){h=!0,a=t.target?t.target:t.srcElement,3==a.nodeType&&(a=a.parentNode),i.addClass(m),s=Date.now();var e=t.originalEvent||t,n=e.touches&&e.touches.length?e.touches:[e],r=n[0];l=r.clientX,u=r.clientY}),i.on("touchcancel",function(t){o()}),i.on("touchend",function(t){var n=Date.now()-s,d=t.originalEvent||t,f=d.changedTouches&&d.changedTouches.length?d.changedTouches:d.touches&&d.touches.length?d.touches:[d],p=f[0],m=p.clientX,g=p.clientY,v=Math.sqrt(Math.pow(m-l,2)+Math.pow(g-u,2));h&&n<750&&v<12&&(c(m,g),a&&a.blur(),e.isDefined(r.disabled)&&!1!==r.disabled||i.triggerHandler("click",[t])),o()}),i.onclick=function(t){},i.on("click",function(t,e){n.$apply(function(){d(n,{$event:e||t})})}),i.on("mousedown",function(t){i.addClass(m)}),i.on("mousemove mouseup",function(t){i.removeClass(m)})}}];r("ngSwipeLeft",-1,"swipeleft"),r("ngSwipeRight",1,"swiperight")}(window,window.angular)},2720:function(t,e){/** * Angular Carousel - Mobile friendly touch carousel for AngularJS * @version v1.0.0 - 2015-10-09 * @link http://revolunet.github.com/angular-carousel * @author Julien Bouquillon <julien@revolunet.com> * @license MIT License, http://www.opensource.org/licenses/MIT */ angular.module("angular-carousel",["ngTouch","angular-carousel.shifty"]),angular.module("angular-carousel").directive("rnCarouselAutoSlide",["$interval",function(t){return{restrict:"A",link:function(e,n,i){var r=function(){e.autoSlider&&(t.cancel(e.autoSlider),e.autoSlider=null)},o=function(){e.autoSlide()};e.$watch("carouselIndex",o),i.hasOwnProperty("rnCarouselPauseOnHover")&&"false"!==i.rnCarouselPauseOnHover&&(n.on("mouseenter",r),n.on("mouseleave",o)),e.$on("$destroy",function(){r(),n.off("mouseenter",r),n.off("mouseleave",o)})}}}]),angular.module("angular-carousel").directive("rnCarouselIndicators",["$parse",function(t){return{restrict:"A",scope:{slides:"=",index:"=rnCarouselIndex"},templateUrl:"carousel-indicators.html",link:function(e,n,i){var r=t(i.rnCarouselIndex);e.goToSlide=function(t){r.assign(e.$parent.$parent,t)}}}}]),angular.module("angular-carousel").run(["$templateCache",function(t){t.put("carousel-indicators.html",'<div class="rn-carousel-indicator">\n<span ng-repeat="slide in slides" ng-class="{active: $index==index}" ng-click="goToSlide($index)">â—</span></div>')}]),function(){"use strict";angular.module("angular-carousel").service("DeviceCapabilities",function(){return{has3d:function(){var t,e=document.createElement("p"),n={webkitTransform:"-webkit-transform",msTransform:"-ms-transform",transform:"transform"};document.body.insertBefore(e,null);for(var i in n)e.style[i]!==undefined&&(e.style[i]="translate3d(1px,1px,1px)",t=window.getComputedStyle(e).getPropertyValue(n[i]));return document.body.removeChild(e),t!==undefined&&t.length>0&&"none"!==t}(),transformProperty:function(){var t="transform";return"undefined"!=typeof document.body.style[t]?["webkit","moz","o","ms"].every(function(e){var n="-"+e+"-transform";return"undefined"==typeof document.body.style[n]||(t=n,!1)}):t="undefined"!=typeof document.body.style.webkitTransform?"-webkit-transform":undefined,t}()}}).service("computeCarouselSlideStyle",["DeviceCapabilities",function(t){return function(e,n,i){var r,o={display:"inline-block"},a=100*e+n,s=t.has3d?"translate3d("+a+"%, 0, 0)":"translate3d("+a+"%, 0)",l=(100-Math.abs(a))/100;if(t.transformProperty)if("fadeAndSlide"==i)o[t.transformProperty]=s,r=0,Math.abs(a)<100&&(r=.3+.7*l),o.opacity=r;else if("hexagon"==i){var c=100,u=0,d=60*(l-1);c=n<-100*e?100:0,u=n<-100*e?d:-d,o[t.transformProperty]=s+" rotateY("+u+"deg)",o[t.transformProperty+"-origin"]=c+"% 50%"}else if("zoom"==i){o[t.transformProperty]=s;var h=1;Math.abs(a)<100&&(h=1+2*(1-l)),o[t.transformProperty]+=" scale("+h+")",o[t.transformProperty+"-origin"]="50% 50%",r=0,Math.abs(a)<100&&(r=.3+.7*l),o.opacity=r}else o[t.transformProperty]=s;else o["margin-left"]=a+"%";return o}}]).service("createStyleString",function(){return function(t){var e=[];return angular.forEach(t,function(t,n){e.push(n+":"+t)}),e.join(";")}}).directive("rnCarousel",["$swipe","$window","$document","$parse","$compile","$timeout","$interval","computeCarouselSlideStyle","createStyleString","Tweenable",function(t,e,n,i,r,o,a,s,l,c){function u(t,e,n){var i=n;return t.every(function(t,n){return!angular.equals(t,e)||(i=n,!1)}),i}var d=0;e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame;return{restrict:"A",scope:!0,compile:function(h,f){var p,m,g=h[0].querySelector("li"),v=g?g.attributes:[],y=!1,E=!1;return["ng-repeat","data-ng-repeat","ng:repeat","x-ng-repeat"].every(function(t){var e=v[t];if(angular.isDefined(e)){var n=e.value.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?\s*$/),i=n[3];if(p=n[1],m=n[2],p)return angular.isDefined(f.rnCarouselBuffered)&&(E=!0,e.value=p+" in "+m+"|carouselSlice:carouselBufferIndex:carouselBufferSize",i&&(e.value+=" track by "+i)),y=!0,!1}return!0}),function(h,p,g,v){function b(){return p[0].querySelectorAll("ul[rn-carousel] > li")}function _(t){F=!0,k({x:t.clientX,y:t.clientY},t)}function C(t){var e=100*h.carouselBufferIndex+t;angular.forEach(b(),function(t,n){t.style.cssText=l(s(n,e,K.transitionType))})}function T(t,e){if(t===undefined&&(t=h.carouselIndex),e=e||{},!1===e.animate||"none"===K.transitionType)return U=!1,L=-100*t,h.carouselIndex=t,void x();U=!0,(new c).tween({from:{x:L},to:{x:-100*t},duration:K.transitionDuration,easing:K.transitionEasing,step:function(t){C(t.x)},finish:function(){h.$apply(function(){h.carouselIndex=t,L=-100*t,x(),o(function(){U=!1},0,!1)})}})}function I(){var t=p[0].getBoundingClientRect();return t.width?t.width:t.right-t.left}function D(){j=I()}function $(){H||(H=!0,n.bind("mouseup",_))}function O(){H&&(H=!1,n.unbind("mouseup",_))}function w(t,e){if(!(U||B.length<=1))return D(),V=p[0].querySelector("li").getBoundingClientRect().left,A=!0,N=t.x,!1}function R(t,e){var n,i;if($(),A&&(n=t.x,(i=N-n)>2||i<-2)){F=!0;C(L+100*-i/j)}return!1}function k(t,e,n){if((!e||F)&&(O(),A=!1,F=!1,0!==(P=N-t.x)&&!U))if(L+=100*-P/j,K.isSequential){var r=K.moveTreshold*j,o=-P,a=-Math[o>=0?"ceil":"floor"](o/j),s=Math.abs(o)>r;B&&a+h.carouselIndex>=B.length&&(a=B.length-1-h.carouselIndex),a+h.carouselIndex<0&&(a=-h.carouselIndex);var l=s?a:0;P=h.carouselIndex+l,T(P),g.rnCarouselOnInfiniteScrollRight!==undefined&&0===a&&0!==h.carouselIndex&&(i(g.rnCarouselOnInfiniteScrollRight)(h),T(0)),g.rnCarouselOnInfiniteScrollLeft!==undefined&&0===a&&0===h.carouselIndex&&0===l&&(i(g.rnCarouselOnInfiniteScrollLeft)(h),T(B.length))}else h.$apply(function(){h.carouselIndex=parseInt(-L/100,10),x()})}function x(){var t=0,e=(h.carouselBufferSize-1)/2;E?(t=h.carouselIndex<=e?0:B&&B.length<h.carouselBufferSize?0:B&&h.carouselIndex>B.length-h.carouselBufferSize?B.length-h.carouselBufferSize:h.carouselIndex-e,h.carouselBufferIndex=t,o(function(){C(L)},0,!1)):o(function(){C(L)},0,!1)}function S(){D(),T()}d++;var A,N,P,M={transitionType:g.rnCarouselTransition||"slide",transitionEasing:g.rnCarouselEasing||"easeTo",transitionDuration:parseInt(g.rnCarouselDuration,10)||300,isSequential:!0,autoSlideDuration:3,bufferSize:5,moveTreshold:.1,defaultIndex:0},K=angular.extend({},M),L=0,F=!1,B=[],j=null,V=null,H=!1,U=!1;"true"!==g.rnSwipeDisabled&&t.bind(p,{start:w,move:R,end:k,cancel:function(t){k({},t)}}),h.nextSlide=function(t){var e=h.carouselIndex+1;e>B.length-1&&(e=0),U||T(e,t)},h.prevSlide=function(t){var e=h.carouselIndex-1;e<0&&(e=B.length-1),T(e,t)};var z=!0;if(h.carouselIndex=0,y||(B=[],angular.forEach(b(),function(t,e){B.push({id:e})})),g.rnCarouselControls!==undefined){var G=(y?h.$eval(m.replace("::","")).length:B.length)>1&&angular.isDefined(f.rnCarouselControlsAllowLoop),q=y?"("+m.replace("::","")+").length - 1":B.length-1,W='<div class="rn-carousel-controls">\n <span class="rn-carousel-control rn-carousel-control-prev" ng-click="prevSlide()" ng-if="carouselIndex > 0 || '+G+'"></span>\n <span class="rn-carousel-control rn-carousel-control-next" ng-click="nextSlide()" ng-if="carouselIndex < '+q+" || "+G+'"></span>\n</div>';p.parent().append(r(angular.element(W))(h))}if(g.rnCarouselAutoSlide!==undefined){var Y=parseInt(g.rnCarouselAutoSlide,10)||K.autoSlideDuration;h.autoSlide=function(){h.autoSlider&&(a.cancel(h.autoSlider),h.autoSlider=null),h.autoSlider=a(function(){U||A||h.nextSlide()},1e3*Y)}}if(g.rnCarouselDefaultIndex){var X=i(g.rnCarouselDefaultIndex);K.defaultIndex=X(h.$parent)||0}if(g.rnCarouselIndex){var J=function(t){Z.assign(h.$parent,t)},Z=i(g.rnCarouselIndex);angular.isFunction(Z.assign)?(h.$watch("carouselIndex",function(t){J(t)}),h.$parent.$watch(Z,function(t,e){t!==undefined&&null!==t&&(B&&B.length>0&&t>=B.length?(t=B.length-1,J(t)):B&&t<0&&(t=0,J(t)),U||T(t,{animate:!z}),z=!1)}),!0,K.defaultIndex&&T(K.defaultIndex,{animate:!z})):isNaN(g.rnCarouselIndex)||T(parseInt(g.rnCarouselIndex,10),{animate:!1})}else T(K.defaultIndex,{animate:!z}),z=!1;if(g.rnCarouselLocked&&h.$watch(g.rnCarouselLocked,function(t,e){U=!0===t}),y){var Q=g.rnCarouselDeepWatch!==undefined;h[Q?"$watch":"$watchCollection"](m,function(t,e){if(B=t,Q&&angular.isArray(t)){T(u(t,e[h.carouselIndex],h.carouselIndex),{animate:!1})}else T(h.carouselIndex,{animate:!1})},!0)}h.$on("$destroy",function(){O()}),h.carouselBufferIndex=0,h.carouselBufferSize=K.bufferSize;var tt=angular.element(e);tt.bind("orientationchange",S),tt.bind("resize",S),h.$on("$destroy",function(){O(),tt.unbind("orientationchange",S),tt.unbind("resize",S)})}}}}])}(),angular.module("angular-carousel.shifty",[]).factory("Tweenable",function(){return function(t){/*! * Shifty Core * By Jeremy Kahn - jeremyckahn@gmail.com */ var e=function(){"use strict";function e(){}/*! * Handy shortcut for doing a for-in loop. This is not a "normal" each * function, it is optimized for Shifty. The iterator function only receives * the property name, not the value. * @param {Object} obj * @param {Function(string)} fn */ function n(t,e){var n;for(n in t)Object.hasOwnProperty.call(t,n)&&e(n)}/*! * Perform a shallow copy of Object properties. * @param {Object} targetObject The object to copy into * @param {Object} srcObject The object to copy from * @return {Object} A reference to the augmented `targetObj` Object */ function i(t,e){return n(e,function(n){t[n]=e[n]}),t}/*! * Copies each property from src onto target, but only if the property to * copy to target is undefined. * @param {Object} target Missing properties in this Object are filled in * @param {Object} src */ function r(t,e){n(e,function(n){"undefined"==typeof t[n]&&(t[n]=e[n])})}/*! * Calculates the interpolated tween values of an Object for a given * timestamp. * @param {Number} forPosition The position to compute the state for. * @param {Object} currentState Current state properties. * @param {Object} originalState: The original state properties the Object is * tweening from. * @param {Object} targetState: The destination state properties the Object * is tweening to. * @param {number} duration: The length of the tween in milliseconds. * @param {number} timestamp: The UNIX epoch time at which the tween began. * @param {Object} easing: This Object's keys must correspond to the keys in * targetState. */ function o(t,e,n,i,r,o,s){var l,c=(t-o)/r;for(l in e)e.hasOwnProperty(l)&&(e[l]=a(n[l],i[l],d[s[l]],c));return e}/*! * Tweens a single property. * @param {number} start The value that the tween started from. * @param {number} end The value that the tween should end at. * @param {Function} easingFunc The easing curve to apply to the tween. * @param {number} position The normalized position (between 0.0 and 1.0) to * calculate the midpoint of 'start' and 'end' against. * @return {number} The tweened value. */ function a(t,e,n,i){return t+(e-t)*n(i)}/*! * Applies a filter to Tweenable instance. * @param {Tweenable} tweenable The `Tweenable` instance to call the filter * upon. * @param {String} filterName The name of the filter to apply. */ function s(t,e){var i=u.prototype.filter,r=t._filterArgs;n(i,function(n){"undefined"!=typeof i[n][e]&&i[n][e].apply(t,r)})}/*! * Handles the update logic for one step of a tween. * @param {Tweenable} tweenable * @param {number} timestamp * @param {number} duration * @param {Object} currentState * @param {Object} originalState * @param {Object} targetState * @param {Object} easing * @param {Function(Object, *, number)} step * @param {Function(Function,number)}} schedule */ function l(t,e,n,i,r,a,l,c,u){v=e+n,y=Math.min(g(),v),E=y>=v,b=n-(v-y),t.isPlaying()&&!E?(t._scheduleId=u(t._timeoutHandler,p),s(t,"beforeTween"),o(y,i,r,a,n,e,l),s(t,"afterTween"),c(i,t._attachment,b)):E&&(c(a,t._attachment,b),t.stop(!0))}/*! * Creates a usable easing Object from either a string or another easing * Object. If `easing` is an Object, then this function clones it and fills * in the missing properties with "linear". * @param {Object} fromTweenParams * @param {Object|string} easing */ function c(t,e){var i={};return"string"==typeof e?n(t,function(t){i[t]=e}):n(t,function(t){i[t]||(i[t]=e[t]||f)}),i}function u(t,e){this._currentState=t||{},this._configured=!1,this._scheduleFunction=h,void 0!==e&&this.setConfig(e)}var d,h,f="linear",p=1e3/60,m=Date.now?Date.now:function(){return+new Date},g="undefined"!=typeof SHIFTY_DEBUG_NOW?SHIFTY_DEBUG_NOW:m;h="undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.mozCancelRequestAnimationFrame&&window.mozRequestAnimationFrame||setTimeout:setTimeout;var v,y,E,b;/*! * Filters are used for transforming the properties of a tween at various * points in a Tweenable's life cycle. See the README for more info on this. */ /*! * This object contains all of the tweens available to Shifty. It is extendible - simply attach properties to the Tweenable.prototype.formula Object following the same format at linear. * * `pos` should be a normalized `number` (between 0 and 1). */ return u.prototype.tween=function(t){return this._isTweening?this:(t===undefined&&this._configured||this.setConfig(t),this._timestamp=g(),this._start(this.get(),this._attachment),this.resume())},u.prototype.setConfig=function(t){t=t||{},this._configured=!0,this._attachment=t.attachment,this._pausedAtTime=null,this._scheduleId=null,this._start=t.start||e,this._step=t.step||e,this._finish=t.finish||e,this._duration=t.duration||500,this._currentState=t.from||this.get(),this._originalState=this.get(),this._targetState=t.to||this.get();var n=this._currentState,i=this._targetState;return r(i,n),this._easing=c(n,t.easing||f),this._filterArgs=[n,this._originalState,i,this._easing],s(this,"tweenCreated"),this},u.prototype.get=function(){return i({},this._currentState)},u.prototype.set=function(t){this._currentState=t},u.prototype.pause=function(){return this._pausedAtTime=g(),this._isPaused=!0,this},u.prototype.resume=function(){this._isPaused&&(this._timestamp+=g()-this._pausedAtTime),this._isPaused=!1,this._isTweening=!0;var t=this;return this._timeoutHandler=function(){l(t,t._timestamp,t._duration,t._currentState,t._originalState,t._targetState,t._easing,t._step,t._scheduleFunction)},this._timeoutHandler(),this},u.prototype.seek=function(t){return this._timestamp=g()-t,this.isPlaying()||(this._isTweening=!0,this._isPaused=!1,l(this,this._timestamp,this._duration,this._currentState,this._originalState,this._targetState,this._easing,this._step,this._scheduleFunction),this._timeoutHandler(),this.pause()),this},u.prototype.stop=function(n){return this._isTweening=!1,this._isPaused=!1,this._timeoutHandler=e,(t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.oCancelAnimationFrame||t.msCancelAnimationFrame||t.mozCancelRequestAnimationFrame||t.clearTimeout)(this._scheduleId),n&&(i(this._currentState,this._targetState),s(this,"afterTweenEnd"),this._finish.call(this,this._currentState,this._attachment)),this},u.prototype.isPlaying=function(){return this._isTweening&&!this._isPaused},u.prototype.setScheduleFunction=function(t){this._scheduleFunction=t},u.prototype.dispose=function(){var t;for(t in this)this.hasOwnProperty(t)&&delete this[t]},u.prototype.filter={},u.prototype.formula={linear:function(t){return t}},d=u.prototype.formula,i(u,{now:g,each:n,tweenProps:o,tweenProp:a,applyFilter:s,shallowCopy:i,defaults:r,composeEasingObject:c}),t.Tweenable=u,u}();!function(){e.shallowCopy(e.prototype.formula,{easeInQuad:function(t){return Math.pow(t,2)},easeOutQuad:function(t){return-(Math.pow(t-1,2)-1)},easeInOutQuad:function(t){return(t/=.5)<1?.5*Math.pow(t,2):-.5*((t-=2)*t-2)},easeInCubic:function(t){return Math.pow(t,3)},easeOutCubic:function(t){return Math.pow(t-1,3)+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*Math.pow(t,3):.5*(Math.pow(t-2,3)+2)},easeInQuart:function(t){return Math.pow(t,4)},easeOutQuart:function(t){return-(Math.pow(t-1,4)-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},easeInQuint:function(t){return Math.pow(t,5)},easeOutQuint:function(t){return Math.pow(t-1,5)+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*Math.pow(t,5):.5*(Math.pow(t-2,5)+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-Math.pow(t-1,2))},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},elastic:function(t){return-1*Math.pow(4,-8*t)*Math.sin((6*t-1)*(2*Math.PI)/2)+1},swingFromTo:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},swingFrom:function(t){var e=1.70158;return t*t*((e+1)*t-e)},swingTo:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},bounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bouncePast:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?2-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?2-(7.5625*(t-=2.25/2.75)*t+.9375):2-(7.5625*(t-=2.625/2.75)*t+.984375)},easeFromTo:function(t){return(t/=.5)<1?.5*Math.pow(t,4):-.5*((t-=2)*Math.pow(t,3)-2)},easeFrom:function(t){return Math.pow(t,4)},easeTo:function(t){return Math.pow(t,.25)}})}(),function(){function t(t,e,n,i,r,o){function a(t){return((d*t+h)*t+f)*t}function s(t){return((p*t+m)*t+g)*t}function l(t){return(3*d*t+2*h)*t+f}function c(t){return t>=0?t:0-t}function u(t,e){var n,i,r,o,s,u;for(r=t,u=0;u<8;u++){if(o=a(r)-t,c(o)<e)return r;if(s=l(r),c(s)<1e-6)break;r-=o/s}if(n=0,i=1,(r=t)<n)return n;if(r>i)return i;for(;n<i;){if(o=a(r),c(o-t)<e)return r;t>o?n=r:i=r,r=.5*(i-n)+n}return r}var d=0,h=0,f=0,p=0,m=0,g=0;return f=3*e,h=3*(i-e)-f,d=1-f-h,g=3*n,m=3*(r-n)-g,p=1-g-m,function(t,e){return s(u(t,e))}(t,function(t){return 1/(200*t)}(o))}/*! * getCubicBezierTransition(x1, y1, x2, y2) -> Function * * Generates a transition easing function that is compatible * with WebKit's CSS transitions `-webkit-transition-timing-function` * CSS property. * * The W3C has more information about * <a href="http://www.w3.org/TR/css3-transitions/#transition-timing-function_tag"> * CSS3 transition timing functions</a>. * * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @return {function} */ function n(e,n,i,r){return function(o){return t(o,e,n,i,r,1)}}e.setBezierFunction=function(t,i,r,o,a){var s=n(i,r,o,a);return s.x1=i,s.y1=r,s.x2=o,s.y2=a,e.prototype.formula[t]=s},e.unsetBezierFunction=function(t){delete e.prototype.formula[t]}}(),function(){function t(t,n,i,r,o){return e.tweenProps(r,n,t,i,1,0,o)}var n=new e;n._filterArgs=[],e.interpolate=function(i,r,o,a){var s=e.shallowCopy({},i),l=e.composeEasingObject(i,a||"linear");n.set({});var c=n._filterArgs;c.length=0,c[0]=s,c[1]=i,c[2]=r,c[3]=l,e.applyFilter(n,"tweenCreated"),e.applyFilter(n,"beforeTween");var u=t(i,s,r,o,l);return e.applyFilter(n,"afterTween"),u}}(),function(t){/*! * @param {Array.number} rawValues * @param {string} prefix * * @return {Array.<string>} */ function e(t,e){O.length=0;var n,i=t.length;for(n=0;n<i;n++)O.push("_"+e+"_"+n);return O}/*! * @param {string} formattedString * * @return {string} */ function n(t){var e=t.match(_);return e?(1===e.length||t[0].match(b))&&e.unshift(""):e=["",""],e.join($)}/*! * Convert all hex color values within a string to an rgb string. * * @param {Object} stateObject * * @return {Object} The modified obj */ function i(e){t.each(e,function(t){var n=e[t];"string"==typeof n&&n.match(D)&&(e[t]=r(n))})}/*! * @param {string} str * * @return {string} */ function r(t){return l(D,t,o)}/*! * @param {string} hexString * * @return {string} */ function o(t){var e=a(t);return"rgb("+e[0]+","+e[1]+","+e[2]+")"}/*! * Convert a hexadecimal string to an array with three items, one each for * the red, blue, and green decimal values. * * @param {string} hex A hexadecimal string. * * @returns {Array.<number>} The converted Array of RGB values if `hex` is a * valid string, or an Array of three 0's. */ function a(t){return t=t.replace(/#/,""),3===t.length&&(t=t.split(""),t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),w[0]=s(t.substr(0,2)),w[1]=s(t.substr(2,2)),w[2]=s(t.substr(4,2)),w}/*! * Convert a base-16 number to base-10. * * @param {Number|String} hex The value to convert * * @returns {Number} The base-10 equivalent of `hex`. */ function s(t){return parseInt(t,16)}/*! * Runs a filter operation on all chunks of a string that match a RegExp * * @param {RegExp} pattern * @param {string} unfilteredString * @param {function(string)} filter * * @return {string} */ function l(t,e,n){var i=e.match(t),r=e.replace(t,$);if(i)for(var o,a=i.length,s=0;s<a;s++)o=i.shift(),r=r.replace($,n(o));return r}/*! * Check for floating point values within rgb strings and rounds them. * * @param {string} formattedString * * @return {string} */ function c(t){return l(T,t,u)}/*! * @param {string} rgbChunk * * @return {string} */ function u(t){for(var e=t.match(C),n=e.length,i=t.match(I)[0],r=0;r<n;r++)i+=parseInt(e[r],10)+",";return i=i.slice(0,-1)+")"}/*! * @param {Object} stateObject * * @return {Object} An Object of formatManifests that correspond to * the string properties of stateObject */ function d(i){var r={};return t.each(i,function(t){var o=i[t];if("string"==typeof o){var a=v(o);r[t]={formatString:n(o),chunkNames:e(a,t)}}}),r}/*! * @param {Object} stateObject * @param {Object} formatManifests */ function h(e,n){t.each(n,function(t){for(var i=e[t],r=v(i),o=r.length,a=0;a<o;a++)e[n[t].chunkNames[a]]=+r[a];delete e[t]})}/*! * @param {Object} stateObject * @param {Object} formatManifests */ function f(e,n){t.each(n,function(t){var i=e[t],r=p(e,n[t].chunkNames),o=m(r,n[t].chunkNames);i=g(n[t].formatString,o),e[t]=c(i)})}/*! * @param {Object} stateObject * @param {Array.<string>} chunkNames * * @return {Object} The extracted value chunks. */ function p(t,e){for(var n,i={},r=e.length,o=0;o<r;o++)n=e[o],i[n]=t[n],delete t[n];return i}/*! * @param {Object} stateObject * @param {Array.<string>} chunkNames * * @return {Array.<number>} */ function m(t,e){R.length=0;for(var n=e.length,i=0;i<n;i++)R.push(t[e[i]]);return R}/*! * @param {string} formatString * @param {Array.<number>} rawValues * * @return {string} */ function g(t,e){for(var n=t,i=e.length,r=0;r<i;r++)n=n.replace($,+e[r].toFixed(4));return n}/*! * Note: It's the duty of the caller to convert the Array elements of the * return value into numbers. This is a performance optimization. * * @param {string} formattedString * * @return {Array.<string>|null} */ function v(t){return t.match(C)}/*! * @param {Object} easingObject * @param {Object} tokenData */ function y(e,n){t.each(n,function(t){for(var i=n[t],r=i.chunkNames,o=r.length,a=e[t].split(" "),s=a[a.length-1],l=0;l<o;l++)e[r[l]]=a[l]||s;delete e[t]})}/*! * @param {Object} easingObject * @param {Object} tokenData */ function E(e,n){t.each(n,function(t){for(var i=n[t],r=i.chunkNames,o=r.length,a="",s=0;s<o;s++)a+=" "+e[r[s]],delete e[r[s]];e[t]=a.substr(1)})}/*! * @typedef {{ * formatString: string * chunkNames: Array.<string> * }} */ var b=/(\d|\-|\.)/,_=/([^\-0-9\.]+)/g,C=/[0-9.\-]+/g,T=new RegExp("rgb\\("+C.source+/,\s*/.source+C.source+/,\s*/.source+C.source+"\\)","g"),I=/^.*\(/,D=/#([0-9]|[a-f]){3,6}/gi,$="VAL",O=[],w=[],R=[];t.prototype.filter.token={tweenCreated:function(t,e,n,r){i(t),i(e),i(n),this._tokenData=d(t)},beforeTween:function(t,e,n,i){y(i,this._tokenData),h(t,this._tokenData),h(e,this._tokenData),h(n,this._tokenData)},afterTween:function(t,e,n,i){f(t,this._tokenData),f(e,this._tokenData),f(n,this._tokenData),E(i,this._tokenData)}}}(e)}(window),window.Tweenable}),function(){"use strict";angular.module("angular-carousel").filter("carouselSlice",function(){return function(t,e,n){return angular.isArray(t)?t.slice(e,e+n):angular.isObject(t)?t:void 0}})}()},2731:function(t,e,n){n(2732),t.exports="toaster"},2732:function(t,e){!function(t,e){"use strict";angular.module("toaster",[]).constant("toasterConfig",{limit:0,"tap-to-dismiss":!0,"close-button":!1,"close-html":'<button class="toast-close-button" type="button">×</button>',"newest-on-top":!0,"time-out":5e3,"icon-classes":{error:"toast-error",info:"toast-info",wait:"toast-wait",success:"toast-success",warning:"toast-warning"},"body-output-type":"","body-template":"toasterBodyTmpl.html","icon-class":"toast-info","position-class":"toast-top-right","title-class":"toast-title","message-class":"toast-message","prevent-duplicates":!1,"mouseover-timer-stop":!0}).service("toaster",["$rootScope","toasterConfig",function(t,e){var n=function(){var t={};return t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},t}();this.pop=function(e,i,r,o,a,s,l,c,u,d){if(angular.isObject(e)){var h=e;this.toast={type:h.type,title:h.title,body:h.body,timeout:h.timeout,bodyOutputType:h.bodyOutputType,clickHandler:h.clickHandler,showCloseButton:h.showCloseButton,closeHtml:h.closeHtml,toastId:h.toastId,onShowCallback:h.onShowCallback,onHideCallback:h.onHideCallback,directiveData:h.directiveData},l=h.toasterId}else this.toast={type:e,title:i,body:r,timeout:o,bodyOutputType:a,clickHandler:s,showCloseButton:c,toastId:u,onHideCallback:d};return this.toast.toastId&&this.toast.toastId.length||(this.toast.toastId=n.newGuid()),t.$emit("toaster-newToast",l,this.toast.toastId),{toasterId:l,toastId:this.toast.toastId}},this.clear=function(e,n){angular.isObject(e)?t.$emit("toaster-clearToasts",e.toasterId,e.toastId):t.$emit("toaster-clearToasts",e,n)};for(var i in e["icon-classes"])this[i]=function(t){return function(e,n,i,r,o,a,s,l,c){return angular.isString(e)?this.pop(t,e,n,i,r,o,a,s,l,c):this.pop(angular.extend(e,{type:t}))}}(i)}]).factory("toasterEventRegistry",["$rootScope",function(t){var e,n=null,i=null,r=[],o=[];return e={setup:function(){n||(n=t.$on("toaster-newToast",function(t,e,n){for(var i=0,o=r.length;i<o;i++)r[i](t,e,n)})),i||(i=t.$on("toaster-clearToasts",function(t,e,n){for(var i=0,r=o.length;i<r;i++)o[i](t,e,n)}))},subscribeToNewToastEvent:function(t){r.push(t)},subscribeToClearToastsEvent:function(t){o.push(t)},unsubscribeToNewToastEvent:function(t){var e=r.indexOf(t);e>=0&&r.splice(e,1),0===r.length&&(n(),n=null)},unsubscribeToClearToastsEvent:function(t){var e=o.indexOf(t);e>=0&&o.splice(e,1),0===o.length&&(i(),i=null)}},{setup:e.setup,subscribeToNewToastEvent:e.subscribeToNewToastEvent,subscribeToClearToastsEvent:e.subscribeToClearToastsEvent,unsubscribeToNewToastEvent:e.unsubscribeToNewToastEvent,unsubscribeToClearToastsEvent:e.unsubscribeToClearToastsEvent}}]).directive("directiveTemplate",["$compile","$injector",function(t,e){return{restrict:"A",scope:{directiveName:"@directiveName",directiveData:"@directiveData"},replace:!0,link:function(n,i,r){n.$watch("directiveName",function(o){if(angular.isUndefined(o)||o.length<=0)throw new Error("A valid directive name must be provided via the toast body argument when using bodyOutputType: directive");var a;try{a=e.get(r.$normalize(o)+"Directive")}catch(c){throw new Error(o+" could not be found. The name should appear as it exists in the markup, not camelCased as it would appear in the directive declaration, e.g. directive-name not directiveName.")}var s=a[0];if(!0!==s.scope&&s.scope)throw new Error("Cannot use a directive with an isolated scope. The scope must be either true or falsy (e.g. false/null/undefined). Occurred for directive "+o+".");if(s.restrict.indexOf("A")<0)throw new Error('Directives must be usable as attributes. Add "A" to the restrict option (or remove the option entirely). Occurred for directive '+o+".");n.directiveData&&(n.directiveData=angular.fromJson(n.directiveData));var l=t("<div "+o+"></div>")(n);i.append(l)})}}}]).directive("toasterContainer",["$parse","$rootScope","$interval","$sce","toasterConfig","toaster","toasterEventRegistry",function(t,e,n,i,r,o,a){return{replace:!0,restrict:"EA",scope:!0,link:function(e,s,l){function c(t,i){t.timeoutPromise=n(function(){e.removeToast(t.toastId)},i,1)}function u(n,r){if(n.type=p["icon-classes"][n.type],n.type||(n.type=p["icon-class"]),!0===p["prevent-duplicates"]&&e.toasters.length){if(e.toasters[e.toasters.length-1].body===n.body)return;var o,a,s=!1;for(o=0,a=e.toasters.length;o<a;o++)if(e.toasters[o].toastId===r){s=!0;break}if(s)return}var l=p["close-button"];if("boolean"==typeof n.showCloseButton);else if("boolean"==typeof l)n.showCloseButton=l;else if("object"==typeof l){var c=l[n.type];void 0!==c&&null!==c&&(n.showCloseButton=c)}else n.showCloseButton=!1;switch(n.showCloseButton&&(n.closeHtml=i.trustAsHtml(n.closeHtml||e.config.closeHtml)),n.bodyOutputType=n.bodyOutputType||p["body-output-type"],n.bodyOutputType){case"trustedHtml":n.html=i.trustAsHtml(n.body);break;case"template":n.bodyTemplate=n.body||p["body-template"];break;case"templateWithData":var u=t(n.body||p["body-template"]),d=u(e);n.bodyTemplate=d.template,n.data=d.data;break;case"directive":n.html=n.body}e.configureTimer(n),!0===p["newest-on-top"]?(e.toasters.unshift(n),p.limit>0&&e.toasters.length>p.limit&&e.toasters.pop()):(e.toasters.push(n),p.limit>0&&e.toasters.length>p.limit&&e.toasters.shift()),angular.isFunction(n.onShowCallback)&&n.onShowCallback()}function d(t){var i=e.toasters[t];i.timeoutPromise&&n.cancel(i.timeoutPromise),e.toasters.splice(t,1),angular.isFunction(i.onHideCallback)&&i.onHideCallback()}function h(t){for(var n=e.toasters.length-1;n>=0;n--)f(t)?d(n):e.toasters[n].toastId==t&&d(n)}function f(t){return angular.isUndefined(t)||null===t}var p;p=angular.extend({},r,e.$eval(l.toasterOptions)),e.config={toasterId:p["toaster-id"],position:p["position-class"],title:p["title-class"],message:p["message-class"],tap:p["tap-to-dismiss"],closeButton:p["close-button"],closeHtml:p["close-html"],animation:p["animation-class"],mouseoverTimer:p["mouseover-timer-stop"]},e.$on("$destroy",function(){a.unsubscribeToNewToastEvent(e._onNewToast),a.unsubscribeToClearToastsEvent(e._onClearToasts)}),e.configureTimer=function(t){var e=angular.isNumber(t.timeout)?t.timeout:p["time-out"];"object"==typeof e&&(e=e[t.type]),e>0&&c(t,e)},e.removeToast=function(t){var n,i;for(n=0,i=e.toasters.length;n<i;n++)if(e.toasters[n].toastId===t){d(n);break}},e.toasters=[],e._onNewToast=function(t,n,i){(f(e.config.toasterId)&&f(n)||!f(e.config.toasterId)&&!f(n)&&e.config.toasterId==n)&&u(o.toast,i)},e._onClearToasts=function(t,n,i){("*"==n||f(e.config.toasterId)&&f(n)||!f(e.config.toasterId)&&!f(n)&&e.config.toasterId==n)&&h(i)},a.setup(),a.subscribeToNewToastEvent(e._onNewToast),a.subscribeToClearToastsEvent(e._onClearToasts)},controller:["$scope","$element","$attrs",function(t,e,i){t.stopTimer=function(e){!0===t.config.mouseoverTimer&&e.timeoutPromise&&(n.cancel(e.timeoutPromise),e.timeoutPromise=null)},t.restartTimer=function(e){!0===t.config.mouseoverTimer?e.timeoutPromise||t.configureTimer(e):null===e.timeoutPromise&&t.removeToast(e.toastId)},t.click=function(e,n){if(!0===t.config.tap||!0===e.showCloseButton&&!0===n){var i=!0;e.clickHandler&&(angular.isFunction(e.clickHandler)?i=e.clickHandler(e,n):angular.isFunction(t.$parent.$eval(e.clickHandler))?i=t.$parent.$eval(e.clickHandler)(e,n):console.log("TOAST-NOTE: Your click handler is not inside a parent scope of toaster-container.")),i&&t.removeToast(e.toastId)}}}],template:'<div id="toast-container" ng-class="[config.position, config.animation]"><div ng-repeat="toaster in toasters" class="toast" ng-class="toaster.type" ng-click="click(toaster)" ng-mouseover="stopTimer(toaster)" ng-mouseout="restartTimer(toaster)"><div ng-if="toaster.showCloseButton" ng-click="click(toaster, true)" ng-bind-html="toaster.closeHtml"></div><div ng-class="config.title">{{toaster.title}}</div><div ng-class="config.message" ng-switch on="toaster.bodyOutputType"><div ng-switch-when="trustedHtml" ng-bind-html="toaster.html"></div><div ng-switch-when="template"><div ng-include="toaster.bodyTemplate"></div></div><div ng-switch-when="templateWithData"><div ng-include="toaster.bodyTemplate"></div></div><div ng-switch-when="directive"><div directive-template directive-name="{{toaster.html}}" directive-data="{{toaster.directiveData}}"></div></div><div ng-switch-default >{{toaster.body}}</div></div></div></div>'}}])}(window,document)},28:function(t,e,n){var i=n(875)("wks"),r=n(226),o=n(32).Symbol;t.exports=function(t){return i[t]||(i[t]=o&&o[t]||(o||r)("Symbol."+t))}},2927:function(t,e){!function(n,i){"object"==typeof e&&"object"==typeof t?t.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof e?e.AdtCILibrary=i():n.AdtCILibrary=i()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(1),t.exports=n(27)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(2),o=i(r),a=n(8),s=i(a),l=n(9),c=i(l),u=n(10),d=i(u),h=n(12),f=i(h),p=n(14),m=i(p),g=n(15),v=i(g),y=n(17),E=i(y),b=n(18),_=i(b),C=n(19),T=i(C),I=n(21),D=i(I),$=n(22),O=i($),w=n(23),R=i(w),k=n(24),x=n(25),S=i(x),A=n(26),N=i(A);e["default"]=angular.module("adtCoreLib",["pasvaz.bindonce",o["default"]]).directive("adtSelect",f["default"]).directive("adtSingleSelect",d["default"]).directive("invalidInput",m["default"]).directive("adtTransitionConfirmation",D["default"]).directive("adtFilterHighlighter",v["default"]).directive(E["default"].DIRECTIVE_NAME,E["default"]).service("pubSubService",s["default"]).factory("regexpEscape",c["default"]).factory("transitionConfirmationService",T["default"]).factory("matchTextPositionService",R["default"]).factory("textWrapperService",O["default"]).factory("validationFunctionTransformerService",N["default"]).provider("customInterpolate",_["default"]).provider("validationFunctionsService",S["default"]).constant("CI_TYPES",k.CI_TYPES)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(3),o=i(r),a=n(5),s=i(a),l=n(7),c=i(l),u=angular.module("adt.core.pagination",[]);e.module=u,e["default"]="adt.core.pagination",u.directive(o["default"].NG_NAME,o["default"]).directive(s["default"].NG_NAME,s["default"]).filter(c["default"].NG_NAME,c["default"])},function(t,e,n){"use strict";function i(){return{scope:{itemsNumber:"=",paginationObj:"=",ngDisabled:"=",isShowRange:"="},restrict:"A",controller:o["default"],controllerAs:"paginationCtrl",template:'<div class="pagination__wrap">\n <span ng-if="isShowRange" class="pagination__range">\n Displaying {{paginationCtrl.from}} - {{paginationCtrl.to}} of {{itemsNumber}}\n </span>\n <label class="pagination__item pagination__select">\n <span class="pagination__label">Display:</span>\n <span class="select">\n <select ng-model="paginationObj.amount"\n ng-disabled="ngDisabled"\n ng-options="amountGroupsOnPage for amountGroupsOnPage in paginationCtrl.amountsGroupsOnPage">\n </select>\n </span>\n </label>\n\n <span class="pagination__item">\n <button type="button"\n class="pagination__btn btn_square"\n ng-class="{disabled: paginationCtrl.isCaratDisabled(\'left\')}"\n ng-click="ngDisabled || paginationCtrl.goToFirstPage()">\n <i class="dhlicon-first"></i>\n </button>\n </span>\n\n <span class="pagination__item">\n <button type="button"\n class="pagination__btn btn_square"\n ng-class="{disabled: paginationCtrl.isCaratDisabled(\'left\')}"\n ng-click="ngDisabled || paginationCtrl.pageBackward()">\n <i class="dhlicon-prev"></i>\n </button>\n </span>\n\n <label class="pagination__item pagination__select">\n <span class="pagination__label">Page</span>\n <span class="select">\n <select ng-model="paginationObj.page"\n ng-disabled="ngDisabled || paginationCtrl.isDropdownDisabled()"\n ng-options="n for n in paginationCtrl.getPages()"></select>\n </span>\n <span class="pagination__label">of\n <span ng-bind="paginationCtrl.getPagesNumber()"></span>\n </span>\n </label>\n\n <span class="pagination__item">\n <button type="button"\n class="pagination__btn btn_square"\n ng-class="{disabled: paginationCtrl.isCaratDisabled(\'right\')}"\n ng-click="ngDisabled || paginationCtrl.pageForward()">\n <i class="dhlicon-next"></i>\n </button>\n </span>\n\n <span class="pagination__item">\n <button type="button"\n class="pagination__btn btn_square"\n ng-class="{disabled: paginationCtrl.isCaratDisabled(\'right\')}"\n ng-click="ngDisabled || paginationCtrl.goToLastPage()">\n <i class="dhlicon-last"></i>\n </button>\n </span>\n </div>'}}e.__esModule=!0,e["default"]=i;var r=n(4),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="adtPagination"},function(t,e){"use strict";function n(t){"ngInject";function e(){t.itemsNumber&&(t.paginationObj.page=Math.min(t.paginationObj.page,i()))}function n(){h.from=0===t.itemsNumber?t.itemsNumber:(t.paginationObj.page-1)*t.paginationObj.amount+1,h.to=t.paginationObj.page*t.paginationObj.amount>t.itemsNumber?t.itemsNumber:t.paginationObj.page*t.paginationObj.amount}function i(){return Math.ceil(t.itemsNumber/t.paginationObj.amount)}function r(){for(var t=[],e=i(),n=1;n<=e;++n)t.push(n);return t}function o(e){return!!t.ngDisabled||(!i()||("left"===e?1===t.paginationObj.page:"right"===e?t.paginationObj.page===i():void 0))}function a(){return!r().length}function s(e){e<1||e>i()||(t.paginationObj.page=e)}function l(){s(t.paginationObj.page+1)}function c(){s(t.paginationObj.page-1)}function u(){s(1)}function d(){s(i())}var h=this;Object.assign(h,{from:0,to:0,buttons:[],amountsGroupsOnPage:[10,25,50,100],isCaratDisabled:o,isDropdownDisabled:a,pageForward:l,pageBackward:c,goToFirstPage:u,goToLastPage:d,getPagesNumber:i,getPages:r}),t.$watch(function(){return t.paginationObj.amount},function(){e(),n()}),t.$watch(function(){return t.itemsNumber},function(){e(),n()}),t.$watch(function(){return t.paginationObj.page},n)}n.$inject=["$scope"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){return{restrict:"A",scope:!0,controller:o["default"],controllerAs:"paginationWrapperCtrl"}}e.__esModule=!0,e["default"]=i;var r=n(6),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="adtPaginationWrapper"},function(t,e){"use strict";function n(){var t=this;Object.assign(t,{paginationObj:{page:1,amount:10}})}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){return function(t,e,n){if(!t)return t;var i=(n-1)*e,r=i+e;return t.slice(i,r)}}e.__esModule=!0,e["default"]=n,n.NG_NAME="pagination"},function(t,e){"use strict";function n(t){function e(t,e){var n=a[t];n&&(e&&(n=n.filter(function(t){var n=t.callbackFunction;return e===n})),n.forEach(function(t){return(0,t.deRegistrationFunction)()}))}function n(e){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.$emit.apply(t,[e].concat(i))}function i(e,n){function i(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];n.apply(null,i)}var r=t.$on(e,i);a[e]=a[e]||[],a[e].push({deRegistrationFunction:r,callbackFunction:n})}function r(){return"channel_"+Math.random().toString(36).substring(7)}function o(t){function o(t){return a+"_"+t}var a=angular.isDefined(t)?t:r();return{publish:function(){function t(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];n.apply(null,[o(t)].concat(i))}return t}(),subscribe:function(){function t(t,e){i(o(t),e)}return t}(),unSubscribe:function(){function t(t,n){e(o(t),n)}return t}()}}var a={};return t.$on("$destroy",function(){Object.keys(a).forEach(function(t){return e(t)})}),{createChannel:o,unSubscribe:e,subscribe:i,publish:n}}e.__esModule=!0,e["default"]=n,n.$inject=["$rootScope"]},function(t,e){"use strict";function n(){return function(t){return String(t).replace(/([.*+?=^!:${}()|[\]\/\\])/g,"\\$1")}}e.__esModule=!0,e["default"]=n,n.$inject=[]},function(t,e,n){"use strict";function i(t){function e(t){var e=t[0].querySelector("[adt-single-select-option-template]"),n=t[0].querySelector("[adt-single-select-input-template]"),o=e?e.innerHTML:i.template,a=n?n.innerHTML:r.template;return{template:'<div class="adt-select adt-select_multiple adt-select_cleanMode" ng-click="!ngReadonly && selectController.restartInput(true)" bindonce=""> <div class="adt-select__search"> <ul class="adt-select__search-list"> <li class="adt-select__search-item adt-select__search-item_input"> ${inputTemplate} </li> </ul> <div class="adt-select__arrow" ng-if="!ngDisabled && !ngReadonly"> <i ng-class="{\'dhlicon-arrow-down\': !selectController.dropdownShown, \'dhlicon-arrow-up\': selectController.dropdownShown}"></i> </div> </div> <div class="adt-select__dropdown" ng-if="selectController.dropdownShown && selectController.currentOptions.length"> <ul class="adt-select__options"> <li class="adt-select__option active" ng-repeat="option in selectController.currentOptions" ng-class="{\'even\':$even,\'odd\':$odd}" ng-mousedown="selectController.onAddToken($event, option)"> ${optionTemplate} </li> </ul> </div> </div>'}.template.replace("${optionTemplate}",o).replace(" ${inputTemplate}",a)}function n(e,n,i,r){function o(t){for(var i=t.target,r=!1;i.parentElement;)if((i=i.parentElement)===n[0]){r=!0;break}r||e.$apply(function(){return s.onInputBlur()})}var a=r[0],s=r[1];s.init(a),t.on("mousedown",o),e.$on("$destroy",function(){t.off("mousedown",o)})}var i={template:'<span adt-filter-highlighter="" tokens="selectController.userInput" opts="selectController.highlightOpts" text-highlight="selectController.getTokenViewText(option)"> </span>'},r={template:'<input class="adt-select__input" placeholder="{{placeholder}}" ng-readonly="ngReadonly" ng-disabled="ngDisabled" ng-model="selectController.userInput" ng-change="selectController.updateDropdownCurrentOptions(true)" ng-blur="selectController.onInputBlur()" ng-keydown="selectController.onKeyDown($event)"> </input>'};return{require:["ngModel","adtSingleSelect"],replace:!0,scope:{options:"=",textField:"@",textFieldFn:"=",toViewValueFn:"=",toModelValueFn:"=",ngReadonly:"=",ngDisabled:"=",ngChange:"&",setValueByUserInputOnBlur:"="},controller:o["default"],controllerAs:"selectController",link:n,template:e}}e.__esModule=!0;var r=n(11),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i,i.$inject=["$document"]},function(t,e){"use strict";function n(t,e,n){"ngInject";function i(t){I=t,angular.extend(I,{$render:E,$isEmpty:function(){function t(t){return angular.isUndefined(t)||null===t||angular.isString(t)&&!t.length}return t}()})}function r(t){return e(g(_.TEXT_FIELD_FN)||g(_.TEXT_FIELD))(t)}function o(e){t.ngDisabled||(D.dropdownShown=angular.isDefined(e)?!!e:!D.dropdownShown)}function a(t){switch(t.keyCode){case T:D.setValueByUserInput(!1)}}function s(t,e){t.stopPropagation(),D.addToken(e)}function l(t){var e=g(_.TO_MODEL_VALUE_FN)(t);e!==I.$modelValue&&I.$setViewValue(e),D.userInput=r(t),D.toggleDropdown(!1)}function c(){D.currentOptions=(t.options||[]).filter(function(t){return y(t)}).sort(function(t,e){var n=u(t);return angular.isUndefined(n)?1:n.localeCompare(u(e))})}function u(t){return""===t.label?"":t.label||t.name}function d(t){D.updateCurrentOptions(),D.toggleDropdown(t)}function h(){var t=arguments.length>0&&arguments[0]!==undefined&&arguments[0],e=D.userInput&&D.userInput.length&&D.currentOptions.find(function(e){return y(e,t)});return!!e&&(D.addToken(e),!0)}function f(){g(_.SET_VALUE_BY_USER_INPUT_ON_BLUR)&&h(!1)||p()}function p(){E(),D.toggleDropdown(!1)}function m(t){D.userInput="",D.updateDropdownCurrentOptions(t)}function g(e){return angular.isDefined(t[e])?t[e]:C[e]}function v(){var e=I&&I.$modelValue;return g(_.TO_VIEW_VALUE_FN)(e,t.options)}function y(t){return arguments.length>1&&arguments[1]!==undefined&&arguments[1]?new RegExp("^"+n(D.userInput)+"$","i").test(r(t)):new RegExp(n(D.userInput),"i").test(r(t))}function E(){D.userInput=r(v())||""}var b,_={TEXT_FIELD_FN:"textFieldFn",TEXT_FIELD:"textField",TO_MODEL_VALUE_FN:"toModelValueFn",TO_VIEW_VALUE_FN:"toViewValueFn",SET_VALUE_BY_USER_INPUT_ON_BLUR:"setValueByUserInputOnBlur"},C=(b={},b[_.TEXT_FIELD]="label",b[_.TEXT_FIELD_FN]=null,b[_.TO_MODEL_VALUE_FN]=function(t){return t},b[_.TO_VIEW_VALUE_FN]=function(t){return t},b[_.SET_VALUE_BY_USER_INPUT_ON_BLUR]=!0,b),T=13,I=void 0,D=this;Object.assign(D,{userInput:"",currentOptions:t.options,dropdownShown:!1,highlightOpts:{wrapStart:"<b>",wrapEnd:"</b>"},init:i,toggleDropdown:o,onKeyDown:a,addToken:l,onAddToken:s,getTokenViewText:r,updateCurrentOptions:c,updateDropdownCurrentOptions:d,setValueByUserInput:h,restartInput:m,onInputBlur:f}),t.$watch("options",function(){D.updateCurrentOptions(),E()},!0)}n.$inject=["$scope","$parse","regexpEscape"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t){function e(t){var e={template:'<span adt-filter-highlighter="" tokens="selectController.userInput" opts="selectController.highlightOpts" text-highlight="selectController.getTokenViewText(option)"> </span>'},n={template:'<li class="adt-select__search-item" ng-class="selectController.getTokenClass(token)" ng-repeat="token in selectController.getAllTokens() track by $index"> <span ng-bind-html="selectController.getTokenViewText(token)"></span> <span class="close adt-select__remove" ng-if="selectController.getConfig(\'removeButtonShown\')" ng-click="ngReadonly || selectController.deleteToken($index)"> × </span> </li>'},i=t[0].querySelector("[adt-select-option-template]"),r=t[0].querySelector("[adt-select-search-item-template]"),o=i?i.innerHTML:e.template,a=r?r.innerHTML:n.template;return{template:'<div class="adt-select adt-select_multiple adt-select_cleanMode" bindonce="" ng-click="!ngReadonly && selectController.startSelecting($event)"> <div class="adt-select__search" ng-class="{\'adt-select__search_no-input\': !selectController.getConfig(\'userInputEnabled\'), \'adt-select__search_no-caret\': !selectController.getConfig(\'caratDownShown\')}"> <ul class="adt-select__search-list"> <li class="adt-select__placeholder adt-select__placeholder_absolute" ng-if="selectController.isInputEmpty() && !selectController.isInputInFocus"> <span bo-bind="placeholder"></span> </li> ${searchItemTemplate} <li class="adt-select__search-item adt-select__search-item_input" ng-if="!ngReadonly && selectController.getConfig(\'userInputEnabled\')"> <input class="adt-select__input" ng-disabled="ngDisabled" ng-model="selectController.userInput" ng-trim="false" ng-change="selectController.updateDropdownCurrentOptions(true)" ng-focus="selectController.toggleDropdown(true); selectController.setInputFocusState(true)" ng-blur="selectController.setInputFocusState(false); selectController.isBlurDisabled || selectController.autocompleteInput || selectController.addTokenByUserInput()" ng-keydown="selectController.onKeyDown($event)"> </input> </li> </ul> <div class="adt-select__arrow" ng-if="!ngDisabled && !ngReadonly && selectController.getConfig(\'caratDownShown\')" ng-click="selectController.getConfig(\'userInputEnabled\') && selectController.onArrowClick($event)"> <i ng-class="{\'dhlicon-arrow-down\': !selectController.dropdownShown, \'dhlicon-arrow-up\': selectController.dropdownShown}"></i> </div> </div> <div class="adt-select__dropdown" ng-if="selectController.dropdownShown && options.length" ng-mouseover="selectController.dropdownMouseoverHandler()" ng-mouseleave="selectController.dropdownMouseLeaveHandler()"> <div class="adt-select__actions"> <button class="btn adt-select__actionBtn btn" type="button" ng-click="selectController.selectAll()"> <i class="btn__icon dhlicon dhlicon-check"></i> <span class="btn__text">Select All</span> </button> <button class="adt-select__actionBtn btn" type="button" ng-click="selectController.clearAll()"> <i class="btn__icon dhlicon dhlicon-reset"></i> <span class="btn__text">Clear All</span> </button> </div> <div class="adt-select__optionsWrap"> <ul class="adt-select__options" ng-if="selectController.currentOptions.length"> <li class="adt-select__option active" ng-repeat="option in selectController.currentOptions" ng-class="{\'even\':$even,\'odd\':$odd}" ng-mousedown="selectController.onAddToken($event, option)"> ${optionTemplate} </li> </ul> </div> </div> </div>'}.template.replace("${optionTemplate}",o).replace("${searchItemTemplate}",a)}function n(e,n,i,r){function o(t){for(var i=t.target,r=!1;i.parentElement;)if((i=i.parentElement)===n[0]){r=!0;break}r||e.$apply(function(){s.toggleDropdown(!1),s.getConfig("clearInputOnBlur")&&s.clearInput()})}var a=r[0],s=r[1];s.init(a),t.on("mousedown",o),e.$on("$destroy",function(){t.off("mousedown",o)})}return{require:["ngModel","adtSelect"],replace:!0,scope:{options:"=",placeholder:"@",newTokenFn:"=",textField:"@",userInputEnabled:"=",autocompleteInput:"=",enterCallback:"=",multipleTokenStrings:"=",caratDownShown:"=",removeButtonShown:"=",enableBackspaceDelete:"=",toViewValueFn:"=",toModelValueFn:"=",toIdValueFn:"=",clearInputOnBlur:"=",onUserInputChange:"=",ngReadonly:"=",ngDisabled:"=",ngChange:"&",getTokenClass:"=",disableUserInputFilter:"=",adtSelectTokenMinLength:"="},controller:o["default"],controllerAs:"selectController",link:n,template:e}}e.__esModule=!0;var r=n(13),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i,i.$inject=["$document"]},function(t,e){"use strict";function n(t,e,n,a,s,l){function c(){U.isBlurDisabled=!0}function u(){U.isBlurDisabled=!1}function d(t){H=t,angular.extend(H,{$render:angular.noop,$isEmpty:function(){function t(t){return angular.isUndefined(t)||null===t||!t.length}return t}()})}function h(e){return angular.isDefined(t[e])?t[e]:o[e]}function f(t){U.dropdownShown=angular.isDefined(t)?!!t:!U.dropdownShown,U.updateCurrentOptions()}function p(){U.dropdownShown||t.ngReadonly||t.ngDisabled||(f(),U.getConfig("userInputEnabled")&&n(function(){m().focus()},0))}function m(){return e.find("input")[0]}function g(t){switch(t.keyCode){case i:O();break;case r:k(t)}}function v(t){t.stopPropagation(),f()}function y(t,e){t.stopPropagation(),U.addToken(e)}function E(t){n(function(){A(function(e){return e.splice(t,1)})})}function b(t){t&&_(t)&&!S(V(t))&&A(function(e){return e.push(t)})}function _(t){var e=t[h("textField")];return!!e&&e.length>=h("adtSelectTokenMinLength")}function C(){var e=H&&H.$modelValue||[];return angular.isArray(e)&&e.map(function(e){return h("toViewValueFn")(e,t.options)})}function T(){var t=H.$modelValue;return!(U.userInput||t&&t.length)}function I(){var e=t.options||[],n=e.filter(function(t){return M(t)}).filter(function(t){return K(t)}).sort(function(t,e){return(t.label||t.name||"").localeCompare(e.label||e.name||"")});h("disableUserInputFilter")||(n=n.filter(R)),U.currentOptions=n}function D(t){U.updateCurrentOptions(),U.toggleDropdown(t),U.getConfig("onUserInputChange")(F())}function $(){U.userInput=""}function O(){if(""===F())h("enterCallback")();else if(h("autocompleteInput")){var t=w();U.addToken(t),U.clearInput(),U.updateCurrentOptions(!1)}else x()}function w(){return U.currentOptions.length&&U.currentOptions[0]}function R(t){return new RegExp(l(F()),"i").test(j(t))}function k(t){var e=C().length;""===U.userInput&&(h("enableBackspaceDelete")&&e&&U.deleteToken(e-1),t.preventDefault())}function x(){if(""!==F()){var t=h("newTokenFn"),e=h("enterCallback");(h("multipleTokenStrings")?F().replace(/(^[ ,]*|[ ,]*$)/g,"").replace(/ *, *( *, *)*/g," ").split(" "):[F()]).forEach(function(n){var i=t(n);U.addToken(i),e(i)}),U.clearInput(),U.getConfig("onUserInputChange")(""),U.updateCurrentOptions()}}function S(t){return C().some(function(e){return V(e)===t})}function A(e){var n=angular.copy(C());e(n),n=n.map(h("toModelValueFn")),H.$setViewValue(n),t.ngChange(),I()}function N(){A(function(t){t.splice.apply(t,[t.length,0].concat(U.currentOptions))})}function P(){A(function(t){t.splice(0,t.length)})}function M(t){return!U.getAllTokens().some(function(e){return V(e)===V(t)})}function K(t){return!t.isUnallowed}function L(t){return angular.extend({"is-unallowed":t&&t.isUnallowed},h("getTokenClass")(t))}function F(){return U.userInput.trim()}function B(t){U.isInputInFocus=t}var j=a(h("textField")),V=t.toIdValueFn||j,H=void 0,U=this;Object.assign(U,{userInput:"",currentOptions:t.options,autocompleteInput:h("autocompleteInput"),dropdownShown:!1,isInputInFocus:!1,highlightOpts:{wrapStart:"<b>",wrapEnd:"</b>"},init:d,getConfig:h,toggleDropdown:f,startSelecting:p,onKeyDown:g,onArrowClick:v,onAddToken:y,addToken:b,deleteToken:E,getTokenViewText:j,getAllTokens:C,updateCurrentOptions:I,updateDropdownCurrentOptions:D,addTokenByUserInput:x,clearInput:$,getTokenClass:L,selectAll:N,clearAll:P,isBlurDisabled:!1,isInputEmpty:T,dropdownMouseoverHandler:c,dropdownMouseLeaveHandler:u,setInputFocusState:B}),t.$watch("options",U.updateCurrentOptions,!0),t.$watch(function(){return H.$modelValue},U.updateCurrentOptions,!0)}e.__esModule=!0,e["default"]=n,n.$inject=["$scope","$element","$timeout","$parse","$document","regexpEscape"];var i=13,r=8,o={adtSelectTokenMinLength:0,newTokenFn:function(){function t(t){return{text:t}}return t}(),textField:"text",multipleTokenStrings:!1,userInputEnabled:!0,autocompleteInput:!0,enterCallback:angular.noop,caratDownShown:!0,removeButtonShown:!0,enableBackspaceDelete:!0,toModelValueFn:function(){function t(t){return t}return t}(),toViewValueFn:function(){function t(t){return t}return t}(),clearInputOnBlur:!0,onUserInputChange:angular.noop,getTokenClass:function(){function t(){return{}}return t}(),disableUserInputFilter:!1}},function(t,e){"use strict";function n(){return{require:"?ngModel",priority:9999,restrict:"A",link:function(){function t(t,e,n,i){i&&(i.$formatters.unshift(function(t){return i.$invalid&&(angular.isUndefined(t)||""===t)?i.$modelValue:t}),i.$parsers.push(function(t){if(i.$invalid&&angular.isUndefined(t)){var e=i.$viewValue;return"number"===n.type?parseFloat(e):e}return t}))}return t}()}}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){return{scope:{textHighlight:"=",tokens:"=",opts:"="},restrict:"A",controller:o["default"],controllerAs:"adtFilterHighlighterController",template:'<span ng-bind-html="textHtml"></span>',replace:!0}}e.__esModule=!0;var r=n(16),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i,i.$inject=[]},function(t,e){"use strict";function n(t,e){function n(){var n=t.tokens&&[].concat(t.tokens),r=t.opts||i,o=angular.isDefined(t.textHighlight)?t.textHighlight:"";"number"==typeof o&&(o=""+o),t.textHtml=e.highlight(o,n,r)}var i={wrapStart:'<span class="filter-highlight">',wrapEnd:"</span>"};t.$watch(function(){return t.tokens},n),t.$watch("textHighlight",n),n()}e.__esModule=!0,e["default"]=n,n.$inject=["$scope","textWrapperService"]},function(t,e){"use strict";function n(){return{scope:{errorsDesc:"=",errorsState:"=",customClasses:"@"},restrict:"A",template:'<div class="field-errors"> <div class="alert alert_{{customClasses || \'error\'}}" bindonce="errorsDesc" ng-repeat="(key, value) in errorsDesc" ng-show="errorsState[key]"> <span bo-text="value"></span> </div> </div>',replace:!0}}e.__esModule=!0,e["default"]=n,n.DIRECTIVE_NAME="adtErrorsDisplay"},function(t,e){"use strict";function n(){function t(t){c=i(t)}function e(t){u=i(t)}t("\\[\\["),e("\\]\\]"),angular.extend(this,{setStartSymbol:t,setEndSymbol:e,$get:r})}function i(t){return new RegExp(t,"g")}function r(t){var e=t.startSymbol(),n=t.endSymbol(),r=i(e),d=i(n);return function(h,f,p){var m=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{},g=m.start,v=m.end,y=h.replace(r,o).replace(d,a).replace(g?i(g):c,e).replace(v?i(v):u,n),E=t(y,f,p);return function(t){var i=E(t);return i&&i.replace(s,e).replace(l,n)}}}e.__esModule=!0;var o="{!{",a="}!}",s=i(o),l=i(a),c=void 0,u=void 0;e["default"]=n,r.$inject=["$interpolate"]},function(t,e,n){"use strict";function i(t){"ngInject";function e(t){return a.push(t),function(){var e=a.indexOf(t);-1!==e&&(a[e]=null,o())}}function n(){a.length=0}function i(){return a.some(function(t){return t&&t()})}function o(){i()?t.onbeforeunload=function(){return r.PRESENT_UNLOAD_CHANGES}:t.onbeforeunload=angular.noop}var a=[];return{addCheckChange:e,checkChanges:o,clearChangeCheckers:n}}i.$inject=["$window"],e.__esModule=!0,e["default"]=i;var r=n(20)},function(t,e){"use strict";e.__esModule=!0;e.PRESENT_UNLOAD_CHANGES="There are unsaved changes."},function(t,e){"use strict";function n(t){function e(e){e.$watch(function(){return t.checkChanges()})}return{restrict:"A",link:e}}e.__esModule=!0,e["default"]=n,n.$inject=["transitionConfirmationService"]},function(t,e){"use strict";function n(t){function e(e,i,r){var o=arguments.length>3&&arguments[3]!==undefined&&arguments[3];if(!i||0===i.length)return e;var a=t.getMatchPositions(e,i,o);return a.length>0?n(e,a,r):e}function n(t,e,n){var r=angular.copy(e),o=angular.copy(t);return r=e.map(function(t){return t.sort(function(t,e){return e-t})}),r.sort(function(t,e){return e[0]-t[0]}),r.forEach(function(t){o=i(o,t[0],n.wrapEnd,!0),o=i(o,t[1],n.wrapStart)}),o}function i(t,e,n){return arguments.length>3&&arguments[3]!==undefined&&arguments[3]?t.substr(0,e+1)+n+t.substr(e+1):t.substr(0,e)+n+t.substr(e)}return{highlight:e}}e.__esModule=!0,e["default"]=n,n.$inject=["matchTextPositionService"]},function(t,e){"use strict";function n(){function t(t,i){var r=arguments.length>2&&arguments[2]!==undefined&&arguments[2],o=[];return i.forEach(function(e){return n(e,t,r).forEach(function(t){return o.push(t)})}),e(o)}function e(t){return t.length<2?t:(t.sort(function(t,e){return t[0]-e[0]}),t.reduce(function(t,e){var n=t[t.length-1];if(n){if(i(n,e))return n[1]=e[1],t;if(r(n,e))return t}return t.push(e),t},[]))}function n(t,e,n){for(var i=n?t:t.toLowerCase(),r=n?e:e.toLowerCase(),o=[],a=0;a<r.length;)r.substring(a,a+i.length)===i?(o.push([a,a+i.length-1]),a+=i.length):++a;return o}function i(t,e){return e[0]<=t[1]&&e[1]>=t[1]}function r(t,e){return e[0]>=t[0]&&e[1]<=t[1]}return{getMatchPositions:t}}e.__esModule=!0,e["default"]=n,n.$inject=[]},function(t,e){"use strict";e.__esModule=!0;e.CI_TYPES={LIST_ADVANCE_DATE_DISPLAY:"LIST_ADVANCE_DATE_DISPLAY",COUNTRY_MULTIPLE_CHOICE:"COUNTRY_MULTIPLE_CHOICE",COUNTRY_SINGLE_CHOICE:"COUNTRY_SINGLE_CHOICE",LANGUAGE_SINGLE_CHOICE:"LANGUAGE_SINGLE_CHOICE",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",DATE:"DATE",SINGLE_CHOICE:"SINGLE_CHOICE",BOOLEAN:"BOOLEAN",TEXT:"TEXT",NUMERIC:"NUMERIC",NUMERIC_RANGE:"NUMERIC_RANGE",IMAGE:"IMAGE",FILE:"FILE",FORM_FIELD:"FORM_FIELD",FORM_FIELD_REPORT:"FORM_FIELD_REPORT",LIST_PACKAGING:"LIST_PACKAGING",LIST_SERVICES:"LIST_SERVICES",LIST_PRODUCT_CONFIGURATION:"LIST_PRODUCT_CONFIGURATION",LIST_PAYMENT:"LIST_PAYMENT",LIST:"LIST",MONEY:"MONEY",FORM_FIELD_LIST:"FORM_FIELD_LIST",FORM_FIELD_CONFIGURABLE:"FORM_FIELD_CONFIGURABLE",TIME_DEFINITE_PRODUCT_CHOICE:"TIME_DEFINITE_PRODUCT_CHOICE",WAY_OF_DELIVERY_PRODUCT_CHOICE:"WAY_OF_DELIVERY_PRODUCT_CHOICE"}},function(t,e){"use strict";function n(){"ngInject";function t(t,e){n.push([t,e])}function e(){function t(t){var e=n.find(function(e){var n=e[0];return angular.equals(n,t)});return e?e[1]:{}}return{getRowValidationsConfig:t}}var n=[];angular.extend(this,{setValidationConfig:t,$get:e})}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t){"ngInject";function e(e,i){var r={};return function(o,a){r[o]=a,t.$evalAsync(function(){Object.keys(e).forEach(function(t){n(e[t],r,i)})})}}function n(t,e,n){t.validators&&t.validators.forEach(function(t){t(e,n)})}function i(t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n].errorMessages,e},{})}return{getValidationFn:e,getErrorMessages:i}}n.$inject=["$rootScope"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(28),o=i(r),a=n(148),s=i(a),l=n(149),c=i(l),u=n(151),d=i(u),h=n(153),f=i(h),p=n(155),m=i(p),g=n(157),v=i(g),y=n(159),E=i(y),b=n(160),_=i(b),C=n(162),T=i(C),I=n(163),D=i(I),$=n(165),O=i($),w=n(166),R=i(w),k=n(167),x=i(k),S=n(169),A=i(S),N=n(170),P=i(N),M=n(171),K=i(M),L=n(172),F=i(L),B=n(173),j=i(B),V=n(174),H=i(V),U=n(177),z=n(183),G=i(z),q=n(184),W=i(q),Y=n(185),X=i(Y),J=n(187),Z=i(J),Q=n(188),tt=i(Q),et=n(189),nt=i(et),it=n(190),rt=i(it),ot=n(191),at=i(ot),st=n(192),lt=i(st),ct=n(193),ut=i(ct);e["default"]=angular.module("adtCILibrary",["adtCoreLib",o["default"]]).directive("adtCiTemplate",s["default"]).directive("adtConfigurationItem",c["default"]).directive("adtSingleChoice",d["default"]).directive("adtMasterListRule",f["default"]).directive("adtGroupsSidebar",m["default"]).directive("adtGroupValidity",v["default"]).directive("adtTooltip",E["default"]).directive(_["default"].NG_NAME,_["default"]).provider("adtDataTransformersFactory",T["default"]).factory("adtCiTransformerService",A["default"]).factory("generateCiId",P["default"]).factory("ciChangesService",K["default"]).factory("ciDataStructureTransformer",F["default"]).factory("ciDependencyService",j["default"]).service("ciDependenciesManager",H["default"]).service("dependencyRulesFactory",U.DependencyRulesFactory).factory("ciDisablingService",G["default"]).factory("ciDisablingRulesService",W["default"]).service("adtCiSimpleTransformerService",X["default"]).factory("parentDataService",Z["default"]).factory("ciDataStorage",tt["default"]).factory("ciTypeResolver",nt["default"]).factory(rt["default"].NG_NAME,rt["default"]).factory(at["default"].NG_NAME,at["default"]).constant("oneCanBeSelectedListValidator",ut["default"]).filter("adtCiChoiceFormatter",lt["default"]).config(function(){function t(t){"ngInject";t.setTransformersMap({numeric:D["default"],text:O["default"],"boolean":R["default"],multiple_choice:x["default"]})}return t.$inject=["adtDataTransformersFactoryProvider"],t}())},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(29),o=i(r),a=n(141),s=i(a),l=n(146),c=i(l),u=n(147),d=i(u),h=angular.module("adt.configuration.list-components",[o["default"],s["default"]]);h.filter(d["default"].NG_NAME,d["default"]).factory(c["default"].FACTORY_NAME,c["default"]),e.module=h,e["default"]="adt.configuration.list-components"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(30),o=i(r),a=n(63),s=i(a),l=n(65),c=i(l),u=n(109),d=i(u),h=n(111),f=i(h),p=n(114),m=i(p),g=n(116),v=i(g),y=n(118),E=i(y),b=n(120),_=i(b),C=n(122),T=i(C),I=n(124),D=i(I),$=n(126),O=i($),w=n(128),R=i(w),k=n(130),x=i(k),S=n(132),A=i(S),N=n(134),P=i(N),M=n(135),K=i(M),L=n(137),F=i(L),B=n(138),j=i(B),V=n(139),H=i(V),U=n(140),z=i(U),G=angular.module("adt.configuration.common-list",[o["default"]]);G.provider(H["default"].PROVIDER_NAME,H["default"]).config(z["default"]).factory(F["default"].FACTORY_NAME,F["default"]).factory(j["default"].FACTORY_NAME,j["default"]).directive(s["default"].DIRECTIVE_NAME,s["default"]).directive(c["default"].DIRECTIVE_NAME,c["default"]).directive(d["default"].DIRECTIVE_NAME,d["default"]).directive(f["default"].DIRECTIVE_NAME,f["default"]).directive(m["default"].DIRECTIVE_NAME,m["default"]).directive(v["default"].DIRECTIVE_NAME,v["default"]).directive(E["default"].DIRECTIVE_NAME,E["default"]).directive(_["default"].DIRECTIVE_NAME,_["default"]).directive(T["default"].DIRECTIVE_NAME,T["default"]).directive(D["default"].DIRECTIVE_NAME,D["default"]).directive(x["default"].DIRECTIVE_NAME,x["default"]).directive(A["default"].DIRECTIVE_NAME,A["default"]).directive(O["default"].DIRECTIVE_NAME,O["default"]).directive(R["default"].DIRECTIVE_NAME,R["default"]).directive(P["default"].DIRECTIVE_NAME,P["default"]).directive(K["default"].NG_NAME,K["default"]),e.module=G,e["default"]="adt.configuration.common-list"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(31),o=i(r),a=n(39),s=i(a),l=n(41),c=i(l),u=n(43),d=i(u),h=n(45),f=i(h),p=n(47),m=i(p),g=n(48),v=i(g),y=n(50),E=i(y),b=n(52),_=i(b),C=n(54),T=i(C),I=n(56),D=i(I),$=n(58),O=i($),w=n(60),R=i(w),k=n(61),x=i(k),S=n(62),A=i(S),N=angular.module("adt.configuration.base-list",[]);N.directive(o["default"].DIRECTIVE_NAME,o["default"]).directive(s["default"].DIRECTIVE_NAME,s["default"]).directive(c["default"].DIRECTIVE_NAME,c["default"]).directive(d["default"].DIRECTIVE_NAME,d["default"]).directive(f["default"].DIRECTIVE_NAME,f["default"]).directive(m["default"].DIRECTIVE_NAME,m["default"]).directive(v["default"].DIRECTIVE_NAME,v["default"]).directive(E["default"].DIRECTIVE_NAME,E["default"]).directive(_["default"].DIRECTIVE_NAME,_["default"]).directive(T["default"].DIRECTIVE_NAME,T["default"]).directive(D["default"].DIRECTIVE_NAME,D["default"]).directive(O["default"].DIRECTIVE_NAME,O["default"]).filter(R["default"].FILTER_NAME,R["default"]).filter(x["default"].FILTER_NAME,x["default"]).provider("cellTemplateService",A["default"]),e.module=N,e["default"]="adt.configuration.base-list"},function(t,e,n){"use strict";function i(){"ngInject";function t(t){var e=t[0].querySelector("[table-actions-template]"),n=t[0].querySelector("[row-actions-template]"),i=t[0].querySelector("[row-editor-template]"),r=t[0].querySelector("[selection-all-template]"),o=t[0].querySelector("[selection-checkbox-template]");return{template:'<div adt-pagination-wrapper="" ci-filter-wrapper="" row-selection-wrapper="" is-row-selectable-fn="isRowSelectableFn" is-selection-all-available-fn="isSelectionAllAvailableFn" row-id-fn="rowIdFn" list-sort-wrapper="" columns="listController.getColumns()" is-column-sortable-fn="isColumnSortableFn"> <div class="adt-table-wrap" ng-class="{\'is-disabled\': ngDisabled}"> <div adt-list-control-panel=""> ${tableActionsTemplate} </div> <div class="adt-table-holder"> <table class="adt-table"> <thead adt-list-header="" filters-configuration="filtersConfiguration"> <tr> <td selection-all-template=""> ${selectionAllTemplate} </td> </tr> </thead> <tbody class="adt-table__row-wrap" ng-repeat-start="row in filteredRows = (listController.getRows() | adtTableAdvancedFilter : listController.advancedFilters : getRenderedValueFn | adtTableFilter : ciFilterWrapperController.tokens : getRenderedValueFn : nonFilterableColumns) | orderBy : sortWrapperCtrl.getSortedColumn().metaInfo.uiComponent : sortWrapperCtrl.isReverse() | pagination : paginationWrapperCtrl.paginationObj.amount : paginationWrapperCtrl.paginationObj.page" ng-if="listController.getRowBeingEdited() !== row"> <tr adt-list-row="row"> <td selection-checkbox-template=""> ${selectionCheckboxTemplate} </td> </tr> <tr adt-list-actions-row="row" mass-update="massUpdate" ng-if="!hideActionsFn(row) && !listController.isAnyRowBeingEdited()"> <td actions-template=""> ${rowActionsTemplate} </td> </tr> </tbody> <tbody class="adt-table__row-wrap edited" ng-repeat-end="" ng-if="listController.getRowBeingEdited() === row" adt-ci-list-row-editor-wrapper="row" mode="\'EDIT\'"> ${editorTemplate} <tr class="adt-table__action-row"> <td class="adt-table__cell adt-table__cell_check"></td> <td class="adt-table__cell" colspan="{{listController.getColumns().length}}"> <div editor-actions=""></div> </td> </tr> </tbody> <tbody class="adt-table__row-wrap edited" ng-if="!!listController.getRowBeingCreated()" adt-ci-list-row-editor-wrapper="listController.getRowBeingCreated()" mode="listController.rowCreationMode"> ${editorTemplate} <tr class="adt-table__action-row"> <td class="adt-table__cell adt-table__cell_check"></td> <td class="adt-table__cell" colspan="{{listController.getColumns().length}}"> <div editor-actions=""></div> </td> </tr> </tbody> <tbody class="adt-table__row-wrap" ng-if="filteredRows.length === 0 && listController.getRows().length > 0"> <tr> <td class="adt-table-error" colspan="{{listController.getColumns().length + 1}}"> No items matching filtering conditions </td> </tr> </tbody> </table> </div> </div> <div class="pagination" adt-pagination="" ng-disabled="listController.isAnyRowBeingEdited()" items-number="filteredRows.length" pagination-obj="paginationWrapperCtrl.paginationObj"> </div> </div>'}.template.replace("${tableActionsTemplate}",e&&e.innerHTML).replace("${rowActionsTemplate}",n&&n.innerHTML).replace(new RegExp("\\${editorTemplate}","g"),i&&i.innerHTML).replace("${selectionAllTemplate}",r&&r.innerHTML).replace("${selectionCheckboxTemplate}",o&&o.innerHTML)}function e(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{scope:{ngDisabled:"=",meta:"=",isColumnSortableFn:"=",isRowSelectableFn:"=",isSelectionAllAvailableFn:"=",rowIdFn:"=",getRowClassesFn:"=",hideActionsFn:"=",massUpdate:"=",filtersConfiguration:"=",getRenderedValueFn:"=",nonFilterableColumns:"="},restrict:"A",controller:o["default"],controllerAs:"listController",require:["adtList","^ngModel","?adtTableLevelFilterStorage"],link:e,template:t}}e.__esModule=!0,e["default"]=i;var r=n(32),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtList"},function(t,e,n){"use strict";function i(t,e){"ngInject";function n(t){$=t}function i(t){return $(t)}function r(e){return t.getRowClassesFn=t.getRowClassesFn||angular.noop,t.getRowClassesFn(e)}function a(){return!!c()||!!D}function s(t){return t===I}function l(t){I=t}function c(){return I}function u(t,e){D=t,b.rowCreationMode=e}function d(){return D}function h(){D=null,I=null}function f(){return _&&_.$modelValue}function p(){return t.meta}function m(t,n){_=t,C=n,e(function(){b.initialized=!0}),C&&C.onFiltersChange(y)}function g(){var t=p(),e=t.childCiMetas,n=t.metaInfo.columns,i=(0,o["default"])(e).groupBy("metaInfo.uiComponent");return T=n.map(function(t){return i[t][0]})}function v(){return T||g()}function y(){b.advancedFilters=C.getFilters()}function E(){return t.ngDisabled}var b=this,_=null,C=null,T=null,I=null,D=null,$=null;Object.assign(b,{initialized:!1,rowCreationMode:null,advancedFilters:{},getRows:f,getMeta:p,getColumns:v,getRowClasses:r,isAnyRowBeingEdited:a,isRowBeingEdited:s,setRowBeingEdited:l,getRowBeingEdited:c,setRowBeingCreated:u,getRowBeingCreated:d,stopEditing:h,setEditableColumnsConfigFn:n,getEditableColumnsConfig:i,isListDisabled:E,init:m})}i.$inject=["$scope","$timeout"],e.__esModule=!0;var r=n(33),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);n(35),e["default"]=i},function(t,e,n){t.exports=n(34)},function(t,e,n){var i,r;(function(n){(function(){"use strict";function o(){}function a(t){this.initialize(t)}function s(t){this.iterator=t}function l(t){this.initialize(t)}function c(t){this.initialize(t)}function u(t){this.initialize(t)}function d(){this.next=null,this.prev=null}function h(t){this.iterator=o.of(t)}function f(t){this.fn=t}function p(t){this.fn=t,this.iterator=null}function m(t){this.fn=t}function g(t){this.prev=null,this.next=null,this.fn=t}function v(t){this.prev=null,this.next=null,this.filter=t.filter,this.finisher=t.finisher,this.merger=t.merger,this.customMerge=D(this.merger),this.buffer=null,this.i=0}function y(t,e){this.begin=t,this.end=e,this.i=0}function E(t){this.consumer=t,this.consoleFn=S(t)}function b(t){this.predicate=t}function _(t){this.predicate=t,this.border=!1}function C(t){var e,n=this;e=D(t)?new g(function(){return t.call(P)}):new h(I(t)?t.split(""):t),this.add=function(t){if(null!==e){var n=e;t.prev=n,n.next=t}e=t},this.next=function(){return e.advance()},this.filter=function(){var t=arguments[0];return x(t)?this.add(new m(function(e){return t.test(e)})):k(t)?this.add(new m(function(e){return B(t,e)})):this.add(new m(t)),this},this.map=function(){var t=arguments[0];return I(t)?this.add(new f(F(t))):this.add(new f(t)),this},this.flatMap=function(){var t=arguments[0];return I(t)?this.add(new f(F(t))):this.add(new f(t)),this.add(new p),this},this.sorted=function(t){var e;return e=D(t)?t:I(t)?L(t):K,this.add(new v({finisher:function(t){t.sort(e)}})),this},this.shuffle=function(){return this.add(new v({merger:function(t,e){if(0===e.length)e.push(t);else{var n=Math.floor(Math.random()*e.length),i=e[n];e[n]=t,e.push(i)}}})),this},this.reverse=function(){return this.add(new v({merger:function(t,e){e.unshift(t)}})),this},this.distinct=function(){return this.add(new v({filter:function(t,e,n){return n.indexOf(t)<0}})),this},this.slice=function(t,e){if(t>e)throw"slice(): begin must not be greater than end";return this.add(new y(t,e)),this},this.skip=function(t){return this.add(new y(t,Number.MAX_VALUE)),this},this.limit=function(t){return this.add(new y(0,t)),this},this.peek=function(t){return this.add(new E(t)),this},this.takeWhile=function(){var t=arguments[0];return x(t)?this.add(new b(function(e){return t.test(e)})):k(t)?this.add(new b(function(e){return B(t,e)})):this.add(new b(t)),this},this.dropWhile=function(){var t=arguments[0];return x(t)?this.add(new _(function(e){return t.test(e)})):k(t)?this.add(new _(function(e){return B(t,e)})):this.add(new _(t)),this};var i={};i.toArray=function(){for(var t,e=[];(t=n.next())!==M;)e.push(t);return e},i.findFirst=function(){var t=n.next();return t===M?T.empty():T.ofNullable(t)},i.forEach=function(t){for(var e,i=S(t);(e=n.next())!==M;)t.call(i?console:P,e)},i.min=function(t){var e;e=D(t)?t:I(t)?L(t):K;for(var i,r=null;(i=n.next())!==M;)(null===r||e.call(P,i,r)<0)&&(r=i);return T.ofNullable(r)},i.max=function(t){var e;e=D(t)?t:I(t)?L(t):K;for(var i,r=null;(i=n.next())!==M;)(null===r||e.call(P,i,r)>0)&&(r=i);return T.ofNullable(r)},i.sum=function(t){for(var e,i=t?F(t):function(t){return t},r=0;(e=n.next())!==M;)r+=i.call(P,e);return r},i.average=function(t){for(var e,i=t?F(t):function(t){return t},r=0,o=0;(e=n.next())!==M;)o+=i.call(P,e),r++;return 0===o||0===r?T.empty():T.of(o/r)},i.count=function(){for(var t=0;n.next()!==M;)t++;return t},i.allMatch=function(){var t,e=arguments[0],i=e;for(x(e)?i=function(t){return e.test(t)}:k(e)&&(i=function(t){return B(e,t)});(t=n.next())!==M;){if(!i.call(P,t))return!1}return!0},i.anyMatch=function(){var t,e=arguments[0],i=e;for(x(e)?i=function(t){return e.test(t)}:k(e)&&(i=function(t){return B(e,t)});(t=n.next())!==M;){if(i.call(P,t))return!0}return!1},i.noneMatch=function(){var t,e=arguments[0],i=e;for(x(e)?i=function(t){return e.test(t)}:k(e)&&(i=function(t){return B(e,t)});(t=n.next())!==M;){if(i.call(P,t))return!1}return!0},i.collect=function(t){for(var e,i=t.supplier.call(P),r=!0;(e=n.next())!==M;)i=t.accumulator.call(P,i,e,r),r=!1;return t.finisher&&(i=t.finisher.call(P,i)),i},i.reduce=function(){var t=arguments[0],e=arguments[1];return e?n.collect({supplier:function(){return t},accumulator:e}):r(t)};var r=function(t){var e,i=n.next();if(i===M)return T.empty();for(;(e=n.next())!==M;)i=t.call(P,i,e);return T.ofNullable(i)};i.groupBy=function(){var t=arguments[0];return I(t)&&(t=F(t)),n.collect({supplier:function(){return{}},accumulator:function(e,n){var i=t.call(P,n);return e.hasOwnProperty(i)||(e[i]=[]),e[i]===undefined&&(e[i]=[]),e[i].push(n),e}})},i.toMap=function(){var t=arguments[0];I(t)&&(t=F(t));var e=!1;return arguments.length>1&&(e=arguments[1]),n.collect({supplier:function(){return{}},accumulator:function(n,i){var r=t.call(P,i);if(n.hasOwnProperty(r)){if(!e)throw"duplicate mapping found for key: "+r;return n[r]=e.call(P,n[r],i),n}return n[r]=i,n}})},i.partitionBy=function(){var t=arguments[0];if(D(t))return a(t);if($(t))return s(t);if(x(t))return a(function(e){return t.test(e)});if(k(t))return a(function(e){return B(t,e)});throw"partitionBy requires argument of type function, object, regexp or number"};var a=function(t){return n.collect({supplier:function(){return{"true":[],"false":[]}},accumulator:function(e,n){var i=t.call(P,n);return e.hasOwnProperty(i)||(e[i]=[]),e[i].push(n),e}})},s=function(t){return n.collect({supplier:function(){return[]},accumulator:function(e,n){if(0===e.length)return e.push([n]),e;var i=e[e.length-1];return i.length===t?(e.push([n]),e):(i.push(n),e)}})};i.joining=function(t){var e="",i="",r="";return t&&(I(t)?r=t:(e=t.prefix||e,i=t.suffix||i,r=t.delimiter||r)),n.collect({supplier:function(){return""},accumulator:function(t,e,n){return t+(n?"":r)+String(e)},finisher:function(t){return e+t+i}})};var l=function(){this.value=n.next()};l.prototype=new o,l.prototype.next=function(){if(this.value===M)return{value:undefined,done:!0};var t=n.next(),e=t===M,i={value:this.value,done:e};return this.value=t,i},i.iterator=function(){return new l};var c=!1;for(var u in i)i.hasOwnProperty(u)&&(this[u]=function(t){return function(){try{if(c)throw"stream has already been operated upon";return t.apply(n,arguments)}finally{c=!0}}}(i[u]));this.indexBy=this.toMap,this.partitioningBy=this.partitionBy,this.groupingBy=this.groupBy,this.each=this.forEach,this.toList=this.toArray,this.join=this.joining,this.avg=this.average,this.sort=this.sorted,this.size=this.count,this.findAny=this.findFirst}function T(t){this.isPresent=function(){return null!==t&&t!==undefined},this.get=function(){if(!this.isPresent())throw"optional value is not present";return t},this.ifPresent=function(e){this.isPresent()&&e.call(t,t)},this.orElse=function(e){return this.isPresent()?t:e},this.orElseGet=function(e){return this.isPresent()?t:e.call(P)},this.orElseThrow=function(e){if(this.isPresent())return t;throw e},this.filter=function(e){if(this.isPresent()){return e.call(P,t)?this:T.empty()}return this},this.map=function(e){if(this.isPresent()){var n=e.call(P,t);return T.ofNullable(n)}return this},this.flatMap=function(e){return this.isPresent()?e.call(P,t):this}}function I(t){return"[object String]"===j.call(t)}function D(t){return"function"==typeof t||!1}function $(t){return"[object Number]"===j.call(t)}function O(t){return Boolean(N.Set)&&t instanceof Set&&D(t.values)}function w(t){return Boolean(N.Map)&&t instanceof Map&&D(t.values)}function R(t){return Boolean(t)&&D(t.next)}function k(t){return Boolean(t)&&"object"==typeof t}function x(t){return"[object RegExp]"===j.call(t)}function S(t){return!!N.console&&(console.log===t||console.warn===t||console.error===t||console.trace===t)}function A(t){return new C(t)}var N="object"==typeof n&&n||this,P={},M={};o.of=function(t){return null===t||t===undefined?new u(t):V(t)?new a(t):w(t)||O(t)?new s(t.values()):R(t)?new s(t):k(t)?new l(t):new c(t)},a.prototype=new o,a.prototype.next=function(){if(this.origin>=this.fence)return M;try{return this.data[this.origin]}finally{this.origin++}},a.prototype.initialize=function(t){this.data=t||[],this.origin=0,this.fence=this.data.length},s.prototype=new o,s.prototype.next=function(){if(this.iterator){var t=this.iterator.next();return t.done&&delete this.iterator,t.value}return M},l.prototype=new o,l.prototype.initialize=function(t){this.data=t||{},this.keys=Object.keys(t),this.origin=0,this.fence=this.keys.length},l.prototype.next=function(){if(this.origin>=this.fence)return M;try{var t=this.keys[this.origin];return this.data[t]}finally{this.origin++}},c.prototype=new o,c.prototype.initialize=function(t){this.value=t,this.done=!1},c.prototype.next=function(){return this.done?M:(this.done=!0,this.value)},u.prototype=new o,u.prototype.initialize=function(t){this.value=t,this.done=!0},u.prototype.next=function(){return M},h.prototype=new d,h.prototype.advance=function(){var t=this.iterator.next();return t===M?t:null===this.next?t:this.next.pipe(t)},f.prototype=new d,f.prototype.advance=function(){return this.prev.advance()},f.prototype.pipe=function(t){var e=this.fn.call(P,t);return null===this.next?e:this.next.pipe(e)},p.prototype=new d,p.prototype.advance=function(){if(null===this.iterator)return this.prev.advance();var t=this.iterator.next();return t===M?(this.iterator=null,this.prev.advance()):null===this.next?t:this.next.pipe(t)},p.prototype.pipe=function(t){this.iterator=o.of(t);var e=this.iterator.next();return e===M?this.prev.advance():null===this.next?e:this.next.pipe(e)},m.prototype=new d,m.prototype.advance=function(){return this.prev.advance()},m.prototype.pipe=function(t){return this.fn.call(P,t)?null===this.next?t:this.next.pipe(t):this.prev.advance()},g.prototype.advance=function(){var t=this.fn.call(P);return this.next.pipe(t)},v.prototype.advance=function(){var t;if(null===this.buffer){for(this.buffer=[];(t=this.prev.advance())!==M;)this.i++;this.finisher&&this.finisher.call(P,this.buffer)}return 0===this.buffer.length?M:(t=this.buffer.shift(),null!==this.next?this.next.pipe(t):t)},v.prototype.pipe=function(t){this.filter&&!1===this.filter.call(P,t,this.i,this.buffer)||(this.customMerge?this.merger.call({},t,this.buffer):this.buffer.push(t))},y.prototype=new d,y.prototype.advance=function(){return this.prev.advance()},y.prototype.pipe=function(t){return this.i>=this.end?M:(this.i++,this.i<=this.begin?this.prev.advance():null===this.next?t:this.next.pipe(t))},E.prototype=new d,E.prototype.advance=function(){return this.prev.advance()},E.prototype.pipe=function(t){return this.consumer.call(this.consoleFn?console:P,t),null===this.next?t:this.next.pipe(t)},b.prototype=new d,b.prototype.advance=function(){return this.prev.advance()},b.prototype.pipe=function(t){return!0!==this.predicate.call(P,t)?M:null===this.next?t:this.next.pipe(t)},_.prototype=new d,_.prototype.advance=function(){return this.prev.advance()},_.prototype.pipe=function(t){if(!this.border){if(!0===this.predicate.call(P,t))return this.prev.advance();this.border=!0}return null===this.next?t:this.next.pipe(t)},C.prototype.toString=function(){return"[object Stream]"},T.prototype.toString=function(){return"[object Optional]"},T.of=function(t){if(null===t||t===undefined)throw"value must be present";return new T(t)},T.ofNullable=function(t){return new T(t)},T.empty=function(){return new T(undefined)};var K=function(t,e){return t===e?0:t>e?1:-1},L=function(t){var e=F(t);return function(t,n){var i=e(t),r=e(n);return K(i,r)}},F=function(t){if(t.indexOf(".")<0)return function(e){return e[t]};var e=t.split(".");return function(t){for(var n=t,i=0;i<e.length;i++){n=n[e[i]]}return n}},B=function(t,e){if(!k(t))return t===e;if(!k(e))return!1;for(var n in t)if(t.hasOwnProperty(n)){if(!e.hasOwnProperty(n))return!1;var i=t[n],r=e[n],o=B(i,r);if(!o)return!1}return!0},j=Object.prototype.toString,V=function(t){var e=t.length;return"number"==typeof e&&e>=0};A.from=function(t){return A(t)},A.range=function(t,e){return A.iterate(t,function(t){return t+1}).limit(e-t)},A.rangeClosed=function(t,e){return A.range(t,e+1)},A.of=function(){return A(Array.prototype.slice.call(arguments))},A.generate=function(t){return A(t)},A.iterate=function(t,e){var n=!0,i=t;return A(function(){return n?(n=!1,t):i=e.call(P,i)})},A.empty=function(){return A([])},A.VERSION="1.6.4",A.NAME="STREAMJS",A.Optional=T;var H;Boolean(N.Stream)&&N.Stream.NAME!==A.NAME&&(H=N.Stream),A.noConflict=function(){return N.Stream=H,A},void 0!==t&&t.exports?t.exports=A:(i=[],(r=function(){return A}.apply(e,i))!==undefined&&(t.exports=r))}).call(this)}).call(e,function(){return this}())},function(t,e,n){"use strict";function i(t,e){return new RegExp(t,"i").test(e)}e.__esModule=!0;var r;n(36);var o=n(37),a=function(t){return t&&t.__esModule?t:{"default":t}}(o),s=n(38);e["default"]=(r={},r[a["default"].DATE]=function(t,e){return!e.length||e.some(function(e){return new Date(e.dateFrom).getTime()<=t&&new Date(e.dateTo).getTime()>=t})},r[a["default"].NUMERIC]=function(t,e){return!e.length||e.some(function(e){return t>=e.from&&t<=e.to})},r[a["default"].BOOLEAN]=function(t,e){return t===e||Boolean("Y"===t)===e},r[a["default"].TEXT]=function(t,e){return!e.length||e.some(function(e){var n=e.string;switch(e.type){case s.RANGE_TYPES.EQUAL:return i("^"+n+"$",t);case s.RANGE_TYPES.CONTAIN:return i(n,t);case s.RANGE_TYPES.STARTS_WITH:return i("^"+n,t);case s.RANGE_TYPES.ENDS_WITH:return i(n+"$",t)}})},r[a["default"].SELECT]=function(t,e){var n=angular.isArray(t)?t:[t];return!e.length||e.some(function(t){return n.some(function(e){return t.text===e})})},r)},function(t,e){"use strict";e.__esModule=!0,e["default"]=angular.module("adt.core",["pasvaz.bindonce","ngResource","ui.bootstrap","ngStorage","adtCoreLib"])},function(t,e){"use strict";e.__esModule=!0,e["default"]={DATE:"DATE",NUMERIC:"NUMERIC",BOOLEAN:"BOOLEAN",TEXT:"TEXT",SELECT:"SELECT"}},function(t,e){"use strict";e.__esModule=!0;e.RANGE_TYPES={EQUAL:"EQUAL",CONTAIN:"CONTAIN",STARTS_WITH:"STARTS_WITH",ENDS_WITH:"ENDS_WITH"}},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{scope:{ngDisabled:"=",selectAll:"="},require:["adtRowSelectionCheckbox","^rowSelectionWrapper","?^adtListRow"],controller:o["default"],controllerAs:"rowSelectionCheckboxCtrl",replace:!0,template:'<label class="checkbox" ng-disabled="ngDisabled" ng-show="rowSelectionCheckboxCtrl.isSelectable()"> <input type="checkbox" class="checkbox__input" ng-model="rowSelectionCheckboxCtrl.selected" ng-change="rowSelectionCheckboxCtrl.selectionChanged()" adt-ci-lockable=""></input> <span class="label"></span> </label>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(40),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtRowSelectionCheckbox"},function(t,e){"use strict";function n(t){function e(e,i){s=e,l=i,t.$watch(function(){return s.areAllSelected()},n)}function n(){a.selected=i()}function i(){if(s)return t.selectAll?s.areAllSelected():s.isSelected(l.getRow())}function r(){t.selectAll?s.selectionOfAllChanged():s.selectionChanged(l.getRow())}function o(){if(s)return t.selectAll?s.isSelectAllAvailable():s.isSelectable(l.getRow())}var a=this,s=void 0,l=void 0;Object.assign(a,{selected:!1,init:e,selectionChanged:r,isSelectable:o})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope"]},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{restrict:"A",require:["rowSelectionWrapper","^adtList"],controller:o["default"],controllerAs:"rowSelectionWrapperCtrl",link:t}}e.__esModule=!0,e["default"]=i;var r=n(42),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="rowSelectionWrapper"},function(t,e){"use strict";function n(t,e){function n(n){g=n,t.$watch(g.getRows,i),b=t.$eval(e.isRowSelectableFn)||function(){return!0},_=t.$eval(e.isSelectionAllAvailableFn)||function(){return!0},C=t.$eval(e.rowIdFn)}function i(){o(),r()}function r(){v=g.getRows().filter(b).every(function(t){return d(t)})}function o(){y=!!h().length}function a(){return v}function s(){return y}function l(t){v=angular.isDefined(t)?t:!v,g.getRows().filter(f).forEach(function(t){return u(t,v)}),o()}function c(t){u(t,!d(t)),i()}function u(t,e){E.set(C(t),e)}function d(t){return!!E.get(C(t))}function h(){var t=Array.from(E).filter(function(t){return t[1]}).map(function(t){return t[0]});return g.getRows().filter(f).filter(function(e){return t.includes(C(e))})}function f(t,e,n){return b(t,e,n||g.getRows())}function p(){return _(g.getRows())}var m=this,g=void 0,v=!1,y=!1,E=new Map,b=void 0,_=void 0,C=void 0;Object.assign(m,{init:n,areAllSelected:a,selectionOfAllChanged:l,selectionChanged:c,isSelected:d,getSelectedRows:h,isSelectable:f,isSelectAllAvailable:p,areSelectedPresent:s})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope","$attrs"]},function(t,e,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"sortWrapperCtrl"}}e.__esModule=!0,e["default"]=i;var r=n(44),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listSortWrapper"},function(t,e){"use strict";function n(t,e){function n(){return c}function i(t){return d===t}function r(t){return u.includes(t)}function o(t){d===t?c=!c:(d=t,c=!1)}function a(t){var e=d.metaInfo.uiComponent,n=t[e];return angular.isObject(n)?n.value:n}function s(){return d}var l=this,c=!1,u=function(){var n=t.$eval(e.columns),i=t.$eval(e.isColumnSortableFn)||function(){return!1};return n.filter(i)}(),d=u[0];Object.assign(l,{isReverse:n,isColumnSorted:i,isColumnSortable:r,sort:o,getSortedColumn:s,getOrderExpression:a})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope","$attrs"]},function(t,e,n){"use strict";function i(){function t(t){var e=t[0].querySelector("[selection-all-template]");return{template:'<tr class="adt-table__head" bindonce=""> <th class="adt-table__cell adt-table__cell_check"> ${selectionAllTemplate} </th> <th class="adt-table__cell" ng-repeat="column in rowController.getColumns()"> <div list-sort-switcher="" column="column"></div> <div bo-if="filtersConfiguration && filtersConfiguration[column.metaInfo.uiComponent]"> <div extended-filter-button="filterColumns[$index]"></div> </div> </th> </tr>'}.template.replace("${selectionAllTemplate}",e&&e.innerHTML||"")}function e(t,e,n,i){var r=i[0],o=i[1];r.init(o),t.filtersConfiguration&&(t.filterColumns=r.getColumns().map(function(e){var n=e.metaInfo.uiComponent;return{filter:t.filtersConfiguration[n],id:n}}))}return{restrict:"A",scope:{filtersConfiguration:"="},require:["adtListHeader","^adtList"],controller:o["default"],controllerAs:"rowController",template:t,link:e}}e.__esModule=!0,e["default"]=i;var r=n(46),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtListHeader"},function(t,e){"use strict";function n(t,e){"ngInject";function n(n){var i=u.getEditableColumnsConfig("VIEW");return e.isEditable(t.row,n.metaInfo,"VIEW",i)}function i(){return t.row}function r(){return u&&u.getRowClasses(t.row)}function o(){return u&&u.isAnyRowBeingEdited()}function a(e,n){u=e,d=n,t.$watch(function(){return d&&d.tokens},s)}function s(t){c.filterTokens=t&&t.map(function(t){return t.name})||[]}function l(){return u&&u.getColumns()}var c=this,u=void 0,d=void 0;Object.assign(c,{filterTokens:[],init:a,getRow:i,rowClasses:r,getColumns:l,isAnyRowBeingEdited:o,isGreyedOut:n})}n.$inject=["$scope","ciIsColumnEditableService"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t){var e=t[0].querySelector("[selection-checkbox-template]");return{template:'<tr class="adt-table__row" ng-class="rowController.rowClasses(row)" ng-if="!rowController.isRowEditing(row)"> <td class="adt-table__cell adt-table__cell_check" ng-class="{\'is-disabled\': rowController.isAnyRowBeingEdited()}"> ${selectionCheckbox} </td> <td class="adt-table__cell" ng-class="{\'is-disabled\': rowController.isAnyRowBeingEdited()}" bo-class="{\'non-editable\': !rowController.isGreyedOut(column)}" ng-repeat="column in rowController.getColumns()"> <span adt-cell-value-renderer="" value="row[column.metaInfo.uiComponent]" meta-info="column.metaInfo" tokens="rowController.filterTokens" row="rowController.getRow()"> </span> </td> </tr>'}.template.replace("${selectionCheckbox}",e&&e.innerHTML||"")}function e(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{scope:{row:"=adtListRow"},replace:!0,controller:o["default"],controllerAs:"rowController",require:["adtListRow","^adtList","?^ciFilterWrapper"],link:e,template:t}}e.__esModule=!0,e["default"]=i;var r=n(46),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtListRow"},function(t,e,n){"use strict";function i(){function t(t){var e=t[0].querySelector(["[actions-template]"])||"";return{template:'<tr class="adt-table__action-row"> <td class="adt-table__cell adt-table__cell_check"></td> <td class="adt-table__cell" colspan="{{adtListActionRowCtrl.getColumnsNumber()}}"> ${actions} </td> </tr>'}.template.replace("${actions}",e&&e.innerHTML||"")}function e(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{scope:{row:"=adtListActionsRow",massUpdate:"="},controller:o["default"],controllerAs:"adtListActionRowCtrl",require:["adtListActionsRow","^adtList"],replace:!0,template:t,link:e}}e.__esModule=!0,e["default"]=i;var r=n(49),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtListActionsRow"},function(t,e){"use strict";function n(t){function e(t){a=t,o.inited=!0}function n(){return t.row}function i(){return a&&a.getColumns().length}function r(){return a&&a.isAnyRowBeingEdited()}var o=this,a=void 0;Object.assign(o,{init:e,getRow:n,getColumnsNumber:i,isAnyRowBeingEdited:r})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope"]},function(t,e,n){"use strict";function i(){function t(t){var e=t[0].innerHTML;return{template:'<div class="control-panel"> ${tableActions} <div class="control-panel__item control-panel__item_filter"> <div adt-select="" class="multiple" ng-model="controlPanelCtrl.tokens" text-field="name" carat-down-shown="false" ng-disabled="controlPanelCtrl.isFilterDisabled()" autocomplete-input="false" clear-input-on-blur="false" new-token-fn="controlPanelCtrl.filterNewTokenFn"> </div> <button type="button" class="btn btn_filter" ng-disabled="controlPanelCtrl.isFilterDisabled()"> Filter </button> </div> </div>'}.template.replace("${tableActions}",e)}function e(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{scope:!0,require:["adtListControlPanel","^ciFilterWrapper","^adtList"],restrict:"A",controller:o["default"],controllerAs:"controlPanelCtrl",template:t,replace:!0,link:e}}e.__esModule=!0,e["default"]=i;var r=n(51),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtListControlPanel"},function(t,e){"use strict";function n(t,e){function n(e,n){s=e,l=n,t.$watch(function(){return a.tokens},r)}function i(t){return{regexp:new RegExp(e(t),"gi"),name:t}}function r(t){s.setFilterTokens(t)}function o(){return l&&l.isAnyRowBeingEdited()}var a=this,s=void 0,l=void 0;Object.assign(a,{tokens:[],init:n,filterNewTokenFn:i,isFilterDisabled:o})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope","regexpEscape"]},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0];i[1].init(r)}return{restrict:"A",controller:o["default"],controllerAs:"editActionsCtrl",require:["^adtCiListRowEditorWrapper","editorActions"],template:'<ul class="control-actions"> <li class="control-actions__item"> <button type="button" class="btn" ng-click="editActionsCtrl.cancel()"> Cancel </button> </li> <li class="control-actions__item"> <button type="button" class="btn btn_green" ng-click="editActionsCtrl.confirm()"> Confirm </button> </li> </ul>',replace:!0,link:{pre:t}}}e.__esModule=!0,e["default"]=i;var r=n(53),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="editorActions"},function(t,e){"use strict";function n(){function t(t){r=t}function e(){r.cancel()}function n(){r.confirm()}var i=this,r=void 0;Object.assign(i,{init:t,cancel:e,confirm:n})}e.__esModule=!0,e["default"]=n,n.$inject=[]},function(t,e,n){"use strict";function i(){return{restrict:"A",controller:o["default"],scope:{row:"=adtCiListRowEditorWrapper",mode:"="}}}e.__esModule=!0,e["default"]=i;var r=n(55),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtCiListRowEditorWrapper"},function(t,e){"use strict";function n(t){function e(t){s=t}function n(){s.confirm()}function i(){s.cancel()}function r(){return t.mode}function o(){return t.row}var a=this,s=void 0;Object.assign(a,{register:e,confirm:n,cancel:i,getRow:o,getMode:r})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope"]},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o),e.on("click",r.sort)}return{scope:{column:"="},restrict:"A",require:["listSortSwitcher","^listSortWrapper"],controller:o["default"],controllerAs:"sortSwitcherCtrl",template:'<span class="adt-table__sort" ng-class="sortSwitcherCtrl.getSortClasses()"> <span ng-bind="column.metaInfo.name | uppercase"></span> <span class="adt-table__sort-icons" ng-if="sortSwitcherCtrl.isColumnSortable() && sortSwitcherCtrl.isColumnSorted()"> <i class="dhlicon-arrow-up"></i> <i class="dhlicon-arrow-down"></i> </span> </span>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(57),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listSortSwitcher"},function(t,e){"use strict";function n(t){function e(t){s=t}function n(){return s.isColumnSorted(t.column)}function i(){return angular.isUndefined(l)&&(l=s.isColumnSortable(t.column)),l}function r(){var t=s.isReverse();return{ascending:!t,descending:t}}function o(){i()&&t.$apply(function(){s.sort(t.column)})}var a=this,s=void 0,l=void 0;Object.assign(a,{init:e,isColumnSorted:n,isColumnSortable:i,getSortClasses:r,sort:o})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope"]},function(t,e,n){"use strict";function i(t,e,n,i){"ngInject";function r(i,r){var o=i.metaInfo.type,a=n.getViewTemplate(i.metaInfo,i.row),l=void 0;l=a?e.get(a):s[o]||s["default"],i.$evalAsync(function(){return r.replaceWith(t(l)(i))})}var a,s=(a={},a[i.BOOLEAN]='<span ng-if="cellValueRendererController.booleanIsTrue(value)">\n <i class="dhlicon-check"></i>\n </span>',a[i.IMAGE]='<div adt-ci-image=""\n ng-model="value"\n ng-readonly="true"\n meta-info="metaInfo"></div>',a["default"]='<span adt-filter-highlighter=""\n text-highlight="value | adtCellValueFilter:metaInfo" tokens="tokens"></span>',a);return{scope:{value:"=",metaInfo:"=",tokens:"=",row:"="},restrict:"A",controller:o["default"],controllerAs:"cellValueRendererController",link:r}}i.$inject=["$compile","$templateCache","cellTemplateService","CI_TYPES"],e.__esModule=!0,e["default"]=i;var r=n(59),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtCellValueRenderer"},function(t,e){"use strict";function n(){function t(t){return["Y","YES","y",!0].includes(t)}var e=this;Object.assign(e,{booleanIsTrue:t})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,n,i,r){return n.every(function(n){return e(t,i[n],n,r)})}function e(t,e,n,i){var r=e.filterInfo,a=e.data;return o["default"][r.type](i?i(n,t):r.getData(t),a)}return function(e,n,i){var r=Object.keys(n);return r.length?e.filter(function(e){return t(e,r,n,i)}):e}}e.__esModule=!0,e["default"]=i;var r=n(35),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.FILTER_NAME="adtTableAdvancedFilter"},function(t,e){"use strict";function n(t,e){"ngInject";function n(t){return angular.isObject(t)?t.value:t}function i(t){var e=n(t);return e||0===e?String(e):""}function r(t,e,i){var r=n(t);return r&&a(r,e,i)}function o(t,e,n){return t&&t.map(function(t){return a(t,e,n)}).join(", ")}function a(t,e,n){var i=n||e.valuesProvider,r=i&&i.find(function(e){return e.value===t});return r?r.label:t}function s(e,n){return e?t("date")(e,n.dateFormat):""}function l(t){return["Y","YES","y",!0].includes(t)?"Yes":"No"}function c(t){var e=t.from,n=t.to;return""===e&&""===n?"<empty>":"From "+e+" to "+n}function u(t){return t?t.value+" "+t.currency:""}var d,h=(d={},d[e.BOOLEAN]=l,d[e.SINGLE_CHOICE]=r,d[e.TEXT]=i,d[e.NUMERIC]=i,d[e.MULTIPLE_CHOICE]=o,d[e.DATE]=s,d[e.NUMERIC_RANGE]=c,d[e.MONEY]=u,d[e.IMAGE]=function(){return""},d);return function(t,e,n,i){var r=n||e.type,o=h[r];return o||(r=Object.keys(h).find(function(t){return e.type.includes(t)}),o=h[r]),o(t,e,i)}}n.$inject=["$filter","CI_TYPES"],e.__esModule=!0,e["default"]=n,n.FILTER_NAME="adtCellValueFilter"},function(t,e){"use strict";function n(){"ngInject";function t(t,e){i.set(t,e)}function e(t,e){r.set(t,e)}function n(){function t(t,e){return n(r,t,e)}function e(t,e){return n(i,t,e)}function n(t,e,n){var i=Array.from(t).filter(function(t){return(0,t[0])(e,n)});return i.length>0&&i[0][1]}return{getEditTemplate:e,getViewTemplate:t}}var i=new Map,r=new Map;angular.extend(this,{registerEditTemplate:t,registerViewTemplate:e,$get:n})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){"ngInject";function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{scope:{ngDisabled:"=",meta:"=",prodValue:"=",initValue:"=",massUpdate:"="},restrict:"A",require:["commonList","ngModel"],controller:o["default"],controllerAs:"commonListCtrl",template:'<div adt-list="" list-editable-columns-config="" track-edit-changes="" track-disabled-state="" ng-disabled="ngDisabled" mass-update="massUpdate" edit-row="" delete-row="" copy-row="" add-new-row="" master-list="" min-max-rows-number="" list-value-renderer-wrapper="" get-rendered-value-fn="listValueRendererWrapperCtrl.getRenderedValue" non-filterable-columns="listValueRendererWrapperCtrl.nonFilterableColumns" revert-row="" get-prod-value-fn="commonListCtrl.getProdValue" is-row-deleted-fn="commonListCtrl.isDeleted" cancel-row-changes="" get-init-value-fn="commonListCtrl.getInitValue" check-dependants-using="" ng-model="commonListCtrl.value" meta="meta" is-column-sortable-fn="commonListCtrl.isColumnSortable" row-id-fn="commonListCtrl.rowIdFn" get-row-classes-fn="commonListCtrl.getRowClasses"> <div table-actions-template=""> <div adt-privileges="[\'EDIT_CONFIGURATION\']" class="control-panel__item right"> <div list-add-new-row-button=""></div> </div> <div adt-privileges="[\'EDIT_CONFIGURATION\']" class="control-panel__item right"> <div list-delete-row-button=""></div> </div> </div> <div row-actions-template=""> <ul adt-privileges="[\'EDIT_CONFIGURATION\']" class="control-actions"> <li class="control-actions__item"> <div row-edit-button=""></div> </li> <li class="control-actions__item"> <div row-copy-button=""></div> </li> <li ng-if="!massUpdate" class="control-actions__item"> <div row-revert-button=""></div> </li> <li class="control-actions__item"> <div row-cancel-button=""></div> </li> </ul> </div> <table> <tbody row-editor-template=""> <tr common-list-row-editor=""></tr> </tbody> </table> <div selection-all-template=""> <div common-list-selection="" select-all="true"></div> </div> <div selection-checkbox-template=""> <div common-list-selection=""></div> </div> </div>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(64),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="commonList"},function(t,e){"use strict";function n(t,e,n,i){"ngInject";function r(e){$=e,D.ngModelController=e,$.$render=d,n(d),t.$watch(function(){return D.value},function(t,e){return h(t,e)}),a(),s()}function o(t){k=t}function a(){y().reduce(function(t,e){return t.set(c(e),e),t},w)}function s(){(S=v())&&S.reduce(function(t,e){return t.set(c(e),e),t},R)}function l(){return x}function c(t){return x.map(function(e){return u(e,t)}).join("_").toLowerCase()}function u(t,n){if(A.get(t).metaInfo.type===i.DATE)return e("date")(n[t],"dd mmm yyyy");var r=n[t];return angular.isObject(r)?r.value:r}function d(){var t=angular.copy($.$modelValue||[]),e=t.reduce(function(t,e){return t[c(e)]=e,t},new Map),n=k?(v()||[]).filter(function(t){return!e[c(t)]}).map(function(t){return w.get(c(t))||t}):[];D.value=t.concat(n)}function h(t,e,n){(t!==e||n)&&$.$setViewValue(t.filter(m))}function f(t){O=t,d()}function p(){return O}function m(t){return O&&!O.includes(c(t))}function g(t){return t.metaInfo.type!==i.BOOLEAN}function v(){return t.prodValue}function y(){return t.initValue}function E(){return $&&$.$modelValue}function b(t){var e=C(t);return{deleted:e,changed:!e&&T(t)}}function _(t){return C(t)}function C(t){return O&&O.includes(c(t))}function T(t){var e=w.get(c(t)),n=R.get(c(t));return e&&!angular.equals(t,e)||S&&!angular.equals(t,n)}function I(){return t.massUpdate}var D=this,$=void 0,O=[],w=new Map,R=new Map,k=!1,x=void 0,S=void 0,A=new Map;Object.assign(D,{value:[],init:r,rowIdFn:c,getRowClasses:b,isColumnSortable:g,getProdValue:v,getInitValue:y,getValue:E,setDeleted:f,isDeleted:C,getDeleted:p,hideActionsFunction:_,setShowDeleted:o,getCompositeKey:l,updateValue:d,isMassUpdate:I}),function(){x=t.meta.metaInfo.compositeKey||t.meta.metaInfo.columns.filter(function(t){return"enabled"!==t})}(),function(){t.meta.childCiMetas.reduce(function(t,e){return t.set(e.metaInfo.uiComponent,e),t},A)}()}n.$inject=["$scope","$filter","$timeout","CI_TYPES"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{restrict:"A",require:["masterList","^commonList"],controller:o["default"],controllerAs:"masterListCtrl",link:t}}e.__esModule=!0,e["default"]=i;var r=n(66),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="masterList"},function(t,e,n){"use strict";function i(t,e,n,i){"ngInject";function o(n){var i=t.$eval(e.meta),o=t.massUpdate;if(i.metaInfo.ruleType!==r.HIERARCHICAL_RULE_TYPES.masterList&&i.metaInfo.ruleType!==r.HIERARCHICAL_RULE_TYPES.disablingMasterList)return void n.setShowDeleted(!o);var s=c(i);s.length?(f=[d].concat(s),h=!1):a(i)||(f=[d],h=!1),n.setShowDeleted(!o&&h)}function a(t){var e=n.sortLevels(t.metaInfo.supportedLevels),i=n.getCurrentLevel();return 0===e.indexOf(i)||e[0]===r.LEVEL_ENTITY_TYPE.CUSTOMER||e[0]===r.LEVEL_ENTITY_TYPE.ACCOUNT}function s(){return h}function l(){return f}function c(t){var e=t.alias,r=t.group,o=t.subGroup;return i.getColumnForcedToBeEditable({alias:e,group:r,subGroup:o},n.getCurrentLevel())}var u=this,d="enabled",h=!0,f=[];Object.assign(u,{init:o,isListEditable:s,getEditableColumns:l})}i.$inject=["$scope","$attrs","levelService","masterListEditableColumnsService"],e.__esModule=!0,e["default"]=i,n(67);var r=n(108)},function(t,e,n){"use strict";function i(t,e,n,i){"ngInject";function r(t){return t.sort(function(t,e){return b[t]-b[e]})}function o(){return n.configsLevel&&n.configsLevel.toUpperCase()}function s(){return h()||p()||f()?n.countryCode:null}function l(){return e.getList().then(function(t){return t.find(function(t){return t.code.toUpperCase()===n.countryCode.toUpperCase()})||n.countryCode})}function c(){return f()?n.levelEntityId:null}function u(){return p()?n.levelEntityId:null}function d(){return g(a.LEVEL_ENTITY_TYPE.GLOBAL)}function h(){return g(a.LEVEL_ENTITY_TYPE.COUNTRY)}function f(){return g(a.LEVEL_ENTITY_TYPE.ACCOUNT)}function p(){return g(a.LEVEL_ENTITY_TYPE.CUSTOMER)||m()}function m(){return g(a.LEVEL_ENTITY_TYPE.CORPORATE)}function g(t){return n.configsLevel.toUpperCase()===t}function v(){switch(!0){case f():return t.when(n.levelEntitiesIds);case p():return y();case h():return t.when(n.countriesCodes)}}function y(){return i.getCustomersInfo(n.levelEntitiesIds).then(function(t){return t.map(function(t){return t.name})})}var E,b=(E={},E[a.LEVEL_ENTITY_TYPE.GLOBAL]=0,E[a.LEVEL_ENTITY_TYPE.COUNTRY]=1,E[a.LEVEL_ENTITY_TYPE.CUSTOMER]=2,E[a.LEVEL_ENTITY_TYPE.CORPORATE]=2,E[a.LEVEL_ENTITY_TYPE.ACCOUNT]=2,E);return{getCurrentCountry:l,getCurrentCountryCode:s,getAccountNumber:c,getEntitiesNames:v,getCustomer:u,getCurrentLevel:o,sortLevels:r,isGlobal:d,isCountry:h,isAccount:f,isCustomer:p,isCorporate:m}}i.$inject=["$q","countryApiService","pageInfo","customerInfoService"],e.__esModule=!0;var r=n(68),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);n(106);var a=n(108);o["default"].factory("levelService",i),e["default"]=i},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(69),o=i(r),a=n(72),s=i(a),l=n(82),c=i(l),u=n(105),d=i(u);e["default"]=angular.module("adt.configuration",["ngResource","ngSanitize","ngStorage","adt.core","adtCILibrary",s["default"],o["default"],c["default"]]).run(d["default"])},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(70),o=i(r),a=n(71),s=i(a),l="adt.configuration.list.poc-component",c=angular.module(l,[]);c.service(o["default"].SERVICE_NAME,o["default"]).service(s["default"].SERVICE_NAME,s["default"]),e.module=c,e["default"]=l},function(t,e){"use strict";function n(t,e){"ngInject";var n={weightConvertionRate:2.20462,dimensionConvertionRate:.393701};this.getOriginSystem=function(){function t(){return{WEIGHT:"METRIC",DIMENSION:"METRIC"}}return t}(),this.isConvertable=function(){function e(e){return!!t.CONVERTABLE_COLUMNS[e.uiComponent]}return e}(),this.convertPocValue=function(){function i(i,r,o,a){var s=t.CONVERTABLE_COLUMNS[r.uiComponent];if(s){var l=s.type;if(o[l]===a[l])return i;if(s.isLabel)return s[a[s.type]];if("IMPERIAL"===a.DIMENSION&&"DIMENSION"===l)return e.toImperialDimension(i,n);if("IMPERIAL"===a.WEIGHT&&"WEIGHT"===l)return e.toImperialWeight(i,n);if("METRIC"===a.DIMENSION&&"DIMENSION"===l)return e.toMetricDimension(i,n);if("METRIC"===a.WEIGHT&&"WEIGHT"===l)return e.toMetricWeight(i,n)}return i}return i}()}n.$inject=["PACKAGING_LIST","uomConverter"],e.__esModule=!0,e["default"]=n,n.SERVICE_NAME="pocConverterService"},function(t,e){"use strict";function n(){function t(t){var e=1,n=1;return angular.isObject(t)&&(e=angular.isDefined(t.weightConvertionRate)?Number(t.weightConvertionRate):1,n=angular.isDefined(t.weightConvertionRate)?Number(t.dimensionConvertionRate):1),{weightRate:e,dimensionRate:n}}function e(t,e){return e===o.IMPERIAL?i.toImperialWeight(t):i.toMetricWeight(t)}function n(t,e,n){return+(+(Number(t)*(e===o.IMPERIAL?n:1/n)).toPrecision(r)).toFixed(r)}var i=this,r=4,o={IMPERIAL:"IMPERIAL",METRIC:"METRIC"};Object.assign(i,{toImperialWeight:function(){function e(e,i){return n(e,o.IMPERIAL,t(i).weightRate)}return e}(),toMetricWeight:function(){function e(e,i){return n(e,o.METRIC,t(i).weightRate)}return e}(),toImperialDimension:function(){function e(e,i){return n(e,o.IMPERIAL,t(i).dimensionRate)}return e}(),toMetricDimension:function(){function e(e,i){return n(e,o.METRIC,t(i).dimensionRate)}return e}(),convertWeight:e})}e.__esModule=!0,e["default"]=n,n.SERVICE_NAME="uomConverter"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(73),o=i(r),a=n(78),s=i(a),l=n(81),c=i(l),u="adt.configuration.countriesListModule";e["default"]=u,angular.module(u,[]).directive(o["default"].NG_NAME,o["default"]).factory(c["default"].NG_NAME,c["default"]).factory(s["default"].NG_NAME,s["default"])},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t){"ngInject";return t({bindings:{countries:"<"+h+"Countries"},require:{filterStorage:"adtTableLevelFilterStorage"},controller:o,controllerAs:"countriesListCtrl",templateUrl:"countries-list-template.html"})}function o(t,e,n,i,r,o,a,l){function u(){E.setFilterExpressions(s["default"]),E.tableConfig=r.getConfig(h(),y),E.initWatchers(t),E.setFilterStorage(E.filterStorage),E.filterStorage.onFiltersChange(E.onOptions),E.tableData.onNestedLevelsSet(v)}function h(){return new d["default"]("level.selected",p)}function f(t){var e=t.countries.currentValue;e&&e.length&&(E.isDataInitialized=!0,E.generateTable(e))}function p(t){t.setSelection(t.selected),v()}function m(){return E.tableData.getSelectedData()}function g(){var t=m().map(function(t){return t.code}).join(",");e.location.href=l(a.EDIT_COUNTRY_MASS_UPDATE_PAGE,{countriesCodes:t})}function v(){E.isMassUpdateButtonDisabled=m().length<2}function y(t){var n=t.code;e.location.href=l(a.EDIT_COUNTRY_PAGE,{countryCode:n})}var E=this;c["default"].call(E),Object.assign(E,{$parse:i,$filter:n,hierarchyGeneratorService:o,countries:[],tableConfig:null,isMassUpdateButtonDisabled:!0,$onInit:u,$onChanges:f,redirectToMassUpdate:g})}r.$inject=["component"],e.__esModule=!0,e["default"]=r,e.CountriesListController=o;var a=n(74),s=i(a),l=n(75),c=i(l),u=n(77),d=i(u),h=r.NG_NAME="adtCountriesList"},function(t,e){"use strict";e.__esModule=!0,e["default"]={name:"level.data.name",code:"level.data.code",tier:"level.data.tier",region:"level.data.region"}},function(t,e,n){"use strict";function i(){function t(t){t.$watch(function(){return m.paginationObj.amount},n),t.$watch(function(){return m.paginationObj.page},n),t.$watch(function(){return m.tokens},n)}function e(t){y=t}function n(){if(m.isDataInitialized){var t=m.applyOptions(m.tokens,m.paginationObj.amount,m.paginationObj.page);m.tableData.setNestedLevels(t)}}function i(){return v}function o(t){g=f(t)}function s(t){var e=m.tokens.map(function(t){return t.text});v=p(t,e,m.tableData),n()}function l(t,e,n){var i=void 0;return g&&(i=u(v,t)),c(i||v,e,n)}function c(t,e,n){return m.$filter("pagination")(t,e,n)}function u(t,e){var n=e.map(function(t){return t.text});t.forEach(function(t){return t.tokens=n});var i=t.filter(function(t){return d(t,n)});return m.totalCount=i.length,i}function d(t,e){var n=void 0;return n=g(t,e),y&&(n=n&&h(t)),n}function h(t){var e=y.getFilters();return Object.keys(e).every(function(n){var i=e[n],r=i.filterInfo,o=i.data;return r.isApplicable(t)&&a["default"][r.type](r.getData(t),o)},!0)}function f(t){var e=Object.keys(t).map(function(e){return t[e]});return function(){function t(t,n){return n.every(function(n){return e.some(function(e){var i=Array.isArray(e)?m.$parse(e[0]):m.$parse(e),r=i({level:t});return Array.isArray(r)&&(r=Array.isArray(e)?r.map(function(t){return m.$parse(e[1])(t)}).join(", "):r.join(", ")),r&&r.toLowerCase().includes(n.toLowerCase())})})}return t}()}function p(t,e,n){var i=new r.Level(1,{},"",n,{tokens:e}),o={groupedByField:"key",childrenField:"nestedLevels",levelField:"level",dataField:"data",prototype:i};return m.hierarchyGeneratorService.generate(t,o,[],1,n)}var m=this,g=void 0,v=void 0,y=void 0;Object.assign(m,{isDataInitialized:!1,tokens:[],paginationObj:{page:1,amount:10},totalCount:0,dataEmpty:!0,dataLoaded:!1,tableData:new r.Level,generateTable:s,setFilterExpressions:o,applyOptions:l,initWatchers:t,getAllLevels:i,setFilterStorage:e,onOptions:n}),m.tableData.opened=!0}e.__esModule=!0;var r=n(76),o=n(35),a=function(t){return t&&t.__esModule?t:{"default":t}}(o);e["default"]=i},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;e.Level=function(){function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0,i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"",o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null,a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};n(this,t);var s={level:e,parent:o,data:i,key:r,opened:!1,published:!1,selected:!1,visible:!0,nestedLevels:[],nestedLevelsSetCallback:null};Object.assign(this,s,a)}return t.prototype.addNestedLevel=function(){function t(t){t.parent=this,this.nestedLevels.push(t)}return t}(),t.prototype.setNestedLevels=function(){function t(t){angular.equals(this.nestedLevels,t)||(this.selected=!1,this.nestedLevels.forEach(function(t){return t.selected=!1})),this.nestedLevels=t,this.nestedLevelsSetCallback&&this.nestedLevelsSetCallback()}return t}(),t.prototype.getNestedLevels=function(){function t(){return this.nestedLevels}return t}(),t.prototype.hasNested=function(){function t(){return this.nestedLevels.length>0}return t}(),t.prototype.open=function(){function t(){1===this.nestedLevels.length&&this.nestedLevels[0].expandLevel(!0),this.opened=!0}return t}(),t.prototype.isRoot=function(){function t(){return 0===this.level}return t}(),t.prototype.collapseLevel=function(){function t(t){this.nestedLevels.length&&(this.isRoot()||(this.opened=!1),t&&this.nestedLevels.forEach(function(t){t.collapseLevel(!0)}))}return t}(),t.prototype.expandLevel=function(){function t(t){this.nestedLevels.length&&(this.isRoot()||(this.opened=!0),t&&this.nestedLevels.forEach(function(t){t.expandLevel(!0)}))}return t}(),t.prototype.setSelection=function(){function t(t){var e=!(arguments.length>1&&arguments[1]!==undefined)||arguments[1];this.selected=t,e&&this.parent&&this.parent.childSelectionChanged(),this.nestedLevels.forEach(function(e){return e.setSelection(t,!1)})}return t}(),t.prototype.resetSelection=function(){function t(){this.selected=!1,this.nestedLevels.forEach(function(t){return t.resetSelection()})}return t}(),t.prototype.getSelectedData=function(){function t(){return this.nestedLevels.filter(function(t){return t.selected}).map(function(t){return t.data})}return t}(),t.prototype.childSelectionChanged=function(){function t(){this.selected=this.nestedLevels.every(function(t){return t.selected})}return t}(),t.prototype.onNestedLevelsSet=function(){function t(t){this.nestedLevelsSetCallback=t}return t}(),t}()},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(e,i,r,o){n(this,t),this.key=e,this.selectionCallback=i,this.isDisabledFn=r,this.privileges=o;var a=o?'adt-privileges="privileges"':"";this.template='\n <label class="checkbox" '+a+'>\n <input class="checkbox__input"\n type="checkbox"\n ng-disabled="isDisabledFn(level)"\n ng-model="'+e+'"\n ng-change="selectionCallback(level)" />\n <span class="label"></span>\n </label>\n '}return t.prototype.extendScope=function(){function t(t){t.selectionCallback=this.selectionCallback,t.isDisabledFn=this.isDisabledFn,t.privileges=this.privileges}return t}(),t}();e["default"]=i},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){"ngInject";function n(n,r){var o=new t;return f=e.getConfig(),f.forEach(function(t){o.addColumn(t)}),i(o,n,r),o.build()}function i(t,e,n){r(t),s(t),c(t,e,n)}function r(t){t.setDefaultHeader(l["default"].defaultHeader,o)}function o(t,e){return t.name=f.find(function(t){return t.id===e}).name,t}function s(t){Object.keys(a["default"]).forEach(function(e){t.set(e,1,new u["default"](a["default"][e]).template)})}function c(t,e,n){t.setHeader(h,e),t.set(h,1,e),t.setLevelClass(1,d),t.addActions(h,1,[{template:l["default"].editButton,action:function(){function t(t){var e=t.level;return n(e.data)}return t}()}])}function d(t){return{"is-selected":t.selected}}var h="select",f=void 0;return{getConfig:n}}r.$inject=["LevelTableConfigBuilder","countriesListColumnsConfigService"],e.__esModule=!0,e["default"]=r;var o=n(74),a=i(o),s=n(79),l=i(s),c=n(80),u=i(c);r.NG_NAME="countriesListConfigService"},function(t,e){"use strict";e.__esModule=!0,e["default"]={defaultCell:'<span ng-bind="value"></span>',defaultHeader:'<span ng-bind="name"></span>',editButton:'<i class="dhlicon-pencil"></i><span aqa-id="user_details" adt-edit-view-button=""></span>'}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(e,i){if(n(this,t),i){var r=new t("a."+i);this.template='<div ng-repeat="a in '+e+'">'+r.template+"{{$last ? '' : ', '}}</div>"}else this.template='<span\n adt-filter-highlighter=""\n text-highlight="'+e+'"\n tokens="level.tokens">\n </span>'}return t}();e["default"]=i},function(t,e,n){"use strict";function i(t,e,n){"ngInject";function i(){return[e.getColumnConfig("SELECT","select",{widthClass:"adt-table__col_1"}),r("COUNTRY","name"),r("COUNTRY CODE","code"),e.getFilteredColumnConfig("TIER","tier",o["default"].NUMERIC),r("REGION","region")]}function r(t,n){var i=a().then(s(n));return e.getFilteredColumnConfig(t,n,o["default"].SELECT,{optionsPromise:i})}function a(){return t.getList()}function s(t){return function(e){return n.remapToSelectOptions(e,t)}}return{getConfig:i}}i.$inject=["countryApiService","columnsConfigHelperService","arrayUtils"],e.__esModule=!0,e["default"]=i;var r=n(37),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="countriesListColumnsConfigService"},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var r=n(83),o=i(r),a=n(86),s=i(a),l=n(88),c=i(l),u=n(91),d=i(u),h=n(92),f=i(h),p=n(94),m=i(p),g=n(97),v=i(g),y=n(101),E=i(y),b=n(103),_=i(b);e["default"]="adt.tools.customers-list",angular.module("adt.tools.customers-list",[E["default"],_["default"]]).directive(s["default"].NG_NAME,s["default"]).directive(f["default"].NG_NAME,f["default"]).directive(m["default"].NG_NAME,m["default"]).directive(v["default"].NG_NAME,v["default"]).factory(o["default"].NG_NAME,o["default"]).factory(c["default"].NG_NAME,c["default"]).factory(d["default"].NG_NAME,d["default"])},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,n,i,r){"ngInject";function o(t,r,o,l){var d=new e;return i.getConfig(l).forEach(function(t){return d.addColumn(t)}),d.setDefaultHeader(a["default"].defaultColumnHeader,n.getDefaultScopeExtendFn(d.getColumns())),s(d,t),c(d),u(d,r,o),d.build()}function s(t,e){t.setHeader("selector",e),t.set("selector",1,e)}function c(t){Object.keys(l["default"]).forEach(function(e){t.set(e,1,l["default"][e].template)})}function u(t,e,n){var i=[];e&&i.push({template:a["default"].editButton,action:r.goToEditScreen}),n&&i.push({template:a["default"].seeDetailsButton,action:r.goToDetailsScreen}),t.addActions("name",1,i)}return{getConfig:o}}r.$inject=["$window","LevelTableConfigBuilder","columnsConfigHelperService","customersListColumnsConfigService","customersListActionsService"],e.__esModule=!0,e["default"]=r;var o=n(84),a=i(o),s=n(85),l=i(s);r.NG_NAME="customersListConfigService"},function(t,e){"use strict";e.__esModule=!0,e["default"]={editButton:'<span aqa-id="see_details" adt-edit-view-button=""></span>',seeDetailsButton:'<span aqa-id="see_details">See Details</span>',defaultColumnHeader:'<span ng-bind="name"></span>'}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(80),r=function(t){return t&&t.__esModule?t:{"default":t}}(i);e["default"]={name:new r["default"]("level.data.name"),email:new r["default"]("level.data.email"),companyName:new r["default"]("level.data.companyName"),userType:new r["default"]("level.data.userType | adtUserType"),country:new r["default"]("level.data.country.name"),waybills:new r["default"]("level.data.waybills | arrayToConcatenatedString:'1'"),pieceIds:new r["default"]("level.data.pieceIds | arrayToConcatenatedString:'1'"),accounts:new r["default"]("level.data.accounts | arrayToConcatenatedString:'1':'number'"),createdBy:new r["default"]("level.data.createdBy"),createdOn:new r["default"]("level.data.createdOn | date:'dd MMM yyyy'"),status:new r["default"]("level.data.status")}},function(t,e,n){"use strict";function i(t){"ngInject";return t({bindings:{showEditAction:"<?"+s+"ShowEditCustomerAction",showCustomerDetailsAction:"<?"+s+"ShowCustomerDetailsAction",showMassUpdateAction:"<?"+s+"ShowMassUpdateAction",showUploadCustomersAction:"<?"+s+"ShowUploadCustomersAction",showCreateCorporateAction:"<?"+s+"ShowCreateCorporateAction",showSendMessageAction:"<?"+s+"ShowSendMessageAction",showMoreActionsButton:"<?"+s+"ShowMoreActionsButton",dataUrl:"@"+s+"DataUrl",checkboxPrivileges:"<?"+s+"CheckboxPrivileges",excludeEndUser:"<?"+s+"ExcludeEndUser"},require:{tableLevelFilterStorage:"adtTableLevelFilterStorage"},controller:r,controllerAs:s+"Ctrl",templateUrl:"customer-list-wrapper-template.html"})}function r(t,e,n,i,r,s,l,c,u){"ngInject";function d(){w.tableData.opened=!0,$(),b(),e(function(){return k=!0}),w.tableLevelFilterStorage.onFiltersChange(h),w.tableConfig=c.getConfig(u.createSelectorRenderer("level.selected",v,w.checkboxPrivileges),w.showEditAction,w.showCustomerDetailsAction,{excludeEndUser:w.excludeEndUser})}function h(){if(p())return void f();m()}function f(){w.tableData=new o.Level,w.tableData.opened=!0}function p(){return!w.tableLevelFilterStorage.hasFilterConditions()&&!w.tokens.length}function m(){if(k){var t=w.paginationObj,e=t.page,r=t.amount;i.show(n.getAll(w.dataUrl,{page:e-1,count:r,filter:{terms:C(),columnFilters:g()}}).then(E)["catch"](function(){s.showError({header:"Error occurred",text:"Error receiving data from backend, reload page to retry"})}))}}function g(){return l.convert(w.tableLevelFilterStorage.getFilters())}function v(){var t=w.tableData.getSelectedData();w.selectedCustomerObjs=t,w.selectedItems=t.filter(function(t){return y(t.userType)}).map(function(t){return t[R]})}function y(t){return t!==a.CUSTOMER_TYPES.LPROTOTYPE&&t!==a.CUSTOMER_TYPES.SPROTOTYPE}function E(t){w.dataLoaded=!0,w.dataEmpty=!t.customers.length,w.totalCount=t.pages*w.paginationObj.amount,x=t.rowCountLimitExceed,_(t.customers),v()}function b(){t.$watch(function(){return w.tokens},h),t.$watch(function(){return w.paginationObj.amount},m),t.$watch(function(){return w.paginationObj.page},m)}function _(t){var e=new o.Level(1,{},"",w.tableData,{tokens:C()}),n={groupedByField:"key",childrenField:"nestedLevels",levelField:"level",dataField:"data",prototype:e};w.tableData.setNestedLevels(r.generate(t,n,[],1,w.tableData))}function C(){return w.tokens.map(T)}function T(t){return t.text}function I(){w.tableData.resetSelection(),v()}function D(){return x?a.MESSAGES.CUSTOMERS_AMOUNT_LIMIT_EXCEEDED:w.tableLevelFilterStorage.hasFilterConditions()||w.tokens.length?a.MESSAGES.NO_CUSTOMERS_FOUND:a.MESSAGES.SPECIFY_SEARCH_CRITERIA}function $(){n.getAvailableCorporateOptions().then(function(t){var e=t.countries.sort(function(t,e){return t.name.localeCompare(e.name)});w.availableCorporateCountries=e})}function O(){w.isProfileCreationPopupOpened=!w.isProfileCreationPopupOpened}var w=this,R="email",k=!1,x=!1;Object.assign(w,{CONFIGURATION_TEMPLATE_URL:"/adt/api/customers/template",tokens:[],tableConfig:null,paginationObj:{page:1,amount:10},totalCount:0,dataEmpty:!0,dataLoaded:!1,tableData:new o.Level,excludeEndUser:!1,customers:[],selectedItems:[],selectedCustomerObjs:[],availableCorporateCountries:[],isProfileCreationPopupOpened:!1,$onInit:d,getTokensTextArr:C,getColumnFilters:g,clearSelection:I,getNoDataInTableMessage:D,toggleProfileCreationOpenState:O})}i.$inject=["component"],r.$inject=["$scope","$timeout","customerService","loaderService","hierarchyGeneratorService","errorModalService","filtersDataConverter","customersListConfigService","selectRendererService"],e.__esModule=!0,e["default"]=i,e.CustomersListWrapperController=r;var o=n(76),a=n(87),s=i.NG_NAME="customersListWrapper"},function(t,e){"use strict";e.__esModule=!0;var n,i,r=(e.MESSAGES={NO_CUSTOMERS_FOUND:"No customers found.",CUSTOMERS_AMOUNT_LIMIT_EXCEEDED:"Result set size exceeds allowed limit. Please narrow search criteria",SPECIFY_SEARCH_CRITERIA:"Please specify criteria for Customers search."},e.CUSTOMER_TYPES={REGULAR:"REGULAR",CORPORATE:"CORPORATE",EMPLOYEE:"EMPLOYEE",LPROTOTYPE:"LPROTOTYPE",SPROTOTYPE:"SPROTOTYPE"}),o=e.CUSTOMER_TYPES_VIEW=(n={},n[r.REGULAR]="Regular",n[r.CORPORATE]="Corporate",n[r.EMPLOYEE]="End User",n[r.SPROTOTYPE]="Traditional",n[r.LPROTOTYPE]="Lite",n),a=e.CUSTOMER_TYPES_VIEW_CONFIGURATION=(i={},i[r.REGULAR]="Regular",i[r.CORPORATE]="Corporate",i[r.SPROTOTYPE]="Traditional",i[r.LPROTOTYPE]="Lite",i);e.CORPORATE_CUSTOMER_TYPES=[r.LPROTOTYPE,r.SPROTOTYPE,r.CORPORATE],e.CUSTOMER_TYPES_OPTIONS=Object.keys(o).map(function(t){return{value:t,text:o[t]}}),e.CUSTOMER_TYPES_OPTIONS_CONFIGURATION=Object.keys(a).map(function(t){return{value:t,text:a[t]}})},function(t,e,n){"use strict";function i(t,e){"ngInject";function n(n){var i=n.excludeEndUser,r=i?s.CUSTOMER_TYPES_OPTIONS_CONFIGURATION:s.CUSTOMER_TYPES_OPTIONS;return[t.getColumnConfig("","selector",{cls:"adt-table__cell_check"}),t.getFilteredColumnConfig("USER NAME","name",o["default"].TEXT),t.getFilteredColumnConfig("USER EMAIL","email",o["default"].TEXT),t.getFilteredColumnConfig("COMPANY NAME","companyName",o["default"].TEXT),t.getFilteredColumnConfig("USER TYPE","userType",o["default"].SELECT,{optionsPromise:r}),t.getFilteredColumnConfig("COUNTRY","country",o["default"].SELECT,{optionsPromise:e.getCountriesOptionsList()}),t.getFilteredColumnConfig("ACCOUNT NUMBER","accounts",o["default"].TEXT),t.getFilteredColumnConfig("WAYBILLS","waybills",o["default"].TEXT),t.getFilteredColumnConfig("CREATED BY","createdBy",o["default"].TEXT),t.getFilteredColumnConfig("CREATED AT","createdOn",o["default"].DATE),t.getFilteredColumnConfig("LP NUMBER","pieceIds",o["default"].TEXT),t.getFilteredColumnConfig("STATUS","status",o["default"].SELECT,{optionsPromise:a.STATUSES_VIEW_OPTIONS})]}return{getConfig:n}}i.$inject=["columnsConfigHelperService","countryApiService"],e.__esModule=!0,e["default"]=i;var r=n(37),o=function(t){return t&&t.__esModule?t:{"default":t}}(r),a=n(89),s=n(87);i.NG_NAME="customersListColumnsConfigService"},function(t,e,n){"use strict";e.__esModule=!0,e.STATUSES_VIEW_OPTIONS=e.STATUSES_VIEW=undefined;var i,r=n(90),o=e.STATUSES_VIEW=(i={},i[r.CUSTOMER_STATUSES.ACTIVE]="Active",i[r.CUSTOMER_STATUSES.DELETED]="Deleted",i[r.CUSTOMER_STATUSES.PENDING_ACTIVATION]="Pending activation",i[r.CUSTOMER_STATUSES.SUSPENDED]="Suspended",i[r.CUSTOMER_STATUSES.LOCKED]="Locked",i);e.STATUSES_VIEW_OPTIONS=Object.keys(o).map(function(t){return{text:o[t],value:t}})},function(t,e){"use strict";e.__esModule=!0;e.CUSTOMER_STATUSES={ACTIVE:"ACTIVE",DELETED:"DELETED",PENDING_ACTIVATION:"PENDING_ACTIVATION",SUSPENDED:"SUSPENDED",LOCKED:"LOCKED"},e.CUSTOMER_DETAILS_EVENTS={STATUS_CHANGED:"STATUS_CHANGED",INITIALIZE:"INITIALIZE"}},function(t,e,n){"use strict";function i(t,e,n){"ngInject";function i(n){var i=n.level.data,r=o(i.userType);t.location.href=e(r,{userId:i.id,returnUrl:btoa(t.location.href)})}function o(t){return a(t)?n.CORPORATE_CUSTOMER_DETAILS_PAGE:n.CUSTOMER_DETAILS_PAGE}function a(t){return r.CORPORATE_CUSTOMER_TYPES.includes(t)}function s(n){var i=n.level.data,r=a(i.userType),o=l(r);t.location.href=e(o,{countryCode:i.country.code,levelEntityId:i.email})}function l(t){return t?n.EDIT_CORPORATE_PAGE:n.EDIT_CUSTOMER_PAGE}return{goToDetailsScreen:i,goToEditScreen:s}}i.$inject=["$window","formUrlString","CQ_PAGE_CONFIG"],e.__esModule=!0,e["default"]=i;var r=n(87);i.NG_NAME="customersListActionsService"},function(t,e,n){"use strict";function i(t){"ngInject";return t({bindings:{customers:"<"+s+"Customers"},controller:r,controllerAs:"massUpdateCustomersButtonCtrl",templateUrl:"mass-update-customers-button-template.html"})}function r(t,e,n,i){"ngInject";function r(){if(l()||c())return void s();var i=m.customers.map(function(t){return t.email}).join(","),r=m.customers.map(function(t){return t.country.code}).join(","),o={levelEntitiesIds:i,countriesCodes:r};u()&&(o.accountHolders=!1),t.location.href=n(e.EDIT_CUSTOMER_MASS_UPDATE_PAGE,o)}function s(){i.showCommonModal(Object.assign({withoutClose:!0},a.MASS_UPDATE_CONFLICTING_TYPES))}function l(){return f(o.CORPORATE_CUSTOMER_TYPES)&&f([o.CUSTOMER_TYPES.REGULAR])}function c(){var t=m.customers.find(d);return u()&&t}function u(){var t=m.customers.find(h);return!f(o.CORPORATE_CUSTOMER_TYPES)&&!!t}function d(t){return t.accounts&&t.accounts.length}function h(t){return!d(t)}function f(t){return m.customers.find(function(e){return t.includes(e.userType)})}function p(){return m.customers.length<2}var m=this;Object.assign(m,{isMassConfigurationDisabled:p,massConfigure:r})}i.$inject=["component"],r.$inject=["$window","CQ_PAGE_CONFIG","formUrlString","modalService"],e.__esModule=!0,e["default"]=i,e.MassUpdateCustomersButtonCtrl=r;var o=n(87),a=n(93),s=i.NG_NAME="adtMassUpdateCustomersButton"},function(t,e){"use strict";e.__esModule=!0;e.MASS_UPDATE_CONFLICTING_TYPES={buttonText:"Ok",header:"Warning",body:"You can Mass update only one type of users from the list below at the same time. Please change your selection.\n <br/>\n <br/>1. Account Regular Customers\n <br/>2. Non-Account Regular Customers\n <br/>3. Corporate Customer(s) and Profile(s)"}},function(t,e,n){"use strict";function i(t){"ngInject";return t({controller:r,controllerAs:"importCustomerButtonCtrl",templateUrl:"adt-import-customer-button-template.html",replace:!0})}function r(t,e,n,i,r){"ngInject";function s(){e.showFileSelectorModal(a.FILE_SELECTOR_MODAL).then(function(t){return n.uploadFile(t,o.API_URLS.CUSTOMER.CUSTOMER_UPLOAD)}).then(l).then(r.showCommonModal.bind(null,a.SUCCESS_UPLOAD_MODAL))["catch"](c)}function l(e){return e&&e.status?t.when():t.reject(e)}function c(t){if(t){var e=t.errors?t.errors[0]:a.UPLOAD_ERRORS.DEFAULT;i.showDefaultError(e)}}var u=this;Object.assign(u,{onImportButtonClick:s})}i.$inject=["component"],r.$inject=["$q","adtImportAccountsModalService","adtUploadService","errorModalService","modalService"],e.__esModule=!0,e["default"]=i,e.ImportCustomerButtonCtrl=r;var o=n(95),a=n(96);i.NG_NAME="adtImportCustomerButton"},function(t,e){"use strict";e.__esModule=!0;e.API_URLS={SHIPMENTS:"/adt/api/shipments",SHIPMENT_DETAILS:"/adt/api/shipments/{id}",CUSTOMER_DETAILS:"/adt/api/{type}/{id}",CUSTOMER_DOWNLOAD_ADDRESS_BOOK:"/adt/api/customer/{customerId}/addressbook",CUSTOMER_DOWNLOAD_CUSTOMERS_LIST:"/adt/api/customers/export",SHIPMENT_DOWNLOAD_SHIPMENTS_LIST:"/adt/api/shipments/export",SHIPMENT_DOCUMENTS:"/adt/api/shipments/{shipmentId}/documents/preview?userId={userId}",SHIPMENT_DOCUMENTS_FOR_PRINTING:"/adt/api/shipments/{shipmentId}/documents/print?userId={userId}",SHIPMENT_DOCUMENTS_EMAIL:"/adt/api/shipments/{shipmentId}/documents/share",SHIPMENT_FRAUD:"/adt/api/shipment/fraud",SHIPMENT_REFUND:"/adt/api/shipment/refund",SHIPMENT_REFUND_REASONS:"/adt/api/shipment/refund/reasons",SHIPMENT_DOWNLOAD_CSV:"/adt/api/shipments/{shipmentId}/export",SHIPMENT_DOWNLOAD_DOCUMENTS:"/adt/api/shipments/{shipmentId}/documents/download?userId={userId}",CUSTOMERS:"/adt/api/customers",CUSTOMER:{ACCOUNTS:"/adt/api/customer/{id}/accounts",ACCOUNTS_IMPORT:"/adt/api/customer/{id}/accounts/import",RESEND_ACTIVATION_EMAIL:"/adt/api/customer/activation/resend",TRANSITION:"/adt/api/customer/status",LOG:"/adt/api/customer/{id}/logs?count=5",RESET_PASSWORD:"/adt/api/customer/password/reset",RETENTION_TYPE:"/adt/api/customer/retention",EMAIL:"/adt/api/customer/email",EMAIL_STATUS:"/adt/api/customer/{customerId}/email",MESSAGE:"/adt/api/customers/notification",CREATE_CORPORATE:"/adt/api/customer/corporate/create",CLONE_CORPORATE:"/adt/api/customer/corporate/copy",LOGIN_AS:"/adt/api/customer/{id}/login-as",GET_VACANT_CORPORATE_OPTIONS:"/adt/api/customer/corporate/countries",GET_EXISTING_PROFILES_FOR_COUNTRY:"/adt/api/customer/corporate/prototype/{countryCode}",CREATE_PROFILE:"/adt/api/customer/corporate/prototype/create",PROMOTE_TO_CORPORATE:"/adt/api/customer/corporate/promote/{id}",IS_PROMOTION_AVAILABLE:"/adt/api/customer/{id}/promotion",CUSTOMER_UPLOAD:"/adt/api/customer/mass-upload"},VAT_RECEIPT_GENERATE:"/adt/api/documents/receipt/generate",ROSA:"/adt/api/rosa"},e.EMAIL_TYPES={NOTIFIER:"Notifier",RECEIVER:"Receiver",SENDER:"Sender",OTHER:"Other"},e.EMAIL_STATUSES={PENDING_EMAIL_UPDATE:"PENDING_EMAIL_UPDATE",NONE:"NONE"},e.PATTERNS={EMAIL:/^[-!#$%&'*+\/0-9=?A-Z^_a-z{|}~](\.?[-!#$%&'*+\/0-9=?A-Z^_a-z`{|}~])*@[a-zA-Z0-9](-?\.?[a-zA-Z0-9])*\.[a-zA-Z](-?[a-zA-Z0-9])+$/},e.CUSTOMER_MESSAGE_MAX_LENGTH=2e3,e.RETENTION_TYPES=[{type:"SL",label:"Small"},{type:"LR",label:"Medium"},{type:"XL",label:"Large"},{type:"XXL",label:"Extra Large"}],e.CUSTOMER_TYPES={CORPORATE:"corporate",CUSTOMER:"customer"}},function(t,e){"use strict";e.__esModule=!0;e.FILE_SELECTOR_MODAL={header:"Upload File",text:"Please choose file",confirmButtonText:"Upload",browseButtonText:"Browse",acceptFileTypes:".csv",filename:"file"},e.UPLOAD_ERRORS={DEFAULT:"Error during customers upload"},e.SUCCESS_UPLOAD_MODAL={header:"Application is processing your request",body:"You will receive an email with the link to CSV-file soon",buttonText:"OK",withoutClose:!0}},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(){"ngInject";function t(t,n,i,r){var o=r[0],a=r[1];o.init(a,e(n))}function e(t){return new a["default"](t.find("form")[0],t.find("form")[0].children[0],t.find("form")[0].children[1])}return{restrict:"A",require:["adtCustomersListExport","^customersListWrapper"],controller:l["default"],controllerAs:"customersListExportButtonCtrl",template:'<span> <span ng-click="customersListExportButtonCtrl.downloadCustomersList()"> Export to .CSV </span> <form style="display: none" method="POST" action="{{customersListExportButtonCtrl.API_URLS.CUSTOMER_DOWNLOAD_CUSTOMERS_LIST}}"> <input type="text" name="{{customersListExportButtonCtrl.CUSTOMERS_LIST_EXPORT_PARAMS.TOKENS_PARAM_NAME}}"/> <input type="text" name="{{customersListExportButtonCtrl.CUSTOMERS_LIST_EXPORT_PARAMS.COLUMN_FILTERS_PARAM_NAME}}"/> </form> </span>',link:t}}e.__esModule=!0,e["default"]=r;var o=n(98),a=i(o),s=n(99),l=i(s);r.NG_NAME="adtCustomersListExport"},function(t,e){"use strict";function n(t,e,n){function i(t){e.value=JSON.stringify(t)}function r(t){n.value=JSON.stringify(t)}function o(){t.submit()}Object.assign(this,{setTokens:i,setColumnFilters:r,submit:o})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){"ngInject";function t(t,e){i=t,o=e}function e(){o.setTokens(i.getTokensTextArr()),o.setColumnFilters(i.getColumnFilters()),o.submit()}var n=this,i=null,o=null;Object.assign(n,{API_URLS:r.API_URLS,CUSTOMERS_LIST_EXPORT_PARAMS:a["default"],init:t,downloadCustomersList:e})}e.__esModule=!0,e["default"]=i;var r=n(95),o=n(100),a=function(t){return t&&t.__esModule?t:{"default":t}}(o)},function(t,e){"use strict";e.__esModule=!0,e["default"]={TOKENS_PARAM_NAME:"terms",COLUMN_FILTERS_PARAM_NAME:"columnFilters"}},function(t,e,n){"use strict";e.__esModule=!0;var i=n(102),r=function(t){return t&&t.__esModule?t:{"default":t}}(i);e["default"]="adt.tools.customer",angular.module("adt.tools.customer",[]).service(r["default"].NG_NAME,r["default"])},function(t,e,n){"use strict";function i(t,e,n,i){"ngInject";function o(e,n){return p(t.post(e,n))}function a(i){var o=arguments.length>1&&arguments[1]!==undefined?arguments[1]:r.CUSTOMER_TYPES.CUSTOMER,a=r.API_URLS.CUSTOMER_DETAILS.replace("{id}",i).replace("{type}",o);return t.get(a).then(function(t){return t.data})["catch"](function(t){return e.error("Customer ("+i+") could not be retrieved! Error: "+t.data),n.reject(t.data)})}function s(e){return p(t.post(r.API_URLS.CUSTOMER.RESEND_ACTIVATION_EMAIL,{customerId:e}))}function l(e,n,i){return p(t.post(r.API_URLS.CUSTOMER.MESSAGE,{emails:e,message:n,fromDate:i.dateFrom.toISOString(),toDate:i.dateTo.toISOString()}))}function c(e,n){return t.post(r.API_URLS.CUSTOMER.RETENTION_TYPE,{customerId:n,retentionType:e})}function u(e,n){return t.post(r.API_URLS.CUSTOMER.EMAIL,{customerId:n,email:e})}function d(e){return t.post(r.API_URLS.CUSTOMER.CREATE_CORPORATE,e).then(function(t){return t.data})}function h(e){return t.post(r.API_URLS.CUSTOMER.CLONE_CORPORATE,e).then(function(t){return t.data})}function f(){return p(t.get(r.API_URLS.CUSTOMER.GET_VACANT_CORPORATE_OPTIONS))}function p(t){return t.then(function(t){return t.data})["catch"](function(t){return n.reject(t.data)})}function m(e){var n=r.API_URLS.CUSTOMER.GET_EXISTING_PROFILES_FOR_COUNTRY.replace("{countryCode}",e);return t.get(n).then(function(t){return t.data.prototypes})}function g(e){return t.post(r.API_URLS.CUSTOMER.CREATE_PROFILE,e)}function v(e){return t.get(r.API_URLS.CUSTOMER.PROMOTE_TO_CORPORATE.replace("{id}",e)).then(function(t){return t.data})}function y(t,e){return C.getExistingCountryProfiles(e)["catch"](function(t){n.reject(t)}).then(function(e){return e.includes(t)?n.when():n.reject()})}function E(e){return p(t.get(r.API_URLS.CUSTOMER.ACCOUNTS.replace("{id}",e)))}function b(e){return p(t.get(i(r.API_URLS.CUSTOMER.IS_PROMOTION_AVAILABLE,{id:e}))).then(function(t){return t.isPromotable})}function _(e){return p(t.get(i(r.API_URLS.CUSTOMER.EMAIL_STATUS,{customerId:e}))).then(function(t){return t.emailStatus})}var C=this;Object.assign(C,{getAll:o,getById:a,getCustomerAccounts:E,updateRetentionType:c,updateEmail:u,resendActivationEmail:s,sendMessage:l,createCorporate:d,cloneCorporate:h,getAvailableCorporateOptions:f,getExistingCountryProfiles:m,doesProfileExistForCountry:y,createProfile:g,promoteCustomerToCorporate:v,isPromotionAvailable:b,getEmailStatus:_})}i.$inject=["$http","$log","$q","formUrlString"],e.__esModule=!0,e["default"]=i;var r=n(95);i.NG_NAME="customerService"},function(t,e,n){"use strict";e.__esModule=!0;var i=n(104),r=function(t){return t&&t.__esModule?t:{"default":t}}(i);e["default"]="adt.tools.filters",angular.module("adt.tools.filters",[]).filter(r["default"].NG_NAME,r["default"])},function(t,e,n){"use strict";function i(){return function(){function t(t){return r.CUSTOMER_TYPES_VIEW[t]||t}return t}()}e.__esModule=!0,e["default"]=i;var r=n(87);i.NG_NAME="adtUserType"},function(t,e){"use strict";function n(t,e,n,i,r,o,a,s){"ngInject";t.onDataLoaded(function(t,l){o.init(t),r.init(t),e.init(t),n.init(t),i.init(l),a.init(),s.init(l)})}n.$inject=["ciApiService","parentDataService","ciDisablingService","ciDependencyService","ciEffectiveValueService","incompleteConfigurationItemsService","dependentRelationService","ciMandatoryValidityService"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e,n,i,r){"ngInject";function o(){return f||(f=n.get(i.COUNTRY_LIST,{cache:!0}).then(function(t){return t.data.sort(s)})["catch"](c))}function a(){return n.get(i.ALL_COUNTRIES,{cache:!0}).then(function(t){return t.data.countries.sort(s)})["catch"](c)}function s(t,e){return t.name.localeCompare(e.name)}function c(n){return t.error(l["default"].FAILED_LOAD_MESSAGE),e.reject(n.data)}function u(t){return o().then(function(e){return e.find(function(e){return e.code.toLowerCase()===t.toLowerCase()})}).then(function(e){return e?e.name:t})}function d(){return n.get(i.VAT_RECEIPT_COUNTRIES).then(function(t){return t.data.countries})["catch"](c)}function h(){return p.getList().then(function(t){return r.remapToSelectOptions(t,"name","code")})}var f=void 0,p={getList:o,getAllCountriesList:a,getCountryName:u,getVatReceiptCountries:d,getCountriesOptionsList:h};return p}r.$inject=["$log","$q","$http","staticDataUrls","arrayUtils"],e.__esModule=!0;var o=n(36),a=i(o),s=n(107),l=i(s);a["default"].factory("countryApiService",r),e["default"]=r},function(t,e){"use strict";e.__esModule=!0,e["default"]={FAILED_LOAD_MESSAGE:"Failed to get countries."}},function(t,e){"use strict";e.__esModule=!0;e.RELEASES_STATUSES={PUBLISHED:"PUBLISHED",HISTORICAL:"HISTORICAL",ROLLED_BACK:"ROLLED_BACK"},e.LEVEL_ENTITY_TYPE={GLOBAL:"GLOBAL",COUNTRY:"COUNTRY",CUSTOMER:"CUSTOMER",ACCOUNT:"ACCOUNT",CORPORATE:"CORPORATE"},e.HIERARCHICAL_RULE_TYPES={plain:"PLAIN",enable:"ENABLE",mandatory:"MANDATORY",topDown:"TOP_DOWN",bottomUp:"BOTTOM_UP",minimumValue:"MINIMUM_VALUE",maximumValue:"MAXIMUM_VALUE",masterList:"MASTER_LIST",disablingMasterList:"DISABLING_MASTER_LIST"}},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2],s=i[3],l=i[4];r.init(o,a,s,l)}return{scope:{selectAll:"="},restrict:"A",require:["commonListSelection","^masterList","?^adtListRow","^deleteRow","^commonList"],controller:o["default"],controllerAs:"commonListSelectionCtrl",template:'<span adt-row-selection-checkbox="" select-all="selectAll" ng-if="commonListSelectionCtrl.isSelectionAvailable()"> </span>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(110),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="commonListSelection"},function(t,e){"use strict";function n(t){function e(t,e,n,i){a=t,s=e,l=n,c=i}function n(){return a&&l&&a.isListEditable()&&i()&&r()}function i(){return t.selectAll||!l.isDeleted(s.getRow())}function r(){return!!c.getValue().length}var o=this,a=void 0,s=void 0,l=void 0,c=void 0;Object.assign(o,{init:e,isSelectionAvailable:n})}e.__esModule=!0,e["default"]=n,n.$inject=["$scope"]},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i.slice(1);r.init.apply(r,o)}return{require:["commonListRowEditor","^adtList","^adtCiListRowEditorWrapper","^editRow","^addNewRow","^commonList"],controller:o["default"],controllerAs:"listRowEditorCtrl",replace:!0,template:'<tr ng-if="listRowEditorCtrl.initialized" class="adt-table__row" ng-class="{\'is-validated-for-uniqueness\': listRowEditorCtrl.isValidatedForKeyUniqueness}" adt-ci-list-row-editor="" active-columns-config="listRowEditorCtrl.getEditableColumnsConfig()" columns="listRowEditorCtrl.getColumns()" data="listRowEditorCtrl.row" on-confirm="listRowEditorCtrl.confirm(data)" on-cancel="listRowEditorCtrl.cancel()" mode="listRowEditorCtrl.mode"> <td class="adt-table__cell adt-table__cell_check"></td> <td class="adt-table__cell" ng-repeat="column in listRowEditorCtrl.getColumns()"> <div adt-ci-list-cell-editor="" mass-update="listRowEditorCtrl.isMassUpdate()" meta="column"></div> </td> </tr>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(112),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="commonListRowEditor"},function(t,e,n){"use strict";function i(t,e,n,i,r){"ngInject";function a(n,i,r,o,a){C=n,T=r,I=o,D=a,t.$watch(i.getRow,function(t){_=t,b.row=angular.copy(_),b.mode=i.getMode()}),e(function(){return b.initialized=!0})}function s(t){switch(b.mode){case"COPY":case"NEW":I.confirm(t);break;case"EDIT":T.confirm(t)}C.stopEditing()}function l(){C.stopEditing()}function c(){return O||(O=u(C.getColumns()))}function u(t){var e=angular.copy(t),n=C.getMeta(),r=n.alias,o=n.group,a=n.subGroup,s=i.getRowValidationsConfig({alias:r,group:o,subGroup:a});return h(s,e),d(s,e),e}function d(t,e){var n=r.getValidationFn(t,{rowsArr:C.getRows(),rowIdFn:D.rowIdFn,currentRowId:D.rowIdFn(b.row)}),i=r.getErrorMessages(t);e.forEach(function(t){t.metaInfo.validationFn=n.bind(null,t.metaInfo.uiComponent),t.metaInfo.errors=angular.extend(t.metaInfo.errors||{},i[t.metaInfo.uiComponent])})}function h(t,e){var n=D.getCompositeKey(),i=C.getRows().map(D.rowIdFn),r=e.filter(function(t){return n.includes(t.metaInfo.uiComponent)});t[n[0]]={validators:[(0,o["default"])(r[0].metaInfo.uiComponent,i,n,D.rowIdFn)]},f(r)}function f(t){t[0].metaInfo.errors=angular.extend(t[0].metaInfo.errors||{},{compositeKeyUnique:p(t)})}function p(t){var e=t.map(function(t){return t.metaInfo.name.toUpperCase()}).join(", ");return(t.length>1?n.LIST_KEY_UNIQUENESS_ERROR.plural:n.LIST_KEY_UNIQUENESS_ERROR.singular).replace("{{key}}",e)}function m(){return C&&(g()||v())}function g(){return["COPY","NEW"].includes(b.mode)&&!!C.getRowBeingCreated()}function v(){return _&&_===C.getRowBeingEdited()}function y(){return $||($=C.getEditableColumnsConfig(b.mode))}function E(){return D&&D.isMassUpdate()}var b=this,_=void 0,C=void 0,T=void 0,I=void 0,D=void 0,$=void 0,O=void 0;Object.assign(b,{initialized:!1,isValidatedForKeyUniqueness:!1,init:a,confirm:s,cancel:l,getColumns:c,isVisible:m,getEditableColumnsConfig:y,isMassUpdate:E})}i.$inject=["$scope","$timeout","MESSAGES","validationFunctionsService","validationFunctionTransformerService"],e.__esModule=!0;var r=n(113),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i},function(t,e){"use strict";function n(t,e,n,i){return function(r){var o=n.reduce(function(t,e){return t[e]=r[e].$modelValue,t},{});o[t]=r[t].$viewValue;var a=i(o),s=!e.includes(a);return Object.keys(r).filter(function(t){return n.includes(t)}).forEach(function(t){r[t].$setValidity("compositeKeyUnique",s)}),s}}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t){"ngInject";function e(e,n,i,r){var o=r[0];r[1].init(o),e.row=o.getData(),e.template=i.template||t.getEditTemplate(e.meta.metaInfo,e.row)||e.meta.metaInfo.type.toLowerCase()+"-table-edit-template"}return{scope:{meta:"=",massUpdate:"=",revertToInitialAllowed:"="},restrict:"A",require:["^adtCiListRowEditor","adtCiListCellEditor"],controller:o["default"],controllerAs:"ciListCellEditorController",templateUrl:"ci-list-cell-editor-template.html",link:{pre:e}}}i.$inject=["cellTemplateService"],e.__esModule=!0,e["default"]=i;var r=n(115),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtCiListCellEditor"},function(t,e){"use strict";function n(t,e,n,i){"ngInject";function r(e){m=t.meta.metaInfo.uiComponent,p=e,s(),l(),p.onConfirm(h)}function o(){var e=t.meta,n=p.isEditable(e);return a(n)&&(t.value.value=v,d(v,!0)),g=n}function a(e){var n=t.revertToInitialAllowed;return!e&&g&&!1!==n}function s(){var e=t.meta,n=t.meta.metaInfo,r=n.type,o=n.uiComponent,a=p.getData()[m],s=i.retrieveTransformer(r),l=angular.extend({value:{value:a}},{initValue:{value:a}},{prodValue:{value:a}},{id:o},e);s&&(l=s.transform(l)),v=a,l.value.value=a,angular.extend(t,l)}function l(){n(function(){t.$watch("value",u,!0),t.$watch(c,function(){return u(t.value)})})}function c(){var e=t[t.id];return!e||e.$valid}function u(t){var e=t.value;if(angular.isNumber(e)&&isNaN(e)&&(e=t.value=null),!f.isEditable())return void d(e,!0);d(e,c())}function d(t,e){p.changed(m,t,e)}function h(){var t=e.find("input");t.length&&t.addClass("ng-dirty").removeClass("ng-pristine")}var f=this,p=void 0,m=void 0,g=void 0,v=void 0;Object.assign(f,{init:r,isEditable:o})}n.$inject=["$scope","$element","$timeout","adtDataTransformersFactory"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}function e(t,e){e.addClass("ci-list-editor")}return{scope:{data:"=",columns:"=",onConfirm:"&",onCancel:"&",activeColumnsConfig:"=",mode:"="},require:["adtCiListRowEditor","?^adtCiListRowEditorWrapper"],restrict:"A",controller:o["default"],controllerAs:"ciListRowEditorController",link:{pre:t,post:e}}}e.__esModule=!0,e["default"]=i;var r=n(117),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="adtCiListRowEditor"},function(t,e,n){"use strict";function i(t,e,n,i,r){"ngInject";function a(e){e&&e.register(E),O=n.createChannel(),D=l(t.data),I=angular.copy(D),g()}function s(){return I}function l(e){var n=angular.copy(e);return t.columns.filter(function(t){return t.metaInfo.uiComponent in e||(w.push(t.metaInfo.uiComponent),!1)}).forEach(function(t){var i=t.metaInfo,r=i.type,o=i.uiComponent,a=c(r),s=a.transform(angular.extend({value:{value:e[o]}},t));n[o]=s.value.value,_[o]=a}),n}function c(t){return i.retrieveTransformer(t)||C}function u(e){var n=angular.copy(e);return Object.keys(n).forEach(function(t){(angular.isUndefined(n[t])||Number.isNaN(n[t]))&&delete n[t]}),t.columns.filter(function(t){return!w.includes(t.metaInfo.uiComponent)}).forEach(function(t){var i=t.metaInfo.uiComponent,r={value:{value:e[i]}};r=_[i].backwardTransform(r),n[i]=r.value.value}),n}function d(){t.onCancel()}function h(){O.publish(T),E.valid&&t.onConfirm({data:u(I)}),e.addClass("is-validated")}function f(t){O.subscribe(T,t)}function p(t,e,n){b[t]=n,g(),I[t]=e,m()}function m(){$=!angular.equals(I,D)}function g(){E.valid=(0,o["default"])(b).toArray().every(function(t){return t})}function v(){return $}function y(e){return r.isEditable(I,e.metaInfo,t.mode,t.activeColumnsConfig)}var E=this,b={},_={},C={transform:function(){function t(t){return t}return t}(),backwardTransform:function(){function t(t){return t}return t}()},T="CONFIRM_EVENT",I=void 0,D=void 0,$=void 0,O=void 0;Object.assign(E,{valid:!0,init:a,cancel:d,confirm:h,changed:p,areChangesPresent:v,isEditable:y,getData:s,onConfirm:f});var w=[]}i.$inject=["$scope","$element","pubSubService","adtDataTransformersFactory","ciIsColumnEditableService"],e.__esModule=!0,e["default"]=i;var r=n(33),o=function(t){return t&&t.__esModule?t:{"default":t}}(r)},function(t,e,n){"use strict";function i(){"ngInject";function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{restrict:"A",require:["listValueRendererWrapper","^adtList"],controller:o["default"],controllerAs:"listValueRendererWrapperCtrl",link:t}}e.__esModule=!0,e["default"]=i;var r=n(119),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listValueRendererWrapper"},function(t,e){"use strict";function n(t,e){"ngInject";function n(t){var n=t.getColumns();n.reduce(function(t,e){return t.set(e.metaInfo.uiComponent,e),t},a),o.nonFilterableColumns=n.filter(function(t){return[e.BOOLEAN].includes(t.metaInfo.type)}).map(function(t){return t.metaInfo.uiComponent})}function i(){return a}function r(e,n){return a.get(e)?t("adtCellValueFilter")(n[e],a.get(e).metaInfo):""}var o=this,a=new Map;Object.assign(o,{nonFilterableColumns:[],init:n,getRenderedValue:r,getColumnsMap:i})}n.$inject=["$filter","CI_TYPES"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){"ngInject";function t(t,e,n,i){var r=i[0],o=i[1],a=i[2],s=i[3];r.init(o,a,s),o.setEditableColumnsConfigFn(r.getEditableColumnsConfig)}return{restrict:"A",require:["listEditableColumnsConfig","adtList","masterList","^commonList"],controller:o["default"],link:t}}e.__esModule=!0,e["default"]=i;var r=n(121),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listEditableColumnsConfig"},function(t,e){"use strict";function n(){"ngInject";function t(t,e,n){r=t,o=e,a=n}function e(t){var e=angular.copy(o.getEditableColumns());if(!e.length){var i=r.getColumns().map(function(t){return t.metaInfo.uiComponent});switch(t){case"COPY":case"NEW":case"VIEW":e.push.apply(e,i);break;case"EDIT":e.push.apply(e,i.filter(n))}}return[{key:{},columns:e}]}function n(t){return!a.getCompositeKey().includes(t)}var i=this,r=void 0,o=void 0,a=void 0;Object.assign(i,{init:t,getEditableColumnsConfig:e})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2],s=i[3],l=i[4];r.init(o,a,s,l)}return{scope:!0,restrict:"A",require:["listAddNewRowButton","^adtList","^addNewRow","^minMaxRowsNumber","^masterList"],controller:o["default"],controllerAs:"addNewRowButtonCtrl",template:'<button type="button" class="btn btn_green" adt-ci-lockable="" ng-click="!locked && addNewRowButtonCtrl.addNewRow()" ng-disabled="addNewRowButtonCtrl.isBtnDisabled()"> Add new </button>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(123),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listAddNewRowButton"},function(t,e){"use strict";function n(){function t(t,e,n,i){r=t,o=e,a=n,s=i}function e(){return!r&&!a||r.isAnyRowBeingEdited()||r.isListDisabled()||!a.isAddNewEnabled()||!s.isListEditable()}function n(){o.addNewRow()}var i=this,r=void 0,o=void 0,a=void 0,s=void 0;Object.assign(i,{init:t,isBtnDisabled:e,addNewRow:n})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{restrict:"A",require:["addNewRow","adtList","ngModel"],controller:o["default"],link:t}}e.__esModule=!0,e["default"]=i;var r=n(125),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="addNewRow"},function(t,e){"use strict";function n(t){"ngInject";function e(t,e){o=t,a=e}function n(){var e=t.getNewRow(o.getMeta().childCiMetas);o.setRowBeingCreated(e,"NEW")}function i(t){var e=angular.copy(o.getRows());e.push(t),a.$setViewValue(e),o.stopEditing()}var r=this,o=void 0,a=void 0;Object.assign(r,{init:e,addNewRow:n,confirm:i})}n.$inject=["newRowFactory"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],c=i[5];r.init(o,a,s,l,c)}return{scope:!0,restrict:"A",require:["listDeleteRowButton","^adtList","^deleteRow","^rowSelectionWrapper","^minMaxRowsNumber","?^checkDependantsUsing"],controller:o["default"],controllerAs:"deleteRowButtonCtrl",template:'<button type="button" class="btn btn_green" adt-ci-lockable="" ng-click="!locked && deleteRowButtonCtrl.deleteRow()" ng-disabled="deleteRowButtonCtrl.isBtnDisabled()"> Delete </button>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(127),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="listDeleteRowButton"},function(t,e){"use strict";function n(t,e,n){"ngInject";function i(t,e,n,i,r){s=t,l=e,c=n,u=i,d=r,u.setSelectionController(c)}function r(){var i=d?d.getUsedValuesInDependants(c.getSelectedRows()):null;if(i)return e.showError({header:"Error occurred",text:t(n.DEPENDANT_OPTIONS_USED_VALUES)(Object.assign(i))});l.deleteRows(c.getSelectedRows()),c.selectionOfAllChanged(!1)}function o(){return!c&&!s&&!u||!c.areSelectedPresent()||s.isAnyRowBeingEdited()||s.isListDisabled()||!u.isDeleteEnabled()}var a=this,s=void 0,l=void 0,c=void 0,u=void 0,d=void 0;Object.assign(a,{init:i,deleteRow:r,isBtnDisabled:o})}n.$inject=["$interpolate","errorModalService","MESSAGES"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{restrict:"A",require:["deleteRow","^commonList"],controller:o["default"],link:t}}e.__esModule=!0,e["default"]=i;var r=n(129),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="deleteRow"},function(t,e){"use strict";function n(t,e){"ngInject";function n(n){l=n,t(function(){return i(n.getValue())}),e.$watch(l.getValue,i)}function i(t,e){if(!e||!angular.equals(t,e)){var n=l.getProdValue()||[],i=l.rowIdFn,r=t.reduce(function(t,e){return t[i(e)]=e,t},{});c=n.map(i).filter(function(t){return!r[t]}),l.setDeleted(c)}}function r(t){var e;(e=c).push.apply(e,t.map(l.rowIdFn)),l.setDeleted(c)}function o(t){var e=t.map(l.rowIdFn);c=c.filter(function(t){return!e.includes(t)}),l.setDeleted(c)}function a(t){return c&&c.includes(l.rowIdFn(t))}var s=this,l=void 0,c=void 0;Object.assign(s,{init:n,isDeleted:a,deleteRows:r,restoreRows:o})}n.$inject=["$timeout","$scope"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{restrict:"A",require:["editRow","adtList","ngModel"],controller:o["default"],link:t}}e.__esModule=!0,e["default"]=i;var r=n(131),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="editRow"},function(t,e){"use strict";function n(){function t(t,e){r=t,o=e}function e(t){a=t,r.setRowBeingEdited(t)}function n(t){var e=r.getRows(),n=angular.copy(e);n[e.indexOf(a)]=t,o.$setViewValue(n),r.stopEditing()}var i=this,r=void 0,o=void 0,a=void 0;Object.assign(i,{init:t,editRow:e,confirm:n})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1],a=i[2],s=i[3],l=i[4],c=i[5];r.init(o,a,s,l,c)}return{restrict:"A",require:["rowEditButton","^editRow","^adtList","^adtListActionsRow","^deleteRow","^commonList"],controller:o["default"],controllerAs:"editButtonController",replace:!0,template:'<button type="button" class="btn btn_green" adt-ci-lockable="" ng-if="editButtonController.isRowEditable()" ng-click="!locked && editButtonController.editRow()" ng-disabled="editButtonController.isBtnDisabled()"> Edit </button>',link:t}}e.__esModule=!0,e["default"]=i;var r=n(133),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.DIRECTIVE_NAME="rowEditButton"},function(t,e){"use strict";function n(){function t(t,e,n,i,r){a=e,o=t,s=n,l=i,c=r}function e(){o.editRow(s.getRow())}function n(){return!a||a.isAnyRowBeingEdited()}function i(){return l&&a&&c&&!l.isDeleted(s.getRow())&&c.getCompositeKey().length<a.getColumns().length}var r=this,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0;Object.assign(r,{init:t,editRow:e,isBtnDisabled:n,isRowEditable:i})}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){function t(t,e,n,i){function r(e){var r=t.$eval(n.validationRunner);return r&&r(i),e}i.$parsers.unshift(r),i.$formatters.push(r)}return{restrict:"A",require:"ngModel",link:t}}e.__esModule=!0,e["default"]=n,n.DIRECTIVE_NAME="validationRunner"},function(t,e,n){"use strict";function i(){"ngInject";function t(t,e,n,i){var r=i[0],o=i[1],a=i[2];r.init(o,a)}return{restrict:"A",require:["minMaxRowsNumber","adtList","^commonList"],controller:o["default"],link:t}}e.__esModule=!0,e["default"]=i;var r=n(136),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="minMaxRowsNumber"},function(t,e){"use strict";function n(){function t(t){a=t}function e(t,e){o=t,c=parseInt(t.getMeta().metaInfo.minSize||0,10),l=parseInt(t.getMeta().metaInfo.maxSize||0,10),s=e}function n(){return 0===l||o.getRows().length<l}function i(){var t=a&&a.getSelectedRows().length||0,e=o.getRows().length-s.getDeleted().length-t;return 0===c||e>=c}var r=this,o=void 0,a=void 0,s=void 0,l=void 0,c=void 0;Object.assign(r,{init:e,isAddNewEnabled:n,isDeleteEnabled:i,setSelectionController:t})}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t){"ngInject";function e(t){var e=i[t.toUpperCase()];if(angular.isUndefined(e))throw new Error("Empty value for type '"+t+"' is not specified.");return angular.isFunction(e)?e():e}var n,i=(n={},n[t.BOOLEAN]="N",n[t.COUNTRY_SINGLE_CHOICE]="",n[t.SINGLE_CHOICE]="",n[t.TEXT]="",n[t.NUMERIC]="",n[t.MULTIPLE_CHOICE]=[],n[t.COUNTRY_MULTIPLE_CHOICE]=[],n[t.DATE]=function(){return(new Date).getTime()},n[t.IMAGE]={content:"",mimeType:""},n[t.NUMERIC_RANGE]={from:"",to:""},n[t.LANGUAGE_SINGLE_CHOICE]="",n);return{getValueFor:e}}n.$inject=["CI_TYPES"],e.__esModule=!0,e["default"]=n,n.FACTORY_NAME="newCellValueFactory"},function(t,e){"use strict";function n(t){"ngInject";function e(e){return e.reduce(function(e,n){return e[n.metaInfo.uiComponent]=t.getValueFor(n.metaInfo.type),e},{})}return{getNewRow:e}}n.$inject=["newCellValueFactory"],e.__esModule=!0,e["default"]=n,n.FACTORY_NAME="newRowFactory"},function(t,e){"use strict";function n(){function t(t,e,i){n.push({ciKey:t,levels:e,columns:i})}function e(){"ngInject";function t(t,e){var i=n.find(function(n){return angular.equals(n.ciKey,t)&&n.levels.includes(e)});return i?i.columns:[]}return{getColumnForcedToBeEditable:t}}var n=[];return{forceColumnsToBeEditable:t,$get:e}}e.__esModule=!0,e["default"]=n,n.PROVIDER_NAME="masterListEditableColumnsService"},function(t,e,n){"use strict";function i(t){"ngInject";t.forceColumnsToBeEditable({alias:"payment.categories",group:"Payment Options",subGroup:" "},[r.LEVEL_ENTITY_TYPE.COUNTRY],["buffer"]),t.forceColumnsToBeEditable({alias:"types.of.export.per.reason.for.export",group:"Shipment Paperwork",subGroup:"Invoice"},[r.LEVEL_ENTITY_TYPE.COUNTRY],["returnFlow"]),t.forceColumnsToBeEditable({alias:"payment.type.list",group:"Payment Options",subGroup:"Global Collect"},[r.LEVEL_ENTITY_TYPE.COUNTRY],["showResultPage"])}i.$inject=["masterListEditableColumnsServiceProvider"],e.__esModule=!0,e["default"]=i;var r=n(108)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0,e["default"]=e.module=undefined;var r=n(142),o=i(r),a=n(144),s=i(a),l=angular.module("adt.configuration.ci-filter",[]);e.module=l,e["default"]="adt.configuration.ci-filter",l.directive(o["default"].NG_NAME,o["default"]).directive(s["default"].NG_NAME,s["default"])},function(t,e,n){"use strict";function i(){return{scope:!0,controller:o["default"],controllerAs:"ciFilterWrapperController",restrict:"A"}}e.__esModule=!0,e["default"]=i;var r=n(143),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="ciFilterWrapper"},function(t,e){"use strict";function n(t,e,n){"ngInject";function i(t){var i=t.name;return{type:e.NEW_FEATURES,text:n.NEW_FEATURES+" "+i,ewfRelease:i}}function r(t){l=""===t||angular.isUndefined(t)}function o(){return 0===s.tokens.length&&l}function a(t){s.tokens=t}var s=this,l=!0;angular.extend(s,{release:[],tokens:[],setIsInputEmpty:r,isFilterDisabled:o,setFilterTokens:a}),t.getReleases().then(function(t){s.releases=t.map(i)})}n.$inject=["ciApiEWFReleasesService","PREDEFINED_FILTERS_TYPES","PREDEFINED_FILTERS"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){return{restrict:"A",controller:o["default"],controllerAs:"ciFilterController"}}e.__esModule=!0,e["default"]=i;var r=n(145),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="ciFilter"},function(t,e){"use strict";function n(t,e,n,i,r,o,a){"ngInject";function s(){n.filter(f.selectedFilters),l()}function l(){f.filteringEnded=!0,v&&t.cancel(v),v=t(function(){f.filteringEnded=!1},g)}function c(t){y=""===t||angular.isUndefined(t)}function u(){return 0===f.selectedFilters.length&&y}function d(t){return{type:m,regexp:new RegExp(a(t),"i"),name:t}}function h(t){t.forEach(function(t){return f.filters.push({type:p,name:r.NEW_FEATURES+t.name,release:t.name})})}var f=this,p="NEW_FEATURES",m="STRING",g=2e3,v=void 0,y=!0;Object.assign(f,{selectedFilters:[],filters:[],filteringEnded:!1,filteringEndedMessage:o.FILTERING_ENDED,filter:s,isFilterDisabled:u,newTokenFn:d,setIsInputEmpty:c}),e.$watch(function(){return f.selectedFilters},function(t,e){angular.equals(t,e)||f.filter()}),Object.keys(r).forEach(function(t){t===p?i.getReleases().then(h):f.filters.push({type:t,name:r[t]})})}n.$inject=["$timeout","$scope","ciFilterService","ciApiEWFReleasesService","PREDEFINED_FILTERS","MESSAGES","regexpEscape"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t){"ngInject";function e(t,e,r,o){var a=e.uiComponent;if(!o)return!0;var s=o.filter(function(t){return!t.levels||n(t.levels)}).find(function(e){return Object.keys(e.key).every(function(n){return t[n]===e.key[n]})});return!!s&&(s.columns.includes(a)||i(s.columns,a,r))}function n(e){var n=t.getCurrentLevel();return e.some(function(t){return t.toLowerCase()===n.toLowerCase()})}function i(t,e,n){return t.filter(angular.isObject).filter(function(t){return t.name===e}).some(function(t){return t.modes.includes(n)})}return{isEditable:e}}n.$inject=["levelService"],e.__esModule=!0,e["default"]=n,n.FACTORY_NAME="ciIsColumnEditableService"},function(t,e){"use strict";function n(){function t(t,n,i,r){var o=!angular.isArray(t),a=o?Object.keys(t):t;return n.every(function(n){return o?a.filter(function(t){return!t.startsWith("$$")}).filter(function(t){return!r.includes(t)}).some(function(r){return e(n,i(r,t))}):t.filter(function(t,e){return!r.includes(e)}).some(function(r,o){return e(n,i(o,t))})})}function e(t,e){return t.regexp.lastIndex=0,t.regexp.test(e)}return function(e,n,i){var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];return n&&n.length?e.filter(function(e){return t(e,n,i,r)}):e}}e.__esModule=!0,e["default"]=n,n.NG_NAME="adtTableFilter"},function(t,e){"use strict";function n(t,e,n){function i(t,n,i){var o=i.customTemplate,a=t.metaInfo,s=a.type,l=a.name,c=o?e.get(o):e.get(s.toLowerCase()+"-template");c||(c="<div>Unsupported type "+(o||s)+" for Ci "+l+"</div>"),r(t,n,c)}function r(e,i,r){var o=n(r)(e),a=t(o)(e);return i.append(a),a}return{restrict:"A",link:{post:i}}}e.__esModule=!0,e["default"]=n,n.$inject=["$compile","$templateCache","customInterpolate"]},function(t,e,n){"use strict";function i(t,e){"ngInject";function n(t,e,n,i){var r=t.ci,o=s(r);angular.extend(t,o),i.setInitialValue(o.initValue)}function i(t,e,n,i){i.init()}function r(t){return e.getChange(t.id)}function a(t){var e=r(t);return t.initValue=angular.copy(t.value),e&&(t.value=e),t}function s(e){var n=e.metaInfo.type,i=t.retrieveTransformer(n),r=i?i.transform(e):angular.copy(e);return a(r),r}return{scope:{ci:"=",tryChangeFn:"=",isDisabled:"="},restrict:"A",controller:o["default"],controllerAs:"adtCiController",template:'<div class="ci-field" adt-ci-template=""></div>',link:{pre:n,post:i}}}i.$inject=["adtDataTransformersFactory","ciChangesService"],e.__esModule=!0;var r=n(150),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i},function(t,e){"use strict";function n(t,e,n,i){"ngInject";function r(){t.$watch("value",l,!0),e.addCancelChangesCallback(a),e.addSuccessfulSaveCallback(s),t.$on("$destroy",function(){e.removeCancelChangesCallback(a),e.removeSuccessfulSaveCallback(s)})}function o(t){h.initValue=t}function a(e){t.value=angular.copy(e||h.initValue)}function s(){h.initValue=angular.copy(t.value),t.initValue=h.initValue,l(t.value)}function l(n,i){function r(){var i=t[t.ci.id],r=!i||i.$valid;!r&&u(!1)&&(r=!0),r||(r=n.incomplete&&i?c(i):r),e.registerChange(t.ci,n,h.initValue,r)}if(f)return void(f=!1);t.tryChangeFn?t.tryChangeFn(t.ci.id,n).then(r)["catch"](function(){return a(i)}):r()}function c(t){return Object.keys(t).filter(function(t){return!t.startsWith("$")}).every(function(e){var n=t[e].$error;return Object.keys(n).every(function(t){return"required"===t||!n[t]})})}function u(){var e=!(arguments.length>0&&arguments[0]!==undefined)||arguments[0],r=n.isDisabled(t.ci);return r?d():r=i.isDisabled(t.ci),r||(r=t.isDisabled||!1),p===!r&&e&&l(t.value),p=r,r}function d(){var e=!1;t.prodValue&&(e=Object.keys(t.prodValue).some(function(e){return!angular.equals(t.value[e],t.prodValue[e])})),e&&angular.extend(t.value,t.prodValue)}var h=this,f=!0,p=!1;angular.extend(h,{initValue:undefined,alias:undefined,formId:t.ci.id+"__form",init:r,setInitialValue:o,isDisabled:u})}n.$inject=["$scope","ciChangesService","ciDependencyService","ciDisablingService"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0];i[1].init(r)}function e(t,e){e.on("click",function(t){return!e.attr("readonly")||t.preventDefault()})}return{restrict:"A",scope:{uiType:"@",ngDisabled:"=",ngReadonly:"=",ngRequired:"=",options:"=",showVal:"=",ngModel:"="},require:["ngModel","adtSingleChoice"],controller:o["default"],controllerAs:"adtSingleChoiceController",replace:!0,link:{pre:t,post:e},template:'<span bindonce="" class="highlighted"> <span bo-if="uiType === \'radio\'"> <div class="radio radio_column" ng-repeat="descr in options"> <input id="{{id + $index}}" class="radio__input" type="radio" ng-value="descr.value" ng-model="adtSingleChoiceController.selected" ng-disabled="ngDisabled"> </input> <label for="{{id + $index}}" class="label"> <span bo-text="descr.label"></span> </label> </div> </span> <div adt-single-select="" bo-if="uiType === \'select\' || !uiType" class="multiple" name="value" ng-model="adtSingleChoiceController.selected" ng-readonly="ngReadonly" ng-disabled="ngDisabled" ng-required="ngRequired" options="adtSingleChoiceController.options" to-model-value-fn="adtSingleChoiceController.toModelValueFn" to-view-value-fn="adtSingleChoiceController.toViewValueFn" set-value-by-user-input-on-blur="false" invalid-input=""> </div> </span>'}}e.__esModule=!0;var r=n(152),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.$inject=[],e["default"]=i},function(t,e){"use strict";function n(t){"ngInject";function e(e){c=e,c.$render=function(){s.selected=c.$viewValue},t.$watch(function(){return s.selected},function(t,e){t!==e&&c.$setViewValue(t)}),t.$watch("options",function(t){t&&n()})}function n(){s.options=i(t.options)}function i(t){return t.find(function(t){return""===t.value})?t:[{value:"",label:""}].concat(t)}function r(t){return t&&t.value}function o(e,n){return n&&n.find(function(t){return t.value===e})||t.showVal&&a(e)||undefined}function a(t){return l[t]||(l[t]={value:t,label:t}),l[t]}var s=this,l={},c=void 0;Object.assign(s,{selected:"",init:e,toModelValueFn:r,toViewValueFn:o})}n.$inject=["$scope"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){function t(t,e,n,i){i.init()}return{scope:{ci:"=",value:"=",name:"=",toViewValueFn:"=",toModelValueFn:"=",userInputEnabled:"=",ngRequired:"=",ngReadonly:"=",ngDisabled:"="},template:'<div adt-select="" class="multiple input" name="name" options="adtMasterListRuleController.valuesProvider" text-field="label" to-model-value-fn="toModelValueFn" to-view-value-fn="toViewValueFn" invalid-input="" user-input-enabled="userInputEnabled" ng-readonly="ngReadonly" ng-disabled="ngDisabled" ng-model="value.value" ng-required="ngRequired"> </div>',controller:o["default"],controllerAs:"adtMasterListRuleController",link:t}}e.__esModule=!0;var r=n(154),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i,i.$inject=[]},function(t,e){"use strict";function n(t,e,n){function i(){var i=n(e.ci);r.valuesProvider=angular.copy(e.ci.metaInfo.valuesProvider);var o=t.getParentData(i);o&&r.valuesProvider.forEach(function(t){o.find(function(n){return e.toModelValueFn(t)===n})||(t.isUnallowed=!0)})}var r=this;angular.extend(r,{valuesProvider:[],init:i})}e.__esModule=!0,e["default"]=n,n.$inject=["parentDataService","$scope","generateCiId"]},function(t,e,n){"use strict";function i(){function t(t,e,n,i){var r=i[0],o=i[1];r.init(o)}return{scope:{groups:"=",massUpdate:"="},restrict:"A",require:["adtGroupsSidebar","ngModel"],controller:o["default"],controllerAs:"groupsSidebarCtrl",template:'<div class="tabs-nav col-2" adt-group-validity="" mass-update="massUpdate" selected-group="groupsSidebarCtrl.selectedGroup"> <ul class="styled-list"> <li bindonce="" class="tabs-nav__item" ng-repeat="group in groups" ng-class="{\'tabs-nav__item--active\': group === groupsSidebarCtrl.selectedGroup}" ng-show="group.visible"> <a href="#" ng-click="groupsSidebarCtrl.select(group)" ng-class="{\'is-error\': !groupValidityCtrl.isGroupValid(group)}"> <span adt-search-highlighter="" text-highlight="group.name"></span> </a> </li> </ul> </div>',link:t}}e.__esModule=!0;var r=n(156),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);e["default"]=i,i.$inject=[]},function(t,e){"use strict";function n(){"ngInject";function t(t){r=t,e(),r.$render=e}function e(){i.selectedGroup=r.$modelValue}function n(t){i.selectedGroup=t,r.$setViewValue(t)}var i=this,r=void 0;Object.assign(i,{selectedGroup:"",init:t,select:n})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(){return{scope:!0,restrict:"A",controller:o["default"],controllerAs:"groupValidityCtrl"}}e.__esModule=!0,e["default"]=i;var r=n(158),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.$inject=[]},function(t,e){"use strict";function n(t,e,n,r,o){"ngInject";function a(){return t.$eval(e.massUpdate)}function s(){return t.$eval(e.selectedGroup)}function l(t,e){n.updateValidity(s(),t,e)}function c(t){return a()?n.isGroupValid(t):o.isGroupValid(t.name)}var u=this;Object.assign(u,{isGroupValid:c}),a()&&function(){r.subscribe(i,l)}()}n.$inject=["$scope","$attrs","groupValidityManager","pubSubService","ciValidityStorage"],e.__esModule=!0,e["default"]=n;var i=e.VALIDITY_CHANGED_EVENT="VALIDITY_CHANGED_EVENT"},function(t,e){"use strict";function n(){function t(t,n){var i=n.icon||"dhlicon-info";return t.find("i").addClass(i),e}function e(t,e){var n=!1;t.hint&&t.hint.length>50&&e.addClass("adt-tooltip_fixed-width"),e.on("click",function(){n=!0,e.addClass(i)}),e.on("mouseleave",function(){n&&(n=!1,e.removeClass(i))})}return{scope:{hint:"@"},transclude:!0,template:'<div class="adt-tooltip" bindonce="hint"> <button type="button" class="btn btn_ico"> <i class="adt-tooltip__icon"></i> </button> <span class="adt-tooltip__text"> <span class="adt-tooltip__row" bo-html="hint"></span> </span> <div class="adt-tooltip__value"> <div ng-transclude=""></div> </div> </div>',restrict:"A",replace:!0,compile:t}}e.__esModule=!0,e["default"]=n;var i="is-valueShown";n.$inject=["$compile"]},function(t,e,n){"use strict";function i(){return{scope:{textHighlight:"="},restrict:"A",controller:o["default"],controllerAs:"adtSearchHighlighterController",template:'<span adt-filter-highlighter="" text-highlight="textHighlight" tokens="adtSearchHighlighterController.tokens"> </span>'}}e.__esModule=!0,e["default"]=i;var r=n(161),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.NG_NAME="adtSearchHighlighter"},function(t,e){"use strict";function n(t,e){"ngInject";function n(){i.tokens=e.getTextTokens()}var i=this;Object.assign(i,{tokens:e.getTextTokens()}),e.addFilterCallback(n),t.$on("$destroy",function(){e.removeFilterCallback(n)})}n.$inject=["$scope","ciFilterService"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){function t(t){Object.assign(n,t)}function e(){function t(t){return i[t]||(i[t]=e(t))}function e(t,e){var i=n[t.toLowerCase()];return i?new i(r,e):null}var i={},r={retrieveTransformer:t,createTransformer:e};return r}var n={};Object.assign(this,{setTransformersMap:t,$get:e})}e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.replace(/[\[\]]/g,"").split("-");return{min:e[0]||u.DEFAULTS.RANGE.min,max:e[1]||u.DEFAULTS.RANGE.max}}function s(t){return angular.isObject(t)?{errors:Object.assign({},t,{min:t.range,max:t.range})}:t}e.__esModule=!0;var l=n(164),c=function(t){return t&&t.__esModule?t:{"default":t}}(l),u=function(t){function e(){return i(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.transform=function(){function t(t){var n=angular.copy(t),i=n.value,r=n.prodValue,o=n.metaInfo,l=n.metaInfo,c=l.range,u=l.errors,d={};return d=c?a(c):e.DEFAULTS.RANGE,angular.extend(o,d,s(u)),n.value.value=""===i.value||null===i.value?null:parseFloat(i.value),n.prodValue&&(n.prodValue.value=""===r.value?null:parseFloat(r.value)),n}return t}(),e.prototype.backwardTransform=function(){function t(t){var e=angular.copy(t);return e.value.value=null===e.value.value?"":""+e.value.value,e}return t}(),e}(c["default"]);e["default"]=u,u.DEFAULTS={RANGE:{min:0,max:999999999}}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;var i=function(){function t(){n(this,t)}return t.prototype.transform=function(){function t(t){return t}return t}(),t.prototype.backwardTransform=function(){function t(t){return t}return t}(),t}();e["default"]=i},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return angular.isObject(t)?{errors:angular.extend({},t,{minlength:t.minLength,maxlength:t.maxLength})}:t}e.__esModule=!0;var s=n(164),l=function(t){return t&&t.__esModule?t:{"default":t}}(s),c=function(t){function e(){return i(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.transform=function(){function t(t){var e=angular.copy(t),n=e.metaInfo,i=e.metaInfo.errors;return angular.extend(n,a(i)),e}return t}(),e}(l["default"]);e["default"]=c},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var a=n(164),s=function(t){return t&&t.__esModule?t:{"default":t}}(a),l=function(t){function e(){return i(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.transform=function(){function t(t){function e(t){var e=r.find(function(e){return t.includes(e.value)});return e&&e.value}var n=angular.copy(t),i=n.metaInfo,r=n.metaInfo.valuesProvider,o=[!1,"false","no","No","NO","n","N"],a=[!0,"true","yes","Yes","YES","y","Y"];return angular.extend(i,{trueValue:e(a),falseValue:e(o)}),n}return t}(),e}(s["default"]);e["default"]=l},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0;var s=n(164),l=i(s),c=n(168),u=i(c),d=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return a(e,t),e.prototype.transform=function(){function t(t){var e=angular.copy(t);return angular.extend(e,new u["default"]),e}return t}(),e}(l["default"]);e["default"]=d},function(t,e){"use strict";function n(){function t(t){return e[t]||(e[t]={value:t,label:t}),e[t]}var e={};this.toModelValueFn=function(t){return t.value},this.toViewValueFn=function(e,n){var i=!(arguments.length>2&&arguments[2]!==undefined)||arguments[2];return n.find(function(t){return t.value===e})||i&&t(e)||undefined}}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t){"ngInject";function e(e){var n={};e.ciMetas.forEach(function(e){n[t(e)]=[e]}),e.ciValues.forEach(function(e){n[t(e)].push(e)});var i=new Map;return Object.keys(n).forEach(function(t){var e=n[t];i.set(t,{meta:e[0],value:e[1]})}),i}function n(t){return Array.from(e(t)).map(function(t){return t[1]})}function i(t,e){return o(t,e.map(function(t){return t.toViewValue.bind(t)}))}function r(t,e){return o(t,e.map(function(t){return t.toSaveValue.bind(t)}))}function o(t,e){return[].concat.apply([],e.map(function(e){return e(t)}))}return{toViewValue:i,toSaveValue:r,getCisMap:e,getCisArr:n}}n.$inject=["generateCiId"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){function t(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";if(!t)return"";var n=t.toLowerCase().match(e);return n?n.join("_"):""}var e=/([a-z0-9]+)/g,n=function(e){return[e.alias,e.group,e.subGroup].map(t).join("__")};return n.normalize=t,n}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t,e,n,i){"ngInject";function r(){return C}function o(t,e,n,r){var o=t.id;angular.equals(e,n)&&r?C["delete"](o):C.set(o,angular.copy({value:e,valid:r,ci:t})),i.register(t,r),I.publish(R+o,o,e,n,r),I.publish(R,o,e,n,r),a()}function a(){k||(k=t(function(){s(),l(),k=null}))}function s(){for(var t=C.entries(),e=t,n=Array.isArray(e),i=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(i>=e.length)break;r=e[i++]}else{if(i=e.next(),i.done)break;r=i.value}if(!r[1].valid)return void I.publish(D,!1)}I.publish(D,!0)}function l(){T=!!Array.from(C).length,I.publish(O,T)}function c(t){var e=C.get(t);return e&&e.value}function u(){a(),d(),I.publish($)}function d(){C.clear()}function h(){a(),I.publish(w),d()}function f(t){I.subscribe(D,t)}function p(t){return I.subscribe($,t),function(){return m(t)}}function m(t){I.unSubscribe($,t)}function g(){return T}function v(t){I.subscribe(O,t)}function y(t){return I.subscribe(w,t),function(){return E(t)}}function E(t){I.unSubscribe(w,t)}function b(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";I.subscribe(R+e,t)}function _(t){I.unSubscribe(R,t)}var C=new Map,T=!1,I=e.createChannel("CiChangesService"),D="VALID_CHANGE_EVENT",$="CANCEL_CHANGES_EVENT",O="CHANGES_PRESENT_EVENT",w="SUCCESSFUL_SAVE_CALLBACK",R="CHANGE_REGISTERED_CALLBACK";return n.addCheckChange(function(){return T}),{registerChange:o,getChange:c,changesSuccessfullySaved:h,cancelChanges:u,getChangedItemsMap:r,areChangesPresent:g,addValidChangesCallback:f,addChangesPresentCallback:v,addCancelChangesCallback:p,removeCancelChangesCallback:m,addSuccessfulSaveCallback:y,removeSuccessfulSaveCallback:E,addChangeRegisteredCallback:b,removeChangeRegisteredCallback:_};var k}n.$inject=["$timeout","pubSubService","transitionConfirmationService","ciValidityStorage"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){"ngInject";function t(t){var n={values:{},prodValues:{},meta:{},groups:new Set},i=t.reduce(e,n);return i.groups=Array.from(i.groups),i}function e(t,e){var n=e.id,i=e.meta.group;return t.values[n]=e.value,t.prodValues[n]=e.prodValue,t.meta[i]=t.meta[i]||[],t.meta[i].push(e.meta),t.groups.add(i),t}return{transform:t}}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t,e){"ngInject";function n(t){r=t.values,e.init(t)}function i(n){var i=e.getDependencyRuleFor(n);if(!i.meta)return!1;var o=i.meta.id,a=t.getChange(o),s=a?a.value:r[o].value;return i.isDisabled(n,s)}var r=void 0;return{init:n,isDisabled:i}}n.$inject=["ciChangesService","ciDependenciesManager"],e.__esModule=!0,e["default"]=n},function(t,e,n){"use strict";function i(t){"ngInject";function e(t){var e=t.meta;Object.keys(e).forEach(function(t){e[t].forEach(i)}),Object.keys(e).forEach(function(t){e[t].forEach(function(t){o(t).addDependent(t)})})}function n(t){return l[t]}function i(e){var n=t.createDependencyRule(e);l[e.id]=n,n.isWholeGroupDependent()&&(a[e.group]=n);var i=s[e.group]=s[e.group]||{};n.getDependentSubGroups().forEach(function(t){i[t]=n})}function o(t){var e=a[t.group]||s[t.group]&&s[t.group][t.subGroup];return e&&e.meta.alias===t.alias&&e.meta.group===t.group&&e.meta.subGroup===t.subGroup?r.NULL_RULE_SINGLETON:e||r.NULL_RULE_SINGLETON}var a={},s={},l={};return{init:e,getDependencyRuleFor:o,getMainById:n}}i.$inject=["dependencyRulesFactory"],e.__esModule=!0,e["default"]=i;var r=n(175)},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.NULL_RULE_SINGLETON=undefined;var a=n(176),s=function(t){function e(){return i(this,e),r(this,t.apply(this,arguments))}return o(e,t),e.prototype.isDisabled=function(){function t(){return!1}return t}(),e.prototype.isDependent=function(){function t(){return!1}return t}(),e.prototype.isWholeGroupDependent=function(){function t(){return!1}return t}(),e.prototype.getDependentSubGroups=function(){function t(){return[]}return t}(),e.prototype.addDependent=function(){function t(){}return t}(),e.prototype.getDependent=function(){function t(){return[]}return t}(),e}(a.BaseRule);e.NULL_RULE_SINGLETON=new s},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}e.__esModule=!0;e.BaseRule=function(){function t(e){n(this,t),this.meta=e,this.dependent=[]}return t.prototype.isDisabled=function(){function t(t,e){throw new Error("Abstract method getting",t,e)}return t}(),t.prototype.applicableToCi=function(){function t(t,e){return t.group||t.subGroups&&t.subGroups.length&&t.subGroups.includes(e.subGroup)}return t}(),t.prototype.getConfig=function(){function t(){throw new Error("Abstract method")}return t}(),t.prototype.addDependent=function(){function t(t){this.dependent.push(t)}return t}(),t.prototype.isDependent=function(){function t(){throw new Error("Abstract method")}return t}(),t.prototype.isWholeGroupDependent=function(){function t(){throw new Error("Abstract method")}return t}(),t.prototype.getDependentSubGroups=function(){function t(){throw new Error("Abstract method")}return t}(),t.prototype.getDisabledDependent=function(){function t(t){var e=this;return this.dependent.filter(function(n){return e.isDisabled(n,t)})}return t}(),t.prototype.getDependent=function(){function t(){return this.dependent}return t}(),t}()},function(t,e,n){"use strict";function i(){function t(t){for(var e=c,n=Array.isArray(e),i=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(i>=e.length)break;r=e[i++]}else{if(i=e.next(),i.done)break;r=i.value}var o=r;if(o.isApplicableFor(t))return new o(t)}return l.NULL_RULE_SINGLETON}return{createDependencyRule:t}}e.__esModule=!0,e.DependencyRulesFactory=i;var r=n(178),o=n(180),a=n(181),s=n(182),l=n(175),c=[r.DisablingMultipleRule,o.DisablingSingleRule,a.EnablingMultipleRule,s.EnablingSingleRule]},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.DisablingMultipleRule=undefined;var a=n(176),s=n(179);e.DisablingMultipleRule=function(t){function e(n){return i(this,e),r(this,t.call(this,n))}return o(e,t),e.isApplicableFor=function(){function t(t){return(0,s.checkForDependencyArray)(t.metaInfo.disabling)}return t}(),e.prototype.getConfig=function(){function t(){return this.meta.metaInfo.disabling}return t}(),e.prototype.isDisabled=function(){function e(e,n){var i=this;return this.getConfig().some(function(r){return t.prototype.applicableToCi.call(i,r,e)&&[].concat(n).includes(r.value)})}return e}(),e.prototype.isWholeGroupDependent=function(){function t(){return this.getConfig().some(function(t){return t.group})}return t}(),e.prototype.getDependentSubGroups=function(){function t(){return this.getConfig().reduce(function(t,e){return[].concat(t,e.subGroups||[])},[])}return t}(),e}(a.BaseRule)},function(t,e){"use strict";function n(t){return angular.isObject(t)&&angular.isDefined(t.value)&&(t.group||i(t))}function i(t){return Boolean(t.subGroups&&t.subGroups.length)}function r(t){return Boolean(angular.isArray(t)&&t.length&&n(t[0]))}e.__esModule=!0,e.checkForDependencyObject=n,e.checkForDependencyArray=r},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.DisablingSingleRule=undefined;var a=n(176),s=n(179);e.DisablingSingleRule=function(t){function e(n){return i(this,e),r(this,t.call(this,n))}return o(e,t),e.isApplicableFor=function(){function t(t){return(0,s.checkForDependencyObject)(t.metaInfo.disabling)}return t}(),e.prototype.getConfig=function(){function t(){return this.meta.metaInfo.disabling}return t}(),e.prototype.isDisabled=function(){function e(e,n){return t.prototype.applicableToCi.call(this,this.getConfig(),e)&&angular.equals(n,this.getConfig().value)}return e}(),e.prototype.isWholeGroupDependent=function(){function t(){return this.getConfig().group}return t}(),e.prototype.getDependentSubGroups=function(){function t(){return this.getConfig().subGroups||[]}return t}(),e}(a.BaseRule)},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.EnablingMultipleRule=undefined;var a=n(178),s=n(179);e.EnablingMultipleRule=function(t){function e(n){return i(this,e),r(this,t.call(this,n))}return o(e,t),e.isApplicableFor=function(){function t(t){return(0,s.checkForDependencyArray)(t.metaInfo.enabling)}return t}(),e.prototype.getConfig=function(){function t(){return this.meta.metaInfo.enabling}return t}(),e.prototype.isDisabled=function(){function e(e,n){return!t.prototype.isDisabled.call(this,e,n)}return e}(),e}(a.DisablingMultipleRule)},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}e.__esModule=!0,e.EnablingSingleRule=undefined;var a=n(180),s=n(179);e.EnablingSingleRule=function(t){function e(n){return i(this,e),r(this,t.call(this,n))}return o(e,t),e.isApplicableFor=function(){function t(t){return(0,s.checkForDependencyObject)(t.metaInfo.enabling)}return t}(),e.prototype.getConfig=function(){function t(){return this.meta.metaInfo.enabling}return t}(),e.prototype.isDisabled=function(){function e(e,n){return t.prototype.applicableToCi.call(this,this.getConfig(),e)&&!angular.equals(n,this.getConfig().value)}return e}(),e}(a.DisablingSingleRule)},function(t,e){"use strict";function n(t,e,n){"ngInject";function i(e){Array.from(n.getCisMap(e)).forEach(function(e){o.set(e[0],t.isDisabledByRule(e[1].meta.metaInfo,e[1].value.ruleData))})}function r(t){return!!o.get(e(t))}var o=new Map;return{init:i,isDisabled:r}}n.$inject=["ciDisablingRulesService","generateCiId","adtCiTransformerService"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(){function t(t,e){return(l[t.type]||l[t.ruleType]||l.PLAIN)(e)}function e(){return!1}function n(t){var e=t.parentData.find(function(t){return"GLOBAL"===t.levelEntityKey.levelEntityType});return e&&e.data&&a.includes(e.data.configurable)}function i(t){var e=o(t),n=!1;return e&&e.data&&a.includes(e.data.value)&&(n=!0),n}function r(t){var e=o(t),n=!1;return e&&e.data&&s.includes(e.data.value)&&(n=!0),n}function o(t){var e=t.parentData;return e[e.length-1]}var a=["N",!1],s=["Y",!0],l={ENABLE:i,MANDATORY:r,FORM_FIELD:n,PLAIN:e};return{isDisabledByRule:t}}e.__esModule=!0,e["default"]=n,n.$inject=[]},function(t,e,n){"use strict";function i(t,e){"ngInject";function n(t){return r(t.meta.metaInfo.type)}function i(t){var e=t.ci.metaInfo.initialType,n=r(t.ci.metaInfo.type);return n&&e&&(n=n&&r(e)),n}function r(t){return"COMPLEX_COMMON"!==t&&!t.includes("FORM_FIELD")}function o(n){return n.map(function(n){var i=n.value,r=n.meta,o=e(r),a=i.data,s=angular.extend({},r,{id:o});return a.incomplete=i.incomplete,a.publishDate=i.publishDate,a.pending=i.pending,s.metaInfo.typeOrigin=s.metaInfo.type,s.metaInfo.type=t.resolve(s.metaInfo),{id:o,meta:s,value:a,prodValue:i.prodData}})}function a(t){return t.map(function(t){var e=t.value,n=t.ci,i=t.ci;return{alias:i.alias,group:i.group,subGroup:i.subGroup,mode:"NOVICE",data:s(e,n)}})}function s(t,e){var n=e.metaInfo.type,i=angular.copy(t);if(delete i.publishDate,delete i.incomplete,delete i.pending,"numeric"===n.toLowerCase()||"money"===n.toLowerCase())return i.value=null===i.value?"":String(i.value),i;n.toLowerCase();return i}var l=this;Object.assign(l,{isAppropriateForViewConvert:n,isAppropriateForSaveConvert:i,convertToViewValue:o,convertToSaveValue:a})}i.$inject=["ciTypeResolver","generateCiId"],e.__esModule=!0;var r=n(186),o=function(t){return t&&t.__esModule?t:{"default":t}}(r);i.prototype=Object.create(o["default"].prototype),e["default"]=i},function(t,e){"use strict";function n(){"ngInject"}function i(t){return this.applyConversion(t,this.isAppropriateForViewConvert,this.convertToViewValue)}function r(t){return this.applyConversion(t,this.isAppropriateForSaveConvert,this.convertToSaveValue)}function o(t,e,n){var i=t.filter(e);return 0===i.length?[]:n(i)}function a(){return!0}function s(){return!0}function l(t){return t}function c(t){return t}e.__esModule=!0,e["default"]=n,n.prototype={toViewValue:i,toSaveValue:r,isAppropriateForViewConvert:a,isAppropriateForSaveConvert:s,convertToViewValue:l,convertToSaveValue:c,applyConversion:o}},function(t,e){"use strict";function n(t){"ngInject";function e(e){i=t.getCisMap(e)}function n(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"value",n=i&&i.get(t);if(n&&n.value.ruleData){var r=n.value.ruleData.parentData;if(r.length){var o=r[r.length-1];return o.data&&o.data[e]}}}var i=void 0;return{init:e,getParentData:n}}n.$inject=["adtCiTransformerService"],e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t){"ngInject";function e(t,e){u=e,c.publish(i,t,u)}function n(t){c.subscribe(i,t)}function r(t){return u.values[t]}function o(t){return u.values[t].value}function a(t){return u.prodValues&&u.prodValues[t]}function s(t){return a(t)&&u.prodValues[t].value}function l(t){return u.meta[t.group]&&u.meta[t.group].find(function(e){return e.alias===t.alias&&e.subGroup===t.subGroup})}var c=t.createChannel("ciDataStorage"),u=void 0;return{init:e,onDataLoaded:n,getCI:l,getCiProdValueById:s,getCiProdData:a,getCiValueById:o,getCiDataById:r}}n.$inject=["pubSubService"],e.__esModule=!0,e["default"]=n;var i="DATA_LOADED"},function(t,e){"use strict";function n(t){function e(e){var n=e.type,i=e.uiComponent;switch(!0){case n.includes(t.SINGLE_CHOICE)&&"timeDefiniteProduct"===i:return t.TIME_DEFINITE_PRODUCT_CHOICE;case n.includes(t.SINGLE_CHOICE)&&"wayOfDeliveryProduct"===i:return t.WAY_OF_DELIVERY_PRODUCT_CHOICE;case n.includes(t.LIST_ADVANCE_DATE_DISPLAY):return t.LIST;case n.includes(t.MONEY):return t.MONEY;case n.includes(t.SINGLE_CHOICE):return t.SINGLE_CHOICE;case n.includes(t.MULTIPLE_CHOICE):return t.MULTIPLE_CHOICE;case n.includes(t.TEXT):return t.TEXT;case n.includes(t.BOOLEAN):return t.BOOLEAN;case n.includes(t.NUMERIC_RANGE):return t.NUMERIC_RANGE;case n.includes(t.NUMERIC):return t.NUMERIC;case n.includes(t.IMAGE):return t.IMAGE;case n.includes(t.FILE):return t.FILE;case n.includes(t.DATE):return t.DATE;case n.includes(t.LIST_PACKAGING):return t.LIST_PACKAGING;case n.includes(t.LIST_SERVICES):case n.includes(t.LIST_PRODUCT_CONFIGURATION):return t.LIST_PRODUCT_CONFIGURATION;case n.includes(t.LIST):return t.LIST;default:return n}}return{resolve:e}}e.__esModule=!0,e["default"]=n,n.$inject=["CI_TYPES"]},function(t,e){"use strict";function n(t,e){"ngInject";function n(){return g.filter(function(t){return"STRING"===t.type}).map(function(t){return t.name})}function i(t){m=t}function r(t){h.subscribe(f,t)}function o(t){h.unSubscribe(f,t)}function a(t){if(g=t||g||[],m){var e=m,n=e.meta,i=s(g,n);h.publish(f,i)}}function s(t,e){function n(t){var e=i(t);s=s||e;var n=t.group,l=t.subGroup;r[n]=r[n]||e,o[n]=o[n]||{},o[n][l]=o[n][l]||e,a[t.id]=e}function i(e){return!t.length||t.every(function(t){return p[t.type](e,t)})}var r={},o={},a={},s=!1;return Object.keys(e).forEach(function(t){e[t].forEach(n)}),{groups:r,subGroups:o,cis:a,itemsPresent:s}}function l(t,e){var n=e.regexp,i=t.group,r=t.subGroup,o=t.metaInfo,a=t.metaInfo.name;n.lastIndex=0;var s=n.test(a);n.lastIndex=0;var l=n.test(r);n.lastIndex=0;var u=n.test(i);return s||l||u||c(o,n)}function c(t,e){return Object.keys(t).some(function(n){var i=t[n];return!!angular.isObject(i)&&(e.lastIndex=0,e.test(i.name||""))})}function u(t){return m.values[t.id].pending}function d(t,e){return t.metaInfo.ewfRelease===e.release}var h=t.createChannel("CiFilterService"),f="FILTER_EVENT",p={STRING:l,NEW_FEATURES:d,PENDING_CHANGES:u},m=void 0,g=[];return e.addSuccessfulSaveCallback(a),{getTextTokens:n,setData:i,addFilterCallback:r,removeFilterCallback:o,filter:a}}n.$inject=["pubSubService","ciChangesService"],e.__esModule=!0,e["default"]=n,n.NG_NAME="ciFilterService"},function(t,e){"use strict";function n(t){"ngInject";function e(e,n){var i=t(e),r=e.group;u[i]=n,o(r,i),a(n),l(r,n)}function n(){return f}function i(t){var e=u[t];return angular.isUndefined(e)||e}function r(t){var e=d[t];return angular.isUndefined(e)||e}function o(t,e){h[t]=h[t]||{},h[t][e]=!0}function a(t){f=!1===t||s()}function s(){return Object.keys(u).some(function(t){return!u[t]})}function l(t,e){d[t]=e&&c(t)}function c(t){return Object.keys(h[t]).every(i)}var u={},d={},h={},f=void 0;return{register:e,areInvalidPresent:n,isCiValid:i,isGroupValid:r}}n.$inject=["generateCiId"],e.__esModule=!0,e["default"]=n,n.NG_NAME="ciValidityStorage"},function(t,e){"use strict";function n(){return function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";if(angular.isDefined(t)){if(!t.length)return n||"<empty>";return(t&&Array.isArray(t)?t:[t]).map(function(t){var n=e&&e.find(function(e){return e.value===t});return n&&n.label||t.toUpperCase()}).join(", ")}}}e.__esModule=!0,e["default"]=n},function(t,e){"use strict";function n(t,e,n){return function(i,r){for(var o=r.rowsArr,a=r.rowIdFn,s=r.currentRowId,l=o.filter(function(t){return a(t)!==s}).map(function(e){return e[t]}),c=!0,u=n.length;u--;){var d=i[t].$modelValue;if(d===n[u]&&l.includes(d)){c=!1;break}}i[t].$setValidity(e,c)}}e.__esModule=!0,e["default"]=n}])})},3:function(t,e,n){var i=n(32),r=n(115),o=n(92),a=n(79),s=n(93),l=function(t,e,n){var c,u,d,h,f=t&l.F,p=t&l.G,m=t&l.S,g=t&l.P,v=t&l.B,y=p?i:m?i[e]||(i[e]={}):(i[e]||{}).prototype,E=p?r:r[e]||(r[e]={}),b=E.prototype||(E.prototype={});p&&(n=e);for(c in n)u=!f&&y&&c in y,d=(u?y:n)[c],h=v&&u?s(d,i):g&&"function"==typeof d?s(Function.call,d):d,y&&!u&&a(y,c,d),E[c]!=d&&o(E,c,h),g&&b[c]!=d&&(b[c]=d)};i.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,t.exports=l},3098:function(t,e,n){"use strict";n(871),n(1020),n(255),n(1138),n(1139),n(1140),n(27),n(1141),n(1142),n(1145),n(1146),n(1147),n(1149),n(897),n(898)},32:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},394:function(t,e){t.exports=function(t,e,n){var i=n===undefined;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},395:function(t,e,n){var i=n(116);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},396:function(t,e,n){var i=n(93),r=n(395),o=n(117),a=n(67),s=n(1023);t.exports=function(t){var e=1==t,n=2==t,l=3==t,c=4==t,u=6==t,d=5==t||u;return function(h,f,p){for(var m,g,v=o(h),y=r(v),E=i(f,p,3),b=a(y.length),_=0,C=e?s(h,b):n?s(h,0):undefined;b>_;_++)if((d||_ in y)&&(m=y[_],g=E(m,_,v),t))if(e)C[_]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:C.push(m)}else if(c)return!1;return u?-1:l||c?c:C}}},397:function(t,e,n){var i=n(116),r=n(28)("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return t===undefined?"Undefined":null===t?"Null":"string"==typeof(n=(e=Object(t))[r])?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},398:function(t,e,n){var i=n(3),r=n(94),o=n(42),a="\t\n\x0B\f\r Â áš€á Žâ€€â€â€‚         âŸã€€\u2028\u2029\ufeff",s="["+a+"]",l="​…",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(t,e){var n={};n[t]=e(h),i(i.P+i.F*o(function(){return!!a[t]()||l[t]()!=l}),"String",n)},h=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},399:function(t,e,n){"use strict";var i=n(32),r=n(15),o=n(78),a=n(28)("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.setDesc(e,a,{configurable:!0,get:function(){return this}})}},400:function(t,e,n){"use strict";var i=n(92),r=n(79),o=n(42),a=n(94),s=n(28);t.exports=function(t,e,n){var l=s(t),c=""[t];o(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(r(String.prototype,t,n(a,l,c)),i(RegExp.prototype,l,2==e?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)}))}},401:function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError(n+": use the 'new' operator!");return t}},402:function(t,e,n){var i=n(79);t.exports=function(t,e){for(var n in e)i(t,n,e[n]);return t}},403:function(t,e,n){"use strict";var i=n(32),r=n(3),o=n(79),a=n(402),s=n(254),l=n(401),c=n(22),u=n(42),d=n(449),h=n(252);t.exports=function(t,e,n,f,p,m){var g=i[t],v=g,y=p?"set":"add",E=v&&v.prototype,b={},_=function(t){var e=E[t];o(E,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?undefined:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof v&&(m||E.forEach&&!u(function(){(new v).entries().next()}))){var C,T=new v,I=T[y](m?{}:-0,1)!=T,D=u(function(){T.has(1)}),$=d(function(t){new v(t)});$||(v=e(function(e,n){l(e,v,t);var i=new g;return n!=undefined&&s(n,p,i[y],i),i}),v.prototype=E,E.constructor=v),m||T.forEach(function(t,e){C=1/e==-Infinity}),(D||C)&&(_("delete"),_("has"),p&&_("get")),(C||I)&&_(y),m&&E.clear&&delete E.clear}else v=f.getConstructor(e,t,p,y),a(v.prototype,n);return h(v,t),b[t]=v,r(r.G+r.W+r.F*(v!=g),b),m||f.setStrong(v,t,p),v}},42:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},440:function(t,e,n){var i=n(116);t.exports=Array.isArray||function(t){return"Array"==i(t)}},441:function(t,e){t.exports=!1},442:function(t,e,n){var i=n(15).getDesc,r=n(22),o=n(26),a=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(93)(Function.call,i(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(o){e=!0}return function(t,n){return a(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):undefined),check:a}},443:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},444:function(t,e){t.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}},445:function(t,e,n){var i=n(250),r=n(94);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":undefined:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},446:function(t,e,n){"use strict";var i=n(441),r=n(3),o=n(79),a=n(92),s=n(66),l=n(253),c=n(881),u=n(252),d=n(15).getProto,h=n(28)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,m,g,v,y){c(n,e,m);var E,b,_=function(t){if(!f&&t in D)return D[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",T="values"==g,I=!1,D=t.prototype,$=D[h]||D["@@iterator"]||g&&D[g],O=$||_(g);if($){var w=d(O.call(new t));u(w,C,!0),!i&&s(D,"@@iterator")&&a(w,h,p),T&&"values"!==$.name&&(I=!0,O=function(){return $.call(this)})}if(i&&!y||!f&&!I&&D[h]||a(D,h,O),l[e]=O,l[C]=p,g)if(E={values:T?O:_("values"),keys:v?O:_("keys"),entries:T?_("entries"):O},y)for(b in E)b in D||o(D,b,E[b]);else r(r.P+r.F*(f||I),e,E);return E}},447:function(t,e,n){var i=n(882),r=n(94);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},448:function(t,e,n){var i=n(28)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(r){}}return!0}},449:function(t,e,n){var i=n(28)("iterator"),r=!1;try{var o=[7][i]();o["return"]=function(){r=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(a){}return n}},66:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},67:function(t,e,n){var i=n(250),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},78:function(t,e,n){t.exports=!n(42)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},79:function(t,e,n){var i=n(32),r=n(92),o=n(226)("src"),a=Function.toString,s=(""+a).split("toString");n(115).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,a){"function"==typeof n&&(n.hasOwnProperty(o)||r(n,o,t[e]?""+t[e]:s.join(String(e))),n.hasOwnProperty("name")||r(n,"name",e)),t===i?t[e]=n:(a||delete t[e],r(t,e,n))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||a.call(this)})},80:function(t,e,n){var i=n(395),r=n(94);t.exports=function(t){return i(r(t))}},81:function(t,e,n){var i=n(3),r=n(115),o=n(42);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},871:function(t,e){!function(){for(var t=0,e=["ms","moz","webkit","o"],n=0;n<e.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[e[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]+"CancelAnimationFrame"]||window[e[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e,n){var i=(new Date).getTime(),r=Math.max(0,16-(i-t)),o=window.setTimeout(function(){e(i+r)},r);return t=i+r,o}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(t){clearTimeout(t)})}()},872:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(i){"object"==typeof window&&(n=window)}t.exports=n},873:function(t,e,n){t.exports=n(32).document&&document.documentElement},874:function(t,e,n){var i=n(22),r=n(32).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},875:function(t,e,n){var i=n(32),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});t.exports=function(t){return r[t]||(r[t]={})}},876:function(t,e,n){var i=n(80),r=n(67),o=n(251);t.exports=function(t){return function(e,n,a){var s,l=i(e),c=r(l.length),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u;return!t&&-1}}},877:function(t,e,n){var i=n(80),r=n(15).getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(e){return a.slice()}};t.exports.get=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},878:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},879:function(t,e,n){var i=n(22),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},880:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},881:function(t,e,n){"use strict";var i=n(15),r=n(137),o=n(252),a={};n(92)(a,n(28)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i.create(a,{next:r(1,n)}),o(t,e+" Iterator")}},882:function(t,e,n){var i=n(22),r=n(116),o=n(28)("match");t.exports=function(t){var e;return i(t)&&((e=t[o])!==undefined?!!e:"RegExp"==r(t))}},883:function(t,e,n){"use strict";var i=n(250),r=n(94);t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==Infinity)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},884:function(t,e,n){var i=n(26);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(a){var o=t["return"];throw o!==undefined&&i(o.call(t)),a}}},885:function(t,e,n){var i=n(253),r=n(28)("iterator"),o=Array.prototype;t.exports=function(t){return t!==undefined&&(i.Array===t||o[r]===t)}},886:function(t,e,n){var i=n(397),r=n(28)("iterator"),o=n(253);t.exports=n(115).getIteratorMethod=function(t){if(t!=undefined)return t[r]||t["@@iterator"]||o[i(t)]}},887:function(t,e,n){"use strict";var i=n(228),r=n(888),o=n(253),a=n(80);t.exports=n(446)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=undefined,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},888:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},889:function(t,e,n){"use strict";var i=n(26);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},890:function(t,e,n){var i,r,o,a=n(93),s=n(394),l=n(873),c=n(874),u=n(32),d=u.process,h=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=0,g={},v=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},y=function(t){v.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},i(m),m},f=function(t){delete g[t]},"process"==n(116)(d)?i=function(t){d.nextTick(a(v,t,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=y,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",y,!1)):i="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),v.call(t)}}:function(t){setTimeout(a(v,t,1),0)}),t.exports={set:h,clear:f}},891:function(t,e,n){"use strict";var i=n(15),r=n(92),o=n(402),a=n(93),s=n(401),l=n(94),c=n(254),u=n(446),d=n(888),h=n(226)("id"),f=n(66),p=n(22),m=n(399),g=n(78),v=Object.isExtensible||p,y=g?"_s":"size",E=0,b=function(t,e){if(!p(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!f(t,h)){if(!v(t))return"F";if(!e)return"E";r(t,h,++E)}return"O"+t[h]},_=function(t,e){var n,i=b(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,r){var u=t(function(t,o){s(t,u,e),t._i=i.create(null),t._f=undefined,t._l=undefined,t[y]=0,o!=undefined&&c(o,n,t[r],t)});return o(u.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=undefined),delete e[n.i];t._f=t._l=undefined,t[y]=0},"delete":function(t){var e=this,n=_(e,t);if(n){var i=n.n,r=n.p;delete e._i[n.i],n.r=!0,r&&(r.n=i),i&&(i.p=r),e._f==n&&(e._f=i),e._l==n&&(e._l=r),e[y]--}return!!n},forEach:function(t){for(var e,n=a(t,arguments.length>1?arguments[1]:undefined,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!_(this,t)}}),g&&i.setDesc(u.prototype,"size",{get:function(){return l(this[y])}}),u},def:function(t,e,n){var i,r,o=_(t,e);return o?o.v=n:(t._l=o={i:r=b(e,!0),k:e,v:n,p:i=t._l,n:undefined,r:!1},t._f||(t._f=o),i&&(i.n=o),t[y]++,"F"!==r&&(t._i[r]=o)),t},getEntry:_,setStrong:function(t,e,n){u(t,e,function(t,e){this._t=t,this._k=e,this._l=undefined},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?d(0,n.k):"values"==e?d(0,n.v):d(0,[n.k,n.v]):(t._t=undefined,d(1))},n?"entries":"values",!n,!0),m(e)}}},892:function(t,e,n){"use strict";var i=n(92),r=n(402),o=n(26),a=n(22),s=n(401),l=n(254),c=n(396),u=n(66),d=n(226)("weak"),h=Object.isExtensible||a,f=c(5),p=c(6),m=0,g=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},y=function(t,e){return f(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var n=y(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,i){var o=t(function(t,r){s(t,o,e),t._i=m++,t._l=undefined,r!=undefined&&l(r,n,t[i],t)});return r(o.prototype,{"delete":function(t){return!!a(t)&&(h(t)?u(t,d)&&u(t[d],this._i)&&delete t[d][this._i]:g(this)["delete"](t))},has:function(t){return!!a(t)&&(h(t)?u(t,d)&&u(t[d],this._i):g(this).has(t))}}),o},def:function(t,e,n){return h(o(e))?(u(e,d)||i(e,d,{}),e[d][t._i]=n):g(t).set(e,n),t},frozenStore:g,WEAK:d}},893:function(t,e,n){var i=n(15),r=n(26),o=n(32).Reflect;t.exports=o&&o.ownKeys||function(t){var e=i.getNames(r(t)),n=i.getSymbols;return n?e.concat(n(t)):e}},894:function(t,e,n){var i=n(67),r=n(883),o=n(94);t.exports=function(t,e,n,a){var s=String(o(t)),l=s.length,c=n===undefined?" ":String(n),u=i(e);if(u<=l)return s;""==c&&(c=" ");var d=u-l,h=r.call(c,Math.ceil(d/c.length));return h.length>d&&(h=h.slice(0,d)),a?h+s:s+h}},895:function(t,e,n){var i=n(15),r=n(80),o=i.isEnum;t.exports=function(t){return function(e){for(var n,a=r(e),s=i.getKeys(a),l=s.length,c=0,u=[];l>c;)o.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}}},896:function(t,e,n){var i=n(254),r=n(397);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return i(this,!1,e.push,e),e}}},897:function(t,e,n){/*! visualCaptcha - v0.0.8 - 2016-01-23 * http://visualcaptcha.net * Copyright (c) 2016 emotionLoop; Licensed MIT */ !function(t){/** * @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved. * Available via the MIT or new BSD license. * see: http://github.com/jrburke/almond for details */ var e,n,i;!function(t){function r(t,e){return b.call(t,e)}function o(t,e){var n,i,r,o,a,s,l,c,u,d,h,f=e&&e.split("/"),p=y.map,m=p&&p["*"]||{};if(t&&"."===t.charAt(0))if(e){for(f=f.slice(0,f.length-1),t=t.split("/"),a=t.length-1,y.nodeIdCompat&&C.test(t[a])&&(t[a]=t[a].replace(C,"")),t=f.concat(t),u=0;u<t.length;u+=1)if("."===(h=t[u]))t.splice(u,1),u-=1;else if(".."===h){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((f||m)&&p){for(n=t.split("/"),u=n.length;u>0;u-=1){if(i=n.slice(0,u).join("/"),f)for(d=f.length;d>0;d-=1)if((r=p[f.slice(0,d).join("/")])&&(r=r[i])){o=r,s=u;break}if(o)break;!l&&m&&m[i]&&(l=m[i],c=u)}!o&&l&&(o=l,s=c),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function a(e,n){return function(){return f.apply(t,_.call(arguments,0).concat([e,n]))}}function s(t){return function(e){return o(e,t)}}function l(t){return function(e){g[t]=e}}function c(e){if(r(v,e)){var n=v[e];delete v[e],E[e]=!0,h.apply(t,n)}if(!r(g,e)&&!r(E,e))throw new Error("No "+e);return g[e]}function u(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function d(t){return function(){return y&&y.config&&y.config[t]||{}}}var h,f,p,m,g={},v={},y={},E={},b=Object.prototype.hasOwnProperty,_=[].slice,C=/\.js$/;p=function(t,e){var n,i=u(t),r=i[0];return t=i[1],r&&(r=o(r,e),n=c(r)),r?t=n&&n.normalize?n.normalize(t,s(e)):o(t,e):(t=o(t,e),i=u(t),r=i[0],t=i[1],r&&(n=c(r))),{f:r?r+"!"+t:t,n:t,pr:r,p:n}},m={require:function(t){return a(t)},exports:function(t){var e=g[t];return void 0!==e?e:g[t]={}},module:function(t){return{id:t,uri:"",exports:g[t],config:d(t)}}},h=function(e,n,i,o){var s,u,d,h,f,y,b=[],_=typeof i;if(o=o||e,"undefined"===_||"function"===_){for(n=!n.length&&i.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if(h=p(n[f],o),"require"===(u=h.f))b[f]=m.require(e);else if("exports"===u)b[f]=m.exports(e),y=!0;else if("module"===u)s=b[f]=m.module(e);else if(r(g,u)||r(v,u)||r(E,u))b[f]=c(u);else{if(!h.p)throw new Error(e+" missing "+u);h.p.load(h.n,a(o,!0),l(u),{}),b[f]=g[u]}d=i?i.apply(g[e],b):undefined,e&&(s&&s.exports!==t&&s.exports!==g[e]?g[e]=s.exports:d===t&&y||(g[e]=d))}else e&&(g[e]=i)},e=n=f=function(e,n,i,r,o){if("string"==typeof e)return m[e]?m[e](n):c(p(e,n).f);if(!e.splice){if(y=e,y.deps&&f(y.deps,y.callback),!n)return;n.splice?(e=n,n=i,i=null):e=t}return n=n||function(){},"function"==typeof i&&(i=r,r=o),r?h(t,e,n,i):setTimeout(function(){h(t,e,n,i)},4),f},f.config=function(t){return f(t)},e._defined=g,i=function(t,e,n){e.splice||(n=e,e=[]),r(g,t)||r(v,t)||(v[t]=[t,e,n])},i.amd={jQuery:!0}}(),i("almond",function(){}),i("visualcaptcha/core",[],function(){"use strict";var t,e,n,i,r,o,a,s;return t=function(t,e,n){return n=n||[],t.namespace&&t.namespace.length>0&&n.push(t.namespaceFieldName+"="+t.namespace),n.push(t.randomParam+"="+t.randomNonce),e+"?"+n.join("&")},e=function(t){var e,i=this;t.applyRandomNonce(),t.isLoading=!0,e=n(t),t._loading(i),t.callbacks.loading&&t.callbacks.loading(i),t.request(e,function(e){e.audioFieldName&&(t.audioFieldName=e.audioFieldName),e.imageFieldName&&(t.imageFieldName=e.imageFieldName),e.imageName&&(t.imageName=e.imageName),e.values&&(t.imageValues=e.values),t.isLoading=!1,t.hasLoaded=!0,t._loaded(i),t.callbacks.loaded&&t.callbacks.loaded(i)})},n=function(e){var n=e.url+e.routes.start+"/"+e.numberOfImages;return t(e,n)},i=function(e,n){var i="",r=[];return n<0||n>=e.numberOfImages?i:(this.isRetina()&&r.push("retina=1"),i=e.url+e.routes.image+"/"+n,t(e,i,r))},r=function(e,n){var i=e.url+e.routes.audio;return n&&(i+="/ogg"),t(e,i)},o=function(t,e){return e>=0&&e<t.numberOfImages?t.imageValues[e]:""},a=function(){return window.devicePixelRatio!==undefined&&window.devicePixelRatio>1},s=function(){var t,e=!1;try{t=document.createElement("audio"),t.canPlayType&&(e=!0)}catch(n){}return e},function(t){var n,l,c,u,d,h,f,p,m,g,v,y,E;return l=function(){return e.call(this,t)},c=function(){return t.isLoading},u=function(){return t.hasLoaded},d=function(){return t.imageValues.length},h=function(){return t.imageName},f=function(e){return o.call(this,t,e)},p=function(e){return i.call(this,t,e)},m=function(e){return r.call(this,t,e)},g=function(){return t.imageFieldName},v=function(){return t.audioFieldName},y=function(){return t.namespace},E=function(){return t.namespaceFieldName},n={refresh:l,isLoading:c,hasLoaded:u,numberOfImages:d,imageName:h,imageValue:f,imageUrl:p,audioUrl:m,imageFieldName:g,audioFieldName:v,namespace:y,namespaceFieldName:E,isRetina:a,supportsAudio:s},t.autoRefresh&&n.refresh(),n}}),i("visualcaptcha/xhr-request",[],function(){"use strict";var t=window.XMLHttpRequest;return function(e,n){var i=new t;i.open("GET",e,!0),i.onreadystatechange=function(){var t;4===i.readyState&&200===i.status&&(t=JSON.parse(i.responseText),n(t))},i.send()}}),i("visualcaptcha/config",["visualcaptcha/xhr-request"],function(t){"use strict";return function(e){var n=window.location.href.split("/");n[n.length-1]="";var i={request:t,url:n.join("/").slice(0,-1),namespace:"",namespaceFieldName:"namespace",routes:{start:"/start",image:"/image",audio:"/audio"},isLoading:!1,hasLoaded:!1,autoRefresh:!0,numberOfImages:6,randomNonce:"",randomParam:"r",audioFieldName:"",imageFieldName:"",imageName:"",imageValues:[],callbacks:{},_loading:function(){},_loaded:function(){}};return i.applyRandomNonce=function(){return i.randomNonce=Math.random().toString(36).substring(2)},e.request&&(i.request=e.request),e.url&&(i.url=e.url),e.namespace&&(i.namespace=e.namespace),e.namespaceFieldName&&(i.namespaceFieldName=e.namespaceFieldName),"undefined"!=typeof e.autoRefresh&&(i.autoRefresh=e.autoRefresh),e.numberOfImages&&(i.numberOfImages=e.numberOfImages),e.routes&&(e.routes.start&&(i.routes.start=e.routes.start),e.routes.image&&(i.routes.image=e.routes.image),e.routes.audio&&(i.routes.audio=e.routes.audio)),e.randomParam&&(i.randomParam=e.randomParam),e.callbacks&&(e.callbacks.loading&&(i.callbacks.loading=e.callbacks.loading),e.callbacks.loaded&&(i.callbacks.loaded=e.callbacks.loaded)),e._loading&&(i._loading=e._loading),e._loaded&&(i._loaded=e._loaded),i}}),i("visualcaptcha",["require","visualcaptcha/core","visualcaptcha/config"],function(t){"use strict";var e=t("visualcaptcha/core"),n=t("visualcaptcha/config");return function(t){return t=t||{},e(n(t))}}),i("visualcaptcha/deep-extend",[],function(){"use strict";var t;return t=function(e,n){e=e||{};for(var i in n)n[i]&&n[i].constructor&&n[i].constructor===Object?(e[i]=e[i]||{},t(e[i],n[i])):e[i]=n[i];return e}}),i("visualcaptcha/helpers",[],function(){"use strict";var t,e,n,i,r,o,a;return t=function(t,e){return e?t[0]:Array.prototype.slice.call(t)},e=function(e,n,i){var r=e.getElementsByClassName(n);return t(r,i)},n=function(e,n,i){var r=e.getElementsByTagName(n);return t(r,i)},i=function(t,e){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");return t.className&&n.test(t.className)},r=function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)r(t[n],e);else i(t,e)||(t.className.length>0?t.className+=" "+e:t.className=e)},o=function(t,e){var n;if(Array.isArray(t))for(var i=0;i<t.length;i++)o(t[i],e);else n=new RegExp("(\\s|^)"+e+"(\\s|$)"),t.className=t.className.replace(n," ").replace(/(^\s*)|(\s*$)/g,"")},a=function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)a(t[n],e);else t&&(t.addEventListener?t.addEventListener("click",e,!1):t.attachEvent("onclick",e))},{findByClass:e,findByTag:n,hasClass:i,addClass:r,removeClass:o,bindClick:a}}),i("visualcaptcha/templates",[],function(){"use strict";var t,e,n,i,r,o,a;return t=function(t,e){for(var n in e)t=t.replace(new RegExp("{"+n+"}","g"),e[n]);return t},e=function(e,n,i){var r,o,a,s;return r='<div class="visualCaptcha-accessibility-button"><a href="#"><img src="{path}accessibility{retinaExtra}.png" title="{accessibilityTitle}" alt="{accessibilityAlt}" /></a></div>',o='<div class="visualCaptcha-refresh-button"><a href="#"><img src="{path}refresh{retinaExtra}.png" title="{refreshTitle}" alt="{refreshAlt}" /></a></div>',a='<div class="visualCaptcha-button-group">'+o+(e.supportsAudio()?r:"")+"</div>",s={path:i||"",refreshTitle:n.refreshTitle,refreshAlt:n.refreshAlt,accessibilityTitle:n.accessibilityTitle,accessibilityAlt:n.accessibilityAlt,retinaExtra:e.isRetina()?"@2x":""},t(a,s)},n=function(e,n){var i,r;return e.supportsAudio()?(i='<div class="visualCaptcha-accessibility-wrapper visualCaptcha-hide"><div class="accessibility-description">{accessibilityDescription}</div><audio preload="preload"><source src="{audioURL}" type="audio/ogg" /><source src="{audioURL}" type="audio/mpeg" /></audio></div>',r={accessibilityDescription:n.accessibilityDescription,audioURL:e.audioUrl(),audioFieldName:e.audioFieldName()},t(i,r)):""},i=function(e,n){for(var i,r,o="",a=0,s=e.numberOfImages();a<s;a++)i='<div class="img"><a href="#"><img src="{imageUrl}" id="visualCaptcha-img-{i}" data-index="{i}" alt="" title="" /></a></div>',r={imageUrl:e.imageUrl(a),i:a},o+=t(i,r);return i='<p class="visualCaptcha-explanation">{explanation}</p><div class="visualCaptcha-possibilities">{images}</div>',r={imageFieldName:e.imageFieldName(),explanation:n.explanation.replace(/ANSWER/,e.imageName()),images:o},t(i,r)},r=function(e){var n,i;return n='<input class="form-control audioField" type="text" name="{audioFieldName}" value="" autocomplete="off" />',i={audioFieldName:e.audioFieldName()},t(n,i)},o=function(e,n){var i,r;return i='<input class="form-control imageField" type="hidden" name="{imageFieldName}" value="{value}" readonly="readonly" />',r={imageFieldName:e.imageFieldName(),value:e.imageValue(n)},t(i,r)},a=function(e){var n,i,r=e.namespace();return r&&0!==r.length?(n='<input type="hidden" name="{fieldName}" value="{value}" />',i={fieldName:e.namespaceFieldName(),value:r},t(n,i)):""},{buttons:e,accessibility:n,images:i,audioInput:r,imageInput:o,namespaceInput:a}}),i("visualcaptcha/language",[],function(){"use strict";return{accessibilityAlt:"Sound icon",accessibilityTitle:"Accessibility option: listen to a question and answer it!",accessibilityDescription:"Type below the <strong>answer</strong> to what you hear. Numbers or words:",explanation:"Click or touch the <strong>ANSWER</strong>",refreshAlt:"Refresh/reload icon",refreshTitle:"Refresh/reload: get new images and accessibility option!"}}),i("visualcaptcha.vanilla",["visualcaptcha","visualcaptcha/deep-extend","visualcaptcha/helpers","visualcaptcha/templates","visualcaptcha/language"],function(t,e,n,i,r){"use strict";var o,a,s,l,c,u;return o=function(){},a=function(t,e){var r,o,a=t.config;r=i.namespaceInput(e)+i.accessibility(e,a.language)+i.images(e,a.language)+i.buttons(e,a.language,a.imgPath),t.innerHTML=r,o=n.findByClass(t,"visualCaptcha-accessibility-button",!0),n.bindClick(o,s.bind(null,t,e)),o=n.findByClass(t,"visualCaptcha-refresh-button",!0),n.bindClick(o,c.bind(null,t,e)),o=n.findByClass(t,"visualCaptcha-possibilities",!0),n.bindClick(n.findByClass(o,"img"),l.bind(null,t,e))},s=function(t,e){var r,o,a,s,l=n.findByClass(t,"visualCaptcha-accessibility-wrapper",!0),c=n.findByClass(t,"visualCaptcha-possibilities",!0),u=n.findByClass(t,"visualCaptcha-explanation",!0),d=n.findByTag(l,"audio",!0);n.hasClass(l,"visualCaptcha-hide")?(n.addClass(c,"visualCaptcha-hide"),n.addClass(u,"visualCaptcha-hide"),r=n.findByClass(c,"img"),n.removeClass(r,"visualCaptcha-selected"),o=n.findByTag(u,"input",!0),o!==undefined&&(o.value=""),s=i.audioInput(e),l.innerHTML=l.innerHTML.replace("<audio",s+"<audio"),n.removeClass(l,"visualCaptcha-hide"),d.load(),d.play()):(d.pause(),n.addClass(l,"visualCaptcha-hide"),a=n.findByTag(l,"input",!0),l.removeChild(a),n.removeClass(u,"visualCaptcha-hide"),n.removeClass(c,"visualCaptcha-hide"))},l=function(t,e,r){var o,a,s,l,c,u=r.currentTarget,d=n.findByClass(t,"visualCaptcha-possibilities",!0),h=n.findByClass(t,"visualCaptcha-explanation",!0);l=n.findByTag(h,"input",!0),l&&(h.removeChild(l),a=n.findByClass(d,"img"),n.removeClass(a,"visualCaptcha-selected")),n.addClass(u,"visualCaptcha-selected"),o=n.findByTag(u,"img",!0),s=parseInt(o.getAttribute("data-index"),10),c=i.imageInput(e,s),h.innerHTML+=c},c=function(t,e){e.refresh()},u=function(t){var e=n.findByClass(t,"imageField",!0)||{},i=n.findByClass(t,"audioField",!0)||{},r=!(!e.value&&!i.value);return r?{valid:r,name:e.value?e.name:i.name,value:e.value?e.value:i.value}:{valid:r}},function(i,s){var l,c,d;return l=e({imgPath:"/",language:r,captcha:{}},s),i="string"==typeof i?document.getElementById(i):i,i.config=l,n.addClass(i,"visualCaptcha"),d=e(l.captcha,{_loading:o.bind(null,i),_loaded:a.bind(null,i)}),void 0!==i.getAttribute("data-namespace")&&(d.namespace=i.getAttribute("data-namespace")),c=t(d),c.getCaptchaData=u.bind(null,i),"function"==typeof l.init&&l.init.call(null,c),c}}),i("visualcaptcha.angular",["angular","visualcaptcha.vanilla","visualcaptcha/deep-extend"],function(t,e,n){"use strict";t.module("visualCaptcha",[]).directive("captcha",["$http",function(t){var i=function(e,n){t({method:"GET",url:e,withCredentials:!0}).success(n)};return{restrict:"A",scope:{options:"="},link:function(t,r){e(r[0],n(t.options,{captcha:{request:i}}))}}}])}),i("angular",function(){return t}),n("visualcaptcha.angular")}(angular)},898:function(t,e,n){"use strict";var i,r;!function(o,a){i=[n(1150)],(r=function(){return a(o)}.apply(e,i))!==undefined&&(t.exports=r)}(angular||null,function(t){var e,n=t.module("ngCkeditor",[]),i=!1;return n.run(["$q","$timeout",function(n,r){function o(){"loaded"===CKEDITOR.status?(i=!0,e.resolve()):o()}if(e=n.defer(),t.isUndefined(CKEDITOR))throw new Error("CKEDITOR not found");CKEDITOR.disableAutoInline=!0,CKEDITOR.on("loaded",o),r(o,100)}]),n.directive("ckeditor",["$timeout","$q",function(n,r){return{restrict:"AC",require:["ngModel","^?form"],scope:!1,link:function(o,a,s,l){var c=l[0],u=l[1]||null,d="textarea"===a[0].tagName.toLowerCase(),h=[],f=!1;d||a.attr("contenteditable",!0);var p=function(){var e={toolbar:"full",toolbar_full:[{name:"basicstyles",items:["Bold","Italic","Strike","Underline"]},{name:"paragraph",items:["BulletedList","NumberedList","Blockquote"]},{name:"editing",items:["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"tools",items:["SpellChecker","Maximize"]},"/",{name:"styles",items:["Format","FontSize","TextColor","PasteText","PasteFromWord","RemoveFormat"]},{name:"insert",items:["Image","Table","SpecialChar"]},{name:"forms",items:["Outdent","Indent"]},{name:"clipboard",items:["Undo","Redo"]},{name:"document",items:["PageBreak","Source"]}],disableNativeSpellChecker:!1,uiColor:"#FAFAFA",height:"400px",width:"100%"};e=t.extend(e,o.$eval(s.ckeditor));var i=d?CKEDITOR.replace(a[0],e):CKEDITOR.inline(a[0],e),l=r.defer();a.bind("$destroy",function(){i&&CKEDITOR.instances[i.name]&&CKEDITOR.instances[i.name].destroy()});var p=function(t){var e=i.getData();""===e&&(e=null),n(function(){!0===t&&e===c.$viewValue||c.$setViewValue(e),!0===t&&u&&u.$setPristine()},0)},m=function(t){if(h.length){var e=h.pop()||"<p></p>";f=!1,i.setData(e,function(){p(t),f=!0})}};i.on("pasteState",p),i.on("change",p),i.on("blur",p),i.on("instanceReady",function(){o.$broadcast("ckeditor.ready"),o.$apply(function(){m(!0)}),i.document.on("keyup",p)}),i.on("customConfigLoaded",function(){l.resolve()}),c.$render=function(){h.push(c.$viewValue),f&&m()}};"loaded"===CKEDITOR.status&&(i=!0),i?p():e.promise.then(p)}}}]),n})},92:function(t,e,n){var i=n(15),r=n(137);t.exports=n(78)?function(t,e,n){return i.setDesc(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},93:function(t,e,n){var i=n(227);t.exports=function(t,e,n){if(i(t),e===undefined)return t;switch(n){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,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},94:function(t,e){t.exports=function(t){if(t==undefined)throw TypeError("Can't call method on "+t);return t}}});